survey-analytics 2.3.9 → 2.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm/shared.mjs +1 -1
- package/fesm/shared2.mjs +1 -1
- package/fesm/survey.analytics.core.mjs +1 -1
- package/fesm/survey.analytics.mjs +2 -1
- package/fesm/survey.analytics.mjs.map +1 -1
- package/fesm/survey.analytics.mongo.mjs +1 -1
- package/fesm/survey.analytics.tabulator.mjs +28 -24
- package/fesm/survey.analytics.tabulator.mjs.map +1 -1
- package/package.json +2 -2
- package/survey-analytics-tabulator.types/tables/table.d.ts +1 -0
- package/survey.analytics.core.css +1 -1
- package/survey.analytics.core.js +1 -1
- package/survey.analytics.core.min.css +1 -1
- package/survey.analytics.core.min.js.LICENSE.txt +1 -1
- package/survey.analytics.css +1 -1
- package/survey.analytics.js +2 -1
- package/survey.analytics.js.map +1 -1
- package/survey.analytics.min.css +1 -1
- package/survey.analytics.min.js +1 -1
- package/survey.analytics.min.js.LICENSE.txt +1 -1
- package/survey.analytics.mongo.js +1 -1
- package/survey.analytics.mongo.min.js.LICENSE.txt +1 -1
- package/survey.analytics.tabulator.css +1 -1
- package/survey.analytics.tabulator.js +28 -24
- package/survey.analytics.tabulator.js.map +1 -1
- package/survey.analytics.tabulator.min.css +1 -1
- package/survey.analytics.tabulator.min.js +1 -1
- package/survey.analytics.tabulator.min.js.LICENSE.txt +1 -1
package/survey.analytics.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see survey.analytics.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("plotly.js-dist-min"),require("survey-core")):"function"==typeof define&&define.amd?define("SurveyAnalytics",["plotly.js-dist-min","survey-core"],t):"object"==typeof exports?exports.SurveyAnalytics=t(require("plotly.js-dist-min"),require("survey-core")):e.SurveyAnalytics=t(e.Plotly,e.Survey)}(this,((e,t)=>(()=>{var i={24:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><g><circle cx="8" cy="4" r="3"></circle><path d="M8,8c-3.31,0-6,2.73-6,4.67S5.27,15,8,15s6-0.4,6-2.33S11.31,8,8,8z"></path></g></svg>'},41:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><path d="M12.79,4.2L16,1l-1-1l-3.32,3.32C10.57,2.55,9.32,2,8,2C3.63,2,0,7.97,0,7.97s1.27,2.1,3.21,3.82l-3.23,3.23 L0.96,16l3.35-3.34C5.41,13.44,6.67,14,8,14c4.37,0,8-6,8-6S14.73,5.91,12.79,4.2z M2,7.97c1.07-1.47,3.61-4,6-4 c0.8,0,1.6,0.27,2.35,0.68L9.57,5.43C9.11,5.14,8.58,4.97,8,4.97c-1.66,0-3,1.34-3,3c0,0.58,0.17,1.11,0.46,1.57l-0.97,0.97 C3.36,9.64,2.45,8.59,2,7.97z M8,11.97c-0.8,0-1.59-0.27-2.33-0.67l0.78-0.77C6.9,10.8,7.43,10.97,8,10.97c1.66,0,3-1.34,3-3 c0-0.57-0.17-1.09-0.44-1.55l0.98-0.98c1.11,0.87,2.01,1.91,2.46,2.52C12.93,9.44,10.39,11.97,8,11.97z"></path></g></svg>'},61:t=>{"use strict";t.exports=e},70:(e,t,i)=>{"use strict";i.d(t,{NW:()=>l,QV:()=>a,QX:()=>u,Qk:()=>o,gf:()=>n});var r=i(156),s=i(240),n=function(){function e(){}return e.createSelector=function(t,i,r,s){var n=document.createElement("div");n.className="sa-question__select-wrapper";var o=e.createElement("span","sa-question__select-title"),a=document.createElement("select");return a.className="sa-question__select",a.onchange=r,n.appendChild(a),n.__updateSelect=function(){var r;r=!!s&&("string"==typeof s?s:s()),o.innerText=r,r?n.insertBefore(o,a):o.parentElement===n&&n.removeChild(o),function(){a.innerHTML="";var r=t||[];(Array.isArray(r)?r:r()).forEach((function(t){var r=e.createElement("option","",{value:t.value,text:t.text,selected:i(t)});a.appendChild(r)}))}()},n.__updateSelect(),n},e.createButton=function(t,i,r){return void 0===i&&(i=""),void 0===r&&(r="sa-toolbar__button"),e.createElement("span",r,{innerText:i,onclick:t})},e.createElement=function(e,t,i){void 0===t&&(t="");var r=document.createElement(e);return r.className=t,i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r},e.createSvgElement=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElementNS("http://www.w3.org/2000/svg","use");return i.setAttributeNS("http://www.w3.org/1999/xlink","href","#sa-svg-"+e),t.appendChild(i),t},e.createSvgButton=function(t){var i=e.createElement("button","sa-table__svg-button");return i.appendChild(e.createSvgElement(t)),i},e.createSvgToggleButton=function(t,i,r,s,n,o,a,l){void 0===a&&(a="first"),void 0===l&&(l="sa-toolbar__button sa-toolbar__svg-button");var u=e.createSvgElement(t),h=e.createSvgElement(i),c=e.createElement("button",l);return"first"===a?(c.title=r,c.appendChild(u)):(a="second")&&(c.title=s,c.appendChild(h)),c.onclick=function(e){"first"===a?(a="second",c.title=s,c.removeChild(u),c.appendChild(h),o(e)):"second"===a&&(a="first",c.title=r,c.removeChild(h),c.appendChild(u),n(e))},c},e.createInput=function(t,i,r){return void 0===i&&(i=""),void 0===r&&(r=""),e.createElement("input",t,{placeholder:i,defaultValue:r})},e}();function o(){var e,t=n.createElement("div","sa-commercial"),i=n.createElement("div","sa-commercial__text"),o=n.createElement("span",""),a=n.createElement("span","sa-commercial__product",{innerHTML:(e=!!r.glc&&(0,r.glc)(1),e&&e.toLocaleDateString?s.qG.getString("license2").replace("{date}",e.toLocaleDateString()):s.qG.getString("license"))});return t.appendChild(i).appendChild(o),o.appendChild(a),t}function a(){var e=n.createElement("div","sa-data-loading-indicator-panel"),t=n.createElement("div","sa-data-loading-indicator");return t.innerHTML='\n <svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_17928_11482)">\n <path d="M32 64C14.36 64 0 49.65 0 32C0 14.35 14.36 0 32 0C49.64 0 64 14.35 64 32C64 49.65 49.64 64 32 64ZM32 4C16.56 4 4 16.56 4 32C4 47.44 16.56 60 32 60C47.44 60 60 47.44 60 32C60 16.56 47.44 4 32 4Z" fill="#E5E5E5"></path>\n <path d="M53.2101 55.2104C52.7001 55.2104 52.1901 55.0104 51.8001 54.6204C51.0201 53.8404 51.0201 52.5704 51.8001 51.7904C57.0901 46.5004 60.0001 39.4704 60.0001 31.9904C60.0001 24.5104 57.0901 17.4804 51.8001 12.1904C51.0201 11.4104 51.0201 10.1404 51.8001 9.36039C52.5801 8.58039 53.8501 8.58039 54.6301 9.36039C60.6701 15.4004 64.0001 23.4404 64.0001 31.9904C64.0001 40.5404 60.6701 48.5704 54.6301 54.6204C54.2401 55.0104 53.7301 55.2104 53.2201 55.2104H53.2101Z" fill="#19B394"></path>\n </g>\n <defs>\n <clipPath id="clip0_17928_11482">\n <rect width="64" height="64" fill="white"></rect>\n </clipPath>\n </defs>\n </svg>\n ',e.appendChild(t),e}window.URL.createObjectURL;var l=function(){function e(){}return e.zipArrays=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=[],r=function(t){i[t]=[],e.forEach((function(e){i[t].push(e[t])}))},s=0;s<e[0].length;s++)r(s);return i},e.unzipArrays=function(e){var t=[];return e.forEach((function(e,i){e.forEach((function(e,r){t[r]||(t[r]=[]),t[r][i]=e}))})),t},e.sortDictionary=function(e,t,i){var r=this.zipArrays(e,t),s=function(e,t,i){void 0===i&&(i=!0);var r=e[1]<t[1]?1:e[1]==t[1]?0:-1;return i?r:-1*r};r.sort((function(e,t){return i?s(e,t,!1):s(e,t)}));var n=this.unzipArrays(r);return{keys:n[0],values:n[1]}},e.toPercentage=function(e,t){return e/t*100},e}();function u(e,t){void 0===t&&(t=2);var i=Math.pow(10,t);return Math.round(i*e)/i}},87:(e,t,i)=>{"use strict";i.d(t,{C6:()=>s,Cl:()=>r,YH:()=>o,sH:()=>n});var r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e};function s(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function n(e,t,i,r){return new(i||(i=Promise))((function(s,n){function o(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))}function o(e,t){var i,r,s,n,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(s=2&n[0]?r.return:n[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==n[0]&&2!==n[0])){o=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){o.label=n[1];break}if(6===n[0]&&o.label<s[1]){o.label=s[1],s=n;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(n);break}s[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}},143:(e,t,i)=>{"use strict";i.d(t,{u:()=>a});var r=i(87),s=i(156),n=i(183),o=i(557),a=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"matrix")||this;return n._transposeData=!0,n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"matrixQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),t.prototype.isSupportMissingAnswers=function(){return!1},t.prototype.getSeriesValues=function(){return this.matrixQuestion.rows.map((function(e){return""+e.value}))},t.prototype.getSeriesLabels=function(){var e=this;return this.matrixQuestion.rows.map((function(t){return s.ItemValue.getTextOrHtmlByValue(e.matrixQuestion.rows,t.value)}))},t.prototype.getSelectedItemByText=function(e){return this.matrixQuestion.columns.filter((function(t){return t.text===e}))[0]},t.prototype.valuesSource=function(){return this.matrixQuestion.columns},t.prototype.getHasAnswersInAllSeriesArray=function(e){for(var t=Array(),i=0;i<e[0].length;i++)for(var r=0;r<e.length;r++)0!=e[r][i]&&(t[i]=!0);return t},t.prototype.getHasAnswersInSeries=function(e){for(var t=0;t<e.length;t++)if(0!=e[t])return!0;return!1},t.prototype.hideEmptyAnswersInData=function(e){for(var t={datasets:[],labels:[],colors:[],texts:[],seriesLabels:[]},i=this.getHasAnswersInAllSeriesArray(e.datasets),r=0;r<e.datasets.length;r++)if(this.getHasAnswersInSeries(e.datasets[r])){t.labels.push(e.labels[r]),t.colors.push(e.colors[r]);for(var s=[],n=[],o=0;o<e.datasets[0].length;o++)i[o]&&(s.push(e.datasets[r][o]),n.push(e.texts[r][o]));t.datasets.push(s),t.texts.push(n)}for(r=0;r<e.datasets[0].length;r++)i[r]&&t.seriesLabels.push(e.seriesLabels[r]);return t},t}(n.o);o.g.registerVisualizer("matrix",a)},156:e=>{"use strict";e.exports=t},183:(e,t,i)=>{"use strict";i.d(t,{M:()=>u,o:()=>h});var r=i(87),s=i(156),n=i(267),o=i(240),a=i(70),l=i(557);function u(e){var t={datasets:[],labels:[],colors:[],texts:[],seriesLabels:[]};if(0===e.seriesLabels.length){t.datasets.push([]),t.texts.push([]);for(var i=0;i<e.datasets[0].length;i++)0!=e.datasets[0][i]&&(t.datasets[0].push(e.datasets[0][i]),t.labels.push(e.labels[i]),t.colors.push(e.colors[i]),t.texts[0].push(e.texts[0][i]));return t}var r=[];r.length=e.seriesLabels.length;var s=[];s.length=e.labels.length;for(var n=0;n<e.seriesLabels.length;n++)for(var o=0;o<e.labels.length;o++)0!=e.datasets[n][o]&&(r[n]=!0,s[o]=!0);for(o=0;o<s.length;o++)s[o]&&(t.labels.push(e.labels[o]),t.colors.push(e.colors[o]));for(n=0;n<e.seriesLabels.length;n++)r[n]&&t.seriesLabels.push(e.seriesLabels[n]);for(n=0;n<e.datasets.length;n++)if(r[n]){var a=[],l=[];for(o=0;o<e.labels.length;o++)s[o]&&(a.push(e.datasets[n][o]),l.push(e.texts[n][o]));t.datasets.push(a),t.texts.push(l)}return t}var h=function(e){function t(i,r,l,u){var h=e.call(this,i,r,l,u||"selectBase")||this;return h.selectedItem=void 0,h.choicesOrderSelector=void 0,h.showPercentageBtn=void 0,h.emptyAnswersBtn=void 0,h.transposeDataBtn=void 0,h.topNSelector=void 0,h._showOnlyPercentages=!1,h._percentagePrecision=2,h._answersOrder="default",h._hideEmptyAnswers=!1,h._topN=-1,h.topNValues=[].concat(t.topNValuesDefaults),h._transposeData=!1,h._showMissingAnswers=!1,h.missingAnswersBtn=void 0,h.chartTypes=[],h._chartType="bar",h.onAnswersDataReady=new s.Event,i&&(i.visibleChoicesChangedCallback=function(){h.dataProvider.raiseDataChanged()}),h._supportSelection=!0,h._showOnlyPercentages=!0===h.options.showOnlyPercentages,h.options.percentagePrecision&&(h._percentagePrecision=h.options.percentagePrecision),void 0!==h.options.transposeData&&(h._transposeData=h.options.transposeData),h._hideEmptyAnswers=!0===h.options.hideEmptyAnswers,h._answersOrder=h.options.answersOrder||"default",h._showMissingAnswers=h.isSupportMissingAnswers()&&!0===h.options.showMissingAnswers,h.options.allowExperimentalFeatures,n.w.chartAdapterType&&(h._chartAdapter=new n.w.chartAdapterType(h),h.chartTypes=h._chartAdapter.getChartTypes(),h.getSeriesValues().length>0&&-1===h.chartTypes.indexOf("stackedbar")&&h.chartTypes.push("stackedbar"),h._chartType=h.chartTypes[0],-1!==h.chartTypes.indexOf(h.options.defaultChartType)&&(h._chartType=h.options.defaultChartType)),!1!==h.options.allowChangeVisualizerType&&h.registerToolbarItem("changeChartType",(function(){return h.chartTypes.length>1?a.gf.createSelector(h.chartTypes.map((function(e){return{value:e,text:o.qG.getString("chartType_"+e)}})),(function(e){return h.chartType===e.value}),(function(e){h.setChartType(e.target.value)})):null})),h.registerToolbarItem("changeAnswersOrder",(function(){return h.isSupportAnswersOrder()&&(h.choicesOrderSelector=a.gf.createSelector([{text:o.qG.getString("defaultOrder"),value:"default"},{text:o.qG.getString("ascOrder"),value:"asc"},{text:o.qG.getString("descOrder"),value:"desc"}],(function(e){return!1}),(function(e){h.answersOrder=e.target.value})),h.updateOrderSelector()),h.choicesOrderSelector})),h.registerToolbarItem("showPercentages",(function(){if(h.options.allowShowPercentages&&(-1!==h.chartTypes.indexOf("bar")||-1!==h.chartTypes.indexOf("stackedbar")))return h.showPercentageBtn=a.gf.createButton((function(){h.showPercentages=!h.showPercentages})),h.updateShowPercentageBtn(),h.showPercentageBtn})),h.registerToolbarItem("hideEmptyAnswers",(function(){return h.options.allowHideEmptyAnswers&&(h.emptyAnswersBtn=a.gf.createButton((function(){h.hideEmptyAnswers=!h._hideEmptyAnswers})),h.updateEmptyAnswersBtn()),h.emptyAnswersBtn}),1e3),h.registerToolbarItem("topNAnswers",(function(){return h.options.allowTopNAnswers&&0===h.getSeriesValues().length&&(h.topNSelector=a.gf.createSelector(h.topNValues.map((function(e){return{text:o.qG.getString("topNValueText"+e),value:e}})),(function(e){return!1}),(function(e){h.topN=parseInt(e.target.value)})),h.updateTopNSelector()),h.topNSelector})),h.registerToolbarItem("transposeData",(function(){return h.options.allowTransposeData&&(h.transposeDataBtn=a.gf.createButton((function(){h.transposeData=!h.transposeData})),h.updateTransposeDataBtn()),h.transposeDataBtn})),h.registerToolbarItem("showMissingAnswers",(function(){return h.isSupportMissingAnswers()&&h.options.allowShowMissingAnswers&&(h.missingAnswersBtn=a.gf.createButton((function(){h.showMissingAnswers=!h._showMissingAnswers})),h.updateMissingAnswersBtn()),h.missingAnswersBtn})),h}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"chartType",{get:function(){return this._chartType},set:function(e){this.setChartType(e)},enumerable:!1,configurable:!0}),t.prototype.updateEmptyAnswersBtn=function(){this.emptyAnswersBtn&&(this.emptyAnswersBtn.innerText=this._hideEmptyAnswers?o.qG.getString("showEmptyAnswers"):o.qG.getString("hideEmptyAnswers"),"bar"==this.chartType||"vbar"==this.chartType||"line"==this.chartType||"scatter"==this.chartType?this.emptyAnswersBtn.style.display="inline":this.emptyAnswersBtn.style.display="none")},t.prototype.updateTransposeDataBtn=function(){this.transposeDataBtn&&(this.transposeDataBtn.innerText=this.transposeData?o.qG.getString("showPerColumns"):o.qG.getString("showPerValues"),this.getSeriesValues().length>0?this.transposeDataBtn.style.display="inline":this.transposeDataBtn.style.display="none")},t.prototype.updateOrderSelector=function(){this.choicesOrderSelector&&("bar"==this.chartType||"vbar"==this.chartType||"line"==this.chartType||"scatter"==this.chartType||("pie"==this.chartType||"doughnut"==this.chartType)&&this.topN>0?this.choicesOrderSelector.style.display="inline-flex":this.choicesOrderSelector.style.display="none",this.choicesOrderSelector.getElementsByTagName("select")[0].value=this.answersOrder)},t.prototype.updateShowPercentageBtn=function(){this.showPercentageBtn&&(this.showPercentageBtn.innerText=this._showPercentages?o.qG.getString("hidePercentages"):o.qG.getString("showPercentages"),"bar"==this.chartType||"vbar"==this.chartType||"stackedbar"==this.chartType?this.showPercentageBtn.style.display="inline":this.showPercentageBtn.style.display="none")},t.prototype.updateTopNSelector=function(){this.topNSelector&&(this.topNSelector.getElementsByTagName("select")[0].value=this._topN)},t.prototype.updateMissingAnswersBtn=function(){this.missingAnswersBtn&&(this.missingAnswersBtn.innerText=this._showMissingAnswers?o.qG.getString("hideMissingAnswers"):o.qG.getString("showMissingAnswers"))},t.prototype.onChartTypeChanged=function(){this.updateOrderSelector(),this.updateShowPercentageBtn(),this.updateEmptyAnswersBtn(),this.updateTopNSelector(),this.stateChanged("chartType",this._chartType)},t.prototype.setChartType=function(e){-1!==this.chartTypes.indexOf(e)&&this._chartType!==e&&(this._chartType=e,this.onChartTypeChanged(),this.refreshContent())},t.prototype.getCorrectAnswerText=function(){var t=e.prototype.getCorrectAnswerText.call(this),i=Array.isArray(t)?t:[t],r=this.question;return i.map((function(e){return s.ItemValue.getTextOrHtmlByValue(r.choices,e)})).join(", ")},t.prototype.isSupportSoftUpdateContent=function(){return!0},t.prototype.softUpdateContent=function(){var e,t=null===(e=this.contentContainer)||void 0===e?void 0:e.children[0];t&&this._chartAdapter.update(t)},t.prototype.getSelectedItemByText=function(e){var t;if(this.question instanceof s.QuestionRatingModel){var i=this.question.rateValues;return null!==(t=null==i?void 0:i.filter((function(t){return t.text===e}))[0])&&void 0!==t?t:new s.ItemValue(parseFloat(e),e)}var r=this.question;return this.question.hasOther&&e==r.otherText?r.otherItem:r.choices.filter((function(t){return t.text===e}))[0]},t.prototype.setSelection=function(e){var t;this.selectedItem!==e&&(this.selectedItem=e,void 0!==this.onDataItemSelected&&this.onDataItemSelected(void 0!==e?e.value:void 0,void 0!==e?e.text:""),this.stateChanged("filter",null===(t=this.selectedItem)||void 0===t?void 0:t.value))},Object.defineProperty(t.prototype,"selection",{get:function(){return this.selectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOnlyPercentages",{get:function(){return this._showOnlyPercentages},set:function(e){this._showOnlyPercentages=e,this.refreshContent(),this.stateChanged("showOnlyPercentages",e)},enumerable:!1,configurable:!0}),t.prototype.getShowPercentagesDefault=function(){return void 0===this.options.showPercentages?-1!==["pie","doughnut"].indexOf(this.chartType):!0===this.options.showPercentages},Object.defineProperty(t.prototype,"showPercentages",{get:function(){return void 0!==this._showPercentages?this._showPercentages:this.getShowPercentagesDefault()},set:function(e){this._showPercentages=e,this.updateShowPercentageBtn(),this.refreshContent(),this.stateChanged("showPercentages",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"answersOrder",{get:function(){return this._answersOrder},set:function(e){this._answersOrder=e,this.updateOrderSelector(),this.refreshContent(),this.stateChanged("answersOrder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideEmptyAnswers",{get:function(){return this._hideEmptyAnswers},set:function(e){this._hideEmptyAnswers=e,this.updateEmptyAnswersBtn(),this.refreshContent(),this.stateChanged("hideEmptyAnswers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transposeData",{get:function(){return this._transposeData},set:function(e){this._transposeData=e,this.updateTransposeDataBtn(),this.refreshContent(),this.stateChanged("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topN",{get:function(){return this._topN},set:function(e){this._topN=e,this.updateTopNSelector(),this.updateOrderSelector(),this.refreshContent(),this.stateChanged("topN",e)},enumerable:!1,configurable:!0}),t.prototype.isSupportAnswersOrder=function(){return!1!==this.options.allowSortAnswers&&!1!==this.options.allowChangeAnswersOrder&&0===this.getSeriesValues().length},t.prototype.isSupportMissingAnswers=function(){return!0},Object.defineProperty(t.prototype,"showMissingAnswers",{get:function(){return this._showMissingAnswers},set:function(e){this._showMissingAnswers=this.isSupportMissingAnswers()&&e,this.updateMissingAnswersBtn(),this.dataProvider.raiseDataChanged(this.name),this.refreshContent(),this.stateChanged("showMissingAnsewrs",e)},enumerable:!1,configurable:!0}),t.prototype.refreshContent=function(){this.contentContainer&&(this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)),this.invokeOnUpdate()},Object.defineProperty(t.prototype,"showValuesInOriginalOrder",{get:function(){return!1!==this.options.showValuesInOriginalOrder},enumerable:!1,configurable:!0}),t.prototype.valuesSource=function(){var e=this.question;return e.choicesFromQuestion&&e.survey&&(e=e.survey.getQuestionByName(e.choicesFromQuestion)),e.activeChoices||e.visibleChoices||e.choices||[]},t.prototype.getValues=function(){var e=this.valuesSource().map((function(e){return e.value}));return this.question.hasNone&&e.push(this.question.noneItem.value),this.question.hasOther&&e.push("other"),this.showMissingAnswers&&e.unshift(void 0),this.showValuesInOriginalOrder?e.reverse():e},t.prototype.getLabels=function(){var e=this;if(this.options.useValuesAsLabels)return this.getValues();var t=this.valuesSource().map((function(t){return s.ItemValue.getTextOrHtmlByValue(e.valuesSource(),t.value)})),i=this.question;return i.hasNone&&t.push(i.noneText),i.hasOther&&t.push(i.otherText),this.showMissingAnswers&&t.unshift(o.qG.getString("missingAnswersLabel")),this.showValuesInOriginalOrder?t.reverse():t},t.prototype.getPercentages=function(e){var t=[],i=this._percentagePrecision;if(e.length<2){var r=e[0].reduce((function(e,t){return e+t}),0);t[0]=e[0].map((function(e){var t=i?+(e/r*100).toFixed(i):Math.round(e/r*100);return r&&t}))}else for(var s=0;s<e[0].length;s++){r=0;for(var n=0;n<e.length;n++)r+=e[n][s];for(n=0;n<e.length;n++){Array.isArray(t[n])||(t[n]=[]);var o=i?+(e[n][s]/r*100).toFixed(i):Math.round(e[n][s]/r*100);t[n][s]=r&&o}}return t},t.prototype.answersDataReady=function(e){var t={};return t=this.hideEmptyAnswers?u(e):e,this.topN>0&&(t.datasets[0]=t.datasets[0].slice(-this.topN),t.labels=t.labels.slice(-this.topN),t.colors=t.colors.slice(-this.topN),t.texts[0]=t.texts[0].slice(-this.topN)),t},t.prototype.getAnswersData=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,i,s,n,o,l,u,h,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=this.getSeriesLabels(),[4,this.getCalculatedValues()];case 1:return t=r.sent(),i=this.getLabels(),s=this.getColors(),this.transposeData&&(t=this.transpose(t),n=e,e=i,i=n),o=this.showPercentages?this.getPercentages(t):t,"asc"!=this.answersOrder&&"desc"!=this.answersOrder||(l=this.showPercentages?a.NW.zipArrays(i,s,o[0]):a.NW.zipArrays(i,s),u=a.NW.sortDictionary(l,t[0],"desc"==this.answersOrder),h=a.NW.unzipArrays(u.keys),i=h[0],s=h[1],this.showPercentages&&(o[0]=h[2]),t[0]=u.values),c={datasets:t,labels:i,colors:s,texts:o,seriesLabels:e},c=this.answersDataReady(c),this.onAnswersDataReady.fire(this,c),[2,c]}}))}))},t.prototype.convertFromExternalData=function(e){var t=this.getValues(),i=this.getSeriesValues(),r=[];if(i.length>0)for(var s=0;s<i.length;s++){for(var n=[],o=0;o<t.length;o++)e[i[s]]?n.push(e[i[s]][t[o]]||0):n.push(0);r.push(n)}else{for(n=[],o=0;o<t.length;o++)n.push(e[t[o]]||0);r.push(n)}return r},t.prototype.transpose=function(e){for(var t=e[0].length,i=new Array(t),r=0;r<t;++r)i[r]=new Array(e.length);for(r=0;r<e.length;++r)for(var s=0;s<t;++s)i[s][r]=e[r][s];return i},t.prototype.getState=function(){var e=this,i={};return t._stateProperties.forEach((function(t){i[t]=e[t]})),this.selectedItem&&(i.filter=this.selectedItem.value),i},t.prototype.setState=function(e){var i=this;t._stateProperties.forEach((function(t){void 0!==e[t]&&(i[t]=e[t])}));var r=s.ItemValue.getItemByValue(this.question.visibleChoices,e.filter);this.setSelection(null!=r?r:void 0)},t.prototype.resetState=function(){e.prototype.resetState.call(this),this._hideEmptyAnswers=!0===this.options.hideEmptyAnswers,this._answersOrder=this.options.answersOrder||"default",this._topN=-1,this.chartType=this.chartTypes[0],this.setSelection(void 0)},t.topNValuesDefaults=[-1,5,10,20],t._stateProperties=["chartType","answersOrder","hideEmptyAnswers","topN"],t}(n.w);l.g.registerVisualizer("checkbox",h),l.g.registerVisualizer("radiogroup",h),l.g.registerVisualizer("dropdown",h),l.g.registerVisualizer("imagepicker",h),l.g.registerVisualizer("tagbox",h),l.g.registerVisualizer("rating",h,100)},226:(e,t,i)=>{"use strict";i.d(t,{Y:()=>u});var r=i(87),s=i(156),n=i(555),o=i(183),a=i(557),l=i(873),u=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"histogram")||this;return n.valueType="number",n._cachedValues=void 0,n._continuousData=void 0,n._cachedIntervals=void 0,n._intervalPrecision=2,n._transposeData=!1,void 0!==n.options.intervalPrecision&&(n._intervalPrecision=n.options.intervalPrecision),"text"!==t.getType()||"date"!==t.inputType&&"datetime"!==t.inputType?n.valueType="number":n.valueType="date",n}return(0,r.C6)(t,e),t.prototype.reset=function(){this._continuousData=void 0,this._cachedValues=void 0,this._cachedIntervals=void 0},t.prototype.getContinuousValue=function(e){return"date"===this.valueType?Date.parse(e):parseFloat(e)},t.prototype.getString=function(e){return"date"===this.valueType?new Date(e).toLocaleDateString():""+e},t.prototype.toPrecision=function(e){var t=Math.pow(10,this._intervalPrecision);return Math.round(t*e)/t},t.prototype.getSelectedItemByText=function(e){if(this.hasCustomIntervals||this.getContinuousValues().length>t.UseIntervalsFrom){var i=this.intervals.filter((function(t){return t.label===e}))[0];return new s.ItemValue(i,void 0!==i?i.label:"")}var r=this.getLabels(),n=r.indexOf(e);return new s.ItemValue(this.getValues()[n],r[n])},t.prototype.updateData=function(t){this.reset(),e.prototype.updateData.call(this,t)},t.prototype.onDataChanged=function(){this.reset(),e.prototype.onDataChanged.call(this)},t.prototype.getContinuousValues=function(){var e=this;if(void 0===this._cachedValues){var t=this.getSeriesValues();0===t.length&&t.push(""),this._continuousData={},t.forEach((function(t){return e._continuousData[t]=[]}));var i={};this.data.forEach((function(t){var r=t[e.name];if(void 0!==r){var s=t[n.M.seriesMarkerKey]||"";e._continuousData[s].push(e.getContinuousValue(r)),i[r]=r}})),this._cachedValues=Object.keys(i).map((function(t){return{original:i[t],continuous:e.getContinuousValue(t)}})),this._cachedValues.sort((function(e,t){return e.continuous-t.continuous}))}return this._cachedValues},t.prototype.isSupportMissingAnswers=function(){return!1},Object.defineProperty(t.prototype,"needUseRateValues",{get:function(){return"rating"==this.question.getType()&&Array.isArray(this.question.rateValues)&&this.question.rateValues.length>0},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.intervals.map((function(e){return e.start}))},t.prototype.getLabels=function(){return this.intervals.map((function(e){return e.label}))},Object.defineProperty(t.prototype,"hasCustomIntervals",{get:function(){return!!this.questionOptions&&Array.isArray(this.questionOptions.intervals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intervals",{get:function(){if(this.hasCustomIntervals)return this.questionOptions.intervals;if("rating"==this.question.getType()){if(this.needUseRateValues){var e=this.question.rateValues;return e.sort((function(e,t){return e.value-t.value})),e.map((function(t,i){return{start:t.value,end:i<e.length-1?e[i+1].value:t.value+1,label:t.text}}))}for(var i=[],r=this.question.rateMin||0;r<=(this.question.rateMax||t.IntervalsCount-1);r+=this.question.rateStep||1)i.push({start:r,end:r+1,label:""+(this.question.rateMin&&this.question.rateMax?r:r+"-"+(r+1))});return i}if(void 0===this._cachedIntervals){var s=this.getContinuousValues();if(this._cachedIntervals=[],s.length){var n=s[0].continuous,o=s[s.length-1].continuous,a=t.IntervalsCount,l=(o-n)/a;for(r=0;r<a;++r){var u=n+l,h=this.toPrecision(n),c=this.toPrecision(u);this._cachedIntervals.push({start:h,end:r<a-1?c:c+l/100,label:this.getString(h)+"-"+this.getString(c)}),n=u}}}return this._cachedIntervals},enumerable:!1,configurable:!0}),t.prototype.convertFromExternalData=function(e){return[e]},t.prototype.getCalculatedValuesCore=function(){return this.getContinuousValues(),(0,l.er)(this._continuousData,this.intervals,this.getSeriesValues())},t.prototype.getValueType=function(){return this.valueType},t.IntervalsCount=10,t.UseIntervalsFrom=10,t}(o.o);a.g.registerVisualizer("date",u),a.g.registerVisualizer("number",u,100),a.g.registerVisualizer("rating",u,300)},240:(e,t,i)=>{"use strict";i.d(t,{DQ:()=>o,UN:()=>a,qG:()=>n});var r=i(391),s=i(156),n={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},setupLocale:function(e,t){this.locales[e]=t},getLocaleName:function(e,t){return void 0===t&&(t=!1),(t?"":this.localeNames[e])||s.surveyLocalization.getLocaleName(e,t)},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var i=t[e];return void 0===i&&(i=this.locales.en[e]||e),i},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 i in this.locales)e.push(i);return e.sort(),e}},o=r.z;function a(e){var t=e.localeCode;n.setupLocale(t,e.strings),e.nativeName&&(n.localeNames[t]=e.nativeName)}a({localeCode:"en",strings:r.z,nativeName:"English"})},267:(e,t,i)=>{"use strict";i.d(t,{b:()=>c,w:()=>d});var r=i(87),s=i(156),n=i(555),o=i(818),a=i(557),l=i(70),u=i(240),h=i(873),c=function(){function e(){}return e.postpone=function(t,i){return e.postponeFunction?e.postponeFunction(t,i):setTimeout(t,i)},e}(),d=function(){function e(t,i,r,o){void 0===r&&(r={});var a,l=this;this.question=t,this.options=r,this._type=o,this._showToolbar=!0,this._footerVisualizer=void 0,this._dataProvider=void 0,this._getDataCore=void 0,this.labelTruncateLength=27,this.haveCommercialLicense=!1,this.renderResult=void 0,this.toolbarContainer=void 0,this.headerContainer=void 0,this.contentContainer=void 0,this.footerContainer=void 0,this._supportSelection=!1,this._chartAdapter=void 0,this._footerIsCollapsed=void 0,this.onAfterRender=new s.Event,this.onLocaleChanged=new s.Event,this.onStateChanged=new s.Event,this.toolbarItemCreators={},this._backgroundColor="#f7f7f7",this._calculationsCache=void 0,this.loadingData=!1,this._settingState=!1;var u=s.hasLicense;this.haveCommercialLicense=!!u&&u(4)||e.haveCommercialLicense||void 0!==r.haveCommercialLicense&&r.haveCommercialLicense,this._getDataCore=null===(a=this.questionOptions)||void 0===a?void 0:a.getDataCore,this._dataProvider=r.dataProvider||new n.M(i),this._dataProvider.onDataChanged.add((function(){return l.onDataChanged()})),this.loadingData=!!this._dataProvider.dataFn,void 0!==r.labelTruncateLength&&(this.labelTruncateLength=r.labelTruncateLength)}return e.prototype.afterRender=function(e){this.onAfterRender.fire(this,{htmlElement:e})},e.prototype.stateChanged=function(e,t){this._settingState||this.onStateChanged.fire(this,this.getState())},e.prototype.getToolbarItemCreators=function(){return Object.assign({},this.toolbarItemCreators,this.onGetToolbarItemCreators&&this.onGetToolbarItemCreators()||{})},Object.defineProperty(e.prototype,"questionOptions",{get:function(){var e;return this.options[null===(e=this.question)||void 0===e?void 0:e.name]},enumerable:!1,configurable:!0}),e.prototype.onDataChanged=function(){this._calculationsCache=void 0,this.loadingData=!!this._dataProvider.dataFn,this.refresh()},Object.defineProperty(e.prototype,"name",{get:function(){return this.question.valueName||this.question.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataNames",{get:function(){return[this.name]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHeader",{get:function(){return!!(this.options&&this.options.showCorrectAnswers&&this.question&&this.question.correctAnswer)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasFooter",{get:function(){return!!this.question&&(this.question.hasComment||this.question.hasOther)},enumerable:!1,configurable:!0}),e.prototype.createVisualizer=function(e,t,i){var r=Object.assign({},t||this.options);return void 0===r.dataProvider&&(r.dataProvider=this.dataProvider),o.D.createVisualizer(e,i||this.data,r)},Object.defineProperty(e.prototype,"footerVisualizer",{get:function(){var e=this;if(this.hasFooter){if(!this._footerVisualizer){var t=new s.QuestionCommentModel(this.question.name+(s.settings||{}).commentPrefix);t.title=this.processText(this.question.title);var i=Object.assign({},this.options);i.renderContent=void 0,this._footerVisualizer=this.createVisualizer(t,i),this._footerVisualizer&&(this._footerVisualizer.onUpdate=function(){return e.invokeOnUpdate()})}return this._footerVisualizer}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportSelection",{get:function(){return(void 0===this.options.allowSelection||this.options.allowSelection)&&this._supportSelection},enumerable:!1,configurable:!0}),e.prototype.getSeriesValues=function(){return this.options.seriesValues||[]},e.prototype.getSeriesLabels=function(){return this.options.seriesLabels||this.getSeriesValues()},e.prototype.getValues=function(){throw new Error("Method not implemented.")},e.prototype.getLabels=function(){return this.getValues()},e.prototype.registerToolbarItem=function(e,t,i){void 0===i&&(i=100),this.toolbarItemCreators[e]={creator:t,order:i}},e.prototype.unregisterToolbarItem=function(e){if(void 0!==this.toolbarItemCreators[e]){var t=this.toolbarItemCreators[e];return delete this.toolbarItemCreators[e],t.creator}},Object.defineProperty(e.prototype,"title",{get:function(){return this.getTitle(this.question)},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(e){var t;return void 0===e?"":this.processText((null===(t=e.locTitle)||void 0===t?void 0:t.renderedHtml)?e.locTitle.renderedHtml:e.title)},Object.defineProperty(e.prototype,"type",{get:function(){return this._type||"visualizer"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataProvider.filteredData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surveyData",{get:function(){return this.dataProvider.filteredData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataProvider",{get:function(){return this._dataProvider},enumerable:!1,configurable:!0}),e.prototype.updateData=function(e){var t=this.options.dataPath,i=e;t&&Array.isArray(e)&&(i=[],e.forEach((function(e){e&&void 0!==e[t]&&(Array.isArray(e[t])?i=i.concat(e[t]):i.push(e[t]))}))),this.options.dataProvider||(this.dataProvider.data=i),this.hasFooter&&this.footerVisualizer.updateData(i)},e.prototype.invokeOnUpdate=function(){this.onUpdate&&this.onUpdate()},e.prototype.destroy=function(){this.renderResult&&(this.clear(),this.toolbarContainer=void 0,this.headerContainer=void 0,this.contentContainer=void 0,this.footerContainer=void 0,this.renderResult.innerHTML="",this.renderResult=void 0),this._footerVisualizer&&(this._footerVisualizer.destroy(),this._footerVisualizer.onUpdate=void 0,this._footerVisualizer=void 0)},e.prototype.clear=function(){this.toolbarContainer&&this.destroyToolbar(this.toolbarContainer),this.headerContainer&&this.destroyHeader(this.headerContainer),this.contentContainer&&this.destroyContent(this.contentContainer),this.footerContainer&&this.destroyFooter(this.footerContainer)},e.prototype.createToolbarItems=function(e){var t=this.getToolbarItemCreators();Object.keys(t||{}).map((function(e){return(0,r.Cl)({name:e},t[e])})).sort((function(e,t){return e.order-t.order})).forEach((function(t){var i=t.creator(e);i&&e.appendChild(i)}))},e.prototype.getCorrectAnswerText=function(){return this.question?this.question.correctAnswer:""},e.prototype.destroyToolbar=function(e){e.innerHTML=""},e.prototype.renderToolbar=function(e){if(this.showToolbar){var t=l.gf.createElement("div","sa-toolbar");this.createToolbarItems(t),e.appendChild(t)}},e.prototype.destroyHeader=function(e){this.options&&"function"==typeof this.options.destroyHeader?this.options.destroyHeader(e,this):e.innerHTML=""},e.prototype.destroyContent=function(e){this.options&&"function"==typeof this.options.destroyContent?this.options.destroyContent(e,this):this._chartAdapter&&this._chartAdapter.destroy(e.children[0]),e.innerHTML=""},e.prototype.renderHeader=function(e){if(this.options&&"function"==typeof this.options.renderHeader)this.options.renderHeader(e,this);else{var t=l.gf.createElement("div","sa-visualizer__correct-answer");t.innerText=u.qG.getString("correctAnswer")+this.getCorrectAnswerText(),e.appendChild(t)}},e.prototype.renderContentAsync=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return this._chartAdapter?(t=l.gf.createElement("div"),e.innerHTML="",e.appendChild(t),[4,this._chartAdapter.create(t)]):[3,2];case 1:return i.sent(),[3,3];case 2:e.innerText=u.qG.getString("noVisualizerForQuestion"),i.label=3;case 3:return[2,e]}}))}))},e.prototype.ensureQuestionIsReady=function(){var e=this;return new Promise((function(t){e.question?e.question.waitForQuestionIsReady().then((function(){return t()})):t()}))},e.prototype.renderContent=function(e){var t=this;this.options&&"function"==typeof this.options.renderContent?!1!==this.options.renderContent(e,this)&&this.afterRender(e):(this.loadingData&&this.renderLoadingIndicator(this.contentContainer),this.ensureQuestionIsReady().then((function(){return t.renderContentAsync(e).then((function(e){return t.afterRender(e)}))})))},e.prototype.destroyFooter=function(e){e.innerHTML=""},Object.defineProperty(e.prototype,"isFooterCollapsed",{get:function(){return void 0===this._footerIsCollapsed&&(this._footerIsCollapsed=e.otherCommentCollapsed),this._footerIsCollapsed},set:function(e){this._footerIsCollapsed=e},enumerable:!1,configurable:!0}),e.prototype.renderFooter=function(e){var t=this;if(e.innerHTML="",this.hasFooter){var i=l.gf.createElement("h4","sa-visualizer__footer-title",{innerText:u.qG.getString("otherCommentTitle")});e.appendChild(i);var r=l.gf.createElement("div","sa-visualizer__footer-content");r.style.display=this.isFooterCollapsed?"none":"block";var s=u.qG.getString(this.isFooterCollapsed?"showButton":"hideButton"),n=l.gf.createButton((function(){"none"===r.style.display?(r.style.display="block",n.innerText=u.qG.getString("hideButton"),t._footerIsCollapsed=!1):(r.style.display="none",n.innerText=u.qG.getString("showButton"),t._footerIsCollapsed=!0),t.footerVisualizer.invokeOnUpdate()}),s);e.appendChild(n),e.appendChild(r),this.footerVisualizer.render(r)}},e.prototype.render=function(e){"string"==typeof e&&(e=document.getElementById(e)),this.renderResult=e,this.toolbarContainer=l.gf.createElement("div","sa-visualizer__toolbar"),e.appendChild(this.toolbarContainer),this.renderToolbar(this.toolbarContainer),this.hasHeader&&(this.headerContainer=l.gf.createElement("div","sa-visualizer__header"),e.appendChild(this.headerContainer),this.renderHeader(this.headerContainer)),this.contentContainer=l.gf.createElement("div","sa-visualizer__content"),e.appendChild(this.contentContainer),this.renderContent(this.contentContainer),this.footerContainer=l.gf.createElement("div","sa-visualizer__footer"),e.appendChild(this.footerContainer),this.renderFooter(this.footerContainer)},e.prototype.updateToolbar=function(){var e=this;this.toolbarContainer&&c.postpone((function(){e.destroyToolbar(e.toolbarContainer),e.renderToolbar(e.toolbarContainer)}))},e.prototype.isSupportSoftUpdateContent=function(){return!1},e.prototype.softUpdateContent=function(){},e.prototype.hardUpdateContent=function(){this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)},e.prototype.updateContent=function(){this.isSupportSoftUpdateContent()?this.softUpdateContent():this.hardUpdateContent()},e.prototype.refresh=function(){var e=this;this.headerContainer&&c.postpone((function(){e.destroyHeader(e.headerContainer),e.renderHeader(e.headerContainer),e.invokeOnUpdate()})),this.contentContainer&&c.postpone((function(){e.updateContent(),e.invokeOnUpdate()})),this.footerContainer&&c.postpone((function(){e.destroyFooter(e.footerContainer),e.renderFooter(e.footerContainer),e.invokeOnUpdate()}))},e.prototype.processText=function(e){return!1!==this.options.stripHtmlFromTitles?(e||"").replace(/(<([^>]+)>)/gi,""):e},e.prototype.getRandomColor=function(){var e=this.getColors();return e[Math.floor(Math.random()*e.length)]},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.getBackgroundColorCore()},set:function(e){this.setBackgroundColorCore(e)},enumerable:!1,configurable:!0}),e.prototype.getBackgroundColorCore=function(){return this._backgroundColor},e.prototype.setBackgroundColorCore=function(e){this._backgroundColor=e,this.footerVisualizer&&(this.footerVisualizer.backgroundColor=e)},e.prototype.getColors=function(t){void 0===t&&(t=10);for(var i=Array.isArray(e.customColors)&&e.customColors.length>0?e.customColors:e.colors,r=[],s=0;s<t;s++)r=r.concat(i);return r},Object.defineProperty(e.prototype,"showToolbar",{get:function(){return this._showToolbar},set:function(e){e!=this._showToolbar&&(this._showToolbar=e,this.toolbarContainer&&(this.destroyToolbar(this.toolbarContainer),this.renderToolbar(this.toolbarContainer)))},enumerable:!1,configurable:!0}),e.prototype.getData=function(){return this.getCalculatedValuesCore()},e.prototype.getCalculatedValuesCore=function(){return this._getDataCore?this._getDataCore(this):(0,h.X3)(this.surveyData,this)},e.prototype.renderLoadingIndicator=function(e){e.appendChild((0,l.QV)())},e.prototype.convertFromExternalData=function(e){return e},e.prototype.getCalculatedValues=function(){var e=this;return new Promise((function(t,i){if(void 0!==e._calculationsCache&&t(e._calculationsCache),e.dataProvider.dataFn){e.loadingData=!0;var r=e.dataProvider.dataFn({visualizer:e,filter:e.dataProvider.getFilters(),callback:function(r){e.loadingData=!1,!r.error&&Array.isArray(r.data)?(e._calculationsCache=e.convertFromExternalData(r.data),t(e._calculationsCache)):i()}});r&&r.then((function(i){e.loadingData=!1,e._calculationsCache=e.convertFromExternalData(i),t(e._calculationsCache)})).catch((function(){e.loadingData=!1,i()}))}else e._calculationsCache=e.getCalculatedValuesCore(),t(e._calculationsCache)}))},e.prototype.getState=function(){return{}},e.prototype.setState=function(e){},e.prototype.resetState=function(){},Object.defineProperty(e.prototype,"locale",{get:function(){var e=this.options.survey;return e?e.locale:u.qG.currentLocale},set:function(e){this.setLocale(e),this.onLocaleChanged.fire(this,{locale:e}),this.refresh()},enumerable:!1,configurable:!0}),e.prototype.setLocale=function(e){u.qG.currentLocale=e;var t=this.options.survey;t&&t.locale!==e&&(t.locale=e)},e.haveCommercialLicense=!1,e.suppressVisualizerStubRendering=!1,e.chartAdapterType=void 0,e.otherCommentCollapsed=!0,e.customColors=[],e.colors=["#86e1fb","#3999fb","#ff6771","#1eb496","#ffc152","#aba1ff","#7d8da5","#4ec46c","#cf37a6","#4e6198"],e}();a.g.defaultVisualizer=d},288:(e,t,i)=>{var r={"./detail.svg":782,"./drag.svg":307,"./hide.svg":41,"./makeprivate.svg":24,"./makepublic.svg":452,"./moveToDetails.svg":637,"./nonCommercial.svg":388,"./sorting.svg":999};function s(e){var t=n(e);return i(t)}function n(e){if(!i.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}s.keys=function(){return Object.keys(r)},s.resolve=n,e.exports=s,s.id=288},307:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><polygon points="13,5 12,6 13,7 9,7 9,3 10,4 11,3 8,0 5,3 6,4 7,3 7,7 3,7 4,6 3,5 0,8 3,11 4,10 3,9 7,9 7,13 6,12 5,13 8,16 11,13 10,12 9,13 9,9 13,9 12,10 13,11 16,8 "></polygon></g></svg>'},388:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><path d="M8,0L0,15h16L8,0z M9,13H7v-2h2V13z M7,10V5h2v5H7z"></path></svg>'},391:(e,t,i)=>{"use strict";i.d(t,{z:()=>r});var r={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",showAsColumn:"Show as Column",filterPlaceholder:"Search...",removeRows:"Remove rows",showLabel:"Show",entriesLabel:"entries",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Average",visualizer_choices:"Table",visualizer_selectBase:"Chart",visualizer_matrix:"Chart",chartType_bar:"Bar",chartType_vbar:"Vertical Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",chartType_line:"Line",chartType_radar:"Radar",hideButton:"Hide",makePrivateButton:"Make private",makePublicButton:"Make public",showButton:"Show",filter:"Filter",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default Order",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",actionsColumn:"Actions",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot as a PNG file",hideEmptyAnswers:"Hide empty answers",showEmptyAnswers:"Show empty answers","topNValueText-1":"All answers",topNValueText5:"Top 5 answers",topNValueText10:"Top 10 answers",topNValueText20:"Top 20 answers",hideMissingAnswers:"Hide missing answers",showMissingAnswers:"Show missing answers",missingAnswersLabel:"Missing answers",noVisualizerForQuestion:"This question type is not visualized yet",noResults:"There are no results yet",showPerValues:"Per Values",showPerColumns:"Per Columns",answer:"Answer",correctAnswer:"Correct answer: ",percent:"Percent",percentage:"Percentage",statistics_chart:"Chart",responses:"Responses",visualizer_nps:"NPS",visualizer_boolean:"Chart",visualizer_options:"Table",npsScore:"NPS",npsPromoters:"Promoters",npsPassives:"Passives",npsDetractors:"Detractors",axisXSelectorTitle:"Category (X Axis):",axisYSelectorTitle:"Legend (Series):",axisXAlternativeSelectorTitle:"Segments:",axisYAlternativeSelectorTitle:"Groups:",notSelected:"Not selected",license:"To use the Dashboard library in your application, a <a href='https://surveyjs.io/licensing' target='_blank'>developer license</a> is required. If you have an active license, please <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up your license key</a> and ensure you're using the <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>latest version</a>.",license2:"This banner appears because your maintenance subscription for the Dashboard library expired on {date}. You may continue using <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>all versions released up to that date</a>. To remove this banner in the latest version, please <a href='https://surveyjs.io/manage#license-manager' target='_blank'>renew your subscription</a> and <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up a new license key</a>."}},452:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><g><circle cx="6" cy="5" r="3"></circle><path d="M10,5c0,0.34-0.06,0.67-0.14,0.99C9.91,5.99,9.95,6,10,6c1.66,0,3-1.34,3-3s-1.34-3-3-3 C8.97,0,8.07,0.52,7.53,1.3C8.98,1.91,10,3.33,10,5z"></path><path d="M6,9c-3.31,0-6,2.73-6,4.67S3.27,16,6,16s6-0.4,6-2.33S9.31,9,6,9z"></path><path d="M10,7C9.81,7,9.62,7.01,9.43,7.03C9.09,7.6,8.62,8.07,8.06,8.42c3,0.83,5.23,3.31,5.42,5.28 c1.44-0.31,2.52-0.92,2.52-2.03C16,9.74,13.31,7,10,7z"></path></g></svg>'},453:(e,t,i)=>{"use strict";i.d(t,{AlternativeVisualizersWrapper:()=>m,BooleanModel:()=>l.o,DataProvider:()=>s.M,DocumentHelper:()=>f.gf,HistogramModel:()=>u.Y,Matrix:()=>a.u,NpsAdapter:()=>Y,NpsVisualizer:()=>F,NpsVisualizerWidget:()=>H,NumberModel:()=>h.R,PivotModel:()=>Q.y,PostponeHelper:()=>c.b,RankingModel:()=>X.O,SelectBase:()=>o.o,StatisticsTable:()=>j,StatisticsTableAdapter:()=>I,StatisticsTableBoolean:()=>G,Text:()=>q,TextTableAdapter:()=>R,VisualizationComposite:()=>E,VisualizationManager:()=>d.g,VisualizationMatrixDropdown:()=>D,VisualizationMatrixDynamic:()=>z,VisualizationPanel:()=>A,VisualizationPanelDynamic:()=>k,VisualizerBase:()=>c.w,VisualizerFactory:()=>n.D,WordCloud:()=>B,WordCloudAdapter:()=>N,hideEmptyAnswersInData:()=>o.M,localization:()=>r.qG,setupLocale:()=>r.UN,surveyStrings:()=>r.DQ,textHelper:()=>L});var r=i(240);(0,r.UN)({localeCode:"fa",strings:{groupButton:"گروه بندی با",ungroupButton:"حذف گروه",selectButton:"انتخاب",hideColumn:"مخفی کردن ستون",showColumn:"نمایش ستون",makePrivateColumn:"خصوصی کردن ستون",makePublicColumn:"عمومی کردن ستون",moveToDetail:"انتقال به جزئیات",showAsColumn:"نمایش به عنوان ستون",filterPlaceholder:"جستجو...",removeRows:"حذف سطرها",showLabel:"نمایش",entriesLabel:"ورودی",visualizer_text:"متون در جدول",visualizer_wordcloud:"ابر کلمات",visualizer_histogram:"هیستوگرام",visualizer_number:"متوسط",visualizer_choices:"جدول",visualizer_selectBase:"نمودار",visualizer_matrix:"نمودار",chartType_bar:"نوار",chartType_vbar:"نوار عمودی",chartType_stackedbar:"نوار پشته",chartType_doughnut:"دونات",chartType_pie:"دابره ای(pie)",chartType_scatter:"پراکندگی(Scatter)",chartType_gauge:"عقربه ای",chartType_bullet:"Bullet",chartType_line:"خط",chartType_radar:"رادار",hideButton:"مخفی",makePrivateButton:"خصوصی کردن",makePublicButton:"عمومی کردن",showButton:"نمایش",filter:"فیلتر",resetFilter:"بازنشانی فیلترها",changeLocale:"تغییر محلی",clearButton:"پاک کردن",addElement:"انتخاب سوال برای نمایش...",defaultOrder:"ترتیب پیشفرض",ascOrder:"صعودی",descOrder:"نزولی",showMinorColumns:"نمایش ستونهای فرعی",actionsColumn:"اقدامات",otherCommentTitle:"سایر موارد و نظرات",showPercentages:"نمایش درصد",hidePercentages:"درصدهای مخفی",pdfDownloadCaption:"پی دی اف",xlsxDownloadCaption:"اکسل",csvDownloadCaption:"Csv",saveDiagramAsPNG:"دانلود طرح به عنوان یک فایل PNG",hideEmptyAnswers:"مخفی کردن پاسخهای خالی",showEmptyAnswers:"نمایش پاسخهای خالی","topNValueText-1":"همه پاسخ ها",topNValueText5:"5 پاسخ برتر",topNValueText10:"10 پاسخ برتر",topNValueText20:"20 پاسخ برتر",hideMissingAnswers:"مخفی کردن پاسخهای گمشده",showMissingAnswers:"نمایش پاسخهای گمشده",missingAnswersLabel:"پاسخ های گمشده",noVisualizerForQuestion:"این نوع سوال هنوز تجسم نشده است",noResults:"هنوز نتیجه ای حاصل نشده است",showPerValues:"به ازای هر ارزش",showPerColumns:"در هر ستون",answer:"پاسخ",correctAnswer:"پاسخ صحیح: ",percent:"درصد",percentage:"درصد",statistics_chart:"نمودار",responses:"پاسخ",visualizer_nps:"NPS",visualizer_boolean:"نمودار",visualizer_options:"جدول",npsScore:"NPS",npsPromoters:"مروج",npsPassives:"منفعل ها",npsDetractors:"بدهیدان",axisXSelectorTitle:"دسته (محور X):",axisYSelectorTitle:"افسانه (سری):",axisXAlternativeSelectorTitle:"بخش:",axisYAlternativeSelectorTitle:"گروه:",notSelected:"انتخاب نشده است"},nativeName:"فارسی"}),(0,r.UN)({localeCode:"fr",strings:{groupButton:"Grouper",ungroupButton:"Dissocier",selectButton:"Sélectionner",hideColumn:"Masquer colonne",showColumn:"Afficher colonne",makePrivateColumn:"Rendre la colonne privé",makePublicColumn:"Rendre la colonne public",moveToDetail:"Déplacer vers détails",showAsColumn:"Afficher en colonne",filterPlaceholder:"Rechercher...",removeRows:"Supprimer colonne",showLabel:"Afficher",entriesLabel:"entrées",visualizer_text:"Textes en table",visualizer_wordcloud:"Nuages de mots",visualizer_histogram:"Histogramme",visualizer_number:"Moyenne",visualizer_choices:"Table",visualizer_selectBase:"Graphique",visualizer_matrix:"Graphique",chartType_bar:"Bar",chartType_vbar:"Barre verticale",chartType_stackedbar:"Barres empilées",chartType_doughnut:"Anneau",chartType_pie:"Secteurs",chartType_scatter:"Nuages de points",chartType_gauge:"Gauge",chartType_bullet:"Bulles",chartType_line:"Ligne",chartType_radar:"Radar",hideButton:"Masquer",makePrivateButton:"Rendre privé",makePublicButton:"Rendre publique",showButton:"Afficher",filter:"Filtre",resetFilter:"Rafraichir Filtres",changeLocale:"Changer les paramètres régionaux",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures",actionsColumn:"Actions",otherCommentTitle:"Autre élément et commentaires",showPercentages:"Afficher les pourcentages",hidePercentages:"Masquer les pourcentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Exceller",csvDownloadCaption:"Fichier CSV",saveDiagramAsPNG:"Sauver en png",hideEmptyAnswers:"Masquer les réponses vides",showEmptyAnswers:"Afficher les réponses vides","topNValueText-1":"Toutes les réponses",topNValueText5:"Top 5 des réponses",topNValueText10:"Top 10 des réponses",topNValueText20:"Top 20 des réponses",hideMissingAnswers:"Masquer les réponses manquantes",showMissingAnswers:"Afficher les réponses manquantes",missingAnswersLabel:"Réponses manquantes",noVisualizerForQuestion:"Ce type de question n'est pas encore visualisé",noResults:"Il n'y a pas encore de résultats",showPerValues:"Par valeur",showPerColumns:"Par colonne",answer:"Réponse",correctAnswer:"Réponse correcte: ",percent:"Pourcentage",percentage:"Pourcentage",statistics_chart:"Graphique",responses:"Réponses",visualizer_nps:"Le NPS",visualizer_boolean:"Graphique",visualizer_options:"Table",npsScore:"Le NPS",npsPromoters:"Promoteurs",npsPassives:"Passifs",npsDetractors:"Détracteurs",axisXSelectorTitle:"Catégorie (axe X) :",axisYSelectorTitle:"Légende (série) :",axisXAlternativeSelectorTitle:"Segments:",axisYAlternativeSelectorTitle:"Groupe:",notSelected:"Non sélectionné"},nativeName:"Français"}),(0,r.UN)({localeCode:"de",strings:{groupButton:"Gruppieren",ungroupButton:"Gruppierung aufheben",selectButton:"Mich auswählen",hideColumn:"Spalte ausblenden",showColumn:"Spalte einblenden",makePrivateColumn:"Spalte privat machen",makePublicColumn:"Spalte veröffentlichen",moveToDetail:"in Details verschieben",showAsColumn:"Als Spalte anzeigen",filterPlaceholder:"Suche...",removeRows:"Zeilen entfernen",showLabel:"anzeigen",entriesLabel:"Einträge",visualizer_text:"Texte in Tabellenform",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogramm",visualizer_number:"Durchschnitt",visualizer_choices:"Liste",visualizer_selectBase:"Diagrammtyp",visualizer_matrix:"Diagramm",chartType_bar:"Stab",chartType_vbar:"Balkendiagramm vertikal",chartType_stackedbar:"Gestapeltes Balkendiagramm",chartType_doughnut:"Donut-Diagramm",chartType_pie:"Kreisdiagramm",chartType_scatter:"Punktediagramm",chartType_gauge:"Pegeldiagramm",chartType_bullet:"Aufzählungsdiagramm",chartType_line:"Linie",chartType_radar:"Radar",hideButton:"Ausblenden",makePrivateButton:"Privat machen",makePublicButton:"Öffentlich machen",showButton:"Anzeigen",filter:"Filter",resetFilter:"Filter zurücksetzen",changeLocale:"Lokalisierung ändern",clearButton:"Einstellungen löschen",addElement:"Wählen Sie eine Frage, um zu zeigen...",defaultOrder:"Standardreihenfolge",ascOrder:"Aufsteigend",descOrder:"Absteigend",showMinorColumns:"Kleinere Spalten anzeigen",actionsColumn:"Aktionen",otherCommentTitle:"Andere Punkte und Kommentare",showPercentages:"Prozentsätze anzeigen",hidePercentages:"Prozentsätze ausblenden",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Diagramm als png herunterladen",hideEmptyAnswers:"Leere Antworten ausblenden",showEmptyAnswers:"Leere Antworten anzeigen","topNValueText-1":"Alle Antworten",topNValueText5:"Top 5 Antworten",topNValueText10:"Top 10 Antworten",topNValueText20:"Top 20 Antworten",hideMissingAnswers:"Fehlende Antworten ausblenden",showMissingAnswers:"Fehlende Antworten anzeigen",missingAnswersLabel:"Fehlede Antworten",noVisualizerForQuestion:"Für diesen Fragetyp gibt es noch keine Visualisierung.",noResults:"Es liegen noch keine Ergebnisse vor",showPerValues:"Pro Wert",showPerColumns:"Pro Spalte",answer:"Antwort",correctAnswer:"Korrekte Antwort: ",percent:"Prozent",percentage:"Prozentsatz",statistics_chart:"Diagramm",responses:"Antworten",visualizer_nps:"NPS (NPS)",visualizer_boolean:"Diagramm",visualizer_options:"Tisch",npsScore:"NPS (NPS)",npsPromoters:"Promotoren",npsPassives:"Passive Fähigkeiten",npsDetractors:"Kritiker",axisXSelectorTitle:"Kategorie (X-Achse):",axisYSelectorTitle:"Legende (Serie):",axisXAlternativeSelectorTitle:"Segmente:",axisYAlternativeSelectorTitle:"Gruppen:",notSelected:"Nicht ausgewählt"},nativeName:"Deutsch"}),(0,r.UN)({localeCode:"no",strings:{groupButton:"Grupper",ungroupButton:"Opphev gruppering",selectButton:"Velg",hideColumn:"Skjul kolonne",showColumn:"Vis kolonne",makePrivateColumn:"Gjør kolonne privat",makePublicColumn:"Gjør kolonne offentlig",moveToDetail:"Flytt til detaljert visning",showAsColumn:"Vis som kolonne",filterPlaceholder:"Søk...",removeRows:"Fjern rader",showLabel:"Vis",entriesLabel:"oppføringer",visualizer_text:"Tabellvisning",visualizer_wordcloud:"Ordsky",visualizer_histogram:"Histogram",visualizer_number:"Gjennomsnitt",visualizer_choices:"Bord",visualizer_selectBase:"Sjøkart",visualizer_matrix:"Sjøkart",chartType_bar:"Bar",chartType_vbar:"Vertikal stolpe",chartType_stackedbar:"Stablet stolpediagram",chartType_doughnut:"Hjuldiagram",chartType_pie:"Sektordiagram",chartType_scatter:"Punktdiagram",chartType_gauge:"Målediagram",chartType_bullet:"Kulediagram",chartType_line:"Linje",chartType_radar:"Radar",hideButton:"Skjul",makePrivateButton:"Gjør privat",makePublicButton:"Gjør offentlig",showButton:"Vis",filter:"Filter",resetFilter:"Nullstill filter",changeLocale:"Bytt språk",clearButton:"Tøm",addElement:"Velg spørsmål...",defaultOrder:"Standard",ascOrder:"Stigende",descOrder:"Synkende",showMinorColumns:"Vis mindre kolonner",actionsColumn:"Handlinger",otherCommentTitle:"Annet og kommentarer",showPercentages:"Vis prosenter",hidePercentages:"Skjul prosenter",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Overgå",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Last ned plott som en PNG-fil",hideEmptyAnswers:"Skjul tomme svar",showEmptyAnswers:"Vis tomme svar","topNValueText-1":"Alle svar",topNValueText5:"Topp 5 svar",topNValueText10:"Topp 10 svar",topNValueText20:"Topp 20 svar",hideMissingAnswers:"Skjul manglende svar",showMissingAnswers:"Vis manglende svar",missingAnswersLabel:"Mangler svar",noVisualizerForQuestion:"Denne spørsmålstypen er ikke visualisert ennå",noResults:"Det er ingen resultater ennå",showPerValues:"Per verdier",showPerColumns:"Per kolonner",answer:"Svare",correctAnswer:"Riktig svar: ",percent:"Prosent",percentage:"Prosent",statistics_chart:"Sjøkart",responses:"Svar",visualizer_nps:"NPS",visualizer_boolean:"Sjøkart",visualizer_options:"Bord",npsScore:"NPS",npsPromoters:"Arrangører",npsPassives:"Passive",npsDetractors:"Motstandere",axisXSelectorTitle:"Kategori (X-akse):",axisYSelectorTitle:"Legende (serie):",axisXAlternativeSelectorTitle:"Segmenter:",axisYAlternativeSelectorTitle:"Grupper:",notSelected:"Ikke valgt"},nativeName:"Norsk"}),(0,r.UN)({localeCode:"pt",strings:{groupButton:"Agrupar Por Mim",ungroupButton:"Desagrupar Por Mim",selectButton:"Selecionar",hideColumn:"Esconder coluna",showColumn:"Mostrar coluna",makePrivateColumn:"Tornar coluna privada",makePublicColumn:"Tornar coluna pública",moveToDetail:"Mover para Detalhes",showAsColumn:"Mostrar como Coluna",filterPlaceholder:"Pesquisar...",removeRows:"Remover linhas",showLabel:"Mostrar",entriesLabel:"entradas",visualizer_text:"Textos em tabela",visualizer_wordcloud:"Nuvem de palavras",visualizer_histogram:"Histograma",visualizer_number:"Média",visualizer_choices:"Tabela",visualizer_selectBase:"Gráfico",visualizer_matrix:"Gráfico",chartType_bar:"Barra",chartType_vbar:"Barra vertical",chartType_stackedbar:"Barra Empilhada",chartType_doughnut:"Rosca",chartType_pie:"Tarte",chartType_scatter:"Lastro",chartType_gauge:"Escala",chartType_bullet:"Bala",chartType_line:"Linha",chartType_radar:"Radar",hideButton:"Esconder",makePrivateButton:"Tornar privado",makePublicButton:"Tornar público",showButton:"Mostrar",filter:"Filtrar",resetFilter:"Restaurar Filtro",changeLocale:"Mudar Localização",clearButton:"Limpar",addElement:"Escolher questão para mostrar...",defaultOrder:"Ordenação Padrão",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar colunas menores",actionsColumn:"Ações",otherCommentTitle:"Outros itens e comentários",showPercentages:"Mostrar percentuais",hidePercentages:"Esconder percentuais",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Baixar diagrama como PNG",hideEmptyAnswers:"Esconder perguntas vazias",showEmptyAnswers:"Mostrar perguntas vazias","topNValueText-1":"Todas as respostas",topNValueText5:"Primeiras 5 respostas",topNValueText10:"Primeiras 10 respostas",topNValueText20:"Primeiras 20 respostas",hideMissingAnswers:"Ocultar perguntas não respondidas",showMissingAnswers:"Mostrar perguntas não respondidas",missingAnswersLabel:"Perguntas não respondidas",noVisualizerForQuestion:"Este tipo de pergunta ainda não foi visualizada",noResults:"Ainda não possui resultados",showPerValues:"Por valores",showPerColumns:"Por colunas",answer:"Resposta",correctAnswer:"Resposta correta: ",percent:"Percentagem",percentage:"Porcentagem",statistics_chart:"Gráfico",responses:"Respostas",visualizer_nps:"NPS",visualizer_boolean:"Gráfico",visualizer_options:"Mesa",npsScore:"NPS",npsPromoters:"Promotores",npsPassives:"Passivos",npsDetractors:"Detratores",axisXSelectorTitle:"Categoria (eixo X):",axisYSelectorTitle:"Lenda (Série):",axisXAlternativeSelectorTitle:"Segmentos:",axisYAlternativeSelectorTitle:"Grupos:",notSelected:"Não selecionado"},nativeName:"Português"}),(0,r.UN)({localeCode:"ru",strings:{groupButton:"Сгруппировать",ungroupButton:"Разгруппировать",selectButton:"Выбрать",hideColumn:"Скрыть столбец",showColumn:"Показать столбец",makePrivateColumn:"Сделать столбец приватным",makePublicColumn:"Сделать столбец публичным",moveToDetail:"Спрятать в раскрывающуюся секцию",showAsColumn:"Показать как столбец",filterPlaceholder:"Поиск...",removeRows:"Удалить строки",showLabel:"Показать",entriesLabel:"записей",visualizer_text:"Таблица",visualizer_wordcloud:"Облако тэгов",visualizer_histogram:"Гистограмма",visualizer_number:"Среднее значение",visualizer_choices:"Таблица",visualizer_selectBase:"Диаграмма",visualizer_matrix:"Диаграмма",chartType_bar:"Столбчатая диаграмма",chartType_vbar:"Вертикальная столбчатая диаграмма",chartType_stackedbar:"Столбчатая диаграмма с накоплением",chartType_doughnut:"Кольцевая диаграмма",chartType_pie:"Круговая диаграмма",chartType_scatter:"Точечная диаграмма",chartType_gauge:"Измерительная диаграмма",chartType_bullet:"Маркированная диаграмма",chartType_line:"Линия",chartType_radar:"Радар",hideButton:"Скрыть",makePrivateButton:"Сделать приватным",makePublicButton:"Сделать публичным",showButton:"Показать",filter:"Фильтр",resetFilter:"Очистить фильтр",changeLocale:"Сменить язык",clearButton:"Очистить",addElement:"Выберите вопрос...",defaultOrder:"Порядок по умолчанию",ascOrder:"Сортировать по возрастанию",descOrder:"Сортировать по убыванию",showMinorColumns:"Показать второстепенные столбцы",actionsColumn:"Действия",otherCommentTitle:"Другое и комментарии",showPercentages:"Показать проценты",hidePercentages:"Скрыть проценты",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Скачать диаграмму в формате PNG",hideEmptyAnswers:"Скрыть пустые ответы",showEmptyAnswers:"Показать пустые ответы","topNValueText-1":"Все ответы",topNValueText5:"Первые 5 ответов",topNValueText10:"Первые 10 ответов",topNValueText20:"Первые 20 ответов",hideMissingAnswers:"Скрыть отсутствующие ответы",showMissingAnswers:"Показать отсутствующие ответы",missingAnswersLabel:"Отсутствующие ответы",noVisualizerForQuestion:"Этот тип вопроса не поддерживается",noResults:"Результаты отсутствуют",showPerValues:"По значениям",showPerColumns:"По столбцам",answer:"Ответ",correctAnswer:"Правильный ответ: ",percent:"процентов",percentage:"Процент",statistics_chart:"Диаграмма",responses:"ответов",visualizer_nps:"NPS",visualizer_boolean:"Диаграмма",visualizer_options:"Стол",npsScore:"NPS",npsPromoters:"Промоутеров",npsPassives:"Пассивные способности",npsDetractors:"Критики",axisXSelectorTitle:"Категория (ось X):",axisYSelectorTitle:"Легенда (Серия):",axisXAlternativeSelectorTitle:"Сегментов:",axisYAlternativeSelectorTitle:"Группы:",notSelected:"Не выбрано"},nativeName:"Русский"}),(0,r.UN)({localeCode:"nl",strings:{groupButton:"Groeperen op",ungroupButton:"Groepering verwijderen",selectButton:"Selecteer mij",hideColumn:"Kolom verbergen",showColumn:"Toon kolom",makePrivateColumn:"Kolom privé maken",makePublicColumn:"Maak kolom openbaar",moveToDetail:"Ga naar detail",showAsColumn:"Weergeven als kolom",filterPlaceholder:"Zoeken...",removeRows:"Verwijder rijen",showLabel:"Tonen",entriesLabel:"inzendingen",visualizer_text:"Teksten in tabel",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Gemiddeld",visualizer_choices:"Tabel",visualizer_selectBase:"Grafiek",visualizer_matrix:"Zeekaart",chartType_bar:"Bar",chartType_vbar:"Staafdiagram",chartType_stackedbar:"Staafdiagram (gestapeld)",chartType_doughnut:"Donut",chartType_pie:"Cirkeldiagram",chartType_scatter:"Spreidingsdiagram",chartType_gauge:"Meterdiagram",chartType_bullet:"Kogelgrafiek",chartType_line:"Lijn",chartType_radar:"Radar",hideButton:"Verbergen",makePrivateButton:"Maak prive",makePublicButton:"Openbaar maken",showButton:"Tonen",filter:"Filter",resetFilter:"Filter resetten",changeLocale:"Wijzig de landinstelling",clearButton:"Wissen",addElement:"Kies een vraag om weer te geven ...",defaultOrder:"Standaardvolgorde",ascOrder:"Oplopend",descOrder:"Aflopend",showMinorColumns:"Toon kleine kolommen",actionsColumn:"Acties",otherCommentTitle:"Andere items en opmerkingen",showPercentages:"Percentages weergeven",hidePercentages:"Verberg percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot als PNG",hideEmptyAnswers:"Verberg lege antwoorden",showEmptyAnswers:"Toon lege antwoorden","topNValueText-1":"Alle antwoorden",topNValueText5:"Top 5 antwoorden",topNValueText10:"Top 10 antwoorden",topNValueText20:"Top 20 antwoorden",hideMissingAnswers:"Ontbrekende antwoorden verbergen",showMissingAnswers:"Ontbrekende antwoorden weergeven",missingAnswersLabel:"Ontbrekende antwoorden",noVisualizerForQuestion:"Dit vraagtype is nog niet gevisualiseerd",noResults:"Er zijn nog geen resultaten",showPerValues:"Per waarden",showPerColumns:"Per Kolommen",answer:"Antwoorden",correctAnswer:"Goed antwoord: ",percent:"Procent",percentage:"Percentage",statistics_chart:"Zeekaart",responses:"Reacties",visualizer_nps:"NPS",visualizer_boolean:"Zeekaart",visualizer_options:"Tafel",npsScore:"NPS",npsPromoters:"Initiatiefnemers",npsPassives:"Passief personeel",npsDetractors:"Tegenstanders",axisXSelectorTitle:"Categorie (X-as):",axisYSelectorTitle:"Legende (serie):",axisXAlternativeSelectorTitle:"Segmenten:",axisYAlternativeSelectorTitle:"Groepen:",notSelected:"Niet geselecteerd"},nativeName:"Nederlands"}),(0,r.UN)({localeCode:"es",strings:{groupButton:"Grupo Por Mí",ungroupButton:"Desagrupar por mí",selectButton:"Seleccionarme",hideColumn:"Ocultar columna",showColumn:"Mostrar columna",makePrivateColumn:"Hacer que la columna sea privada",makePublicColumn:"Hacer pública la columna",moveToDetail:"Mover al detalle",showAsColumn:"Mostrar como columna",filterPlaceholder:"Buscar ...",removeRows:"Eliminar filas",showLabel:"Mostrar",entriesLabel:"Entradas",visualizer_text:"Textos en tabla",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histograma",visualizer_number:"Promedio",visualizer_choices:"Mesa",visualizer_selectBase:"Gráfico",visualizer_matrix:"Gráfico",chartType_bar:"Barra",chartType_vbar:"Barra vertical",chartType_stackedbar:"Barra apilada",chartType_doughnut:"Donut",chartType_pie:"Pie",chartType_scatter:"Dispersión",chartType_gauge:"Gauge",chartType_bullet:"Bullet",chartType_line:"Línea",chartType_radar:"Radar",hideButton:"Ocultar",makePrivateButton:"Hacer privado",makePublicButton:"Hacer público",showButton:"Mostrar",filter:"Filtro",resetFilter:"Restablecer filtro",changeLocale:"Cambiar configuración regional",clearButton:"Borrar",addElement:"Elija la pregunta para mostrar ...",defaultOrder:"Orden predeterminado",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar columnas secundarias",actionsColumn:"Acciones",otherCommentTitle:"Otros elementos y comentarios",showPercentages:"Mostrar porcentajes",hidePercentages:"Ocultar porcentajes",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Descargar el gráfico como png",hideEmptyAnswers:"Ocultar respuestas vacías",showEmptyAnswers:"Mostrar respuestas vacías","topNValueText-1":"Todas las respuestas",topNValueText5:"Las 5 respuestas principales",topNValueText10:"Las 10 respuestas principales",topNValueText20:"20 respuestas principales",hideMissingAnswers:"Ocultar las respuestas que faltan",showMissingAnswers:"Mostrar las respuestas que faltan",missingAnswersLabel:"Respuestas faltantes",noVisualizerForQuestion:"Este tipo de pregunta aún no se visualiza",noResults:"Aún no hay resultados",showPerValues:"Por valores",showPerColumns:"Por columnas",answer:"Respuesta",correctAnswer:"Respuesta correcta: ",percent:"Por ciento",percentage:"Porcentaje",statistics_chart:"Gráfico",responses:"Respuestas",visualizer_nps:"NPS",visualizer_boolean:"Gráfico",visualizer_options:"Mesa",npsScore:"NPS",npsPromoters:"Promotores",npsPassives:"Pasivos",npsDetractors:"Detractores",axisXSelectorTitle:"Categoría (eje X):",axisYSelectorTitle:"Leyenda (Serie):",axisXAlternativeSelectorTitle:"Segmentos:",axisYAlternativeSelectorTitle:"Grupos:",notSelected:"No seleccionado"},nativeName:"Español"}),(0,r.UN)({localeCode:"it",strings:{groupButton:"Raggruppa",ungroupButton:"Dividi",selectButton:"Selezionami",hideColumn:"Nascondi colonna",showColumn:"Mostra colonna",makePrivateColumn:"Rendi la colonna privata",makePublicColumn:"Rendi la colonna pubblica",moveToDetail:"Sposta in Dettaglio",showAsColumn:"Mostra come Colonna",filterPlaceholder:"Cerca...",removeRows:"Rimuovi righe",showLabel:"Mostra",entriesLabel:"voci",visualizer_text:"Parole in tabella",visualizer_wordcloud:"Nuvola di parole",visualizer_histogram:"Istogramma",visualizer_number:"Media",visualizer_choices:"Tabella",visualizer_selectBase:"Grafico",visualizer_matrix:"Tabella",chartType_bar:"Bar",chartType_vbar:"Grafico a barre verticali",chartType_stackedbar:"Grafico a barre sovrapposte",chartType_doughnut:"Grafico a ciambella",chartType_pie:"Grafico a torta",chartType_scatter:"Grafico a dispersione",chartType_gauge:"Grafico Gauge",chartType_bullet:"Punto",chartType_line:"Linea",chartType_radar:"Radar",hideButton:"Nascondi",makePrivateButton:"Rendi privato",makePublicButton:"Rendi pubblico",showButton:"Mostra",filter:"Filtro",resetFilter:"Cancella filtro",changeLocale:"Cambia lingua",clearButton:"Cancella",addElement:"Scegli la domanda da mostrare...",defaultOrder:"Ordine di Default",ascOrder:"Ascendente",descOrder:"Discendente",showMinorColumns:"Mostra colonne secondarie",actionsColumn:"Azioni",otherCommentTitle:"Altri punti e commenti",showPercentages:"Mostra percentuali",hidePercentages:"Nascondi percentuali",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Scarica il grafico in formato png",hideEmptyAnswers:"Nascondi risposte vuote",showEmptyAnswers:"Mostra risposte vuote","topNValueText-1":"Tutte le risposte",topNValueText5:"Top 5 risposte",topNValueText10:"Top 10 risposte",topNValueText20:"Top 20 risposte",hideMissingAnswers:"Nascondi le risposte mancanti",showMissingAnswers:"Mostra le risposte mancanti",missingAnswersLabel:"Risposte mancanti",noVisualizerForQuestion:"Questo tipo di domanda non è ancora stato visualizzato",noResults:"Non ci sono ancora risultati",showPerValues:"Per Valori",showPerColumns:"Per Colonne",answer:"Risposta",correctAnswer:"Risposta esatta: ",percent:"Percentuale",percentage:"Percentuale",statistics_chart:"Tabella",responses:"Risposte",visualizer_nps:"Rete nazionale di dati",visualizer_boolean:"Tabella",visualizer_options:"Tavolo",npsScore:"Rete nazionale di dati",npsPromoters:"Promotori",npsPassives:"Passivi",npsDetractors:"Detrattori",axisXSelectorTitle:"Categoria (asse X):",axisYSelectorTitle:"Leggenda (serie):",axisXAlternativeSelectorTitle:"Segmenti:",axisYAlternativeSelectorTitle:"Gruppi:",notSelected:"Non selezionato"},nativeName:"Italiano"}),(0,r.UN)({localeCode:"ar",strings:{groupButton:"زرار المجموعة",ungroupButton:"تم التحديث من خلالى",selectButton:"اختر",hideColumn:"اخفاء العمود",showColumn:"اظهار",makePrivateColumn:"أجعل العمود خاص",makePublicColumn:"أجعل العمود عام",moveToDetail:"انتقل إلى التفاصيل",showAsColumn:"إظهار كعمود",filterPlaceholder:"بحث...",removeRows:"حذف",showLabel:"اظهار",entriesLabel:"مدخلات",visualizer_text:"جداول",visualizer_wordcloud:"كلمات",visualizer_histogram:"الرسم البياني",visualizer_number:"متوسط",visualizer_choices:"جدول",visualizer_selectBase:"رسم بياني",visualizer_matrix:"جدول",chartType_bar:"بار",chartType_vbar:"شريط عمودي",chartType_stackedbar:"شريط مكدس",chartType_doughnut:"مخطط حلقي",chartType_pie:"مخطط دائري",chartType_scatter:"مخطط التشتت",chartType_gauge:"مخطط القياس",chartType_bullet:"مخطط نقطي",chartType_line:"سطر",chartType_radar:"رادار",hideButton:"اخفاء",makePrivateButton:"أجعل خاص",makePublicButton:"أجعل عام",showButton:"اظهار",filter:"ترشح",resetFilter:"إعادة تعيين",changeLocale:"تغيير اللغة",clearButton:"مسح",addElement:"اختر سؤالاً للعرض ...",defaultOrder:"الترتيب الافتراضي",ascOrder:"تصاعدى",descOrder:"تنازلى",showMinorColumns:"إظهار الأعمدة الثانوية",actionsColumn:"الاجراءات",otherCommentTitle:"بنود وتعليقات أخرى",showPercentages:"عرض النسب المئوية",hidePercentages:"إخفاء النسب",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"تنزيل بصيغة png",hideEmptyAnswers:"إخفاء الإجابات الفارغة",showEmptyAnswers:"إظهار الإجابات الفارغة","topNValueText-1":"جميع الإجابات",topNValueText5:"أهم 5 إجابات",topNValueText10:"أفضل 10 إجابات",topNValueText20:"أفضل 20 إجابة",hideMissingAnswers:"إخفاء الإجابات المفقودة",showMissingAnswers:"عرض الإجابات المفقودة",missingAnswersLabel:"أجوبة مفقودة",noVisualizerForQuestion:"لم يتم العرض بعد",noResults:"لا يوجد نتائج للعرض",showPerValues:"لكل القيم",showPerColumns:"لكل الأعمدة",answer:"إجب",correctAnswer:"الاجابة الصحيحة: ",percent:"النسبه المئويه",percentage:"النسبه المئويه",statistics_chart:"جدول",responses:"الاستجابات",visualizer_nps:"NPS",visualizer_boolean:"جدول",visualizer_options:"جدول",npsScore:"NPS",npsPromoters:"المروجين",npsPassives:"سلبيات",npsDetractors:"المنتقدين",axisXSelectorTitle:"الفئة (المحور X):",axisYSelectorTitle:"أسطورة (سلسلة):",axisXAlternativeSelectorTitle:"قطاعات:",axisYAlternativeSelectorTitle:"المجموعات:",notSelected:"غير محدد"},nativeName:"العربية"}),(0,r.UN)({localeCode:"ja",strings:{groupButton:"グループ化",ungroupButton:"グループ解除",selectButton:"選択",hideColumn:"列を非表示",showColumn:"列を表示",makePrivateColumn:"列を非公開にする",makePublicColumn:"列を公開する",moveToDetail:"詳細に移動",showAsColumn:"列として表示",filterPlaceholder:"検索...",removeRows:"行を削除",showLabel:"表示",entriesLabel:"件",visualizer_text:"テキスト",visualizer_wordcloud:"ワードクラウド",visualizer_histogram:"ヒストグラム",visualizer_number:"平均",visualizer_choices:"テーブル",visualizer_selectBase:"チャート",visualizer_matrix:"チャート",chartType_bar:"棒グラフ",chartType_vbar:"縦棒グラフ",chartType_stackedbar:"積み上げ棒グラフ",chartType_doughnut:"ドーナツチャート",chartType_pie:"円グラフ",chartType_scatter:"散布図",chartType_gauge:"ゲージ",chartType_bullet:"バレット",chartType_line:"線",chartType_radar:"レーダー",hideButton:"非表示",makePrivateButton:"非公開にする",makePublicButton:"公開する",showButton:"表示",filter:"フィルター",resetFilter:"フィルターをリセット",changeLocale:"言語を変更",clearButton:"クリア",addElement:"表示する質問を選択...",defaultOrder:"デフォルト順",ascOrder:"昇順",descOrder:"降順",showMinorColumns:"マイナー列を表示",actionsColumn:"アクション",otherCommentTitle:"その他のアイテムとコメント",showPercentages:"パーセンテージを表示",hidePercentages:"パーセンテージを非表示",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"プロットをPNGファイルとして保存",hideEmptyAnswers:"空の回答を非表示",showEmptyAnswers:"空の回答を表示","topNValueText-1":"すべての回答",topNValueText5:"上位5つの回答",topNValueText10:"上位10の回答",topNValueText20:"上位20の回答",hideMissingAnswers:"欠損値を非表示",showMissingAnswers:"欠損値を表示",missingAnswersLabel:"欠損値",noVisualizerForQuestion:"この質問タイプはまだ視覚化されていません",noResults:"まだ結果がありません",showPerValues:"値ごとに表示",showPerColumns:"列ごとに表示",answer:"回答",correctAnswer:"正解: ",percent:"パーセント",percentage:"百分率",statistics_chart:"チャート",responses:"回答数",visualizer_nps:"NPSの",visualizer_boolean:"チャート",visualizer_options:"テーブル",npsScore:"NPSの",npsPromoters:"プロモーター",npsPassives:"パッシブ",npsDetractors:"中傷",axisXSelectorTitle:"カテゴリ(X軸):",axisYSelectorTitle:"凡例(シリーズ):",axisXAlternativeSelectorTitle:"セグメント:",axisYAlternativeSelectorTitle:"グループ:",notSelected:"選択されていない"},nativeName:"日本語"}),(0,r.UN)({localeCode:"pl",strings:{groupButton:"Grupuj według mnie",ungroupButton:"Rozgrupuj według mnie",selectButton:"Wybierz",hideColumn:"Ukryj kolumnę",showColumn:"Pokaż kolumnę",makePrivateColumn:"Uczyń kolumnę prywatną",makePublicColumn:"Uczyń kolumnę publiczną",moveToDetail:"Przenieś do szczegółów",showAsColumn:"Pokaż jako kolumnę",filterPlaceholder:"Szukaj...",removeRows:"Usuń wiersze",showLabel:"Pokaż",entriesLabel:"wejścia",visualizer_text:"Teksty w tabeli",visualizer_wordcloud:"Chmura słów",visualizer_histogram:"Histogram",visualizer_number:"Średnia",visualizer_choices:"Tabela",visualizer_selectBase:"Wykres",visualizer_matrix:"Wykres",chartType_bar:"Słupkowy",chartType_vbar:"Słupkowy pionowy",chartType_stackedbar:"Słupkowy skumulowany",chartType_doughnut:"Oponka",chartType_pie:"Tarta",chartType_scatter:"Rozrzut",chartType_gauge:"Skala",chartType_bullet:"Pocisk",chartType_line:"Linia",chartType_radar:"Radar",hideButton:"Ukryj",makePrivateButton:"Uczyń prywatnym",makePublicButton:"Uczyń publicznym",showButton:"Pokaż",filter:"Filtruj",resetFilter:"Resetuj filtr",changeLocale:"Zmień lokalizację",clearButton:"Wyczyść",addElement:"Wybierz pytanie do pokazania...",defaultOrder:"Domyślne sortowanie",ascOrder:"Rosnąco",descOrder:"Malejąco",showMinorColumns:"Pokaż mniejsze kolumny",actionsColumn:"Akcje",otherCommentTitle:"Inne elementy i komentarze",showPercentages:"Pokaż procenty",hidePercentages:"Ukryj procenty",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Pobierz diagram jako PNG",hideEmptyAnswers:"Ukryj puste odpowiedzi",showEmptyAnswers:"Pokaż puste odpowiedzi","topNValueText-1":"Wszystkie odpowiedzi",topNValueText5:"Pierwsze 5 odpowiedzi",topNValueText10:"Pierwsze 10 odpowiedzi",topNValueText20:"Pierwsze 20 odpowiedzi",hideMissingAnswers:"Ukryj nieodpowiedziane pytania",showMissingAnswers:"Pokaż nieodpowiedziane pytania",missingAnswersLabel:"Nieodpowiedziane pytania",noVisualizerForQuestion:"Ten typ pytania nie został jeszcze zwizualizowany",noResults:"Nie ma jeszcze wyników",showPerValues:"Według wartości",showPerColumns:"Według kolumn",answer:"Odpowiedź",correctAnswer:"Odpowiedź poprawna: ",percent:"Procent",percentage:"Procent",statistics_chart:"Wykres",responses:"Odpowiedzi",visualizer_nps:"Wskaźnik NPS",visualizer_boolean:"Wykres",visualizer_options:"Stół",npsScore:"Wskaźnik NPS",npsPromoters:"Promotorów",npsPassives:"Passives",npsDetractors:"Przeciwników",axisXSelectorTitle:"Kategoria (oś X):",axisYSelectorTitle:"Legenda (seria):",axisXAlternativeSelectorTitle:"Segmenty:",axisYAlternativeSelectorTitle:"Grupy:",notSelected:"Nie wybrano"},nativeName:"Polski"}),(0,r.UN)({localeCode:"fi",strings:{groupButton:"Erottele minulla",ungroupButton:"Poista erottele minulla",selectButton:"Valitse minut",hideColumn:"Piilota sarake",showColumn:"Näytä sarake",makePrivateColumn:"Merkitse sarake yksityiseksi",makePublicColumn:"Merkitse sarake julkiseksi",moveToDetail:"Siirrä yksityiskohtiin",showAsColumn:"Näytä sarakkeena",filterPlaceholder:"Etsi...",removeRows:"Poista rivejä",showLabel:"Näytä",entriesLabel:"vastauksia",visualizer_text:"Tekstitaulukko",visualizer_wordcloud:"Sanapilvi",visualizer_histogram:"Histogrammi",visualizer_number:"Keskiarvo",visualizer_choices:"Taulukko",visualizer_selectBase:"Kuvaaja",visualizer_matrix:"Kuvaaja",chartType_bar:"Pylväs",chartType_vbar:"Vaakapyöväs",chartType_stackedbar:"Pinottu pylväs",chartType_doughnut:"Donitsi",chartType_pie:"Piirakka",chartType_scatter:"Hajonta",chartType_gauge:"Mittari",chartType_bullet:"Luoti",chartType_line:"Viiva",chartType_radar:"Tutka",hideButton:"Piilota",makePrivateButton:"Merkise yksityiseksi",makePublicButton:"Merkitse julkiseksi",showButton:"Näytä",filter:"Rajaa",resetFilter:"Nollaa Rajaus",changeLocale:"Vaihda kieli",clearButton:"Nollaa",addElement:"Valitse näytettävä kysymys...",defaultOrder:"Oletusjärjestys",ascOrder:"Nouseva",descOrder:"Laskeva",showMinorColumns:"Näytä alasarakkeet",actionsColumn:"Toimet",otherCommentTitle:"Muut asiat ja kommentit",showPercentages:"Näytä prosentit",hidePercentages:"Piilota prosentit",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Lataa kuvaaja PNG kuvana",hideEmptyAnswers:"Piilota tyhjät vastaukset",showEmptyAnswers:"Näytä tyhjät vastaukset","topNValueText-1":"Kaikki vastaukset",topNValueText5:"Top 5 vastaukset",topNValueText10:"Top 10 vastaukset",topNValueText20:"Top 20 vastaukset",hideMissingAnswers:"Piilota puuttuvat vastaukset",showMissingAnswers:"Näytä puuttuvat vastaukset",missingAnswersLabel:"Puuttuvat vastaukset",noVisualizerForQuestion:"Tätä kysymystyyppiä ei voida visualisoida.",noResults:"Ei vielä tuloksia",showPerValues:"Näytä arvottain",showPerColumns:"Näytä sarakkeittain",answer:"Vastaus",correctAnswer:"Oikea vastaus: ",percent:"Prosentti",percentage:"Prosenttiyksikkö",statistics_chart:"Kuvaaja",responses:"Vastaukset",visualizer_nps:"NPS",visualizer_boolean:"Kaavio",visualizer_options:"Pöytä",npsScore:"NPS",npsPromoters:"Suosittelija",npsPassives:"Passiivinen",npsDetractors:"Arvostelija",axisXSelectorTitle:"Luokka (X-akseli):",axisYSelectorTitle:"Legenda (sarja):",axisXAlternativeSelectorTitle:"Segmentit:",axisYAlternativeSelectorTitle:"Ryhmät:",notSelected:"Ei valittu"},nativeName:"Suomi"}),(0,r.UN)({localeCode:"sv",strings:{groupButton:"Gruppera av mig",ungroupButton:"Avgruppera av mig",selectButton:"Välj mig",hideColumn:"Göm kolumn",showColumn:"Visa kolumn",makePrivateColumn:"Gör kolumn privat",makePublicColumn:"Gör kolumn offentlig",moveToDetail:"Flytta till detalj",showAsColumn:"Visa som kolumn",filterPlaceholder:"Sök...",removeRows:"Ta bort rader",showLabel:"Visa",entriesLabel:"poster",visualizer_text:"Texter i tabell",visualizer_wordcloud:"Ordmoln",visualizer_histogram:"Histogram",visualizer_number:"Genomsnitt",visualizer_choices:"Tabell",visualizer_selectBase:"Diagram",visualizer_matrix:"Diagram",chartType_bar:"Stapel",chartType_vbar:"Vertikal stapel",chartType_stackedbar:"Staplad stapel",chartType_doughnut:"Ring",chartType_pie:"Cirkel",chartType_scatter:"Punkt",chartType_gauge:"Mätare",chartType_bullet:"Bullet",chartType_line:"Linje",chartType_radar:"Radar",hideButton:"Göm",makePrivateButton:"Gör privat",makePublicButton:"Gör offentlig",showButton:"Visa",filter:"Filter",resetFilter:"Återställ filter",changeLocale:"Ändra språk",clearButton:"Rensa",addElement:"Välj fråga att visa...",defaultOrder:"Standard ordning",ascOrder:"Stigande",descOrder:"Fallande",showMinorColumns:"Visa mindre kolumner",actionsColumn:"Åtgärder",otherCommentTitle:"Övriga objekt och kommentarer",showPercentages:"Visa procent",hidePercentages:"Göm procent",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Ladda ner diagram som PNG-fil",hideEmptyAnswers:"Göm tomma svar",showEmptyAnswers:"Visa tomma svar","topNValueText-1":"Alla svar",topNValueText5:"Topp 5 svar",topNValueText10:"Topp 10 svar",topNValueText20:"Topp 20 svar",hideMissingAnswers:"Göm saknade svar",showMissingAnswers:"Visa saknade svar",missingAnswersLabel:"Saknade svar",noVisualizerForQuestion:"Detta frågetyp är inte visualiserad ännu",noResults:"Det finns inga resultat ännu",showPerValues:"Per värden",showPerColumns:"Per kolumner",answer:"Svar",correctAnswer:"Rätt svar: ",percent:"Procent",percentage:"Procent",statistics_chart:"Diagram",responses:"Svar",visualizer_nps:"NPS",visualizer_boolean:"Diagram",visualizer_options:"Bord",npsScore:"NPS",npsPromoters:"Promotorer",npsPassives:"Passiva",npsDetractors:"Kritiker",axisXSelectorTitle:"X-axel:",axisYSelectorTitle:"Y-axel:",axisXAlternativeSelectorTitle:"Segment:",axisYAlternativeSelectorTitle:"Grupper:",notSelected:"Inte valt"},nativeName:"Svenska"});var s=i(555),n=i(818),o=i(183),a=i(143),l=i(928),u=i(226),h=i(931),c=i(267),d=i(557),p=i(87),g=i(156),f=i(70),m=function(e){function t(t,i,s,n){var o=e.call(this,i,s,n,"alternative")||this;if(o.visualizers=t,o.visualizersWithSelection=[],o.onAfterVisualizerRenderCallback=function(){o.afterRender(o.contentContainer)},o.onVisualizerStateChangedCallback=function(e,t){o.stateChanged("visualizer",t)},o.onVisualizerChanged=new g.Event,o.showToolbar=!1,o.loadingData=!1,!t||t.length<2)throw new Error("VisualizerArrayWrapper works with visualizers collection only.");return o.visualizers.forEach((function(e){e.onUpdate=function(){return o.invokeOnUpdate()},e.onGetToolbarItemCreators=function(){return o.toolbarItemCreators},e.supportSelection&&(o._supportSelection=!0,o.visualizersWithSelection.push(e))})),!1!==o.options.allowChangeVisualizerType&&o.registerToolbarItem("changeVisualizer",(function(){return o.visualizerSelector=f.gf.createSelector(o.visualizers.map((function(e){return{value:e.type,text:r.qG.getString("visualizer_"+e.type)}})),(function(e){return o.visualizer.type===e.value}),(function(e){return o.setVisualizer(e.target.value)}))}),0),o.visualizer=t[0],o.visualizer.onAfterRender.add(o.onAfterVisualizerRenderCallback),o.visualizer.onStateChanged.add(o.onVisualizerStateChangedCallback),o}return(0,p.C6)(t,e),t.prototype.updateVisualizerSelector=function(){this.visualizerSelector&&(this.visualizerSelector.getElementsByTagName("select")[0].value=this.visualizer.type)},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getVisualizers=function(){return this.visualizers},t.prototype.setVisualizer=function(e,t){void 0===t&&(t=!1);var i=this.visualizers.filter((function(t){return t.type===e}))[0];if(i&&i!==this.visualizer){var r=void 0;this.visualizer&&(r=this.visualizer.isFooterCollapsed,this.visualizer.onStateChanged.remove(this.onVisualizerStateChangedCallback),this.visualizer.onAfterRender.remove(this.onAfterVisualizerRenderCallback),this.visualizer.destroy()),this.visualizer=i,this.visualizer.isFooterCollapsed=r,this.refresh(),this.visualizer.onAfterRender.add(this.onAfterVisualizerRenderCallback),this.visualizer.onStateChanged.add(this.onVisualizerStateChangedCallback),t||(this.onVisualizerChanged.fire(this,{visualizer:this.visualizer}),this.stateChanged("visualizer",e)),this.updateVisualizerSelector()}},t.prototype.getVisualizer=function(){return this.visualizer},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this.visualizers.forEach((function(e){e.updateData(t)}))},Object.defineProperty(t.prototype,"onDataItemSelected",{set:function(e){this.visualizersWithSelection.forEach((function(t){t.onDataItemSelected=e}))},enumerable:!1,configurable:!0}),t.prototype.setSelection=function(e){this.visualizersWithSelection.forEach((function(t){t.setSelection(e)}))},Object.defineProperty(t.prototype,"selection",{get:function(){return this.visualizer.selection||this.selectedItem},enumerable:!1,configurable:!0}),t.prototype.renderContent=function(e){this.visualizerContainer=e,this.visualizer.render(this.visualizerContainer)},t.prototype.setBackgroundColorCore=function(t){e.prototype.setBackgroundColorCore.call(this,t),this.visualizers.forEach((function(e){return e.backgroundColor=t}))},t.prototype.getState=function(){var e=this.visualizer.getState(),t={visualizer:this.visualizer.type};return Object.keys(e).length>0&&(t.state=e),t},t.prototype.setState=function(e){e.visualizer&&this.setVisualizer(e.visualizer,!0),e.state&&this.visualizer.setState(e.state)},t.prototype.resetState=function(){e.prototype.resetState.call(this),this.visualizers.forEach((function(e){return e.resetState()})),this.setVisualizer(this.visualizers[0].type,!0)},t.prototype.getValues=function(){return this.visualizer.getValues()},t.prototype.getLabels=function(){return this.visualizer.getLabels()},t.prototype.getCalculatedValues=function(){return this.visualizer.getCalculatedValues()},t.prototype.destroy=function(){var t=this;this.visualizers.forEach((function(e){e.onAfterRender.remove(t.onAfterVisualizerRenderCallback),e.onStateChanged.remove(t.onVisualizerStateChangedCallback),e.onUpdate=void 0})),this.visualizer.destroy(),e.prototype.destroy.call(this)},t}(c.w);d.g.registerAltVisualizerSelector(m);var v=function(){function e(e){this._htmlElement=void 0,this.text=void 0,this._htmlElement=f.gf.createElement("div","sa-question__filter"),this.text=f.gf.createElement("span","sa-question__filter-text"),this._htmlElement.appendChild(this.text);var t=f.gf.createButton((function(){e.setSelection(void 0)}),r.qG.getString("clearButton"));this._htmlElement.appendChild(t)}return Object.defineProperty(e.prototype,"htmlElement",{get:function(){return this._htmlElement},enumerable:!1,configurable:!0}),e.prototype.update=function(e){void 0!==e&&void 0!==e.value?(this._htmlElement.style.display="inline-flex",this.text.innerText=r.qG.getString("filter")+": ["+e.text+"]"):(this._htmlElement.style.display="none",this.text.innerText="")},e}(),_=i(820),y=i.n(_),b=function(e){function t(t,i,r){void 0===r&&(r=!0);var s=e.call(this,t)||this;return s._selector=i,s.dragEnabled=r,s._muuri=void 0,s._layoutingTimer=void 0,s}return(0,p.C6)(t,e),t.prototype.startCore=function(e){var t=this;this._muuri=new(y())(e,{dragStartPredicate:{handle:".sa-question__title--draggable"},items:this._selector,dragEnabled:this.dragEnabled}),this._muuri.on("dragReleaseEnd",(function(e){var i=e.getGrid().getItems().map((function(e){return e.getElement().dataset.question}));t.onMoveCallback&&t.onMoveCallback(i)}))},t.prototype.stopCore=function(){this._muuri.off("dragReleaseEnd"),this._muuri.destroy(),this._muuri=void 0},t.prototype.updateCore=function(){var e=this;this._muuri&&(void 0!==this._layoutingTimer&&clearTimeout(this._layoutingTimer),this._layoutingTimer=setTimeout((function(){e._layoutingTimer=void 0,e._muuri&&(e._muuri.refreshItems(),e._muuri.layout())}),10))},t.prototype.add=function(e,t){this._allowed&&this._muuri.add(e,t)},t.prototype.remove=function(e,t){this._allowed&&this._muuri.remove(e,t)},t}(function(){function e(e){this._allowed=e}return e.prototype.startCore=function(e){},e.prototype.stopCore=function(){},e.prototype.updateCore=function(){},Object.defineProperty(e.prototype,"allowed",{get:function(){return this._allowed},enumerable:!1,configurable:!0}),e.prototype.start=function(e){this._allowed&&this.startCore(e)},e.prototype.stop=function(){this._allowed&&this.stopCore()},e.prototype.update=function(){this._allowed&&this.updateCore()},e.prototype.add=function(e,t){},e.prototype.remove=function(e,t){},e.prototype.destroy=function(){this.stop()},e}());const w=function(e){var t={};return e.keys().forEach((function(i){t[i.substring(2,i.length-4).toLowerCase()]=e(i)})),t}(i(288));var C=Object.keys(w).map((function(e){return function(e,t){var i=(t=t.trim()).toLowerCase();if("<svg "===i.substring(0,5)&&"</svg>"===i.substring(i.length-6,i.length))return'<symbol id="sa-svg-'+e+'" '+t.substring(5,i.length-6)+"</symbol>"}(e,w[e])})),T='<svg style="display:none;">'.concat(C,"<svg>"),S="sa-question",x="sa-question-layouted";if(document){var P=document.createElement("div");P.style.display="none",P.innerHTML=T,document.head.appendChild(P)}var A=function(e){function t(t,i,s,n,a){void 0===s&&(s={}),void 0===n&&(n=void 0),void 0===a&&(a=!0);var l=e.call(this,null,i,s,"panel")||this;if(l.questions=t,l._elements=n,l.isRoot=a,l.visualizers=[],l.renderedQuestionsCount=0,l.onAfterRenderQuestionCallback=function(e,t){l.renderedQuestionsCount++,l.renderedQuestionsCount==l.questions.length&&(l.renderedQuestionsCount=0,l.layoutEngine.update(),l.afterRender(l.contentContainer))},l.onStateChangedCallback=function(e,t){var i;l.stateChanged(null===(i=e.question)||void 0===i?void 0:i.name,t)},l.onAlternativeVisualizerChanged=new g.Event,l.onAlternativeVisualizerChangedCallback=function(e,t){l.onAlternativeVisualizerChanged.fire(e,t)},l.onVisibleElementsChanged=new g.Event,l.onElementShown=new g.Event,l.onElementHidden=new g.Event,l.onElementMoved=new g.Event,l.loadingData=!1,l._layoutEngine=s.layoutEngine||new b(l.allowDynamicLayout,"."+x,l.allowDragDrop),l._layoutEngine.onMoveCallback=function(e){return l.reorderVisibleElements(e)},l.showToolbar=a,l.options.survey&&(r.qG.currentLocale=l.options.survey.locale),void 0===n&&(l._elements=l.buildElements(t)),l.buildVisualizers(t),l.updateData(l.surveyData),!l.haveCommercialLicense&&l.isRoot&&l.registerToolbarItem("commercialLicense",(function(){return(0,f.Qk)()})),l._supportSelection=!0,!1!==l.supportSelection&&l.registerToolbarItem("resetFilter",(function(){return f.gf.createButton((function(){l.visualizers.forEach((function(e){(e instanceof o.o||e instanceof m)&&e.setSelection(void 0)}))}),r.qG.getString("resetFilter"))}),900),l.registerToolbarItem("addElement",(function(e){if(l.allowHideQuestions){var t=void 0,i=function(i,s){var n=l.hiddenElements,o=f.gf.createSelector([{name:void 0,displayName:r.qG.getString("addElement")}].concat(n).map((function(e){return{value:e.name,text:e.displayName}})),(function(e){return!1}),(function(e){l.showElement(e.target.value)}));t&&e.replaceChild(o,t),t=o,n.length>0?t.style.display=void 0:t&&(t.style.display="none")};return i(),l.onVisibleElementsChanged.add(i),t}})),!l.options.disableLocaleSwitch&&l.locales.length>1){var u=l.locales.map((function(e){return{value:e,text:r.qG.getLocaleName(e)}}));l.registerToolbarItem("changeLocale",(function(){return f.gf.createSelector(u,(function(e){return!!e.value&&(l.locale||g.surveyLocalization.defaultLocale)===e.value}),(function(e){var t=e.target.value;l.locale=t}))}))}return l}return(0,p.C6)(t,e),t.prototype.reorderVisibleElements=function(e){var t=this,i=[];e.forEach((function(e){i.push(t._elements.filter((function(t){return t.name===e}))[0])})),this._elements.forEach((function(t){-1==e.indexOf(t.name)&&i.push(t)})),this._elements=i,this.visibleElementsChanged(void 0,"REORDERED")},t.prototype.onDataChanged=function(){},t.prototype.showElementCore=function(e,t){void 0===t&&(t=-1),e.isVisible=!0;var i=this.renderPanelElement(e,this.contentContainer),r=void 0;t>=0&&(r={index:t}),this.layoutEngine.add([i],r)},t.prototype.showElement=function(e){var t=this.getElement(e),i=this._elements.indexOf(t);this.showElementCore(t,i),this.visibleElementsChanged(t,"ADDED")},t.prototype.hideElementCore=function(e){e.isVisible=!1,e.renderedElement&&(this.layoutEngine.remove([e.renderedElement]),this.contentContainer.removeChild(e.renderedElement),e.renderedElement=void 0)},t.prototype.hideElement=function(e){var t=this.getElement(e);this.hideElementCore(t),this.visibleElementsChanged(t,"REMOVED")},t.prototype.hideAllElements=function(){var e=this,t=[];this._elements.forEach((function(i){i.isVisible&&(e.hideElementCore(i),t.push(i))})),this.visibleElementsChanged(void 0,"REMOVEDALL")},t.prototype.showAllElements=function(){var e=this,t=[];this._elements.forEach((function(i){i.isVisible||(e.showElementCore(i),t.push(i))})),this.visibleElementsChanged(void 0,"ADDEDDALL")},t.prototype.makeElementPrivate=function(e){e.isPublic=!1,this.stateChanged("isPublic",!1),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},t.prototype.makeElementPublic=function(e){e.isPublic=!0,this.stateChanged("isPublic",!0),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},t.prototype.moveVisibleElement=function(e,t){var i,r,s=this.visibleElements[e],n=this.visibleElements[t];i=this._elements.indexOf(s),r=this._elements.indexOf(n),this.moveElement(i,r)},t.prototype.moveElement=function(e,t){var i=this._elements.splice(e,1);this._elements.splice(t,0,i[0]),this.visibleElementsChanged(i[0],"MOVED")},t.prototype.setBackgroundColorCore=function(t){e.prototype.setBackgroundColorCore.call(this,t),this.visualizers.forEach((function(e){return e.backgroundColor=t}))},t.prototype.buildVisualizers=function(e){var t=this;e.forEach((function(e){var i,s=Object.assign({},t.options),n=t.surveyData;if(i=Array.isArray(e)?new(d.g.getPivotVisualizerConstructor())(e,n,s,void 0,!1):t.createVisualizer(e,s,n)){if(t.allowHideQuestions&&i.registerToolbarItem("removeQuestion",(function(){return f.gf.createButton((function(){setTimeout((function(){return t.hideElement(e.name)}),0)}),r.qG.getString("hideButton"))}),1e3),t.allowMakeQuestionsPrivate&&i.registerToolbarItem("makePrivatePublic",(function(){var i=t.getElement(e.name),s=i.isPublic?"first":"second",n=r.qG.getString("makePrivateButton"),o=r.qG.getString("makePublicButton");return f.gf.createSvgToggleButton("makepublic","makeprivate",n,o,(function(e){setTimeout((function(){return t.makeElementPublic(i)}),0)}),(function(e){setTimeout((function(){return t.makeElementPrivate(i)}),0)}),s)})),i.supportSelection){var o=i,a=new v(o);i.registerToolbarItem("questionFilterInfo",(function(){return a.update(o.selection),a.htmlElement}),900),o.onDataItemSelected=function(i,r){a.update({value:i,text:r}),t.setFilter(e.name,i)}}i.onUpdate=function(){return t.layout()},i.onAfterRender.add(t.onAfterRenderQuestionCallback),i.onStateChanged.add(t.onStateChangedCallback),i instanceof m&&i.onVisualizerChanged.add(t.onAlternativeVisualizerChangedCallback),t.visualizers.push(i)}}))},t.prototype.destroyVisualizers=function(){var e=this;this.visualizers.forEach((function(t){t.onUpdate=void 0,t instanceof o.o&&(t.onDataItemSelected=void 0),t instanceof m&&t.onVisualizerChanged.remove(e.onAlternativeVisualizerChangedCallback),t.onStateChanged.remove(e.onStateChangedCallback),t.onAfterRender.remove(e.onAfterRenderQuestionCallback),t.destroy()})),this.visualizers=[]},t.prototype.setLocale=function(t){var i=this;e.prototype.setLocale.call(this,t),(this.questions||[]).forEach((function(e){e=Array.isArray(e)?e[0]:e;var t=i.getElement(e.name);t&&(t.displayName=i.getTitle(e))})),this.visualizers.forEach((function(e){e.options.seriesLabels=i.options.seriesLabels,e.locale=t})),this.stateChanged("locale",t)},Object.defineProperty(t.prototype,"allowDynamicLayout",{get:function(){return void 0===this.options.allowDynamicLayout||!0===this.options.allowDynamicLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDragDrop",{get:function(){return!g.IsTouch&&(void 0===this.options.allowDragDrop||!0===this.options.allowDragDrop)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowHideQuestions",{get:function(){return void 0===this.options.allowHideQuestions||!0===this.options.allowHideQuestions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMakeQuestionsPrivate",{get:function(){return!0===this.options.allowMakeQuestionsPrivate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layoutEngine",{get:function(){return this._layoutEngine},enumerable:!1,configurable:!0}),t.prototype.buildElements=function(e){var t=this;return(e||[]).map((function(e){return{name:(e=Array.isArray(e)?e[0]:e).name,displayName:t.getTitle(e),isVisible:!0,isPublic:!0}}))},t.prototype.getElements=function(e){var t=[];return(this._elements||[]).forEach((function(i){e&&-1===e.indexOf(i.name)||t.push({name:i.name,displayName:i.displayName,isVisible:i.isVisible,isPublic:i.isPublic})})),t},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this._elements.filter((function(e){return e.isVisible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hiddenElements",{get:function(){return this._elements.filter((function(e){return!e.isVisible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"publicElements",{get:function(){return this._elements.filter((function(e){return e.isPublic}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"privateElements",{get:function(){return this._elements.filter((function(e){return!e.isPublic}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locales",{get:function(){return this.options.survey?this.options.survey.getUsedLocales():[]},enumerable:!1,configurable:!0}),t.prototype.getElement=function(e){return this._elements.filter((function(t){return t.name===e}))[0]},t.prototype.getVisualizer=function(e){return this.visualizers.filter((function(t){return t.question.name===e}))[0]},t.prototype.visibleElementsChanged=function(e,t){"SHOWN"!==t||this.onElementShown.isEmpty||this.onElementShown.fire(this,{elements:this._elements,element:e}),"REMOVED"!==t||this.onElementHidden.isEmpty||this.onElementHidden.fire(this,{elements:this._elements,element:e}),"MOVED"!==t||this.onElementMoved.isEmpty||this.onElementMoved.fire(this,{elements:this._elements,element:e}),this.onVisibleElementsChanged.isEmpty||this.onVisibleElementsChanged.fire(this,{elements:this._elements,changed:e,reason:t}),this.stateChanged("visibleElements",t),this.layout()},t.prototype.renderPanelElement=function(e,t){var i=this.getVisualizer(e.name);if(i){var r=f.gf.createElement("div");r.dataset.question=e.name,t&&t.appendChild(r);var s=f.gf.createElement("div"),n=f.gf.createElement("h3"),o=f.gf.createElement("div");return n.innerText=e.displayName,r.className=this.allowDynamicLayout?S+" "+x:S,n.className=S+"__title",this.allowDynamicLayout&&this.allowDragDrop&&(n.className=n.className+" "+S+"__title--draggable"),s.className=S+"__content",s.style.backgroundColor=this.backgroundColor,s.appendChild(n),s.appendChild(o),r.appendChild(s),i.render(o),e.renderedElement=r,r}},t.prototype.renderToolbar=function(t){t.className+=" sa-panel__header",e.prototype.renderToolbar.call(this,t)},t.prototype.renderContent=function(e){var t=this;e.className+=" sa-panel__content sa-grid",this.visibleElements.forEach((function(i){t.renderPanelElement(i,e)})),this.layoutEngine.start(e)},t.prototype.destroyContent=function(t){this.layoutEngine.stop(),e.prototype.destroyContent.call(this,t)},t.prototype.refresh=function(){this.toolbarContainer&&(this.destroyToolbar(this.toolbarContainer),this.renderToolbar(this.toolbarContainer)),e.prototype.refresh.call(this)},t.prototype.layout=function(){this.layoutEngine.update()},t.prototype.setFilter=function(e,t){this.dataProvider.setFilter(e,t)},t.prototype.getState=function(){var e=this;return{locale:this.locale,elements:[].concat(this._elements.map((function(t){var i=e.getVisualizer(t.name),r=(0,p.Cl)((0,p.Cl)({},t),null==i?void 0:i.getState());return void 0!==r.renderedElement&&delete r.renderedElement,r})))}},Object.defineProperty(t.prototype,"state",{get:function(){return this.getState()},set:function(e){var t=this;if(e){this._settingState=!0;try{if(Array.isArray(e.elements)){var i=this.questions.map((function(e){return Array.isArray(e)?e[0].name:e.name}));this._elements=[].concat(e.elements.filter((function(e){return-1!==i.indexOf(e.name)})))}void 0!==e.locale&&this.setLocale(e.locale),this._elements.forEach((function(e){var i=t.getVisualizer(e.name);void 0!==i&&i.setState(e)}))}finally{this._settingState=!1}this.refresh()}},enumerable:!1,configurable:!0}),t.prototype.resetState=function(){this._settingState=!0,e.prototype.resetState.call(this);try{this.visualizers.forEach((function(e){return e.resetState()})),this.locale=g.surveyLocalization.defaultLocale}finally{this._settingState=!1}this.refresh()},Object.defineProperty(t.prototype,"permissions",{get:function(){return this._elements.map((function(e){return{name:e.name,isPublic:e.isPublic}}))},set:function(e){var t=this._elements.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.isPublic=e.isPublic)})),(0,p.Cl)({},t)}));this._elements=[].concat(t),this.refresh(),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),t.prototype.getCalculatedValuesCore=function(){return[]},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyVisualizers()},t}(c.w),k=function(e){function t(t,i,r,s){void 0===r&&(r={});var n=e.call(this,t,i,r,s||"panelDynamic")||this;return n._panelVisualizer=void 0,n.onAfterRenderPanelCallback=function(){n.afterRender(n.contentContainer)},n.loadingData=!1,(r=Object.assign({},r)).allowHideQuestions=!1,r.allowDynamicLayout=!1,r.dataProvider=void 0,r.dataPath=n.dataNames[0],n._panelVisualizer=new A(n.getQuestions(),[],r,void 0,!1),n._panelVisualizer.onAfterRender.add(n.onAfterRenderPanelCallback),n.updateData(i),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"contentVisualizer",{get:function(){return this._panelVisualizer},enumerable:!1,configurable:!0}),t.prototype.setLocale=function(t){e.prototype.setLocale.call(this,t),this._panelVisualizer.locale=t},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this._panelVisualizer.updateData(t)},t.prototype.onDataChanged=function(){this._panelVisualizer.updateData(this.dataProvider.filteredData),e.prototype.onDataChanged.call(this)},t.prototype.getQuestions=function(){return this.question.template.questions},t.prototype.destroyContent=function(t){this._panelVisualizer.clear(),e.prototype.destroyContent.call(this,this.contentContainer)},t.prototype.renderContent=function(e){this._panelVisualizer.render(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this._panelVisualizer.onAfterRender.remove(this.onAfterRenderPanelCallback)},t}(c.w);d.g.registerVisualizer("paneldynamic",k);var z=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"matrixDynamic")||this}return(0,p.C6)(t,e),t.prototype.getQuestions=function(){var e=this.question.visibleRows;return 0===e.length?[]:e[0].cells.map((function(e){return e.question}))},t}(k);d.g.registerVisualizer("matrixdynamic",z);var D=function(e){function t(t,i,r,s){void 0===r&&(r={});var n=e.call(this,t,i,r,s||"matrixDropdown")||this;if(n._matrixDropdownVisualizer=void 0,n.onPanelAfterRenderCallback=function(){n.afterRender(n.contentContainer)},n.loadingData=!1,n._childOptions=Object.assign({},r),n._childOptions.disableLocaleSwitch=!0,n._childOptions.dataProvider=void 0,n._childOptions.allowDynamicLayout=!1,n._childOptions.transposeData=!0,n._childOptions.seriesValues=t.rows.map((function(e){return e.value})),n._childOptions.seriesLabels=t.rows.map((function(e){return e.text})),n.canGroupColumns){var o=d.g.getVisualizersByType("matrixdropdown-grouped");n._matrixDropdownVisualizer=new o[0](n.question,[],n._childOptions)}else{var a=n.getQuestions();n._matrixDropdownVisualizer=new A(a,[],n._childOptions,void 0,!1)}return n._matrixDropdownVisualizer.onAfterRender.add(n.onPanelAfterRenderCallback),n.updateData(i),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"canGroupColumns",{get:function(){var e=this,t=this.getQuestions();return 1==this._childOptions.seriesValues.length&&t.every((function(t){return"boolean"!==t.getType()&&function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i].value!==t[i].value||e[i].text!==t[i].text)return!1;return!0}(t.choices,e.question.choices)}))},enumerable:!1,configurable:!0}),t.prototype.setLocale=function(t){e.prototype.setLocale.call(this,t),this._childOptions.seriesLabels=this.question.rows.map((function(e){return e.text})),this._matrixDropdownVisualizer.locale=t},Object.defineProperty(t.prototype,"matrixDropdownVisualizer",{get:function(){return this._matrixDropdownVisualizer},enumerable:!1,configurable:!0}),t.prototype.updateDropdownVisualizerData=function(){var e=this,t=[];this.data.forEach((function(i){var r=i[e.question.name];r&&Object.keys(r).forEach((function(e){var i=Object.assign({},r[e]);i[s.M.seriesMarkerKey]=e,t.push(i)}))})),this._matrixDropdownVisualizer.updateData(t)},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this.updateDropdownVisualizerData()},t.prototype.onDataChanged=function(){this.updateDropdownVisualizerData(),e.prototype.onDataChanged.call(this)},t.prototype.getQuestions=function(){var e=this.question;return e.columns.map((function(t){var i=t.templateQuestion;return Array.isArray(i.choices)&&0===i.choices.length&&(i.choices=e.choices),i}))},t.prototype.destroyContent=function(t){this._matrixDropdownVisualizer.clear(),e.prototype.destroyContent.call(this,this.contentContainer)},t.prototype.renderContent=function(e){this._matrixDropdownVisualizer.render(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this._matrixDropdownVisualizer.onAfterRender.remove(this.onPanelAfterRenderCallback)},t}(c.w);d.g.registerVisualizer("matrixdropdown",D);var E=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"composite")||this}return(0,p.C6)(t,e),t.prototype.getQuestions=function(){var e=[];return this.question.contentPanel.addQuestionsToList(e),e},t}(k);d.g.registerVisualizer("composite",E);var V={en:["...","a","about","above","across","after","again","against","all","almost","alone","along","already","also","although","always","among","an","and","another","any","anybody","anyone","anything","anywhere","are","area","areas","around","as","ask","asked","asking","asks","at","away","b","back","backed","backing","backs","be","became","because","become","becomes","been","before","began","behind","being","beings","best","better","between","big","both","but","by","c","came","can","cannot","case","cases","certain","certainly","clear","clearly","come","could","d","did","differ","different","differently","do","does","done","down","down","downed","downing","downs","during","e","each","early","either","end","ended","ending","ends","enough","even","evenly","ever","every","everybody","everyone","everything","everywhere","f","face","faces","fact","facts","far","felt","few","find","finds","first","for","four","from","full","fully","further","furthered","furthering","furthers","g","gave","general","generally","get","gets","give","given","gives","go","going","good","goods","got","great","greater","greatest","group","grouped","grouping","groups","h","had","has","have","having","he","her","here","herself","high","high","high","higher","highest","him","himself","his","how","however","i","if","important","in","interest","interested","interesting","interests","into","is","it","its","itself","j","just","k","keep","keeps","kind","knew","know","known","knows","l","large","largely","last","later","latest","least","less","let","lets","like","likely","long","longer","longest","m","made","make","making","man","many","may","me","member","members","men","might","more","most","mostly","mr","mrs","much","must","my","myself","n","necessary","need","needed","needing","needs","never","new","new","newer","newest","next","no","nobody","non","noone","not","nothing","now","nowhere","number","numbers","o","of","off","often","old","older","oldest","on","once","one","only","open","opened","opening","opens","or","order","ordered","ordering","orders","other","others","our","out","over","p","part","parted","parting","parts","per","perhaps","place","places","point","pointed","pointing","points","possible","present","presented","presenting","presents","problem","problems","put","puts","q","quite","r","rather","really","right","right","room","rooms","s","said","same","saw","say","says","second","seconds","see","seem","seemed","seeming","seems","sees","several","shall","she","should","show","showed","showing","shows","side","sides","since","small","smaller","smallest","so","some","somebody","someone","something","somewhere","state","states","still","still","such","sure","t","take","taken","than","that","the","their","them","then","there","therefore","these","they","thing","things","think","thinks","this","those","though","thought","thoughts","three","through","thus","to","today","together","too","took","toward","turn","turned","turning","turns","two","u","under","until","up","upon","us","use","used","uses","v","very","w","want","wanted","wanting","wants","was","way","ways","we","well","wells","went","were","what","when","where","whether","which","while","who","whole","whose","why","will","with","within","without","work","worked","working","works","would","x","y","year","years","yet","you","young","younger","youngest","your","yours","z"],no:["...","alle","andre","arbeid","at","av","bare","begge","ble","blei","bli","blir","blitt","bort","bruke","både","båe","da","de","deg","dei","deim","deira","deires","dem","den","denne","der","dere","deres","det","dette","di","din","disse","ditt","du","dykk","dykkar","då","eg","ein","eit","eitt","eller","elles","en","ene","eneste","enhver","enn","er","et","ett","etter","folk","for","fordi","forsøke","fra","få","før","før","først","gjorde","gjøre","god","gå","ha","hadde","han","hans","har","hennar","henne","hennes","her","hjå","ho","hoe","honom","hoss","hossen","hun","hva","hvem","hver","hvilke","hvilken","hvis","hvor","hvordan","hvorfor","i","ikke","ikkje","ingen","ingi","inkje","inn","innen","inni","ja","jeg","kan","kom","korleis","korso","kun","kunne","kva","kvar","kvarhelst","kven","kvi","kvifor","lage","lang","lik","like","makt","man","mange","me","med","medan","meg","meget","mellom","men","mens","mer","mest","mi","min","mine","mitt","mot","mye","mykje","må","måte","navn","ned","nei","no","noe","noen","noka","noko","nokon","nokor","nokre","ny","nå","når","og","også","om","opp","oss","over","part","punkt","på","samme","seg","selv","si","sia","sidan","siden","sin","sine","sist","sitt","sjøl","skal","skulle","slik","slutt","so","som","somme","somt","start","stille","så","sånn","tid","til","tilbake","tilstand","um","under","upp","ut","uten","var","vart","varte","ved","verdi","vere","verte","vi","vil","ville","vite","vore","vors","vort","vår","være","vært","vøre","vørt","æ","å"],nl:["de","en","van","ik","te","dat","die","in","een","hij","het","niet","zijn","is","was","op","aan","met","als","voor","had","er","maar","om","hem","dan","zou","of","wat","mijn","men","dit","zo","door","over","ze","zich","bij","ook","tot","je","mij","uit","der","daar","haar","naar","heb","hoe","heeft","hebben","deze","u","want","nog","zal","me","zij","nu","ge","geen","omdat","iets","worden","toch","al","waren","veel","meer","doen","toen","moet","ben","zonder","kan","hun","dus","alles","onder","ja","eens","hier","wie","werd","altijd","doch","wordt","wezen","kunnen","ons","zelf","tegen","na","reeds","wil","kon","niets","uw","iemand","geweest","andere"],es:["...","a","actualmente","adelante","además","afirmó","agregó","ahora","ahí","al","algo","alguna","algunas","alguno","algunos","algún","alrededor","ambos","ampleamos","ante","anterior","antes","apenas","aproximadamente","aquel","aquellas","aquellos","aqui","aquí","arriba","aseguró","así","atras","aunque","ayer","añadió","aún","bajo","bastante","bien","buen","buena","buenas","bueno","buenos","cada","casi","cerca","cierta","ciertas","cierto","ciertos","cinco","comentó","como","con","conocer","conseguimos","conseguir","considera","consideró","consigo","consigue","consiguen","consigues","contra","cosas","creo","cual","cuales","cualquier","cuando","cuanto","cuatro","cuenta","cómo","da","dado","dan","dar","de","debe","deben","debido","decir","dejó","del","demás","dentro","desde","después","dice","dicen","dicho","dieron","diferente","diferentes","dijeron","dijo","dio","donde","dos","durante","e","ejemplo","el","ella","ellas","ello","ellos","embargo","empleais","emplean","emplear","empleas","empleo","en","encima","encuentra","entonces","entre","era","erais","eramos","eran","eras","eres","es","esa","esas","ese","eso","esos","esta","estaba","estabais","estaban","estabas","estad","estada","estadas","estado","estados","estais","estamos","estan","estando","estar","estaremos","estará","estarán","estarás","estaré","estaréis","estaría","estaríais","estaríamos","estarían","estarías","estas","este","estemos","esto","estos","estoy","estuve","estuviera","estuvierais","estuvieran","estuvieras","estuvieron","estuviese","estuvieseis","estuviesen","estuvieses","estuvimos","estuviste","estuvisteis","estuviéramos","estuviésemos","estuvo","está","estábamos","estáis","están","estás","esté","estéis","estén","estés","ex","existe","existen","explicó","expresó","fin","fue","fuera","fuerais","fueran","fueras","fueron","fuese","fueseis","fuesen","fueses","fui","fuimos","fuiste","fuisteis","fuéramos","fuésemos","gran","grandes","gueno","ha","haber","habida","habidas","habido","habidos","habiendo","habremos","habrá","habrán","habrás","habré","habréis","habría","habríais","habríamos","habrían","habrías","habéis","había","habíais","habíamos","habían","habías","hace","haceis","hacemos","hacen","hacer","hacerlo","haces","hacia","haciendo","hago","han","has","hasta","hay","haya","hayamos","hayan","hayas","hayáis","he","hecho","hemos","hicieron","hizo","hoy","hube","hubiera","hubierais","hubieran","hubieras","hubieron","hubiese","hubieseis","hubiesen","hubieses","hubimos","hubiste","hubisteis","hubiéramos","hubiésemos","hubo","igual","incluso","indicó","informó","intenta","intentais","intentamos","intentan","intentar","intentas","intento","ir","junto","la","lado","largo","las","le","les","llegó","lleva","llevar","lo","los","luego","lugar","manera","manifestó","mayor","me","mediante","mejor","mencionó","menos","mi","mientras","mio","mis","misma","mismas","mismo","mismos","modo","momento","mucha","muchas","mucho","muchos","muy","más","mí","mía","mías","mío","míos","nada","nadie","ni","ninguna","ningunas","ninguno","ningunos","ningún","no","nos","nosotras","nosotros","nuestra","nuestras","nuestro","nuestros","nueva","nuevas","nuevo","nuevos","nunca","o","ocho","os","otra","otras","otro","otros","para","parece","parte","partir","pasada","pasado","pero","pesar","poca","pocas","poco","pocos","podeis","podemos","poder","podria","podriais","podriamos","podrian","podrias","podrá","podrán","podría","podrían","poner","por","por qué","porque","posible","primer","primera","primero","primeros","principalmente","propia","propias","propio","propios","próximo","próximos","pudo","pueda","puede","pueden","puedo","pues","que","quedó","queremos","quien","quienes","quiere","quién","qué","realizado","realizar","realizó","respecto","sabe","sabeis","sabemos","saben","saber","sabes","se","sea","seamos","sean","seas","segunda","segundo","según","seis","ser","seremos","será","serán","serás","seré","seréis","sería","seríais","seríamos","serían","serías","seáis","señaló","si","sido","siempre","siendo","siete","sigue","siguiente","sin","sino","sobre","sois","sola","solamente","solas","solo","solos","somos","son","soy","su","sus","suya","suyas","suyo","suyos","sí","sólo","tal","también","tampoco","tan","tanto","te","tendremos","tendrá","tendrán","tendrás","tendré","tendréis","tendría","tendríais","tendríamos","tendrían","tendrías","tened","teneis","tenemos","tener","tenga","tengamos","tengan","tengas","tengo","tengáis","tenida","tenidas","tenido","tenidos","teniendo","tenéis","tenía","teníais","teníamos","tenían","tenías","tercera","ti","tiempo","tiene","tienen","tienes","toda","todas","todavía","todo","todos","total","trabaja","trabajais","trabajamos","trabajan","trabajar","trabajas","trabajo","tras","trata","través","tres","tu","tus","tuve","tuviera","tuvierais","tuvieran","tuvieras","tuvieron","tuviese","tuvieseis","tuviesen","tuvieses","tuvimos","tuviste","tuvisteis","tuviéramos","tuviésemos","tuvo","tuya","tuyas","tuyo","tuyos","tú","ultimo","un","una","unas","uno","unos","usa","usais","usamos","usan","usar","usas","uso","usted","va","vais","valor","vamos","van","varias","varios","vaya","veces","ver","verdad","verdadera","verdadero","vez","vosotras","vosotros","voy","vuestra","vuestras","vuestro","vuestros","y","ya","yo","él","éramos","ésta","éstas","éste","éstos","última","últimas","último","últimos"]},L={getStopWords:function(e){return void 0===e&&(e=""),V[e||"en"]||[]}},M={spiralResolution:1,spiralLimit:1800,lineHeight:.8,xWordPadding:0,yWordPadding:3,weightFactor:40,topN:40,maxHeight:0,padding:10},O=function(){function e(e){void 0===e&&(e=M),this._options=e,this._words=[],this._placedWords=[],this._minWeight=1,this._weightFactor=1,this._renderedTarget=void 0,this.colors=["black"]}return Object.defineProperty(e.prototype,"words",{get:function(){return this._words},set:function(e){this._words=[].concat(e||[]),this._minWeight=1,this._weightFactor=1,this._words.length>0&&(this._words.sort((function(e,t){return-1*(e[1]-t[1])})),this._minWeight=this._words[this._words.length-1][1],this._weightFactor=(this._words[0][1]-this._minWeight+1)/this._options.weightFactor)},enumerable:!1,configurable:!0}),e.prototype.createWordElement=function(e,t,i){var r=document.createElement("div");return r.style.position="absolute",r.style.fontSize=(t-this._minWeight+1)/this._weightFactor+"px",r.style.lineHeight=this._options.lineHeight+"em",this.colors.length>0&&(r.style.color=this.colors[i%this.colors.length]),r.title=e+" ("+t+")",r.appendChild(document.createTextNode(e)),r},e.prototype.isIntersectWithPlaced=function(e){for(var t=0;t<this._placedWords.length;t+=1){var i=this._placedWords[t].rect;if(!(e.right+this._options.xWordPadding<i.left-this._options.xWordPadding||e.left-this._options.xWordPadding>i.right+this._options.xWordPadding||e.bottom+this._options.yWordPadding<i.top-this._options.yWordPadding||e.top-this._options.yWordPadding>i.bottom+this._options.yWordPadding))return!0}return!1},e.prototype.arrangeWords=function(e,t){for(var i={x:0,y:0},r=i.y,s=i.y,n=Math.min(this._options.topN,this.words.length),o=0;o<n;o+=1){var a=this.createWordElement(this.words[o][0],this.words[o][1],o);e.appendChild(a);for(var l=0;l<this._options.spiralLimit;l++){var u=this._options.spiralResolution*l;i.x=(1+u)*Math.cos(u),i.y=(1+u)*Math.sin(u);var h=t.x+i.x-a.offsetWidth/2,c=t.y+i.y-a.offsetHeight/2;a.style.left=h+"px",a.style.top=c+"px";var d=a.getBoundingClientRect();if(!this.isIntersectWithPlaced(d)){this._placedWords.push({element:a,rect:d,left:h,top:c});break}}var p=i.y-a.offsetHeight/2;r>p&&(r=p);var g=i.y+a.offsetHeight/2;s<g&&(s=g)}return[r,s]},e.prototype.render=function(e){var t=this;this._renderedTarget=e;var i=document.createElement("div");document.body.appendChild(i),i.style.position="fixed",i.style.top="-1000px",i.style.width="0",i.style.height="0";var r={x:i.offsetWidth/2,y:i.offsetHeight/2},s=this.arrangeWords(i,r),n=s[0],o=s[1];this._placedWords.forEach((function(e){e.element.style.top=e.top-n+t._options.padding+"px"})),i.remove(),i.style.top="auto",i.style.left="50%",i.className="sa-visualizer-wordcloud",i.style.position="relative",this._options.maxHeight>0&&(i.style.height=this._options.maxHeight+"px",i.style.overflow="auto"),0==this._options.maxHeight&&(i.style.height=o-n+2*this._options.padding+"px"),e.appendChild(i)},e.prototype.dispose=function(){this._renderedTarget&&(this._renderedTarget.innerHTML="",this._renderedTarget=void 0)},e}(),N=function(){function e(e){this.model=e}return Object.defineProperty(e.prototype,"wordcloud",{get:function(){return this._wordcloud},enumerable:!1,configurable:!0}),e.prototype.create=function(t){return(0,p.sH)(this,void 0,void 0,(function(){var i,s,n,o;return(0,p.YH)(this,(function(a){switch(a.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return i=a.sent(),this.model.getColors(),0===i.length?(s=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),t.appendChild(s),[2]):(n=JSON.parse(JSON.stringify(M)),o={config:n},e.onWordcloudCreating.fire(this.model,o),this._wordcloud=new O(n),this._wordcloud.colors=this.model.getColors(),this._wordcloud.words=i,this._wordcloud.render(t),[2,this._wordcloud])}}))}))},e.prototype.destroy=function(e){this._wordcloud&&"function"==typeof this._wordcloud.dispose&&this._wordcloud.dispose(),this._wordcloud=void 0},e.drawOutOfBound=!1,e.shrinkToFit=!0,e.abortThreshold=void 0,e.weightFactor=20,e.onWordcloudCreating=new g.Event,e}(),B=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"wordcloud")||this;return n._wordcloudAdapter=new N(n),n}return(0,p.C6)(t,e),t.prototype.convertFromExternalData=function(e){var t=[];return Object.keys(e||[]).forEach((function(i){t.push([i,e[i]])})),t},t.prototype.getCalculatedValuesCore=function(){var e=this,t={},i=[],s=r.qG.currentLocale;i=s?L.getStopWords(s):L.getStopWords();var n=new RegExp("[.,/#!$%^*;:{}=-_`~()]","g"),o=function(e){(e=""+e)&&e.split(" ").forEach((function(e){var r=(e||"").toLowerCase().replace(n,"");r=function(e){return-1!==i.indexOf(e)?"":e}(r),r&&(t[r]?t[r]++:t[r]=1)}))};return this.surveyData.forEach((function(t){var i=t[e.question.name];i&&(Array.isArray(i)?i.forEach(o):"object"==typeof i?Object.keys(i).forEach((function(e){return o(i[e])})):o(i))})),Object.keys(t).map((function(e){return[e,t[e]]}))},t.prototype.destroyContent=function(t){this._wordcloudAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),e.appendChild(t),[4,this._wordcloudAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._wordcloudAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(c.w);d.g.registerVisualizer("text",B),d.g.registerVisualizer("comment",B),d.g.registerVisualizer("multipletext",B);var R=function(){function e(e){this.model=e}return e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t,i,s,n,o,a,l=this;return(0,p.YH)(this,(function(u){switch(u.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return t=u.sent(),i=t.columnCount,s=t.data,n=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),0===s.length?(e.appendChild(n),[2]):((o=f.gf.createElement("table","sa-text-table")).style.backgroundColor=this.model.backgroundColor,e.appendChild(o),this.model.columns&&(a=f.gf.createElement("tr"),this.model.columns.forEach((function(e){var t=f.gf.createElement("th","sa-text-table__cell",{textContent:e.title});a.appendChild(t)})),o.appendChild(a)),s.forEach((function(e){for(var t=f.gf.createElement("tr"),r=0;r<i;r++){var s=l.model.columns[r],n=f.gf.createElement("td","sa-text-table__cell"+("number"==(null==s?void 0:s.type)?" sa-text-table__cell--number":""),{textContent:e[r]});t.appendChild(n)}o.appendChild(t)})),e.className="sa-text-table__container",e.appendChild(o),[2])}}))}))},e.prototype.destroy=function(e){e.innerHTML=""},e}(),q=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"text")||this;return n._textTableAdapter=new R(n),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[];return"multipletext"==this.question.getType()&&this.question.items.forEach((function(t){e.push({name:t.name,title:t.title,type:t.inputType})})),e},enumerable:!1,configurable:!0}),t.prototype.getCalculatedValuesCore=function(){var e=this,t=[],i=0;return this.surveyData.forEach((function(r){var s=r[e.question.name],n=[];s&&(Array.isArray(s)?n=n.concat(s):"object"==typeof s?Object.keys(s).forEach((function(e){return n.push(s[e])})):n.push(s),t.push(n),n.length>i&&(i=n.length))})),{columnCount:i,data:t}},t.prototype.destroyContent=function(t){this._textTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._textTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._textTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(c.w);d.g.registerVisualizer("text",q),d.g.registerVisualizer("comment",q),d.g.registerVisualizer("multipletext",q);var I=function(){function e(e){this.model=e}return e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t,i,s,n,o,a=this;return(0,p.YH)(this,(function(l){switch(l.label){case 0:return[4,this.model.getAnswersData()];case 1:return t=l.sent(),i=t.datasets,s=t.labels,t.colors,n=t.texts,t.seriesLabels.length,o=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),0===i.length||0===i[0].length?(e.appendChild(o),[2]):(i.forEach((function(t,i){var o=f.gf.createElement("table","sa-statistics-table");o.style.backgroundColor=a.model.backgroundColor,e.appendChild(o);var l=f.gf.createElement("tr"),u=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("answer")});l.appendChild(u);var h=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("statistics_chart")});l.appendChild(h);var c=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("percentage")});l.appendChild(c);var d=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("responses")});l.appendChild(d),o.appendChild(l);for(var p=t.length-1;p>=0;p--){var g=f.gf.createElement("tr");u=f.gf.createElement("td","sa-statistics-table__cell",{textContent:s[p]}),g.appendChild(u),h=f.gf.createElement("td","sa-statistics-table__cell");var m=f.gf.createElement("div","sa-choices-sparkline"),v=f.gf.createElement("div","sa-choices-sparkline-value");v.style.width=n[i][p]+"%",m.appendChild(v),h.appendChild(m),g.appendChild(h),c=f.gf.createElement("td","sa-statistics-table__cell sa-statistics-table__cell-value",{textContent:n[i][p]+"%"}),g.appendChild(c),d=f.gf.createElement("td","sa-statistics-table__cell sa-statistics-table__cell-value",{textContent:t[p]}),g.appendChild(d),o.appendChild(g)}e.className="sa-statistics-table__container",e.appendChild(o)})),[2])}}))}))},e.prototype.destroy=function(e){e.innerHTML=""},e}(),j=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"choices")||this;return n._statisticsTableAdapter=new I(n),n.showPercentages=!0,n}return(0,p.C6)(t,e),t.prototype.destroyContent=function(t){this._statisticsTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._statisticsTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._statisticsTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(o.o),G=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"options")||this;return n._statisticsTableAdapter=new I(n),n.showPercentages=!0,n}return(0,p.C6)(t,e),t.prototype.destroyContent=function(t){this._statisticsTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._statisticsTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._statisticsTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(l.o);d.g.registerVisualizer("radiogroup",j),d.g.registerVisualizer("dropdown",j),d.g.registerVisualizer("checkbox",j),d.g.registerVisualizer("boolean",G);var H=function(){function e(e,t){this._model=e,this._data=t,this._renderedTarget=void 0}return e.prototype.renderScorePart=function(e,t,i){var s=f.gf.createElement("div","sa-visualizer-nps__score-part"),n=f.gf.createElement("div","sa-visualizer-nps__score-part-title");n.innerText=r.qG.getString(e),s.appendChild(n);var o=f.gf.createElement("div","sa-visualizer-nps__score-part-values");s.appendChild(o);var a=f.gf.createElement("div","sa-visualizer-nps__score-part-value");if(a.innerText=""+t,o.appendChild(a),i){var l=f.gf.createElement("div","sa-visualizer-nps__score-part-percent");l.innerText=i+"%",o.appendChild(l)}return s},e.prototype.render=function(e){this._renderedTarget=e;var t=f.gf.createElement("div","sa-visualizer-nps");t.appendChild(this.renderScorePart("npsScore",this.npsScore)),t.appendChild(this.renderScorePart("npsPromoters",this._data.promoters,this.promotersPercent)),t.appendChild(this.renderScorePart("npsPassives",this._data.total-this._data.promoters-this._data.detractors,this.passivePercent)),t.appendChild(this.renderScorePart("npsDetractors",this._data.detractors,this.detractorsPercent)),e.appendChild(t)},Object.defineProperty(e.prototype,"npsScore",{get:function(){return(0,f.QX)((this._data.promoters-this._data.detractors)/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promotersPercent",{get:function(){return(0,f.QX)(this._data.promoters/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"passivePercent",{get:function(){return(0,f.QX)((this._data.total-this._data.promoters-this._data.detractors)/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detractorsPercent",{get:function(){return(0,f.QX)(this._data.detractors/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._renderedTarget&&(this._renderedTarget.innerHTML="",this._renderedTarget=void 0)},e}(),Y=function(){function e(e){this.model=e}return Object.defineProperty(e.prototype,"npsVisualizer",{get:function(){return this._npsVisualizer},enumerable:!1,configurable:!0}),e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return t=i.sent(),this._npsVisualizer=new H(this.model,t),this._npsVisualizer.render(e),[2,this._npsVisualizer]}}))}))},e.prototype.destroy=function(e){this._npsVisualizer&&"function"==typeof this._npsVisualizer.dispose&&this._npsVisualizer.dispose(),this._npsVisualizer=void 0},e}(),F=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"nps")||this;return n.precision=2,n._npsAdapter=new Y(n),n}return(0,p.C6)(t,e),t.prototype.getCalculatedValuesCore=function(){var e=this,i={detractors:0,passive:0,promoters:0,total:0};return this.data.forEach((function(r){var s=r[e.question.name],n=parseInt(s);Number.isNaN(n)||(n<=t.DetractorScore?i.detractors++:n>=t.PromoterScore?i.promoters++:i.passive++,i.total++)})),i},t.prototype.destroyContent=function(t){this._npsAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),e.appendChild(t),[4,this._npsAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._npsAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t.DetractorScore=6,t.PromoterScore=9,t}(c.w),X=i(582),Q=i(472)},472:(e,t,i)=>{"use strict";i.d(t,{y:()=>h});var r=i(87),s=i(156),n=i(183),o=i(70),a=i(267),l=i(240),u=i(557),h=function(e){function t(t,i,r,s,n){void 0===n&&(n=!0);var a=e.call(this,null,i,r,s||"pivot")||this;return a.questions=t,a.isRoot=n,a.valueType="enum",a._cachedValues=void 0,a._continuousData=void 0,a._cachedIntervals=void 0,a._intervalPrecision=2,a.axisYSelectors=[],a.axisYQuestionNames=[],a.questionsY=[],a.questions=a.questions.filter((function(e){return-1===["matrixdropdown","matrixdynamic","matrix","file","signature","multipletext","comment","html","image"].indexOf(e.getType())})),void 0!==a.options.intervalPrecision&&(a._intervalPrecision=a.options.intervalPrecision),a.axisXQuestionName=a.questions.length>0?a.questions[0].name:void 0,a.registerToolbarItem("axisXSelector",(function(){return a.axisXSelector=o.gf.createSelector(a.questions.map((function(e){return{value:e.name,text:e.title||e.name}})),(function(e){return a.axisXQuestionName===e.value}),(function(e){a.axisXQuestionName=e.target.value,a.updateQuestionsSelection(),a.updateToolbar(),a.setupPivot()}),(function(){return a.isXYChart()?l.qG.getString("axisXSelectorTitle"):l.qG.getString("axisXAlternativeSelectorTitle")}))})),a.registerToolbarItem("axisYSelector0",a.createYSelecterGenerator()),a.setupPivot(),a}return(0,r.C6)(t,e),t.prototype.createYSelecterGenerator=function(){var e=this,t=this.axisYSelectors.length;return function(){var i=e.axisYSelectors[t];return i?i.__updateSelect&&i.__updateSelect():(i=e.createAxisYSelector(t),e.axisYSelectors.push(i)),i}},t.prototype.setAxisQuestions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.length<1||(this.axisXQuestionName=e[0],this.axisYQuestionNames=e.splice(1),this.setupPivot())},t.prototype.onAxisYSelectorChanged=function(e,t){if(this.axisYQuestionNames[e]=t,e<this.axisYSelectors.length-1){if(!t){for(var i=e+1;i<this.axisYSelectors.length;++i)this.unregisterToolbarItem("axisYSelector"+i);this.axisYSelectors=this.axisYSelectors.slice(0,e+1),this.axisYQuestionNames=this.axisYQuestionNames.slice(0,e+1)}}else t&&this.registerToolbarItem("axisYSelector"+this.axisYSelectors.length,this.createYSelecterGenerator());this.updateQuestionsSelection(),this.updateToolbar(),this.setupPivot()},t.prototype.updateQuestionsSelection=function(){for(var e=[this.axisXQuestionName],t=0;t<this.axisYQuestionNames.length;++t){var i=this.axisYQuestionNames[t];if(-1!==e.indexOf(i)){this.onAxisYSelectorChanged(t,void 0);break}e.push(i)}},t.prototype.createAxisYSelector=function(e){var t=this,i=function(){var i=t.questions.filter((function(i){if(i.name===t.axisXQuestionName)return!1;var r=t.axisYQuestionNames.indexOf(i.name);return-1==r||r>=e})).map((function(e){return{value:e.name,text:e.title||e.name}}));return[{value:"",text:l.qG.getString("notSelected")}].concat(i)};if(1!=i().length)return o.gf.createSelector(i,(function(i){return t.axisYQuestionNames[e]===i.value}),(function(i){t.onAxisYSelectorChanged(e,i.target.value)}),(function(){return e?void 0:t.isXYChart()?l.qG.getString("axisYSelectorTitle"):l.qG.getString("axisYAlternativeSelectorTitle")}))},t.prototype.setChartType=function(t){var i=this.isXYChart();e.prototype.setChartType.call(this,t),i!==this.isXYChart()&&this.updateToolbar()},t.prototype.isXYChart=function(){return-1===["pie","doughnut"].indexOf(this.chartType)},t.prototype.getQuestionValueType=function(e){var t=e.getType();return"text"!==t||"date"!==e.inputType&&"datetime"!==e.inputType?"text"===t||"rating"===t||"expression"===t||"range"===t?"number":"enum":"date"},t.prototype.setupPivot=function(){var e=this,t=this.questions.filter((function(t){return t.name===e.axisXQuestionName}))[0];t&&(this.question=t,this.valueType=this.getQuestionValueType(t),this.questionsY=this.axisYQuestionNames.map((function(t){var i=e.questions.filter((function(e){return e.name===t}))[0];if(i)return"enum"===e.getQuestionValueType(i)?new n.o(i,[]):new a.w(i,[])})).filter((function(e){return!!e})),this.onDataChanged())},t.prototype.reset=function(){this._continuousData=void 0,this._cachedValues=void 0,this._cachedIntervals=void 0},t.prototype.getContinuousValue=function(e){return"date"===this.valueType?Date.parse(e):parseFloat(e)},t.prototype.getString=function(e){return"date"===this.valueType?new Date(e).toLocaleDateString():""+e},t.prototype.toPrecision=function(e){var t=Math.pow(10,this._intervalPrecision);return Math.round(t*e)/t},t.prototype.getSelectedItemByText=function(e){if(this.hasCustomIntervals||this.getContinuousValues().length>t.UseIntervalsFrom){var i=this.intervals.filter((function(t){return t.label===e}))[0];return new s.ItemValue(i,void 0!==i?i.label:"")}var r=this.getLabels(),n=r.indexOf(e);return new s.ItemValue(this.getValues()[n],r[n])},t.prototype.updateData=function(t){this.reset(),e.prototype.updateData.call(this,t)},t.prototype.onDataChanged=function(){this.reset(),e.prototype.onDataChanged.call(this)},t.prototype.getContinuousValues=function(){var e=this;if(void 0===this._cachedValues){if(this._continuousData=[],"enum"===this.valueType)return this._cachedValues=[],this._cachedValues;var t={};this.data.forEach((function(i){var r=i[e.name];void 0!==r&&(e._continuousData.push({continuous:e.getContinuousValue(r),row:i}),t[r]={value:r,row:i})})),this._cachedValues=Object.keys(t).map((function(i){return{original:t[i].value,continuous:e.getContinuousValue(i),row:t[i].row}})),this._cachedValues.sort((function(e,t){return e.continuous-t.continuous}))}return this._cachedValues},t.prototype.isSupportAnswersOrder=function(){return!1},t.prototype.isSupportMissingAnswers=function(){return!1},Object.defineProperty(t.prototype,"needUseRateValues",{get:function(){return"rating"==this.question.getType()&&Array.isArray(this.question.rateValues)&&this.question.rateValues.length>0},enumerable:!1,configurable:!0}),t.prototype.getSeriesValues=function(){var e=this;if(!this.questionsY||0===this.questionsY.length)return this.options.seriesValues||[];var t=[];return this.questionsY.forEach((function(i){"enum"===e.getQuestionValueType(i.question)?t.push.apply(t,i.getValues().reverse()):t.push(i.question.name)})),t},t.prototype.getSeriesLabels=function(){var e=this;if(0===this.questionsY.length)return this.getSeriesValues();var t=[];return this.questionsY.forEach((function(i){"enum"===e.getQuestionValueType(i.question)?t.push.apply(t,i.getLabels().reverse()):t.push(i.question.title||i.question.name)})),t},t.prototype.getValues=function(){return"enum"===this.valueType?e.prototype.getValues.call(this).reverse():this.intervals.map((function(e){return e.start}))},t.prototype.getLabels=function(){return"enum"===this.valueType?e.prototype.getLabels.call(this).reverse():this.intervals.map((function(e){return e.label}))},Object.defineProperty(t.prototype,"hasCustomIntervals",{get:function(){return!!this.questionOptions&&Array.isArray(this.questionOptions.intervals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intervals",{get:function(){if(this.hasCustomIntervals)return this.questionOptions.intervals;if("rating"==this.question.getType()){if(this.needUseRateValues){var e=this.question.rateValues;return e.sort((function(e,t){return e.value-t.value})),e.map((function(t,i){return{start:t.value,end:i<e.length-1?e[i+1].value:t.value+1,label:t.text}}))}for(var i=[],r=this.question.rateMin||0;r<=(this.question.rateMax||t.IntervalsCount-1);r+=this.question.rateStep||1)i.push({start:r,end:r+1,label:""+(this.question.rateMin&&this.question.rateMax?r:r+"-"+(r+1))});return i}if(void 0===this._cachedIntervals){var s=this.getContinuousValues();if(this._cachedIntervals=[],s.length){var n=s[0].continuous,o=s[s.length-1].continuous,a=t.IntervalsCount,l=(o-n)/a;for(r=0;r<a;++r){var u=n+l,h=this.toPrecision(n),c=this.toPrecision(u);this._cachedIntervals.push({start:h,end:r<a-1?c:c+l/100,label:this.getString(h)+"-"+this.getString(c)}),n=u}}}return this._cachedIntervals},enumerable:!1,configurable:!0}),t.prototype.convertFromExternalData=function(e){return[e]},t.prototype.getSeriesValueIndexes=function(){for(var e=this,t={},i=0,r=0;r<this.questionsY.length;++r)"enum"===this.getQuestionValueType(this.questionsY[r].question)?this.questionsY[r].getValues().reverse().forEach((function(s){t[e.questionsY[r].name+"_"+s]=i++})):t[this.questionsY[r].name]=i++;return t},t.prototype.updateStatisticsSeriesValue=function(e,t,i,r){for(var s=0;s<this.questionsY.length;++s)if(void 0!==t[this.questionsY[s].name]){var n=this.getQuestionValueType(this.questionsY[s].question);"enum"===n||"date"===n?e[r[this.questionsY[s].name+"_"+t[this.questionsY[s].name]]][i]++:e[r[this.questionsY[s].name]][i]+=parseFloat(t[this.questionsY[s].name])}},t.prototype.getCalculatedValuesCore=function(){var e=this,t=[],i=this.getSeriesValues();0===i.length&&i.push("");var r=this.getSeriesValueIndexes();if("enum"===this.valueType){var s=this.getValues(),n={};s.forEach((function(e,t){n[e]=t}));for(var o=0;o<i.length;++o)t.push(s.map((function(e){return 0})));this.data.forEach((function(i){var s=i[e.name];if(void 0!==s&&void 0!==n[s]){var o=n[s];0===e.questionsY.length?t[0][o]++:e.updateStatisticsSeriesValue(t,i,o,r)}}))}else{this.getContinuousValues();var a=this.intervals;for(o=0;o<i.length;++o)t.push(a.map((function(e){return 0})));this._continuousData.forEach((function(i){for(var s=0;s<a.length;++s)if(a[s].start<=i.continuous&&(i.continuous<a[s].end||s==a.length-1)){0===e.questionsY.length?t[0][s]++:e.updateStatisticsSeriesValue(t,i.row,s,r);break}}))}return t},t.prototype.getValueType=function(){return this.valueType},t.prototype.isSupportSoftUpdateContent=function(){return!1},t.prototype.renderToolbar=function(t){if(!this.haveCommercialLicense&&this.isRoot){var i=(0,o.Qk)();t.appendChild(i)}t.className+=" sa-pivot__header",e.prototype.renderToolbar.call(this,t)},t.IntervalsCount=10,t.UseIntervalsFrom=10,t}(n.o);u.g.registerPivotVisualizer(h)},555:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var r=i(156),s=function(){function e(e){void 0===e&&(e=[]),this._data=e,this.filterValues={},this.onDataChanged=new r.Event}return Object.defineProperty(e.prototype,"data",{get:function(){if(Array.isArray(this._data))return this._data},set:function(e){Array.isArray(e)?this._data=[].concat(e):this._data=e,this.raiseDataChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataFn",{get:function(){if("function"==typeof this._data)return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filteredData",{get:function(){var t=this;return void 0===this._filteredData&&(Object.keys(this.filterValues).length>0?this._filteredData=this.data.filter((function(i){return!Object.keys(t.filterValues).some((function(r){var s=t.filterValues[r],n=typeof s,o=i[r];if(Array.isArray(o)&&"object"!==n)return-1==o.indexOf(s);if("object"==typeof o)return"object"!==n||!function(e,t){var i=Object.keys(e),r=Object.keys(t);if(r.length>i.length)return!1;for(var s=0,n=r;s<n.length;s++){var o=n[s];if(t[o]!=e[o])return!1}return!0}(o,s);var a=i[e.seriesMarkerKey];if(a&&"object"===n)return o!==s[a];if("object"===n&&void 0!==s.start&&void 0!==s.end){var l="number"==typeof o?o:Date.parse(o);return!(!isNaN(l)||(l=parseFloat(o),!isNaN(l)))||l<s.start||l>=s.end}return i[r]!==t.filterValues[r]}))})):this._filteredData=this.data),this._filteredData},enumerable:!1,configurable:!0}),e.prototype.setFilter=function(e,t){var i=!0;void 0!==t?(i=this.filterValues[e]!==t,this.filterValues[e]=t):(i=void 0!==this.filterValues[e],delete this.filterValues[e]),i&&this.raiseDataChanged()},e.prototype.raiseDataChanged=function(e){this._filteredData=void 0,this.onDataChanged.isEmpty||this.onDataChanged.fire(this,{questionName:e})},e.prototype.getFilters=function(){var e=this;return Object.keys(this.filterValues).map((function(t){return{field:t,type:"=",value:e.filterValues[t]}}))},e.seriesMarkerKey="__sa_series_name",e}()},557:(e,t,i)=>{"use strict";i.d(t,{g:()=>r});var r=function(){function e(){}return e.registerVisualizer=function(t,i,r){void 0===r&&(r=Number.MAX_VALUE);var s=e.vizualizers[t];s||(s=[],e.vizualizers[t]=s),s.push({ctor:i,index:r})},e.unregisterVisualizer=function(t,i){var r=[t];t||(r=Object.keys(e.vizualizers)),r.forEach((function(t){if(i){var r=e.vizualizers[t];if(r){var s=r.filter((function(e){return e.ctor===i}))[0];if(s){var n=r.indexOf(s);-1!==n&&r.splice(n,1)}}}else e.vizualizers[t]=[]}))},e.unregisterVisualizerForAll=function(t){e.unregisterVisualizer(void 0,t)},e.getVisualizersByType=function(t,i){var r=e.vizualizers[t];return!i||r&&0!=r.length||(r=e.vizualizers[i]),r?((r=[].concat(r)).sort((function(e,t){return e.index-t.index})),r.map((function(e){return e.ctor}))):e.defaultVisualizer.suppressVisualizerStubRendering?[]:[e.defaultVisualizer]},e.getAltVisualizerSelector=function(){return e.alternativesVisualizer||e.defaultVisualizer},e.registerAltVisualizerSelector=function(t){e.alternativesVisualizer=t},e.getPivotVisualizerConstructor=function(){return e.pivotVisualizer||e.defaultVisualizer},e.registerPivotVisualizer=function(t){e.pivotVisualizer=t},e.defaultVisualizer=void 0,e.alternativesVisualizer=void 0,e.pivotVisualizer=void 0,e.vizualizers={},e}()},582:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});var r=i(87),s=i(557),n=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"ranking")||this}return(0,r.C6)(t,e),t.prototype.getQuestionResults=function(){var e=this.question.name;return this.data.map((function(t){return t[e]}))},t.prototype.getEmptyData=function(){var e=this.getValues(),t=[];return t.length=e.length,t.fill(0),t},t.prototype.getCalculatedValuesCore=function(){var e=this,t=this.getQuestionResults(),i=this.getValues(),r=this.getEmptyData();return t.forEach((function(t){e.applyResultToPlotlyData(t,r,i)})),[r]},t.prototype.applyResultToPlotlyData=function(e,t,i){e&&t&&i&&e.forEach((function(e,r,s){var n=i.indexOf(e);t[n]=+t[n]+(s.length-r)}))},t}(i(183).o);s.g.registerVisualizer("ranking",n)},637:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><circle cx="1.5" cy="14.5" r="1.5"></circle><circle cx="7.5" cy="14.5" r="1.5"></circle><circle cx="13.5" cy="14.5" r="1.5"></circle><rect x="12" y="1" width="3" height="9"></rect><path d="M2.02,7.02L1,6L0,7l3,3l3-3L5,6L4.06,6.94C4.33,4.73,6.21,3,8.5,3C8.67,3,8.83,3.03,9,3.05V1.03 C8.83,1.01,8.67,1,8.5,1C5.08,1,2.27,3.66,2.02,7.02z"></path></g></svg>'},782:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><circle cx="1.5" cy="8.5" r="1.5"></circle><circle cx="7.5" cy="8.5" r="1.5"></circle><circle cx="13.5" cy="8.5" r="1.5"></circle></g></svg>'},818:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var r=i(156),s=i(557),n=function(){function e(){}return e.createVisualizer=function(e,t,i){var n=e.getType(),o=[],a=e,l=Object.assign({},i);if("text"===n&&e.inputType)o=s.g.getVisualizersByType(e.inputType,n);else{var u=void 0;e instanceof r.QuestionCustomModel?u=e.getDynamicType():e instanceof r.QuestionCompositeModel&&(u="composite"),o=s.g.getVisualizersByType(n,u)}var h=o.map((function(e){return new e(a,t,l)}));return h.length>1?new(s.g.getAltVisualizerSelector())(h,a,t,l):h[0]},e}()},820:function(e){e.exports=function(){"use strict";var e={},t="swap",i="move",r="layoutStart",s="layoutEnd",n="remove",o="filter",a="sort",l="move",u="send",h="beforeSend",c="receive",d="beforeReceive",p="dragReleaseEnd";function g(){this._events={},this._queue=[],this._counter=0,this._isDestroyed=!1}g.prototype.on=function(e,t){if(this._isDestroyed)return this;var i=this._events[e];return i||(i=this._events[e]=[]),i.push(t),this},g.prototype.off=function(e,t){if(this._isDestroyed)return this;var i=this._events[e];if(!i||!i.length)return this;if(!t)return i.length=0,this;for(var r=i.length;r--;)t===i[r]&&i.splice(r,1);return this},g.prototype.emit=function(e,t,i,r){if(this._isDestroyed)return this;var s=this._events[e];if(!s||!s.length)return this;var n,o=this._queue,a=o.length,l=arguments.length-1;for(n=0;n<s.length;n++)o.push(s[n]);for(++this._counter,n=a,a=o.length;n<a;n++)if(0===l?o[n]():1===l?o[n](t):2===l?o[n](t,i):o[n](t,i,r),this._isDestroyed)return this;return--this._counter,this._counter||(o.length=0),this},g.prototype.destroy=function(){if(this._isDestroyed)return this;var e,t=this._events;for(e in this._isDestroyed=!0,this._queue.length=this._counter=0,t)t[e]&&(t[e].length=0,t[e]=void 0);return this};var f="transform",m="transform",v=window.document.documentElement.style,_="transform",y=!1;["","Webkit","Moz","O","ms"].forEach((function(e){if(!y){var t=e?e+"Transform":_;void 0!==v[t]&&(e=e.toLowerCase(),f=e?"-"+e+"-"+_:_,m=t,y=!0)}}));var b="function"==typeof WeakMap?new WeakMap:null;function w(e,t){var i=b&&b.get(e);return i||(i=window.getComputedStyle(e,null),b&&b.set(e,i)),i.getPropertyValue("transform"===t?f:t)}var C=/([A-Z])/g;function T(e){return e.replace(C,"-$1").toLowerCase()}function S(e){return"function"==typeof e}function x(e,t){for(var i in t)e.style["transform"===i?m:i]=t[i]}function P(e){this._element=e,this._animation=null,this._callback=null,this._props=[],this._values=[],this._keyframes=[],this._options={},this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}P.prototype.start=function(e,t,i){if(!this._isDestroyed){var r=this._animation,s=this._props,n=this._values,o=i||0,a=!1;if(r){var l,u=0;for(var h in t)if(++u,-1===(l=s.indexOf(h))||t[h]!==n[l]){a=!0;break}a||u===s.length||(a=!0)}if(a&&r.cancel(),this._callback=S(o.onFinish)?o.onFinish:null,!r||a){for(h in s.length=n.length=0,t)s.push(h),n.push(t[h]);var c=this._keyframes;c[0]=e,c[1]=t;var d=this._options;d.duration=o.duration||300,d.easing=o.easing||"ease";var p=this._element;(r=p.animate(c,d)).onfinish=this._onFinish,this._animation=r,x(p,t)}}},P.prototype.stop=function(e){if(!this._isDestroyed&&this._animation){var t,i,r,s=this._element,n=this._props,o=this._values;if(e)x(s,e);else for(r=0;r<n.length;r++)i=w(s,T(t=n[r])),s.style["transform"===t?m:t]=i;this._animation.cancel(),this._animation=this._callback=null,n.length=o.length=0}},P.prototype.isAnimating=function(){return!!this._animation},P.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=this._options=this._keyframes=null,this._isDestroyed=!0)},P.prototype._onFinish=function(){var e=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,e&&e()};var A=["","webkit","moz","ms","o","Webkit","Moz","MS","O"];function k(e,t){for(var i,r,s=t[0].toUpperCase()+t.slice(1),n=0;n<A.length;){if((r=(i=A[n])?i+s:t)in e)return r;++n}return null}var z=1e3/60,D=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return this.setTimeout((function(){e(z)}),z)}).bind(window),E=!1;try{var V=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("testPassive",null,V),window.removeEventListener("testPassive",null,V)}catch(e){}var L="start",M="move",O="end",N="cancel",B=!(!("ontouchstart"in window)&&!window.TouchEvent),R=!!window.PointerEvent,q=!!window.navigator.msPointerEnabled,I=/(android)/i.test(window.navigator.userAgent),j=!!E&&{passive:!0},G="touchAction",H=k(window.document.documentElement.style,G);function Y(e,t){this._element=e,this._emitter=new g,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._startEvent=null,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._preStartCheck=this._preStartCheck.bind(this),this._abortNonCancelable=this._abortNonCancelable.bind(this),this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this.setCssProps(t),this._touchAction||this.setTouchAction("auto"),e.addEventListener("dragstart",Y._preventDefault,!1),e.addEventListener(Y._events.start,this._preStartCheck,j),!B||R||q||e.addEventListener(Y._mouseEvents.start,this._preStartCheck,j)}function F(){this._nextStep=null,this._queue=[],this._reads={},this._writes={},this._batch=[],this._batchReads={},this._batchWrites={},this._step=this._step.bind(this)}Y._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},Y._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},Y._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},Y._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},Y._events=R?Y._pointerEvents:q?Y._msPointerEvents:B?Y._touchEvents:Y._mouseEvents,Y._emitter=new g,Y._activeInstances=[],Y._preventDefault=function(e){e.preventDefault&&!1!==e.cancelable&&e.preventDefault()},Y._activateInstance=function(e){Y._activeInstances.indexOf(e)>-1||(Y._activeInstances.push(e),Y._emitter.on(M,e._onMove),Y._emitter.on(N,e._onCancel),Y._emitter.on(O,e._onEnd),1===Y._activeInstances.length&&Y._bindListeners())},Y._deactivateInstance=function(e){var t=Y._activeInstances.indexOf(e);-1!==t&&(Y._activeInstances.splice(t,1),Y._emitter.off(M,e._onMove),Y._emitter.off(N,e._onCancel),Y._emitter.off(O,e._onEnd),Y._activeInstances.length||Y._unbindListeners())},Y._bindListeners=function(){var e=Y._events;window.addEventListener(e.move,Y._onMove,j),window.addEventListener(e.end,Y._onEnd,j),e.cancel&&window.addEventListener(e.cancel,Y._onCancel,j)},Y._unbindListeners=function(){var e=Y._events;window.removeEventListener(e.move,Y._onMove,j),window.removeEventListener(e.end,Y._onEnd,j),e.cancel&&window.removeEventListener(e.cancel,Y._onCancel,j)},Y._getEventPointerId=function(e){return"number"==typeof e.pointerId?e.pointerId:e.changedTouches?e.changedTouches[0]?e.changedTouches[0].identifier:null:1},Y._getTouchById=function(e,t){if("number"==typeof e.pointerId)return e.pointerId===t?e:null;if(e.changedTouches){for(var i=0;i<e.changedTouches.length;i++)if(e.changedTouches[i].identifier===t)return e.changedTouches[i];return null}return e},Y._onMove=function(e){Y._emitter.emit(M,e)},Y._onCancel=function(e){Y._emitter.emit(N,e)},Y._onEnd=function(e){Y._emitter.emit(O,e)},Y.prototype._reset=function(){this._isDestroyed||(this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._startEvent=null,this._element.removeEventListener(Y._touchEvents.start,this._abortNonCancelable,j),Y._deactivateInstance(this))},Y.prototype._createEvent=function(e,t){var i=this._getTrackedTouch(t);return{type:e,srcEvent:t,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:e===L?0:this.getDeltaTime(),isFirst:e===L,isFinal:e===O||e===N,identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},Y.prototype._emit=function(e,t){this._emitter.emit(e,this._createEvent(e,t))},Y.prototype._getTrackedTouch=function(e){return null===this._pointerId?null:Y._getTouchById(e,this._pointerId)},Y.prototype._preStartCheck=function(e){this._isDestroyed||this.isDragging()||I&&!1===e.cancelable||e.button||(this._pointerId=Y._getEventPointerId(e),null!==this._pointerId&&(this._startEvent=e,B&&(R||q)?(I&&this._element.addEventListener(Y._touchEvents.start,this._abortNonCancelable,j),D(this._onStart)):this._onStart()))},Y.prototype._abortNonCancelable=function(e){this._element.removeEventListener(Y._touchEvents.start,this._abortNonCancelable,j),this._startEvent&&!1===e.cancelable&&(this._pointerId=null,this._startEvent=null)},Y.prototype._onStart=function(){var e=this._startEvent;if(e){this._startEvent=null;var t=this._getTrackedTouch(e);t&&(this._startX=this._currentX=t.clientX,this._startY=this._currentY=t.clientY,this._startTime=Date.now(),this._emit(L,e),Y._activateInstance(this))}},Y.prototype._onMove=function(e){var t=this._getTrackedTouch(e);t&&(this._currentX=t.clientX,this._currentY=t.clientY,this._emit(M,e))},Y.prototype._onCancel=function(e){this._getTrackedTouch(e)&&(this._emit(N,e),this._reset())},Y.prototype._onEnd=function(e){this._getTrackedTouch(e)&&(this._emit(O,e),this._reset())},Y.prototype.isDragging=function(){return null!==this._pointerId},Y.prototype.setTouchAction=function(e){this._touchAction=e,H&&(this._cssProps[H]="",this._element.style[H]=e),B&&(this._element.removeEventListener(Y._touchEvents.start,Y._preventDefault,!1),this._element.style[H]!==e&&this._element.addEventListener(Y._touchEvents.start,Y._preventDefault,!1))},Y.prototype.setCssProps=function(e){if(e){var t,i,r=this._cssProps,s=this._element;for(t in r)s.style[t]=r[t],delete r[t];for(t in e)e[t]&&(t!==G?(i=k(s.style,t))&&(r[i]="",s.style[i]=e[t]):this.setTouchAction(e[t]))}},Y.prototype.getDeltaX=function(){return this._currentX-this._startX},Y.prototype.getDeltaY=function(){return this._currentY-this._startY},Y.prototype.getDistance=function(){var e=this.getDeltaX(),t=this.getDeltaY();return Math.sqrt(e*e+t*t)},Y.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},Y.prototype.on=function(e,t){this._emitter.on(e,t)},Y.prototype.off=function(e,t){this._emitter.off(eventName,t)},Y.prototype.destroy=function(){if(!this._isDestroyed){var e=this._element,t=Y._events;for(var i in this._reset(),this._emitter.destroy(),e.removeEventListener(t.start,this._preStartCheck,j),e.removeEventListener(Y._mouseEvents.start,this._preStartCheck,j),e.removeEventListener("dragstart",Y._preventDefault,!1),e.removeEventListener(Y._touchEvents.start,Y._preventDefault,!1),this._cssProps)e.style[i]=this._cssProps[i],delete this._cssProps[i];this._element=null,this._isDestroyed=!0}},F.prototype.add=function(e,t,i,r){var s=this._queue.indexOf(e);s>-1&&(this._queue[s]=void 0),r?this._queue.unshift(e):this._queue.push(e),this._reads[e]=t,this._writes[e]=i,this._nextStep||(this._nextStep=D(this._step))},F.prototype.cancel=function(e){var t=this._queue.indexOf(e);t>-1&&(this._queue[t]=void 0,delete this._reads[e],delete this._writes[e])},F.prototype._step=function(){var e,t,i=this._queue,r=this._reads,s=this._writes,n=this._batch,o=this._batchReads,a=this._batchWrites,l=i.length;for(this._nextStep=null,t=0;t<l;t++)(e=i[t])&&(n.push(e),o[e]=r[e],delete r[e],a[e]=s[e],delete s[e]);for(i.length=0,t=0;t<l;t++)o[e=n[t]]&&(o[e](),delete o[e]);for(t=0;t<l;t++)a[e=n[t]]&&(a[e](),delete a[e]);n.length=0,!this._nextStep&&i.length&&(this._nextStep=D(this._step))};var X=new F,Q="layout",W="visibility",U="move",K="scroll",Z="placeholder";function J(e){return X.cancel(e+W)}function $(e){return X.cancel(e+U)}function ee(e){return X.cancel(e+K)}function te(e){return X.cancel(e+Z)}var ie=window.Element.prototype,re=ie.matches||ie.matchesSelector||ie.webkitMatchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||ie.oMatchesSelector||function(){return!1};function se(e,t){return re.call(e,t)}function ne(e,t){e.classList?e.classList.add(t):se(e,"."+t)||(e.className+=" "+t)}var oe=[];function ae(e,t,i){var r="number"==typeof i?i:-1;r<0&&(r=e.length-r+1),e.splice.apply(e,oe.concat(r,0,t)),oe.length=0}function le(e,t,i){var r=e.length,s=Math.max(0,i?r:r-1);return t>s?s:t<0?Math.max(s+t+1,0):t}function ue(e,t,i){if(!(e.length<2)){var r=le(e,t),s=le(e,i);r!==s&&e.splice(s,0,e.splice(r,1)[0])}}function he(e,t,i){if(!(e.length<2)){var r,s=le(e,t),n=le(e,i);s!==n&&(r=e[s],e[s]=e[n],e[n]=r)}}var ce="cancel",de="finish",pe=0;function ge(e,t){var i,r=++pe+"debounce";return t>0?function(s){void 0!==i&&(i=window.clearTimeout(i),X.cancel(r),s===de&&e()),s!==ce&&s!==de&&(i=window.setTimeout((function(){i=void 0,X.add(r,e,null,!0)}),t))}:function(t){t!==ce&&e()}}function fe(e){var t=w(e,"transform");if(!t||"none"===t)return!1;var i=w(e,"display");return"inline"!==i&&"none"!==i}function me(e,t){for(var i=window.document,r=(t?e:e.parentElement)||i;r&&r!==i&&"static"===w(r,"position")&&!fe(r);)r=r.parentElement||i;return r}function ve(e,t){return parseFloat(w(e,t))||0}var _e={},ye={},be={};function we(e,t){var i,r=t||{};return r.left=0,r.top=0,e===document||(r.left=window.pageXOffset||0,r.top=window.pageYOffset||0,e.self===window.self||(i=e.getBoundingClientRect(),r.left+=i.left,r.top+=i.top,r.left+=ve(e,"border-left-width"),r.top+=ve(e,"border-top-width"))),r}function Ce(e,t,i){return be.left=0,be.top=0,e===t||i&&(e=me(e,!0))===(t=me(t,!0))||(we(e,_e),we(t,ye),be.left=ye.left-_e.left,be.top=ye.top-_e.top),be}var Te="auto",Se="scroll";function xe(e){var t=w(e,"overflow");return t===Te||t===Se||(t=w(e,"overflow-x"))===Te||t===Se||(t=w(e,"overflow-y"))===Te||t===Se}function Pe(e,t,i){for(var r=i||[],s=t?e:e.parentNode;s&&s!==document;)s.getRootNode&&s instanceof DocumentFragment?s=s.getRootNode().host:(xe(s)&&r.push(s),s=s.parentNode);return r.push(window),r}var Ae={},ke=/^matrix3d/,ze=/([^,]*,){4}/,De=/([^,]*,){12}/,Ee=/[^,]*,/;function Ve(e){Ae.x=0,Ae.y=0;var t=w(e,"transform");if(!t||"none"===t)return Ae;var i=ke.test(t),r=t.replace(i?De:ze,""),s=r.replace(Ee,"");return Ae.x=parseFloat(r)||0,Ae.y=parseFloat(s)||0,Ae}function Le(e,t){return"translateX("+e+"px) translateY("+t+"px)"}function Me(e,t){e.classList?e.classList.remove(t):se(e,"."+t)&&(e.className=(" "+e.className+" ").replace(" "+t+" "," ").trim())}var Oe,Ne,Be,Re;function qe(e){var t=e._element,i=e.getGrid(),r=i._settings;this._item=e,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=S(r.dragStartPredicate)?r.dragStartPredicate:qe.defaultStartPredicate,this._startPredicateState=0,this._startPredicateResult=void 0,this._hBlockedIndex=null,this._hX1=0,this._hX2=0,this._hY1=0,this._hY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._checkOverlap=this._checkOverlap.bind(this);var s=r.dragSortHeuristics.sortInterval;this._checkOverlapDebounce=ge(this._checkOverlap,s),this._dragger=new Y(t,r.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function Ie(e,t){return e.left+e.width<=t.left||t.left+t.width<=e.left||e.top+e.height<=t.top||t.top+t.height<=e.top?0:(Math.min(e.left+e.width,t.left+t.width)-Math.max(e.left,t.left))*(Math.min(e.top+e.height,t.top+t.height)-Math.max(e.top,t.top))/(Math.min(e.width,t.width)*Math.min(e.height,t.height))*100}function je(e){this._item=e,this._animate=new P,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._currentLeft=0,this._currentTop=0,this._nextLeft=0,this._nextTop=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this)}function Ge(){this._queue=[],this._isDestroyed=!1}function He(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._currentLeft=0,this._currentTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animateOptions={onFinish:this._finish.bind(this)},this._queue=new Ge,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}qe.defaultStartPredicate=function(e,t,i){var r=e._drag,s=r._startPredicateData||r._setupStartPredicate(i);if(!t.isFinal)return!(!s.handleElement&&(s.handleElement=r._getStartPredicateHandle(t),!s.handleElement))&&(s.delay&&(s.event=t,s.delayTimer||(s.delayTimer=window.setTimeout((function(){s.delay=0,r._resolveStartPredicate(s.event)&&(r._forceResolveStartPredicate(s.event),r._resetStartPredicate())}),s.delay))),r._resolveStartPredicate(t));r._finishStartPredicate(t)},qe.defaultSortPredicate=(Oe={},Ne={},Be={},Re=[],function(e,r){var s=e._drag,n=s._getGrid(),o=r&&"number"==typeof r.threshold?r.threshold:50,a=r&&r.action===t?t:i;Oe.width=e._width,Oe.height=e._height,Oe.left=s._elementClientX,Oe.top=s._elementClientY;var l=function(e,t,i){var r,s,n,o,a=null,l=t._settings.dragSort,u=-1;if(!0===l?(Re[0]=t,s=Re):s=l.call(t,e),!Array.isArray(s))return a;for(o=0;o<s.length;o++)(n=s[o])._isDestroyed||(n._updateBoundingRect(),Ne.width=n._width,Ne.height=n._height,Ne.left=n._left,Ne.top=n._top,(r=Ie(Oe,Ne))>i&&r>u&&(u=r,a=n));return Re.length=0,a}(e,n,o);if(!l)return!1;var u,h,c,d,p,g=0,f=0,m=-1;for(l===n?(Oe.left=s._gridX+e._marginLeft,Oe.top=s._gridY+e._marginTop):(l._updateBorders(1,0,1,0),g=l._left+l._borderLeft,f=l._top+l._borderTop),p=0;p<l._items.length;p++)(c=l._items[p])._isActive&&c!==e&&(h=!0,Ne.width=c._width,Ne.height=c._height,Ne.left=c._left+c._marginLeft+g,Ne.top=c._top+c._marginTop+f,(d=Ie(Oe,Ne))>m&&(u=p,m=d));return m<o&&e.getGrid()!==l&&(u=h?-1:0,m=1/0),m>=o&&(Be.grid=l,Be.index=u,Be.action=a,Be)}),qe.prototype.stop=function(){var e=this._item,t=e._element,i=this._getGrid();return this._isActive?this._isMigrating?(this._finishMigration(),this):($(e._id),ee(e._id),this._unbindScrollListeners(),this._checkOverlapDebounce("cancel"),t.parentNode!==i._element&&(i._element.appendChild(t),t.style[m]=Le(this._gridX,this._gridY)),Me(t,i._settings.itemDraggingClass),this._reset(),this):this},qe.prototype.destroy=function(){return this._isDestroyed||(this.stop(),this._dragger.destroy(),this._isDestroyed=!0),this},qe.prototype._getGrid=function(){return e[this._gridId]||null},qe.prototype._reset=function(){this._isActive=!1,this._container=null,this._containingBlock=null,this._dragEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._elementClientX=0,this._elementClientY=0,this._containerDiffX=0,this._containerDiffY=0},qe.prototype._bindScrollListeners=function(){var e,t,i=this._getGrid()._element,r=this._container,s=this._scrollers;if(s.length=0,Pe(this._item._element,!1,s),r!==i)for(Pe(i,!0,e=[]),t=0;t<e.length;t++)s.indexOf(e[t])<0&&s.push(e[t]);for(t=0;t<s.length;t++)s[t].addEventListener("scroll",this._onScroll)},qe.prototype._unbindScrollListeners=function(){var e,t=this._scrollers;for(e=0;e<t.length;e++)t[e].removeEventListener("scroll",this._onScroll);t.length=0},qe.prototype._setupStartPredicate=function(e){var t=e||this._getGrid()._settings.dragStartPredicate||0;return this._startPredicateData={distance:Math.abs(t.distance)||0,delay:Math.max(t.delay,0)||0,handle:"string"==typeof t.handle&&t.handle}},qe.prototype._getStartPredicateHandle=function(e){var t=this._startPredicateData,i=this._item._element,r=i;if(!t.handle)return r;for(r=e.target;r&&!se(r,t.handle);)r=r!==i?r.parentElement:null;return r||null},qe.prototype._resolveStartPredicate=function(e){var t=this._startPredicateData;if(!(e.distance<t.distance||t.delay)){var i=t.handleElement.getBoundingClientRect(),r=i.left+(window.pageXOffset||0),s=i.top+(window.pageYOffset||0),n=i.width,o=i.height;return this._resetStartPredicate(),n&&o&&e.pageX>=r&&e.pageX<r+n&&e.pageY>=s&&e.pageY<s+o}},qe.prototype._forceResolveStartPredicate=function(e){this._isDestroyed||1!==this._startPredicateState||(this._startPredicateState=2,this._onStart(e))},qe.prototype._finishStartPredicate=function(e){var t=this._item._element,i=Math.abs(e.deltaX)<2&&Math.abs(e.deltaY)<2&&e.deltaTime<200;this._resetStartPredicate(),i&&function(e){if("a"===e.tagName.toLowerCase()){var t=e.getAttribute("href");if(t){var i=e.getAttribute("target");i&&"_self"!==i?window.open(t,i):window.location.href=t}}}(t)},qe.prototype._resetHeuristics=function(e){this._hBlockedIndex=null,this._hX1=this._hX2=e.clientX,this._hY1=this._hY2=e.clientY},qe.prototype._checkHeuristics=function(e){var t=this._getGrid()._settings.dragSortHeuristics,i=t.minDragDistance;if(i<=0)return this._hBlockedIndex=null,!0;var r=e.clientX,s=e.clientY,n=r-this._hX2,o=s-this._hY2,a=i>3&&t.minBounceBackAngle>0;if(a||(this._hBlockedIndex=null),Math.abs(n)>i||Math.abs(o)>i){if(a){var l=Math.atan2(n,o),u=Math.atan2(this._hX2-this._hX1,this._hY2-this._hY1),h=Math.atan2(Math.sin(l-u),Math.cos(l-u));Math.abs(h)>t.minBounceBackAngle&&(this._hBlockedIndex=null)}return this._hX1=this._hX2,this._hY1=this._hY2,this._hX2=r,this._hY2=s,!0}return!1},qe.prototype._resetStartPredicate=function(){var e=this._startPredicateData;e&&(e.delayTimer&&(e.delayTimer=window.clearTimeout(e.delayTimer)),this._startPredicateData=null)},qe.prototype._checkOverlap=function(){if(this._isActive){var e,r,s,n,o,a,p,g=this._item,f=this._getGrid()._settings;(e=S(f.dragSortPredicate)?f.dragSortPredicate(g,this._dragEvent):qe.defaultSortPredicate(g,f.dragSortPredicate))&&"number"==typeof e.index&&(p=(r=g.getGrid())!==(n=e.grid||r),s=r._items.indexOf(g),o=le(n._items,e.index,p),a=e.action===t?t:i,(p||o!==this._hBlockedIndex)&&(p?(this._hBlockedIndex=null,r._hasListeners(h)&&r._emit(h,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(d)&&n._emit(d,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),g._gridId=n._id,this._isMigrating=g._gridId!==this._gridId,r._items.splice(s,1),ae(n._items,g,o),g._sortData=null,r._hasListeners(u)&&r._emit(u,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(c)&&n._emit(c,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),r.layout(),n.layout()):s!==o&&(this._hBlockedIndex=s,(a===t?he:ue)(r._items,s,o),r._hasListeners(l)&&r._emit(l,{item:g,fromIndex:s,toIndex:o,action:a}),r.layout())))}},qe.prototype._finishMigration=function(){var e,t,i=this._item,r=i._release,s=i._element,n=i._isActive,o=i.getGrid(),a=o._element,l=o._settings,u=l.dragContainer||a,h=this._getGrid()._settings,c=s.parentNode;this._isMigrating=!1,this.destroy(),Me(s,h.itemClass),Me(s,h.itemVisibleClass),Me(s,h.itemHiddenClass),ne(s,l.itemClass),ne(s,n?l.itemVisibleClass:l.itemHiddenClass),u!==c&&(u.appendChild(s),t=Ce(c,u,!0),(e=Ve(s)).x-=t.left,e.y-=t.top),i._refreshDimensions(),i._refreshSortData(),t=Ce(u,a,!0),r._containerDiffX=t.left,r._containerDiffY=t.top,i._drag=l.dragEnabled?new qe(i):null,u!==c&&(s.style[m]=Le(e.x,e.y)),i._child.removeAttribute("style"),x(i._child,n?l.visibleStyles:l.hiddenStyles),r.start()},qe.prototype._preStartCheck=function(e){0===this._startPredicateState&&(this._startPredicateState=1),1===this._startPredicateState?(this._startPredicateResult=this._startPredicate(this._item,e),!0===this._startPredicateResult?(this._startPredicateState=2,this._onStart(e)):!1===this._startPredicateResult&&(this._startPredicateState=3)):2===this._startPredicateState&&this._isActive&&this._onMove(e)},qe.prototype._preEndCheck=function(e){var t=2===this._startPredicateState;this._startPredicate(this._item,e),this._startPredicateState=0,t&&this._isActive&&this._onEnd(e)},qe.prototype._onStart=function(e){var t=this._item;if(t._isActive){var i,r=t._element,s=this._getGrid(),n=s._settings,o=t._release,a=t._migrate,l=s._element,u=n.dragContainer||l,h=me(u,!0),c=Ve(r),d=c.x,p=c.y,g=r.getBoundingClientRect(),f=u!==l;this._resetHeuristics(e),f&&(i=Ce(h,l)),t.isPositioning()&&t._layout.stop(!0,{transform:Le(d,p)}),a._isActive&&(d-=a._containerDiffX,p-=a._containerDiffY,a.stop(!0,{transform:Le(d,p)})),t.isReleasing()&&o._reset(),this._isActive=!0,this._dragEvent=e,this._container=u,this._containingBlock=h,this._elementClientX=g.left,this._elementClientY=g.top,this._left=this._gridX=d,this._top=this._gridY=p,n.dragPlaceholder.enabled&&t._dragPlaceholder.create(),s._emit("dragInit",t,e),f&&(this._containerDiffX=i.left,this._containerDiffY=i.top,r.parentNode===u?(this._gridX=d-this._containerDiffX,this._gridY=p-this._containerDiffY):(this._left=d+this._containerDiffX,this._top=p+this._containerDiffY,u.appendChild(r),r.style[m]=Le(this._left,this._top))),ne(r,n.itemDraggingClass),this._bindScrollListeners(),s._emit("dragStart",t,e)}},qe.prototype._onMove=function(e){var t,i,r,s=this._item;if(s._isActive){var n=this._getGrid()._settings.dragAxis;if("y"!==n){var o=e.clientX-this._dragEvent.clientX;this._left+=o,this._gridX+=o,this._elementClientX+=o}if("x"!==n){var a=e.clientY-this._dragEvent.clientY;this._top+=a,this._gridY+=a,this._elementClientY+=a}this._dragEvent=e,t=s._id,i=this._prepareMove,r=this._applyMove,X.add(t+U,i,r,!0)}else this.stop()},qe.prototype._prepareMove=function(){this._item._isActive&&this._getGrid()._settings.dragSort&&this._checkHeuristics(this._dragEvent)&&this._checkOverlapDebounce()},qe.prototype._applyMove=function(){var e=this._item;e._isActive&&(e._element.style[m]=Le(this._left,this._top),this._getGrid()._emit("dragMove",e,this._dragEvent))},qe.prototype._onScroll=function(e){var t,i,r,s=this._item;s._isActive?(this._scrollEvent=e,t=s._id,i=this._prepareScroll,r=this._applyScroll,X.add(t+K,i,r,!0)):this.stop()},qe.prototype._prepareScroll=function(){var e=this._item;if(e._isActive){var t,i=e._element,r=this._getGrid(),s=r._settings,n=s.dragAxis,o=r._element,a=i.getBoundingClientRect(),l=this._elementClientX-a.left,u=this._elementClientY-a.top;this._container!==o&&(t=Ce(this._containingBlock,o),this._containerDiffX=t.left,this._containerDiffY=t.top),"y"!==n&&(this._left+=l,this._gridX=this._left-this._containerDiffX),"x"!==n&&(this._top+=u,this._gridY=this._top-this._containerDiffY),s.dragSort&&this._checkOverlapDebounce()}},qe.prototype._applyScroll=function(){var e=this._item;e._isActive&&(e._element.style[m]=Le(this._left,this._top),this._getGrid()._emit("dragScroll",e,this._scrollEvent))},qe.prototype._onEnd=function(e){var t=this._item,i=t._element,r=this._getGrid(),s=r._settings,n=t._release;t._isActive?($(t._id),ee(t._id),s.dragSort&&this._checkOverlapDebounce("finish"),this._unbindScrollListeners(),n._containerDiffX=this._containerDiffX,n._containerDiffY=this._containerDiffY,this._reset(),Me(i,s.itemDraggingClass),r._emit("dragEnd",t,e),this._isMigrating?this._finishMigration():n.start()):this.stop()},je.prototype._onLayoutStart=function(){var e,t,i,r=this._item,s=r.getGrid(),n=s._items.indexOf(r),o=s._layout.slots[2*n],a=s._layout.slots[2*n+1];if(this._didMigrate||r._left!==o||r._top!==a){if(o+=r._marginLeft,a+=r._marginTop,!(s._settings.dragPlaceholder.duration>0)||this._didMigrate){te(r._id);var l={transform:Le(o,a)};return this._animate.isAnimating()?this._animate.stop(l):x(this._element,l),void(this._didMigrate&&(s.getElement().appendChild(this._element),this._didMigrate=!1))}this._nextLeft=o,this._nextTop=a,e=r._id,t=this._setupAnimation,i=this._startAnimation,X.add(e+Z,t,i)}},je.prototype._setupAnimation=function(){if(this.isActive()){var e=Ve(this._element);this._currentLeft=e.x,this._currentTop=e.y}},je.prototype._startAnimation=function(){if(this.isActive()){var e=this._animate,t=this._currentLeft,i=this._currentTop,r=this._nextLeft,s=this._nextTop,n={transform:Le(r,s)};if(t!==r||i!==s){var o=this._item.getGrid()._settings.dragPlaceholder,a={transform:Le(t,i)};e.start(a,n,{duration:o.duration,easing:o.easing,onFinish:this._onLayoutEnd})}else e.isAnimating()&&e.stop(n)}},je.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},je.prototype._onReleaseEnd=function(e){if(e._id===this._item._id){if(!this._animate.isAnimating())return void this.reset();this._resetAfterLayout=!0}},je.prototype._onMigrate=function(e){if(e.item===this._item){var t=this._item.getGrid(),i=e.toGrid;t.off(p,this._onReleaseEnd),t.off(r,this._onLayoutStart),t.off(h,this._onMigrate),i.on(p,this._onReleaseEnd),i.on(r,this._onLayoutStart),i.on(h,this._onMigrate),this._didMigrate=!0}},je.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var e,t=this._item,i=t.getGrid(),s=i._settings,n=this._animate;e=S(s.dragPlaceholder.createElement)?s.dragPlaceholder.createElement(t):window.document.createElement("div"),this._element=e,n._element=e,this._className=s.itemPlaceholderClass||"",this._className&&ne(e,this._className);var o=t._left+t._marginLeft,a=t._top+t._marginTop;x(e,{display:"block",position:"absolute",left:"0",top:"0",width:t._width+"px",height:t._height+"px",transform:Le(o,a)}),i.on(r,this._onLayoutStart),i.on(p,this._onReleaseEnd),i.on(h,this._onMigrate),S(s.dragPlaceholder.onCreate)&&s.dragPlaceholder.onCreate(t,e),i.getElement().appendChild(e)}},je.prototype.reset=function(){if(this.isActive()){var e=this._element,t=this._item,i=t.getGrid(),s=i._settings,n=this._animate;this._resetAfterLayout=!1,te(t._id),n.stop(),n._element=null,i.off(p,this._onReleaseEnd),i.off(r,this._onLayoutStart),i.off(h,this._onMigrate),this._className&&(Me(e,this._className),this._className=""),e.parentNode.removeChild(e),this._element=null,S(s.dragPlaceholder.onRemove)&&s.dragPlaceholder.onRemove(t,e)}},je.prototype.updateDimensions=function(e,t){this.isActive()&&x(this._element,{width:e+"px",height:t+"px"})},je.prototype.isActive=function(){return!!this._element},je.prototype.destroy=function(){this.reset(),this._animate.destroy(),this._item=this._animate=null},Ge.prototype.add=function(e){return this._isDestroyed||this._queue.push(e),this},Ge.prototype.flush=function(e,t){if(this._isDestroyed)return this;var i,r=this._queue,s=r.length;if(!s)return this;var n=1===s,o=n?r[0]:r.slice(0);if(r.length=0,n)return o(e,t),this;for(i=0;i<s&&(o[i](e,t),!this._isDestroyed);i++);return this},Ge.prototype.destroy=function(){return this._isDestroyed||(this._isDestroyed=!0,this._queue.length=0),this},He.prototype.start=function(e,t){if(!this._isDestroyed){var i,r=this._item,s=r._element,n=r._release,o=r.getGrid()._settings,a=this._isActive,l=n._isActive&&!1===n._isPositioningStarted,u=l?o.dragReleaseDuration:o.layoutDuration,h=l?o.dragReleaseEasing:o.layoutEasing,c=!e&&!this._skipNextAnimation&&u>0;return a&&this._queue.flush(!0,r),l&&(n._isPositioningStarted=!0),S(t)&&this._queue.add(t),c?(this._isActive=!0,this._animateOptions.easing=h,this._animateOptions.duration=u,this._isInterrupted=a,d=r._id,p=this._setupAnimation,g=this._startAnimation,X.add(d+Q,p,g),this):(this._updateOffsets(),this._updateTargetStyles(),i=r._animate.isAnimating(),this.stop(!1,this._targetStyles),!i&&x(s,this._targetStyles),this._skipNextAnimation=!1,this._finish())}var d,p,g},He.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item;return i=r._id,X.cancel(i+Q),r._animate.stop(t),Me(r._element,r.getGrid()._settings.itemPositioningClass),this._isActive=!1,e&&this._queue.flush(!0,r),this},He.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0,{}),this._queue.destroy(),this._item=this._currentStyles=this._targetStyles=this._animateOptions=null,this._isDestroyed=!0),this},He.prototype._updateOffsets=function(){if(!this._isDestroyed){var e=this._item,t=e._migrate,i=e._release;this._offsetLeft=i._isActive?i._containerDiffX:t._isActive?t._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:t._isActive?t._containerDiffY:0}},He.prototype._updateTargetStyles=function(){this._isDestroyed||(this._targetStyles.transform=Le(this._item._left+this._offsetLeft,this._item._top+this._offsetTop))},He.prototype._finish=function(){if(!this._isDestroyed){var e=this._item,t=e._migrate,i=e._release;this._isActive&&(this._isActive=!1,Me(e._element,e.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),t._isActive&&t.stop(),this._queue.flush(!1,e)}},He.prototype._setupAnimation=function(){var e=Ve(this._item._element);this._currentLeft=e.x,this._currentTop=e.y},He.prototype._startAnimation=function(){var e=this._item,t=e.getGrid()._settings;if(this._updateOffsets(),this._updateTargetStyles(),e._left===this._currentLeft-this._offsetLeft&&e._top===this._currentTop-this._offsetTop)return this._isInterrupted&&this.stop(!1,this._targetStyles),this._isActive=!1,void this._finish();this._isInterrupted||ne(e._element,t.itemPositioningClass),this._currentStyles.transform=Le(this._currentLeft,this._currentTop),e._animate.start(this._currentStyles,this._targetStyles,this._animateOptions)};var Ye={};function Fe(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}Fe.prototype.start=function(e,t,i){if(this._isDestroyed)return this;var r,s,n,o,a,l,p,g,f=this._item,v=f._element,_=f.isVisible(),y=f.getGrid(),b=y._settings,w=e._settings,C=e._element,T=e._items,S=y._items.indexOf(f),P=i||window.document.body;if("number"==typeof t)r=le(T,t,!0);else{if(!(s=e._getItem(t)))return this;r=T.indexOf(s)}return(f.isPositioning()||this._isActive||f.isReleasing())&&(p=(l=Ve(v)).x,g=l.y),f.isPositioning()&&f._layout.stop(!0,{transform:Le(p,g)}),this._isActive&&(p-=this._containerDiffX,g-=this._containerDiffY,this.stop(!0,{transform:Le(p,g)})),f.isReleasing()&&(p-=f._release._containerDiffX,g-=f._release._containerDiffY,f._release.stop(!0,{transform:Le(p,g)})),f._visibility._stopAnimation(),f._drag&&f._drag.destroy(),f._visibility._queue.flush(!0,f),y._hasListeners(h)&&y._emit(h,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),e._hasListeners(d)&&e._emit(d,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),Me(v,b.itemClass),Me(v,b.itemVisibleClass),Me(v,b.itemHiddenClass),ne(v,w.itemClass),ne(v,_?w.itemVisibleClass:w.itemHiddenClass),y._items.splice(S,1),ae(T,f,r),f._gridId=e._id,P!==(n=v.parentNode)&&(P.appendChild(v),o=Ce(P,n,!0),l||(p=(l=Ve(v)).x,g=l.y),v.style[m]=Le(p+o.left,g+o.top)),f._child.removeAttribute("style"),x(f._child,_?w.visibleStyles:w.hiddenStyles),v.style.display=_?"block":"hidden",a=Ce(P,C,!0),f._refreshDimensions(),f._refreshSortData(),f._drag=w.dragEnabled?new qe(f):null,this._isActive=!0,this._container=P,this._containerDiffX=a.left,this._containerDiffY=a.top,y._hasListeners(u)&&y._emit(u,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),e._hasListeners(c)&&e._emit(c,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),this},Fe.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item,s=r._element,n=r.getGrid()._element;return this._container!==n&&(t||(e?(i=Ve(s),Ye.transform=Le(i.x-this._containerDiffX,i.y-this._containerDiffY)):Ye.transform=Le(r._left,r._top),t=Ye),n.appendChild(s),x(s,t)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0,this},Fe.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0),this};var Xe={};function Qe(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}function We(e){var t=e._isActive,i=e._element,r=e.getGrid()._settings;this._item=e,this._isDestroyed=!1,this._isHidden=!t,this._isHiding=!1,this._isShowing=!1,this._queue=new Ge,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=t?"block":"none",ne(i,t?r.itemVisibleClass:r.itemHiddenClass),x(e._child,t?r.visibleStyles:r.hiddenStyles)}Qe.prototype.start=function(){if(this._isDestroyed||this._isActive)return this;var e=this._item,t=e.getGrid();return this._isActive=!0,ne(e._element,t._settings.itemReleasingClass),t._emit("dragReleaseStart",e),e._layout.start(!1),this},Qe.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item,s=r._element,n=r.getGrid(),o=n._element;return this._reset(),s.parentNode!==o&&(t||(e?(i=Ve(s),Xe.transform=Le(i.x-this._containerDiffX,i.y-this._containerDiffY)):Xe.transform=Le(r._left,r._top),t=Xe),o.appendChild(s),x(s,t)),e||n._emit(p,r),this},Qe.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0),this},Qe.prototype._reset=function(){if(!this._isDestroyed){var e=this._item;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,Me(e._element,e.getGrid()._settings.itemReleasingClass)}},We.prototype.show=function(e,t){if(this._isDestroyed)return this;var i=this._item,r=i._element,s=this._queue,n=S(t)?t:null,o=i.getGrid()._settings;return this._isShowing||this._isHidden?this._isShowing&&!e?(n&&s.add(n),this):(this._isShowing||(s.flush(!0,i),Me(r,o.itemHiddenClass),ne(r,o.itemVisibleClass),this._isHiding||(r.style.display="block")),n&&s.add(n),i._isActive=this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,e,this._finishShow),this):(n&&n(!1,i),this)},We.prototype.hide=function(e,t){if(this._isDestroyed)return this;var i=this._item,r=i._element,s=this._queue,n=S(t)?t:null,o=i.getGrid()._settings;return!this._isHiding&&this._isHidden?(n&&n(!1,i),this):this._isHiding&&!e?(n&&s.add(n),this):(this._isHiding||(s.flush(!0,i),ne(r,o.itemHiddenClass),Me(r,o.itemVisibleClass)),n&&s.add(n),this._isHidden=this._isHiding=!0,i._isActive=this._isShowing=!1,this._startAnimation(!1,e,this._finishHide),this)},We.prototype.destroy=function(){if(this._isDestroyed)return this;var e=this._item,t=e._element,i=e.getGrid(),r=this._queue,s=i._settings;return this._stopAnimation({}),r.flush(!0,e).destroy(),Me(t,s.itemVisibleClass),Me(t,s.itemHiddenClass),this._item=null,this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0,this},We.prototype._startAnimation=function(e,t,i){if(!this._isDestroyed){var r,s=this._item,n=s.getGrid()._settings,o=e?n.visibleStyles:n.hiddenStyles,a=parseInt(e?n.showDuration:n.hideDuration)||0,l=(e?n.showEasing:n.hideEasing)||"ease",u=t||a<=0;if(o){if(J(s._id),u)return s._animateChild.isAnimating()?s._animateChild.stop(o):x(s._child,o),void(i&&i());h=s._id,c=function(){r=function(e,t){var i={};for(var r in t)i[r]=w(e,T(r));return i}(s._child,o)},d=function(){s._animateChild.start(r,o,{duration:a,easing:l,onFinish:i})},X.add(h+W,c,d)}else i&&i()}var h,c,d},We.prototype._stopAnimation=function(e){if(!this._isDestroyed){var t=this._item;J(t._id),t._animateChild.stop(e)}},We.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._queue.flush(!1,this._item))};var Ue={};We.prototype._finishHide=function(){if(this._isHidden){var e=this._item;this._isHiding=!1,Ue.transform=Le(0,0),e._layout.stop(!0,Ue),e._element.style.display="none",this._queue.flush(!1,e)}};var Ke,Ze,Je,$e,et=0;function tt(){return++et}function it(e,t,i){var r=e._settings;this._id=tt(),this._gridId=e._id,this._isDestroyed=!1,this._left=0,this._top=0,this._element=t,this._child=t.children[0],t.parentNode!==e._element&&e._element.appendChild(t),ne(t,r.itemClass),"boolean"!=typeof i&&(i="none"!==w(t,"display")),this._isActive=i,t.style.left="0",t.style.top="0",t.style[m]=Le(0,0),this._animate=new P(t),this._animateChild=new P(this._child),this._visibility=new We(this),this._layout=new He(this),this._migrate=new Fe(this),this._release=new Qe(this),this._dragPlaceholder=new je(this),this._drag=r.dragEnabled?new qe(this):null,this._refreshDimensions(),this._refreshSortData()}function rt(){this._slots=[],this._slotSizes=[],this._freeSlots=[],this._newSlots=[],this._rectItem={},this._rectStore=[],this._rectId=0,this._layout={slots:null,setWidth:!1,setHeight:!1,width:!1,height:!1},this._sortRectsLeftTop=this._sortRectsLeftTop.bind(this),this._sortRectsTopLeft=this._sortRectsTopLeft.bind(this)}it.prototype.getGrid=function(){return e[this._gridId]},it.prototype.getElement=function(){return this._element},it.prototype.getWidth=function(){return this._width},it.prototype.getHeight=function(){return this._height},it.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},it.prototype.getPosition=function(){return{left:this._left,top:this._top}},it.prototype.isActive=function(){return this._isActive},it.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},it.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},it.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},it.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},it.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},it.prototype.isReleasing=function(){return!(!this._release||!this._release._isActive)},it.prototype.isDestroyed=function(){return this._isDestroyed},it.prototype._refreshDimensions=function(){if(!this._isDestroyed&&!this._visibility._isHidden){var e=this._element,t=this._dragPlaceholder,i=e.getBoundingClientRect();this._width=i.width,this._height=i.height,this._marginLeft=Math.max(0,ve(e,"margin-left")),this._marginRight=Math.max(0,ve(e,"margin-right")),this._marginTop=Math.max(0,ve(e,"margin-top")),this._marginBottom=Math.max(0,ve(e,"margin-bottom")),t&&t.updateDimensions(this._width,this._height)}},it.prototype._refreshSortData=function(){if(!this._isDestroyed){var e,t=this._sortData={},i=this.getGrid()._settings.sortData;for(e in i)t[e]=i[e](this,this._element)}},it.prototype._destroy=function(e){if(!this._isDestroyed){var t=this._element,i=this.getGrid(),r=i._settings,s=i._items.indexOf(this);this._release.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._animate.destroy(),this._animateChild.destroy(),this._dragPlaceholder.destroy(),this._drag&&this._drag.destroy(),t.removeAttribute("style"),this._child.removeAttribute("style"),Me(t,r.itemClass),s>-1&&i._items.splice(s,1),e&&t.parentNode.removeChild(t),this._isActive=!1,this._isDestroyed=!0}},rt.prototype.getLayout=function(e,t,i,r,s){var n,o=this._layout,a=!(!s||!s.fillGaps),l=!(!s||!s.horizontal),u=!(!s||!s.alignRight),h=!(!s||!s.alignBottom),c=!(!s||!s.rounding),d=this._slotSizes;if(o.slots=r||this._slots,o.width=l?0:c?Math.round(t):t,o.height=l?c?Math.round(i):i:0,o.setWidth=l,o.setHeight=!l,o.slots.length=0,d.length=0,!e.length)return o;for(n=0;n<e.length;n++)this._addSlot(e[n],l,a,c,u||h);if(u)for(n=0;n<o.slots.length;n+=2)o.slots[n]=o.width-(o.slots[n]+d[n]);if(h)for(n=1;n<o.slots.length;n+=2)o.slots[n]=o.height-(o.slots[n]+d[n]);return d.length=0,this._freeSlots.length=0,this._newSlots.length=0,this._rectId=0,o},rt.prototype._addSlot=($e={},function(e,t,i,r,s){var n,o,a,l,u,h,c=this._layout,d=this._freeSlots,p=this._newSlots;for(p.length=0,$e.left=null,$e.top=null,$e.width=e._width+e._marginLeft+e._marginRight,$e.height=e._height+e._marginTop+e._marginBottom,r&&($e.width=Math.round($e.width),$e.height=Math.round($e.height)),u=0;u<d.length;u++)if((o=d[u])&&(n=this._getRect(o),$e.width<=n.width+.001&&$e.height<=n.height+.001)){$e.left=n.left,$e.top=n.top;break}for(null===$e.left&&($e.left=t?c.width:0,$e.top=t?0:c.height,i||(l=!0)),!t&&$e.top+$e.height>c.height&&($e.left>0&&p.push(this._addRect(0,c.height,$e.left,1/0)),$e.left+$e.width<c.width&&p.push(this._addRect($e.left+$e.width,c.height,c.width-$e.left-$e.width,1/0)),c.height=$e.top+$e.height),t&&$e.left+$e.width>c.width&&($e.top>0&&p.push(this._addRect(c.width,0,1/0,$e.top)),$e.top+$e.height<c.height&&p.push(this._addRect(c.width,$e.top+$e.height,1/0,c.height-$e.top-$e.height)),c.width=$e.left+$e.width),u=i?0:l?d.length:u;u<d.length;u++)if(o=d[u])for(n=this._getRect(o),a=this._splitRect(n,$e),h=0;h<a.length;h++)o=a[h],(n=this._getRect(o)).width>.49&&n.height>.49&&(!t&&n.top<c.height||t&&n.left<c.width)&&p.push(o);p.length&&this._purgeRects(p).sort(t?this._sortRectsLeftTop:this._sortRectsTopLeft),t?c.width=Math.max(c.width,$e.left+$e.width):c.height=Math.max(c.height,$e.top+$e.height),c.slots.push($e.left,$e.top),s&&this._slotSizes.push($e.width,$e.height),this._freeSlots=p,this._newSlots=d}),rt.prototype._addRect=function(e,t,i,r){var s=++this._rectId,n=this._rectStore;return n[s]=e||0,n[++this._rectId]=t||0,n[++this._rectId]=i||0,n[++this._rectId]=r||0,s},rt.prototype._getRect=function(e,t){var i=t||this._rectItem,r=this._rectStore;return i.left=r[e]||0,i.top=r[++e]||0,i.width=r[++e]||0,i.height=r[++e]||0,i},rt.prototype._splitRect=(Je=[],function(e,t){return Je.length=0,this._doRectsOverlap(e,t)?(e.left<t.left&&Je.push(this._addRect(e.left,e.top,t.left-e.left,e.height)),e.left+e.width>t.left+t.width&&Je.push(this._addRect(t.left+t.width,e.top,e.left+e.width-(t.left+t.width),e.height)),e.top<t.top&&Je.push(this._addRect(e.left,e.top,e.width,t.top-e.top)),e.top+e.height>t.top+t.height&&Je.push(this._addRect(e.left,t.top+t.height,e.width,e.top+e.height-(t.top+t.height))),Je):(Je.push(this._addRect(e.left,e.top,e.width,e.height)),Je)}),rt.prototype._doRectsOverlap=function(e,t){return!(e.left+e.width<=t.left||t.left+t.width<=e.left||e.top+e.height<=t.top||t.top+t.height<=e.top)},rt.prototype._isRectWithinRect=function(e,t){return e.left>=t.left&&e.top>=t.top&&e.left+e.width<=t.left+t.width&&e.top+e.height<=t.top+t.height},rt.prototype._purgeRects=(Ke={},Ze={},function(e){for(var t,i=e.length;i--;)if(t=e.length,e[i])for(this._getRect(e[i],Ke);t--;)if(e[t]&&i!==t&&this._isRectWithinRect(Ke,this._getRect(e[t],Ze))){e[i]=0;break}return e}),rt.prototype._sortRectsTopLeft=function(){var e={},t={};return function(i,r){return this._getRect(i,e),this._getRect(r,t),e.top<t.top?-1:e.top>t.top?1:e.left<t.left?-1:e.left>t.left?1:0}}(),rt.prototype._sortRectsLeftTop=function(){var e={},t={};return function(i,r){return this._getRect(i,e),this._getRect(r,t),e.left<t.left?-1:e.left>t.left?1:e.top<t.top?-1:e.top>t.top?1:0}}();function st(e){var t=Object.prototype.toString.call(e);return"[object HTMLCollection]"===t||"[object NodeList]"===t}var nt=Object.prototype.toString;function ot(e){return"object"==typeof e&&"[object Object]"===nt.call(e)}function at(e){return st(e)?Array.prototype.slice.call(e):Array.prototype.concat(e)}var lt=new rt,ut=function(){},ht="number",ct="string",dt="instant";function pt(t,i){var r,s,n,o,a,l,u=this;if(!((t=this._element=typeof t===ct?window.document.querySelector(t):t).getRootNode?t.getRootNode({composed:!0})===document:window.document.body.contains(t))||t===window.document.documentElement)throw new Error("Container element must be an existing DOM element");S((r=this._settings=(o=pt.defaultOptions,a=i,l=gt({},o),a&&(l=gt(l,a)),l.visibleStyles=(a||0).visibleStyles||(o||0).visibleStyles,l.hiddenStyles=(a||0).hiddenStyles||(o||0).hiddenStyles,l)).dragSort)||(r.dragSort=!!r.dragSort),this._id=tt(),e[this._id]=u,this._isDestroyed=!1,this._layout={id:0,items:[],slots:[],setWidth:!1,setHeight:!1,width:0,height:0},this._emitter=new g,ne(t,r.containerClass),this._items=[],typeof(s=r.items)===ct?at(t.children).forEach((function(e){("*"===s||se(e,s))&&u._items.push(new it(u,e))})):(Array.isArray(s)||st(s))&&(this._items=at(s).map((function(e){return new it(u,e)}))),typeof(n=r.layoutOnResize)!==ht&&(n=!0===n?0:-1),n>=0&&window.addEventListener("resize",u._resizeHandler=ge((function(){u.refreshItems().layout()}),n)),r.layoutOnInit&&this.layout(!0)}function gt(e,t){var i,r,s,n=Object.keys(t),o=n.length;for(s=0;s<o;s++)i=ot(t[r=n[s]]),ot(e[r])&&i?e[r]=gt(gt({},e[r]),t[r]):i?e[r]=gt({},t[r]):Array.isArray(t[r])?e[r]=t[r].slice(0):e[r]=t[r];return e}return pt.Item=it,pt.ItemLayout=He,pt.ItemVisibility=We,pt.ItemMigrate=Fe,pt.ItemAnimate=P,pt.ItemDrag=qe,pt.ItemRelease=Qe,pt.ItemDragPlaceholder=je,pt.Emitter=g,pt.Dragger=Y,pt.Packer=rt,pt.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!0},layoutOnResize:100,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragStartPredicate:{distance:0,delay:0,handle:!1},dragAxis:null,dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:i},dragReleaseDuration:300,dragReleaseEasing:"ease",dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,duration:300,easing:"ease",createElement:null,onCreate:null,onRemove:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},pt.prototype.on=function(e,t){return this._emitter.on(e,t),this},pt.prototype.off=function(e,t){return this._emitter.off(e,t),this},pt.prototype.getElement=function(){return this._element},pt.prototype.getItems=function(e){if(this._isDestroyed||!e&&0!==e)return this._items.slice(0);var t,i,r=[],s=at(e);for(i=0;i<s.length;i++)(t=this._getItem(s[i]))&&r.push(t);return r},pt.prototype.refreshItems=function(e){if(this._isDestroyed)return this;var t,i=this.getItems(e);for(t=0;t<i.length;t++)i[t]._refreshDimensions();return this},pt.prototype.refreshSortData=function(e){if(this._isDestroyed)return this;var t,i=this.getItems(e);for(t=0;t<i.length;t++)i[t]._refreshSortData();return this},pt.prototype.synchronize=function(){if(this._isDestroyed)return this;var e,t,i,r=this._element,s=this._items;if(s.length){for(i=0;i<s.length;i++)(t=s[i]._element).parentNode===r&&(e=e||window.document.createDocumentFragment()).appendChild(t);e&&r.appendChild(e)}return this._emit("synchronize"),this},pt.prototype.layout=function(e,t){if(this._isDestroyed)return this;var i,n,o,a=this,l=this._element,u=this._updateLayout(),h=u.id,c=u.items.length,d=c;function p(){if(!(--d>0)){var i=a._layout.id!==h,r=S(e)?e:t;S(r)&&r(i,u.items.slice(0)),!i&&a._hasListeners(s)&&a._emit(s,u.items.slice(0))}}if((u.setHeight&&typeof u.height===ht||u.setWidth&&typeof u.width===ht)&&(i="border-box"===w(l,"box-sizing")),u.setHeight&&(typeof u.height===ht?l.style.height=(i?u.height+this._borderTop+this._borderBottom:u.height)+"px":l.style.height=u.height),u.setWidth&&(typeof u.width===ht?l.style.width=(i?u.width+this._borderLeft+this._borderRight:u.width)+"px":l.style.width=u.width),this._hasListeners(r)&&this._emit(r,u.items.slice(0)),!c)return p(),this;for(o=0;o<c;o++)(n=u.items[o])&&(n._left=u.slots[2*o],n._top=u.slots[2*o+1],n.isDragging()?p():n._layout.start(!0===e,p));return this},pt.prototype.add=function(e,t){if(this._isDestroyed||!e)return[];var i=at(e);if(!i.length)return i;var r,s,n=t||0,o=n.layout?n.layout:void 0===n.layout,a=this._items,l=!1;for(s=0;s<i.length;s++)r=new it(this,i[s],n.isActive),i[s]=r,r._isActive&&(l=!0,r._layout._skipNextAnimation=!0);return ae(a,i,n.index),this._hasListeners("add")&&this._emit("add",i.slice(0)),l&&o&&this.layout(o===dt,S(o)?o:void 0),i},pt.prototype.remove=function(e,t){if(this._isDestroyed)return this;var i,r,s=t||0,o=s.layout?s.layout:void 0===s.layout,a=!1,l=this.getItems(),u=this.getItems(e),h=[];for(r=0;r<u.length;r++)i=u[r],h.push(l.indexOf(i)),i._isActive&&(a=!0),i._destroy(s.removeElements);return this._hasListeners(n)&&this._emit(n,u.slice(0),h),a&&o&&this.layout(o===dt,S(o)?o:void 0),u},pt.prototype.show=function(e,t){return this._isDestroyed||this._setItemsVisibility(e,!0,t),this},pt.prototype.hide=function(e,t){return this._isDestroyed||this._setItemsVisibility(e,!1,t),this},pt.prototype.filter=function(e,t){if(this._isDestroyed||!this._items.length)return this;var i,r,s=[],n=[],a=typeof e===ct,l=S(e),u=t||0,h=!0===u.instant,c=u.layout?u.layout:void 0===u.layout,d=S(u.onFinish)?u.onFinish:null,p=-1,g=ut;if(d&&(g=function(){++p&&d(s.slice(0),n.slice(0))}),l||a)for(r=0;r<this._items.length;r++)i=this._items[r],(l?e(i):se(i._element,e))?s.push(i):n.push(i);return s.length?this.show(s,{instant:h,onFinish:g,layout:!1}):g(),n.length?this.hide(n,{instant:h,onFinish:g,layout:!1}):g(),(s.length||n.length)&&(this._hasListeners(o)&&this._emit(o,s.slice(0),n.slice(0)),c&&this.layout(c===dt,S(c)?c:void 0)),this},pt.prototype.sort=function(){var e,t,i,r;function s(e){for(var t={},i=0;i<e.length;i++)t[e[i]._id]=i;return t}function n(e,i){var s=r[e._id],n=r[i._id];return t?n-s:s-n}function o(o,a){for(var l,u,h,c,d=0,p=0;p<e.length;p++)if(l=e[p][0],u=e[p][1],h=(o._sortData?o:o._refreshSortData())._sortData[l],c=(a._sortData?a:a._refreshSortData())._sortData[l],d="desc"===u||!u&&t?c<h?-1:c>h?1:0:h<c?-1:h>c?1:0)return d;return d||(r||(r=s(i)),d=n(o,a)),d}function l(o,a){var l=e(o,a);return t&&l&&(l=-l),l||(r||(r=s(i)),n(o,a))}return function(s,n){if(this._isDestroyed||this._items.length<2)return this;var u,h=this._items,c=n||0,d=c.layout?c.layout:void 0===c.layout;if(e=s,t=!!c.descending,i=h.slice(0),r=null,S(e))h.sort(l);else if(typeof e===ct)e=s.trim().split(" ").map((function(e){return e.split(":")})),h.sort(o);else{if(!Array.isArray(e))return this;if(e.length!==h.length)throw new Error("[Muuri] sort reference items do not match with grid items.");for(u=0;u<h.length;u++){if(e.indexOf(h[u])<0)throw new Error("[Muuri] sort reference items do not match with grid items.");h[u]=e[u]}t&&h.reverse()}return this._hasListeners(a)&&this._emit(a,h.slice(0),i),d&&this.layout(d===dt,S(d)?d:void 0),this}}(),pt.prototype.move=function(e,r,s){if(this._isDestroyed||this._items.length<2)return this;var n,o,a=this._items,u=s||0,h=u.layout?u.layout:void 0===u.layout,c=u.action===t,d=c?t:i,p=this._getItem(e),g=this._getItem(r);return p&&g&&p!==g&&(n=a.indexOf(p),o=a.indexOf(g),c?he(a,n,o):ue(a,n,o),this._hasListeners(l)&&this._emit(l,{item:p,fromIndex:n,toIndex:o,action:d}),h&&this.layout(h===dt,S(h)?h:void 0)),this},pt.prototype.send=function(e,t,i,r){if(this._isDestroyed||t._isDestroyed||this===t)return this;if(!(e=this._getItem(e)))return this;var s=r||0,n=s.appendTo||window.document.body,o=s.layoutSender?s.layoutSender:void 0===s.layoutSender,a=s.layoutReceiver?s.layoutReceiver:void 0===s.layoutReceiver;return e._migrate.start(t,i,n),e._migrate._isActive&&e._isActive&&(o&&this.layout(o===dt,S(o)?o:void 0),a&&t.layout(a===dt,S(a)?a:void 0)),this},pt.prototype.destroy=function(t){if(this._isDestroyed)return this;var i,r=this._element,s=this._items.slice(0);for(this._resizeHandler&&window.removeEventListener("resize",this._resizeHandler),i=0;i<s.length;i++)s[i]._destroy(t);return Me(r,this._settings.containerClass),r.style.height="",r.style.width="",this._emit("destroy"),this._emitter.destroy(),e[this._id]=void 0,this._isDestroyed=!0,this},pt.prototype._getItem=function(e){if(this._isDestroyed||!e&&0!==e)return null;if(typeof e===ht)return this._items[e>-1?e:this._items.length+e]||null;if(e instanceof it)return e._gridId===this._id?e:null;for(var t=0;t<this._items.length;t++)if(this._items[t]._element===e)return this._items[t];return null},pt.prototype._updateLayout=function(){var e,t,i,r,s=this._layout,n=this._settings.layout;for(++s.id,s.items.length=0,r=0;r<this._items.length;r++)this._items[r]._isActive&&s.items.push(this._items[r]);return this._refreshDimensions(),e=this._width-this._borderLeft-this._borderRight,t=this._height-this._borderTop-this._borderBottom,i=S(n)?n(s.items,e,t):lt.getLayout(s.items,e,t,s.slots,n),s.slots=i.slots,s.setWidth=Boolean(i.setWidth),s.setHeight=Boolean(i.setHeight),s.width=i.width,s.height=i.height,s},pt.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},pt.prototype._hasListeners=function(e){var t=this._emitter._events[e];return!(!t||!t.length)},pt.prototype._updateBoundingRect=function(){var e=this._element.getBoundingClientRect();this._width=e.width,this._height=e.height,this._left=e.left,this._top=e.top},pt.prototype._updateBorders=function(e,t,i,r){var s=this._element;e&&(this._borderLeft=ve(s,"border-left-width")),t&&(this._borderRight=ve(s,"border-right-width")),i&&(this._borderTop=ve(s,"border-top-width")),r&&(this._borderBottom=ve(s,"border-bottom-width"))},pt.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1)},pt.prototype._setItemsVisibility=function(e,t,i){var r,s,n=this,o=this.getItems(e),a=i||0,l=!0===a.instant,u=a.onFinish,h=a.layout?a.layout:void 0===a.layout,c=o.length,d=t?"showStart":"hideStart",p=t?"showEnd":"hideEnd",g=t?"show":"hide",f=!1,m=[],v=[];if(c){for(this._hasListeners(d)&&this._emit(d,o.slice(0)),s=0;s<o.length;s++)r=o[s],(t&&!r._isActive||!t&&r._isActive)&&(f=!0),t&&!r._isActive&&(r._layout._skipNextAnimation=!0),t&&r._visibility._isHidden&&v.push(r),r._visibility[g](l,(function(e,t){e||m.push(t),--c<1&&(S(u)&&u(m.slice(0)),n._hasListeners(p)&&n._emit(p,m.slice(0)))}));v.length&&this.refreshItems(v),f&&h&&this.layout(h===dt,S(h)?h:void 0)}else S(u)&&u(o)},pt}()},873:(e,t,i)=>{"use strict";i.d(t,{MH:()=>o,X3:()=>s,er:()=>n});var r=i(555);function s(e,t){var i=t.dataNames,s=[],n=t.getValues(),o={};n.forEach((function(e,t){o[e]=t}));var a=-1!==n.indexOf(void 0),l=t.getSeriesValues(),u={};l.forEach((function(e,t){u[e]=t}));for(var h=l.length||1,c=0;c<i.length;++c){for(var d=new Array,p=0;p<h;++p)d.push(new Array(n.length).fill(0));s.push(d)}var g=function(e){return null!==e&&"object"==typeof e?o[e.value]:o[e]};return e.forEach((function(e){i.forEach((function(t,i){var n=e[t];if(void 0!==n||a){var o=Array.isArray(n)?n:[n];if(l.length>0){var h=e[r.M.seriesMarkerKey];if(void 0!==h){var c=u[h]||0;o.forEach((function(e){var t=g(e);s[i][c][t]++}))}else o.forEach((function(e){l.forEach((function(t){if(void 0!==e[t]){var r=u[t]||0;(Array.isArray(e[t])?e[t]:[e[t]]).forEach((function(e){var t=g(e);s[i][r][t]++}))}}))}))}else o.forEach((function(e){var t=g(e);s[0][0][t]++}))}}))})),t.dataNames.length>1?s:s[0]}function n(e,t,i){var r=[];0===i.length&&i.push("");for(var s=0;s<i.length;++s)r.push(t.map((function(e){return 0}))),e[i[s]].forEach((function(e){for(var i=0;i<t.length;++i)if(t[i].start<=e&&(e<t[i].end||i==t.length-1)){r[s][i]++;break}}));return r}function o(e,t){var i=Number.MAX_VALUE,r=-Number.MAX_VALUE,s=0,n=0;return e.forEach((function(e){if(void 0!==e[t]){var o=+e[t];n++,s+=o,i>o&&(i=o),r<o&&(r=o)}})),n>0&&(s/=n),[s=Math.ceil(100*s)/100,i,r]}},928:(e,t,i)=>{"use strict";i.d(t,{o:()=>l});var r=i(87),s=i(156),n=i(183),o=i(240),a=i(557),l=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"boolean")||this}return(0,r.C6)(t,e),t.prototype.getCorrectAnswerText=function(){var e=this.booleanQuestion.correctAnswer;return void 0!==this.booleanQuestion.valueTrue&&this.booleanQuestion.valueTrue===e||e?this.booleanQuestion.locLabelTrue.textOrHtml:void 0!==this.booleanQuestion.valueFalse&&this.booleanQuestion.valueFalse===e||!e?this.booleanQuestion.locLabelFalse.textOrHtml:e},Object.defineProperty(t.prototype,"booleanQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),t.prototype.getSelectedItemByText=function(e){var t=this.getLabels(),i=this.getValues();return new s.ItemValue(i[t.indexOf(e)],e)},t.prototype.getValues=function(){var e=[void 0===this.booleanQuestion.valueTrue||this.booleanQuestion.valueTrue,void 0!==this.booleanQuestion.valueFalse&&this.booleanQuestion.valueFalse];return this.showMissingAnswers&&e.push(void 0),e},t.prototype.getLabels=function(){var e=[].concat(this.getValues());return void 0!==this.booleanQuestion.labelTrue&&(e[0]=this.booleanQuestion.locLabelTrue.textOrHtml),void 0!==this.booleanQuestion.labelFalse&&(e[1]=this.booleanQuestion.locLabelFalse.textOrHtml),this.showMissingAnswers&&(e[2]=o.qG.getString("missingAnswersLabel")),e},t.trueColor="",t.falseColor="",t}(n.o);a.g.registerVisualizer("boolean",l)},931:(e,t,i)=>{"use strict";i.d(t,{R:()=>u});var r=i(87),s=i(267),n=i(240),o=i(70),a=i(557),l=i(873),u=function(e){function t(t,i,r,a){void 0===r&&(r={});var l=e.call(this,t,i,r,a||"number")||this;return s.w.chartAdapterType&&(l._chartAdapter=new s.w.chartAdapterType(l),l.chartTypes=l._chartAdapter.getChartTypes(),l.chartType=l.chartTypes[0]),!1!==l.options.allowChangeVisualizerType&&l.registerToolbarItem("changeChartType",(function(){return l.chartTypes.length>1?o.gf.createSelector(l.chartTypes.map((function(e){return{value:e,text:n.qG.getString("chartType_"+e)}})),(function(e){return l.chartType===e.value}),(function(e){l.setChartType(e.target.value)})):null})),l}return(0,r.C6)(t,e),t.prototype.onDataChanged=function(){this._resultAverage=void 0,this._resultMin=void 0,this._resultMax=void 0,e.prototype.onDataChanged.call(this)},t.prototype.onChartTypeChanged=function(){},t.prototype.setChartType=function(e){-1!==this.chartTypes.indexOf(e)&&this.chartType!==e&&(this.chartType=e,this.onChartTypeChanged(),this.contentContainer&&(this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)),this.invokeOnUpdate())},t.prototype.destroy=function(){this._resultAverage=void 0,this._resultMin=void 0,this._resultMax=void 0,e.prototype.destroy.call(this)},t.prototype.generateText=function(e,i,r){var s=[];if(5===r)s=["very high ("+e+")","high","medium","low","very low ("+i+")"];else{s.push(e);for(var n=0;n<r-2;n++)s.push("");s.push(i)}return t.generateTextsCallback?t.generateTextsCallback(this.question,e,i,r,s):s},t.prototype.generateValues=function(e,t){for(var i=[],r=0;r<t;r++)i.push(e/t);return i.push(e),i},t.prototype.generateColors=function(e,t,i){for(var r=this.getColors(),s=[],n=0;n<i;n++)s.push(r[n]);return s.push("rgba(255, 255, 255, 0)"),s},t.prototype.convertFromExternalData=function(e){return[e.value||0,e.minValue||0,e.maxValue||0]},t.prototype.getCalculatedValuesCore=function(){var e;return void 0!==this._resultAverage&&void 0!==this._resultMin&&void 0!==this._resultMax||(e=(0,l.MH)(this.surveyData,this.dataNames[0]),this._resultAverage=e[0],this._resultMin=e[1],this._resultMax=e[2]),[this._resultAverage,this._resultMin,this._resultMax]},t.stepsCount=5,t.showAsPercentage=!1,t}(s.w);a.g.registerVisualizer("number",u,200),a.g.registerVisualizer("rating",u,200),a.g.registerVisualizer("expression",u)},999:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><polygon points="8,3 10,5 11,4 8,1 5,4 6,5 "></polygon><polygon points="8,13 6,11 5,12 8,15 11,12 10,11"></polygon></g></svg>'}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";s.r(n),s.d(n,{AlternativeVisualizersWrapper:()=>D.AlternativeVisualizersWrapper,BooleanModel:()=>D.BooleanModel,BooleanPlotly:()=>w,DataProvider:()=>D.DataProvider,DocumentHelper:()=>D.DocumentHelper,GaugePlotly:()=>P,HistogramModel:()=>D.HistogramModel,HistogramPlotly:()=>C,Matrix:()=>D.Matrix,MatrixDropdownGroupedPlotly:()=>S,MatrixPlotly:()=>T,NpsAdapter:()=>D.NpsAdapter,NpsVisualizer:()=>D.NpsVisualizer,NpsVisualizerWidget:()=>D.NpsVisualizerWidget,NumberModel:()=>D.NumberModel,PivotModel:()=>D.PivotModel,PivotPlotly:()=>x,PlotlyChartAdapter:()=>z,PlotlySetup:()=>a,PostponeHelper:()=>D.PostponeHelper,RankingModel:()=>D.RankingModel,RankingPlotly:()=>A,SelectBase:()=>D.SelectBase,SelectBasePlotly:()=>b,StatisticsTable:()=>D.StatisticsTable,StatisticsTableAdapter:()=>D.StatisticsTableAdapter,StatisticsTableBoolean:()=>D.StatisticsTableBoolean,Text:()=>D.Text,TextTableAdapter:()=>D.TextTableAdapter,VisualizationComposite:()=>D.VisualizationComposite,VisualizationManager:()=>D.VisualizationManager,VisualizationMatrixDropdown:()=>D.VisualizationMatrixDropdown,VisualizationMatrixDynamic:()=>D.VisualizationMatrixDynamic,VisualizationPanel:()=>D.VisualizationPanel,VisualizationPanelDynamic:()=>D.VisualizationPanelDynamic,VisualizerBase:()=>D.VisualizerBase,VisualizerFactory:()=>D.VisualizerFactory,WordCloud:()=>D.WordCloud,WordCloudAdapter:()=>D.WordCloudAdapter,hideEmptyAnswersInData:()=>D.hideEmptyAnswersInData,localization:()=>D.localization,plotlyChartTypes:()=>k,setupLocale:()=>D.setupLocale,surveyStrings:()=>D.surveyStrings,textHelper:()=>D.textHelper});var e=s(87),t=s(156),i=s(240),r=s(70),o=s(931),a=function(){function s(){}return s.setup=function(e,t,i){return this.setups[e](t,i)},s.setupPie=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=(t.texts,t.seriesLabels),a=o.length>1||"matrix"===e.question.getType(),l=[],u={type:e.chartType,labels:r,customdata:r,text:r.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)})),hoverinfo:"value+text",textposition:"inside",texttemplate:"%{text}"};"doughnut"===e.chartType&&(u.type="pie",u.hole=.4),a||(u.mode="markers",u.marker={color:n},u.marker.symbol="circle",u.marker.size=16),i.forEach((function(t,i){var n=t.some((function(e){return 0!=e})),a=u.text;if(e.showPercentages){var h=e.getPercentages([t])[0];a=r.map((function(t,i){return(e.showOnlyPercentages?h[i]:s.getTruncatedLabel(t,e.labelTruncateLength)+"<br>"+h[i])+"%"}))}n&&l.push(Object.assign({},u,{values:t,text:a,domain:{column:l.length%2,row:Math.floor(l.length/2)},title:{position:"bottom center",text:o[i]}}))}));var h={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:(25+(r.length<10?50*r.length+100:550))*Math.ceil(l.length/2),margin:{l:0,t:25,b:0,r:10},colorway:n,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:!1};return a&&(h.annotations=[],h.grid={rows:Math.ceil(l.length/2),columns:2}),{traces:l,layout:h,hasSeries:a}},s.setupBar=function(e,t){var r=t.datasets,n=t.labels,o=t.colors,a=t.texts,l=t.seriesLabels,u=l.length>1||"matrix"===e.question.getType(),h=[],c={type:"line"===e.chartType?"line":"bar",y:n,customdata:n,hoverinfo:"text",orientation:"h",textposition:"none"};u||(c.width=.5,c.bargap=.5,c.mode="markers",c.marker={color:o}),r.forEach((function(t,i){var r=u?l[i]:n[i],s=e.showPercentages?"%":"",o=Object.assign({},c,{x:t,name:r,width:u&&"stackedbar"!==e.chartType?.5/l.length:.5,text:a[i],hovertext:n.map((function(t,n){return e.showOnlyPercentages?"".concat(a[i][n]).concat(s):u?"".concat(r," : ").concat(t,", ").concat(a[i][n]).concat(s):"".concat(a[i][n]).concat(s,", ").concat(t)}))});if(e.showPercentages){var d=e.showOnlyPercentages?"%{text}%":"%{value} (%{text}%)";o.textposition="inside",o.texttemplate=d,o.width=u&&"stackedbar"!==e.chartType?.7/l.length:.9,o.bargap=u&&"stackedbar"!==e.chartType?.3/l.length:.1}h.push(o)}));var d={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:30*(n.length+1)+30+30,margin:{t:30,b:30,r:10},colorway:o,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:u,barmode:u&&"stackedbar"==e.chartType?"stack":"group",xaxis:{rangemode:"nonnegative",automargin:!0},yaxis:{automargin:!0,type:"category",orientation:"h",tickmode:"array",tickvals:n,ticktext:n.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)+" "}))}};return u&&"stackedbar"!==e.chartType&&(d.height=30*(n.length*l.length+1)+30+30),-1!==["ar","fa"].indexOf(i.qG.currentLocale)&&(d.xaxis.autorange="reversed",d.yaxis.side="right",d.legend={x:0,y:1,xanchor:"left",yanchor:"top"}),{traces:h,layout:d,hasSeries:u}},s.setupVBar=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=t.texts,a=t.seriesLabels,l=a.length>1||"matrix"===e.question.getType();if("histogram"!==e.type&&"pivot"!==e.type){r=[].concat(r).reverse(),a=[].concat(a).reverse(),n=[].concat(n.slice(0,l?a.length:r.length)).reverse();var u=[];o.forEach((function(e){u.push([].concat(e).reverse())})),o=u;var h=[];i.forEach((function(e){h.push([].concat(e).reverse())})),i=h}var c=[],d={type:"line"===e.chartType?"line":"bar",x:r,customdata:l?a:r,hoverinfo:l?void 0:"x+y",orientation:"v",textposition:"none"};"histogram"!==e.type&&l||(d.width=.5,d.bargap=.5,d.mode="markers",d.marker={color:n}),i.forEach((function(t,i){var s=Object.assign({},d,{y:t,name:l?a[i]:r[i],text:o[i]});if(e.showPercentages){var n=e.showOnlyPercentages?"%{text}%":"%{value} (%{text}%)";s.textposition="inside",s.texttemplate=n,l||(s.width=.9,s.bargap=.1)}c.push(s)}));var p={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},margin:{t:30,b:30,r:10},colorway:n,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:l,yaxis:{rangemode:"nonnegative",automargin:!0},xaxis:{automargin:!0,type:"category",tickmode:"array",tickvals:r,ticktext:r.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)+" "}))}};return e.showPercentages&&e.showOnlyPercentages&&(p.yaxis={automargin:!0,tickformat:".0%",range:[0,1],ticklen:e.showOnlyPercentages?25:5,tickcolor:"transparent"}),e.getValueType&&"date"==e.getValueType()||(p.xaxis={automargin:!0,type:"category"}),{traces:c,layout:p,hasSeries:l}},s.setupScatter=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=(t.texts,t.seriesLabels),a=o.length>1||"matrix"===e.question.getType(),l=[],u={type:"scatter",y:(a?o:r).map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)})),customdata:a?o:r,text:a?o:r,hoverinfo:"x+y",orientation:"h",mode:"markers",width:.5,marker:{}};a||(u.marker.symbol="circle",u.marker.size=16),i.forEach((function(e){var t=Object.assign({},u,{x:e});l.push(t)}));var h={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:30*(r.length+1)+30+30,margin:{t:30,b:30,r:10},colorway:n,hovermode:"closest",yaxis:{automargin:!0,type:"category",ticklen:5,tickcolor:"transparent"},xaxis:{rangemode:"nonnegative",automargin:!0},plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:!1};return a&&(h.showlegend=!0,h.height=void 0,r.forEach((function(e,t){l[t].hoverinfo="x+name",l[t].marker.color=void 0,l[t].name=e}))),{traces:l,layout:h,hasSeries:a}},s.setupGauge=function(e,t){var i=t,s=i[0],n=i[1],a=i[2];if("rating"===e.question.getType()){var l=e.question.visibleRateValues;a=l[l.length-1].value,n=l[0].value}var u=e.generateColors(a,n,o.R.stepsCount);o.R.showAsPercentage&&(s=r.NW.toPercentage(s,a),n=r.NW.toPercentage(n,a),a=r.NW.toPercentage(a,a));var h=[{type:"indicator",mode:"gauge+number",gauge:{axis:{range:[n,a]},shape:e.chartType,bgcolor:"white",bar:{color:u[0]}},value:s,text:e.name,domain:{x:[0,1],y:[0,1]}}],c="bullet"===e.chartType?60:30;return{traces:h,layout:{height:250,margin:{l:c,r:c,b:c,t:c,pad:5},plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor},hasSeries:!1}},s.setupRadar=function(t,i){var r=i.datasets,n=i.labels,o=i.colors,a=i.texts,l=i.seriesLabels,u=l.length>1||"matrix"===t.question.getType(),h=[],c={type:"scatterpolar",mode:"lines+markers",fill:"toself",line:{width:2},marker:{size:6}};r.forEach((function(t,i){var r=u?l[i]:"",s=Object.assign({},c,{r:t,theta:n,name:r,text:a[i],hoverinfo:"r+theta+name",customdata:n,hovertemplate:"%{theta}: %{r}<extra></extra>",line:(0,e.Cl)((0,e.Cl)({},c.line),{color:o[i%o.length]}),marker:(0,e.Cl)((0,e.Cl)({},c.marker),{color:o[i%o.length]})});h.push(s)}));var d={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},polar:{radialaxis:{visible:!0,range:[0,1.1*Math.max.apply(Math,r.map((function(e){return Math.max.apply(Math,e)})))],tickfont:{size:12}},angularaxis:{tickfont:{size:12},ticktext:n.map((function(e){return s.getTruncatedLabel(e,t.labelTruncateLength)})),tickvals:n}},showlegend:u,colorway:o,plot_bgcolor:t.backgroundColor,paper_bgcolor:t.backgroundColor,margin:{l:50,r:50,t:50,b:50}};return{traces:h,layout:d,hasSeries:u}},s.imageExportFormat="png",s.onImageSaving=new t.Event,s.onPlotCreating=new t.Event,s.setups={bar:s.setupBar,vbar:s.setupVBar,line:s.setupVBar,stackedbar:s.setupBar,doughnut:s.setupPie,pie:s.setupPie,scatter:s.setupScatter,gauge:s.setupGauge,bullet:s.setupGauge,radar:s.setupRadar},s.getTruncatedLabel=function(e,t){return t?-1===t||e.length<=t+3?e:e.substring(0,t)+"...":e},s}(),l=s(183),u=s(61),h=s.n(u),c=s(267),d=s(928),p=s(226),g=s(143),f=s(873),m=s(557),v=function(t){function i(e,i,r,s){return t.call(this,e,i,r,s||"matrixDropdownGrouped")||this}return(0,e.C6)(i,t),Object.defineProperty(i.prototype,"matrixQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataNames",{get:function(){return this.matrixQuestion.columns.map((function(e){return e.name}))},enumerable:!1,configurable:!0}),i.prototype.getSeriesValues=function(){return this.matrixQuestion.columns.map((function(e){return e.name}))},i.prototype.getSeriesLabels=function(){return this.matrixQuestion.columns.map((function(e){return e.title}))},i.prototype.valuesSource=function(){return this.matrixQuestion.choices},i.prototype.isSupportMissingAnswers=function(){return!1},i.prototype.getCalculatedValuesCore=function(){var e=this.getValues(),t=this.getSeriesValues(),i=this.matrixQuestion.rows.map((function(e){return e.value}));return(0,f.X3)(this.surveyData,{name:this.name,dataNames:t,getValues:function(){return e},getLabels:function(){return e},getSeriesValues:function(){return i},getSeriesLabels:function(){return i}}).map((function(e){return e[0]}))},i}(l.o);m.g.registerVisualizer("matrixdropdown-grouped",v);var _=s(472),y=s(582),b=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["bar","vbar","pie","doughnut"],i.displayModeBar=void 0,i}(l.o),w=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["pie","bar","doughnut"],i}(d.o),C=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["vbar","bar"],i}(p.Y),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["bar","stackedbar","pie","doughnut"],i}(g.u),S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["stackedbar","bar","pie","doughnut"],i}(v),x=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["vbar","bar","line","stackedbar","pie","doughnut"],i}(_.y),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.displayModeBar=void 0,i.types=["gauge","bullet"],i}(o.R),A=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i}(y.O),k={boolean:w.types,number:P.types,selectBase:b.types,histogram:C.types,matrix:T.types,matrixDropdownGrouped:S.types,pivot:x.types,ranking:[].concat(b.types).concat(["radar"])},z=function(){function r(e){this.model=e,this._chart=void 0}return r.prototype.patchConfigParameters=function(e,t,i,r){if("boolean"===this.model.question.getType()){var s=this.model.getColors(),n=[d.o.trueColor||s[0],d.o.falseColor||s[1]];this.model.showMissingAnswers&&n.push(s[2]);var o=this.model.chartType;"pie"===o||"doughnut"===o?t.forEach((function(e){e&&(e.marker||(e.marker={}),e.marker.colors=n)})):"bar"===o&&t.forEach((function(e){e&&(e.marker||(e.marker={}),e.marker.color=n)}))}"number"===this.model.type&&(r.displayModeBar=!0)},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart},enumerable:!1,configurable:!0}),r.prototype.getChartTypes=function(){var e=this.model.type;return k[e]||[]},r.prototype.create=function(i){return(0,e.sH)(this,void 0,void 0,(function(){var r,s,n,o,a,u=this;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return[4,this.update(i)];case 1:return r=e.sent(),s=r[0],n=r[1],this.model instanceof l.o&&this.model.supportSelection&&(o=this.model,i.on("plotly_click",(function(e){var i;if(e.points.length>0){var r="";if(n.hasSeries){r=e.points[0].data.name;var s=e.points[0].label,a=u.model.getSeriesValues()[u.model.getSeriesLabels().indexOf(s)],l=o.getSelectedItemByText(r);h=new t.ItemValue(((i={})[a]=l.value,i),s+": "+l.text),o.setSelection(h)}else{r=Array.isArray(e.points[0].customdata)?e.points[0].customdata[0]:e.points[0].customdata;var h=o.getSelectedItemByText(r);o.setSelection(h)}}}))),a=function(){return i.getElementsByClassName("nsewdrag")[0]},i.on("plotly_hover",(function(){var e=a();e&&(e.style.cursor="pointer")})),i.on("plotly_unhover",(function(){var e=a();e&&(e.style.cursor="")})),this._chart=s,[2,s]}}))}))},r.prototype.update=function(t){return(0,e.sH)(this,void 0,void 0,(function(){var r,s,n,o,u,c=this;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return this.model instanceof l.o?[4,this.model.getAnswersData()]:[3,2];case 1:return s=e.sent(),[3,4];case 2:return[4,this.model.getCalculatedValues()];case 3:s=e.sent(),e.label=4;case 4:return r=s,n=a.setup(this.model.chartType,this.model,r),o={displaylogo:!1,responsive:!0,locale:i.qG.currentLocale,modeBarButtonsToRemove:["toImage"],modeBarButtonsToAdd:[{name:"toImageSjs",title:i.qG.getString("saveDiagramAsPNG"),icon:h().Icons.camera,click:function(e){var t={format:a.imageExportFormat,filename:c.model.question.name};a.onImageSaving.fire(c.model,t),h().downloadImage(e,t)}}]},void 0!==b.displayModeBar&&(o.displayModeBar=b.displayModeBar),this.patchConfigParameters(t,n.traces,n.layout,o),u={traces:n.traces,layout:n.layout,data:r,config:o},a.onPlotCreating.fire(this.model,u),[2,[h().react(t,u.traces,u.layout,u.config),n]]}}))}))},r.prototype.destroy=function(e){e&&h().purge(e),this._chart=void 0},r}();c.w.chartAdapterType=z;var D=s(453)})(),n})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("plotly.js-dist-min"),require("survey-core")):"function"==typeof define&&define.amd?define("SurveyAnalytics",["plotly.js-dist-min","survey-core"],t):"object"==typeof exports?exports.SurveyAnalytics=t(require("plotly.js-dist-min"),require("survey-core")):e.SurveyAnalytics=t(e.Plotly,e.Survey)}(this,((e,t)=>(()=>{var i={24:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><g><circle cx="8" cy="4" r="3"></circle><path d="M8,8c-3.31,0-6,2.73-6,4.67S5.27,15,8,15s6-0.4,6-2.33S11.31,8,8,8z"></path></g></svg>'},41:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><path d="M12.79,4.2L16,1l-1-1l-3.32,3.32C10.57,2.55,9.32,2,8,2C3.63,2,0,7.97,0,7.97s1.27,2.1,3.21,3.82l-3.23,3.23 L0.96,16l3.35-3.34C5.41,13.44,6.67,14,8,14c4.37,0,8-6,8-6S14.73,5.91,12.79,4.2z M2,7.97c1.07-1.47,3.61-4,6-4 c0.8,0,1.6,0.27,2.35,0.68L9.57,5.43C9.11,5.14,8.58,4.97,8,4.97c-1.66,0-3,1.34-3,3c0,0.58,0.17,1.11,0.46,1.57l-0.97,0.97 C3.36,9.64,2.45,8.59,2,7.97z M8,11.97c-0.8,0-1.59-0.27-2.33-0.67l0.78-0.77C6.9,10.8,7.43,10.97,8,10.97c1.66,0,3-1.34,3-3 c0-0.57-0.17-1.09-0.44-1.55l0.98-0.98c1.11,0.87,2.01,1.91,2.46,2.52C12.93,9.44,10.39,11.97,8,11.97z"></path></g></svg>'},61:t=>{"use strict";t.exports=e},70:(e,t,i)=>{"use strict";i.d(t,{NW:()=>l,QV:()=>a,QX:()=>u,Qk:()=>o,gf:()=>n});var r=i(156),s=i(240),n=function(){function e(){}return e.createSelector=function(t,i,r,s){var n=document.createElement("div");n.className="sa-question__select-wrapper";var o=e.createElement("span","sa-question__select-title"),a=document.createElement("select");return a.className="sa-question__select",a.onchange=r,n.appendChild(a),n.__updateSelect=function(){var r;r=!!s&&("string"==typeof s?s:s()),o.innerText=r,r?n.insertBefore(o,a):o.parentElement===n&&n.removeChild(o),function(){a.innerHTML="";var r=t||[];(Array.isArray(r)?r:r()).forEach((function(t){var r=e.createElement("option","",{value:t.value,text:t.text,selected:i(t)});a.appendChild(r)}))}()},n.__updateSelect(),n},e.createButton=function(t,i,r){return void 0===i&&(i=""),void 0===r&&(r="sa-toolbar__button"),e.createElement("span",r,{innerText:i,onclick:t})},e.createElement=function(e,t,i){void 0===t&&(t="");var r=document.createElement(e);return r.className=t,i&&Object.keys(i).forEach((function(e){r[e]=i[e]})),r},e.createSvgElement=function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=document.createElementNS("http://www.w3.org/2000/svg","use");return i.setAttributeNS("http://www.w3.org/1999/xlink","href","#sa-svg-"+e),t.appendChild(i),t},e.createSvgButton=function(t){var i=e.createElement("button","sa-table__svg-button");return i.appendChild(e.createSvgElement(t)),i},e.createSvgToggleButton=function(t,i,r,s,n,o,a,l){void 0===a&&(a="first"),void 0===l&&(l="sa-toolbar__button sa-toolbar__svg-button");var u=e.createSvgElement(t),h=e.createSvgElement(i),c=e.createElement("button",l);return"first"===a?(c.title=r,c.appendChild(u)):(a="second")&&(c.title=s,c.appendChild(h)),c.onclick=function(e){"first"===a?(a="second",c.title=s,c.removeChild(u),c.appendChild(h),o(e)):"second"===a&&(a="first",c.title=r,c.removeChild(h),c.appendChild(u),n(e))},c},e.createInput=function(t,i,r){return void 0===i&&(i=""),void 0===r&&(r=""),e.createElement("input",t,{placeholder:i,defaultValue:r})},e}();function o(){var e,t=n.createElement("div","sa-commercial"),i=n.createElement("div","sa-commercial__text"),o=n.createElement("span",""),a=n.createElement("span","sa-commercial__product",{innerHTML:(e=!!r.glc&&(0,r.glc)(1),e&&e.toLocaleDateString?s.qG.getString("license2").replace("{date}",e.toLocaleDateString()):s.qG.getString("license"))});return t.appendChild(i).appendChild(o),o.appendChild(a),t}function a(){var e=n.createElement("div","sa-data-loading-indicator-panel"),t=n.createElement("div","sa-data-loading-indicator");return t.innerHTML='\n <svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_17928_11482)">\n <path d="M32 64C14.36 64 0 49.65 0 32C0 14.35 14.36 0 32 0C49.64 0 64 14.35 64 32C64 49.65 49.64 64 32 64ZM32 4C16.56 4 4 16.56 4 32C4 47.44 16.56 60 32 60C47.44 60 60 47.44 60 32C60 16.56 47.44 4 32 4Z" fill="#E5E5E5"></path>\n <path d="M53.2101 55.2104C52.7001 55.2104 52.1901 55.0104 51.8001 54.6204C51.0201 53.8404 51.0201 52.5704 51.8001 51.7904C57.0901 46.5004 60.0001 39.4704 60.0001 31.9904C60.0001 24.5104 57.0901 17.4804 51.8001 12.1904C51.0201 11.4104 51.0201 10.1404 51.8001 9.36039C52.5801 8.58039 53.8501 8.58039 54.6301 9.36039C60.6701 15.4004 64.0001 23.4404 64.0001 31.9904C64.0001 40.5404 60.6701 48.5704 54.6301 54.6204C54.2401 55.0104 53.7301 55.2104 53.2201 55.2104H53.2101Z" fill="#19B394"></path>\n </g>\n <defs>\n <clipPath id="clip0_17928_11482">\n <rect width="64" height="64" fill="white"></rect>\n </clipPath>\n </defs>\n </svg>\n ',e.appendChild(t),e}window.URL.createObjectURL;var l=function(){function e(){}return e.zipArrays=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var i=[],r=function(t){i[t]=[],e.forEach((function(e){i[t].push(e[t])}))},s=0;s<e[0].length;s++)r(s);return i},e.unzipArrays=function(e){var t=[];return e.forEach((function(e,i){e.forEach((function(e,r){t[r]||(t[r]=[]),t[r][i]=e}))})),t},e.sortDictionary=function(e,t,i){var r=this.zipArrays(e,t),s=function(e,t,i){void 0===i&&(i=!0);var r=e[1]<t[1]?1:e[1]==t[1]?0:-1;return i?r:-1*r};r.sort((function(e,t){return i?s(e,t,!1):s(e,t)}));var n=this.unzipArrays(r);return{keys:n[0],values:n[1]}},e.toPercentage=function(e,t){return e/t*100},e}();function u(e,t){void 0===t&&(t=2);var i=Math.pow(10,t);return Math.round(i*e)/i}},87:(e,t,i)=>{"use strict";i.d(t,{C6:()=>s,Cl:()=>r,YH:()=>o,sH:()=>n});var r=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var s in t=arguments[i])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e};function s(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function n(e,t,i,r){return new(i||(i=Promise))((function(s,n){function o(e){try{l(r.next(e))}catch(e){n(e)}}function a(e){try{l(r.throw(e))}catch(e){n(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}l((r=r.apply(e,t||[])).next())}))}function o(e,t){var i,r,s,n,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function a(n){return function(a){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,r&&(s=2&n[0]?r.return:n[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return o.label++,{value:n[1],done:!1};case 5:o.label++,r=n[1],n=[0];continue;case 7:n=o.ops.pop(),o.trys.pop();continue;default:if(!((s=(s=o.trys).length>0&&s[s.length-1])||6!==n[0]&&2!==n[0])){o=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){o.label=n[1];break}if(6===n[0]&&o.label<s[1]){o.label=s[1],s=n;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(n);break}s[2]&&o.ops.pop(),o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e],r=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}}},143:(e,t,i)=>{"use strict";i.d(t,{u:()=>a});var r=i(87),s=i(156),n=i(183),o=i(557),a=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"matrix")||this;return n._transposeData=!0,n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"matrixQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),t.prototype.isSupportMissingAnswers=function(){return!1},t.prototype.getSeriesValues=function(){return this.matrixQuestion.rows.map((function(e){return""+e.value}))},t.prototype.getSeriesLabels=function(){var e=this;return this.matrixQuestion.rows.map((function(t){return s.ItemValue.getTextOrHtmlByValue(e.matrixQuestion.rows,t.value)}))},t.prototype.getSelectedItemByText=function(e){return this.matrixQuestion.columns.filter((function(t){return t.text===e}))[0]},t.prototype.valuesSource=function(){return this.matrixQuestion.columns},t.prototype.getHasAnswersInAllSeriesArray=function(e){for(var t=Array(),i=0;i<e[0].length;i++)for(var r=0;r<e.length;r++)0!=e[r][i]&&(t[i]=!0);return t},t.prototype.getHasAnswersInSeries=function(e){for(var t=0;t<e.length;t++)if(0!=e[t])return!0;return!1},t.prototype.hideEmptyAnswersInData=function(e){for(var t={datasets:[],labels:[],colors:[],texts:[],seriesLabels:[]},i=this.getHasAnswersInAllSeriesArray(e.datasets),r=0;r<e.datasets.length;r++)if(this.getHasAnswersInSeries(e.datasets[r])){t.labels.push(e.labels[r]),t.colors.push(e.colors[r]);for(var s=[],n=[],o=0;o<e.datasets[0].length;o++)i[o]&&(s.push(e.datasets[r][o]),n.push(e.texts[r][o]));t.datasets.push(s),t.texts.push(n)}for(r=0;r<e.datasets[0].length;r++)i[r]&&t.seriesLabels.push(e.seriesLabels[r]);return t},t}(n.o);o.g.registerVisualizer("matrix",a)},156:e=>{"use strict";e.exports=t},183:(e,t,i)=>{"use strict";i.d(t,{M:()=>u,o:()=>h});var r=i(87),s=i(156),n=i(267),o=i(240),a=i(70),l=i(557);function u(e){var t={datasets:[],labels:[],colors:[],texts:[],seriesLabels:[]};if(0===e.seriesLabels.length){t.datasets.push([]),t.texts.push([]);for(var i=0;i<e.datasets[0].length;i++)0!=e.datasets[0][i]&&(t.datasets[0].push(e.datasets[0][i]),t.labels.push(e.labels[i]),t.colors.push(e.colors[i]),t.texts[0].push(e.texts[0][i]));return t}var r=[];r.length=e.seriesLabels.length;var s=[];s.length=e.labels.length;for(var n=0;n<e.seriesLabels.length;n++)for(var o=0;o<e.labels.length;o++)0!=e.datasets[n][o]&&(r[n]=!0,s[o]=!0);for(o=0;o<s.length;o++)s[o]&&(t.labels.push(e.labels[o]),t.colors.push(e.colors[o]));for(n=0;n<e.seriesLabels.length;n++)r[n]&&t.seriesLabels.push(e.seriesLabels[n]);for(n=0;n<e.datasets.length;n++)if(r[n]){var a=[],l=[];for(o=0;o<e.labels.length;o++)s[o]&&(a.push(e.datasets[n][o]),l.push(e.texts[n][o]));t.datasets.push(a),t.texts.push(l)}return t}var h=function(e){function t(i,r,l,u){var h=e.call(this,i,r,l,u||"selectBase")||this;return h.selectedItem=void 0,h.choicesOrderSelector=void 0,h.showPercentageBtn=void 0,h.emptyAnswersBtn=void 0,h.transposeDataBtn=void 0,h.topNSelector=void 0,h._showOnlyPercentages=!1,h._percentagePrecision=2,h._answersOrder="default",h._hideEmptyAnswers=!1,h._topN=-1,h.topNValues=[].concat(t.topNValuesDefaults),h._transposeData=!1,h._showMissingAnswers=!1,h.missingAnswersBtn=void 0,h.chartTypes=[],h._chartType="bar",h.onAnswersDataReady=new s.Event,i&&(i.visibleChoicesChangedCallback=function(){h.dataProvider.raiseDataChanged()}),h._supportSelection=!0,h._showOnlyPercentages=!0===h.options.showOnlyPercentages,h.options.percentagePrecision&&(h._percentagePrecision=h.options.percentagePrecision),void 0!==h.options.transposeData&&(h._transposeData=h.options.transposeData),h._hideEmptyAnswers=!0===h.options.hideEmptyAnswers,h._answersOrder=h.options.answersOrder||"default",h._showMissingAnswers=h.isSupportMissingAnswers()&&!0===h.options.showMissingAnswers,h.options.allowExperimentalFeatures,n.w.chartAdapterType&&(h._chartAdapter=new n.w.chartAdapterType(h),h.chartTypes=h._chartAdapter.getChartTypes(),h.getSeriesValues().length>0&&-1===h.chartTypes.indexOf("stackedbar")&&h.chartTypes.push("stackedbar"),h._chartType=h.chartTypes[0],-1!==h.chartTypes.indexOf(h.options.defaultChartType)&&(h._chartType=h.options.defaultChartType)),!1!==h.options.allowChangeVisualizerType&&h.registerToolbarItem("changeChartType",(function(){return h.chartTypes.length>1?a.gf.createSelector(h.chartTypes.map((function(e){return{value:e,text:o.qG.getString("chartType_"+e)}})),(function(e){return h.chartType===e.value}),(function(e){h.setChartType(e.target.value)})):null})),h.registerToolbarItem("changeAnswersOrder",(function(){return h.isSupportAnswersOrder()&&(h.choicesOrderSelector=a.gf.createSelector([{text:o.qG.getString("defaultOrder"),value:"default"},{text:o.qG.getString("ascOrder"),value:"asc"},{text:o.qG.getString("descOrder"),value:"desc"}],(function(e){return!1}),(function(e){h.answersOrder=e.target.value})),h.updateOrderSelector()),h.choicesOrderSelector})),h.registerToolbarItem("showPercentages",(function(){if(h.options.allowShowPercentages&&(-1!==h.chartTypes.indexOf("bar")||-1!==h.chartTypes.indexOf("stackedbar")))return h.showPercentageBtn=a.gf.createButton((function(){h.showPercentages=!h.showPercentages})),h.updateShowPercentageBtn(),h.showPercentageBtn})),h.registerToolbarItem("hideEmptyAnswers",(function(){return h.options.allowHideEmptyAnswers&&(h.emptyAnswersBtn=a.gf.createButton((function(){h.hideEmptyAnswers=!h._hideEmptyAnswers})),h.updateEmptyAnswersBtn()),h.emptyAnswersBtn}),1e3),h.registerToolbarItem("topNAnswers",(function(){return h.options.allowTopNAnswers&&0===h.getSeriesValues().length&&(h.topNSelector=a.gf.createSelector(h.topNValues.map((function(e){return{text:o.qG.getString("topNValueText"+e),value:e}})),(function(e){return!1}),(function(e){h.topN=parseInt(e.target.value)})),h.updateTopNSelector()),h.topNSelector})),h.registerToolbarItem("transposeData",(function(){return h.options.allowTransposeData&&(h.transposeDataBtn=a.gf.createButton((function(){h.transposeData=!h.transposeData})),h.updateTransposeDataBtn()),h.transposeDataBtn})),h.registerToolbarItem("showMissingAnswers",(function(){return h.isSupportMissingAnswers()&&h.options.allowShowMissingAnswers&&(h.missingAnswersBtn=a.gf.createButton((function(){h.showMissingAnswers=!h._showMissingAnswers})),h.updateMissingAnswersBtn()),h.missingAnswersBtn})),h}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"chartType",{get:function(){return this._chartType},set:function(e){this.setChartType(e)},enumerable:!1,configurable:!0}),t.prototype.updateEmptyAnswersBtn=function(){this.emptyAnswersBtn&&(this.emptyAnswersBtn.innerText=this._hideEmptyAnswers?o.qG.getString("showEmptyAnswers"):o.qG.getString("hideEmptyAnswers"),"bar"==this.chartType||"vbar"==this.chartType||"line"==this.chartType||"scatter"==this.chartType?this.emptyAnswersBtn.style.display="inline":this.emptyAnswersBtn.style.display="none")},t.prototype.updateTransposeDataBtn=function(){this.transposeDataBtn&&(this.transposeDataBtn.innerText=this.transposeData?o.qG.getString("showPerColumns"):o.qG.getString("showPerValues"),this.getSeriesValues().length>0?this.transposeDataBtn.style.display="inline":this.transposeDataBtn.style.display="none")},t.prototype.updateOrderSelector=function(){this.choicesOrderSelector&&("bar"==this.chartType||"vbar"==this.chartType||"line"==this.chartType||"scatter"==this.chartType||("pie"==this.chartType||"doughnut"==this.chartType)&&this.topN>0?this.choicesOrderSelector.style.display="inline-flex":this.choicesOrderSelector.style.display="none",this.choicesOrderSelector.getElementsByTagName("select")[0].value=this.answersOrder)},t.prototype.updateShowPercentageBtn=function(){this.showPercentageBtn&&(this.showPercentageBtn.innerText=this._showPercentages?o.qG.getString("hidePercentages"):o.qG.getString("showPercentages"),"bar"==this.chartType||"vbar"==this.chartType||"stackedbar"==this.chartType?this.showPercentageBtn.style.display="inline":this.showPercentageBtn.style.display="none")},t.prototype.updateTopNSelector=function(){this.topNSelector&&(this.topNSelector.getElementsByTagName("select")[0].value=this._topN)},t.prototype.updateMissingAnswersBtn=function(){this.missingAnswersBtn&&(this.missingAnswersBtn.innerText=this._showMissingAnswers?o.qG.getString("hideMissingAnswers"):o.qG.getString("showMissingAnswers"))},t.prototype.onChartTypeChanged=function(){this.updateOrderSelector(),this.updateShowPercentageBtn(),this.updateEmptyAnswersBtn(),this.updateTopNSelector(),this.stateChanged("chartType",this._chartType)},t.prototype.setChartType=function(e){-1!==this.chartTypes.indexOf(e)&&this._chartType!==e&&(this._chartType=e,this.onChartTypeChanged(),this.refreshContent())},t.prototype.getCorrectAnswerText=function(){var t=e.prototype.getCorrectAnswerText.call(this),i=Array.isArray(t)?t:[t],r=this.question;return i.map((function(e){return s.ItemValue.getTextOrHtmlByValue(r.choices,e)})).join(", ")},t.prototype.isSupportSoftUpdateContent=function(){return!0},t.prototype.softUpdateContent=function(){var e,t=null===(e=this.contentContainer)||void 0===e?void 0:e.children[0];t&&this._chartAdapter.update(t)},t.prototype.getSelectedItemByText=function(e){var t;if(this.question instanceof s.QuestionRatingModel){var i=this.question.rateValues;return null!==(t=null==i?void 0:i.filter((function(t){return t.text===e}))[0])&&void 0!==t?t:new s.ItemValue(parseFloat(e),e)}var r=this.question;return this.question.hasOther&&e==r.otherText?r.otherItem:r.choices.filter((function(t){return t.text===e}))[0]},t.prototype.setSelection=function(e){var t;this.selectedItem!==e&&(this.selectedItem=e,void 0!==this.onDataItemSelected&&this.onDataItemSelected(void 0!==e?e.value:void 0,void 0!==e?e.text:""),this.stateChanged("filter",null===(t=this.selectedItem)||void 0===t?void 0:t.value))},Object.defineProperty(t.prototype,"selection",{get:function(){return this.selectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOnlyPercentages",{get:function(){return this._showOnlyPercentages},set:function(e){this._showOnlyPercentages=e,this.refreshContent(),this.stateChanged("showOnlyPercentages",e)},enumerable:!1,configurable:!0}),t.prototype.getShowPercentagesDefault=function(){return void 0===this.options.showPercentages?-1!==["pie","doughnut"].indexOf(this.chartType):!0===this.options.showPercentages},Object.defineProperty(t.prototype,"showPercentages",{get:function(){return void 0!==this._showPercentages?this._showPercentages:this.getShowPercentagesDefault()},set:function(e){this._showPercentages=e,this.updateShowPercentageBtn(),this.refreshContent(),this.stateChanged("showPercentages",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"answersOrder",{get:function(){return this._answersOrder},set:function(e){this._answersOrder=e,this.updateOrderSelector(),this.refreshContent(),this.stateChanged("answersOrder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideEmptyAnswers",{get:function(){return this._hideEmptyAnswers},set:function(e){this._hideEmptyAnswers=e,this.updateEmptyAnswersBtn(),this.refreshContent(),this.stateChanged("hideEmptyAnswers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"transposeData",{get:function(){return this._transposeData},set:function(e){this._transposeData=e,this.updateTransposeDataBtn(),this.refreshContent(),this.stateChanged("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"topN",{get:function(){return this._topN},set:function(e){this._topN=e,this.updateTopNSelector(),this.updateOrderSelector(),this.refreshContent(),this.stateChanged("topN",e)},enumerable:!1,configurable:!0}),t.prototype.isSupportAnswersOrder=function(){return!1!==this.options.allowSortAnswers&&!1!==this.options.allowChangeAnswersOrder&&0===this.getSeriesValues().length},t.prototype.isSupportMissingAnswers=function(){return!0},Object.defineProperty(t.prototype,"showMissingAnswers",{get:function(){return this._showMissingAnswers},set:function(e){this._showMissingAnswers=this.isSupportMissingAnswers()&&e,this.updateMissingAnswersBtn(),this.dataProvider.raiseDataChanged(this.name),this.refreshContent(),this.stateChanged("showMissingAnsewrs",e)},enumerable:!1,configurable:!0}),t.prototype.refreshContent=function(){this.contentContainer&&(this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)),this.invokeOnUpdate()},Object.defineProperty(t.prototype,"showValuesInOriginalOrder",{get:function(){return!1!==this.options.showValuesInOriginalOrder},enumerable:!1,configurable:!0}),t.prototype.valuesSource=function(){var e=this.question;return e.choicesFromQuestion&&e.survey&&(e=e.survey.getQuestionByName(e.choicesFromQuestion)),e.activeChoices||e.visibleChoices||e.choices||[]},t.prototype.getValues=function(){var e=this.valuesSource().map((function(e){return e.value}));return this.question.hasNone&&e.push(this.question.noneItem.value),this.question.hasOther&&e.push("other"),this.showMissingAnswers&&e.unshift(void 0),this.showValuesInOriginalOrder?e.reverse():e},t.prototype.getLabels=function(){var e=this;if(this.options.useValuesAsLabels)return this.getValues();var t=this.valuesSource().map((function(t){return s.ItemValue.getTextOrHtmlByValue(e.valuesSource(),t.value)})),i=this.question;return i.hasNone&&t.push(i.noneText),i.hasOther&&t.push(i.otherText),this.showMissingAnswers&&t.unshift(o.qG.getString("missingAnswersLabel")),this.showValuesInOriginalOrder?t.reverse():t},t.prototype.getPercentages=function(e){var t=[],i=this._percentagePrecision;if(e.length<2){var r=e[0].reduce((function(e,t){return e+t}),0);t[0]=e[0].map((function(e){var t=i?+(e/r*100).toFixed(i):Math.round(e/r*100);return r&&t}))}else for(var s=0;s<e[0].length;s++){r=0;for(var n=0;n<e.length;n++)r+=e[n][s];for(n=0;n<e.length;n++){Array.isArray(t[n])||(t[n]=[]);var o=i?+(e[n][s]/r*100).toFixed(i):Math.round(e[n][s]/r*100);t[n][s]=r&&o}}return t},t.prototype.answersDataReady=function(e){var t={};return t=this.hideEmptyAnswers?u(e):e,this.topN>0&&(t.datasets[0]=t.datasets[0].slice(-this.topN),t.labels=t.labels.slice(-this.topN),t.colors=t.colors.slice(-this.topN),t.texts[0]=t.texts[0].slice(-this.topN)),t},t.prototype.getAnswersData=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,i,s,n,o,l,u,h,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e=this.getSeriesLabels(),[4,this.getCalculatedValues()];case 1:return t=r.sent(),i=this.getLabels(),s=this.getColors(),this.transposeData&&(t=this.transpose(t),n=e,e=i,i=n),o=this.showPercentages?this.getPercentages(t):t,"asc"!=this.answersOrder&&"desc"!=this.answersOrder||(l=this.showPercentages?a.NW.zipArrays(i,s,o[0]):a.NW.zipArrays(i,s),u=a.NW.sortDictionary(l,t[0],"desc"==this.answersOrder),h=a.NW.unzipArrays(u.keys),i=h[0],s=h[1],this.showPercentages&&(o[0]=h[2]),t[0]=u.values),c={datasets:t,labels:i,colors:s,texts:o,seriesLabels:e},c=this.answersDataReady(c),this.onAnswersDataReady.fire(this,c),[2,c]}}))}))},t.prototype.convertFromExternalData=function(e){var t=this.getValues(),i=this.getSeriesValues(),r=[];if(i.length>0)for(var s=0;s<i.length;s++){for(var n=[],o=0;o<t.length;o++)e[i[s]]?n.push(e[i[s]][t[o]]||0):n.push(0);r.push(n)}else{for(n=[],o=0;o<t.length;o++)n.push(e[t[o]]||0);r.push(n)}return r},t.prototype.transpose=function(e){for(var t=e[0].length,i=new Array(t),r=0;r<t;++r)i[r]=new Array(e.length);for(r=0;r<e.length;++r)for(var s=0;s<t;++s)i[s][r]=e[r][s];return i},t.prototype.getState=function(){var e=this,i={};return t._stateProperties.forEach((function(t){i[t]=e[t]})),this.selectedItem&&(i.filter=this.selectedItem.value),i},t.prototype.setState=function(e){var i=this;t._stateProperties.forEach((function(t){void 0!==e[t]&&(i[t]=e[t])}));var r=s.ItemValue.getItemByValue(this.question.visibleChoices,e.filter);this.setSelection(null!=r?r:void 0)},t.prototype.resetState=function(){e.prototype.resetState.call(this),this._hideEmptyAnswers=!0===this.options.hideEmptyAnswers,this._answersOrder=this.options.answersOrder||"default",this._topN=-1,this.chartType=this.chartTypes[0],this.setSelection(void 0)},t.topNValuesDefaults=[-1,5,10,20],t._stateProperties=["chartType","answersOrder","hideEmptyAnswers","topN"],t}(n.w);l.g.registerVisualizer("checkbox",h),l.g.registerVisualizer("radiogroup",h),l.g.registerVisualizer("dropdown",h),l.g.registerVisualizer("imagepicker",h),l.g.registerVisualizer("tagbox",h),l.g.registerVisualizer("rating",h,100)},226:(e,t,i)=>{"use strict";i.d(t,{Y:()=>u});var r=i(87),s=i(156),n=i(555),o=i(183),a=i(557),l=i(873),u=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"histogram")||this;return n.valueType="number",n._cachedValues=void 0,n._continuousData=void 0,n._cachedIntervals=void 0,n._intervalPrecision=2,n._transposeData=!1,void 0!==n.options.intervalPrecision&&(n._intervalPrecision=n.options.intervalPrecision),"text"!==t.getType()||"date"!==t.inputType&&"datetime"!==t.inputType?n.valueType="number":n.valueType="date",n}return(0,r.C6)(t,e),t.prototype.reset=function(){this._continuousData=void 0,this._cachedValues=void 0,this._cachedIntervals=void 0},t.prototype.getContinuousValue=function(e){return"date"===this.valueType?Date.parse(e):parseFloat(e)},t.prototype.getString=function(e){return"date"===this.valueType?new Date(e).toLocaleDateString():""+e},t.prototype.toPrecision=function(e){var t=Math.pow(10,this._intervalPrecision);return Math.round(t*e)/t},t.prototype.getSelectedItemByText=function(e){if(this.hasCustomIntervals||this.getContinuousValues().length>t.UseIntervalsFrom){var i=this.intervals.filter((function(t){return t.label===e}))[0];return new s.ItemValue(i,void 0!==i?i.label:"")}var r=this.getLabels(),n=r.indexOf(e);return new s.ItemValue(this.getValues()[n],r[n])},t.prototype.updateData=function(t){this.reset(),e.prototype.updateData.call(this,t)},t.prototype.onDataChanged=function(){this.reset(),e.prototype.onDataChanged.call(this)},t.prototype.getContinuousValues=function(){var e=this;if(void 0===this._cachedValues){var t=this.getSeriesValues();0===t.length&&t.push(""),this._continuousData={},t.forEach((function(t){return e._continuousData[t]=[]}));var i={};this.data.forEach((function(t){var r=t[e.name];if(void 0!==r){var s=t[n.M.seriesMarkerKey]||"";e._continuousData[s].push(e.getContinuousValue(r)),i[r]=r}})),this._cachedValues=Object.keys(i).map((function(t){return{original:i[t],continuous:e.getContinuousValue(t)}})),this._cachedValues.sort((function(e,t){return e.continuous-t.continuous}))}return this._cachedValues},t.prototype.isSupportMissingAnswers=function(){return!1},Object.defineProperty(t.prototype,"needUseRateValues",{get:function(){return"rating"==this.question.getType()&&Array.isArray(this.question.rateValues)&&this.question.rateValues.length>0},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.intervals.map((function(e){return e.start}))},t.prototype.getLabels=function(){return this.intervals.map((function(e){return e.label}))},Object.defineProperty(t.prototype,"hasCustomIntervals",{get:function(){return!!this.questionOptions&&Array.isArray(this.questionOptions.intervals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intervals",{get:function(){if(this.hasCustomIntervals)return this.questionOptions.intervals;if("rating"==this.question.getType()){if(this.needUseRateValues){var e=this.question.rateValues;return e.sort((function(e,t){return e.value-t.value})),e.map((function(t,i){return{start:t.value,end:i<e.length-1?e[i+1].value:t.value+1,label:t.text}}))}for(var i=[],r=this.question.rateMin||0;r<=(this.question.rateMax||t.IntervalsCount-1);r+=this.question.rateStep||1)i.push({start:r,end:r+1,label:""+(this.question.rateMin&&this.question.rateMax?r:r+"-"+(r+1))});return i}if(void 0===this._cachedIntervals){var s=this.getContinuousValues();if(this._cachedIntervals=[],s.length){var n=s[0].continuous,o=s[s.length-1].continuous,a=t.IntervalsCount,l=(o-n)/a;for(r=0;r<a;++r){var u=n+l,h=this.toPrecision(n),c=this.toPrecision(u);this._cachedIntervals.push({start:h,end:r<a-1?c:c+l/100,label:this.getString(h)+"-"+this.getString(c)}),n=u}}}return this._cachedIntervals},enumerable:!1,configurable:!0}),t.prototype.convertFromExternalData=function(e){return[e]},t.prototype.getCalculatedValuesCore=function(){return this.getContinuousValues(),(0,l.er)(this._continuousData,this.intervals,this.getSeriesValues())},t.prototype.getValueType=function(){return this.valueType},t.IntervalsCount=10,t.UseIntervalsFrom=10,t}(o.o);a.g.registerVisualizer("date",u),a.g.registerVisualizer("number",u,100),a.g.registerVisualizer("rating",u,300)},240:(e,t,i)=>{"use strict";i.d(t,{DQ:()=>o,UN:()=>a,qG:()=>n});var r=i(391),s=i(156),n={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},setupLocale:function(e,t){this.locales[e]=t},getLocaleName:function(e,t){return void 0===t&&(t=!1),(t?"":this.localeNames[e])||s.surveyLocalization.getLocaleName(e,t)},getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];t&&t[e]||(t=this.locales[this.defaultLocale]);var i=t[e];return void 0===i&&(i=this.locales.en[e]||e),i},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 i in this.locales)e.push(i);return e.sort(),e}},o=r.z;function a(e){var t=e.localeCode;n.setupLocale(t,e.strings),e.nativeName&&(n.localeNames[t]=e.nativeName)}a({localeCode:"en",strings:r.z,nativeName:"English"})},267:(e,t,i)=>{"use strict";i.d(t,{b:()=>c,w:()=>d});var r=i(87),s=i(156),n=i(555),o=i(818),a=i(557),l=i(70),u=i(240),h=i(873),c=function(){function e(){}return e.postpone=function(t,i){return e.postponeFunction?e.postponeFunction(t,i):setTimeout(t,i)},e}(),d=function(){function e(t,i,r,o){void 0===r&&(r={});var a,l=this;this.question=t,this.options=r,this._type=o,this._showToolbar=!0,this._footerVisualizer=void 0,this._dataProvider=void 0,this._getDataCore=void 0,this.labelTruncateLength=27,this.haveCommercialLicense=!1,this.renderResult=void 0,this.toolbarContainer=void 0,this.headerContainer=void 0,this.contentContainer=void 0,this.footerContainer=void 0,this._supportSelection=!1,this._chartAdapter=void 0,this._footerIsCollapsed=void 0,this.onAfterRender=new s.Event,this.onLocaleChanged=new s.Event,this.onStateChanged=new s.Event,this.toolbarItemCreators={},this._backgroundColor="#f7f7f7",this._calculationsCache=void 0,this.loadingData=!1,this._settingState=!1;var u=s.hasLicense;this.haveCommercialLicense=!!u&&u(4)||e.haveCommercialLicense||void 0!==r.haveCommercialLicense&&r.haveCommercialLicense,this._getDataCore=null===(a=this.questionOptions)||void 0===a?void 0:a.getDataCore,this._dataProvider=r.dataProvider||new n.M(i),this._dataProvider.onDataChanged.add((function(){return l.onDataChanged()})),this.loadingData=!!this._dataProvider.dataFn,void 0!==r.labelTruncateLength&&(this.labelTruncateLength=r.labelTruncateLength)}return e.prototype.afterRender=function(e){this.onAfterRender.fire(this,{htmlElement:e})},e.prototype.stateChanged=function(e,t){this._settingState||this.onStateChanged.fire(this,this.getState())},e.prototype.getToolbarItemCreators=function(){return Object.assign({},this.toolbarItemCreators,this.onGetToolbarItemCreators&&this.onGetToolbarItemCreators()||{})},Object.defineProperty(e.prototype,"questionOptions",{get:function(){var e;return this.options[null===(e=this.question)||void 0===e?void 0:e.name]},enumerable:!1,configurable:!0}),e.prototype.onDataChanged=function(){this._calculationsCache=void 0,this.loadingData=!!this._dataProvider.dataFn,this.refresh()},Object.defineProperty(e.prototype,"name",{get:function(){return this.question.valueName||this.question.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataNames",{get:function(){return[this.name]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasHeader",{get:function(){return!!(this.options&&this.options.showCorrectAnswers&&this.question&&this.question.correctAnswer)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasFooter",{get:function(){return!!this.question&&(this.question.hasComment||this.question.hasOther)},enumerable:!1,configurable:!0}),e.prototype.createVisualizer=function(e,t,i){var r=Object.assign({},t||this.options);return void 0===r.dataProvider&&(r.dataProvider=this.dataProvider),o.D.createVisualizer(e,i||this.data,r)},Object.defineProperty(e.prototype,"footerVisualizer",{get:function(){var e=this;if(this.hasFooter){if(!this._footerVisualizer){var t=new s.QuestionCommentModel(this.question.name+(s.settings||{}).commentPrefix);t.title=this.processText(this.question.title);var i=Object.assign({},this.options);i.renderContent=void 0,this._footerVisualizer=this.createVisualizer(t,i),this._footerVisualizer&&(this._footerVisualizer.onUpdate=function(){return e.invokeOnUpdate()})}return this._footerVisualizer}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"supportSelection",{get:function(){return(void 0===this.options.allowSelection||this.options.allowSelection)&&this._supportSelection},enumerable:!1,configurable:!0}),e.prototype.getSeriesValues=function(){return this.options.seriesValues||[]},e.prototype.getSeriesLabels=function(){return this.options.seriesLabels||this.getSeriesValues()},e.prototype.getValues=function(){throw new Error("Method not implemented.")},e.prototype.getLabels=function(){return this.getValues()},e.prototype.registerToolbarItem=function(e,t,i){void 0===i&&(i=100),this.toolbarItemCreators[e]={creator:t,order:i}},e.prototype.unregisterToolbarItem=function(e){if(void 0!==this.toolbarItemCreators[e]){var t=this.toolbarItemCreators[e];return delete this.toolbarItemCreators[e],t.creator}},Object.defineProperty(e.prototype,"title",{get:function(){return this.getTitle(this.question)},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(e){var t;return void 0===e?"":this.processText((null===(t=e.locTitle)||void 0===t?void 0:t.renderedHtml)?e.locTitle.renderedHtml:e.title)},Object.defineProperty(e.prototype,"type",{get:function(){return this._type||"visualizer"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.dataProvider.filteredData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"surveyData",{get:function(){return this.dataProvider.filteredData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataProvider",{get:function(){return this._dataProvider},enumerable:!1,configurable:!0}),e.prototype.updateData=function(e){var t=this.options.dataPath,i=e;t&&Array.isArray(e)&&(i=[],e.forEach((function(e){e&&void 0!==e[t]&&(Array.isArray(e[t])?i=i.concat(e[t]):i.push(e[t]))}))),this.options.dataProvider||(this.dataProvider.data=i),this.hasFooter&&this.footerVisualizer.updateData(i)},e.prototype.invokeOnUpdate=function(){this.onUpdate&&this.onUpdate()},e.prototype.destroy=function(){this.renderResult&&(this.clear(),this.toolbarContainer=void 0,this.headerContainer=void 0,this.contentContainer=void 0,this.footerContainer=void 0,this.renderResult.innerHTML="",this.renderResult=void 0),this._footerVisualizer&&(this._footerVisualizer.destroy(),this._footerVisualizer.onUpdate=void 0,this._footerVisualizer=void 0)},e.prototype.clear=function(){this.toolbarContainer&&this.destroyToolbar(this.toolbarContainer),this.headerContainer&&this.destroyHeader(this.headerContainer),this.contentContainer&&this.destroyContent(this.contentContainer),this.footerContainer&&this.destroyFooter(this.footerContainer)},e.prototype.createToolbarItems=function(e){var t=this.getToolbarItemCreators();Object.keys(t||{}).map((function(e){return(0,r.Cl)({name:e},t[e])})).sort((function(e,t){return e.order-t.order})).forEach((function(t){var i=t.creator(e);i&&e.appendChild(i)}))},e.prototype.getCorrectAnswerText=function(){return this.question?this.question.correctAnswer:""},e.prototype.destroyToolbar=function(e){e.innerHTML=""},e.prototype.renderToolbar=function(e){if(this.showToolbar){var t=l.gf.createElement("div","sa-toolbar");this.createToolbarItems(t),e.appendChild(t)}},e.prototype.destroyHeader=function(e){this.options&&"function"==typeof this.options.destroyHeader?this.options.destroyHeader(e,this):e.innerHTML=""},e.prototype.destroyContent=function(e){this.options&&"function"==typeof this.options.destroyContent?this.options.destroyContent(e,this):this._chartAdapter&&this._chartAdapter.destroy(e.children[0]),e.innerHTML=""},e.prototype.renderHeader=function(e){if(this.options&&"function"==typeof this.options.renderHeader)this.options.renderHeader(e,this);else{var t=l.gf.createElement("div","sa-visualizer__correct-answer");t.innerText=u.qG.getString("correctAnswer")+this.getCorrectAnswerText(),e.appendChild(t)}},e.prototype.renderContentAsync=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t;return(0,r.YH)(this,(function(i){switch(i.label){case 0:return this._chartAdapter?(t=l.gf.createElement("div"),e.innerHTML="",e.appendChild(t),[4,this._chartAdapter.create(t)]):[3,2];case 1:return i.sent(),[3,3];case 2:e.innerText=u.qG.getString("noVisualizerForQuestion"),i.label=3;case 3:return[2,e]}}))}))},e.prototype.ensureQuestionIsReady=function(){var e=this;return new Promise((function(t){e.question?e.question.waitForQuestionIsReady().then((function(){return t()})):t()}))},e.prototype.renderContent=function(e){var t=this;this.options&&"function"==typeof this.options.renderContent?!1!==this.options.renderContent(e,this)&&this.afterRender(e):(this.loadingData&&this.renderLoadingIndicator(this.contentContainer),this.ensureQuestionIsReady().then((function(){return t.renderContentAsync(e).then((function(e){return t.afterRender(e)}))})))},e.prototype.destroyFooter=function(e){e.innerHTML=""},Object.defineProperty(e.prototype,"isFooterCollapsed",{get:function(){return void 0===this._footerIsCollapsed&&(this._footerIsCollapsed=e.otherCommentCollapsed),this._footerIsCollapsed},set:function(e){this._footerIsCollapsed=e},enumerable:!1,configurable:!0}),e.prototype.renderFooter=function(e){var t=this;if(e.innerHTML="",this.hasFooter){var i=l.gf.createElement("h4","sa-visualizer__footer-title",{innerText:u.qG.getString("otherCommentTitle")});e.appendChild(i);var r=l.gf.createElement("div","sa-visualizer__footer-content");r.style.display=this.isFooterCollapsed?"none":"block";var s=u.qG.getString(this.isFooterCollapsed?"showButton":"hideButton"),n=l.gf.createButton((function(){"none"===r.style.display?(r.style.display="block",n.innerText=u.qG.getString("hideButton"),t._footerIsCollapsed=!1):(r.style.display="none",n.innerText=u.qG.getString("showButton"),t._footerIsCollapsed=!0),t.footerVisualizer.invokeOnUpdate()}),s);e.appendChild(n),e.appendChild(r),this.footerVisualizer.render(r)}},e.prototype.render=function(e){"string"==typeof e&&(e=document.getElementById(e)),this.renderResult=e,this.toolbarContainer=l.gf.createElement("div","sa-visualizer__toolbar"),e.appendChild(this.toolbarContainer),this.renderToolbar(this.toolbarContainer),this.hasHeader&&(this.headerContainer=l.gf.createElement("div","sa-visualizer__header"),e.appendChild(this.headerContainer),this.renderHeader(this.headerContainer)),this.contentContainer=l.gf.createElement("div","sa-visualizer__content"),e.appendChild(this.contentContainer),this.renderContent(this.contentContainer),this.footerContainer=l.gf.createElement("div","sa-visualizer__footer"),e.appendChild(this.footerContainer),this.renderFooter(this.footerContainer)},e.prototype.updateToolbar=function(){var e=this;this.toolbarContainer&&c.postpone((function(){e.destroyToolbar(e.toolbarContainer),e.renderToolbar(e.toolbarContainer)}))},e.prototype.isSupportSoftUpdateContent=function(){return!1},e.prototype.softUpdateContent=function(){},e.prototype.hardUpdateContent=function(){this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)},e.prototype.updateContent=function(){this.isSupportSoftUpdateContent()?this.softUpdateContent():this.hardUpdateContent()},e.prototype.refresh=function(){var e=this;this.headerContainer&&c.postpone((function(){e.destroyHeader(e.headerContainer),e.renderHeader(e.headerContainer),e.invokeOnUpdate()})),this.contentContainer&&c.postpone((function(){e.updateContent(),e.invokeOnUpdate()})),this.footerContainer&&c.postpone((function(){e.destroyFooter(e.footerContainer),e.renderFooter(e.footerContainer),e.invokeOnUpdate()}))},e.prototype.processText=function(e){return!1!==this.options.stripHtmlFromTitles?(e||"").replace(/(<([^>]+)>)/gi,""):e},e.prototype.getRandomColor=function(){var e=this.getColors();return e[Math.floor(Math.random()*e.length)]},Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this.getBackgroundColorCore()},set:function(e){this.setBackgroundColorCore(e)},enumerable:!1,configurable:!0}),e.prototype.getBackgroundColorCore=function(){return this._backgroundColor},e.prototype.setBackgroundColorCore=function(e){this._backgroundColor=e,this.footerVisualizer&&(this.footerVisualizer.backgroundColor=e)},e.prototype.getColors=function(t){void 0===t&&(t=10);for(var i=Array.isArray(e.customColors)&&e.customColors.length>0?e.customColors:e.colors,r=[],s=0;s<t;s++)r=r.concat(i);return r},Object.defineProperty(e.prototype,"showToolbar",{get:function(){return this._showToolbar},set:function(e){e!=this._showToolbar&&(this._showToolbar=e,this.toolbarContainer&&(this.destroyToolbar(this.toolbarContainer),this.renderToolbar(this.toolbarContainer)))},enumerable:!1,configurable:!0}),e.prototype.getData=function(){return this.getCalculatedValuesCore()},e.prototype.getCalculatedValuesCore=function(){return this._getDataCore?this._getDataCore(this):(0,h.X3)(this.surveyData,this)},e.prototype.renderLoadingIndicator=function(e){e.appendChild((0,l.QV)())},e.prototype.convertFromExternalData=function(e){return e},e.prototype.getCalculatedValues=function(){var e=this;return new Promise((function(t,i){if(void 0!==e._calculationsCache&&t(e._calculationsCache),e.dataProvider.dataFn){e.loadingData=!0;var r=e.dataProvider.dataFn({visualizer:e,filter:e.dataProvider.getFilters(),callback:function(r){e.loadingData=!1,!r.error&&Array.isArray(r.data)?(e._calculationsCache=e.convertFromExternalData(r.data),t(e._calculationsCache)):i()}});r&&r.then((function(i){e.loadingData=!1,e._calculationsCache=e.convertFromExternalData(i),t(e._calculationsCache)})).catch((function(){e.loadingData=!1,i()}))}else e._calculationsCache=e.getCalculatedValuesCore(),t(e._calculationsCache)}))},e.prototype.getState=function(){return{}},e.prototype.setState=function(e){},e.prototype.resetState=function(){},Object.defineProperty(e.prototype,"locale",{get:function(){var e=this.options.survey;return e?e.locale:u.qG.currentLocale},set:function(e){this.setLocale(e),this.onLocaleChanged.fire(this,{locale:e}),this.refresh()},enumerable:!1,configurable:!0}),e.prototype.setLocale=function(e){u.qG.currentLocale=e;var t=this.options.survey;t&&t.locale!==e&&(t.locale=e)},e.haveCommercialLicense=!1,e.suppressVisualizerStubRendering=!1,e.chartAdapterType=void 0,e.otherCommentCollapsed=!0,e.customColors=[],e.colors=["#86e1fb","#3999fb","#ff6771","#1eb496","#ffc152","#aba1ff","#7d8da5","#4ec46c","#cf37a6","#4e6198"],e}();a.g.defaultVisualizer=d},288:(e,t,i)=>{var r={"./detail.svg":782,"./drag.svg":307,"./hide.svg":41,"./makeprivate.svg":24,"./makepublic.svg":452,"./moveToDetails.svg":637,"./nonCommercial.svg":388,"./sorting.svg":999};function s(e){var t=n(e);return i(t)}function n(e){if(!i.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}s.keys=function(){return Object.keys(r)},s.resolve=n,e.exports=s,s.id=288},307:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><polygon points="13,5 12,6 13,7 9,7 9,3 10,4 11,3 8,0 5,3 6,4 7,3 7,7 3,7 4,6 3,5 0,8 3,11 4,10 3,9 7,9 7,13 6,12 5,13 8,16 11,13 10,12 9,13 9,9 13,9 12,10 13,11 16,8 "></polygon></g></svg>'},388:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><path d="M8,0L0,15h16L8,0z M9,13H7v-2h2V13z M7,10V5h2v5H7z"></path></svg>'},391:(e,t,i)=>{"use strict";i.d(t,{z:()=>r});var r={groupButton:"Group By Me",ungroupButton:"Ungroup By Me",selectButton:"Select Me",hideColumn:"Hide column",showColumn:"Show column",makePrivateColumn:"Make column private",makePublicColumn:"Make column public",moveToDetail:"Move to Detail",showAsColumn:"Show as Column",filterPlaceholder:"Search...",removeRows:"Remove rows",showLabel:"Show",entriesLabel:"entries",visualizer_text:"Texts in table",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Average",visualizer_choices:"Table",visualizer_selectBase:"Chart",visualizer_matrix:"Chart",chartType_bar:"Bar",chartType_vbar:"Vertical Bar",chartType_stackedbar:"Stacked Bar",chartType_doughnut:"Doughnut",chartType_pie:"Pie",chartType_scatter:"Scatter",chartType_gauge:"Gauge",chartType_bullet:"Bullet",chartType_line:"Line",chartType_radar:"Radar",hideButton:"Hide",makePrivateButton:"Make private",makePublicButton:"Make public",showButton:"Show",filter:"Filter",resetFilter:"Reset Filter",changeLocale:"Change Locale",clearButton:"Clear",addElement:"Choose question to show...",defaultOrder:"Default Order",ascOrder:"Ascending",descOrder:"Descending",showMinorColumns:"Show minor columns",actionsColumn:"Actions",otherCommentTitle:"Other items and comments",showPercentages:"Show percentages",hidePercentages:"Hide percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot as a PNG file",hideEmptyAnswers:"Hide empty answers",showEmptyAnswers:"Show empty answers","topNValueText-1":"All answers",topNValueText5:"Top 5 answers",topNValueText10:"Top 10 answers",topNValueText20:"Top 20 answers",hideMissingAnswers:"Hide missing answers",showMissingAnswers:"Show missing answers",missingAnswersLabel:"Missing answers",noVisualizerForQuestion:"This question type is not visualized yet",noResults:"There are no results yet",showPerValues:"Per Values",showPerColumns:"Per Columns",answer:"Answer",correctAnswer:"Correct answer: ",percent:"Percent",percentage:"Percentage",statistics_chart:"Chart",responses:"Responses",visualizer_nps:"NPS",visualizer_boolean:"Chart",visualizer_options:"Table",npsScore:"NPS",npsPromoters:"Promoters",npsPassives:"Passives",npsDetractors:"Detractors",axisXSelectorTitle:"Category (X Axis):",axisYSelectorTitle:"Legend (Series):",axisXAlternativeSelectorTitle:"Segments:",axisYAlternativeSelectorTitle:"Groups:",notSelected:"Not selected",license:"To use the Dashboard library in your application, a <a href='https://surveyjs.io/licensing' target='_blank'>developer license</a> is required. If you have an active license, please <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up your license key</a> and ensure you're using the <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>latest version</a>.",license2:"This banner appears because your maintenance subscription for the Dashboard library expired on {date}. You may continue using <a href='https://surveyjs.io/stay-updated/release-notes' target='_blank'>all versions released up to that date</a>. To remove this banner in the latest version, please <a href='https://surveyjs.io/manage#license-manager' target='_blank'>renew your subscription</a> and <a href='https://surveyjs.io/remove-alert-banner' target='_blank'>set up a new license key</a>."}},452:e=>{e.exports='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" style="enable-background:new 0 0 16 16;" xml:space="preserve"><g><circle cx="6" cy="5" r="3"></circle><path d="M10,5c0,0.34-0.06,0.67-0.14,0.99C9.91,5.99,9.95,6,10,6c1.66,0,3-1.34,3-3s-1.34-3-3-3 C8.97,0,8.07,0.52,7.53,1.3C8.98,1.91,10,3.33,10,5z"></path><path d="M6,9c-3.31,0-6,2.73-6,4.67S3.27,16,6,16s6-0.4,6-2.33S9.31,9,6,9z"></path><path d="M10,7C9.81,7,9.62,7.01,9.43,7.03C9.09,7.6,8.62,8.07,8.06,8.42c3,0.83,5.23,3.31,5.42,5.28 c1.44-0.31,2.52-0.92,2.52-2.03C16,9.74,13.31,7,10,7z"></path></g></svg>'},453:(e,t,i)=>{"use strict";i.d(t,{AlternativeVisualizersWrapper:()=>m,BooleanModel:()=>l.o,DataProvider:()=>s.M,DocumentHelper:()=>f.gf,HistogramModel:()=>u.Y,Matrix:()=>a.u,NpsAdapter:()=>Y,NpsVisualizer:()=>F,NpsVisualizerWidget:()=>H,NumberModel:()=>h.R,PivotModel:()=>Q.y,PostponeHelper:()=>c.b,RankingModel:()=>X.O,SelectBase:()=>o.o,StatisticsTable:()=>j,StatisticsTableAdapter:()=>I,StatisticsTableBoolean:()=>G,Text:()=>q,TextTableAdapter:()=>R,VisualizationComposite:()=>E,VisualizationManager:()=>d.g,VisualizationMatrixDropdown:()=>D,VisualizationMatrixDynamic:()=>z,VisualizationPanel:()=>A,VisualizationPanelDynamic:()=>k,VisualizerBase:()=>c.w,VisualizerFactory:()=>n.D,WordCloud:()=>B,WordCloudAdapter:()=>N,hideEmptyAnswersInData:()=>o.M,localization:()=>r.qG,setupLocale:()=>r.UN,surveyStrings:()=>r.DQ,textHelper:()=>L});var r=i(240);(0,r.UN)({localeCode:"fa",strings:{groupButton:"گروه بندی با",ungroupButton:"حذف گروه",selectButton:"انتخاب",hideColumn:"مخفی کردن ستون",showColumn:"نمایش ستون",makePrivateColumn:"خصوصی کردن ستون",makePublicColumn:"عمومی کردن ستون",moveToDetail:"انتقال به جزئیات",showAsColumn:"نمایش به عنوان ستون",filterPlaceholder:"جستجو...",removeRows:"حذف سطرها",showLabel:"نمایش",entriesLabel:"ورودی",visualizer_text:"متون در جدول",visualizer_wordcloud:"ابر کلمات",visualizer_histogram:"هیستوگرام",visualizer_number:"متوسط",visualizer_choices:"جدول",visualizer_selectBase:"نمودار",visualizer_matrix:"نمودار",chartType_bar:"نوار",chartType_vbar:"نوار عمودی",chartType_stackedbar:"نوار پشته",chartType_doughnut:"دونات",chartType_pie:"دابره ای(pie)",chartType_scatter:"پراکندگی(Scatter)",chartType_gauge:"عقربه ای",chartType_bullet:"Bullet",chartType_line:"خط",chartType_radar:"رادار",hideButton:"مخفی",makePrivateButton:"خصوصی کردن",makePublicButton:"عمومی کردن",showButton:"نمایش",filter:"فیلتر",resetFilter:"بازنشانی فیلترها",changeLocale:"تغییر محلی",clearButton:"پاک کردن",addElement:"انتخاب سوال برای نمایش...",defaultOrder:"ترتیب پیشفرض",ascOrder:"صعودی",descOrder:"نزولی",showMinorColumns:"نمایش ستونهای فرعی",actionsColumn:"اقدامات",otherCommentTitle:"سایر موارد و نظرات",showPercentages:"نمایش درصد",hidePercentages:"درصدهای مخفی",pdfDownloadCaption:"پی دی اف",xlsxDownloadCaption:"اکسل",csvDownloadCaption:"Csv",saveDiagramAsPNG:"دانلود طرح به عنوان یک فایل PNG",hideEmptyAnswers:"مخفی کردن پاسخهای خالی",showEmptyAnswers:"نمایش پاسخهای خالی","topNValueText-1":"همه پاسخ ها",topNValueText5:"5 پاسخ برتر",topNValueText10:"10 پاسخ برتر",topNValueText20:"20 پاسخ برتر",hideMissingAnswers:"مخفی کردن پاسخهای گمشده",showMissingAnswers:"نمایش پاسخهای گمشده",missingAnswersLabel:"پاسخ های گمشده",noVisualizerForQuestion:"این نوع سوال هنوز تجسم نشده است",noResults:"هنوز نتیجه ای حاصل نشده است",showPerValues:"به ازای هر ارزش",showPerColumns:"در هر ستون",answer:"پاسخ",correctAnswer:"پاسخ صحیح: ",percent:"درصد",percentage:"درصد",statistics_chart:"نمودار",responses:"پاسخ",visualizer_nps:"NPS",visualizer_boolean:"نمودار",visualizer_options:"جدول",npsScore:"NPS",npsPromoters:"مروج",npsPassives:"منفعل ها",npsDetractors:"بدهیدان",axisXSelectorTitle:"دسته (محور X):",axisYSelectorTitle:"افسانه (سری):",axisXAlternativeSelectorTitle:"بخش:",axisYAlternativeSelectorTitle:"گروه:",notSelected:"انتخاب نشده است"},nativeName:"فارسی"}),(0,r.UN)({localeCode:"fr",strings:{groupButton:"Grouper",ungroupButton:"Dissocier",selectButton:"Sélectionner",hideColumn:"Masquer colonne",showColumn:"Afficher colonne",makePrivateColumn:"Rendre la colonne privé",makePublicColumn:"Rendre la colonne public",moveToDetail:"Déplacer vers détails",showAsColumn:"Afficher en colonne",filterPlaceholder:"Rechercher...",removeRows:"Supprimer colonne",showLabel:"Afficher",entriesLabel:"entrées",visualizer_text:"Textes en table",visualizer_wordcloud:"Nuages de mots",visualizer_histogram:"Histogramme",visualizer_number:"Moyenne",visualizer_choices:"Table",visualizer_selectBase:"Graphique",visualizer_matrix:"Graphique",chartType_bar:"Bar",chartType_vbar:"Barre verticale",chartType_stackedbar:"Barres empilées",chartType_doughnut:"Anneau",chartType_pie:"Secteurs",chartType_scatter:"Nuages de points",chartType_gauge:"Gauge",chartType_bullet:"Bulles",chartType_line:"Ligne",chartType_radar:"Radar",hideButton:"Masquer",makePrivateButton:"Rendre privé",makePublicButton:"Rendre publique",showButton:"Afficher",filter:"Filtre",resetFilter:"Rafraichir Filtres",changeLocale:"Changer les paramètres régionaux",clearButton:"Rafraichir",addElement:"Choisir la question à afficher...",defaultOrder:"Defaut",ascOrder:"Ascendant",descOrder:"Descendant",showMinorColumns:"Afficher les colonnes mineures",actionsColumn:"Actions",otherCommentTitle:"Autre élément et commentaires",showPercentages:"Afficher les pourcentages",hidePercentages:"Masquer les pourcentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Exceller",csvDownloadCaption:"Fichier CSV",saveDiagramAsPNG:"Sauver en png",hideEmptyAnswers:"Masquer les réponses vides",showEmptyAnswers:"Afficher les réponses vides","topNValueText-1":"Toutes les réponses",topNValueText5:"Top 5 des réponses",topNValueText10:"Top 10 des réponses",topNValueText20:"Top 20 des réponses",hideMissingAnswers:"Masquer les réponses manquantes",showMissingAnswers:"Afficher les réponses manquantes",missingAnswersLabel:"Réponses manquantes",noVisualizerForQuestion:"Ce type de question n'est pas encore visualisé",noResults:"Il n'y a pas encore de résultats",showPerValues:"Par valeur",showPerColumns:"Par colonne",answer:"Réponse",correctAnswer:"Réponse correcte: ",percent:"Pourcentage",percentage:"Pourcentage",statistics_chart:"Graphique",responses:"Réponses",visualizer_nps:"Le NPS",visualizer_boolean:"Graphique",visualizer_options:"Table",npsScore:"Le NPS",npsPromoters:"Promoteurs",npsPassives:"Passifs",npsDetractors:"Détracteurs",axisXSelectorTitle:"Catégorie (axe X) :",axisYSelectorTitle:"Légende (série) :",axisXAlternativeSelectorTitle:"Segments:",axisYAlternativeSelectorTitle:"Groupe:",notSelected:"Non sélectionné"},nativeName:"Français"}),(0,r.UN)({localeCode:"de",strings:{groupButton:"Gruppieren",ungroupButton:"Gruppierung aufheben",selectButton:"Mich auswählen",hideColumn:"Spalte ausblenden",showColumn:"Spalte einblenden",makePrivateColumn:"Spalte privat machen",makePublicColumn:"Spalte veröffentlichen",moveToDetail:"in Details verschieben",showAsColumn:"Als Spalte anzeigen",filterPlaceholder:"Suche...",removeRows:"Zeilen entfernen",showLabel:"anzeigen",entriesLabel:"Einträge",visualizer_text:"Texte in Tabellenform",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogramm",visualizer_number:"Durchschnitt",visualizer_choices:"Liste",visualizer_selectBase:"Diagrammtyp",visualizer_matrix:"Diagramm",chartType_bar:"Stab",chartType_vbar:"Balkendiagramm vertikal",chartType_stackedbar:"Gestapeltes Balkendiagramm",chartType_doughnut:"Donut-Diagramm",chartType_pie:"Kreisdiagramm",chartType_scatter:"Punktediagramm",chartType_gauge:"Pegeldiagramm",chartType_bullet:"Aufzählungsdiagramm",chartType_line:"Linie",chartType_radar:"Radar",hideButton:"Ausblenden",makePrivateButton:"Privat machen",makePublicButton:"Öffentlich machen",showButton:"Anzeigen",filter:"Filter",resetFilter:"Filter zurücksetzen",changeLocale:"Lokalisierung ändern",clearButton:"Einstellungen löschen",addElement:"Wählen Sie eine Frage, um zu zeigen...",defaultOrder:"Standardreihenfolge",ascOrder:"Aufsteigend",descOrder:"Absteigend",showMinorColumns:"Kleinere Spalten anzeigen",actionsColumn:"Aktionen",otherCommentTitle:"Andere Punkte und Kommentare",showPercentages:"Prozentsätze anzeigen",hidePercentages:"Prozentsätze ausblenden",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Diagramm als png herunterladen",hideEmptyAnswers:"Leere Antworten ausblenden",showEmptyAnswers:"Leere Antworten anzeigen","topNValueText-1":"Alle Antworten",topNValueText5:"Top 5 Antworten",topNValueText10:"Top 10 Antworten",topNValueText20:"Top 20 Antworten",hideMissingAnswers:"Fehlende Antworten ausblenden",showMissingAnswers:"Fehlende Antworten anzeigen",missingAnswersLabel:"Fehlede Antworten",noVisualizerForQuestion:"Für diesen Fragetyp gibt es noch keine Visualisierung.",noResults:"Es liegen noch keine Ergebnisse vor",showPerValues:"Pro Wert",showPerColumns:"Pro Spalte",answer:"Antwort",correctAnswer:"Korrekte Antwort: ",percent:"Prozent",percentage:"Prozentsatz",statistics_chart:"Diagramm",responses:"Antworten",visualizer_nps:"NPS (NPS)",visualizer_boolean:"Diagramm",visualizer_options:"Tisch",npsScore:"NPS (NPS)",npsPromoters:"Promotoren",npsPassives:"Passive Fähigkeiten",npsDetractors:"Kritiker",axisXSelectorTitle:"Kategorie (X-Achse):",axisYSelectorTitle:"Legende (Serie):",axisXAlternativeSelectorTitle:"Segmente:",axisYAlternativeSelectorTitle:"Gruppen:",notSelected:"Nicht ausgewählt"},nativeName:"Deutsch"}),(0,r.UN)({localeCode:"no",strings:{groupButton:"Grupper",ungroupButton:"Opphev gruppering",selectButton:"Velg",hideColumn:"Skjul kolonne",showColumn:"Vis kolonne",makePrivateColumn:"Gjør kolonne privat",makePublicColumn:"Gjør kolonne offentlig",moveToDetail:"Flytt til detaljert visning",showAsColumn:"Vis som kolonne",filterPlaceholder:"Søk...",removeRows:"Fjern rader",showLabel:"Vis",entriesLabel:"oppføringer",visualizer_text:"Tabellvisning",visualizer_wordcloud:"Ordsky",visualizer_histogram:"Histogram",visualizer_number:"Gjennomsnitt",visualizer_choices:"Bord",visualizer_selectBase:"Sjøkart",visualizer_matrix:"Sjøkart",chartType_bar:"Bar",chartType_vbar:"Vertikal stolpe",chartType_stackedbar:"Stablet stolpediagram",chartType_doughnut:"Hjuldiagram",chartType_pie:"Sektordiagram",chartType_scatter:"Punktdiagram",chartType_gauge:"Målediagram",chartType_bullet:"Kulediagram",chartType_line:"Linje",chartType_radar:"Radar",hideButton:"Skjul",makePrivateButton:"Gjør privat",makePublicButton:"Gjør offentlig",showButton:"Vis",filter:"Filter",resetFilter:"Nullstill filter",changeLocale:"Bytt språk",clearButton:"Tøm",addElement:"Velg spørsmål...",defaultOrder:"Standard",ascOrder:"Stigende",descOrder:"Synkende",showMinorColumns:"Vis mindre kolonner",actionsColumn:"Handlinger",otherCommentTitle:"Annet og kommentarer",showPercentages:"Vis prosenter",hidePercentages:"Skjul prosenter",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Overgå",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Last ned plott som en PNG-fil",hideEmptyAnswers:"Skjul tomme svar",showEmptyAnswers:"Vis tomme svar","topNValueText-1":"Alle svar",topNValueText5:"Topp 5 svar",topNValueText10:"Topp 10 svar",topNValueText20:"Topp 20 svar",hideMissingAnswers:"Skjul manglende svar",showMissingAnswers:"Vis manglende svar",missingAnswersLabel:"Mangler svar",noVisualizerForQuestion:"Denne spørsmålstypen er ikke visualisert ennå",noResults:"Det er ingen resultater ennå",showPerValues:"Per verdier",showPerColumns:"Per kolonner",answer:"Svare",correctAnswer:"Riktig svar: ",percent:"Prosent",percentage:"Prosent",statistics_chart:"Sjøkart",responses:"Svar",visualizer_nps:"NPS",visualizer_boolean:"Sjøkart",visualizer_options:"Bord",npsScore:"NPS",npsPromoters:"Arrangører",npsPassives:"Passive",npsDetractors:"Motstandere",axisXSelectorTitle:"Kategori (X-akse):",axisYSelectorTitle:"Legende (serie):",axisXAlternativeSelectorTitle:"Segmenter:",axisYAlternativeSelectorTitle:"Grupper:",notSelected:"Ikke valgt"},nativeName:"Norsk"}),(0,r.UN)({localeCode:"pt",strings:{groupButton:"Agrupar Por Mim",ungroupButton:"Desagrupar Por Mim",selectButton:"Selecionar",hideColumn:"Esconder coluna",showColumn:"Mostrar coluna",makePrivateColumn:"Tornar coluna privada",makePublicColumn:"Tornar coluna pública",moveToDetail:"Mover para Detalhes",showAsColumn:"Mostrar como Coluna",filterPlaceholder:"Pesquisar...",removeRows:"Remover linhas",showLabel:"Mostrar",entriesLabel:"entradas",visualizer_text:"Textos em tabela",visualizer_wordcloud:"Nuvem de palavras",visualizer_histogram:"Histograma",visualizer_number:"Média",visualizer_choices:"Tabela",visualizer_selectBase:"Gráfico",visualizer_matrix:"Gráfico",chartType_bar:"Barra",chartType_vbar:"Barra vertical",chartType_stackedbar:"Barra Empilhada",chartType_doughnut:"Rosca",chartType_pie:"Tarte",chartType_scatter:"Lastro",chartType_gauge:"Escala",chartType_bullet:"Bala",chartType_line:"Linha",chartType_radar:"Radar",hideButton:"Esconder",makePrivateButton:"Tornar privado",makePublicButton:"Tornar público",showButton:"Mostrar",filter:"Filtrar",resetFilter:"Restaurar Filtro",changeLocale:"Mudar Localização",clearButton:"Limpar",addElement:"Escolher questão para mostrar...",defaultOrder:"Ordenação Padrão",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar colunas menores",actionsColumn:"Ações",otherCommentTitle:"Outros itens e comentários",showPercentages:"Mostrar percentuais",hidePercentages:"Esconder percentuais",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Baixar diagrama como PNG",hideEmptyAnswers:"Esconder perguntas vazias",showEmptyAnswers:"Mostrar perguntas vazias","topNValueText-1":"Todas as respostas",topNValueText5:"Primeiras 5 respostas",topNValueText10:"Primeiras 10 respostas",topNValueText20:"Primeiras 20 respostas",hideMissingAnswers:"Ocultar perguntas não respondidas",showMissingAnswers:"Mostrar perguntas não respondidas",missingAnswersLabel:"Perguntas não respondidas",noVisualizerForQuestion:"Este tipo de pergunta ainda não foi visualizada",noResults:"Ainda não possui resultados",showPerValues:"Por valores",showPerColumns:"Por colunas",answer:"Resposta",correctAnswer:"Resposta correta: ",percent:"Percentagem",percentage:"Porcentagem",statistics_chart:"Gráfico",responses:"Respostas",visualizer_nps:"NPS",visualizer_boolean:"Gráfico",visualizer_options:"Mesa",npsScore:"NPS",npsPromoters:"Promotores",npsPassives:"Passivos",npsDetractors:"Detratores",axisXSelectorTitle:"Categoria (eixo X):",axisYSelectorTitle:"Lenda (Série):",axisXAlternativeSelectorTitle:"Segmentos:",axisYAlternativeSelectorTitle:"Grupos:",notSelected:"Não selecionado"},nativeName:"Português"}),(0,r.UN)({localeCode:"ru",strings:{groupButton:"Сгруппировать",ungroupButton:"Разгруппировать",selectButton:"Выбрать",hideColumn:"Скрыть столбец",showColumn:"Показать столбец",makePrivateColumn:"Сделать столбец приватным",makePublicColumn:"Сделать столбец публичным",moveToDetail:"Спрятать в раскрывающуюся секцию",showAsColumn:"Показать как столбец",filterPlaceholder:"Поиск...",removeRows:"Удалить строки",showLabel:"Показать",entriesLabel:"записей",visualizer_text:"Таблица",visualizer_wordcloud:"Облако тэгов",visualizer_histogram:"Гистограмма",visualizer_number:"Среднее значение",visualizer_choices:"Таблица",visualizer_selectBase:"Диаграмма",visualizer_matrix:"Диаграмма",chartType_bar:"Столбчатая диаграмма",chartType_vbar:"Вертикальная столбчатая диаграмма",chartType_stackedbar:"Столбчатая диаграмма с накоплением",chartType_doughnut:"Кольцевая диаграмма",chartType_pie:"Круговая диаграмма",chartType_scatter:"Точечная диаграмма",chartType_gauge:"Измерительная диаграмма",chartType_bullet:"Маркированная диаграмма",chartType_line:"Линия",chartType_radar:"Радар",hideButton:"Скрыть",makePrivateButton:"Сделать приватным",makePublicButton:"Сделать публичным",showButton:"Показать",filter:"Фильтр",resetFilter:"Очистить фильтр",changeLocale:"Сменить язык",clearButton:"Очистить",addElement:"Выберите вопрос...",defaultOrder:"Порядок по умолчанию",ascOrder:"Сортировать по возрастанию",descOrder:"Сортировать по убыванию",showMinorColumns:"Показать второстепенные столбцы",actionsColumn:"Действия",otherCommentTitle:"Другое и комментарии",showPercentages:"Показать проценты",hidePercentages:"Скрыть проценты",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Скачать диаграмму в формате PNG",hideEmptyAnswers:"Скрыть пустые ответы",showEmptyAnswers:"Показать пустые ответы","topNValueText-1":"Все ответы",topNValueText5:"Первые 5 ответов",topNValueText10:"Первые 10 ответов",topNValueText20:"Первые 20 ответов",hideMissingAnswers:"Скрыть отсутствующие ответы",showMissingAnswers:"Показать отсутствующие ответы",missingAnswersLabel:"Отсутствующие ответы",noVisualizerForQuestion:"Этот тип вопроса не поддерживается",noResults:"Результаты отсутствуют",showPerValues:"По значениям",showPerColumns:"По столбцам",answer:"Ответ",correctAnswer:"Правильный ответ: ",percent:"процентов",percentage:"Процент",statistics_chart:"Диаграмма",responses:"ответов",visualizer_nps:"NPS",visualizer_boolean:"Диаграмма",visualizer_options:"Стол",npsScore:"NPS",npsPromoters:"Промоутеров",npsPassives:"Пассивные способности",npsDetractors:"Критики",axisXSelectorTitle:"Категория (ось X):",axisYSelectorTitle:"Легенда (Серия):",axisXAlternativeSelectorTitle:"Сегментов:",axisYAlternativeSelectorTitle:"Группы:",notSelected:"Не выбрано"},nativeName:"Русский"}),(0,r.UN)({localeCode:"nl",strings:{groupButton:"Groeperen op",ungroupButton:"Groepering verwijderen",selectButton:"Selecteer mij",hideColumn:"Kolom verbergen",showColumn:"Toon kolom",makePrivateColumn:"Kolom privé maken",makePublicColumn:"Maak kolom openbaar",moveToDetail:"Ga naar detail",showAsColumn:"Weergeven als kolom",filterPlaceholder:"Zoeken...",removeRows:"Verwijder rijen",showLabel:"Tonen",entriesLabel:"inzendingen",visualizer_text:"Teksten in tabel",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histogram",visualizer_number:"Gemiddeld",visualizer_choices:"Tabel",visualizer_selectBase:"Grafiek",visualizer_matrix:"Zeekaart",chartType_bar:"Bar",chartType_vbar:"Staafdiagram",chartType_stackedbar:"Staafdiagram (gestapeld)",chartType_doughnut:"Donut",chartType_pie:"Cirkeldiagram",chartType_scatter:"Spreidingsdiagram",chartType_gauge:"Meterdiagram",chartType_bullet:"Kogelgrafiek",chartType_line:"Lijn",chartType_radar:"Radar",hideButton:"Verbergen",makePrivateButton:"Maak prive",makePublicButton:"Openbaar maken",showButton:"Tonen",filter:"Filter",resetFilter:"Filter resetten",changeLocale:"Wijzig de landinstelling",clearButton:"Wissen",addElement:"Kies een vraag om weer te geven ...",defaultOrder:"Standaardvolgorde",ascOrder:"Oplopend",descOrder:"Aflopend",showMinorColumns:"Toon kleine kolommen",actionsColumn:"Acties",otherCommentTitle:"Andere items en opmerkingen",showPercentages:"Percentages weergeven",hidePercentages:"Verberg percentages",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Download plot als PNG",hideEmptyAnswers:"Verberg lege antwoorden",showEmptyAnswers:"Toon lege antwoorden","topNValueText-1":"Alle antwoorden",topNValueText5:"Top 5 antwoorden",topNValueText10:"Top 10 antwoorden",topNValueText20:"Top 20 antwoorden",hideMissingAnswers:"Ontbrekende antwoorden verbergen",showMissingAnswers:"Ontbrekende antwoorden weergeven",missingAnswersLabel:"Ontbrekende antwoorden",noVisualizerForQuestion:"Dit vraagtype is nog niet gevisualiseerd",noResults:"Er zijn nog geen resultaten",showPerValues:"Per waarden",showPerColumns:"Per Kolommen",answer:"Antwoorden",correctAnswer:"Goed antwoord: ",percent:"Procent",percentage:"Percentage",statistics_chart:"Zeekaart",responses:"Reacties",visualizer_nps:"NPS",visualizer_boolean:"Zeekaart",visualizer_options:"Tafel",npsScore:"NPS",npsPromoters:"Initiatiefnemers",npsPassives:"Passief personeel",npsDetractors:"Tegenstanders",axisXSelectorTitle:"Categorie (X-as):",axisYSelectorTitle:"Legende (serie):",axisXAlternativeSelectorTitle:"Segmenten:",axisYAlternativeSelectorTitle:"Groepen:",notSelected:"Niet geselecteerd"},nativeName:"Nederlands"}),(0,r.UN)({localeCode:"es",strings:{groupButton:"Grupo Por Mí",ungroupButton:"Desagrupar por mí",selectButton:"Seleccionarme",hideColumn:"Ocultar columna",showColumn:"Mostrar columna",makePrivateColumn:"Hacer que la columna sea privada",makePublicColumn:"Hacer pública la columna",moveToDetail:"Mover al detalle",showAsColumn:"Mostrar como columna",filterPlaceholder:"Buscar ...",removeRows:"Eliminar filas",showLabel:"Mostrar",entriesLabel:"Entradas",visualizer_text:"Textos en tabla",visualizer_wordcloud:"Wordcloud",visualizer_histogram:"Histograma",visualizer_number:"Promedio",visualizer_choices:"Mesa",visualizer_selectBase:"Gráfico",visualizer_matrix:"Gráfico",chartType_bar:"Barra",chartType_vbar:"Barra vertical",chartType_stackedbar:"Barra apilada",chartType_doughnut:"Donut",chartType_pie:"Pie",chartType_scatter:"Dispersión",chartType_gauge:"Gauge",chartType_bullet:"Bullet",chartType_line:"Línea",chartType_radar:"Radar",hideButton:"Ocultar",makePrivateButton:"Hacer privado",makePublicButton:"Hacer público",showButton:"Mostrar",filter:"Filtro",resetFilter:"Restablecer filtro",changeLocale:"Cambiar configuración regional",clearButton:"Borrar",addElement:"Elija la pregunta para mostrar ...",defaultOrder:"Orden predeterminado",ascOrder:"Ascendente",descOrder:"Descendente",showMinorColumns:"Mostrar columnas secundarias",actionsColumn:"Acciones",otherCommentTitle:"Otros elementos y comentarios",showPercentages:"Mostrar porcentajes",hidePercentages:"Ocultar porcentajes",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Descargar el gráfico como png",hideEmptyAnswers:"Ocultar respuestas vacías",showEmptyAnswers:"Mostrar respuestas vacías","topNValueText-1":"Todas las respuestas",topNValueText5:"Las 5 respuestas principales",topNValueText10:"Las 10 respuestas principales",topNValueText20:"20 respuestas principales",hideMissingAnswers:"Ocultar las respuestas que faltan",showMissingAnswers:"Mostrar las respuestas que faltan",missingAnswersLabel:"Respuestas faltantes",noVisualizerForQuestion:"Este tipo de pregunta aún no se visualiza",noResults:"Aún no hay resultados",showPerValues:"Por valores",showPerColumns:"Por columnas",answer:"Respuesta",correctAnswer:"Respuesta correcta: ",percent:"Por ciento",percentage:"Porcentaje",statistics_chart:"Gráfico",responses:"Respuestas",visualizer_nps:"NPS",visualizer_boolean:"Gráfico",visualizer_options:"Mesa",npsScore:"NPS",npsPromoters:"Promotores",npsPassives:"Pasivos",npsDetractors:"Detractores",axisXSelectorTitle:"Categoría (eje X):",axisYSelectorTitle:"Leyenda (Serie):",axisXAlternativeSelectorTitle:"Segmentos:",axisYAlternativeSelectorTitle:"Grupos:",notSelected:"No seleccionado"},nativeName:"Español"}),(0,r.UN)({localeCode:"it",strings:{groupButton:"Raggruppa",ungroupButton:"Dividi",selectButton:"Selezionami",hideColumn:"Nascondi colonna",showColumn:"Mostra colonna",makePrivateColumn:"Rendi la colonna privata",makePublicColumn:"Rendi la colonna pubblica",moveToDetail:"Sposta in Dettaglio",showAsColumn:"Mostra come Colonna",filterPlaceholder:"Cerca...",removeRows:"Rimuovi righe",showLabel:"Mostra",entriesLabel:"voci",visualizer_text:"Parole in tabella",visualizer_wordcloud:"Nuvola di parole",visualizer_histogram:"Istogramma",visualizer_number:"Media",visualizer_choices:"Tabella",visualizer_selectBase:"Grafico",visualizer_matrix:"Tabella",chartType_bar:"Bar",chartType_vbar:"Grafico a barre verticali",chartType_stackedbar:"Grafico a barre sovrapposte",chartType_doughnut:"Grafico a ciambella",chartType_pie:"Grafico a torta",chartType_scatter:"Grafico a dispersione",chartType_gauge:"Grafico Gauge",chartType_bullet:"Punto",chartType_line:"Linea",chartType_radar:"Radar",hideButton:"Nascondi",makePrivateButton:"Rendi privato",makePublicButton:"Rendi pubblico",showButton:"Mostra",filter:"Filtro",resetFilter:"Cancella filtro",changeLocale:"Cambia lingua",clearButton:"Cancella",addElement:"Scegli la domanda da mostrare...",defaultOrder:"Ordine di Default",ascOrder:"Ascendente",descOrder:"Discendente",showMinorColumns:"Mostra colonne secondarie",actionsColumn:"Azioni",otherCommentTitle:"Altri punti e commenti",showPercentages:"Mostra percentuali",hidePercentages:"Nascondi percentuali",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Scarica il grafico in formato png",hideEmptyAnswers:"Nascondi risposte vuote",showEmptyAnswers:"Mostra risposte vuote","topNValueText-1":"Tutte le risposte",topNValueText5:"Top 5 risposte",topNValueText10:"Top 10 risposte",topNValueText20:"Top 20 risposte",hideMissingAnswers:"Nascondi le risposte mancanti",showMissingAnswers:"Mostra le risposte mancanti",missingAnswersLabel:"Risposte mancanti",noVisualizerForQuestion:"Questo tipo di domanda non è ancora stato visualizzato",noResults:"Non ci sono ancora risultati",showPerValues:"Per Valori",showPerColumns:"Per Colonne",answer:"Risposta",correctAnswer:"Risposta esatta: ",percent:"Percentuale",percentage:"Percentuale",statistics_chart:"Tabella",responses:"Risposte",visualizer_nps:"Rete nazionale di dati",visualizer_boolean:"Tabella",visualizer_options:"Tavolo",npsScore:"Rete nazionale di dati",npsPromoters:"Promotori",npsPassives:"Passivi",npsDetractors:"Detrattori",axisXSelectorTitle:"Categoria (asse X):",axisYSelectorTitle:"Leggenda (serie):",axisXAlternativeSelectorTitle:"Segmenti:",axisYAlternativeSelectorTitle:"Gruppi:",notSelected:"Non selezionato"},nativeName:"Italiano"}),(0,r.UN)({localeCode:"ar",strings:{groupButton:"زرار المجموعة",ungroupButton:"تم التحديث من خلالى",selectButton:"اختر",hideColumn:"اخفاء العمود",showColumn:"اظهار",makePrivateColumn:"أجعل العمود خاص",makePublicColumn:"أجعل العمود عام",moveToDetail:"انتقل إلى التفاصيل",showAsColumn:"إظهار كعمود",filterPlaceholder:"بحث...",removeRows:"حذف",showLabel:"اظهار",entriesLabel:"مدخلات",visualizer_text:"جداول",visualizer_wordcloud:"كلمات",visualizer_histogram:"الرسم البياني",visualizer_number:"متوسط",visualizer_choices:"جدول",visualizer_selectBase:"رسم بياني",visualizer_matrix:"جدول",chartType_bar:"بار",chartType_vbar:"شريط عمودي",chartType_stackedbar:"شريط مكدس",chartType_doughnut:"مخطط حلقي",chartType_pie:"مخطط دائري",chartType_scatter:"مخطط التشتت",chartType_gauge:"مخطط القياس",chartType_bullet:"مخطط نقطي",chartType_line:"سطر",chartType_radar:"رادار",hideButton:"اخفاء",makePrivateButton:"أجعل خاص",makePublicButton:"أجعل عام",showButton:"اظهار",filter:"ترشح",resetFilter:"إعادة تعيين",changeLocale:"تغيير اللغة",clearButton:"مسح",addElement:"اختر سؤالاً للعرض ...",defaultOrder:"الترتيب الافتراضي",ascOrder:"تصاعدى",descOrder:"تنازلى",showMinorColumns:"إظهار الأعمدة الثانوية",actionsColumn:"الاجراءات",otherCommentTitle:"بنود وتعليقات أخرى",showPercentages:"عرض النسب المئوية",hidePercentages:"إخفاء النسب",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"تنزيل بصيغة png",hideEmptyAnswers:"إخفاء الإجابات الفارغة",showEmptyAnswers:"إظهار الإجابات الفارغة","topNValueText-1":"جميع الإجابات",topNValueText5:"أهم 5 إجابات",topNValueText10:"أفضل 10 إجابات",topNValueText20:"أفضل 20 إجابة",hideMissingAnswers:"إخفاء الإجابات المفقودة",showMissingAnswers:"عرض الإجابات المفقودة",missingAnswersLabel:"أجوبة مفقودة",noVisualizerForQuestion:"لم يتم العرض بعد",noResults:"لا يوجد نتائج للعرض",showPerValues:"لكل القيم",showPerColumns:"لكل الأعمدة",answer:"إجب",correctAnswer:"الاجابة الصحيحة: ",percent:"النسبه المئويه",percentage:"النسبه المئويه",statistics_chart:"جدول",responses:"الاستجابات",visualizer_nps:"NPS",visualizer_boolean:"جدول",visualizer_options:"جدول",npsScore:"NPS",npsPromoters:"المروجين",npsPassives:"سلبيات",npsDetractors:"المنتقدين",axisXSelectorTitle:"الفئة (المحور X):",axisYSelectorTitle:"أسطورة (سلسلة):",axisXAlternativeSelectorTitle:"قطاعات:",axisYAlternativeSelectorTitle:"المجموعات:",notSelected:"غير محدد"},nativeName:"العربية"}),(0,r.UN)({localeCode:"ja",strings:{groupButton:"グループ化",ungroupButton:"グループ解除",selectButton:"選択",hideColumn:"列を非表示",showColumn:"列を表示",makePrivateColumn:"列を非公開にする",makePublicColumn:"列を公開する",moveToDetail:"詳細に移動",showAsColumn:"列として表示",filterPlaceholder:"検索...",removeRows:"行を削除",showLabel:"表示",entriesLabel:"件",visualizer_text:"テキスト",visualizer_wordcloud:"ワードクラウド",visualizer_histogram:"ヒストグラム",visualizer_number:"平均",visualizer_choices:"テーブル",visualizer_selectBase:"チャート",visualizer_matrix:"チャート",chartType_bar:"棒グラフ",chartType_vbar:"縦棒グラフ",chartType_stackedbar:"積み上げ棒グラフ",chartType_doughnut:"ドーナツチャート",chartType_pie:"円グラフ",chartType_scatter:"散布図",chartType_gauge:"ゲージ",chartType_bullet:"バレット",chartType_line:"線",chartType_radar:"レーダー",hideButton:"非表示",makePrivateButton:"非公開にする",makePublicButton:"公開する",showButton:"表示",filter:"フィルター",resetFilter:"フィルターをリセット",changeLocale:"言語を変更",clearButton:"クリア",addElement:"表示する質問を選択...",defaultOrder:"デフォルト順",ascOrder:"昇順",descOrder:"降順",showMinorColumns:"マイナー列を表示",actionsColumn:"アクション",otherCommentTitle:"その他のアイテムとコメント",showPercentages:"パーセンテージを表示",hidePercentages:"パーセンテージを非表示",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"プロットをPNGファイルとして保存",hideEmptyAnswers:"空の回答を非表示",showEmptyAnswers:"空の回答を表示","topNValueText-1":"すべての回答",topNValueText5:"上位5つの回答",topNValueText10:"上位10の回答",topNValueText20:"上位20の回答",hideMissingAnswers:"欠損値を非表示",showMissingAnswers:"欠損値を表示",missingAnswersLabel:"欠損値",noVisualizerForQuestion:"この質問タイプはまだ視覚化されていません",noResults:"まだ結果がありません",showPerValues:"値ごとに表示",showPerColumns:"列ごとに表示",answer:"回答",correctAnswer:"正解: ",percent:"パーセント",percentage:"百分率",statistics_chart:"チャート",responses:"回答数",visualizer_nps:"NPSの",visualizer_boolean:"チャート",visualizer_options:"テーブル",npsScore:"NPSの",npsPromoters:"プロモーター",npsPassives:"パッシブ",npsDetractors:"中傷",axisXSelectorTitle:"カテゴリ(X軸):",axisYSelectorTitle:"凡例(シリーズ):",axisXAlternativeSelectorTitle:"セグメント:",axisYAlternativeSelectorTitle:"グループ:",notSelected:"選択されていない"},nativeName:"日本語"}),(0,r.UN)({localeCode:"pl",strings:{groupButton:"Grupuj według mnie",ungroupButton:"Rozgrupuj według mnie",selectButton:"Wybierz",hideColumn:"Ukryj kolumnę",showColumn:"Pokaż kolumnę",makePrivateColumn:"Uczyń kolumnę prywatną",makePublicColumn:"Uczyń kolumnę publiczną",moveToDetail:"Przenieś do szczegółów",showAsColumn:"Pokaż jako kolumnę",filterPlaceholder:"Szukaj...",removeRows:"Usuń wiersze",showLabel:"Pokaż",entriesLabel:"wejścia",visualizer_text:"Teksty w tabeli",visualizer_wordcloud:"Chmura słów",visualizer_histogram:"Histogram",visualizer_number:"Średnia",visualizer_choices:"Tabela",visualizer_selectBase:"Wykres",visualizer_matrix:"Wykres",chartType_bar:"Słupkowy",chartType_vbar:"Słupkowy pionowy",chartType_stackedbar:"Słupkowy skumulowany",chartType_doughnut:"Oponka",chartType_pie:"Tarta",chartType_scatter:"Rozrzut",chartType_gauge:"Skala",chartType_bullet:"Pocisk",chartType_line:"Linia",chartType_radar:"Radar",hideButton:"Ukryj",makePrivateButton:"Uczyń prywatnym",makePublicButton:"Uczyń publicznym",showButton:"Pokaż",filter:"Filtruj",resetFilter:"Resetuj filtr",changeLocale:"Zmień lokalizację",clearButton:"Wyczyść",addElement:"Wybierz pytanie do pokazania...",defaultOrder:"Domyślne sortowanie",ascOrder:"Rosnąco",descOrder:"Malejąco",showMinorColumns:"Pokaż mniejsze kolumny",actionsColumn:"Akcje",otherCommentTitle:"Inne elementy i komentarze",showPercentages:"Pokaż procenty",hidePercentages:"Ukryj procenty",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Pobierz diagram jako PNG",hideEmptyAnswers:"Ukryj puste odpowiedzi",showEmptyAnswers:"Pokaż puste odpowiedzi","topNValueText-1":"Wszystkie odpowiedzi",topNValueText5:"Pierwsze 5 odpowiedzi",topNValueText10:"Pierwsze 10 odpowiedzi",topNValueText20:"Pierwsze 20 odpowiedzi",hideMissingAnswers:"Ukryj nieodpowiedziane pytania",showMissingAnswers:"Pokaż nieodpowiedziane pytania",missingAnswersLabel:"Nieodpowiedziane pytania",noVisualizerForQuestion:"Ten typ pytania nie został jeszcze zwizualizowany",noResults:"Nie ma jeszcze wyników",showPerValues:"Według wartości",showPerColumns:"Według kolumn",answer:"Odpowiedź",correctAnswer:"Odpowiedź poprawna: ",percent:"Procent",percentage:"Procent",statistics_chart:"Wykres",responses:"Odpowiedzi",visualizer_nps:"Wskaźnik NPS",visualizer_boolean:"Wykres",visualizer_options:"Stół",npsScore:"Wskaźnik NPS",npsPromoters:"Promotorów",npsPassives:"Passives",npsDetractors:"Przeciwników",axisXSelectorTitle:"Kategoria (oś X):",axisYSelectorTitle:"Legenda (seria):",axisXAlternativeSelectorTitle:"Segmenty:",axisYAlternativeSelectorTitle:"Grupy:",notSelected:"Nie wybrano"},nativeName:"Polski"}),(0,r.UN)({localeCode:"fi",strings:{groupButton:"Erottele minulla",ungroupButton:"Poista erottele minulla",selectButton:"Valitse minut",hideColumn:"Piilota sarake",showColumn:"Näytä sarake",makePrivateColumn:"Merkitse sarake yksityiseksi",makePublicColumn:"Merkitse sarake julkiseksi",moveToDetail:"Siirrä yksityiskohtiin",showAsColumn:"Näytä sarakkeena",filterPlaceholder:"Etsi...",removeRows:"Poista rivejä",showLabel:"Näytä",entriesLabel:"vastauksia",visualizer_text:"Tekstitaulukko",visualizer_wordcloud:"Sanapilvi",visualizer_histogram:"Histogrammi",visualizer_number:"Keskiarvo",visualizer_choices:"Taulukko",visualizer_selectBase:"Kuvaaja",visualizer_matrix:"Kuvaaja",chartType_bar:"Pylväs",chartType_vbar:"Vaakapyöväs",chartType_stackedbar:"Pinottu pylväs",chartType_doughnut:"Donitsi",chartType_pie:"Piirakka",chartType_scatter:"Hajonta",chartType_gauge:"Mittari",chartType_bullet:"Luoti",chartType_line:"Viiva",chartType_radar:"Tutka",hideButton:"Piilota",makePrivateButton:"Merkise yksityiseksi",makePublicButton:"Merkitse julkiseksi",showButton:"Näytä",filter:"Rajaa",resetFilter:"Nollaa Rajaus",changeLocale:"Vaihda kieli",clearButton:"Nollaa",addElement:"Valitse näytettävä kysymys...",defaultOrder:"Oletusjärjestys",ascOrder:"Nouseva",descOrder:"Laskeva",showMinorColumns:"Näytä alasarakkeet",actionsColumn:"Toimet",otherCommentTitle:"Muut asiat ja kommentit",showPercentages:"Näytä prosentit",hidePercentages:"Piilota prosentit",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Lataa kuvaaja PNG kuvana",hideEmptyAnswers:"Piilota tyhjät vastaukset",showEmptyAnswers:"Näytä tyhjät vastaukset","topNValueText-1":"Kaikki vastaukset",topNValueText5:"Top 5 vastaukset",topNValueText10:"Top 10 vastaukset",topNValueText20:"Top 20 vastaukset",hideMissingAnswers:"Piilota puuttuvat vastaukset",showMissingAnswers:"Näytä puuttuvat vastaukset",missingAnswersLabel:"Puuttuvat vastaukset",noVisualizerForQuestion:"Tätä kysymystyyppiä ei voida visualisoida.",noResults:"Ei vielä tuloksia",showPerValues:"Näytä arvottain",showPerColumns:"Näytä sarakkeittain",answer:"Vastaus",correctAnswer:"Oikea vastaus: ",percent:"Prosentti",percentage:"Prosenttiyksikkö",statistics_chart:"Kuvaaja",responses:"Vastaukset",visualizer_nps:"NPS",visualizer_boolean:"Kaavio",visualizer_options:"Pöytä",npsScore:"NPS",npsPromoters:"Suosittelija",npsPassives:"Passiivinen",npsDetractors:"Arvostelija",axisXSelectorTitle:"Luokka (X-akseli):",axisYSelectorTitle:"Legenda (sarja):",axisXAlternativeSelectorTitle:"Segmentit:",axisYAlternativeSelectorTitle:"Ryhmät:",notSelected:"Ei valittu"},nativeName:"Suomi"}),(0,r.UN)({localeCode:"sv",strings:{groupButton:"Gruppera av mig",ungroupButton:"Avgruppera av mig",selectButton:"Välj mig",hideColumn:"Göm kolumn",showColumn:"Visa kolumn",makePrivateColumn:"Gör kolumn privat",makePublicColumn:"Gör kolumn offentlig",moveToDetail:"Flytta till detalj",showAsColumn:"Visa som kolumn",filterPlaceholder:"Sök...",removeRows:"Ta bort rader",showLabel:"Visa",entriesLabel:"poster",visualizer_text:"Texter i tabell",visualizer_wordcloud:"Ordmoln",visualizer_histogram:"Histogram",visualizer_number:"Genomsnitt",visualizer_choices:"Tabell",visualizer_selectBase:"Diagram",visualizer_matrix:"Diagram",chartType_bar:"Stapel",chartType_vbar:"Vertikal stapel",chartType_stackedbar:"Staplad stapel",chartType_doughnut:"Ring",chartType_pie:"Cirkel",chartType_scatter:"Punkt",chartType_gauge:"Mätare",chartType_bullet:"Bullet",chartType_line:"Linje",chartType_radar:"Radar",hideButton:"Göm",makePrivateButton:"Gör privat",makePublicButton:"Gör offentlig",showButton:"Visa",filter:"Filter",resetFilter:"Återställ filter",changeLocale:"Ändra språk",clearButton:"Rensa",addElement:"Välj fråga att visa...",defaultOrder:"Standard ordning",ascOrder:"Stigande",descOrder:"Fallande",showMinorColumns:"Visa mindre kolumner",actionsColumn:"Åtgärder",otherCommentTitle:"Övriga objekt och kommentarer",showPercentages:"Visa procent",hidePercentages:"Göm procent",pdfDownloadCaption:"PDF",xlsxDownloadCaption:"Excel",csvDownloadCaption:"CSV",saveDiagramAsPNG:"Ladda ner diagram som PNG-fil",hideEmptyAnswers:"Göm tomma svar",showEmptyAnswers:"Visa tomma svar","topNValueText-1":"Alla svar",topNValueText5:"Topp 5 svar",topNValueText10:"Topp 10 svar",topNValueText20:"Topp 20 svar",hideMissingAnswers:"Göm saknade svar",showMissingAnswers:"Visa saknade svar",missingAnswersLabel:"Saknade svar",noVisualizerForQuestion:"Detta frågetyp är inte visualiserad ännu",noResults:"Det finns inga resultat ännu",showPerValues:"Per värden",showPerColumns:"Per kolumner",answer:"Svar",correctAnswer:"Rätt svar: ",percent:"Procent",percentage:"Procent",statistics_chart:"Diagram",responses:"Svar",visualizer_nps:"NPS",visualizer_boolean:"Diagram",visualizer_options:"Bord",npsScore:"NPS",npsPromoters:"Promotorer",npsPassives:"Passiva",npsDetractors:"Kritiker",axisXSelectorTitle:"X-axel:",axisYSelectorTitle:"Y-axel:",axisXAlternativeSelectorTitle:"Segment:",axisYAlternativeSelectorTitle:"Grupper:",notSelected:"Inte valt"},nativeName:"Svenska"});var s=i(555),n=i(818),o=i(183),a=i(143),l=i(928),u=i(226),h=i(931),c=i(267),d=i(557),p=i(87),g=i(156),f=i(70),m=function(e){function t(t,i,s,n){var o=e.call(this,i,s,n,"alternative")||this;if(o.visualizers=t,o.visualizersWithSelection=[],o.onAfterVisualizerRenderCallback=function(){o.afterRender(o.contentContainer)},o.onVisualizerStateChangedCallback=function(e,t){o.stateChanged("visualizer",t)},o.onVisualizerChanged=new g.Event,o.showToolbar=!1,o.loadingData=!1,!t||t.length<2)throw new Error("VisualizerArrayWrapper works with visualizers collection only.");return o.visualizers.forEach((function(e){e.onUpdate=function(){return o.invokeOnUpdate()},e.onGetToolbarItemCreators=function(){return o.toolbarItemCreators},e.supportSelection&&(o._supportSelection=!0,o.visualizersWithSelection.push(e))})),!1!==o.options.allowChangeVisualizerType&&o.registerToolbarItem("changeVisualizer",(function(){return o.visualizerSelector=f.gf.createSelector(o.visualizers.map((function(e){return{value:e.type,text:r.qG.getString("visualizer_"+e.type)}})),(function(e){return o.visualizer.type===e.value}),(function(e){return o.setVisualizer(e.target.value)}))}),0),o.visualizer=t[0],o.visualizer.onAfterRender.add(o.onAfterVisualizerRenderCallback),o.visualizer.onStateChanged.add(o.onVisualizerStateChangedCallback),o}return(0,p.C6)(t,e),t.prototype.updateVisualizerSelector=function(){this.visualizerSelector&&(this.visualizerSelector.getElementsByTagName("select")[0].value=this.visualizer.type)},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getVisualizers=function(){return this.visualizers},t.prototype.setVisualizer=function(e,t){void 0===t&&(t=!1);var i=this.visualizers.filter((function(t){return t.type===e}))[0];if(i&&i!==this.visualizer){var r=void 0;this.visualizer&&(r=this.visualizer.isFooterCollapsed,this.visualizer.onStateChanged.remove(this.onVisualizerStateChangedCallback),this.visualizer.onAfterRender.remove(this.onAfterVisualizerRenderCallback),this.visualizer.destroy()),this.visualizer=i,this.visualizer.isFooterCollapsed=r,this.refresh(),this.visualizer.onAfterRender.add(this.onAfterVisualizerRenderCallback),this.visualizer.onStateChanged.add(this.onVisualizerStateChangedCallback),t||(this.onVisualizerChanged.fire(this,{visualizer:this.visualizer}),this.stateChanged("visualizer",e)),this.updateVisualizerSelector()}},t.prototype.getVisualizer=function(){return this.visualizer},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this.visualizers.forEach((function(e){e.updateData(t)}))},Object.defineProperty(t.prototype,"onDataItemSelected",{set:function(e){this.visualizersWithSelection.forEach((function(t){t.onDataItemSelected=e}))},enumerable:!1,configurable:!0}),t.prototype.setSelection=function(e){this.visualizersWithSelection.forEach((function(t){t.setSelection(e)}))},Object.defineProperty(t.prototype,"selection",{get:function(){return this.visualizer.selection||this.selectedItem},enumerable:!1,configurable:!0}),t.prototype.renderContent=function(e){this.visualizerContainer=e,this.visualizer.render(this.visualizerContainer)},t.prototype.setBackgroundColorCore=function(t){e.prototype.setBackgroundColorCore.call(this,t),this.visualizers.forEach((function(e){return e.backgroundColor=t}))},t.prototype.getState=function(){var e=this.visualizer.getState(),t={visualizer:this.visualizer.type};return Object.keys(e).length>0&&(t.state=e),t},t.prototype.setState=function(e){e.visualizer&&this.setVisualizer(e.visualizer,!0),e.state&&this.visualizer.setState(e.state)},t.prototype.resetState=function(){e.prototype.resetState.call(this),this.visualizers.forEach((function(e){return e.resetState()})),this.setVisualizer(this.visualizers[0].type,!0)},t.prototype.getValues=function(){return this.visualizer.getValues()},t.prototype.getLabels=function(){return this.visualizer.getLabels()},t.prototype.getCalculatedValues=function(){return this.visualizer.getCalculatedValues()},t.prototype.destroy=function(){var t=this;this.visualizers.forEach((function(e){e.onAfterRender.remove(t.onAfterVisualizerRenderCallback),e.onStateChanged.remove(t.onVisualizerStateChangedCallback),e.onUpdate=void 0})),this.visualizer.destroy(),e.prototype.destroy.call(this)},t}(c.w);d.g.registerAltVisualizerSelector(m);var v=function(){function e(e){this._htmlElement=void 0,this.text=void 0,this._htmlElement=f.gf.createElement("div","sa-question__filter"),this.text=f.gf.createElement("span","sa-question__filter-text"),this._htmlElement.appendChild(this.text);var t=f.gf.createButton((function(){e.setSelection(void 0)}),r.qG.getString("clearButton"));this._htmlElement.appendChild(t)}return Object.defineProperty(e.prototype,"htmlElement",{get:function(){return this._htmlElement},enumerable:!1,configurable:!0}),e.prototype.update=function(e){void 0!==e&&void 0!==e.value?(this._htmlElement.style.display="inline-flex",this.text.innerText=r.qG.getString("filter")+": ["+e.text+"]"):(this._htmlElement.style.display="none",this.text.innerText="")},e}(),_=i(820),y=i.n(_),b=function(e){function t(t,i,r){void 0===r&&(r=!0);var s=e.call(this,t)||this;return s._selector=i,s.dragEnabled=r,s._muuri=void 0,s._layoutingTimer=void 0,s}return(0,p.C6)(t,e),t.prototype.startCore=function(e){var t=this;this._muuri=new(y())(e,{dragStartPredicate:{handle:".sa-question__title--draggable"},items:this._selector,dragEnabled:this.dragEnabled}),this._muuri.on("dragReleaseEnd",(function(e){var i=e.getGrid().getItems().map((function(e){return e.getElement().dataset.question}));t.onMoveCallback&&t.onMoveCallback(i)}))},t.prototype.stopCore=function(){this._muuri.off("dragReleaseEnd"),this._muuri.destroy(),this._muuri=void 0},t.prototype.updateCore=function(){var e=this;this._muuri&&(void 0!==this._layoutingTimer&&clearTimeout(this._layoutingTimer),this._layoutingTimer=setTimeout((function(){e._layoutingTimer=void 0,e._muuri&&(e._muuri.refreshItems(),e._muuri.layout())}),10))},t.prototype.add=function(e,t){this._allowed&&this._muuri.add(e,t)},t.prototype.remove=function(e,t){this._allowed&&this._muuri.remove(e,t)},t}(function(){function e(e){this._allowed=e}return e.prototype.startCore=function(e){},e.prototype.stopCore=function(){},e.prototype.updateCore=function(){},Object.defineProperty(e.prototype,"allowed",{get:function(){return this._allowed},enumerable:!1,configurable:!0}),e.prototype.start=function(e){this._allowed&&this.startCore(e)},e.prototype.stop=function(){this._allowed&&this.stopCore()},e.prototype.update=function(){this._allowed&&this.updateCore()},e.prototype.add=function(e,t){},e.prototype.remove=function(e,t){},e.prototype.destroy=function(){this.stop()},e}());const w=function(e){var t={};return e.keys().forEach((function(i){t[i.substring(2,i.length-4).toLowerCase()]=e(i)})),t}(i(288));var C=Object.keys(w).map((function(e){return function(e,t){var i=(t=t.trim()).toLowerCase();if("<svg "===i.substring(0,5)&&"</svg>"===i.substring(i.length-6,i.length))return'<symbol id="sa-svg-'+e+'" '+t.substring(5,i.length-6)+"</symbol>"}(e,w[e])})),T='<svg style="display:none;">'.concat(C,"<svg>"),S="sa-question",x="sa-question-layouted";if(document){var P=document.createElement("div");P.style.display="none",P.innerHTML=T,document.head.appendChild(P)}var A=function(e){function t(t,i,s,n,a){void 0===s&&(s={}),void 0===n&&(n=void 0),void 0===a&&(a=!0);var l=e.call(this,null,i,s,"panel")||this;if(l.questions=t,l._elements=n,l.isRoot=a,l.visualizers=[],l.renderedQuestionsCount=0,l.onAfterRenderQuestionCallback=function(e,t){l.renderedQuestionsCount++,l.renderedQuestionsCount==l.questions.length&&(l.renderedQuestionsCount=0,l.layoutEngine.update(),l.afterRender(l.contentContainer))},l.onStateChangedCallback=function(e,t){var i;l.stateChanged(null===(i=e.question)||void 0===i?void 0:i.name,t)},l.onAlternativeVisualizerChanged=new g.Event,l.onAlternativeVisualizerChangedCallback=function(e,t){l.onAlternativeVisualizerChanged.fire(e,t)},l.onVisibleElementsChanged=new g.Event,l.onElementShown=new g.Event,l.onElementHidden=new g.Event,l.onElementMoved=new g.Event,l.loadingData=!1,l._layoutEngine=s.layoutEngine||new b(l.allowDynamicLayout,"."+x,l.allowDragDrop),l._layoutEngine.onMoveCallback=function(e){return l.reorderVisibleElements(e)},l.showToolbar=a,l.options.survey&&(r.qG.currentLocale=l.options.survey.locale),void 0===n&&(l._elements=l.buildElements(t)),l.buildVisualizers(t),l.updateData(l.surveyData),!l.haveCommercialLicense&&l.isRoot&&l.registerToolbarItem("commercialLicense",(function(){return(0,f.Qk)()})),l._supportSelection=!0,!1!==l.supportSelection&&l.registerToolbarItem("resetFilter",(function(){return f.gf.createButton((function(){l.visualizers.forEach((function(e){(e instanceof o.o||e instanceof m)&&e.setSelection(void 0)}))}),r.qG.getString("resetFilter"))}),900),l.registerToolbarItem("addElement",(function(e){if(l.allowHideQuestions){var t=void 0,i=function(i,s){var n=l.hiddenElements,o=f.gf.createSelector([{name:void 0,displayName:r.qG.getString("addElement")}].concat(n).map((function(e){return{value:e.name,text:e.displayName}})),(function(e){return!1}),(function(e){l.showElement(e.target.value)}));t&&e.replaceChild(o,t),t=o,n.length>0?t.style.display=void 0:t&&(t.style.display="none")};return i(),l.onVisibleElementsChanged.add(i),t}})),!l.options.disableLocaleSwitch&&l.locales.length>1){var u=l.locales.map((function(e){return{value:e,text:r.qG.getLocaleName(e)}}));l.registerToolbarItem("changeLocale",(function(){return f.gf.createSelector(u,(function(e){return!!e.value&&(l.locale||g.surveyLocalization.defaultLocale)===e.value}),(function(e){var t=e.target.value;l.locale=t}))}))}return l}return(0,p.C6)(t,e),t.prototype.reorderVisibleElements=function(e){var t=this,i=[];e.forEach((function(e){i.push(t._elements.filter((function(t){return t.name===e}))[0])})),this._elements.forEach((function(t){-1==e.indexOf(t.name)&&i.push(t)})),this._elements=i,this.visibleElementsChanged(void 0,"REORDERED")},t.prototype.onDataChanged=function(){},t.prototype.showElementCore=function(e,t){void 0===t&&(t=-1),e.isVisible=!0;var i=this.renderPanelElement(e,this.contentContainer),r=void 0;t>=0&&(r={index:t}),this.layoutEngine.add([i],r)},t.prototype.showElement=function(e){var t=this.getElement(e),i=this._elements.indexOf(t);this.showElementCore(t,i),this.visibleElementsChanged(t,"ADDED")},t.prototype.hideElementCore=function(e){e.isVisible=!1,e.renderedElement&&(this.layoutEngine.remove([e.renderedElement]),this.contentContainer.removeChild(e.renderedElement),e.renderedElement=void 0)},t.prototype.hideElement=function(e){var t=this.getElement(e);this.hideElementCore(t),this.visibleElementsChanged(t,"REMOVED")},t.prototype.hideAllElements=function(){var e=this,t=[];this._elements.forEach((function(i){i.isVisible&&(e.hideElementCore(i),t.push(i))})),this.visibleElementsChanged(void 0,"REMOVEDALL")},t.prototype.showAllElements=function(){var e=this,t=[];this._elements.forEach((function(i){i.isVisible||(e.showElementCore(i),t.push(i))})),this.visibleElementsChanged(void 0,"ADDEDDALL")},t.prototype.makeElementPrivate=function(e){e.isPublic=!1,this.stateChanged("isPublic",!1),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},t.prototype.makeElementPublic=function(e){e.isPublic=!0,this.stateChanged("isPublic",!0),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},t.prototype.moveVisibleElement=function(e,t){var i,r,s=this.visibleElements[e],n=this.visibleElements[t];i=this._elements.indexOf(s),r=this._elements.indexOf(n),this.moveElement(i,r)},t.prototype.moveElement=function(e,t){var i=this._elements.splice(e,1);this._elements.splice(t,0,i[0]),this.visibleElementsChanged(i[0],"MOVED")},t.prototype.setBackgroundColorCore=function(t){e.prototype.setBackgroundColorCore.call(this,t),this.visualizers.forEach((function(e){return e.backgroundColor=t}))},t.prototype.buildVisualizers=function(e){var t=this;e.forEach((function(e){var i,s=Object.assign({},t.options),n=t.surveyData;if(i=Array.isArray(e)?new(d.g.getPivotVisualizerConstructor())(e,n,s,void 0,!1):t.createVisualizer(e,s,n)){if(t.allowHideQuestions&&i.registerToolbarItem("removeQuestion",(function(){return f.gf.createButton((function(){setTimeout((function(){return t.hideElement(e.name)}),0)}),r.qG.getString("hideButton"))}),1e3),t.allowMakeQuestionsPrivate&&i.registerToolbarItem("makePrivatePublic",(function(){var i=t.getElement(e.name),s=i.isPublic?"first":"second",n=r.qG.getString("makePrivateButton"),o=r.qG.getString("makePublicButton");return f.gf.createSvgToggleButton("makepublic","makeprivate",n,o,(function(e){setTimeout((function(){return t.makeElementPublic(i)}),0)}),(function(e){setTimeout((function(){return t.makeElementPrivate(i)}),0)}),s)})),i.supportSelection){var o=i,a=new v(o);i.registerToolbarItem("questionFilterInfo",(function(){return a.update(o.selection),a.htmlElement}),900),o.onDataItemSelected=function(i,r){a.update({value:i,text:r}),t.setFilter(e.name,i)}}i.onUpdate=function(){return t.layout()},i.onAfterRender.add(t.onAfterRenderQuestionCallback),i.onStateChanged.add(t.onStateChangedCallback),i instanceof m&&i.onVisualizerChanged.add(t.onAlternativeVisualizerChangedCallback),t.visualizers.push(i)}}))},t.prototype.destroyVisualizers=function(){var e=this;this.visualizers.forEach((function(t){t.onUpdate=void 0,t instanceof o.o&&(t.onDataItemSelected=void 0),t instanceof m&&t.onVisualizerChanged.remove(e.onAlternativeVisualizerChangedCallback),t.onStateChanged.remove(e.onStateChangedCallback),t.onAfterRender.remove(e.onAfterRenderQuestionCallback),t.destroy()})),this.visualizers=[]},t.prototype.setLocale=function(t){var i=this;e.prototype.setLocale.call(this,t),(this.questions||[]).forEach((function(e){e=Array.isArray(e)?e[0]:e;var t=i.getElement(e.name);t&&(t.displayName=i.getTitle(e))})),this.visualizers.forEach((function(e){e.options.seriesLabels=i.options.seriesLabels,e.locale=t})),this.stateChanged("locale",t)},Object.defineProperty(t.prototype,"allowDynamicLayout",{get:function(){return void 0===this.options.allowDynamicLayout||!0===this.options.allowDynamicLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDragDrop",{get:function(){return!g.IsTouch&&(void 0===this.options.allowDragDrop||!0===this.options.allowDragDrop)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowHideQuestions",{get:function(){return void 0===this.options.allowHideQuestions||!0===this.options.allowHideQuestions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMakeQuestionsPrivate",{get:function(){return!0===this.options.allowMakeQuestionsPrivate},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layoutEngine",{get:function(){return this._layoutEngine},enumerable:!1,configurable:!0}),t.prototype.buildElements=function(e){var t=this;return(e||[]).map((function(e){return{name:(e=Array.isArray(e)?e[0]:e).name,displayName:t.getTitle(e),isVisible:!0,isPublic:!0}}))},t.prototype.getElements=function(e){var t=[];return(this._elements||[]).forEach((function(i){e&&-1===e.indexOf(i.name)||t.push({name:i.name,displayName:i.displayName,isVisible:i.isVisible,isPublic:i.isPublic})})),t},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this._elements.filter((function(e){return e.isVisible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hiddenElements",{get:function(){return this._elements.filter((function(e){return!e.isVisible}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"publicElements",{get:function(){return this._elements.filter((function(e){return e.isPublic}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"privateElements",{get:function(){return this._elements.filter((function(e){return!e.isPublic}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locales",{get:function(){return this.options.survey?this.options.survey.getUsedLocales():[]},enumerable:!1,configurable:!0}),t.prototype.getElement=function(e){return this._elements.filter((function(t){return t.name===e}))[0]},t.prototype.getVisualizer=function(e){return this.visualizers.filter((function(t){return t.question.name===e}))[0]},t.prototype.visibleElementsChanged=function(e,t){"SHOWN"!==t||this.onElementShown.isEmpty||this.onElementShown.fire(this,{elements:this._elements,element:e}),"REMOVED"!==t||this.onElementHidden.isEmpty||this.onElementHidden.fire(this,{elements:this._elements,element:e}),"MOVED"!==t||this.onElementMoved.isEmpty||this.onElementMoved.fire(this,{elements:this._elements,element:e}),this.onVisibleElementsChanged.isEmpty||this.onVisibleElementsChanged.fire(this,{elements:this._elements,changed:e,reason:t}),this.stateChanged("visibleElements",t),this.layout()},t.prototype.renderPanelElement=function(e,t){var i=this.getVisualizer(e.name);if(i){var r=f.gf.createElement("div");r.dataset.question=e.name,t&&t.appendChild(r);var s=f.gf.createElement("div"),n=f.gf.createElement("h3"),o=f.gf.createElement("div");return n.innerText=e.displayName,r.className=this.allowDynamicLayout?S+" "+x:S,n.className=S+"__title",this.allowDynamicLayout&&this.allowDragDrop&&(n.className=n.className+" "+S+"__title--draggable"),s.className=S+"__content",s.style.backgroundColor=this.backgroundColor,s.appendChild(n),s.appendChild(o),r.appendChild(s),i.render(o),e.renderedElement=r,r}},t.prototype.renderToolbar=function(t){t.className+=" sa-panel__header",e.prototype.renderToolbar.call(this,t)},t.prototype.renderContent=function(e){var t=this;e.className+=" sa-panel__content sa-grid",this.visibleElements.forEach((function(i){t.renderPanelElement(i,e)})),this.layoutEngine.start(e)},t.prototype.destroyContent=function(t){this.layoutEngine.stop(),e.prototype.destroyContent.call(this,t)},t.prototype.refresh=function(){this.toolbarContainer&&(this.destroyToolbar(this.toolbarContainer),this.renderToolbar(this.toolbarContainer)),e.prototype.refresh.call(this)},t.prototype.layout=function(){this.layoutEngine.update()},t.prototype.setFilter=function(e,t){this.dataProvider.setFilter(e,t)},t.prototype.getState=function(){var e=this;return{locale:this.locale,elements:[].concat(this._elements.map((function(t){var i=e.getVisualizer(t.name),r=(0,p.Cl)((0,p.Cl)({},t),null==i?void 0:i.getState());return void 0!==r.renderedElement&&delete r.renderedElement,r})))}},Object.defineProperty(t.prototype,"state",{get:function(){return this.getState()},set:function(e){var t=this;if(e){this._settingState=!0;try{if(Array.isArray(e.elements)){var i=this.questions.map((function(e){return Array.isArray(e)?e[0].name:e.name}));this._elements=[].concat(e.elements.filter((function(e){return-1!==i.indexOf(e.name)})))}void 0!==e.locale&&this.setLocale(e.locale),this._elements.forEach((function(e){var i=t.getVisualizer(e.name);void 0!==i&&i.setState(e)}))}finally{this._settingState=!1}this.refresh()}},enumerable:!1,configurable:!0}),t.prototype.resetState=function(){this._settingState=!0,e.prototype.resetState.call(this);try{this.visualizers.forEach((function(e){return e.resetState()})),this.locale=g.surveyLocalization.defaultLocale}finally{this._settingState=!1}this.refresh()},Object.defineProperty(t.prototype,"permissions",{get:function(){return this._elements.map((function(e){return{name:e.name,isPublic:e.isPublic}}))},set:function(e){var t=this._elements.map((function(t){return e.forEach((function(e){e.name===t.name&&(t.isPublic=e.isPublic)})),(0,p.Cl)({},t)}));this._elements=[].concat(t),this.refresh(),this.onPermissionsChangedCallback&&this.onPermissionsChangedCallback(this)},enumerable:!1,configurable:!0}),t.prototype.getCalculatedValuesCore=function(){return[]},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyVisualizers()},t}(c.w),k=function(e){function t(t,i,r,s){void 0===r&&(r={});var n=e.call(this,t,i,r,s||"panelDynamic")||this;return n._panelVisualizer=void 0,n.onAfterRenderPanelCallback=function(){n.afterRender(n.contentContainer)},n.loadingData=!1,(r=Object.assign({},r)).allowHideQuestions=!1,r.allowDynamicLayout=!1,r.dataProvider=void 0,r.dataPath=n.dataNames[0],n._panelVisualizer=new A(n.getQuestions(),[],r,void 0,!1),n._panelVisualizer.onAfterRender.add(n.onAfterRenderPanelCallback),n.updateData(i),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"contentVisualizer",{get:function(){return this._panelVisualizer},enumerable:!1,configurable:!0}),t.prototype.setLocale=function(t){e.prototype.setLocale.call(this,t),this._panelVisualizer.locale=t},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this._panelVisualizer.updateData(t)},t.prototype.onDataChanged=function(){this._panelVisualizer.updateData(this.dataProvider.filteredData),e.prototype.onDataChanged.call(this)},t.prototype.getQuestions=function(){return this.question.template.questions},t.prototype.destroyContent=function(t){this._panelVisualizer.clear(),e.prototype.destroyContent.call(this,this.contentContainer)},t.prototype.renderContent=function(e){this._panelVisualizer.render(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this._panelVisualizer.onAfterRender.remove(this.onAfterRenderPanelCallback)},t}(c.w);d.g.registerVisualizer("paneldynamic",k);var z=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"matrixDynamic")||this}return(0,p.C6)(t,e),t.prototype.getQuestions=function(){var e=this.question.visibleRows;return 0===e.length?[]:e[0].cells.map((function(e){return e.question}))},t}(k);d.g.registerVisualizer("matrixdynamic",z);var D=function(e){function t(t,i,r,s){void 0===r&&(r={});var n=e.call(this,t,i,r,s||"matrixDropdown")||this;if(n._matrixDropdownVisualizer=void 0,n.onPanelAfterRenderCallback=function(){n.afterRender(n.contentContainer)},n.loadingData=!1,n._childOptions=Object.assign({},r),n._childOptions.disableLocaleSwitch=!0,n._childOptions.dataProvider=void 0,n._childOptions.allowDynamicLayout=!1,n._childOptions.transposeData=!0,n._childOptions.seriesValues=t.rows.map((function(e){return e.value})),n._childOptions.seriesLabels=t.rows.map((function(e){return e.text})),n.canGroupColumns){var o=d.g.getVisualizersByType("matrixdropdown-grouped");n._matrixDropdownVisualizer=new o[0](n.question,[],n._childOptions)}else{var a=n.getQuestions();n._matrixDropdownVisualizer=new A(a,[],n._childOptions,void 0,!1)}return n._matrixDropdownVisualizer.onAfterRender.add(n.onPanelAfterRenderCallback),n.updateData(i),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"canGroupColumns",{get:function(){var e=this,t=this.getQuestions();return 1==this._childOptions.seriesValues.length&&t.every((function(t){return"boolean"!==t.getType()&&function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i].value!==t[i].value||e[i].text!==t[i].text)return!1;return!0}(t.choices,e.question.choices)}))},enumerable:!1,configurable:!0}),t.prototype.setLocale=function(t){e.prototype.setLocale.call(this,t),this._childOptions.seriesLabels=this.question.rows.map((function(e){return e.text})),this._matrixDropdownVisualizer.locale=t},Object.defineProperty(t.prototype,"matrixDropdownVisualizer",{get:function(){return this._matrixDropdownVisualizer},enumerable:!1,configurable:!0}),t.prototype.updateDropdownVisualizerData=function(){var e=this,t=[];this.data.forEach((function(i){var r=i[e.question.name];r&&Object.keys(r).forEach((function(e){var i=Object.assign({},r[e]);i[s.M.seriesMarkerKey]=e,t.push(i)}))})),this._matrixDropdownVisualizer.updateData(t)},t.prototype.updateData=function(t){e.prototype.updateData.call(this,t),this.updateDropdownVisualizerData()},t.prototype.onDataChanged=function(){this.updateDropdownVisualizerData(),e.prototype.onDataChanged.call(this)},t.prototype.getQuestions=function(){var e=this.question;return e.columns.map((function(t){var i=t.templateQuestion;return Array.isArray(i.choices)&&0===i.choices.length&&(i.choices=e.choices),i}))},t.prototype.destroyContent=function(t){this._matrixDropdownVisualizer.clear(),e.prototype.destroyContent.call(this,this.contentContainer)},t.prototype.renderContent=function(e){this._matrixDropdownVisualizer.render(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this._matrixDropdownVisualizer.onAfterRender.remove(this.onPanelAfterRenderCallback)},t}(c.w);d.g.registerVisualizer("matrixdropdown",D);var E=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"composite")||this}return(0,p.C6)(t,e),t.prototype.getQuestions=function(){var e=[];return this.question.contentPanel.addQuestionsToList(e),e},t}(k);d.g.registerVisualizer("composite",E);var V={en:["...","a","about","above","across","after","again","against","all","almost","alone","along","already","also","although","always","among","an","and","another","any","anybody","anyone","anything","anywhere","are","area","areas","around","as","ask","asked","asking","asks","at","away","b","back","backed","backing","backs","be","became","because","become","becomes","been","before","began","behind","being","beings","best","better","between","big","both","but","by","c","came","can","cannot","case","cases","certain","certainly","clear","clearly","come","could","d","did","differ","different","differently","do","does","done","down","down","downed","downing","downs","during","e","each","early","either","end","ended","ending","ends","enough","even","evenly","ever","every","everybody","everyone","everything","everywhere","f","face","faces","fact","facts","far","felt","few","find","finds","first","for","four","from","full","fully","further","furthered","furthering","furthers","g","gave","general","generally","get","gets","give","given","gives","go","going","good","goods","got","great","greater","greatest","group","grouped","grouping","groups","h","had","has","have","having","he","her","here","herself","high","high","high","higher","highest","him","himself","his","how","however","i","if","important","in","interest","interested","interesting","interests","into","is","it","its","itself","j","just","k","keep","keeps","kind","knew","know","known","knows","l","large","largely","last","later","latest","least","less","let","lets","like","likely","long","longer","longest","m","made","make","making","man","many","may","me","member","members","men","might","more","most","mostly","mr","mrs","much","must","my","myself","n","necessary","need","needed","needing","needs","never","new","new","newer","newest","next","no","nobody","non","noone","not","nothing","now","nowhere","number","numbers","o","of","off","often","old","older","oldest","on","once","one","only","open","opened","opening","opens","or","order","ordered","ordering","orders","other","others","our","out","over","p","part","parted","parting","parts","per","perhaps","place","places","point","pointed","pointing","points","possible","present","presented","presenting","presents","problem","problems","put","puts","q","quite","r","rather","really","right","right","room","rooms","s","said","same","saw","say","says","second","seconds","see","seem","seemed","seeming","seems","sees","several","shall","she","should","show","showed","showing","shows","side","sides","since","small","smaller","smallest","so","some","somebody","someone","something","somewhere","state","states","still","still","such","sure","t","take","taken","than","that","the","their","them","then","there","therefore","these","they","thing","things","think","thinks","this","those","though","thought","thoughts","three","through","thus","to","today","together","too","took","toward","turn","turned","turning","turns","two","u","under","until","up","upon","us","use","used","uses","v","very","w","want","wanted","wanting","wants","was","way","ways","we","well","wells","went","were","what","when","where","whether","which","while","who","whole","whose","why","will","with","within","without","work","worked","working","works","would","x","y","year","years","yet","you","young","younger","youngest","your","yours","z"],no:["...","alle","andre","arbeid","at","av","bare","begge","ble","blei","bli","blir","blitt","bort","bruke","både","båe","da","de","deg","dei","deim","deira","deires","dem","den","denne","der","dere","deres","det","dette","di","din","disse","ditt","du","dykk","dykkar","då","eg","ein","eit","eitt","eller","elles","en","ene","eneste","enhver","enn","er","et","ett","etter","folk","for","fordi","forsøke","fra","få","før","før","først","gjorde","gjøre","god","gå","ha","hadde","han","hans","har","hennar","henne","hennes","her","hjå","ho","hoe","honom","hoss","hossen","hun","hva","hvem","hver","hvilke","hvilken","hvis","hvor","hvordan","hvorfor","i","ikke","ikkje","ingen","ingi","inkje","inn","innen","inni","ja","jeg","kan","kom","korleis","korso","kun","kunne","kva","kvar","kvarhelst","kven","kvi","kvifor","lage","lang","lik","like","makt","man","mange","me","med","medan","meg","meget","mellom","men","mens","mer","mest","mi","min","mine","mitt","mot","mye","mykje","må","måte","navn","ned","nei","no","noe","noen","noka","noko","nokon","nokor","nokre","ny","nå","når","og","også","om","opp","oss","over","part","punkt","på","samme","seg","selv","si","sia","sidan","siden","sin","sine","sist","sitt","sjøl","skal","skulle","slik","slutt","so","som","somme","somt","start","stille","så","sånn","tid","til","tilbake","tilstand","um","under","upp","ut","uten","var","vart","varte","ved","verdi","vere","verte","vi","vil","ville","vite","vore","vors","vort","vår","være","vært","vøre","vørt","æ","å"],nl:["de","en","van","ik","te","dat","die","in","een","hij","het","niet","zijn","is","was","op","aan","met","als","voor","had","er","maar","om","hem","dan","zou","of","wat","mijn","men","dit","zo","door","over","ze","zich","bij","ook","tot","je","mij","uit","der","daar","haar","naar","heb","hoe","heeft","hebben","deze","u","want","nog","zal","me","zij","nu","ge","geen","omdat","iets","worden","toch","al","waren","veel","meer","doen","toen","moet","ben","zonder","kan","hun","dus","alles","onder","ja","eens","hier","wie","werd","altijd","doch","wordt","wezen","kunnen","ons","zelf","tegen","na","reeds","wil","kon","niets","uw","iemand","geweest","andere"],es:["...","a","actualmente","adelante","además","afirmó","agregó","ahora","ahí","al","algo","alguna","algunas","alguno","algunos","algún","alrededor","ambos","ampleamos","ante","anterior","antes","apenas","aproximadamente","aquel","aquellas","aquellos","aqui","aquí","arriba","aseguró","así","atras","aunque","ayer","añadió","aún","bajo","bastante","bien","buen","buena","buenas","bueno","buenos","cada","casi","cerca","cierta","ciertas","cierto","ciertos","cinco","comentó","como","con","conocer","conseguimos","conseguir","considera","consideró","consigo","consigue","consiguen","consigues","contra","cosas","creo","cual","cuales","cualquier","cuando","cuanto","cuatro","cuenta","cómo","da","dado","dan","dar","de","debe","deben","debido","decir","dejó","del","demás","dentro","desde","después","dice","dicen","dicho","dieron","diferente","diferentes","dijeron","dijo","dio","donde","dos","durante","e","ejemplo","el","ella","ellas","ello","ellos","embargo","empleais","emplean","emplear","empleas","empleo","en","encima","encuentra","entonces","entre","era","erais","eramos","eran","eras","eres","es","esa","esas","ese","eso","esos","esta","estaba","estabais","estaban","estabas","estad","estada","estadas","estado","estados","estais","estamos","estan","estando","estar","estaremos","estará","estarán","estarás","estaré","estaréis","estaría","estaríais","estaríamos","estarían","estarías","estas","este","estemos","esto","estos","estoy","estuve","estuviera","estuvierais","estuvieran","estuvieras","estuvieron","estuviese","estuvieseis","estuviesen","estuvieses","estuvimos","estuviste","estuvisteis","estuviéramos","estuviésemos","estuvo","está","estábamos","estáis","están","estás","esté","estéis","estén","estés","ex","existe","existen","explicó","expresó","fin","fue","fuera","fuerais","fueran","fueras","fueron","fuese","fueseis","fuesen","fueses","fui","fuimos","fuiste","fuisteis","fuéramos","fuésemos","gran","grandes","gueno","ha","haber","habida","habidas","habido","habidos","habiendo","habremos","habrá","habrán","habrás","habré","habréis","habría","habríais","habríamos","habrían","habrías","habéis","había","habíais","habíamos","habían","habías","hace","haceis","hacemos","hacen","hacer","hacerlo","haces","hacia","haciendo","hago","han","has","hasta","hay","haya","hayamos","hayan","hayas","hayáis","he","hecho","hemos","hicieron","hizo","hoy","hube","hubiera","hubierais","hubieran","hubieras","hubieron","hubiese","hubieseis","hubiesen","hubieses","hubimos","hubiste","hubisteis","hubiéramos","hubiésemos","hubo","igual","incluso","indicó","informó","intenta","intentais","intentamos","intentan","intentar","intentas","intento","ir","junto","la","lado","largo","las","le","les","llegó","lleva","llevar","lo","los","luego","lugar","manera","manifestó","mayor","me","mediante","mejor","mencionó","menos","mi","mientras","mio","mis","misma","mismas","mismo","mismos","modo","momento","mucha","muchas","mucho","muchos","muy","más","mí","mía","mías","mío","míos","nada","nadie","ni","ninguna","ningunas","ninguno","ningunos","ningún","no","nos","nosotras","nosotros","nuestra","nuestras","nuestro","nuestros","nueva","nuevas","nuevo","nuevos","nunca","o","ocho","os","otra","otras","otro","otros","para","parece","parte","partir","pasada","pasado","pero","pesar","poca","pocas","poco","pocos","podeis","podemos","poder","podria","podriais","podriamos","podrian","podrias","podrá","podrán","podría","podrían","poner","por","por qué","porque","posible","primer","primera","primero","primeros","principalmente","propia","propias","propio","propios","próximo","próximos","pudo","pueda","puede","pueden","puedo","pues","que","quedó","queremos","quien","quienes","quiere","quién","qué","realizado","realizar","realizó","respecto","sabe","sabeis","sabemos","saben","saber","sabes","se","sea","seamos","sean","seas","segunda","segundo","según","seis","ser","seremos","será","serán","serás","seré","seréis","sería","seríais","seríamos","serían","serías","seáis","señaló","si","sido","siempre","siendo","siete","sigue","siguiente","sin","sino","sobre","sois","sola","solamente","solas","solo","solos","somos","son","soy","su","sus","suya","suyas","suyo","suyos","sí","sólo","tal","también","tampoco","tan","tanto","te","tendremos","tendrá","tendrán","tendrás","tendré","tendréis","tendría","tendríais","tendríamos","tendrían","tendrías","tened","teneis","tenemos","tener","tenga","tengamos","tengan","tengas","tengo","tengáis","tenida","tenidas","tenido","tenidos","teniendo","tenéis","tenía","teníais","teníamos","tenían","tenías","tercera","ti","tiempo","tiene","tienen","tienes","toda","todas","todavía","todo","todos","total","trabaja","trabajais","trabajamos","trabajan","trabajar","trabajas","trabajo","tras","trata","través","tres","tu","tus","tuve","tuviera","tuvierais","tuvieran","tuvieras","tuvieron","tuviese","tuvieseis","tuviesen","tuvieses","tuvimos","tuviste","tuvisteis","tuviéramos","tuviésemos","tuvo","tuya","tuyas","tuyo","tuyos","tú","ultimo","un","una","unas","uno","unos","usa","usais","usamos","usan","usar","usas","uso","usted","va","vais","valor","vamos","van","varias","varios","vaya","veces","ver","verdad","verdadera","verdadero","vez","vosotras","vosotros","voy","vuestra","vuestras","vuestro","vuestros","y","ya","yo","él","éramos","ésta","éstas","éste","éstos","última","últimas","último","últimos"]},L={getStopWords:function(e){return void 0===e&&(e=""),V[e||"en"]||[]}},M={spiralResolution:1,spiralLimit:1800,lineHeight:.8,xWordPadding:0,yWordPadding:3,weightFactor:40,topN:40,maxHeight:0,padding:10},O=function(){function e(e){void 0===e&&(e=M),this._options=e,this._words=[],this._placedWords=[],this._minWeight=1,this._weightFactor=1,this._renderedTarget=void 0,this.colors=["black"]}return Object.defineProperty(e.prototype,"words",{get:function(){return this._words},set:function(e){this._words=[].concat(e||[]),this._minWeight=1,this._weightFactor=1,this._words.length>0&&(this._words.sort((function(e,t){return-1*(e[1]-t[1])})),this._minWeight=this._words[this._words.length-1][1],this._weightFactor=(this._words[0][1]-this._minWeight+1)/this._options.weightFactor)},enumerable:!1,configurable:!0}),e.prototype.createWordElement=function(e,t,i){var r=document.createElement("div");return r.style.position="absolute",r.style.fontSize=(t-this._minWeight+1)/this._weightFactor+"px",r.style.lineHeight=this._options.lineHeight+"em",this.colors.length>0&&(r.style.color=this.colors[i%this.colors.length]),r.title=e+" ("+t+")",r.appendChild(document.createTextNode(e)),r},e.prototype.isIntersectWithPlaced=function(e){for(var t=0;t<this._placedWords.length;t+=1){var i=this._placedWords[t].rect;if(!(e.right+this._options.xWordPadding<i.left-this._options.xWordPadding||e.left-this._options.xWordPadding>i.right+this._options.xWordPadding||e.bottom+this._options.yWordPadding<i.top-this._options.yWordPadding||e.top-this._options.yWordPadding>i.bottom+this._options.yWordPadding))return!0}return!1},e.prototype.arrangeWords=function(e,t){for(var i={x:0,y:0},r=i.y,s=i.y,n=Math.min(this._options.topN,this.words.length),o=0;o<n;o+=1){var a=this.createWordElement(this.words[o][0],this.words[o][1],o);e.appendChild(a);for(var l=0;l<this._options.spiralLimit;l++){var u=this._options.spiralResolution*l;i.x=(1+u)*Math.cos(u),i.y=(1+u)*Math.sin(u);var h=t.x+i.x-a.offsetWidth/2,c=t.y+i.y-a.offsetHeight/2;a.style.left=h+"px",a.style.top=c+"px";var d=a.getBoundingClientRect();if(!this.isIntersectWithPlaced(d)){this._placedWords.push({element:a,rect:d,left:h,top:c});break}}var p=i.y-a.offsetHeight/2;r>p&&(r=p);var g=i.y+a.offsetHeight/2;s<g&&(s=g)}return[r,s]},e.prototype.render=function(e){var t=this;this._renderedTarget=e;var i=document.createElement("div");document.body.appendChild(i),i.style.position="fixed",i.style.top="-1000px",i.style.width="0",i.style.height="0";var r={x:i.offsetWidth/2,y:i.offsetHeight/2},s=this.arrangeWords(i,r),n=s[0],o=s[1];this._placedWords.forEach((function(e){e.element.style.top=e.top-n+t._options.padding+"px"})),i.remove(),i.style.top="auto",i.style.left="50%",i.className="sa-visualizer-wordcloud",i.style.position="relative",this._options.maxHeight>0&&(i.style.height=this._options.maxHeight+"px",i.style.overflow="auto"),0==this._options.maxHeight&&(i.style.height=o-n+2*this._options.padding+"px"),e.appendChild(i)},e.prototype.dispose=function(){this._renderedTarget&&(this._renderedTarget.innerHTML="",this._renderedTarget=void 0)},e}(),N=function(){function e(e){this.model=e}return Object.defineProperty(e.prototype,"wordcloud",{get:function(){return this._wordcloud},enumerable:!1,configurable:!0}),e.prototype.create=function(t){return(0,p.sH)(this,void 0,void 0,(function(){var i,s,n,o;return(0,p.YH)(this,(function(a){switch(a.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return i=a.sent(),this.model.getColors(),0===i.length?(s=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),t.appendChild(s),[2]):(n=JSON.parse(JSON.stringify(M)),o={config:n},e.onWordcloudCreating.fire(this.model,o),this._wordcloud=new O(n),this._wordcloud.colors=this.model.getColors(),this._wordcloud.words=i,this._wordcloud.render(t),[2,this._wordcloud])}}))}))},e.prototype.destroy=function(e){this._wordcloud&&"function"==typeof this._wordcloud.dispose&&this._wordcloud.dispose(),this._wordcloud=void 0},e.drawOutOfBound=!1,e.shrinkToFit=!0,e.abortThreshold=void 0,e.weightFactor=20,e.onWordcloudCreating=new g.Event,e}(),B=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"wordcloud")||this;return n._wordcloudAdapter=new N(n),n}return(0,p.C6)(t,e),t.prototype.convertFromExternalData=function(e){var t=[];return Object.keys(e||[]).forEach((function(i){t.push([i,e[i]])})),t},t.prototype.getCalculatedValuesCore=function(){var e=this,t={},i=[],s=r.qG.currentLocale;i=s?L.getStopWords(s):L.getStopWords();var n=new RegExp("[.,/#!$%^*;:{}=-_`~()]","g"),o=function(e){(e=""+e)&&e.split(" ").forEach((function(e){var r=(e||"").toLowerCase().replace(n,"");r=function(e){return-1!==i.indexOf(e)?"":e}(r),r&&(t[r]?t[r]++:t[r]=1)}))};return this.surveyData.forEach((function(t){var i=t[e.question.name];i&&(Array.isArray(i)?i.forEach(o):"object"==typeof i?Object.keys(i).forEach((function(e){return o(i[e])})):o(i))})),Object.keys(t).map((function(e){return[e,t[e]]}))},t.prototype.destroyContent=function(t){this._wordcloudAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),e.appendChild(t),[4,this._wordcloudAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._wordcloudAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(c.w);d.g.registerVisualizer("text",B),d.g.registerVisualizer("comment",B),d.g.registerVisualizer("multipletext",B);var R=function(){function e(e){this.model=e}return e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t,i,s,n,o,a,l=this;return(0,p.YH)(this,(function(u){switch(u.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return t=u.sent(),i=t.columnCount,s=t.data,n=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),0===s.length?(e.appendChild(n),[2]):((o=f.gf.createElement("table","sa-text-table")).style.backgroundColor=this.model.backgroundColor,e.appendChild(o),this.model.columns&&(a=f.gf.createElement("tr"),this.model.columns.forEach((function(e){var t=f.gf.createElement("th","sa-text-table__cell",{textContent:e.title});a.appendChild(t)})),o.appendChild(a)),s.forEach((function(e){for(var t=f.gf.createElement("tr"),r=0;r<i;r++){var s=l.model.columns[r],n=f.gf.createElement("td","sa-text-table__cell"+("number"==(null==s?void 0:s.type)?" sa-text-table__cell--number":""),{textContent:e[r]});t.appendChild(n)}o.appendChild(t)})),e.className="sa-text-table__container",e.appendChild(o),[2])}}))}))},e.prototype.destroy=function(e){e.innerHTML=""},e}(),q=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"text")||this;return n._textTableAdapter=new R(n),n}return(0,p.C6)(t,e),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[];return"multipletext"==this.question.getType()&&this.question.items.forEach((function(t){e.push({name:t.name,title:t.title,type:t.inputType})})),e},enumerable:!1,configurable:!0}),t.prototype.getCalculatedValuesCore=function(){var e=this,t=[],i=0;return this.surveyData.forEach((function(r){var s=r[e.question.name],n=[];s&&(Array.isArray(s)?n=n.concat(s):"object"==typeof s?Object.keys(s).forEach((function(e){return n.push(s[e])})):n.push(s),t.push(n),n.length>i&&(i=n.length))})),{columnCount:i,data:t}},t.prototype.destroyContent=function(t){this._textTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._textTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._textTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(c.w);d.g.registerVisualizer("text",q),d.g.registerVisualizer("comment",q),d.g.registerVisualizer("multipletext",q);var I=function(){function e(e){this.model=e}return e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t,i,s,n,o,a=this;return(0,p.YH)(this,(function(l){switch(l.label){case 0:return[4,this.model.getAnswersData()];case 1:return t=l.sent(),i=t.datasets,s=t.labels,t.colors,n=t.texts,t.seriesLabels.length,o=f.gf.createElement("p","",{innerText:r.qG.getString("noResults")}),0===i.length||0===i[0].length?(e.appendChild(o),[2]):(i.forEach((function(t,i){var o=f.gf.createElement("table","sa-statistics-table");o.style.backgroundColor=a.model.backgroundColor,e.appendChild(o);var l=f.gf.createElement("tr"),u=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("answer")});l.appendChild(u);var h=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("statistics_chart")});l.appendChild(h);var c=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("percentage")});l.appendChild(c);var d=f.gf.createElement("th","sa-statistics-table__cell-header",{textContent:r.qG.getString("responses")});l.appendChild(d),o.appendChild(l);for(var p=t.length-1;p>=0;p--){var g=f.gf.createElement("tr");u=f.gf.createElement("td","sa-statistics-table__cell",{textContent:s[p]}),g.appendChild(u),h=f.gf.createElement("td","sa-statistics-table__cell");var m=f.gf.createElement("div","sa-choices-sparkline"),v=f.gf.createElement("div","sa-choices-sparkline-value");v.style.width=n[i][p]+"%",m.appendChild(v),h.appendChild(m),g.appendChild(h),c=f.gf.createElement("td","sa-statistics-table__cell sa-statistics-table__cell-value",{textContent:n[i][p]+"%"}),g.appendChild(c),d=f.gf.createElement("td","sa-statistics-table__cell sa-statistics-table__cell-value",{textContent:t[p]}),g.appendChild(d),o.appendChild(g)}e.className="sa-statistics-table__container",e.appendChild(o)})),[2])}}))}))},e.prototype.destroy=function(e){e.innerHTML=""},e}(),j=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"choices")||this;return n._statisticsTableAdapter=new I(n),n.showPercentages=!0,n}return(0,p.C6)(t,e),t.prototype.destroyContent=function(t){this._statisticsTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._statisticsTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._statisticsTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(o.o),G=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"options")||this;return n._statisticsTableAdapter=new I(n),n.showPercentages=!0,n}return(0,p.C6)(t,e),t.prototype.destroyContent=function(t){this._statisticsTableAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),[4,this._statisticsTableAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._statisticsTableAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t}(l.o);d.g.registerVisualizer("radiogroup",j),d.g.registerVisualizer("dropdown",j),d.g.registerVisualizer("checkbox",j),d.g.registerVisualizer("boolean",G);var H=function(){function e(e,t){this._model=e,this._data=t,this._renderedTarget=void 0}return e.prototype.renderScorePart=function(e,t,i){var s=f.gf.createElement("div","sa-visualizer-nps__score-part"),n=f.gf.createElement("div","sa-visualizer-nps__score-part-title");n.innerText=r.qG.getString(e),s.appendChild(n);var o=f.gf.createElement("div","sa-visualizer-nps__score-part-values");s.appendChild(o);var a=f.gf.createElement("div","sa-visualizer-nps__score-part-value");if(a.innerText=""+t,o.appendChild(a),i){var l=f.gf.createElement("div","sa-visualizer-nps__score-part-percent");l.innerText=i+"%",o.appendChild(l)}return s},e.prototype.render=function(e){this._renderedTarget=e;var t=f.gf.createElement("div","sa-visualizer-nps");t.appendChild(this.renderScorePart("npsScore",this.npsScore)),t.appendChild(this.renderScorePart("npsPromoters",this._data.promoters,this.promotersPercent)),t.appendChild(this.renderScorePart("npsPassives",this._data.total-this._data.promoters-this._data.detractors,this.passivePercent)),t.appendChild(this.renderScorePart("npsDetractors",this._data.detractors,this.detractorsPercent)),e.appendChild(t)},Object.defineProperty(e.prototype,"npsScore",{get:function(){return(0,f.QX)((this._data.promoters-this._data.detractors)/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"promotersPercent",{get:function(){return(0,f.QX)(this._data.promoters/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"passivePercent",{get:function(){return(0,f.QX)((this._data.total-this._data.promoters-this._data.detractors)/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detractorsPercent",{get:function(){return(0,f.QX)(this._data.detractors/this._data.total*100,this._model.precision)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this._renderedTarget&&(this._renderedTarget.innerHTML="",this._renderedTarget=void 0)},e}(),Y=function(){function e(e){this.model=e}return Object.defineProperty(e.prototype,"npsVisualizer",{get:function(){return this._npsVisualizer},enumerable:!1,configurable:!0}),e.prototype.create=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return[4,this.model.getCalculatedValues()];case 1:return t=i.sent(),this._npsVisualizer=new H(this.model,t),this._npsVisualizer.render(e),[2,this._npsVisualizer]}}))}))},e.prototype.destroy=function(e){this._npsVisualizer&&"function"==typeof this._npsVisualizer.dispose&&this._npsVisualizer.dispose(),this._npsVisualizer=void 0},e}(),F=function(e){function t(t,i,r,s){var n=e.call(this,t,i,r,s||"nps")||this;return n.precision=2,n._npsAdapter=new Y(n),n}return(0,p.C6)(t,e),t.prototype.getCalculatedValuesCore=function(){var e=this,i={detractors:0,passive:0,promoters:0,total:0};return this.data.forEach((function(r){var s=r[e.question.name],n=parseInt(s);Number.isNaN(n)||(n<=t.DetractorScore?i.detractors++:n>=t.PromoterScore?i.promoters++:i.passive++,i.total++)})),i},t.prototype.destroyContent=function(t){this._npsAdapter.destroy(t),e.prototype.destroyContent.call(this,t)},t.prototype.renderContentAsync=function(e){return(0,p.sH)(this,void 0,void 0,(function(){var t;return(0,p.YH)(this,(function(i){switch(i.label){case 0:return t=f.gf.createElement("div"),e.appendChild(t),[4,this._npsAdapter.create(t)];case 1:return i.sent(),e.innerHTML="",e.appendChild(t),[2,e]}}))}))},t.prototype.destroy=function(){this._npsAdapter.destroy(this.contentContainer),e.prototype.destroy.call(this)},t.DetractorScore=6,t.PromoterScore=9,t}(c.w),X=i(582),Q=i(472)},472:(e,t,i)=>{"use strict";i.d(t,{y:()=>h});var r=i(87),s=i(156),n=i(183),o=i(70),a=i(267),l=i(240),u=i(557),h=function(e){function t(t,i,r,s,n){void 0===n&&(n=!0);var a=e.call(this,null,i,r,s||"pivot")||this;return a.questions=t,a.isRoot=n,a.valueType="enum",a._cachedValues=void 0,a._continuousData=void 0,a._cachedIntervals=void 0,a._intervalPrecision=2,a.axisYSelectors=[],a.axisYQuestionNames=[],a.questionsY=[],a.questions=a.questions.filter((function(e){return-1===["matrixdropdown","matrixdynamic","matrix","file","signature","multipletext","comment","html","image"].indexOf(e.getType())})),void 0!==a.options.intervalPrecision&&(a._intervalPrecision=a.options.intervalPrecision),a.axisXQuestionName=a.questions.length>0?a.questions[0].name:void 0,a.registerToolbarItem("axisXSelector",(function(){return a.axisXSelector=o.gf.createSelector(a.questions.map((function(e){return{value:e.name,text:e.title||e.name}})),(function(e){return a.axisXQuestionName===e.value}),(function(e){a.axisXQuestionName=e.target.value,a.updateQuestionsSelection(),a.updateToolbar(),a.setupPivot()}),(function(){return a.isXYChart()?l.qG.getString("axisXSelectorTitle"):l.qG.getString("axisXAlternativeSelectorTitle")}))})),a.registerToolbarItem("axisYSelector0",a.createYSelecterGenerator()),a.setupPivot(),a}return(0,r.C6)(t,e),t.prototype.createYSelecterGenerator=function(){var e=this,t=this.axisYSelectors.length;return function(){var i=e.axisYSelectors[t];return i?i.__updateSelect&&i.__updateSelect():(i=e.createAxisYSelector(t),e.axisYSelectors.push(i)),i}},t.prototype.setAxisQuestions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];e.length<1||(this.axisXQuestionName=e[0],this.axisYQuestionNames=e.splice(1),this.setupPivot())},t.prototype.onAxisYSelectorChanged=function(e,t){if(this.axisYQuestionNames[e]=t,e<this.axisYSelectors.length-1){if(!t){for(var i=e+1;i<this.axisYSelectors.length;++i)this.unregisterToolbarItem("axisYSelector"+i);this.axisYSelectors=this.axisYSelectors.slice(0,e+1),this.axisYQuestionNames=this.axisYQuestionNames.slice(0,e+1)}}else t&&this.registerToolbarItem("axisYSelector"+this.axisYSelectors.length,this.createYSelecterGenerator());this.updateQuestionsSelection(),this.updateToolbar(),this.setupPivot()},t.prototype.updateQuestionsSelection=function(){for(var e=[this.axisXQuestionName],t=0;t<this.axisYQuestionNames.length;++t){var i=this.axisYQuestionNames[t];if(-1!==e.indexOf(i)){this.onAxisYSelectorChanged(t,void 0);break}e.push(i)}},t.prototype.createAxisYSelector=function(e){var t=this,i=function(){var i=t.questions.filter((function(i){if(i.name===t.axisXQuestionName)return!1;var r=t.axisYQuestionNames.indexOf(i.name);return-1==r||r>=e})).map((function(e){return{value:e.name,text:e.title||e.name}}));return[{value:"",text:l.qG.getString("notSelected")}].concat(i)};if(1!=i().length)return o.gf.createSelector(i,(function(i){return t.axisYQuestionNames[e]===i.value}),(function(i){t.onAxisYSelectorChanged(e,i.target.value)}),(function(){return e?void 0:t.isXYChart()?l.qG.getString("axisYSelectorTitle"):l.qG.getString("axisYAlternativeSelectorTitle")}))},t.prototype.setChartType=function(t){var i=this.isXYChart();e.prototype.setChartType.call(this,t),i!==this.isXYChart()&&this.updateToolbar()},t.prototype.isXYChart=function(){return-1===["pie","doughnut"].indexOf(this.chartType)},t.prototype.getQuestionValueType=function(e){var t=e.getType();return"text"!==t||"date"!==e.inputType&&"datetime"!==e.inputType?"text"===t||"rating"===t||"expression"===t||"range"===t?"number":"enum":"date"},t.prototype.setupPivot=function(){var e=this,t=this.questions.filter((function(t){return t.name===e.axisXQuestionName}))[0];t&&(this.question=t,this.valueType=this.getQuestionValueType(t),this.questionsY=this.axisYQuestionNames.map((function(t){var i=e.questions.filter((function(e){return e.name===t}))[0];if(i)return"enum"===e.getQuestionValueType(i)?new n.o(i,[]):new a.w(i,[])})).filter((function(e){return!!e})),this.onDataChanged())},t.prototype.reset=function(){this._continuousData=void 0,this._cachedValues=void 0,this._cachedIntervals=void 0},t.prototype.getContinuousValue=function(e){return"date"===this.valueType?Date.parse(e):parseFloat(e)},t.prototype.getString=function(e){return"date"===this.valueType?new Date(e).toLocaleDateString():""+e},t.prototype.toPrecision=function(e){var t=Math.pow(10,this._intervalPrecision);return Math.round(t*e)/t},t.prototype.getSelectedItemByText=function(e){if(this.hasCustomIntervals||this.getContinuousValues().length>t.UseIntervalsFrom){var i=this.intervals.filter((function(t){return t.label===e}))[0];return new s.ItemValue(i,void 0!==i?i.label:"")}var r=this.getLabels(),n=r.indexOf(e);return new s.ItemValue(this.getValues()[n],r[n])},t.prototype.updateData=function(t){this.reset(),e.prototype.updateData.call(this,t)},t.prototype.onDataChanged=function(){this.reset(),e.prototype.onDataChanged.call(this)},t.prototype.getContinuousValues=function(){var e=this;if(void 0===this._cachedValues){if(this._continuousData=[],"enum"===this.valueType)return this._cachedValues=[],this._cachedValues;var t={};this.data.forEach((function(i){var r=i[e.name];void 0!==r&&(e._continuousData.push({continuous:e.getContinuousValue(r),row:i}),t[r]={value:r,row:i})})),this._cachedValues=Object.keys(t).map((function(i){return{original:t[i].value,continuous:e.getContinuousValue(i),row:t[i].row}})),this._cachedValues.sort((function(e,t){return e.continuous-t.continuous}))}return this._cachedValues},t.prototype.isSupportAnswersOrder=function(){return!1},t.prototype.isSupportMissingAnswers=function(){return!1},Object.defineProperty(t.prototype,"needUseRateValues",{get:function(){return"rating"==this.question.getType()&&Array.isArray(this.question.rateValues)&&this.question.rateValues.length>0},enumerable:!1,configurable:!0}),t.prototype.getSeriesValues=function(){var e=this;if(!this.questionsY||0===this.questionsY.length)return this.options.seriesValues||[];var t=[];return this.questionsY.forEach((function(i){"enum"===e.getQuestionValueType(i.question)?t.push.apply(t,i.getValues().reverse()):t.push(i.question.name)})),t},t.prototype.getSeriesLabels=function(){var e=this;if(0===this.questionsY.length)return this.getSeriesValues();var t=[];return this.questionsY.forEach((function(i){"enum"===e.getQuestionValueType(i.question)?t.push.apply(t,i.getLabels().reverse()):t.push(i.question.title||i.question.name)})),t},t.prototype.getValues=function(){return"enum"===this.valueType?e.prototype.getValues.call(this).reverse():this.intervals.map((function(e){return e.start}))},t.prototype.getLabels=function(){return"enum"===this.valueType?e.prototype.getLabels.call(this).reverse():this.intervals.map((function(e){return e.label}))},Object.defineProperty(t.prototype,"hasCustomIntervals",{get:function(){return!!this.questionOptions&&Array.isArray(this.questionOptions.intervals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"intervals",{get:function(){if(this.hasCustomIntervals)return this.questionOptions.intervals;if("rating"==this.question.getType()){if(this.needUseRateValues){var e=this.question.rateValues;return e.sort((function(e,t){return e.value-t.value})),e.map((function(t,i){return{start:t.value,end:i<e.length-1?e[i+1].value:t.value+1,label:t.text}}))}for(var i=[],r=this.question.rateMin||0;r<=(this.question.rateMax||t.IntervalsCount-1);r+=this.question.rateStep||1)i.push({start:r,end:r+1,label:""+(this.question.rateMin&&this.question.rateMax?r:r+"-"+(r+1))});return i}if(void 0===this._cachedIntervals){var s=this.getContinuousValues();if(this._cachedIntervals=[],s.length){var n=s[0].continuous,o=s[s.length-1].continuous,a=t.IntervalsCount,l=(o-n)/a;for(r=0;r<a;++r){var u=n+l,h=this.toPrecision(n),c=this.toPrecision(u);this._cachedIntervals.push({start:h,end:r<a-1?c:c+l/100,label:this.getString(h)+"-"+this.getString(c)}),n=u}}}return this._cachedIntervals},enumerable:!1,configurable:!0}),t.prototype.convertFromExternalData=function(e){return[e]},t.prototype.getSeriesValueIndexes=function(){for(var e=this,t={},i=0,r=0;r<this.questionsY.length;++r)"enum"===this.getQuestionValueType(this.questionsY[r].question)?this.questionsY[r].getValues().reverse().forEach((function(s){t[e.questionsY[r].name+"_"+s]=i++})):t[this.questionsY[r].name]=i++;return t},t.prototype.updateStatisticsSeriesValue=function(e,t,i,r){for(var s=0;s<this.questionsY.length;++s)if(void 0!==t[this.questionsY[s].name]){var n=this.getQuestionValueType(this.questionsY[s].question);"enum"===n||"date"===n?e[r[this.questionsY[s].name+"_"+t[this.questionsY[s].name]]][i]++:e[r[this.questionsY[s].name]][i]+=parseFloat(t[this.questionsY[s].name])}},t.prototype.getCalculatedValuesCore=function(){var e=this,t=[],i=this.getSeriesValues();0===i.length&&i.push("");var r=this.getSeriesValueIndexes();if("enum"===this.valueType){var s=this.getValues(),n={};s.forEach((function(e,t){n[e]=t}));for(var o=0;o<i.length;++o)t.push(s.map((function(e){return 0})));this.data.forEach((function(i){var s=i[e.name];if(void 0!==s&&void 0!==n[s]){var o=n[s];0===e.questionsY.length?t[0][o]++:e.updateStatisticsSeriesValue(t,i,o,r)}}))}else{this.getContinuousValues();var a=this.intervals;for(o=0;o<i.length;++o)t.push(a.map((function(e){return 0})));this._continuousData.forEach((function(i){for(var s=0;s<a.length;++s)if(a[s].start<=i.continuous&&(i.continuous<a[s].end||s==a.length-1)){0===e.questionsY.length?t[0][s]++:e.updateStatisticsSeriesValue(t,i.row,s,r);break}}))}return t},t.prototype.getValueType=function(){return this.valueType},t.prototype.isSupportSoftUpdateContent=function(){return!1},t.prototype.renderToolbar=function(t){if(!this.haveCommercialLicense&&this.isRoot){var i=(0,o.Qk)();t.appendChild(i)}t.className+=" sa-pivot__header",e.prototype.renderToolbar.call(this,t)},t.IntervalsCount=10,t.UseIntervalsFrom=10,t}(n.o);u.g.registerPivotVisualizer(h)},555:(e,t,i)=>{"use strict";i.d(t,{M:()=>s});var r=i(156),s=function(){function e(e){void 0===e&&(e=[]),this._data=e,this.filterValues={},this.onDataChanged=new r.Event}return Object.defineProperty(e.prototype,"data",{get:function(){if(Array.isArray(this._data))return this._data},set:function(e){Array.isArray(e)?this._data=[].concat(e):this._data=e,this.raiseDataChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataFn",{get:function(){if("function"==typeof this._data)return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filteredData",{get:function(){var t=this;return void 0===this._filteredData&&(Object.keys(this.filterValues).length>0?this._filteredData=this.data.filter((function(i){return!Object.keys(t.filterValues).some((function(r){var s=t.filterValues[r],n=typeof s,o=i[r];if(Array.isArray(o)&&"object"!==n)return-1==o.indexOf(s);if("object"==typeof o)return"object"!==n||!function(e,t){var i=Object.keys(e),r=Object.keys(t);if(r.length>i.length)return!1;for(var s=0,n=r;s<n.length;s++){var o=n[s];if(t[o]!=e[o])return!1}return!0}(o,s);var a=i[e.seriesMarkerKey];if(a&&"object"===n)return o!==s[a];if("object"===n&&void 0!==s.start&&void 0!==s.end){var l="number"==typeof o?o:Date.parse(o);return!(!isNaN(l)||(l=parseFloat(o),!isNaN(l)))||l<s.start||l>=s.end}return i[r]!==t.filterValues[r]}))})):this._filteredData=this.data),this._filteredData},enumerable:!1,configurable:!0}),e.prototype.setFilter=function(e,t){var i=!0;void 0!==t?(i=this.filterValues[e]!==t,this.filterValues[e]=t):(i=void 0!==this.filterValues[e],delete this.filterValues[e]),i&&this.raiseDataChanged()},e.prototype.raiseDataChanged=function(e){this._filteredData=void 0,this.onDataChanged.isEmpty||this.onDataChanged.fire(this,{questionName:e})},e.prototype.getFilters=function(){var e=this;return Object.keys(this.filterValues).map((function(t){return{field:t,type:"=",value:e.filterValues[t]}}))},e.seriesMarkerKey="__sa_series_name",e}()},557:(e,t,i)=>{"use strict";i.d(t,{g:()=>r});var r=function(){function e(){}return e.registerVisualizer=function(t,i,r){void 0===r&&(r=Number.MAX_VALUE);var s=e.vizualizers[t];s||(s=[],e.vizualizers[t]=s),s.push({ctor:i,index:r})},e.unregisterVisualizer=function(t,i){var r=[t];t||(r=Object.keys(e.vizualizers)),r.forEach((function(t){if(i){var r=e.vizualizers[t];if(r){var s=r.filter((function(e){return e.ctor===i}))[0];if(s){var n=r.indexOf(s);-1!==n&&r.splice(n,1)}}}else e.vizualizers[t]=[]}))},e.unregisterVisualizerForAll=function(t){e.unregisterVisualizer(void 0,t)},e.getVisualizersByType=function(t,i){var r=e.vizualizers[t];return!i||r&&0!=r.length||(r=e.vizualizers[i]),r?((r=[].concat(r)).sort((function(e,t){return e.index-t.index})),r.map((function(e){return e.ctor}))):e.defaultVisualizer.suppressVisualizerStubRendering?[]:[e.defaultVisualizer]},e.getAltVisualizerSelector=function(){return e.alternativesVisualizer||e.defaultVisualizer},e.registerAltVisualizerSelector=function(t){e.alternativesVisualizer=t},e.getPivotVisualizerConstructor=function(){return e.pivotVisualizer||e.defaultVisualizer},e.registerPivotVisualizer=function(t){e.pivotVisualizer=t},e.defaultVisualizer=void 0,e.alternativesVisualizer=void 0,e.pivotVisualizer=void 0,e.vizualizers={},e}()},582:(e,t,i)=>{"use strict";i.d(t,{O:()=>n});var r=i(87),s=i(557),n=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"ranking")||this}return(0,r.C6)(t,e),t.prototype.getQuestionResults=function(){var e=this.question.name;return this.data.map((function(t){return t[e]}))},t.prototype.getEmptyData=function(){var e=this.getValues(),t=[];return t.length=e.length,t.fill(0),t},t.prototype.getCalculatedValuesCore=function(){var e=this,t=this.getQuestionResults(),i=this.getValues(),r=this.getEmptyData();return t.forEach((function(t){e.applyResultToPlotlyData(t,r,i)})),[r]},t.prototype.applyResultToPlotlyData=function(e,t,i){e&&t&&i&&e.forEach((function(e,r,s){var n=i.indexOf(e);t[n]=+t[n]+(s.length-r)}))},t}(i(183).o);s.g.registerVisualizer("ranking",n)},637:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><circle cx="1.5" cy="14.5" r="1.5"></circle><circle cx="7.5" cy="14.5" r="1.5"></circle><circle cx="13.5" cy="14.5" r="1.5"></circle><rect x="12" y="1" width="3" height="9"></rect><path d="M2.02,7.02L1,6L0,7l3,3l3-3L5,6L4.06,6.94C4.33,4.73,6.21,3,8.5,3C8.67,3,8.83,3.03,9,3.05V1.03 C8.83,1.01,8.67,1,8.5,1C5.08,1,2.27,3.66,2.02,7.02z"></path></g></svg>'},782:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><circle cx="1.5" cy="8.5" r="1.5"></circle><circle cx="7.5" cy="8.5" r="1.5"></circle><circle cx="13.5" cy="8.5" r="1.5"></circle></g></svg>'},818:(e,t,i)=>{"use strict";i.d(t,{D:()=>n});var r=i(156),s=i(557),n=function(){function e(){}return e.createVisualizer=function(e,t,i){var n=e.getType(),o=[],a=e,l=Object.assign({},i);if("text"===n&&e.inputType)o=s.g.getVisualizersByType(e.inputType,n);else{var u=void 0;e instanceof r.QuestionCustomModel?u=e.getDynamicType():e instanceof r.QuestionCompositeModel&&(u="composite"),o=s.g.getVisualizersByType(n,u)}var h=o.map((function(e){return new e(a,t,l)}));return h.length>1?new(s.g.getAltVisualizerSelector())(h,a,t,l):h[0]},e}()},820:function(e){e.exports=function(){"use strict";var e={},t="swap",i="move",r="layoutStart",s="layoutEnd",n="remove",o="filter",a="sort",l="move",u="send",h="beforeSend",c="receive",d="beforeReceive",p="dragReleaseEnd";function g(){this._events={},this._queue=[],this._counter=0,this._isDestroyed=!1}g.prototype.on=function(e,t){if(this._isDestroyed)return this;var i=this._events[e];return i||(i=this._events[e]=[]),i.push(t),this},g.prototype.off=function(e,t){if(this._isDestroyed)return this;var i=this._events[e];if(!i||!i.length)return this;if(!t)return i.length=0,this;for(var r=i.length;r--;)t===i[r]&&i.splice(r,1);return this},g.prototype.emit=function(e,t,i,r){if(this._isDestroyed)return this;var s=this._events[e];if(!s||!s.length)return this;var n,o=this._queue,a=o.length,l=arguments.length-1;for(n=0;n<s.length;n++)o.push(s[n]);for(++this._counter,n=a,a=o.length;n<a;n++)if(0===l?o[n]():1===l?o[n](t):2===l?o[n](t,i):o[n](t,i,r),this._isDestroyed)return this;return--this._counter,this._counter||(o.length=0),this},g.prototype.destroy=function(){if(this._isDestroyed)return this;var e,t=this._events;for(e in this._isDestroyed=!0,this._queue.length=this._counter=0,t)t[e]&&(t[e].length=0,t[e]=void 0);return this};var f="transform",m="transform",v=window.document.documentElement.style,_="transform",y=!1;["","Webkit","Moz","O","ms"].forEach((function(e){if(!y){var t=e?e+"Transform":_;void 0!==v[t]&&(e=e.toLowerCase(),f=e?"-"+e+"-"+_:_,m=t,y=!0)}}));var b="function"==typeof WeakMap?new WeakMap:null;function w(e,t){var i=b&&b.get(e);return i||(i=window.getComputedStyle(e,null),b&&b.set(e,i)),i.getPropertyValue("transform"===t?f:t)}var C=/([A-Z])/g;function T(e){return e.replace(C,"-$1").toLowerCase()}function S(e){return"function"==typeof e}function x(e,t){for(var i in t)e.style["transform"===i?m:i]=t[i]}function P(e){this._element=e,this._animation=null,this._callback=null,this._props=[],this._values=[],this._keyframes=[],this._options={},this._isDestroyed=!1,this._onFinish=this._onFinish.bind(this)}P.prototype.start=function(e,t,i){if(!this._isDestroyed){var r=this._animation,s=this._props,n=this._values,o=i||0,a=!1;if(r){var l,u=0;for(var h in t)if(++u,-1===(l=s.indexOf(h))||t[h]!==n[l]){a=!0;break}a||u===s.length||(a=!0)}if(a&&r.cancel(),this._callback=S(o.onFinish)?o.onFinish:null,!r||a){for(h in s.length=n.length=0,t)s.push(h),n.push(t[h]);var c=this._keyframes;c[0]=e,c[1]=t;var d=this._options;d.duration=o.duration||300,d.easing=o.easing||"ease";var p=this._element;(r=p.animate(c,d)).onfinish=this._onFinish,this._animation=r,x(p,t)}}},P.prototype.stop=function(e){if(!this._isDestroyed&&this._animation){var t,i,r,s=this._element,n=this._props,o=this._values;if(e)x(s,e);else for(r=0;r<n.length;r++)i=w(s,T(t=n[r])),s.style["transform"===t?m:t]=i;this._animation.cancel(),this._animation=this._callback=null,n.length=o.length=0}},P.prototype.isAnimating=function(){return!!this._animation},P.prototype.destroy=function(){this._isDestroyed||(this.stop(),this._element=this._options=this._keyframes=null,this._isDestroyed=!0)},P.prototype._onFinish=function(){var e=this._callback;this._animation=this._callback=null,this._props.length=this._values.length=0,e&&e()};var A=["","webkit","moz","ms","o","Webkit","Moz","MS","O"];function k(e,t){for(var i,r,s=t[0].toUpperCase()+t.slice(1),n=0;n<A.length;){if((r=(i=A[n])?i+s:t)in e)return r;++n}return null}var z=1e3/60,D=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return this.setTimeout((function(){e(z)}),z)}).bind(window),E=!1;try{var V=Object.defineProperty({},"passive",{get:function(){E=!0}});window.addEventListener("testPassive",null,V),window.removeEventListener("testPassive",null,V)}catch(e){}var L="start",M="move",O="end",N="cancel",B=!(!("ontouchstart"in window)&&!window.TouchEvent),R=!!window.PointerEvent,q=!!window.navigator.msPointerEnabled,I=/(android)/i.test(window.navigator.userAgent),j=!!E&&{passive:!0},G="touchAction",H=k(window.document.documentElement.style,G);function Y(e,t){this._element=e,this._emitter=new g,this._isDestroyed=!1,this._cssProps={},this._touchAction="",this._startEvent=null,this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._preStartCheck=this._preStartCheck.bind(this),this._abortNonCancelable=this._abortNonCancelable.bind(this),this._onStart=this._onStart.bind(this),this._onMove=this._onMove.bind(this),this._onCancel=this._onCancel.bind(this),this._onEnd=this._onEnd.bind(this),this.setCssProps(t),this._touchAction||this.setTouchAction("auto"),e.addEventListener("dragstart",Y._preventDefault,!1),e.addEventListener(Y._events.start,this._preStartCheck,j),!B||R||q||e.addEventListener(Y._mouseEvents.start,this._preStartCheck,j)}function F(){this._nextStep=null,this._queue=[],this._reads={},this._writes={},this._batch=[],this._batchReads={},this._batchWrites={},this._step=this._step.bind(this)}Y._pointerEvents={start:"pointerdown",move:"pointermove",cancel:"pointercancel",end:"pointerup"},Y._msPointerEvents={start:"MSPointerDown",move:"MSPointerMove",cancel:"MSPointerCancel",end:"MSPointerUp"},Y._touchEvents={start:"touchstart",move:"touchmove",cancel:"touchcancel",end:"touchend"},Y._mouseEvents={start:"mousedown",move:"mousemove",cancel:"",end:"mouseup"},Y._events=R?Y._pointerEvents:q?Y._msPointerEvents:B?Y._touchEvents:Y._mouseEvents,Y._emitter=new g,Y._activeInstances=[],Y._preventDefault=function(e){e.preventDefault&&!1!==e.cancelable&&e.preventDefault()},Y._activateInstance=function(e){Y._activeInstances.indexOf(e)>-1||(Y._activeInstances.push(e),Y._emitter.on(M,e._onMove),Y._emitter.on(N,e._onCancel),Y._emitter.on(O,e._onEnd),1===Y._activeInstances.length&&Y._bindListeners())},Y._deactivateInstance=function(e){var t=Y._activeInstances.indexOf(e);-1!==t&&(Y._activeInstances.splice(t,1),Y._emitter.off(M,e._onMove),Y._emitter.off(N,e._onCancel),Y._emitter.off(O,e._onEnd),Y._activeInstances.length||Y._unbindListeners())},Y._bindListeners=function(){var e=Y._events;window.addEventListener(e.move,Y._onMove,j),window.addEventListener(e.end,Y._onEnd,j),e.cancel&&window.addEventListener(e.cancel,Y._onCancel,j)},Y._unbindListeners=function(){var e=Y._events;window.removeEventListener(e.move,Y._onMove,j),window.removeEventListener(e.end,Y._onEnd,j),e.cancel&&window.removeEventListener(e.cancel,Y._onCancel,j)},Y._getEventPointerId=function(e){return"number"==typeof e.pointerId?e.pointerId:e.changedTouches?e.changedTouches[0]?e.changedTouches[0].identifier:null:1},Y._getTouchById=function(e,t){if("number"==typeof e.pointerId)return e.pointerId===t?e:null;if(e.changedTouches){for(var i=0;i<e.changedTouches.length;i++)if(e.changedTouches[i].identifier===t)return e.changedTouches[i];return null}return e},Y._onMove=function(e){Y._emitter.emit(M,e)},Y._onCancel=function(e){Y._emitter.emit(N,e)},Y._onEnd=function(e){Y._emitter.emit(O,e)},Y.prototype._reset=function(){this._isDestroyed||(this._pointerId=null,this._startTime=0,this._startX=0,this._startY=0,this._currentX=0,this._currentY=0,this._startEvent=null,this._element.removeEventListener(Y._touchEvents.start,this._abortNonCancelable,j),Y._deactivateInstance(this))},Y.prototype._createEvent=function(e,t){var i=this._getTrackedTouch(t);return{type:e,srcEvent:t,distance:this.getDistance(),deltaX:this.getDeltaX(),deltaY:this.getDeltaY(),deltaTime:e===L?0:this.getDeltaTime(),isFirst:e===L,isFinal:e===O||e===N,identifier:this._pointerId,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY,pageX:i.pageX,pageY:i.pageY,target:i.target}},Y.prototype._emit=function(e,t){this._emitter.emit(e,this._createEvent(e,t))},Y.prototype._getTrackedTouch=function(e){return null===this._pointerId?null:Y._getTouchById(e,this._pointerId)},Y.prototype._preStartCheck=function(e){this._isDestroyed||this.isDragging()||I&&!1===e.cancelable||e.button||(this._pointerId=Y._getEventPointerId(e),null!==this._pointerId&&(this._startEvent=e,B&&(R||q)?(I&&this._element.addEventListener(Y._touchEvents.start,this._abortNonCancelable,j),D(this._onStart)):this._onStart()))},Y.prototype._abortNonCancelable=function(e){this._element.removeEventListener(Y._touchEvents.start,this._abortNonCancelable,j),this._startEvent&&!1===e.cancelable&&(this._pointerId=null,this._startEvent=null)},Y.prototype._onStart=function(){var e=this._startEvent;if(e){this._startEvent=null;var t=this._getTrackedTouch(e);t&&(this._startX=this._currentX=t.clientX,this._startY=this._currentY=t.clientY,this._startTime=Date.now(),this._emit(L,e),Y._activateInstance(this))}},Y.prototype._onMove=function(e){var t=this._getTrackedTouch(e);t&&(this._currentX=t.clientX,this._currentY=t.clientY,this._emit(M,e))},Y.prototype._onCancel=function(e){this._getTrackedTouch(e)&&(this._emit(N,e),this._reset())},Y.prototype._onEnd=function(e){this._getTrackedTouch(e)&&(this._emit(O,e),this._reset())},Y.prototype.isDragging=function(){return null!==this._pointerId},Y.prototype.setTouchAction=function(e){this._touchAction=e,H&&(this._cssProps[H]="",this._element.style[H]=e),B&&(this._element.removeEventListener(Y._touchEvents.start,Y._preventDefault,!1),this._element.style[H]!==e&&this._element.addEventListener(Y._touchEvents.start,Y._preventDefault,!1))},Y.prototype.setCssProps=function(e){if(e){var t,i,r=this._cssProps,s=this._element;for(t in r)s.style[t]=r[t],delete r[t];for(t in e)e[t]&&(t!==G?(i=k(s.style,t))&&(r[i]="",s.style[i]=e[t]):this.setTouchAction(e[t]))}},Y.prototype.getDeltaX=function(){return this._currentX-this._startX},Y.prototype.getDeltaY=function(){return this._currentY-this._startY},Y.prototype.getDistance=function(){var e=this.getDeltaX(),t=this.getDeltaY();return Math.sqrt(e*e+t*t)},Y.prototype.getDeltaTime=function(){return this._startTime?Date.now()-this._startTime:0},Y.prototype.on=function(e,t){this._emitter.on(e,t)},Y.prototype.off=function(e,t){this._emitter.off(eventName,t)},Y.prototype.destroy=function(){if(!this._isDestroyed){var e=this._element,t=Y._events;for(var i in this._reset(),this._emitter.destroy(),e.removeEventListener(t.start,this._preStartCheck,j),e.removeEventListener(Y._mouseEvents.start,this._preStartCheck,j),e.removeEventListener("dragstart",Y._preventDefault,!1),e.removeEventListener(Y._touchEvents.start,Y._preventDefault,!1),this._cssProps)e.style[i]=this._cssProps[i],delete this._cssProps[i];this._element=null,this._isDestroyed=!0}},F.prototype.add=function(e,t,i,r){var s=this._queue.indexOf(e);s>-1&&(this._queue[s]=void 0),r?this._queue.unshift(e):this._queue.push(e),this._reads[e]=t,this._writes[e]=i,this._nextStep||(this._nextStep=D(this._step))},F.prototype.cancel=function(e){var t=this._queue.indexOf(e);t>-1&&(this._queue[t]=void 0,delete this._reads[e],delete this._writes[e])},F.prototype._step=function(){var e,t,i=this._queue,r=this._reads,s=this._writes,n=this._batch,o=this._batchReads,a=this._batchWrites,l=i.length;for(this._nextStep=null,t=0;t<l;t++)(e=i[t])&&(n.push(e),o[e]=r[e],delete r[e],a[e]=s[e],delete s[e]);for(i.length=0,t=0;t<l;t++)o[e=n[t]]&&(o[e](),delete o[e]);for(t=0;t<l;t++)a[e=n[t]]&&(a[e](),delete a[e]);n.length=0,!this._nextStep&&i.length&&(this._nextStep=D(this._step))};var X=new F,Q="layout",W="visibility",U="move",K="scroll",Z="placeholder";function J(e){return X.cancel(e+W)}function $(e){return X.cancel(e+U)}function ee(e){return X.cancel(e+K)}function te(e){return X.cancel(e+Z)}var ie=window.Element.prototype,re=ie.matches||ie.matchesSelector||ie.webkitMatchesSelector||ie.mozMatchesSelector||ie.msMatchesSelector||ie.oMatchesSelector||function(){return!1};function se(e,t){return re.call(e,t)}function ne(e,t){e.classList?e.classList.add(t):se(e,"."+t)||(e.className+=" "+t)}var oe=[];function ae(e,t,i){var r="number"==typeof i?i:-1;r<0&&(r=e.length-r+1),e.splice.apply(e,oe.concat(r,0,t)),oe.length=0}function le(e,t,i){var r=e.length,s=Math.max(0,i?r:r-1);return t>s?s:t<0?Math.max(s+t+1,0):t}function ue(e,t,i){if(!(e.length<2)){var r=le(e,t),s=le(e,i);r!==s&&e.splice(s,0,e.splice(r,1)[0])}}function he(e,t,i){if(!(e.length<2)){var r,s=le(e,t),n=le(e,i);s!==n&&(r=e[s],e[s]=e[n],e[n]=r)}}var ce="cancel",de="finish",pe=0;function ge(e,t){var i,r=++pe+"debounce";return t>0?function(s){void 0!==i&&(i=window.clearTimeout(i),X.cancel(r),s===de&&e()),s!==ce&&s!==de&&(i=window.setTimeout((function(){i=void 0,X.add(r,e,null,!0)}),t))}:function(t){t!==ce&&e()}}function fe(e){var t=w(e,"transform");if(!t||"none"===t)return!1;var i=w(e,"display");return"inline"!==i&&"none"!==i}function me(e,t){for(var i=window.document,r=(t?e:e.parentElement)||i;r&&r!==i&&"static"===w(r,"position")&&!fe(r);)r=r.parentElement||i;return r}function ve(e,t){return parseFloat(w(e,t))||0}var _e={},ye={},be={};function we(e,t){var i,r=t||{};return r.left=0,r.top=0,e===document||(r.left=window.pageXOffset||0,r.top=window.pageYOffset||0,e.self===window.self||(i=e.getBoundingClientRect(),r.left+=i.left,r.top+=i.top,r.left+=ve(e,"border-left-width"),r.top+=ve(e,"border-top-width"))),r}function Ce(e,t,i){return be.left=0,be.top=0,e===t||i&&(e=me(e,!0))===(t=me(t,!0))||(we(e,_e),we(t,ye),be.left=ye.left-_e.left,be.top=ye.top-_e.top),be}var Te="auto",Se="scroll";function xe(e){var t=w(e,"overflow");return t===Te||t===Se||(t=w(e,"overflow-x"))===Te||t===Se||(t=w(e,"overflow-y"))===Te||t===Se}function Pe(e,t,i){for(var r=i||[],s=t?e:e.parentNode;s&&s!==document;)s.getRootNode&&s instanceof DocumentFragment?s=s.getRootNode().host:(xe(s)&&r.push(s),s=s.parentNode);return r.push(window),r}var Ae={},ke=/^matrix3d/,ze=/([^,]*,){4}/,De=/([^,]*,){12}/,Ee=/[^,]*,/;function Ve(e){Ae.x=0,Ae.y=0;var t=w(e,"transform");if(!t||"none"===t)return Ae;var i=ke.test(t),r=t.replace(i?De:ze,""),s=r.replace(Ee,"");return Ae.x=parseFloat(r)||0,Ae.y=parseFloat(s)||0,Ae}function Le(e,t){return"translateX("+e+"px) translateY("+t+"px)"}function Me(e,t){e.classList?e.classList.remove(t):se(e,"."+t)&&(e.className=(" "+e.className+" ").replace(" "+t+" "," ").trim())}var Oe,Ne,Be,Re;function qe(e){var t=e._element,i=e.getGrid(),r=i._settings;this._item=e,this._gridId=i._id,this._isDestroyed=!1,this._isMigrating=!1,this._startPredicate=S(r.dragStartPredicate)?r.dragStartPredicate:qe.defaultStartPredicate,this._startPredicateState=0,this._startPredicateResult=void 0,this._hBlockedIndex=null,this._hX1=0,this._hX2=0,this._hY1=0,this._hY2=0,this._reset(),this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._checkOverlap=this._checkOverlap.bind(this);var s=r.dragSortHeuristics.sortInterval;this._checkOverlapDebounce=ge(this._checkOverlap,s),this._dragger=new Y(t,r.dragCssProps),this._dragger.on("start",this._preStartCheck),this._dragger.on("move",this._preStartCheck),this._dragger.on("cancel",this._preEndCheck),this._dragger.on("end",this._preEndCheck)}function Ie(e,t){return e.left+e.width<=t.left||t.left+t.width<=e.left||e.top+e.height<=t.top||t.top+t.height<=e.top?0:(Math.min(e.left+e.width,t.left+t.width)-Math.max(e.left,t.left))*(Math.min(e.top+e.height,t.top+t.height)-Math.max(e.top,t.top))/(Math.min(e.width,t.width)*Math.min(e.height,t.height))*100}function je(e){this._item=e,this._animate=new P,this._element=null,this._className="",this._didMigrate=!1,this._resetAfterLayout=!1,this._currentLeft=0,this._currentTop=0,this._nextLeft=0,this._nextTop=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this)}function Ge(){this._queue=[],this._isDestroyed=!1}function He(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._isInterrupted=!1,this._currentStyles={},this._targetStyles={},this._currentLeft=0,this._currentTop=0,this._offsetLeft=0,this._offsetTop=0,this._skipNextAnimation=!1,this._animateOptions={onFinish:this._finish.bind(this)},this._queue=new Ge,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this)}qe.defaultStartPredicate=function(e,t,i){var r=e._drag,s=r._startPredicateData||r._setupStartPredicate(i);if(!t.isFinal)return!(!s.handleElement&&(s.handleElement=r._getStartPredicateHandle(t),!s.handleElement))&&(s.delay&&(s.event=t,s.delayTimer||(s.delayTimer=window.setTimeout((function(){s.delay=0,r._resolveStartPredicate(s.event)&&(r._forceResolveStartPredicate(s.event),r._resetStartPredicate())}),s.delay))),r._resolveStartPredicate(t));r._finishStartPredicate(t)},qe.defaultSortPredicate=(Oe={},Ne={},Be={},Re=[],function(e,r){var s=e._drag,n=s._getGrid(),o=r&&"number"==typeof r.threshold?r.threshold:50,a=r&&r.action===t?t:i;Oe.width=e._width,Oe.height=e._height,Oe.left=s._elementClientX,Oe.top=s._elementClientY;var l=function(e,t,i){var r,s,n,o,a=null,l=t._settings.dragSort,u=-1;if(!0===l?(Re[0]=t,s=Re):s=l.call(t,e),!Array.isArray(s))return a;for(o=0;o<s.length;o++)(n=s[o])._isDestroyed||(n._updateBoundingRect(),Ne.width=n._width,Ne.height=n._height,Ne.left=n._left,Ne.top=n._top,(r=Ie(Oe,Ne))>i&&r>u&&(u=r,a=n));return Re.length=0,a}(e,n,o);if(!l)return!1;var u,h,c,d,p,g=0,f=0,m=-1;for(l===n?(Oe.left=s._gridX+e._marginLeft,Oe.top=s._gridY+e._marginTop):(l._updateBorders(1,0,1,0),g=l._left+l._borderLeft,f=l._top+l._borderTop),p=0;p<l._items.length;p++)(c=l._items[p])._isActive&&c!==e&&(h=!0,Ne.width=c._width,Ne.height=c._height,Ne.left=c._left+c._marginLeft+g,Ne.top=c._top+c._marginTop+f,(d=Ie(Oe,Ne))>m&&(u=p,m=d));return m<o&&e.getGrid()!==l&&(u=h?-1:0,m=1/0),m>=o&&(Be.grid=l,Be.index=u,Be.action=a,Be)}),qe.prototype.stop=function(){var e=this._item,t=e._element,i=this._getGrid();return this._isActive?this._isMigrating?(this._finishMigration(),this):($(e._id),ee(e._id),this._unbindScrollListeners(),this._checkOverlapDebounce("cancel"),t.parentNode!==i._element&&(i._element.appendChild(t),t.style[m]=Le(this._gridX,this._gridY)),Me(t,i._settings.itemDraggingClass),this._reset(),this):this},qe.prototype.destroy=function(){return this._isDestroyed||(this.stop(),this._dragger.destroy(),this._isDestroyed=!0),this},qe.prototype._getGrid=function(){return e[this._gridId]||null},qe.prototype._reset=function(){this._isActive=!1,this._container=null,this._containingBlock=null,this._dragEvent=null,this._scrollEvent=null,this._scrollers=[],this._left=0,this._top=0,this._gridX=0,this._gridY=0,this._elementClientX=0,this._elementClientY=0,this._containerDiffX=0,this._containerDiffY=0},qe.prototype._bindScrollListeners=function(){var e,t,i=this._getGrid()._element,r=this._container,s=this._scrollers;if(s.length=0,Pe(this._item._element,!1,s),r!==i)for(Pe(i,!0,e=[]),t=0;t<e.length;t++)s.indexOf(e[t])<0&&s.push(e[t]);for(t=0;t<s.length;t++)s[t].addEventListener("scroll",this._onScroll)},qe.prototype._unbindScrollListeners=function(){var e,t=this._scrollers;for(e=0;e<t.length;e++)t[e].removeEventListener("scroll",this._onScroll);t.length=0},qe.prototype._setupStartPredicate=function(e){var t=e||this._getGrid()._settings.dragStartPredicate||0;return this._startPredicateData={distance:Math.abs(t.distance)||0,delay:Math.max(t.delay,0)||0,handle:"string"==typeof t.handle&&t.handle}},qe.prototype._getStartPredicateHandle=function(e){var t=this._startPredicateData,i=this._item._element,r=i;if(!t.handle)return r;for(r=e.target;r&&!se(r,t.handle);)r=r!==i?r.parentElement:null;return r||null},qe.prototype._resolveStartPredicate=function(e){var t=this._startPredicateData;if(!(e.distance<t.distance||t.delay)){var i=t.handleElement.getBoundingClientRect(),r=i.left+(window.pageXOffset||0),s=i.top+(window.pageYOffset||0),n=i.width,o=i.height;return this._resetStartPredicate(),n&&o&&e.pageX>=r&&e.pageX<r+n&&e.pageY>=s&&e.pageY<s+o}},qe.prototype._forceResolveStartPredicate=function(e){this._isDestroyed||1!==this._startPredicateState||(this._startPredicateState=2,this._onStart(e))},qe.prototype._finishStartPredicate=function(e){var t=this._item._element,i=Math.abs(e.deltaX)<2&&Math.abs(e.deltaY)<2&&e.deltaTime<200;this._resetStartPredicate(),i&&function(e){if("a"===e.tagName.toLowerCase()){var t=e.getAttribute("href");if(t){var i=e.getAttribute("target");i&&"_self"!==i?window.open(t,i):window.location.href=t}}}(t)},qe.prototype._resetHeuristics=function(e){this._hBlockedIndex=null,this._hX1=this._hX2=e.clientX,this._hY1=this._hY2=e.clientY},qe.prototype._checkHeuristics=function(e){var t=this._getGrid()._settings.dragSortHeuristics,i=t.minDragDistance;if(i<=0)return this._hBlockedIndex=null,!0;var r=e.clientX,s=e.clientY,n=r-this._hX2,o=s-this._hY2,a=i>3&&t.minBounceBackAngle>0;if(a||(this._hBlockedIndex=null),Math.abs(n)>i||Math.abs(o)>i){if(a){var l=Math.atan2(n,o),u=Math.atan2(this._hX2-this._hX1,this._hY2-this._hY1),h=Math.atan2(Math.sin(l-u),Math.cos(l-u));Math.abs(h)>t.minBounceBackAngle&&(this._hBlockedIndex=null)}return this._hX1=this._hX2,this._hY1=this._hY2,this._hX2=r,this._hY2=s,!0}return!1},qe.prototype._resetStartPredicate=function(){var e=this._startPredicateData;e&&(e.delayTimer&&(e.delayTimer=window.clearTimeout(e.delayTimer)),this._startPredicateData=null)},qe.prototype._checkOverlap=function(){if(this._isActive){var e,r,s,n,o,a,p,g=this._item,f=this._getGrid()._settings;(e=S(f.dragSortPredicate)?f.dragSortPredicate(g,this._dragEvent):qe.defaultSortPredicate(g,f.dragSortPredicate))&&"number"==typeof e.index&&(p=(r=g.getGrid())!==(n=e.grid||r),s=r._items.indexOf(g),o=le(n._items,e.index,p),a=e.action===t?t:i,(p||o!==this._hBlockedIndex)&&(p?(this._hBlockedIndex=null,r._hasListeners(h)&&r._emit(h,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(d)&&n._emit(d,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),g._gridId=n._id,this._isMigrating=g._gridId!==this._gridId,r._items.splice(s,1),ae(n._items,g,o),g._sortData=null,r._hasListeners(u)&&r._emit(u,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),n._hasListeners(c)&&n._emit(c,{item:g,fromGrid:r,fromIndex:s,toGrid:n,toIndex:o}),r.layout(),n.layout()):s!==o&&(this._hBlockedIndex=s,(a===t?he:ue)(r._items,s,o),r._hasListeners(l)&&r._emit(l,{item:g,fromIndex:s,toIndex:o,action:a}),r.layout())))}},qe.prototype._finishMigration=function(){var e,t,i=this._item,r=i._release,s=i._element,n=i._isActive,o=i.getGrid(),a=o._element,l=o._settings,u=l.dragContainer||a,h=this._getGrid()._settings,c=s.parentNode;this._isMigrating=!1,this.destroy(),Me(s,h.itemClass),Me(s,h.itemVisibleClass),Me(s,h.itemHiddenClass),ne(s,l.itemClass),ne(s,n?l.itemVisibleClass:l.itemHiddenClass),u!==c&&(u.appendChild(s),t=Ce(c,u,!0),(e=Ve(s)).x-=t.left,e.y-=t.top),i._refreshDimensions(),i._refreshSortData(),t=Ce(u,a,!0),r._containerDiffX=t.left,r._containerDiffY=t.top,i._drag=l.dragEnabled?new qe(i):null,u!==c&&(s.style[m]=Le(e.x,e.y)),i._child.removeAttribute("style"),x(i._child,n?l.visibleStyles:l.hiddenStyles),r.start()},qe.prototype._preStartCheck=function(e){0===this._startPredicateState&&(this._startPredicateState=1),1===this._startPredicateState?(this._startPredicateResult=this._startPredicate(this._item,e),!0===this._startPredicateResult?(this._startPredicateState=2,this._onStart(e)):!1===this._startPredicateResult&&(this._startPredicateState=3)):2===this._startPredicateState&&this._isActive&&this._onMove(e)},qe.prototype._preEndCheck=function(e){var t=2===this._startPredicateState;this._startPredicate(this._item,e),this._startPredicateState=0,t&&this._isActive&&this._onEnd(e)},qe.prototype._onStart=function(e){var t=this._item;if(t._isActive){var i,r=t._element,s=this._getGrid(),n=s._settings,o=t._release,a=t._migrate,l=s._element,u=n.dragContainer||l,h=me(u,!0),c=Ve(r),d=c.x,p=c.y,g=r.getBoundingClientRect(),f=u!==l;this._resetHeuristics(e),f&&(i=Ce(h,l)),t.isPositioning()&&t._layout.stop(!0,{transform:Le(d,p)}),a._isActive&&(d-=a._containerDiffX,p-=a._containerDiffY,a.stop(!0,{transform:Le(d,p)})),t.isReleasing()&&o._reset(),this._isActive=!0,this._dragEvent=e,this._container=u,this._containingBlock=h,this._elementClientX=g.left,this._elementClientY=g.top,this._left=this._gridX=d,this._top=this._gridY=p,n.dragPlaceholder.enabled&&t._dragPlaceholder.create(),s._emit("dragInit",t,e),f&&(this._containerDiffX=i.left,this._containerDiffY=i.top,r.parentNode===u?(this._gridX=d-this._containerDiffX,this._gridY=p-this._containerDiffY):(this._left=d+this._containerDiffX,this._top=p+this._containerDiffY,u.appendChild(r),r.style[m]=Le(this._left,this._top))),ne(r,n.itemDraggingClass),this._bindScrollListeners(),s._emit("dragStart",t,e)}},qe.prototype._onMove=function(e){var t,i,r,s=this._item;if(s._isActive){var n=this._getGrid()._settings.dragAxis;if("y"!==n){var o=e.clientX-this._dragEvent.clientX;this._left+=o,this._gridX+=o,this._elementClientX+=o}if("x"!==n){var a=e.clientY-this._dragEvent.clientY;this._top+=a,this._gridY+=a,this._elementClientY+=a}this._dragEvent=e,t=s._id,i=this._prepareMove,r=this._applyMove,X.add(t+U,i,r,!0)}else this.stop()},qe.prototype._prepareMove=function(){this._item._isActive&&this._getGrid()._settings.dragSort&&this._checkHeuristics(this._dragEvent)&&this._checkOverlapDebounce()},qe.prototype._applyMove=function(){var e=this._item;e._isActive&&(e._element.style[m]=Le(this._left,this._top),this._getGrid()._emit("dragMove",e,this._dragEvent))},qe.prototype._onScroll=function(e){var t,i,r,s=this._item;s._isActive?(this._scrollEvent=e,t=s._id,i=this._prepareScroll,r=this._applyScroll,X.add(t+K,i,r,!0)):this.stop()},qe.prototype._prepareScroll=function(){var e=this._item;if(e._isActive){var t,i=e._element,r=this._getGrid(),s=r._settings,n=s.dragAxis,o=r._element,a=i.getBoundingClientRect(),l=this._elementClientX-a.left,u=this._elementClientY-a.top;this._container!==o&&(t=Ce(this._containingBlock,o),this._containerDiffX=t.left,this._containerDiffY=t.top),"y"!==n&&(this._left+=l,this._gridX=this._left-this._containerDiffX),"x"!==n&&(this._top+=u,this._gridY=this._top-this._containerDiffY),s.dragSort&&this._checkOverlapDebounce()}},qe.prototype._applyScroll=function(){var e=this._item;e._isActive&&(e._element.style[m]=Le(this._left,this._top),this._getGrid()._emit("dragScroll",e,this._scrollEvent))},qe.prototype._onEnd=function(e){var t=this._item,i=t._element,r=this._getGrid(),s=r._settings,n=t._release;t._isActive?($(t._id),ee(t._id),s.dragSort&&this._checkOverlapDebounce("finish"),this._unbindScrollListeners(),n._containerDiffX=this._containerDiffX,n._containerDiffY=this._containerDiffY,this._reset(),Me(i,s.itemDraggingClass),r._emit("dragEnd",t,e),this._isMigrating?this._finishMigration():n.start()):this.stop()},je.prototype._onLayoutStart=function(){var e,t,i,r=this._item,s=r.getGrid(),n=s._items.indexOf(r),o=s._layout.slots[2*n],a=s._layout.slots[2*n+1];if(this._didMigrate||r._left!==o||r._top!==a){if(o+=r._marginLeft,a+=r._marginTop,!(s._settings.dragPlaceholder.duration>0)||this._didMigrate){te(r._id);var l={transform:Le(o,a)};return this._animate.isAnimating()?this._animate.stop(l):x(this._element,l),void(this._didMigrate&&(s.getElement().appendChild(this._element),this._didMigrate=!1))}this._nextLeft=o,this._nextTop=a,e=r._id,t=this._setupAnimation,i=this._startAnimation,X.add(e+Z,t,i)}},je.prototype._setupAnimation=function(){if(this.isActive()){var e=Ve(this._element);this._currentLeft=e.x,this._currentTop=e.y}},je.prototype._startAnimation=function(){if(this.isActive()){var e=this._animate,t=this._currentLeft,i=this._currentTop,r=this._nextLeft,s=this._nextTop,n={transform:Le(r,s)};if(t!==r||i!==s){var o=this._item.getGrid()._settings.dragPlaceholder,a={transform:Le(t,i)};e.start(a,n,{duration:o.duration,easing:o.easing,onFinish:this._onLayoutEnd})}else e.isAnimating()&&e.stop(n)}},je.prototype._onLayoutEnd=function(){this._resetAfterLayout&&this.reset()},je.prototype._onReleaseEnd=function(e){if(e._id===this._item._id){if(!this._animate.isAnimating())return void this.reset();this._resetAfterLayout=!0}},je.prototype._onMigrate=function(e){if(e.item===this._item){var t=this._item.getGrid(),i=e.toGrid;t.off(p,this._onReleaseEnd),t.off(r,this._onLayoutStart),t.off(h,this._onMigrate),i.on(p,this._onReleaseEnd),i.on(r,this._onLayoutStart),i.on(h,this._onMigrate),this._didMigrate=!0}},je.prototype.create=function(){if(this.isActive())this._resetAfterLayout=!1;else{var e,t=this._item,i=t.getGrid(),s=i._settings,n=this._animate;e=S(s.dragPlaceholder.createElement)?s.dragPlaceholder.createElement(t):window.document.createElement("div"),this._element=e,n._element=e,this._className=s.itemPlaceholderClass||"",this._className&&ne(e,this._className);var o=t._left+t._marginLeft,a=t._top+t._marginTop;x(e,{display:"block",position:"absolute",left:"0",top:"0",width:t._width+"px",height:t._height+"px",transform:Le(o,a)}),i.on(r,this._onLayoutStart),i.on(p,this._onReleaseEnd),i.on(h,this._onMigrate),S(s.dragPlaceholder.onCreate)&&s.dragPlaceholder.onCreate(t,e),i.getElement().appendChild(e)}},je.prototype.reset=function(){if(this.isActive()){var e=this._element,t=this._item,i=t.getGrid(),s=i._settings,n=this._animate;this._resetAfterLayout=!1,te(t._id),n.stop(),n._element=null,i.off(p,this._onReleaseEnd),i.off(r,this._onLayoutStart),i.off(h,this._onMigrate),this._className&&(Me(e,this._className),this._className=""),e.parentNode.removeChild(e),this._element=null,S(s.dragPlaceholder.onRemove)&&s.dragPlaceholder.onRemove(t,e)}},je.prototype.updateDimensions=function(e,t){this.isActive()&&x(this._element,{width:e+"px",height:t+"px"})},je.prototype.isActive=function(){return!!this._element},je.prototype.destroy=function(){this.reset(),this._animate.destroy(),this._item=this._animate=null},Ge.prototype.add=function(e){return this._isDestroyed||this._queue.push(e),this},Ge.prototype.flush=function(e,t){if(this._isDestroyed)return this;var i,r=this._queue,s=r.length;if(!s)return this;var n=1===s,o=n?r[0]:r.slice(0);if(r.length=0,n)return o(e,t),this;for(i=0;i<s&&(o[i](e,t),!this._isDestroyed);i++);return this},Ge.prototype.destroy=function(){return this._isDestroyed||(this._isDestroyed=!0,this._queue.length=0),this},He.prototype.start=function(e,t){if(!this._isDestroyed){var i,r=this._item,s=r._element,n=r._release,o=r.getGrid()._settings,a=this._isActive,l=n._isActive&&!1===n._isPositioningStarted,u=l?o.dragReleaseDuration:o.layoutDuration,h=l?o.dragReleaseEasing:o.layoutEasing,c=!e&&!this._skipNextAnimation&&u>0;return a&&this._queue.flush(!0,r),l&&(n._isPositioningStarted=!0),S(t)&&this._queue.add(t),c?(this._isActive=!0,this._animateOptions.easing=h,this._animateOptions.duration=u,this._isInterrupted=a,d=r._id,p=this._setupAnimation,g=this._startAnimation,X.add(d+Q,p,g),this):(this._updateOffsets(),this._updateTargetStyles(),i=r._animate.isAnimating(),this.stop(!1,this._targetStyles),!i&&x(s,this._targetStyles),this._skipNextAnimation=!1,this._finish())}var d,p,g},He.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item;return i=r._id,X.cancel(i+Q),r._animate.stop(t),Me(r._element,r.getGrid()._settings.itemPositioningClass),this._isActive=!1,e&&this._queue.flush(!0,r),this},He.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0,{}),this._queue.destroy(),this._item=this._currentStyles=this._targetStyles=this._animateOptions=null,this._isDestroyed=!0),this},He.prototype._updateOffsets=function(){if(!this._isDestroyed){var e=this._item,t=e._migrate,i=e._release;this._offsetLeft=i._isActive?i._containerDiffX:t._isActive?t._containerDiffX:0,this._offsetTop=i._isActive?i._containerDiffY:t._isActive?t._containerDiffY:0}},He.prototype._updateTargetStyles=function(){this._isDestroyed||(this._targetStyles.transform=Le(this._item._left+this._offsetLeft,this._item._top+this._offsetTop))},He.prototype._finish=function(){if(!this._isDestroyed){var e=this._item,t=e._migrate,i=e._release;this._isActive&&(this._isActive=!1,Me(e._element,e.getGrid()._settings.itemPositioningClass)),i._isActive&&i.stop(),t._isActive&&t.stop(),this._queue.flush(!1,e)}},He.prototype._setupAnimation=function(){var e=Ve(this._item._element);this._currentLeft=e.x,this._currentTop=e.y},He.prototype._startAnimation=function(){var e=this._item,t=e.getGrid()._settings;if(this._updateOffsets(),this._updateTargetStyles(),e._left===this._currentLeft-this._offsetLeft&&e._top===this._currentTop-this._offsetTop)return this._isInterrupted&&this.stop(!1,this._targetStyles),this._isActive=!1,void this._finish();this._isInterrupted||ne(e._element,t.itemPositioningClass),this._currentStyles.transform=Le(this._currentLeft,this._currentTop),e._animate.start(this._currentStyles,this._targetStyles,this._animateOptions)};var Ye={};function Fe(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._container=!1,this._containerDiffX=0,this._containerDiffY=0}Fe.prototype.start=function(e,t,i){if(this._isDestroyed)return this;var r,s,n,o,a,l,p,g,f=this._item,v=f._element,_=f.isVisible(),y=f.getGrid(),b=y._settings,w=e._settings,C=e._element,T=e._items,S=y._items.indexOf(f),P=i||window.document.body;if("number"==typeof t)r=le(T,t,!0);else{if(!(s=e._getItem(t)))return this;r=T.indexOf(s)}return(f.isPositioning()||this._isActive||f.isReleasing())&&(p=(l=Ve(v)).x,g=l.y),f.isPositioning()&&f._layout.stop(!0,{transform:Le(p,g)}),this._isActive&&(p-=this._containerDiffX,g-=this._containerDiffY,this.stop(!0,{transform:Le(p,g)})),f.isReleasing()&&(p-=f._release._containerDiffX,g-=f._release._containerDiffY,f._release.stop(!0,{transform:Le(p,g)})),f._visibility._stopAnimation(),f._drag&&f._drag.destroy(),f._visibility._queue.flush(!0,f),y._hasListeners(h)&&y._emit(h,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),e._hasListeners(d)&&e._emit(d,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),Me(v,b.itemClass),Me(v,b.itemVisibleClass),Me(v,b.itemHiddenClass),ne(v,w.itemClass),ne(v,_?w.itemVisibleClass:w.itemHiddenClass),y._items.splice(S,1),ae(T,f,r),f._gridId=e._id,P!==(n=v.parentNode)&&(P.appendChild(v),o=Ce(P,n,!0),l||(p=(l=Ve(v)).x,g=l.y),v.style[m]=Le(p+o.left,g+o.top)),f._child.removeAttribute("style"),x(f._child,_?w.visibleStyles:w.hiddenStyles),v.style.display=_?"block":"hidden",a=Ce(P,C,!0),f._refreshDimensions(),f._refreshSortData(),f._drag=w.dragEnabled?new qe(f):null,this._isActive=!0,this._container=P,this._containerDiffX=a.left,this._containerDiffY=a.top,y._hasListeners(u)&&y._emit(u,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),e._hasListeners(c)&&e._emit(c,{item:f,fromGrid:y,fromIndex:S,toGrid:e,toIndex:r}),this},Fe.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item,s=r._element,n=r.getGrid()._element;return this._container!==n&&(t||(e?(i=Ve(s),Ye.transform=Le(i.x-this._containerDiffX,i.y-this._containerDiffY)):Ye.transform=Le(r._left,r._top),t=Ye),n.appendChild(s),x(s,t)),this._isActive=!1,this._container=null,this._containerDiffX=0,this._containerDiffY=0,this},Fe.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0),this};var Xe={};function Qe(e){this._item=e,this._isActive=!1,this._isDestroyed=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0}function We(e){var t=e._isActive,i=e._element,r=e.getGrid()._settings;this._item=e,this._isDestroyed=!1,this._isHidden=!t,this._isHiding=!1,this._isShowing=!1,this._queue=new Ge,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),i.style.display=t?"block":"none",ne(i,t?r.itemVisibleClass:r.itemHiddenClass),x(e._child,t?r.visibleStyles:r.hiddenStyles)}Qe.prototype.start=function(){if(this._isDestroyed||this._isActive)return this;var e=this._item,t=e.getGrid();return this._isActive=!0,ne(e._element,t._settings.itemReleasingClass),t._emit("dragReleaseStart",e),e._layout.start(!1),this},Qe.prototype.stop=function(e,t){if(this._isDestroyed||!this._isActive)return this;var i,r=this._item,s=r._element,n=r.getGrid(),o=n._element;return this._reset(),s.parentNode!==o&&(t||(e?(i=Ve(s),Xe.transform=Le(i.x-this._containerDiffX,i.y-this._containerDiffY)):Xe.transform=Le(r._left,r._top),t=Xe),o.appendChild(s),x(s,t)),e||n._emit(p,r),this},Qe.prototype.destroy=function(){return this._isDestroyed||(this.stop(!0),this._item=null,this._isDestroyed=!0),this},Qe.prototype._reset=function(){if(!this._isDestroyed){var e=this._item;this._isActive=!1,this._isPositioningStarted=!1,this._containerDiffX=0,this._containerDiffY=0,Me(e._element,e.getGrid()._settings.itemReleasingClass)}},We.prototype.show=function(e,t){if(this._isDestroyed)return this;var i=this._item,r=i._element,s=this._queue,n=S(t)?t:null,o=i.getGrid()._settings;return this._isShowing||this._isHidden?this._isShowing&&!e?(n&&s.add(n),this):(this._isShowing||(s.flush(!0,i),Me(r,o.itemHiddenClass),ne(r,o.itemVisibleClass),this._isHiding||(r.style.display="block")),n&&s.add(n),i._isActive=this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,e,this._finishShow),this):(n&&n(!1,i),this)},We.prototype.hide=function(e,t){if(this._isDestroyed)return this;var i=this._item,r=i._element,s=this._queue,n=S(t)?t:null,o=i.getGrid()._settings;return!this._isHiding&&this._isHidden?(n&&n(!1,i),this):this._isHiding&&!e?(n&&s.add(n),this):(this._isHiding||(s.flush(!0,i),ne(r,o.itemHiddenClass),Me(r,o.itemVisibleClass)),n&&s.add(n),this._isHidden=this._isHiding=!0,i._isActive=this._isShowing=!1,this._startAnimation(!1,e,this._finishHide),this)},We.prototype.destroy=function(){if(this._isDestroyed)return this;var e=this._item,t=e._element,i=e.getGrid(),r=this._queue,s=i._settings;return this._stopAnimation({}),r.flush(!0,e).destroy(),Me(t,s.itemVisibleClass),Me(t,s.itemHiddenClass),this._item=null,this._isHiding=this._isShowing=!1,this._isDestroyed=this._isHidden=!0,this},We.prototype._startAnimation=function(e,t,i){if(!this._isDestroyed){var r,s=this._item,n=s.getGrid()._settings,o=e?n.visibleStyles:n.hiddenStyles,a=parseInt(e?n.showDuration:n.hideDuration)||0,l=(e?n.showEasing:n.hideEasing)||"ease",u=t||a<=0;if(o){if(J(s._id),u)return s._animateChild.isAnimating()?s._animateChild.stop(o):x(s._child,o),void(i&&i());h=s._id,c=function(){r=function(e,t){var i={};for(var r in t)i[r]=w(e,T(r));return i}(s._child,o)},d=function(){s._animateChild.start(r,o,{duration:a,easing:l,onFinish:i})},X.add(h+W,c,d)}else i&&i()}var h,c,d},We.prototype._stopAnimation=function(e){if(!this._isDestroyed){var t=this._item;J(t._id),t._animateChild.stop(e)}},We.prototype._finishShow=function(){this._isHidden||(this._isShowing=!1,this._queue.flush(!1,this._item))};var Ue={};We.prototype._finishHide=function(){if(this._isHidden){var e=this._item;this._isHiding=!1,Ue.transform=Le(0,0),e._layout.stop(!0,Ue),e._element.style.display="none",this._queue.flush(!1,e)}};var Ke,Ze,Je,$e,et=0;function tt(){return++et}function it(e,t,i){var r=e._settings;this._id=tt(),this._gridId=e._id,this._isDestroyed=!1,this._left=0,this._top=0,this._element=t,this._child=t.children[0],t.parentNode!==e._element&&e._element.appendChild(t),ne(t,r.itemClass),"boolean"!=typeof i&&(i="none"!==w(t,"display")),this._isActive=i,t.style.left="0",t.style.top="0",t.style[m]=Le(0,0),this._animate=new P(t),this._animateChild=new P(this._child),this._visibility=new We(this),this._layout=new He(this),this._migrate=new Fe(this),this._release=new Qe(this),this._dragPlaceholder=new je(this),this._drag=r.dragEnabled?new qe(this):null,this._refreshDimensions(),this._refreshSortData()}function rt(){this._slots=[],this._slotSizes=[],this._freeSlots=[],this._newSlots=[],this._rectItem={},this._rectStore=[],this._rectId=0,this._layout={slots:null,setWidth:!1,setHeight:!1,width:!1,height:!1},this._sortRectsLeftTop=this._sortRectsLeftTop.bind(this),this._sortRectsTopLeft=this._sortRectsTopLeft.bind(this)}it.prototype.getGrid=function(){return e[this._gridId]},it.prototype.getElement=function(){return this._element},it.prototype.getWidth=function(){return this._width},it.prototype.getHeight=function(){return this._height},it.prototype.getMargin=function(){return{left:this._marginLeft,right:this._marginRight,top:this._marginTop,bottom:this._marginBottom}},it.prototype.getPosition=function(){return{left:this._left,top:this._top}},it.prototype.isActive=function(){return this._isActive},it.prototype.isVisible=function(){return!!this._visibility&&!this._visibility._isHidden},it.prototype.isShowing=function(){return!(!this._visibility||!this._visibility._isShowing)},it.prototype.isHiding=function(){return!(!this._visibility||!this._visibility._isHiding)},it.prototype.isPositioning=function(){return!(!this._layout||!this._layout._isActive)},it.prototype.isDragging=function(){return!(!this._drag||!this._drag._isActive)},it.prototype.isReleasing=function(){return!(!this._release||!this._release._isActive)},it.prototype.isDestroyed=function(){return this._isDestroyed},it.prototype._refreshDimensions=function(){if(!this._isDestroyed&&!this._visibility._isHidden){var e=this._element,t=this._dragPlaceholder,i=e.getBoundingClientRect();this._width=i.width,this._height=i.height,this._marginLeft=Math.max(0,ve(e,"margin-left")),this._marginRight=Math.max(0,ve(e,"margin-right")),this._marginTop=Math.max(0,ve(e,"margin-top")),this._marginBottom=Math.max(0,ve(e,"margin-bottom")),t&&t.updateDimensions(this._width,this._height)}},it.prototype._refreshSortData=function(){if(!this._isDestroyed){var e,t=this._sortData={},i=this.getGrid()._settings.sortData;for(e in i)t[e]=i[e](this,this._element)}},it.prototype._destroy=function(e){if(!this._isDestroyed){var t=this._element,i=this.getGrid(),r=i._settings,s=i._items.indexOf(this);this._release.destroy(),this._migrate.destroy(),this._layout.destroy(),this._visibility.destroy(),this._animate.destroy(),this._animateChild.destroy(),this._dragPlaceholder.destroy(),this._drag&&this._drag.destroy(),t.removeAttribute("style"),this._child.removeAttribute("style"),Me(t,r.itemClass),s>-1&&i._items.splice(s,1),e&&t.parentNode.removeChild(t),this._isActive=!1,this._isDestroyed=!0}},rt.prototype.getLayout=function(e,t,i,r,s){var n,o=this._layout,a=!(!s||!s.fillGaps),l=!(!s||!s.horizontal),u=!(!s||!s.alignRight),h=!(!s||!s.alignBottom),c=!(!s||!s.rounding),d=this._slotSizes;if(o.slots=r||this._slots,o.width=l?0:c?Math.round(t):t,o.height=l?c?Math.round(i):i:0,o.setWidth=l,o.setHeight=!l,o.slots.length=0,d.length=0,!e.length)return o;for(n=0;n<e.length;n++)this._addSlot(e[n],l,a,c,u||h);if(u)for(n=0;n<o.slots.length;n+=2)o.slots[n]=o.width-(o.slots[n]+d[n]);if(h)for(n=1;n<o.slots.length;n+=2)o.slots[n]=o.height-(o.slots[n]+d[n]);return d.length=0,this._freeSlots.length=0,this._newSlots.length=0,this._rectId=0,o},rt.prototype._addSlot=($e={},function(e,t,i,r,s){var n,o,a,l,u,h,c=this._layout,d=this._freeSlots,p=this._newSlots;for(p.length=0,$e.left=null,$e.top=null,$e.width=e._width+e._marginLeft+e._marginRight,$e.height=e._height+e._marginTop+e._marginBottom,r&&($e.width=Math.round($e.width),$e.height=Math.round($e.height)),u=0;u<d.length;u++)if((o=d[u])&&(n=this._getRect(o),$e.width<=n.width+.001&&$e.height<=n.height+.001)){$e.left=n.left,$e.top=n.top;break}for(null===$e.left&&($e.left=t?c.width:0,$e.top=t?0:c.height,i||(l=!0)),!t&&$e.top+$e.height>c.height&&($e.left>0&&p.push(this._addRect(0,c.height,$e.left,1/0)),$e.left+$e.width<c.width&&p.push(this._addRect($e.left+$e.width,c.height,c.width-$e.left-$e.width,1/0)),c.height=$e.top+$e.height),t&&$e.left+$e.width>c.width&&($e.top>0&&p.push(this._addRect(c.width,0,1/0,$e.top)),$e.top+$e.height<c.height&&p.push(this._addRect(c.width,$e.top+$e.height,1/0,c.height-$e.top-$e.height)),c.width=$e.left+$e.width),u=i?0:l?d.length:u;u<d.length;u++)if(o=d[u])for(n=this._getRect(o),a=this._splitRect(n,$e),h=0;h<a.length;h++)o=a[h],(n=this._getRect(o)).width>.49&&n.height>.49&&(!t&&n.top<c.height||t&&n.left<c.width)&&p.push(o);p.length&&this._purgeRects(p).sort(t?this._sortRectsLeftTop:this._sortRectsTopLeft),t?c.width=Math.max(c.width,$e.left+$e.width):c.height=Math.max(c.height,$e.top+$e.height),c.slots.push($e.left,$e.top),s&&this._slotSizes.push($e.width,$e.height),this._freeSlots=p,this._newSlots=d}),rt.prototype._addRect=function(e,t,i,r){var s=++this._rectId,n=this._rectStore;return n[s]=e||0,n[++this._rectId]=t||0,n[++this._rectId]=i||0,n[++this._rectId]=r||0,s},rt.prototype._getRect=function(e,t){var i=t||this._rectItem,r=this._rectStore;return i.left=r[e]||0,i.top=r[++e]||0,i.width=r[++e]||0,i.height=r[++e]||0,i},rt.prototype._splitRect=(Je=[],function(e,t){return Je.length=0,this._doRectsOverlap(e,t)?(e.left<t.left&&Je.push(this._addRect(e.left,e.top,t.left-e.left,e.height)),e.left+e.width>t.left+t.width&&Je.push(this._addRect(t.left+t.width,e.top,e.left+e.width-(t.left+t.width),e.height)),e.top<t.top&&Je.push(this._addRect(e.left,e.top,e.width,t.top-e.top)),e.top+e.height>t.top+t.height&&Je.push(this._addRect(e.left,t.top+t.height,e.width,e.top+e.height-(t.top+t.height))),Je):(Je.push(this._addRect(e.left,e.top,e.width,e.height)),Je)}),rt.prototype._doRectsOverlap=function(e,t){return!(e.left+e.width<=t.left||t.left+t.width<=e.left||e.top+e.height<=t.top||t.top+t.height<=e.top)},rt.prototype._isRectWithinRect=function(e,t){return e.left>=t.left&&e.top>=t.top&&e.left+e.width<=t.left+t.width&&e.top+e.height<=t.top+t.height},rt.prototype._purgeRects=(Ke={},Ze={},function(e){for(var t,i=e.length;i--;)if(t=e.length,e[i])for(this._getRect(e[i],Ke);t--;)if(e[t]&&i!==t&&this._isRectWithinRect(Ke,this._getRect(e[t],Ze))){e[i]=0;break}return e}),rt.prototype._sortRectsTopLeft=function(){var e={},t={};return function(i,r){return this._getRect(i,e),this._getRect(r,t),e.top<t.top?-1:e.top>t.top?1:e.left<t.left?-1:e.left>t.left?1:0}}(),rt.prototype._sortRectsLeftTop=function(){var e={},t={};return function(i,r){return this._getRect(i,e),this._getRect(r,t),e.left<t.left?-1:e.left>t.left?1:e.top<t.top?-1:e.top>t.top?1:0}}();function st(e){var t=Object.prototype.toString.call(e);return"[object HTMLCollection]"===t||"[object NodeList]"===t}var nt=Object.prototype.toString;function ot(e){return"object"==typeof e&&"[object Object]"===nt.call(e)}function at(e){return st(e)?Array.prototype.slice.call(e):Array.prototype.concat(e)}var lt=new rt,ut=function(){},ht="number",ct="string",dt="instant";function pt(t,i){var r,s,n,o,a,l,u=this;if(!((t=this._element=typeof t===ct?window.document.querySelector(t):t).getRootNode?t.getRootNode({composed:!0})===document:window.document.body.contains(t))||t===window.document.documentElement)throw new Error("Container element must be an existing DOM element");S((r=this._settings=(o=pt.defaultOptions,a=i,l=gt({},o),a&&(l=gt(l,a)),l.visibleStyles=(a||0).visibleStyles||(o||0).visibleStyles,l.hiddenStyles=(a||0).hiddenStyles||(o||0).hiddenStyles,l)).dragSort)||(r.dragSort=!!r.dragSort),this._id=tt(),e[this._id]=u,this._isDestroyed=!1,this._layout={id:0,items:[],slots:[],setWidth:!1,setHeight:!1,width:0,height:0},this._emitter=new g,ne(t,r.containerClass),this._items=[],typeof(s=r.items)===ct?at(t.children).forEach((function(e){("*"===s||se(e,s))&&u._items.push(new it(u,e))})):(Array.isArray(s)||st(s))&&(this._items=at(s).map((function(e){return new it(u,e)}))),typeof(n=r.layoutOnResize)!==ht&&(n=!0===n?0:-1),n>=0&&window.addEventListener("resize",u._resizeHandler=ge((function(){u.refreshItems().layout()}),n)),r.layoutOnInit&&this.layout(!0)}function gt(e,t){var i,r,s,n=Object.keys(t),o=n.length;for(s=0;s<o;s++)i=ot(t[r=n[s]]),ot(e[r])&&i?e[r]=gt(gt({},e[r]),t[r]):i?e[r]=gt({},t[r]):Array.isArray(t[r])?e[r]=t[r].slice(0):e[r]=t[r];return e}return pt.Item=it,pt.ItemLayout=He,pt.ItemVisibility=We,pt.ItemMigrate=Fe,pt.ItemAnimate=P,pt.ItemDrag=qe,pt.ItemRelease=Qe,pt.ItemDragPlaceholder=je,pt.Emitter=g,pt.Dragger=Y,pt.Packer=rt,pt.defaultOptions={items:"*",showDuration:300,showEasing:"ease",hideDuration:300,hideEasing:"ease",visibleStyles:{opacity:"1",transform:"scale(1)"},hiddenStyles:{opacity:"0",transform:"scale(0.5)"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!0},layoutOnResize:100,layoutOnInit:!0,layoutDuration:300,layoutEasing:"ease",sortData:null,dragEnabled:!1,dragContainer:null,dragStartPredicate:{distance:0,delay:0,handle:!1},dragAxis:null,dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:i},dragReleaseDuration:300,dragReleaseEasing:"ease",dragCssProps:{touchAction:"none",userSelect:"none",userDrag:"none",tapHighlightColor:"rgba(0, 0, 0, 0)",touchCallout:"none",contentZooming:"none"},dragPlaceholder:{enabled:!1,duration:300,easing:"ease",createElement:null,onCreate:null,onRemove:null},containerClass:"muuri",itemClass:"muuri-item",itemVisibleClass:"muuri-item-shown",itemHiddenClass:"muuri-item-hidden",itemPositioningClass:"muuri-item-positioning",itemDraggingClass:"muuri-item-dragging",itemReleasingClass:"muuri-item-releasing",itemPlaceholderClass:"muuri-item-placeholder"},pt.prototype.on=function(e,t){return this._emitter.on(e,t),this},pt.prototype.off=function(e,t){return this._emitter.off(e,t),this},pt.prototype.getElement=function(){return this._element},pt.prototype.getItems=function(e){if(this._isDestroyed||!e&&0!==e)return this._items.slice(0);var t,i,r=[],s=at(e);for(i=0;i<s.length;i++)(t=this._getItem(s[i]))&&r.push(t);return r},pt.prototype.refreshItems=function(e){if(this._isDestroyed)return this;var t,i=this.getItems(e);for(t=0;t<i.length;t++)i[t]._refreshDimensions();return this},pt.prototype.refreshSortData=function(e){if(this._isDestroyed)return this;var t,i=this.getItems(e);for(t=0;t<i.length;t++)i[t]._refreshSortData();return this},pt.prototype.synchronize=function(){if(this._isDestroyed)return this;var e,t,i,r=this._element,s=this._items;if(s.length){for(i=0;i<s.length;i++)(t=s[i]._element).parentNode===r&&(e=e||window.document.createDocumentFragment()).appendChild(t);e&&r.appendChild(e)}return this._emit("synchronize"),this},pt.prototype.layout=function(e,t){if(this._isDestroyed)return this;var i,n,o,a=this,l=this._element,u=this._updateLayout(),h=u.id,c=u.items.length,d=c;function p(){if(!(--d>0)){var i=a._layout.id!==h,r=S(e)?e:t;S(r)&&r(i,u.items.slice(0)),!i&&a._hasListeners(s)&&a._emit(s,u.items.slice(0))}}if((u.setHeight&&typeof u.height===ht||u.setWidth&&typeof u.width===ht)&&(i="border-box"===w(l,"box-sizing")),u.setHeight&&(typeof u.height===ht?l.style.height=(i?u.height+this._borderTop+this._borderBottom:u.height)+"px":l.style.height=u.height),u.setWidth&&(typeof u.width===ht?l.style.width=(i?u.width+this._borderLeft+this._borderRight:u.width)+"px":l.style.width=u.width),this._hasListeners(r)&&this._emit(r,u.items.slice(0)),!c)return p(),this;for(o=0;o<c;o++)(n=u.items[o])&&(n._left=u.slots[2*o],n._top=u.slots[2*o+1],n.isDragging()?p():n._layout.start(!0===e,p));return this},pt.prototype.add=function(e,t){if(this._isDestroyed||!e)return[];var i=at(e);if(!i.length)return i;var r,s,n=t||0,o=n.layout?n.layout:void 0===n.layout,a=this._items,l=!1;for(s=0;s<i.length;s++)r=new it(this,i[s],n.isActive),i[s]=r,r._isActive&&(l=!0,r._layout._skipNextAnimation=!0);return ae(a,i,n.index),this._hasListeners("add")&&this._emit("add",i.slice(0)),l&&o&&this.layout(o===dt,S(o)?o:void 0),i},pt.prototype.remove=function(e,t){if(this._isDestroyed)return this;var i,r,s=t||0,o=s.layout?s.layout:void 0===s.layout,a=!1,l=this.getItems(),u=this.getItems(e),h=[];for(r=0;r<u.length;r++)i=u[r],h.push(l.indexOf(i)),i._isActive&&(a=!0),i._destroy(s.removeElements);return this._hasListeners(n)&&this._emit(n,u.slice(0),h),a&&o&&this.layout(o===dt,S(o)?o:void 0),u},pt.prototype.show=function(e,t){return this._isDestroyed||this._setItemsVisibility(e,!0,t),this},pt.prototype.hide=function(e,t){return this._isDestroyed||this._setItemsVisibility(e,!1,t),this},pt.prototype.filter=function(e,t){if(this._isDestroyed||!this._items.length)return this;var i,r,s=[],n=[],a=typeof e===ct,l=S(e),u=t||0,h=!0===u.instant,c=u.layout?u.layout:void 0===u.layout,d=S(u.onFinish)?u.onFinish:null,p=-1,g=ut;if(d&&(g=function(){++p&&d(s.slice(0),n.slice(0))}),l||a)for(r=0;r<this._items.length;r++)i=this._items[r],(l?e(i):se(i._element,e))?s.push(i):n.push(i);return s.length?this.show(s,{instant:h,onFinish:g,layout:!1}):g(),n.length?this.hide(n,{instant:h,onFinish:g,layout:!1}):g(),(s.length||n.length)&&(this._hasListeners(o)&&this._emit(o,s.slice(0),n.slice(0)),c&&this.layout(c===dt,S(c)?c:void 0)),this},pt.prototype.sort=function(){var e,t,i,r;function s(e){for(var t={},i=0;i<e.length;i++)t[e[i]._id]=i;return t}function n(e,i){var s=r[e._id],n=r[i._id];return t?n-s:s-n}function o(o,a){for(var l,u,h,c,d=0,p=0;p<e.length;p++)if(l=e[p][0],u=e[p][1],h=(o._sortData?o:o._refreshSortData())._sortData[l],c=(a._sortData?a:a._refreshSortData())._sortData[l],d="desc"===u||!u&&t?c<h?-1:c>h?1:0:h<c?-1:h>c?1:0)return d;return d||(r||(r=s(i)),d=n(o,a)),d}function l(o,a){var l=e(o,a);return t&&l&&(l=-l),l||(r||(r=s(i)),n(o,a))}return function(s,n){if(this._isDestroyed||this._items.length<2)return this;var u,h=this._items,c=n||0,d=c.layout?c.layout:void 0===c.layout;if(e=s,t=!!c.descending,i=h.slice(0),r=null,S(e))h.sort(l);else if(typeof e===ct)e=s.trim().split(" ").map((function(e){return e.split(":")})),h.sort(o);else{if(!Array.isArray(e))return this;if(e.length!==h.length)throw new Error("[Muuri] sort reference items do not match with grid items.");for(u=0;u<h.length;u++){if(e.indexOf(h[u])<0)throw new Error("[Muuri] sort reference items do not match with grid items.");h[u]=e[u]}t&&h.reverse()}return this._hasListeners(a)&&this._emit(a,h.slice(0),i),d&&this.layout(d===dt,S(d)?d:void 0),this}}(),pt.prototype.move=function(e,r,s){if(this._isDestroyed||this._items.length<2)return this;var n,o,a=this._items,u=s||0,h=u.layout?u.layout:void 0===u.layout,c=u.action===t,d=c?t:i,p=this._getItem(e),g=this._getItem(r);return p&&g&&p!==g&&(n=a.indexOf(p),o=a.indexOf(g),c?he(a,n,o):ue(a,n,o),this._hasListeners(l)&&this._emit(l,{item:p,fromIndex:n,toIndex:o,action:d}),h&&this.layout(h===dt,S(h)?h:void 0)),this},pt.prototype.send=function(e,t,i,r){if(this._isDestroyed||t._isDestroyed||this===t)return this;if(!(e=this._getItem(e)))return this;var s=r||0,n=s.appendTo||window.document.body,o=s.layoutSender?s.layoutSender:void 0===s.layoutSender,a=s.layoutReceiver?s.layoutReceiver:void 0===s.layoutReceiver;return e._migrate.start(t,i,n),e._migrate._isActive&&e._isActive&&(o&&this.layout(o===dt,S(o)?o:void 0),a&&t.layout(a===dt,S(a)?a:void 0)),this},pt.prototype.destroy=function(t){if(this._isDestroyed)return this;var i,r=this._element,s=this._items.slice(0);for(this._resizeHandler&&window.removeEventListener("resize",this._resizeHandler),i=0;i<s.length;i++)s[i]._destroy(t);return Me(r,this._settings.containerClass),r.style.height="",r.style.width="",this._emit("destroy"),this._emitter.destroy(),e[this._id]=void 0,this._isDestroyed=!0,this},pt.prototype._getItem=function(e){if(this._isDestroyed||!e&&0!==e)return null;if(typeof e===ht)return this._items[e>-1?e:this._items.length+e]||null;if(e instanceof it)return e._gridId===this._id?e:null;for(var t=0;t<this._items.length;t++)if(this._items[t]._element===e)return this._items[t];return null},pt.prototype._updateLayout=function(){var e,t,i,r,s=this._layout,n=this._settings.layout;for(++s.id,s.items.length=0,r=0;r<this._items.length;r++)this._items[r]._isActive&&s.items.push(this._items[r]);return this._refreshDimensions(),e=this._width-this._borderLeft-this._borderRight,t=this._height-this._borderTop-this._borderBottom,i=S(n)?n(s.items,e,t):lt.getLayout(s.items,e,t,s.slots,n),s.slots=i.slots,s.setWidth=Boolean(i.setWidth),s.setHeight=Boolean(i.setHeight),s.width=i.width,s.height=i.height,s},pt.prototype._emit=function(){this._isDestroyed||this._emitter.emit.apply(this._emitter,arguments)},pt.prototype._hasListeners=function(e){var t=this._emitter._events[e];return!(!t||!t.length)},pt.prototype._updateBoundingRect=function(){var e=this._element.getBoundingClientRect();this._width=e.width,this._height=e.height,this._left=e.left,this._top=e.top},pt.prototype._updateBorders=function(e,t,i,r){var s=this._element;e&&(this._borderLeft=ve(s,"border-left-width")),t&&(this._borderRight=ve(s,"border-right-width")),i&&(this._borderTop=ve(s,"border-top-width")),r&&(this._borderBottom=ve(s,"border-bottom-width"))},pt.prototype._refreshDimensions=function(){this._updateBoundingRect(),this._updateBorders(1,1,1,1)},pt.prototype._setItemsVisibility=function(e,t,i){var r,s,n=this,o=this.getItems(e),a=i||0,l=!0===a.instant,u=a.onFinish,h=a.layout?a.layout:void 0===a.layout,c=o.length,d=t?"showStart":"hideStart",p=t?"showEnd":"hideEnd",g=t?"show":"hide",f=!1,m=[],v=[];if(c){for(this._hasListeners(d)&&this._emit(d,o.slice(0)),s=0;s<o.length;s++)r=o[s],(t&&!r._isActive||!t&&r._isActive)&&(f=!0),t&&!r._isActive&&(r._layout._skipNextAnimation=!0),t&&r._visibility._isHidden&&v.push(r),r._visibility[g](l,(function(e,t){e||m.push(t),--c<1&&(S(u)&&u(m.slice(0)),n._hasListeners(p)&&n._emit(p,m.slice(0)))}));v.length&&this.refreshItems(v),f&&h&&this.layout(h===dt,S(h)?h:void 0)}else S(u)&&u(o)},pt}()},873:(e,t,i)=>{"use strict";i.d(t,{MH:()=>o,X3:()=>s,er:()=>n});var r=i(555);function s(e,t){var i=t.dataNames,s=[],n=t.getValues(),o={};n.forEach((function(e,t){o[e]=t}));var a=-1!==n.indexOf(void 0),l=t.getSeriesValues(),u={};l.forEach((function(e,t){u[e]=t}));for(var h=l.length||1,c=0;c<i.length;++c){for(var d=new Array,p=0;p<h;++p)d.push(new Array(n.length).fill(0));s.push(d)}var g=function(e){return null!==e&&"object"==typeof e?o[e.value]:o[e]};return e.forEach((function(e){i.forEach((function(t,i){var n=e[t];if(void 0!==n||a){var o=Array.isArray(n)?n:[n];if(l.length>0){var h=e[r.M.seriesMarkerKey];if(void 0!==h){var c=u[h]||0;o.forEach((function(e){var t=g(e);s[i][c][t]++}))}else o.forEach((function(e){l.forEach((function(t){if(void 0!==e[t]){var r=u[t]||0;(Array.isArray(e[t])?e[t]:[e[t]]).forEach((function(e){var t=g(e);s[i][r][t]++}))}}))}))}else o.forEach((function(e){var t=g(e);s[0][0][t]++}))}}))})),t.dataNames.length>1?s:s[0]}function n(e,t,i){var r=[];0===i.length&&i.push("");for(var s=0;s<i.length;++s)r.push(t.map((function(e){return 0}))),e[i[s]].forEach((function(e){for(var i=0;i<t.length;++i)if(t[i].start<=e&&(e<t[i].end||i==t.length-1)){r[s][i]++;break}}));return r}function o(e,t){var i=Number.MAX_VALUE,r=-Number.MAX_VALUE,s=0,n=0;return e.forEach((function(e){if(void 0!==e[t]){var o=+e[t];n++,s+=o,i>o&&(i=o),r<o&&(r=o)}})),n>0&&(s/=n),[s=Math.ceil(100*s)/100,i,r]}},928:(e,t,i)=>{"use strict";i.d(t,{o:()=>l});var r=i(87),s=i(156),n=i(183),o=i(240),a=i(557),l=function(e){function t(t,i,r,s){return e.call(this,t,i,r,s||"boolean")||this}return(0,r.C6)(t,e),t.prototype.getCorrectAnswerText=function(){var e=this.booleanQuestion.correctAnswer;return void 0!==this.booleanQuestion.valueTrue&&this.booleanQuestion.valueTrue===e||e?this.booleanQuestion.locLabelTrue.textOrHtml:void 0!==this.booleanQuestion.valueFalse&&this.booleanQuestion.valueFalse===e||!e?this.booleanQuestion.locLabelFalse.textOrHtml:e},Object.defineProperty(t.prototype,"booleanQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),t.prototype.getSelectedItemByText=function(e){var t=this.getLabels(),i=this.getValues();return new s.ItemValue(i[t.indexOf(e)],e)},t.prototype.getValues=function(){var e=[void 0===this.booleanQuestion.valueTrue||this.booleanQuestion.valueTrue,void 0!==this.booleanQuestion.valueFalse&&this.booleanQuestion.valueFalse];return this.showMissingAnswers&&e.push(void 0),e},t.prototype.getLabels=function(){var e=[].concat(this.getValues());return void 0!==this.booleanQuestion.labelTrue&&(e[0]=this.booleanQuestion.locLabelTrue.textOrHtml),void 0!==this.booleanQuestion.labelFalse&&(e[1]=this.booleanQuestion.locLabelFalse.textOrHtml),this.showMissingAnswers&&(e[2]=o.qG.getString("missingAnswersLabel")),e},t.trueColor="",t.falseColor="",t}(n.o);a.g.registerVisualizer("boolean",l)},931:(e,t,i)=>{"use strict";i.d(t,{R:()=>u});var r=i(87),s=i(267),n=i(240),o=i(70),a=i(557),l=i(873),u=function(e){function t(t,i,r,a){void 0===r&&(r={});var l=e.call(this,t,i,r,a||"number")||this;return s.w.chartAdapterType&&(l._chartAdapter=new s.w.chartAdapterType(l),l.chartTypes=l._chartAdapter.getChartTypes(),l.chartType=l.chartTypes[0]),!1!==l.options.allowChangeVisualizerType&&l.registerToolbarItem("changeChartType",(function(){return l.chartTypes.length>1?o.gf.createSelector(l.chartTypes.map((function(e){return{value:e,text:n.qG.getString("chartType_"+e)}})),(function(e){return l.chartType===e.value}),(function(e){l.setChartType(e.target.value)})):null})),l}return(0,r.C6)(t,e),t.prototype.onDataChanged=function(){this._resultAverage=void 0,this._resultMin=void 0,this._resultMax=void 0,e.prototype.onDataChanged.call(this)},t.prototype.onChartTypeChanged=function(){},t.prototype.setChartType=function(e){-1!==this.chartTypes.indexOf(e)&&this.chartType!==e&&(this.chartType=e,this.onChartTypeChanged(),this.contentContainer&&(this.destroyContent(this.contentContainer),this.renderContent(this.contentContainer)),this.invokeOnUpdate())},t.prototype.destroy=function(){this._resultAverage=void 0,this._resultMin=void 0,this._resultMax=void 0,e.prototype.destroy.call(this)},t.prototype.generateText=function(e,i,r){var s=[];if(5===r)s=["very high ("+e+")","high","medium","low","very low ("+i+")"];else{s.push(e);for(var n=0;n<r-2;n++)s.push("");s.push(i)}return t.generateTextsCallback?t.generateTextsCallback(this.question,e,i,r,s):s},t.prototype.generateValues=function(e,t){for(var i=[],r=0;r<t;r++)i.push(e/t);return i.push(e),i},t.prototype.generateColors=function(e,t,i){for(var r=this.getColors(),s=[],n=0;n<i;n++)s.push(r[n]);return s.push("rgba(255, 255, 255, 0)"),s},t.prototype.convertFromExternalData=function(e){return[e.value||0,e.minValue||0,e.maxValue||0]},t.prototype.getCalculatedValuesCore=function(){var e;return void 0!==this._resultAverage&&void 0!==this._resultMin&&void 0!==this._resultMax||(e=(0,l.MH)(this.surveyData,this.dataNames[0]),this._resultAverage=e[0],this._resultMin=e[1],this._resultMax=e[2]),[this._resultAverage,this._resultMin,this._resultMax]},t.stepsCount=5,t.showAsPercentage=!1,t}(s.w);a.g.registerVisualizer("number",u,200),a.g.registerVisualizer("rating",u,200),a.g.registerVisualizer("expression",u)},999:e=>{e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g><polygon points="8,3 10,5 11,4 8,1 5,4 6,5 "></polygon><polygon points="8,13 6,11 5,12 8,15 11,12 10,11"></polygon></g></svg>'}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";s.r(n),s.d(n,{AlternativeVisualizersWrapper:()=>D.AlternativeVisualizersWrapper,BooleanModel:()=>D.BooleanModel,BooleanPlotly:()=>w,DataProvider:()=>D.DataProvider,DocumentHelper:()=>D.DocumentHelper,GaugePlotly:()=>P,HistogramModel:()=>D.HistogramModel,HistogramPlotly:()=>C,Matrix:()=>D.Matrix,MatrixDropdownGroupedPlotly:()=>S,MatrixPlotly:()=>T,NpsAdapter:()=>D.NpsAdapter,NpsVisualizer:()=>D.NpsVisualizer,NpsVisualizerWidget:()=>D.NpsVisualizerWidget,NumberModel:()=>D.NumberModel,PivotModel:()=>D.PivotModel,PivotPlotly:()=>x,PlotlyChartAdapter:()=>z,PlotlySetup:()=>a,PostponeHelper:()=>D.PostponeHelper,RankingModel:()=>D.RankingModel,RankingPlotly:()=>A,SelectBase:()=>D.SelectBase,SelectBasePlotly:()=>b,StatisticsTable:()=>D.StatisticsTable,StatisticsTableAdapter:()=>D.StatisticsTableAdapter,StatisticsTableBoolean:()=>D.StatisticsTableBoolean,Text:()=>D.Text,TextTableAdapter:()=>D.TextTableAdapter,VisualizationComposite:()=>D.VisualizationComposite,VisualizationManager:()=>D.VisualizationManager,VisualizationMatrixDropdown:()=>D.VisualizationMatrixDropdown,VisualizationMatrixDynamic:()=>D.VisualizationMatrixDynamic,VisualizationPanel:()=>D.VisualizationPanel,VisualizationPanelDynamic:()=>D.VisualizationPanelDynamic,VisualizerBase:()=>D.VisualizerBase,VisualizerFactory:()=>D.VisualizerFactory,WordCloud:()=>D.WordCloud,WordCloudAdapter:()=>D.WordCloudAdapter,hideEmptyAnswersInData:()=>D.hideEmptyAnswersInData,localization:()=>D.localization,plotlyChartTypes:()=>k,setupLocale:()=>D.setupLocale,surveyStrings:()=>D.surveyStrings,textHelper:()=>D.textHelper});var e=s(87),t=s(156),i=s(240),r=s(70),o=s(931),a=function(){function s(){}return s.setup=function(e,t,i){return this.setups[e](t,i)},s.setupPie=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=(t.texts,t.seriesLabels),a=o.length>1||"matrix"===e.question.getType(),l=[],u={type:e.chartType,sort:!1,labels:r,customdata:r,text:r.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)})),hoverinfo:"value+text",textposition:"inside",texttemplate:"%{text}"};"doughnut"===e.chartType&&(u.type="pie",u.hole=.4),a||(u.mode="markers",u.marker={color:n},u.marker.symbol="circle",u.marker.size=16),i.forEach((function(t,i){var n=t.some((function(e){return 0!=e})),a=u.text;if(e.showPercentages){var h=e.getPercentages([t])[0];a=r.map((function(t,i){return(e.showOnlyPercentages?h[i]:s.getTruncatedLabel(t,e.labelTruncateLength)+"<br>"+h[i])+"%"}))}n&&l.push(Object.assign({},u,{values:t,text:a,domain:{column:l.length%2,row:Math.floor(l.length/2)},title:{position:"bottom center",text:o[i]}}))}));var h={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:(25+(r.length<10?50*r.length+100:550))*Math.ceil(l.length/2),margin:{l:0,t:25,b:0,r:10},colorway:n,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:!1};return a&&(h.annotations=[],h.grid={rows:Math.ceil(l.length/2),columns:2}),{traces:l,layout:h,hasSeries:a}},s.setupBar=function(e,t){var r=t.datasets,n=t.labels,o=t.colors,a=t.texts,l=t.seriesLabels,u=l.length>1||"matrix"===e.question.getType(),h=[],c={type:"line"===e.chartType?"line":"bar",y:n,customdata:n,hoverinfo:"text",orientation:"h",textposition:"none"};u||(c.width=.5,c.bargap=.5,c.mode="markers",c.marker={color:o}),r.forEach((function(t,i){var r=u?l[i]:n[i],s=e.showPercentages?"%":"",o=Object.assign({},c,{x:t,name:r,width:u&&"stackedbar"!==e.chartType?.5/l.length:.5,text:a[i],hovertext:n.map((function(t,n){return e.showOnlyPercentages?"".concat(a[i][n]).concat(s):u?"".concat(r," : ").concat(t,", ").concat(a[i][n]).concat(s):"".concat(a[i][n]).concat(s,", ").concat(t)}))});if(e.showPercentages){var d=e.showOnlyPercentages?"%{text}%":"%{value} (%{text}%)";o.textposition="inside",o.texttemplate=d,o.width=u&&"stackedbar"!==e.chartType?.7/l.length:.9,o.bargap=u&&"stackedbar"!==e.chartType?.3/l.length:.1}h.push(o)}));var d={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:30*(n.length+1)+30+30,margin:{t:30,b:30,r:10},colorway:o,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:u,barmode:u&&"stackedbar"==e.chartType?"stack":"group",xaxis:{rangemode:"nonnegative",automargin:!0},yaxis:{automargin:!0,type:"category",orientation:"h",tickmode:"array",tickvals:n,ticktext:n.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)+" "}))}};return u&&"stackedbar"!==e.chartType&&(d.height=30*(n.length*l.length+1)+30+30),-1!==["ar","fa"].indexOf(i.qG.currentLocale)&&(d.xaxis.autorange="reversed",d.yaxis.side="right",d.legend={x:0,y:1,xanchor:"left",yanchor:"top"}),{traces:h,layout:d,hasSeries:u}},s.setupVBar=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=t.texts,a=t.seriesLabels,l=a.length>1||"matrix"===e.question.getType();if("histogram"!==e.type&&"pivot"!==e.type){r=[].concat(r).reverse(),a=[].concat(a).reverse(),n=[].concat(n.slice(0,l?a.length:r.length)).reverse();var u=[];o.forEach((function(e){u.push([].concat(e).reverse())})),o=u;var h=[];i.forEach((function(e){h.push([].concat(e).reverse())})),i=h}var c=[],d={type:"line"===e.chartType?"line":"bar",x:r,customdata:l?a:r,hoverinfo:l?void 0:"x+y",orientation:"v",textposition:"none"};"histogram"!==e.type&&l||(d.width=.5,d.bargap=.5,d.mode="markers",d.marker={color:n}),i.forEach((function(t,i){var s=Object.assign({},d,{y:t,name:l?a[i]:r[i],text:o[i]});if(e.showPercentages){var n=e.showOnlyPercentages?"%{text}%":"%{value} (%{text}%)";s.textposition="inside",s.texttemplate=n,l||(s.width=.9,s.bargap=.1)}c.push(s)}));var p={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},margin:{t:30,b:30,r:10},colorway:n,hovermode:"closest",plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:l,yaxis:{rangemode:"nonnegative",automargin:!0},xaxis:{automargin:!0,type:"category",tickmode:"array",tickvals:r,ticktext:r.map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)+" "}))}};return e.showPercentages&&e.showOnlyPercentages&&(p.yaxis={automargin:!0,tickformat:".0%",range:[0,1],ticklen:e.showOnlyPercentages?25:5,tickcolor:"transparent"}),e.getValueType&&"date"==e.getValueType()||(p.xaxis={automargin:!0,type:"category"}),{traces:c,layout:p,hasSeries:l}},s.setupScatter=function(e,t){var i=t.datasets,r=t.labels,n=t.colors,o=(t.texts,t.seriesLabels),a=o.length>1||"matrix"===e.question.getType(),l=[],u={type:"scatter",y:(a?o:r).map((function(t){return s.getTruncatedLabel(t,e.labelTruncateLength)})),customdata:a?o:r,text:a?o:r,hoverinfo:"x+y",orientation:"h",mode:"markers",width:.5,marker:{}};a||(u.marker.symbol="circle",u.marker.size=16),i.forEach((function(e){var t=Object.assign({},u,{x:e});l.push(t)}));var h={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},height:30*(r.length+1)+30+30,margin:{t:30,b:30,r:10},colorway:n,hovermode:"closest",yaxis:{automargin:!0,type:"category",ticklen:5,tickcolor:"transparent"},xaxis:{rangemode:"nonnegative",automargin:!0},plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor,showlegend:!1};return a&&(h.showlegend=!0,h.height=void 0,r.forEach((function(e,t){l[t].hoverinfo="x+name",l[t].marker.color=void 0,l[t].name=e}))),{traces:l,layout:h,hasSeries:a}},s.setupGauge=function(e,t){var i=t,s=i[0],n=i[1],a=i[2];if("rating"===e.question.getType()){var l=e.question.visibleRateValues;a=l[l.length-1].value,n=l[0].value}var u=e.generateColors(a,n,o.R.stepsCount);o.R.showAsPercentage&&(s=r.NW.toPercentage(s,a),n=r.NW.toPercentage(n,a),a=r.NW.toPercentage(a,a));var h=[{type:"indicator",mode:"gauge+number",gauge:{axis:{range:[n,a]},shape:e.chartType,bgcolor:"white",bar:{color:u[0]}},value:s,text:e.name,domain:{x:[0,1],y:[0,1]}}],c="bullet"===e.chartType?60:30;return{traces:h,layout:{height:250,margin:{l:c,r:c,b:c,t:c,pad:5},plot_bgcolor:e.backgroundColor,paper_bgcolor:e.backgroundColor},hasSeries:!1}},s.setupRadar=function(t,i){var r=i.datasets,n=i.labels,o=i.colors,a=i.texts,l=i.seriesLabels,u=l.length>1||"matrix"===t.question.getType(),h=[],c={type:"scatterpolar",mode:"lines+markers",fill:"toself",line:{width:2},marker:{size:6}};r.forEach((function(t,i){var r=u?l[i]:"",s=Object.assign({},c,{r:t,theta:n,name:r,text:a[i],hoverinfo:"r+theta+name",customdata:n,hovertemplate:"%{theta}: %{r}<extra></extra>",line:(0,e.Cl)((0,e.Cl)({},c.line),{color:o[i%o.length]}),marker:(0,e.Cl)((0,e.Cl)({},c.marker),{color:o[i%o.length]})});h.push(s)}));var d={font:{family:"Segoe UI, sans-serif",size:14,weight:"normal",color:"#404040"},polar:{radialaxis:{visible:!0,range:[0,1.1*Math.max.apply(Math,r.map((function(e){return Math.max.apply(Math,e)})))],tickfont:{size:12}},angularaxis:{tickfont:{size:12},ticktext:n.map((function(e){return s.getTruncatedLabel(e,t.labelTruncateLength)})),tickvals:n}},showlegend:u,colorway:o,plot_bgcolor:t.backgroundColor,paper_bgcolor:t.backgroundColor,margin:{l:50,r:50,t:50,b:50}};return{traces:h,layout:d,hasSeries:u}},s.imageExportFormat="png",s.onImageSaving=new t.Event,s.onPlotCreating=new t.Event,s.setups={bar:s.setupBar,vbar:s.setupVBar,line:s.setupVBar,stackedbar:s.setupBar,doughnut:s.setupPie,pie:s.setupPie,scatter:s.setupScatter,gauge:s.setupGauge,bullet:s.setupGauge,radar:s.setupRadar},s.getTruncatedLabel=function(e,t){return t?-1===t||e.length<=t+3?e:e.substring(0,t)+"...":e},s}(),l=s(183),u=s(61),h=s.n(u),c=s(267),d=s(928),p=s(226),g=s(143),f=s(873),m=s(557),v=function(t){function i(e,i,r,s){return t.call(this,e,i,r,s||"matrixDropdownGrouped")||this}return(0,e.C6)(i,t),Object.defineProperty(i.prototype,"matrixQuestion",{get:function(){return this.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataNames",{get:function(){return this.matrixQuestion.columns.map((function(e){return e.name}))},enumerable:!1,configurable:!0}),i.prototype.getSeriesValues=function(){return this.matrixQuestion.columns.map((function(e){return e.name}))},i.prototype.getSeriesLabels=function(){return this.matrixQuestion.columns.map((function(e){return e.title}))},i.prototype.valuesSource=function(){return this.matrixQuestion.choices},i.prototype.isSupportMissingAnswers=function(){return!1},i.prototype.getCalculatedValuesCore=function(){var e=this.getValues(),t=this.getSeriesValues(),i=this.matrixQuestion.rows.map((function(e){return e.value}));return(0,f.X3)(this.surveyData,{name:this.name,dataNames:t,getValues:function(){return e},getLabels:function(){return e},getSeriesValues:function(){return i},getSeriesLabels:function(){return i}}).map((function(e){return e[0]}))},i}(l.o);m.g.registerVisualizer("matrixdropdown-grouped",v);var _=s(472),y=s(582),b=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["bar","vbar","pie","doughnut"],i.displayModeBar=void 0,i}(l.o),w=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["pie","bar","doughnut"],i}(d.o),C=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["vbar","bar"],i}(p.Y),T=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["bar","stackedbar","pie","doughnut"],i}(g.u),S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["stackedbar","bar","pie","doughnut"],i}(v),x=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.types=["vbar","bar","line","stackedbar","pie","doughnut"],i}(_.y),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i.displayModeBar=void 0,i.types=["gauge","bullet"],i}(o.R),A=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return(0,e.C6)(i,t),i}(y.O),k={boolean:w.types,number:P.types,selectBase:b.types,histogram:C.types,matrix:T.types,matrixDropdownGrouped:S.types,pivot:x.types,ranking:[].concat(b.types).concat(["radar"])},z=function(){function r(e){this.model=e,this._chart=void 0}return r.prototype.patchConfigParameters=function(e,t,i,r){if("boolean"===this.model.question.getType()){var s=this.model.getColors(),n=[d.o.trueColor||s[0],d.o.falseColor||s[1]];this.model.showMissingAnswers&&n.push(s[2]);var o=this.model.chartType;"pie"===o||"doughnut"===o?t.forEach((function(e){e&&(e.marker||(e.marker={}),e.marker.colors=n)})):"bar"===o&&t.forEach((function(e){e&&(e.marker||(e.marker={}),e.marker.color=n)}))}"number"===this.model.type&&(r.displayModeBar=!0)},Object.defineProperty(r.prototype,"chart",{get:function(){return this._chart},enumerable:!1,configurable:!0}),r.prototype.getChartTypes=function(){var e=this.model.type;return k[e]||[]},r.prototype.create=function(i){return(0,e.sH)(this,void 0,void 0,(function(){var r,s,n,o,a,u=this;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return[4,this.update(i)];case 1:return r=e.sent(),s=r[0],n=r[1],this.model instanceof l.o&&this.model.supportSelection&&(o=this.model,i.on("plotly_click",(function(e){var i;if(e.points.length>0){var r="";if(n.hasSeries){r=e.points[0].data.name;var s=e.points[0].label,a=u.model.getSeriesValues()[u.model.getSeriesLabels().indexOf(s)],l=o.getSelectedItemByText(r);h=new t.ItemValue(((i={})[a]=l.value,i),s+": "+l.text),o.setSelection(h)}else{r=Array.isArray(e.points[0].customdata)?e.points[0].customdata[0]:e.points[0].customdata;var h=o.getSelectedItemByText(r);o.setSelection(h)}}}))),a=function(){return i.getElementsByClassName("nsewdrag")[0]},i.on("plotly_hover",(function(){var e=a();e&&(e.style.cursor="pointer")})),i.on("plotly_unhover",(function(){var e=a();e&&(e.style.cursor="")})),this._chart=s,[2,s]}}))}))},r.prototype.update=function(t){return(0,e.sH)(this,void 0,void 0,(function(){var r,s,n,o,u,c=this;return(0,e.YH)(this,(function(e){switch(e.label){case 0:return this.model instanceof l.o?[4,this.model.getAnswersData()]:[3,2];case 1:return s=e.sent(),[3,4];case 2:return[4,this.model.getCalculatedValues()];case 3:s=e.sent(),e.label=4;case 4:return r=s,n=a.setup(this.model.chartType,this.model,r),o={displaylogo:!1,responsive:!0,locale:i.qG.currentLocale,modeBarButtonsToRemove:["toImage"],modeBarButtonsToAdd:[{name:"toImageSjs",title:i.qG.getString("saveDiagramAsPNG"),icon:h().Icons.camera,click:function(e){var t={format:a.imageExportFormat,filename:c.model.question.name};a.onImageSaving.fire(c.model,t),h().downloadImage(e,t)}}]},void 0!==b.displayModeBar&&(o.displayModeBar=b.displayModeBar),this.patchConfigParameters(t,n.traces,n.layout,o),u={traces:n.traces,layout:n.layout,data:r,config:o},a.onPlotCreating.fire(this.model,u),[2,[h().react(t,u.traces,u.layout,u.config),n]]}}))}))},r.prototype.destroy=function(e){e&&h().purge(e),this._chart=void 0},r}();c.w.chartAdapterType=z;var D=s(453)})(),n})()));
|