(self.webpackChunk_voxco_survey_engine_js=self.webpackChunk_voxco_survey_engine_js||[]).push([[179],{23898:function(e){e.exports=function(){"use strict";var e,t,n,r,i=i||{},o={},a={},s=[],c="undefined"!=typeof window,l=c&&window.matchMedia&&window.matchMedia("(prefers-color-scheme:dark)").matches,u=c?navigator.userAgent:"",m=c?navigator.platform:"",d=c?navigator.maxTouchPoints:0,f=/Safari/.test(u),p=u.match(/Android|iPhone|iPad|iPod|Windows Phone|Windows|MSIE/i),h=c&&window.requestAnimationFrame||function(e){return setTimeout(e,20)},b=c&&window.cancelAnimationFrame||function(e){clearTimeout(e)};function v(e){var t;for(t in e)if(void 0!==S[e[t]])return!0;return!1}function g(e,t){if("touchstart"==e.type)t.__mbscTouched=1;else if(t.__mbscTouched)return delete t.__mbscTouched,!1;return!0}function A(e,t){for(var n,r,i=["t","webkitT","MozT","OT","msT"],o=getComputedStyle(e[0]),a=0;!n&&a<i.length;)void 0!==o[(r=i[a])+"ransform"]&&(n=o[r+"ransform"]),a++;return n=n.split(")")[0].split(", "),t?n[13]||n[5]:n[12]||n[4]}function y(e){if(e){if(M[e])return M[e];var t=E&&E.getContext("2d");if(!t)return"#fff";t.fillStyle=e,t.fillRect(0,0,1,1);var n=t.getImageData(0,0,1,1).data,r=.299*n[0]+.587*n[1]+.114*n[2]<130?"#fff":"#000";return M[e]=r}}function C(e,t,n,r){e&&e.addEventListener(t,n,r)}function _(e,t,n,r){e&&e.removeEventListener(t,n,r)}function x(e,t){return!(!t||!e||1!==e.nodeType)&&(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector).call(e,t)}function w(e,t,n){var r;try{r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0})}catch(e){(r=document.createEvent("Event")).initEvent(t,!0,!0),r.detail=n}e.dispatchEvent(r)}/Android/i.test(p)?(e="android",(t=u.match(/Android\s+([\d.]+)/i))&&(s=t[0].replace("Android ","").split("."))):/iPhone|iPad|iPod/i.test(p)||/iPhone|iPad|iPod/i.test(m)||"MacIntel"===m&&1<d?(e="ios",(t=u.match(/OS\s+([\d_]+)/i))&&(s=t[0].replace(/_/g,".").replace("OS ","").split("."))):/Windows Phone/i.test(p)?e="wp":/Windows|MSIE/i.test(p)&&(e="windows"),n=s[0],r=s[1];var T,E,S,k,B,N,M={};c&&(N=window,E=document.createElement("canvas"),S=document.createElement("modernizr").style,k=function(){var e,t=["Webkit","Moz","O","ms"];for(e in t)if(v([t[e]+"Transform"]))return"-"+t[e].toLowerCase()+"-";return""}(),B=k.replace(/^-/,"").replace(/-$/,"").replace("moz","Moz"),T=void 0!==S.animation?"animationend":"webkitAnimationEnd",S.transition,"ios"===e&&!f&&N.webkit&&N.webkit.messageHandlers,S.touchAction);var D={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},I={readonly:"readOnly"},O=[],P=Array.prototype.slice;function R(e){return"function"==typeof e}function L(e){return"object"==typeof e}function V(e){return"number"==typeof e.length}function F(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))}function q(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function U(e,t){return"number"!=typeof t||D[q(e)]?t:t+"px"}var H,W=(H=function e(t,n){var r,i,o,a=[],s=0;if(t&&!n&&t instanceof z)return t;if(R(t))return e(document).ready(t);if(t)if("string"==typeof t)if(t=o=t.trim(),0<=o.indexOf("<")&&0<=o.indexOf(">")){var c="div";for(0===o.indexOf("<li")&&(c="ul"),0===o.indexOf("<tr")&&(c="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(c="tr"),0===o.indexOf("<tbody")&&(c="table"),0===o.indexOf("<option")&&(c="select"),(i=document.createElement(c)).innerHTML=o,s=0;s<i.childNodes.length;s++)a.push(i.childNodes[s])}else for(r=n||"#"!==t[0]||t.match(/[ .<>:~]/)?(n instanceof z&&(n=n[0]),(n||document).querySelectorAll(t)):[document.getElementById(t.split("#")[1])],s=0;s<r.length;s++)r[s]&&a.push(r[s]);else if(t.nodeType||t===window||t===document)a.push(t);else if(0<t.length&&t[0].nodeType)for(s=0;s<t.length;s++)a.push(t[s]);else e.isArray(t)&&(a=t);return new z(a)},z.prototype={ready:function(e){return(document.attachEvent?"complete"==document.readyState:"loading"!=document.readyState)?e(H):document.addEventListener("DOMContentLoaded",(function(){e(H)}),!1),this},concat:O.concat,empty:function(){return this.each((function(){this.innerHTML=""}))},map:function(e){return H(H.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return H(P.apply(this,arguments))},addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n++)for(var r=0;r<this.length;r++)void 0!==this[r].classList&&""!==t[n]&&this[r].classList.add(t[n]);return this},removeClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),n=0;n<t.length;n++)for(var r=0;r<this.length;r++)void 0!==this[r].classList&&""!==t[n]&&this[r].classList.remove(t[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)for(var r=0;r<this.length;r++)void 0!==this[r].classList&&this[r].classList.toggle(t[n]);return this},closest:function(e,t){var n=this[0],r=!1;for(L(e)&&(r=H(e));n&&!(r?0<=r.indexOf(n):x(n,e));)n=n!==t&&n.nodeType!==n.DOCUMENT_NODE&&n.parentNode;return H(n)},attr:function(e,t){var n;if(1!==arguments.length||"string"!=typeof e){for(var r=0;r<this.length;r++)if(2===arguments.length)this[r].setAttribute(e,t);else for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}if(this.length)return(n=this[0].getAttribute(e))||""===n?n:void 0},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e);return this},prop:function(e,t){if(e=I[e]||e,1===arguments.length&&"string"==typeof e)return this[0]?this[0][e]:void 0;for(var n=0;n<this.length;n++)this[n][e]=t;return this},val:function(e){if(void 0===e)return this.length&&this[0].multiple?H.map(this.find("option:checked"),(function(e){return e.value})):this[0]?this[0].value:void 0;if(this.length&&this[0].multiple)H.each(this[0].options,(function(){this.selected=-1!=e.indexOf(this.value)}));else for(var t=0;t<this.length;t++)this[t].value=e;return this},on:function(e,t,n,r){var i,o,a,s,c,l=e.split(" ");function u(e){for(var r=e.target;r;)H(r).is(t)&&n.call(r,e),r=r!==this?r.parentNode:null}function m(e,t,n,r){var i=t.split(".");e.DomNameSpaces||(e.DomNameSpaces=[]),e.DomNameSpaces.push({namespace:i[1],event:i[0],listener:n,capture:r}),e.addEventListener(i[0],n,r)}for(s=0;s<this.length;s++)if(o=this[s],R(t)||!1===t)for(R(t)&&(r=n||!1,n=t),c=0;c<l.length;c++)-1!=(a=l[c]).indexOf(".")?m(o,a,n,r):o.addEventListener(a,n,r);else for(i=u.bind(o),c=0;c<l.length;c++)a=l[c],o.DomLiveListeners||(o.DomLiveListeners=[]),o.DomLiveListeners.push({listener:n,liveListener:i}),-1!=a.indexOf(".")?m(o,a,i,r):o.addEventListener(a,i,r);return this},off:function(e,t,n,r){var i,o,a,s,c,l,u,m=this;function d(e){var t,n,r,i,o,a=e.split("."),s=a[0],c=a[1];for(n=0;n<m.length;++n)if(o=(t=m[n]).DomNameSpaces){for(r=0;r<o.length;++r)(i=o[r]).namespace!=c||i.event!=s&&s||(t.removeEventListener(i.event,i.listener,i.capture),i.removed=!0);for(r=o.length-1;0<=r;--r)o[r].removed&&o.splice(r,1)}}for(a=e.split(" "),s=0;s<a.length;s++)for(o=a[s],c=0;c<this.length;c++)if(u=(i=this[c]).DomLiveListeners,R(t)||!1===t)R(t)&&(r=n||!1,n=t),0===o.indexOf(".")?d(o.substr(1)):i.removeEventListener(o,n,r);else{if(u)for(l=0;l<u.length;l++)u[l].listener===n&&i.removeEventListener(o,u[l].liveListener,r);i.DomNameSpaces&&i.DomNameSpaces.length&&o&&d(o)}return this},trigger:function(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)for(var i=0;i<this.length;i++)w(this[i],n[r],t);return this},width:function(e){return void 0!==e?this.css("width",e):this[0]===window?window.innerWidth:this[0]===document?document.documentElement.scrollWidth:0<this.length?parseFloat(this.css("width")):null},height:function(e){if(void 0!==e)return this.css("height",e);if(this[0]===window)return window.innerHeight;if(this[0]!==document)return 0<this.length?parseFloat(this.css("height")):null;var t=document.body,n=document.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)},innerWidth:function(){var e=this;if(0<this.length){if(this[0].innerWidth)return this[0].innerWidth;var t=this[0].offsetWidth;return["left","right"].forEach((function(n){t-=parseInt(e.css(F("border-"+n+"-width"))||0,10)})),t}},innerHeight:function(){var e=this;if(0<this.length){if(this[0].innerHeight)return this[0].innerHeight;var t=this[0].offsetHeight;return["top","bottom"].forEach((function(n){t-=parseInt(e.css(F("border-"+n+"-width"))||0,10)})),t}},offset:function(){if(0<this.length){var e=this[0].getBoundingClientRect(),t=document.documentElement;return{top:e.top+window.pageYOffset-t.clientTop,left:e.left+window.pageXOffset-t.clientLeft}}},hide:function(){for(var e=0;e<this.length;e++)this[e].style.display="none";return this},show:function(){for(var e=0;e<this.length;e++)"none"==this[e].style.display&&(this[e].style.display=""),"none"==getComputedStyle(this[e],"").getPropertyValue("display")&&(this[e].style.display="block");return this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},styles:function(){return this[0]?window.getComputedStyle(this[0],null):void 0},css:function(e,t){var n,r,i=this[0],o="";if(arguments.length<2){if(!i)return;if("string"==typeof e)return i.style[e]||getComputedStyle(i,"").getPropertyValue(e)}if("string"==typeof e)t||0===t?o=q(e)+":"+U(e,t):this.each((function(){this.style.removeProperty(q(e))}));else for(r in e)if(e[r]||0===e[r])o+=q(r)+":"+U(r,e[r])+";";else for(n=0;n<this.length;n++)this[n].style.removeProperty(q(r));return this.each((function(){this.style.cssText+=";"+o}))},each:function(e){for(var t=0;t<this.length&&!1!==e.apply(this[t],[t,this[t]]);t++);return this},filter:function(e){for(var t=[],n=0;n<this.length;n++)R(e)?e.call(this[n],n,this[n])&&t.push(this[n]):x(this[n],e)&&t.push(this[n]);return new z(t)},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;this.empty();for(var t=0;t<this.length;t++)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t++)this[t].textContent=e;return this},is:function(e){return 0<this.length&&x(this[0],e)},not:function(e){var t=[];if(R(e)&&void 0!==e.call)this.each((function(n){e.call(this,n)||t.push(this)}));else{var n="string"==typeof e?this.filter(e):V(e)&&R(e.item)?P.call(e):H(e);L(n)&&(n=H.map(n,(function(e){return e}))),this.each((function(e,r){n.indexOf(r)<0&&t.push(r)}))}return H(t)},indexOf:function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t},index:function(e){return e?this.indexOf(H(e)[0]):this.parent().children().indexOf(this[0])},get:function(e){return void 0===e?P.call(this):this[0<=e?e:e+this.length]},eq:function(e){if(void 0===e)return this;var t,n=this.length;return new z(n-1<e?[]:e<0?(t=n+e)<0?[]:[this[t]]:[this[e]])},append:function(e){var t,n;for(t=0;t<this.length;t++)if("string"==typeof e){var r=document.createElement("div");for(r.innerHTML=e;r.firstChild;)this[t].appendChild(r.firstChild)}else if(e instanceof z)for(n=0;n<e.length;n++)this[t].appendChild(e[n]);else this[t].appendChild(e);return this},appendTo:function(e){return H(e).append(this),this},prepend:function(e){var t,n;for(t=0;t<this.length;t++)if("string"==typeof e){var r=document.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;0<=n;n--)this[t].insertBefore(r.childNodes[n],this[t].childNodes[0])}else if(e instanceof z)for(n=0;n<e.length;n++)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},prependTo:function(e){return H(e).prepend(this),this},insertBefore:function(e){for(var t=H(e),n=0;n<this.length;n++)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0]);else if(1<t.length)for(var r=0;r<t.length;r++)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r]);return this},insertAfter:function(e){for(var t=H(e),n=0;n<this.length;n++)if(1===t.length)t[0].parentNode.insertBefore(this[n],t[0].nextSibling);else if(1<t.length)for(var r=0;r<t.length;r++)t[r].parentNode.insertBefore(this[n].cloneNode(!0),t[r].nextSibling);return this},next:function(e){return 0<this.length?e?this[0].nextElementSibling&&H(this[0].nextElementSibling).is(e)?new z([this[0].nextElementSibling]):new z([]):this[0].nextElementSibling?new z([this[0].nextElementSibling]):new z([]):new z([])},nextAll:function(e){var t=[],n=this[0];if(!n)return new z([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?H(r).is(e)&&t.push(r):t.push(r),n=r}return new z(t)},prev:function(e){return 0<this.length?e?this[0].previousElementSibling&&H(this[0].previousElementSibling).is(e)?new z([this[0].previousElementSibling]):new z([]):this[0].previousElementSibling?new z([this[0].previousElementSibling]):new z([]):new z([])},prevAll:function(e){var t=[],n=this[0];if(!n)return new z([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?H(r).is(e)&&t.push(r):t.push(r),n=r}return new z(t)},parent:function(e){for(var t=[],n=0;n<this.length;n++)null!==this[n].parentNode&&(e?H(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return H(H.unique(t))},parents:function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n].parentNode;r;)e?H(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return H(H.unique(t))},find:function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i++)t.push(r[i]);return new z(t)},children:function(e){for(var t=[],n=0;n<this.length;n++)for(var r=this[n].childNodes,i=0;i<r.length;i++)e?1===r[i].nodeType&&H(r[i]).is(e)&&t.push(r[i]):1===r[i].nodeType&&t.push(r[i]);return new z(H.unique(t))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,t;for(e=0;e<arguments.length;e++){var n=H(arguments[e]);for(t=0;t<n.length;t++)this[this.length]=n[t],this.length++}return this},before:function(e){return H(e).insertBefore(this),this},after:function(e){return H(e).insertAfter(this),this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return void 0===e?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return void 0===e?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},contents:function(){return this.map((function(e,t){return P.call(t.childNodes)}))},nextUntil:function(e){for(var t=this,n=[];t.length&&!t.filter(e).length;)n.push(t[0]),t=t.next();return H(n)},prevUntil:function(e){for(var t=this,n=[];t.length&&!H(t).filter(e).length;)n.push(t[0]),t=t.prev();return H(n)},detach:function(){return this.remove()}},H.fn=z.prototype,H);function z(e){var t=0;for(t=0;t<e.length;t++)this[t]=e[t];return this.length=e.length,H(this)}var j=W;function G(){}function Q(e){var t,n=[];for(t in e)n.push(e[t]);return n}function K(e){return 0<=e-parseFloat(e)}function Z(e){return"string"==typeof e}function $(e,t,n){return Math.max(t,Math.min(e,n))}function Y(e,t){for(e+="",t=t||2;e.length<t;)e="0"+e;return e}i.$=W,j.inArray=function(e,t,n){return O.indexOf.call(t,e,n)},j.extend=function(e){var t,n=P.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),e=e||{},n.forEach((function(n){!function e(t,n,r){for(var i in n)r&&(j.isPlainObject(n[i])||j.isArray(n[i]))?((j.isPlainObject(n[i])&&!j.isPlainObject(t[i])||j.isArray(n[i])&&!j.isArray(t[i]))&&(t[i]={}),e(t[i],n[i],r)):void 0!==n[i]&&(t[i]=n[i])}(e,n,t)})),e},j.isFunction=R,j.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)},j.isPlainObject=function(e){return L(e)&&null!==e&&e!==e.window&&Object.getPrototypeOf(e)==Object.prototype},j.each=function(e,t){var n,r;if(L(e)&&t){if(j.isArray(e)||e instanceof W)for(n=0;n<e.length&&!1!==t.call(e[n],n,e[n]);n++);else for(r in e)if(e.hasOwnProperty(r)&&"length"!==r&&!1===t.call(e[r],r,e[r]))break;return this}},j.unique=function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t},j.map=function(e,t){var n,r,i,o=[];if(V(e))for(r=0;r<e.length;r++)null!==(n=t(e[r],r))&&o.push(n);else for(i in e)null!==(n=t(e[i],i))&&o.push(n);return 0<o.length?j.fn.concat.apply([],o):o};var X,J=0;function ee(){J++,setTimeout((function(){J--}),500)}function te(e,t,n){var r=e.originalEvent||e,i=(n?"page":"client")+t;return r.targetTouches&&r.targetTouches[0]?r.targetTouches[0][i]:r.changedTouches&&r.changedTouches[0]?r.changedTouches[0][i]:e[i]}function ne(e){e&&e[0]&&e[0].__mbscOff&&e[0].__mbscOff()}function re(e){if(J&&!X&&!e.isMbscTap&&("TEXTAREA"!=e.target.nodeName||"mousedown"!=e.type))return e.stopPropagation(),e.preventDefault(),!1}function ie(e){return e[0].innerWidth||e.innerWidth()}c&&(["mouseover","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,re,!0)})),"android"==e&&n<5&&document.addEventListener("change",(function(e){J&&"checkbox"==e.target.type&&!e.target.mbscChange&&(e.stopPropagation(),e.preventDefault()),delete e.target.mbscChange}),!0)),i.uid="03c2a902";var oe,ae=i.$,se=+new Date,ce={},le={},ue={},me={xsmall:0,small:576,medium:768,large:992,xlarge:1200},de=ae.extend;function fe(e,t){var n,r,o,a,s,c,u,m,d,f=this;function p(e){var t,r=ue;return s.responsive&&(t=e||ie(n),ae.each(s.responsive,(function(e,n){t>=(n.breakpoint||me[e])&&(r=n)}))),r}f.settings={},f.element=e,f._init=G,f._destroy=G,f._processSettings=G,f._checkResp=function(e){if(f&&f._responsive){var t=p(e);if(a!==t)return a=t,f.init({}),!0}},f._getRespCont=function(){return ae("body"==s.context?window:s.context)},f.init=function(i,h){var b,v,g,A,y;for(b in i&&f.getVal&&(v=f.getVal()),f.settings)delete f.settings[b];s=f.settings,de(t,i),f._hasDef&&(d=oe.settings),de(s,f._defaults,d,t),n=f._getRespCont(),f._responsive&&(a=a||p(),de(s,a)),f._hasTheme&&(A=(g=s).theme,y=g.themeVariant,"auto"!=A&&A||(A=oe.autoTheme),"default"==A&&(A="mobiscroll"),("dark"===y||l&&"auto"===y)&&oe.themes.form[A+"-dark"]?A+="-dark":"light"===y&&/.+-dark$/.test(A)&&(A=A.replace(/-dark$/,"")),u=A,t.theme=u,c=oe.themes[f._class]?oe.themes[f._class][u]:{}),f._hasLang&&(r=oe.i18n[s.lang]),de(s,c,r,d,t,a),f._processSettings(a||{}),f._presets&&(o=f._presets[s.preset])&&(o=o.call(e,f,t,a),de(s,o,t,a)),f._init(i),i&&f.setVal&&f.setVal(void 0===h?v:h,!0),m("onInit")},f.destroy=function(){f&&(f._destroy(),m("onDestroy"),delete ce[e.id],f=null)},f.tap=function(e,t,n,r,o){!function(e,t,n,r,o,a){var s,c,l,u,m,d=(0,i.$)(t);function f(e){l||(l=this,s=te(e,"X"),c=te(e,"Y"),u=!1,m=new Date)}function p(e){l&&!u&&(Math.abs(te(e,"X")-s)>o||Math.abs(te(e,"Y")-c)>o)&&(u=!0)}function h(e){l&&(a&&new Date-m<100||!u?function(e,t){if(!t.mbscClick){var n=(e.originalEvent||e).changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),r.isMbscTap=!0,r.isIonicTap=!0,X=!0,t.mbscChange=!0,t.mbscClick=!0,t.dispatchEvent(r),X=!1,ee(),setTimeout((function(){delete t.mbscClick}))}}(e,e.target):ee(),l=!1)}function b(t){r&&t.preventDefault(),n.call(this,t,e)}function v(){l=!1}o=o||9,d.each((function(t,n){e.settings.tap&&(C(n,"touchstart",f,{passive:!0}),C(n,"touchcancel",v),C(n,"touchmove",p,{passive:!0}),C(n,"touchend",h)),C(n,"click",b),n.__mbscOff=function(){_(n,"touchstart",f,{passive:!0}),_(n,"touchcancel",v),_(n,"touchmove",p,{passive:!0}),_(n,"touchend",h),_(n,"click",b),delete n.__mbscOff}}))}(f,e,t,n,r,o)},f.trigger=function(n,r){var i,a,s,l=[d,c,o,t];for(a=0;a<4;a++)(s=l[a])&&s[n]&&(i=s[n].call(e,r||{},f));return i},f.option=function(e,n,r){var i={},o=["data","invalid","valid","readonly"];/calendar|eventcalendar|range/.test(s.preset)&&o.push("marked","labels","colors"),"object"==typeof e?i=e:i[e]=n,o.forEach((function(e){t[e]=s[e]})),f.init(i,r)},f.getInst=function(){return f},t=t||{},m=f.trigger,f.__ready||(ae(e).addClass("mbsc-comp"),e.id?ce[e.id]&&ce[e.id].destroy():e.id="mobiscroll"+ ++se,(ce[e.id]=f).__ready=!0)}function pe(e,t,n,r,i,o,a){var s=new Date(e,t,n,r||0,i||0,o||0,a||0);return 23==s.getHours()&&0===(r||0)&&s.setHours(s.getHours()+2),s}function he(e,t,n){if(!t)return null;function r(t){for(var n=0;a+1<e.length&&e.charAt(a+1)==t;)n++,a++;return n}function i(e,t,n){var i=""+t;if(r(e))for(;i.length<n;)i="0"+i;return i}function o(e,t,n,i){return r(e)?i[t]:n[t]}var a,s,c=de({},ke,n),l="",u=!1;for(a=0;a<e.length;a++)if(u)"'"!=e.charAt(a)||r("'")?l+=e.charAt(a):u=!1;else switch(e.charAt(a)){case"d":l+=i("d",c.getDay(t),2);break;case"D":l+=o("D",t.getDay(),c.dayNamesShort,c.dayNames);break;case"o":l+=i("o",(t.getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5,3);break;case"m":l+=i("m",c.getMonth(t)+1,2);break;case"M":l+=o("M",c.getMonth(t),c.monthNamesShort,c.monthNames);break;case"y":s=c.getYear(t),l+=r("y")?s:(s%100<10?"0":"")+s%100;break;case"h":var m=t.getHours();l+=i("h",12<m?m-12:0===m?12:m,2);break;case"H":l+=i("H",t.getHours(),2);break;case"i":l+=i("i",t.getMinutes(),2);break;case"s":l+=i("s",t.getSeconds(),2);break;case"a":l+=11<t.getHours()?c.pmText:c.amText;break;case"A":l+=11<t.getHours()?c.pmText.toUpperCase():c.amText.toUpperCase();break;case"'":r("'")?l+="'":u=!0;break;default:l+=e.charAt(a)}return l}function be(e,t,n){var r=de({},ke,n),i=_e(r.defaultValue||new Date);if(!e||!t)return i;if(t.getTime)return t;function o(t){var n=l+1<e.length&&e.charAt(l+1)==t;return n&&l++,n}function a(e){o(e);var n=new RegExp("^\\d{1,"+("@"==e?14:"!"==e?20:"y"==e?4:"o"==e?3:2)+"}"),r=t.substr(y).match(n);return r?(y+=r[0].length,parseInt(r[0],10)):0}function s(e,n,r){var i,a=o(e)?r:n;for(i=0;i<a.length;i++)if(t.substr(y,a[i].length).toLowerCase()==a[i].toLowerCase())return y+=a[i].length,i+1;return 0}function c(){y++}t="object"==typeof t?t.toString():t+"";var l,u=r.shortYearCutoff,m=r.getYear(i),d=r.getMonth(i)+1,f=r.getDay(i),p=-1,h=i.getHours(),b=i.getMinutes(),v=0,g=-1,A=!1,y=0;for(l=0;l<e.length;l++)if(A)"'"!=e.charAt(l)||o("'")?c():A=!1;else switch(e.charAt(l)){case"d":f=a("d");break;case"D":s("D",r.dayNamesShort,r.dayNames);break;case"o":p=a("o");break;case"m":d=a("m");break;case"M":d=s("M",r.monthNamesShort,r.monthNames);break;case"y":m=a("y");break;case"H":h=a("H");break;case"h":h=a("h");break;case"i":b=a("i");break;case"s":v=a("s");break;case"a":g=s("a",[r.amText,r.pmText],[r.amText,r.pmText])-1;break;case"A":g=s("A",[r.amText,r.pmText],[r.amText,r.pmText])-1;break;case"'":o("'")?c():A=!0;break;default:c()}if(m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=("string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10))?0:-100)),-1<p){d=1,f=p;do{var C=32-new Date(m,d-1,32,12).getDate();C<f&&(d++,f-=C)}while(C<f)}h=-1==g?h:g&&h<12?h+12:g||12!=h?h:0;var _=r.getDate(m,d-1,f,h,b,v);return r.getYear(_)!=m||r.getMonth(_)+1!=d||r.getDay(_)!=f?i:_}function ve(e,t){return Math.round((t-e)/864e5)}function ge(e){return pe(e.getFullYear(),e.getMonth(),e.getDate())}function Ae(e){return e.getFullYear()+"-"+(e.getMonth()+1)+"-"+e.getDate()}function ye(e,t,n){var r,i,o={y:1,m:2,d:3,h:4,i:5,s:6,u:7,tz:8};if(n)for(r in o)(i=e[o[r]-t])&&(n[r]="tz"==r?i:1)}function Ce(e,t,n){var r,i,o,a,s=window.moment||t.moment,c=t.returnFormat;if(e){if("moment"==c&&s)return s(e);if("locale"==c)return he(n,e,t);if("iso8601"==c)return r=e,i=t.isoParts,a=o="",r&&(i.h&&(a+=Y(r.getHours())+":"+Y(r.getMinutes()),i.s&&(a+=":"+Y(r.getSeconds())),i.u&&(a+="."+Y(r.getMilliseconds(),3)),i.tz&&(a+=i.tz)),i.y?(o+=r.getFullYear(),i.m&&(o+="-"+Y(r.getMonth()+1),i.d&&(o+="-"+Y(r.getDate())),i.h&&(o+="T"+a))):i.h&&(o=a)),o}return e}function _e(e,t,n,r){var i;return e?e.getTime?e:e.toDate?e.toDate():("string"==typeof e&&(e=e.trim()),(i=Te.exec(e))?(ye(i,2,r),new Date(1970,0,1,i[2]?+i[2]:0,i[3]?+i[3]:0,i[4]?+i[4]:0,i[5]?+i[5]:0)):(i=i||we.exec(e))?(ye(i,0,r),new Date(i[1]?+i[1]:1970,i[2]?i[2]-1:0,i[3]?+i[3]:1,i[4]?+i[4]:0,i[5]?+i[5]:0,i[6]?+i[6]:0,i[7]?+i[7]:0)):be(t,e,n)):null}function xe(e,t){return e.getFullYear()==t.getFullYear()&&e.getMonth()==t.getMonth()&&e.getDate()==t.getDate()}de(o,{getCoord:te,preventClick:ee,vibrate:function(e){"vibrate"in navigator&&navigator.vibrate(e||50)}}),oe=de(i,{$:ae,version:"4.10.9",autoTheme:"mobiscroll",themes:{form:{},page:{},frame:{},scroller:{},listview:{},navigation:{},progress:{},card:{}},platform:{name:e,majorVersion:n,minorVersion:r},i18n:{},instances:ce,classes:le,util:o,settings:{},setDefaults:function(e){de(this.settings,e)},customTheme:function(e,t){var n,r=i.themes,o=["frame","scroller","listview","navigation","form","page","progress","card"];for(n=0;n<o.length;n++)r[o[n]][e]=de({},r[o[n]][t],{baseTheme:t})}});var we=/^(\d{4}|[+-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?((Z)|([+-])(\d{2})(?::(\d{2}))?)?)?$/,Te=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+-])(\d{2})(?::(\d{2}))?)?)?$/,Ee=/^\d{1,2}(\/\d{1,2})?$/,Se=/^w\d$/i,ke={shortYearCutoff:"+10",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["S","M","T","W","T","F","S"],amText:"am",pmText:"pm",getYear:function(e){return e.getFullYear()},getMonth:function(e){return e.getMonth()},getDay:function(e){return e.getDate()},getDate:pe,getMaxDayOfMonth:function(e,t){return 32-new Date(e,t,32,12).getDate()},getWeekNumber:function(e){(e=new Date(e)).setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)}};function Be(e,t,n,r,i,o){var a,s,c,l,u,m,d,f,p,h=r||G;function b(e){var t;a=ae(e.currentTarget),f=+a.attr("data-step"),c=+a.attr("data-index"),s=!0,i&&e.stopPropagation(),"touchstart"==e.type&&a.closest(".mbsc-no-touch").removeClass("mbsc-no-touch"),"mousedown"==e.type&&e.preventDefault(),t="keydown"!=e.type?(m=te(e,"X"),d=te(e,"Y"),g(e,this)):32===e.keyCode,l||!t||a.hasClass("mbsc-disabled")||(x(c,f,e)&&(a.addClass("mbsc-active"),o&&o.addRipple(a.find(".mbsc-segmented-content"),e)),"mousedown"==e.type&&ae(document).on("mousemove",v).on("mouseup",A))}function v(e){(7<Math.abs(m-te(e,"X"))||7<Math.abs(d-te(e,"Y")))&&(s=!0,y())}function A(e){"touchend"==e.type&&e.preventDefault(),y(),"mouseup"==e.type&&ae(document).off("mousemove",v).off("mouseup",A)}function y(){l=!1,clearInterval(p),a&&(a.removeClass("mbsc-active"),o&&setTimeout((function(){o.removeRipple()}),100))}function x(e,t,n){return l||h(e)||(c=e,f=t,u=n,s=!(l=!0),setTimeout(w,100)),l}function w(){a&&a.hasClass("mbsc-disabled")?y():(!l&&s||(s=!0,t(c,f,u,w)),l&&n&&(clearInterval(p),p=setInterval((function(){t(c,f,u)}),n)))}return e.each((function(e,t){C(t,"touchstart",b,{passive:!0}),C(t,"mousedown",b),C(t,"keydown",b),C(t,"touchmove",v,{passive:!0}),C(t,"touchend",A),C(t,"touchcancel",A),C(t,"keyup",A)})),{start:x,stop:y,destroy:function(){e.each((function(e,t){_(t,"touchstart",b,{passive:!0}),_(t,"mousedown",b),_(t,"keydown",b),_(t,"touchmove",v,{passive:!0}),_(t,"touchend",A),_(t,"touchcancel",A),_(t,"keyup",A)}))}}}o.datetime={formatDate:he,parseDate:be};var Ne,Me=0;function De(e){e.preventDefault()}function Ie(e,t,n){var r,o,a,s,c,l,u,m,d,f,p,b,v,g,A,y,w,E,S,k,B,N,M,D,I,O,P,R,L,V,F,q,U,H=this,W=ae(e),z=[],j=new Date;function Q(e){R.stopProp&&e.stopPropagation();var t=function(e,t,n){for(;t;){if(x(t,".mbsc-fr-btn-e"))return t;t=t!==e?t.parentNode:null}return null}(this,e.target);t&&(p&&p.removeClass("mbsc-active"),(p=ae(t)).hasClass("mbsc-disabled")||p.hasClass("mbsc-fr-btn-nhl")||p.addClass("mbsc-active"),"mousedown"===e.type&&ae(document).on("mouseup",K))}function K(e){p&&(p.removeClass("mbsc-active"),p=null),"mouseup"===e.type&&ae(document).off("mouseup",K)}function Y(e){L&&E.contains(e.target)&&e.preventDefault()}function X(e){i.activeInstance==H&&(13!=e.keyCode||ae(e.target).is('textarea,button,input[type="button"],input[type="submit"]')&&!e.shiftKey?27==e.keyCode&&H.cancel():H.select())}function J(e){e||Ve||!H._activeElm||(j=new Date,H._activeElm.focus())}function re(e){var t=Oe,n=R.focusOnClose;H._markupRemove(),s.remove(),A&&(b.mbscModals--,R.scrollLock&&b.mbscLock--,b.mbscLock||a.removeClass("mbsc-fr-lock"),N&&(b.mbscIOSLock--,b.mbscIOSLock||(a.removeClass("mbsc-fr-lock-ios"),r.css({top:"",left:""}),m.scrollLeft(b.mbscScrollLeft),m.scrollTop(b.mbscScrollTop))),b.mbscModals||a.removeClass("mbsc-fr-lock-ctx"),b.mbscModals&&!P||e||(t=t||W,setTimeout((function(){void 0===n||!0===n?(Pe=!0,t[0].focus()):n&&ae(n)[0].focus()}),200))),P=void 0,y=!1,F("onHide")}function ie(){clearTimeout(O),O=setTimeout((function(){H.position(!0)&&(I.style.visibility="hidden",I.offsetHeight,I.style.visibility="")}),200)}function oe(e){i.activeInstance==H&&e.target.nodeType&&!D.contains(e.target)&&100<new Date-j&&(j=new Date,H._activeElm.focus())}function se(e,t){function n(e){l||e.target!=D||(a=!(l=!0),u=te(e,"X"),m=te(e,"Y"))}function i(e){l&&!a&&(9<Math.abs(te(e,"X")-u)||9<Math.abs(te(e,"Y")-m))&&(a=!0)}if(H._isVisible){if(A)s.appendTo(r);else if(W.is("div")&&!H._hasContent)W.empty().append(s);else if(W.hasClass("mbsc-control")){var o=W.closest(".mbsc-control-w");s.insertAfter(o),o.hasClass("mbsc-select")&&o.addClass("mbsc-select-inline")}else s.insertAfter(W);var a,l,u,m,d,p,b,g,_,x,w,S,k,B,N;y=!0,H._markupInserted(s),F("onMarkupInserted",{target:E}),A&&R.closeOnOverlayTap&&(C(D,"touchstart",n,{passive:!0}),C(D,"touchmove",i,{passive:!0}),c.on("mousedown",n).on("mousemove",i).on("touchcancel",(function(){l=!1})).on("touchend click",(function(e){l&&!a&&(H.cancel(),"touchend"==e.type&&ee()),l=!1}))),s.on("mousedown",".mbsc-btn-e,.mbsc-fr-btn-e",De).on("keydown",".mbsc-fr-btn-e",(function(e){32==e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.click())})).on("keydown",(function(e){if(32!=e.keyCode||ae(e.target).is(Ue)){if(9==e.keyCode&&A&&R.focusTrap){var t=s.find('input,select,textarea,button,[tabindex="0"]').filter((function(){return 0<this.offsetWidth||0<this.offsetHeight})),n=t.index(ae(":focus",s)),r=t.length-1,i=0;e.shiftKey&&(r=0,i=-1),n===r&&(t.eq(i)[0].focus(),e.preventDefault())}}else e.preventDefault()})).on("touchend",".mbsc-fr-btn-e",K),C(E,"touchstart",Q,{passive:!0}),C(E,"mousedown",Q),C(E,"touchstart",(function(){V||(V=!0,r.find(".mbsc-no-touch").removeClass("mbsc-no-touch"))}),{passive:!0,capture:!0}),ae.each(f,(function(e,t){H.tap(ae(".mbsc-fr-btn"+e,s),(function(e){t=Z(t)?H.buttons[t]:t,(Z(t.handler)?H.handlers[t.handler]:t.handler).call(this,e,H)}),!0)})),H._attachEvents(s),!1!==H.position()&&((A||H._checkSize)&&(d=E,p=ie,b=R.zone,N=0,window.ResizeObserver?(Ne=Ne||new ResizeObserver((function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if((r=t.next()).done)break;i=r.value}i.target.__mbscResize()}})),Me++,d.__mbscResize=p,Ne.observe(d)):((x=document.createElement("div")).innerHTML='<div style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:-1;"><div style="position:absolute;left:0;top:0;"></div></div><div style="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;z-index:-1;"><div style="position:absolute;left:0;top:0;width:200%;height:200%;"></div></div>',x.dir="ltr",k=x.childNodes[1],g=x.childNodes[0],_=g.childNodes[0],d.appendChild(x),g.addEventListener("scroll",P),k.addEventListener("scroll",P),b?b.runOutsideAngular((function(){h(O)})):h(O)),M={detach:function(){Ne?(Me--,Ne.unobserve(d),Me||(Ne=null)):(d.removeChild(x),B=!0)}}),A&&(s.removeClass("mbsc-fr-pos"),v&&!e?s.addClass("mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-"+v).on(T,(function e(){s.off(T,e).removeClass("mbsc-anim-in mbsc-anim-trans mbsc-anim-trans-"+v).find(".mbsc-fr-popup").removeClass("mbsc-anim-"+v),J(t)})).find(".mbsc-fr-popup").addClass("mbsc-anim-"+v):J(t)),F("onShow",{target:E,valueText:H._tempValue}))}function I(){_.style.width="100000px",_.style.height="100000px",g.scrollLeft=1e5,g.scrollTop=1e5,k.scrollLeft=1e5,k.scrollTop=1e5}function O(){var e=new Date;w=0,B||(200<e-N&&!g.scrollTop&&!g.scrollLeft&&(N=e,I()),w=w||h(O))}function P(){S=S||h(L)}function L(){S=0,I(),p()}}function ce(e,t){H._isVisible||(e&&e(),!1!==H.show()&&(Oe=t))}function le(){H._fillValue(),F("onSet",{valueText:H._value})}function ue(){F("onCancel",{valueText:H._value})}function me(){H.setVal(null,!0)}fe.call(this,e,t,!0),H.position=function(e){var t,n,i,o,a,c,f,p,h,v,C,_,x,w,T,N,M,D,O,P={},V=0,z=0,j=0,G=0;if(!y)return!1;if(N=q,T=U,x=Math.min(E.offsetHeight,g?1/0:window.innerHeight),(w=Math.min(E.offsetWidth,g?1/0:window.innerWidth))&&x&&(q!==w||U!==x||!e)){if(H._checkResp(w))return!1;if(q=w,U=x,H._isFullScreen||/top|bottom/.test(R.display)?u.width(w):A&&d.width(""),H._position(s),!H._isFullScreen&&/center|bubble/.test(R.display)&&(ae(".mbsc-w-p",s).each((function(){M=this.getBoundingClientRect().width,G+=M,j=j<M?M:j})),_=w-16<G||!0===R.tabs,d.css({width:H._isLiquid?Math.min(R.maxPopupWidth,w-16):Math.ceil(_?j:G),"white-space":_?"":"nowrap"})),!1!==F("onPosition",{target:E,popup:I,hasTabs:_,oldWidth:N,oldHeight:T,windowWidth:w,windowHeight:x})&&A)return B&&(V=m.scrollLeft(),z=m.scrollTop(),q&&l.css({width:"",height:""})),S=I.offsetWidth,k=I.offsetHeight,L=k<=x&&S<=w,"center"==R.display?(O=Math.max(0,V+(w-S)/2),D=Math.max(0,z+(x-k)/2)):"bubble"==R.display?(t=void 0===R.anchor?W:ae(R.anchor),f=ae(".mbsc-fr-arr-i",s)[0],a=(o=t.offset()).top+(g?z-r.offset().top:0),c=o.left+(g?V-r.offset().left:0),n=t[0].offsetWidth,i=t[0].offsetHeight,p=f.offsetWidth,h=f.offsetHeight,O=$(c-(S-n)/2,V+3,V+w-S-3),z+x<(D=a+i+h/2)+k+8&&z<a-k-h/2?(u.removeClass("mbsc-fr-bubble-bottom").addClass("mbsc-fr-bubble-top"),D=a-k-h/2):u.removeClass("mbsc-fr-bubble-top").addClass("mbsc-fr-bubble-bottom"),ae(".mbsc-fr-arr",s).css({left:$(c+n/2-(O+(S-p)/2),0,p)}),L=z<D&&V<O&&D+k<=z+x&&O+S<=V+w):(O=V,D="top"==R.display?z:Math.max(0,z+x-k)),B&&(v=Math.max(D+k,g?b.scrollHeight:ae(document).height()),C=Math.max(O+S,g?b.scrollWidth:ae(document).width()),l.css({width:C,height:v}),R.scroll&&"bubble"==R.display&&(z+x<D+k+8||z+x<a||a+i<z)&&m.scrollTop(Math.min(a,D+k-x+8,v-x))),P.top=Math.floor(D),P.left=Math.floor(O),u.css(P),!0}},H.attachShow=function(e,t){var n,r=ae(e).off(".mbsc"),i=r.prop("readonly");ne(r),"inline"!==R.display&&((R.showOnFocus||R.showOnTap)&&r.is("input,select")&&(r.prop("readonly",!0).on("mousedown.mbsc",(function(e){e.preventDefault()})).on("focus.mbsc",(function(){H._isVisible&&this.blur()})),(n=ae('label[for="'+r.attr("id")+'"]')).length||(n=r.closest("label"))),r.is("select")||(R.showOnFocus&&r.on("focus.mbsc",(function(){Pe?Pe=!1:ce(t,r)})),R.showOnTap&&(r.on("keydown.mbsc",(function(e){32!=e.keyCode&&13!=e.keyCode||(e.preventDefault(),e.stopPropagation(),ce(t,r))})),H.tap(r,(function(e){e.isMbscTap&&(V=!0),ce(t,r)})),n&&n.length&&(ne(n),H.tap(n,(function(e){e.preventDefault(),e.target!==r[0]&&ce(t,r)}))))),z.push({readOnly:i,el:r,lbl:n}))},H.select=function(){A?H.hide(!1,"set",!1,le):le()},H.cancel=function(){A?H.hide(!1,"cancel",!1,ue):ue()},H.clear=function(){H._clearValue(),F("onClear"),A&&H._isVisible&&!H.live?H.hide(!1,"clear",!1,me):me()},H.enable=function(){R.disabled=!1,ae.each(z,(function(e,t){t.el.is("input,select")&&(t.el[0].disabled=!1)}))},H.disable=function(){R.disabled=!0,ae.each(z,(function(e,t){t.el.is("input,select")&&(t.el[0].disabled=!0)}))},H.show=function(e,t){var n,p,h,y;if(!R.disabled&&!H._isVisible){if(H._readValue(),!1===F("onBeforeShow"))return!1;if(Oe=null,v=R.animate,f=R.buttons||[],B=g||"bubble"==R.display,N=Le&&!B&&R.scrollLock,n=0<f.length,!1!==v&&("top"==R.display?v=v||"slidedown":"bottom"==R.display?v=v||"slideup":"center"!=R.display&&"bubble"!=R.display||(v=v||"pop")),A&&(U=q=0,N&&!a.hasClass("mbsc-fr-lock-ios")&&(b.mbscScrollTop=y=Math.max(0,m.scrollTop()),b.mbscScrollLeft=h=Math.max(0,m.scrollLeft()),r.css({top:-y+"px",left:-h+"px"})),a.addClass((R.scrollLock?"mbsc-fr-lock":"")+(N?" mbsc-fr-lock-ios":"")+(g?" mbsc-fr-lock-ctx":"")),ae(document.activeElement).is("input,textarea")&&document.activeElement.blur(),P=i.activeInstance,i.activeInstance=H,b.mbscModals=(b.mbscModals||0)+1,N&&(b.mbscIOSLock=(b.mbscIOSLock||0)+1),R.scrollLock&&(b.mbscLock=(b.mbscLock||0)+1)),p='<div lang="'+R.lang+'" class="mbsc-fr mbsc-'+R.theme+(R.baseTheme?" mbsc-"+R.baseTheme:"")+" mbsc-fr-"+R.display+" "+(R.cssClass||"")+" "+(R.compClass||"")+(H._isLiquid?" mbsc-fr-liq":"")+(A?" mbsc-fr-pos"+(R.showOverlay?"":" mbsc-fr-no-overlay"):"")+(w?" mbsc-fr-pointer":"")+(qe?" mbsc-fr-hb":"")+(V?"":" mbsc-no-touch")+(N?" mbsc-platform-ios":"")+(n?3<=f.length?" mbsc-fr-btn-block ":"":" mbsc-fr-nobtn")+'">'+(A?'<div class="mbsc-fr-persp">'+(R.showOverlay?'<div class="mbsc-fr-overlay"></div>':"")+'<div role="dialog" class="mbsc-fr-scroll">':"")+'<div class="mbsc-fr-popup'+(R.rtl?" mbsc-rtl":" mbsc-ltr")+(R.headerText?" mbsc-fr-has-hdr":"")+'">'+("bubble"===R.display?'<div class="mbsc-fr-arr-w"><div class="mbsc-fr-arr-i"><div class="mbsc-fr-arr"></div></div></div>':"")+(A?'<div class="mbsc-fr-focus" tabindex="-1"></div>':"")+'<div class="mbsc-fr-w">'+(R.headerText?'<div class="mbsc-fr-hdr">'+(Z(R.headerText)?R.headerText:"")+"</div>":"")+'<div class="mbsc-fr-c">',p+=H._generateContent(),p+="</div>",n){var _,x,T,S=f.length;for(p+='<div class="mbsc-fr-btn-cont">',x=0;x<f.length;x++)T=R.btnReverse?S-x-1:x,"set"===(_=Z(_=f[T])?H.buttons[_]:_).handler&&(_.parentClass="mbsc-fr-btn-s"),"cancel"===_.handler&&(_.parentClass="mbsc-fr-btn-c"),p+="<div"+(R.btnWidth?' style="width:'+100/f.length+'%"':"")+' class="mbsc-fr-btn-w '+(_.parentClass||"")+'"><div tabindex="0" role="button" class="mbsc-fr-btn'+T+" mbsc-fr-btn-e "+(void 0===_.cssClass?R.btnClass:_.cssClass)+(_.icon?" mbsc-ic mbsc-ic-"+_.icon:"")+'">'+(_.text||"")+"</div></div>";p+="</div>"}s=ae(p+="</div></div></div></div>"+(A?"</div></div>":"")),l=ae(".mbsc-fr-persp",s),c=ae(".mbsc-fr-scroll",s),d=ae(".mbsc-fr-w",s),u=ae(".mbsc-fr-popup",s),o=ae(".mbsc-fr-hdr",s),E=s[0],D=c[0],I=u[0],H._activeElm=ae(".mbsc-fr-focus",s)[0],H._markup=s,H._isVisible=!0,H.markup=E,H._markupReady(s),F("onMarkupReady",{target:E}),A&&(ae(window).on("keydown",X),R.scrollLock&&(C(document,"touchmove",Y,{passive:!1}),C(document,"mousewheel",Y,{passive:!1}),C(document,"wheel",Y,{passive:!1})),R.focusTrap&&m.on("focusin",oe)),A?setTimeout((function(){se(e,t)}),N?100:0):se(e,t)}},H.hide=function(e,t,n,r){if(!H._isVisible||!n&&!H._isValid&&"set"==t||!n&&!1===F("onBeforeClose",{valueText:H._tempValue,button:t}))return!1;H._isVisible=!1,M&&(M.detach(),M=null),A&&(ae(document.activeElement).is("input,textarea")&&I.contains(document.activeElement)&&document.activeElement.blur(),i.activeInstance==H&&(i.activeInstance=P),ae(window).off("keydown",X),m.off("focusin",oe),_(document,"touchmove",Y,{passive:!1}),_(document,"mousewheel",Y,{passive:!1}),_(document,"wheel",Y,{passive:!1})),s&&(A&&y&&v&&!e?s.addClass("mbsc-anim-out mbsc-anim-trans mbsc-anim-trans-"+v).on(T,(function t(){s.off(T,t),re(e)})).find(".mbsc-fr-popup").addClass("mbsc-anim-"+v):re(e),H._detachEvents(s)),r&&r(),W.trigger("blur"),F("onClose",{valueText:H._value})},H.isVisible=function(){return H._isVisible},H.setVal=G,H.getVal=G,H._generateContent=G,H._attachEvents=G,H._detachEvents=G,H._readValue=G,H._clearValue=G,H._fillValue=G,H._markupReady=G,H._markupInserted=G,H._markupRemove=G,H._position=G,H.__processSettings=G,H.__init=G,H.__destroy=G,H._destroy=function(){H.hide(!0,!1,!0),W.off(".mbsc"),ne(W),ae.each(z,(function(e,t){t.el.off(".mbsc").prop("readonly",t.readOnly),ne(t.el),t.lbl&&(t.lbl.off(".mbsc"),ne(t.lbl))})),H.__destroy()},H._updateHeader=function(){var t=R.headerText,n=t?"function"==typeof t?t.call(e,H._tempValue):t.replace(/\{value\}/i,H._tempValue):"";o.html(n||"&nbsp;")},H._getRespCont=function(){return g="body"!=R.context,m=ae(g?R.context:window),"inline"==R.display?W.is("div")?W:W.parent():m},H._processSettings=function(e){var n,i;for(H.__processSettings(e),(w=!R.touchUi)&&(R.display=e.display||t.display||"bubble",R.buttons=e.buttons||t.buttons||[],R.showOverlay=e.showOverlay||t.showOverlay||!1),R.buttons=R.buttons||("inline"!==R.display?["cancel","set"]:[]),R.headerText=void 0===R.headerText?"inline"!==R.display&&"{value}":R.headerText,f=R.buttons||[],A="inline"!==R.display,r=ae(R.context),a=g?r:ae("body,html"),b=r[0],H.live=!0,i=0;i<f.length;i++)"ok"!=(n=f[i])&&"set"!=n&&"set"!=n.handler||(H.live=!1);H.buttons.set={text:R.setText,icon:R.setIcon,handler:"set"},H.buttons.cancel={text:R.cancelText,icon:R.cancelIcon,handler:"cancel"},H.buttons.close={text:R.closeText,icon:R.closeIcon,handler:"cancel"},H.buttons.clear={text:R.clearText,icon:R.clearIcon,handler:"clear"},H._isInput=W.is("input")},H._init=function(e){var t=H._isVisible,n=t&&!s.hasClass("mbsc-fr-pos");t&&H.hide(!0,!1,!0),W.off(".mbsc"),ne(W),H.__init(e),H._isLiquid="liquid"==R.layout,A?(H._readValue(),H._hasContent||R.skipShow||H.attachShow(W),t&&H.show(n)):H.show(),W.removeClass("mbsc-cloak").filter("input, select, textarea").on("change.mbsc",(function(){H._preventChange||H.setVal(W.val(),!0,!1),H._preventChange=!1}))},H.buttons={},H.handlers={set:H.select,cancel:H.cancel,clear:H.clear},H._value=null,H._isValid=!0,H._isVisible=!1,R=H.settings,F=H.trigger,n||H.init()}var Oe,Pe,Re=i.themes,Le=/(iphone|ipod)/i.test(u)&&7<=n,Ve="android"==e,Fe="ios"==e,qe=Fe&&7<n,Ue="input,select,textarea,button";function He(e,t,n){var r,i,o,a,s,c,l,u,m,d,f,p,v,y,x,w,T,E,S,N,M,D,I,O,P,R,L,V,F,q,U,H,W,z,j,G,Q,Y,X,J,ee,ne,re,ie,oe,se=this,ce=0,le=1,ue=t,me=ae(e);function de(e){re("onStart",{domEvent:e}),ue.stopProp&&e.stopPropagation(),ue.prevDef&&"mousedown"==e.type&&e.preventDefault(),ue.readonly||ue.lock&&M||g(e,this)&&!N&&(r&&r.removeClass("mbsc-active"),x=!1,M||(r=ae(e.target).closest(".mbsc-btn-e",this)).length&&!r.hasClass("mbsc-disabled")&&(x=!0,a=setTimeout((function(){r.addClass("mbsc-active")}),100)),D=F=!(N=!0),se.scrolled=M,Q=te(e,"X"),Y=te(e,"Y"),p=Q,u=l=c=0,G=new Date,j=+A(J,ie)||0,M&&Te(j,We?0:1),"mousedown"===e.type&&ae(document).on("mousemove",pe).on("mouseup",be))}function pe(e){N&&(ue.stopProp&&e.stopPropagation(),p=te(e,"X"),v=te(e,"Y"),c=p-Q,l=v-Y,u=ie?l:c,x&&(Math.abs(l)>ue.thresholdY||Math.abs(c)>ue.thresholdX)&&(clearTimeout(a),r.removeClass("mbsc-active"),x=!1),(se.scrolled||!D&&Math.abs(u)>ne)&&(F||re("onGestureStart",y),se.scrolled=F=!0,O||(O=!0,I=h(he))),ie||ue.scrollLock||se.scrolled?e.preventDefault():7<Math.abs(l)&&(D=!0,se.scrolled=!0,be()))}function he(){E&&(u=$(u,-W*E,W*E)),Te($(j+u,S-f,T+f)),O=!1}function be(e){if(N){var t,n=new Date-G;ue.stopProp&&e&&e.stopPropagation(),b(I),O=!1,!D&&se.scrolled&&(ue.momentum&&n<300&&(t=u/n,u=Math.max(Math.abs(u),t*t/ue.speedUnit)*(u<0?-1:1)),we(u)),x&&(clearTimeout(a),r.addClass("mbsc-active"),setTimeout((function(){r.removeClass("mbsc-active")}),100),D||se.scrolled||re("onBtnTap",{target:r[0],domEvent:e})),e&&"mouseup"==e.type&&ae(document).off("mousemove",pe).off("mouseup",be),N=!1}}function ve(e){se.scrolled&&(se.scrolled=!1,e.stopPropagation(),e.preventDefault())}function ge(t){if(e.contains(t.target)&&(t=t.originalEvent||t,u=ie?null==t.deltaY?t.wheelDelta||t.detail:t.deltaY:t.deltaX,re("onStart",{domEvent:t}),ue.stopProp&&t.stopPropagation(),u)){if(t.preventDefault(),t.deltaMode&&1==t.deltaMode&&(u*=15),u=$(-u,-U,U),j=oe,ue.readonly)return;if(F||xe(),j+u<S&&(j=S,u=0),T<j+u&&(j=T,u=0),O||(O=!0,I=h(he)),!u&&F)return;F=!0,clearTimeout(q),q=setTimeout((function(){b(I),F=O=!1,we(u)}),200)}}function Ae(e){re("onStart",{domEvent:e}),ue.readonly||(e.stopPropagation(),j=oe,F=!1,e.target==P?(Y=te(e,"Y",!0),ae(document).on("mousemove",ye).on("mouseup",Ce)):(Y=i.offset().top,ye(e),Ce()))}function ye(e){var t=(te(e,"Y",!0)-Y)/s;u=w?$(u=-(E*W*2+s)*t,-W*E,W*E):(S-T-s)*t,F||xe(),F=!0,Te($(j+u,S-f,T+f))}function Ce(){j=oe,we(0),ae(document).off("mousemove",ye).off("mouseup",Ce)}function _e(e){e.stopPropagation()}function xe(){re("onGestureStart",y={posX:ie?0:oe,posY:ie?oe:0,originX:ie?0:j,originY:ie?j:0,direction:0<u?ie?270:360:ie?90:180})}function we(e){var t,n,r;if(E&&(e=$(e,-W*E,W*E)),r=$(Math.round((j+e)/W)*W,S,T),z){if(e<0){for(t=z.length-1;0<=t;t--)if(Math.abs(r)+s>=z[t].breakpoint){le=2,r=z[ce=t].snap2;break}}else if(0<=e)for(t=0;t<z.length;t++)if(Math.abs(r)<=z[t].breakpoint){le=1,r=z[ce=t].snap1;break}r=$(r,S,T)}n=ue.time||(oe<S||T<oe?1e3:Math.max(1e3,Math.abs(r-oe)*ue.timeUnit)),y.destinationX=ie?0:r,y.destinationY=ie?r:0,y.duration=n,y.transitionTiming=d,re("onGestureEnd",y),se.scroll(r,n)}function Te(e,t,n,r){function i(){clearInterval(H),clearTimeout(ee),M=!1,oe=e,y.posX=ie?0:e,y.posY=ie?e:0,a&&re("onMove",y),c&&re("onAnimationEnd",y),r&&r()}var o,a=e!=oe,c=1<t,l=t?k+"transform "+Math.round(t)+"ms "+d:"";y={posX:ie?0:oe,posY:ie?oe:0,originX:ie?0:j,originY:ie?j:0,direction:0<e-oe?ie?270:360:ie?90:180},oe=e,c&&(y.destinationX=ie?0:e,y.destinationY=ie?e:0,y.duration=t,y.transitionTiming=d,re("onAnimationStart",y)),X[B+"Transition"]=l,X[B+"Transform"]="translate3d("+(ie?"0,"+e+"px,":e+"px,0,")+"0)",P&&R&&(o=w?(L-e)/(E*W*2):(e-T)/(S-T),P.style[B+"Transition"]=l,P.style[B+"Transform"]="translate3d(0,"+Math.max(0,Math.min((s-R)*o,s-R))+"px,0)"),!a&&!M||!t||t<=1?i():t&&(M=!n,clearInterval(H),H=setInterval((function(){var t=+A(J,ie)||0;y.posX=ie?0:t,y.posY=ie?t:0,re("onMove",y),Math.abs(t-e)<2&&i()}),100),clearTimeout(ee),ee=setTimeout((function(){i()}),t)),ue.sync&&ue.sync(e,t,d)}fe.call(this,e,t,!0),se.scrolled=!1,se.scroll=function(t,n,r,i){t=$(t=K(t)?Math.round(t/W)*W:Math.ceil((ae(t,e).length?Math.round(J.offset()[m]-ae(t,e).offset()[m]):oe)/W)*W,S,T),ce=Math.round(t/W),j=oe,L=E*W+t,Te(t,n,r,i)},se.refresh=function(e){var t;for(s=(void 0===ue.contSize?ie?me.height():me.width():ue.contSize)||0,T=(void 0===ue.maxScroll?0:ue.maxScroll)||0,S=Math.min(T,void 0===ue.minScroll?Math.min(0,ie?s-J.height():s-J.width()):ue.minScroll)||0,z=null,!ie&&ue.rtl&&(t=T,T=-S,S=-t),Z(ue.snap)&&(z=[],J.find(ue.snap).each((function(){var e=ie?this.offsetTop:this.offsetLeft,t=ie?this.offsetHeight:this.offsetWidth;z.push({breakpoint:e+t/2,snap1:-e,snap2:s-e-t})}))),W=K(ue.snap)?ue.snap:1,E=ue.snap?ue.maxSnapScroll:0,d=ue.easing,f=ue.elastic?K(ue.snap)?W:K(ue.elastic)?ue.elastic:0:0,U=W;44<U;)U/=2;U=Math.round(44/U)*U,P&&(w=S==-1/0||T==1/0,R=S<T?Math.max(20,s*s/(T-S+s)):0,P.style.height=R+"px",V.style.height=R?"":0),void 0===oe&&(oe=ue.initialPos,ce=Math.round(oe/W)),e||se.scroll(ue.snap?z&&z[ce]?z[ce]["snap"+le]:ce*W:oe)},se._processSettings=function(){ie="Y"==ue.axis,m=ie?"top":"left",J=ue.moveElement||me.children().eq(0),X=J[0].style,ne=ie?ue.thresholdY:ue.thresholdX,ue.scrollbar&&(o=ue.scrollbar,i=o.find(".mbsc-sc-bar"),P=i[0],V=o[0])},se._init=function(){se.refresh(),C(e,"mousedown",de),C(e,"touchstart",de,{passive:!0}),C(e,"touchend",be),C(e,"touchcancel",be),C(e,"click",ve,!0),C(document,"touchmove",pe,{passive:!1}),ue.mousewheel&&(C(document,"wheel",ge,{passive:!1,capture:!0}),C(document,"mousewheel",ge,{passive:!1,capture:!0})),P&&o.on("mousedown",Ae).on("click",_e)},se._destroy=function(){clearInterval(H),_(e,"mousedown",de),_(e,"touchstart",de,{passive:!0}),_(e,"touchend",be),_(e,"touchcancel",be),_(e,"click",ve,!0),_(document,"touchmove",pe,{passive:!1}),_(document,"wheel",ge,{passive:!1,capture:!0}),_(document,"mousewheel",ge,{passive:!1,capture:!0}),P&&o.off("mousedown",Ae).off("click",_e)},ue=se.settings,re=se.trigger,n||se.init()}Ie.prototype._defaults={lang:"en",setText:"Set",selectedText:"{count} selected",closeText:"Close",cancelText:"Cancel",clearText:"Clear",context:"body",maxPopupWidth:600,disabled:!1,closeOnOverlayTap:!0,showOnFocus:Ve||Fe,showOnTap:!0,display:"center",scroll:!0,scrollLock:!0,showOverlay:!0,tap:!0,touchUi:!0,btnClass:"mbsc-fr-btn",btnWidth:!0,focusTrap:!0,focusOnClose:!(Fe&&8==n)},le.Frame=Ie,Re.frame.mobiscroll={headerText:!1,btnWidth:!1},Re.scroller.mobiscroll=de({},Re.frame.mobiscroll,{rows:5,showLabel:!1,selectedLineBorder:1,weekDays:"min",checkIcon:"ion-ios7-checkmark-empty",btnPlusClass:"mbsc-ic mbsc-ic-arrow-down5",btnMinusClass:"mbsc-ic mbsc-ic-arrow-up5",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left5",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right5"}),c&&ae(window).on("focus",(function(){Oe&&(Pe=!0)}));var We="ios"==e;He.prototype={_defaults:{speedUnit:.0022,timeUnit:3,initialPos:0,axis:"Y",thresholdX:10,thresholdY:5,easing:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",stopProp:!0,momentum:!0,mousewheel:!0,elastic:!0}};var ze={},je=c?window.CSS:null,Ge=je&&je.supports&&je.supports("(transform-style: preserve-3d)");function Qe(e){return(e+"").replace(/"/g,"___")}function Ke(e,t,n){var r,i,o,a,s,c,l,u,m,d,f,p,h,b,v,g,A,y=40,C=this,_=ae(e);function x(e){var t,n,r=+ae(this).attr("data-index");38==e.keyCode?(t=!0,n=-1):40==e.keyCode?(t=!0,n=1):32==e.keyCode&&(t=!0,T(r,ae(e.target))),t&&(e.stopPropagation(),e.preventDefault(),n&&l.start(r,n,e))}function w(){l.stop()}function T(e,t){var n=g[e],r=+t.attr("data-index"),i=I(n,r),o=C._tempSelected[e],a=K(n.multiple)?n.multiple:1/0;!1===b("onItemTap",{target:t[0],index:e,value:i,selected:t.hasClass("mbsc-sc-itm-sel")})||C._prevItemTap||(n.multiple&&!n._disabled[i]&&(void 0!==o[i]?(t.removeClass(s).removeAttr("aria-selected"),delete o[i]):(1==a&&(C._tempSelected[e]=o={},n._$markup.find(".mbsc-sc-itm-sel").removeClass(s).removeAttr("aria-selected")),Q(o).length<a&&(t.addClass(s).attr("aria-selected","true"),o[i]=i))),q(n,e,r,1e3,n._index<r?1:2,!0,n.multiple),C.live&&(!n.multiple||1===n.multiple&&h.tapSelect)&&(!0===h.setOnTap||h.setOnTap[e])&&setTimeout((function(){C.select()}),h.tapSelect?0:200)),C._prevItemTap=!1}function E(e){return-(e.max-e._offset-(e.multiple&&!a?Math.floor(h.rows/2):0))*m}function S(e){return-(e.min-e._offset+(e.multiple&&!a?Math.floor(h.rows/2):0))*m}function N(e,t){return(e._array?e._map[t]:+e.getIndex(t,C))||0}function M(e,t){var n=e.data;if(t>=e.min&&t<=e.max)return e._array?e.circular?ae(n).get(t%e._length):n[t]:ae.isFunction(n)?n(t,C):""}function D(e){return ae.isPlainObject(e)?void 0!==e.value?e.value:e.display:e}function I(e,t){return D(M(e,t))}function O(e,t,n){var r=g[e];q(r,e,r._index+t,h.delay+100,1==t?1:2,!1,!1,"keydown"==n.type)}function P(e){return ae.isArray(h.readonly)?h.readonly[e]:h.readonly}function R(e,t,n){var r=de(g[t]||{},e),i=r._index-r._batch;return r.data=r.data||[],r.key=void 0!==r.key?r.key:t,r.label=void 0!==r.label?r.label:t,r._map={},r._array=ae.isArray(r.data),r._array&&(r._length=r.data.length,ae.each(r.data,(function(e,t){r._map[D(t)]=e}))),r.circular=void 0===h.circular?void 0===r.circular?r._array&&r._length>h.rows:r.circular:ae.isArray(h.circular)?h.circular[t]:h.circular,r.min=r._array?r.circular?-1/0:0:void 0===r.min?-1/0:r.min,r.max=r._array?r.circular?1/0:r._length-1:void 0===r.max?1/0:r.max,r._nr=t,r._index=N(r,u[t]),r._disabled={},r._batch=0,r._current=r._index,r._first=r._index-y,r._last=r._index+y,r._offset=r._first,n?(r._offset-=r._margin/m+(r._index-i),r._margin+=(r._index-i)*m):r._margin=0,r._refresh=function(e){de(r._scroller.settings,{minScroll:E(r),maxScroll:S(r)}),r._scroller.refresh(e)},A[r.key]=r}function L(e,t,n,r,i){var a,c,l,d,f,p,b,g,A,y,_="",x=C._tempSelected[t],w=e._disabled||{};for(a=n;a<=r;a++)A=l=M(e,a),f=void 0===(y=ae.isPlainObject(A)?A.display:A)?"":y,d=D(l),c=l&&void 0!==l.cssClass?l.cssClass:"",p=l&&void 0!==l.label?l.label:"",b=l&&l.invalid,g=void 0!==d&&d==u[t]&&!e.multiple,_+='<div role="option" tabindex="-1" aria-selected="'+!!x[d]+'" class="mbsc-sc-itm '+(i?"mbsc-sc-itm-3d ":"")+c+" "+(g?"mbsc-sc-itm-sel ":"")+(x[d]?s:"")+(void 0===d?" mbsc-sc-itm-ph":" mbsc-btn-e")+(b?" mbsc-sc-itm-inv-h mbsc-disabled":"")+(w[d]?" mbsc-sc-itm-inv mbsc-disabled":"")+'" data-index="'+a+'" data-val="'+Qe(d)+'"'+(p?' aria-label="'+p+'"':"")+(g?' aria-selected="true"':"")+' style="height:'+m+"px;line-height:"+m+"px;"+(i?k+"transform:rotateX("+(e._offset-a)*o%360+"deg) translateZ("+m*h.rows/2+"px);":"")+'">'+(1<v?'<div class="mbsc-sc-itm-ml" style="line-height:'+Math.round(m/v)+"px;font-size:"+Math.round(m/v*.8)+'px;">':"")+f+(1<v?"</div>":"")+"</div>";return _}function V(e,t,n,r){var i,o=g[e],a=r||o._disabled,s=N(o,t),c=I(o,s),l=c,u=c,m=0,d=0;if(!0===a[c]){for(i=0;s-m>=o.min&&a[l]&&i<100;)i++,l=I(o,s-++m);for(i=0;s+d<o.max&&a[u]&&i<100;)i++,u=I(o,s+ ++d);c=(d<m&&d&&2!==n||!m||s-m<0||1==n)&&!a[u]?u:l}return c}function F(t,n,r,i,o,c,l){var d,f,v,A,y,_,x,w=C._isVisible;p=!0,A=h.validate.call(e,{values:u.slice(0),index:n,direction:r},C)||{},p=!1,A.valid&&(C._tempWheelArray=u=A.valid.slice(0)),c||ae.each(g,(function(e,i){if(w&&i._$markup.find(".mbsc-sc-itm-inv").removeClass("mbsc-sc-itm-inv mbsc-disabled"),i._disabled={},A.disabled&&A.disabled[e]&&ae.each(A.disabled[e],(function(e,t){i._disabled[t]=!0,w&&i._$markup.find('.mbsc-sc-itm[data-val="'+Qe(t)+'"]').addClass("mbsc-sc-itm-inv mbsc-disabled")})),u[e]=i.multiple?u[e]:V(e,u[e],r),w){if(i.multiple&&void 0!==n||i._$markup.find(".mbsc-sc-itm-sel").removeClass(s).removeAttr("aria-selected"),f=N(i,u[e]),d=f-i._index+i._batch,Math.abs(d)>81&&(v=d+81*(0<d?-1:1),i._offset+=v,i._margin-=v*m,i._refresh()),i._index=f+i._batch,i.multiple){if(void 0===n)for(var c in C._tempSelected[e])i._$markup.find('.mbsc-sc-itm[data-val="'+Qe(c)+'"]').addClass(s).attr("aria-selected","true")}else i._$markup.find('.mbsc-sc-itm[data-val="'+Qe(u[e])+'"]').addClass("mbsc-sc-itm-sel").attr("aria-selected","true");i._$active&&i._$active.attr("tabindex",-1),i._$active=i._$markup.find('.mbsc-sc-itm[data-index="'+i._index+'"]').eq(a&&i.multiple?1:0).attr("tabindex",0),l&&n===e&&i._$active.length&&(i._$active[0].focus(),i._$scroller.parent().scrollTop(0)),i._scroller.scroll(-(f-i._offset+i._batch)*m,n===e||void 0===n?t:1e3,o)}})),b("onValidated",{index:n,time:t}),C._tempValue=h.formatValue.call(e,u,C),w&&C._updateHeader(),C.live&&(_=c,(x=g[y=n])&&(!x.multiple||1!==x.multiple&&_&&(!0===h.setOnTap||h.setOnTap[y])))&&(C._hasValue=i||C._hasValue,U(i,i,0,!0),i&&b("onSet",{valueText:C._value})),i&&b("onChange",{index:n,valueText:C._tempValue})}function q(e,t,n,r,i,o,a,s){var c=I(e,n);void 0!==c&&(u[t]=c,e._batch=e._array?Math.floor(n/e._length)*e._length:0,e._index=n,setTimeout((function(){F(r,t,i,!0,o,a,s)}),10))}function U(t,n,r,i,o){if(i?C._tempValue=h.formatValue.call(e,C._tempWheelArray,C):F(r),!o){C._wheelArray=[];for(var a=0;a<u.length;a++)C._wheelArray[a]=g[a]&&g[a].multiple?Object.keys(C._tempSelected[a]||{})[0]:u[a];C._value=C._hasValue?C._tempValue:null,C._selected=de(!0,{},C._tempSelected)}t&&(C._isInput&&_.val(C._hasValue?C._tempValue:""),b("onFill",{valueText:C._hasValue?C._tempValue:"",change:n}),n&&(C._preventChange=!0,_.trigger("change")))}Ie.call(this,e,t,!0),C.setVal=C._setVal=function(t,n,r,i,o){C._hasValue=null!=t,C._tempWheelArray=u=ae.isArray(t)?t.slice(0):h.parseValue.call(e,t,C)||[],U(n,void 0===r?n:r,o,!1,i)},C.getVal=C._getVal=function(e){var t=C._hasValue||e?C[e?"_tempValue":"_value"]:null;return K(t)?+t:t},C.setArrayVal=C.setVal,C.getArrayVal=function(e){return e?C._tempWheelArray:C._wheelArray},C.changeWheel=function(e,t,n){var r,o,s;ae.each(e,(function(e,t){(s=A[e])&&(r=s._nr,o=R(t,r,!0),C._isVisible&&(a&&o._$3d.html(L(o,r,o._first+y-i+1,o._last-y+i,!0)),o._$scroller.html(L(o,r,o._first,o._last)).css("margin-top",o._margin+"px"),o._refresh(p)))})),!C._isVisible||C._isLiquid||p||C.position(),p||F(t,void 0,void 0,n)},C.getValidValue=V,C._generateContent=function(){var e,t=0,n="",r=a?k+"transform: translateZ("+(m*h.rows/2+3)+"px);":"",o='<div class="mbsc-sc-whl-l" style="'+r+"height:"+m+"px;margin-top:-"+(m/2+(h.selectedLineBorder||0))+'px;"></div>',s=0;return ae.each(h.wheels,(function(l,u){n+='<div class="mbsc-w-p mbsc-sc-whl-gr-c'+(a?" mbsc-sc-whl-gr-3d-c":"")+(h.showLabel?" mbsc-sc-lbl-v":"")+'">'+o+'<div class="mbsc-sc-whl-gr'+(a?" mbsc-sc-whl-gr-3d":"")+(c?" mbsc-sc-cp":"")+(h.width||h.maxWidth?'"':'" style="max-width:'+h.maxPopupWidth+'px;"')+">",ae.each(u,(function(l,u){C._tempSelected[s]=de({},C._selected[s]);var p=R(u,s),b=!f||h.rows%2?d/2:0;g[s]=p,t+=h.maxWidth?h.maxWidth[s]||h.maxWidth:h.width?h.width[s]||h.width:0,e=void 0!==p.label?p.label:l,n+='<div class="mbsc-sc-whl-w '+(p.cssClass||"")+(p.multiple?" mbsc-sc-whl-multi":"")+'" style="'+(h.width?"width:"+(h.width[s]||h.width)+"px;":(h.minWidth?"min-width:"+(h.minWidth[s]||h.minWidth)+"px;":"")+(h.maxWidth?"max-width:"+(h.maxWidth[s]||h.maxWidth)+"px;":""))+'">'+(f?'<div class="mbsc-sc-bar-c"><div class="mbsc-sc-bar"></div></div>':"")+'<div class="mbsc-sc-whl-o" style="'+r+'"></div>'+o+'<div aria-live="off" aria-label="'+e+'"'+(p.multiple?' aria-multiselectable="true"':"")+' role="listbox" data-index="'+s+'" class="mbsc-sc-whl" style="height:'+h.rows*m*(a?1.1:1)+'px;">'+(c?'<div data-index="'+s+'" data-step="1" class="mbsc-sc-btn mbsc-sc-btn-plus '+(h.btnPlusClass||"")+'"></div><div data-index="'+s+'" data-step="-1" class="mbsc-sc-btn mbsc-sc-btn-minus '+(h.btnMinusClass||"")+'"></div>':"")+'<div class="mbsc-sc-lbl">'+e+'</div><div class="mbsc-sc-whl-c" style="height:'+d+"px;margin-top:-"+(1+b)+"px;"+r+'"><div class="mbsc-sc-whl-sc" style="top:'+(d-m)/2+'px;">',n+=L(p,s,p._first,p._last)+"</div></div>",a&&(n+='<div class="mbsc-sc-whl-3d" style="height:'+m+"px;margin-top:-"+m/2+'px;">',n+=L(p,s,p._first+y-i+1,p._last-y+i,!0),n+="</div>"),n+="</div></div>",s++})),n+="</div></div>"})),t&&(h.maxPopupWidth=t),n},C._attachEvents=function(e){l=Be(ae(".mbsc-sc-btn",e),O,h.delay,P,!0),ae(".mbsc-sc-whl",e).on("keydown",x).on("keyup",w)},C._detachEvents=function(){l&&l.stop();for(var e=0;e<g.length;e++)g[e]._scroller.destroy()},C._markupReady=function(e){ae(".mbsc-sc-whl-w",r=e).each((function(e){var t,n=ae(this),r=g[e];r._$markup=n,r._$scroller=ae(".mbsc-sc-whl-sc",this),r._$3d=ae(".mbsc-sc-whl-3d",this),r._scroller=new He(this,{mousewheel:h.mousewheel,moveElement:r._$scroller,scrollbar:ae(".mbsc-sc-bar-c",this),initialPos:(r._first-r._index)*m,contSize:h.rows*m,snap:m,minScroll:E(r),maxScroll:S(r),maxSnapScroll:y,prevDef:!0,stopProp:!0,timeUnit:3,easing:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",sync:function(e,t,n){var i=t?k+"transform "+Math.round(t)+"ms "+n:"";a&&(r._$3d[0].style[B+"Transition"]=i,r._$3d[0].style[B+"Transform"]="rotateX("+-e/m*o+"deg)")},onStart:function(t,n){n.settings.readonly=P(e)},onGestureStart:function(){n.addClass("mbsc-sc-whl-a mbsc-sc-whl-anim"),b("onWheelGestureStart",{index:e})},onGestureEnd:function(n){var i=90==n.direction?1:2,o=n.duration,a=n.destinationY;t=Math.round(-a/m)+r._offset,q(r,e,t,o,i)},onAnimationStart:function(){n.addClass("mbsc-sc-whl-anim")},onAnimationEnd:function(){n.removeClass("mbsc-sc-whl-a mbsc-sc-whl-anim"),b("onWheelAnimationEnd",{index:e}),r._$3d.find(".mbsc-sc-itm-del").remove()},onMove:function(t){var n,o,s,c,l,u,d,f,p;n=r,o=e,s=t.posY,l=(c=Math.round(-s/m)+n._offset)-n._current,u=n._first,d=n._last,f=u+y-i+1,p=d-y+i,l&&(n._first+=l,n._last+=l,n._current=c,0<l?(n._$scroller.append(L(n,o,Math.max(d+1,u+l),d+l)),ae(".mbsc-sc-itm",n._$scroller).slice(0,Math.min(l,d-u+1)).remove(),a&&(n._$3d.append(L(n,o,Math.max(p+1,f+l),p+l,!0)),ae(".mbsc-sc-itm",n._$3d).slice(0,Math.min(l,p-f+1)).attr("class","mbsc-sc-itm-del"))):l<0&&(n._$scroller.prepend(L(n,o,u+l,Math.min(u-1,d+l))),ae(".mbsc-sc-itm",n._$scroller).slice(Math.max(l,u-d-1)).remove(),a&&(n._$3d.prepend(L(n,o,f+l,Math.min(f-1,p+l),!0)),ae(".mbsc-sc-itm",n._$3d).slice(Math.max(l,f-p-1)).attr("class","mbsc-sc-itm-del"))),n._margin+=l*m,n._$scroller.css("margin-top",n._margin+"px"))},onBtnTap:function(t){T(e,ae(t.target))}})})),F()},C._fillValue=function(){U(C._hasValue=!0,!0,0,!0)},C._clearValue=function(){ae(".mbsc-sc-whl-multi .mbsc-sc-itm-sel",r).removeClass(s).removeAttr("aria-selected")},C._readValue=function(){var t=_.val()||"",n=0;""!==t&&(C._hasValue=!0),C._tempWheelArray=u=C._hasValue&&C._wheelArray?C._wheelArray.slice(0):h.parseValue.call(e,t,C)||[],C._tempSelected=de(!0,{},C._selected),ae.each(h.wheels,(function(e,t){ae.each(t,(function(e,t){g[n]=R(t,n),n++}))})),U(!1,!1,0,!0),b("onRead")},C.__processSettings=function(e){h=C.settings,b=C.trigger,v=h.multiline,s="mbsc-sc-itm-sel mbsc-ic mbsc-ic-"+h.checkIcon,(f=!h.touchUi)&&(h.tapSelect=!0,h.circular=!1,h.rows=e.rows||t.rows||7)},C.__init=function(e){e&&(C._wheelArray=null),g=[],A={},c=h.showScrollArrows,a=h.scroll3d&&Ge&&!c&&!f&&("ios"==h.theme||"ios"==h.baseTheme),m=h.height,d=a?2*Math.round((m-.03*(m*h.rows/2+3))/2):m,i=Math.round(1.8*h.rows),o=360/(2*i),c&&(h.rows=Math.max(3,h.rows))},C._getItemValue=D,C._tempSelected={},C._selected={},n||C.init()}function Ze(e){function t(e){var t,n,r,i,o=[];if(e){for(t=0;t<e.length;t++)if((n=e[t]).start&&n.end&&!Te.test(n.start))for(r=new Date(_e(n.start,D,B)),i=new Date(_e(n.end,D,B));r<=i;)o.push(pe(r.getFullYear(),r.getMonth(),r.getDate())),r.setDate(r.getDate()+1);else o.push(n);return o}return e}function n(e,t,n,r){return Math.min(r,Math.floor(e/t)*t+n)}function r(e,t,n){return Math.floor((n-t)/e)*e+t}function i(e){return e.getFullYear()+"-"+Y(e.getMonth()+1)+"-"+Y(e.getDate())}function o(e,t,n,r){var i;return void 0===_[t]||(i=+e[_[t]],isNaN(i))?n?se[t](n):void 0!==x[t]?x[t]:se[t](r):i}function s(e){var t,n=new Date((new Date).setHours(0,0,0,0));if(null===e)return e;void 0!==_.dd&&(t=e[_.dd].split("-"),t=new Date(t[0],t[1]-1,t[2])),void 0!==_.tt&&(t=t||n,t=new Date(t.getTime()+e[_.tt]%86400*1e3));var r=o(e,"y",t,n),i=o(e,"m",t,n),a=Math.min(o(e,"d",t,n),B.getMaxDayOfMonth(r,i)),s=o(e,"h",t,n);return B.getDate(r,i,a,W&&o(e,"a",t,n)?s+12:s,o(e,"i",t,n),o(e,"s",t,n),o(e,"u",t,n))}function c(e,t){var n,r,i=["y","m","d","a","h","i","s","u","dd","tt"],o=[];if(null==e)return e;for(n=0;n<i.length;n++)void 0!==_[r=i[n]]&&(o[_[r]]=se[r](e)),t&&(x[r]=se[r](e));return o}function l(e,t){return t?Math.floor(new Date(e)/864e5):e.getMonth()+12*(e.getFullYear()-1970)}function u(e){return{value:e,display:(/yy/i.test(P)?e:(e+"").substr(2,2))+(B.yearSuffix||"")}}function m(e){return e}function d(e){var t=/d/i.test(e);return{label:"",cssClass:"mbsc-dt-whl-date",min:q?l(i(q),t):void 0,max:U?l(i(U),t):void 0,data:function(n){var r=new Date((new Date).setHours(0,0,0,0)),o=t?new Date(864e5*n):new Date(1970,n,1);return t&&(o=new Date(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),{invalid:t&&!h(o,!0),value:i(o),display:r.getTime()==o.getTime()?B.todayText:he(e,o,B)}},getIndex:function(e){return l(e,t)}}}function f(e){var t,n,r,i=[];for(/s/i.test(e)?n=K:/i/i.test(e)?n=60*Q:/h/i.test(e)&&(n=3600*G),A=oe.tt=n,t=0;t<86400;t+=n)r=new Date((new Date).setHours(0,0,0,0)+1e3*t),i.push({value:t,display:he(e,r,B)});return{label:"",cssClass:"mbsc-dt-whl-time",data:i}}function p(e,t){return B.getYear(e)===B.getYear(t)&&B.getMonth(e)===B.getMonth(t)}function h(e,t){return!(!t&&e<q||!t&&U<e||!b(e,F)&&b(e,V))}function b(e,t){var n,r,i,o;if(t)for(r=0;r<t.length;r++)if(i=(o=(n=t[r]).d||n)+"",!n.start)if(Se.test(i)){if((i=+i.replace("w",""))==e.getDay())return!0}else if(Ee.test(i)){if((i=i.split("/"))[1]){if(i[0]-1==e.getMonth()&&i[1]==e.getDate())return!0}else if(i[0]==e.getDate())return!0}else if(n=_e(o,D,B),e.getFullYear()==n.getFullYear()&&e.getMonth()==n.getMonth()&&e.getDate()==n.getDate())return!0;return!1}function v(e,t,n,r,i,o,a){var s,c,l,u,m;if(e)for(l=0;l<e.length;l++)if(m=(c=(s=e[l]).d||s)+"",!s.start)if(Se.test(m))for(u=(m=+m.replace("w",""))-r;u<i;u+=7)0<=u&&(o[u+1]=a);else Ee.test(m)?(m=m.split("/"))[1]?m[0]-1==n&&(o[m[1]]=a):o[m[0]]=a:(s=_e(c,D,B),B.getYear(s)==t&&B.getMonth(s)==n&&(o[B.getDay(s)]=a))}function g(e,t,r,i,o,a,s,c){var l,u,m,d,f,p,h,b,v,g,y,C,_,x,w,E,S,k,N,M,D={},I=B.getDate(i,o,a),O=["a","h","i","s"];if(e){for(h=0;h<e.length;h++)(y=e[h]).start&&(y.apply=!1,k=(S=(m=y.d)+"").split("/"),m&&(m.getTime&&i==B.getYear(m)&&o==B.getMonth(m)&&a==B.getDay(m)||!Se.test(S)&&(k[1]&&a==k[1]&&o==k[0]-1||!k[1]&&a==k[0])||Se.test(S)&&I.getDay()==+S.replace("w",""))&&(y.apply=!0,D[I]=!0));for(h=0;h<e.length;h++)if(y=e[h],E=l=0,b=re[r],v=ie[r],u=!(w=x=!0),y.start&&(y.apply||!y.d&&!D[I])){for(C=y.start.split(":"),_=y.end.split(":"),g=0;g<3;g++)void 0===C[g]&&(C[g]=0),void 0===_[g]&&(_[g]=59),C[g]=+C[g],_[g]=+_[g];if("tt"==r)b=n(Math.round((new Date(I).setHours(C[0],C[1],C[2])-new Date(I).setHours(0,0,0,0))/1e3),A,0,86400),v=n(Math.round((new Date(I).setHours(_[0],_[1],_[2])-new Date(I).setHours(0,0,0,0))/1e3),A,0,86400);else{for(C.unshift(11<C[0]?1:0),_.unshift(11<_[0]?1:0),W&&(12<=C[1]&&(C[1]=C[1]-12),12<=_[1]&&(_[1]=_[1]-12)),g=0;g<t;g++)void 0!==T[g]&&(N=n(C[g],oe[O[g]],re[O[g]],ie[O[g]]),M=n(_[g],oe[O[g]],re[O[g]],ie[O[g]]),p=f=d=0,W&&1==g&&(d=C[0]?12:0,f=_[0]?12:0,p=T[0]?12:0),x||(N=0),w||(M=ie[O[g]]),(x||w)&&N+d<T[g]+p&&T[g]+p<M+f&&(u=!0),T[g]!=N&&(x=!1),T[g]!=M&&(w=!1));if(!c)for(g=t+1;g<4;g++)0<C[g]&&(l=oe[r]),_[g]<ie[O[g]]&&(E=oe[r]);u||(N=n(C[t],oe[r],re[r],ie[r])+l,M=n(_[t],oe[r],re[r],ie[r])-E,x&&(b=N),w&&(v=M))}if(x||w||u)for(g=b;g<=v;g+=oe[r])s[g]=!c}}}var A,y,C,_={},x={},w={},T=[],E=function(e){var t,n,r,i={};if(e.is("input")){switch(e.attr("type")){case"date":t="yy-mm-dd";break;case"datetime":t="yy-mm-ddTHH:ii:ssZ";break;case"datetime-local":t="yy-mm-ddTHH:ii:ss";break;case"month":t="yy-mm",i.dateOrder="mmyy";break;case"time":t="HH:ii:ss"}i.format=t,n=e.attr("min"),r=e.attr("max"),n&&"undefined"!=n&&(i.min=be(t,n)),r&&"undefined"!=r&&(i.max=be(t,r))}return i}(ae(this)),S=de({},e.settings),k=a[S.calendarSystem],B=de(e.settings,ke,k,$e,E,S),N=B.preset,M="datetime"==N?B.dateFormat+B.separator+B.timeFormat:"time"==N?B.timeFormat:B.dateFormat,D=E.format||M,I=B.dateWheels||B.dateFormat,O=B.timeWheels||B.timeFormat,P=B.dateWheels||B.dateDisplay,R=O,L=B.baseTheme||B.theme,V=t(B.invalid),F=t(B.valid),q=_e(B.min,D,B),U=_e(B.max,D,B),H=/time/i.test(N),W=/h/.test(R),z=/D/.test(P),j=B.steps||{},G=j.hour||B.stepHour||1,Q=j.minute||B.stepMinute||1,K=j.second||B.stepSecond||1,Z=j.zeroBased,$=Z||!q?0:q.getHours()%G,X=Z||!q?0:q.getMinutes()%Q,J=Z||!q?0:q.getSeconds()%K,ee=r(G,$,W?11:23),te=r(Q,X,59),ne=r(Q,X,59),re={y:q?q.getFullYear():-1/0,m:0,d:1,h:$,i:X,s:J,a:0,tt:0},ie={y:U?U.getFullYear():1/0,m:11,d:31,h:ee,i:te,s:ne,a:1,tt:86400},oe={y:1,m:1,d:1,h:G,i:Q,s:K,a:1,tt:1},se={y:function(e){return B.getYear(e)},m:function(e){return B.getMonth(e)},d:function(e){return B.getDay(e)},h:function(e){var t=e.getHours();return n(t=W&&12<=t?t-12:t,G,$,ee)},i:function(e){return n(e.getMinutes(),Q,X,te)},s:function(e){return n(e.getSeconds(),K,J,ne)},u:function(e){return e.getMilliseconds()},a:function(e){return 11<e.getHours()?1:0},dd:i,tt:function(e){return n(Math.round((e.getTime()-new Date(e).setHours(0,0,0,0))/1e3),A||1,0,86400)}};return e.getVal=function(t){return e._hasValue||t?Ce(s(e.getArrayVal(t)),B,D):null},e.getDate=function(t){return e._hasValue||t?s(e.getArrayVal(t)):null},e.setDate=function(t,n,r,i,o){e.setArrayVal(c(t,!0),n,o,i,r)},C=function(){var e,t,n,r,i,o,a,s,c=0,l=[],p=[],h=[];if(/date/i.test(N)){for(e=I.split(/\|/.test(I)?"|":""),r=0;r<e.length;r++)if(o=0,(n=e[r]).length)if(/y/i.test(n)&&(w.y=1,o++),/m/i.test(n)&&(w.y=1,w.m=1,o++),/d/i.test(n)&&(w.y=1,w.m=1,w.d=1,o++),1<o&&void 0===_.dd)_.dd=c,c++,p.push(d(n)),h=p,y=!0;else if(/y/i.test(n)&&void 0===_.y)_.y=c,c++,p.push({cssClass:"mbsc-dt-whl-y",label:B.yearText,min:q?B.getYear(q):void 0,max:U?B.getYear(U):void 0,data:u,getIndex:m});else if(/m/i.test(n)&&void 0===_.m){for(_.m=c,a=[],c++,i=0;i<12;i++)s=P.replace(/[dy|]/gi,"").replace(/mm/,Y(i+1)+(B.monthSuffix||"")).replace(/m/,i+1+(B.monthSuffix||"")),a.push({value:i,display:/MM/.test(s)?s.replace(/MM/,'<span class="mbsc-dt-month">'+B.monthNames[i]+"</span>"):s.replace(/M/,'<span class="mbsc-dt-month">'+B.monthNamesShort[i]+"</span>")});p.push({cssClass:"mbsc-dt-whl-m",label:B.monthText,data:a})}else if(/d/i.test(n)&&void 0===_.d){for(_.d=c,a=[],c++,i=1;i<32;i++)a.push({value:i,display:(/dd/i.test(P)?Y(i):i)+(B.daySuffix||"")});p.push({cssClass:"mbsc-dt-whl-d",label:B.dayText,data:a})}l.push(p)}if(/time/i.test(N)){for(t=O.split(/\|/.test(O)?"|":""),r=0;r<t.length;r++)if(o=0,(n=t[r]).length&&(/h/i.test(n)&&(w.h=1,o++),/i/i.test(n)&&(w.i=1,o++),/s/i.test(n)&&(w.s=1,o++),/a/i.test(n)&&o++),1<o&&void 0===_.tt)_.tt=c,c++,h.push(f(n));else if(/h/i.test(n)&&void 0===_.h){for(a=[],_.h=c,w.h=1,c++,i=$;i<(W?12:24);i+=G)a.push({value:i,display:W&&0===i?12:/hh/i.test(R)?Y(i):i});h.push({cssClass:"mbsc-dt-whl-h",label:B.hourText,data:a})}else if(/i/i.test(n)&&void 0===_.i){for(a=[],_.i=c,w.i=1,c++,i=X;i<60;i+=Q)a.push({value:i,display:/ii/i.test(R)?Y(i):i});h.push({cssClass:"mbsc-dt-whl-i",label:B.minuteText,data:a})}else if(/s/i.test(n)&&void 0===_.s){for(a=[],_.s=c,w.s=1,c++,i=J;i<60;i+=K)a.push({value:i,display:/ss/i.test(R)?Y(i):i});h.push({cssClass:"mbsc-dt-whl-s",label:B.secText,data:a})}else/a/i.test(n)&&void 0===_.a&&(_.a=c,c++,h.push({cssClass:"mbsc-dt-whl-a",label:B.ampmText,data:/A/.test(n)?[{value:0,display:B.amText.toUpperCase()},{value:1,display:B.pmText.toUpperCase()}]:[{value:0,display:B.amText},{value:1,display:B.pmText}]}));h!=p&&l.push(h)}return l}(),B.isoParts=w,e._format=M,e._order=_,e.handlers.now=function(){e.setDate(new Date,e.live,1e3,!0,!0)},e.buttons.now={text:B.nowText,icon:B.nowIcon,handler:"now"},{minWidth:y&&H?{bootstrap:46,ios:50,material:46,mobiscroll:46,windows:50}[L]:void 0,compClass:"mbsc-dt mbsc-sc",wheels:C,headerText:!!B.headerText&&function(){return he(M,s(e.getArrayVal(!0)),B)},formatValue:function(e){return he(D,s(e),B)},parseValue:function(t){return t||(x={},e._hasValue=!1),c(_e(t||B.defaultValue||new Date,D,B,w),!!t)},validate:function(t){var n,r,i,o,a=t.values,l=t.index,u=t.direction,m=B.wheels[0][_.d],d=function(e,t){var n,r,i=!1,o=!1,a=0,l=0,u=q?s(c(q)):-1/0,m=U?s(c(U)):1/0;if(h(e))return e;if(e<u&&(e=u),m<e&&(e=m),r=n=e,2!==t)for(i=h(n,!0);!i&&n<m&&a<100;)i=h(n=new Date(n.getTime()+864e5),!0),a++;if(1!==t)for(o=h(r,!0);!o&&u<r&&l<100;)o=h(r=new Date(r.getTime()-864e5),!0),l++;return 1===t&&i?n:2===t&&o?r:p(e,n)?n:p(e,r)||l<=a&&o?r:n}(s(a),u),f=c(d),b=[],A={},y=se.y(d),C=se.m(d),x=B.getMaxDayOfMonth(y,C),w=!0,E=!0;if(ae.each(["dd","y","m","d","tt","a","h","i","s"],(function(e,t){var n=re[t],i=ie[t],o=se[t](d);if(b[_[t]]=[],w&&q&&(n=se[t](q)),E&&U&&(i=se[t](U)),o<n&&(o=n),i<o&&(o=i),"dd"!==t&&"tt"!==t&&(w=w&&o==n,E=E&&o==i),void 0!==_[t]){if("y"!=t&&"dd"!=t)for(r=re[t];r<=ie[t];r+=oe[t])(r<n||i<r)&&b[_[t]].push(r);if("d"==t){var a=B.getDate(y,C,1).getDay(),s={};v(V,y,C,a,x,s,1),v(F,y,C,a,x,s,0),ae.each(s,(function(e,n){n&&b[_[t]].push(e)}))}}})),H&&ae.each(["a","h","i","s","tt"],(function(t,n){var r=se[n](d),i=se.d(d),o={};void 0!==_[n]&&(g(V,t,n,y,C,i,o,0),g(F,t,n,y,C,i,o,1),ae.each(o,(function(e,t){t&&b[_[n]].push(e)})),T[t]=e.getValidValue(_[n],r,u,o))})),m&&(m.data.length!==x||z&&(void 0===l||l===_.y||l===_.m))){for((A[_.d]=m).data=[],n=1;n<=x;n++)o=B.getDate(y,C,n).getDay(),i=P.replace(/[my|]/gi,"").replace(/dd/,(n<10?"0"+n:n)+(B.daySuffix||"")).replace(/d/,n+(B.daySuffix||"")),m.data.push({value:n,display:/DD/.test(i)?i.replace(/DD/,'<span class="mbsc-dt-day">'+B.dayNames[o]+"</span>"):i.replace(/D/,'<span class="mbsc-dt-day">'+B.dayNamesShort[o]+"</span>")});e._tempWheelArray[_.d]=f[_.d],e.changeWheel(A)}return{disabled:b,valid:f}}}}Ke.prototype={_hasDef:!0,_hasTheme:!0,_hasLang:!0,_responsive:!0,_class:"scroller",_presets:ze,_defaults:de({},Ie.prototype._defaults,{minWidth:80,height:40,rows:3,multiline:1,delay:200,readonly:!1,showLabel:!0,setOnTap:!1,wheels:[],preset:"",speedUnit:.0012,timeUnit:.08,checkIcon:"checkmark",compClass:"mbsc-sc",validate:function(){},formatValue:function(e){return e.join(" ")},parseValue:function(e,t){var n,r,i=[],o=[],a=0;return null!=e&&(i=(e+"").split(" ")),ae.each(t.settings.wheels,(function(e,s){ae.each(s,(function(e,s){r=s.data,n=t._getItemValue(r[0]),ae.each(r,(function(e,r){if(i[a]==t._getItemValue(r))return n=t._getItemValue(r),!1})),o.push(n),a++}))})),o}})},le.Scroller=Ke;var $e={separator:" ",dateFormat:"mm/dd/yy",dateDisplay:"MMddyy",timeFormat:"h:ii A",dayText:"Day",monthText:"Month",yearText:"Year",hourText:"Hours",minuteText:"Minutes",ampmText:"&nbsp;",secText:"Seconds",nowText:"Now",todayText:"Today"},Ye=0;function Xe(e){var t,n,r,i,o,a,s,c,l,u,m,d,f,p,h,b,v,g,A,_,x,w,T,E,S,k,B,N,M,D,I,O,P,R,L,V,F,q,U,H,W,z,j,Q,K,Z,$,Y,X,J,te,ne,re,oe,se,ce,le,ue,me,fe,he,be,ye,Ce,we,Te,ke,Ne,Me,De,Ie,Oe,Pe,Re,Le,Ve,Fe,qe=1,Ue=this;function We(e){e.hasClass("mbsc-cal-h")||e.addClass("mbsc-cal-h")}function ze(e){var t;e.hasClass("mbsc-cal-h")?(t=e).hasClass("mbsc-cal-h")&&t.removeClass("mbsc-cal-h"):We(e)}function je(e,t,n){e[t]=e[t]||[],e[t].push(n)}function Ge(e,t,n){var r,i,o,a,s,c,l,u=be.getDate,m=be.getYear,d=be.getMonth,f=be.getDay,p=be.getMaxDayOfMonth,h=m(t),b=d(t),v={};return e&&ae.each(e,(function(e,g){if(r=g.d||g.start||g,i=r+"",g.start&&g.end)for(l=ge(_e(g.start,E,be)),c=ge(_e(g.end,E,be));l<=c;)je(v,l,g),l=u(m(l),d(l),f(l)+1);else if(Se.test(i))for(l=ht(t,!1,+i.replace("w",""));l<=n;)je(v,l,g),l=u(m(l),d(l),f(l)+7);else if(Ee.test(i)){var A=!!(i=i.split("/"))[1],y=A?1:0,C=A?0:1,_=A?i[0]-1:b,x=A?+i[1]:+i[0];for(s=p(h,_),l=u(h,_,Math.min(x,s));l<=n;)o=m(l),a=d(l),f(l)===x&&je(v,l,g),s=p(o+y,a+C),l=u(o+y,a+C,Math.min(x,s))}else je(v,ge(_e(r,E,be)),g)})),v}function Qe(t){var n,r,i,o,a=!!W[t]&&W[t],s=!!z[t]&&z[t],c=s&&s[0].background?s[0].background:a&&a[0].background,l="";if(s)for(n=0;n<s.length;n++)l+=(s[n].cssClass||"")+" ";if(a){for(i='<div class="mbsc-cal-marks">',n=0;n<a.length;n++)l+=((r=a[n]).cssClass||"")+" ",i+='<div class="mbsc-cal-mark"'+(r.color?' style="background:'+r.color+';"':"")+"></div>";i+="</div>"}return o={marked:a,background:c,cssClass:l,markup:x[t]?x[t].join(""):N?i:""},de(o,e._getDayProps(t,o))}function Ke(e){return' style="'+(U?"transform: translateY("+100*e+"%)":"left:"+100*e*he+"%")+'"'}function $e(e){return bt(e,ue-1)>j&&(e=bt(j,1-ue)),e<Y&&(e=Y),e}function Ye(e,t,n){var r="none"===e.background,i=r?"none":e.color,o=r?e.color:y(i),a=e.text;return'<div data-id="'+e._id+'" data-index="'+t+'" class="mbsc-cal-txt'+(r?" mbsc-cal-txt-only":"")+'" title="'+ae("<div>"+a+"</div>").text()+'"'+(i?' style="background:'+i+(n&&o?";color:"+o:"")+';"':"")+">"+(n?a:"")+"</div>"}function Xe(t){var n=ht(bt(t,-me-le),!1),r=ht(bt(t,-me+ue+le-1),!1);r=be.getDate(be.getYear(r),be.getMonth(r),be.getDay(r)+7*m),e._onGenMonth(n,r),O=Ge(be.invalid,n,r),Te=Ge(be.valid,n,r),W=Ge(be.labels||be.events||be.marked,n,r),z=Ge(be.colors,n,r),H=e._labels||W||z,(B=be.labels||e._labels)&&function(){x={};for(var e={},t=n,i=function(){t.getDay()==S&&(e={});for(var n=K,r=(H[t]||[]).slice(0).sort(be.eventOrder),i=r.length,o=[],a=void 0,s=void 0,c=0,l=0,u=0,m=void 0;c<n;)if(a=null,r.forEach((function(t,n){e[c]==t&&(a=t,s=n)})),c==n-1&&(l<i-1||i&&u==i&&!a)){var d=i-l,f=(1<d&&be.moreEventsPluralText||be.moreEventsText).replace(/{count}/,d);d&&o.push('<div class="mbsc-cal-txt-more">'+f+"</div>"),a&&(e[c]=null,a._days.forEach((function(e){x[e][c]='<div class="mbsc-cal-txt-more">'+be.moreEventsText.replace(/{count}/,1)+"</div>"}))),l++,c++}else if(a)s==u&&u++,xe(t,_e(a.end))&&(e[c]=null),o.push(Ye(a,s)),c++,l++,a._days.push(t);else if(u<i){var p=r[u],h=p.start&&_e(p.start),b=p.end&&_e(p.end),v=t.getDay(),g=0<S-v?7:0,A=b&&!xe(h,b);h&&!xe(t,h)&&v!=S||(void 0===p._id&&(p._id=qe++),A&&(e[c]=p),p._days=[t],m=A?100*Math.min(ve(t,ge(b))+1,7+S-v-g):100,o.push(A?'<div class="mbsc-cal-txt-w" style="width:'+m+'%">'+Ye(p,u,!0)+"</div>"+Ye(p,u):Ye(p,u,!0)),c++,l++),u++}else o.push('<div class="mbsc-cal-txt-ph"></div>'),c++;x[t]=o,t=be.getDate(be.getYear(t),be.getMonth(t),be.getDay(t)+1)};t<r;)i()}()}function Je(e){var t=be.getYear(e),n=be.getMonth(e);lt(l=_=e),we("onMonthChange",{year:t,month:n}),we("onMonthLoading",{year:t,month:n}),we("onPageChange",{firstDay:e}),we("onPageLoading",{firstDay:e}),Xe(e)}function tt(e){var t=be.getYear(e),n=be.getMonth(e);void 0===ce?nt(e,t,n):ot(e,ce,!0),at(l,T.focus),T.focus=!1}function nt(e,t,n){var r=T.$scroller;ae(".mbsc-cal-slide",r).removeClass("mbsc-cal-slide-a"),ae(".mbsc-cal-slide",r).slice(le,le+ue).addClass("mbsc-cal-slide-a"),ae(".mbsc-cal-slide-a .mbsc-cal-day",r).on("mouseenter",(function(){var e=ae(this);Ne||F||(I=setTimeout((function(){P=!0,we("onCellHoverIn",mt(e))}),150))})).on("mouseleave",(function(){clearTimeout(I),!Ne&&P&&(P=!1,we("onCellHoverOut",mt(ae(this))))})),B&&ae(".mbsc-cal-slide-a .mbsc-cal-txt",r).on("mouseenter",(function(){var e=ae(this).attr("data-id");ae('.mbsc-cal-txt[data-id="'+e+'"]',r).addClass("mbsc-hover")})).on("mouseleave",(function(){ae(".mbsc-cal-txt.mbsc-hover",r).removeClass("mbsc-hover")})),we("onMonthLoaded",{year:t,month:n}),we("onPageLoaded",{firstDay:e})}function rt(e,t){var n,r=be.getYear(e),i='<div class="mbsc-cal-slide"'+Ke(t)+'><div role="grid" class="mbsc-cal-table"><div role="row" class="mbsc-cal-row">';for(n=0;n<12;n++)n&&n%3==0&&(i+='</div><div role="row" class="mbsc-cal-row">'),i+='<div role="gridcell" tabindex="-1" aria-label="'+r+'" data-val="'+r+'" class="mbsc-cal-cell mbsc-btn-e '+(r<te||$<r?" mbsc-disabled ":"")+(r==be.getYear(_)?g:"")+'"><div class="mbsc-cal-cell-i mbsc-cal-cell-txt">'+r+Re+"</div></div>",r++;return i+"</div></div></div>"}function it(t,n){var r,i,o,a,s,c,l,u,d,f,p,h,b,v,A,C,_,x,T=1,E=be.getYear(t),k=be.getMonth(t),B=be.getDay(t),N=null!==be.defaultValue||e._hasValue?e.getDate(!0):null,M=be.getDate(E,k,B).getDay(),D=0<S-M?7:0,I='<div class="mbsc-cal-slide"'+Ke(n)+'><div role="grid" class="mbsc-cal-table"><div role="row" class="mbsc-cal-row">';for(_=0;_<7*m;_++)C=_+S-D,a=(i=be.getDate(E,k,C-M+B)).getFullYear(),s=i.getMonth(),c=i.getDate(),l=be.getMonth(i),u=be.getDay(i),A=be.getMaxDayOfMonth(a,s),d=a+"-"+(s+1)+"-"+c,r="none"!==(f=de({valid:!((x=i)<Y||j<x||void 0!==O[x]&&void 0===Te[x]),selected:N&&xe(N,i)},Qe(i))).background&&f.background,p=f.valid,h=f.selected,o=f.cssClass,b=new Date(i).setHours(12,0,0,0)===(new Date).setHours(12,0,0,0),v=l!==k,w[d]=f,_&&_%7==0&&(I+='</div><div role="row" class="mbsc-cal-row">'),Me&&_%7==0&&("month"==Me&&v&&1<T?T=1==c?1:2:"year"==Me&&(T=be.getWeekNumber(be.getDate(a,s,c+(7-S+1)%7))),I+='<div role="gridcell" class="mbsc-cal-cell mbsc-cal-week-nr">'+T+"</div>",T++),I+='<div role="gridcell" aria-label="'+(b?be.todayText+", ":"")+be.dayNames[i.getDay()]+", "+be.monthNames[l]+" "+u+" "+(f.ariaLabel?", "+f.ariaLabel:"")+'"'+(v&&!Ce?' aria-hidden="true"':' data-full="'+d+'"')+(v||!p?' aria-disabled="true"':"")+(h?' aria-selected="true"':"")+(p?' tabindex="-1"':"")+' class="mbsc-cal-cell mbsc-cal-day mbsc-cal-day'+C%7+" "+(be.dayClass||"")+" "+(h?g:"")+(b?" "+be.todayClass:"")+(o?" "+o:"")+(1==u?" mbsc-cal-day-first":"")+(u==A?" mbsc-cal-day-last":"")+(v?" mbsc-cal-day-diff":"")+(p?" mbsc-btn-e":" mbsc-disabled")+(f.marked?" mbsc-cal-day-marked":"")+(r?" mbsc-cal-day-colored":"")+'"><div class="mbsc-cal-cell-i mbsc-cal-day-i"><div class="mbsc-cal-day-date mbsc-cal-cell-txt"'+(r?' style="background:'+r+";color:"+y(r)+'"':"")+">"+u+"</div>"+(f.markup?'<div class="mbsc-cal-day-markup">'+f.markup+"</div>":"")+"</div></div>";return I+"</div></div></div>"}function ot(e,t,n){var r,i=be.getYear(e),o=be.getMonth(e),a=T?T.pos:0,s="";if(w={},m)for(t||(we("onMonthLoading",{year:i,month:o}),we("onPageLoading",{firstDay:e})),Xe(e),r=0;r<fe;r++)s+=it(bt(e,r-me-le),a*he+r-le);return ce=void 0,n&&T&&(T.$active=null,T.$scroller.html(s),nt(e,i,o)),s}function at(e,t){if(T){var n=T.$active;n&&n.length&&(n[0].blur(),n.hasClass("mbsc-disabled")?n.removeAttr("tabindex"):n.attr("tabindex","-1")),T.$active=ae('.mbsc-cal-slide-a .mbsc-cal-day[data-full="'+Ae(e)+'"]',T.$scroller).attr("tabindex","0"),t&&T.$active.length&&T.$active[0].focus()}}function st(e,t){ae(".mbsc-selected",t).removeClass(g).removeAttr("aria-selected"),ae('.mbsc-cal-cell[data-val="'+e+'"]',t).addClass(g).attr("aria-selected","true")}function ct(t,n,r,i){var o,a,s,c;ke&&(t<Y&&(t=Y),j<t&&(t=j),"calendar"!==ke&&M&&!n||(e._isSetDate=!n,k&&m&&(a=ht($e(t),V),se&&(t<bt(_,-me)||t>=bt(_,ue-me))&&(o=V?be.getMonth(a)-be.getMonth(_)+12*(be.getYear(a)-be.getYear(_)):Math.floor(ve(_,a)/(7*m)))&&(T.queue=[],T.focus=i&&r,gt(T,o,r)),o&&r||at(t,i),n||(s=t,c=T&&T.$scroller,be.highlight&&T&&(ae(".mbsc-selected",c).removeClass(g).removeAttr("aria-selected"),null===be.defaultValue&&!e._hasValue||ae('.mbsc-cal-day[data-full="'+Ae(s)+'"]',c).addClass(g).attr("aria-selected","true"))),V||o||lt(_,!0),l=t,se=!0),e._onSetDate(t,o),e._isSetDate=!1))}function lt(e,t){var i,o,a,c,l=be.getYear(e),u=be.getMonth(e),m=l+Re;if(D){if(st(u,oe.$scroller),st(l,Pe.$scroller),gt(Pe,Math.floor(l/12)-Math.floor(be.getYear(Pe.first)/12),!0),ae(".mbsc-cal-cell",oe.$scroller).removeClass("mbsc-disabled"),l===te)for(i=0;i<J;i++)ae('.mbsc-cal-cell[data-val="'+i+'"]',oe.$scroller).addClass("mbsc-disabled");if(l===$)for(i=Z+1;i<=12;i++)ae('.mbsc-cal-cell[data-val="'+i+'"]',oe.$scroller).addClass("mbsc-disabled")}for(t||(ut(ae(".mbsc-cal-prev-m",n),bt(e,-me)<=Y),ut(ae(".mbsc-cal-next-m",n),bt(e,ue-me)>j),ut(ae(".mbsc-cal-prev-y",n),be.getDate(l-1,u+1,1)<=Y),ut(ae(".mbsc-cal-next-y",n),be.getDate(l+1,u,1)>j)),s.attr("aria-label",l).html(m),i=0;i<ue;i++)(c=bt(e,i-me))<=ye&&ye<bt(c,1)&&(c=ye),o=be.getYear(c),a=be.getMonth(c),m=o+Re,r.eq(i).attr("aria-label",be.monthNames[a]+(Ie?"":" "+l)).html((!Ie&&Oe<ne?m+" ":"")+re[a]+(!Ie&&ne<Oe?" "+m:""))}function ut(e,t){t?e.addClass(v).attr("aria-disabled","true"):e.removeClass(v).removeAttr("aria-disabled")}function mt(e){var t=e[0],n=e.attr("data-full"),r=n?n.split("-"):[],i=pe(r[0],r[1]-1,r[2]),o=e.hasClass("mbsc-selected");return de(w?w[n]:{},{date:i,target:t,selected:o})}function dt(t,n){var r=e.getDate(!0),i=mt(t),o=t[0],a=i.date,s=pe(a.getFullYear(),a.getMonth(),a.getDate(),r.getHours(),r.getMinutes(),r.getSeconds()),c=ae(n.target),l=c[0];if(w&&(Ce||!t.hasClass("mbsc-cal-day-diff"))){if(i.date=s,B&&o.contains(l))for(;l!=o;){if(c.hasClass("mbsc-cal-txt")||c.hasClass("mbsc-cal-txt-more")){var u=c.attr("data-index"),m=H[a];if(!1===we("onLabelTap",{date:s,domEvent:n,target:c[0],labels:m,label:m[u]}))return;break}l=(c=c.parent())[0]}!1===we("onDayChange",i)||be.readonly||t.hasClass("mbsc-disabled")||e._selectDay(t,a,s,i.selected)}}function ft(e){We(i),ct(be.getDate(be.getYear(T.first),e.attr("data-val"),1),!0,!0)}function pt(e){We(c),ct(be.getDate(e.attr("data-val"),be.getMonth(T.first),1),!0,!0)}function ht(e,t,n){var r=be.getYear(e),i=be.getMonth(e),o=e.getDay(),a=0<S-o?7:0;return t?be.getDate(r,i,1):be.getDate(r,i,(void 0===n?S:n)-a-o+be.getDay(e))}function bt(e,t){var n=be.getYear(e),r=be.getMonth(e),i=be.getDay(e);return V?be.getDate(n,r+t,1):be.getDate(n,r,i+t*m*7)}function vt(e,t){var n=12*Math.floor(be.getYear(e)/12);return be.getDate(n+12*t,0,1)}function gt(t,n,r,i){n&&e._isVisible&&(t.queue.push(arguments),1==t.queue.length&&function t(n,r,i,o){var a,s,c="",l=n.$scroller,u=n.buffer,m=n.offset,d=n.pages,f=n.total,p=n.first,h=n.genPage,b=n.getFirst,v=0<r?Math.min(r,u):Math.max(r,-u),g=n.pos*he+v-r+m,A=Math.abs(r)>u;n.callback&&(n.load(),n.callback(!0)),n.first=b(p,r),n.pos+=v*he,n.changing=!0,n.load=function(){if(A){for(a=0;a<d;a++)c+=h(b(p,s=r+a-m),g+s);0<r?(ae(".mbsc-cal-slide",l).slice(-d).remove(),l.append(c)):r<0&&(ae(".mbsc-cal-slide",l).slice(0,d).remove(),l.prepend(c))}},n.callback=function(i){var c=Math.abs(v),d="";if(e._isVisible){for(a=0;a<c;a++)d+=h(b(p,s=r+a-m-u+(0<r?f-c:0)),g+s);if(0<r?(l.append(d),ae(".mbsc-cal-slide",l).slice(0,v).remove()):r<0&&(l.prepend(d),ae(".mbsc-cal-slide",l).slice(v).remove()),A){for(d="",a=0;a<c;a++)d+=h(b(p,s=r+a-m-u+(0<r?0:f-c)),g+s);0<r?(ae(".mbsc-cal-slide",l).slice(0,v).remove(),l.prepend(d)):r<0&&(ae(".mbsc-cal-slide",l).slice(v).remove(),l.append(d))}yt(n),o&&!i&&o(),n.callback=null,n.load=null,n.queue.shift(),A=!1,n.queue.length?t.apply(this,n.queue[0]):(n.changing=!1,n.onAfterChange(n.first))}},n.onBeforeChange(n.first),n.load&&(n.load(),n.scroller.scroll(-n.pos*n.size,i?200:0,!1,n.callback))}(t,n,r,i))}function At(t,n,r,i,o,a,s,c,l,u,m,d,f){var p=U?"Y":"X",h={$scroller:ae(".mbsc-cal-scroll",t),queue:[],buffer:i,offset:o,pages:a,first:c,total:s,pos:0,min:n,max:r,genPage:d,getFirst:f,onBeforeChange:u,onAfterChange:m};return h.scroller=new He(t,{axis:p,easing:"",contSize:0,maxSnapScroll:i,mousewheel:void 0===be.mousewheel?U:be.mousewheel,time:200,lock:!0,rtl:q,stopProp:!1,minScroll:0,maxScroll:0,onBtnTap:function(e){"touchend"==e.domEvent.type&&ee(),l(ae(e.target),e.domEvent)},onStart:function(){clearTimeout(I)},onGestureStart:function(){F=!0},onAnimationStart:function(){h.changing=!0},onAnimationEnd:function(e){F=!1,d&&gt(h,Math.round((-h.pos*h.size-e["pos"+p])/h.size)*he)}}),e._scrollers.push(h.scroller),h}function yt(e,t){var n,r=0,i=0,o=e.first;if(!e.changing||!t){if(e.getFirst){for(r=e.buffer,i=e.buffer;i&&e.getFirst(o,i+e.pages-e.offset-1)>e.max;)i--;for(;r&&e.getFirst(o,1-r-e.offset)<=e.min;)r--}n=Math.round(d/e.pages),L&&n&&e.size!=n&&e.$scroller[U?"height":"width"](n),de(e.scroller.settings,{snap:n,minScroll:(-e.pos*he-i)*n,maxScroll:(-e.pos*he+r)*n}),e.size=n,e.scroller.refresh()}}function Ct(t){e._onRefresh(t),e._isVisible&&k&&m&&(T&&T.changing?ce=t:(ot(_,t,!0),at(l)))}function _t(e){Ne="touchstart"===e.type}return h={},b=[],x={},we=e.trigger,Fe=de({},e.settings),Le=(be=de(e.settings,et,Fe)).controls.join(","),S=be.firstDay,q=be.rtl,le=be.pageBuffer,Me=be.weekCounter,m=be.weeks,V=6==m,U="vertical"==be.calendarScroll,p=e._getRespCont(),De="full"==be.weekDays?"":"min"==be.weekDays?"Min":"Short",Ve=be.layout||("inline"==be.display||/top|bottom/.test(be.display)&&be.touchUi?"liquid":""),f=(L="liquid"==Ve)?null:be.calendarWidth,he=q&&!U?-1:1,v="mbsc-disabled "+(be.disabledClass||""),A="mbsc-selected "+(be.selectedTabClass||""),g="mbsc-selected "+(be.selectedClass||""),K=Math.max(1,Math.floor(((be.calendarHeight||0)/m-45)/18)),Le.match(/calendar/)&&(h.calendar=1,k=!0),Le.match(/date/)&&!k&&(h.date=1),Le.match(/time/)&&(h.time=1),be.controls.forEach((function(e){h[e]&&b.push(e)})),D=be.quickNav&&k&&V,Ie=be.yearChange&&V,L&&k&&"center"==be.display&&(e._isFullScreen=!0),be.layout=Ve,be.preset=(h.date||k?"date":"")+(h.time?"time":""),u=Ze.call(this,e),re=Ie?be.monthNamesShort:be.monthNames,Re=be.yearSuffix||"",ne=(be.dateWheels||be.dateFormat).search(/m/i),Oe=(be.dateWheels||be.dateFormat).search(/y/i),E=e._format,be.min&&(Y=ge(_e(be.min,E,be)),te=be.getYear(Y),J=be.getMonth(Y),X=be.getDate(12*Math.floor(te/12),0,1)),be.max&&(j=ge(_e(be.max,E,be)),$=be.getYear(j),Z=be.getMonth(j),Q=be.getDate(12*Math.floor($/12),0,1)),e._minDate=Y,e._maxDate=j,e.refresh=function(){Ct(!1)},e.redraw=function(){Ct(!0)},e.navigate=function(e,t){ct(_e(e,E,be),!0,t)},e.changeTab=function(t){e._isVisible&&h[t]&&ke!=t&&(ke=t,ae(".mbsc-cal-tab",n).removeClass(A).removeAttr("aria-selected"),ae('.mbsc-cal-tab[data-control="'+t+'"]',n).addClass(A).attr("aria-selected","true"),M&&(a.addClass("mbsc-cal-h"),h[ke].removeClass("mbsc-cal-h")),"calendar"==ke&&ct(e.getDate(!0),!1,!0),e._showDayPicker(),e.trigger("onTabChange",{tab:ke}))},e._checkSize=!0,e._onGenMonth=G,e._onSetDate=G,e._onRefresh=G,e._getDayProps=G,e._prepareObj=Ge,e._showDayPicker=function(){D&&(We(c),We(i))},e._selectDay=e.__selectDay=function(t,n,r){var i=e.live;se=be.outerMonthChange,R=!0,e.setDate(r,i,1e3,!i,!0),i&&we("onSet",{valueText:e._value})},e._checkBtn=ut,de(u,{labels:null,compClass:"mbsc-calendar mbsc-dt mbsc-sc",eventOrder:function(e,t){var n=e.start?_e(e.start):null,r=t.start?_e(t.start):null,i=(e.end&&_e(e.end),t.end&&_e(t.end),Se.test(e.d)||Ee.test(e.d)),o=Se.test(t.d)||Ee.test(t.d),a=e.d?i?e.d:_e(e.d):n,s=t.d?o?t.d:_e(t.d):r,c=a.getTime?e.allDay?1:a.getTime():0,l=s.getTime?t.allDay?1:s.getTime():0;return c==l?e.text>t.text?1:-1:c-l},onMarkupReady:function(u){var v,g,y=0;n=ae(u.target),o=ae(".mbsc-fr-c",n),l=e.getDate(!0),d=0,k&&(N=!(!be.marked&&!be.data||be.labels||be.multiLabel||be.showEventCount),se=!0,ke="calendar",ue="auto"==be.months?Math.max(1,Math.min(3,Math.floor((f||ie(p))/280))):+be.months,fe=ue+2*le,U=U&&ue<2,Ce=void(me=0)===be.showOuterDays?ue<2&&!U||!V:be.showOuterDays,_=ht($e(l),V),o.append(function(){var e,t,n,r,i,o,a="",s=q?be.btnCalNextClass:be.btnCalPrevClass,c=q?be.btnCalPrevClass:be.btnCalNextClass;for(i='<div class="mbsc-cal-btn-w"><div data-step="-1" role="button" tabindex="0" aria-label="'+be.prevMonthText+'" class="'+s+' mbsc-cal-prev mbsc-cal-prev-m mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"></div>',t=0;t<(m?ue:1);t++)i+='<div role="button" class="mbsc-cal-month"></div>';if(i+='<div data-step="1" role="button" tabindex="0" aria-label="'+be.nextMonthText+'" class="'+c+' mbsc-cal-next mbsc-cal-next-m mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"></div></div>',Ie&&(a='<div class="mbsc-cal-btn-w"><div data-step="-12" role="button" tabindex="0" aria-label="'+be.prevYearText+'" class="'+s+' mbsc-cal-prev mbsc-cal-prev-y mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"></div><div role="button" class="mbsc-cal-year"></div><div data-step="12" role="button" tabindex="0" aria-label="'+be.nextYearText+'" class="'+c+' mbsc-cal-next mbsc-cal-next-y mbsc-cal-btn mbsc-fr-btn mbsc-fr-btn-e"></div></div>'),m&&(o=ot(_)),e='<div class="mbsc-w-p mbsc-cal-c"><div class="mbsc-cal '+(V?"":" mbsc-cal-week-view")+(1<ue?" mbsc-cal-multi ":"")+(Me?" mbsc-cal-weeks ":"")+(U?" mbsc-cal-vertical":"")+(N?" mbsc-cal-has-marks":"")+(B?" mbsc-cal-has-labels":"")+(Ce?"":" mbsc-cal-hide-diff ")+(be.calendarClass||"")+'"'+(L?"":' style="width:'+(f||280*ue)+'px;"')+'><div class="mbsc-cal-hdr">'+(Oe<ne||1<ue?a+i:i+a)+"</div>",m){for(e+='<div class="mbsc-cal-body"><div class="mbsc-cal-day-picker"><div class="mbsc-cal-days-c">',n=0;n<ue;n++){for(e+='<div class="mbsc-cal-days">',t=0;t<7;t++)e+='<div class="mbsc-cal-week-day'+(r=(t+S)%7)+'" aria-label="'+be.dayNames[r]+'">'+be["dayNames"+De][r]+"</div>";e+="</div>"}e+='</div><div class="mbsc-cal-scroll-c mbsc-cal-day-scroll-c '+(be.calendarClass||"")+'"'+(be.calendarHeight?' style="height:'+be.calendarHeight+'px"':"")+'><div class="mbsc-cal-scroll" style="width:'+100/ue+'%">'+o+"</div></div>"}if(e+="</div>",D){for(e+='<div class="mbsc-cal-month-picker mbsc-cal-picker mbsc-cal-h"><div class="mbsc-cal-scroll-c '+(be.calendarClass||"")+'"><div class="mbsc-cal-scroll">',t=0;t<3;t++){for(e+='<div class="mbsc-cal-slide"'+Ke(t-1)+'><div role="grid" class="mbsc-cal-table"><div role="row" class="mbsc-cal-row">',n=0;n<12;n++)n&&n%3==0&&(e+='</div><div role="row" class="mbsc-cal-row">'),e+='<div role="gridcell"'+(1==t?' tabindex="-1" aria-label="'+be.monthNames[n]+'" data-val="'+n+'"':"")+' class="mbsc-cal-cell'+(1==t?" mbsc-btn-e":"")+'"><div class="mbsc-cal-cell-i mbsc-cal-cell-txt">'+(1==t?be.monthNamesShort[n]:"&nbsp;")+"</div></div>";e+="</div></div></div>"}for(e+="</div></div></div>",e+='<div class="mbsc-cal-year-picker mbsc-cal-picker mbsc-cal-h"><div class="mbsc-cal-scroll-c '+(be.calendarClass||"")+'"><div class="mbsc-cal-scroll">',t=-1;t<2;t++)e+=rt(vt(_,t),t);e+="</div></div></div>"}return e+"</div></div></div>"}()),r=ae(".mbsc-cal-month",n),s=ae(".mbsc-cal-year",n),t=ae(".mbsc-cal-day-scroll-c",n)),D&&(c=ae(".mbsc-cal-year-picker",n),i=ae(".mbsc-cal-month-picker",n)),a=ae(".mbsc-w-p",n),1<b.length&&o.before((v='<div class="mbsc-cal-tabs-c"><div class="mbsc-cal-tabs" role="tablist">',b.forEach((function(e,t){g=be[("calendar"==e?"date":e)+"Text"],v+='<div role="tab" aria-controls="'+Ue.id+"-mbsc-pnl-"+t+'" class="mbsc-cal-tab mbsc-fr-btn-e '+(t?"":A)+'" data-control="'+e+'"'+(be.tabLink?'><a href="#">'+g+"</a>":' tabindex="0">'+g)+"</div>"})),v+="</div></div>")),["date","time","calendar"].forEach((function(e){h[e]?(h[e]=a.eq(y),y++):"date"==e&&!h.date&&k&&(a.eq(y).remove(),y++)})),b.forEach((function(e){o.append(h[e])})),!k&&h.date&&h.date.css("position","relative"),e._scrollers=[],function(){if(k&&m){var o=ae(".mbsc-cal-scroll-c",n);T=At(o[0],Y,j,le,me,ue,fe,_,dt,Je,tt,it,bt),D&&(oe=At(o[1],null,null,1,0,1,3,_,ft),Pe=At(o[2],X,Q,1,0,1,3,_,pt,G,G,rt,vt),e.tap(r,(function(){ze(i),We(c)})),e.tap(s,(function(){ze(c),We(i)}))),Be(ae(".mbsc-cal-btn",n),(function(e,t,n,r){gt(T,t,!0,r)})),tt(_),null===be.defaultValue&&!e._hasValue||e._multiple||(e._activeElm=T.$active[0]),C(t[0],"touchstart",_t,{passive:!0}),C(t[0],"mousedown",_t),t.on("keydown",(function(e){var t,n=be.getYear(l),r=be.getMonth(l),i=be.getDay(l);switch(e.keyCode){case 32:dt(T.$active,e);break;case 37:t=be.getDate(n,r,i-1*he);break;case 39:t=be.getDate(n,r,i+1*he);break;case 38:t=be.getDate(n,r,i-7);break;case 40:t=be.getDate(n,r,i+7);break;case 36:t=be.getDate(n,r,1);break;case 35:t=be.getDate(n,r+1,0);break;case 33:t=e.altKey?be.getDate(n-1,r,i):V?be.getDate(n,r-1,i):be.getDate(n,r,i-7*m);break;case 34:t=e.altKey?be.getDate(n+1,r,i):V?be.getDate(n,r+1,i):be.getDate(n,r,i+7*m)}t&&(e.preventDefault(),ct(t,!0,!1,!0))}))}e.tap(ae(".mbsc-cal-tab",n),(function(){e.changeTab(ae(this).attr("data-control"))}))}()},onShow:function(){k&&m&&lt(_)},onHide:function(){clearTimeout(I),e._scrollers.forEach((function(e){e.destroy()})),ke=Pe=oe=T=w=null},onValidated:function(t){var n,r,i=t.index,o=e._order;r=e.getDate(!0),ye=r,R?n="calendar":void 0!==i&&(n=o.dd==i||o.d==i||o.m==i||o.y==i?"date":"time"),we("onSetDate",{date:r,control:n}),"time"!==n&&ct(r,!1,!!t.time,R&&!e._multiple),R=!1},onPosition:function(i){var o,s,c,l,u,p,v,g=i.oldHeight,A=i.windowHeight;if(M=(i.hasTabs||!0===be.tabs||!1!==be.tabs&&L)&&1<b.length,L&&(i.windowWidth>=be.breakPointMd?ae(i.target).addClass("mbsc-fr-md"):ae(i.target).removeClass("mbsc-fr-md")),M?(n.addClass("mbsc-cal-tabbed"),ke=ae(".mbsc-cal-tab.mbsc-selected",n).attr("data-control"),a.addClass("mbsc-cal-h"),h[ke].removeClass("mbsc-cal-h")):(n.removeClass("mbsc-cal-tabbed"),a.removeClass("mbsc-cal-h")),e._isFullScreen&&(t.height(""),v=A-(u=i.popup.offsetHeight)+t[0].offsetHeight,u<=A&&t.height(v)),B&&m&&A!=g){var y=v||t[0].offsetHeight,C=t.find(".mbsc-cal-txt,.mbsc-cal-txt-ph")[0],x=C.offsetTop,w=C.offsetHeight,E=Math.max(1,Math.floor((y/m-x)/(w+2)));K!=E&&(K=E,e.redraw())}if(k&&m){if(l=(p=L||U||M?t[0][U?"offsetHeight":"offsetWidth"]:f||280*ue)!=d,d=p,L&&l&&Ie)for(re=be.maxMonthWidth>r[0].offsetWidth?be.monthNamesShort:be.monthNames,s=be.getYear(_),c=be.getMonth(_),o=0;o<ue;o++)r.eq(o).text(re[be.getMonth(be.getDate(s,c-me+o,1))]);l&&yt(T,!0)}D&&l&&(yt(oe,!0),yt(Pe,!0))}})}o.getJson=function(e,t,n){var r,i,o,a,s,c,l;"jsonp"==n?(a=e,s=t,c=document.createElement("script"),l="mbscjsonp"+ ++Ye,window[l]=function(e){c.parentNode.removeChild(c),delete window[l],e&&s(e)},c.src=a+(0<=a.indexOf("?")?"&":"?")+"callback="+l,document.body.appendChild(c)):(r=e,i=t,(o=new XMLHttpRequest).open("GET",r,!0),o.onload=function(){200<=this.status&&this.status<400&&i(JSON.parse(this.response))},o.onerror=function(){},o.send())};var Je,et={controls:["calendar"],firstDay:0,weekDays:"short",maxMonthWidth:170,breakPointMd:768,months:1,pageBuffer:1,weeks:6,highlight:!0,outerMonthChange:!0,quickNav:!0,yearChange:!0,tabs:"auto",todayClass:"mbsc-cal-today",btnCalPrevClass:"mbsc-ic mbsc-ic-arrow-left6",btnCalNextClass:"mbsc-ic mbsc-ic-arrow-right6",dateText:"Date",timeText:"Time",todayText:"Today",fromText:"Start",toText:"End",moreEventsText:"{count} more",prevMonthText:"Previous Month",nextMonthText:"Next Month",prevYearText:"Previous Year",nextYearText:"Next Year"},tt={};ze.calendar=function(e){function t(e){var t,n,r,i=null;if(p={},e&&e.length)for(n=0;n<e.length;n++)t=_e(e[n],o,l,l.isoParts),i=i||t,p[pe((r=t).getFullYear(),r.getMonth(),r.getDate())]=t;return i}function n(){e.redraw()}var r,i,o,a,s,c=de({},e.settings),l=de(e.settings,tt,c),u="mbsc-selected "+(l.selectedClass||""),m=l.defaultValue,d="multiple"==l.select||1<l.select||"week"==l.selectType,f=K(l.select)?l.select:1/0,p={};return r=Xe.call(this,e),a=void 0===l.firstSelectDay?l.firstDay:l.firstSelectDay,o=e._format,d&&t(m),e._multiple=d,e._getDayProps=function(e){return{selected:d?void 0!==p[e]:void 0}},e._selectDay=function(t,r,o,s){var c="single"==l.select||1==l.select||void 0===l.select;if(l.setOnDayTap&&c&&"inline"!=l.display)return e.setDate(o),void e.select();if(d)if("week"==l.selectType){var m,h,b=r.getDay()-a;for(b=b<0?7+b:b,c&&(p={}),m=0;m<7;m++)h=pe(r.getFullYear(),r.getMonth(),r.getDate()-b+m),s?delete p[h]:Q(p).length/7<f&&(p[h]=h);n()}else{var v=ae('.mbsc-cal-day[data-full="'+t.attr("data-full")+'"]',i);s?(v.removeClass(u).removeAttr("aria-selected"),delete p[r]):Q(p).length<f&&(v.addClass(u).attr("aria-selected","true"),p[r]=r)}e.__selectDay(t,r,o)},e.setVal=function(r,i,o,a,s){d&&(r=t(r)),e._setVal(r,i,o,a,s),d&&n()},e.getVal=function(t){var n,r=[];if(d){for(n in p)r.push(Ce(p[n],l,o));return r}return Ce(e.getDate(t),l,o)},de({},r,{highlight:!d,outerMonthChange:!d,parseValue:function(e){return d&&e&&"string"==typeof e&&(e=t(e.split(","))),d&&m&&m.length&&(l.defaultValue=m[0]),r.parseValue.call(this,e)},formatValue:function(t){var n,i=[];if(d){for(n in p)i.push(he(o,p[n],l));return i.join(", ")}return r.formatValue.call(this,t,e)},onClear:function(){d&&(p={},n())},onBeforeShow:function(){void 0!==l.setOnDayTap||l.buttons&&l.buttons.length||1!=l.controls.length||(l.setOnDayTap=!0),l.setOnDayTap&&"inline"!=l.display&&(l.outerMonthChange=!1),l.counter&&d&&(l.headerText=function(){var e=0,t="week"==l.selectType?7:1;return ae.each(p,(function(){e++})),(1<(e=Math.round(e/t))&&l.selectedPluralText||l.selectedText).replace(/{count}/,e)})},onMarkupReady:function(e){r.onMarkupReady.call(this,e),i=ae(e.target),d&&(ae(".mbsc-fr-hdr",i).attr("aria-live","off"),s=de({},p))},onCancel:function(){!e.live&&d&&(p=de({},s))}})},Je=Ke,i["calendar"]=function(e,t){var n,r,i={},o=t||{};return o.preset="calendar",j(e).each((function(){n=new Je(this,o),i[this.id]=n})),1==(r=Object.keys(i)).length?i[r[0]]:i},i.i18n.hu={setText:"OK",cancelText:"Mégse",clearText:"Törlés",selectedText:"{count} kiválasztva",dateFormat:"yy.mm.dd.",dayNames:["Vasárnap","Hétfő","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Va","Hé","Ke","Sze","Csü","Pé","Szo"],dayNamesMin:["V","H","K","Sz","Cs","P","Sz"],dayText:"Nap",delimiter:".",hourText:"Óra",minuteText:"Perc",monthNames:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ápr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],monthText:"Hónap",secText:"Másodperc",timeFormat:"H:ii",yearText:"Év",nowText:"Most",pmText:"pm",amText:"am",firstDay:1,dateText:"Dátum",timeText:"Idő",todayText:"Ma",prevMonthText:"Előző hónap",nextMonthText:"Következő hónap",prevYearText:"Előző év",nextYearText:"Következő év",closeText:"Bezár",eventText:"esemény",eventsText:"esemény",allDayText:"Egész nap",noEventsText:"Nincs esemény",moreEventsText:"{count} további",fromText:"Eleje",toText:"Vége",wholeText:"Egész",fractionText:"Tört",unitText:"Egység",labels:["Év","Hónap","Nap","Óra","Perc","Másodperc",""],labelsShort:["Év","Hó.","Nap","Óra","Perc","Mp.",""],startText:"Indít",stopText:"Megállít",resetText:"Visszaállít",lapText:"Lap",hideText:"Elrejt",backText:"Vissza",undoText:"Visszavon",offText:"Ki",onText:"Be",decimalSeparator:",",thousandsSeparator:" "},i.i18n.de={setText:"OK",cancelText:"Abbrechen",clearText:"Löschen",selectedText:"{count} ausgewählt",dateFormat:"dd.mm.yy",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["S","M","D","M","D","F","S"],dayText:"Tag",delimiter:".",hourText:"Stunde",minuteText:"Minuten",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthText:"Monat",secText:"Sekunden",timeFormat:"HH:ii",yearText:"Jahr",nowText:"Jetzt",pmText:"pm",amText:"am",todayText:"Heute",firstDay:1,dateText:"Datum",timeText:"Zeit",closeText:"Schließen",allDayText:"Ganztägig",noEventsText:"Keine Ereignisse",eventText:"Ereignis",eventsText:"Ereignisse",moreEventsText:"{count} weiteres Element",moreEventsPluralText:"{count} weitere Elemente",fromText:"Von",toText:"Bis",wholeText:"Ganze Zahl",fractionText:"Bruchzahl",unitText:"Maßeinheit",labels:["Jahre","Monate","Tage","Stunden","Minuten","Sekunden",""],labelsShort:["Jahr.","Mon.","Tag.","Std.","Min.","Sek.",""],startText:"Starten",stopText:"Stoppen",resetText:"Zurücksetzen",lapText:"Lap",hideText:"Ausblenden",backText:"Zurück",undoText:"Rückgängig machen",offText:"Aus",onText:"Ein",decimalSeparator:",",thousandsSeparator:" "},i.i18n.es={setText:"Aceptar",cancelText:"Cancelar",clearText:"Borrar",selectedText:"{count} seleccionado",selectedPluralText:"{count} seleccionados",dateFormat:"dd/mm/yy",dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],dayNamesMin:["D","L","M","M","J","V","S"],dayText:"Día",hourText:"Horas",minuteText:"Minutos",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthText:"Mes",secText:"Segundos",timeFormat:"HH:ii",yearText:"A&ntilde;o",nowText:"Ahora",pmText:"pm",amText:"am",todayText:"Hoy",firstDay:1,dateText:"Fecha",timeText:"Tiempo",closeText:"Cerrar",allDayText:"Todo el día",noEventsText:"No hay eventos",eventText:"Evento",eventsText:"Eventos",moreEventsText:"{count} más",fromText:"Iniciar",toText:"Final",wholeText:"Entero",fractionText:"Fracción",unitText:"Unidad",labels:["Años","Meses","Días","Horas","Minutos","Segundos",""],labelsShort:["Año","Mes","Día","Hora","Min","Seg",""],startText:"Iniciar",stopText:"Deténgase",resetText:"Reinicializar",lapText:"Lap",hideText:"Esconder",backText:"Atrás",undoText:"Deshacer",offText:"No",onText:"Sí",decimalSeparator:",",thousandsSeparator:" "},i.i18n.fr={setText:"Terminer",cancelText:"Annuler",clearText:"Effacer",selectedText:"{count} sélectionné",selectedPluralText:"{count} sélectionnés",dateFormat:"dd/mm/yy",dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],dayNamesMin:["D","L","M","M","J","V","S"],dayText:"Jour",monthText:"Mois",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Janv.","Févr.","Mars","Avril","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."],hourText:"Heures",minuteText:"Minutes",secText:"Secondes",timeFormat:"HH:ii",yearText:"Année",nowText:"Maintenant",pmText:"pm",amText:"am",todayText:"Aujourd'hui",firstDay:1,dateText:"Date",timeText:"Heure",closeText:"Fermer",allDayText:"Toute la journée",noEventsText:"Aucun événement",eventText:"Événement",eventsText:"Événements",moreEventsText:"{count} autre",moreEventsPluralText:"{count} autres",fromText:"Démarrer",toText:"Fin",wholeText:"Entier",fractionText:"Fraction",unitText:"Unité",labels:["Ans","Mois","Jours","Heures","Minutes","Secondes",""],labelsShort:["Ans","Mois","Jours","Hrs","Min","Sec",""],startText:"Démarrer",stopText:"Arrêter",resetText:"Réinitialiser",lapText:"Lap",hideText:"Cachez",backText:"Retour",undoText:"Annuler",offText:"Non",onText:"Oui",decimalSeparator:",",thousandsSeparator:" "},i.i18n.it={setText:"OK",cancelText:"Annulla",clearText:"Chiarire",selectedText:"{count} selezionato",selectedPluralText:"{count} selezionati",dateFormat:"dd/mm/yy",dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Do","Lu","Ma","Me","Gi","Ve","Sa"],dayNamesMin:["D","L","M","M","G","V","S"],dayText:"Giorno",hourText:"Ore",minuteText:"Minuti",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],monthText:"Mese",secText:"Secondi",timeFormat:"HH:ii",yearText:"Anno",nowText:"Ora",pmText:"pm",amText:"am",todayText:"Oggi",firstDay:1,dateText:"Data",timeText:"Volta",closeText:"Chiudere",allDayText:"Tutto il giorno",noEventsText:"Nessun evento",eventText:"Evento",eventsText:"Eventi",moreEventsText:"{count} altro",moreEventsPluralText:"altri {count}",fromText:"Inizio",toText:"Fine",wholeText:"Intero",fractionText:"Frazione",unitText:"Unità",labels:["Anni","Mesi","Giorni","Ore","Minuti","Secondi",""],labelsShort:["Anni","Mesi","Gio","Ore","Min","Sec",""],startText:"Inizio",stopText:"Arresto",resetText:"Ripristina",lapText:"Lap",hideText:"Nascondi",backText:"Indietro",undoText:"Annulla",offText:"Via",onText:"Su",decimalSeparator:",",thousandsSeparator:" "},i.i18n.no={setText:"OK",cancelText:"Avbryt",clearText:"Tømme",selectedText:"{count} valgt",dateFormat:"dd.mm.yy",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Sø","Ma","Ti","On","To","Fr","Lø"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",delimiter:".",hourText:"Time",minuteText:"Minutt",monthNames:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],monthText:"Måned",secText:"Sekund",timeFormat:"HH:ii",yearText:"År",nowText:"Nå",pmText:"pm",amText:"am",todayText:"I dag",firstDay:1,dateText:"Dato",timeText:"Tid",closeText:"Lukk",allDayText:"Hele dagen",noEventsText:"Ingen hendelser",eventText:"Hendelse",eventsText:"Hendelser",moreEventsText:"{count} mere",fromText:"Start",toText:"End",wholeText:"Hele",fractionText:"Fraksjon",unitText:"Enhet",labels:["År","Måneder","Dager","Timer","Minutter","Sekunder",""],labelsShort:["År","Mån","Dag","Time","Min","Sek",""],startText:"Start",stopText:"Stopp",resetText:"Tilbakestille",lapText:"Runde",hideText:"Skjul",backText:"Tilbake",undoText:"Angre",offText:"Av",onText:"På",decimalSeparator:",",thousandsSeparator:" "},i.i18n["pt-BR"]={setText:"Selecionar",cancelText:"Cancelar",clearText:"Claro",selectedText:"{count} selecionado",selectedPluralText:"{count} selecionados",dateFormat:"dd/mm/yy",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["D","S","T","Q","Q","S","S"],dayText:"Dia",hourText:"Hora",minuteText:"Minutos",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthText:"Mês",secText:"Segundo",timeFormat:"HH:ii",yearText:"Ano",nowText:"Agora",pmText:"pm",amText:"am",todayText:"Hoje",dateText:"Data",timeText:"Tempo",closeText:"Fechar",allDayText:"Dia inteiro",noEventsText:"Nenhum evento",eventText:"Evento",eventsText:"Eventos",moreEventsText:"Mais {count}",fromText:"In&iacute;cio",toText:"Fim",wholeText:"Inteiro",fractionText:"Fração",unitText:"Unidade",labels:["Anos","Meses","Dias","Horas","Minutos","Segundos",""],labelsShort:["Ano","M&ecirc;s","Dia","Hora","Min","Seg",""],startText:"Começar",stopText:"Pare",resetText:"Reinicializar",lapText:"Lap",hideText:"Esconder",backText:"Anterior",undoText:"Desfazer",offText:"Desl",onText:"Lig",decimalSeparator:",",thousandsSeparator:" "},i.i18n.zh={setText:"确定",cancelText:"取消",clearText:"明确",selectedText:"{count} 选",dateFormat:"yy年mm月d日",dayNames:["周日","周一","周二","周三","周四","周五","周六"],dayNamesShort:["日","一","二","三","四","五","六"],dayNamesMin:["日","一","二","三","四","五","六"],dayText:"日",hourText:"时",minuteText:"分",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],monthText:"月",secText:"秒",timeFormat:"HH:ii",yearText:"年",nowText:"当前",pmText:"下午",amText:"上午",yearSuffix:"年",monthSuffix:"月",daySuffix:"日",todayText:"今天",dateText:"日",timeText:"时间",closeText:"关闭",allDayText:"全天",noEventsText:"无事件",eventText:"活动",eventsText:"活动",moreEventsText:"他 {count} 件",fromText:"开始时间",toText:"结束时间",wholeText:"合计",fractionText:"分数",unitText:"单位",labels:["年","月","日","小时","分钟","秒",""],labelsShort:["年","月","日","点","分","秒",""],startText:"开始",stopText:"停止",resetText:"重置",lapText:"圈",hideText:"隐藏",backText:"返回",undoText:"复原",offText:"关闭",onText:"开启",decimalSeparator:",",thousandsSeparator:" "},i.i18n.nl={setText:"Instellen",cancelText:"Annuleren",clearText:"Leegmaken",selectedText:"{count} gekozen",dateFormat:"dd-mm-yy",dayNames:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],dayNamesShort:["zo","ma","di","wo","do","vr","za"],dayNamesMin:["z","m","d","w","d","v","z"],dayText:"Dag",hourText:"Uur",minuteText:"Minuten",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],monthText:"Maand",secText:"Seconden",timeFormat:"HH:ii",yearText:"Jaar",nowText:"Nu",pmText:"pm",amText:"am",todayText:"Vandaag",firstDay:1,dateText:"Datum",timeText:"Tijd",closeText:"Sluiten",allDayText:"Hele dag",noEventsText:"Geen activiteiten",eventText:"Activiteit",eventsText:"Activiteiten",moreEventsText:"nog {count}",fromText:"Start",toText:"Einde",wholeText:"geheel",fractionText:"fractie",unitText:"eenheid",labels:["Jaren","Maanden","Dagen","Uren","Minuten","Seconden",""],labelsShort:["j","m","d","u","min","sec",""],startText:"Start",stopText:"Stop",resetText:"Reset",lapText:"Ronde",hideText:"Verbergen",backText:"Terug",undoText:"Onged. maken",offText:"Uit",onText:"Aan",decimalSeparator:",",thousandsSeparator:" "},i.i18n.tr={setText:"Seç",cancelText:"İptal",clearText:"Temizleyin",selectedText:"{count} seçilmiş",dateFormat:"dd.mm.yy",dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"],dayNamesMin:["P","P","S","Ç","P","C","C"],dayText:"Gün",delimiter:".",hourText:"Saat",minuteText:"Dakika",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],monthText:"Ay",secText:"Saniye",timeFormat:"HH:ii",yearText:"Yıl",nowText:"Şimdi",pmText:"pm",amText:"am",todayText:"Bugün",firstDay:1,dateText:"Tarih",timeText:"Zaman",closeText:"Kapatmak",allDayText:"Tüm gün",noEventsText:"Etkinlik Yok",eventText:"Etkinlik",eventsText:"Etkinlikler",moreEventsText:"{count} tane daha",fromText:"Başla",toText:"Son",wholeText:"Tam",fractionText:"Kesir",unitText:"Birim",labels:["Yıl","Ay","Gün","Saat","Dakika","Saniye",""],labelsShort:["Yıl","Ay","Gün","Sa","Dak","Sn",""],startText:"Başla",stopText:"Durdur",resetText:"Sıfırla",lapText:"Tur",hideText:"Gizle",backText:"Geri",undoText:"Geri Al",offText:"O",onText:"I",decimalSeparator:",",thousandsSeparator:"."},i.i18n.ja={setText:"セット",cancelText:"キャンセル",clearText:"クリア",selectedText:"{count} 選択",dateFormat:"yy年mm月dd日",dayNames:["日","月","火","水","木","金","土"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],dayText:"日",hourText:"時",minuteText:"分",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthText:"月",secText:"秒",timeFormat:"HH:ii",yearText:"年",nowText:"今",pmText:"午後",amText:"午前",yearSuffix:"年",monthSuffix:"月",daySuffix:"日",todayText:"今日",dateText:"日付",timeText:"時間",closeText:"クローズ",allDayText:"終日",noEventsText:"イベントはありません",eventText:"イベント",eventsText:"イベント",moreEventsText:"他 {count} 件",fromText:"開始",toText:"終わり",wholeText:"全数",fractionText:"分数",unitText:"単位",labels:["年間","月間","日間","時間","分","秒",""],labelsShort:["年間","月間","日間","時間","分","秒",""],startText:"開始",stopText:"停止",resetText:"リセット",lapText:"ラップ",hideText:"隠す",backText:"バック",undoText:"アンドゥ"},i.i18n["pt-PT"]={setText:"Seleccionar",cancelText:"Cancelar",clearText:"Claro",selectedText:"{count} selecionado",selectedPluralText:"{count} selecionados",dateFormat:"dd-mm-yy",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["D","S","T","Q","Q","S","S"],dayText:"Dia",hourText:"Horas",minuteText:"Minutos",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthText:"Mês",secText:"Segundo",timeFormat:"HH:ii",yearText:"Ano",nowText:"Actualizar",pmText:"pm",amText:"am",todayText:"Hoy",firstDay:1,dateText:"Data",timeText:"Tempo",closeText:"Fechar",allDayText:"Todo o dia",noEventsText:"Nenhum evento",eventText:"Evento",eventsText:"Eventos",moreEventsText:"mais {count}",fromText:"Início",toText:"Fim",wholeText:"Inteiro",fractionText:"Fracção",unitText:"Unidade",labels:["Anos","Meses","Dias","Horas","Minutos","Segundos",""],labelsShort:["Ano","Mês","Dia","Hora","Min","Seg",""],startText:"Começar",stopText:"Parar",resetText:"Reinicializar",lapText:"Lap",hideText:"Esconder",backText:"Anterior",undoText:"Anular",offText:"Desl",onText:"Lig",decimalSeparator:",",thousandsSeparator:" "},i.i18n.sv={setText:"OK",cancelText:"Avbryt",clearText:"Klara",selectedText:"{count} vald",dateFormat:"yy-mm-dd",dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesShort:["Sö","Må","Ti","On","To","Fr","Lö"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",hourText:"Timme",minuteText:"Minut",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthText:"Månad",secText:"Sekund",timeFormat:"HH:ii",yearText:"År",nowText:"Nu",pmText:"pm",amText:"am",todayText:"I dag",firstDay:1,dateText:"Datum",timeText:"Tid",closeText:"Stäng",allDayText:"Heldag",noEventsText:"Inga aktiviteter",eventText:"Händelse",eventsText:"Händelser",moreEventsText:"{count} till",fromText:"Start",toText:"Slut",wholeText:"Hela",fractionText:"Bråk",unitText:"Enhet",labels:["År","Månader","Dagar","Timmar","Minuter","Sekunder",""],labelsShort:["År","Mån","Dag","Tim","Min","Sek",""],startText:"Start",stopText:"Stopp",resetText:"Återställ",lapText:"Varv",hideText:"Dölj",backText:"Tillbaka",undoText:"Ångra",offText:"Av",onText:"På"},i.i18n["en-GB"]=i.i18n["en-UK"]={dateFormat:"dd/mm/yy",timeFormat:"HH:ii"},i.i18n.cs={setText:"Zadej",cancelText:"Storno",clearText:"Vymazat",selectedText:"Označený: {count}",dateFormat:"dd.mm.yy",dayNames:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota"],dayNamesShort:["Ne","Po","Út","St","Čt","Pá","So"],dayNamesMin:["N","P","Ú","S","Č","P","S"],dayText:"Den",hourText:"Hodiny",minuteText:"Minuty",monthNames:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthNamesShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čvc","Spr","Zář","Říj","Lis","Pro"],monthText:"Měsíc",secText:"Sekundy",timeFormat:"HH:ii",yearText:"Rok",nowText:"Teď",amText:"am",pmText:"pm",todayText:"Dnes",firstDay:1,dateText:"Datum",timeText:"Čas",closeText:"Zavřít",allDayText:"Celý den",noEventsText:"Žádné události",eventText:"Událostí",eventsText:"Události",moreEventsText:"{count} další",fromText:"Začátek",toText:"Konec",wholeText:"Celý",fractionText:"Část",unitText:"Jednotka",labels:["Roky","Měsíce","Dny","Hodiny","Minuty","Sekundy",""],labelsShort:["Rok","Měs","Dny","Hod","Min","Sec",""],startText:"Start",stopText:"Stop",resetText:"Resetovat",lapText:"Etapa",hideText:"Schovat",backText:"Zpět",undoText:"Zpět",offText:"O",onText:"I",decimalSeparator:",",thousandsSeparator:" "},i.i18n.sk={setText:"Zadaj",cancelText:"Zrušiť",clearText:"Vymazať",selectedText:"Označený: {count}",dateFormat:"d.m.yy",dayNames:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"],dayNamesShort:["Ne","Po","Ut","St","Št","Pi","So"],dayNamesMin:["N","P","U","S","Š","P","S"],dayText:"Ďeň",hourText:"Hodiny",minuteText:"Minúty",monthNames:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthText:"Mesiac",secText:"Sekundy",timeFormat:"H:ii",yearText:"Rok",nowText:"Teraz",amText:"am",pmText:"pm",todayText:"Dnes",firstDay:1,dateText:"Datum",timeText:"Čas",closeText:"Zavrieť",allDayText:"Celý deň",noEventsText:"Žiadne udalosti",eventText:"Udalostí",eventsText:"Udalosti",moreEventsText:"{count} ďalšia",moreEventsPluralText:"{count} ďalšie",fromText:"Začiatok",toText:"Koniec",wholeText:"Celý",fractionText:"Časť",unitText:"Jednotka",labels:["Roky","Mesiace","Dni","Hodiny","Minúty","Sekundy",""],labelsShort:["Rok","Mes","Dni","Hod","Min","Sec",""],startText:"Start",stopText:"Stop",resetText:"Resetovať",lapText:"Etapa",hideText:"Schovať",backText:"Späť",undoText:"Späť",offText:"O",onText:"I",decimalSeparator:",",thousandsSeparator:" "},i.i18n.ro={setText:"Setare",cancelText:"Anulare",clearText:"Ştergere",selectedText:"{count} selectat",selectedPluralText:"{count} selectate",dateFormat:"dd.mm.yy",dayNames:["Duminică","Luni","Marți","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayNamesMin:["D","L","M","M","J","V","S"],dayText:" Ziua",delimiter:".",hourText:" Ore ",minuteText:"Minute",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian.","Feb.","Mar.","Apr.","Mai","Iun.","Iul.","Aug.","Sept.","Oct.","Nov.","Dec."],monthText:"Luna",secText:"Secunde",timeFormat:"HH:ii",yearText:"Anul",nowText:"Acum",amText:"am",pmText:"pm",todayText:"Astăzi",prevMonthText:"Luna anterioară",nextMonthText:"Luna următoare",prevYearText:"Anul anterior",nextYearText:"Anul următor",eventText:"Eveniment",eventsText:"Evenimente",allDayText:"Toată ziua",noEventsText:"Niciun eveniment",moreEventsText:"Încă unul",moreEventsPluralText:"Încă {count}",firstDay:1,dateText:"Data",timeText:"Ora",closeText:"Închidere",fromText:"Start",toText:"Final",wholeText:"Complet",fractionText:"Parţial",unitText:"Unitate",labels:["Ani","Luni","Zile","Ore","Minute","Secunde",""],labelsShort:["Ani","Luni","Zile","Ore","Min.","Sec.",""],startText:"Start",stopText:"Stop",resetText:"Resetare",lapText:"Tură",hideText:"Ascundere",backText:"Înapoi",undoText:"Anulează",offText:"Nu",onText:"Da",decimalSeparator:",",thousandsSeparator:" "},i.i18n.pl={setText:"Zestaw",cancelText:"Anuluj",clearText:"Oczyścić",selectedText:"Wybór: {count}",dateFormat:"yy-mm-dd",dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Niedz.","Pon.","Wt.","Śr.","Czw.","Pt.","Sob."],dayNamesMin:["N","P","W","Ś","C","P","S"],dayText:"Dzień",hourText:"Godziny",minuteText:"Minuty",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],monthText:"Miesiąc",secText:"Sekundy",timeFormat:"HH:ii",yearText:"Rok",nowText:"Teraz",amText:"am",pmText:"pm",todayText:"Dzisiaj",firstDay:1,dateText:"Data",timeText:"Czas",closeText:"Zakończenie",allDayText:"Cały dzień",noEventsText:"Brak wydarzeń",eventText:"Wydarzeń",eventsText:"Wydarzenia",moreEventsText:"Jeszcze {count}",fromText:"Rozpoczęcie",toText:"Koniec",wholeText:"Cały",fractionText:"Ułamek",unitText:"Jednostka",labels:["Lata","Miesiąc","Dni","Godziny","Minuty","Sekundy",""],labelsShort:["R","M","Dz","Godz","Min","Sek",""],startText:"Rozpoczęcie",stopText:"Zatrzymać",resetText:"Zresetować",lapText:"Zakładka",hideText:"Ukryć",backText:"Wróć",undoText:"Cofnij",offText:"Wył",onText:"Wł",decimalSeparator:",",thousandsSeparator:" "},i.i18n["ru-UA"]={setText:"Установить",cancelText:"Отменить",clearText:"Очиститьr",selectedText:"{count} Вібрать",dateFormat:"dd.mm.yy",dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вс","пн","вт","ср","чт","пт","сб"],dayNamesMin:["в","п","в","с","ч","п","с"],dayText:"День",delimiter:".",hourText:"Часы",minuteText:"Минуты",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв.","Февр.","Март","Апр.","Май","Июнь","Июль","Авг.","Сент.","Окт.","Нояб.","Дек."],monthText:"Месяцы",secText:"Сикунды",timeFormat:"HH:ii",yearText:"Год",nowText:"Сейчас",amText:"am",pmText:"pm",todayText:"Cегодня",firstDay:1,dateText:"Дата",timeText:"Время",closeText:"Закрыть",allDayText:"Весь день",noEventsText:"Нет событий",eventText:"Мероприятия",eventsText:"Мероприятия",moreEventsText:"Ещё {count}",fromText:"Начало",toText:"Конец",wholeText:"Весь",fractionText:"Часть",unitText:"Единица",labels:["Годы"," Месяцы "," Дни "," Часы "," Минуты "," Секунды",""],labelsShort:["Год","Мес.","Дн.","Ч.","Мин.","Сек.",""],startText:"Старт",stopText:"Стоп",resetText:" Сброс ",lapText:" Этап ",hideText:" Скрыть ",backText:"назад",undoText:"ОтменитЬ",offText:"O",onText:"I",decimalSeparator:",",thousandsSeparator:" "};var nt=[31,28,31,30,31,30,31,31,30,31,30,31],rt=[31,31,31,31,31,31,30,30,30,30,30,29];function it(e,t,n){var r,i=(e=parseInt(e))-1600,o=(t=parseInt(t))-1,a=(n=parseInt(n))-1,s=365*i+parseInt((3+i)/4)-parseInt((99+i)/100)+parseInt((399+i)/400);for(r=0;r<o;++r)s+=nt[r];1<o&&(i%4==0&&i%100!=0||i%400==0)&&++s;var c=(s+=a)-79,l=parseInt(c/12053);c%=12053;var u=979+33*l+4*parseInt(c/1461);for(366<=(c%=1461)&&(u+=parseInt((c-1)/365),c=(c-1)%365),r=0;r<11&&c>=rt[r];++r)c-=rt[r];return[u,r+1,c+1]}function ot(e){return e<-1e-7?Math.ceil(e-1e-7):Math.floor(e+1e-7)}function at(e,t,n){e=parseInt(e),t=parseInt(t),n=parseInt(n);var r,i,o,a,s=new Array(0,0,0);return r=1582<e||1582==e&&10<t||1582==e&&10==t&&14<n?ot(1461*(e+4800+ot((t-14)/12))/4)+ot(367*(t-2-12*ot((t-14)/12))/12)-ot(3*ot((e+4900+ot((t-14)/12))/100)/4)+n-32075:367*e-ot(7*(e+5001+ot((t-9)/7))/4)+ot(275*t/9)+n+1729777,a=ot(((i=r-1948440+10632)-1)/10631),o=ot((10985-(i=i-10631*a+354))/5316)*ot(50*i/17719)+ot(i/5670)*ot(43*i/15238),i=i-ot((30-o)/15)*ot(17719*o/50)-ot(o/16)*ot(15238*o/43)+29,t=ot(24*i/709),n=i-ot(709*t/24),e=30*a+o-30,s[2]=n,s[1]=t,s[0]=e,s}a.jalali={getYear:function(e){return it(e.getFullYear(),e.getMonth()+1,e.getDate())[0]},getMonth:function(e){return--it(e.getFullYear(),e.getMonth()+1,e.getDate())[1]},getDay:function(e){return it(e.getFullYear(),e.getMonth()+1,e.getDate())[2]},getDate:function(e,t,n,r,i,o,a){t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),11<t&&(e+=Math.floor(t/12),t%=12);var s=function(e,t,n){var r,i=(e=parseInt(e))-979,o=(t=parseInt(t))-1,a=(n=parseInt(n))-1,s=365*i+8*parseInt(i/33)+parseInt((i%33+3)/4);for(r=0;r<o;++r)s+=rt[r];var c=(s+=a)+79,l=1600+400*parseInt(c/146097),u=!0;for(36525<=(c%=146097)&&(c--,l+=100*parseInt(c/36524),365<=(c%=36524)?c++:u=!1),l+=4*parseInt(c/1461),366<=(c%=1461)&&(u=!1,c--,l+=parseInt(c/365),c%=365),r=0;nt[r]+(1==r&&u)<=c;r++)c-=nt[r]+(1==r&&u);return[l,r+1,c+1]}(e,+t+1,n);return new Date(s[0],s[1]-1,s[2],r||0,i||0,o||0,a||0)},getMaxDayOfMonth:function(e,t){var n,r,i,o=31;for(t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),11<t&&(e+=Math.floor(t/12),t%=12);0==(r=t+1,i=o,!((n=e)<0||32767<n||r<1||12<r||i<1||i>rt[r-1]+(12==r&&(n-979)%33%4==0)));)o--;return o}},i.i18n.fa={setText:"تاييد",cancelText:"انصراف",clearText:"واضح ",selectedText:"{count} منتخب",calendarSystem:"jalali",dateFormat:"yy/mm/dd",dayNames:["يکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه"],dayNamesShort:["ی","د","س","چ","پ","ج","ش"],dayNamesMin:["ی","د","س","چ","پ","ج","ش"],dayText:"روز",hourText:"ساعت",minuteText:"دقيقه",monthNames:["فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دی","بهمن","اسفند"],monthNamesShort:["فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دی","بهمن","اسفند"],monthText:"ماه",secText:"ثانيه",timeFormat:"HH:ii",timeWheels:"iiHH",yearText:"سال",nowText:"اکنون",amText:"ب",pmText:"ص",todayText:"امروز",firstDay:6,rtl:!0,dateText:"تاریخ ",timeText:"زمان ",closeText:"نزدیک",allDayText:"تمام روز",noEventsText:"هیچ رویداد",eventText:"رویداد",eventsText:"رویدادها",moreEventsText:"{count} مورد دیگر",fromText:"شروع ",toText:"پایان",wholeText:"تمام",fractionText:"کسر",unitText:"واحد",labels:["سال","ماه","روز","ساعت","دقیقه","ثانیه",""],labelsShort:["سال","ماه","روز","ساعت","دقیقه","ثانیه",""],startText:"شروع",stopText:"پايان",resetText:"تنظیم مجدد",lapText:"Lap",hideText:"پنهان کردن",backText:"پشت",undoText:"واچیدن"},i.i18n["ru-RU"]=i.i18n.ru={setText:"Установить",cancelText:"Отмена",clearText:"Очистить",selectedText:"{count} Выбрать",dateFormat:"dd.mm.yy",dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вс","пн","вт","ср","чт","пт","сб"],dayNamesMin:["в","п","в","с","ч","п","с"],dayText:"День",delimiter:".",hourText:"Час",minuteText:"Минут",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],monthText:"Месяц",secText:"Секунд",timeFormat:"HH:ii",yearText:"Год",nowText:"Сейчас",amText:"am",pmText:"pm",todayText:"Cегодня",firstDay:1,dateText:"Дата",timeText:"Время",closeText:"Закрыть",allDayText:"Весь день",noEventsText:"Нет событий",eventText:"Мероприятия",eventsText:"Мероприятия",moreEventsText:"Ещё {count}",fromText:"Начало",toText:"Конец",wholeText:"Целое",fractionText:"Дробное",unitText:"Единица",labels:["Лет","Месяцев","Дней","Часов","Минут","Секунд",""],labelsShort:["Лет","Мес","Дн","Час","Мин","Сек",""],startText:"Старт",stopText:"Стоп",resetText:"Сбросить",lapText:"Круг",hideText:"Скрыть",backText:"назад",undoText:"ОтменитЬ",offText:"O",onText:"I",decimalSeparator:",",thousandsSeparator:" "},i.i18n.lt={setText:"OK",cancelText:"Atšaukti",clearText:"Išvalyti",selectedText:"Pasirinktas {count}",selectedPluralText:"Pasirinkti {count}",dateFormat:"yy-mm-dd",dayNames:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"],dayNamesShort:["S","Pr","A","T","K","Pn","Š"],dayNamesMin:["S","Pr","A","T","K","Pn","Š"],dayText:"Diena",hourText:"Valanda",minuteText:"Minutes",monthNames:["Sausis","Vasaris","Kovas","Balandis","Gegužė","Birželis","Liepa","Rugpjūtis","Rugsėjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gruo"],monthText:"Mėnuo",secText:"Sekundes",amText:"am",pmText:"pm",timeFormat:"HH:ii",yearText:"Metai",nowText:"Dabar",todayText:"Šiandien",firstDay:1,dateText:"Data",timeText:"Laikas",closeText:"Uždaryti",allDayText:"Visą dieną",noEventsText:"Nėra įvykių",eventText:"Įvykių",eventsText:"Įvykiai",moreEventsText:"Dar {count}",fromText:"Nuo",toText:"Iki",wholeText:"Visas",fractionText:"Frakcija",unitText:"Vienetas",labels:["Metai","Mėnesiai","Dienos","Valandos","Minutes","Sekundes",""],labelsShort:["m","mėn.","d","h","min","s",""],startText:"Pradėti",stopText:"Sustabdyti",resetText:"Išnaujo",lapText:"Ratas",hideText:"Slėpti",backText:"Atgal",undoText:"Anuliuoti",offText:"Išj.",onText:"Įj.",decimalSeparator:",",thousandsSeparator:" "},i.i18n.ca={setText:"Acceptar",cancelText:"Cancel·lar",clearText:"Esborrar",selectedText:"{count} seleccionat",selectedPluralText:"{count} seleccionats",dateFormat:"dd/mm/yy",dayNames:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],dayNamesShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayNamesMin:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayText:"Dia",hourText:"Hores",minuteText:"Minuts",monthNames:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthNamesShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],monthText:"Mes",secText:"Segons",timeFormat:"HH:ii",yearText:"Any",nowText:"Ara",pmText:"pm",amText:"am",todayText:"Avui",firstDay:1,dateText:"Data",timeText:"Temps",closeText:"Tancar",allDayText:"Tot el dia",noEventsText:"Cap esdeveniment",eventText:"Esdeveniments",eventsText:"Esdeveniments",moreEventsText:"{count} més",fromText:"Iniciar",toText:"Final",wholeText:"Sencer",fractionText:"Fracció",unitText:"Unitat",labels:["Anys","Mesos","Dies","Hores","Minuts","Segons",""],labelsShort:["Anys","Mesos","Dies","Hrs","Mins","Secs",""],startText:"Iniciar",stopText:"Aturar",resetText:"Reiniciar",lapText:"Volta",hideText:"Amagar",backText:"Enrere",undoText:"Desfés",offText:"No",onText:"Si"},i.i18n.da={setText:"Sæt",cancelText:"Annuller",clearText:"Ryd",selectedText:"{count} valgt",selectedPluralText:"{count} valgt",dateFormat:"dd/mm/yy",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",hourText:"Timer",minuteText:"Minutter",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthText:"Måned",secText:"Sekunder",amText:"am",pmText:"pm",timeFormat:"HH.ii",yearText:"År",nowText:"Nu",todayText:"I dag",firstDay:1,dateText:"Dato",timeText:"Tid",closeText:"Luk",allDayText:"Hele dagen",noEventsText:"Ingen begivenheder",eventText:"Begivenheder",eventsText:"Begivenheder",moreEventsText:"{count} mere",fromText:"Start",toText:"Slut",wholeText:"Hele",fractionText:"Dele",unitText:"Enhed",labels:["År","Måneder","Dage","Timer","Minutter","Sekunder",""],labelsShort:["År","Mdr","Dg","Timer","Min","Sek",""],startText:"Start",stopText:"Stop",resetText:"Nulstil",lapText:"Omgang",hideText:"Skjul",offText:"Fra",onText:"Til",backText:"Tilbage",undoText:"Fortryd"},i.i18n.he={rtl:!0,setText:"שמירה",cancelText:"ביטול",clearText:"נקה",selectedText:"{count} נבחר",selectedPluralText:"{count} נבחרו",dateFormat:"dd/mm/yy",dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","ש'"],dayNamesMin:["א","ב","ג","ד","ה","ו","ש"],dayText:"יום",hourText:"שעות",minuteText:"דקות",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["ינו","פבר","מרץ","אפר","מאי","יונ","יול","אוג","ספט","אוק","נוב","דצמ"],monthText:"חודש",secText:"שניות",amText:"am",pmText:"pm",timeFormat:"HH:ii",timeWheels:"iiHH",yearText:"שנה",nowText:"עכשיו",firstDay:0,dateText:"תאריך",timeText:"זמן",closeText:"סגירה",todayText:"היום",allDayText:"כל היום",noEventsText:"אין אירועים",eventText:"מִקרֶה",eventsText:"מִקרֶה",moreEventsText:"אירוע אחד נוסף",moreEventsPluralText:"{count} אירועים נוספים",fromText:"התחלה",toText:"סיום",wholeText:"כֹּל",fractionText:"שבריר",unitText:"יחידה",labels:["שנים","חודשים","ימים","שעות","דקות","שניים",""],labelsShort:["שנים","חודשים","ימים","שעות","דקות","שניים",""],startText:"התחל",stopText:"עצור",resetText:"אתחול",lapText:"הקפה",hideText:"הסתר",offText:"כיבוי",onText:"הפעלה",backText:"חזור",undoText:"ביטול פעולה"},a.hijri={getYear:function(e){return at(e.getFullYear(),e.getMonth()+1,e.getDate())[0]},getMonth:function(e){return--at(e.getFullYear(),e.getMonth()+1,e.getDate())[1]},getDay:function(e){return at(e.getFullYear(),e.getMonth()+1,e.getDate())[2]},getDate:function(e,t,n,r,i,o,a){t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),11<t&&(e+=Math.floor(t/12),t%=12);var s=function(e,t,n){e=parseInt(e),t=parseInt(t),n=parseInt(n);var r,i,o,a,s,c,l=new Array(3);return e=2299160<(r=ot((11*e+3)/30)+354*e+30*t-ot((t-1)/2)+n+1948440-385)?(a=ot(4*(i=68569+r)/146097),i-=ot((146097*a+3)/4),s=ot(4e3*(i+1)/1461001),i=i-ot(1461*s/4)+31,o=ot(80*i/2447),n=i-ot(2447*o/80),t=o+2-12*(i=ot(o/11)),100*(a-49)+s+i):(c=ot(((o=1402+r)-1)/1461),a=ot(((i=o-1461*c)-1)/365)-ot(i/1461),o=ot(80*(s=i-365*a+30)/2447),n=s-ot(2447*o/80),t=o+2-12*(s=ot(o/11)),4*c+a+s-4716),l[2]=n,l[1]=t,l[0]=e,l}(e,+t+1,n);return new Date(s[0],s[1]-1,s[2],r||0,i||0,o||0,a||0)},getMaxDayOfMonth:function(e,t){return t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),11<t&&(e+=Math.floor(t/12),t%=12),[30,29,30,29,30,29,30,29,30,29,30,29][t]+(11===t&&(11*e+14)%30<11?1:0)}},i.i18n.ar={rtl:!0,setText:"تعيين",cancelText:"إلغاء",clearText:"مسح",selectedText:"{count} المحدد",dateFormat:"dd/mm/yy",dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],dayNamesMin:["ح","ن","ث","ر","خ","ج","س"],dayText:"يوم",hourText:"ساعات",minuteText:"الدقائق",monthNames:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthNamesShort:["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],monthText:"شهر",secText:"ثواني",amText:"ص",pmText:"م",timeFormat:"hh:ii A",yearText:"عام",nowText:"الآن",firstDay:0,dateText:"تاريخ",timeText:"وقت",closeText:"إغلاق",todayText:"اليوم",prevMonthText:"الشهر السابق",nextMonthText:"الشهر القادم",prevYearText:"السنه السابقة",nextYearText:"العام القادم",allDayText:"اليوم كله",noEventsText:"لا توجد احداث",eventText:"الحدث",eventsText:"أحداث",moreEventsText:"واحد آخر",moreEventsPluralText:"اثنان آخران {count}",fromText:"يبدا",toText:"ينتهي",wholeText:"كامل",fractionText:"جزء",unitText:"وحدة",delimiter:"/",decimalSeparator:".",thousandsSeparator:",",labels:["سنوات","أشهر","أيام","ساعة","دقائق","ثواني",""],labelsShort:["سنوات","أشهر","أيام","ساعة","دقائق","ثواني",""],startText:"بدء",stopText:"إيقاف",resetText:"إعادة ضبط",lapText:"الدورة",hideText:"إخفاء",offText:"إيقاف",onText:"تشغيل",backText:"رجوع",undoText:"تراجع"},i.i18n.bg={setText:"Задаване",cancelText:"Отмяна",clearText:"Изчистване",selectedText:"{count} подбран",dateFormat:"dd.mm.yy",dayNames:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"],dayNamesShort:["Нед","Пон","Вто","Сря","Чет","Пет","Съб"],dayNamesMin:["Не","По","Вт","Ср","Че","Пе","Съ"],dayText:"ден",delimiter:".",hourText:"час",minuteText:"минута",monthNames:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],monthNamesShort:["Яну","Фев","Мар","Апр","Май","Юни","Юли","Авг","Сеп","Окт","Нов","Дек"],monthText:"месец",secText:"секунди",timeFormat:"H:ii",yearText:"година",nowText:"Сега",pmText:"pm",amText:"am",firstDay:1,dateText:"Дата",timeText:"път",todayText:"днес",prevMonthText:"Предишния месец",nextMonthText:"Следващият месец",prevYearText:"Предходната година",nextYearText:"Следващата година",closeText:"затвори",eventText:"Събитие",eventsText:"Събития",allDayText:"Цял ден",noEventsText:"Няма събития",moreEventsText:"Още {count}",fromText:"ОТ",toText:"ДО",wholeText:"цяло",fractionText:"фракция",unitText:"единица",labels:["Години","месеца","дни","часа","минути","секунди",""],labelsShort:["Години","месеца","дни","часа","минути","секунди",""],startText:"Старт",stopText:"Стоп",resetText:"Нулиране",lapText:"Обиколка",hideText:"крия",backText:"връщане",undoText:"ОТМЯНА",offText:"ИЗКЛ",onText:"ВКЛ",decimalSeparator:",",thousandsSeparator:" "},i.i18n.el={setText:"Ορισμος",cancelText:"Ακυρωση",clearText:"Διαγραφη",selectedText:"{count} επιλεγμένα",dateFormat:"dd/mm/yy",dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],dayText:"ημέρα",delimiter:"/",hourText:"ώρα",minuteText:"λεπτό",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],monthText:"Μήνας",secText:"δευτερόλεπτα",timeFormat:"H:ii",yearText:"έτος",nowText:"τώρα",pmText:"μμ",amText:"πμ",firstDay:1,dateText:"Ημερομηνία",timeText:"φορά",todayText:"Σήμερα",prevMonthText:"Προηγούμενο μήνα",nextMonthText:"Επόμενο μήνα",prevYearText:"Προηγούμενο έτος",nextYearText:"Επόμενο έτος",closeText:"Κλείσιμο",eventText:"Γεγονότα",eventsText:"Γεγονότα",allDayText:"Ολοήμερο",noEventsText:"Δεν υπάρχουν γεγονότα",moreEventsText:"{count} ακόμη",fromText:"Αρχή",toText:"Τέλος",wholeText:"Ολόκληρος",fractionText:"κλάσμα",unitText:"Μονάδα",labels:["Χρόνια","Μήνες","Ημέρες","Ωρες","Λεπτά","δευτερόλεπτα",""],labelsShort:["Χρόνια","Μήνες","Ημέρες","Ωρες","Λεπτά","δευτ",""],startText:"΄Εναρξη",stopText:"Διακοπή",resetText:"Επαναφορά",lapText:"Γύρος",hideText:"κρύβω",backText:"Πίσω",undoText:"Αναιρεση",offText:"Ανενεργό",onText:"Ενεργό",decimalSeparator:",",thousandsSeparator:" "},i.i18n.fi={setText:"Aseta",cancelText:"Peruuta",clearText:"Tyhjennä",selectedText:"{count} valita",dateFormat:"d. MM yy",dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviiko","Torstai","Perjantai","Lauantai"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNamesMin:["S","M","T","K","T","P","L"],dayText:"Päivä",delimiter:".",hourText:"Tuntia",minuteText:"Minuutti",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tam","Hel","Maa","Huh","Tou","Kes","Hei","Elo","Syy","Lok","Mar","Jou"],monthText:"Kuukausi",secText:"Sekunda",timeFormat:"H:ii",yearText:"Vuosi",nowText:"Nyt",pmText:"pm",amText:"am",firstDay:1,dateText:"Päiväys",timeText:"Aika",todayText:"Tänään",prevMonthText:"Edellinen kuukausi",nextMonthText:"Ensi kuussa",prevYearText:"Edellinen vuosi",nextYearText:"Ensi vuosi",closeText:"Sulje",eventText:"Tapahtumia",eventsText:"Tapahtumia",allDayText:"Koko päivä",noEventsText:"Ei tapahtumia",moreEventsText:"{count} muu",moreEventsPluralText:"{count} muuta",fromText:"Alkaa",toText:"Päättyy",wholeText:"Kokonainen",fractionText:"Murtoluku",unitText:"Yksikkö",labels:["Vuosi","Kuukausi","Päivä","Tunnin","Minuutti","sekuntia",""],labelsShort:["Vuo","Kuu","Päi","Tun","Min","Sek",""],startText:"Käynnistys",stopText:"Seis",resetText:"Aseta uudelleen",lapText:"Kierros",hideText:"Vuota",backText:"Edellinen",undoText:"Kumoa",offText:"Pois",onText:"Päällä",decimalSeparator:",",thousandsSeparator:" "},i.i18n.hi={setText:"सैट करें",cancelText:"रद्द करें",clearText:"साफ़ को",selectedText:"{count} चयनित",dateFormat:"dd/mm/yy",dayNames:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"],dayNamesShort:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayNamesMin:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],dayText:"दिन",delimiter:".",hourText:"घंटा",minuteText:"मिनट",monthNames:["जनवरी ","फरवरी","मार्च","अप्रेल","मई","जून","जूलाई","अगस्त ","सितम्बर","अक्टूबर","नवम्बर","दिसम्बर"],monthNamesShort:["जन","फर","मार्च","अप्रेल","मई","जून","जूलाई","अग","सित","अक्ट","नव","दि"],monthText:"महीना",secText:"सेकंड",timeFormat:"H:ii",yearText:"साल",nowText:"अब",pmText:"अपराह्न",amText:"पूर्वाह्न",firstDay:1,dateText:"तिथि",timeText:"समय",todayText:"आज",prevMonthText:"पिछ्ला महिना",nextMonthText:"अगले महीने",prevYearText:"पिछला साल",nextYearText:"अगले वर्ष",closeText:"बंद",eventText:"इवेट३",eventsText:"इवेट३",allDayText:"पूरे दिन",noEventsText:"Ei tapahtumia",moreEventsText:"{count} और",fromText:"से",toText:"तक",wholeText:"समूचा",fractionText:"अंश",unitText:"इकाई",labels:["साल","महीने","दिन","घंटे","मिनट","सेकंड",""],labelsShort:["साल","महीने","दिन","घंटे","मिनट","सेकंड",""],startText:"प्रारंभ",stopText:"रोकें",resetText:"रीसेट करें",lapText:"लैप",hideText:"छिपाना",backText:"वापस",undoText:"वापस लाएं",offText:"बंद",onText:"चालू",decimalSeparator:",",thousandsSeparator:" "},i.i18n.hr={setText:"Postavi",cancelText:"Izlaz",clearText:"Izbriši",selectedText:"{count} odabran",dateFormat:"dd.mm.yy",dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Če","Pe","Su"],dayText:"Dan",delimiter:".",hourText:"Sat",minuteText:"Minuta",monthNames:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],monthText:"Mjesec",secText:"Sekunda",timeFormat:"H:ii",yearText:"Godina",nowText:"Sada",pmText:"pm",amText:"am",firstDay:1,dateText:"Datum",timeText:"Vrijeme",todayText:"Danas",prevMonthText:"Prethodni mjesec",nextMonthText:"Sljedeći mjesec",prevYearText:"Prethodni godina",nextYearText:"Slijedeće godine",closeText:"Zatvori",eventText:"Događaj",eventsText:"događaja",allDayText:"Cijeli dan",noEventsText:"Bez događaja",moreEventsText:"Još {count}",fromText:"Počinje",toText:"Završava",wholeText:"Cjelina",fractionText:"Frakcija",unitText:"Jedinica",labels:["godina","mjesec","dan","sat","minuta","sekunda",""],labelsShort:["god","mje","dan","sat","min","sec",""],startText:"Početak",stopText:"Prekid",resetText:"Resetiraj",lapText:"Ciklus",hideText:"Sakriti",backText:"Natrag",undoText:"Poništavanje",offText:"Uklj.",onText:"Isklj.",decimalSeparator:",",thousandsSeparator:" "},i.i18n.ko={setText:"설정",cancelText:"취소",clearText:"삭제",selectedText:"{count} 선택된",dateFormat:"yy년mm월dd일",dayNames:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],dayText:"일",delimiter:"-",hourText:"시간",minuteText:"분",monthNames:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthNamesShort:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],monthText:"달",secText:"초",timeFormat:"H:ii",yearText:"년",nowText:"지금",pmText:"오후",amText:"오전",yearSuffix:"년",monthSuffix:"월",daySuffix:"일",firstDay:0,dateText:"날짜",timeText:"시간",todayText:"오늘",prevMonthText:"이전 달",nextMonthText:"다음 달",prevYearText:"이전 년",nextYearText:"다음 년",closeText:"닫기",eventText:"이벤트",eventsText:"이벤트",allDayText:"종일",noEventsText:"이벤트 없음",moreEventsText:"{count}개 더보기",fromText:"시작",toText:"종료",wholeText:"정수",fractionText:"분수",unitText:"단위",labels:["년","달","일","시간","분","초",""],labelsShort:["년","달","일","시간","분","초",""],startText:"시작",stopText:"중지 ",resetText:"초기화",lapText:"기록",hideText:"숨는 장소",backText:"뒤로",undoText:"실행취소",offText:"끔",onText:"켬",decimalSeparator:",",thousandsSeparator:" "},i.i18n.sr={setText:"Постави",cancelText:"Откажи",clearText:"Обриши",selectedText:"{count} изабрана",dateFormat:"dd.mm.yy",dayNames:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"],dayNamesShort:["Нед","Пон","Уто","Сре","Чет","Пет","Суб"],dayNamesMin:["Не","По","Ут","Ср","Че","Пе","Су"],dayText:"Дан",delimiter:".",hourText:"Час",minuteText:"Минут",monthNames:["Јануар","Фебруар","Март","Април","Мај","Јун","Јул","Август","Септембар","Октобар","Новембар","Децембар"],monthNamesShort:["Јан","Феб","Мар","Апр","Мај","Јун","Јул","Авг","Сеп","Окт","Нов","Дец"],monthText:"месец",secText:"Секунд",timeFormat:"H:ii",yearText:"година",nowText:"сада",pmText:"pm",amText:"am",firstDay:1,dateText:"Датум",timeText:"време",todayText:"Данас",prevMonthText:"Претходни мјесец",nextMonthText:"Следећег месеца",prevYearText:"Претходна године",nextYearText:"Следеће године",closeText:"Затвори",eventText:"Догађај",eventsText:"Догађаји",allDayText:"Цео дан",noEventsText:"Нема догађаја",moreEventsText:"Још {count}",fromText:"Од",toText:"До",wholeText:"цео",fractionText:"Фракција",unitText:"единица",labels:["Године","Месеци","Дана","Сати","Минута","Секунди",""],labelsShort:["Год","Мес","Дана","Сати","Мину","Секу",""],startText:"Започни",stopText:"Стоп",resetText:"Ресетуј",lapText:"Круг",hideText:"Сакрити",backText:"Повратак",undoText:"Опозови",offText:"нe",onText:"да",decimalSeparator:",",thousandsSeparator:" "},i.i18n.vi={setText:"Đặt",cancelText:"Hủy bò",clearText:"Xóa",selectedText:"{count} chọn",dateFormat:"dd/mm/yy",dayNames:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],dayText:"",delimiter:"/",hourText:"Giờ",minuteText:"Phút",monthNames:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],monthText:"Tháng",secText:"Giây",timeFormat:"H:ii",yearText:"Năm",nowText:"Bây giờ",pmText:"pm",amText:"am",firstDay:0,dateText:"Ngày",timeText:"Hồi",todayText:"Hôm nay",prevMonthText:"Tháng trước",nextMonthText:"Tháng tới",prevYearText:"Măm trước",nextYearText:"Năm tới",closeText:"Đóng",eventText:"Sự kiện",eventsText:"Sự kiện",allDayText:"Cả ngày",noEventsText:"Không có sự kiện",moreEventsText:"{count} thẻ khác",fromText:"Từ",toText:"Tới",wholeText:"Toàn thể",fractionText:"Phân số",unitText:"đơn vị",labels:["Năm","Tháng","Ngày","Giờ","Phút","Giây",""],labelsShort:["Năm","Tháng","Ngày","Giờ","Phút","Giây",""],startText:"Bắt đầu",stopText:"Dừng",resetText:"Đặt lại",lapText:"Vòng",hideText:"Giấu",backText:"Quay lại",undoText:"Hoàn tác",offText:"Tất",onText:"Bật",decimalSeparator:",",thousandsSeparator:" "},i.i18n.th={setText:"ตั้งค่า",cancelText:"ยกเลิก",clearText:"ล้าง",selectedText:"{count} เลือก",dateFormat:"dd/mm/yy",dayNames:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"],dayNamesShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayNamesMin:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayText:"วัน",delimiter:".",hourText:"ชั่วโมง",minuteText:"นาที",monthNames:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],monthNamesShort:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],monthText:"เดือน",secText:"วินาที",timeFormat:"HH:ii",yearText:"ปี",nowText:"ตอนนี้",pmText:"pm",amText:"am",firstDay:0,dateText:"วัน",timeText:"เวลา",today:"วันนี้",prevMonthText:"เดือนก่อนหน้า",nextMonthText:"เดือนถัดไป",prevYearText:"ปีก่อนหน้า",nextYearText:"ปีถัดไป",closeText:"ปิด",eventText:"เหตุการณ์",eventsText:"เหตุการณ์",allDayText:"ตลอดวัน",noEventsText:"ไม่มีกิจกรรม",moreEventsText:"อีก {count} กิจกรรม",fromText:"จาก",toText:"ถึง",wholeText:"ทั้งหมด",fractionText:"เศษส่วน",unitText:"หน่วย",labels:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที",""],labelsShort:["ปี","เดือน","วัน","ชั่วโมง","นาที","วินาที",""],startText:"เริ่ม",stopText:"หยุด",resetText:"รีเซ็ต",lapText:"รอบ",hideText:"ซ่อน",backText:"ย้อนกลับ",undoText:"เลิกทา",offText:"ปิด",onText:"เปิด",decimalSeparator:",",thousandsSeparator:" "},i.i18n.ua={setText:"встановити",cancelText:"відміна",clearText:"очистити",selectedText:"{count} вибрані",dateFormat:"dd.mm.yy",dayNames:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"],dayNamesShort:["нед","пнд","вів","срд","чтв","птн","сбт"],dayNamesMin:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayText:"День",delimiter:".",hourText:"година",minuteText:"хвилина",monthNames:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],monthNamesShort:["Січ","Лют","Бер","Кві","Тра","Чер","Лип","Сер","Вер","Жов","Лис","Гру"],monthText:"Місяць",secText:"Секунд",timeFormat:"H:ii",yearText:"Рік",nowText:"Зараз",pmText:"pm",amText:"am",firstDay:1,dateText:"дата",timeText:"Час",todayText:"Сьогодні",prevMonthText:"Попередній місяць",nextMonthText:"Наступного місяця",prevYearText:"Попередній рік",nextYearText:"Наступного року",closeText:"Закрити",eventText:"подія",eventsText:"події",allDayText:"Увесь день",noEventsText:"Жодної події",moreEventsText:"та ще {count}",fromText:"від",toText:"кінець",wholeText:"всі",fractionText:"фракція",unitText:"одиниця",labels:["Рік","Місяць","День","година","хвилина","Секунд",""],labelsShort:["Рік","Місяць","День","година","хвилина","Секунд",""],startText:"Початок",stopText:"СТОП",resetText:"скинути",lapText:"коло",hideText:"сховати",backText:"назад",undoText:"відмінити",offText:"Вимикати",onText:"Увімкнути",decimalSeparator:",",thousandsSeparator:" "},i.customTheme("mobiscroll-dark","mobiscroll"),i.customTheme("voxco","mobiscroll");var st=i.themes,ct="mobiscroll";return"android"==e?ct="material":"ios"==e?ct="ios":"wp"==e&&(ct="windows"),ae.each(st.frame,(function(e,t){if(ct&&t.baseTheme==ct&&e!=ct+"-dark")return i.autoTheme=e,!1;e==ct&&(i.autoTheme=e)})),i}()},34176:function(e,t,n){"use strict";var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o),s=n(61667),c=n.n(s),l=new URL(n(73381),n.b),u=new URL(n(7490),n.b),m=new URL(n(16571),n.b),d=a()(i()),f=c()(l),p=c()(u),h=c()(m);d.push([e.id,".mbsc-cloak{visibility:hidden !important}.mbsc-empty{text-align:center;margin:3em;color:inherit}.mbsc-empty h3{margin:.666666em 0;padding:0;color:inherit;font-size:1.5em;font-weight:normal;font-family:inherit}.mbsc-empty p{margin:1em 0;padding:0;font-size:1em;line-height:1.5}.mbsc-anim-trans .mbsc-fr-scroll{overflow:hidden}.mbsc-anim-trans-flip .mbsc-fr-persp,.mbsc-anim-trans-swing .mbsc-fr-persp{-webkit-perspective:1000px;perspective:1000px}.mbsc-anim-trans .mbsc-fr-popup,.mbsc-anim-trans .mbsc-fr-overlay{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.mbsc-anim-in .mbsc-fr-popup,.mbsc-anim-in .mbsc-fr-overlay{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:225ms;animation-timing-function:ease-out;animation-duration:225ms}.mbsc-anim-out .mbsc-fr-popup,.mbsc-anim-out .mbsc-fr-overlay{-webkit-animation-timing-function:ease-in;-webkit-animation-duration:195ms;animation-timing-function:ease-in;animation-duration:195ms}.mbsc-anim-in .mbsc-fr-overlay{-webkit-animation-name:mbsc-anim-f-in;animation-name:mbsc-anim-f-in}.mbsc-anim-out .mbsc-fr-overlay{-webkit-animation-name:mbsc-anim-f-out;animation-name:mbsc-anim-f-out}.mbsc-anim-flip,.mbsc-anim-swing,.mbsc-anim-slidehorizontal,.mbsc-anim-slidevertical,.mbsc-anim-slidedown,.mbsc-anim-slideup,.mbsc-anim-fade{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);backface-visibility:hidden;transform:translateX(0)}.mbsc-anim-swing,.mbsc-anim-slidehorizontal,.mbsc-anim-slidevertical,.mbsc-anim-slidedown,.mbsc-anim-slideup,.mbsc-anim-fade{-webkit-transform-origin:0 0;transform-origin:0 0}.mbsc-anim-flip,.mbsc-anim-pop{-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.mbsc-anim-in .mbsc-anim-pop{opacity:1;-webkit-animation-name:mbsc-anim-p-in;-webkit-animation-duration:100ms;-webkit-transform:scale(1);animation-name:mbsc-anim-p-in;animation-duration:100ms;transform:scale(1)}.mbsc-anim-out .mbsc-anim-pop{opacity:0;-webkit-animation-name:mbsc-anim-p-out;-webkit-animation-duration:150ms;animation-name:mbsc-anim-p-out;animation-duration:150ms}.mbsc-anim-trans-pop .mbsc-fr-overlay{-webkit-animation-duration:150ms;animation-duration:150ms}.mbsc-anim-in .mbsc-anim-flip{opacity:1;-webkit-animation-name:mbsc-anim-fl-in;-webkit-transform:scale(1);animation-name:mbsc-anim-fl-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-flip{opacity:0;-webkit-animation-name:mbsc-anim-fl-out;animation-name:mbsc-anim-fl-out}.mbsc-anim-in .mbsc-anim-swing{opacity:1;-webkit-animation-name:mbsc-anim-sw-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-sw-in}.mbsc-anim-out .mbsc-anim-swing{opacity:0;-webkit-animation-name:mbsc-anim-sw-out;animation-name:mbsc-anim-sw-out}.mbsc-anim-in .mbsc-anim-slidehorizontal{opacity:1;-webkit-animation-name:mbsc-anim-sh-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-sh-in}.mbsc-anim-out .mbsc-anim-slidehorizontal{opacity:0;-webkit-animation-name:mbsc-anim-sh-out;animation-name:mbsc-anim-sh-out}.mbsc-anim-in .mbsc-anim-slidevertical{opacity:1;-webkit-animation-name:mbsc-anim-sv-in;-webkit-transform:scale(1);animation-name:mbsc-anim-sv-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-slidevertical{opacity:0;-webkit-animation-name:mbsc-anim-sv-out;animation-name:mbsc-anim-sv-out}.mbsc-anim-in .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-in;-webkit-transform:scale(1);animation-name:mbsc-anim-sd-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-out;-webkit-transform:translateY(-100%);animation-name:mbsc-anim-sd-out}.mbsc-anim-in .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-su-in}.mbsc-anim-out .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-out;-webkit-transform:translateY(100%);animation-name:mbsc-anim-su-out}.mbsc-anim-in .mbsc-anim-fade{opacity:1;-webkit-animation-name:mbsc-anim-f-in;animation-name:mbsc-anim-f-in}.mbsc-anim-out .mbsc-anim-fade{opacity:0;-webkit-animation-name:mbsc-anim-f-out;animation-name:mbsc-anim-f-out}.mbsc-fr-pointer.mbsc-anim-in .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-in, mbsc-anim-f-in;animation-name:mbsc-anim-sd-in, mbsc-anim-f-in}.mbsc-fr-pointer.mbsc-anim-out .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-out, mbsc-anim-f-out;animation-name:mbsc-anim-sd-out, mbsc-anim-f-out}.mbsc-fr-pointer.mbsc-anim-in .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-in, mbsc-anim-f-in;animation-name:mbsc-anim-su-in, mbsc-anim-f-in}.mbsc-fr-pointer.mbsc-anim-out .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-out, mbsc-anim-f-out;animation-name:mbsc-anim-su-out, mbsc-anim-f-out}@keyframes mbsc-anim-f-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes mbsc-anim-f-in{from{opacity:0}to{opacity:1}}@keyframes mbsc-anim-f-out{from{visibility:visible;opacity:1}to{opacity:0}}@-webkit-keyframes mbsc-anim-f-out{from{visibility:visible;opacity:1}to{opacity:0}}@keyframes mbsc-anim-p-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes mbsc-anim-p-in{from{opacity:0;-webkit-transform:scale(0.8)}to{opacity:1;-webkit-transform:scale(1)}}@keyframes mbsc-anim-p-out{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.8)}}@-webkit-keyframes mbsc-anim-p-out{from{opacity:1;-webkit-transform:scale(1)}to{opacity:0;-webkit-transform:scale(0.8)}}@keyframes mbsc-anim-fl-in{from{opacity:0;transform:rotateY(90deg)}to{opacity:1;transform:rotateY(0)}}@-webkit-keyframes mbsc-anim-fl-in{from{opacity:0;-webkit-transform:rotateY(90deg)}to{opacity:1;-webkit-transform:rotateY(0)}}@keyframes mbsc-anim-fl-out{from{opacity:1;transform:rotateY(0deg)}to{opacity:0;transform:rotateY(-90deg)}}@-webkit-keyframes mbsc-anim-fl-out{from{opacity:1;-webkit-transform:rotateY(0deg)}to{opacity:0;-webkit-transform:rotateY(-90deg)}}@keyframes mbsc-anim-sw-in{from{opacity:0;transform:rotateY(-90deg)}to{opacity:1;transform:rotateY(0deg)}}@-webkit-keyframes mbsc-anim-sw-in{from{opacity:0;-webkit-transform:rotateY(-90deg)}to{opacity:1;-webkit-transform:rotateY(0deg)}}@keyframes mbsc-anim-sw-out{from{opacity:1;transform:rotateY(0deg)}to{opacity:0;transform:rotateY(-90deg)}}@-webkit-keyframes mbsc-anim-sw-out{from{opacity:1;-webkit-transform:rotateY(0deg)}to{opacity:0;-webkit-transform:rotateY(-90deg)}}@keyframes mbsc-anim-sh-in{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes mbsc-anim-sh-in{from{opacity:0;-webkit-transform:translateX(-100%)}to{opacity:1;-webkit-transform:translateX(0)}}@keyframes mbsc-anim-sh-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}@-webkit-keyframes mbsc-anim-sh-out{from{opacity:1;-webkit-transform:translateX(0)}to{opacity:0;-webkit-transform:translateX(100%)}}@keyframes mbsc-anim-sv-in{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes mbsc-anim-sv-in{from{opacity:0;-webkit-transform:translateY(-100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-sv-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@-webkit-keyframes mbsc-anim-sv-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%)}}@keyframes mbsc-anim-sd-in{from{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes mbsc-anim-sd-in{from{opacity:1;-webkit-transform:translateY(-100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-sd-out{from{transform:translateY(0)}to{transform:translateY(-100%)}}@-webkit-keyframes mbsc-anim-sd-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:1;-webkit-transform:translateY(-100%)}}@keyframes mbsc-anim-su-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes mbsc-anim-su-in{from{opacity:1;-webkit-transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-su-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes mbsc-anim-su-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:1;-webkit-transform:translateY(100%)}}@font-face{font-family:'icons_mobiscroll';src:url("+f+') format("woff"),url('+p+') format("woff"),url('+h+') format("truetype");font-weight:normal;font-style:normal}.mbsc-ic:before{font-family:\'icons_mobiscroll\';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mbsc-ic-aid::before{content:"\\ea01"}.mbsc-ic-airplane::before{content:"\\ea02"}.mbsc-ic-alarm2::before{content:"\\ea03"}.mbsc-ic-arrow-down5::before{content:"\\ea04"}.mbsc-ic-arrow-left5::before{content:"\\ea05"}.mbsc-ic-arrow-left6::before{content:"\\ea06"}.mbsc-ic-arrow-right5::before{content:"\\ea07"}.mbsc-ic-arrow-right6::before{content:"\\ea08"}.mbsc-ic-arrow-up5::before{content:"\\ea09"}.mbsc-ic-attachment::before{content:"\\ea0a"}.mbsc-ic-bars::before{content:"\\ea0b"}.mbsc-ic-book::before{content:"\\ea0c"}.mbsc-ic-bubble::before{content:"\\ea0d"}.mbsc-ic-bubbles::before{content:"\\ea0e"}.mbsc-ic-bullhorn::before{content:"\\ea0f"}.mbsc-ic-calendar::before{content:"\\ea10"}.mbsc-ic-camera::before{content:"\\ea11"}.mbsc-ic-cart::before{content:"\\ea12"}.mbsc-ic-checkmark::before{content:"\\ea13"}.mbsc-ic-clock::before{content:"\\ea14"}.mbsc-ic-close::before{content:"\\ea15"}.mbsc-ic-cloud-download::before{content:"\\ea16"}.mbsc-ic-cloud-upload::before{content:"\\ea17"}.mbsc-ic-cogs::before{content:"\\ea18"}.mbsc-ic-connection::before{content:"\\ea19"}.mbsc-ic-copy2::before{content:"\\ea1a"}.mbsc-ic-copy3::before{content:"\\ea1b"}.mbsc-ic-credit::before{content:"\\ea1c"}.mbsc-ic-disk::before{content:"\\ea1d"}.mbsc-ic-download::before{content:"\\ea1e"}.mbsc-ic-drawer::before{content:"\\ea1f"}.mbsc-ic-droplet::before{content:"\\ea20"}.mbsc-ic-earth::before{content:"\\ea21"}.mbsc-ic-eye-blocked::before{content:"\\ea22"}.mbsc-ic-eye::before{content:"\\ea23"}.mbsc-ic-fa-globe::before{content:"\\ea24"}.mbsc-ic-fa-leaf::before{content:"\\ea25"}.mbsc-ic-fa-mail-reply::before{content:"\\ea26"}.mbsc-ic-fa-retweet::before{content:"\\ea27"}.mbsc-ic-fa-rotate-left::before{content:"\\ea28"}.mbsc-ic-file4::before{content:"\\ea29"}.mbsc-ic-film::before{content:"\\ea2a"}.mbsc-ic-flag::before{content:"\\ea2b"}.mbsc-ic-folder::before{content:"\\ea2c"}.mbsc-ic-forward::before{content:"\\ea2d"}.mbsc-ic-foundation-mail::before{content:"\\ea2e"}.mbsc-ic-foundation-minus-circle::before{content:"\\ea2f"}.mbsc-ic-globe::before{content:"\\ea30"}.mbsc-ic-heart::before{content:"\\ea31"}.mbsc-ic-history::before{content:"\\ea32"}.mbsc-ic-home::before{content:"\\ea33"}.mbsc-ic-image2::before{content:"\\ea34"}.mbsc-ic-ion-android-system-windows::before{content:"\\ea35"}.mbsc-ic-ion-bluetooth::before{content:"\\ea36"}.mbsc-ic-ion-navigate::before{content:"\\ea37"}.mbsc-ic-key2::before{content:"\\ea38"}.mbsc-ic-library::before{content:"\\ea39"}.mbsc-ic-line-settings::before{content:"\\ea3a"}.mbsc-ic-link::before{content:"\\ea3b"}.mbsc-ic-location::before{content:"\\ea3c"}.mbsc-ic-lock2::before{content:"\\ea3d"}.mbsc-ic-loop2::before{content:"\\ea3e"}.mbsc-ic-map::before{content:"\\ea3f"}.mbsc-ic-material-arrow-back::before{content:"\\ea40"}.mbsc-ic-material-brightness-medium::before{content:"\\ea41"}.mbsc-ic-material-check::before{content:"\\ea42"}.mbsc-ic-material-crop::before{content:"\\ea43"}.mbsc-ic-material-equalizer::before{content:"\\ea44"}.mbsc-ic-material-filter::before{content:"\\ea45"}.mbsc-ic-material-iso::before{content:"\\ea46"}.mbsc-ic-material-palette::before{content:"\\ea47"}.mbsc-ic-material-pause::before{content:"\\ea48"}.mbsc-ic-material-people::before{content:"\\ea49"}.mbsc-ic-material-photo-size-select-large::before{content:"\\ea4a"}.mbsc-ic-material-play-arrow::before{content:"\\ea4b"}.mbsc-ic-material-repeat::before{content:"\\ea4c"}.mbsc-ic-material-rotate-right::before{content:"\\ea4d"}.mbsc-ic-material-shuffle::before{content:"\\ea4e"}.mbsc-ic-material-skip-next::before{content:"\\ea4f"}.mbsc-ic-material-skip-previous::before{content:"\\ea50"}.mbsc-ic-material-stop::before{content:"\\ea51"}.mbsc-ic-material-texture::before{content:"\\ea52"}.mbsc-ic-material-wb-auto::before{content:"\\ea53"}.mbsc-ic-meteo-cloud2::before{content:"\\ea54"}.mbsc-ic-meteo-cloud3::before{content:"\\ea55"}.mbsc-ic-meteo-cloudy::before{content:"\\ea56"}.mbsc-ic-meteo-sun::before{content:"\\ea57"}.mbsc-ic-minus::before{content:"\\ea58"}.mbsc-ic-mobile::before{content:"\\ea59"}.mbsc-ic-music::before{content:"\\ea5a"}.mbsc-ic-neutral::before{content:"\\ea5b"}.mbsc-ic-newspaper::before{content:"\\ea5c"}.mbsc-ic-office::before{content:"\\ea5d"}.mbsc-ic-pencil::before{content:"\\ea5e"}.mbsc-ic-phone::before{content:"\\ea5f"}.mbsc-ic-play::before{content:"\\ea60"}.mbsc-ic-plus::before{content:"\\ea61"}.mbsc-ic-redo2::before{content:"\\ea62"}.mbsc-ic-remove::before{content:"\\ea63"}.mbsc-ic-reply::before{content:"\\ea64"}.mbsc-ic-sad::before{content:"\\ea65"}.mbsc-ic-sad2::before{content:"\\ea66"}.mbsc-ic-share::before{content:"\\ea67"}.mbsc-ic-smiley::before{content:"\\ea68"}.mbsc-ic-smiley2::before{content:"\\ea69"}.mbsc-ic-stack::before{content:"\\ea6a"}.mbsc-ic-star3::before{content:"\\ea6b"}.mbsc-ic-stopwatch::before{content:"\\ea6c"}.mbsc-ic-support::before{content:"\\ea6d"}.mbsc-ic-tag::before{content:"\\ea6e"}.mbsc-ic-thumbs-up::before{content:"\\ea6f"}.mbsc-ic-thumbs-up2::before{content:"\\ea70"}.mbsc-ic-undo2::before{content:"\\ea71"}.mbsc-ic-unlocked::before{content:"\\ea72"}.mbsc-ic-upload::before{content:"\\ea73"}.mbsc-ic-user4::before{content:"\\ea74"}.mbsc-ic-volume-high::before{content:"\\ea75"}.mbsc-ic-volume-medium::before{content:"\\ea76"}.mbsc-ic-volume-mute2::before{content:"\\ea77"}.mbsc-fr-w,.mbsc-fr-overlay{-webkit-transform:translateZ(0)}.mbsc-fr{pointer-events:none;z-index:99998;font-weight:normal;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%}.mbsc-fr-focus{outline:0}.mbsc-fr-lock-ctx{position:relative}.mbsc-fr-lock.mbsc-fr-lock-ios{overflow:hidden;position:absolute;top:0;bottom:0;left:0;right:0;height:auto}.mbsc-fr-pos{visibility:hidden}.mbsc-fr-scroll{position:relative;z-index:2;width:100%;height:100%;-ms-touch-action:pan-y;touch-action:pan-y;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.mbsc-fr-popup{max-width:98%;position:absolute;z-index:2;top:0;left:0;font-size:12px;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y}.mbsc-rtl{direction:rtl}.mbsc-fr-popup,.mbsc-fr-btn-cont,.mbsc-fr-arr{box-sizing:border-box}.mbsc-fr .mbsc-fr-w{box-sizing:content-box}.mbsc-fr-w{min-width:256px;max-width:100%;overflow:hidden;text-align:center;font-family:arial, verdana, sans-serif}.mbsc-fr,.mbsc-fr-persp,.mbsc-fr-overlay{position:fixed;top:0;bottom:0;left:0;right:0}.mbsc-fr-lock .mbsc-fr-persp{-ms-touch-action:none;touch-action:none}.mbsc-fr-lock-ctx>.mbsc-fr,.mbsc-fr-lock-ctx .mbsc-fr-persp,.mbsc-fr-lock-ctx .mbsc-fr-overlay{position:absolute}.mbsc-fr-persp{pointer-events:auto;overflow:hidden}.mbsc-fr-overlay{z-index:1;background:rgba(0,0,0,0.7)}.mbsc-fr-liq .mbsc-fr-popup{max-width:100%}.mbsc-fr-top .mbsc-fr-popup,.mbsc-fr-bottom .mbsc-fr-popup{width:100%;max-width:100%}.mbsc-fr-top .mbsc-fr-w,.mbsc-fr-bottom .mbsc-fr-w{padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.mbsc-fr-bottom .mbsc-fr-w{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.mbsc-fr-top .mbsc-fr-popup{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.mbsc-fr-inline{position:relative;pointer-events:auto;z-index:0}.mbsc-fr-inline .mbsc-fr-popup{position:static;max-width:100%}.mbsc-fr-bubble,.mbsc-fr-bubble .mbsc-fr-persp{position:absolute}.mbsc-fr-bubble .mbsc-fr-arr-w{position:absolute;z-index:1;left:0;width:100%;overflow:hidden}.mbsc-fr-bubble-top .mbsc-fr-arr-w{top:100%}.mbsc-fr-bubble-bottom .mbsc-fr-arr-w{bottom:100%}.mbsc-fr-bubble .mbsc-fr-arr-i{margin:0 1.75em;position:relative;direction:ltr}.mbsc-fr-bubble .mbsc-fr-arr{display:block}.mbsc-fr-arr{display:none;position:relative;left:0;width:2em;height:2em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin-left:-1em}.mbsc-fr-bubble-bottom .mbsc-fr-arr{top:1.333334em}.mbsc-fr-bubble-top .mbsc-fr-arr{top:-1.333334em}.mbsc-fr-hdn{width:0;height:0;margin:0;padding:0;border:0;overflow:hidden}.mbsc-fr-hdr{overflow:hidden;text-overflow:ellipsis;text-align:center}.mbsc-fr-btn{overflow:hidden;display:block;text-decoration:none;white-space:nowrap;text-overflow:ellipsis;vertical-align:top}.mbsc-fr-btn-e{cursor:pointer}.mbsc-fr-btn.mbsc-disabled{cursor:not-allowed}.mbsc-fr-btn-cont{display:table;width:100%;text-align:center;white-space:normal}.mbsc-fr-btn-cont .mbsc-disabled{opacity:.3}.mbsc-fr-btn-w{vertical-align:top;display:table-cell;position:relative;z-index:5}.mbsc-fr-btn-w .mbsc-fr-btn:before{padding:.375em}.mbsc-fr-pointer.mbsc-fr .mbsc-fr-w .mbsc-fr-inline .mbsc-fr-w{box-shadow:none;border-radius:0}.mbsc-fr-pointer .mbsc-ltr .mbsc-fr-w,.mbsc-fr-pointer .mbsc-ltr .mbsc-sc-whl .mbsc-sel-gr{text-align:left}.mbsc-fr-pointer .mbsc-rtl .mbsc-fr-w,.mbsc-fr-pointer .mbsc-rtl .mbsc-sc-whl .mbsc-sel-gr{text-align:right}.mbsc-fr-pointer.mbsc-fr-top .mbsc-fr-w,.mbsc-fr-pointer.mbsc-fr-bottom .mbsc-fr-w{pointer-events:auto;display:inline-block;margin-top:3em;margin-bottom:3em;max-width:98%}.mbsc-fr-pointer.mbsc-fr-top .mbsc-fr-popup,.mbsc-fr-pointer.mbsc-fr-bottom .mbsc-fr-popup{text-align:center;pointer-events:none}.mbsc-fr-pointer.mbsc-fr-bubble .mbsc-fr-arr-w{display:none}.mbsc-fr-pointer .mbsc-sel-empty{text-align:center}.mbsc-mobiscroll .mbsc-fr-w{min-width:16em;font-size:16px}.mbsc-mobiscroll .mbsc-fr-hdr{padding:0 .6666em;padding-top:.6666em;font-size:.75em;text-transform:uppercase;min-height:2em;line-height:2em}.mbsc-mobiscroll .mbsc-fr-btn-cont{display:block;overflow:hidden;text-align:right;padding:0 .5em .5em .5em}.mbsc-mobiscroll .mbsc-ltr .mbsc-fr-btn-cont{text-align:right}.mbsc-mobiscroll .mbsc-rtl .mbsc-fr-btn-cont{text-align:left}.mbsc-mobiscroll .mbsc-fr-btn-w{display:inline-block}.mbsc-mobiscroll .mbsc-fr-btn{height:2.5em;line-height:2.5em;padding:0 1em;text-transform:uppercase}.mbsc-mobiscroll.mbsc-fr-center .mbsc-fr-w,.mbsc-mobiscroll.mbsc-fr-bubble .mbsc-fr-w{border-radius:.25em}.mbsc-mobiscroll.mbsc-fr-no-overlay .mbsc-fr-arr{box-shadow:0 0 1em rgba(0,0,0,0.2)}.mbsc-mobiscroll.mbsc-fr-no-overlay .mbsc-fr-w{box-shadow:0 0.125em 1em rgba(0,0,0,0.3)}.mbsc-mobiscroll.mbsc-fr-no-overlay.mbsc-fr-bubble .mbsc-fr-w{border-radius:.25em}.mbsc-mobiscroll .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-mobiscroll .mbsc-fr-w{background:#f7f7f7;color:#454545}.mbsc-mobiscroll .mbsc-fr-hdr,.mbsc-mobiscroll .mbsc-fr-btn{color:#4eccc4}.mbsc-mobiscroll .mbsc-fr-btn.mbsc-active,.mbsc-mobiscroll.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-fr-arr{background:#f7f7f7}.mbsc-sc-whl-o,.mbsc-sc-btn{-webkit-transform:translateZ(0)}.mbsc-sc .mbsc-sc-whl-c,.mbsc-sc .mbsc-sc-whl-l,.mbsc-sc .mbsc-sc-whl{box-sizing:content-box}.mbsc-sc-whl-gr-c,.mbsc-sc-itm{box-sizing:border-box}.mbsc-sc-whl-gr-c{position:relative;max-width:100%;vertical-align:middle;display:inline-block;overflow:hidden}.mbsc-fr-bottom .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-top .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-inline .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-liq .mbsc-sc-whl-gr-c{display:block}.mbsc-sc-whl-gr{margin:0 auto;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.mbsc-sc-whl-w{max-width:100%;position:relative;-ms-touch-action:none;touch-action:none}.mbsc-fr-pointer .mbsc-sc-whl-w,.mbsc-fr-liq .mbsc-sc-whl-w{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto}.mbsc-sc-whl-o{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;pointer-events:none;display:none}.mbsc-sc-whl-l{display:none;position:absolute;top:50%;left:0;right:0;pointer-events:none}.mbsc-sc-whl-w .mbsc-sc-whl-l{display:block}.mbsc-sc-whl{overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;margin:-1px 0}.mbsc-sc-whl-c{position:relative;z-index:1;top:50%;border-top:1px solid transparent;border-bottom:1px solid transparent}.mbsc-sc-whl-sc{position:relative}.mbsc-sc-itm{position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mbsc-sc-itm-inv,.mbsc-sc-itm-inv-h{opacity:.3}.mbsc-sc-lbl{position:absolute;left:0;right:0;bottom:100%;display:none}.mbsc-sc-lbl-v .mbsc-sc-lbl{display:block}.mbsc-sc-btn{position:absolute;z-index:2;left:0;right:0;cursor:pointer;opacity:1;text-align:center;transition:opacity .2s linear}.mbsc-sc-btn:before{position:absolute;top:0;right:0;left:0}.mbsc-sc-whl-a .mbsc-sc-btn{opacity:0}.mbsc-sc-btn-plus{bottom:0}.mbsc-sc-btn-minus{top:0}.mbsc-sc-whl-gr-3d{-webkit-perspective:1200px;perspective:1200px}.mbsc-sc-whl-gr-3d .mbsc-sc-whl{overflow:visible}.mbsc-sc-whl-gr-3d .mbsc-sc-whl-c{overflow:hidden}.mbsc-sc-whl-gr-3d .mbsc-sc-whl-w,.mbsc-sc-whl-gr-3d .mbsc-sc-whl{transform-style:preserve-3d}.mbsc-sc-whl-3d{position:absolute;top:50%;left:0;right:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.mbsc-sc-itm-3d{position:absolute;width:100%;top:0;left:0;cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mbsc-sc-itm-del{display:none}.mbsc-sc-itm-ml{width:100%;height:auto;display:inline-block;vertical-align:middle;white-space:normal}.mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{position:absolute;top:0;left:0;width:1em;text-align:center}.mbsc-fr-pointer .mbsc-fr-w .mbsc-sc-whl-gr-c,.mbsc-fr-pointer .mbsc-fr-w .mbsc-sc-whl-gr{padding:0}.mbsc-fr-pointer .mbsc-sc-whl-gr-c:first-child:last-child{display:block}.mbsc-sc-bar-c{position:absolute;z-index:4;top:0;bottom:0;right:0;width:10px;opacity:0;background:rgba(0,0,0,0.05);transform:translateZ(0);transition:opacity .2s}.mbsc-sc-bar{position:absolute;right:0;top:0;width:10px;height:100%}.mbsc-sc-bar:after{content:\'\';position:absolute;top:2px;right:2px;bottom:2px;left:2px;background:rgba(0,0,0,0.5);border-radius:3px}.mbsc-sc-whl-w:hover .mbsc-sc-bar-c,.mbsc-sc-whl-anim .mbsc-sc-bar-c{opacity:1}.mbsc-mobiscroll .mbsc-sc-whl-gr{padding:.5em .25em}.mbsc-mobiscroll .mbsc-sc-whl-w{margin:0 .25em}.mbsc-mobiscroll .mbsc-sc-lbl-v .mbsc-sc-whl-w{margin-top:1.875em}.mbsc-mobiscroll .mbsc-sc-lbl{font-size:.75em;line-height:2.5em;text-transform:uppercase}.mbsc-mobiscroll .mbsc-sc-cp .mbsc-sc-whl-w{padding:2em 0}.mbsc-mobiscroll .mbsc-sc-btn{height:2em;line-height:2em}.mbsc-mobiscroll .mbsc-sc-btn:before{font-size:1.5em}.mbsc-mobiscroll .mbsc-sc-itm{padding:0 .25em;font-size:1.375em}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll .mbsc-sc-itm:focus{outline:0}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm{padding:0 1.818181em}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{font-size:1.818181em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-lbl{padding-left:1.666667em;padding-right:1.666667em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-w{margin-left:0;margin-right:0}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-itm{font-size:1em;padding:0 1.25em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-multi .mbsc-sc-itm{padding:0 2.5em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{font-size:2em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-ltr .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{left:.125em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-rtl .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{right:.125em}.mbsc-mobiscroll .mbsc-sc-lbl{color:#4eccc4}.mbsc-mobiscroll .mbsc-sc-whl-l{border-top:1px solid #4eccc4;border-bottom:1px solid #4eccc4}.mbsc-mobiscroll .mbsc-sc-btn{color:#4eccc4;background:#f7f7f7}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll .mbsc-sc-itm:focus{background:rgba(69,69,69,0.1)}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-mobiscroll.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-mobiscroll .mbsc-sc-btn.mbsc-active:before{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#4eccc4}.mbsc-cal-slide,.mbsc-cal-day,.mbsc-cal-day-i{box-sizing:border-box}.mbsc-cal .mbsc-cal-day-date{text-align:center;box-sizing:content-box}.mbsc-cal-hdr,.mbsc-cal-btn-w,.mbsc-cal-days-c,.mbsc-cal-days,.mbsc-cal-tabbed .mbsc-fr-c .mbsc-sc-whl-gr-c{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.mbsc-cal-btn-w,.mbsc-cal-month,.mbsc-cal-year,.mbsc-cal-days,.mbsc-cal-days>div{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto}.mbsc-cal-c{position:relative;display:inline-block;vertical-align:middle;text-align:center}.mbsc-cal-btn-w{width:50%}.mbsc-cal-month,.mbsc-cal-year{width:1%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.mbsc-cal-btn.mbsc-disabled{opacity:.3;cursor:not-allowed}.mbsc-cal-days{line-height:1.875em;text-align:center}.mbsc-cal-days>div{width:14.285715%}.mbsc-cal-body{position:relative}.mbsc-cal-scroll-c{overflow:hidden;height:100%}.mbsc-cal-scroll{width:100%;height:100%}.mbsc-cal-slide{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}.mbsc-cal-slide:first-child{position:relative}.mbsc-cal-table{display:table;width:100%;height:100%;table-layout:fixed;-webkit-transform:translateZ(0)}.mbsc-cal-row{display:table-row}.mbsc-cal-cell{display:table-cell;vertical-align:middle}.mbsc-cal-cell:focus{outline:0}.mbsc-cal-picker{position:absolute;top:0;right:0;bottom:0;left:0;padding:.9375em 0;transition:all .2s ease-in-out;will-change:opacity}.mbsc-cal-picker .mbsc-cal-cell{width:33.333333%;height:25%;cursor:pointer}.mbsc-cal-h{visibility:hidden;opacity:0}.mbsc-cal-day{max-width:14.285715%;height:16.666667%;position:relative;text-align:center;cursor:pointer}.mbsc-cal-day-i{position:relative;height:100%}.mbsc-cal-day-markup{overflow:hidden}.mbsc-cal-day-diff .mbsc-cal-day-date{opacity:.5}.mbsc-cal-week-view .mbsc-cal-day-date,.mbsc-cal-day-diff.mbsc-selected .mbsc-cal-day-date{opacity:1}.mbsc-cal-cell.mbsc-disabled{cursor:not-allowed}.mbsc-cal-cell.mbsc-disabled .mbsc-cal-cell-txt{opacity:.2}.mbsc-cal-hide-diff .mbsc-cal-day-diff{cursor:default}.mbsc-cal-hide-diff .mbsc-cal-day-diff .mbsc-cal-day-i{visibility:hidden}.mbsc-ltr .mbsc-cal-weeks .mbsc-cal-days{margin-left:1.625em}.mbsc-rtl .mbsc-cal-weeks .mbsc-cal-days{margin-right:1.625em}.mbsc-cal-week-nr{width:1.625em;text-align:center}.mbsc-cal-multi .mbsc-cal-hdr{display:block}.mbsc-cal-multi .mbsc-cal-btn-w{width:auto}.mbsc-cal-multi .mbsc-cal-days,.mbsc-cal-multi .mbsc-cal-slide{padding:0 .5em}.mbsc-fr-liq .mbsc-cal-c{display:block}.mbsc-calendar.mbsc-fr-liq.mbsc-fr-center .mbsc-fr-overlay{display:none}.mbsc-calendar.mbsc-fr-liq.mbsc-fr-center .mbsc-fr-w{border-radius:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right);padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.mbsc-cal-tabs-c{display:none}.mbsc-cal-tabs{display:table;width:100%;margin:0;padding:0;list-style:none}.mbsc-cal-tab{position:relative;width:33.33%;display:table-cell;overflow:hidden;cursor:pointer;text-align:center}.mbsc-cal-tabbed .mbsc-fr-c{position:relative}.mbsc-cal-tabbed .mbsc-w-p{transition:opacity .2s ease-in-out}.mbsc-cal-tabbed .mbsc-sc-whl-gr-c{position:absolute;z-index:1;top:0;left:0;right:0;max-width:none;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-box-align:center;align-items:center}.mbsc-cal-tabbed .mbsc-cal-c,.mbsc-cal-tabbed .mbsc-cal-tabs-c{display:block}.mbsc-cal-tabbed .mbsc-fr-pos .mbsc-sc-whl-gr-c{width:auto}.mbsc-cal-has-marks .mbsc-cal-day{padding-bottom:.25em}.mbsc-cal-marks{position:absolute;left:0;right:0;height:.375em;margin-top:-.125em;overflow:hidden;white-space:nowrap}.mbsc-cal-mark{display:inline-block;vertical-align:top;width:.25em;height:.25em;margin:.0625em;border-radius:.25em}.mbsc-cal-txt-w{position:absolute;z-index:2;pointer-events:none}.mbsc-ltr .mbsc-cal-txt{text-align:left}.mbsc-rtl .mbsc-cal-txt{text-align:right}.mbsc-cal-txt,.mbsc-cal-txt-ph,.mbsc-cal-txt-more{position:relative;height:1.6em;line-height:1.6em;overflow:hidden;padding:0 .3em;font-size:.625em;white-space:nowrap;text-overflow:ellipsis;margin:0 .1em .2em .1em}.mbsc-cal-day .mbsc-cal-txt.mbsc-cal-txt-only{color:inherit;text-align:center}.mbsc-no-touch .mbsc-cal-txt:before{content:\'\';position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;transition:background-color .2s}.mbsc-no-touch .mbsc-cal-txt-only:before{display:none}.mbsc-no-touch .mbsc-cal-txt.mbsc-hover:before{background-color:rgba(0,0,0,0.2)}.mbsc-no-touch .mbsc-cal-txt-more:hover{background-color:rgba(0,0,0,0.1)}.mbsc-cal-txt-more{text-align:left;transition:background-color .2s}.mbsc-cal .mbsc-cal-btn{position:relative;z-index:1}.mbsc-mobiscroll .mbsc-cal-c{padding:.5em}.mbsc-mobiscroll .mbsc-cal-btn-w{font-size:1.125em;line-height:2.222223em}.mbsc-mobiscroll .mbsc-cal .mbsc-cal-btn{width:2.666667em;height:2.666667em;line-height:2.666667em;padding:0;border-radius:2em;margin:-.222222em}.mbsc-mobiscroll .mbsc-cal-picker{border-top:1px solid transparent}.mbsc-mobiscroll .mbsc-cal-picker .mbsc-cal-cell-i{display:inline-block;height:2em;padding:0 1em;line-height:2em;border-radius:2em;white-space:nowrap}.mbsc-mobiscroll .mbsc-cal-days>div{font-size:.6875em}.mbsc-mobiscroll .mbsc-cal-day-date{display:inline-block;width:2.153847em;height:2.153847em;margin:.307692em 0;line-height:2.153847em;font-size:.8125em;border:2px solid transparent;border-radius:2em}.mbsc-mobiscroll .mbsc-cal-week-nr{width:2.363637em;font-size:.6875em}.mbsc-mobiscroll .mbsc-cal-tabs-c{line-height:1.875em;padding:.5em .5em 0 .5em;text-transform:uppercase}.mbsc-mobiscroll .mbsc-cal-tab{font-size:.7em;padding:0 1.2em}.mbsc-mobiscroll .mbsc-cal-picker{background:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-days>div{border-bottom:1px solid #4eccc4;color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-today{color:#4eccc4}.mbsc-mobiscroll.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-mobiscroll.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-mobiscroll .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#4eccc4;color:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-week-nr{color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-tab{border:1px solid #4eccc4;color:#454545}.mbsc-mobiscroll .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#4eccc4;color:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-mark{background:#454545}.mbsc-mobiscroll .mbsc-cal-txt{color:#f7f7f7;background:#454545}.mbsc-mobiscroll .mbsc-cal-icons{color:#454545}.mbsc-mobiscroll-dark .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-mobiscroll-dark .mbsc-fr-w{background:#263238;color:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-fr-hdr,.mbsc-mobiscroll-dark .mbsc-fr-btn{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-fr-btn.mbsc-active,.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-fr-arr{background:#263238}.mbsc-mobiscroll-dark .mbsc-sc-lbl{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-sc-whl-l{border-top:1px solid #4fccc4;border-bottom:1px solid #4fccc4}.mbsc-mobiscroll-dark .mbsc-sc-btn{color:#4fccc4;background:#263238}.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll-dark .mbsc-sc-itm:focus{background:rgba(247,247,247,0.1)}.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-mobiscroll-dark.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-mobiscroll-dark .mbsc-sc-btn.mbsc-active:before{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-picker{background:#263238}.mbsc-mobiscroll-dark .mbsc-cal-days>div{border-bottom:1px solid #4fccc4;color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-today{color:#4fccc4}.mbsc-mobiscroll-dark.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-mobiscroll-dark .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#4fccc4;color:#263238}.mbsc-mobiscroll-dark .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-week-nr{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-tab{border:1px solid #4fccc4;color:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#4fccc4;color:#263238}.mbsc-mobiscroll-dark .mbsc-cal-mark{background:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-cal-txt{color:#263238;background:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-cal-icons{color:#f7f7f7}.mbsc-voxco .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-voxco .mbsc-fr-w{background:#F7F7F7;color:#454545}.mbsc-voxco .mbsc-fr-hdr,.mbsc-voxco .mbsc-fr-btn{color:#0D77BD}.mbsc-voxco .mbsc-fr-btn.mbsc-active,.mbsc-voxco.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-fr-arr{background:#F7F7F7}.mbsc-voxco .mbsc-sc-lbl{color:#0D77BD}.mbsc-voxco .mbsc-sc-whl-l{border-top:1px solid #0D77BD;border-bottom:1px solid #0D77BD}.mbsc-voxco .mbsc-sc-btn{color:#0D77BD;background:#F7F7F7}.mbsc-voxco.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-voxco .mbsc-sc-itm:focus{background:rgba(69,69,69,0.1)}.mbsc-voxco.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-voxco.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-voxco .mbsc-sc-btn.mbsc-active:before{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#0D77BD}.mbsc-voxco .mbsc-cal-picker{background:#F7F7F7}.mbsc-voxco .mbsc-cal-days>div{border-bottom:1px solid #0D77BD;color:#0D77BD}.mbsc-voxco .mbsc-cal-today{color:#0D77BD}.mbsc-voxco.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-voxco.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-voxco .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#0D77BD;color:#F7F7F7}.mbsc-voxco .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#0D77BD}.mbsc-voxco .mbsc-cal-week-nr{color:#0D77BD}.mbsc-voxco .mbsc-cal-tab{border:1px solid #0D77BD;color:#454545}.mbsc-voxco .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#0D77BD;color:#F7F7F7}.mbsc-voxco .mbsc-cal-mark{background:#454545}.mbsc-voxco .mbsc-cal-txt{color:#F7F7F7;background:#454545}.mbsc-voxco .mbsc-cal-icons{color:#454545}\r\n',"",{version:3,sources:["webpack://./lib/mobiscroll/css/mobiscroll.javascript.min.css"],names:[],mappings:"AAAA,YAAY,4BAA4B,CAAC,YAAY,iBAAiB,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,kBAAkB,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,cAAc,YAAY,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,iCAAiC,eAAe,CAAC,2EAA2E,0BAA0B,CAAC,kBAAkB,CAAC,kEAAkE,oCAAoC,CAAC,4BAA4B,CAAC,4DAA4D,0CAA0C,CAAC,gCAAgC,CAAC,kCAAkC,CAAC,wBAAwB,CAAC,8DAA8D,yCAAyC,CAAC,gCAAgC,CAAC,iCAAiC,CAAC,wBAAwB,CAAC,+BAA+B,qCAAqC,CAAC,6BAA6B,CAAC,gCAAgC,sCAAsC,CAAC,8BAA8B,CAAC,6IAA6I,kCAAkC,CAAC,+BAA+B,CAAC,0BAA0B,CAAC,uBAAuB,CAAC,6HAA6H,4BAA4B,CAAC,oBAAoB,CAAC,+BAA+B,gCAAgC,CAAC,wBAAwB,CAAC,6BAA6B,SAAS,CAAC,qCAAqC,CAAC,gCAAgC,CAAC,0BAA0B,CAAC,6BAA6B,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,8BAA8B,SAAS,CAAC,sCAAsC,CAAC,gCAAgC,CAAC,8BAA8B,CAAC,wBAAwB,CAAC,sCAAsC,gCAAgC,CAAC,wBAAwB,CAAC,8BAA8B,SAAS,CAAC,sCAAsC,CAAC,0BAA0B,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,+BAA+B,SAAS,CAAC,uCAAuC,CAAC,+BAA+B,CAAC,+BAA+B,SAAS,CAAC,sCAAsC,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,gCAAgC,SAAS,CAAC,uCAAuC,CAAC,+BAA+B,CAAC,yCAAyC,SAAS,CAAC,sCAAsC,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,0CAA0C,SAAS,CAAC,uCAAuC,CAAC,+BAA+B,CAAC,uCAAuC,SAAS,CAAC,sCAAsC,CAAC,0BAA0B,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,wCAAwC,SAAS,CAAC,uCAAuC,CAAC,+BAA+B,CAAC,mCAAmC,sCAAsC,CAAC,0BAA0B,CAAC,8BAA8B,CAAC,kBAAkB,CAAC,oCAAoC,uCAAuC,CAAC,mCAAmC,CAAC,+BAA+B,CAAC,iCAAiC,sCAAsC,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,kCAAkC,uCAAuC,CAAC,kCAAkC,CAAC,+BAA+B,CAAC,8BAA8B,SAAS,CAAC,qCAAqC,CAAC,6BAA6B,CAAC,+BAA+B,SAAS,CAAC,sCAAsC,CAAC,8BAA8B,CAAC,mDAAmD,sDAAsD,CAAC,8CAA8C,CAAC,oDAAoD,wDAAwD,CAAC,gDAAgD,CAAC,iDAAiD,sDAAsD,CAAC,8CAA8C,CAAC,kDAAkD,wDAAwD,CAAC,gDAAgD,CAAC,0BAA0B,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,kCAAkC,KAAK,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,2BAA2B,KAAK,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,mCAAmC,KAAK,kBAAkB,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC,0BAA0B,KAAK,SAAS,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC,kCAAkC,KAAK,SAAS,CAAC,4BAA4B,CAAC,GAAG,SAAS,CAAC,0BAA0B,CAAC,CAAC,2BAA2B,KAAK,SAAS,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,4BAA4B,CAAC,CAAC,2BAA2B,KAAK,SAAS,CAAC,wBAAwB,CAAC,GAAG,SAAS,CAAC,oBAAoB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,gCAAgC,CAAC,GAAG,SAAS,CAAC,4BAA4B,CAAC,CAAC,4BAA4B,KAAK,SAAS,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,yBAAyB,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,iCAAiC,CAAC,CAAC,2BAA2B,KAAK,SAAS,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC,uBAAuB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,iCAAiC,CAAC,GAAG,SAAS,CAAC,+BAA+B,CAAC,CAAC,4BAA4B,KAAK,SAAS,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,yBAAyB,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,iCAAiC,CAAC,CAAC,2BAA2B,KAAK,SAAS,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC,uBAAuB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC,+BAA+B,CAAC,CAAC,4BAA4B,KAAK,SAAS,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,0BAA0B,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,kCAAkC,CAAC,CAAC,2BAA2B,KAAK,SAAS,CAAC,2BAA2B,CAAC,GAAG,SAAS,CAAC,uBAAuB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC,+BAA+B,CAAC,CAAC,4BAA4B,KAAK,SAAS,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,0BAA0B,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,kCAAkC,CAAC,CAAC,2BAA2B,KAAK,2BAA2B,CAAC,GAAG,uBAAuB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,mCAAmC,CAAC,GAAG,SAAS,CAAC,+BAA+B,CAAC,CAAC,4BAA4B,KAAK,uBAAuB,CAAC,GAAG,2BAA2B,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,mCAAmC,CAAC,CAAC,2BAA2B,KAAK,0BAA0B,CAAC,GAAG,uBAAuB,CAAC,CAAC,mCAAmC,KAAK,SAAS,CAAC,kCAAkC,CAAC,GAAG,SAAS,CAAC,+BAA+B,CAAC,CAAC,4BAA4B,KAAK,uBAAuB,CAAC,GAAG,0BAA0B,CAAC,CAAC,oCAAoC,KAAK,SAAS,CAAC,+BAA+B,CAAC,GAAG,SAAS,CAAC,kCAAkC,CAAC,CAAC,WAAW,8BAA8B,CAAC,4KAAwJ,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,gBAAgB,8BAA8B,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,kCAAkC,CAAC,iCAAiC,CAAC,qBAAqB,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,6BAA6B,eAAe,CAAC,6BAA6B,eAAe,CAAC,6BAA6B,eAAe,CAAC,8BAA8B,eAAe,CAAC,8BAA8B,eAAe,CAAC,2BAA2B,eAAe,CAAC,4BAA4B,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,0BAA0B,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,sBAAsB,eAAe,CAAC,2BAA2B,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,gCAAgC,eAAe,CAAC,8BAA8B,eAAe,CAAC,sBAAsB,eAAe,CAAC,4BAA4B,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,sBAAsB,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,6BAA6B,eAAe,CAAC,qBAAqB,eAAe,CAAC,0BAA0B,eAAe,CAAC,yBAAyB,eAAe,CAAC,+BAA+B,eAAe,CAAC,4BAA4B,eAAe,CAAC,gCAAgC,eAAe,CAAC,uBAAuB,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,iCAAiC,eAAe,CAAC,yCAAyC,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,yBAAyB,eAAe,CAAC,sBAAsB,eAAe,CAAC,wBAAwB,eAAe,CAAC,4CAA4C,eAAe,CAAC,+BAA+B,eAAe,CAAC,8BAA8B,eAAe,CAAC,sBAAsB,eAAe,CAAC,yBAAyB,eAAe,CAAC,+BAA+B,eAAe,CAAC,sBAAsB,eAAe,CAAC,0BAA0B,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,qBAAqB,eAAe,CAAC,qCAAqC,eAAe,CAAC,4CAA4C,eAAe,CAAC,gCAAgC,eAAe,CAAC,+BAA+B,eAAe,CAAC,oCAAoC,eAAe,CAAC,iCAAiC,eAAe,CAAC,8BAA8B,eAAe,CAAC,kCAAkC,eAAe,CAAC,gCAAgC,eAAe,CAAC,iCAAiC,eAAe,CAAC,kDAAkD,eAAe,CAAC,qCAAqC,eAAe,CAAC,iCAAiC,eAAe,CAAC,uCAAuC,eAAe,CAAC,kCAAkC,eAAe,CAAC,oCAAoC,eAAe,CAAC,wCAAwC,eAAe,CAAC,+BAA+B,eAAe,CAAC,kCAAkC,eAAe,CAAC,kCAAkC,eAAe,CAAC,8BAA8B,eAAe,CAAC,8BAA8B,eAAe,CAAC,8BAA8B,eAAe,CAAC,2BAA2B,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,yBAAyB,eAAe,CAAC,2BAA2B,eAAe,CAAC,wBAAwB,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,sBAAsB,eAAe,CAAC,sBAAsB,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,qBAAqB,eAAe,CAAC,sBAAsB,eAAe,CAAC,uBAAuB,eAAe,CAAC,wBAAwB,eAAe,CAAC,yBAAyB,eAAe,CAAC,uBAAuB,eAAe,CAAC,uBAAuB,eAAe,CAAC,2BAA2B,eAAe,CAAC,yBAAyB,eAAe,CAAC,qBAAqB,eAAe,CAAC,2BAA2B,eAAe,CAAC,4BAA4B,eAAe,CAAC,uBAAuB,eAAe,CAAC,0BAA0B,eAAe,CAAC,wBAAwB,eAAe,CAAC,uBAAuB,eAAe,CAAC,6BAA6B,eAAe,CAAC,+BAA+B,eAAe,CAAC,8BAA8B,eAAe,CAAC,4BAA4B,+BAA+B,CAAC,SAAS,mBAAmB,CAAC,aAAa,CAAC,kBAAkB,CAAC,kCAAkC,CAAC,yCAAyC,CAAC,6BAA6B,CAAC,eAAe,SAAS,CAAC,kBAAkB,iBAAiB,CAAC,+BAA+B,eAAe,CAAC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,iBAAiB,CAAC,gBAAgB,iBAAiB,CAAC,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,eAAe,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,eAAe,aAAa,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,UAAU,aAAa,CAAC,8CAA8C,qBAAqB,CAAC,oBAAoB,sBAAsB,CAAC,WAAW,eAAe,CAAC,cAAc,CAAC,eAAe,CAAC,iBAAiB,CAAC,sCAAsC,CAAC,yCAAyC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,6BAA6B,qBAAqB,CAAC,iBAAiB,CAAC,+FAA+F,iBAAiB,CAAC,eAAe,mBAAmB,CAAC,eAAe,CAAC,iBAAiB,SAAS,CAAC,0BAA0B,CAAC,4BAA4B,cAAc,CAAC,2DAA2D,UAAU,CAAC,cAAc,CAAC,mDAAmD,2CAA2C,CAAC,sCAAsC,CAAC,6CAA6C,CAAC,wCAAwC,CAAC,2BAA2B,+CAA+C,CAAC,0CAA0C,CAAC,4BAA4B,yCAAyC,CAAC,oCAAoC,CAAC,gBAAgB,iBAAiB,CAAC,mBAAmB,CAAC,SAAS,CAAC,+BAA+B,eAAe,CAAC,cAAc,CAAC,+CAA+C,iBAAiB,CAAC,+BAA+B,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,mCAAmC,QAAQ,CAAC,sCAAsC,WAAW,CAAC,+BAA+B,eAAe,CAAC,iBAAiB,CAAC,aAAa,CAAC,6BAA6B,aAAa,CAAC,aAAa,YAAY,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,gCAAgC,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,oCAAoC,cAAc,CAAC,iCAAiC,eAAe,CAAC,aAAa,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,aAAa,eAAe,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,aAAa,eAAe,CAAC,aAAa,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,eAAe,cAAc,CAAC,2BAA2B,kBAAkB,CAAC,kBAAkB,aAAa,CAAC,UAAU,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,iCAAiC,UAAU,CAAC,eAAe,kBAAkB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,SAAS,CAAC,mCAAmC,cAAc,CAAC,+DAA+D,eAAe,CAAC,eAAe,CAAC,2FAA2F,eAAe,CAAC,2FAA2F,gBAAgB,CAAC,mFAAmF,mBAAmB,CAAC,oBAAoB,CAAC,cAAc,CAAC,iBAAiB,CAAC,aAAa,CAAC,2FAA2F,iBAAiB,CAAC,mBAAmB,CAAC,+CAA+C,YAAY,CAAC,iCAAiC,iBAAiB,CAAC,4BAA4B,cAAc,CAAC,cAAc,CAAC,8BAA8B,iBAAiB,CAAC,mBAAmB,CAAC,eAAe,CAAC,wBAAwB,CAAC,cAAc,CAAC,eAAe,CAAC,mCAAmC,aAAa,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,6CAA6C,gBAAgB,CAAC,6CAA6C,eAAe,CAAC,gCAAgC,oBAAoB,CAAC,8BAA8B,YAAY,CAAC,iBAAiB,CAAC,aAAa,CAAC,wBAAwB,CAAC,sFAAsF,mBAAmB,CAAC,iDAAiD,kCAAkC,CAAC,+CAA+C,wCAAwC,CAAC,8DAA8D,mBAAmB,CAAC,kCAAkC,0BAA0B,CAAC,4BAA4B,kBAAkB,CAAC,aAAa,CAAC,4DAA4D,aAAa,CAAC,kHAAkH,+BAA+B,CAAC,8BAA8B,kBAAkB,CAAC,4BAA4B,+BAA+B,CAAC,sEAAsE,sBAAsB,CAAC,+BAA+B,qBAAqB,CAAC,kBAAkB,iBAAiB,CAAC,cAAc,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,eAAe,CAAC,uMAAuM,aAAa,CAAC,gBAAgB,aAAa,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,YAAY,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,sBAAsB,CAAC,eAAe,cAAc,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,4DAA4D,kBAAkB,CAAC,mBAAmB,CAAC,eAAe,CAAC,WAAW,CAAC,eAAe,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,YAAY,CAAC,eAAe,YAAY,CAAC,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,8BAA8B,aAAa,CAAC,aAAa,eAAe,CAAC,gCAAgC,CAAC,mCAAmC,CAAC,aAAa,CAAC,eAAe,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC,gCAAgC,CAAC,mCAAmC,CAAC,gBAAgB,iBAAiB,CAAC,aAAa,iBAAiB,CAAC,cAAc,CAAC,kBAAkB,CAAC,eAAe,CAAC,sBAAsB,CAAC,oCAAoC,UAAU,CAAC,aAAa,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,4BAA4B,aAAa,CAAC,aAAa,iBAAiB,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,iBAAiB,CAAC,6BAA6B,CAAC,oBAAoB,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,SAAS,CAAC,kBAAkB,QAAQ,CAAC,mBAAmB,KAAK,CAAC,mBAAmB,0BAA0B,CAAC,kBAAkB,CAAC,gCAAgC,gBAAgB,CAAC,kCAAkC,eAAe,CAAC,kEAAkE,2BAA2B,CAAC,gBAAgB,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,mCAAmC,CAAC,2BAA2B,CAAC,gBAAgB,iBAAiB,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,kCAAkC,CAAC,0BAA0B,CAAC,iBAAiB,YAAY,CAAC,gBAAgB,UAAU,CAAC,WAAW,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,2CAA2C,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,0FAA0F,SAAS,CAAC,0DAA0D,aAAa,CAAC,eAAe,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,aAAa,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,mBAAmB,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,qEAAqE,SAAS,CAAC,iCAAiC,kBAAkB,CAAC,gCAAgC,cAAc,CAAC,+CAA+C,kBAAkB,CAAC,8BAA8B,eAAe,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,4CAA4C,aAAa,CAAC,8BAA8B,UAAU,CAAC,eAAe,CAAC,qCAAqC,eAAe,CAAC,8BAA8B,eAAe,CAAC,iBAAiB,CAAC,iGAAiG,SAAS,CAAC,iDAAiD,oBAAoB,CAAC,4DAA4D,oBAAoB,CAAC,8CAA8C,uBAAuB,CAAC,wBAAwB,CAAC,gDAAgD,aAAa,CAAC,cAAc,CAAC,8CAA8C,aAAa,CAAC,gBAAgB,CAAC,iEAAiE,eAAe,CAAC,4EAA4E,aAAa,CAAC,sFAAsF,WAAW,CAAC,sFAAsF,YAAY,CAAC,8BAA8B,aAAa,CAAC,gCAAgC,4BAA4B,CAAC,+BAA+B,CAAC,8BAA8B,aAAa,CAAC,kBAAkB,CAAC,iGAAiG,6BAA6B,CAAC,yKAAyK,+BAA+B,CAAC,4DAA4D,aAAa,CAAC,8CAA8C,qBAAqB,CAAC,6BAA6B,iBAAiB,CAAC,sBAAsB,CAAC,4GAA4G,mBAAmB,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,YAAY,CAAC,iFAAiF,kBAAkB,CAAC,mBAAmB,CAAC,eAAe,CAAC,WAAW,CAAC,YAAY,iBAAiB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,gBAAgB,SAAS,CAAC,+BAA+B,QAAQ,CAAC,eAAe,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,cAAc,CAAC,4BAA4B,UAAU,CAAC,kBAAkB,CAAC,eAAe,mBAAmB,CAAC,iBAAiB,CAAC,mBAAmB,gBAAgB,CAAC,eAAe,iBAAiB,CAAC,mBAAmB,eAAe,CAAC,WAAW,CAAC,iBAAiB,UAAU,CAAC,WAAW,CAAC,gBAAgB,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,4BAA4B,iBAAiB,CAAC,gBAAgB,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,kBAAkB,CAAC,+BAA+B,CAAC,cAAc,iBAAiB,CAAC,eAAe,kBAAkB,CAAC,qBAAqB,CAAC,qBAAqB,SAAS,CAAC,iBAAiB,iBAAiB,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,mBAAmB,CAAC,gCAAgC,gBAAgB,CAAC,UAAU,CAAC,cAAc,CAAC,YAAY,iBAAiB,CAAC,SAAS,CAAC,cAAc,oBAAoB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,cAAc,CAAC,gBAAgB,iBAAiB,CAAC,WAAW,CAAC,qBAAqB,eAAe,CAAC,sCAAsC,UAAU,CAAC,2FAA2F,SAAS,CAAC,6BAA6B,kBAAkB,CAAC,gDAAgD,UAAU,CAAC,uCAAuC,cAAc,CAAC,uDAAuD,iBAAiB,CAAC,yCAAyC,mBAAmB,CAAC,yCAAyC,oBAAoB,CAAC,kBAAkB,aAAa,CAAC,iBAAiB,CAAC,8BAA8B,aAAa,CAAC,gCAAgC,UAAU,CAAC,+DAA+D,cAAc,CAAC,yBAAyB,aAAa,CAAC,2DAA2D,YAAY,CAAC,qDAAqD,eAAe,CAAC,2CAA2C,CAAC,sCAAsC,CAAC,6CAA6C,CAAC,wCAAwC,CAAC,+CAA+C,CAAC,0CAA0C,CAAC,iBAAiB,YAAY,CAAC,eAAe,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,eAAe,CAAC,cAAc,iBAAiB,CAAC,YAAY,CAAC,kBAAkB,CAAC,eAAe,CAAC,cAAc,CAAC,iBAAiB,CAAC,4BAA4B,iBAAiB,CAAC,2BAA2B,kCAAkC,CAAC,mCAAmC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,wBAAwB,CAAC,0BAA0B,CAAC,oBAAoB,CAAC,kBAAkB,CAAC,+DAA+D,aAAa,CAAC,gDAAgD,UAAU,CAAC,kCAAkC,oBAAoB,CAAC,gBAAgB,iBAAiB,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,eAAe,CAAC,kBAAkB,CAAC,eAAe,oBAAoB,CAAC,kBAAkB,CAAC,WAAW,CAAC,YAAY,CAAC,cAAc,CAAC,mBAAmB,CAAC,gBAAgB,iBAAiB,CAAC,SAAS,CAAC,mBAAmB,CAAC,wBAAwB,eAAe,CAAC,wBAAwB,gBAAgB,CAAC,kDAAkD,iBAAiB,CAAC,YAAY,CAAC,iBAAiB,CAAC,eAAe,CAAC,cAAc,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,uBAAuB,CAAC,8CAA8C,aAAa,CAAC,iBAAiB,CAAC,oCAAoC,UAAU,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,+BAA+B,CAAC,yCAAyC,YAAY,CAAC,+CAA+C,gCAAgC,CAAC,wCAAwC,gCAAgC,CAAC,mBAAmB,eAAe,CAAC,+BAA+B,CAAC,wBAAwB,iBAAiB,CAAC,SAAS,CAAC,6BAA6B,YAAY,CAAC,iCAAiC,iBAAiB,CAAC,sBAAsB,CAAC,yCAAyC,gBAAgB,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,SAAS,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,kCAAkC,gCAAgC,CAAC,mDAAmD,oBAAoB,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,oCAAoC,iBAAiB,CAAC,oCAAoC,oBAAoB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,4BAA4B,CAAC,iBAAiB,CAAC,mCAAmC,gBAAgB,CAAC,iBAAiB,CAAC,kCAAkC,mBAAmB,CAAC,wBAAwB,CAAC,wBAAwB,CAAC,+BAA+B,cAAc,CAAC,eAAe,CAAC,kCAAkC,kBAAkB,CAAC,oCAAoC,+BAA+B,CAAC,aAAa,CAAC,iCAAiC,aAAa,CAAC,gQAAgQ,+BAA+B,CAAC,sGAAsG,kBAAkB,CAAC,aAAa,CAAC,wEAAwE,oBAAoB,CAAC,mCAAmC,aAAa,CAAC,+BAA+B,wBAAwB,CAAC,aAAa,CAAC,wFAAwF,kBAAkB,CAAC,aAAa,CAAC,gCAAgC,kBAAkB,CAAC,+BAA+B,aAAa,CAAC,kBAAkB,CAAC,iCAAiC,aAAa,CAAC,uCAAuC,0BAA0B,CAAC,iCAAiC,kBAAkB,CAAC,aAAa,CAAC,sEAAsE,aAAa,CAAC,4HAA4H,+BAA+B,CAAC,mCAAmC,kBAAkB,CAAC,mCAAmC,aAAa,CAAC,qCAAqC,4BAA4B,CAAC,+BAA+B,CAAC,mCAAmC,aAAa,CAAC,kBAAkB,CAAC,2GAA2G,gCAAgC,CAAC,wLAAwL,+BAA+B,CAAC,iEAAiE,aAAa,CAAC,uCAAuC,kBAAkB,CAAC,yCAAyC,+BAA+B,CAAC,aAAa,CAAC,sCAAsC,aAAa,CAAC,+QAA+Q,+BAA+B,CAAC,2GAA2G,kBAAkB,CAAC,aAAa,CAAC,6EAA6E,oBAAoB,CAAC,wCAAwC,aAAa,CAAC,oCAAoC,wBAAwB,CAAC,aAAa,CAAC,6FAA6F,kBAAkB,CAAC,aAAa,CAAC,qCAAqC,kBAAkB,CAAC,oCAAoC,aAAa,CAAC,kBAAkB,CAAC,sCAAsC,aAAa,CAAC,6BAA6B,0BAA0B,CAAC,uBAAuB,kBAAkB,CAAC,aAAa,CAAC,kDAAkD,aAAa,CAAC,wGAAwG,+BAA+B,CAAC,yBAAyB,kBAAkB,CAAC,yBAAyB,aAAa,CAAC,2BAA2B,4BAA4B,CAAC,+BAA+B,CAAC,yBAAyB,aAAa,CAAC,kBAAkB,CAAC,uFAAuF,6BAA6B,CAAC,0JAA0J,+BAA+B,CAAC,uDAAuD,aAAa,CAAC,6BAA6B,kBAAkB,CAAC,+BAA+B,+BAA+B,CAAC,aAAa,CAAC,4BAA4B,aAAa,CAAC,iPAAiP,+BAA+B,CAAC,iGAAiG,kBAAkB,CAAC,aAAa,CAAC,mEAAmE,oBAAoB,CAAC,8BAA8B,aAAa,CAAC,0BAA0B,wBAAwB,CAAC,aAAa,CAAC,mFAAmF,kBAAkB,CAAC,aAAa,CAAC,2BAA2B,kBAAkB,CAAC,0BAA0B,aAAa,CAAC,kBAAkB,CAAC,4BAA4B,aAAa",sourcesContent:['.mbsc-cloak{visibility:hidden !important}.mbsc-empty{text-align:center;margin:3em;color:inherit}.mbsc-empty h3{margin:.666666em 0;padding:0;color:inherit;font-size:1.5em;font-weight:normal;font-family:inherit}.mbsc-empty p{margin:1em 0;padding:0;font-size:1em;line-height:1.5}.mbsc-anim-trans .mbsc-fr-scroll{overflow:hidden}.mbsc-anim-trans-flip .mbsc-fr-persp,.mbsc-anim-trans-swing .mbsc-fr-persp{-webkit-perspective:1000px;perspective:1000px}.mbsc-anim-trans .mbsc-fr-popup,.mbsc-anim-trans .mbsc-fr-overlay{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.mbsc-anim-in .mbsc-fr-popup,.mbsc-anim-in .mbsc-fr-overlay{-webkit-animation-timing-function:ease-out;-webkit-animation-duration:225ms;animation-timing-function:ease-out;animation-duration:225ms}.mbsc-anim-out .mbsc-fr-popup,.mbsc-anim-out .mbsc-fr-overlay{-webkit-animation-timing-function:ease-in;-webkit-animation-duration:195ms;animation-timing-function:ease-in;animation-duration:195ms}.mbsc-anim-in .mbsc-fr-overlay{-webkit-animation-name:mbsc-anim-f-in;animation-name:mbsc-anim-f-in}.mbsc-anim-out .mbsc-fr-overlay{-webkit-animation-name:mbsc-anim-f-out;animation-name:mbsc-anim-f-out}.mbsc-anim-flip,.mbsc-anim-swing,.mbsc-anim-slidehorizontal,.mbsc-anim-slidevertical,.mbsc-anim-slidedown,.mbsc-anim-slideup,.mbsc-anim-fade{-webkit-backface-visibility:hidden;-webkit-transform:translateX(0);backface-visibility:hidden;transform:translateX(0)}.mbsc-anim-swing,.mbsc-anim-slidehorizontal,.mbsc-anim-slidevertical,.mbsc-anim-slidedown,.mbsc-anim-slideup,.mbsc-anim-fade{-webkit-transform-origin:0 0;transform-origin:0 0}.mbsc-anim-flip,.mbsc-anim-pop{-webkit-transform-origin:50% 50%;transform-origin:50% 50%}.mbsc-anim-in .mbsc-anim-pop{opacity:1;-webkit-animation-name:mbsc-anim-p-in;-webkit-animation-duration:100ms;-webkit-transform:scale(1);animation-name:mbsc-anim-p-in;animation-duration:100ms;transform:scale(1)}.mbsc-anim-out .mbsc-anim-pop{opacity:0;-webkit-animation-name:mbsc-anim-p-out;-webkit-animation-duration:150ms;animation-name:mbsc-anim-p-out;animation-duration:150ms}.mbsc-anim-trans-pop .mbsc-fr-overlay{-webkit-animation-duration:150ms;animation-duration:150ms}.mbsc-anim-in .mbsc-anim-flip{opacity:1;-webkit-animation-name:mbsc-anim-fl-in;-webkit-transform:scale(1);animation-name:mbsc-anim-fl-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-flip{opacity:0;-webkit-animation-name:mbsc-anim-fl-out;animation-name:mbsc-anim-fl-out}.mbsc-anim-in .mbsc-anim-swing{opacity:1;-webkit-animation-name:mbsc-anim-sw-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-sw-in}.mbsc-anim-out .mbsc-anim-swing{opacity:0;-webkit-animation-name:mbsc-anim-sw-out;animation-name:mbsc-anim-sw-out}.mbsc-anim-in .mbsc-anim-slidehorizontal{opacity:1;-webkit-animation-name:mbsc-anim-sh-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-sh-in}.mbsc-anim-out .mbsc-anim-slidehorizontal{opacity:0;-webkit-animation-name:mbsc-anim-sh-out;animation-name:mbsc-anim-sh-out}.mbsc-anim-in .mbsc-anim-slidevertical{opacity:1;-webkit-animation-name:mbsc-anim-sv-in;-webkit-transform:scale(1);animation-name:mbsc-anim-sv-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-slidevertical{opacity:0;-webkit-animation-name:mbsc-anim-sv-out;animation-name:mbsc-anim-sv-out}.mbsc-anim-in .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-in;-webkit-transform:scale(1);animation-name:mbsc-anim-sd-in;transform:scale(1)}.mbsc-anim-out .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-out;-webkit-transform:translateY(-100%);animation-name:mbsc-anim-sd-out}.mbsc-anim-in .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-in;-webkit-transform:scale(1);transform:scale(1);animation-name:mbsc-anim-su-in}.mbsc-anim-out .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-out;-webkit-transform:translateY(100%);animation-name:mbsc-anim-su-out}.mbsc-anim-in .mbsc-anim-fade{opacity:1;-webkit-animation-name:mbsc-anim-f-in;animation-name:mbsc-anim-f-in}.mbsc-anim-out .mbsc-anim-fade{opacity:0;-webkit-animation-name:mbsc-anim-f-out;animation-name:mbsc-anim-f-out}.mbsc-fr-pointer.mbsc-anim-in .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-in, mbsc-anim-f-in;animation-name:mbsc-anim-sd-in, mbsc-anim-f-in}.mbsc-fr-pointer.mbsc-anim-out .mbsc-anim-slidedown{-webkit-animation-name:mbsc-anim-sd-out, mbsc-anim-f-out;animation-name:mbsc-anim-sd-out, mbsc-anim-f-out}.mbsc-fr-pointer.mbsc-anim-in .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-in, mbsc-anim-f-in;animation-name:mbsc-anim-su-in, mbsc-anim-f-in}.mbsc-fr-pointer.mbsc-anim-out .mbsc-anim-slideup{-webkit-animation-name:mbsc-anim-su-out, mbsc-anim-f-out;animation-name:mbsc-anim-su-out, mbsc-anim-f-out}@keyframes mbsc-anim-f-in{from{opacity:0}to{opacity:1}}@-webkit-keyframes mbsc-anim-f-in{from{opacity:0}to{opacity:1}}@keyframes mbsc-anim-f-out{from{visibility:visible;opacity:1}to{opacity:0}}@-webkit-keyframes mbsc-anim-f-out{from{visibility:visible;opacity:1}to{opacity:0}}@keyframes mbsc-anim-p-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}@-webkit-keyframes mbsc-anim-p-in{from{opacity:0;-webkit-transform:scale(0.8)}to{opacity:1;-webkit-transform:scale(1)}}@keyframes mbsc-anim-p-out{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0.8)}}@-webkit-keyframes mbsc-anim-p-out{from{opacity:1;-webkit-transform:scale(1)}to{opacity:0;-webkit-transform:scale(0.8)}}@keyframes mbsc-anim-fl-in{from{opacity:0;transform:rotateY(90deg)}to{opacity:1;transform:rotateY(0)}}@-webkit-keyframes mbsc-anim-fl-in{from{opacity:0;-webkit-transform:rotateY(90deg)}to{opacity:1;-webkit-transform:rotateY(0)}}@keyframes mbsc-anim-fl-out{from{opacity:1;transform:rotateY(0deg)}to{opacity:0;transform:rotateY(-90deg)}}@-webkit-keyframes mbsc-anim-fl-out{from{opacity:1;-webkit-transform:rotateY(0deg)}to{opacity:0;-webkit-transform:rotateY(-90deg)}}@keyframes mbsc-anim-sw-in{from{opacity:0;transform:rotateY(-90deg)}to{opacity:1;transform:rotateY(0deg)}}@-webkit-keyframes mbsc-anim-sw-in{from{opacity:0;-webkit-transform:rotateY(-90deg)}to{opacity:1;-webkit-transform:rotateY(0deg)}}@keyframes mbsc-anim-sw-out{from{opacity:1;transform:rotateY(0deg)}to{opacity:0;transform:rotateY(-90deg)}}@-webkit-keyframes mbsc-anim-sw-out{from{opacity:1;-webkit-transform:rotateY(0deg)}to{opacity:0;-webkit-transform:rotateY(-90deg)}}@keyframes mbsc-anim-sh-in{from{opacity:0;transform:translateX(-100%)}to{opacity:1;transform:translateX(0)}}@-webkit-keyframes mbsc-anim-sh-in{from{opacity:0;-webkit-transform:translateX(-100%)}to{opacity:1;-webkit-transform:translateX(0)}}@keyframes mbsc-anim-sh-out{from{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(100%)}}@-webkit-keyframes mbsc-anim-sh-out{from{opacity:1;-webkit-transform:translateX(0)}to{opacity:0;-webkit-transform:translateX(100%)}}@keyframes mbsc-anim-sv-in{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes mbsc-anim-sv-in{from{opacity:0;-webkit-transform:translateY(-100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-sv-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@-webkit-keyframes mbsc-anim-sv-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%)}}@keyframes mbsc-anim-sd-in{from{transform:translateY(-100%)}to{transform:translateY(0)}}@-webkit-keyframes mbsc-anim-sd-in{from{opacity:1;-webkit-transform:translateY(-100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-sd-out{from{transform:translateY(0)}to{transform:translateY(-100%)}}@-webkit-keyframes mbsc-anim-sd-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:1;-webkit-transform:translateY(-100%)}}@keyframes mbsc-anim-su-in{from{transform:translateY(100%)}to{transform:translateY(0)}}@-webkit-keyframes mbsc-anim-su-in{from{opacity:1;-webkit-transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0)}}@keyframes mbsc-anim-su-out{from{transform:translateY(0)}to{transform:translateY(100%)}}@-webkit-keyframes mbsc-anim-su-out{from{opacity:1;-webkit-transform:translateY(0)}to{opacity:1;-webkit-transform:translateY(100%)}}@font-face{font-family:\'icons_mobiscroll\';src:url("icons_mobiscroll.woff?gniomg") format("woff"),url("icons_mobiscroll.woff") format("woff"),url("icons_mobiscroll.ttf?gniomg") format("truetype");font-weight:normal;font-style:normal}.mbsc-ic:before{font-family:\'icons_mobiscroll\';speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.mbsc-ic-aid::before{content:"\\ea01"}.mbsc-ic-airplane::before{content:"\\ea02"}.mbsc-ic-alarm2::before{content:"\\ea03"}.mbsc-ic-arrow-down5::before{content:"\\ea04"}.mbsc-ic-arrow-left5::before{content:"\\ea05"}.mbsc-ic-arrow-left6::before{content:"\\ea06"}.mbsc-ic-arrow-right5::before{content:"\\ea07"}.mbsc-ic-arrow-right6::before{content:"\\ea08"}.mbsc-ic-arrow-up5::before{content:"\\ea09"}.mbsc-ic-attachment::before{content:"\\ea0a"}.mbsc-ic-bars::before{content:"\\ea0b"}.mbsc-ic-book::before{content:"\\ea0c"}.mbsc-ic-bubble::before{content:"\\ea0d"}.mbsc-ic-bubbles::before{content:"\\ea0e"}.mbsc-ic-bullhorn::before{content:"\\ea0f"}.mbsc-ic-calendar::before{content:"\\ea10"}.mbsc-ic-camera::before{content:"\\ea11"}.mbsc-ic-cart::before{content:"\\ea12"}.mbsc-ic-checkmark::before{content:"\\ea13"}.mbsc-ic-clock::before{content:"\\ea14"}.mbsc-ic-close::before{content:"\\ea15"}.mbsc-ic-cloud-download::before{content:"\\ea16"}.mbsc-ic-cloud-upload::before{content:"\\ea17"}.mbsc-ic-cogs::before{content:"\\ea18"}.mbsc-ic-connection::before{content:"\\ea19"}.mbsc-ic-copy2::before{content:"\\ea1a"}.mbsc-ic-copy3::before{content:"\\ea1b"}.mbsc-ic-credit::before{content:"\\ea1c"}.mbsc-ic-disk::before{content:"\\ea1d"}.mbsc-ic-download::before{content:"\\ea1e"}.mbsc-ic-drawer::before{content:"\\ea1f"}.mbsc-ic-droplet::before{content:"\\ea20"}.mbsc-ic-earth::before{content:"\\ea21"}.mbsc-ic-eye-blocked::before{content:"\\ea22"}.mbsc-ic-eye::before{content:"\\ea23"}.mbsc-ic-fa-globe::before{content:"\\ea24"}.mbsc-ic-fa-leaf::before{content:"\\ea25"}.mbsc-ic-fa-mail-reply::before{content:"\\ea26"}.mbsc-ic-fa-retweet::before{content:"\\ea27"}.mbsc-ic-fa-rotate-left::before{content:"\\ea28"}.mbsc-ic-file4::before{content:"\\ea29"}.mbsc-ic-film::before{content:"\\ea2a"}.mbsc-ic-flag::before{content:"\\ea2b"}.mbsc-ic-folder::before{content:"\\ea2c"}.mbsc-ic-forward::before{content:"\\ea2d"}.mbsc-ic-foundation-mail::before{content:"\\ea2e"}.mbsc-ic-foundation-minus-circle::before{content:"\\ea2f"}.mbsc-ic-globe::before{content:"\\ea30"}.mbsc-ic-heart::before{content:"\\ea31"}.mbsc-ic-history::before{content:"\\ea32"}.mbsc-ic-home::before{content:"\\ea33"}.mbsc-ic-image2::before{content:"\\ea34"}.mbsc-ic-ion-android-system-windows::before{content:"\\ea35"}.mbsc-ic-ion-bluetooth::before{content:"\\ea36"}.mbsc-ic-ion-navigate::before{content:"\\ea37"}.mbsc-ic-key2::before{content:"\\ea38"}.mbsc-ic-library::before{content:"\\ea39"}.mbsc-ic-line-settings::before{content:"\\ea3a"}.mbsc-ic-link::before{content:"\\ea3b"}.mbsc-ic-location::before{content:"\\ea3c"}.mbsc-ic-lock2::before{content:"\\ea3d"}.mbsc-ic-loop2::before{content:"\\ea3e"}.mbsc-ic-map::before{content:"\\ea3f"}.mbsc-ic-material-arrow-back::before{content:"\\ea40"}.mbsc-ic-material-brightness-medium::before{content:"\\ea41"}.mbsc-ic-material-check::before{content:"\\ea42"}.mbsc-ic-material-crop::before{content:"\\ea43"}.mbsc-ic-material-equalizer::before{content:"\\ea44"}.mbsc-ic-material-filter::before{content:"\\ea45"}.mbsc-ic-material-iso::before{content:"\\ea46"}.mbsc-ic-material-palette::before{content:"\\ea47"}.mbsc-ic-material-pause::before{content:"\\ea48"}.mbsc-ic-material-people::before{content:"\\ea49"}.mbsc-ic-material-photo-size-select-large::before{content:"\\ea4a"}.mbsc-ic-material-play-arrow::before{content:"\\ea4b"}.mbsc-ic-material-repeat::before{content:"\\ea4c"}.mbsc-ic-material-rotate-right::before{content:"\\ea4d"}.mbsc-ic-material-shuffle::before{content:"\\ea4e"}.mbsc-ic-material-skip-next::before{content:"\\ea4f"}.mbsc-ic-material-skip-previous::before{content:"\\ea50"}.mbsc-ic-material-stop::before{content:"\\ea51"}.mbsc-ic-material-texture::before{content:"\\ea52"}.mbsc-ic-material-wb-auto::before{content:"\\ea53"}.mbsc-ic-meteo-cloud2::before{content:"\\ea54"}.mbsc-ic-meteo-cloud3::before{content:"\\ea55"}.mbsc-ic-meteo-cloudy::before{content:"\\ea56"}.mbsc-ic-meteo-sun::before{content:"\\ea57"}.mbsc-ic-minus::before{content:"\\ea58"}.mbsc-ic-mobile::before{content:"\\ea59"}.mbsc-ic-music::before{content:"\\ea5a"}.mbsc-ic-neutral::before{content:"\\ea5b"}.mbsc-ic-newspaper::before{content:"\\ea5c"}.mbsc-ic-office::before{content:"\\ea5d"}.mbsc-ic-pencil::before{content:"\\ea5e"}.mbsc-ic-phone::before{content:"\\ea5f"}.mbsc-ic-play::before{content:"\\ea60"}.mbsc-ic-plus::before{content:"\\ea61"}.mbsc-ic-redo2::before{content:"\\ea62"}.mbsc-ic-remove::before{content:"\\ea63"}.mbsc-ic-reply::before{content:"\\ea64"}.mbsc-ic-sad::before{content:"\\ea65"}.mbsc-ic-sad2::before{content:"\\ea66"}.mbsc-ic-share::before{content:"\\ea67"}.mbsc-ic-smiley::before{content:"\\ea68"}.mbsc-ic-smiley2::before{content:"\\ea69"}.mbsc-ic-stack::before{content:"\\ea6a"}.mbsc-ic-star3::before{content:"\\ea6b"}.mbsc-ic-stopwatch::before{content:"\\ea6c"}.mbsc-ic-support::before{content:"\\ea6d"}.mbsc-ic-tag::before{content:"\\ea6e"}.mbsc-ic-thumbs-up::before{content:"\\ea6f"}.mbsc-ic-thumbs-up2::before{content:"\\ea70"}.mbsc-ic-undo2::before{content:"\\ea71"}.mbsc-ic-unlocked::before{content:"\\ea72"}.mbsc-ic-upload::before{content:"\\ea73"}.mbsc-ic-user4::before{content:"\\ea74"}.mbsc-ic-volume-high::before{content:"\\ea75"}.mbsc-ic-volume-medium::before{content:"\\ea76"}.mbsc-ic-volume-mute2::before{content:"\\ea77"}.mbsc-fr-w,.mbsc-fr-overlay{-webkit-transform:translateZ(0)}.mbsc-fr{pointer-events:none;z-index:99998;font-weight:normal;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-text-size-adjust:100%}.mbsc-fr-focus{outline:0}.mbsc-fr-lock-ctx{position:relative}.mbsc-fr-lock.mbsc-fr-lock-ios{overflow:hidden;position:absolute;top:0;bottom:0;left:0;right:0;height:auto}.mbsc-fr-pos{visibility:hidden}.mbsc-fr-scroll{position:relative;z-index:2;width:100%;height:100%;-ms-touch-action:pan-y;touch-action:pan-y;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}.mbsc-fr-popup{max-width:98%;position:absolute;z-index:2;top:0;left:0;font-size:12px;text-shadow:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-touch-action:pan-y;touch-action:pan-y}.mbsc-rtl{direction:rtl}.mbsc-fr-popup,.mbsc-fr-btn-cont,.mbsc-fr-arr{box-sizing:border-box}.mbsc-fr .mbsc-fr-w{box-sizing:content-box}.mbsc-fr-w{min-width:256px;max-width:100%;overflow:hidden;text-align:center;font-family:arial, verdana, sans-serif}.mbsc-fr,.mbsc-fr-persp,.mbsc-fr-overlay{position:fixed;top:0;bottom:0;left:0;right:0}.mbsc-fr-lock .mbsc-fr-persp{-ms-touch-action:none;touch-action:none}.mbsc-fr-lock-ctx>.mbsc-fr,.mbsc-fr-lock-ctx .mbsc-fr-persp,.mbsc-fr-lock-ctx .mbsc-fr-overlay{position:absolute}.mbsc-fr-persp{pointer-events:auto;overflow:hidden}.mbsc-fr-overlay{z-index:1;background:rgba(0,0,0,0.7)}.mbsc-fr-liq .mbsc-fr-popup{max-width:100%}.mbsc-fr-top .mbsc-fr-popup,.mbsc-fr-bottom .mbsc-fr-popup{width:100%;max-width:100%}.mbsc-fr-top .mbsc-fr-w,.mbsc-fr-bottom .mbsc-fr-w{padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.mbsc-fr-bottom .mbsc-fr-w{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.mbsc-fr-top .mbsc-fr-popup{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.mbsc-fr-inline{position:relative;pointer-events:auto;z-index:0}.mbsc-fr-inline .mbsc-fr-popup{position:static;max-width:100%}.mbsc-fr-bubble,.mbsc-fr-bubble .mbsc-fr-persp{position:absolute}.mbsc-fr-bubble .mbsc-fr-arr-w{position:absolute;z-index:1;left:0;width:100%;overflow:hidden}.mbsc-fr-bubble-top .mbsc-fr-arr-w{top:100%}.mbsc-fr-bubble-bottom .mbsc-fr-arr-w{bottom:100%}.mbsc-fr-bubble .mbsc-fr-arr-i{margin:0 1.75em;position:relative;direction:ltr}.mbsc-fr-bubble .mbsc-fr-arr{display:block}.mbsc-fr-arr{display:none;position:relative;left:0;width:2em;height:2em;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);margin-left:-1em}.mbsc-fr-bubble-bottom .mbsc-fr-arr{top:1.333334em}.mbsc-fr-bubble-top .mbsc-fr-arr{top:-1.333334em}.mbsc-fr-hdn{width:0;height:0;margin:0;padding:0;border:0;overflow:hidden}.mbsc-fr-hdr{overflow:hidden;text-overflow:ellipsis;text-align:center}.mbsc-fr-btn{overflow:hidden;display:block;text-decoration:none;white-space:nowrap;text-overflow:ellipsis;vertical-align:top}.mbsc-fr-btn-e{cursor:pointer}.mbsc-fr-btn.mbsc-disabled{cursor:not-allowed}.mbsc-fr-btn-cont{display:table;width:100%;text-align:center;white-space:normal}.mbsc-fr-btn-cont .mbsc-disabled{opacity:.3}.mbsc-fr-btn-w{vertical-align:top;display:table-cell;position:relative;z-index:5}.mbsc-fr-btn-w .mbsc-fr-btn:before{padding:.375em}.mbsc-fr-pointer.mbsc-fr .mbsc-fr-w .mbsc-fr-inline .mbsc-fr-w{box-shadow:none;border-radius:0}.mbsc-fr-pointer .mbsc-ltr .mbsc-fr-w,.mbsc-fr-pointer .mbsc-ltr .mbsc-sc-whl .mbsc-sel-gr{text-align:left}.mbsc-fr-pointer .mbsc-rtl .mbsc-fr-w,.mbsc-fr-pointer .mbsc-rtl .mbsc-sc-whl .mbsc-sel-gr{text-align:right}.mbsc-fr-pointer.mbsc-fr-top .mbsc-fr-w,.mbsc-fr-pointer.mbsc-fr-bottom .mbsc-fr-w{pointer-events:auto;display:inline-block;margin-top:3em;margin-bottom:3em;max-width:98%}.mbsc-fr-pointer.mbsc-fr-top .mbsc-fr-popup,.mbsc-fr-pointer.mbsc-fr-bottom .mbsc-fr-popup{text-align:center;pointer-events:none}.mbsc-fr-pointer.mbsc-fr-bubble .mbsc-fr-arr-w{display:none}.mbsc-fr-pointer .mbsc-sel-empty{text-align:center}.mbsc-mobiscroll .mbsc-fr-w{min-width:16em;font-size:16px}.mbsc-mobiscroll .mbsc-fr-hdr{padding:0 .6666em;padding-top:.6666em;font-size:.75em;text-transform:uppercase;min-height:2em;line-height:2em}.mbsc-mobiscroll .mbsc-fr-btn-cont{display:block;overflow:hidden;text-align:right;padding:0 .5em .5em .5em}.mbsc-mobiscroll .mbsc-ltr .mbsc-fr-btn-cont{text-align:right}.mbsc-mobiscroll .mbsc-rtl .mbsc-fr-btn-cont{text-align:left}.mbsc-mobiscroll .mbsc-fr-btn-w{display:inline-block}.mbsc-mobiscroll .mbsc-fr-btn{height:2.5em;line-height:2.5em;padding:0 1em;text-transform:uppercase}.mbsc-mobiscroll.mbsc-fr-center .mbsc-fr-w,.mbsc-mobiscroll.mbsc-fr-bubble .mbsc-fr-w{border-radius:.25em}.mbsc-mobiscroll.mbsc-fr-no-overlay .mbsc-fr-arr{box-shadow:0 0 1em rgba(0,0,0,0.2)}.mbsc-mobiscroll.mbsc-fr-no-overlay .mbsc-fr-w{box-shadow:0 0.125em 1em rgba(0,0,0,0.3)}.mbsc-mobiscroll.mbsc-fr-no-overlay.mbsc-fr-bubble .mbsc-fr-w{border-radius:.25em}.mbsc-mobiscroll .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-mobiscroll .mbsc-fr-w{background:#f7f7f7;color:#454545}.mbsc-mobiscroll .mbsc-fr-hdr,.mbsc-mobiscroll .mbsc-fr-btn{color:#4eccc4}.mbsc-mobiscroll .mbsc-fr-btn.mbsc-active,.mbsc-mobiscroll.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-fr-arr{background:#f7f7f7}.mbsc-sc-whl-o,.mbsc-sc-btn{-webkit-transform:translateZ(0)}.mbsc-sc .mbsc-sc-whl-c,.mbsc-sc .mbsc-sc-whl-l,.mbsc-sc .mbsc-sc-whl{box-sizing:content-box}.mbsc-sc-whl-gr-c,.mbsc-sc-itm{box-sizing:border-box}.mbsc-sc-whl-gr-c{position:relative;max-width:100%;vertical-align:middle;display:inline-block;overflow:hidden}.mbsc-fr-bottom .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-top .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-inline .mbsc-sc-whl-gr-c:first-child:last-child,.mbsc-fr-liq .mbsc-sc-whl-gr-c{display:block}.mbsc-sc-whl-gr{margin:0 auto;position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.mbsc-sc-whl-w{max-width:100%;position:relative;-ms-touch-action:none;touch-action:none}.mbsc-fr-pointer .mbsc-sc-whl-w,.mbsc-fr-liq .mbsc-sc-whl-w{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto}.mbsc-sc-whl-o{position:absolute;z-index:2;top:0;right:0;bottom:0;left:0;pointer-events:none;display:none}.mbsc-sc-whl-l{display:none;position:absolute;top:50%;left:0;right:0;pointer-events:none}.mbsc-sc-whl-w .mbsc-sc-whl-l{display:block}.mbsc-sc-whl{overflow:hidden;border-top:1px solid transparent;border-bottom:1px solid transparent;margin:-1px 0}.mbsc-sc-whl-c{position:relative;z-index:1;top:50%;border-top:1px solid transparent;border-bottom:1px solid transparent}.mbsc-sc-whl-sc{position:relative}.mbsc-sc-itm{position:relative;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mbsc-sc-itm-inv,.mbsc-sc-itm-inv-h{opacity:.3}.mbsc-sc-lbl{position:absolute;left:0;right:0;bottom:100%;display:none}.mbsc-sc-lbl-v .mbsc-sc-lbl{display:block}.mbsc-sc-btn{position:absolute;z-index:2;left:0;right:0;cursor:pointer;opacity:1;text-align:center;transition:opacity .2s linear}.mbsc-sc-btn:before{position:absolute;top:0;right:0;left:0}.mbsc-sc-whl-a .mbsc-sc-btn{opacity:0}.mbsc-sc-btn-plus{bottom:0}.mbsc-sc-btn-minus{top:0}.mbsc-sc-whl-gr-3d{-webkit-perspective:1200px;perspective:1200px}.mbsc-sc-whl-gr-3d .mbsc-sc-whl{overflow:visible}.mbsc-sc-whl-gr-3d .mbsc-sc-whl-c{overflow:hidden}.mbsc-sc-whl-gr-3d .mbsc-sc-whl-w,.mbsc-sc-whl-gr-3d .mbsc-sc-whl{transform-style:preserve-3d}.mbsc-sc-whl-3d{position:absolute;top:50%;left:0;right:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.mbsc-sc-itm-3d{position:absolute;width:100%;top:0;left:0;cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden}.mbsc-sc-itm-del{display:none}.mbsc-sc-itm-ml{width:100%;height:auto;display:inline-block;vertical-align:middle;white-space:normal}.mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{position:absolute;top:0;left:0;width:1em;text-align:center}.mbsc-fr-pointer .mbsc-fr-w .mbsc-sc-whl-gr-c,.mbsc-fr-pointer .mbsc-fr-w .mbsc-sc-whl-gr{padding:0}.mbsc-fr-pointer .mbsc-sc-whl-gr-c:first-child:last-child{display:block}.mbsc-sc-bar-c{position:absolute;z-index:4;top:0;bottom:0;right:0;width:10px;opacity:0;background:rgba(0,0,0,0.05);transform:translateZ(0);transition:opacity .2s}.mbsc-sc-bar{position:absolute;right:0;top:0;width:10px;height:100%}.mbsc-sc-bar:after{content:\'\';position:absolute;top:2px;right:2px;bottom:2px;left:2px;background:rgba(0,0,0,0.5);border-radius:3px}.mbsc-sc-whl-w:hover .mbsc-sc-bar-c,.mbsc-sc-whl-anim .mbsc-sc-bar-c{opacity:1}.mbsc-mobiscroll .mbsc-sc-whl-gr{padding:.5em .25em}.mbsc-mobiscroll .mbsc-sc-whl-w{margin:0 .25em}.mbsc-mobiscroll .mbsc-sc-lbl-v .mbsc-sc-whl-w{margin-top:1.875em}.mbsc-mobiscroll .mbsc-sc-lbl{font-size:.75em;line-height:2.5em;text-transform:uppercase}.mbsc-mobiscroll .mbsc-sc-cp .mbsc-sc-whl-w{padding:2em 0}.mbsc-mobiscroll .mbsc-sc-btn{height:2em;line-height:2em}.mbsc-mobiscroll .mbsc-sc-btn:before{font-size:1.5em}.mbsc-mobiscroll .mbsc-sc-itm{padding:0 .25em;font-size:1.375em}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll .mbsc-sc-itm:focus{outline:0}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm{padding:0 1.818181em}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{font-size:1.818181em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-lbl{padding-left:1.666667em;padding-right:1.666667em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-w{margin-left:0;margin-right:0}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-itm{font-size:1em;padding:0 1.25em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-multi .mbsc-sc-itm{padding:0 2.5em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{font-size:2em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-ltr .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{left:.125em}.mbsc-mobiscroll.mbsc-fr-pointer .mbsc-rtl .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{right:.125em}.mbsc-mobiscroll .mbsc-sc-lbl{color:#4eccc4}.mbsc-mobiscroll .mbsc-sc-whl-l{border-top:1px solid #4eccc4;border-bottom:1px solid #4eccc4}.mbsc-mobiscroll .mbsc-sc-btn{color:#4eccc4;background:#f7f7f7}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll .mbsc-sc-itm:focus{background:rgba(69,69,69,0.1)}.mbsc-mobiscroll.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-mobiscroll.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-mobiscroll .mbsc-sc-btn.mbsc-active:before{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#4eccc4}.mbsc-cal-slide,.mbsc-cal-day,.mbsc-cal-day-i{box-sizing:border-box}.mbsc-cal .mbsc-cal-day-date{text-align:center;box-sizing:content-box}.mbsc-cal-hdr,.mbsc-cal-btn-w,.mbsc-cal-days-c,.mbsc-cal-days,.mbsc-cal-tabbed .mbsc-fr-c .mbsc-sc-whl-gr-c{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.mbsc-cal-btn-w,.mbsc-cal-month,.mbsc-cal-year,.mbsc-cal-days,.mbsc-cal-days>div{-webkit-box-flex:1;-webkit-flex:1 auto;-ms-flex:1 auto;flex:1 auto}.mbsc-cal-c{position:relative;display:inline-block;vertical-align:middle;text-align:center}.mbsc-cal-btn-w{width:50%}.mbsc-cal-month,.mbsc-cal-year{width:1%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.mbsc-cal-btn.mbsc-disabled{opacity:.3;cursor:not-allowed}.mbsc-cal-days{line-height:1.875em;text-align:center}.mbsc-cal-days>div{width:14.285715%}.mbsc-cal-body{position:relative}.mbsc-cal-scroll-c{overflow:hidden;height:100%}.mbsc-cal-scroll{width:100%;height:100%}.mbsc-cal-slide{position:absolute;z-index:0;top:0;left:0;width:100%;height:100%}.mbsc-cal-slide:first-child{position:relative}.mbsc-cal-table{display:table;width:100%;height:100%;table-layout:fixed;-webkit-transform:translateZ(0)}.mbsc-cal-row{display:table-row}.mbsc-cal-cell{display:table-cell;vertical-align:middle}.mbsc-cal-cell:focus{outline:0}.mbsc-cal-picker{position:absolute;top:0;right:0;bottom:0;left:0;padding:.9375em 0;transition:all .2s ease-in-out;will-change:opacity}.mbsc-cal-picker .mbsc-cal-cell{width:33.333333%;height:25%;cursor:pointer}.mbsc-cal-h{visibility:hidden;opacity:0}.mbsc-cal-day{max-width:14.285715%;height:16.666667%;position:relative;text-align:center;cursor:pointer}.mbsc-cal-day-i{position:relative;height:100%}.mbsc-cal-day-markup{overflow:hidden}.mbsc-cal-day-diff .mbsc-cal-day-date{opacity:.5}.mbsc-cal-week-view .mbsc-cal-day-date,.mbsc-cal-day-diff.mbsc-selected .mbsc-cal-day-date{opacity:1}.mbsc-cal-cell.mbsc-disabled{cursor:not-allowed}.mbsc-cal-cell.mbsc-disabled .mbsc-cal-cell-txt{opacity:.2}.mbsc-cal-hide-diff .mbsc-cal-day-diff{cursor:default}.mbsc-cal-hide-diff .mbsc-cal-day-diff .mbsc-cal-day-i{visibility:hidden}.mbsc-ltr .mbsc-cal-weeks .mbsc-cal-days{margin-left:1.625em}.mbsc-rtl .mbsc-cal-weeks .mbsc-cal-days{margin-right:1.625em}.mbsc-cal-week-nr{width:1.625em;text-align:center}.mbsc-cal-multi .mbsc-cal-hdr{display:block}.mbsc-cal-multi .mbsc-cal-btn-w{width:auto}.mbsc-cal-multi .mbsc-cal-days,.mbsc-cal-multi .mbsc-cal-slide{padding:0 .5em}.mbsc-fr-liq .mbsc-cal-c{display:block}.mbsc-calendar.mbsc-fr-liq.mbsc-fr-center .mbsc-fr-overlay{display:none}.mbsc-calendar.mbsc-fr-liq.mbsc-fr-center .mbsc-fr-w{border-radius:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left);padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right);padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.mbsc-cal-tabs-c{display:none}.mbsc-cal-tabs{display:table;width:100%;margin:0;padding:0;list-style:none}.mbsc-cal-tab{position:relative;width:33.33%;display:table-cell;overflow:hidden;cursor:pointer;text-align:center}.mbsc-cal-tabbed .mbsc-fr-c{position:relative}.mbsc-cal-tabbed .mbsc-w-p{transition:opacity .2s ease-in-out}.mbsc-cal-tabbed .mbsc-sc-whl-gr-c{position:absolute;z-index:1;top:0;left:0;right:0;max-width:none;height:100%;-webkit-box-align:center;-webkit-align-items:center;-ms-box-align:center;align-items:center}.mbsc-cal-tabbed .mbsc-cal-c,.mbsc-cal-tabbed .mbsc-cal-tabs-c{display:block}.mbsc-cal-tabbed .mbsc-fr-pos .mbsc-sc-whl-gr-c{width:auto}.mbsc-cal-has-marks .mbsc-cal-day{padding-bottom:.25em}.mbsc-cal-marks{position:absolute;left:0;right:0;height:.375em;margin-top:-.125em;overflow:hidden;white-space:nowrap}.mbsc-cal-mark{display:inline-block;vertical-align:top;width:.25em;height:.25em;margin:.0625em;border-radius:.25em}.mbsc-cal-txt-w{position:absolute;z-index:2;pointer-events:none}.mbsc-ltr .mbsc-cal-txt{text-align:left}.mbsc-rtl .mbsc-cal-txt{text-align:right}.mbsc-cal-txt,.mbsc-cal-txt-ph,.mbsc-cal-txt-more{position:relative;height:1.6em;line-height:1.6em;overflow:hidden;padding:0 .3em;font-size:.625em;white-space:nowrap;text-overflow:ellipsis;margin:0 .1em .2em .1em}.mbsc-cal-day .mbsc-cal-txt.mbsc-cal-txt-only{color:inherit;text-align:center}.mbsc-no-touch .mbsc-cal-txt:before{content:\'\';position:absolute;z-index:1;top:0;right:0;bottom:0;left:0;transition:background-color .2s}.mbsc-no-touch .mbsc-cal-txt-only:before{display:none}.mbsc-no-touch .mbsc-cal-txt.mbsc-hover:before{background-color:rgba(0,0,0,0.2)}.mbsc-no-touch .mbsc-cal-txt-more:hover{background-color:rgba(0,0,0,0.1)}.mbsc-cal-txt-more{text-align:left;transition:background-color .2s}.mbsc-cal .mbsc-cal-btn{position:relative;z-index:1}.mbsc-mobiscroll .mbsc-cal-c{padding:.5em}.mbsc-mobiscroll .mbsc-cal-btn-w{font-size:1.125em;line-height:2.222223em}.mbsc-mobiscroll .mbsc-cal .mbsc-cal-btn{width:2.666667em;height:2.666667em;line-height:2.666667em;padding:0;border-radius:2em;margin:-.222222em}.mbsc-mobiscroll .mbsc-cal-picker{border-top:1px solid transparent}.mbsc-mobiscroll .mbsc-cal-picker .mbsc-cal-cell-i{display:inline-block;height:2em;padding:0 1em;line-height:2em;border-radius:2em;white-space:nowrap}.mbsc-mobiscroll .mbsc-cal-days>div{font-size:.6875em}.mbsc-mobiscroll .mbsc-cal-day-date{display:inline-block;width:2.153847em;height:2.153847em;margin:.307692em 0;line-height:2.153847em;font-size:.8125em;border:2px solid transparent;border-radius:2em}.mbsc-mobiscroll .mbsc-cal-week-nr{width:2.363637em;font-size:.6875em}.mbsc-mobiscroll .mbsc-cal-tabs-c{line-height:1.875em;padding:.5em .5em 0 .5em;text-transform:uppercase}.mbsc-mobiscroll .mbsc-cal-tab{font-size:.7em;padding:0 1.2em}.mbsc-mobiscroll .mbsc-cal-picker{background:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-days>div{border-bottom:1px solid #4eccc4;color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-today{color:#4eccc4}.mbsc-mobiscroll.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-mobiscroll.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-mobiscroll .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(78,204,196,0.3)}.mbsc-mobiscroll .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#4eccc4;color:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-week-nr{color:#4eccc4}.mbsc-mobiscroll .mbsc-cal-tab{border:1px solid #4eccc4;color:#454545}.mbsc-mobiscroll .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#4eccc4;color:#f7f7f7}.mbsc-mobiscroll .mbsc-cal-mark{background:#454545}.mbsc-mobiscroll .mbsc-cal-txt{color:#f7f7f7;background:#454545}.mbsc-mobiscroll .mbsc-cal-icons{color:#454545}.mbsc-mobiscroll-dark .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-mobiscroll-dark .mbsc-fr-w{background:#263238;color:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-fr-hdr,.mbsc-mobiscroll-dark .mbsc-fr-btn{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-fr-btn.mbsc-active,.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-fr-arr{background:#263238}.mbsc-mobiscroll-dark .mbsc-sc-lbl{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-sc-whl-l{border-top:1px solid #4fccc4;border-bottom:1px solid #4fccc4}.mbsc-mobiscroll-dark .mbsc-sc-btn{color:#4fccc4;background:#263238}.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-mobiscroll-dark .mbsc-sc-itm:focus{background:rgba(247,247,247,0.1)}.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-mobiscroll-dark.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-mobiscroll-dark .mbsc-sc-btn.mbsc-active:before{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-picker{background:#263238}.mbsc-mobiscroll-dark .mbsc-cal-days>div{border-bottom:1px solid #4fccc4;color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-today{color:#4fccc4}.mbsc-mobiscroll-dark.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-mobiscroll-dark.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-mobiscroll-dark .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(79,204,196,0.3)}.mbsc-mobiscroll-dark .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#4fccc4;color:#263238}.mbsc-mobiscroll-dark .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-week-nr{color:#4fccc4}.mbsc-mobiscroll-dark .mbsc-cal-tab{border:1px solid #4fccc4;color:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#4fccc4;color:#263238}.mbsc-mobiscroll-dark .mbsc-cal-mark{background:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-cal-txt{color:#263238;background:#f7f7f7}.mbsc-mobiscroll-dark .mbsc-cal-icons{color:#f7f7f7}.mbsc-voxco .mbsc-fr-overlay{background:rgba(0,0,0,0.7)}.mbsc-voxco .mbsc-fr-w{background:#F7F7F7;color:#454545}.mbsc-voxco .mbsc-fr-hdr,.mbsc-voxco .mbsc-fr-btn{color:#0D77BD}.mbsc-voxco .mbsc-fr-btn.mbsc-active,.mbsc-voxco.mbsc-no-touch .mbsc-fr-btn-e:not(.mbsc-disabled):hover{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-fr-arr{background:#F7F7F7}.mbsc-voxco .mbsc-sc-lbl{color:#0D77BD}.mbsc-voxco .mbsc-sc-whl-l{border-top:1px solid #0D77BD;border-bottom:1px solid #0D77BD}.mbsc-voxco .mbsc-sc-btn{color:#0D77BD;background:#F7F7F7}.mbsc-voxco.mbsc-no-touch .mbsc-sc-itm.mbsc-btn-e:hover,.mbsc-voxco .mbsc-sc-itm:focus{background:rgba(69,69,69,0.1)}.mbsc-voxco.mbsc-no-touch .mbsc-sc-btn:hover:before,.mbsc-voxco.mbsc-sc .mbsc-sc-whl .mbsc-sc-itm.mbsc-active,.mbsc-voxco .mbsc-sc-btn.mbsc-active:before{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before{color:#0D77BD}.mbsc-voxco .mbsc-cal-picker{background:#F7F7F7}.mbsc-voxco .mbsc-cal-days>div{border-bottom:1px solid #0D77BD;color:#0D77BD}.mbsc-voxco .mbsc-cal-today{color:#0D77BD}.mbsc-voxco.mbsc-no-touch:not(.mbsc-ev-cal) .mbsc-cal-cell:not(.mbsc-disabled):hover .mbsc-cal-cell-txt,.mbsc-voxco.mbsc-no-touch .mbsc-cal-day:not(.mbsc-disabled) .mbsc-cal-day-date:hover,.mbsc-voxco .mbsc-cal-cell:focus .mbsc-cal-cell-txt{background:rgba(13,119,189,0.3)}.mbsc-voxco .mbsc-cal-c .mbsc-cal .mbsc-cal-body .mbsc-cal-row .mbsc-selected .mbsc-cal-cell-txt{background:#0D77BD;color:#F7F7F7}.mbsc-voxco .mbsc-cal-day-colored.mbsc-selected .mbsc-cal-day-date{border-color:#0D77BD}.mbsc-voxco .mbsc-cal-week-nr{color:#0D77BD}.mbsc-voxco .mbsc-cal-tab{border:1px solid #0D77BD;color:#454545}.mbsc-voxco .mbsc-fr-w .mbsc-cal-tabs-c .mbsc-cal-tabs .mbsc-cal-tab.mbsc-selected{background:#0D77BD;color:#F7F7F7}.mbsc-voxco .mbsc-cal-mark{background:#454545}.mbsc-voxco .mbsc-cal-txt{color:#F7F7F7;background:#454545}.mbsc-voxco .mbsc-cal-icons{color:#454545}\r\n'],sourceRoot:""}]),t.Z=d},98575:function(e,t,n){"use strict";n.r(t);var r=n(94015),i=n.n(r),o=n(23645),a=n.n(o)()(i());a.push([e.id,"/**\n * Material design colors from https://material.google.com/style/color.html#color-color-palette\n */\nhtml {\n  touch-action: manipulation;\n}\nhtml,\nbody {\n  height: auto !important;\n}\n* {\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\nul.errors {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.connection-progress {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  height: 3px;\n  background: transparentize(#18D9B4, 0.7);\n  z-index: 9999;\n}\n.connection-progress__fill {\n  position: absolute;\n  left: 0;\n  top: 0;\n  bottom: 0;\n  background: #18D9B4;\n  transition: width 200ms;\n}\n.progressBarBar {\n  transition: width 500ms;\n}\n.survey-engine .preview {\n  height: 100%;\n  display: flex;\n}\n.survey-engine .debug-flag {\n  display: none;\n  color: #9E9E9E;\n}\n.survey-engine .table-inverted {\n  display: flex;\n  overflow: hidden;\n  background: none;\n}\n.survey-engine .table-inverted thead {\n  display: flex;\n  flex-shrink: 0;\n  min-width: min-content;\n}\n.survey-engine .table-inverted tbody {\n  display: flex;\n  position: relative;\n  overflow-x: auto;\n  overflow-y: hidden;\n}\n.survey-engine .table-inverted tr {\n  display: flex;\n  flex-direction: column;\n  min-width: min-content;\n  flex-shrink: 0;\n}\n.survey-engine .table-inverted td,\n.survey-engine .table-inverted th {\n  display: block;\n}\n.survey-engine__error {\n  font-family: 'Roboto Mono', monospace;\n  font-weight: 500;\n  line-height: 1.5em;\n  padding: 1em;\n  font-size: 12px;\n  color: #F41134;\n  background: white;\n}\n.survey-engine__error h1 {\n  font-family: 'Roboto Mono', monospace;\n  font-weight: 300;\n  font-size: 20px;\n  line-height: 29px;\n  margin: 0;\n  padding: 12px 0;\n  color: #F41134;\n}\n.survey-engine__error pre {\n  font-family: 'Roboto Mono', monospace;\n  white-space: pre-wrap;\n  margin: 0;\n}\n.survey-engine__error pre span:before {\n  color: #e3a6a6;\n}\n.survey-engine--debug .survey-engine__error {\n  display: block;\n}\n.survey-engine--debug .debug-flag {\n  display: inherit;\n}\n@media (max-width: 1024px) {\n  .survey-engine .preview__mobile {\n    display: none;\n  }\n}\n@keyframes loader-scale {\n  0% {\n    transform: scale(0);\n    opacity: 0;\n  }\n  50% {\n    opacity: 1;\n  }\n  100% {\n    transform: scale(1);\n    opacity: 0;\n  }\n}\n","",{version:3,sources:["webpack://./src/assets/main.less"],names:[],mappings:"AAAA;;EAEE;AACF;EACI,0BAAA;AACJ;AAEA;;EACI,uBAAA;AACJ;AAEA;EACI,6CAAA;AAAJ;AAGA;EACI,gBAAA;EACA,SAAA;EACA,UAAA;AADJ;AAIA;EACI,kBAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,wCAAA;EACA,aAAA;AAFJ;AAII;EACI,kBAAA;EACA,OAAA;EACA,MAAA;EACA,SAAA;EACA,mBAAA;EACA,uBAAA;AAFR;AAMA;EACI,uBAAA;AAJJ;AAOA;EAGQ,YAAA;EACA,aAAA;AAPR;AAGA;EAQQ,aAAA;EACA,cAAA;AARR;AADA;EAaQ,aAAA;EACA,gBAAA;EACA,gBAAA;AATR;AANA;EAkBY,aAAA;EACA,cAAA;EACA,sBAAA;AATZ;AAXA;EAwBY,aAAA;EACA,kBAAA;EACA,gBAAA;EACA,kBAAA;AAVZ;AAjBA;EA+BY,aAAA;EACA,sBAAA;EACA,sBAAA;EACA,cAAA;AAXZ;AAvBA;;EAsCY,cAAA;AAXZ;AAeI;EAEI,qCAAA;EACA,gBAAA;EACA,kBAAA;EACA,YAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;AAdR;AAMI;EAWQ,qCAAA;EACA,gBAAA;EACA,eAAA;EACA,iBAAA;EACA,SAAA;EACA,eAAA;EACA,cAAA;AAdZ;AAHI;EAqBQ,qCAAA;EACA,qBAAA;EACA,SAAA;AAfZ;AARI;EA0BY,cAAA;AAfhB;AAoBI;EAGQ,cAAA;AApBZ;AAiBI;EAOQ,gBAAA;AArBZ;AAyBI;EAAA;IAEQ,aAAA;EAvBV;AACF;AA2BA;EACI;IACI,mBAAA;IACA,UAAA;EAzBN;EA4BE;IACI,UAAA;EA1BN;EA6BE;IACI,mBAAA;IACA,UAAA;EA3BN;AACF",sourcesContent:["@import 'palette.less';\n@import 'variables.less';\n\nhtml {\n    touch-action: manipulation;\n}\n\nhtml, body {\n    height: auto !important;\n}\n\n* {\n    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n\nul.errors {\n    list-style: none;\n    margin: 0;\n    padding: 0;\n}\n\n.connection-progress {\n    position: absolute;\n    top: 0;\n    left: 0;\n    right: 0;\n    height: 3px;\n    background: transparentize(@primary, 0.7);\n    z-index: 9999;\n\n    &__fill {\n        position: absolute;\n        left: 0;\n        top: 0;\n        bottom: 0;\n        background: @primary;\n        transition: width 200ms;\n    }\n}\n\n.progressBarBar {\n    transition: width 500ms;\n}\n\n.survey-engine {\n\n    .preview {\n        height: 100%;\n        display: flex;\n    }\n    \n    .debug-flag {\n        display: none;\n        color: @grey;\n    }\n\n    .table-inverted {\n        display: flex;\n        overflow: hidden;\n        background: none;\n\n        thead {\n            display: flex;\n            flex-shrink: 0;\n            min-width: min-content;\n        }\n\n        tbody {\n            display: flex;\n            position: relative;\n            overflow-x: auto;\n            overflow-y: hidden;\n        }\n\n        tr {\n            display: flex;\n            flex-direction: column;\n            min-width: min-content;\n            flex-shrink: 0;\n        }\n\n        td, th {\n            display: block;\n        }\n    }\n\n    &__error {\n        //display: none;\n        font-family: 'Roboto Mono', monospace;\n        font-weight: 500;\n        line-height: 1.5em;\n        padding: 1em;\n        font-size: 12px;\n        color: @error;\n        background: white;\n\n        h1 {\n            font-family: 'Roboto Mono', monospace;\n            font-weight: 300;\n            font-size: 20px;\n            line-height: @baseline;\n            margin: 0;\n            padding: 12px 0;\n            color: @error;\n        }\n\n        pre {\n            font-family: 'Roboto Mono', monospace;\n            white-space: pre-wrap;\n            margin: 0;\n            \n            span:before {\n                color: desaturate(@red-200, 20%)\n            }\n        }\n    }\n\n    &--debug {\n        \n        .survey-engine__error {\n            display: block;\n        }\n    \n        .debug-flag {\n            display: inherit;\n        }\n    }\n\n    @media (max-width: 1024px) {\n        .preview__mobile {\n            display: none;\n        }\n    }\n}\n\n@keyframes loader-scale {\n    0% {\n        transform: scale(0);\n        opacity: 0;\n    }\n\n    50% {\n        opacity: 1;\n    }\n\n    100% {\n        transform: scale(1);\n        opacity: 0;\n    }\n}"],sourceRoot:""}]),t.default=a},90267:function(e){const t=[{common:{loading:"Loading",nextPage:"Next page",previousPage:"Previous page",yes:"Yes",no:"No"},debug:{title:"Debug Panel",testMode:"Test Mode",previewMode:"Preview Mode",toggleMobilePreview:"Show/hide mobile preview",panels:{goToQuestion:{title:"Go To Question",search:"Search questions..."},flow:{title:"Survey Flow",audioRecording:"audio recording",audioRecording_start:"Start audio recording",audioRecording_stop:"Stop audio recording",branchTo:"Branch to {{destination}}",branchTo_autoclean:"Branch to {{destination}} [autoclean]",branchToExitUrl:"Exit url {{url}} with disposition code {{code}}",completed:"Completed",computeVariable:"Compute {{variable}}={{value}}",conditionNotMet:"condition is not met",exit:"Exit {{code}}",selection:"Selection",sendEmail:"Send email",setPanelistData:"Set panelist data",setRow:"Set {{block}} row to {{value}}",setVariable:"Set {{variable}}={{value}}",setVariable_row:"Set {{variable}}={{value}} with row {{matrix}}",simulating:"Simulating",toggleLogic:"Show/hide logic"},variables:{title:"Variables",openEnd:"Open-end",search:"Search variables...",text:"Text"},accessibility:{title:"Accessibility",label:{error:"Error",warning:"Warning",elements:"Elements"}},settings:{title:"Settings",enableDebugInfo:"Enable debug info",display:{title:"Display",dockLeft:"Dock to left",dockRight:"Dock to right",undock:"Undock"}}}},textHighligher:{selectCategory:"Select Category",comments:"Comments",cancel:"Cancel",save:"Save",delete:"Delete"}}];e.exports=t.length<=1?t[0]:t},85161:function(e){const t=[{common:{loading:"Chargement",nextPage:"Page suivante",previousPage:"Page précédente",yes:"Oui",no:"Non"},debug:{title:"Panneau de déboguage",testMode:"Mode Test",previewMode:"Mode prévisualisation",toggleMobilePreview:"Prévisualisation mobile",panels:{goToQuestion:{title:"Navigateur de questions",search:"Rechercher des questions..."},flow:{title:"Flux",audioRecording:"enregistrement audio",audioRecording_start:"Démarrer l'enregistrement audio",audioRecording_stop:"Arrêter l'enregistrement audio",branchTo:"Brancher vers {{destination}}",branchTo_autoclean:"Brancher vers {{destination}} [autoclean]",branchToExitUrl:"Quitter puis naviguer vers {{url}} avec le code {{code}}",completed:"Complété",computeVariable:"Calculer {{variable}}={{value}}",conditionNotMet:"condition n'est pas remplie",exit:"Quitter {{code}}",selection:"Sélectionner",sendEmail:"Envoyer un courriel",setPanelistData:"Assigner des champs de panéliste",setRow:"Déplacer {{block}} à la rangée {{value}}",setVariable:"Assigner {{variable}}={{value}}",setVariable_row:"Assigner {{variable}}={{value}} pour la rangée {{matrix}}",simulating:"Simulation",toggleLogic:"Afficher/cacher la logique"},variables:{title:"Variables",openEnd:"Réponse ouverte",search:"Rechercher des variables...",text:"Texte"},accessibility:{title:"Accessibilité",label:{error:"Erreur",warning:"Avertissement",elements:"Éléments"}},settings:{title:"Paramètres",enableDebugInfo:"Informations de déboguage",display:{title:"Affichage",dockLeft:"Ancré à gauche",dockRight:"Ancré à droite",undock:"Flottant"}}}},textHighligher:{selectCategory:"Sélectionnez une catégorie",comments:"Commentaires",cancel:"Annuler",save:"Sauvegarder",delete:"Supprimer"}}];e.exports=t.length<=1?t[0]:t},50902:function(e,t,n){!function(){function t(e){return e[0]}function r(e){return function(t){return t[e]}}function i(e){return e[0]&&e[0].value}function o(e){return null}const a=n(61093).c,s=n(86923),c=n(878);var l={Lexer:a,ParserRules:[{name:"adv_expression",symbols:["adv_boolean"],postprocess:t},{name:"basic_expression",symbols:["basic_boolean"],postprocess:t},{name:"adv_boolean$subexpression$1",symbols:["__","or","__"]},{name:"adv_boolean",symbols:["adv_boolean","adv_boolean$subexpression$1","adv_boolean_not"],postprocess:([e,t,n])=>t=>s.bool(t,e)||s.bool(t,n)},{name:"adv_boolean$subexpression$2",symbols:["__","and","__"]},{name:"adv_boolean",symbols:["adv_boolean","adv_boolean$subexpression$2","adv_boolean_not"],postprocess:([e,t,n])=>t=>s.bool(t,e)&&s.bool(t,n)},{name:"adv_boolean",symbols:["adv_boolean_not"],postprocess:t},{name:"adv_boolean_not",symbols:["not","__","adv_comparison"],postprocess:([e,,t])=>e=>!s.bool(e,t)},{name:"adv_boolean_not",symbols:["not","_bo_","adv_boolean","_bc_"],postprocess:([e,,t])=>e=>!s.bool(e,t)},{name:"adv_boolean_not",symbols:["adv_comparison"],postprocess:t},{name:"basic_boolean$subexpression$1",symbols:["__","or","__"]},{name:"basic_boolean",symbols:["basic_boolean","basic_boolean$subexpression$1","basic_comparison"],postprocess:([e,t,n])=>t=>s.bool(t,e)||s.bool(t,n)},{name:"basic_boolean$subexpression$2",symbols:["__","and","__"]},{name:"basic_boolean",symbols:["basic_boolean","basic_boolean$subexpression$2","basic_comparison"],postprocess:([e,t,n])=>t=>s.bool(t,e)&&s.bool(t,n)},{name:"basic_boolean",symbols:["basic_comparison"],postprocess:t},{name:"adv_comparison",symbols:["discrete_comparison"],postprocess:t},{name:"adv_comparison",symbols:["algebraic_comparison"],postprocess:t},{name:"adv_comparison",symbols:["addition"],postprocess:t},{name:"discrete_comparison$subexpression$1",symbols:["_","eq","_"]},{name:"discrete_comparison",symbols:["variable","discrete_comparison$subexpression$1","choice_list"],postprocess:([e,t,n])=>t=>c.eq(t,e,n)},{name:"discrete_comparison$subexpression$2",symbols:["_","eq","_"]},{name:"discrete_comparison",symbols:["variable_selector","discrete_comparison$subexpression$2","choice_list"],postprocess:([e,t,n])=>t=>c.eq(t,e,n)},{name:"discrete_comparison$subexpression$3",symbols:["_","not_eq","_"]},{name:"discrete_comparison",symbols:["variable_selector","discrete_comparison$subexpression$3","choice_list"],postprocess:([e,t,n])=>t=>!c.eq(t,e,n)},{name:"algebraic_comparison$subexpression$1",symbols:["_","eq_algebraic","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$1","addition"],postprocess:([e,t,n])=>t=>c.eq_algebraic(t,e,n)},{name:"algebraic_comparison$subexpression$2",symbols:["_","not_eq","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$2","addition"],postprocess:([e,t,n])=>t=>!c.eq_algebraic(t,e,n)},{name:"algebraic_comparison$subexpression$3",symbols:["_","gte","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$3","addition"],postprocess:([e,t,n])=>t=>c.gt(t,e,n)||c.eq_algebraic(t,e,n)},{name:"algebraic_comparison$subexpression$4",symbols:["_","gt","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$4","addition"],postprocess:([e,t,n])=>t=>c.gt(t,e,n)},{name:"algebraic_comparison$subexpression$5",symbols:["_","lte","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$5","addition"],postprocess:([e,t,n])=>t=>c.lt(t,e,n)||c.eq_algebraic(t,e,n)},{name:"algebraic_comparison$subexpression$6",symbols:["_","lt","_"]},{name:"algebraic_comparison",symbols:["adv_comparison","algebraic_comparison$subexpression$6","addition"],postprocess:([e,t,n])=>t=>c.lt(t,e,n)},{name:"basic_comparison$subexpression$1",symbols:["_","eq","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$1","value"],postprocess:([e,t,n])=>t=>c.eq(t,e,n)},{name:"basic_comparison$subexpression$2",symbols:["_","not_eq","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$2","value"],postprocess:([e,t,n])=>t=>!c.eq(t,e,n)},{name:"basic_comparison$subexpression$3",symbols:["_","gte","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$3","numeric_value"],postprocess:([e,t,n])=>t=>c.compare(t,e,n).some((e=>e>=0))},{name:"basic_comparison$subexpression$4",symbols:["_","gt","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$4","numeric_value"],postprocess:([e,t,n])=>t=>c.compare(t,e,n).some((e=>e>0))},{name:"basic_comparison$subexpression$5",symbols:["_","lte","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$5","numeric_value"],postprocess:([e,t,n])=>t=>c.compare(t,e,n).some((e=>e<=0))},{name:"basic_comparison$subexpression$6",symbols:["_","lt","_"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$6","numeric_value"],postprocess:([e,t,n])=>t=>c.compare(t,e,n).some((e=>e<0))},{name:"basic_comparison$subexpression$7",symbols:["__","contains","__"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$7","value"],postprocess:([e,t,n])=>t=>c.strfind(t,e,n)},{name:"basic_comparison$subexpression$8",symbols:["__","does_not_contain","__"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$8","value"],postprocess:([e,t,n])=>t=>!c.strfind(t,e,n)},{name:"basic_comparison$subexpression$9",symbols:["__","is_empty"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$9"],postprocess:([e])=>t=>c.empty(t,e)},{name:"basic_comparison$subexpression$10",symbols:["__","is_not_empty"]},{name:"basic_comparison",symbols:["variable","basic_comparison$subexpression$10"],postprocess:([e])=>t=>!c.empty(t,e)},{name:"basic_comparison",symbols:["basic_group"],postprocess:t},{name:"addition$subexpression$1",symbols:["_","add","_"]},{name:"addition",symbols:["addition","addition$subexpression$1","multiplication"],postprocess:([e,t,n])=>t=>c.add(t,e,n)},{name:"addition$subexpression$2",symbols:["_","sub","_"]},{name:"addition",symbols:["addition","addition$subexpression$2","multiplication"],postprocess:([e,t,n])=>t=>c.sub(t,e,n)},{name:"addition",symbols:["multiplication"],postprocess:t},{name:"multiplication$subexpression$1",symbols:["_","mul","_"]},{name:"multiplication",symbols:["multiplication","multiplication$subexpression$1","exponentiation"],postprocess:([e,t,n])=>t=>c.mul(t,e,n)},{name:"multiplication$subexpression$2",symbols:["_","div","_"]},{name:"multiplication",symbols:["multiplication","multiplication$subexpression$2","exponentiation"],postprocess:([e,t,n])=>t=>c.div(t,e,n)},{name:"multiplication",symbols:["exponentiation"],postprocess:t},{name:"exponentiation$subexpression$1",symbols:["_","exp","_"]},{name:"exponentiation",symbols:["adv_group","exponentiation$subexpression$1","exponentiation"],postprocess:([e,t,n])=>t=>c.pow(t,e,n)},{name:"exponentiation",symbols:["adv_group"],postprocess:t},{name:"adv_group",symbols:["_bo_","adv_boolean","_bc_"],postprocess:r(1)},{name:"adv_group",symbols:["function"],postprocess:t},{name:"adv_group",symbols:["numeric_value"],postprocess:t},{name:"basic_group",symbols:["_bo_","basic_boolean","_bc_"],postprocess:r(1)},{name:"basic_group",symbols:["numeric_value"],postprocess:t},{name:"function",symbols:["fn_min","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.min(e,...t(e))},{name:"function",symbols:["fn_max","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.max(e,...t(e))},{name:"function",symbols:["fn_sum","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.sum(e,t)},{name:"function",symbols:["fn_smr","_bo_","arg_val","_ls_","args_nval","_bc_"],postprocess:([e,,t,,n])=>e=>c.smr(e,t,n)},{name:"function",symbols:["fn_sm2","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.sm2(e,t)},{name:"function",symbols:["fn_ind","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.ind(e,t)},{name:"function",symbols:["fn_prj","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.prj(e,t)},{name:"function",symbols:["fn_if","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.bool(e,...t(e))},{name:"function",symbols:["fn_v01","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.bool(e,t,1,0)},{name:"function",symbols:["fn_nbr","_bo_","args_nvar","_bc_"],postprocess:([e,,t])=>e=>c.nbr(e,...t(e))},{name:"function",symbols:["fn_sgn","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.sgn(e,t)},{name:"function",symbols:["fn_cmp","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.cmp(e,...t(e))},{name:"function",symbols:["fn_cmr","_bo_","args_nvar","_bc_"],postprocess:([e,,t])=>e=>c.cmr(e,...t(e))},{name:"function",symbols:["fn_meq","_bo_","arg_var","_ls_","arg_val","_ls_","arg_val","_bc_"],postprocess:([e,,t,,n,,r])=>e=>c.meq(e,t,n,r)},{name:"function",symbols:["fn_mnb","_bo_","arg_var","_ls_","arg_val","_bc_"],postprocess:([e,,t,,n])=>e=>c.mnb(e,t,n)},{name:"function",symbols:["fn_rng","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.rng(e,...t(e))},{name:"function",symbols:["fn_rnk","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.rnk(e,...t(e))},{name:"function",symbols:["fn_sqr","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.sqr(e,t)},{name:"function",symbols:["fn_ln","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.ln(e,t)},{name:"function",symbols:["fn_log","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.log(e,t)},{name:"function",symbols:["fn_abs","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.abs(e,t)},{name:"function",symbols:["fn_trc","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.trc(e,t)},{name:"function",symbols:["fn_ran","_bo_","arg_val","_ls_","arg_val","_bc_"],postprocess:([e,,t,,n])=>e=>c.ran(e,t,n)},{name:"function",symbols:["fn_mod","_bo_","arg_val","_ls_","arg_val","_bc_"],postprocess:([e,,t,,n])=>e=>c.mod(e,t,n)},{name:"function",symbols:["fn_exp","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.exp(e,t)},{name:"function",symbols:["fn_jul","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.jul(e,...t(e))},{name:"function",symbols:["fn_yea","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.yea(e,t)},{name:"function",symbols:["fn_mon","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.mon(e,t)},{name:"function",symbols:["fn_day","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.day(e,t)},{name:"function",symbols:["fn_wkd","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.wkd(e,t)},{name:"function",symbols:["fn_nbc","_bo_","arg_var","_bc_"],postprocess:([e,,t])=>e=>c.nbc(e,t)},{name:"function",symbols:["fn_qta","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.qta(e,t)},{name:"function",symbols:["fn_qtf","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.qtf(e,t)},{name:"function",symbols:["fn_qtc","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.qtc(e,t)},{name:"function",symbols:["fn_qtisavail","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.qtisavail(e,...t(e))},{name:"function",symbols:["fn_qtareavail","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.qtareavail(e,...t(e))},{name:"function",symbols:["fn_getavailqt","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.getavailqt(e,...t(e))},{name:"function",symbols:["fn_selrandqt","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.selrandqt(e,...t(e))},{name:"function",symbols:["fn_qtisavailresp","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.qtisavailresp(e,...t(e))},{name:"function",symbols:["fn_qtareavailresp","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.qtareavailresp(e,...t(e))},{name:"function",symbols:["fn_getavailqtresp","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.getavailqtresp(e,...t(e))},{name:"function",symbols:["fn_selrandqtresp","_bo_","args_nval","_bc_"],postprocess:([e,,t])=>e=>c.selrandqtresp(e,...t(e))},{name:"function",symbols:["fn_rnb","_bo_","arg_val","_ls_","args_nvar","_bc_"],postprocess:([e,,t,,n])=>e=>c.rnb(e,t,...n(e))},{name:"function",symbols:["fn_rxy","_bo_","arg_val","_ls_","arg_val","_bc_"],postprocess:([e,,t,,n])=>e=>c.rxy(e,t,n)},{name:"function",symbols:["fn_fsr","_bo_","arg_var","_ls_","arg_var","_bc_"],postprocess:([e,,t,,n])=>e=>c.fsr(e,t,n)},{name:"function",symbols:["fn_nbl","_bo_","arg_var","_bc_"],postprocess:([e,,t])=>e=>c.nbl(e,t)},{name:"function",symbols:["fn_csm","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).map((t=>s.number(e,t))).reduce(((e,t)=>e+t))},{name:"function",symbols:["fn_cmx","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).map((t=>s.number(e,t))).reduce(((e,t)=>Math.max(e,t)))},{name:"function",symbols:["fn_cmn","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).map((t=>s.number(e,t))).reduce(((e,t)=>Math.min(e,t)))},{name:"function",symbols:["fn_cor","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).map((t=>s.bool(e,t))).some((e=>e))?1:0},{name:"function",symbols:["fn_can","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).reduce(((e,t)=>e===t?e:null))?1:0},{name:"function",symbols:["fn_cin","_bo_","arg_val","_bc_"],postprocess:([e,,t])=>e=>c.loop(e,t).findIndex((t=>s.bool(e,t)))+1},{name:"function",symbols:["fn_mov","_bo_","arg_val","_ls_","args_nvar","_bc_"],postprocess:([e,,t,,n])=>e=>c.mov(e,t,...n(e))},{name:"function",symbols:["fn_mst","_bo_","arg_val","_ls_","args_nvar","_bc_"],postprocess:([e,,t,,n])=>e=>c.mst(e,t,...n(e))},{name:"function",symbols:["fn_mvc","_bo_","arg_val","_ls_","args_nvar","_bc_"],postprocess:([e,,t,,n])=>e=>c.mov(e,t,...n(e))},{name:"args_nval",symbols:["args_nval","_ls_","args_nval_term"],postprocess:([e,,t])=>n=>[...e(n),...t(n)]},{name:"args_nval",symbols:["args_nval_term"],postprocess:t},{name:"args_nval_term",symbols:["variable_list"],postprocess:([e])=>t=>e(t).map((e=>s.number(t,e)))},{name:"args_nval_term",symbols:["arg_val"],postprocess:([e])=>t=>[s.number(t,e)]},{name:"args_nvar",symbols:["args_nvar","_ls_","args_nvar_term"],postprocess:([e,,t])=>n=>[...e(n),...t(n)]},{name:"args_nvar",symbols:["args_nvar_term"],postprocess:t},{name:"args_nvar_term",symbols:["variable_list"],postprocess:([e])=>t=>e(t)},{name:"args_nvar_term",symbols:["arg_var"],postprocess:([e])=>t=>[e(t)]},{name:"arg_val",symbols:["adv_boolean"],postprocess:t},{name:"arg_var",symbols:["identifier"],postprocess:([e])=>t=>s.variable(t,e)},{name:"numeric_value",symbols:["float"],postprocess:t},{name:"numeric_value",symbols:["variable"],postprocess:([e])=>t=>s.number(t,e)},{name:"variable_selector",symbols:["range_operator","_","variable_list"],postprocess:([e,,t])=>n=>s.variableSelect(n,e,t)},{name:"variable_list$subexpression$1",symbols:[{literal:"["},"_"]},{name:"variable_list$ebnf$1",symbols:["list_skip"],postprocess:t},{name:"variable_list$ebnf$1",symbols:[],postprocess:function(e){return null}},{name:"variable_list$ebnf$2",symbols:[]},{name:"variable_list$ebnf$2$subexpression$1",symbols:["_ls_","variable_list_item"],postprocess:r(1)},{name:"variable_list$ebnf$2",symbols:["variable_list$ebnf$2","variable_list$ebnf$2$subexpression$1"],postprocess:function(e){return e[0].concat([e[1]])}},{name:"variable_list$subexpression$2",symbols:["_",{literal:"]"}]},{name:"variable_list",symbols:["variable_list$subexpression$1","variable_list$ebnf$1","_","variable_list_item","variable_list$ebnf$2","variable_list$subexpression$2"],postprocess:([,e,,t,n])=>r=>s.variableList(r,e,[t,...n])},{name:"list_skip",symbols:[{literal:"@"},"uint"],postprocess:r(1)},{name:"variable_list_item",symbols:["variable"],postprocess:t},{name:"variable_list_item",symbols:["variable_range"],postprocess:t},{name:"variable_range",symbols:["variable","_","sub","_","variable"],postprocess:([e,,t,,n])=>t=>s.variableRange(t,e,n)},{name:"range_operator",symbols:["and"],postprocess:()=>"and"},{name:"range_operator",symbols:["or"],postprocess:()=>"or"},{name:"variable",symbols:["identifier"],postprocess:([e])=>t=>s.variable(t,e)},{name:"variable$subexpression$1",symbols:[{literal:"["},"_"]},{name:"variable$subexpression$2",symbols:["_",{literal:"]"}]},{name:"variable",symbols:["variable$subexpression$1","identifier","variable$subexpression$2"],postprocess:([,e])=>t=>s.variable(t,e)},{name:"choice_list$ebnf$1",symbols:[]},{name:"choice_list$ebnf$1$subexpression$1",symbols:["_ls_","choice_list_item"],postprocess:r(1)},{name:"choice_list$ebnf$1",symbols:["choice_list$ebnf$1","choice_list$ebnf$1$subexpression$1"],postprocess:function(e){return e[0].concat([e[1]])}},{name:"choice_list",symbols:["choice_list_item","choice_list$ebnf$1"],postprocess:function(e){return[].concat.apply([e[0]],e[1])}},{name:"choice_list_item",symbols:["choice_range"],postprocess:t},{name:"choice_list_item",symbols:["choice_index"],postprocess:t},{name:"choice_list_item",symbols:["value"],postprocess:t},{name:"choice_range",symbols:["choice","sub","choice"],postprocess:([e,t,n])=>t=>s.choiceRange(t,e,n)},{name:"choice",symbols:["value"],postprocess:([e])=>t=>s.choice(t,e)},{name:"choice",symbols:["choice_index"],postprocess:t},{name:"choice_index",symbols:[{literal:"#"},"uint"],postprocess:([,e])=>t=>s.choice(t,e)},{name:"_ls_",symbols:["__"],postprocess:o},{name:"_ls_",symbols:["_",{literal:","},"_"],postprocess:o},{name:"_bo_",symbols:[{literal:"("},"_"],postprocess:o},{name:"_bc_",symbols:["_",{literal:")"}],postprocess:o},{name:"value",symbols:["float"],postprocess:t},{name:"value",symbols:["bool"],postprocess:t},{name:"value",symbols:["word"],postprocess:t},{name:"value",symbols:["identifier"],postprocess:t},{name:"float$ebnf$1",symbols:["sub"],postprocess:t},{name:"float$ebnf$1",symbols:[],postprocess:function(e){return null}},{name:"float",symbols:["float$ebnf$1",a.has("float")?{type:"float"}:float],postprocess:([e,t])=>(e?-1:1)*parseFloat(t.value)},{name:"float",symbols:["int"],postprocess:t},{name:"int$ebnf$1",symbols:["sub"],postprocess:t},{name:"int$ebnf$1",symbols:[],postprocess:function(e){return null}},{name:"int",symbols:["int$ebnf$1","uint"],postprocess:([e,t])=>(e?-1:1)*t},{name:"uint",symbols:[a.has("uint")?{type:"uint"}:uint],postprocess:([e])=>parseInt(e.value)},{name:"bool",symbols:["true"],postprocess:t},{name:"bool",symbols:["false"],postprocess:t},{name:"word",symbols:[a.has("word")?{type:"word"}:word],postprocess:i},{name:"add",symbols:[a.has("add")?{type:"add"}:add],postprocess:o},{name:"sub",symbols:[a.has("sub")?{type:"sub"}:sub],postprocess:()=>!0},{name:"div",symbols:[a.has("div")?{type:"div"}:div],postprocess:o},{name:"exp",symbols:["mul","mul"],postprocess:o},{name:"mul",symbols:[a.has("mul")?{type:"mul"}:mul],postprocess:o},{name:"eq",symbols:[a.has("eq")?{type:"eq"}:eq],postprocess:o},{name:"not_eq",symbols:[a.has("not_eq")?{type:"not_eq"}:not_eq],postprocess:o},{name:"eq_algebraic",symbols:[a.has("eq_algebraic")?{type:"eq_algebraic"}:eq_algebraic],postprocess:o},{name:"lt",symbols:[a.has("lt")?{type:"lt"}:lt],postprocess:o},{name:"gt",symbols:[a.has("gt")?{type:"gt"}:gt],postprocess:o},{name:"lte",symbols:[a.has("lte")?{type:"lte"}:lte],postprocess:o},{name:"gte",symbols:[a.has("gte")?{type:"gte"}:gte],postprocess:o},{name:"and",symbols:[a.has("and")?{type:"and"}:and],postprocess:o},{name:"and",symbols:[a.has("et")?{type:"et"}:et],postprocess:o},{name:"and",symbols:[{literal:"&"}],postprocess:o},{name:"or",symbols:[a.has("or")?{type:"or"}:or],postprocess:o},{name:"or",symbols:[a.has("ou")?{type:"ou"}:ou],postprocess:o},{name:"or",symbols:[{literal:"|"}],postprocess:o},{name:"is_empty",symbols:[a.has("is_empty")?{type:"is_empty"}:is_empty],postprocess:o},{name:"is_not_empty",symbols:[a.has("is_not_empty")?{type:"is_not_empty"}:is_not_empty],postprocess:o},{name:"contains",symbols:[a.has("contains")?{type:"contains"}:contains],postprocess:o},{name:"does_not_contain",symbols:[a.has("does_not_contain")?{type:"does_not_contain"}:does_not_contain],postprocess:o},{name:"not",symbols:[a.has("not")?{type:"not"}:not],postprocess:o},{name:"not",symbols:[a.has("non")?{type:"non"}:non],postprocess:o},{name:"not",symbols:[{literal:"^"}],postprocess:o},{name:"true",symbols:[!a.has("true")||{type:"true"}],postprocess:()=>!0},{name:"false",symbols:[!!a.has("false")&&{type:"false"}],postprocess:()=>!1},{name:"fn_min",symbols:[a.has("fn_min")?{type:"fn_min"}:fn_min,"_"],postprocess:o},{name:"fn_max",symbols:[a.has("fn_max")?{type:"fn_max"}:fn_max,"_"],postprocess:o},{name:"fn_sum",symbols:[a.has("fn_som")?{type:"fn_som"}:fn_som,"_"],postprocess:o},{name:"fn_sum",symbols:[a.has("fn_sum")?{type:"fn_sum"}:fn_sum,"_"],postprocess:o},{name:"fn_smr",symbols:[a.has("fn_smr")?{type:"fn_smr"}:fn_smr,"_"],postprocess:o},{name:"fn_sm2",symbols:[a.has("fn_sm2")?{type:"fn_sm2"}:fn_sm2,"_"],postprocess:o},{name:"fn_ind",symbols:[a.has("fn_ind")?{type:"fn_ind"}:fn_ind,"_"],postprocess:o},{name:"fn_prj",symbols:[a.has("fn_prj")?{type:"fn_prj"}:fn_prj,"_"],postprocess:o},{name:"fn_if",symbols:[a.has("fn_if")?{type:"fn_if"}:fn_if,"_"],postprocess:o},{name:"fn_if",symbols:[a.has("fn_si")?{type:"fn_si"}:fn_si,"_"],postprocess:o},{name:"fn_v01",symbols:[a.has("fn_v01")?{type:"fn_v01"}:fn_v01,"_"],postprocess:o},{name:"fn_nbr",symbols:[a.has("fn_nbr")?{type:"fn_nbr"}:fn_nbr,"_"],postprocess:o},{name:"fn_sgn",symbols:[a.has("fn_sgn")?{type:"fn_sgn"}:fn_sgn,"_"],postprocess:o},{name:"fn_cmp",symbols:[a.has("fn_cmp")?{type:"fn_cmp"}:fn_cmp,"_"],postprocess:o},{name:"fn_cmr",symbols:[a.has("fn_cmr")?{type:"fn_cmr"}:fn_cmr,"_"],postprocess:o},{name:"fn_meq",symbols:[a.has("fn_meq")?{type:"fn_meq"}:fn_meq,"_"],postprocess:o},{name:"fn_mnb",symbols:[a.has("fn_mnb")?{type:"fn_mnb"}:fn_mnb,"_"],postprocess:o},{name:"fn_rng",symbols:[a.has("fn_rng")?{type:"fn_rng"}:fn_rng,"_"],postprocess:o},{name:"fn_rnk",symbols:[a.has("fn_rnk")?{type:"fn_rnk"}:fn_rnk,"_"],postprocess:o},{name:"fn_sqr",symbols:[a.has("fn_sqr")?{type:"fn_sqr"}:fn_sqr,"_"],postprocess:o},{name:"fn_ln",symbols:[a.has("fn_ln")?{type:"fn_ln"}:fn_ln,"_"],postprocess:o},{name:"fn_log",symbols:[a.has("fn_log")?{type:"fn_log"}:fn_log,"_"],postprocess:o},{name:"fn_abs",symbols:[a.has("fn_abs")?{type:"fn_abs"}:fn_abs,"_"],postprocess:o},{name:"fn_trc",symbols:[a.has("fn_trc")?{type:"fn_trc"}:fn_trc,"_"],postprocess:o},{name:"fn_ran",symbols:[a.has("fn_ran")?{type:"fn_ran"}:fn_ran,"_"],postprocess:o},{name:"fn_mod",symbols:[a.has("fn_mod")?{type:"fn_mod"}:fn_mod,"_"],postprocess:o},{name:"fn_exp",symbols:[a.has("fn_exp")?{type:"fn_exp"}:fn_exp,"_"],postprocess:o},{name:"fn_jul",symbols:[a.has("fn_jul")?{type:"fn_jul"}:fn_jul,"_"],postprocess:o},{name:"fn_yea",symbols:[a.has("fn_yea")?{type:"fn_yea"}:fn_yea,"_"],postprocess:o},{name:"fn_mon",symbols:[a.has("fn_mon")?{type:"fn_mon"}:fn_mon,"_"],postprocess:o},{name:"fn_day",symbols:[a.has("fn_day")?{type:"fn_day"}:fn_day,"_"],postprocess:o},{name:"fn_wkd",symbols:[a.has("fn_wkd")?{type:"fn_wkd"}:fn_wkd,"_"],postprocess:o},{name:"fn_qta",symbols:[a.has("fn_qta")?{type:"fn_qta"}:fn_qta,"_"],postprocess:o},{name:"fn_qtf",symbols:[a.has("fn_qtf")?{type:"fn_qtf"}:fn_qtf,"_"],postprocess:o},{name:"fn_qtc",symbols:[a.has("fn_qtc")?{type:"fn_qtc"}:fn_qtc,"_"],postprocess:o},{name:"fn_str",symbols:[a.has("fn_str")?{type:"fn_str"}:fn_str,"_"],postprocess:o},{name:"fn_nbc",symbols:[a.has("fn_nbc")?{type:"fn_nbc"}:fn_nbc,"_"],postprocess:o},{name:"fn_rnb",symbols:[a.has("fn_rnb")?{type:"fn_rnb"}:fn_rnb,"_"],postprocess:o},{name:"fn_rxy",symbols:[a.has("fn_rxy")?{type:"fn_rxy"}:fn_rxy,"_"],postprocess:o},{name:"fn_nbl",symbols:[a.has("fn_nbl")?{type:"fn_nbl"}:fn_nbl,"_"],postprocess:o},{name:"fn_csm",symbols:[a.has("fn_csm")?{type:"fn_csm"}:fn_csm,"_"],postprocess:o},{name:"fn_cmx",symbols:[a.has("fn_cmx")?{type:"fn_cmx"}:fn_cmx,"_"],postprocess:o},{name:"fn_cmn",symbols:[a.has("fn_cmn")?{type:"fn_cmn"}:fn_cmn,"_"],postprocess:o},{name:"fn_cor",symbols:[a.has("fn_cor")?{type:"fn_cor"}:fn_cor,"_"],postprocess:o},{name:"fn_can",symbols:[a.has("fn_can")?{type:"fn_can"}:fn_can,"_"],postprocess:o},{name:"fn_cin",symbols:[a.has("fn_cin")?{type:"fn_cin"}:fn_cin,"_"],postprocess:o},{name:"fn_mov",symbols:[a.has("fn_mov")?{type:"fn_mov"}:fn_mov,"_"],postprocess:o},{name:"fn_mst",symbols:[a.has("fn_mst")?{type:"fn_mst"}:fn_mst,"_"],postprocess:o},{name:"fn_mvc",symbols:[a.has("fn_mvc")?{type:"fn_mvc"}:fn_mvc,"_"],postprocess:o},{name:"fn_fsr",symbols:[a.has("fn_fsr")?{type:"fn_fsr"}:fn_fsr,"_"],postprocess:o},{name:"fn_qtisavail",symbols:[a.has("fn_qtisavail")?{type:"fn_qtisavail"}:fn_qtisavail,"_"],postprocess:o},{name:"fn_qtareavail",symbols:[a.has("fn_qtareavail")?{type:"fn_qtareavail"}:fn_qtareavail,"_"],postprocess:o},{name:"fn_getavailqt",symbols:[a.has("fn_getavailqt")?{type:"fn_getavailqt"}:fn_getavailqt,"_"],postprocess:o},{name:"fn_selrandqt",symbols:[a.has("fn_selrandqt")?{type:"fn_selrandqt"}:fn_selrandqt,"_"],postprocess:o},{name:"fn_qtisavailresp",symbols:[a.has("fn_qtisavailresp")?{type:"fn_qtisavailresp"}:fn_qtisavailresp,"_"],postprocess:o},{name:"fn_qtareavailresp",symbols:[a.has("fn_qtareavailresp")?{type:"fn_qtareavailresp"}:fn_qtareavailresp,"_"],postprocess:o},{name:"fn_getavailqtresp",symbols:[a.has("fn_getavailqtresp")?{type:"fn_getavailqtresp"}:fn_getavailqtresp,"_"],postprocess:o},{name:"fn_selrandqtresp",symbols:[a.has("fn_selrandqtresp")?{type:"fn_selrandqtresp"}:fn_selrandqtresp,"_"],postprocess:o},{name:"identifier",symbols:[a.has("identifier")?{type:"identifier"}:identifier],postprocess:i},{name:"identifier",symbols:[a.has("fn_min")?{type:"fn_min"}:fn_min],postprocess:i},{name:"identifier",symbols:[a.has("fn_max")?{type:"fn_max"}:fn_max],postprocess:i},{name:"identifier",symbols:[a.has("fn_sum")?{type:"fn_sum"}:fn_sum],postprocess:i},{name:"identifier",symbols:[a.has("fn_smr")?{type:"fn_smr"}:fn_smr],postprocess:i},{name:"identifier",symbols:[a.has("fn_sm2")?{type:"fn_sm2"}:fn_sm2],postprocess:i},{name:"identifier",symbols:[a.has("fn_ind")?{type:"fn_ind"}:fn_ind],postprocess:i},{name:"identifier",symbols:[a.has("fn_prj")?{type:"fn_prj"}:fn_prj],postprocess:i},{name:"identifier",symbols:[a.has("fn_if")?{type:"fn_if"}:fn_if],postprocess:i},{name:"identifier",symbols:[a.has("fn_v01")?{type:"fn_v01"}:fn_v01],postprocess:i},{name:"identifier",symbols:[a.has("fn_nbr")?{type:"fn_nbr"}:fn_nbr],postprocess:i},{name:"identifier",symbols:[a.has("fn_sgn")?{type:"fn_sgn"}:fn_sgn],postprocess:i},{name:"identifier",symbols:[a.has("fn_cmp")?{type:"fn_cmp"}:fn_cmp],postprocess:i},{name:"identifier",symbols:[a.has("fn_cmr")?{type:"fn_cmr"}:fn_cmr],postprocess:i},{name:"identifier",symbols:[a.has("fn_meq")?{type:"fn_meq"}:fn_meq],postprocess:i},{name:"identifier",symbols:[a.has("fn_mnb")?{type:"fn_mnb"}:fn_mnb],postprocess:i},{name:"identifier",symbols:[a.has("fn_rng")?{type:"fn_rng"}:fn_rng],postprocess:i},{name:"identifier",symbols:[a.has("fn_rnk")?{type:"fn_rnk"}:fn_rnk],postprocess:i},{name:"identifier",symbols:[a.has("fn_sqr")?{type:"fn_sqr"}:fn_sqr],postprocess:i},{name:"identifier",symbols:[a.has("fn_ln")?{type:"fn_ln"}:fn_ln],postprocess:i},{name:"identifier",symbols:[a.has("fn_log")?{type:"fn_log"}:fn_log],postprocess:i},{name:"identifier",symbols:[a.has("fn_abs")?{type:"fn_abs"}:fn_abs],postprocess:i},{name:"identifier",symbols:[a.has("fn_trc")?{type:"fn_trc"}:fn_trc],postprocess:i},{name:"identifier",symbols:[a.has("fn_ran")?{type:"fn_ran"}:fn_ran],postprocess:i},{name:"identifier",symbols:[a.has("fn_mod")?{type:"fn_mod"}:fn_mod],postprocess:i},{name:"identifier",symbols:[a.has("fn_exp")?{type:"fn_exp"}:fn_exp],postprocess:i},{name:"identifier",symbols:[a.has("fn_jul")?{type:"fn_jul"}:fn_jul],postprocess:i},{name:"identifier",symbols:[a.has("fn_yea")?{type:"fn_yea"}:fn_yea],postprocess:i},{name:"identifier",symbols:[a.has("fn_mon")?{type:"fn_mon"}:fn_mon],postprocess:i},{name:"identifier",symbols:[a.has("fn_day")?{type:"fn_day"}:fn_day],postprocess:i},{name:"identifier",symbols:[a.has("fn_wkd")?{type:"fn_wkd"}:fn_wkd],postprocess:i},{name:"identifier",symbols:[a.has("fn_qta")?{type:"fn_qta"}:fn_qta],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtf")?{type:"fn_qtf"}:fn_qtf],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtc")?{type:"fn_qtc"}:fn_qtc],postprocess:i},{name:"identifier",symbols:[a.has("fn_str")?{type:"fn_str"}:fn_str],postprocess:i},{name:"identifier",symbols:[a.has("fn_nbc")?{type:"fn_nbc"}:fn_nbc],postprocess:i},{name:"identifier",symbols:[a.has("fn_rnb")?{type:"fn_rnb"}:fn_rnb],postprocess:i},{name:"identifier",symbols:[a.has("fn_rxy")?{type:"fn_rxy"}:fn_rxy],postprocess:i},{name:"identifier",symbols:[a.has("fn_nbl")?{type:"fn_nbl"}:fn_nbl],postprocess:i},{name:"identifier",symbols:[a.has("fn_csm")?{type:"fn_csm"}:fn_csm],postprocess:i},{name:"identifier",symbols:[a.has("fn_cmx")?{type:"fn_cmx"}:fn_cmx],postprocess:i},{name:"identifier",symbols:[a.has("fn_cmn")?{type:"fn_cmn"}:fn_cmn],postprocess:i},{name:"identifier",symbols:[a.has("fn_cor")?{type:"fn_cor"}:fn_cor],postprocess:i},{name:"identifier",symbols:[a.has("fn_can")?{type:"fn_can"}:fn_can],postprocess:i},{name:"identifier",symbols:[a.has("fn_cin")?{type:"fn_cin"}:fn_cin],postprocess:i},{name:"identifier",symbols:[a.has("fn_mov")?{type:"fn_mov"}:fn_mov],postprocess:i},{name:"identifier",symbols:[a.has("fn_mst")?{type:"fn_mst"}:fn_mst],postprocess:i},{name:"identifier",symbols:[a.has("fn_mvc")?{type:"fn_mvc"}:fn_mvc],postprocess:i},{name:"identifier",symbols:[a.has("not")?{type:"not"}:not],postprocess:i},{name:"identifier",symbols:[a.has("fn_si")?{type:"fn_si"}:fn_si],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtisavail")?{type:"fn_qtisavail"}:fn_qtisavail],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtareavail")?{type:"fn_qtareavail"}:fn_qtareavail],postprocess:i},{name:"identifier",symbols:[a.has("fn_getavailqt")?{type:"fn_getavailqt"}:fn_getavailqt],postprocess:i},{name:"identifier",symbols:[a.has("fn_selrandqt")?{type:"fn_selrandqt"}:fn_selrandqt],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtisavailresp")?{type:"fn_qtisavailresp"}:fn_qtisavailresp],postprocess:i},{name:"identifier",symbols:[a.has("fn_qtareavailresp")?{type:"fn_qtareavailresp"}:fn_qtareavailresp],postprocess:i},{name:"identifier",symbols:[a.has("fn_getavailqtresp")?{type:"fn_getavailqtresp"}:fn_getavailqtresp],postprocess:i},{name:"identifier",symbols:[a.has("fn_selrandqtresp")?{type:"fn_selrandqtresp"}:fn_selrandqtresp],postprocess:i},{name:"identifier",symbols:[a.has("et")?{type:"et"}:et],postprocess:i},{name:"identifier",symbols:[a.has("ou")?{type:"ou"}:ou],postprocess:i},{name:"identifier",symbols:[a.has("non")?{type:"non"}:non],postprocess:i},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",a.has("ws")?{type:"ws"}:ws],postprocess:function(e){return e[0].concat([e[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:o},{name:"__$ebnf$1",symbols:[a.has("ws")?{type:"ws"}:ws]},{name:"__$ebnf$1",symbols:["__$ebnf$1",a.has("ws")?{type:"ws"}:ws],postprocess:function(e){return e[0].concat([e[1]])}},{name:"__",symbols:["__$ebnf$1"],postprocess:o}],ParserStart:"adv_expression"};void 0!==e.exports?e.exports=l:window.grammar=l}()},18879:function(e,t,n){"use strict";n.r(t);var r=n(66994),i=n.n(r),o=n(7795),a=n.n(o),s=n(90569),c=n.n(s),l=n(3565),u=n.n(l),m=n(19216),d=n.n(m),f=n(44589),p=n.n(f),h=n(34176),b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=c().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=d(),i()(h.Z,b),t.default=h.Z&&h.Z.locals?h.Z.locals:void 0},75026:function(e,t,n){"use strict";n(81486);var r=n(30523);n.n(r)().polyfill(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var i,o=n(67294),a=n(73935),s=n.n(a),c=n(12291),l=n(60791),u=n(7760),m=(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n}return m(t,e),t.prototype.componentDidCatch=function(e,t){this.setState({error:e}),console.log(e)},t.prototype.render=function(){var e=this.state.error;if(e)return o.createElement(u.R,{errors:[{error:e}]});var t=this.props.progress;return o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"connection-progress",key:0},o.createElement("div",{className:"connection-progress__fill",style:{width:100*t+"%"}})),o.createElement(l.d,null))},t}(o.PureComponent),f=(0,c.$j)((function(e){return{ready:e.interview&&e.interview.navigation.currentPage&&e.interview.navigation.currentPage.isReady,debug:e.application.debug,mode:e.application.mode,progress:e.connection.progress}}))(d),p=n(88507),h=n(59479),b=n(48238),v=n(90804),g=n(90267),A=n.n(g),y=n(85161),C=n.n(y);b.Z.use(v.Db).init({resources:{en:{translation:A()},fr:{translation:C()}},lng:document.documentElement.lang,interpolation:{escapeValue:!1},fallbackLng:"en"});var _,x=(_={},window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,(function(e,t,n){return _[t]=n,""})),_).dlang||document.documentElement.lang;["en","fr"].includes(x)&&b.Z.changeLanguage(x),console.log("%c%s","font-size: 10px; color: #1b9aff","\n                                .((((((((((((((\n                                ((((((((((((()\n                                ((((((((((((+   /\n                                (((((((((((+   ((\n                     ...        ((((+++(((/   (((        ...           ....\n)(()       .(()   +(((++(((+    ((((+   (/   ((((    .(((((((()<   .((()++(((+\n -(((     /((+  /((/     .(((   ((((()     .(((((   ((((     )<.  /((/      (((.\n   (((.  /((/   (()        (((   \\+++++....+++++.  )(((           (()        (((\n    )(((((((    (((        (((        /((((        )(((           (((       .(((\n     \\((((-     -(().    /((+        (((-(((.       \\(().   .+()- -(().    <((+\n      )(+-        )+((((((+.        (((-  (((.        )+(((((+<.    )+((((()+.\n                                   (((-\n                                 .(()\n                                )((+\nhttps://www.voxco.com/\n"),console.log("🚀 SurveyEngineJS v"+h.y.version+" © Voxco "+(new Date).getFullYear()),n(18879),window.Voxco=h.y,n(98575),s().render(o.createElement(c.zt,{store:(0,p.Bk)()},o.createElement(f,null)),document.getElementById("root"))},27494:function(e,t,n){"use strict";var r=n(25371),i=n(96900);t.Z=(0,r.QM)({simulatedBanner:{background:"#EB6725",borderBottom:[[3,"solid","#FF9300"]],boxSizing:"border-box",color:"#FFFFFF",composes:"simulated-banner",height:38,left:function(e){return e.bounds.left},lineHeight:"38px",padding:[[0,35]],position:"absolute",right:function(e){return e.bounds.right},top:0,zIndex:1},simulatedBannerMessage:{composes:"simulated-banner__message",fontFamily:function(e){return'"'+e.theme.TextFont+'", sans-serif'},fontSize:14,padding:[[0,15]]},surveyEngine:{"& .pageContainer":{height:"100%"},"& .bg-primary":function(e){return{background:e.theme.PrimaryColor}},"& .bg-secondary":function(e){return{background:e.theme.SecondaryColor}},"& .fill-primary":function(e){return{fill:e.theme.PrimaryColor}},"& .fill-secondary":function(e){return{fill:e.theme.SecondaryColor}},"& .text-primary":function(e){return{color:e.theme.PrimaryColor}},"& .text-secondary":function(e){return{color:e.theme.SecondaryColor}},"& .flex":{flex:1},"& .clear":{display:"block",clear:"both"},"& label":{cursor:"inherit"},"& h1, h2, h3, h4, h5, h6":{margin:0,padding:0,fontFamily:function(e){return'"'+e.theme.TitleFont+'", sans-serif'},fontWeight:function(e){var t=e.theme;return i.On(t.TitleFontVariant,400)},fontStyle:function(e){var t=e.theme;return t.TitleFontVariant?i.pJ(t.TitleFontVariant):"normal"},textAlign:function(e){var t=e.theme;return i.E4(t.TitleTextAlign)}},"& h1":{fontSize:function(e){var t=e.theme;return i.yv(t.TitleFontSize*t.HeaderSizes.H1,t.HeaderSizes.H1*t.TextFontSize+"px")},lineHeight:function(e){var t=e.theme;return i.Dp(t.TitleFontSize*t.HeaderSizes.H1,32,t.BaseFontSize)},marginBottom:"1.5em"},"& h2":{fontSize:function(e){var t=e.theme;return i.yv(t.TitleFontSize*t.HeaderSizes.H2,t.HeaderSizes.H2*t.TextFontSize+"px")},lineHeight:function(e){var t=e.theme;return i.Dp(t.TitleFontSize*t.HeaderSizes.H2,32,t.BaseFontSize)},marginBottom:"0.5em"},"& h3":{fontSize:function(e){var t=e.theme;return i.yv(t.TitleFontSize*t.HeaderSizes.H3,t.HeaderSizes.H3*t.TextFontSize+"px")},lineHeight:function(e){var t=e.theme;return i.Dp(t.TitleFontSize*t.HeaderSizes.H3,32,t.BaseFontSize)}},"& h4":{fontSize:function(e){var t=e.theme;return i.yv(t.TitleFontSize*t.HeaderSizes.H4,t.HeaderSizes.H4*t.TextFontSize+"px")},lineHeight:function(e){var t=e.theme;return i.Dp(t.TitleFontSize*t.HeaderSizes.H4,32,t.BaseFontSize)}},background:function(e){return e.theme.PageBackground},composes:"survey-engine",display:"block",fontFamily:function(e){return'"'+e.theme.TextFont+'", sans-serif'},fontSize:function(e){var t=e.theme;return i.yv(t.TextFontSize)},fontStyle:function(e){var t=e.theme;return i.pJ(t.TextFontVariant)},fontWeight:function(e){var t=e.theme;return i.On(t.TextFontVariant,400)},lineHeight:function(e){var t=e.theme;return i.Dp(t.TextFontSize,t.LineHeight,t.BaseFontSize)},overflow:function(e){return e.mobilePreview&&"hidden"},overflowY:"scroll",position:"absolute",bottom:function(e){return e.bounds.bottom},left:function(e){return e.bounds.left},right:function(e){return e.bounds.right},top:function(e){return e.bounds.top},textSizeAdjust:"100%"}})},60791:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{d:function(){return ThemedSurveyEngine}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),react_redux__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12291),react_jss__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(25371),_containers_page_PageContainer__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(31421),_utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(11325),_shared_MobilePreview__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(65444),_SurveyEngine_styles__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(27494),_hooks_useTranslatable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(59261),_theme_DefaultTheme__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(25559),_containers_ErrorLogContainer__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(26244),_public__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(59479),_shared_FontAwesome__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(92907),_models_enums_SurveyMode__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(89482),_hooks_useReservedBounds__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(402),_debug_DebugPanel__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(49054),__assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)};function SimulatedBanner(e){var t=e.bounds,n=e.previewModeMessage,r=(0,react_jss__WEBPACK_IMPORTED_MODULE_2__.Fg)(),i=(0,_SurveyEngine_styles__WEBPACK_IMPORTED_MODULE_6__.Z)({bounds:t,theme:r});return(0,_hooks_useReservedBounds__WEBPACK_IMPORTED_MODULE_13__.Z)({top:38},[]),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:i.simulatedBanner,role:"region","aria-label":"Preview"},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_shared_FontAwesome__WEBPACK_IMPORTED_MODULE_11__.G,{icon:["far","eye"],fixedWidth:!0}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{className:i.simulatedBannerMessage,role:"alert"},n))}function SurveyEngine(_a){var bounds=_a.bounds,questionnaire=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){return e.interview.questionnaire})),simulated=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){return e.interview.respondent&&e.interview.respondent.simulated})),debugPanelVisible=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){return e.application.mode===_models_enums_SurveyMode__WEBPACK_IMPORTED_MODULE_12__.E.Preview||e.application.mode===_models_enums_SurveyMode__WEBPACK_IMPORTED_MODULE_12__.E.Test}))&&!0,mobilePreview=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){return e.mobilePreview})),simulatedBannerVisible=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){return e.application.mode!==_models_enums_SurveyMode__WEBPACK_IMPORTED_MODULE_12__.E.Normal}))&&simulated,theme=(0,react_jss__WEBPACK_IMPORTED_MODULE_2__.Fg)(),classes=(0,_SurveyEngine_styles__WEBPACK_IMPORTED_MODULE_6__.Z)({bounds:bounds,theme:theme,mobilePreview:mobilePreview,simulatedBannerVisible:simulatedBannerVisible}),previewModeMessage=(0,_hooks_useTranslatable__WEBPACK_IMPORTED_MODULE_7__.Z)(questionnaire,"previewModeMessage"),_b=theme,CustomCSS=_b.CustomCSS,CustomJavascript=_b.CustomJavascript;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){var e=(0,_utils__WEBPACK_IMPORTED_MODULE_4__.DB)(),t=document.getElementsByClassName("debug-pane")[0];if(null!=t){var n=t.getBoundingClientRect().height;e.style.bottom=n+"px"}}),[]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){(function customJs(console){try{eval(CustomJavascript+"\n//# sourceURL=custom.js")}catch(e){_public__WEBPACK_IMPORTED_MODULE_10__.y.error(e)}}).call(_public__WEBPACK_IMPORTED_MODULE_10__.y,{log:_public__WEBPACK_IMPORTED_MODULE_10__.y.log,error:_public__WEBPACK_IMPORTED_MODULE_10__.y.error})}),[CustomJavascript]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,simulatedBannerVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(SimulatedBanner,{bounds:bounds,previewModeMessage:previewModeMessage}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:classes.surveyEngine},debugPanelVisible&&mobilePreview?react__WEBPACK_IMPORTED_MODULE_0__.createElement(_shared_MobilePreview__WEBPACK_IMPORTED_MODULE_5__.U,{renderDesktop:function(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_containers_page_PageContainer__WEBPACK_IMPORTED_MODULE_3__._,{isDesktopPreviewView:!0})},renderMobile:function(){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_containers_page_PageContainer__WEBPACK_IMPORTED_MODULE_3__._,{isDesktopPreviewView:!1})}}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_containers_page_PageContainer__WEBPACK_IMPORTED_MODULE_3__._,{isDesktopPreviewView:null}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("style",null,CustomCSS||"")),debugPanelVisible&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_debug_DebugPanel__WEBPACK_IMPORTED_MODULE_14__.H,null))}function ThemedSurveyEngine(){var e=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){var t=e.interview;return Boolean(t.questionnaire)})),t=(0,react_redux__WEBPACK_IMPORTED_MODULE_1__.v9)((function(e){var t=e.interview;return t.theme&&t.theme.settings})),n=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return __assign(__assign({},_theme_DefaultTheme__WEBPACK_IMPORTED_MODULE_8__.Z),t)}),[t]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{role:"region","aria-live":"polite"},e?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_jss__WEBPACK_IMPORTED_MODULE_2__.kU,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_jss__WEBPACK_IMPORTED_MODULE_2__.f6,{theme:n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_hooks_useReservedBounds__WEBPACK_IMPORTED_MODULE_13__.J,null,(function(e){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(SurveyEngine,{bounds:e})})))):react__WEBPACK_IMPORTED_MODULE_0__.createElement(_containers_ErrorLogContainer__WEBPACK_IMPORTED_MODULE_9__.D,null))}},14156:function(e,t,n){"use strict";n.d(t,{U:function(){return f}});var r,i=n(67294),o=n(96486),a=n(5498),s=n(88507),c=n(95457),l=n(47103),u=n(11325),m=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)},f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getMention=function(e){return t.props.mentions[e||0]},t.getMentionValues=function(){return t.props.mentions.map((function(e){return e.value}))},t.getMentionValue=function(e){return void 0===t.getMention(e)?"":t.getMention(e).value},t.getMentionOpenEnd=function(e){return void 0===t.getMention(e)?"":t.getMention(e).openEnd},t.getLatestMentionsForVariableName=function(e){return(0,s.Bk)().getState().interview.variables.mentionsByVariableName[e]},t.updateMentionsAfterDisablingFields=function(e){(0,t.props.dispatch)((0,a.nY)(e))},t.updateQuestionFieldDisabledStatus=function(e,n){(0,t.props.dispatch)((0,a.tI)(e,n))},t.disableAndResetHybridQuestionMapppedCell=function(e){var n,r,i=t.props.question;if((null===(n=null==i?void 0:i.parent)||void 0===n?void 0:n.type)===l.ce.HybridGrid&&!(0,u.Ew)(e)){var a=e.split("&"),s=a[0],m=a[1],f=[],p=[],h=[],b={},v=(null===(r=null==i?void 0:i.parent)||void 0===r?void 0:r.rows).filter((function(e){return e.variables&&e.variables.length>0&&e.variables.find((function(e){return e.name===m}))}));v&&v.length>0&&(v[0].variables.forEach((function(e){var n;if((null===(n=e.choiceList)||void 0===n?void 0:n.length)>0){var r=t.getLatestMentionsForVariableName(e.name);r&&r.length>0&&e.choiceList.forEach((function(e){r&&r.some((function(t){return t.value===e.value}))&&h.push((0,c.yP)(e,"DisableColumns"))}))}})),v[0].variables.forEach((function(n,r){var i=s+"&"+n.name;if(h&&h.length>0){if(p.push(i),h.join(",").replace(/\s/g,"").split(",").some((function(e){return e===r.toString()}))&&e!==i){f.push(i);var o=t.getLatestMentionsForVariableName(n.name);o&&o.length>0&&function(e,t){var n;b=d(d({},b),((n={})[e]=function(e){return e.clear()},n))}(n.name)}}else p.push(i)}))),(0,o.isEmpty)(p)||t.updateQuestionFieldDisabledStatus(p,!1),(0,o.isEmpty)(f)||t.updateQuestionFieldDisabledStatus(f,!0),(0,o.isEmpty)(b)||t.updateMentionsAfterDisablingFields(b)}},t}return m(t,e),t.prototype.setMentions=function(e,t,n){var r=this.props,i=r.matrix,o=n||i;(0,r.dispatch)((0,a.F1)(e,t,o))},t.prototype.render=function(){var e=this.props.choice;return this.renderChoice(e)},t}(i.Component)},76347:function(e,t,n){"use strict";n.d(t,{J:function(){return A}});var r,i=n(67294),o=n(14156),a=n(95457),s=n(48278),c=n(25371),l=n(94184),u=n.n(l),m=(0,c.QM)((function(e){return{checkBox:{display:"inline-block",userSelect:"none",background:"transparent"},checkBoxGridCell:{composes:"check-box__grid-cell",display:"flex",height:e.GridCellMinHeight,margin:-e.GridCellPadding,alignItems:"center",justifyContent:"center","&:hover, &:focus":{color:e.PrimaryColor}},checkBoxGridCellChecked:{composes:"check-box__grid-cell--checked",color:e.PrimaryColor},checkBoxInput:{composes:"check-box__input",display:"none"}}})),d=n(38871),f=n(1509),p=n(11325),h=i.forwardRef((function(e,t){var n=e.choice,r=e.checked,o=e.gridRendering,a=e.onSelect,s=e.isDisabled,l=e.language,h=i.useState(!1),b=h[0],v=h[1],g=(0,c.Fg)(),A=m({theme:g});if(i.useImperativeHandle(t,(function(){return{select:function(){a()}}})),!o)return i.createElement(d.T,{checked:r,disabled:s,backgroundless:o});var y=(0,p.IQ)((0,f.I)(n,"TEXT",l));return i.createElement("div",{id:n.elementId+"_INPUT",role:"checkbox","aria-checked":r,"aria-label":y,tabIndex:0,onKeyPress:function(e){" "===e.key&&(a(),e.preventDefault())},onFocus:function(){return v(!0)},onBlur:function(){return v(!1)},onClick:function(){return a()},onMouseOver:function(){return v(!0)},onMouseOut:function(){return v(!1)},className:u()(A.checkBox,o&&A.checkBoxGridCell,o&&r&&A.checkBoxGridCellChecked)},i.createElement(d.T,{checked:r,disabled:s,hover:b,backgroundless:o}))})),b=n(20828),v=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)},A=function(e){function t(t){var n=e.call(this,t)||this;return n.onSelect=function(){n.updateValue(),n.disableAndResetHybridQuestionMapppedCell(n.props.executeUpdateForIdAfterSelection)},n.state={checked:t.isSelected},n}return v(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.state.checked!==e.isSelected&&this.setState({checked:e.isSelected})},t.prototype.updateValue=function(){var e=this;this.props.isDisabled||(this.setState((function(e){var t=g({},e);return t.checked=!e.checked,t})),this.setMentions(this.props.variable.name,(function(t){var n=(0,a.Ag)(e.props.choice,"Exclusive");return void 0!==e.props.variable.choiceList&&e.props.variable.choiceList.filter((function(t){return e.props.choice.index!==t.index})).forEach((function(e){(n||(0,a.Ag)(e,"Exclusive"))&&(t=t.removeValue(e.value))})),t.toggle(e.props.choice.value,e.props.openEnd)})))},t.prototype.renderChoice=function(e){return i.createElement(i.Fragment,null,i.createElement(h,g({},(0,s.V)(this.props),{choice:e,ref:this.props.choiceRef,id:e.elementId+"_INPUT",name:this.props.variable.name,value:e.value,onSelect:this.onSelect,checked:this.state.checked,isDisabled:this.props.isDisabled})),i.createElement(b.Z,g({},(0,s.V)(this.props),{choice:e,gridRendering:this.props.gridRendering})))},t}(o.U)},85567:function(e,t,n){"use strict";n.d(t,{d:function(){return x}});var r=n(67294),i=n(14156),o=n(95457),a=n(11325),s=n(48278),c=n(1509),l=n(25371),u=n(94184),m=n.n(u),d=n(96900),f=(0,l.QM)({imageChoice:{composes:"image-choice",margin:function(e){var t=e.theme;return[[t.ChoiceSpacing,t.ChoiceSpacing/4]]},textAlign:"center",userSelect:"none"},imageChoiceCollapsed:{composes:"image-choice-collapsed",flexDirection:"row",justifyContent:"start",margin:function(e){return[[0,0,e.theme.ChoiceSpacing,0]]}},imageChoiceTarget:{background:function(e){return e.theme.ControlBackground},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},composes:"image-choice__target",fontSize:0,lineHeight:0,cursor:"pointer",outline:"none",overflow:"hidden",position:"relative",verticalAlign:"middle"},imageChoiceOverlay:{bottom:0,composes:"image-choice__overlay",left:0,position:"absolute",right:0,top:0,transition:"background 200ms"},imageChoiceOverlaySelected:{background:function(e){var t=e.theme;return d.Fq(t.PrimaryColor,.3)},composes:"image-choice__overlay--selected"},imageChoiceOverlayActive:{background:function(e){var t=e.theme;return e.selected?d.Fq(t.PrimaryColor,.5):d.Fq("#999",.5)},composes:"image-choice__overlay--active"},imageChoiceImage:{height:"100%",width:"100%"},imageChoiceText:{display:"inline-block",composes:"image-choice__text",cursor:"pointer",textAlign:"left",lineHeight:function(e){return e.theme.LineHeight+"px"},marginTop:9.67},imageChoiceCollapsedText:{composes:"image-choice-collapsed__text",margin:[[0,9.67]]},imageChoiceTextSelected:{fontWeight:"bolder",color:function(e){return e.theme.PrimaryColor}},imageDisabled:{opacity:.5,pointerEvents:"none"}}),p=n(7495),h=n(59261),b=n(65536),v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};function g(e){var t=(0,o.yP)(e.parent,"ImageWidth"),n=(0,o.yP)(e,"ImageWidth",t),r=(0,o.yP)(e.parent,"ImageHeight");return{width:n,height:(0,o.yP)(e,"ImageHeight",r)}}function A(e){var t=e.choice,n=e.onSelect,i=e.gridRendering,a=e.selected,s=e.disabled,c=(0,l.Fg)(),u=f({theme:c,selected:a}),d=r.useRef(),A=(0,p.Z)(),y=(0,h.Z)(t,"TEXT"),C=(0,h.Z)(t,"ImageUrl"),_=r.useState(!1),x=_[0],w=_[1],T=t.elementId+"_INPUT",E=t.elementId+"_LABEL",S=function(e,t){var n=(0,o.Wd)(e,b.h,"ShowChoiceText");return null!=n&&n!==b.h.No&&!t}(A,i),k=!1===i;return r.createElement("div",{className:m()(u.imageChoice,k&&u.imageChoiceCollapsed,s&&u.imageDisabled)},C&&r.createElement("div",{id:T,className:m()(u.imageChoiceTarget,s&&u.imageDisabled),ref:d,role:"checkbox","aria-checked":a,"aria-label":y,tabIndex:0,style:v({},g(A)),onMouseDown:s?void 0:function(e){return e.preventDefault()},onFocus:s?void 0:function(){return w(!0)},onBlur:s?void 0:function(){return w(!1)},onMouseOver:s?void 0:function(){return w(!0)},onMouseOut:s?void 0:function(){return w(!1)},onClick:s?void 0:n,onKeyDown:s?void 0:function(e){e.target===d.current&&" "===e.key&&(n(),e.preventDefault())}},r.createElement("div",{className:m()(u.imageChoiceOverlay,x&&u.imageChoiceOverlayActive,a&&u.imageChoiceOverlaySelected,s&&u.imageDisabled)}),r.createElement("img",{className:m()(u.imageChoiceImage,s&&u.imageDisabled),src:C,alt:"","data-selected":String(a)})),S&&r.createElement("div",{id:E,className:m()(u.imageChoiceText,k&&u.imageChoiceCollapsedText,a&&u.imageChoiceTextSelected,s&&u.imageDisabled),onMouseOver:s?void 0:function(){return w(!0)},onMouseOut:s?void 0:function(){return w(!1)},onClick:s?void 0:function(){n(),event.preventDefault()},onMouseDown:function(e){return e.preventDefault()},dangerouslySetInnerHTML:{__html:y}}))}var y,C=(y=function(e,t){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},y(e,t)},function(e,t){function n(){this.constructor=e}y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChoiceSelected=function(){(0,a.Fz)(),t.props.isDisabled||(t.setMentions(t.props.variable.name,(function(e){var n=(0,o.Ag)(t.props.choice,"Exclusive")||"1"===t.max(t.props.question);if(void 0!==t.props.variable.choiceList)for(var r=0,i=t.props.variable.choiceList;r<i.length;r++){var a=i[r];a.index!==t.props.choice.index&&(n||(0,o.Ag)(a,"Exclusive"))&&(e=e.removeValue(a.value))}return e.toggle(t.props.choice.value,t.props.openEnd)})),t.disableAndResetHybridQuestionMapppedCell(t.props.executeUpdateForIdAfterSelection))},t}return C(t,e),t.prototype.min=function(e){return(0,o.yP)(e,"MinRequiredAnswers")},t.prototype.max=function(e){return(0,o.yP)(e,"MaxAllowedAnswers")},t.prototype.getChoiceLabel=function(e){return(0,c.I)(e,"TEXT",this.props.language)},t.prototype.renderChoice=function(e){return r.createElement(A,_({},(0,s.V)(this.props),{selected:this.props.isSelected,gridRendering:this.props.gridRendering,onSelect:this.onChoiceSelected,choice:e,disabled:this.props.isDisabled}))},t}(i.U)},96994:function(e,t,n){"use strict";n.d(t,{Y:function(){return y}});var r,i=n(67294),o=n(14156),a=n(47103),s=n(48278),c=n(25371),l=n(94184),u=n.n(l),m=(0,c.QM)((function(e){return{radio:{display:"inline-block",userSelect:"none",background:"transparent"},radioGridCell:{composes:"radio__grid-cell",display:"flex",height:e.GridCellMinHeight,margin:-e.GridCellPadding,alignItems:"center",justifyContent:"center","&:hover, &:focus":{color:e.PrimaryColor}},radioGridCellChecked:{composes:"radio__grid-cell--checked",color:e.PrimaryColor},radioInput:{composes:"radio__input",display:"none"}}})),d=n(69886),f=n(1509),p=n(11325),h=i.forwardRef((function(e,t){var n=e.choice,r=e.checked,o=e.gridRendering,a=e.onSelect,s=e.variable,l=e.disabled,h=e.language,b=i.useState(!1),v=b[0],g=b[1],A=(0,c.Fg)(),y=m({theme:A});if(i.useImperativeHandle(t,(function(){return{select:function(){a()}}})),!o)return i.createElement(d.X,{checked:r,disabled:l,backgroundLess:o});var C=(0,p.IQ)((0,f.I)(n,"TEXT",h));return i.createElement("div",{id:n.elementId+"_INPUT",role:"radio","aria-checked":r,"aria-label":C,tabIndex:0,onKeyDown:function(e){if(" "===e.key&&(a(),e.preventDefault()),"ArrowRight"===e.key||"ArrowLeft"===e.key){var t=s.choiceList,r=t.indexOf(n)+("ArrowRight"===e.key?1:-1);if(t[r]){var i=document.getElementById(t[r].elementId+".INPUT");i&&(i.focus(),i.click(),e.preventDefault())}}},onFocus:function(){return g(!0)},onBlur:function(){return g(!1)},onClick:function(){return a()},onMouseOver:function(){return g(!0)},onMouseOut:function(){return g(!1)},className:u()(y.radio,o&&y.radioGridCell,o&&r&&y.radioGridCellChecked)},i.createElement(d.X,{checked:r,disabled:l,hover:v,backgroundLess:o}))})),b=n(20828),v=n(5498),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onSelect=function(){t.updateValue(t.props.choice),t.disableAndResetHybridQuestionMapppedCell(t.props.executeUpdateForIdAfterSelection)},t}return g(t,e),t.prototype.updateValue=function(e){var t=this;this.props.isDisabled||(this.props.question.type===a.ce.RespondentLanguage&&this.props.dispatch((0,v.D0)(e.value)),this.props.question.type===a.ce.RespondentTimeZone&&this.props.dispatch((0,v.hy)(e.value)),this.setMentions(this.props.variable.name,(function(n){return n.set(e.value,t.props.openEnd)})))},t.prototype.renderChoice=function(e){var t=this.props,n=t.isSelected,r=t.isDisabled,o=t.variable,c=t.gridRendering,l=t.choiceRef;return i.createElement(i.Fragment,null,i.createElement(h,A({},(0,s.V)(this.props),{ref:l,variable:o,choice:e,name:o.name,value:e.value,onSelect:this.onSelect,checked:n,disabled:r})),i.createElement(b.Z,A({},(0,s.V)(this.props),{choice:e,gridRendering:c,fontWeight:this.props.question.type===a.ce.TextHighlighter?400:void 0})))},t}(o.U)},85659:function(e,t,n){"use strict";n.d(t,{f:function(){return E}});var r=n(67294),i=n(40029),o=n(95457),a=n(11325),s=n(78632),c=n(1509),l=n(25371),u=n(94184),m=n.n(u),d=n(67814),f=n(16856),p=n(29182),h=n(68088),b=n(46131);function v(e){var t=e.options,n=e.minLength,i=e.maxResults,o=e.maxResultsMessage,s=e.searchMethod,c=e.required,u=e.id,v=e.labelId,g=e.value,A=e.onBlur,y=e.onChange,C=e.size,_=e.onOptionSelected,x=r.useRef(),w=r.useState(0),T=w[0],E=w[1],S=r.useState(),k=S[0],B=S[1],N=r.useState(!1),M=N[0],D=N[1],I=r.useState(!1),O=I[0],P=I[1],R=(0,l.Fg)(),L=(0,p.Z)({theme:R,size:C,autoComplete:!0});r.useLayoutEffect((function(){if(O)return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),function(){window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)};function e(){var e=x.current.getBoundingClientRect();(0,f.Xy)(T,e.width)||E(e.width)}}),[O,T]);var V=t.find((function(e){return g.trim().toLowerCase()===e.label.trim().toLowerCase()}));function F(e){document.getElementById(e.id).focus()}function q(e){y(e.label),_&&_(e.label)}r.useEffect((function(){k&&document.getElementById(k.id).focus()}),[k,O]),r.useEffect((function(){function e(e){x.current.contains(e.target)||P(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var U=r.useMemo((function(){if(n>0&&((0,a.Ew)(g)||g.length<n))return[];var e=t,r=g.trim().toLowerCase();if((0,a.Ew)(r))return e;switch(s){case"Exact":e=e.filter((function(e){return e.recalledLabel.trim().toLowerCase()===r}));break;case"StartsWith":e=e.filter((function(e){return e.recalledLabel.trim().toLowerCase().startsWith(r)}));break;default:e=e.filter((function(e){return e.recalledLabel.trim().toLowerCase().includes(r)}))}return e}),[g,n,t,s]),H=i&&U.length>i,W=U.slice(0,i||50);function z(){var e=W.indexOf(k),t=Math.max(0,e-1);F(W[t])}function j(){var e=W.indexOf(k),t=Math.min(W.length-1,e+1);F(W[t])}function G(){P(!1)}function Q(){P(!0)}return r.useEffect((function(){!O&&M&&g.length>=(n||0)&&Q()}),[g,n,O,M]),r.createElement(b.Z,{size:C},r.createElement("div",{ref:x,className:m()(L.select,M&&L.selectFocused,O&&L.selectExpanded),onBlur:function(e){var t=e.relatedTarget||document.activeElement;x.current.contains(t)||(G(),A())}},r.createElement("input",{id:u,"aria-labelledby":v,tabIndex:0,type:"text",className:L.selectContent,onKeyDown:function(e){"Enter"===e.key&&(Q(),e.preventDefault()),"ArrowUp"===e.key&&(Q(),z(),e.preventDefault()),"ArrowDown"===e.key&&(Q(),j(),e.preventDefault())},onBlur:function(){return D(!1)},onFocus:function(){n||Q(),D(!0)},value:(0,f.AK)(g),autoComplete:"off",onChange:function(e){return y(e.target.value)}}),r.createElement(d.G,{icon:O?"caret-up":"caret-down",className:m()(L.icon,L.iconCaret)}),r.createElement("ul",{role:"listbox",className:m()(L.listbox,L.dropDown,!O&&L.hidden,O?L.listboxExpanded:""),style:{minWidth:T},tabIndex:-1,"aria-required":c,"aria-activedescendant":V&&V.id},W.map((function(e){return r.createElement("li",{id:e.id,key:e.id,role:"option",onClick:function(t){q(e),G(),t.preventDefault()},onFocus:function(){return B(e)},onBlur:function(){return B(void 0)},onKeyDown:function(t){return function(e,t){if("Enter"===t.key&&(q(e),G(),t.preventDefault()),"Escape"===t.key&&(G(),t.preventDefault()),"ArrowUp"===t.key&&(z(),t.preventDefault()),"ArrowDown"===t.key)return j(),void t.preventDefault();"Home"===t.key&&(F(W[0]),t.preventDefault()),"End"===t.key&&(F(W[W.length-1]),t.preventDefault())}(e,t)},className:L.option,tabIndex:-1,"aria-selected":V===e},r.createElement(h.n,{text:e.label}))})),H&&r.createElement("li",{className:L.message,tabIndex:-1},r.createElement(h.n,{text:o.replace(/{max}/,i.toString())})))))}var g,A=n(55796),y=n(39822),C=n(17837),_=n(88507),x=n(14400),w=(g=function(e,t){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},g(e,t)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)},E=function(e){function t(t){var n=e.call(this,t)||this;return n.maxValue=function(){return 1},n.setChoicesAsMentions=function(e,t){var r=t.slice(0,n.maxValue()||t.length).map((function(e){return{value:e.value}}));r.length&&n.setMentions(n.props,e.name,(function(e){return e.clear().add(r)}),void 0,!0)},n.setDefaultChoices=function(){var e=n.props,t=e.question,r=e.sequencedVariables[0].choiceList,i=(void 0===r?[]:r).filter((function(e){return n.isDefault(e)&&(0,y.pn)(e)}))[0];i&&n.setChoicesAsMentions(t,[i])},n.onChange=function(e){return n.setState({value:e})},n.onOptionSelected=function(e){return n.setState({value:e},(function(){n.onBlur()}))},n.onBlur=function(){var e=n.props.question,t=e.variables[0],r=T(T({},n.state),{focus:!1}),i=r.value,s=n.getAutoCompleteAnswer(n.props,i),c=(0,o.Ag)(e,"InvalidAsOpenEnd");if(!(0,a.Ew)(null==i?void 0:i.trim())&&void 0===s&&c){var l=(0,o.yP)(e,"OpenEndAnswerCode","0");n.setMentions(n.props,t.name,(function(e){return e.set(l,i.trim())}))}else void 0!==s?n.setMentions(n.props,t.name,(function(e){return e.set(s.value)})):void 0===s&&(r.value="",n.setMentions(n.props,t.name,(function(e){return e.clear()})));n.setState(r)},n.state={value:"",focus:!1},n}return w(t,e),t.prototype.getChoiceText=function(e,t){return(0,a.IQ)((0,c.I)(e,"TEXT",t||this.props.language))},t.prototype.isDefault=function(e){return e&&!(0,a.Ew)(e.value)&&(0,o.Ag)(e,"Default")},t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n),this.hasMentions(n)||this.setDefaultChoices(),this.updateState(n)},t.prototype.willUpdateMentions=function(t,n){e.prototype.willUpdateMentions.call(this,t,n),this.updateState(n)},t.prototype.componentDidMount=function(){var e=this;this.setState((function(t){return T(T({},t),{input:e.input})}))},t.prototype.hasAnswerWithValue=function(e,t){return!(0,a.Ew)(t)&&e.sequencedVariables[0].choiceList.some((function(e){return e.value===t}))},t.prototype.updateState=function(e){var t=this;this.setState((function(n){var r=t.getMention(e),i=T({},n);if(!r)return i.value="",i;var o=r.value,s=r.openEnd,c=e.question.variables[0],l=c.choiceList.find((function(e){return!(0,a.Ew)(e.value)&&e.value===o}));return(0,a.Ew)(s)?l&&t.shouldDisplayMentionValue(c,l.value)&&(i.value=t.getChoiceText(l,e.language)):i.value=s,i}))},t.prototype.getAutoCompleteAnswer=function(e,t){var n=this,r=t.trim().toLowerCase();return e.sequencedVariables[0].choiceList.find((function(e){return n.getChoiceText(e).trim().toLowerCase()===r}))},t.prototype.getValue=function(){var e=this.state.value.trim().toLowerCase(),t=this.getAutoCompleteAnswer(this.props,e),n=(0,o.Ag)(this.props.question,"InvalidAsOpenEnd");return""!==e&&void 0===t&&n?(0,o.yP)(this.props.question,"OpenEndAnswerCode","0"):t&&t.value?t.value:""},t.prototype.validate=function(e){return(new s.O).build()},t.prototype.getRecalledLabel=function(e){var t=(0,_.Bk)().getState().interview;return C.A.evaluateRecalls(t,e,x.a.Text)},t.prototype.renderQuestion=function(e){var t=this,n=this.props,i=n.theme,a=n.language,s=n.sequencedVariables,l=this.state.value,u=(0,o.Yu)(e,"MinSearchLength",0),m=(0,o.Yu)(e,"MaxResults",50),d=(0,c.I)(i,"AutoCompleteMaxResults",a),f=(0,o.yP)(e,"SearchOption"),p=s[0],h=p.choiceList.map((function(e){var n=(0,c.I)(e,"Text",a);return{id:e.elementId,value:e.value,label:n,recalledLabel:t.getRecalledLabel(n)}}));return r.createElement(v,{id:p.elementId+"_INPUT",labelId:e.elementId+"_LABEL",options:h,minLength:u,maxResults:m,maxResultsMessage:d,searchMethod:f,value:this.getRecalledLabel(l),onChange:this.onChange,onBlur:this.onBlur,size:(0,A.dp)(e),onOptionSelected:this.onOptionSelected})},t}(i.X)},40029:function(e,t,n){"use strict";n.d(t,{X:function(){return w}});var r,i=n(67294),o=n(16856),a=n(47103),s=n(95457),c=n(27715),l=n(78632),u=n(11325),m=n(59479),d=n(3525),f=n(55796),p=n(50647),h=n(39822),b=n(1509),v=n(5498),g=n(34370),A=n(88507),y=n(47643),C=n(21295),_=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)},w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setCarrouselActiveVariable=function(e){var n,r=t.props.sequencedVariables,i=null===(n=(0,A.Bk)().getState().interview.carrousel[e+"_statement"])||void 0===n?void 0:n.activeVariableIndex;return void 0!==i&&r[i]},t.getLatestMentionsForVariableName=function(e){return(0,A.Bk)().getState().interview.variables.mentionsByVariableName[e]},t.updateMentionsAfterDisablingFields=function(e){(0,t.props.dispatch)((0,v.nY)(e))},t.updateQuestionFieldDisabledStatus=function(e,n){(0,t.props.dispatch)((0,v.tI)(e,n))},t.disableAndResetHybridQuestionMapppedCell=function(e){var n,r,i=t.props.question;if((null===(n=null==i?void 0:i.parent)||void 0===n?void 0:n.type)===a.ce.HybridGrid&&!(0,u.Ew)(e)){var c=e.split("&"),l=c[0],m=c[1],d=[],f=[],p=[],h={},b=(null===(r=null==i?void 0:i.parent)||void 0===r?void 0:r.rows).filter((function(e){return e.variables&&e.variables.length>0&&e.variables.find((function(e){return e.name===m}))}));b&&b.length>0&&(b[0].variables.forEach((function(e){var n;if((null===(n=e.choiceList)||void 0===n?void 0:n.length)>0){var r=t.getLatestMentionsForVariableName(e.name);r&&r.length>0&&e.choiceList.forEach((function(e){r&&r.some((function(t){return t.value===e.value}))&&p.push((0,s.yP)(e,"DisableColumns"))}))}})),b[0].variables.forEach((function(n,r){var i=l+"&"+n.name;if(p&&p.length>0){if(f.push(i),p.join(",").replace(/\s/g,"").split(",").some((function(e){return e===r.toString()}))&&e!==i){d.push(i);var o=t.getLatestMentionsForVariableName(n.name);o&&o.length>0&&function(e,t){var n;h=x(x({},h),((n={})[e]=function(e){return e.clear()},n))}(n.name)}}else f.push(i)}))),(0,o.xb)(f)||t.updateQuestionFieldDisabledStatus(f,!1),(0,o.xb)(d)||t.updateQuestionFieldDisabledStatus(d,!0),(0,o.xb)(h)||t.updateMentionsAfterDisablingFields(h)}},t.getMentions=function(e,n){var r=t.setCarrouselActiveVariable(e.question.id)||t.getQuestionVariable(e.question.variables);return(e.mentions[(n||r.name).toUpperCase()]||[]).filter((function(t){return t.matrix===e.matrix}))},t.getMention=function(e,n,r){return t.getMentions(e,n).find((function(e){return e.index===(r||1)}))},t.getMentionValue=function(e,n,r){return(t.getMention(e,n,r)||{value:""}).value},t.getMentionOpenEnd=function(e,n,r){return(t.getMention(e,n,r)||{openEnd:""}).openEnd},t.axisHasMentions=function(e){return e.variables.some((function(e){return!(0,o.xb)(t.getMentions(t.props,e.name))}))},t.getFiles=function(e,n){var r=t.getQuestionVariable(e.question.variables);return(e.files[(n||r.name).toUpperCase()]||[]).filter((function(t){return t.matrix===e.matrix}))},t.getFile=function(e,n){return t.getFiles(e,n)[0]},t.isSoftPrompt=function(e){var t=e.questionnaire,n=e.question;return(0,d.s5)(t)&&(0,f.Mg)(n)},t.onAutoAdvanceTimer=function(){var e=t.props.onNavigation;t.autoAdvanceTimer=null,e(p.N.Next)},t.truncateOpenEnd=function(e,t){var n=(0,s.Yu)(e,"MaxOpenEndLength",-1);return n>0&&t.length>n?t.substring(0,n):t},t.parentCustomError=function(e){var n=t.props.language;return(0,o.xb)(e)?null:e.type===a.ce.StarRatingGrid?(0,b.I)(e.columns[0],"CustomErrorMessage",n):(0,b.I)(e,"CustomErrorMessage",n)},t.validateHandler=function(e){return t.shouldValidate()?t.validate(e):(new l.O).build()},t.isOpenEndRequired=function(e){return!(0,s.Z9)(e,"EnforceOpenEnd")||(0,s.Ag)(e,"EnforceOpenEnd")},t.isAxisAnswerRequired=function(e){return!(0,s.Z9)(e,"AnswerRequired")||(0,s.Ag)(e,"AnswerRequired")},t.isChoiceVisible=function(e,n,r){var i;return void 0===r&&(r=null===(i=n.sequencedVariables)||void 0===i?void 0:i[0]),t.hasChoiceWithValue(e,r)},t.isChoiceNoLongerVisible=function(e,n){return t.isChoiceVisible(e,n)&&!t.isChoiceVisible(e,t.props)},t.isValidChoice=function(e){var n=t.props.question,r=t.getQuestionVariable(n.variables);return t.hasChoiceWithValue(e,r)},t.hasChoiceWithValue=function(e,t){return t.choiceList.some((function(t){return t.value===e}))},t.removeUnavailableMentions=function(e){t.getMentions(t.props,e.name).forEach((function(n){!t.shouldDisplayMentionValue(e,n.value)&&t.setMentions(t.props,e.name,(function(e){return e.removeValue(n.value)}))}))},t.getQuestionVariable=function(e){return e.find((function(e){return e.type!==y.x.Computed}))},t.shouldDisplayMentionValue=function(e,n){var r=e.choiceList,i=void 0===r?[]:r,o=t.props,a=o.question,c=o.sequencedVariables;if(i.length>0){var l=i.filter((function(e){return(0,s.Ag)(e,"Default")&&(0,f._N)(a)})),u=(0,f.sI)(a)?(0,f.Y_)(a):null,m=l.some((function(e){return e.value===n})),d=c.find((function(t){return t.name===e.name}));return t.isChoiceVisible(n,t.props,d)||!m&&!(n===u)}return t.isVariableComputed(a,e)||(null==c?void 0:c.find((function(t){return t.name===e.name})))},t.isVariableComputed=function(e,t){var n;return null===(n=e.variables)||void 0===n?void 0:n.find((function(e){return e.name===t.name&&e.type===y.x.Computed}))},t.setChoicesAsMentions=function(e,n){var r=n.slice(0,t.maxValue()||n.length).map((function(e){return{value:e.value}}));r.length&&t.setMentions(t.props,e.name,(function(e){return e.clear().add(r)}),void 0,!0)},t}return _(t,e),t.prototype.UNSAFE_componentWillMount=function(){var e=this.props.question;this.initializeQuestion(e,this.props)},t.prototype.componentDidMount=function(){var e=this.props.question;e!==this.renderedQuestion&&this.questionFirstRender(this.renderedQuestion=e,this.props)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.props.mentions;!(0,o.Xy)(t,e.mentions)&&this.willUpdateMentions(e.question,e)},t.prototype.componentDidUpdate=function(e,t){var n,r=this.props,i=r.question,a=r.matrix,s=r.mentions,c=r.sequencedVariables,l=(null==i?void 0:i.name)===(null===(n=e.question)||void 0===n?void 0:n.name)&&a===e.matrix,u=!(0,o.Xy)(s,e.mentions);l&&u&&this.didUpdateMentions(e.question,e),i!==this.renderedQuestion&&this.questionFirstRender(this.renderedQuestion=i,this.props),(0,o.Xy)(c,e.sequencedVariables)||this.didUpdateVariables(c,e)},t.prototype.componentWillUnmount=function(){var e=this.props.question;this.finalizeQuestion(e,this.props)},t.prototype.setMentions=function(e,t,n,r,i){var o=this.props.dispatch;this.preventAutoAdvance=i;var a=r||e.matrix;o((0,v.F1)(t,n,a))},t.prototype.isAnswerRequired=function(e,t){if(t.type===a.ce.Description)return!1;if(!(0,d.s5)(e))return!1;var n=(!(0,s.Z9)(t,"AnswerRequired")||(0,s.Ag)(t,"AnswerRequired"))&&t.parent||t;return!(0,s.Z9)(n,"AnswerRequired")||(0,s.Ag)(n,"AnswerRequired","Yes","SoftPrompt")},t.prototype.finalizeQuestion=function(e,t){},t.prototype.minValue=function(){var e=this.props.min,t=parseInt(e,10);return Number.isNaN(t)?null:t},t.prototype.maxValue=function(){var e=this.props.max,t=parseInt(e,10);return Number.isNaN(t)?null:t},t.prototype.hasMentions=function(e,t){var n=this;return this.getMentions(e,t||e.sequencedVariables[0].name).some((function(t){return n.mentionIsValid(t,e.question)}))},t.prototype.hasOpenEnd=function(e){var t=this.props.mentions,n=e.variables[0].choiceList.filter(h.vo);return Object.values(t).reduce((function(e,t){return e.concat(t)}),[]).some((function(e){return n.some((function(t){return e.value===t.value}))}))},t.prototype.isAnswerComplete=function(e){return this.hasMentions(e)},t.prototype.mentionIsValid=function(e,t){return void 0!==e.value&&null!==e.value&&e.value.length>0},t.prototype.shouldValidate=function(){return!this.props.isDisabled},t.prototype.questionFirstRender=function(e,t){},t.prototype.initializeQuestion=function(e,t){var n=this.props.dispatch,r=e.variables[0],i=(0,s.yP)(t.question,"DefaultValue");void 0!==i&&i.length>0&&!this.hasMentions(t)&&n((0,v.F1)(r.name,(function(e){return e.set(i)}))),e.variables.forEach(this.removeUnavailableMentions)},t.prototype.willUpdateMentions=function(e,t){},t.prototype.didUpdateMentions=function(e,t){var n=this.props.mentions;if(!m.y.trigger("controlDidUpdateMentions",{question:e,mentions:n}).defaultPrevented){this.autoAdvanceTimer&&window.clearInterval(this.autoAdvanceTimer);var r=e.variableNames[0];(t.mentions[r]!==n[r]||this.anyMentionChangedForQuestion(e,t))&&this.shouldAutoAdvance()&&!this.hasOpenEnd(e)&&m.y.validatePage({silent:!0}).isValid&&(this.autoAdvanceTimer=window.setTimeout(this.onAutoAdvanceTimer,300))}},t.prototype.anyMentionChangedForQuestion=function(e,t){var n=this.props.mentions;return e.type===a.ce.Carrousel&&t.mentions!==n},t.prototype.didUpdateVariables=function(e,t){},t.prototype.failValidation=function(e,t,n){var r=new l.O;return e.forEach((function(e){return r.fail(e.name,t,n)})),r.build()},t.prototype.validateSoftPrompt=function(e,t){var n,r=e.question,i=e.useClientValidation,o=e.dispatch;if(!i)return(new l.O).build();var a=null===(n=e.sequencedVariables)||void 0===n?void 0:n.filter((function(e){return e.type!==y.x.Computed}));return(0,g.VZ)(r,a,o,(0,A.Bk)().getState())},t.prototype.validateOpenEnd=function(e,t,n){var r=this.props.question,i=r.variables[0],o=r.type===a.ce.OpenEndAnswer,c=(0,u.Ew)(e)?e:e.trim(),m=(0,s.yP)(r,"CustomErrorMessage"),d=o?(0,s.Yu)(t,"MinAnswerLength",0):(0,s.Yu)(t,"MinOpenEndLength",0);return!o&&this.isOpenEndRequired(t)&&(0,u.Ew)(c)?(new l.O).fail(n||i.name,m||"IncompleteAnswer",{openEnd:t.name}).build():!(0,u.Ew)(c)&&c.length<d?(new l.O).fail(n||i.name,m||"InvalidCharactersMin",{min:String(d),openEnd:t.name}).build():(new l.O).build()},t.prototype.validate=function(e){var t=this.props,n=t.questionnaire,r=t.question,i=t.sequencedVariables,o=this.isAnswerRequired(n,r);if(!this.isAnswerComplete(this.props)&&o){if(this.isSoftPrompt(this.props))return this.validateSoftPrompt(this.props);var a=(0,s.yP)(r,"CustomErrorMessage")||this.parentCustomError(r.parent);return(new l.O).fail(i[0].name,a||"IncompleteAnswer").build()}return(new l.O).build()},t.prototype.shouldAutoAdvance=function(){var e=this.props,t=e.questionnaire,n=e.block,r=e.question,i=e.isSingleOnPage,o=(0,C.Qo)(n,r.index),a=o.flatMap((function(e){return e.variableDependencies})),s=o.flatMap((function(e){return e.variableNames}));return!a.some((function(e){return s.includes(e)}))&&!!(0,d.sC)(t,n)&&(this.preventAutoAdvance?(this.preventAutoAdvance=null,!1):!!i&&(0,f.cO)(r,this.props))},t.prototype.render=function(){var e=this.props,t=e.question,n=e.validateSignal;return i.createElement(i.Fragment,null,i.createElement(c.P,{signal:n,handler:this.validateHandler}),this.renderQuestion(t))},t}(i.Component)},78354:function(e,t,n){"use strict";n.d(t,{I:function(){return w}});var r=n(67294),i=n(25371),o=n(7863),a=n(87582),s=n(16856),c=n(96900),l=(0,i.QM)({container:{position:"relative",userSelect:"none"},group:{position:"absolute",textAlign:"center",fontWeight:"bolder"},bucket:{position:"absolute",background:function(e){var t=e.theme,n=e.color;return(0,c.Fq)(n||t.ControlBackground,t.ControlAlpha)+" 0% 0% no-repeat padding-box"},color:function(e){var t=e.theme,n=e.color;return(0,c.oF)(t,n||t.ControlBackground)},border:function(e){var t=e.theme,n=e.color;return[[t.BorderWidth,"solid",(0,c._j)(n||t.ControlBackground,t.BorderValue)]]},borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,50)},textAlign:"center",fontWeight:"bolder"},card:{backgroundColor:function(e){var t=e.theme;return e.color||t.SecondaryColor},border:function(e){var t=e.theme,n=e.color;return[[Math.max(t.BorderWidth,1),"solid",(0,c._j)(n||t.SecondaryColor,t.BorderValue)]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme,n=e.color;return(0,c.oF)(t,n||t.SecondaryColor)},position:"absolute",textAlign:"center",fontWeight:"bolder",backgroundSize:"cover",backgroundPosition:"center",cursor:"grab","&:active":{cursor:"grabbing"}}}),u=n(19881),m=n(1509),d=n(36539),f=n(23269),p=n(89222),h=n(921),b=n(22854),v=n(95457),g=n(15866),A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},y=function(e){var t=e.gestureState,n=t.down,r=t.movement,i=r[0],o=r[1],a=e.left,s=e.top,c=e.immediate;return{x:n?i:a,y:n?o:s,z:n?10:0,immediate:function(e){return(c||n)&&["x","y"].includes(e)},config:{mass:1,tension:170,friction:25}}};function C(e){var t=e.left,n=e.top,s=e.text,c=e.color,u=e.imageUrl,m=e.width,d=e.height,p=e.padding,b=e.bounds,v=e.onDrop,g=e.id,C=e.areaCode,_=(0,f.Z)(u),x=(0,f.Z)(s),w=(0,h.D)(b),T=(0,i.Fg)(),E=l({theme:T,color:c}),S=r.useRef({down:!1,movement:[0,0]}),k=(0,o.q_)((function(){return y({gestureState:S.current,left:t,top:n})})),B=k[0],N=k[1],M=w!==b;r.useLayoutEffect((function(){N(y({gestureState:S.current,left:t,top:n,immediate:M}))}),[t,n,N,M]);var D=(0,a.c0)((function(e){S.current=e,N(y({gestureState:e,left:t,top:n}));var r=e.movement,i=e.down;e.tap||!i&&v&&v(r)}),{initial:function(){return[B.x.getValue(),B.y.getValue()]},capture:!0,filterTaps:!0,bounds:A(A({},b),{right:b.right-m,bottom:b.bottom-d})});return r.createElement(o.q.div,A({style:{width:m,height:d,transform:(0,o.sX)([B.x,B.y,B.z],(function(e,t,n){return"translate("+e+"px, "+t+"px) scale("+(.01*n+1)+")"})),boxShadow:B.z.interpolate((function(e){return"0 "+.3*e+"px "+(e+3)+"px rgba(0,0,0,0.2)"})),zIndex:B.z.interpolate((function(e){return Math.max(1,1+Math.round(e))})),backgroundImage:_&&"url('"+_+"')",touchAction:"none"}},D(),{className:E.card,id:g,"data-areacode":C}),r.createElement("div",{className:"allowFocusOnQuestion",style:{padding:p},dangerouslySetInnerHTML:{__html:_?void 0:x}}))}function _(e){var t=e.text,n=e.color,o=e.width,a=e.height,s=e.lineHeight,c=e.left,u=e.top,m=e.id,d=(0,i.Fg)(),f=l({theme:d,color:n});return r.createElement("div",{className:f.bucket,style:{width:o,height:a,lineHeight:s+"px",left:c,top:u},dangerouslySetInnerHTML:{__html:t},id:m})}function x(e){var t=e.text,n=e.width,o=e.height,a=e.lineHeight,s=e.left,c=e.top,u=(0,i.Fg)(),m=l({theme:u});return r.createElement("div",{className:m.group,style:{width:n,height:o,lineHeight:a+"px",left:s,top:c},dangerouslySetInnerHTML:{__html:t}})}function w(e){var t=e.question,n=e.sequencedVariables,o=e.validateSignal,a=(0,u.Z)()[0],c=r.useState([]),f=c[0],h=c[1],A=(0,i.Fg)(),y=l({theme:A}),w=r.useRef(),T=(0,d.L)(w).innerWidth,E=n[0].choiceList,S=.02*T,k=.02*T,B=.03*T,N=(0,s.uZ)(.02*T,12,19),M=3*N,D=T/2-k/2,I=(0,s.uZ)(.6*(D-2*S),0,200),O=.02*I,P=(0,p.cc)(),R=(0,p.or)(t.variableNames),L=r.useCallback((function(e){return(0,m.I)(e,"group",a)}),[a]),V=r.useCallback((function(e){var t=R[e.name]||[];return t[0]&&t[0].value}),[R]),F=r.useMemo((function(){return n.filter((function(e){return void 0===V(e)}))}),[n,V]),q=r.useMemo((function(){return(0,s.jj)(n.map(L))}),[n,L]),U=M+I+S,H=Math.ceil(E.length/2)*(U+k),W=Math.max(Math.ceil(q.length/2),1)*(U+k),z=H+W,j=r.useMemo((function(){return{top:-90,bottom:z+90,left:-90,right:T+90}}),[T,z]);(0,b.V$)(o,(0,b.fV)(t,n));var G=function(e,t){return f.indexOf(e.id)-f.indexOf(t.id)},Q=function(e){var t=V(e),n=L(e),r=E.findIndex((function(e){return e.value===t}));if(-1===r){var i=q.indexOf(n);return H+Math.floor(i/2)*(U+k)+M}return Math.floor(r/2)*(U+k)+M},K=function(e){var t=V(e),r=E.find((function(e){return e.value===t})),i=L(e),o=r?function(e){return n.filter((function(t){return V(t)===e.value})).sort(G)}(r):function(e){return F.filter((function(t){return L(t)===e})).sort(G)}(i),a=(0,s.uZ)((D-S-I)/o.length,0,B),c=r?E.indexOf(r):q.indexOf(i),l=o.indexOf(e);return c%2*(T/2+k/2)+l*a+S};return r.createElement("div",{className:y.container,ref:w,style:{height:z,fontSize:N+"px"}},n[0].choiceList.map((function(e,t){return r.createElement(_,{id:e.elementId,key:e.name,color:(0,v.yP)(e,"Color"),text:(0,m.I)(e,"text",a),top:Math.floor(t/2)*(U+k),left:t%2*(T/2+k/2),width:D,height:U,lineHeight:M})})),q.map((function(e,t){return r.createElement(x,{key:e,text:e,top:H+Math.floor(t/2)*(U+k),left:t%2*(T/2+k/2),width:D,height:U,lineHeight:M})})),n.sort(G).map((function(t){var n,i=function(e,t){var n=function(e,t,n){return(function(e,t,n){return function(e,t){var n=e.question.variables[0];return(e.mentions[(t||n.name).toUpperCase()]||[]).filter((function(t){return t.matrix===e.matrix}))}(e,t).find((function(e){return 1===e.index}))}(e,t)||{value:""}).value}(e,t.name);return(0,g.n)(t,n)}(e,t);return r.createElement(C,{id:t.elementId,key:t.name,color:(0,v.yP)(t,"Color"),text:(0,m.I)(t,"text",a),imageUrl:(0,m.I)(t,"imageUrl",a),onDrop:(n=t,function(e){var t=e[0],r=e[1],i=t+I/2,o=r+I/2,a=Math.floor(o/U),s=(i<T/2?0:1)+2*a,c=s>=0&&s<E.length?s:void 0;if(void 0!==c){var l=E[c];P(n.name,(function(e){return e.set(l.value)}))}else P(n.name,(function(e){return e.clear()}));h(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(f.filter((function(e){return e!==n.id})),[n.id]))}),top:Q(t),left:K(t),width:I,height:I,padding:O,bounds:j,areaCode:void 0!==i?i.value:"none"})})))}},86507:function(e,t,n){"use strict";n.d(t,{O:function(){return S}});var r=n(67294),i=n(25371),o=n(12291),a=n(87144),s=n.n(a),c=n(5498),l=n(96900),u="resize-carousel",m="crop-content",d=(0,i.QM)({container:{position:"relative",width:function(e){return e.isMobileView?"100%":"auto"}},statementsContainer:{width:function(e){var t=e.isMobileView,n=t?"100%":"auto";return e.theme.ContentResponsivenessOption===m&&t&&(n="293px"),n},display:"flex",overflowX:"hidden",scrollBehavior:"smooth",margin:"0 auto",justifyContent:"center"},statement:{width:function(e){var t=e.isMobileView,n=t?"293px":"460px";return e.theme.ContentResponsivenessOption!==m||t||(n="372px"),n},height:function(e){var t=e.isMobileView,n=e.theme,r="460px";return n.ContentResponsivenessOption!==m||t?t&&n.ContentResponsivenessOption!==u?r="293px":n.ContentResponsivenessOption===u&&(r="auto"):r="372px",r},backgroundColor:function(e){return e.color},color:"#555555",textAlign:"center",minWidth:function(e){return e.isMobileView?"100%":""},overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:function(e){return e.justifyContent},background:function(e){var t=e.theme,n=e.color;return""+(t.ShowStatementBackgroundSettings?(0,l.Fq)(null!=n?n:t.ControlBackground,t.StatementBackgroundAlpha):(0,l.Fq)(t.ControlBackground,0))},borderRadius:function(e){var t,n=e.theme;return t=e.isMobileView?293:n.ContentResponsivenessOption===m?372:460,(n.ShowStatementBackgroundSettings?Math.min(n.CustomBorderValue?n.StatementBorderRadius:n.ChoiceListBackgroundBorderRadius,t/2):"")+"px"},"& .statementTextContent":{padding:"20px",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:"1.2"},"& .statementTextContent:empty":{display:"none"},"& .image-wrapper":{display:"flex",justifyContent:"center",width:function(e){return e.isMobileView?"100%":"auto"},height:function(e){var t=e.theme,n=e.isMobileView,r=t.ContentResponsivenessOption===u?"auto":"100%";return t.ContentResponsivenessOption!==m||n||(r="80%"),r},flex:1,"& .image-element":{borderRadius:function(e){var t=e.theme;if(!t.ShowStatementBackgroundSettings||!t.CustomBorderValue){if(100===t.ChoiceListBackgroundBorderRadius)return"20px";if(15===t.ChoiceListBackgroundBorderRadius)return"8px"}return t.ShowStatementBackgroundSettings&&0===t.StatementBackgroundAlpha?t.StatementBorderRadius+"px":""}}},"& .crop-image":{width:function(e){return e.isMobileView?"293px":"372px"},height:function(e){return e.isMobileView?"235px":"301px"},objectFit:"cover",objectPosition:"center center"},"& .cropContentImageOnly":{height:function(e){return e.isMobileView?"293px":"372px"}},"& .fade-in-element":{animation:"mbsc-anim-f-in 2s"}},navigationButtonsPanel:{textAlign:"center",display:"flex",justifyContent:function(e){return e.justifyContent},marginTop:"25px","& .fixedWidth":{flex:"0 0 20px",minWidth:"20px",display:"flex",alignItems:"center"}},navigationButton:{height:"100%",cursor:"pointer"}}),f=n(19881),p=n(1509),h=n(22854),b=n(95457),v=n(71716),g=n(48278),A=n(25595),y=n(92907),C=n(47103),_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},x="resize-carousel",w="crop-content",T=function(e){var t=e.id,n=e.color,o=e.text,a=e.imageUrl,c=e.isMobileView,l=(0,i.Fg)(),u=l.ContentResponsivenessOption,m=d({theme:l,color:n,justifyContent:a?"space-between":"center",isMobileView:c,contentResponsivenessOption:u}),f=r.useRef(null),p=r.useRef(null),h=r.useRef(null),b=r.useState(15),v=b[0],g=b[1],A=r.useState(0),y=A[0],C=A[1];r.useEffect((function(){var e=f.current,t=h.current,n=p.current;return n?n.addEventListener("load",r):(i(),function(){if(u===x){var t=T(e);g(t)}}()),function(){n&&n.removeEventListener("load",r)};function r(){u===x&&E(n,e),_(t,n),i()}function i(){var t=S(e);e.style.fontSize=t+"px"}}),[a,c,u]);var _=function(e,t){if(u!==x){e.style.height=(c?293-t.height:71)+"px";var n=parseFloat(getComputedStyle(e).lineHeight),r=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom)-n,i=Math.floor(r/n);g(t&&c&&i>=2||i<=0?1:i),C((function(e){return e+1})),f.current.style.height=(c?293:372)+"px"}else C((function(e){return e+1}))},T=function(e){var t=c?293:460,n=document.createElement("canvas"),r=n.getContext("2d");r.font=S(e)+"px";for(var i="",a=0,s=0,l=o.split(" ");s<l.length;s++){var u=l[s];r.measureText(i+u).width>t?(i=u+" ",a++):i+=u+" "}return""!==i.trim()&&a++,n.remove(),Math.min(a,15)+1},E=function(e,t){if(e){g(T(t));var n=e.naturalWidth,r=e.naturalHeight/n*460;e.style.width="460px",e.style.height=c?"auto":r+"px",t.style.width=c?"":"460px"}},S=function(e){var t=e.offsetWidth,n=document.createElement("canvas").getContext("2d");n.font="16px sans-serif";var r=n.measureText(o).width,i=Math.floor(t/r*16);return i=Math.max(i,12),i=Math.min(i,30),r<t&&i<16&&(i=16),u!==x&&u!==w||(i=16),i},k=u===w&&""===o.trim();return r.createElement("div",{className:m.statement,id:t,ref:f},a&&r.createElement("span",{className:"image-wrapper"},r.createElement("img",{className:"fade-in-element image-element "+(u===w?"crop-image":"")+" "+(k?"cropContentImageOnly":""),src:a,ref:p,alt:a})),o.trim()&&r.createElement("div",{className:"statementTextContent fade-in-element",ref:h},r.createElement(s(),{id:"statementTextContent",text:o.trim(),lines:v,ellipsis:"...",buttons:!1,key:y})))},E=function(e){var t=e.children,n=e.classes,i=e.isPrevBtnActive,o=e.isNextBtnActive,a=e.handleNavigationButtonClick,s=e.isMobileView;return r.createElement("div",{className:n.navigationButtonsPanel},s&&r.createElement("div",{className:"fixedWidth"},i&&r.createElement(y.G,{icon:["fas","arrow-left"],fixedWidth:!0,className:n.navigationButton,onClick:function(){return a("prev")}})),t,s&&r.createElement("div",{className:"fixedWidth"},o&&r.createElement(y.G,{icon:["fas","arrow-right"],fixedWidth:!0,className:n.navigationButton,onClick:function(){a("next")}})))};function S(e){var t=e.question,n=e.sequencedVariables,a=e.validateSignal,s=e.mentions,l=e.questionnaire,u=e.isDesktopPreviewView,m=n&&n.length>0;if(!m)return"";var y=t.id+"_statement",x=!1,w=!1,S=!1,k=C.ce[C.ce.CheckBox],B=0,N=t.name,M=(0,o.I0)();(0,b.Z9)(t,"HideVariableBackArrow")&&(x=(0,b.Ag)(t,"HideVariableBackArrow")),(0,b.Z9)(t,"LoopVariable")&&(w=(0,b.Ag)(t,"LoopVariable")),(0,b.Z9)(t,"AutoAdvanceVariable")&&(S=(0,b.Ag)(t,"AutoAdvanceVariable")),(0,b.Z9)(t,"CarrouselChoiceListAnswerType")&&(k=(0,b.yP)(t,"CarrouselChoiceListAnswerType"));var D=w&&!x,I=(0,f.Z)()[0],O=(0,i.Fg)(),P=r.useRef(1),R=r.useRef(),L=r.useState(window.innerWidth)[0],V=(0,o.v9)((function(e){return e.mobilePreview})),F=!u&&(L<=768||V),q=d({theme:O,isMobileView:F,justifyContent:F?"space-between":"center"}),U=r.useState({action:"NONE",direction:"NONE"}),H=U[0],W=U[1],z=(0,o.v9)((function(e){var t;return(null===(t=e.interview.carrousel[y])||void 0===t?void 0:t.isPrevBtnActive)||!1})),j=(0,o.v9)((function(e){var t;return(null===(t=e.interview.carrousel[y])||void 0===t?void 0:t.isNextBtnActive)||!1})),G=(0,o.v9)((function(e){var t;return(null===(t=e.interview.carrousel[y])||void 0===t?void 0:t.activeVariableIndex)||0})),Q=n[G];if(!Q){if(!m||0===G)return"";Q=n[0],M((0,c.FM)(y,0,D,w||P.current!==n.length))}var K=Q&&Q.choiceList&&Q.choiceList.length>0,Z=Q.name,$=(0,h.ZA)(t,l),Y=r.useCallback((function(){var e=(0,b.Yu)(t,"MinRequiredAnswers");return void 0===e||Number.isNaN(e)?null:0===e?1:e}),[t,1])();s&&Object.keys(s).length>0&&s[Z]&&s[Z].length>0&&(B=s[Z].length);var X=B>=(null!=Y?Y:1);r.useEffect((function(){var e;if("VALIDATEMENTIONS"===H.action)if(X)J(H.direction,n),W({action:"MENTIONSVALIDATEDSUCCESSFULLY",direction:"NONE"}),M((0,c.hw)(!0,!1,[N]));else{W({action:"SHOWMENTIONERROR",direction:"NONE"});var t=((e={})[N]=[{key:0===B?"IncompleteAnswer":"InvalidChoicesMin",softPrompt:!1,args:{min:null!=Y?Y:1}}],e);M((0,c.oD)({errorsByVariableName:t,isValid:!1}))}})),r.useEffect((function(){var e=P.current-1,t=w||P.current!==n.length;M((0,c.FM)(y,e,D,t))}),[]);var J=function(e,t){var r="prev"===e;P.current=r?w&&1===P.current?t.length:P.current-1:w&&P.current===t.length?1:P.current+1;var i=r?D||P.current>1:!x,o=w||P.current!==n.length;M((0,c.FM)(y,P.current-1,i,o)),M((0,c.hw)(!0,!1,[N]))},ee=r.useCallback((function(e,t){if(void 0===t&&(t=!1),K){var r=!$&&Y&&0!==B&&!X;t||"prev"===e?J(e,n):$||r?W({action:"VALIDATEMENTIONS",direction:e}):J(e,n)}else J(e,n)}),[$,n,Y,B,X,K]),te=r.useCallback((function(e){S&&k===C.ce[C.ce.RadioButton]&&n.length-1>G&&ee("next",e)}),[n,G,S,k,ee]);(0,h.V$)(a,(0,h.fV)(t,n));var ne={isNextBtnActive:j,isPrevBtnActive:z,handleNavigationButtonClick:ee,classes:q};return r.createElement("div",{className:q.container,ref:R},r.createElement(E,_({},ne,{isMobileView:!F}),r.createElement("div",{className:q.statementsContainer},r.createElement(T,{id:Q.elementId,key:Q.name,color:(0,b.yP)(Q,"Color","#F2F2F2"),text:(0,p.I)(Q,"text",I),imageUrl:(0,p.I)(Q,"imageUrl",I),isMobileView:F}))),r.createElement(E,_({},ne,{isMobileView:F}),r.createElement("div",{className:"fixedWidth"},G+1+"/"+n.length)),r.createElement(v.g,_({controlType:A.t,onAfterSelection:function(){te(!0)},isSingleOnPage:e.isSingleOnPage,onNavigation:e.onNavigation},(0,g.V)(e))))}},25595:function(e,t,n){"use strict";n.d(t,{t:function(){return I}});var r=n(67294),i=n(47103),o=n(40029),a=n(95457),s=n(11325),c=n(39822),l=n(78632),u=n(48278),m=n(25371),d=n(94184),f=n.n(d),p=n(71253),h=n(99393),b=n(76347),v=n(96994),g=n(85567),A=n(57740),y=n(7495),C=n(59261),_=n(55796),x=n(25974),w=n(32833),T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)};function E(e,t,n,o,a,s){var c=e.question,l=e.gridRendering,m=e.openEndValue,d=e.onOpenEndChange,f=e.onOpenEndBlur,p=e.variable,b=e.onAfterSelection,g=e.executeUpdateForIdAfterSelection,A=(0,_.hH)(c),y=A===x.c.Horizontal||A===x.c.HorizontalColumns,C=function(e,t){return e.mentions.some((function(e){return e.value===t.value}))}(e,t),w=function(e,t,n){var r=e.question,o=e.maxAnswers,a=e.mentions;return n!==v.Y&&-1!==o&&(r.type!==i.ce.ImageSelector||1!==o)&&!t&&a.length>=o}(e,C,s);return r.createElement(h.Z,T({key:a},(0,u.V)(e),{controlType:s,gridRendering:l,isFirst:n,isLast:o,openEnd:(m||{})[t.index],onOpenEndChange:d,onOpenEndBlur:f,selected:C,choice:t,variable:p,disabled:w,horizontal:y,onAfterSelection:b,executeUpdateForIdAfterSelection:g}))}function S(e){var t=e.theme,n=e.onReset,i=(0,y.Z)(),o=(0,C.Z)(t,"QuestionClearButton")||"Reset",a=(0,C.Z)(i,"ResetButtonText")||o;return r.createElement(A.Z,{className:"button--clear",text:a,size:"full",onClick:function(){return n()}})}function k(e){var t=(0,y.Z)(),n=e.choices,o=e.isCarrouselCheckboxActive,c=(0,w.Z)(),l=(0,m.Fg)(),u=(0,_.hH)(t),d=(0,a.Yu)(t,"NumberOfColumns"),h=d>1?Math.ceil((null==n?void 0:n.length)/d):1,A=(0,p.Z)({theme:l,displayType:u,numberOfColumns:d,numberOfRows:h});if(void 0===n||0===n.length)return null;var C=t.type===i.ce.ImageSelector,k=(0,a.yP)(t,"DisplayOrder"),B=u===x.c.VerticalColumns,N=c&&c.minWidth(778),M=B&&N&&!(0,s.w1)(),D=t.type===i.ce.RadioButton?"radiogroup":"group";return r.createElement("div",{role:D,className:f()(A.choiceList,C&&"Vertical"===k&&A.choiceListTableVertical,C&&"Horizontal"===k&&A.choiceListTableHorizontal,M&&A.choiceListGrid,o&&A.checkBoxAlignment)},function(e){var t=e.choices;return t.map((function(n,r){return function(e,t,n,r,o){var a=e.question,s=e.isCarrouselCheckboxActive;switch(a.type){case i.ce.ImageSelector:return E(e,t,n,r,o,g.d);case i.ce.CheckBox:return E(e,t,n,r,o,b.J);case i.ce.Carrousel:return E(e,t,n,r,o,s?b.J:v.Y);default:return E(e,t,n,r,o,v.Y)}}(e,n,0===r,r===t.length-1,n.name)}))}(e),function(e){return(0,a.Ag)(e,"DisplayResetButton")}(t)&&r.createElement(S,T({},e)))}var B,N=n(11110),M=(B=function(e,t){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},B(e,t)},function(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(){return D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D.apply(this,arguments)},I=function(e){function t(t){var n=e.call(this,t)||this;return n.onReset=function(){var e=n.props.question,t=n.setCarrouselActiveVariable(e.id)||e.variables[0];n.setMentions(n.props,t.name,(function(e){return e.clear()}))},n.onOpenEndChange=function(e,t){n.setState((function(r){var i,o=D({},r);return o.openEndValue=D(D({},o.openEndValue),((i={})[e.index]=n.truncateOpenEnd(e,t),i)),o}))},n.onOpenEndBlur=function(e){var t=n.state.openEndValue[e.index],r=n.props.question.variables[0];n.setMentions(n.props,r.name,(function(n){return n.removeValue(e.value).add(e.value,t.trim())}))},n.setDefaultChoices=function(){var e=n.props.sequencedVariables[0],t=e.choiceList,r=(void 0===t?[]:t).filter((function(e){return(0,a.Ag)(e,"Default")&&(0,c.pn)(e)}));n.setChoicesAsMentions(e,r)},n.state={openEndValue:{}},n}return M(t,e),t.prototype.initializeQuestion=function(t,n){var r=this;e.prototype.initializeQuestion.call(this,t,n);var o=this.setCarrouselActiveVariable(t.id)||t.variables[0],a=o.choiceList,c=void 0===a?[]:a;if(!this.hasMentions(n))if(t.type===i.ce.RespondentTimeZone){var l=c.find((function(e){return e.value===n.timeZone}));l&&this.setMentions(n,o.name,(function(e){return e.set(l.value)}),void 0,!0)}else this.setDefaultChoices();this.setState((function(e,t){var n=D({},e);return c.forEach((function(e){var i,a,c=r.getMentions(t,o.name).find((function(t){return t.value===e.value}));void 0===c||(0,s.Ew)(c.openEnd)?n.openEndValue=D(D({},n.openEndValue),((a={})[e.index]="",a)):n.openEndValue=D(D({},n.openEndValue),((i={})[e.index]=c.openEnd||"",i))})),n}))},t.prototype.componentDidUpdate=function(t,n){var r=this;e.prototype.componentDidUpdate.call(this,t,n);var i=this.setCarrouselActiveVariable(this.props.question.id)||this.props.question.variables[0];this.getMentions(this.props).forEach((function(e){var n=r.isValidChoice(e.value),o=r.isChoiceNoLongerVisible(e.value,t);n&&o&&r.setMentions(r.props,i.name,(function(t){return t.pull(e.value)}))}))},t.prototype.willUpdateMentions=function(t,n){e.prototype.willUpdateMentions.call(this,t,n);var r=this.setCarrouselActiveVariable(t.id)||t.variables[0],i=this.getMentions(n,r.name)||[];this.setState((function(e){var t=D({},e);return r.choiceList.forEach((function(e){var n,r=i.find((function(t){return t.value===e.value}));void 0!==r&&(t.openEndValue=D(D({},t.openEndValue),((n={})[e.index]=r.openEnd,n)))})),t}))},t.prototype.validate=function(t){var n=this,r=this.props,o=r.question,s=r.useClientValidation;if(o.variables.forEach(this.removeUnavailableMentions),o.type===i.ce.RadioButton)return(new l.O).build();if((0,N.NA)(o.type,s))return(new l.O).build();var u=this.validateSoftPrompt(this.props);if(!u.isValid)return u;var m=e.prototype.validate.call(this,t),d=this.setCarrouselActiveVariable(o.id)||o.variables[0],f=this.hasMentions(this.props);if(!f){var p=d.choiceList.filter((function(e){return(0,a.Ag)(e,"Default")&&!(0,c.pn)(e)}));if(p.length)return this.setChoicesAsMentions(d,p),(new l.O).build()}if(m.isValid&&f){var h=this.minValue(),b=this.maxValue(),v=this.getMentions(this.props);if(null!==h&&h>0&&v.length<h)return(new l.O).fail(d.name,"InvalidChoicesMin",{min:String(h)}).build();if(null!==b&&b>0&&v.length>b)return(new l.O).fail(d.name,"InvalidChoicesMax",{max:String(b)}).build();if(!o.parent||!(0,i.h)(o.parent.type)){var g=d.choiceList.filter(c.vo).map((function(e){var t=n.state.openEndValue[e.index];return v.find((function(t){return t.value===e.value}))?n.validateOpenEnd(t,e):void 0})).find((function(e){return e&&!e.isValid}));if(g)return g}}return m},t.prototype.renderQuestion=function(e){var t=this.setCarrouselActiveVariable(e.id)||this.props.sequencedVariables[0],n=t?t.choiceList:[];return r.createElement(k,D({},(0,u.V)(this.props),{openEndValue:this.state.openEndValue,gridRendering:this.props.gridRendering,onOpenEndChange:this.onOpenEndChange,onOpenEndBlur:this.onOpenEndBlur,choices:n,onReset:this.onReset,language:this.props.language,mentions:this.getMentions(this.props),variable:t,maxAnswers:(0,a.Yu)(e,"MaxAllowedAnswers"),isCarrouselCheckboxActive:(0,a.yP)(e,"CarrouselChoiceListAnswerType")===i.ce[i.ce.CheckBox],onAfterSelection:this.props.onAfterSelection,executeUpdateForIdAfterSelection:this.props.executeUpdateForIdAfterSelection}))},t}(o.X)},37319:function(e,t,n){"use strict";n.d(t,{o:function(){return y}});var r=n(67294),i=n(12291),o=n(16856),a=n(89109),s=n.n(a),c=function(e){return e.nodeName&&"SCRIPT"===e.nodeName?(e.childNodes||[]).map((function(e){return e.nodeValue})):(0,o.xH)((e.childNodes||[]).map(c))};function l(e){var t=e.html,n=e.scriptKey,i=e.render;return r.useEffect((function(){var e=setTimeout((function(){var e=t;c(s()(e).parse()).forEach((function(e){window.eval(e+"\n//# sourceURL="+n+".js")}))}));return function(){clearTimeout(e)}}),[t,n]),i?i(t):r.createElement("div",{dangerouslySetInnerHTML:{__html:t}})}var u=n(59261),m=n(89222),d=n(22854),f=n(78632),p=n(11325),h=n(5498),b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b.apply(this,arguments)},v=["text","hidden","date","number","password"];function g(e){for(var t,n=/name\s*=\s*(?:["']([^"':]*?:[^"']*?)["']|["']([^"':]*?)["']|(\S+))/gi,r=[];t=n.exec(e);)r.push(t[1]||t[2]||t[3]);return(0,o.jj)(r)}function A(e){var t=document.getElementsByName(e);if(t&&t[0])return["TEXTAREA","SELECT"].includes(t[0].tagName)||"INPUT"===t[0].tagName&&v.includes(t[0].type)?t[0].value:["checkbox","radio"].includes(t[0].type)?(0,o.hX)(t,(function(e){return e.checked})).map((function(e){return e.value})):void 0}function y(e){var t=e.question,n=e.questionnaire,a=e.validateSignal,s=(0,m.or)(t.variableNames),c=(0,u.Z)(t,"content")||"",y=(0,i.I0)(),C=r.useRef(),_=r.useCallback((function(e,t,n,r){var i=s[t];return i&&i[0]?n?r?(i=i.filter((function(e){return e.customChoiceIndex===n})))&&i[0]&&i[0].openEnd?i[0].openEnd:"":i.some((function(e){return e.customChoiceIndex===n}))?"checked selected":"":i[0].value||"":""}),[s]),x=r.useMemo((function(){return c.replace(/%(\w+):?(\w*):?(\w*)%/gi,_)}),[_,c]),w=r.useCallback((function(e){var t=g(e),n={},r=function(e,t){var r;n=b(b({},n),((r={})[e]=t,r))};t.forEach((function(e){var t=document.getElementsByName(e),n=e.split(":")[0],i=e.indexOf(":O");if(t&&t[0]){var a=t[0].value;if((0,p.Ew)(a)&&-1==i)r(n,(function(e){return e.clear()}));else if("TEXTAREA"===t[0].tagName){var s=e.split(":")[1];s&&!(0,p.Ew)(a)?r(e,(function(e){return e.addOpenEndValueByCustomChoiceIndex(s,a)})):(0,p.Ew)(a)||r(n,(function(e){return e.set(a)}))}else if("SELECT"===t[0].tagName)r(n,(function(e){return e.set(a)}));else if(v.includes(t[0].type))(0,p.Ew)(a)||r(n,(function(e){return e.set(a)}));else if(["checkbox","radio"].includes(t[0].type)){var c=(0,o.hX)(t,(function(e){return e.checked}));r(n,(function(e){return e.clear(),c.forEach((function(n){return e.add(n.value,null,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(t).indexOf(n)+1+"")})),e}))}}})),(0,o.xb)(n)||y((0,h.nY)(n))}),[y]);return(0,d.V$)(a,(function(){var e=(0,d.ZA)(t,n);if(w(x),g(x).every((function(e){var t=e.split(":"),n=t[0],r=t[1];return!(!t[2]||A(n).includes(r))||!(0,o.xb)(A(e))}))||!e)return(new f.O).build();for(var r="",i=0;i<t.variableNames.length;i++){var a=t.variableNames[i];if((0,o.xb)(A(a))){r=a;break}}return(new f.O).fail(r,"IncompleteAnswer").build()})),C.current&&C.current!==x&&w(C.current),C.current=x,r.createElement(l,{html:x,scriptKey:t.name+"_content"})}},1276:function(e,t,n){"use strict";n.d(t,{z:function(){return M}});var r,i=n(67294),o=n(17126),a=n(16856),s=n(40029),c=n(71716),l=n(25595),u=n(95457),m=n(11325),d=n(78632),f=n(55796),p=n(1509),h=n(48278),b=n(25638),v=n(72431),g=n(15866),A=n(57442),y=n(5498),C=n(11110),_=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)},w=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},T=n(23898),E=[1,31],S=[0,23],k=[0,59],B=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],N={value:"",year:"",month:null,date:"",hour:"00",minute:"00"},M=function(e){function t(t){var n=e.call(this,t)||this;return n.isYearType=function(e){return(0,u.Ag)(e,"Type","Year")},n.isMonthType=function(e){return(0,u.Ag)(e,"Type","Month")},n.isDayType=function(e){return(0,u.Ag)(e,"Type","Day")},n.isHourType=function(e){return(0,u.Ag)(e,"Type","Hours")},n.isMinuteType=function(e){return(0,u.Ag)(e,"Type","Minutes")},n.findAnswer=function(e,t){return(0,g.n)(e.sequencedVariables[0],t)},n.minDate=function(){var e=n.props,t=e.min,r=e.question,i=(null==t?void 0:t.toString().split("T")[0])===(new Date).toISOString().split("T")[0];if(!(0,m.Ew)(t)){if("TodayValue"===t||i)return o.ou.now().startOf("day");var a=(0,f.WG)(r,t);return a.isValid?a:void 0}},n.maxDate=function(){var e=n.props,t=e.max,r=e.question;if(!(0,m.Ew)(t)){if("TodayValue"===t)return o.ou.now().endOf("day");var i=(0,f.WG)(r,t);return i.isValid?i:void 0}},n.dateValue=function(){var e=n.state.value,t=n.props.question;if(void 0!==e)return(0,f.WG)(t,e)},n.shouldShowCalendar=function(e){var t=e.question,n=(0,u.yP)(t,"Type");return["Date","DateTime","Time"].includes(n)},n.onYearChanged=function(e){var t=e.target.value;n.setState((function(e){return x(x({},e),{year:t})}))},n.onMonthChanged=function(e){var t=e[0],r=n.props.question.variables[0];n.setMentions(n.props,r.name,(function(e){return e.clear(),(0,m.Ew)(t)||e.set(t),e})),n.setState((function(e){return x(x({},e),{month:t})}))},n.onDayChanged=function(e){var t=e[0],r=n.props.question.variables[0];n.setMentions(n.props,r.name,(function(e){return e.clear(),(0,m.Ew)(t)||e.set(t),e})),n.setState((function(e){return x(x({},e),{date:t})}))},n.onHourChanged=function(e){var t=e[0],r=n.props.question.variables[0];n.setMentions(n.props,r.name,(function(e){return e.clear(),(0,m.Ew)(t)||e.set(t),e})),n.setState((function(e){return x(x({},e),{hour:t})}))},n.onMinuteChanged=function(e){var t=e[0],r=n.props.question.variables[0];n.setMentions(n.props,r.name,(function(e){return e.clear(),(0,m.Ew)(t)||e.set(t),e})),n.setState((function(e){return x(x({},e),{minute:t})}))},n.onTextChanged=function(e){var t=n.props.question,r=e.target.value,i=(0,u.yP)(t,"Type");["Day","Hours","Minutes","Year"].includes(i)&&/[^\d]/.test(r)||n.setState((function(e){return x(x({},e),{value:r})}))},n.onTextBlur=function(){var e=n.props.question,t=e.variables[0],r=(0,u.yP)(e,"Type");if(["Date","DateTime","Time"].includes(r))n.onDateBlur();else{var i=n.state.value,o={Day:E,Hours:S,Minutes:k};if(null!=o[r]&&!(0,m.Ew)(i)){var a=o[r],s=a[0],c=a[1];parseInt(i,10)<s?i=String(s):parseInt(i,10)>c&&(i=String(c)),n.setState((function(e){return x(x({},e),{value:i})}))}n.setMentions(n.props,t.name,(function(e){return e.set(i)}))}},n.onDateBlur=function(){n.setMentionToDate(n.dateValue())},n.state=x({},N),n}return _(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n),this.setState(x({},N)),this.updateState(n),this.bindDatePicker(n)},t.prototype.willUpdateMentions=function(t,n){e.prototype.willUpdateMentions.call(this,t,n),this.updateState(n)},t.prototype.finalizeQuestion=function(t,n){e.prototype.finalizeQuestion.call(this,t,n),this.picker&&(this.picker.destroy(),this.picker=null)},t.prototype.componentDidUpdate=function(e){e.question===this.props.question&&e.language===this.props.language||this.bindDatePicker(this.props)},t.prototype.componentDidMount=function(){this.bindDatePicker(this.props)},t.prototype.openDatePicker=function(){this.picker&&!this.picker.isVisible()&&this.picker.show()},t.prototype.updateState=function(e){var t=this;this.setState((function(n){var r=x({},n);r.value=void 0;var i=t.getMentions(e)[0];if(void 0!==i&&(r.value=i.value),t.isMonthType(e.question)&&(r.month=Number(r.value)),t.isDayType(e.question)&&(r.date=Number(r.value).toString()),t.isHourType(e.question)&&(r.hour=r.value),t.isMinuteType(e.question)&&(r.minute=r.value),null!=r.value&&null==t.findAnswer(t.props,r.value)||(r.value=""),t.picker){var o=t.dateValue();t.picker.setVal(o)}return r}))},t.prototype.mobiscrollDisplay=function(e){return"xsmall"===e||"small"===e?"bottom":"center"},t.prototype.mobiscrollControls=function(e){var t=e.question,n=(0,u.yP)(t,"Type","Date");return"DateTime"===n?["calendar","time"]:"Time"===n?["time"]:["calendar"]},t.prototype.bindDatePicker=function(e){var t=this,n=e.question,r=e.language;this.picker&&(this.picker.destroy(),this.picker=null);var i=this.inputRef;if(this.shouldShowCalendar(e)&&i){var a=(0,u.yP)(n,"Type","Date"),s=!("Date"===a),c={xsmall:{display:this.mobiscrollDisplay("xsmall")},small:{display:this.mobiscrollDisplay("small"),months:"DateTime"===a?1:2},medium:{display:this.mobiscrollDisplay("medium"),months:"DateTime"===a?1:2,touchUi:!1,tabs:!1}},l=(0,u.yP)(n,"DateFormat")||"yyyy-mm-dd",m=(0,b.n6)(l),d=(0,u.yP)(n,"TimeFormat")||"hh:mm",p=(0,b.n6)(d),h=s?["cancel","clear","now","set"]:["clear"],v={theme:"voxco",controls:this.mobiscrollControls(e),lang:r,min:this.minDate(),max:this.maxDate(),showLabel:!0,dateFormat:m,timeWheels:p,headerText:function(e){return void 0!==e?e:""},invalid:[],layout:"fixed",onClear:function(e,n){t.setState((function(e){return x(x({},e),{value:void 0})})),"Date"!==a||s||n.hide()},onSet:function(e,r){if("Date"!==a){var i=r.getVal(),s=(0,f.vc)(n),c=o.ou.fromJSDate(i).toFormat(s);t.setState((function(e){return x(x({},e),{value:c})}))}},onSetDate:function(e,r){if(!s&&e.control){var i=(0,f.vc)(n),c=o.ou.fromJSDate(e.date).toFormat(i);t.setState((function(e){return x(x({},e),{value:c})})),"Date"!==a||s||r.hide()}},formatValue:function(){return t.state.value},responsive:c,buttons:h,width:100};if((0,u.Z9)(n,"DisabledDates")){var g=JSON.parse((0,u.yP)(n,"DisabledDates")),A=o.ou.local().startOf("week").weekday,y=w(B);A&&y.push(y.shift()),v.invalid=w(g.ranges.map((function(e){var t=e.start,r=e.end;return{start:(0,f.WG)(n,t,!1),end:(0,f.WG)(n,r,!1)}})),g.dates.map((function(e){return(0,f.WG)(n,e,!1)})),g.weekdays.map((function(e){return"w"+(y.indexOf(e)+A)})))}this.picker=T.calendar(i,v),this.dateValue()&&this.picker.setVal(this.dateValue())}},t.prototype.isDateDisabled=function(e){var t,n=this.props.question,r=(0,u.Ag)(n,"Type","Date")||(0,u.Ag)(n,"Type","DateTime"),i=JSON.parse((0,u.yP)(n,"DisabledDates",null));return!(!r||!i)&&((null===(t=i.weekdays)||void 0===t?void 0:t.some((function(t){return t===e.getDay()})))||function(){var t;return null===(t=i.weekdays)||void 0===t?void 0:t.some((function(t){return(0,f.WG)(n,t).valueOf()===e.valueOf()}))}()||function(){var t;return null===(t=i.ranges)||void 0===t?void 0:t.some((function(t){var r=t.start,i=t.end;return e>=(0,f.WG)(n,r).toJSDate()&&e<=(0,f.WG)(n,i).toJSDate()}))}())},t.prototype.getNormalizedDate=function(e){var t=this.minDate();if(null!=t&&e.valueOf()<t.valueOf())return t;var n=this.maxDate();return null!=n&&e.valueOf()>n.valueOf()?n:e},t.prototype.setMentionToDate=function(e){var t=this.props.question,n=t.variables[0];if(null!=e){var r=this.getNormalizedDate(e);(0,u.Ag)(t,"SetRespondentAppointment")&&this.props.dispatch((0,y.bQ)(r.toJSDate()));var i=r.toFormat((0,f.vc)(t));this.setState((function(e){return x(x({},e),{value:i})})),this.setMentions(this.props,n.name,(function(e){return e.set(i)}))}else this.setMentions(this.props,n.name,(function(e){return e.clear()}))},t.prototype.monthArray=function(){return(0,a.DZ)(12,(function(e){return o.ou.fromFormat(String(e+1),"M").toFormat("MMMM")}))},t.prototype.dayArray=function(){var e=E[0],t=E[1];return(0,a.w6)(e,t+1)},t.prototype.hourArray=function(){var e=S[0],t=S[1];return(0,a.w6)(e,t+1)},t.prototype.minuteArray=function(){var e=k[0],t=k[1];return(0,a.w6)(e,t,5)},t.prototype.renderYear=function(){return i.createElement(i.Fragment,null,i.createElement(A.Z,x({},(0,h.V)(this.props),{inputType:"text",maxLength:4,onBlur:this.onTextBlur,onChange:this.onTextChanged,value:this.state.value})),i.createElement(c.g,x({controlType:l.t},(0,h.V)(this.props))))},t.prototype.renderSelect=function(e,t,n){var r=this.props,o=r.question,a=r.theme,s=r.language,u=o.variables[0];return i.createElement(i.Fragment,null,i.createElement(v.Z,{id:u.elementId+"_INPUT",value:[e],size:(0,f.dp)(o),onChange:n,options:w([{id:u.elementId+"_EMPTY",label:(0,m.IQ)((0,p.I)(a,"DropdownEmptyAnswer",s)),value:""}],t)}),i.createElement(c.g,x({controlType:l.t},(0,h.V)(this.props))))},t.prototype.renderMonth=function(){var e=this.state.month,t=this.props.question.variables[0],n=this.monthArray().map((function(e,n){return{id:t.elementId+"_C_"+(n+1),value:(n+1).toString(),label:e}}));return this.renderSelect(String(e),n,this.onMonthChanged)},t.prototype.renderDay=function(){var e=this.state.date,t=this.props.question.variables[0],n=this.dayArray().map((function(e){return{id:t.elementId+"_C_"+e,value:e.toString(),label:e.toString()}}));return this.renderSelect(e,n,this.onDayChanged)},t.prototype.renderHours=function(){var e=this.state.hour,t=this.props.question.variables[0],n=this.hourArray().map((function(e){return{id:t.elementId+"_C_"+e,value:e.toString(),label:e.toString()}}));return this.renderSelect(e,n,this.onHourChanged)},t.prototype.renderMinutes=function(){var e=this.state.minute,t=this.props.question.variables[0],n=this.minuteArray().map((function(e){return{id:t.elementId+"_C_"+e,value:e.toString(),label:e.toString()}}));return this.renderSelect(e,n,this.onMinuteChanged)},t.prototype.renderDateTime=function(){var e=this;return i.createElement(i.Fragment,null,i.createElement(A.Z,x({},(0,h.V)(this.props),{inputRef:function(t){e.inputRef=t},inputDivRef:function(t){e.inputDivRef=t},inputType:"text",onBlur:this.onTextBlur,onChange:this.onTextChanged,openDatePicker:this.openDatePicker,value:this.state.value})),i.createElement(c.g,x({controlType:l.t},(0,h.V)(this.props))))},t.prototype.renderQuestion=function(e){if(this.isMonthType(e))return this.renderMonth();if(this.isYearType(e))return this.renderYear();if(this.isDayType(e))return this.renderDay();if(this.isHourType(e))return this.renderHours();if(this.isMinuteType(e))return this.renderMinutes();if(["Date","DateTime","Time"].includes((0,u.yP)(e,"Type")))return this.renderDateTime();var t=this.props,n=t.min,r=t.max;return i.createElement(i.Fragment,null,i.createElement(A.Z,x({},(0,h.V)(this.props),{inputType:"text",min:Number(n),max:Number(r),onBlur:this.onTextBlur,onChange:this.onTextChanged,value:this.state.value})),i.createElement(c.g,x({controlType:l.t},(0,h.V)(this.props))))},t.prototype.isAnswerComplete=function(t){if((0,m.Ew)(this.state.value)&&this.hasMentions(this.props)){var n=(0,a.sE)(this.getMentions(this.props));if(this.props.sequencedVariables[0].choiceList.some((function(e){return e.value===n.value})))return!0}return!(0,m.Ew)(this.state.value)||e.prototype.isAnswerComplete.call(this,t)},t.prototype.isLowerBoundInvalid=function(e,t){void 0===t&&(t=!0);var n=this.minDate();return!!n&&(t||(n=n.startOf("day")),o.ou.fromJSDate(e)<n)},t.prototype.isUpperBoundInvalid=function(e,t){void 0===t&&(t=!0);var n=this.maxDate();return!!n&&(t||(n=n.endOf("day")),o.ou.fromJSDate(e)>n)},t.prototype.validate=function(t){var n,r,i=this,s=this.state.value,c=this.props,l=c.question,p=c.sequencedVariables,h=c.useClientValidation;if((0,C.NA)(l.type,h))return(new d.O).build();var b=p[0],v=e.prototype.validate.call(this,t),g=b.choiceList.filter((function(e){return(0,u.Ag)(e,"Visible")})).some((function(e){return e.value===s}));if((0,m.Ew)(s)&&this.hasMentions(this.props)&&(g=b.choiceList.some((function(e){return e.value===(0,a.sE)(i.getMentions(i.props)).value}))),v.isValid&&!(0,m.Ew)(s)&&!g){var A=(0,u.yP)(l,"Type",""),y=this.minValue(),_=this.maxValue();if(["Year","Month","Day","Hours","Minutes"].includes(A)){var x=parseInt(s,10),w=null!=y,T=null!=_,B={Year:[0,9999],Month:[1,12],Day:E,Hours:S,Minutes:k}[A],N=B[0],M=B[1];if(x<N||x>M)return(new d.O).fail(b.name,"InvalidDate").build();if(w&&T){if(x<y||x>_)return(new d.O).fail(b.name,"OutOfBounds",{min:String(y),max:String(_)}).build()}else{if(w&&!T&&x<y)return(new d.O).fail(b.name,"LowerBoundNotFulfilled",{min:String(y)}).build();if(!w&&T&&x>_)return(new d.O).fail(b.name,"UpperBoundNotFulfilled",{max:String(_)}).build()}}else{var D=this.dateValue(),I=(0,f.vc)(l);if("Time"===A&&I&&!o.ou.fromFormat(s,I).isValid)return(new d.O).fail(b.name,"InvalidDate").build();var O=D.toJSDate();if(this.isDateDisabled(O))return(new d.O).fail(b.name,"UnavailableDate").build();if(this.isLowerBoundInvalid(O)||this.isUpperBoundInvalid(O))return(new d.O).fail(b.name,"OutOfBounds",{min:null===(n=this.minDate())||void 0===n?void 0:n.toFormat(I),max:null===(r=this.maxDate())||void 0===r?void 0:r.toFormat(I)}).build()}}return v},t}(s.X)},90231:function(e,t,n){"use strict";n.d(t,{K:function(){return w}});var r=n(67294),i=n(87582),o=n(25371),a=n(94184),s=n.n(a),c=n(7863),l=n(96900),u=(0,o.QM)({container:{composes:"drag-drop",position:"relative",userSelect:"none",margin:"auto",maxWidth:600},bucket:{composes:"drag-drop__list",border:"1px solid #999",position:"absolute",borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,50)}},bucketOrigin:{composes:"drag-drop__list--origin",border:function(e){var t=e.theme;return[[Math.max(t.BorderWidth,1),"solid",t.ControlBorderColor]]}},bucketOriginNoDrag:{composes:"drag-drop__list--origin--no-drag",cursor:"not-allowed"},bucketDestination:{composes:"drag-drop__list--destination",background:function(e){var t=e.theme;return(0,l.Fq)(t.ControlBackground,t.ControlAlpha)+" 0% 0% no-repeat padding-box"},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]}},card:{composes:"drag-drop__choice",backgroundColor:function(e){return e.theme.SecondaryColor},border:function(e){var t=e.theme;return[[Math.max(t.BorderWidth,1),"solid",(0,l._j)(t.SecondaryColor,t.BorderValue)]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return(0,l.oF)(t,t.SecondaryColor)},position:"absolute",padding:8,textAlign:"center",fontWeight:"bolder",boxSizing:"border-box",backgroundSize:"cover",backgroundPosition:"center",cursor:"grab","&:active":{cursor:"grabbing"}},cardNoDrag:{composes:"drag-drop__choice--no-drag",pointerEvents:"none",cursor:"not-allowed",backgroundColor:function(e){var t=e.theme;return(0,l._j)(t.SecondaryColor)},border:function(e){var t=e.theme;return[[Math.max(t.BorderWidth,1),"solid",(0,l._j)(t.SecondaryColor,t.BorderValue)]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return(0,l.oF)(t,t.SecondaryColor)},position:"absolute",padding:8,textAlign:"center",fontWeight:"bolder",boxSizing:"border-box",backgroundSize:"cover",backgroundPosition:"center","&:active":{cursor:"grabbing"}}}),m=n(36539),d=n(89222),f=n(23269),p=n(1509),h=n(19881),b=n(22854),v=n(921),g=n(11325),A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},y=function(e,t,n){return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(e.slice(0,n),[t],e.slice(n))},C=function(e){var t=e.gestureState,n=t.down,r=t.movement,i=r[0],o=r[1],a=e.left,s=e.top,c=e.immediate;return{x:n?i:a,y:n?o:s,z:n?10:0,immediate:function(e){return(c||n)&&["x","y"].includes(e)},config:{mass:1,tension:170,friction:25}}};function _(e){var t=e.id,n=e.text,a=e.imageUrl,l=e.width,m=e.height,d=e.top,p=e.left,h=e.onDrag,b=e.onDrop,y=e.bounds,_=e.setCardRef,x=e.isDragAllowed,w=(0,f.Z)(a),T=(0,f.Z)(n),E=(0,v.D)(y),S=(0,o.Fg)(),k=u({theme:S}),B=r.useRef({down:!1,movement:[0,0]}),N=(0,c.q_)((function(){return C({gestureState:B.current,left:p,top:d})})),M=N[0],D=N[1],I=E!==y,O=(0,g.w1)();r.useLayoutEffect((function(){D(C({gestureState:B.current,left:p,top:d,immediate:I}))}),[p,d,D,I]);var P=(0,i.c0)((function(e){B.current=e,D(C({gestureState:e,left:p,top:d}));var t=e.movement,n=e.down;n&&h&&h(t),!n&&b&&b(t)}),{initial:function(){return[M.x.getValue(),M.y.getValue()]},filterTaps:!0,bounds:A(A({},y),{right:y.right-l,bottom:y.bottom-m})});return r.createElement(c.q.div,A({id:t,ref:function(e){return _(t,e)},style:{left:15,top:30,width:l-30,minHeight:m,transform:(0,c.sX)([M.x,M.y,M.z],(function(e,t,n){return"translate("+e+"px, "+t+"px) scale("+(.01*n+1)+")"})),boxShadow:M.z.interpolate((function(e){return"0 "+.3*e+"px "+(e+3)+"px rgba(0,0,0,0.2)"})),zIndex:M.z.interpolate((function(e){return Math.max(1,1+Math.round(e))})),backgroundImage:w&&"url('"+w+"')",cursor:O&&"pointer"}},P(),{className:s()(k.card,x&&k.cardNoDrag),dangerouslySetInnerHTML:w?void 0:{__html:T}}))}function x(e){var t=e.origin,n=e.destination,i=e.width,a=e.height,c=e.left,l=e.top,m=e.isCursorNoDrag,d=(0,o.Fg)(),f=u({theme:d});return r.createElement("div",{className:s()(f.bucket,t&&f.bucketOrigin,m&&f.bucketOriginNoDrag,n&&f.bucketDestination),style:{width:i,height:a,left:c,top:l}})}function w(e){var t=e.question,n=e.sequencedVariables,i=e.showSoftPrompt,a=e.validateSignal,s=e.max,c=n[0],l=(0,d.x5)(c.name),f=l[0],v=l[1],g=r.useState(),C=g[0],w=g[1],T=r.useState(0),E=T[0],S=T[1],k=r.useState(0),B=k[0],N=k[1],M=(0,h.Z)()[0],D=(0,o.Fg)(),I=r.useState({}),O=I[0],P=I[1],R=u({theme:D}),L=r.useRef(),V=(0,m.L)(L).innerWidth,F=r.useState({}),q=F[0],U=F[1],H=V/2-16,W=function(e){return Math.max(H/O[e.name]||0,47,z(e))},z=function(e){var t=e.elementId,n=q[t];return n?n.clientHeight:0},j=[c.choiceList.filter((function(e){var t=e.value;return!f.includes(t)})).filter((function(e){return e!==C})),f.map((function(e){return c.choiceList.find((function(t){return t.value===e}))})).filter(Boolean).filter((function(e){return e!==C}))],G=j[0],Q=j[1],K=function(e){return function(t){var n=t[0],r=t[1];w(e);var i=n+H/2<V/2?0:1,o=0===i?G:Q;S(i),N(J(o,r))}};C&&0===E&&(G=y(G,C,B)),C&&1===E&&(Q=y(Q,C,B));var Z=c.choiceList.map((function(e){return W(e)+15})).reduce((function(e,t){return e+t}))+45,$=(Q.length<Number(s)||void 0===s||0===Number(s)?c.choiceList:Q).map((function(e,t){return Number(s)>t?W(e)+15:0})).reduce((function(e,t){return e+t}))+45,Y=function(e){var t=e.value;return f&&f.includes(t)},X=function(e,t){return e.slice(0,e.indexOf(t)).map((function(e){return W(e)+15})).reduce((function(e,t){return e+t}),0)},J=function(e,t){var n=e.filter((function(e){return e!==C}));return n.filter((function(e){return t>X(n,e)+W(e)/2})).length},ee=H+32-2,te=r.useMemo((function(){return{top:-90,bottom:Z+90,left:-90,right:V+90}}),[V,Z]);(0,b.V$)(a,(0,b.Af)(t,c,i)),r.useEffect((function(){return c.choiceList.forEach((function(e){var t=(0,p.I)(e,"imageurl",M);if(t){var n=e.name,r=new Image;r.addEventListener("load",(function(){var e=r.naturalWidth/r.naturalHeight;P((function(t){var r;return A(A({},t),((r={})[n]=e,r))}))})),r.src=t}}))}),[c.choiceList,M]);var ne=function(e){return function(){var t=e.value;v(1===E?function(e){return e.removeValue(t).insert(B,t)}:function(e){return e.removeValue(t)}),w(void 0)}},re=function(e,t){!q[e]&&t&&U((function(n){var r;return A(A({},n),((r={})[e]=t,r))}))},ie=Number.parseInt(s,10);return r.createElement("div",{className:R.container,ref:L,style:{height:Z}},r.createElement(x,{origin:!0,width:H,height:Z,left:0,top:0,isCursorNoDrag:(null==Q?void 0:Q.length)>=ie}),r.createElement(x,{destination:!0,width:H,height:void 0===s?Z:$,left:ee,top:0}),c.choiceList.map((function(e){return r.createElement(_,{isDragAllowed:G.includes(e)&&(null==Q?void 0:Q.length)>=ie,id:e.elementId,key:e.name,text:(0,p.I)(e,"text",M),imageUrl:(0,p.I)(e,"imageurl",M),width:H,left:Y(e)?ee:0,height:W(e),top:X(Y(e)?Q:G,e),bounds:te,onDrag:K(e),onDrop:ne(e),setCardRef:re})})))}},66889:function(e,t,n){"use strict";n.d(t,{r:function(){return k}});var r=n(67294),i=n(16856),o=n(40029),a=n(78632),s=n(95457),c=n(11325),l=n(39822),u=n(25371),m=n(12291),d=(0,u.QM)({drillDown:{composes:"drill-down"},variable:{composes:"drill-down__variable"},label:{composes:"drill-down__label",display:"block",fontWeight:600,marginTop:20,marginBottom:4}}),f=n(1509),p=n(48278),h=n(72431),b=n(99076),v=n(55796),g=n(23269),A=n(89222),y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)};function C(e){var t=e.question,n=e.variable,i=e.parentVariable,o=e.mentions,a=e.onVariableChanged,l=e.openEndValue,A=e.getFirstOpenEndedChoice,C=e.onOpenEndChange,_=e.onOpenEndBlur,x=(0,u.Fg)(),w=d(y(y({},e),{theme:x})),T=(0,m.v9)((function(e){return e.interview.language})),E=(0,m.v9)((function(e){return e.interview.theme})),S=A(n),k=n.settings.MinRequiredAnswers,B=n.settings.MaxAllowedAnswers,N=o[n.name],M=i?o[i.name]:void 0,D=k>1||B>1,I=r.useMemo((function(){if(!i)return n.choiceList;var e=M?M.map((function(e){return e.value})):[];return n.choiceList.filter((function(t){return(0,c.Ew)(t.parentValue)||e.includes(t.parentValue)}))}),[i,M,n]),O=r.useMemo((function(){return I.map((function(e){return{id:e.elementId,label:(0,f.I)(e,"TEXT",T),value:e.value}}))}),[I,T]),P=r.useMemo((function(){return{id:n.elementId+"_EMPTY",label:(0,c.IQ)((0,f.I)(E,"DropdownEmptyAnswer",T)),value:""}}),[n,T,E]),R=r.useMemo((function(){return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([P],O)}),[P,O]),L=(0,g.Z)((0,f.I)(n,"Text",T));return r.createElement("div",{key:n.elementId,className:w.variable},r.createElement("div",{id:n.elementId+"_LABEL",className:w.label,dangerouslySetInnerHTML:{__html:L}}),r.createElement(h.Z,{id:n.elementId+"_INPUT",labelId:t.elementId+"_LABEL "+n.elementId+"_LABEL",value:N?N.map((function(e){return e.value||""})):[],multiple:D,onChange:function(e){return a(n.name,e)},options:R,size:(0,v.dp)(t)}),S&&r.createElement(b.Z,y({},(0,p.V)(e),{choice:S,isSelected:!0,name:S.elementId,label:(0,c.IQ)((0,f.I)(S,"TEXT",T)),value:l[n.name],onOpenEndBlur:function(e){return _(n,e)},onOpenEndChange:function(e,t){return C(n,e,t)},size:(0,s.yP)(S,"OpenEndSize","Medium"),lines:(0,s.Yu)(S,"OpenEndLines",2)})))}function _(e){var t=e.variables,n=e.onVariableChanged,i=e.openEndValue,o=e.getFirstOpenEndedChoice,a=e.onOpenEndChange,s=e.onOpenEndBlur,c=(0,u.Fg)(),l=d(y(y({},e),{theme:c})),m=(0,A.or)(t.map((function(e){return e.name})));return r.createElement("div",{className:l.drillDown},t.map((function(c){return r.createElement(C,y({},(0,p.V)(e),{key:c.name,variable:c,parentVariable:t[t.indexOf(c)-1],mentions:m,onVariableChanged:n,openEndValue:i,getFirstOpenEndedChoice:o,onOpenEndChange:a,onOpenEndBlur:s}))})))}var x,w=n(5498),T=n(11110),E=(x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},x(e,t)},function(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},k=function(e){function t(t){var n=e.call(this,t)||this;return n.getValue=function(e,t){return null==t?[]:n.getMentions(e,t.name).map((function(e){return e.value}))},n.onVariableChanged=function(e,t){n.setMentions(n.props,e,(function(e){return e.clear().add(t.map((function(e){return{value:e}})))}))},n.availableDropdowns=function(e){return e.sequencedVariables.filter((function(e){return e.choiceList}))},n.onOpenEndChange=function(e,t,r){n.setState((function(i){var o,a=S({},i);return a.openEndValue=S(S({},a.openEndValue),((o={})[e.name]=n.truncateOpenEnd(t,r),o)),a}))},n.onOpenEndBlur=function(e,t){var r=n.state.openEndValue[e.name];n.props.dispatch((0,w.F1)(e.name,(function(e){return e.removeValue(t.value).add(t.value,r.trim())})))},n.state={popupX:0,popupY:0,openEndValue:{}},n}return E(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n),this.setDefaultChoices(n),this.setState({popupX:0,popupY:0}),this.updateData(n)},t.prototype.setDefaultChoices=function(e){if(!this.hasMentions(e))for(var t=function(t){var r=t.choiceList.filter((function(e){return(0,s.Ag)(e,"Default")})),i=n.getMentions(e,t.name);r.length>0&&i.length<1&&n.setMentions(e,t.name,(function(e){e=e.clear();for(var t=0,n=r;t<n.length;t++){var i=n[t];e=e.add(i.value)}return e}))},n=this,r=0,i=e.sequencedVariables;r<i.length;r++)t(i[r])},t.prototype.willUpdateMentions=function(e,t){for(var n,r=this.availableDropdowns(t),o=function(e){var o=r[e],s=a.getMentions(t,o.name),l=(0,i.et)(o.choiceList,s,(function(e){return e.value}));if(e>0){var u=n.map((function(e){return e.value})),m=l.filter((function(e){return(0,c.Ew)(e.parentValue)||u.includes(e.parentValue)}));l.length!==m.length&&a.setMentions(t,o.name,(function(e){return e=e.clear(),m.forEach((function(t){var n=s.find((function(e){return e.value===t.value})),r=n&&n.openEnd;e=e.add(t.value,r)})),e})),n=m}else n=l},a=this,s=0;s<r.length;s++)o(s)},t.prototype.updateData=function(e){var t=this;this.setState((function(n){var r=S({},n);return t.availableDropdowns(e).forEach((function(n){var o,a,s=(0,i.sE)(t.getMentions(e,n.name),(function(e){return!(0,c.Ew)(e.openEnd)}));void 0===s||(0,c.Ew)(s.openEnd)?r.openEndValue=S(S({},r.openEndValue),((a={})[n.name]="",a)):r.openEndValue=S(S({},r.openEndValue),((o={})[n.name]=s.openEnd,o))})),r}))},t.prototype.UNSAFE_componentWillReceiveProps=function(t){e.prototype.UNSAFE_componentWillReceiveProps.call(this,t),this.updateData(t)},t.prototype.renderQuestion=function(e){var t=this;return r.createElement(_,S({},(0,p.V)(this.props),{variables:this.availableDropdowns(this.props),onVariableChanged:this.onVariableChanged,openEndValue:this.state.openEndValue,onOpenEndChange:this.onOpenEndChange,onOpenEndBlur:this.onOpenEndBlur,getFirstOpenEndedChoice:function(e){return t.getFirstOpenEndedChoice(e)}}))},t.prototype.getFirstOpenEndedChoice=function(e){var t=this.getValue(this.props,e);return e.choiceList.find((function(e){return e.settings.OpenEndType&&t.includes(e.value)}))},t.prototype.validate=function(e){var t=this.props,n=t.questionnaire,r=t.question,i=t.mentions,o=t.useClientValidation;if((0,T.NA)(r.type,o))return(new a.O).build();for(var s=this.availableDropdowns(this.props),c=0,u=s;c<u.length;c++){var m=u[c],d=this.getValue(this.props,m),f=m.settings.MinRequiredAnswers,p=m.settings.MaxAllowedAnswers;if(d.length>0){if(null!==f&&d.length<f)return this.failValidation(s,"InvalidChoicesMin",{min:String(f)});if(null!==p&&d.length>p)return this.failValidation(s,"InvalidChoicesMax",{max:String(p)});for(var h=i[m.name],b=m.choiceList.filter(l.vo),v=function(e){var t=h.find((function(t){return t.value===e.value})),n=g.state.openEndValue[m.name];if(t){var r=g.validateOpenEnd(n,e,m.name);if(!r.isValid)return{value:r}}},g=this,A=0,y=b;A<y.length;A++){var C=v(y[A]);if("object"==typeof C)return C.value}}else if(this.isAnswerRequired(n,r))return this.failValidation(s,"IncompleteAnswer")}return(new a.O).build()},t}(o.X)},86204:function(e,t,n){"use strict";n.d(t,{T:function(){return C}});var r,i=n(67294),o=n(47103),a=n(40029),s=n(55796),c=n(39822),l=n(11325),u=n(48278),m=n(1509),d=n(78632),f=n(99076),p=n(72431),h=n(95457),b=n(15866),v=n(5498),g=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)},y=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},C=function(e){function t(t){var n=e.call(this,t)||this;return n.maxValue=function(){return 1},n.setDefaultChoices=function(){var e=n.props.sequencedVariables[0],t=e.choiceList,r=(void 0===t?[]:t).filter((function(e){return(0,h.Ag)(e,"Default")&&(0,c.pn)(e)}));n.setChoicesAsMentions(e,r)},n.onSelectedChanged=function(e){var t=e[0],r=n.props,i=r.question,a=r.executeUpdateForIdAfterSelection,s=i.variables[0];if(i.type===o.ce.RespondentLanguage&&s.choiceList.some((function(e){return e.value===t}))&&n.props.dispatch((0,v.D0)(t)),i.type===o.ce.RespondentTimeZone&&n.props.dispatch((0,v.hy)(t)),(0,l.Ew)(t))return n.setMentions(n.props,s.name,(function(e){return e.clear()})),void n.disableAndResetHybridQuestionMapppedCell(a);var c=(0,b.n)(s,t),u=n.choiceHasOpenEnd(c)&&!(0,l.Ew)(n.state.openEndValue)?n.state.openEndValue.trim():void 0;n.setMentions(n.props,s.name,(function(e){return e.set(t,u)})),n.disableAndResetHybridQuestionMapppedCell(a)},n.choiceHasOpenEnd=function(e){return!(0,l.Ew)(e.value)&&(0,c.vo)(e)},n.onOpenEndChange=function(e,t){n.setState({openEndValue:n.truncateOpenEnd(e,t)})},n.onOpenEndBlur=function(e){n.setState((function(t,r){var i=r.question.variables[0],o=(0,l.Ew)(t.openEndValue)?t.openEndValue:t.openEndValue.trim();return n.setMentions(r,i.name,(function(t){return t.removeValue(e.value).add(e.value,o)})),A(A({},t),{openEndValue:o})}))},n.state={},n}return g(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n);var r=this.props.sequencedVariables[0];if(this.hasMentions(n)){var i=this.getMentionOpenEnd(n,r.name,0);i&&this.setState({openEndValue:i})}switch(t.type){case o.ce.RespondentLanguage:var a=r.choiceList||[],s=t.name,c=this.getMentions(this.props,s),u=null;(null==c?void 0:c.length)?u=a.find((function(e){return e.value===c[0].value})):(0,l.Ew)(n.language)?a[0]:u=a.find((function(e){return e.value===n.language})),u&&(this.setMentions(n,r.name,(function(e){return e.set(u.value)}),null,!0),this.props.dispatch((0,v.D0)(u.value)));break;case o.ce.RespondentTimeZone:var m=(a=r.choiceList||[]).find((function(e){return e.value===n.timeZone}));void 0!==m&&this.setMentions(n,r.name,(function(e){return e.set(m.value)}),null,!0);break;default:this.hasMentions(n)||this.setDefaultChoices()}},t.prototype.componentDidUpdate=function(t,n){var r=this;e.prototype.componentDidUpdate.call(this,t,n);var i=this.props,a=i.question,s=i.language,c=a.variables[0],l=this.getMentions(this.props);a.type===o.ce.RespondentLanguage&&s!==t.language&&this.setMentions(this.props,c.name,(function(e){return e.set(s)})),l.forEach((function(e){var n=r.isValidChoice(e.value),i=r.isChoiceNoLongerVisible(e.value,t);n&&i&&r.setMentions(r.props,c.name,(function(t){return t.pull(e.value)}))}))},t.prototype.getValue=function(){return this.getMentionValue(this.props)||""},t.prototype.getDropdownText=function(e){var t=this.props,n=t.theme,r=t.language,i=this.getValue(),o=e.variables[0],a=(0,b.n)(o,i);return a?(0,m.I)(a,"TEXT",r):(0,m.I)(n,"DropdownEmptyAnswer",r)},t.prototype.validate=function(){return this.props.question.parent?e.prototype.validate.call(this):(new d.O).build()},t.prototype.getOpenEndChoice=function(e){var t=e.question,n=this.getValue(),r=t.variables[0];if(!(0,l.Ew)(n)&&r)return(0,b.n)(r,n)},t.prototype.renderQuestion=function(e){var t=this.props,n=t.theme,r=t.language,o=t.sequencedVariables,a=t.isDisabled,c=this.getOpenEndChoice(this.props),d=o[0],b={id:d.elementId+"_EMPTY",label:(0,l.IQ)((0,m.I)(n,"DropdownEmptyAnswer",r)),value:""},v=d.choiceList.map((function(e){return{id:e.elementId,label:(0,m.I)(e,"TEXT",r),value:e.value,isNonInteractive:(0,l.Ew)(e.value)}})),g=(0,s.dp)(e),C=e.parent?e.parent.elementId:e.elementId;return i.createElement(i.Fragment,null,i.createElement(p.Z,{id:d.elementId+"_INPUT",labelId:C+"_LABEL",value:[this.getValue()],size:g,onChange:this.onSelectedChanged,options:y([b],v),disabled:!0===a}),c&&i.createElement(f.Z,A({choice:c},(0,u.V)(this.props),{isSelected:!0,name:c.elementId,label:(0,l.IQ)((0,m.I)(c,"TEXT",r)),value:this.state.openEndValue,onOpenEndBlur:this.onOpenEndBlur,onOpenEndChange:this.onOpenEndChange,size:(0,h.yP)(c,"OpenEndSize","Medium"),lines:(0,h.Yu)(c,"OpenEndLines",2)})))},t}(a.X)},68280:function(e,t,n){"use strict";n.d(t,{L:function(){return M}});var r=n(67294),i=n(93162),o=n(40029),a=n(95457),s=n(78632),c=n(48278),l=n(25371),u=n(94184),m=n.n(u),d=n(92907),f=n(96900);function p(e,t){return t.TextFontSize*e/t.BaseFontSize}var h=(0,l.QM)({fileUploadContainer:{composes:"file-upload__container",height:function(e){return p(256,e.theme)},border:function(e){return[[3,"dashed",e.theme.ControlBorderColor]]},borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,p(256,t)/2)},textAlign:"center",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},fileUploadContainerDrag:{composes:"file-upload__container--drag",border:function(e){return[[3,"dashed",e.theme.PrimaryColor]]}},fileUploadIcon:{composes:"file-upload__icon",color:function(e){return e.theme.PrimaryColor},margin:[[0,"auto"]]},fileUploadOptionText:{composes:"file-upload__upload-option-text",fontWeight:"bolder",margin:[[25,0]]},fileUploadButton:{"&:hover":{background:function(e){var t=e.theme;return f._j(t.PrimaryColor,t.ActiveHighlightValue)}},background:function(e){return e.theme.PrimaryColor},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return f.oF(t,t.PrimaryColor)},composes:"file-upload__button",cursor:"pointer",fontSize:function(e){return p(15,e.theme)},fontWeight:700,padding:[[10,40]],transition:[["background","200ms","ease"]]},fileUploadSelectedFile:{background:function(e){var t=e.theme;return f.Fq(t.ControlBackground,t.ControlAlpha)},borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,t.ChoiceHeight/2)},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+t.ControlBorderColor+" inset"},composes:"file-upload__selected-file",marginTop:26,overflow:"hidden",position:"relative"},fileUploadFileInfo:{composes:"file-upload__file-info",height:function(e){return e.theme.ChoiceHeight},position:"relative",padding:[[0,26]],display:"flex"},fileUploadFileContainer:{composes:"file-upload__file-container",flexGrow:1,minWidth:0},fileUploadFileContainerInner:{display:"inline-flex",minWidth:0,maxWidth:"100%",cursor:"pointer",transition:"color 200ms ease",outline:"none"},fileUploadFileIcon:{composes:"file-upload__file-icon",display:"inline-block",fontSize:40,lineHeight:function(e){return e.theme.ChoiceHeight+"px"},marginRight:20,"& img":{borderRadius:3,height:38,objectFit:"cover",paddingTop:10,width:38}},fileUploadFileDetails:{composes:"file-upload__file-details",paddingTop:10,fontSize:function(e){return p(15,e.theme)},lineHeight:"20px",display:"inline-block",minWidth:0},fileUploadFileName:{composes:"file-upload__file-name",fontWeight:"bolder",textOverflow:"ellipsis",overflowX:"hidden",whiteSpace:"nowrap"},fileUploadFileSize:{composes:"file-upload__file-size"},fileUploadProgress:{background:function(e){return e.theme.SecondaryColor},composes:"file-upload__progress",height:function(e){return e.theme.ChoiceHeight},opacity:.15,position:"absolute",transition:"width 200ms ease 0s",zIndex:2},fileUploadProgressText:{composes:"file-upload__progress-text",flexShrink:0,fontSize:15,fontWeight:"bolder",height:"50%",margin:[["auto",30]]},fileUploadValidationError:{color:function(e){return e.theme.ErrorColor},composes:"file-upload__validation-error",extend:"fileUploadProgressText",fontWeight:"lighter"},fileUploadValidationErrorIcon:{composes:"validation-error__icon",marginRight:10},fileUploadDeleteButton:{composes:"file-upload__delete-button",height:"50%",margin:[["auto",0]],color:function(e){return e.theme.SecondaryColor},cursor:"pointer","&:hover":{color:function(e){var t=e.theme;return f._j(t.SecondaryColor,t.ActiveHighlightValue)}},"&:focus-visible":{color:function(e){return e.theme.PrimaryColor}},outline:"none"}}),b=n(11325);function v(e){var t,n=e.fileName,i=e.fileSize,o=e.fileMime,a=e.fileBlob,s=e.fileProgress,c=e.isValid,u=e.onFileOpen,f=e.onFileSelection,p=e.variableName,v=e.browseFilesLabel,g=e.dragFilesLabel,A=e.uploadErrorMessage,y=(0,l.Fg)(),C=h({theme:y}),_=r.useState(!1),x=_[0],w=_[1],T=r.useState(0),E=T[0],S=T[1],k=void 0!==n&&""!==n;function B(e){e&&f(e)}function N(e){e.preventDefault(),e.stopPropagation();var t=E-1;S(t),t>0||w(!1)}function M(){e.onClearFile()}function D(e,t){" "!==e.key&&"Enter"!==e.key||(t&&t(),e.preventDefault())}return r.createElement("div",{className:"file-upload__question"},r.createElement("div",{className:m()(C.fileUploadContainer,x&&C.fileUploadContainerDrag),onDrop:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&e.dataTransfer.files[0]&&B(e.dataTransfer.files[0]),w(!1),S(0)},onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),S(E+1),w(!0)},onDragExit:N,onDragLeave:N,onDragOver:function(e){e.preventDefault(),e.stopPropagation()}},r.createElement("div",{className:C.fileUploadIcon},r.createElement(d.G,{icon:["far","cloud-upload"],size:"2x"})),r.createElement("div",{className:C.fileUploadOptionText},g),r.createElement("div",{className:C.fileUploadButton,tabIndex:0,onKeyPress:function(e){D(e,(function(){return t.click()}))}},r.createElement("label",{htmlFor:p+"_INPUT"},r.createElement("input",{id:p+"_INPUT",type:"file",className:"form-control",hidden:!0,onChange:function(e){B(e.target.files[0])},ref:function(e){return t=e}}),v))),k&&r.createElement("div",{className:C.fileUploadSelectedFile},c&&s<1&&r.createElement("div",{className:C.fileUploadProgress,style:{width:100*s+"%"}}),r.createElement("div",{className:C.fileUploadFileInfo},r.createElement("div",{className:C.fileUploadFileContainer},r.createElement("div",{className:C.fileUploadFileContainerInner,onClick:u,role:"button",tabIndex:-1},r.createElement("div",{className:C.fileUploadFileIcon},function(){switch(o.split("/").shift()){case"image":return a?a&&r.createElement("img",{alt:"File preview",src:URL.createObjectURL(a)}):r.createElement(d.G,{icon:["far","file-image"]});case"video":return r.createElement(d.G,{icon:["far","file-video"]});case"audio":return r.createElement(d.G,{icon:["far","file-audio"]});case"text":return r.createElement(d.G,{icon:["far","file-alt"]});case"application":switch(o.split("/").pop()){case"pdf":return r.createElement(d.G,{icon:["far","file-pdf"]});case"x-zipped-compressed":return r.createElement(d.G,{icon:["far","file-archive"]});case"vnd.ms-excel":case"vnd.openxmlformats-officedocument.spreadsheetml.sheet":return r.createElement(d.G,{icon:["far","file-excel"]});case"msword":case"vnd.openxmlformats-officedocument.wordprocessingml.document":return r.createElement(d.G,{icon:["far","file-word"]});case"vnd.ms-powerpoint":case"vnd.openxmlformats-officedocument.presentationml.presentation":return r.createElement(d.G,{icon:["far","file-powerpoint"]});default:return r.createElement(d.G,{icon:["far","file"]})}default:return r.createElement(d.G,{icon:["far","file"]})}}()),r.createElement("div",{className:C.fileUploadFileDetails},r.createElement("div",{className:C.fileUploadFileName},n),r.createElement("div",{className:C.fileUploadFileSize},(0,b.hR)(i))))),c?r.createElement("div",{className:C.fileUploadProgressText},(100*s).toFixed(0),"%"):r.createElement("div",{className:C.fileUploadValidationError},r.createElement(d.G,{icon:["far","exclamation-triangle"],className:C.fileUploadValidationErrorIcon}),A),r.createElement("div",{className:C.fileUploadDeleteButton,onClick:M,onKeyPress:function(e){D(e,M)},role:"button",tabIndex:0},r.createElement(d.G,{icon:"times-circle"})))))}var g,A=n(1509),y=n(5498),C=n(9669),_=n.n(C),x=n(34370),w=function(e){var t=this;this.cancel=function(){t.source.cancel()},this.source=e},T=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},E=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},S=function(e,t){var n=t();Object.values(n.files.filesByVariableName).every((function(e){return e.every((function(e){return"completed"===e.status||"failed"===e.status}))}))&&e((0,y.Ru)(!0))},k=n(11110),B=(g=function(e,t){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},g(e,t)},function(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),N=function(){return N=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},N.apply(this,arguments)},M=function(e){function t(t){var n=e.call(this,t)||this;return n.onFileOpen=function(){var e=n.state,t=e.fileBlob,r=e.fileName;t&&(0,i.saveAs)(t,r)},n.onClearFile=function(){n.clearFileSelection()},n.onFileSelection=function(e){var t=e.name,r=e.size,i=e.type,o=n.props,a=o.question,s=o.matrix,c=o.dispatch,l=a.variables[0];if(n.setState((function(n){return N(N({},n),{fileName:t,size:r,mimeType:i,fileBlob:new Blob([e]),status:"",progress:0,isValid:!0,errorMessage:""})})),c((0,y.F1)(l.name,(function(e){return e.clear()}))),c((0,y.hw)()),r>0){var u=function(){c((0,y.F1)(l.name,(function(e){return e.add(JSON.stringify({fileName:t,size:r,mimeType:i}))})))};n.isFileSizeValid(e.size)?n.isMimeTypeValid(e.name)?c(function(e,t,n,r){var i=this;return function(o,a){return T(i,void 0,void 0,(function(){var i,s,c,l,u,m,d,f;return E(this,(function(p){switch(p.label){case 0:if(a().interview.respondent.simulated)return o((0,y.Xn)(e,t)),r(),[2];(i=new FormData).append("variableName",e),i.append("matrix",String(t)),i.append("file",n),s=_().CancelToken,c=s.source(),l=new w(c),o((0,y.zt)(e,t,n.name,n.size,l)),o((0,y.Ru)(!1)),p.label=1;case 1:return p.trys.push([1,3,4,5]),[4,o((0,x.Jd)()).post("f/Upload",i,{cancelToken:c.token,onUploadProgress:function(n){n.lengthComputable&&o((0,y.ap)(e,t,n.loaded/n.total))}})];case 2:if(200!==(u=p.sent()).status)throw new Error("Unexpected status "+u.status);return(m=u.data.key)?(o((0,y.pe)(e,t,n.name,new Error("File upload failed "+n.name))),r(m),[2]):(o((0,y.Xn)(e,t)),r(),[3,5]);case 3:return d=p.sent(),_().isCancel(d)?[2]:(o((0,y.pe)(e,t,n.name,d)),(f=d.response)&&413===f.status?(r("InvalidFileSize"),[2]):(r("UnexpectedError"),[3,5]));case 4:return o(S),[7];case 5:return[2]}}))}))}}(l.name,s,e,(function(e){e?n.setInvalidState(e):u()}))):(n.setInvalidState("InvalidFileType"),u()):(n.setInvalidState("InvalidFileSize"),u())}},n.setInvalidState=function(e){var t=(0,A.I)(n.props.questionnaire,e,n.props.language);n.setState((function(e){return N(N({},e),{isValid:!1,errorMessage:t})}))},n.clearFileSelection=function(){var e=n.props.question.variables[0];n.props.dispatch(function(e,t){var n=this;return function(r,i){return T(n,void 0,void 0,(function(){var n,o;return E(this,(function(a){switch(a.label){case 0:if(i().interview.respondent.simulated)return[2];r((0,y.tu)(e,t)),r(S),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r((0,x.Jd)()).delete("f/delete",{params:{variableName:e,matrix:t}})];case 2:if(200!==(n=a.sent()).status)throw new Error("Unexpected status "+n.status);if(!n.data.success)throw new Error("File deletion failed "+e);return[3,4];case 3:return o=a.sent(),console.log(o),[3,4];case 4:return[2]}}))}))}}(e.name,n.props.matrix)),n.setState({fileName:"",size:0,mimeType:"",fileBlob:null}),n.setMentions(n.props,e.name,(function(e){return e.clear()}))},n.state={fileName:"",size:0,mimeType:"",fileBlob:null,status:"",progress:0,isValid:!0,errorMessage:""},n}return B(t,e),t.prototype.initializeQuestion=function(t,n){var r=this;e.prototype.initializeQuestion.call(this,t,n),this.updateState(n);var i=n.question.variables[0],o=this.getMention(n,i.name);if(o){var a=JSON.parse(o.value);n.dispatch(function(e,t,n,r){var i=this;return void 0===r&&(r=0),function(o,a){return T(i,void 0,void 0,(function(){var i,s;return E(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),a().interview.respondent.simulated?[2,null]:[4,o((0,x.Jd)()).get("f/GetFile",{params:{variableName:e,fileName:t,matrix:r},responseType:"blob"})];case 1:if(200!==(i=c.sent()).status)throw new Error("Unexpected status "+i.status);if(i.data.type!==n)throw new Error("File not found "+t);return[2,i.data];case 2:return s=c.sent(),o((0,y.ou)(e,t,s)),[2,null];case 3:return[2]}}))}))}}(i.name,a.fileName,a.mimeType)).then((function(e){r.setState((function(t){return N(N({},t),{fileBlob:e})}))}))}},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.updateState(e)},t.prototype.updateState=function(e){var t=this;this.setState((function(n){var r=N({},n),i=e.question.variables[0],o=t.getMention(e,i.name);if(o){var a=JSON.parse(o.value);r.fileName=a.fileName,r.size=a.size,r.mimeType=a.mimeType}var s=t.getFile(e,i.name);return s&&(r.status=s.status,r.progress=s.progress),r}))},t.prototype.renderQuestion=function(){var e=this.state,t=e.fileName,n=e.size,i=e.mimeType,o=e.status,a=e.fileBlob,s=e.progress,l=e.isValid,u=e.errorMessage,m=this.props,d=m.theme,f=m.language,p=this.props.question.variables[0],h=(0,A.I)(d,"BrowseFiles",f)||"BrowseFiles",b=(0,A.I)(d,"DragDropFiles",f)||"DragDropFiles";return r.createElement(v,N({},(0,c.V)(this.props),{variableName:p.name,fileName:t,fileSize:n,fileType:t.split(".").pop(),fileMime:i,fileStatus:o,fileBlob:a,fileProgress:s,onClearFile:this.onClearFile,onFileSelection:this.onFileSelection,onFileOpen:this.onFileOpen,browseFilesLabel:h,dragFilesLabel:b,isValid:l,uploadErrorMessage:u}))},t.prototype.validate=function(){var e=this.props,t=e.question,n=e.useClientValidation,r=e.questionnaire;if((0,k.NA)(t.type,n))return(new s.O).build();var i=t.variables[0],o=this.isAnswerRequired(r,t),c=this.getMention(this.props,i.name);if(o&&!c)return(new s.O).fail(i.name,"IncompleteAnswer").build();if(c){var l=JSON.parse(c.value);if(!this.isMimeTypeValid(l.fileName))return(new s.O).fail(i.name,"InvalidFileType").build();if(!this.isFileSizeValid(l.size)){var u=1024*parseFloat((0,a.yP)(t,"MaxFileSize"));return(new s.O).fail(i.name,"InvalidFileSize",{max:u.toString()}).build()}}return(new s.O).build()},t.prototype.isFileSizeValid=function(e){var t=1024*parseFloat((0,a.yP)(this.props.question,"MaxFileSize"));return!(t&&t>0&&e>t)},t.prototype.isMimeTypeValid=function(e){var t=(0,a.yP)(this.props.question,"AcceptedFileTypes"),n=[];t&&t.length>0&&(n=t.split(","));var r=e.split(".").pop();return 0===n.length||void 0!==e&&n.some((function(e){return e.includes(r)}))},t}(o.X)},57159:function(e,t,n){"use strict";n.d(t,{F:function(){return E}});var r,i=n(67294),o=n(16856),a=n(40029),s=n(6636),c=n(95457),l=n(11325),u=n(78813),m=n(78632),d=n(48278),f=n(14121),p=n(1509),h=n(88507),b=n(27775),v=n(39822),g=n(47103),A=n(89482),y=n(55796),C=n(11110),_=n(7171),x=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w.apply(this,arguments)},T=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},E=function(e){function t(t){var n=e.call(this,t)||this;return n.validateSignal=new u.M,n.accordionRefs=[],n.setOpenEndState=function(e,t){n.setState((function(n){var r=w({},n);return r.openEndValue[e]=t,r}))},n.hasMaxAnswers=function(e){return n.getMaxAnswers(e)>0},n.getMaxAnswers=function(e){if((0,f._3)(e))return 1;var t=n.props.sequencedRows,r=(0,c.Yu)(e,"MaxAllowedAnswers",-1),i=t.filter((function(e){return!(0,f.Ur)(e)})).length;return(0,o.VV)([r,i].filter(Boolean))},n.onIsRowSelected=function(e){return null!=e.variables[0]&&null!=n.getMention(n.props,e.variables[0].name)},n.onOpenEndChange=function(e,t){var r=t.target.value;n.setState((function(t){var i,o=w({},t);return o.openEndValue=w(w({},o.openEndValue),((i={})[(0,f.W4)(e)]=n.truncateOpenEnd(e,r),i)),o}))},n.onOpenEndBlur=function(e){var t=(0,f.W4)(e),r=n.state.openEndValue[t];(0,l.Ew)(r)?n.setMentions(n.props,t,(function(e){return e.clear()})):n.setMentions(n.props,t,(function(t){return t.set((0,c.yP)(e,"OpenEndAnswerCode","0"),r.trim())}))},n.onExpandRow=function(e){n.setState((function(t){var r=w({},t);return r.expandedRowsIndices=T(t.expandedRowsIndices),n.isRowExpanded(e.index,r)?(0,o.X4)(r.expandedRowsIndices,e.index):r.expandedRowsIndices=[e.index],r}))},n.onAddAccordionRef=function(e,t){n.accordionRefs[e]=t},n.adjustScrollPosition=function(e){var t=n.accordionRefs[e.index];if(t){var r=t.getBoundingClientRect();if(r.top<0){var i=(0,h.Bk)().getState().application.mode!==A.E.Normal?-38:0,o=(0,l.DB)();o.scrollTo(0,o.scrollTop+r.top+r.height+i)}}},n.getRowPosition=function(e){return n.props.sequencedRows.findIndex((function(t){return t.index===e.index}))},n.isRowExpanded=function(e,t){return void 0===t&&(t=n.state),t.expandedRowsIndices.includes(e)},n.onShouldHideCell=function(e,t){var r=(0,f.aX)(e,t);if(!r||null==r.skipLogic)return!1;var i=!(0,n.props.dispatch)((0,_.lR)(r));return i&&n.hasMentions(n.props,r.name)&&n.setMentions(n.props,r.name,(function(e){return e.clear()})),i},n.isChoiceSelected=function(e,t){return n.getMentions(n.props,e.name).some((function(e){return e.value===t.value}))},n.isColumnChoiceSelected=function(e,t){return n.props.sequencedRows.some((function(r){if(r.type!==s.a.Variable)return!1;var i=(0,f.aX)(r,e);return n.isChoiceSelected(i,t)}))},n.onShouldDisableCell=function(e,t){return n.props.sequencedColumns.filter((function(e){return e.variables[0]})).some((function(r){var i=(0,f.aX)(e,r);return i.choiceList.some((function(r){var o=(0,c.yP)(r,"DisableColumns");if(!(0,l.Ew)(o)&&n.getMentions(n.props,i.name).some((function(e){return e.value===r.value}))&&o.replace(/\s/g,"").split(",").find((function(e){return e===t.index.toString()}))){var a=(0,f.aX)(e,t),s=n.getMentions(n.props,a.name);return s&&s.length>0&&n.setMentions(n.props,a.name,(function(e){return e.clear()})),!0}return!1}))}))},n.setChoicesAsMentions=function(e,t){var r=t.map((function(e){return{value:e.value}}));r.length&&n.setMentions(n.props,e.name,(function(e){return e.clear().add(r)}),void 0,!0)},n.validateRowOpenEnd=function(e,t){if((0,c.Z9)(e,"OpenEndType")){var r=(0,f.W4)(e),i=t[r];if(e.openEndActive){if(!(0,l.Ew)(i.trim())||n.axisHasMentions(e)){var o=n.validateOpenEnd(i,e,r);if(!o.isValid)return o}}else(0,l.Ew)(i)||n.setMentions(n.props,r,(function(e){return e.clear()}))}return(new m.O).build()},n.onValidateRowOpenEnd=function(e){return n.validateRowOpenEnd(e,n.state.openEndValue)},n.onValidateChoiceOpenEnd=function(e,t){if((0,c.Z9)(t,"OpenEndType")){var r=n.isColumnChoiceSelected(e,t),i=(0,f.W4)(t),o=n.state.openEndValue[i];if(r||!(0,l.Ew)(o.trim())){var a=n.validateOpenEnd(o,t,i);if(!a.isValid)return a}}return(new m.O).build()},n.onValidateCell=function(e,t){var r=n.props,i=r.questionnaire,o=r.question,a=r.language,s=new m.O,l=n.isAnswerRequired(i,o)&&n.isAxisAnswerRequired(e)&&n.isAxisAnswerRequired(t),u=n.onShouldDisableCell(e,t),d=n.cellHasMentions(e,t);if(u||!l&&!d)return s.build();var h=o.variables.find((function(t){return e.variables[0].name===t.name})),b=(0,f.aX)(e,t),g=(0,p.I)(o,"CustomErrorMessage",a);if(!d){var A=h.choiceList.filter((function(e){return(0,c.Ag)(e,"Default")&&!(0,v.pn)(e)}));return A.length?(n.setChoicesAsMentions(h,A),s.build()):n.validateSoftPrompt(n.props,[b])}var y=n.getMentions(n.props,b.name),C=n.minValue()||t.settings.MinRequiredAnswers,_=n.maxValue()||t.settings.MaxAllowedAnswers;return null!==C&&y.length<C?s.fail(b.name,g||"InvalidChoicesMin",{min:String(C)}).build():null!==_&&y.length>_?s.fail(b.name,g||"InvalidChoicesMax",{max:String(_)}).build():s.build()},n.state={openEndValue:{},expandedRowsIndices:[]},n}return x(t,e),t.prototype.initializeQuestion=function(t,n){var r=this;e.prototype.initializeQuestion.call(this,t,n),this.setState({openEndValue:{},validationResult:null,expandedRowsIndices:[]},(function(){return r.updateData(n)})),this.initializeOpenEnd(t,n),this.setDefaultValues(n.sequencedVariables),(0,o.S6)(t.rows,(function(e){r.axisHasMentions(e)&&(0,o.yW)(n.sequencedRows,(function(t){return t.index!==e.index}))&&(0,o.S6)(e.variables,(function(e){r.setMentions(r.props,e.name,(function(e){return e.clear()}))}))}))},t.prototype.initializeOpenEnd=function(e,t){var n=this;e.rows.forEach((function(e){if(e.variables.forEach((function(e){e.choiceList.filter((function(e){return(0,c.Z9)(e,"OpenEndType")})).forEach((function(e){var r=(0,f.W4)(e),i=n.getMentions(t,r),o=null!=i?i[0]:void 0,a=(0,l.Ew)(null==o?void 0:o.openEnd)?"":o.openEnd;n.state.openEndValue[r]!==a&&n.setOpenEndState(r,a)}))})),(0,c.Z9)(e,"OpenEndType")){var r=(0,f.W4)(e),i=n.getMentions(t,r),o=null!=i?i[0]:void 0,a=(0,l.Ew)(null==o?void 0:o.openEnd)?"":o.openEnd;n.state.openEndValue[r]!==a&&n.setOpenEndState(r,a)}}))},t.prototype.UNSAFE_componentWillReceiveProps=function(t){this.updateData(t),this.initializeOpenEnd(t.question,t),e.prototype.UNSAFE_componentWillReceiveProps.call(this,t)},t.prototype.componentDidUpdate=function(t,n){var r=this;e.prototype.componentDidUpdate.call(this,t,n);var i=this.props.sequencedRows;if(this.state.validationResult&&!this.state.validationResult.isValid&&!(0,o.Xy)(n.validationResult,this.state.validationResult))if(this.hasMaxAnswers(this.props.question)){var a=i.find((function(e){return!(0,f.Ur)(e)&&r.isRowInvalid(r.state,r.props,e)}));a&&!this.isRowExpanded(a.index)&&this.onExpandRow(a)}else this.setState((function(e){var t=w({},e);return t.expandedRowsIndices=T(i.filter((function(e){return!(0,f.Ur)(e)})).map((function(e){return e.index}))),t}))},t.prototype.didUpdateMentions=function(t,n){var r=this;e.prototype.didUpdateMentions.call(this,t,n);var i=this.props.mentions,a=n.mentions,s=Object.keys(i),c=Object.keys(a);if(this.hasMaxAnswers(t)){var l=(0,o.e5)(s,c);l.length>0?l.forEach((function(e){r.openNextRow(e)})):s.forEach((function(e){(0,o.Xy)(i[e],a[e])||r.openNextRow(e)}))}},t.prototype.setDefaultValues=function(e){var t=this;e.filter((function(e){return!t.hasMentions(t.props,e.name)})).forEach((function(e){var n=e.choiceList,r=(void 0===n?[]:n).filter((function(e){return(0,c.Ag)(e,"Default")&&(0,v.pn)(e)}));t.setChoicesAsMentions(e,r)}))},t.prototype.updateData=function(e){var t=this,n=e.sequencedRows;(0,o.xb)(this.state.expandedRowsIndices)&&this.setState((function(e,r){var i,o=w({},e);if(!t.hasMaxAnswers(r.question)||(0,c.Ag)(r.question,"DisableAutoCollapse"))(i=o.expandedRowsIndices).push.apply(i,n.filter((function(e){return!(0,f.Ur)(e)})).map((function(e){return e.index})));else{var a=n.find((function(e){return!(0,f.Ur)(e)}));a&&o.expandedRowsIndices.push(a.index)}return o}))},t.prototype.isRowInvalid=function(e,t,n){return t.sequencedColumns.some((function(t){var r=(0,f.aX)(n,t),i=e.validationResult.errorsByVariableName[r.name];return i&&i.length>0}))},t.prototype.openNextRow=function(e){var t=this;if(this.getMentions(this.props,e).length===this.getMaxAnswers(this.props.question)){var n=this.props.sequencedRows,r=n.find((function(t){return t.variables.map((function(e){return e.name})).includes(e)}));if(r&&!(0,f.vo)(r)){var i=n.find((function(e,n){return!(0,f.Ur)(e)&&n>t.getRowPosition(r)&&!t.axisHasMentions(e)}));i?this.isRowExpanded(i.index)||(this.adjustScrollPosition(r),this.onExpandRow(i)):this.onExpandRow(r)}}},t.prototype.cellHasMentions=function(e,t){var n=this.props.question,r=(0,y.sI)(n)?(0,y.Y_)(n):null,i=(0,f.aX)(e,t);return this.getMentions(this.props,i.name).some((function(e){var t=e.value===r,n=void 0!==e.value&&null!==e.value&&!t,i=void 0!==e.openEnd&&null!==e.openEnd&&e.openEnd.length>0;return n||i}))},t.prototype.validate=function(e){var t=this.props,n=t.question,r=t.useClientValidation;if(n.variables.forEach(this.removeUnavailableMentions),this.removeHiddenOrDisabledOpenEndMentions(this.props),(0,C.NA)(n.type,r))return(new m.O).build();var i=this.validateSoftPrompt(this.props);if(!i.isValid)return i;if(n.type===g.ce.StarRatingGrid&&1===n.variables.length){var a=(0,o.sE)(n.rows,(function(e){return!(0,o.xb)(e.variables)})),s=n.columns[0];return this.onValidateCell(a,s)}var c=this.validateSignal.dispatch(e).reduce((function(e,t){return{isValid:e.isValid&&t.isValid,errorsByVariableName:w(w({},e.errorsByVariableName),t.errorsByVariableName)}}),{isValid:!0,errorsByVariableName:{}});return e&&e.silent||this.setState((function(e){return w(w({},e),{validationResult:c})})),c},t.prototype.removeHiddenOrDisabledOpenEndMentions=function(e){var t=this,n=e.sequencedRows,r=e.sequencedColumns;T(n,r).forEach((function(e){if(!1===e.openEndActive){var n=(0,f.W4)(e);(0,l.Ew)(n)||t.hasMentions(t.props,n)&&t.setMentions(t.props,n,(function(e){return e.clear()}))}}))},t.prototype.renderQuestion=function(){return i.createElement(b.Z,w({},(0,d.V)(this.props),{columns:this.props.sequencedColumns,rows:this.props.sequencedRows,validateSignal:this.validateSignal,isRowSelected:this.onIsRowSelected,expandRow:this.onExpandRow,addAccordionRef:this.onAddAccordionRef,expandedRowsIndices:this.state.expandedRowsIndices,shouldHideCell:this.onShouldHideCell,shouldDisableCell:this.onShouldDisableCell,validationResult:this.state.validationResult,openEndValue:this.state.openEndValue,validateCell:this.onValidateCell,validateRowOpenEnd:this.onValidateRowOpenEnd,validateChoiceOpenEnd:this.onValidateChoiceOpenEnd,onOpenEndBlur:this.onOpenEndBlur,onOpenEndChange:this.onOpenEndChange,showSoftPrompt:this.props.showSoftPrompt,matrix:this.props.matrix,isColumnChoiceSelected:this.isColumnChoiceSelected,max:this.props.max,sequencedVariables:this.props.sequencedVariables}))},t}(a.X)},1528:function(e,t,n){"use strict";n.d(t,{s:function(){return A}});var r=n(67294),i=n(40029),o=n(95457),a=n(1509),s=n(48278),c=n(25371),l=n(96900),u=(0,c.QM)({imageArea:{border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},composes:"image-area",display:"inline-block",fontSize:0,lineHeight:0,maxWidth:"100%",overflow:"hidden",position:"relative"},imageAreaImage:{composes:"image-area__image",lineHeight:0,maxWidth:"100%",position:"relative",cursor:"pointer"},imageAreaLegend:{composes:"image-area-legend",background:function(e){var t=e.theme;return(0,l.Fq)(t.ControlBackground,t.ControlAlpha)},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return(0,l.oF)(t,(0,l.$X)(t))},display:"flex",marginTop:18,padding:9},dynamicImageAreaLegend:{flexWrap:"wrap"},imageAreaLegendTitle:{composes:"image-area-legend__title",alignSelf:"center",flex:1,fontWeight:600,margin:[[0,20]]},imageAreaLegendList:{display:"flex",flexWrap:"wrap",flex:3,composes:"image-area-legend__list"},initialFlex:{flex:"auto"},imageAreaLegendContainer:{composes:"image-area-legend__container",margin:[[4,20]],display:"flex",alignItems:"center"},imageAreaLegendColor:{borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,12.5)},composes:"image-area-legend__color",display:"inline-block",height:25,marginRight:15,verticalAlign:"middle",width:25},imageAreaLegendText:{composes:"image-area-legend__text",display:"inline-block",verticalAlign:"middle"}});function m(e){var t=(0,c.Fg)(),n=r.useRef(),i=e.text,o=e.onSelect,a=e.variableName,s=u({theme:t}),l=e.imageSrc,m=e.children,d=e.height,f=e.width;return r.createElement(r.Fragment,null,r.createElement("div",{id:a,className:s.imageArea,"aria-label":i,role:"group",onKeyDown:function(e){e.target===n.current&&" "===e.key&&e.preventDefault()},onMouseDown:function(e){o(e),e.preventDefault()}},r.createElement("img",{className:s.imageAreaImage,src:l,alt:"",style:{width:f,height:d}}),m))}var d=n(94184),f=n.n(d),p=(0,c.QM)({imageAreaSelection:{composes:"image-area__selection",content:"",cursor:"pointer",display:"inline-block",lineHeight:0,maxWidth:"100%",opacity:"1",position:"absolute",transition:"background 200ms, opacity 200ms",width:"10px",height:"10px",borderRadius:"50%",boxShadow:"0 6px 12px rgba(0,0,0,.175)",background:"white !important"},imageAreaSelectionActive:{background:"#999",composes:"image-area__selection--active"}});function h(e){var t=r.useRef(),n=e.index,i=e.variableName,o=e.onSelect,a=(0,c.Fg)(),s=p({theme:a}),l=e.top,u=e.left,m=e.color,d=e.areaCode,h={top:l||"0px",left:u||"0px",border:(e.borderWidth||1)+"px solid "+(m&&""!=m?m:"#000000")||"1px solid black"},b=r.useState(!1),v=b[0],g=b[1];return r.createElement("div",{id:i,"data-areacode":d,ref:t,role:"checkbox",tabIndex:0,"data-index":n,className:f()(s.imageAreaSelection,v&&s.imageAreaSelectionActive),onMouseDown:function(e){o(n),e.preventDefault()},onFocus:function(){return g(!0)},onMouseOver:function(){return g(!0)},onMouseOut:function(){return g(!1)},style:h})}var b,v=(b=function(e,t){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},b(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)},A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onSelectDot=!1,t.renderHeatMapPreview={},t}return v(t,e),t.prototype.onSelectedHeatMapArea=function(e,t){void 0===t&&(t="");var n=e.target.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,o=r.toFixed(4)+","+i.toFixed(4);this.onSelectDot||(this.setState((function(e){var t=g({},e);return t.value?t.value=t.value+"|"+o:t.value=o,t})),this.setMentions(this.props,t,(function(e){return e.add(o)})),this.renderHeatMapPreview[t]&&this.renderHeatMapPreview[t].length>0||(this.renderHeatMapPreview[t]=[]),this.renderHeatMapPreview[t].push(o)),this.onSelectDot=!1},t.prototype.onSelectedHeatMapAreaOnDot=function(e,t){this.onSelectDot=!0,this.setState((function(t){var n=g({},t),r=n.value?n.value.split("|"):[];return r.length>0&&r.splice(e-1,1),0!=r.length?n.value=r.join("|"):n.value=void 0,n}));var n=this.getMentions(this.props).filter((function(t){return t.index===e}));n.length>0&&this.setMentions(this.props,t,(function(e){return e.removeValue(n[0].value)}))},t.prototype.getDimension=function(e){return Number.isNaN(e)?"0":e+"px"},t.prototype.renderMapChoice=function(e,t,n,i){var a=this;void 0===i&&(i=1);var c=n.split(",");return r.createElement(h,g({},(0,s.V)(this.props),{key:i,top:this.getDimension(c[1]),left:this.getDimension(c[0]),color:(0,o.yP)(e,"OutlineColor"),onSelect:function(e){return a.onSelectedHeatMapAreaOnDot(e,t)},index:i,borderWidth:(0,o.yP)(e,"OutlineWeight"),variableName:t}))},t.prototype.renderMap=function(e){var t,n,r=this,i=e.variables.length>0?e.variables[0].name:"",o=null===(n=null===(t=this.state)||void 0===t?void 0:t.value)||void 0===n?void 0:n.replace("undefined","").split("|"),a=this.getMentions(this.props,i);return a&&a.length>0&&(o=[],a.map((function(e){o.push(e.value)}))),null==o?void 0:o.map((function(t,n){return r.renderMapChoice(e,i,t,n+1)}))},t.prototype.updateState=function(e){var t=this;this.setState((function(n){var r=g({},n),i=t.getMention(e);return r.value?r.value=r.value+"|"+(null==i?void 0:i.value):r.value=null==i?void 0:i.value,r}))},t.prototype.renderQuestion=function(e){var t=this,n=this.props.language,i=e.variables.length>0?e.variables[0].name:"";if(i)return r.createElement(m,g({},(0,s.V)(this.props),{imageSrc:(0,a.I)(e,"ImageUrl",n),height:(0,o.yP)(e,"Height"),width:(0,o.yP)(e,"Width"),onSelect:function(e){return t.onSelectedHeatMapArea(e,i)}}),this.renderMap(e))},t}(i.X)},38472:function(e,t,n){"use strict";n.d(t,{$:function(){return N}});var r=n(67294),i=n(16856),o=n(40029),a=n(47103),s=n(95457),c=n(15866),l=n(78632),u=n(11325),m=n(1509),d=n(48278),f=n(25371),p=n(94184),h=n.n(p),b=(0,f.QM)({imageAreaSelection:{composes:"image-area__selection",content:"",cursor:"pointer",display:"inline-block",lineHeight:0,maxWidth:"100%",opacity:0,outline:"none",position:"absolute",transition:"background 200ms, opacity 200ms"},imageAreaSelectionSelected:{background:function(e){return e.theme.PrimaryColor},composes:"image-area__selection--selected",opacity:.3},imageAreaSelectionActive:{background:"#999",composes:"image-area__selection--active",opacity:.5}});function v(e){var t=r.useRef(),n=e.text,i=e.selected,o=e.onSelect,a=e.variableName,s=(0,f.Fg)(),c=b({theme:s}),l=e.top,u=e.left,m=e.width,d=e.height,p=e.color,v=e.areaCode,g={top:l||"0px",left:u||"0px",width:m,height:d,backgroundColor:i?p:null},A=r.useState(!1),y=A[0],C=A[1];return r.createElement("div",{id:a,"data-areacode":v,ref:t,role:"checkbox","aria-checked":i,tabIndex:0,"aria-label":n,className:h()(c.imageAreaSelection,y&&c.imageAreaSelectionActive,i&&c.imageAreaSelectionSelected),onKeyDown:function(e){e.target===t.current&&" "===e.key&&(o(),e.preventDefault())},onMouseDown:function(e){o(),e.preventDefault()},onFocus:function(){return i&&C(!0)},onBlur:function(){return C(!1)},onMouseOver:function(){return C(!0)},onMouseOut:function(){return C(!1)},style:g,title:n})}var g=n(96900),A=(0,f.QM)({imageArea:{border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},composes:"image-area",display:"inline-block",fontSize:0,lineHeight:0,maxWidth:"100%",overflow:"hidden",position:"relative"},imageAreaImage:{composes:"image-area__image",lineHeight:0,maxWidth:"100%",position:"relative"},imageAreaLegend:{composes:"image-area-legend",background:function(e){var t=e.theme;return(0,g.Fq)(t.ControlBackground,t.ControlAlpha)},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return(0,g.oF)(t,(0,g.$X)(t))},display:"flex",marginTop:18,padding:9},dynamicImageAreaLegend:{flexWrap:"wrap"},imageAreaLegendTitle:{composes:"image-area-legend__title",alignSelf:"center",flex:1,fontWeight:600,margin:[[0,20]]},imageAreaLegendList:{display:"flex",flexWrap:"wrap",flex:3,composes:"image-area-legend__list"},initialFlex:{flex:"auto"},imageAreaLegendContainer:{composes:"image-area-legend__container",margin:[[4,20]],display:"flex",alignItems:"center"},imageAreaLegendColor:{borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,12.5)},composes:"image-area-legend__color",display:"inline-block",height:25,marginRight:15,verticalAlign:"middle",width:25},imageAreaLegendText:{composes:"image-area-legend__text",display:"inline-block",verticalAlign:"middle"}}),y=n(7495),C=n(32833),_=n(68088),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)};function w(e){var t=(0,f.Fg)(),n=A({theme:t}),i=e.choices,o=e.legendLabel,a=e.language,c=(0,C.Z)(),l=Object.keys(i).map((function(e){var t=i[e];return r.createElement("div",{key:e,className:n.imageAreaLegendContainer},r.createElement("div",{id:t.elementId,className:n.imageAreaLegendColor,style:{background:(0,s.yP)(i[e],"Color")}}),r.createElement(_.n,{text:(0,m.I)(i[e],"TEXT",a),render:function(e){return r.createElement("div",{className:n.imageAreaLegendText,dangerouslySetInnerHTML:{__html:e}})}}))}));return r.createElement(r.Fragment,null,c&&c.maxWidth(670)?r.createElement("div",{className:h()(n.imageAreaLegend,n.dynamicImageAreaLegend)},r.createElement("div",{className:h()(n.imageAreaLegendTitle,n.initialFlex)},"Legend"),r.createElement("div",{className:h()(n.imageAreaLegendList,n.initialFlex)},l)):r.createElement("div",{className:n.imageAreaLegend},r.createElement("div",{className:n.imageAreaLegendTitle},o),r.createElement("div",{className:n.imageAreaLegendList},l)))}function T(e){var t=(0,f.Fg)(),n=A({theme:t}),i=e.imageSrc,o=e.children,s=e.height,c=e.width,l=(0,y.Z)().type===a.ce.ImageAreaEvaluator;return r.createElement(r.Fragment,null,r.createElement("div",{className:n.imageArea,role:"group"},r.createElement("img",{className:n.imageAreaImage,src:i,alt:"",style:{width:c,height:s}}),o),l&&r.createElement(w,x({},e)))}var E,S=n(11110),k=(E=function(e,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},E(e,t)},function(e,t){function n(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),B=function(){return B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},B.apply(this,arguments)},N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.availableAreas=function(e){var t=e.question,n=e.sequencedVariables;return t.type===a.ce.ImageAreaEvaluator?n.filter((function(e){return!(0,i.xb)(e.settings)})):n.filter((function(e){return e.choiceList&&e.choiceList.length>0}))},t}return k(t,e),t.prototype.onSelectArea=function(e){var t=e.choiceList,n=this.getAreaCurrentChoice(this.props,e),r=void 0===n?0:t.findIndex((function(e){return e.value===n.value}))+1;r>=t.length?this.setMentions(this.props,e.name,(function(e){return e.clear()})):(n=t[r],this.setMentions(this.props,e.name,(function(e){return e.set(n.value)})))},t.prototype.onSelectChoice=function(e){(0,u.Fz)();var t=this.props.question,n=t.variables[0],r=this.getMentions(this.props);if((0,s.Z9)(t,"MaxAllowedAnswers")&&r.length>=(0,s.Yu)(t,"MaxAllowedAnswers")&&!r.find((function(t){return t.value===e.value}))){var i=r[0];this.setMentions(this.props,n.name,(function(e){return e.toggle(i.value)}))}this.setMentions(this.props,n.name,(function(t){var r=(0,s.Ag)(e,"Exclusive");return void 0!==n.choiceList&&n.choiceList.forEach((function(e){(r||(0,s.Ag)(e,"Exclusive"))&&(t=t.removeValue(e.value))})),t.toggle(e.value)}))},t.prototype.getAreaCurrentChoice=function(e,t){var n=this.getMentionValue(e,t.name);return(0,c.n)(t,n)},t.prototype.isChoiceSelected=function(e){return this.getMentions(this.props).some((function(t){return t.value===e.value}))},t.prototype.getDimension=function(e,t){var n=100*(0,s.Yu)(e,t);return Number.isNaN(n)?"0":n+"%"},t.prototype.renderMapChoice=function(e,t){var n=this;return r.createElement(v,B({},(0,d.V)(this.props),{key:t.index,selected:this.isChoiceSelected(t),top:this.getDimension(t,"Top"),width:this.getDimension(t,"Width"),height:this.getDimension(t,"Height"),left:this.getDimension(t,"Left"),color:(0,s.yP)(t,"Color"),onSelect:function(){return n.onSelectChoice(t)},text:(0,m.I)(t,"TEXT",this.props.language),variableName:t.elementId}))},t.prototype.renderMapArea=function(e,t){var n=this,i=this.getAreaCurrentChoice(this.props,t);return r.createElement(v,B({},(0,d.V)(this.props),{key:t.index,selected:void 0!==i,top:this.getDimension(t,"Top"),width:this.getDimension(t,"Width"),height:this.getDimension(t,"Height"),left:this.getDimension(t,"Left"),color:void 0!==i?(0,s.yP)(i,"Color"):null,onSelect:function(){return n.onSelectArea(t)},text:(0,m.I)(t,"TEXT",this.props.language),variableName:t.elementId,areaCode:void 0!==i?i.value:"none"}))},t.prototype.renderMap=function(e){var t=this,n=this.availableAreas(this.props);if(e.type===a.ce.ImageAreaEvaluator)return n.map((function(n){return t.renderMapArea(e,n)}));var r=n[0];return(r?r.choiceList:[]).map((function(n){return t.renderMapChoice(e,n)}))},t.prototype.renderQuestion=function(e){var t=this.props.language;return r.createElement(T,B({},(0,d.V)(this.props),{choices:this.props.sequencedVariables[0].choiceList,imageSrc:(0,m.I)(e,"ImageUrl",t),legendLabel:(0,m.I)(e,"LegendLabel",t,"Legend"),height:(0,s.yP)(e,"Height"),width:(0,s.yP)(e,"Width")}),this.renderMap(e))},t.prototype.validate=function(e){var t=this,n=this.props,r=n.questionnaire,i=n.question,o=n.showSoftPrompt,s=n.useClientValidation,c=(0,S.NA)(i.type,s),u=this.availableAreas(this.props),m=i.type===a.ce.ImageAreaSelector?u[0].choiceList.filter((function(e){return t.isChoiceSelected(e)})):u.map((function(e){return t.getAreaCurrentChoice(t.props,e)})).filter((function(e){return void 0!==e}));if(this.isSoftPrompt(this.props)&&!this.hasMentions(this.props))return this.validateSoftPrompt(this.props);if(c)return(new l.O).build();if(m.length>0){var d=this.minValue(),f=this.maxValue();if(null!==d&&null!==f){if(m.length<d||m.length>f)return this.failValidation(u,"OutOfBounds",{min:String(d),max:String(f)})}else{if(null!==d&&m.length<d)return this.failValidation(u,"InvalidChoicesMin",{min:String(d)});if(null!==f&&m.length>f)return this.failValidation(u,"InvalidChoicesMax",{max:String(f)})}}else if(!o&&this.isAnswerRequired(r,i))return this.failValidation(u,"IncompleteAnswer");return(new l.O).build()},t}(o.X)},51950:function(e,t,n){"use strict";n.d(t,{$:function(){return z}});var r=n(67294),i=n(12291),o=n(40029),a=n(95457),s=n(11325),c=n(78632),l=n(17837),u=n(88507),m=n(25371),d=n(92077),f=n.n(d),p=n(94184),h=n.n(p),b=n(84858),v=n(96900),g=(0,m.QM)({paginatedTable:{composes:"paginated-table"},table:{background:function(e){var t=e.theme;return(0,v.Fq)("#fff",t.ControlAlpha)},color:function(e){return e.theme.ForegroundColorDark},borderCollapse:"collapse",borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,20)},overflow:"hidden",boxShadow:function(e){var t=e.theme;return t.BorderWidth>1&&"0 0 0 "+t.BorderWidth+"px "+t.ControlBorderColor},margin:function(e){var t=e.theme;return t.BorderWidth>1&&t.BorderWidth},"& td, & th":{padding:[[8,24]],border:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:400}},tableRow:{composes:"row",transition:"background 100ms, color 100ms"},tableRowAlternate:{background:function(e){var t=e.theme;return(0,v.Fq)(t.ControlBackground,t.ControlAlpha)}},tableRowSelectable:{composes:"row--selectable",cursor:"pointer",userSelect:"none"},tableRowSelected:{composes:"row--selected",background:function(e){var t=e.theme;return 0!==t.ControlAlpha&&t.PrimaryColor},color:function(e){var t=e.theme;return 0!==t.ControlAlpha&&(0,v.oF)(t,t.PrimaryColor)}},tableRowCheckbox:{padding:"6px !important","& span":{height:32}},tableColumn:{background:function(e){return e.theme.SecondaryColor},color:function(e){var t=e.theme;return(0,v.oF)(t,t.SecondaryColor)},textAlign:"left",fontWeight:"normal",cursor:"pointer",userSelect:"none"},tableColumnFilter:{background:function(e){return e.theme.SecondaryColor},color:function(e){var t=e.theme;return(0,v.oF)(t,t.SecondaryColor)},padding:"0 6px 8px 6px !important"},tableColumnFilterInput:{display:"block",boxSizing:"border-box",width:"100%",background:"#fff",padding:"8px 18px",fontSize:"14px",outline:0,border:0},sortedColumn:{fontWeight:"bolder"}}),A=n(92907),y=(0,m.QM)({footer:{composes:"paginated-table__footer",display:"flex",fontSize:"12px",flexDirection:"row",alignItems:"center",padding:[[12,0]]},pageInfo:{composes:"paginated-table__page-info"},flex:{flex:1},rowsPerPage:{padding:[[0,24]],display:"flex",flexDirection:"row",alignItems:"center"}}),C=n(16856),_=(0,m.QM)({buttonGroup:{display:"flex",paddingLeft:function(e){return e.theme.BorderWidth}},groupButton:{boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+t.ControlBorderColor+" inset"},marginLeft:function(e){return-e.theme.BorderWidth},fontWeight:700,padding:function(e){return[[0,9+e.theme.BorderWidth]]},lineHeight:"1.6em",background:function(e){return e.theme.ControlBackground},color:function(e){var t=e.theme;return(0,v.oF)(t,t.ControlBackground)},userSelect:"none",cursor:"pointer","&:first-child":{borderTopLeftRadius:function(e){return e.theme.BorderRadius},borderBottomLeftRadius:function(e){return e.theme.BorderRadius}},"&:last-child":{borderTopRightRadius:function(e){return e.theme.BorderRadius},borderBottomRightRadius:function(e){return e.theme.BorderRadius}}},groupButtonActive:{boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+(0,v._j)(t.PrimaryColor,.5)+" inset"},background:function(e){return e.theme.PrimaryColor},color:function(e){var t=e.theme;return(0,v.oF)(t,t.PrimaryColor)},zIndex:2},groupButtonDisabled:{color:function(e){var t=e.theme;return(0,v.Fq)((0,v.oF)(t,t.ControlBackground),.6)},cursor:"default"}});function x(e){var t=e.children,n=e.size,i=(0,m.Fg)(),o=_({theme:i,size:n}),a=r.Children.map(t,(function(t){return t&&r.cloneElement(t,{inheritedProps:e})}));return r.createElement("div",{className:o.buttonGroup},a)}x.Button=function(e){var t=e.text,n=e.icon,i=e.active,o=e.disabled,a=e.onClick,s=e.inheritedProps.size,c=void 0===s?"large":s,l=(0,m.Fg)(),u=_({theme:l,size:c}),d=t;return n&&(d=r.createElement(A.G,{icon:n})),r.createElement("div",{onClick:o?void 0:a,className:h()(u.groupButton,o&&u.groupButtonDisabled,i&&u.groupButtonActive)},d)};var w=(0,m.QM)({pagination:{flexShrink:0}});function T(e){var t=e.tableProps,n=e.rowsPerPage,i=e.currentPage,o=e.pageCount,a=t.onChangePage,s=(0,m.Fg)(),c=w({theme:s}),l=i-1,u=l+3,d=l>2;d||(l=2,u=6);var f=u<o-2;function p(e){e>o?p(o):e<1?p(1):a((e-1)*n,n)}return f||(u=o,d=(l=o-4)>3),l=Math.max(l,2),u=Math.min(u,o),r.createElement("div",{className:c.pagination},r.createElement(x,{size:"small"},r.createElement(x.Button,{icon:"caret-left",disabled:i<=1,onClick:function(){return p(i-1)}}),r.createElement(x.Button,{text:"1",active:1===i,onClick:function(){return p(1)}}),d&&r.createElement(x.Button,{text:"…",disabled:!0}),u>1&&(0,C.w6)(l,u).map((function(e){return r.createElement(x.Button,{key:e,text:String(e),active:i===e,onClick:function(){return p(e)}})})),f&&r.createElement(x.Button,{text:"…",disabled:!0}),u>1&&r.createElement(x.Button,{text:String(o),active:i===o,onClick:function(){return p(o)}}),r.createElement(x.Button,{icon:"caret-right",disabled:i>=o,onClick:function(){return p(i+1)}})))}var E=(0,m.QM)({select:function(e){var t=e.theme;return{boxShadow:"0 0 0 "+t.BorderWidth+"px "+t.ControlBorderColor+" inset",borderRadius:t.BorderRadius,background:t.ControlBackground,color:(0,v.oF)(t,t.ControlBackground),padding:[[1,4]],lineHeight:"1.6em",border:0,margin:"10px"}}});function S(e){var t=e.options,n=e.onChange,i=e.value,o=(0,m.Fg)(),a=E({theme:o});return r.createElement("select",{className:a.select,value:i,onChange:function(e){return n(e.target.value)}},t.map((function(e){return r.createElement("option",{value:e,key:e},e)})))}function k(e){var t=e.children,n=e.rowsPerPage,i=e.tableProps,o=e.onChangeRowsPerPage,a=e.currentPage,s=e.pageCount,c=e.lengthMenuText,l=i.rowsPerPageOptions,u=(0,m.Fg)(),d=y({theme:u}),f=c.split("_MENU_"),p=f[0],h=f[1];return r.createElement("div",{className:d.footer},r.createElement("div",{className:d.pageInfo,role:"status","aria-live":"polite"},t),r.createElement("div",{className:d.flex}),r.createElement("div",{className:d.rowsPerPage},p,r.createElement(S,{value:String(n),options:l.map(String),onChange:function(e){return o(parseInt(e,10))}}),h),r.createElement(T,{currentPage:a,pageCount:s,rowsPerPage:n,tableProps:i}))}var B=n(14112),N=n(38871);function M(e){var t=e.value,n=e.onChange,i=(0,m.Fg)(),o=g({theme:i}),a=r.useRef(t),s=r.useState(t),c=s[0],l=s[1],u=r.useRef(n);return r.useEffect((function(){u.current=n}),[n]),r.useEffect((function(){if(a.current!==c){a.current=c;var e=setTimeout((function(){return u.current&&u.current(c)}),500);return function(){clearTimeout(e)}}}),[c]),r.createElement("input",{type:"text",className:o.tableColumnFilterInput,value:c,onChange:function(e){return l(e.target.value)}})}function D(e){var t=e.index,n=e.row,i=e.tableProps,o=i.selectable,a=i.columns,s=i.max,c=i.totalSelected,l=i.onChangeRowSelected,u=(0,m.Fg)(),d=g({theme:u}),f=r.useState(!1),p=f[0],b=f[1];return r.createElement("tr",{id:String(n.id),key:n.id,onMouseOver:function(){return b(!0)},onMouseOut:function(){return b(!1)},className:h()(d.tableRow,t%2==1&&d.tableRowAlternate,o&&!n.disabled&&d.tableRowSelectable,n.selected&&d.tableRowSelected),onClick:function(e){(n.selected||!s||c<s)&&(l(n,!n.selected),e.preventDefault())}},o&&"left"===u.DisplayChoiceIcon&&r.createElement("td",{className:d.tableRowCheckbox},r.createElement(N.T,{checked:n.selected,hover:p,disabled:!n.selected&&s&&c>=s,backgroundless:0===u.ControlAlpha})),a.map((function(e){var t=e.name,i=e.width;return e.searchable,r.createElement("td",{id:n.id+"_"+t,key:t,style:{minWidth:i,maxWidth:i}},n[t])})),o&&"right"===u.DisplayChoiceIcon&&r.createElement("td",{className:d.tableRowCheckbox},r.createElement(N.T,{checked:n.selected,disabled:!n.selected&&s&&c>=s,backgroundless:0===u.ControlAlpha})))}function I(e){var t=e.columns,n=e.pageRows,i=e.pageStart,o=e.max,a=e.totalRows,s=e.totalFilteredRows,c=e.totalSelected,l=e.sortAsc,u=e.sortColumn,d=e.selectable,p=e.filterable,v=e.onChangeSort,y=e.defaultRowsPerPage,C=e.rowsPerPageOptions,_=e.search,x=e.texts,w=e.onChangeSearch,T=e.onChangeColumnFilter,E=e.onChangePage,S=y||C[0]||10,N=r.useRef(S),I=r.useState(S),O=I[0],P=I[1],R=r.useRef(),L=Math.ceil(s/O),V=Math.floor(i/O)+1,F=r.useRef(_),q=r.useState(_),U=q[0],H=q[1],W=(0,m.Fg)(),z=g({theme:W});r.useEffect((function(){if(F.current!==U){F.current=U;var e=setTimeout((function(){return w(U)}),500);return function(){clearTimeout(e)}}}),[U,w]),r.useEffect((function(){R.current=E}),[E]),r.useEffect((function(){N.current!==O&&(N.current=O,R.current(0,O))}),[O]);var j=t.some((function(e){return e.searchable}));return r.createElement("div",{className:z.paginatedTable},j&&r.createElement(B.Z,{accessoryLeft:"search",style:{marginBottom:8}},r.createElement("input",{type:"text",placeholder:x.search,value:U,onChange:function(e){return H(e.target.value)}})),r.createElement("br",null),r.createElement(b.Z,null,r.createElement("table",{className:z.table},r.createElement("thead",null,r.createElement("tr",null,d&&"left"===W.DisplayChoiceIcon&&r.createElement("th",{className:z.tableColumn}),t.map((function(e){var t=e.name,n=e.width,i=e.searchable,o=e.translatedName;return r.createElement("th",{key:t,onClick:function(){return v(t,u!==t||!l)},style:{minWidth:n,maxWidth:n},className:h()(z.tableColumn,u===t&&z.sortedColumn)},i&&r.createElement(A.G,{icon:[u===t&&z.sortedColumn?"fas":"far","search"],size:"sm",fixedWidth:!0}),o||t,u===t&&r.createElement(A.G,{icon:l?"angle-down":"angle-up",fixedWidth:!0}))})),d&&"right"===W.DisplayChoiceIcon&&r.createElement("th",{className:z.tableColumn})),p&&r.createElement("tr",null,d&&"left"===W.DisplayChoiceIcon&&r.createElement("th",{className:z.tableColumn}),t.map((function(e){var t=e.name,n=e.width,i=e.filter;return r.createElement("th",{key:t,className:z.tableColumnFilter,style:{minWidth:n,maxWidth:n}},r.createElement(M,{value:i||"",onChange:function(e){return T(t,e)}}))})),d&&"right"===W.DisplayChoiceIcon&&r.createElement("th",{className:z.tableColumn}))),r.createElement("tbody",null,n.map((function(t,n){return r.createElement(D,{key:t.id,index:n,row:t,tableProps:e})}))))),r.createElement(k,{tableProps:e,rowsPerPage:O,pageCount:L,currentPage:V,lengthMenuText:x.lengthMenu,onChangeRowsPerPage:P},!n.length&&x.emptyTable,n.length>0&&x.info.replace("_START_",""+(i+1)).replace("_END_",""+(i+n.length)).replace("_TOTAL_",f()(s).format("0,0")),s<a?" "+x.infoFiltered.replace("_MAX_",f()(a).format("0,0")):"",c?" "+(o?x.selectedItemsLimit:x.selectedItems).replace("{count}",""+c).replace("{limit}",""+(o||"")):""))}var O,P=n(39822),R=n(15866),L=n(55796),V=n(5498),F=n(1509),q=n(11110),U=(O=function(e,t){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},O(e,t)},function(e,t){function n(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),H=function(){return H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H.apply(this,arguments)},W=function(e){function t(t){var n=e.call(this,t)||this;return n.tableName=function(e){return(0,a.yP)(e.question,"Name")},n.pageCount=function(e){return Math.ceil(e.page.totalFilteredRows/e.page.params.pageLength)},n.currentPage=function(e){return e.page.params.pageStart/e.page.params.pageLength+1},n.searchableColumns=function(e){return e.sequencedVariables.filter((function(e){return(0,a.Ag)(e,"Searchable")})).map((function(e){return(0,a.yP)(e,"ColumnName")}))},n.showColumnFilters=function(e){return(0,a.Ag)(e.question,"ColumnFilters")},n.onChangeRowSelected=function(e,t){var r=n.props;if(!t||!n.maxAnswersReached(r)){var i=n.isRowSelected(r,e.id);if(i&&!t){var o=n.getMentions(r,n.getInternalIdVariableName(r)).findIndex((function(t){return parseInt(t.value,10)===e.id}));r.question.variables.forEach((function(e){n.setMentions(r,e.name,(function(e){return e.splice(o,1)}))}))}else!i&&t&&r.question.variables.forEach((function(t){var i=(0,a.yP)(t,"ColumnName"),o=e[i];n.setMentions(r,t.name,(function(e){return e.add(String(o))}))}))}},n.onFirstPageClick=function(){n.changePage(1)},n.onLastPageClick=function(){n.changePage(n.pageCount(n.props))},n.onPrevPageclick=function(){var e=n.currentPage(n.props)-1;e>=1&&n.changePage(e)},n.onNextPageClick=function(){var e=n.currentPage(n.props)+1;e<=n.pageCount(n.props)&&n.changePage(e)},n.onChangeItemCount=function(e){var t=e.target.value.value;n.onFirstPageClick(),n.setState((function(e){return H(H({},e),{params:H(H({},e.params),{pageLength:parseInt(t,10)})})}),(function(){return n.fetchLookupTable(n.props)}))},n.onChangeSearch=function(e){n.setState((function(t){return H(H({},t),{params:H(H({},t.params),{search:e,pageStart:0})})})),n.fetchLookupTable(n.props)},n.onClickHeader=function(e){n.state.params.sortColumn.includes(e)?n.setState((function(e){return H(H({},e),{params:H(H({},e.params),{sortAsc:!e.params.sortAsc})})}),(function(){return n.fetchLookupTable(n.props)})):n.setState((function(t){return H(H({},t),{params:H(H({},t.params),{sortColumn:e,sortAsc:!0})})}),(function(){return n.fetchLookupTable(n.props)}))},n.onClearColumnFilters=function(){n.setState((function(e){return H(H({},e),{params:H(H({},e.params),{columnFilters:{},pageStart:0})})}),(function(){return n.fetchLookupTable(n.props)}))},n.onChangeColumnFilter=function(e,t){n.setState((function(n){var r,i=H(H({},n.params.columnFilters),((r={})[e]=t,r));return i=Object.entries(i).filter((function(e){return e[1]})).reduce((function(e,t){var n,r=t[0],i=t[1];return H(H({},e),((n={})[r]=i,n))}),{}),H(H({},n),{params:H(H({},n.params),{columnFilters:i,pageStart:0})})}),(function(){return n.fetchLookupTable(n.props)}))},n.onFieldKeyPress=function(e){"Enter"===e.key&&n.fetchLookupTable(n.props)},n.onSortChanged=function(e,t){n.setState((function(n){return H(H({},n),{params:H(H({},n.params),{sortColumn:e,sortAsc:t})})}),(function(){return n.fetchLookupTable(n.props)}))},n.onPageChanged=function(e,t){n.setState((function(n){return H(H({},n),{params:H(H({},n.params),{pageStart:e,pageLength:t})})}),(function(){return n.fetchLookupTable(n.props)}))},n.getTableTexts=function(e,t){var n=function(n,r){return(0,F.I)(e,n,t)||r};return{search:n("SEARCH","Search"),selectedItemsLimit:n("SELECTED_ITEMS_LIMIT","{count} of {limit} selected"),selectedItems:n("SELECTED_ITEMS","{count} selected"),emptyTable:n("DATA_TABLE_EMPTY_TABLE","No items to display"),info:n("DATA_TABLE_INFO","Displaying _START_ to _END_ of _TOTAL_ item(s)"),infoFiltered:n("DATA_TABLE_INFO_FILTERED","(Filtered from _MAX_ item(s))"),lengthMenu:n("DATA_TABLE_LENGTH_MENU","Display _MENU_ items")}},n.state={shouldDisplayFilters:!1,params:{pageStart:0,pageLength:25,search:"",searchableColumns:[],columnFilters:{},sortColumn:"",sortAsc:!1,selected:[]}},n}return U(t,e),t.prototype.initializeQuestion=function(t,n){var r=this;if(e.prototype.initializeQuestion.call(this,t,n),0!==n.sequencedVariables.length){var i=this.getSelectedInternalIds(n),o=null!=i&&i.length>0;this.setState((function(e){var i=H({},e);return i.shouldDisplayFilters=o,i.params={pageStart:0,pageLength:(0,a.Yu)(n.question,"PageSize",25),selected:r.getSelectedInternalIds(n),search:"",searchableColumns:r.searchableColumns(n),columnFilters:{},sqlFilter:"",sortColumn:(0,a.yP)(t,"SortColumn"),sortAsc:(0,a.Ag)(n.question,"SortDirection","asc")},i}),(function(){return r.updateSqlFilter(t,n)}))}},t.prototype.willUpdateMentions=function(t,n){e.prototype.willUpdateMentions.call(this,t,n),this.updateSqlFilter(t,n),this.updateSelected(n)},t.prototype.updateSelected=function(e){var t=this;this.setState((function(n){return H(H({},n),{params:H(H({},n.params),{selected:t.getSelectedInternalIds(e)})})}))},t.prototype.getMaxAnswer=function(e){return(0,a.Yu)(e.question,"MaxAllowedAnswers")},t.prototype.updateSqlFilter=function(e,t){var n,r=this,i=(0,u.Bk)().getState().interview;e.lookupFilter&&(n=l.A.evaluateRecalls(i,e.lookupFilter.expression)),null!=n?this.setState((function(e){return H(H({},e),{params:H(H({},e.params),{sqlFilter:n})})}),(function(){return r.fetchLookupTable(t)})):this.fetchLookupTable(t)},t.prototype.fetchLookupTable=function(e){e.dispatch((0,V.kt)(this.tableName(e),this.state.params,e.question.name))},t.prototype.idForRow=function(e){return this.props.question.name+"_"+e},t.prototype.isVisibleColumn=function(e,t){return e.sequencedVariables.some((function(e){return t===(0,a.yP)(e,"ColumnName")&&(0,a.Ag)(e,"Visible")}))},t.prototype.getColumnNameByIndex=function(e,t){return e.columns[t]},t.prototype.getInternalIdVariableName=function(e){return e.question.variables.find((function(e){return(0,a.Ag)(e,"ColumnName","InternalId")})).name},t.prototype.maxAnswersReached=function(e){var t=this.getMaxAnswer(e),n=this.getSelectedRowCount(e);return t>0&&n>=t},t.prototype.getSelectedRowCount=function(e){return this.getSelectedInternalIds(e).length},t.prototype.getSelectedInternalIds=function(e){return this.getMentions(e,this.getInternalIdVariableName(e)).map((function(e){return parseInt(e.value,10)}))},t.prototype.isRowSelected=function(e,t){return this.getSelectedInternalIds(e).includes(t)},t.prototype.changePage=function(e){var t=this;this.setState((function(t){return H(H({},t),{params:H(H({},t.params),{pageStart:(e-1)*t.params.pageLength})})}),(function(){return t.fetchLookupTable(t.props)}))},t.prototype.hasMentions=function(e){var t=this,n=this.getInternalIdVariableName(e),r=this.getMentions(e,n);return void 0!==r&&r.length>0&&r.some((function(n){return t.mentionIsValid(n,e.question)}))},t.prototype.validate=function(e){var t=this.props,n=t.question,r=t.useClientValidation;if((0,q.NA)(n.type,r))return(new c.O).build();var i=this.isAnswerRequired(this.props.questionnaire,this.props.question),o=n.variables[0],l=this.minValue();if(this.hasMentions(this.props)){var u=this.maxValue(),m=this.state.params.selected.length;if(null!=u&&m>Number(u)){var d=(0,a.yP)(n,"UpperBoundNotFulfilledMessage");return(new c.O).fail(o.name,(0,s.Ew)(d)?"UpperBoundNotFulfilled":d,{max:String(u)}).build()}if(null!=l&&m<Number(l))return d=(0,a.yP)(n,"LowerBoundNotFulfilledMessage"),(new c.O).fail(o.name,(0,s.Ew)(d)?"InvalidChoicesMin":d,{min:String(l)}).build()}else if(i){var f=new c.O,p=(0,L.Y_)(n);if(this.props.showSoftPrompt&&null!=p){var h=(0,R.n)(n.variables[0],p);return(0,P.pn)(h)||this.setMentions(this.props,o.name,(function(e){return e.set(p)})),(new c.O).build()}return null!=l&&Number(l)>0&&(d=(0,a.yP)(n,"LowerBoundNotFulfilledMessage"),f.fail(o.name,(0,s.Ew)(d)?"InvalidChoicesMin":d,{min:String(l)})),f.fail(o.name,"IncompleteAnswer").build()}return(new c.O).build()},t.prototype.hasSearchableColumns=function(){return this.props.sequencedVariables.some((function(e){return(0,a.Ag)(e,"Searchable")}))},t.prototype.renderQuestion=function(e){var t=this,n=this.props,i=n.page,o=n.language;if(!i)return r.createElement("div",null,"Loading...");var s=i.columns,c=i.rows,l=i.totalRows,u=i.totalFilteredRows,m=i.params,d=i.columnsTranslation,f=this.showColumnFilters(n),p=m.columnFilters||{},h=n.sequencedVariables.filter((function(e){var r=(0,a.yP)(e,"ColumnName");return t.isVisibleColumn(n,r)&&s.includes(r)})).map((function(e){var t=(0,a.yP)(e,"ColumnName"),n=(0,F.I)(e,"TEXT",o,(d||{})[t]);return{name:t,searchable:(0,a.Ag)(e,"Searchable"),width:(0,a.Yu)(e,"Width"),filter:p[t],translatedName:n}})).sort((function(e,t){return s.indexOf(e.name)-s.indexOf(t.name)})),b=c.map((function(e){var r=e.RowNum,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["RowNum"]),o=t.isRowSelected(n,parseInt(i.InternalId,10));return H({id:parseInt(i.InternalId,10),index:r,selected:o},i)}));return r.createElement(I,{id:e.elementId,pageStart:m.pageStart,columns:h,pageRows:b,totalRows:l,totalFilteredRows:u,totalSelected:this.getSelectedRowCount(n),max:this.getMaxAnswer(n),sortAsc:m.sortAsc,sortColumn:m.sortColumn,onChangePage:this.onPageChanged,onChangeSort:this.onSortChanged,selectable:!0,filterable:f,search:m.search||"",texts:this.getTableTexts(e,o),onChangeColumnFilter:this.onChangeColumnFilter,onChangeSearch:this.onChangeSearch,onChangeRowSelected:this.onChangeRowSelected,rowsPerPageOptions:[10,25,50,100],defaultRowsPerPage:m.pageLength})},t}(o.X),z=(0,i.$j)((function(e,t){return{page:e.lookupTable.lookupTable[t.question.name]}}))(W)},27232:function(e,t,n){"use strict";n.d(t,{b:function(){return k}});var r=n(67294),i=n(40029),o=n(48278),a=n(25371),s=n(94184),c=n.n(s),l=n(96900),u=(0,a.QM)({choice:{background:function(e){var t=e.theme;return(0,l.Fq)(t.ControlBackground,t.ControlAlpha)},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]},borderRadius:function(e){return e.theme.BorderRadius},color:function(e){var t=e.theme;return(0,l.oF)(t,(0,l.$X)(t))},composes:"choice radio-button",cursor:"pointer",flex:1,outline:"none",position:"relative",textAlign:"center",transition:"background 200ms, border-color 200ms, color 200ms",margin:3,"&:before":{content:"''",float:"left",paddingTop:"100%"}},dynamicChoice:{width:"100%",margin:function(e){return[[e.theme.ChoiceSpacing/2,0]]},padding:[[14.5,0]],"&:before":{paddingTop:"0",height:29,width:"100%"}},choiceSelected:{background:function(e){return e.theme.PrimaryColor},borderColor:function(e){var t=e.theme;return(0,l._j)(t.PrimaryColor,t.ActiveHighlightValue)},color:function(e){var t=e.theme;return(0,l.oF)(t,t.PrimaryColor)},composes:"choice--selected"},choiceActive:{background:function(e){var t=e.theme;return e.selected?(0,l._j)(t.PrimaryColor,t.ActiveHighlightValue):(0,l._j)(t.ControlBackground,t.ActiveBackgroundValue)},composes:"choice--active",color:function(e){var t=e.theme;return e.selected?(0,l.oF)(t,(0,l._j)(t.PrimaryColor,t.ActiveHighlightValue)):(0,l.oF)(t,(0,l._j)(t.ControlBackground,t.ActiveBackgroundValue))}},content:{alignItems:"center",bottom:0,display:"flex",justifyContent:"center",left:0,position:"absolute",right:0,top:0}}),m=n(59261),d=n(32833);function f(e){var t=e.choice,n=e.selected,i=e.onSelect,o=(0,a.Fg)(),s=(0,d.Z)(),l=u({theme:o,selected:n,dimension:s}),f=(0,m.Z)(t,"Text"),p=r.useState(!1),h=p[0],b=p[1],v=[13,32];return r.createElement("div",{role:"radio","aria-checked":n,tabIndex:0,className:c()(l.choice,s&&s.maxWidth(480)&&l.dynamicChoice,n&&l.choiceSelected,h&&l.choiceActive),style:{},onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onMouseOver:function(){return b(!0)},onMouseOut:function(){return b(!1)},onClick:function(){return i(t)},onKeyDown:function(e){v.includes(e.keyCode)&&(i(t),e.preventDefault())}},r.createElement("div",{className:c()(l.content,h&&l.choiceActive)},r.createElement("span",null,f)))}var p=(0,a.QM)({choices:{alignItems:"center",composes:"net-promoter__choices",display:"flex",justifyContent:"space-between",margin:[[0,-3]]},dynamicChoices:{flexDirection:"column",margin:0},labels:{composes:"net-promoter__labels",display:"flex",justifyContent:"space-between",margin:[[20,0]]},dynamicLabels:{display:"none"},label:{composes:"net-promoter__label"},mobileLabel:{textAlign:"center",display:"none"},dynamicMobileLabel:{display:"block"}}),h=n(7495),b=n(41744),v=n(52640),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)};function A(e){var t=(0,a.Fg)(),n=p({theme:t}),i=e.choices,s=e.gridRendering,l=e.variable,u=e.onSelect,A=e.showFeedbackQuestion,y=e.feedbackQuestion,C=e.feedbackVariable,_=e.openEndValue,x=e.onOpenEndChange,w=e.onOpenEndBlur,T=(0,h.Z)(),E=(0,m.Z)(T,"LeftLabel"),S=(0,m.Z)(T,"RightLabel"),k=(0,m.Z)(T,y),B=(0,d.Z)();return r.createElement("div",null,(null!==E||null!==S)&&r.createElement("div",{className:c()(n.label,n.mobileLabel,B&&B.maxWidth(480)&&n.dynamicMobileLabel),dangerouslySetInnerHTML:{__html:E}}),r.createElement("div",{className:c()(n.choices,B&&B.maxWidth(480)&&n.dynamicChoices)},i.map((function(t){var n=function(e,t){return e.mentions.some((function(e){return e.value===t.value}))}(e,t);return r.createElement(f,g({key:t.elementId},(0,o.V)(e),{gridRendering:s,selected:n,choice:t,variable:l,onSelect:u}))}))),(null!==E||null!==S)&&r.createElement(r.Fragment,null,r.createElement("div",{className:c()(n.labels,B&&B.maxWidth(480)&&n.dynamicLabels)},r.createElement("div",{className:n.label,dangerouslySetInnerHTML:{__html:E}}),r.createElement("div",{className:n.label,dangerouslySetInnerHTML:{__html:S}})),r.createElement("div",{className:c()(n.label,n.mobileLabel,B&&B.maxWidth(480)&&n.dynamicMobileLabel),dangerouslySetInnerHTML:{__html:S}})),A&&r.createElement(r.Fragment,null,r.createElement(v.v,{question:T,text:k,shortText:void 0,classes:(0,a.QM)(void 0,void 0)}),r.createElement(b.Z,g({},(0,o.V)(e),{name:C,label:k,value:_,isDisabled:!1,onOpenEndBlur:w,onOpenEndChange:x}))))}var y,C,_=n(78632);!function(e){e.HasFeedbackQuestion="HasFeedbackQuestion",e.DefaultFeedbackQuestion="DefaultFeedbackQuestion",e.FeedbackVariable="FeedbackVariable",e.FeedbackAnswerRequired="FeedbackAnswerRequired",e.PromotersFeedbackQuestion="PromotersFeedbackQuestion",e.PromotersVariable="PromotersVariable",e.PromotersAnswerRequired="PromotersAnswerRequired",e.PassivesFeedbackQuestion="PassivesFeedbackQuestion",e.PassivesVariable="PassivesVariable",e.PassivesAnswerRequired="PassivesAnswerRequired",e.DetractorsFeedbackQuestion="DetractorsFeedbackQuestion",e.DetractorsVariable="DetractorsVariable",e.DetractorsAnswerRequired="DetractorsAnswerRequired"}(y||(y={})),function(e){e[e.PromotersScore=9]="PromotersScore",e[e.DetractorsScore=6]="DetractorsScore"}(C||(C={}));var x,w=n(95457),T=n(11325),E=(x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},x(e,t)},function(e,t){function n(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},k=function(e){function t(t){var n=e.call(this,t)||this;n.onSelect=function(e){var t=n.props.sequencedVariables[0];n.setMentions(n.props,t.name,(function(t){return t.set(e.value)}));var r,i=n.props.question;n.setState({oldFeedbackVariable:n.state.feedbackVariable}),(0,w.Z9)(i,y.HasFeedbackQuestion)&&(0,w.Ag)(i,y.HasFeedbackQuestion)&&((0,w.Z9)(i,y.FeedbackVariable.toString())&&(r=n.generateNpsFeedbackQuestionObject(y.DefaultFeedbackQuestion,(0,w.yP)(i,y.FeedbackVariable),(0,w.Ag)(i,y.FeedbackAnswerRequired))),Number(e.value)>=C.PromotersScore&&(0,w.Z9)(i,y.PromotersVariable.toString())&&(r=n.generateNpsFeedbackQuestionObject(y.PromotersFeedbackQuestion,(0,w.yP)(i,y.PromotersVariable),(0,w.Ag)(i,y.PromotersAnswerRequired))),Number(e.value)<C.PromotersScore&&Number(e.value)>C.DetractorsScore&&(0,w.Z9)(i,y.PassivesVariable.toString())&&(r=n.generateNpsFeedbackQuestionObject(y.PassivesFeedbackQuestion,(0,w.yP)(i,y.PassivesVariable),(0,w.Ag)(i,y.PassivesAnswerRequired))),Number(e.value)<=C.DetractorsScore&&(0,w.Z9)(i,y.DetractorsVariable.toString())&&(r=n.generateNpsFeedbackQuestionObject(y.DetractorsFeedbackQuestion,(0,w.yP)(i,y.DetractorsVariable),(0,w.Ag)(i,y.DetractorsAnswerRequired))),n.setState(S(S({},r),{showFeedbackQuestion:!0})),n.renderQuestion())},n.onOpenEndChange=function(e){var t=e.target.value;n.setState({openEndValue:t})},n.onOpenEndBlur=function(){var e=n.state.feedbackVariable,t=n.state.openEndValue;void 0!==n.state.oldFeedbackVariable&&n.setMentions(n.props,n.state.oldFeedbackVariable,(function(e){return e.clear()})),n.setMentions(n.props,e,(function(e){return e.clear()})),(0,T.Ew)(t)||n.setMentions(n.props,e,(function(e){return e.set("0",t.trim())}))},n.getChoiceList=function(){var e=n.props.question;return e.variables.length>0?e.variables.filter((function(e){return e.choiceList.length>0}))[0].choiceList:null};var r=n.props.question;return n.state=S(S({},n.generateNpsFeedbackQuestionObject(y.DefaultFeedbackQuestion,(0,w.yP)(r,y.FeedbackVariable.toString()),(0,w.Ag)(r,y.FeedbackAnswerRequired.toString()))),{showFeedbackQuestion:!1,openEndValue:"",oldFeedbackVariable:""}),n}return E(t,e),t.prototype.generateNpsFeedbackQuestionObject=function(e,t,n){return{feedbackQuestion:e,feedbackVariable:t,feedbackAnswerRequired:n}},t.prototype.validate=function(){return this.state.feedbackAnswerRequired&&(0,T.Ew)(this.state.openEndValue)?(new _.O).fail(this.state.feedbackVariable,"IncompleteAnswer",{openEnd:this.state.feedbackVariable}).build():(new _.O).build()},t.prototype.renderQuestion=function(){return r.createElement(A,S({choices:this.getChoiceList(),mentions:this.getMentions(this.props,this.props.sequencedVariables[0].name),onSelect:this.onSelect},(0,o.V)(this.props),{showFeedbackQuestion:this.state.showFeedbackQuestion,feedbackQuestion:this.state.feedbackQuestion,feedbackVariable:this.state.feedbackVariable,openEndValue:this.state.openEndValue,onOpenEndChange:this.onOpenEndChange,onOpenEndBlur:this.onOpenEndBlur}))},t}(i.X)},60750:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var r,i=n(40029),o=n(78632),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.initializeQuestion=function(e,t){},t.prototype.renderQuestion=function(e){return null},t.prototype.validate=function(e){return(new o.O).build()},t}(i.X)},55706:function(e,t,n){"use strict";n.d(t,{U:function(){return k}});var r=n(67294),i=n(16856),o=n(40029),a=n(11325),s=n(78632),c=n(95457),l=n(48278),u=n(1509),m=n(25371),d=n(96900),f=(0,m.QM)({numericRanking:{composes:"numericRanking"},numericOptionList:{composes:"numeric-option-list"},numericOption:{composes:"numeric-option"},numericOptionChoiceTextHeader:{composes:"numeric-option__choice-text-header"},numericOptionChoiceRankingHeader:{composes:"numeric-option__choice-ranking-header"},numericOptionChoiceHeader:{composes:"numeric-option__choice-header",paddingBottom:"13px",paddingTop:"13px"},numericOptionChoiceText:{composes:"numeric-option__choice-text",paddingBottom:"13px",paddingRight:"24px",paddingTop:"13px",verticalAlign:"middle"},numericOptionChoiceRanking:{composes:"numeric-option__choice-ranking",paddingRight:"24px",verticalAlign:"middle"},numericOptionChoiceInput:{composes:"numeric-option__choice-Input"},numericOptionChoiceLabel:{composes:"numeric-option__choice-label"},numericOptionChoiceSelected:function(e){var t=e.theme;return{background:t.PrimaryColor,color:d.oF(t,t.PrimaryColor),composes:"numeric-option__choice-ranking--selected"}}}),p=n(68088),h=n(39822),b=n(14112),v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};function g(e){var t=(0,m.Fg)(),n=f({theme:t}),i=e.question,o=e.answerHeader,s=void 0===o?(0,c.yP)(i,"AnswersHeader"):o,l=e.labelsHeader,u=void 0===l?(0,c.yP)(i,"LabelsHeader"):l;return r.createElement("tr",{className:n.numericOption},"right"===t.DisplayChoiceIcon&&!(0,a.Ew)(u)&&r.createElement("td",{className:n.numericOptionChoiceText},r.createElement(p.n,{text:u,render:function(e){return r.createElement("span",{className:n.numericOptionChoiceTextHeader,dangerouslySetInnerHTML:{__html:e}})}})),!(0,a.Ew)(s)&&r.createElement("td",{className:n.numericOptionChoiceRanking},r.createElement(p.n,{text:s,render:function(e){return r.createElement("span",{className:n.numericOptionChoiceRankingHeader,dangerouslySetInnerHTML:{__html:e}})}})),"right"!==t.DisplayChoiceIcon&&!(0,a.Ew)(u)&&r.createElement("td",{className:n.numericOptionChoiceText},r.createElement(p.n,{text:u,render:function(e){return r.createElement("span",{className:n.numericOptionChoiceTextHeader,dangerouslySetInnerHTML:{__html:e}})}})))}function A(e){var t=e.language,n=e.choice,i=(0,m.Fg)(),o=f({theme:i});return r.createElement("tr",{className:o.numericOption},r.createElement(p.n,{text:(0,u.I)(n,"TEXT",t),render:function(e){return r.createElement("td",{className:o.numericOptionChoiceHeader,dangerouslySetInnerHTML:{__html:e},colSpan:2})}}))}function y(e){var t=r.useState(!1),n=t[0],i=t[1],o=(0,m.Fg)(),a=f({theme:o}),s=e.choice,c=e.rankings,l=e.language,d=e.onFocus,v=e.onChange,g=(0,u.I)(s,"TEXT",l);return r.createElement("tr",{className:a.numericOption},"right"===o.DisplayChoiceIcon&&r.createElement("td",{className:a.numericOptionChoiceText},r.createElement(p.n,{text:g,render:function(e){return r.createElement("label",{id:s.elementId+"_LABEL",htmlFor:s.elementId+"_INPUT",className:a.numericOptionChoiceLabel,dangerouslySetInnerHTML:{__html:e}})}})),r.createElement("td",{className:a.numericOptionChoiceRanking},r.createElement(b.Z,{focused:n,className:a.numericOptionChoiceInput,size:"XSmall"},r.createElement("input",{id:s.elementId+"_INPUT",type:"text",inputMode:"decimal",value:(0,h.HJ)(s,c),onFocus:function(e){i(!0),d(e)},onBlur:function(){return i(!1)},onChange:function(e){return v(s,e.target.value)}}))),"right"!==o.DisplayChoiceIcon&&r.createElement("td",{className:a.numericOptionChoiceText},r.createElement(p.n,{text:(0,u.I)(s,"TEXT",l),render:function(e){return r.createElement("label",{id:s.elementId+"_LABEL",htmlFor:s.elementId+"_INPUT",className:a.numericOptionChoiceLabel,dangerouslySetInnerHTML:{__html:e}})}})))}function C(e){var t=(0,m.Fg)(),n=f({theme:t}),i=e.choices,o=e.language;return r.createElement("div",{className:n.numericRanking},r.createElement("table",{className:n.numericOptionList},r.createElement("tbody",null,r.createElement(g,v({},e)),i.map((function(t){return t.value?r.createElement(y,v({key:t.elementId},e,{choice:t})):r.createElement(A,{key:t.elementId,language:o,choice:t})})))),r.createElement("div",{className:"clear"}))}var _,x=n(55796),w=n(15866),T=n(11110),E=(_=function(e,t){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},_(e,t)},function(e,t){function n(){this.constructor=e}_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},k=function(e){function t(t){var n=e.call(this,t)||this;return n.getSoftPromptChoiceRanking=function(e){return{choiceValue:e,rankingValue:1}},n.getRankingValue=function(e){var t=e.replace(/\D/g,"");if(!(0,a.Ew)(t)){var r=n.getMaxAnswers(),i=parseInt(t,10);if(!Number.isNaN(i)&&i>=1&&i<=r)return i}},n.onChange=function(e,t){var r=n.props.sequencedVariables[0],o=e.value,a=n.getRankingValue(t),s={choiceValue:o,rankingValue:a};n.setState((function(e){var t=(0,i.Xh)(e);return(0,i.Od)(t.rankings,(function(e){return e.choiceValue===o})),a&&t.rankings.push(s),n.setNumericRankingMentions(r,t.rankings),t}))},n.onFocus=function(e){var t=(0,i.xb)(e.target.value),r=n.state.rankings.length>=n.getMaxAnswers();t&&r&&e.target.blur()},n.state={rankings:[]},n}return E(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n);var r=this.getMentions(n);this.setState({rankings:r.map((function(e,t){return{choiceValue:e.value,rankingValue:t+1}}))})},t.prototype.getMaxAnswers=function(){var e=(0,c.Yu)(this.props.question,"MaxAllowedAnswers"),t=this.props.sequencedVariables[0].choiceList.filter((function(e){return!(0,a.Ew)(e.value)})).length;return void 0===e||Number.isNaN(e)?t:Math.min(e,t)},t.prototype.getMinAnswers=function(){var e=(0,c.Yu)(this.props.question,"MinRequiredAnswers");return void 0===e||Number.isNaN(e)?1:e},t.prototype.setNumericRankingMentions=function(e,t){var n=e.name,r=this.getRankingIndicesToSet(t);this.setMentions(this.props,n,(function(e){return e.clear(),r.forEach((function(n){var r=t.filter((function(e){return e.rankingValue===n})).map((function(e){return e.choiceValue})).sort(),i=r[0];i?r.forEach((function(){return e.add(i)})):e.add("")})),e}))},t.prototype.getRankingIndicesToSet=function(e){if(!(null==e?void 0:e.length))return[];var t=Math.max.apply(Math,e.map((function(e){return e.rankingValue}))),n=this.getMaxAnswers(),r=Math.min(n,t);return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(Array(r)).map((function(e,t){return t+1}))},t.prototype.validate=function(){var e=this.props,t=e.question,n=e.questionnaire,r=e.showSoftPrompt,o=e.sequencedVariables,a=e.useClientValidation,l=o[0],u=l.choiceList,m=this.state.rankings,d=new s.O;if((0,T.NA)(t.type,a))return(new s.O).build();var f=(0,c.yP)(t,"CustomErrorMessage")||this.parentCustomError(t.parent)||"IncompleteAnswer",p=m.length;if(!this.isAnswerRequired(n,t)&&!p)return d.build();var b=this.isSoftPrompt(this.props),v=(0,x.Y_)(t),g=m.some((function(e){return void 0===v||e.choiceValue!==v}));if(b&&!g){if(r){var A=(0,w.n)(l,v);if(void 0!==A&&!(0,h.pn)(A)){var y=this.getSoftPromptChoiceRanking(A.value);this.setMentions(this.props,l.name,(function(e){return e.set(y.choiceValue)}))}return d.build()}return this.validateSoftPrompt(this.props)}if(!p)return d.fail(l.name,f).build();var C=m.map((function(e){return e.rankingValue})).sort((function(e,t){return e-t}));if(C.length<this.getMinAnswers())return d.fail(l.name,"InvalidChoicesMin",{min:String(this.getMinAnswers())}).build();var _=C.slice(1).some((function(e,t){return e-C[t]!=1})),E=C.length!==(0,i.Fp)(C),S=C.some((function(e,t){return Number.isNaN(e)||e<0||e>u.length||C.indexOf(e)!==t}));return 1!==C[0]||_||E||S?d.fail(l.name,"InvalidRankingValue",{min:String(1),max:String(this.getMaxAnswers())}).build():d.build()},t.prototype.renderQuestion=function(e){var t=this.props,n=t.language,i=t.sequencedVariables;return r.createElement(C,S({},(0,l.V)(this.props),{labelsHeader:(0,u.I)(e,"LabelsHeader",n),answerHeader:(0,u.I)(e,"AnswersHeader",n),choices:i[0].choiceList,onChange:this.onChange,onFocus:this.onFocus,rankings:this.state.rankings}))},t}(o.X)},80726:function(e,t,n){"use strict";n.d(t,{U:function(){return _}});var r,i=n(67294),o=n(40029),a=n(95457),s=n(78813),c=n(78632),l=n(48278),u=n(14121),m=n(17837),d=n(11325),f=n(14400),p=n(53149),h=n(88507),b=n(27775),v=n(1509),g=n(11110),A=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)},C=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},_=function(e){function t(t){var n=e.call(this,t)||this;return n.validateSignal=new s.M,n.getVariableNames=function(e){return e.map((function(e){return e.variables.map((function(e){return e.name}))})).reduce((function(e,t){return C(e,t)}),[]).reduce((function(e,t){return e.includes(t)?e:C(e,[t])}),[])},n.getAxesVariablesToClear=function(e,t){var r=n.getVariableNames(e),i=n.getVariableNames(t);return r.filter((function(e){return!i.includes(e)}))},n.getOpenEndVariablesToClear=function(e,t){var n=e.filter((function(e){return!(0,d.Ew)(e.settings.OpenEndVariable)})).map((function(e){return e.settings.OpenEndVariable})),r=t.filter((function(e){return!(0,d.Ew)(e.settings.OpenEndVariable)})).map((function(e){return e.settings.OpenEndVariable}));return n.filter((function(e){return!r.includes(e)}))},n.getRemovedVariableNames=function(e,t){var r=n.getAxesVariablesToClear(e.sequencedColumns,t.sequencedColumns),i=n.getAxesVariablesToClear(e.sequencedRows,t.sequencedRows),o=n.getOpenEndVariablesToClear(e.sequencedRows,t.sequencedRows);return C(r,i).reduce((function(e,t){return e.includes(t)?e:C(e,[t])}),[]).concat(o)},n.onOpenEndChange=function(e,t){var r=t.target.value;n.setState((function(t){var i,o=y({},t);return o.openEndValue=y(y({},o.openEndValue),((i={})[(0,u.W4)(e)]=n.truncateOpenEnd(e,r),i)),o}))},n.onOpenEndBlur=function(e){var t=(0,u.W4)(e),r=n.state.openEndValue[t];(0,d.Ew)(r)?n.setMentions(n.props,t,(function(e){return e.clear()})):n.setMentions(n.props,t,(function(t){return t.set((0,a.yP)(e,"OpenEndAnswerCode","0"),r.trim())}))},n.onColumnDisplayRunningTotal=function(e){var t=n.columnRunningTotal(e);return n.formatNumeric(t,e)},n.bodyRows=function(){var e=n.props.sequencedRows;return(void 0===e?[]:e).filter((function(e){return!(0,u.Ur)(e)}))},n.onReset=function(e){e.variableNames.forEach((function(e){return n.setMentions(n.props,e,(function(e){return e.clear()}))}))},n.validateAnswerRequired=function(e,t,r,i){var o=(0,d.Ew)(r)?"IncompleteAnswer":r;return t.forEach((function(t){n.isAxisAnswerRequired(t)&&e.forEach((function(e){var r=n.isAxisAnswerRequired(e),a=(0,u.aX)(e,t);r&&void 0!==a&&(n.variableHasMentions(a)||i.fail(a.name,o))}))})),i},n.hasValidNumericValue=function(e){return e&&!Number.isNaN(parseFloat(e.value))},n.variableHasMentions=function(e){return n.getMentions(n.props,e.name).filter(n.hasValidNumericValue).length},n.axisHasMentions=function(e){return e.variables.some(n.variableHasMentions)},n.validateColumnRunningTotal=function(e,t,r){if(!n.axisHasMentions(e))return r;var i=n.props.language,o=n.getColumnValueSetting(e,"MinValue"),a=n.getColumnValueSetting(e,"MaxValue"),s=n.columnRunningTotal(e),c=void 0!==a,l=void 0!==o,u=c&&s>a,m=l&&s<o,f=c&&l&&(u||m),p="";u?p=(0,v.I)(e,"UpperBoundNotFulfilledMessage",i):m&&(p=(0,v.I)(e,"LowerBoundNotFulfilledMessage",i));var h="";return f?h=t||"OutOfBounds":u?h=t||"UpperBoundNotFulfilled":m&&(h=t||"LowerBoundNotFulfilled"),(0,d.Ew)(h)||e.variables.forEach((function(e){return r.fail(e.name,(0,d.Ew)(p)?h:"CustomErrorMessage",{min:l?String(o):void 0,max:c?String(a):void 0},p)})),r},n.validateRowOpenEnd=function(e,t,r,i){var o=n.axisHasMentions(e),s=(0,u.vo)(e),c=(0,a.Ag)(e,"EnforceOpenEnd");if(!(o&&s&&c&&e.openEndActive))return i;var l=(0,u.W4)(e),m=void 0!==t&&!(0,d.Ew)(t[l]);if(!m){var f=(0,d.Ew)(r)?"IncompleteAnswer":r;i.fail(l,f)}var p=(0,a.Yu)(e,"MinOpenEndLength");return void 0===p||m&&t[l].length>=p||(f=(0,d.Ew)(r)?"InvalidCharactersMin":r,i.fail(l,f,{min:String(p)})),i},n.state={openEndValue:{}},n}return A(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n),this.setState({openEndValue:{},validationResult:null}),this.initializeOpenEnd(t,n)},t.prototype.UNSAFE_componentWillReceiveProps=function(t){this.initializeOpenEnd(t.question,t),e.prototype.UNSAFE_componentWillReceiveProps.call(this,t)},t.prototype.didUpdateVariables=function(e,t){var n=this;this.getRemovedVariableNames(t,this.props).forEach((function(e){return n.setMentions(n.props,e,(function(e){return e.clear()}))}))},t.prototype.initializeOpenEnd=function(e,t){var n=this;this.setState((function(r){var i=y({},r);return e.rows.filter((function(e){return(0,u.vo)(e)})).forEach((function(e){var r=(0,u.W4)(e),o=n.getMentions(t,r),a=null!=o?o[0]:void 0;void 0===a||(0,d.Ew)(a.openEnd)?i.openEndValue[r]="":i.openEndValue[r]=a.openEnd})),i}))},t.prototype.columnRunningTotal=function(e){var t=this;return this.bodyRows().map((function(n){var r=(0,u.aX)(n,e),i=t.getMentionValue(t.props,r.name);return(0,p.L4)(i).value()})).reduce((function(e,t){return e+t}),0)},t.prototype.formatNumeric=function(e,t){var n=(0,a.Yu)(t,"NumberOfDecimals");return(0,p.IZ)(e,n,this.props.language,!1,!(0,a.Z9)(t,"AutoFormatting")||(0,a.Ag)(t,"AutoFormatting"))},t.prototype.validate=function(e){var t=this,n=this.props,r=n.questionnaire,i=n.question,o=n.sequencedColumns,a=n.sequencedRows,s=n.language,l=n.useClientValidation,u=new c.O;if(i.variables.forEach(this.removeUnavailableMentions),(0,g.NA)(i.type,l))return u.build();if(this.isSoftPrompt(this.props)&&!this.hasMentions(this.props))return this.validateSoftPrompt(this.props);var m=this.isAnswerRequired(r,i),d=(0,v.I)(i,"CustomErrorMessage",s);return m&&this.validateAnswerRequired(a,o,d,u),a.forEach((function(e){t.validateRowOpenEnd(e,t.state.openEndValue,d,u)})),o.forEach((function(e){t.validateColumnRunningTotal(e,d,u)})),u.build()},t.prototype.getColumnValueSetting=function(e,t){var n=(0,h.Bk)().getState().interview,r=(0,a.yP)(e,t),i=m.A.evaluateRecalls(n,r,f.a.Code),o=parseInt(i,10);return Number.isNaN(o)?void 0:o},t.prototype.renderQuestion=function(e){var t=this;return i.createElement(b.Z,y({},(0,l.V)(this.props),{columns:this.props.sequencedColumns,rows:this.props.sequencedRows,validateSignal:this.validateSignal,validationResult:this.state.validationResult,getColumnRunningTotal:this.onColumnDisplayRunningTotal,openEndValue:this.state.openEndValue,onOpenEndBlur:this.onOpenEndBlur,onOpenEndChange:this.onOpenEndChange,showSoftPrompt:this.props.showSoftPrompt,matrix:this.props.matrix,onReset:function(){return t.onReset(e)}}))},t}(o.X)},53689:function(e,t,n){"use strict";n.d(t,{O:function(){return y}});var r,i=n(67294),o=n(63944),a=n(25371),s=n(32833),c=n(95457),l=n(96900),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},m=function(){return{position:"absolute",pointerEvents:"none",width:"5%",margin:function(e){var t=e.theme;return Math.min(t.BorderRadius,50)>=50?20:12},height:function(e){return 5*e.ratio+"%"}}},d=(0,a.QM)({container:{display:"inline-block",background:function(e){var t=e.theme;return(0,l.Fq)(t.InputBackground,t.ControlAlpha)},borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,50)},border:function(e){var t=e.theme;return[[t.BorderWidth,"solid",t.ControlBorderColor]]}},signatureArea:{position:"relative"},canvas:{cursor:"crosshair"},image:{width:function(e){return e.signatureWidth+"px"},height:function(e){return e.signatureWidth/e.ratio+"px"},cursor:"not-allowed"},undoButton:{position:"absolute",top:"20%",left:"10%",marginBottom:function(e){return.03*e.signatureWidth+"px"},cursor:"pointer"},clearButton:{position:"absolute",top:"20%",right:"10%",marginBottom:function(e){return.03*e.signatureWidth+"px"},cursor:"pointer"},signatureLine:{position:"absolute",bottom:"20%",left:"10%",right:"10%",pointerEvents:"none",fontSize:function(e){return.04*e.signatureWidth},lineHeight:function(e){return.1*e.signatureWidth+"px"},borderBottom:"2px solid #999"},topLeftCorner:u(u({},m()),{top:0,left:0,borderTop:function(e){return"2px solid "+e.theme.ControlBorderColor},borderLeft:function(e){return"2px solid "+e.theme.ControlBorderColor}}),topRightCorner:u(u({},m()),{top:0,right:0,borderTop:function(e){return"2px solid "+e.theme.ControlBorderColor},borderRight:function(e){return"2px solid "+e.theme.ControlBorderColor}}),bottomLeftCorner:u(u({},m()),{bottom:0,left:0,borderBottom:function(e){return"2px solid "+e.theme.ControlBorderColor},borderLeft:function(e){return"2px solid "+e.theme.ControlBorderColor}}),bottomRightCorner:u(u({},m()),{bottom:0,right:0,borderBottom:function(e){return"2px solid "+e.theme.ControlBorderColor},borderRight:function(e){return"2px solid "+e.theme.ControlBorderColor}})}),f=n(92907),p=n(57740),h=n(67927),b=n(59261),v=n(89222),g=n(22854);!function(e){e[e.Text=0]="Text",e[e.Numeric=1]="Numeric",e[e.Image=2]="Image",e[e.Date=3]="Date",e[e.File=4]="File",e[e.Base64=5]="Base64"}(r||(r={}));var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)};function y(e){var t=e.question,n=e.validateSignal,l=(0,c.Ag)(t,"DisplayNoAnswer"),u=(0,c.yP)(t,"NoAnswerValue"),m=(0,b.Z)(t,"NoAnswerLabel"),y=t.variables[0],C=i.useRef(),_=i.useRef(),x=(0,s.Z)().innerWidth,w=(0,v.Y8)(y.name),T=w[0],E=w[1],S=T[0]&&T[0].value,k=i.useState(!1),B=k[0],N=k[1],M=i.useState(S!==u?S:void 0),D=M[0],I=M[1],O=(0,a.Fg)(),P=21/9,R=Math.min(x-2,function(e){switch(e){case"Small":return 300;case"Medium":return 500;case"Full":return 1e3;default:return 800}}((0,c.yP)(t,"Size"))),L=d({theme:O,signatureWidth:R,ratio:P});(0,g.V$)(n,(0,g.qi)(t,y));var V=y.dataType===r.Base64;i.useEffect((function(){if(!D){var e;_.current&&(e=_.current.toData());var n=C.current,r=n.width;return n.width=R,n.height=n.width/P,_.current=new o.Z(n,{penColor:(0,c.yP)(t,"PenColor","#000000"),minWidth:.002*R,maxWidth:.006*R,minDistance:.006*R,onEnd:function(){N(!0),E((function(e){return e.set(_.current.toDataURL(V?"image/svg+xml":null))}))}}),e&&(e=function(e,t){return e.map((function(e){return A(A({},e),{points:e.points.map((function(e){return A(A({},e),{x:e.x*t,y:e.y*t})}))})}))}(e,n.width/r),_.current.fromData(e)),function(){_.current.off()}}}),[D,x,V,t,P,E,R]);var F=i.useCallback((function(){_.current.clear(),E(S===u?function(e){return e.clear()}:function(e){return e.set(u)}),N(!1)}),[S,u,E]);return i.createElement(i.Fragment,null,i.createElement("div",{className:L.container},i.createElement("div",{className:L.signatureArea},i.createElement("div",{className:L.topLeftCorner}),i.createElement("div",{className:L.topRightCorner}),i.createElement("div",{className:L.bottomLeftCorner}),i.createElement("div",{className:L.bottomRightCorner}),B&&i.createElement("div",{className:L.undoButton},i.createElement(p.Z,{icon:["fas","undo"],text:"Undo",displayText:!1,size:.03*R,onClick:function(){if(_.current){var e=_.current.toData();_.current.clear(),_.current.fromData(e.slice(0,-1)),e.length>1?E((function(e){return e.set(_.current.toDataURL(V?"image/svg+xml":null))})):(E((function(e){return e.clear()})),N(!1))}}})),i.createElement("div",{className:L.clearButton},i.createElement(p.Z,{icon:["fas","times"],text:"Clear",displayText:!1,size:.03*R,onClick:function(){E((function(e){return e.clear()})),I(void 0),N(!1),_.current&&_.current.clear()}})),i.createElement("div",{className:L.signatureLine},i.createElement(f.G,{icon:"signature",fixedWidth:!0})),!D&&i.createElement("canvas",{className:L.canvas,ref:C}),D&&i.createElement("img",{className:L.image,src:D,alt:""}))),l&&i.createElement(h.Y,{type:"checkbox",onKeyDown:function(e){return function(e,t){e.target===e.currentTarget&&" "===e.key&&(t(),e.preventDefault())}(e,F)},onSelect:F,selected:S===u,label:m}))}},35185:function(e,t,n){"use strict";n.d(t,{z:function(){return K}});var r,i=n(67294),o=n(16856),a=n(40029);!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle",e[e.Hidden=3]="Hidden"}(r||(r={}));var s=n(95457),c=n(55796),l=n(48278),u=n(1509),m=n(47103),d=n(25371),f=n(94184),p=n.n(f),h=n(28855),b=n(96900),v=function(e){var t=e.theme;return e.isHybridGrid?t.SliderHandleSizeSmall:t.SliderHandleSizeLarge},g=(0,d.QM)({labelContainer:{composes:"slider__label-container",display:"flex",flexDirection:"row"},label:{composes:"slider__label",flex:"auto",marginTop:16,color:function(e){var t=e.theme;return b.oF(t,b.op(t))}},labelLeft:{composes:"slider__label--left",textAlign:"left"},labelMiddle:{composes:"slider__label--middle",textAlign:"center"},labelRight:{composes:"slider__label--right",textAlign:"right"},sliderContainer:{composes:"slider__container",marginLeft:function(e){return e.isHybridGrid?10:0},marginRight:function(e){return e.isHybridGrid?10:0},marginTop:function(e){return e.hasImages?90:0},maxWidth:function(e){var t=e.theme,n=e.size;return b.gR(t,n)},minWidth:function(e){var t=e.theme,n=e.size;return b.Of(t,n)},padding:[[0,5]]},slider:{composes:"slider__compound",position:"relative",width:"100%",height:"6em"},disabled:{opacity:.5,pointerEvents:"none"},rail:{backgroundColor:function(e){return e.theme.ControlBackground},borderColor:function(e){var t=e.theme;return b.tv(t,t.ControlBackground)},borderRadius:function(e){return e.theme.BorderRadius/4},borderStyle:"solid",borderWidth:function(e){return e.theme.BorderWidth},bottom:0,composes:"slider__rail",cursor:"pointer",height:function(e){var t=e.theme;return e.isHybridGrid?t.SliderRailHeightSmall:t.SliderRailHeightLarge},left:-5,margin:[["auto",0]],marginLeft:function(e){return-e.theme.BorderWidth},position:"absolute",right:-5,top:0,zIndex:1},handleContainer:{composes:"slider__handle-container"},handle:{align:"center",backgroundColor:function(e){return e.theme.SecondaryColor},border:0,borderColor:function(e){var t=e.theme;return b.tv(t,t.SecondaryColor)},borderRadius:"50%",borderStyle:"solid",borderWidth:function(e){return e.theme.BorderWidth},bottom:0,composes:"slider__handle",cursor:"pointer",height:function(e){var t=e.theme,n=e.isHybridGrid;return v({theme:t,isHybridGrid:n})-t.BorderWidth},left:function(e){return e.percent+"%"},margin:[["auto",0]],marginLeft:function(e){var t=e.theme,n=e.isHybridGrid;return-1*(v({theme:t,isHybridGrid:n})/2+t.BorderWidth)},outline:"2px solid transparent",position:"absolute",textAlign:"center",top:0,transition:"background 200ms, box-shadow 200ms, outline-color 200ms",userSelect:"none",width:function(e){var t=e.theme,n=e.isHybridGrid;return v({theme:t,isHybridGrid:n})-t.BorderWidth},zIndex:2,"&:focus":{outlineColor:function(e){var t=e.theme;return(0,b.Fq)(t.SecondaryColor,.5)},outlineStyle:"solid",outlineWidth:"22px"}},handleActive:{composes:"slider__handle--active",backgroundColor:function(e){var t=e.theme;return b._j(t.SecondaryColor,t.ActiveHighlightValue)}},handleLabelContainer:{bottom:"100%",color:"transparent",composes:"slider__handle-label-container",display:"inline-block",left:0,marginLeft:"50%",position:"absolute",transform:"translateX(-50%)"},handleLabelContainerRegular:{composes:"slider__handle-label-container--regular",marginBottom:16,padding:[[5,16]]},handleLabelContainerHybridGrid:{composes:"slider__handle-label-container--hybrid-grid",marginBottom:10,paddingTop:2,paddingBottom:0,paddingLeft:8,paddingRight:6},handleLabelText:{color:function(e){var t=e.theme;return b.oF(t,b.Hu(t,t.PrimaryColor))},composes:"slider__handle-label-text",left:0,position:"absolute",textAlign:"center",top:0,zIndex:4},handleLabelTextDiscrete:{color:function(e){var t=e.theme;return b.oF(t,b.op(t))},composes:"slider__handle-label-text-discrete",position:"relative",textAlign:"center",zIndex:4,top:"110%"},handleLabelTextRegular:{composes:"slider__handle-label-text--regular",fontSize:"1rem",padding:[[5,16]]},handleLabelTextHybridGrid:{composes:"slider__handle-label-text--hybrid-grid",fontSize:14,paddingTop:2,paddingBottom:0,paddingLeft:8,paddingRight:0},handleLabelImageContainer:{boxSizing:"border-box",composes:"slider__handle-label-image-container",height:84,margin:"auto",position:"relative",width:150},handleLabelImage:{backgroundImage:function(e){return'url("'+e.imageUrl+'")'},backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"contain",bottom:0,composes:"slider__handle-label-image",left:0,position:"absolute",right:0,top:0,zIndex:2},handleLabelBackground:{align:"center",background:function(e){var t=e.theme,n=e.isDiscrete;return b.Fq(n?t.ControlBackground:t.PrimaryColor)},borderRadius:function(e){return e.theme.BorderRadius/2},bottom:0,boxShadow:function(e){var t=e.theme,n=e.isDiscrete;return"0 0 0 "+t.BorderWidth+"px "+b.tv(t,n?t.ControlBackground:t.PrimaryColor)},composes:"slider__handle-label-background",left:0,opacity:function(e){return e.theme.ControlAlpha},position:"absolute",right:0,top:0,zIndex:2},handleLabelArrowBorder:{border:"8px solid transparent",borderTopColor:function(e){var t=e.theme,n=e.isDiscrete;return b.tv(t,n?t.ControlBackground:t.PrimaryColor)},content:'""',left:"50%",marginLeft:-8,marginTop:function(e){return e.theme.BorderWidth-2},opacity:function(e){return e.theme.ControlAlpha},position:"absolute",top:"100%",zIndex:1},handleLabelArrow:{border:"8px solid transparent",borderTopColor:function(e){var t=e.theme;return e.isDiscrete?t.ControlBackground:t.PrimaryColor},left:"50%",marginLeft:-8,marginTop:-2,opacity:function(e){return e.theme.ControlAlpha},position:"absolute",top:"100%",zIndex:3},tickContainer:{composes:"slider__tick-container",position:"absolute",top:0,bottom:0,left:0,right:0,margin:[["auto",0]],height:10,cursor:"default",userSelect:"none",zIndex:0},tick:{composes:"slider__tick",position:"absolute",marginLeft:-.5,top:"100%",marginTop:function(e){return e.theme.BorderWidth},width:1,height:13,left:function(e){return e.percent+"%"},backgroundColor:function(e){var t=e.theme;return b.tv(t,t.ControlBackground)}},tickLabel:{composes:"slider__tick-label",cursor:"pointer",position:"absolute",top:"100%",marginTop:9,padding:[[9,0]],overflowWrap:"anywhere",textAlign:"center",color:function(e){var t=e.theme;return b.oF(t,b.op(t))}},tickLabelRegular:{composes:"slider__tick-label--regular",fontSize:18,lineHeight:"18px",marginLeft:function(e){var t=e.count,n=e.percent;return 0===n&&t>1?-20:100===n&&t>1?4:-100/t/2+"%"},width:function(e){var t=e.count,n=e.percent;return[0,100].includes(n)&&t>1?90/t/2+"%":100/t+"%"},left:function(e){var t=e.count,n=e.percent;return 100===n&&t>1?n-70/t/2+"%":n+"%"}},tickLabelHybridGrid:{composes:"slider__tick-label--hybrid-grid",fontSize:14,lineHeight:"14px",marginLeft:function(e){return-100/e.count/2+"%"},width:function(e){return 100/e.count+"%"},left:function(e){return e.percent+"%"}},noAnswer:{composes:"slider__no-answer",marginTop:6,outline:"none","& > div":{flex:"initial"}},noAnswerLabel:{composes:"slider__no-answer__label",marginLeft:10,userSelect:"none"}}),A=n(65536),y=n(68088),C=n(59261),_=n(57740),x=n(11325),w=n(67927),T=n(38871),E=n(46131),S=n(7495),k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)};function B(e,t){e.target===e.currentTarget&&" "===e.key&&(t(),e.preventDefault())}function N(e){var t=e.handle,n=t.id,r=t.value,o=t.percent,a=e.domain,s=e.hasValueSet,c=e.getHandleProps,l=e.isDiscrete,u=e.discreteValues,m=e.decimalPlaces,f=e.defaultPosition,h=e.isHybridGrid,b=e.onChange,v=i.useState(!1),A=v[0],y=v[1],C=a[0],_=a[1],x=(0,d.Fg)(),w=g({theme:x,percent:s?o:f,isHybridGrid:h});return i.createElement("div",k({className:p()(w.handle,A&&w.handleActive)},c(n),{tabIndex:0,role:"slider","aria-valuemin":C,"aria-valuemax":_,"aria-valuenow":s?r.toFixed(m):void 0,onBlur:function(){return y(!1)},onMouseOut:function(){return y(!1)}}),s&&i.createElement("div",{onFocus:function(){s||b([r]),y(!0)},onMouseOver:function(){return y(!0)},className:p()(w.handleLabelContainer,h&&!l?w.handleLabelContainerHybridGrid:w.handleLabelContainerRegular)},i.createElement(M,{discreteValues:u,value:r,isHybridGrid:h,decimalPlaces:m,isDiscrete:l})))}function M(e){var t=e.discreteValues,n=e.value,r=e.isHybridGrid,o=e.decimalPlaces,a=e.isDiscrete,s=(0,C.Z)(t&&t[n],"ImageUrl");return(0,x.Ew)(s)?a?i.createElement(I,{value:t[n],isHybridGrid:r}):i.createElement(D,{value:n,decimalPlaces:o,isHybridGrid:r}):i.createElement(O,{value:t[n],isHybridGrid:r})}function D(e){var t=e.value,n=e.decimalPlaces,r=e.isHybridGrid,o=(0,d.Fg)(),a=g({theme:o}),s=t.toFixed(n);return i.createElement(i.Fragment,null,i.createElement("div",{className:a.handleLabelBackground}),!r&&i.createElement(P,null),i.createElement("div",{className:p()(a.handleLabelText,r?a.handleLabelTextHybridGrid:a.handleLabelTextRegular)},s),s," ")}function I(e){var t=e.value,n=e.isHybridGrid,r=(0,C.Z)(t,"TEXT")||t.choiceValueCode,o=(0,d.Fg)(),a=g({theme:o,isDiscrete:!0});return i.createElement(i.Fragment,null,i.createElement("div",{className:a.handleLabelBackground}),!n&&i.createElement(P,{isDiscrete:!0}),i.createElement("div",{className:p()(a.handleLabelText,a.handleLabelTextRegular),title:r},i.createElement("div",{className:a.handleLabelTextDiscrete},r)),r)}function O(e){var t=e.value,n=e.isHybridGrid,r=(0,C.Z)(t,"ImageUrl"),o=(0,C.Z)(t,"TEXT")||t.choiceValueCode,a=(0,d.Fg)(),s=g({theme:a,imageUrl:r,isDiscrete:!0});return i.createElement(i.Fragment,null,i.createElement("div",{className:s.handleLabelBackground}),!n&&i.createElement(P,{isDiscrete:!0}),i.createElement("div",{className:p()(s.handleLabelImageContainer,s.handleLabelTextRegular),title:o},i.createElement("div",{className:s.handleLabelImage}),i.createElement("div",{className:s.handleLabelTextDiscrete},o)),o.length<10?i.createElement("div",null,o):i.createElement("div",null,o.concat(o).substring(0,2*o.length/1.6)))}function P(e){var t=e.isDiscrete,n=(0,d.Fg)(),r=g({theme:n,isDiscrete:t});return i.createElement(i.Fragment,null,i.createElement("div",{className:r.handleLabelArrowBorder}),i.createElement("div",{className:r.handleLabelArrow}))}function R(e){var t,n=e.tick,r=e.onChange,o=e.count,a=e.isDiscrete,s=e.discreteValues,c=e.decimalPlaces,l=e.isHybridGrid,u=n.percent,m=n.value,f=(0,d.Fg)(),h=g({theme:f,percent:u,count:o}),b=a?null===(t=s[m])||void 0===t?void 0:t.elementId:null,v=a?s[m]:void 0,A=(0,C.Z)(v,"TEXT")||void 0!==v&&v.choiceValueCode||m,y=a?A:m.toFixed(c);return i.createElement(i.Fragment,null,i.createElement("div",{onClick:function(){return r([m])}},i.createElement("div",{className:h.tick}),i.createElement("div",{id:b,className:p()(h.tickLabel,l?h.tickLabelHybridGrid:h.tickLabelRegular),dangerouslySetInnerHTML:{__html:y}})))}function L(e){var t,n=e.text,r=e.position,o=(0,d.Fg)(),a=g({theme:o}),s=((t={})[A.h.Left]=a.labelLeft,t[A.h.Middle]=a.labelMiddle,t[A.h.Right]=a.labelRight,t);return(0,x.Ew)(n)?null:i.createElement(y.n,{text:n,render:function(e){return i.createElement("div",{className:p()(a.label,s[r]),dangerouslySetInnerHTML:{__html:e}})}})}function V(e){var t=e.theme,n=e.question,r=e.onClearAnswer,o=e.isDisabled,a=void 0!==o&&o,s=(0,C.Z)(t,"QuestionClearButton")||"Reset",c=(0,C.Z)(n,"ResetButtonText")||s;return i.createElement(_.Z,{className:"slider__button--clear "+(a&&"disabled"),text:c,size:"full",onClick:function(){return r()}})}function F(e){var t=e.value,n=e.domain,r=e.hasValueSet,o=e.stepValue,a=e.onChange,s=e.displayTicks,l=e.tickValues,u=e.isDiscrete,m=e.discreteValues,f=e.stepDecimalPlaces,p=e.tickDecimalPlaces,b=e.defaultPosition,v=e.hasImages,A=e.isHybridGrid,y=e.elementId,C=e.isDisabled,_=(0,S.Z)(),x=A?(0,c.dp)(_):"Full",w=(0,d.Fg)(),T=g({theme:w,size:x,hasImages:v,isHybridGrid:A});return i.createElement("div",{id:y,className:T.sliderContainer+" "+(C&&T.disabled)},i.createElement(h.iR,{className:T.slider,mode:1,domain:n,step:o,values:[t],onUpdate:t||C?void 0:a,onChange:C?void 0:a,warnOnChanges:!1,disabled:!0===C},i.createElement(h.S0,null,(function(e){var t=e.getRailProps;return i.createElement("div",k({className:T.rail+" "+(C&&T.disabled)},t()))})),i.createElement(h.wO,null,(function(e){var t=e.handles,o=e.getHandleProps;return i.createElement("div",{className:T.handleContainer},t.map((function(e){return i.createElement(N,{key:e.id,handle:e,hasValueSet:r,getHandleProps:o,isDiscrete:u,discreteValues:m,decimalPlaces:f,isHybridGrid:A,domain:n,defaultPosition:b,onChange:C?void 0:a})})))})),s&&i.createElement(h.vb,{values:l},(function(e){var t=e.ticks;return i.createElement("div",{className:T.tickContainer},t.map((function(e){return i.createElement(R,{key:e.id,tick:e,count:t.length,isDiscrete:u,onChange:a,discreteValues:m,decimalPlaces:p,isHybridGrid:A})})))}))))}function q(e){var t=e.displayNoAnswer,n=e.hasNoAnswer,r=e.onToggleNoAnswer,o=e.isHybridGrid,a=e.noAnswerLabel,s=e.isDisabled,c=void 0!==s&&s,l=(0,d.Fg)(),u=g({theme:l});return t?o?i.createElement("div",{role:"checkbox","aria-checked":n,tabIndex:0,className:u.noAnswer,onKeyDown:c?void 0:function(e){return B(e,r)},onClick:c?void 0:r},i.createElement(T.T,{checked:n,backgroundless:!0,disabled:c}),i.createElement("span",{className:u.noAnswerLabel},a)):i.createElement(w.Y,{type:"checkbox",onKeyDown:c?void 0:function(e){return B(e,r)},onSelect:c?void 0:r,selected:n,label:a,className:u.noAnswer}):null}function U(e){var t=e.theme,n=e.question,r=e.displayClearButton,o=e.onClearAnswer,a=e.isHybridGrid,s=e.isDisabled,c=(0,d.Fg)(),l=g({theme:c}),u=(0,C.Z)(n,"LeftLabel"),m=(0,C.Z)(n,"MiddleLabel"),f=(0,C.Z)(n,"RightLabel"),p=i.createElement(i.Fragment,null,i.createElement(F,k({},e)),i.createElement("div",{className:l.labelContainer+" "+(s&&l.disabled)},!a&&i.createElement(L,{text:u,position:A.h.Left}),i.createElement(L,{text:m,position:A.h.Middle}),!a&&i.createElement(L,{text:f,position:A.h.Right})),i.createElement(q,k({},e)),r&&i.createElement(V,{theme:t,question:n,onClearAnswer:s?void 0:o,isDisabled:!0}));return a?i.createElement(E.Z,{leftLabel:u,rightLabel:f},p):p}var H,W,z=n(11110),j=n(78632),G=(H=function(e,t){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},H(e,t)},function(e,t){function n(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};!function(e){e.Continuous="Continuous",e.Discrete="Discrete"}(W||(W={}));var K=function(e){function t(t){var n=e.call(this,t)||this;return n.getDisplayResetButtonSetting=function(e){return(0,s.Ag)(e.question,"DisplayResetButton")},n.getCursorPositionSetting=function(e){return(0,s.Wd)(e.question,r,"CursorPosition")},n.getDisplayTicksSetting=function(e){return(0,s.Ag)(e.question,"DisplayTicks")},n.getStepValueSetting=function(e){var t=(0,s.Yu)(e.question,"StepValue",1);return n.isDiscrete(e)||0===t?1:t},n.getTicksIntervalSetting=function(e){var t=(0,s.Yu)(e.question,"TicksInterval",1);return n.isDiscrete(e)||0===t?1:t},n.getColumnNoAnswerLabel=function(e){var t=e.question,n=t.variableNames,r=t.parent;if(r&&r.type===m.ce.HybridGrid){var i=r.columns.find((function(e){return!(0,o.xb)((0,o.jV)(n,e.variables.map((function(e){return e.name}))))}));return(0,u.I)(i,"NoAnswerLabel",e.language)}},n.getDisplayNoAnswerSetting=function(e){return(0,s.Ag)(e.question,"DisplayNoAnswer")},n.onClearAnswer=function(e){if(n.isDiscrete(e)){var t=n.getChoices(e).find((function(e){return n.isElementDefault(e)}));t?n.onChange(t.value):n.clearMentions(e)}else if((0,s.Z9)(e.question,"DefaultValue")){var r=n.getDefaultValue(e);n.onChange(r)}else n.clearMentions(e)},n.clearMentions=function(e){var t=e.question.variables[0];n.setMentions(e,t.name,(function(e){return e.clear()}))},n.onToggleNoAnswer=function(e){var t=e.question,r=t.variables[0];if((0,s.Z9)(t,"NoAnswerValue")){var i=n.getMentionValue(e),o=(0,s.yP)(t,"NoAnswerValue");i!==o?n.setMentions(e,r.name,(function(e){return e.set(o)})):n.onClearAnswer(e)}},n.getNoAnswerValueSetting=function(e){return(0,s.yP)(e.question,"NoAnswerValue","0")},n.getNoAnswerLabel=function(e){return n.getColumnNoAnswerLabel(e)||(0,u.I)(e.question,"NoAnswerLabel",e.language)||(0,u.I)(e.theme,"SliderNoAnswer",e.language)},n.onChangeNoAnswer=function(){n.setState((function(e,t){var r=t.question.variables[0],i=Q({},e),o=n.getNoAnswerValueSetting(t);return n.noAnswer(t)?n.setMentions(t,r.name,(function(e){return e.set(o)})):n.setMentions(t,r.name,(function(e){return e.set(String(i.value))})),i}))},n.displayValue=function(e,t){if(!n.noAnswer(e)){if(!n.isDiscrete(e))return String(t);var r=(0,c.xU)(e.question,String(t));return void 0!==r?(0,u.I)(r,"TEXT",e.language):void 0}},n.isHybridGrid=function(e){var t;return(null===(t=e.question.parent)||void 0===t?void 0:t.type)===m.ce.HybridGrid},n.hasImages=function(e){if(!n.isDiscrete(e))return!1;var t=e.question.variables[0];return null==t?void 0:t.choiceList.map((function(e){var t;return null===(t=e.translatedTexts)||void 0===t?void 0:t.imageurl})).some((function(e){return Object.keys(null!=e?e:{}).some((function(t){return!(0,x.Ew)(e[t])}))}))},n.getSliderType=function(e){var t=e.question,r=n.isHybridGrid(e)?["VarType","0"]:["Type",W.Discrete],i=r[0],o=r[1];return(0,s.Ag)(t,i,o)?W.Discrete:W.Continuous},n.isDiscrete=function(e){return W.Discrete===n.getSliderType(e)},n.getStepDecimalPlaces=function(e){var t=(0,s.yP)(e.question,"StepValue");return(0,c.N3)(t)},n.getTickDecimalPlaces=function(e){var t=(0,s.yP)(e.question,"TicksInterval");return(0,c.N3)(t)},n.hasNoAnswer=function(e){var t=e.question.variables[0];return n.getMentionValue(e,t.name)===(0,s.yP)(e.question,"NoAnswerValue")},n.hasValueSet=function(e){var t=e.question.variables[0],r=n.getMention(e,t.name);return r&&n.isValueValid(e,r.value)&&!n.hasNoAnswer(e)},n.isValueValid=function(e,t){return!n.isDiscrete(e)||n.isChoiceVisible(t,e)},n.state={value:0},n}return G(t,e),t.prototype.initializeQuestion=function(t,n){var r=this,i=t.variables[0];if(this.isDiscrete(n)){var o=this.getChoices(n).find((function(e){return r.isElementDefault(e)}));void 0!==o&&this.setMentions(n,i.name,(function(e){return e.set(o.choiceValueCode)}))}e.prototype.initializeQuestion.call(this,t,n),this.setState({value:this.getValue(n)})},t.prototype.didUpdateMentions=function(t,n){e.prototype.didUpdateMentions.call(this,t,n),this.noAnswer(this.props)||this.setState({value:this.getValue(this.props)})},t.prototype.didUpdateVariables=function(t,n){e.prototype.didUpdateVariables.call(this,t,n);var r=t[0],i=this.getMentionValue(this.props,r.name);!(0,x.Ew)(i)&&!r.choiceList.some((function(e){return e.value===i}))&&this.onClearAnswer(this.props)},t.prototype.getValue=function(e){var t=e.question.variables[0],n=this.getMention(e,t.name);if(this.noAnswer(e)||!n)return this.getDefaultValue(e);if(this.isDiscrete(this.props)){var r=this.getChoices(e).find((function(e){return e.choiceValueCode===n.value}));return r?r.value:this.getDefaultValue(e)}var i=this.getBoundaries(e),o=i[0],a=i[1];return Math.min(a,Math.max(o,Number.parseFloat(n.value)))},t.prototype.getChoices=function(e){var t=this;return e.sequencedVariables[0].choiceList.filter((function(e){return t.isElementVisible(e)})).filter((function(e){return t.hasChoiceValue(e)})).map((function(e,t){return{elementId:e.elementId,name:e.name,value:t+1,choiceValueCode:e.value,translatedTexts:e.translatedTexts,settings:e.settings}}))},t.prototype.getDiscreteValues=function(e){return this.getChoices(e).reduce((function(e,t){var n,r=t.value,i=t.elementId,o=t.name,a=t.choiceValueCode,s=t.translatedTexts;return Q(Q({},e),((n={})[r]={elementId:i,name:o,choiceValueCode:a,translatedTexts:s},n))}),{})},t.prototype.getBoundaries=function(e){var t=this.isDiscrete(e),n=t?[1,this.getChoices(e).length]:[Number.parseFloat(e.min),Number.parseFloat(e.max)],r=n[0],i=n[1],o=Number.isNaN(r)?0:r,a=Number.isNaN(i)?0:i;return[o,!t&&a<=o?o+this.getStepValueSetting(e):a]},t.prototype.isElementVisible=function(e){return!(0,s.Z9)(e,"Visible")||(0,s.Ag)(e,"Visible")},t.prototype.isElementDefault=function(e){return(0,s.Ag)(e,"Default")},t.prototype.hasChoiceValue=function(e){return!(0,x.Ew)(e.value)},t.prototype.getDefaultValue=function(e){var t=this;if(this.isDiscrete(e)){var n=this.getChoices(e).find((function(e){return t.isElementDefault(e)}));if(n)return n.value}if((0,s.Z9)(e.question,"DefaultValue")){var i=(0,s.Yu)(e.question,"DefaultValue");if(i)return i}var o=this.getBoundaries(e),a=o[0],c=o[1];switch(this.getCursorPositionSetting(e)){case r.Hidden:case r.Middle:var l=((c-a)/2-a)/(c-a),u=this.getStepValueSetting(e);return u*Math.round(l*(c-a)/u)+a;case r.Right:return c;case r.Left:default:return a}},t.prototype.getDefaultPosition=function(e){switch(this.getCursorPositionSetting(e)){case r.Right:return 100;case r.Hidden:case r.Middle:return 50;case r.Left:default:return 0}},t.prototype.getTickValues=function(e){var t=this.getBoundaries(e),n=t[0],r=t[1],i=this.getTicksIntervalSetting(e),a=(r-n+1)/i>100?(r-n+1)/100:i,s=Array.from((0,o.w6)(-r,1-n,a)).reverse().map((function(e){return-e}));return s[0]===n?s:function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([n],s)},t.prototype.onChange=function(e){var t=this,n=this.props.question.variables[0];if(this.isDiscrete(this.props)){var r=this.getDiscreteValues(this.props)[e];if(r){var i=r.choiceValueCode;void 0!==i&&this.setMentions(this.props,n.name,(function(e){return e.set(i)}))}}else Number.isNaN(e)||this.setMentions(this.props,n.name,(function(n){return n.set(String(e.toFixed(t.getStepDecimalPlaces(t.props))))}))},t.prototype.noAnswer=function(e){var t=e.question.variables[0],n=this.getMention(e,t.name);return void 0!==n&&this.getDisplayNoAnswerSetting(e)&&n.value===this.getNoAnswerValueSetting(e)},t.prototype.validate=function(t){var n=this.props,r=n.question,i=n.useClientValidation;return(0,z.NA)(r.type,i)?(new j.O).build():e.prototype.validate.call(this,t)},t.prototype.renderQuestion=function(){var e=this,t=this.state,n=this.props,r=n.question.variables[0];return i.createElement(U,Q({},(0,l.V)(n),{value:t.value,domain:this.getBoundaries(n),hasValueSet:this.hasValueSet(n),hasNoAnswer:this.hasNoAnswer(n),noAnswerLabel:this.getNoAnswerLabel(n),stepValue:this.getStepValueSetting(n),onChange:function(t){var n=t[0];return e.onChange(n)},displayClearButton:this.getDisplayResetButtonSetting(n),onClearAnswer:function(){return e.onClearAnswer(n)},onToggleNoAnswer:function(){return e.onToggleNoAnswer(n)},displayTicks:this.getDisplayTicksSetting(n),tickValues:this.getTickValues(n),displayNoAnswer:this.getDisplayNoAnswerSetting(n),isDiscrete:this.isDiscrete(n),discreteValues:this.getDiscreteValues(n),stepDecimalPlaces:this.getStepDecimalPlaces(n),tickDecimalPlaces:this.getTickDecimalPlaces(n),defaultPosition:this.getDefaultPosition(n),hasImages:this.hasImages(n),isHybridGrid:this.isHybridGrid(n),elementId:r.elementId,isDisabled:n.isDisabled}))},t}(a.X)},85958:function(e,t,n){"use strict";n.d(t,{e:function(){return S}});var r,i=n(67294),o=n(16856),a=n(25595),s=n(71716),c=n(40029),l=n(47103),u=/^['a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,4}$/,m=/^([(\-\s\.\+]*[0-9][)\-\s\.]*){5,15}$/;!function(e){e.None="None",e.AllCaps="AllCaps",e.FirstLetterCaps="FirstLetterCaps"}(r||(r={}));var d,f=n(95457),p=n(11325),h=n(78632),b=n(53149),v=n(1509),g=n(48278),A=n(55796),y=n(57442),C=n(5498),_=n(34370),x=n(47643),w=n(11110),T=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),E=function(){return E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E.apply(this,arguments)},S=function(e){function t(t){var n=e.call(this,t)||this;return n.maxResults=function(e){return(0,f.Yu)(e.question,"MaxResults")},n.hasMentionsInChoices=function(e){var t=e.question.variables[0].choiceList,r=n.hasMentions(e),i=n.getMentions(e)[0];return r&&t.filter((function(e){return!(0,p.Ew)(e.value)})).some((function(e){return e.value===i.value}))},n.onKeyPress=function(e){if(n.isKeyPrintable(e.key)&&n.hasMentionsInChoices(n.props)){var t=n.props.question,r=n.getQuestionVariable(t.variables);n.setMentions(n.props,r.name,(function(e){return e.clear()}))}},n.isKeyPrintable=function(e){return 1===e.length},n.onTextChanged=function(e){var t=e.target.value,i=e.target.maxLength,a=n.props,s=a.question,c=a.language,u=(0,f.Wd)(s,r,"CaseMode");if([l.ce.NumericAnswer,l.ce.RunningTotal].includes(s.type)){var m=s.settings.NumberOfDecimals,d=(0,b.h2)(c),p=t.split(d),h=p[0],v=p[1];if(void 0===m||0===m){if((0,o.q9)(t,d))return;t=h}else(0,o.q9)(t,d)&&v&&v.length>m&&(p[1]=v.substring(0,m),t=p.join(d));if((0,o.q9)(t,".")&&","===d&&(t=t.replace(".",",")),t.match(/[^\d. ,-]|[.,]{2,}/)||Array.from(t).find((function(e,t){return t>0&&"-"===e})))return}u===r.AllCaps?t=t.toUpperCase():u===r.FirstLetterCaps&&(t=t.split(" ").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")),i>-1&&t.length>i&&(t=t.substring(0,i)),n.setState((function(e){var n=E({},e);return n.value=t,n}))},n.updateMention=function(e,t,r){var i,o=null===(i=n.getMentions(n.props,t.name))||void 0===i?void 0:i.find((function(e){return n.mentionIsValid(e,n.props.question)}));(0,p.Ew)(e)?o&&n.setMentions(n.props,t.name,(function(e){return e.clear()})):(null==o?void 0:o.value)!==e&&n.setMentions(n.props,t.name,(function(t){return r?t.set(r,e):t.set(e)}))},n.onTextBlur=function(){n.updateAnswers()},n.maxLength=function(e){return(0,f.Yu)(e,"MaxAnswerLength")},n.displayValue=function(){var e=n.getMentionValue(n.props),t=n.state.value===e&&n.hasAnswerWithValue(n.props,e);return void 0===n.state.value||t?"":n.state.value},n.textAlign=function(e){if(e.type===l.ce.NumericAnswer)return"right"},n.state={value:"",focus:!1,answers:void 0},n}return T(t,e),t.prototype.getFilteredAnswers=function(e,t,n){var r=this;if(!n){var i=(0,f.Yu)(t.question,"MinSearchLength",0);if((0,p.Ew)(e.value)||e.value.length<i)return[]}var o=t.question,a=e.value.trim().toLowerCase(),s=t.sequencedVariables[0].choiceList.filter((function(e){return!(0,p.Ew)(e.value)}));if(!n)switch((0,f.yP)(o,"SearchOption")){case"Exact":s=s.filter((function(e){return r.getChoiceText(e,t.language).trim().toLowerCase()===a}));break;case"StartsWith":s=s.filter((function(e){return r.getChoiceText(e,t.language).trim().toLowerCase().startsWith(a)}));break;default:s=s.filter((function(e){return r.getChoiceText(e,t.language).trim().toLowerCase().includes(a)}))}return s=s.sort((function(e,t){return e===t?0:e<t?-1:1})),null!=this.maxResults(t)?s.slice(0,this.maxResults(t)):s},t.prototype.getChoiceText=function(e,t){return(0,p.IQ)((0,v.I)(e,"TEXT",t||this.props.language))},t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n);var r=this.getQuestionVariable(t.variables);if(!this.hasMentions(n))switch(t.type){case l.ce.RespondentPhone:this.setMentions(this.props,r.name,(function(e){return e.set(n.phone)}));break;case l.ce.RespondentEmail:this.setMentions(this.props,r.name,(function(e){return e.set(n.email)}))}this.updateState(n,!1)},t.prototype.willUpdateMentions=function(t,n){e.prototype.willUpdateMentions.call(this,t,n),this.updateState(n,!1)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.language!==this.props.language&&this.updateState(this.props)},t.prototype.componentDidMount=function(){var e=this;this.setState((function(t){return E(E({},t),{input:e.input})}))},t.prototype.hasAnswerWithValue=function(e,t){return!(0,p.Ew)(t)&&e.question.variables[0].choiceList.some((function(e){return e.value===t}))},t.prototype.updateState=function(e,t){var n=this;void 0===t&&(t=!0),this.setState((function(r){var i=E({},r),o=n.getMention(e),a=(0,A.Y_)(n.props.question);switch(i.value="",e.question.type){case l.ce.RespondentEmail:i.value=t?e.email:(null==o?void 0:o.value)||r.value;break;case l.ce.RespondentPhone:i.value=t?e.phone:(null==o?void 0:o.value)||r.value;break;case l.ce.OpenEndAnswer:o&&(i.value=o.openEnd);break;case l.ce.NumericAnswer:var s=o&&n.hasAnswerWithValue(e,o.value),c=n.hasMentionsInChoices(e),u=o&&n.isChoiceVisible(o.value,e);if(o&&!s&&(!c||!u)){var m=(0,b.L4)(o.value).value();(0,p.yi)(m)||(i.value=n.formatNumeric(m,e))}break;default:o&&o.value!==a&&(i.value=o.value)}return i}))},t.prototype.formatNumeric=function(e,t,n){var r=t.question;return(0,b.IZ)(e,(0,f.Yu)(r,"NumberOfDecimals"),t.language,n,this.shouldFormat(r))},t.prototype.shouldFormat=function(e){return this.isNumericAnswer(e)&&(0,A.$)(e)},t.prototype.isNumericAnswer=function(e){return e.type===l.ce.NumericAnswer},t.prototype.updateAnswers=function(){var e=this.props,t=e.question,n=e.language,r=this.getQuestionVariable(t.variables),i=this.state.value,a=this.hasMentionsInChoices(this.props);if(!(0,p.Ew)(i)||!a){if(this.isNumericAnswer(t)){var s=(0,b.L4)(i,n).value();(0,p.yi)(s)||(i=this.formatNumeric(s,this.props,!0))}if(t.type!==l.ce.OpenEndAnswer)this.updateMention(i,r);else{i=(0,o.fy)(i||"");var c=(0,f.yP)(t,"AnswerCode","0");this.updateMention(i,r,c)}}},t.prototype.placeholder=function(){return""},t.prototype.inputtype=function(e){switch(e.type){case l.ce.RespondentEmail:case l.ce.EmailAddressAnswer:return"email";case l.ce.RespondentPhone:return"tel";default:return"text"}},t.prototype.minValue=function(){var t=e.prototype.minValue.call(this);return null!=t?t:Number.MIN_SAFE_INTEGER},t.prototype.maxValue=function(){var t=e.prototype.maxValue.call(this);return null!=t?t:Number.MAX_SAFE_INTEGER},t.prototype.renderQuestion=function(e){var t=this,n=(0,f.Ag)(e,"MultiLine")||e.type===l.ce.OpenEndAnswer,r=(0,f.Yu)(e,"Lines");return i.createElement(i.Fragment,null,i.createElement(y.Z,E({},(0,g.V)(this.props),{multiline:n,inputType:this.inputtype(e),inputMode:e.type===l.ce.NumericAnswer?"decimal":void 0,placeholder:this.placeholder(),inputRef:function(e){t.input=e},min:this.minValue(),max:this.maxValue(),maxLength:this.maxLength(e),onBlur:this.onTextBlur,onChange:this.onTextChanged,onKeyPress:this.onKeyPress,value:this.displayValue(),disabled:this.props.isDisabled,lines:r})),i.createElement(s.g,E({controlType:a.t},(0,g.V)(this.props))))},t.prototype.regexForValidationMask=function(e){var t="",n={A:"[A-Z]",Z:"[A-Z0-9]",9:"[0-9]","*":"."};return Array.from(e).forEach((function(e){t+=n[e]||"\\"+e})),"^"+t+"$"},t.prototype.validateFormat=function(e,t){var n=(0,f.yP)(e,"ValidationMask");return!!(0,p.Ew)(n)||new RegExp(this.regexForValidationMask(n),"i").test(t)},t.prototype.shouldEnforceValidation=function(e){return!(0,f.Z9)(e,"EnforceValidation")||(0,f.Ag)(e,"EnforceValidation")},t.prototype.isAnswerComplete=function(){if((0,p.Ew)(this.state.value)&&this.hasMentions(this.props)){var e=this.getMentions(this.props)[0],t=this.getQuestionVariable(this.props.sequencedVariables).choiceList;if((void 0===t?[]:t).some((function(t){return t.value===e.value})))return!0}return!(0,p.Ew)((0,o.fy)(this.state.value))},t.prototype.validate=function(t){this.updateAnswers();var n=this.props,r=n.question,i=n.useClientValidation,o=n.dispatch,a=this.state.value,s=new h.O;if((0,w.NA)(r.type,i))return r.type===l.ce.RespondentPhone?o((0,C.lU)(a)):r.type===l.ce.RespondentEmail&&o((0,C.MG)(a)),s.build();var c=r.variables.find((function(e){return e.type!==x.x.Computed})),d=this.hasAnswerWithValue(this.props,a),f=e.prototype.validate.call(this,t);if(f.isValid&&!(0,p.Ew)(a)&&!d)switch(r.type){case l.ce.OpenEndAnswer:if(!(f=this.validateOpenEnd(a,r)).isValid)return f;break;case l.ce.RespondentPhone:if(this.shouldEnforceValidation(r)&&!m.test(a))return s.fail(c.name,"InvalidAnswer").build();this.props.dispatch((0,C.lU)(a));break;case l.ce.RespondentEmail:if(this.shouldEnforceValidation(r)&&!u.test(a))return s.fail(c.name,"InvalidEmailAddress").build();this.props.dispatch((0,C.MG)(a));break;case l.ce.EmailAddressAnswer:if(this.shouldEnforceValidation(r)&&!u.test(a))return s.fail(c.name,"InvalidEmailAddress").build();break;case l.ce.TextAnswer:if(!this.validateFormat(r,a))return s.fail(c.name,"InvalidTextFormat").build();break;case l.ce.NumericAnswer:return(0,_.eE)([r])}return f},t}(c.X)},97060:function(e,t,n){"use strict";n.d(t,{v:function(){return Z}});var r=n(67294),i=n(78632),o=n(95457),a=n(1509),s=n(48278),c=n(25935),l=n(83253),u=n.n(l),m=n(25371),d=(0,m.QM)({selectedWord:{composes:"selected-word","background-color":"#2366DB",color:"#FFFFFF"},selectedCategory0:function(e){return{composes:"selected-category-0","background-color":e.category0Color}},selectedCategory1:function(e){return{composes:"selected-category-1","background-color":e.category1Color}},selectedCategory2:function(e){return{composes:"selected-category-2","background-color":e.category2Color}},selectedCategory3:function(e){return{composes:"selected-category-3","background-color":e.category3Color}},selectedCategory4:function(e){return{composes:"selected-category-4","background-color":e.category4Color}},selectedCategory5:function(e){return{composes:"selected-category-5","background-color":e.category5Color}},saveButton:{composes:"save__button","background-color":"#3AAAEA",color:"white","font-family":"Open Sans","font-size":"14px","font-weight":"600","line-height":"19px","letter-spacing":"0em","text-align":"center",width:"104.61px",height:"33px","border-radius":"8px"},saveButtonDisabled:{composes:"save__button__disabled","background-color":"#F3F3F3",color:"#000000","font-family":"Open Sans","font-size":"14px","font-weight":"600","line-height":"19px","letter-spacing":"0em","text-align":"center",width:"104.61px",height:"33px","border-radius":"8px"},cancelButton:{composes:"cancel__button",width:"104.82px",height:"33px",background:"#F3F3F3","border-radius":"8px",color:"#000000","font-weight":"600","font-family":"Open Sans"},cancelButtonHover:{composes:"cancel__button buttonActive",color:"black"},deleteButton:{composes:"delete__button",width:"104.82px",height:"33px",background:"#FF006F",color:"#FFFFFF","border-radius":"8px","font-weight":"600","font-family":"Open Sans",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},withFormatDisableUserSelection:{display:"flex",flexFlow:"wrap",WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"},withoutFormatDisableUserSelection:{WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",userSelect:"none"}}),f=n(94184),p=n.n(f),h=n(71253),b=n(47103),v=n(96994),g=n(57740),A=n(7495),y=n(59261),C=n(55796),_=n(25974),x=n(32833),w=n(11325),T=n(16856),E=n(96900),S=function(e){return 0===e.ChoiceListBackgroundAlpha&&0===e.ChoiceListBackgroundBorderWidth},k=(0,m.QM)({choice:{background:function(e){var t=e.theme;return E.Fq(t.ControlBackground,t.ChoiceListBackgroundAlpha)},borderRadius:function(e){var t=e.theme;return Math.min(t.ChoiceListBackgroundBorderRadius,t.ChoiceHeight/2)},boxShadow:"0 0 0 0",boxSizing:"border-box",color:"black",composes:"choice",cursor:"pointer",margin:"0",outline:"2px solid transparent",overflow:"hidden",padding:function(e){var t=e.theme;return S(t)?[[16,13]]:[[16,26]]},textAlign:function(e){return"right"===e.theme.DisplayChoiceIcon?"right":""},transition:"background 200ms, box-shadow 200ms, outline-color 200ms",userSelect:"none","& .check-box__icon":{display:function(e){return e.theme.ShowCheckboxSettings?"":"none"}},"& .radio__icon":{display:function(e){return e.theme.ShowRadioSettings?"":"none"}}},choiceHeader:{composes:"choice__header",fontWeight:700,margin:function(e){return[[e.theme.ChoiceSpacing,0]]}},choiceTextTextHighlighter:{composes:"choice__text__highlighter",fontWeight:"normal",marginLeft:8,paddingLeft:20},choiceContainer:{alignItems:"center",composes:"choice-container",display:"flex",flex:1,"margin-top":0,"margin-bottom":0,flexDirection:function(e){return"right"===e.theme.CheckBoxIconAlignment?"row-reverse":"row"}},choiceSelected:{background:function(e){var t=e.theme;return!S(t)&&t.PrimaryColor},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+E.tv(t,t.PrimaryColor)+" inset"},color:function(e){var t=e.theme;return S(t)?t.PrimaryColor:E.oF(t,t.PrimaryColor)},composes:"choice--selected"},choiceHover:{composes:"choice--hover",background:function(e){var t=e.theme,n=e.selected;if(!S(t))return n?E._j(t.PrimaryColor,t.ActiveHighlightValue):E._j(t.ControlBackground,t.ActiveHighlightValue)},boxShadow:function(e){var t=e.theme,n=e.selected;return"0 0 0 "+t.BorderWidth+"px "+E.tv(t,n?E._j(t.PrimaryColor,t.ActiveHighlightValue):E._j(t.ControlBackground,t.ActiveHighlightValue))+" inset"}},choiceActive:{composes:"choice--active",background:function(e){var t=e.theme,n=e.selected;if(!S(t))return n?E._j(t.PrimaryColor,t.ActiveHighlightValue):E._j(t.ControlBackground,t.ActiveHighlightValue)},outlineColor:function(e){var t=e.theme;return S(t)&&t.PrimaryColor}}}),B=n(20828),N=(0,m.QM)({choiceTextHighlighter:{composes:"choice",borderRadius:function(e){var t=e.theme;return Math.min(t.ChoiceListBackgroundBorderRadius,t.ChoiceHeight/2)},boxSizing:"border-box",cursor:"pointer",display:function(e){var t=e.hasOpenEnd,n=e.openEndSize;return t&&"Full"===n?"block":"flex"},flexWrap:"wrap",overflow:"hidden",textAlign:function(e){return"right"===e.theme.DisplayChoiceIcon?"right":""},transition:"background 200ms, box-shadow 200ms, outline-color 200ms",userSelect:"none",outline:"2px solid transparent","& .radio__icon, & .check-box__icon":{display:function(e){return"none"===e.theme.DisplayChoiceIcon?"none":""}},fontFamily:"Open Sans",fontWeight:"normal"},choiceHeader:{composes:"choice__header",fontWeight:400,margin:function(e){return[[e.theme.ChoiceSpacing,0]]}},choiceTextTextHighlighter:{composes:"choice__text__highlighter",fontWeight:"normal",FontFace:"openSans"},choiceContainer:{composes:"choice__container",alignItems:"center",display:"flex",flexGrow:1,minWidth:125,flexDirection:function(e){return"right"===e.theme.DisplayChoiceIcon?"row-reverse":"row"},margin:[[8,8,8,0]]},choiceSelectedTextHighlighter:{composes:"choice--selected"},choiceHoverTextHighlighter:{composes:"choice--hover"},choiceActiveTextHighlighter:{composes:"choice--active"},spacer:{width:20}}),M=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function D(e){var t=e.id,n=e.label,i=e.type,o=e.className,a=e.hasOpenEnd,s=e.openEndSize,c=e.horizontal,l=e.selected,u=e.onSelect,d=e.onKeyDown,f=e.renderChoice,h=r.useState(!1),b=h[0],v=h[1],g=r.useState(!1),A=g[0],y=g[1],C=(0,m.Fg)(),_=N({theme:C,selected:l,hasOpenEnd:a,openEndSize:s,horizontal:c});return r.createElement("div",{id:t,role:i,"aria-checked":l,"aria-label":n,onFocus:function(){return y(!0)},onBlur:function(){return y(!1)},onMouseOver:function(){return v(!0)},onMouseOut:function(){return v(!1)},onKeyDown:d,onMouseDown:function(e){var t=e.target,n=document.activeElement;t.contains(n)||n.blur(),e.preventDefault(),u()},className:p().apply(void 0,M([_.choiceTextHighlighter],[o]||0,[b&&_.choiceHoverTextHighlighter,A&&_.choiceActiveTextHighlighter,l&&_.choiceSelectedTextHighlighter]))},r.createElement("div",{className:_.choiceContainer},f()))}var I=n(89437),O=function(){return O=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O.apply(this,arguments)};function P(e){var t=e.choice,n=e.controlType,i=e.isFirst,c=e.isLast,l=e.disabled,u=e.openEnd,d=e.gridRendering,f=e.selected,p=e.variable,h=e.horizontal,v=e.highlightedWordsByCategories,g=e.selectedChoiceModels,C=e.highlightedWords,_=e.duplicateWords,x=e.language,E=e.openEndValue,S=e.mentions,N=e.toggleIsCategorySelected,M=r.useRef(),P=(0,A.Z)(),R=(0,m.Fg)(),L=k({theme:R,selected:f,horizontal:h}),V=(0,w.IQ)((0,y.Z)(t,"TEXT"));if(!t.value)return r.createElement("div",{id:t.elementId+"_INPUT",className:L.choiceHeader},r.createElement(B.Z,{choice:t,gridRendering:d}));var F=(0,b.TG)(P.type)?P.type:b.ce.RadioButton;function q(){Object.entries(g).forEach((function(e){e[0];var n,r=e[1];M.current&&((0,o.Ag)(P,"MakeCommentsMandatory")&&(0,w.Ew)(E[r.value])?N(!0,!0):N(!0,!1)),Object.entries(v).forEach((function(e){var t=e[0],n=e[1];if(S[t]){var i=S[t].findIndex((function(e){return r.value===e.value}));i>-1&&S[t].splice(i,1)}var o=n.findIndex((function(e){return r===e.choiceModel}));o>-1&&v[t].splice(o,1)}));var i=(0,a.I)(r,"TEXT",x);n=_.includes(i)?i+" ":i,v[t.name].push({highlightedWord:n,choiceModel:r}),Object.entries(C).forEach((function(e){e[0],e[1].splice(0)}))}))}var U=(0,o.yP)(t,"OpenEndSize","Medium");return r.createElement(r.Fragment,null,r.createElement(D,{id:t.elementId+"_INPUT",type:"radio",label:V,onKeyDown:function(e){if(e.target===e.currentTarget&&(" "===e.key&&(q(),e.preventDefault()),"ArrowUp"===e.key||"ArrowDown"===e.key)){var n=p.choiceList,r=n.indexOf(t)+("ArrowDown"===e.key?1:-1);if(n[r]){var i=document.getElementById(n[r].elementId+"_INPUT");i&&(i.focus(),F===b.ce.RadioButton&&i.click(),e.preventDefault())}}},onSelect:q,hasOpenEnd:!1,openEndSize:U,selected:f,className:(0,T.GL)(b.ce[F]),horizontal:h,renderChoice:function(){return r.createElement(I.H,O({},(0,s.V)(e),{choiceRef:M,choice:t,controlType:n,openEnd:u,isFirst:i,isLast:c,isDisabled:l,isSelected:f,variable:p}))}}))}var R=function(){return R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},R.apply(this,arguments)};function L(e){var t=e.theme,n=e.onReset,i=(0,A.Z)(),o=(0,y.Z)(t,"QuestionClearButton")||"Reset",a=(0,y.Z)(i,"ResetButtonText")||o;return r.createElement(g.Z,{className:"button--clear",text:a,size:"full",onClick:function(){return n()}})}function V(e){var t=(0,A.Z)(),n=e.choices,i=(0,x.Z)(),a=(0,m.Fg)(),c=(0,C.hH)(t),l=(0,o.Yu)(t,"NumberOfColumns"),u=l>1?Math.ceil((null==n?void 0:n.length)/l):1,d=(0,h.Z)({theme:a,displayType:c,numberOfColumns:l,numberOfRows:u});if(void 0===n||0===n.length)return null;var f=t.type===b.ce.ImageSelector,g=(0,o.yP)(t,"DisplayOrder"),y=c===_.c.VerticalColumns,T=i&&i.minWidth(778),E=y&&T&&!(0,w.w1)(),S=t.type===b.ce.RadioButton?"radiogroup":"group";return r.createElement("div",{role:S,className:p()(d.choiceList,f&&"Vertical"===g&&d.choiceListTableVertical,f&&"Horizontal"===g&&d.choiceListTableHorizontal,E&&d.choiceListGrid)},function(e){var t=e.choices;return t.map((function(n,i){return function(e,t,n,i,o){return function(e,t,n,i,o,a){var c=e.question,l=e.gridRendering,u=e.openEndValue,m=e.onOpenEndChange,d=e.onOpenEndBlur,f=e.variable,p=e.highlightedWordsByCategories,h=e.selectedChoiceModels,b=e.highlightedWords,v=e.isChoiceAlreadyHighlighted,g=e.duplicateWords,A=e.mentions,y=e.toggleIsCategorySelected,x=(0,C.hH)(c),w=x===_.c.Horizontal||x===_.c.HorizontalColumns,T=[];return Object.entries(h).forEach((function(e){e[0];var n=e[1];T.push(v(n,t.name))})),r.createElement(P,R({key:o},(0,s.V)(e),{controlType:a,gridRendering:l,isFirst:n,isLast:i,openEnd:(u||{})[t.index],openEndValue:u,onOpenEndChange:m,onOpenEndBlur:d,selected:T.every((function(e){return!0===e})),choice:t,variable:f,disabled:!1,horizontal:w,highlightedWordsByCategories:p,selectedChoiceModels:h,highlightedWords:b,duplicateWords:g,mentions:A,toggleIsCategorySelected:y}))}(e,t,n,i,o,v.Y)}(e,n,0===i,i===t.length-1,n.name)}))}(e),function(e){return(0,o.Ag)(e,"DisplayResetButton")}(t)&&r.createElement(L,R({},e)))}var F=function(e,t,n,r,i,o){this.elementId=e,this.index=t,this.value=n,this.name=r,this.openEndActive=i,this.translatedTexts=o},q=n(41744),U=function(){return U=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U.apply(this,arguments)};function H(e){var t,n,i,l=e.highlightedWords,m=e.highlightedWordsByCategories,f=e.onHighlight,p=e.showModal,h=e.mentions,b=e.onReset,v=e.onCancelModal,g=e.question,A=e.questionnaire,C=e.modalPositions,_=e.onOpenEndBlur,x=e.onOpenEndChange,w=e.showDeleteButton,T=e.onDeleteHighlight,E=e.selectedChoiceModels,S=e.isChoiceAlreadyHighlighted,k=e.duplicateWords,B=e.language,N=e.openEndValue,M=e.variables,D=e.toggleIsCategorySelected,I=e.handleMouseDown,O=e.handleMouseMove,P=e.selectedButtons,R=e.buttonsRef,L=e.modalRef,H=e.handleTouchStart,W=e.handleTouchMove,z=e.handleTouchEnd,j=g.variables[0].choiceList,G=(0,o.yP)(g,"HighlightFormat"),Q=(Q=[],M.forEach((function(e,t){Q[t]=(0,o.yP)(e,"Color")})),Q),K=d({category0Color:Q[0],category1Color:Q[1],category2Color:Q[2],category3Color:Q[3],category4Color:Q[4],category5Color:Q[5]}),Z=g.variables[0],$=function(e){var t=[];return e.forEach((function(e){var n=new F(e.elementId,e.index,e.name,e.name,!0,e.translatedTexts);t.push(n)})),t}(M),Y=(0,r.useState)(window.innerWidth)[0]<=768,X=(0,y.Z)(g,"ResponsePopUpTitle"),J=(0,y.Z)(g,"ResponsePopUpText"),ee=(0,y.Z)(g,"ResponsePopUpDelete");function te(e){var t="";return M.forEach((function(n){m[n.name].forEach((function(r){r.choiceModel&&r.choiceModel.value===e&&(t=function(e){switch(e.index){case 0:return K.selectedCategory0;case 1:return K.selectedCategory1;case 2:return K.selectedCategory2;case 3:return K.selectedCategory3;case 4:return K.selectedCategory4;default:return K.selectedCategory5}}(n))}))})),t}function ne(t){var n=t.choiceValue,i=t.choicePositionIndex,s=(0,r.useState)(!1),c=s[0],l=s[1],u=(0,r.useState)(!1),d=u[0],p=u[1];(0,r.useEffect)((function(){P.includes("text-highlight-choice-"+n)?p(!0):p(!1)}),[n]);var h=j.find((function(e){return e.value===n}));if(!h)return null;var b=(0,a.I)(h,"TEXT",B);if(!b)return null;!function(t){M.forEach((function(n){(function(t,n){var r;return null===(r=e.mentions[n])||void 0===r?void 0:r.some((function(e){return e.value===t.value}))})(t,n.name)&&!m[n.name].some((function(e){return t===e.choiceModel}))&&(m[n.name].push({highlightedWord:(0,a.I)(t,"TEXT",B),choiceModel:t}),N[t.value]=function(t,n){return e.mentions[n].filter((function(e){return e.value===t.value}))[0].openEnd}(t,n.name))}))}(h);var v="undefined"!=typeof window&&"ontouchstart"in window,g={cursor:"pointer",backgroundColor:c||d?"lightgrey":""};return M.length>0&&(0,o.Ag)(h,"Highlightable")?r.createElement("span",{key:n+"-"+i,id:"text-highlight-choice-"+n,"data-position":i,onClick:v?void 0:f,onKeyPress:v?void 0:f,onMouseDown:function(e){return I(e)},onMouseEnter:function(e){l(!0),O(e)},onMouseLeave:function(){return l(!1)},onTouchStart:H,role:"button",tabIndex:0,style:g,className:te(h.value)},b):r.createElement("span",{key:n+"-"+i,id:"text-highlight-choice-"+n,"data-position":i,role:"button",tabIndex:0,style:M.length>0?{}:{marginRight:5}},b)}return p&&(t=Y?{content:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"72%",height:w?"50%":"auto",border:"1px solid #DFDFDF",borderRadius:"20px"},overlay:{backgroundColor:"transparent"}}:{content:{top:(null==C?void 0:C.bottom)+"px",left:(null==C?void 0:C.left)+"px",right:"auto",bottom:"auto",transform:"",width:"fit-content",height:"auto",position:"relative",border:"1px solid #DFDFDF",bordeRadius:"20px",outline:"none"},overlay:{position:"absolute",top:0,left:0,right:0,bottom:0,marginRight:"-50%",width:"100%",height:"auto",backgroundColor:"transparent",overflow:"auto",zIndex:1e3}}),r.createElement(r.Fragment,null,r.createElement("div",{ref:R,className:null==G?K.withFormatDisableUserSelection:K.withoutFormatDisableUserSelection,onTouchMove:W,onTouchEnd:z},(i=0,null===(n=G)||""===n||void 0===n?j.map((function(e){return r.createElement(ne,{choiceValue:e.value,choicePositionIndex:i++})})):(0,c.ZP)(n,{replace:function(e){if(e.attribs&&"span"===e.name&&e.attribs.mappedchoicecode){var t=e.attribs.mappedchoicecode;return r.createElement(ne,{choiceValue:t,choicePositionIndex:i++})}}}))),p&&r.createElement(u(),{ref:L,isOpen:p,style:t,ariaHideApp:!1,shouldCloseOnOverlayClick:!0,onRequestClose:v},r.createElement("label",{style:{fontWeight:"bold",fontFamily:"Open Sans"},dangerouslySetInnerHTML:{__html:X}}),r.createElement(V,U({onReset:b,variable:Z,mentions:h,choices:$,highlightedWordsByCategories:m,selectedChoiceModels:E,highlightedWords:l,isChoiceAlreadyHighlighted:S,duplicateWords:k,openEndValue:N,toggleIsCategorySelected:D},(0,s.V)(e))),r.createElement("label",{style:{fontWeight:"bold",fontFamily:"Open Sans"},dangerouslySetInnerHTML:{__html:J}}),r.createElement(q.Z,{question:g,questionnaire:A,theme:void 0,onOpenEndBlur:_,value:function(){if(!E||0===E.length)return"";var e=N[E[0].value];if(void 0===e)return"";for(var t=1;t<E.length;t++)if(N[E[t].value]!==e)return"";return e}(),onOpenEndChange:function(e){return x(void 0,e)},language:B,style:{background:"#F3F3F3",borderRadius:2},isClickEventPropagation:!0,isMouseDownEventPropagation:!0}),r.createElement("div",{style:{flexDirection:"row",display:"flex",justifyContent:"center"}},w&&r.createElement("div",{role:"button",className:K.deleteButton,tabIndex:0,onClick:function(e){e.stopPropagation(),T()},dangerouslySetInnerHTML:{__html:ee}}))))}var W,z=n(40029),j=n(11110),G=(W=function(e,t){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},W(e,t)},function(e,t){function n(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)},K=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},Z=function(e){function t(t){var n,i=e.call(this,t)||this;return i.variables=i.props.question.variables.filter((function(e){return(0,o.Ag)(e,"Visible")})),i.choiceList=null===(n=i.variables[0])||void 0===n?void 0:n.choiceList,i.onReset=function(){return null},i.onCloseModal=function(){Object.entries(i.state.highlightedWords).forEach((function(e){e[0],e[1].pop()})),i.setState((function(e){return Q(Q({},e),{showModal:!1,isCategorySelected:!1})}))},i.onCancelModal=function(){if(i.state.isCategorySelected){var e=JSON.stringify(i.state.previousHighlightedWordsByCategories)!==JSON.stringify(i.state.highlightedWordsByCategories),t=JSON.stringify(i.state.previousOpenEndValue)!==JSON.stringify(i.state.openEndValue);(e||t)&&i.onSaveHighlight()}i.onCloseModal()},i.onDeleteHighlight=function(){var e=K(i.state.historyOfHighlighted),t=Q({},i.state.highlightedWordsByCategories),n=Q({},i.state.openEndValue);i.state.selectedChoiceModels.forEach((function(r){e=e.map((function(e){return{selectedButtons:e.selectedButtons,selectedChoiceModels:e.selectedChoiceModels.filter((function(e){return e.value!==r.value})),openEndValue:Object.keys(e.openEndValue).reduce((function(t,n){return n!==r.value&&(t[n]=e.openEndValue[n]),t}),{})}})).filter((function(e){return 0!==e.selectedChoiceModels.length})),Object.entries(t).forEach((function(e){var n=e[0],o=e[1].findIndex((function(e){return r===e.choiceModel}));if(i.props.mentions[n]){var a=i.props.mentions[n].findIndex((function(e){return r.value===e.value}));a>-1&&i.props.mentions[n].splice(a,1)}o>-1&&t[n].splice(o,1)})),delete n[r.value]})),i.setState({historyOfHighlighted:e,highlightedWordsByCategories:t,openEndValue:n,isDeleting:!0},(function(){i.onSaveHighlight(),i.setState({isDeleting:!1})}))},i.toggleIsCategorySelected=function(e,t){i.setState({isCategorySelected:e})},i.getWordPosition=function(e){var t=e.getAttribute("data-position");if(!t)return null;var n=parseInt(t,10);return isNaN(n)?null:n},i.handleTouchStart=function(e){e.preventDefault();var t=e.touches[0],n=document.elementFromPoint(t.clientX,t.clientY);n instanceof HTMLSpanElement&&(n.setAttribute("data-start-index",String(i.getWordPosition(n))),n.setAttribute("data-selected","true"),n.style.backgroundColor="lightgrey")},i.handleTouchMove=function(e){var t=e.touches[0],n=document.elementFromPoint(t.clientX,t.clientY);if(n instanceof HTMLSpanElement){e.preventDefault();var r=i.getWordPosition(n),a=Array.from(i.state.buttonsRef.current.querySelectorAll("[data-position]")),s=i.state.buttonsRef.current.querySelector("[data-start-index]"),c=s?Number(s.getAttribute("data-start-index")):null;if(null!==c)for(var l=Math.min(r,c),u=Math.max(r,c),m=function(e){var t=i.getWordPosition(a[e]);if(t>=l&&t<=u){a[e].setAttribute("data-selected","true");var n=a[e].id.split("-")[3],r=i.choiceList.find((function(e){return e.value===n}));(0,o.Ag)(r,"Highlightable")&&(a[e].style.backgroundColor="lightgrey")}else a[e].removeAttribute("data-selected"),a[e].style.backgroundColor=""},d=0;d<a.length;d++)m(d)}},i.handleTouchEnd=function(e){e.preventDefault();var t=Array.from(i.state.buttonsRef.current.querySelectorAll("[data-position]")),n=t.filter((function(e){return e.hasAttribute("data-selected")})),r=n.map((function(e){return i.getWordPosition(e)})),o=Math.max.apply(Math,r);i.setState({isMouseDown:!1,startButtonIndex:null,finalButtonIndex:o,selectedButtons:n.map((function(e){return e.id}))},(function(){n.length>0&&setTimeout((function(){i.onHighlight()}),100)})),t.forEach((function(e){return e.style.backgroundColor=""})),t.forEach((function(e){return e.removeAttribute("data-selected")}));var a=i.state.buttonsRef.current.querySelector("[data-start-index]");a&&a.removeAttribute("data-start-index")},i.handleMouseDown=function(e){var t=e.target;i.setState({isMouseDown:!0,startButtonIndex:i.getWordPosition(t),finalButtonIndex:i.getWordPosition(t),selectedButtons:[t.id]})},i.handleMouseMove=function(e){if(i.state.isMouseDown){var t=e.target,n=i.getWordPosition(t),r={start:Math.min(i.state.startButtonIndex,n),end:Math.max(i.state.startButtonIndex,n)},o=i.getButtonsInRange(r.start,r.end);i.setState({selectedButtons:o,finalButtonIndex:n})}},i.handleMouseUp=function(){i.setState({isMouseDown:!1}),i.setState({startButtonIndex:null}),i.state.selectedButtons.length>0&&i.onHighlight()},i.getButtonsInRange=function(e,t){for(var n=[],r=i.state.buttonsRef.current.querySelectorAll("[data-position]"),o=0;o<r.length;o++){var a=r[o],s=parseInt(a.getAttribute("data-position")||"");!isNaN(s)&&s>=e&&s<=t&&n.push(r[o].id)}return n},i.handleOutsideButtonsClick=function(e){var t=e.target;t&&(t.id.startsWith("text-highlight-choice-")||i.setState({selectedButtons:[]}))},i.checkIfSubSelectionByMentions=function(){var e=i.state.selectedChoiceModels.map((function(e){return e.value}));return Object.values(i.props.mentions).some((function(t){return e.every((function(e){return t.some((function(t){return t.value===e}))}))}))},i.onHighlight=function(){if(!i.state.showModal){var e=[],t=i.state.selectedButtons.find((function(e){return document.getElementById(e).getAttribute("data-position")===i.state.finalButtonIndex.toString()}));void 0!==i.state.selectedChoiceModels&&i.setState({selectedChoiceModels:[]}),Object.entries(i.state.selectedButtons).forEach((function(t){t[0];var n=t[1].split("-")[3];i.state.highlightedWords[n].splice(0);var r=i.choiceList.find((function(e){return e.value===n}));if((0,o.Ag)(r,"Highlightable")){i.state.selectedChoiceModels.push(r);var s=i.choiceList.every((function(e){return!(0,o.Ag)(e,"Highlightable")&&!(0,o.Ag)(e,"IsGroup")})),c=(0,a.I)(r,"TEXT",i.props.language),l=i.isChoiceAlreadyHighlighted(r,void 0);e.push(l),l||!(0,o.Ag)(r,"Highlightable")&&!s||i.state.highlightedWords[r.value].push(c)}}));var n=i.state.historyOfHighlighted.some((function(e){var t=e.selectedChoiceModels;return i.state.selectedChoiceModels.length<=t.length&&i.state.selectedChoiceModels.every((function(e){return t.includes(e)}))}));i.setState({showDeleteButton:e.includes(!0),showModal:!0,modalPositions:i.state.buttonsRef.current.querySelector("#"+t).getBoundingClientRect(),isCategorySelected:n||i.checkIfSubSelectionByMentions()})}},i.getMatrixIdByChoiceValue=function(e){var t=i.state.historyOfHighlighted.findIndex((function(t){return t.selectedChoiceModels.some((function(t){return t.value===e}))})),n=i.state.historyOfHighlighted[t].openEndValue[e];return void 0===n&&(n=null),[t+1,n]},i.removeMentionAcrossMatrices=function(e,t,n){for(var r=1;r<n;r++)i.setMentions(i.props,e,(function(e){return e.pull(t)}),r,!0)},i.setChoicesAsMentions=function(e,t){var n=t.map((function(e){return e.value}));n.length&&n.forEach((function(t){var n=i.state.openEndValue[t];i.setMentions(i.props,e.name,(function(e){return e.pull(t).add(t,n)}),void 0,!0)}))},i.saveCurrentHighlight=function(){Object.entries(i.state.highlightedWordsByCategories).forEach((function(e){var t=e[0],n=e[1],r=i.props.question.variables.find((function(e){return e.name===t}));if(n.length){var o=n.filter((function(e){return void 0!==e.choiceModel})).flatMap((function(e){return e.choiceModel}));o.length?i.setChoicesAsMentions(r,o):i.setMentions(i.props,r.name,(function(e){return e.clear()}))}}))},i.onSaveHighlight=function(){i.onCloseModal(),Object.entries(i.state.highlightedWords).forEach((function(e){e[0],e[1].splice(0)}));var e=JSON.parse(JSON.stringify(i.state.highlightedWordsByCategories)),t=JSON.parse(JSON.stringify(i.state.openEndValue));if(i.state.isDeleting)i.saveCurrentHighlight();else{var n=K(i.state.historyOfHighlighted);i.state.selectedChoiceModels.forEach((function(e){n=n.map((function(t){return{selectedButtons:t.selectedButtons,selectedChoiceModels:t.selectedChoiceModels.filter((function(t){return t.value!==e.value})),openEndValue:Object.keys(t.openEndValue).reduce((function(n,r){return r!==e.value&&(n[r]=t.openEndValue[r]),n}),{})}})).filter((function(e){return 0!==e.selectedChoiceModels.length}))}));var r={};i.state.selectedChoiceModels.forEach((function(e){var t=e.value,n=i.state.openEndValue[t];void 0!==n&&(r[t]=n)}));var o={selectedButtons:K(i.state.selectedButtons),selectedChoiceModels:K(i.state.selectedChoiceModels),openEndValue:Q({},r)},a=K(o.selectedButtons),s=K(o.selectedChoiceModels),c=Q({},o.openEndValue);i.setState((function(){return{selectedChoiceModels:[],historyOfHighlighted:K(n,[{selectedButtons:a,selectedChoiceModels:s,openEndValue:c}]),previousHighlightedWordsByCategories:e,previousOpenEndValue:t}}),(function(){i.saveCurrentHighlight()}))}},i.getNumberOfHighlightedChoices=function(){return Object.values(i.props.mentions).reduce((function(e,t){return e+t.length}),0)},i.onOpenEndChange=function(e,t){var n=t.target.value;i.state.isCategorySelected&&Object.entries(i.state.selectedChoiceModels).forEach((function(t){t[0];var r=t[1];i.setState((function(t){var o;return Q(Q({},t),{openEndValue:Q(Q({},t.openEndValue),(o={},o[r.value]=i.truncateOpenEnd(e,n),o))})}))}))},i.onOpenEndBlur=function(e){return null},i.isChoiceAlreadyHighlighted=function(e,t){var n;return n=void 0!==t?i.state.highlightedWordsByCategories[t].some((function(t){return t.choiceModel===e})):Object.entries(i.state.highlightedWordsByCategories).some((function(t){return t[0],t[1].some((function(t){return t.choiceModel===e}))})),n},i.state={highlightedWords:i.generateHighlightedWords(),showModal:!1,selectedChoiceModels:[],highlightedWordsByCategories:i.generateHighlightedWordsByCategories(),modalPositions:void 0,showDeleteButton:!1,duplicateWords:[],openEndValue:{},isCategorySelected:!1,isMouseDown:!1,startButtonIndex:null,finalButtonIndex:null,selectedButtons:[],historyOfHighlighted:[],isDeleting:!1,buttonsRef:r.createRef(),modalRef:r.createRef(),previousHighlightedWordsByCategories:{},previousOpenEndValue:{}},i}return G(t,e),t.prototype.renderQuestion=function(){return r.createElement(H,Q({highlightedWordsByCategories:this.state.highlightedWordsByCategories},(0,s.V)(this.props),{onHighlight:this.onHighlight,highlightedWords:this.state.highlightedWords,showModal:this.state.showModal,mentions:this.props.mentions,onReset:this.onReset,onCancelModal:this.onCancelModal,modalPositions:this.state.modalPositions,onOpenEndBlur:this.onOpenEndBlur,onOpenEndChange:this.onOpenEndChange,showDeleteButton:this.state.showDeleteButton,onDeleteHighlight:this.onDeleteHighlight,selectedChoiceModels:this.state.selectedChoiceModels,isChoiceAlreadyHighlighted:this.isChoiceAlreadyHighlighted,duplicateWords:this.state.duplicateWords,openEndValue:this.state.openEndValue,variables:this.variables,toggleIsCategorySelected:this.toggleIsCategorySelected,handleMouseDown:this.handleMouseDown,handleMouseMove:this.handleMouseMove,selectedButtons:this.state.selectedButtons,buttonsRef:this.state.buttonsRef,modalRef:this.state.modalRef,handleTouchStart:this.handleTouchStart,handleTouchMove:this.handleTouchMove,handleTouchEnd:this.handleTouchEnd}))},t.prototype.validate=function(){var e=this.props,t=e.question,n=e.useClientValidation,r=e.questionnaire;if((0,j.NA)(t.type,n))return(new i.O).build();var o=t.variables[0],a=this.isAnswerRequired(r,t),s=this.getNumberOfHighlightedChoices();if(a&&0===s)return(new i.O).fail(o.name,"IncompleteAnswer").build();if(s>0){var c=this.minValue(),l=this.maxValue();if(null!==c&&c>0&&s<c)return(new i.O).fail(o.name,"InvalidChoicesMin",{min:String(c)}).build();if(null!==l&&l>0&&s>l)return(new i.O).fail(o.name,"InvalidChoicesMax",{max:String(l)}).build()}return(new i.O).build()},t.prototype.generateHighlightedWordsByCategories=function(){var e={};return this.variables.forEach((function(t){e[t.name]=[{highlightedWord:new RegExp("^$"),choiceModel:void 0}]})),e},t.prototype.generateHighlightedWords=function(){var e={};return this.choiceList&&this.choiceList.forEach((function(t){e[t.value]=[new RegExp("^$")]})),e},t.prototype.componentDidMount=function(){var e=this.props.question;e!==this.renderedQuestion&&this.questionFirstRender(this.renderedQuestion=e,this.props),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("mousedown",this.handleOutsideButtonsClick),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1})},t.prototype.componentWillUnmount=function(){var e=this.props.question;this.finalizeQuestion(e,this.props),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("mousedown",this.handleOutsideButtonsClick),window.removeEventListener("touchmove",this.handleTouchMove)},t}(z.X)},5259:function(e,t,n){"use strict";n.d(t,{T:function(){return w}});var r,i,o,a=n(67294),s=n(17126),c=n(12291),l=n(16856),u=n(40029),m=n(95457);!function(e){e[e.Left=0]="Left",e[e.Center=1]="Center",e[e.Right=2]="Right"}(r||(r={})),function(e){e[e.CountUp=0]="CountUp",e[e.CountDown=1]="CountDown"}(i||(i={})),function(e){e[e.None=0]="None",e[e.EnableNavigation=1]="EnableNavigation",e[e.AutoAdvance=2]="AutoAdvance",e[e.DisplayMessage=3]="DisplayMessage",e[e.TerminateSurvey=4]="TerminateSurvey"}(o||(o={}));var d,f=n(67792),p=n(68088),h=n(78632),b=n(50647),v=n(1509),g=n(5498),A=n(88507),y=n(17837),C=(d=function(e,t){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},d(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),_=function(){return _=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},_.apply(this,arguments)},x=function(e){function t(t){var n=e.call(this,t)||this;return n.clickCount=0,n.moved=!1,n.totalTimeVar=function(e){return(0,m.yP)(e.question,"TotalTimeVariableName")},n.firstClickVar=function(e){return(0,m.yP)(e.question,"FirstClickVariableName")},n.lastClickVar=function(e){return(0,m.yP)(e.question,"LastClickVariableName")},n.clickCountVar=function(e){return(0,m.yP)(e.question,"ClickCountVariableName")},n.dateFormat=function(e){return(0,m.yP)(e.question,"TimeFormat","hh:mm:ss")},n.secondToAction=function(e){return(0,m.Yu)(e.question,"SecondToAction",0)},n.timerType=function(e){return(0,m.Yu)(e.question,"Type")},n.timerAction=function(e){return(0,m.Yu)(e.question,"Action")},n.actionMessage=function(e){return(0,v.I)(e.question,"ActionMessage",e.language)},n.terminateSurveyActionUrl=function(e){return(0,v.I)(e.question,"TerminateSurveyActionURL",e.language)},n.terminateSurveyActionDisposition=function(e){return(0,m.Wd)(e.question,f.$,"TerminateSurveyActionDisposition")},n.terminateSurveyActionMessage=function(e){var t=(0,v.I)(e.question,"TerminateSurveyActionMessage",e.language);if(!(0,l.xb)(t)){var n=(0,A.Bk)().getState().interview;return y.A.evaluateRecalls(n,t)}return null},n.setTimerVariables=function(e){n.setMentions(n.props,n.totalTimeVar(n.props),(function(e){return e.set(n.state.totalTime)})),n.setMentions(n.props,n.clickCountVar(n.props),(function(e){return e.set(n.state.clickCount)})),n.setMentions(n.props,n.firstClickVar(n.props),(function(e){return e.set(n.state.firstClick)})),n.setMentions(n.props,n.lastClickVar(n.props),(function(e){return e.set(n.state.lastClick)}))},n.onWindowClick=function(e){var t=document.getElementsByClassName("navigationBar")[0];null!=t&&t.contains(e.target)||(void 0===n.firstClickTime&&(n.firstClickTime=new Date),n.lastClickTime=new Date,n.clickCount++,n.setState((function(e,t){var r=_({},e);return r.clickCount=n.clicks(),r.firstClick=n.firstClick(),r.lastClick=n.lastClick(),r})))},n.onSecondTimer=function(){n.setState((function(e,t){var r=_({},e);return r.totalTime=n.totalTime(),r.firstClick=n.firstClick(),r.lastClick=n.lastClick(),r})),n.updateDisplay()},n.onActionTimeout=function(){switch(n.timerAction(n.props)){case o.AutoAdvance:n.props.onNavigation&&n.props.onNavigation(b.N.Next),window.setTimeout(window.clearInterval,200,n.secondTimerId);break;case o.DisplayMessage:n.setState({displayMessage:a.createElement(p.n,{text:n.actionMessage(n.props)})});break;case o.EnableNavigation:n.setState({navigationEnabled:!0},(function(){return n.props.dispatch((0,g.Ru)(!0))}));break;case o.TerminateSurvey:var e=n.props.question,t=e.id,r=e.settings,i=n.terminateSurveyActionDisposition(n.props),s=n.terminateSurveyActionUrl(n.props),c=n.terminateSurveyActionMessage(n.props),l=Number(r.TerminateSurveyAction);n.props.dispatch((0,g.mI)(i,{forcedQuit:!0,questionId:t,redirectUrl:s,message:c,terminationSurveyAction:l}))}},n.totalTime=function(){return n.dateDiffInSeconds([new Date,n.startTime])},n.firstClick=function(){return n.dateDiffInSeconds([n.firstClickTime,n.startTime])},n.lastClick=function(){return n.dateDiffInSeconds([n.lastClickTime,n.startTime])},n.dateDiffInSeconds=function(e){var t=e.map((function(e){return s.ou.fromJSDate(e)})),n=t[0],r=t[1];return String(Math.trunc(n.diff(r,"seconds").seconds))},n.clicks=function(){return String(n.clickCount||"")},n.state={displayText:"",totalTime:"0",clickCount:"0",firstClick:"0",lastClick:"0",navigationEnabled:!0},n}return C(t,e),t.prototype.initializeQuestion=function(t,n){e.prototype.initializeQuestion.call(this,t,n),window.addEventListener("click",this.onWindowClick,!0),this.moved=!1,this.startTime=new Date,this.onSecondTimer(),this.secondToAction(n)>0&&(this.actionTimerId=window.setTimeout(this.onActionTimeout,1e3*this.secondToAction(n))),this.secondTimerId=window.setInterval(this.onSecondTimer,1e3),this.timerAction(n)===o.EnableNavigation?(this.setState({navigationEnabled:!1}),n.dispatch((0,g.Ru)(!1))):this.setState({navigationEnabled:!0})},t.prototype.componentDidUpdate=function(){this.props.navigationEnabled&&!this.state.navigationEnabled&&this.props.dispatch((0,g.Ru)(!1))},t.prototype.finalizeQuestion=function(t,n){e.prototype.finalizeQuestion.call(this,t,n),window.removeEventListener("click",this.onWindowClick,!0),window.clearTimeout(this.actionTimerId),window.clearInterval(this.secondTimerId),this.timerAction(n)===o.EnableNavigation&&n.dispatch((0,g.Ru)(!0))},t.prototype.updateDisplay=function(){var e=this,t=s.ou.fromJSDate(this.startTime),n=s.ou.fromJSDate(new Date).diff(t),r=this.dateFormat(this.props).replace("hh","HH");this.setState((function(t,o){var a=_({},t);if(e.timerType(e.props)===i.CountDown){var c=Math.max(1e3*e.secondToAction(e.props)-n.milliseconds,0);a.displayText=s.ou.fromMillis(c).toUTC().toFormat(r)}else a.displayText=s.ou.fromMillis(n.milliseconds).toUTC().toFormat(r);return a}))},t.prototype.validate=function(e){return this.setTimerVariables(this.props),(new h.O).build()},t.prototype.renderText=function(e){return(0,m.Z9)(e,"Show")&&(0,m.Ag)(e,"Show")?a.createElement(a.Fragment,null,a.createElement("div",{className:"timerLabel"},a.createElement(p.n,{text:(0,v.I)(e,"Label",this.props.language)})),a.createElement("div",{className:"timerTime"},this.state.displayText)):null},t.prototype.renderQuestion=function(e){var t=(0,m.Yu)(e,"Location",r.Left),n="center";return t===r.Left&&(n="left"),t===r.Right&&(n="right"),a.createElement("div",{className:"timerDisplay",style:{textAlign:n}},this.renderText(e),a.createElement("div",{className:"timerMessage"},this.state.displayMessage))},t}(u.X),w=(0,c.$j)((function(e){return{navigationEnabled:!e.interview.navigation.disabled}}))(x)},1099:function(e,t,n){"use strict";n.d(t,{G:function(){return u}});var r,i=n(67294),o=n(40029),a=n(53840),s=n(47103),c=n(78632),l=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.initializeQuestion=function(e,t){},t.prototype.renderQuestion=function(e){return i.createElement(a.Z,{error:"No renderer for question type "+s.ce[e.type]})},t.prototype.validate=function(e){return(new c.O).build()},t}(o.X)},49054:function(e,t,n){"use strict";n.d(t,{H:function(){return Ie}});var r=n(67294),i=n(12291),o=n(90804),a=n(92907),s=n(96168),c=n(25371),l=(0,c.QM)({loading:{color:"#919191",textAlign:"center",padding:[[12,0]],lineHeight:"20px",fontSize:"11px",fontWeight:700}});function u(e){var t=e.duration,n=void 0===t?1e3:t,i=e.text,a=l({}),s=r.useState(0),c=s[0],u=s[1],m=(0,o.$G)().t;return r.useEffect((function(){var e=window.setInterval((function(){return u((function(e){return(e+1)%3}))}),n/3);return function(){return window.clearInterval(e)}}),[n]),r.createElement("div",{className:a.loading},i||m("common.loading"),r.createElement("span",{style:{display:"inline-block",width:"2ch",textAlign:"left",marginRight:"-2ch"}},".".repeat(c+1)))}var m=n(53894),d=n(14890),f=n(47658),p=n(5498),h=n(39819),b=function(e){return e.interview.navigation.currentPage};function v(e){return t=this,n=void 0,i=function(){var t,n;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(r){return t=function(e){return(0,d.MT)(h.Q,e,(0,d.md)(m.Z,f.D))}(e),n=function(e){var t,n,r=[];do{var i=b(e.getState());if(e.dispatch((0,p.b$)()),n&&r.push(n),t=n,(n=b(e.getState()))===i)break;if(r.length>=20)return r}while(t!==n);return r}(t),[2,n]}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}var g=function(e){return e.interview.navigation.currentPage};function A(e,t){var n=(t||{}).center,i=r.useRef();r.useEffect((function(){var t,r=null===(t=e.current)||void 0===t?void 0:t.querySelector("*[data-active=true]");r&&("function"==typeof r.scrollIntoView&&r.scrollIntoView({block:n?"center":void 0}),i.current=r)}),[]),r.useEffect((function(){var t,r=null===(t=e.current)||void 0===t?void 0:t.querySelector("*[data-active=true]");r&&r!==i.current&&("function"==typeof r.scrollIntoView&&r.scrollIntoView({behavior:i.current?"smooth":"auto",block:n?"center":void 0}),i.current=r)}))}var y=n(96900),C=function(e){var t=e.selected,n="#117297";return e.simulated&&(n="#70bbd8"),e.active&&(n="#00A9E8"),t?(0,y._j)(n,.7):n},_=(0,c.QM)({blockStart:{margin:[[12,0]],backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///9/f3////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAAAQABAAACAlQBADs=);",backgroundPosition:"center center",backgroundRepeat:"repeat-x",textAlign:"center","& span":{display:"inline-block",position:"relative",padding:[[0,15]],top:-1,lineHeight:"20px",fontSize:"13px",fontWeight:900,maxWidth:"60%",background:"white"}},pageBreak:{margin:[[12,0]],backgroundImage:"url(data:image/gif;base64,R0lGODlhBQABAJEAAAAAAP///9/f3////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAADACwAAAAABQABAAACA5Q3BQA7)",backgroundPosition:"center center",backgroundRepeat:"repeat-x",textAlign:"center","& span":{color:"#919191",display:"inline-block",position:"relative",padding:[[0,15]],top:-1,lineHeight:"20px",fontSize:"11px",fontWeight:700,maxWidth:"60%",background:"white"}},flowQuestionContainer:{position:"relative",margin:[[6,0]],paddingRight:35},flowQuestion:{composes:"flow-question",display:"inline-block",background:C,color:"white",fontSize:"13px",padding:[[4,12]],borderRadius:5,wordBreak:"break-word",transition:"background 200ms, color 200ms","& .bg-color":{questionColor:C,transition:"color 200ms"}},flowQuestionIcon:{marginRight:12,fontSize:"14px"},flowQuestionActions:{position:"absolute",top:0,right:-4},flowQuestionAction:{padding:4,paddingLeft:2,fontSize:"14px",userSelect:"none"},flowQuestionActionButton:{cursor:"pointer"},flowQuestionActionActive:{color:"#00A9E8"},flowQuestionLogic:{borderRadius:5,background:function(e){return(0,y._j)(C(e),.5)},transition:"background 200ms, color 200ms",padding:[[4,8]],margin:[[4,0]],fontSize:"10px",color:function(e){return(0,y.Q0)(C(e),3)}},flowQuestionLogicIcon:{marginRight:6},flowPage:{position:"relative"},flowPageSelectArea:{position:"absolute",top:0,left:0,right:40,bottom:0,cursor:"pointer",userSelect:"none"},questionConnector:{position:"absolute",bottom:"100%",left:18,width:4,height:6,background:C,transition:"background 200ms"}}),x=n(94184),w=n.n(x),T=n(47103);function E(e){switch(e.type){case T.ce.Description:return r.createElement(a.G,{fixedWidth:!0,icon:["far","align-left"]});case T.ce.RadioButton:return r.createElement(a.G,{fixedWidth:!0,icon:["far","dot-circle"]});case T.ce.CheckBox:return r.createElement(a.G,{fixedWidth:!0,icon:["far","check-square"]});case T.ce.OpenEndAnswer:return r.createElement(a.G,{fixedWidth:!0,icon:["far","comment-alt-lines"]});case T.ce.TextAnswer:case T.ce.AutoComplete:return r.createElement("span",{className:"fa-layers fa-fw"},r.createElement(a.G,{icon:["far","rectangle-landscape"]}),r.createElement(a.G,{icon:["far","i-cursor"],transform:"shrink-8 right-3"}));case T.ce.NumericAnswer:return r.createElement("span",{className:"fa-layers fa-fw"},r.createElement("span",{className:"fa-layers-text",style:{fontWeight:900,fontSize:"0.8em",fontFamily:"monospace",transform:"translate(-90%, -53%)"}},"0"),r.createElement(a.G,{icon:["far","rectangle-landscape"]}),r.createElement(a.G,{icon:["far","i-cursor"],transform:"shrink-8 right-3"}));case T.ce.NumericRanking:return r.createElement(a.G,{fixedWidth:!0,icon:["far","sort-numeric-down"]});case T.ce.DateTimeAnswer:return r.createElement(a.G,{fixedWidth:!0,icon:["far","calendar"]});case T.ce.DragDropRanking:return r.createElement("span",{className:"fa-layers fa-fw"},r.createElement(a.G,{icon:["far","rectangle-wide"],transform:"shrink-5 rotate-90 left-4"}),r.createElement(a.G,{icon:["far","rectangle-wide"],transform:"shrink-5 rotate-90 right-4"}),r.createElement(a.G,{icon:["fas","square"],transform:"shrink-7",className:"bg-color"}),r.createElement(a.G,{icon:["far","square"],transform:"shrink-7"}));case T.ce.CardSort:return r.createElement("span",{className:"fa-layers fa-fw"},r.createElement(a.G,{icon:["far","square"],transform:"shrink-6 left-2"}),r.createElement(a.G,{icon:["fas","square"],transform:"shrink-6",className:"bg-color"}),r.createElement(a.G,{icon:["far","square"],transform:"shrink-6"}),r.createElement(a.G,{icon:["fas","square"],transform:"shrink-6 right-2",className:"bg-color"}),r.createElement(a.G,{icon:["far","square"],transform:"shrink-6 right-2"}));case T.ce.DropDownList:case T.ce.DrillDown:return r.createElement("span",{className:"fa-layers fa-fw"},r.createElement(a.G,{icon:["far","rectangle-landscape"]}),r.createElement(a.G,{icon:["fas","caret-down"],transform:"shrink-5 right-2"}));case T.ce.EmailAddressAnswer:case T.ce.RespondentEmail:return r.createElement(a.G,{fixedWidth:!0,icon:["far","envelope"]});case T.ce.HybridGrid:case T.ce.ChoiceGrid:case T.ce.RunningTotal:case T.ce.LookupTable:return r.createElement(a.G,{fixedWidth:!0,icon:["far","table"]});case T.ce.ImageSelector:case T.ce.ImageChoiceGrid:return r.createElement(a.G,{fixedWidth:!0,icon:["far","image-polaroid"]});case T.ce.ImageAreaSelector:case T.ce.ImageAreaEvaluator:return r.createElement(a.G,{fixedWidth:!0,icon:["far","image"]});case T.ce.RespondentPhone:return r.createElement(a.G,{fixedWidth:!0,icon:["far","phone"]});case T.ce.RespondentLanguage:return r.createElement(a.G,{fixedWidth:!0,icon:["far","language"]});case T.ce.RespondentTimeZone:return r.createElement(a.G,{fixedWidth:!0,icon:["far","globe-europe"]});case T.ce.RespondentMetaData:return r.createElement(a.G,{fixedWidth:!0,icon:["far","person-sign"]});case T.ce.Slider:return r.createElement(a.G,{fixedWidth:!0,icon:["far","sliders-h"]});case T.ce.StarRatingGrid:case T.ce.NetPromoter:return r.createElement(a.G,{fixedWidth:!0,icon:["far","star"]});case T.ce.FileUpload:return r.createElement(a.G,{fixedWidth:!0,icon:["far","upload"]});case T.ce.Timer:return r.createElement(a.G,{fixedWidth:!0,icon:["far","stopwatch"]});case T.ce.CustomQuestion:return r.createElement(a.G,{fixedWidth:!0,icon:["far","pencil"]});default:return r.createElement(a.G,{fixedWidth:!0,icon:["far","question"]})}}var S=n(22748),k=n(30037),B=n(52308),N=n(67792),M=n(32086),D=n(64062),I=n(11325);function O(e){switch(e.type){case S.w.BranchTo:return r.createElement(a.G,{fixedWidth:!0,icon:["far","code-branch"]});case S.w.ComputeVariable:case S.w.SetVariableValue:return r.createElement(a.G,{fixedWidth:!0,icon:["far","function"]});case S.w.ExitSurvey:return r.createElement(a.G,{fixedWidth:!0,icon:["far","sign-out"]});case S.w.MobileAudioRecording:return r.createElement(a.G,{fixedWidth:!0,icon:["far","microphone"]});case S.w.Selection:return r.createElement(a.G,{fixedWidth:!0,icon:["far","ballot-check"]});case S.w.SendEmail:return r.createElement(a.G,{fixedWidth:!0,icon:["far","envelope"]});case S.w.SetLoopRow:return r.createElement(a.G,{fixedWidth:!0,icon:["far","undo-alt"]});case S.w.SetPanelistData:return r.createElement(a.G,{fixedWidth:!0,icon:["far","person-sign"]});default:return null}}var P=n(7171);function R(e){var t=e.question,n=e.firstOfPage,i=e.active,s=e.simulated,c=e.selected,l=e.completed,u=(0,o.$G)().t,m=t.name,d=t.type,f=t.preLoadActions,p=t.postAnswerActions,h=r.useState(!1),b=h[0],v=h[1],g=r.useRef(),A=(0,M.O)(),y=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(f,p),C=_({active:i,simulated:s,selected:c,completed:l});return r.createElement("div",{ref:g,className:C.flowQuestionContainer},r.createElement("div",{className:C.flowQuestion},r.createElement("span",{className:C.flowQuestionIcon},r.createElement(E,{type:d})),r.createElement("span",null,m),b&&y.map((function(e){return r.createElement("div",{className:C.flowQuestionLogic,key:e.name},r.createElement("span",{className:C.flowQuestionLogicIcon},r.createElement(O,{type:e.type})),function(e){if(!e.condition)return"";var t=A((0,P.ku)(e.condition)).asBoolean();return r.createElement(r.Fragment,null,function(e){switch(e.type){case S.w.ExitSurvey:var t=(0,k.qA)(e,N.$,B.u.Status);return u("debug.panels.flow.exit",{code:N.$[t]});case S.w.BranchTo:var n=(0,k.e3)(e,B.u.Question),r=(0,k.nB)(e,B.u.AutoClean),i=(0,k.qA)(e,N.$,B.u.Status),o=A((function(t,n){return(0,D.n)(e,n().interview)}));return i>0&&!(0,I.Ew)(o)?u("debug.panels.flow.branchToExitUrl",{url:o,code:N.$[i]}):u("debug.panels.flow.branchTo",{destination:n,context:r&&"autoclean"});case S.w.ComputeVariable:var a=(0,k.e3)(e,B.u.CalculatedVariableName),s=(0,k.e3)(e,B.u.Value);return u("debug.panels.flow.computeVariable",{variable:a,value:s});case S.w.SetVariableValue:a=(0,k.e3)(e,B.u.Variable);var c=(0,k.e3)(e,B.u.MatrixIndex);return s=(0,k.e3)(e,B.u.Value),u("debug.panels.flow.setVariable",{variable:a,value:s,matrix:c,context:(0,I.Ew)(c)&&"row"});case S.w.Selection:return u("debug.panels.flow.selection");case S.w.SetLoopRow:var l=(0,k.e3)(e,B.u.Block);return s=(0,k.e3)(e,B.u.Value),u("debug.panels.flow.setRow",{block:l,value:s});case S.w.MobileAudioRecording:var m=(0,k.nB)(e,B.u.Mode,"Start");return u("debug.panels.flow.audioRecording",{context:m?"start":"stop"});case S.w.SendEmail:return u("debug.panels.flow.sendEmail");case S.w.SetPanelistData:return u("debug.panels.flow.setPanelistData");default:return null}}(e)," "+(t?"":u("debug.panels.flow.conditionNotMet")))}(e))}))),r.createElement("div",{className:C.flowQuestionActions},r.createElement("span",{className:w()(C.flowQuestionAction,C.flowQuestionActionButton,b&&C.flowQuestionActionActive),"data-tip":u("debug.panels.flow.toggleLogic"),onClick:function(){return v((function(e){return!e}))}},y.length>0&&r.createElement("span",{className:"fa-layers"},r.createElement(a.G,{icon:["fas","circle"]}),r.createElement("span",{className:"fa-layers-text",style:{fontSize:"0.7em",transform:"translate(-51%, -53%)",color:"white"}},y.length))),l&&r.createElement("span",{className:C.flowQuestionAction,"data-tip":u("debug.panels.flow.completed")},r.createElement(a.G,{icon:["far","check-circle"]}))),!n&&r.createElement("div",{className:C.questionConnector}))}function L(e){var t=e.page,n=e.showBlockName,o=e.isFirst,a=e.active,s=e.simulated,c=e.completed,l=_({}),u=(0,i.oR)(),m=(0,i.I0)(),d=(0,i.v9)((function(e){var n,r;return null===(r=null===(n=e.interview.navigation)||void 0===n?void 0:n.randomizedBlocks[t.blockIndex])||void 0===r?void 0:r.name})),f=r.useState(!1),h=f[0],b=f[1];return r.createElement(r.Fragment,null,r.createElement("div",{className:l.flowPage,"data-active":a||void 0},n&&r.createElement("div",{className:l.blockStart},r.createElement("span",null,d)),!o&&!n&&r.createElement("div",{className:l.pageBreak},r.createElement("span",null,"Page Break")),t.questions.map((function(e,t){return r.createElement(R,{question:e,firstOfPage:0===t,key:e.id,active:a,simulated:s,completed:c,selected:h})})),!a&&r.createElement("div",{className:l.flowPageSelectArea,onMouseOver:function(){return b(!0)},onMouseOut:function(){return b(!1)},onClick:function(){if(s&&m((0,p.Bf)({destination:t.questions[0].name,isPreviewNavigation:!0})),c){var e=u.getState().interview.navigation.history,n=e.indexOf(t);if(-1===n)return;for(var r=e.length-n,i=0;i<r;i++)m((0,p.BL)())}}})))}var V=(0,c.QM)({panelContainer:{height:"100%",display:"flex",flexDirection:"column"},title:{margin:0,marginBottom:10,fontSize:"15px",fontWeight:700,color:"#484848"},sectionTitle:{margin:0,marginTop:20,marginBottom:10,fontWeight:700,fontSize:"13px",color:"#484848"},search:{background:"#F3F3F3",position:"relative",padding:[[8,16]],marginBottom:16,borderRadius:30},searchIcon:{color:"#A2A2A2"},searchInput:{width:"100%",position:"absolute",top:0,left:0,bottom:0,right:0,border:0,background:"none",paddingLeft:48,paddingRight:16,fontSize:"13px",outline:"none"},scrollable:{flex:"1",overflowY:"scroll",overflowX:"hidden",paddingRight:16,scrollbarWidth:"18px",scrollbarColor:"red blue"}});function F(e){var t=e.title,n=e.searchable,i=e.search,o=e.setSearch,s=e.searchPlaceholder,c=e.containerRef,l=e.children,u=V({});return r.createElement("div",{className:u.panelContainer},r.createElement("h4",{className:u.title},t),n&&r.createElement("div",{className:u.search},r.createElement("span",{className:u.searchIcon},r.createElement(a.G,{icon:["fas","search"]})),r.createElement("input",{className:u.searchInput,value:i,onChange:function(e){return o(e.target.value)},type:"search",placeholder:s})),r.createElement("div",{className:u.scrollable,ref:c},l))}F.Section=function(e){var t=e.title,n=e.children,i=V({});return r.createElement(r.Fragment,null,r.createElement("h4",{className:i.sectionTitle},t),n)};var q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)};function U(){var e=r.useRef(),t=(0,i.v9)((function(e){var t;return null===(t=e.interview.navigation)||void 0===t?void 0:t.history}))||[],n=(0,i.v9)((function(e){var t;return null===(t=e.interview.navigation)||void 0===t?void 0:t.currentPage})),a=function(){var e=r.useState(!0),t=e[0],n=e[1],o=r.useState([]),a=o[0],s=o[1],c=(0,i.v9)(g),l=(0,i.oR)();return r.useEffect((function(){function e(e){var t=e.data,r=t.type,i=t.pages,o=t.error;o&&console.log(o),"done"===r&&s(i),n(!1)}if(s([]),"undefined"!=typeof Worker){n(!0);var t=new Worker("../simulator/worker.ts");return t.addEventListener("message",e),t.postMessage({type:"simulate",initialState:l.getState()}),function(){t.removeEventListener("message",e)}}v(l.getState()).catch((function(e){e&&console.log(e)})).then((function(e){s(e),n(!1)})),n(!1)}),[l,c]),{simulatedPages:a,simulating:t}}(),c=a.simulatedPages,l=a.simulating,m=(0,o.$G)().t;A(e);var d=-1,f=-1;function p(e,t){return void 0===t&&(t={}),e.map((function(e){if(!e)return null;var n=d!==e.blockIndex;return d=e.blockIndex,f+=1,r.createElement(L,q({key:f,page:e,isFirst:0===f,showBlockName:n},t))}))}return r.useEffect((function(){s.Z.rebuild()}),[t,n,c]),r.createElement(F,{title:m("debug.panels.flow.title"),containerRef:e},p(t,{completed:!0}),p([n],{active:!0}),p(c,{simulated:!0}),n&&l&&r.createElement(u,{text:m("debug.panels.flow.simulating")}))}var H=n(7863),W=n(16856),z=(0,c.QM)({variableContainer:{fontSize:"13px",fontFamily:"Open Sans",borderBottom:"1px solid #eee",padding:[[10,0]]},variablePanelHeader:{display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"flex-end"},variablePanelHeaderTitle:{marginRight:"auto"},variableValue:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-end"},variableName:{marginRight:"auto",wordBreak:"break-all"},variableDetails:{paddingRight:29,overflow:"hidden",boxSizing:"border-box"},variableInput:{width:"100%",background:"#333E5B",fontSize:"12px",outline:"none",color:"white",border:0,borderRadius:5,padding:[[6,10]],boxSizing:"border-box",resize:"none","&:active, &:focus":{color:"#F68A5A"}},variableInputSmall:{fontSize:"12px",width:100,outline:"none",border:0,background:"#333E5B",color:"white",textAlign:"right",padding:[[6,10]],marginLeft:5,marginRight:6,borderRadius:5,"&:active, &:focus":{color:"#F68A5A"}},variableText:{margin:[[5,0]],fontWeight:700,fontSize:"10px"},variableOpenEnd:{margin:[[5,0]],marginTop:10,fontWeight:700,fontSize:"10px"},variableDetailsIcon:{fontSize:"12px",padding:4,cursor:"pointer",userSelect:"none"},variableDetailsIconActive:{color:"#00A9E8"},variableTypeButton:{padding:[[0,10]],cursor:"pointer",marginRight:"auto"}}),j=n(47643),G=function(e,t){return Object.keys(e).filter((function(e){return e.toLowerCase().includes(t)}))};function Q(e){var t=e.variable,n=e.value,i=e.text,s=e.openEnd,c=e.type===j.x.System,l=r.useState(!1),u=l[0],m=l[1],d=(0,H.q_)({height:u?152:0,opacity:u?1:0}),f=z({isSystemVariable:c}),p=(0,o.$G)().t;return r.createElement("div",{className:f.variableContainer},r.createElement("div",{className:f.variableValue},r.createElement("span",{className:f.variableName},t),r.createElement("span",null,"="),r.createElement("input",{className:f.variableInputSmall,value:n,type:"text",readOnly:!0}),r.createElement("div",{className:f.variableDetailsIcon,onClick:function(){return m((function(e){return!e}))}},r.createElement(a.G,{fixedWidth:!0,icon:["far",u?"chevron-up":"chevron-down"]}))),r.createElement(H.q.div,{className:f.variableDetails,style:d},r.createElement("div",null,r.createElement("div",{className:f.variableText},p("debug.panels.variables.text")),r.createElement("input",{className:f.variableInput,value:i,type:"text",readOnly:!0})),r.createElement("div",null,r.createElement("div",{className:f.variableOpenEnd},p("debug.panels.variables.openEnd")),r.createElement("textarea",{className:f.variableInput,name:"variableOpenEnd",rows:4,readOnly:!0},s))))}function K(){var e=r.useRef(),t=r.useState(""),n=t[0],a=t[1],s=r.useState(!1)[0],c=n.toLowerCase(),l=(0,o.$G)().t,u=(0,i.v9)((function(e){return e.interview.variables.system})),m=(0,i.v9)((function(e){return e.interview.questionnaire.blocks})),d=(0,i.v9)((function(e){return e.interview.variables.mentionsByVariableName})),f=G(u,c).map((function(e){return r.createElement(Q,{key:e,variable:e,value:u[e].code,text:u[e].text,type:j.x.System})})),p=G(d,c),h=(0,W.VS)((0,W.VS)(m,"questions"),"variableNames").filter((function(e){return p.includes(e)})),b=(0,W.VS)(h,(function(e){return d[e].map((function(t){return r.createElement(Q,{key:e+" ("+t.index+")",variable:e+" ("+t.index+")",value:t.value,text:t.value,openEnd:t.openEnd})}))}));return r.createElement(F,{searchable:!0,search:n,setSearch:a,searchPlaceholder:l("debug.panels.variables.search"),containerRef:e,title:l("debug.panels.variables.title")},s&&f,b)}var Z=(0,c.QM)({question:{borderRadius:12,padding:[[4,16]],margin:[[2,0]],cursor:"pointer",fontSize:"13px","&:hover":{background:"#F3F3F3",color:"black"}},questionSelected:{background:"#00A9E8",color:"white","&:hover":{background:"#00A9E8",color:"white"}}});function $(){var e=r.useRef(),t=Z({}),n=(0,i.I0)(),a=(0,i.v9)((function(e){var t;return null===(t=e.interview.questionnaire)||void 0===t?void 0:t.blocks})),s=(0,i.v9)((function(e){var t;return null===(t=e.interview.navigation.currentPage)||void 0===t?void 0:t.questions})),c=r.useMemo((function(){return(0,W.VS)(a,(function(e){return e.questions}))||[]}),[a]),l=r.useState(""),u=l[0],m=l[1],d=s&&s[0],f=r.useMemo((function(){if(!u.length)return c;var e=u.toLowerCase();return c.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())}))}),[c,u]),h=(0,o.$G)().t;return A(e,{center:!0}),r.createElement(F,{title:h("debug.panels.goToQuestion.title"),searchable:!0,search:u,setSearch:m,searchPlaceholder:h("debug.panels.goToQuestion.search"),containerRef:e},f.filter((function(e){return e.type!=T.ce.SecuredTemporaryVariable})).map((function(e){var i=e.name;return r.createElement("div",{key:i,"data-active":(null==d?void 0:d.name)===i||void 0,role:"button",tabIndex:0,onKeyPress:null,onClick:function(){return n((0,p.Bf)({destination:i,isPreviewNavigation:!0}))},className:w()(t.question,(null==d?void 0:d.name)===i&&t.questionSelected)},i)})))}var Y=(0,c.QM)({setting:{display:"flex",alignItems:"center",fontSize:"12px"},settingLabel:{flex:1},settingValue:{display:"flex",margin:[[0,-4]]}}),X=(0,c.QM)({button:{background:function(e){var t=e.active,n=e.hover;return(0,y._j)(t?"#00A9E8":"#F3F3F3",n?.7:0)},color:function(e){return e.active?"#fff":"#484848"},margin:[[0,4]],borderRadius:5,padding:function(e){return"vertical"===e.layout?[[8,12]]:[[4,16]]},minWidth:64,cursor:"pointer",fontSize:"12px",transition:"background 200ms, color 200ms",display:"flex",flexDirection:function(e){return"vertical"===e.layout?"column":"row"},justifyContent:"center",alignItems:"center",textAlign:"center",boxSizing:"border-box"},buttonIcon:{fontSize:"18px"}}),J=function(){return J=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J.apply(this,arguments)};function ee(e){var t=e.active,n=e.text,i=e.icon,o=e.layout,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["active","text","icon","layout"]),c=r.useState(!1),l=c[0],u=c[1],m=X({active:t,hover:l,layout:o});return r.createElement("div",J({className:m.button,onMouseOver:function(){return u(!0)},onMouseOut:function(){return u(!1)}},s),i&&r.createElement("div",{className:m.buttonIcon},"function"==typeof i?i():r.createElement(a.G,{icon:i})),n)}function te(e){var t=e.value,n=e.onChange,i=(0,o.$G)().t;return r.createElement(r.Fragment,null,r.createElement(ee,{text:i("common.yes"),active:t,onClick:function(){return n(!0)}}),r.createElement(ee,{text:i("common.no"),active:!t,onClick:function(){return n(!1)}}))}var ne=(0,c.QM)({radio:{display:"flex",flex:1},button:{flex:1,background:function(e){var t=e.active,n=e.hover;return(0,y._j)(t?"#00A9E8":"#F3F3F3",n?.7:0)},color:function(e){return e.active?"#fff":"#484848"},margin:[[0,4]],borderRadius:5,padding:function(e){return"vertical"===e.layout?[[8,0]]:[[4,0]]},minWidth:64,cursor:"pointer",fontSize:"12px",transition:"background 200ms, color 200ms",display:"flex",flexDirection:function(e){return"vertical"===e.layout?"column":"row"},alignItems:"center",textAlign:"center",boxSizing:"border-box"},buttonIcon:{fontSize:"18px"}}),re=function(){return re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},re.apply(this,arguments)},ie=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function oe(e){var t=e.value,n=e.onChange,i=e.children,o=ie(e,["value","onChange","children"]),a=ne({});return r.createElement("div",re({className:a.radio},o),r.Children.map(i,(function(e){return r.cloneElement(e,{active:e.props.value===t,onClick:function(){return n(e.props.value)}})})))}oe.Button=function(e){var t=e.text,n=e.icon,i=e.layout,o=ie(e,["text","icon","layout"]),s=o,c=s.active,l=s.onClick,u=r.useState(!1),m=u[0],d=u[1],f=ne({active:c,hover:m,layout:i});return r.createElement("div",re({className:f.button,onMouseOver:function(){return d(!0)},onMouseOut:function(){return d(!1)},onClick:l},o),n&&r.createElement("div",{className:f.buttonIcon},"function"==typeof n?n():r.createElement(a.G,{icon:n})),t)};var ae=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 341.8 236.52",width:20,fill:"currentColor"},r.createElement("g",{"data-name":"Layer 2"},r.createElement("g",{"data-name":"Layer 1"},r.createElement("g",{"data-name":"Groupe 135"},r.createElement("path",{d:"M289.32 24a28.64 28.64 0 0128.55 28.64v131.23a28.63 28.63 0 01-28.55 28.63H52.48a28.63 28.63 0 01-28.55-28.63V52.62A28.64 28.64 0 0152.48 24h236.84m0-24H52.48A52.56 52.56 0 000 52.64v131.25a52.56 52.56 0 0052.48 52.63h236.84a52.56 52.56 0 0052.48-52.63V52.64A52.56 52.56 0 00289.32 0z","data-name":"Tracé 72"})),r.createElement("rect",{width:"156.25",height:"208.11",x:"19.53",y:"19.53","data-name":"Rectangle 34",rx:"39.06"}))))},se=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 341.8 236.52",width:20,fill:"currentColor"},r.createElement("g",{"data-name":"Layer 2"},r.createElement("g",{"data-name":"Layer 1"},r.createElement("g",{"data-name":"Groupe 135"},r.createElement("path",{d:"M289.32 24a28.64 28.64 0 0128.55 28.64v131.23a28.63 28.63 0 01-28.55 28.63H52.48a28.63 28.63 0 01-28.55-28.63V52.62A28.64 28.64 0 0152.48 24h236.84m0-24H52.48A52.56 52.56 0 000 52.64v131.25a52.56 52.56 0 0052.48 52.63h236.84a52.56 52.56 0 0052.48-52.63V52.64A52.56 52.56 0 00289.32 0z","data-name":"Tracé 72"})),r.createElement("rect",{width:"156.25",height:"208.11",x:"166.62",y:"14.19","data-name":"Rectangle 34",rx:"39.06"}))))},ce=function(){return r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 341.8 246.85",width:20,fill:"currentColor"},r.createElement("g",{"data-name":"Layer 2"},r.createElement("g",{"data-name":"Layer 1"},r.createElement("g",{"data-name":"Groupe 139"},r.createElement("path",{d:"M251.58 20.89a24.85 24.85 0 0124.84 24.84v113.78a24.85 24.85 0 01-24.84 24.83h-206a24.85 24.85 0 01-24.68-24.83V45.57a24.85 24.85 0 0124.67-24.68h205.94m0-20.89H45.57A45.57 45.57 0 000 45.57v113.94a45.57 45.57 0 0045.57 45.57h205.94a45.57 45.57 0 0045.57-45.57V45.57A45.57 45.57 0 00251.51 0z","data-name":"Tracé 73"})),r.createElement("rect",{width:"284.83",height:"189.89",x:"56.97",y:"56.97","data-name":"Rectangle 39",rx:"37.98"}))))},le=n(89482);function ue(e){var t=e.onChangeDockPosition,n=e.dockPosition,a=r.useRef(),s=Y({}),c=(0,M.O)(),l=(0,i.v9)((function(e){return e.application.debugInfo})),u=(0,i.v9)((function(e){return e.application.mode})),m=(0,o.$G)().t;return r.createElement(F,{title:m("debug.panels.settings.title"),containerRef:a},u===le.E.Preview&&r.createElement("div",{className:s.setting},r.createElement("div",{className:s.settingLabel},m("debug.panels.settings.enableDebugInfo")),r.createElement("div",{className:s.settingValue},r.createElement(te,{value:l,onChange:function(e){return c(e?(0,p.ZO)():(0,p.ay)())}}))),r.createElement(F.Section,{title:m("debug.panels.settings.display.title")},r.createElement("div",{className:s.setting},r.createElement("div",{className:s.settingValue,style:{flex:1}},r.createElement(oe,{value:n,onChange:t},r.createElement(oe.Button,{value:"left",layout:"vertical",icon:function(){return r.createElement(ae,null)},text:m("debug.panels.settings.display.dockLeft")}),r.createElement(oe.Button,{value:"right",layout:"vertical",icon:function(){return r.createElement(se,null)},text:m("debug.panels.settings.display.dockRight")}),r.createElement(oe.Button,{value:"floating",layout:"vertical",icon:function(){return r.createElement(ce,null)},text:m("debug.panels.settings.display.undock")}))))))}var me=(0,c.QM)({dockedContainer:{fontFamily:"Open Sans",display:"flex",flexDirection:"column",position:"fixed",width:384,top:0,boxShadow:"3px 0px 28px #00000029",left:function(e){return"left"===e.position?0:"auto"},right:function(e){return"right"===e.position?0:"auto"},height:"100%",background:"white",zIndex:10,padding:50,paddingRight:30,boxSizing:"border-box"},titleRow:{display:"flex",flexDirection:"row",alignItems:"center"},titleContainer:{flex:"1",marginTop:-8},title:{fontSize:"19px",fontWeight:700,margin:0,padding:0},subtitle:{fontSize:"15px",fontWeight:500,margin:0,padding:0},debugIcon:{fontSize:"50px",marginRight:12,marginLeft:-8},panel:{flex:1,overflow:"hidden",boxSizing:"border-box"},panelButtonContainer:{display:"flex",flexDirection:"row",margin:[[17,-8]]},panelButton:{margin:8,width:40,height:40,lineHeight:"40px",textAlign:"center",borderRadius:"50%",background:"#DFDFDF",color:"#616161",cursor:"pointer",transition:"background 200ms, color 200ms","&:hover":{background:"#ccc"}},panelButtonSmall:{margin:8,width:30,height:30,lineHeight:"30px"},panelButtonIcon:{fontSize:"18px"},panelButtonActive:{background:"#FFA200",color:"#fff",position:"relative","&:hover":{background:"#FFA200"}},toolbar:{marginTop:25,display:"flex",alignItems:"center"}}),de=n(402);function fe(e){var t=e.title,n=e.panels,c=e.position,l=e.selected,u=e.onSelectedChanged,m=me({selected:l,position:c}),d=(0,M.O)(),f=(0,i.v9)((function(e){return e.mobilePreview})),h=(0,o.$G)().t;return(0,de.Z)({left:"left"===c?384:0,right:"right"===c?384:0},[c]),r.createElement("div",{className:m.dockedContainer},r.createElement("div",{className:m.titleRow},r.createElement("div",{className:m.debugIcon},r.createElement(a.G,{size:"lg",icon:["fas","vial"],transform:"shrink-5"})),r.createElement("div",{className:m.titleContainer},r.createElement("h2",{className:m.title},h("debug.title")),r.createElement("h3",{className:m.subtitle},t))),r.createElement("div",{className:m.panelButtonContainer},n.filter((function(e){return!e.exclude})).map((function(e){var t=e.onClick,n=e.id,i=e.icon,o=e.active,a=e.title;return r.createElement("div",{key:n,"data-tip":a,onClick:t||function(){return u(n)},className:w()(m.panelButton,o&&m.panelButtonActive)},r.createElement("div",{className:m.panelButtonIcon},i))}))),n.filter((function(e){return e.id===l})).map((function(e){var t=e.id,n=e.content;return e.index,e.exclude,r.createElement("div",{key:t,className:m.panel},n)})),r.createElement("div",{className:m.toolbar},r.createElement("div",{onClick:function(){return d((0,p.tT)())},className:w()(m.panelButton,f&&m.panelButtonActive),"data-tip":h("debug.toggleMobilePreview")},r.createElement("div",{className:m.panelButtonIcon},r.createElement(a.G,{icon:["far","mobile-android"]}))),r.createElement("div",{className:w()(m.panelButton,m.panelButtonSmall),onClick:function(){return d((0,p.BL)())},"data-tip":h("common.previousPage")},r.createElement("div",{className:m.panelButtonIcon},r.createElement(a.G,{icon:["fas","caret-left"]}))),r.createElement("div",{className:w()(m.panelButton,m.panelButtonSmall),onClick:function(){return d((0,p.b$)())},"data-tip":h("common.nextPage")},r.createElement("div",{className:m.panelButtonIcon},r.createElement(a.G,{icon:["fas","caret-right"]}))),r.createElement("div",{style:{flex:1}}),r.createElement("div",{onClick:function(){return u("settings")},className:w()(m.panelButton,"settings"===l&&m.panelButtonActive),"data-tip":h("debug.panels.settings.title")},r.createElement("div",{className:m.panelButtonIcon},r.createElement(a.G,{icon:["far","cog"]})))),r.createElement(s.Z,{effect:"solid"}))}var pe=n(87582),he=(0,c.QM)({floatingContainer:{fontFamily:"Open Sans",position:"fixed",minWidth:59,minHeight:59,boxSizing:"border-box",zIndex:10},toolbar:{color:"white",position:"absolute",top:0,left:0,right:20},widgetToggleButton:{background:"#ff6f00",borderRadius:"50%",minWidth:59,width:59,height:59,textAlign:"center",lineHeight:"59px",fontSize:"28px",zIndex:1,boxShadow:"0px 3px 28px #00000033",position:"relative",cursor:"pointer",userSelect:"none"},widgetToggleButtonIcon:{position:"absolute",top:0,left:0,right:0,bottom:0,margin:"auto"},titleContainer:{position:"absolute",top:0,left:35,right:0,bottom:0,height:32,display:"flex",userSelect:"none",margin:"auto",background:"#ff6f00",borderTopRightRadius:24,borderBottomRightRadius:24,lineHeight:"32px",overflow:"hidden"},title:{fontWeight:700,fontSize:15,lineHeight:"30px",height:30,margin:0,flex:1,marginLeft:35,marginBottom:2},settingsButton:{padding:[[0,10]],cursor:"pointer","& svg":{transition:"color 200ms",color:function(e){return"settings"===e.selected?"#fff":"#ffffff99"}},"&:hover svg":{color:"#fff"}},panel:{position:"absolute",top:61,left:60,right:0,bottom:0,overflow:"hidden",boxSizing:"border-box"},panelContainer:{position:"absolute",top:20,left:20,bottom:20,right:20,background:"#fff",boxShadow:"0px 3px 20px #00000029",borderRadius:15,boxSizing:"border-box",overflow:"hidden"},panelContent:{position:"absolute",top:23,left:23,right:23,bottom:23,minWidth:200,overflow:"hidden",boxSizing:"border-box"},panelButtonContainer:{margin:[[6,9]],position:"absolute",left:0,top:60,zIndex:3},panelButton:{margin:[[16,0]],width:40,height:40,textAlign:"center",borderRadius:"50%",background:"#DFDFDF",color:"#616161",cursor:"pointer",transition:"background 200ms, color 200ms","&:hover":{background:"#ccc"}},panelButtonIcon:{lineHeight:"40px",fontSize:"18px"},panelButtonActive:{background:"#FFA200",color:"#fff",position:"relative","&:hover":{background:"#FFA200"}},panelIndicatorShadow:{content:"",display:"block",position:"absolute",left:0,marginTop:-8,marginLeft:-20,borderTopWidth:11,borderBottomWidth:11,transition:"top 200ms",border:"20px solid transparent",borderRightColor:"#00000008"},panelIndicator:{content:"",display:"block",position:"absolute",left:0,marginTop:-9,marginLeft:-18,borderTopWidth:10,borderBottomWidth:10,transition:"top 200ms",border:"19px solid transparent",borderRightColor:"white",zIndex:2}}),be=function(){return be=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},be.apply(this,arguments)},ve=(0,H.q)(a.G),ge=function(e){var t=void 0===e?{}:e,n=t.open,r=void 0!==n&&n,i=t.xy,o=void 0===i?[0,0]:i,a=o[0],s=o[1];return{config:H.vc.stiff,immediate:function(e){return"top"===e||"left"===e},width:r?450:59,height:r?500:59,margin:60,top:s,left:a}};function Ae(e){var t=e.title,n=e.panels,i=e.selected,o=e.onSelectedChanged,c=he({selected:i}),l=function(){var e=r.useState({width:0,height:0,innerWidth:0,innerHeight:0}),t=e[0],n=t.width,i=t.height,o=t.innerWidth,a=t.innerHeight,s=e[1];return r.useEffect((function(){function e(){s({width:window.outerWidth,height:window.outerHeight,innerWidth:window.innerWidth,innerHeight:window.innerHeight})}window.addEventListener("resize",e);var t=window.setInterval(e,200);return e(),function(){window.removeEventListener("resize",e),window.clearInterval(t)}}),[]),r.useMemo((function(){return{width:n,height:i,innerWidth:o,innerHeight:a,minWidth:function(e){return n>=e},maxWidth:function(e){return n<e}}}),[i,a,o,n])}(),u=l.width,m=l.height,d=r.useState(!1),f=d[0],p=d[1],h=(0,H.q_)((function(){return ge()})),b=h[0],v=h[1],g=r.useRef(),A=r.useRef();r.useEffect((function(){A.current&&v(ge({xy:A.current.offset,open:f}))}),[f,A,v]);var y=(0,pe.c0)((function(e){var t=e.tap,n=e.offset,r=e.event;A.current=e;var i=r.target;t&&g.current.contains(i)?p((function(e){return!e})):v(ge({xy:n,open:f}))}),{bounds:{top:-60,left:-60,right:u-180,bottom:m-280},filterTaps:!0}),C=n.find((function(e){return e.id===i})),_=(0,H.Yz)(f?[C]:[],null,{config:H.vc.stiff,from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),x=(0,H.Yz)(f?n:[],(function(e){return e.id}),{config:H.vc.stiff,unique:!0,trail:200/n.length,from:{opacity:0,transform:"scale(0)"},enter:{opacity:1,transform:"scale(1)"},leave:{opacity:0,transform:"scale(0)"}}),T=(0,H.Yz)(f,null,{from:{opacity:0,transform:"scale(0)"},initial:{opacity:1,transform:"scale(1)"},enter:{opacity:1,transform:"scale(1)"},leave:{opacity:0,transform:"scale(0)"}});return r.createElement(H.q.div,{className:c.floatingContainer,style:b},r.createElement("div",be({className:c.toolbar},y()),r.createElement("div",{className:c.widgetToggleButton,ref:g},T.map((function(e){var t=e.item,n=e.props,i=e.key;return t?r.createElement(ve,{key:i,icon:["far","chevron-up"],size:"xs",className:c.widgetToggleButtonIcon,style:n}):r.createElement(ve,{key:i,icon:["fas","vial"],className:c.widgetToggleButtonIcon,style:n})}))),r.createElement("div",{className:c.titleContainer},r.createElement("h3",{className:c.title},t),r.createElement("div",{className:c.settingsButton,onClick:function(){return o("settings")}},r.createElement(a.G,{size:"lg",icon:["fas","cog"],transform:"shrink-5",mask:["fas","circle"]})))),r.createElement("div",{className:c.panelButtonContainer},x.filter((function(e){return!e.item.exclude})).map((function(e){var t=e.item,n=t.onClick,i=t.id,a=t.icon,s=t.active,l=t.title,u=e.props;return r.createElement(H.q.div,{key:i,"data-tip":l,style:u,onClick:n||function(){return o(i)},className:w()(c.panelButton,s&&c.panelButtonActive)},r.createElement("div",{className:c.panelButtonIcon},a))}))),_.map((function(e){var t=e.item,n=t.content,i=t.index,o=t.exclude,a=e.key,s=e.props;return r.createElement(H.q.div,{key:a,className:c.panel,style:s},!o&&r.createElement(r.Fragment,null,r.createElement("div",{style:{top:40+56*i},className:c.panelIndicatorShadow}),r.createElement("div",{style:{top:42+56*i},className:c.panelIndicator})),r.createElement("div",{className:c.panelContainer},r.createElement(H.q.div,{className:c.panelContent},n)))})),r.createElement(s.Z,{effect:"solid"}))}var ye,Ce=n(99115),_e=n.n(Ce),xe=n(26091),we=n.n(xe),Te=n(67814),Ee=n(73935),Se=n.n(Ee),ke=(0,c.QM)({issueContainer:{fontSize:"13px",fontFamily:"Open Sans",borderBottom:"1px solid #eee",padding:[[10,0]]},issuePanelHeader:{display:"flex",flexDirection:"row",flexWrap:"nowrap",justifyContent:"flex-end"},issuePanelHeaderTitle:{marginRight:"auto"},issueValue:{display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",justifyContent:"flex-end"},issueLabel:{marginRight:"auto"},issueDetails:{paddingTop:10,paddingRight:29,overflow:"hidden",boxSizing:"border-box"},issueElementHtml:{width:"100%",background:"#333E5B",fontSize:"12px",outline:"none",color:"white",border:0,borderRadius:5,padding:[[6,10]],boxSizing:"border-box",resize:"none",cursor:"pointer","&:active, &:focus":{color:"#F68A5A"}},issueNodeCount:{fontSize:"8px",outline:"none",border:0,background:"#0d67cb",color:"white",textAlign:"right",padding:[[4,8]],marginRight:6,borderRadius:50},issueSeverity:{fontSize:"12px",outline:"none",border:0,background:function(e){return"critical"===e?"#cc3300":"#ffcc00"},color:"white",textAlign:"right",padding:[[6,10]],marginLeft:5,marginRight:6,borderRadius:50},issueElements:{margin:[[5,0]],marginTop:10,fontWeight:700,fontSize:"10px"},issueDetailsIcon:{fontSize:"12px",padding:4,cursor:"pointer",userSelect:"none"},issueDetailsIconActive:{color:"#00A9E8"}}),Be=n(76529),Ne=(ye=function(e,t){return ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},ye(e,t)},function(e,t){function n(){this.constructor=e}ye(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function Me(e){var t=e.label,n=e.severity,i=e.details,a=e.nodes,s=r.useState(!1),c=s[0],l=s[1],u=ke(n),m=(0,o.$G)().t,d=m("critical"===n?"debug.panels.accessibility.label.error":"debug.panels.accessibility.label.warning");return r.createElement("div",{className:u.issueContainer},r.createElement("div",{className:u.issueValue},r.createElement("span",{className:u.issueNodeCount},a.length),r.createElement("span",{className:u.issueLabel},t),r.createElement("span",{className:u.issueSeverity},d),r.createElement("div",{role:"checkbox","aria-checked":c,className:u.issueDetailsIcon,tabIndex:0,onKeyPress:function(e){" "===e.key&&(l((function(e){return!e})),e.preventDefault())},onClick:function(){return l((function(e){return!e}))}},r.createElement(Te.G,{fixedWidth:!0,icon:["far",c?"chevron-up":"chevron-down"]}))),r.createElement(Be.z,{expanded:c},r.createElement("div",{className:u.issueDetails},r.createElement("span",null,i),r.createElement("div",null,r.createElement("div",{className:u.issueElements},m("debug.panels.accessibility.label.elements")),a.map((function(e){return r.createElement("textarea",{key:e.html,className:u.issueElementHtml,rows:4,value:e.html,readOnly:!0,onFocus:function(){if(1===e.target.length){var t=e.target[0],n=document.querySelector(t);n&&n.scrollIntoView()}}})}))))))}var De=function(e){function t(t){var n=e.call(this,t)||this;return n.state={violations:[]},n.ref=r.createRef(),n}return Ne(t,e),t.prototype.componentDidMount=function(){var e=this;we()(r,Se(),1e3,{runOnly:["wcag2a","wcag2aa"],disableDeduplicate:!0},{include:[[".survey-engine"]],resultTypes:["violations"]},(function(t){e.setState({violations:t.violations.sort((function(e,t){return e.impact.localeCompare(t.impact)}))})}))},t.prototype.componentWillUnmount=function(){_e().cleanup()},t.prototype.render=function(){var e=this.state.violations,t=this.props.title;return r.createElement(F,{title:t,containerRef:this.ref},e.map((function(e){return r.createElement(Me,{key:e.id,label:e.help,severity:e.impact,details:e.description,nodes:e.nodes})})))},t}(r.Component);function Ie(){var e,t,n=r.useState("gotoquestion"),s=n[0],c=n[1],l=(0,M.O)(),u=function(e,t){var n=(0,r.useState)((function(){var n=t instanceof Function?t():t;try{var r=localStorage.getItem(e);return r?JSON.parse(r):n}catch(e){return console.log(e),n}})),i=n[0],o=n[1];return[i,function(t){try{var n=t instanceof Function?t(i):t;o(n),localStorage.setItem(e,JSON.stringify(n))}catch(e){console.log(e)}}]}("debugDockPosition","left"),m=u[0],d=u[1],f=(0,i.v9)((function(e){return e.mobilePreview})),h=(0,o.$G)().t,b=(0,i.v9)((function(e){return e.application.mode})),v=(0,i.v9)((function(e){return e.application.displayInThemeEditor})),g=(0,i.v9)((function(e){return e.application.hideAccessibilityPanel})),A=(e={},e[le.E.Preview]=h("debug.previewMode"),e[le.E.Test]=h("debug.testMode"),e)[b],y=((t={})[le.E.Preview]=["gotoquestion","flow","variables","accessibility","mobilepreview","settings"],t[le.E.Test]=["gotoquestion","mobilepreview","settings"],t);if(g){var C=y[le.E.Preview].indexOf("accessibility");C>-1&&y[le.E.Preview].splice(C,1)}var _=b===le.E.Preview&&v?["gotoquestion","accessibility","settings"]:y[b],x=r.useMemo((function(){return[{id:"gotoquestion",index:0,title:h("debug.panels.goToQuestion.title"),active:"gotoquestion"===s,content:r.createElement($,null),icon:r.createElement(a.G,{icon:["far","link"]})},{id:"flow",index:1,title:h("debug.panels.flow.title"),content:r.createElement(U,null),active:"flow"===s,icon:r.createElement(a.G,{icon:["far","code-branch"]})},{id:"variables",index:2,title:h("debug.panels.variables.title"),content:r.createElement(K,null),active:"variables"===s,icon:r.createElement("div",{className:"fa-layers fa-fw"},r.createElement(a.G,{transform:"grow-3",icon:["far","brackets-curly"]}),r.createElement("span",{className:"fa-layers-text",style:{fontStyle:"italic",fontSize:16,fontWeight:600,transform:"translate(-50%, -52%)"}},"x"))},{id:"accessibility",index:3,title:h("debug.panels.accessibility.title"),content:r.createElement(De,{title:h("debug.panels.accessibility.title")}),active:"accessibility"===s,icon:r.createElement(a.G,{icon:["far","eye"]})},{id:"mobilepreview",index:4,title:h("debug.toggleMobilePreview"),exclude:"floating"!==m,active:f,icon:r.createElement(a.G,{icon:["far","mobile-android"]}),onClick:function(){return l((0,p.tT)())}},{id:"settings",index:-1,exclude:!0,title:h("debug.panels.settings.title"),content:r.createElement(ue,{onChangeDockPosition:d,dockPosition:m}),active:"settings"===s,icon:r.createElement(a.G,{icon:["far","cog"]})}].filter((function(e){return _.includes(e.id)}))}),[h,s,m,f,d,l,_,b,v]);return"left"===m||"right"===m?r.createElement(fe,{title:A,position:m,panels:x,selected:s,onSelectedChanged:c}):r.createElement(Ae,{title:A,panels:x,selected:s,onSelectedChanged:c})}},89181:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return Question}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(67294),_controls_AutoCompleteControl__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(85659),_controls_TextBoxControl__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(85958),_controls_ChoiceListControl__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(25595),_models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(47103),_containers_controls_ControlContainer__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(71716),_controls_DrillDownControl__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(66889),_controls_GridControl__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(57159),_controls_SliderControl__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(35185),_controls_ImageAreaControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(38472),_controls_FileUploadControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(68280),_controls_DateTimeControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1276),_controls_CardSortControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(78354),_controls_NullControl__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(60750),_controls_LookupTableControl__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(51950),_controls_CustomHtmlControl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(37319),_controls_DropDownControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(86204),_controls_UndefinedControl__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(1099),_controls_NumericRankingControl__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(55706),_controls_RunningTotalControl__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(80726),_controls_TimerControl__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(5259),_controls_NetPromoterControl__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(27232),_signals__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(78813),_shared_SignalListener__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(27715),_models_builders_ValidationBuilder__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(78632),_utils__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(11325),_hooks_useQuestion__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(7495),_controls_SignatureControl__WEBPACK_IMPORTED_MODULE_27__=__webpack_require__(53689),_models_utilities_questionUtilities__WEBPACK_IMPORTED_MODULE_28__=__webpack_require__(55796),_controls_DragDropControl__WEBPACK_IMPORTED_MODULE_29__=__webpack_require__(90231),_models_utilities_questionnaireUtilities__WEBPACK_IMPORTED_MODULE_30__=__webpack_require__(3525),_renderers_v2_QuestionRenderer__WEBPACK_IMPORTED_MODULE_31__=__webpack_require__(52640),_redux_actions__WEBPACK_IMPORTED_MODULE_32__=__webpack_require__(5498),_models_utilities_settingUtilities__WEBPACK_IMPORTED_MODULE_41__=__webpack_require__(95457),_public__WEBPACK_IMPORTED_MODULE_33__=__webpack_require__(59479),_models_enums_VariableType__WEBPACK_IMPORTED_MODULE_34__=__webpack_require__(47643),_redux_store__WEBPACK_IMPORTED_MODULE_35__=__webpack_require__(88507),_redux_reducers_interview_variablesUtilities__WEBPACK_IMPORTED_MODULE_36__=__webpack_require__(90977),_redux_reducers_interview_navigationUtilities__WEBPACK_IMPORTED_MODULE_37__=__webpack_require__(79344),_controls_TextHighlighterControl__WEBPACK_IMPORTED_MODULE_38__=__webpack_require__(97060),_controls_HeatMapControl__WEBPACK_IMPORTED_MODULE_39__=__webpack_require__(1528),_controls_CarrouselControl__WEBPACK_IMPORTED_MODULE_40__=__webpack_require__(86507),__extends=(extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)},function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),extendStatics,__assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)},Question=function(_super){function Question(props){var _this=_super.call(this,props)||this;return _this.validateSignal=new _signals__WEBPACK_IMPORTED_MODULE_22__.M,_this.onValidate=function(e){return _this.validateControl(e)},_this.hasMentions=function(e){var t=(0,_redux_store__WEBPACK_IMPORTED_MODULE_35__.Bk)().getState().interview,n=(0,_redux_reducers_interview_navigationUtilities__WEBPACK_IMPORTED_MODULE_37__.gH)(t.navigation);return e.variables.filter((function(e){return e.type!==_models_enums_VariableType__WEBPACK_IMPORTED_MODULE_34__.x.Computed})).some((function(e){return(0,_redux_reducers_interview_variablesUtilities__WEBPACK_IMPORTED_MODULE_36__.qR)(t.variables,e.name,n).filter((function(e){return!(0,_utils__WEBPACK_IMPORTED_MODULE_25__.Ew)(e.value)})).length>0}))},_this.hasSoftPromptError=function(e){return Object.keys(e.errorsByVariableName).map((function(t){return e.errorsByVariableName[t]})).reduce((function(e,t){return t?e.concat(t):e}),[]).some((function(e){return e.softPrompt}))},_this.runCustomJavascript=function(){var theme=_this.props.theme,customJs=(0,_models_utilities_settingUtilities__WEBPACK_IMPORTED_MODULE_41__.yP)(theme,"CustomJavascript");if(customJs)try{eval(customJs)}catch(e){_public__WEBPACK_IMPORTED_MODULE_33__.y.error(e)}},_this.state={},_this}return __extends(Question,_super),Question.prototype.componentDidMount=function(){this.runCustomJavascript()},Question.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.question,r=t.isHidden,i=t.isNavigationDisabled,o=t.dispatch,a=e.question!==n;if(a&&(this.validateSignal=new _signals__WEBPACK_IMPORTED_MODULE_22__.M),!i&&e.isHidden&&(!r||a)){var s=e.question;s.type!==_models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentMetaData&&s.variableNames.forEach((function(e){return o((0,_redux_actions__WEBPACK_IMPORTED_MODULE_32__.F1)(e,(function(e){return e.clear()})))}))}},Question.prototype.componentDidUpdate=function(){this.runCustomJavascript()},Question.prototype.getErrors=function(e){var t=this.props.question;return e.errorsByVariableName[t.name]||[]},Question.prototype.getControlType=function(e){switch(e.type){case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.CheckBox:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.ImageSelector:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RadioButton:return _controls_ChoiceListControl__WEBPACK_IMPORTED_MODULE_3__.t;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.DropDownList:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentTimeZone:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentLanguage:return _controls_DropDownControl__WEBPACK_IMPORTED_MODULE_16__.T;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.AutoComplete:return _controls_AutoCompleteControl__WEBPACK_IMPORTED_MODULE_1__.f;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.NumericAnswer:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.EmailAddressAnswer:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.OpenEndAnswer:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentEmail:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentPhone:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.TextAnswer:return _controls_TextBoxControl__WEBPACK_IMPORTED_MODULE_2__.e;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.ChoiceGrid:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.HybridGrid:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.ImageChoiceGrid:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.StarRatingGrid:return _controls_GridControl__WEBPACK_IMPORTED_MODULE_7__.F;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.ImageAreaEvaluator:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.ImageAreaSelector:return _controls_ImageAreaControl__WEBPACK_IMPORTED_MODULE_9__.$;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.NetPromoter:return _controls_NetPromoterControl__WEBPACK_IMPORTED_MODULE_21__.b;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RunningTotal:return _controls_RunningTotalControl__WEBPACK_IMPORTED_MODULE_19__.U;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.NumericRanking:return _controls_NumericRankingControl__WEBPACK_IMPORTED_MODULE_18__.U;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.CardSort:return _controls_CardSortControl__WEBPACK_IMPORTED_MODULE_12__.I;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.CustomQuestion:return _controls_CustomHtmlControl__WEBPACK_IMPORTED_MODULE_15__.o;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.DateTimeAnswer:return _controls_DateTimeControl__WEBPACK_IMPORTED_MODULE_11__.z;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.DragDropRanking:return _controls_DragDropControl__WEBPACK_IMPORTED_MODULE_29__.K;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.DrillDown:return _controls_DrillDownControl__WEBPACK_IMPORTED_MODULE_6__.r;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.FileUpload:return _controls_FileUploadControl__WEBPACK_IMPORTED_MODULE_10__.L;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.LookupTable:return _controls_LookupTableControl__WEBPACK_IMPORTED_MODULE_14__.$;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.Signature:return _controls_SignatureControl__WEBPACK_IMPORTED_MODULE_27__.O;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.Slider:return _controls_SliderControl__WEBPACK_IMPORTED_MODULE_8__.z;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.Timer:return _controls_TimerControl__WEBPACK_IMPORTED_MODULE_20__.T;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentMetaData:case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.Description:return _controls_NullControl__WEBPACK_IMPORTED_MODULE_13__.D;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.TextHighlighter:return _controls_TextHighlighterControl__WEBPACK_IMPORTED_MODULE_38__.v;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.HeatMap:return _controls_HeatMapControl__WEBPACK_IMPORTED_MODULE_39__.s;case _models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.Carrousel:return _controls_CarrouselControl__WEBPACK_IMPORTED_MODULE_40__.O;default:return _controls_UndefinedControl__WEBPACK_IMPORTED_MODULE_17__.G}},Question.prototype.getControl=function(e){var t=this.props,n=t.questionnaire,r=t.validationResult,i=t.validateSignal,o=t.isHidden,a=t.isSingleOnPage,s=t.onNavigation,c=t.isDesktopPreviewView,l=(0,_models_utilities_questionnaireUtilities__WEBPACK_IMPORTED_MODULE_30__.s5)(n)&&(0,_models_utilities_questionUtilities__WEBPACK_IMPORTED_MODULE_28__.Mg)(e)&&this.hasSoftPromptError(r);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(_shared_SignalListener__WEBPACK_IMPORTED_MODULE_23__.P,{signal:i,handler:this.onValidate}),!o&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(_containers_controls_ControlContainer__WEBPACK_IMPORTED_MODULE_5__.g,{question:e,isSingleOnPage:a,validateSignal:this.validateSignal,showSoftPrompt:l,onNavigation:s,controlType:this.getControlType(e),isDesktopPreviewView:c}))},Question.prototype.validateControl=function(e){return this.props.isHidden?(new _models_builders_ValidationBuilder__WEBPACK_IMPORTED_MODULE_24__.O).build():this.validateSignal.dispatch(e).reduce((function(e,t){return{isValid:e.isValid&&t.isValid,errorsByVariableName:__assign(__assign({},e.errorsByVariableName),t.errorsByVariableName)}}),{isValid:!0,errorsByVariableName:{}})},Question.prototype.renderControl=function(e){var t=this.props,n=t.questionnaire,r=t.isHidden,i=t.validationResult,o=t.language,a=t.theme,s=t.isDesktopPreviewView;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_hooks_useQuestion__WEBPACK_IMPORTED_MODULE_26__.G.Provider,{value:e},react__WEBPACK_IMPORTED_MODULE_0__.createElement(_renderers_v2_QuestionRenderer__WEBPACK_IMPORTED_MODULE_31__.Z,{isHidden:r,questionnaire:n,question:e,control:this.getControl(e),validationResult:i,language:o,theme:a,isDesktopPreviewView:s}))},Question.prototype.render=function(){var e=this.props.question;return e.type===_models_enums_QuestionType__WEBPACK_IMPORTED_MODULE_4__.ce.RespondentMetaData?null:this.renderControl(e)},Question}(react__WEBPACK_IMPORTED_MODULE_0__.PureComponent)},48278:function(e,t,n){"use strict";function r(e){return{question:e.question,questionnaire:e.questionnaire,theme:e.theme,language:e.language,gridRendering:e.gridRendering,mobileOnly:e.mobileOnly,standardOnly:e.standardOnly,showSoftPrompt:e.showSoftPrompt}}n.d(t,{V:function(){return r}})},20828:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),i=n(25371),o=(0,i.QM)((function(e){return{choiceText:{composes:"choice__text",fontWeight:function(e){var t=e.fontWeight;return null!=t?t:"bolder"},flex:1},spacer:{width:20,flex:"right"===e.DisplayChoiceIcon&&1}}})),a=n(59261);function s(e){var t=e.choice,n=e.gridRendering,s=e.fontWeight,c=(0,i.Fg)(),l=o({theme:c,fontWeight:s}),u=t.elementId+"_LABEL",m=(0,a.Z)(t,"TEXT");return!n&&r.createElement(r.Fragment,null,"none"!==c.DisplayChoiceIcon&&r.createElement("span",{className:l.spacer}),r.createElement("span",{className:l.choiceText,id:u,dangerouslySetInnerHTML:{__html:m}}))}},99393:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(67294),i=n(25371),o=n(16856),a=n(96900),s=function(e){return 0===e.ChoiceListBackgroundAlpha&&0===e.ChoiceListBackgroundBorderWidth},c=(0,i.QM)({choice:{background:function(e){var t=e.theme;return a.Fq(t.ControlBackground,t.ChoiceListBackgroundAlpha)},borderRadius:function(e){var t=e.theme;return Math.min(t.ChoiceListBackgroundBorderRadius,t.ChoiceHeight/2)},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.ChoiceListBackgroundBorderWidth+"px "+t.ControlBorderColor+" inset"},boxSizing:"border-box",color:function(e){var t=e.theme;return a.oF(t,a.$X(t))},composes:"choice",cursor:"pointer",margin:function(e){var t=e.theme;return s(t)?[[0,-13]]:[[t.ChoiceSpacing,0]]},outline:"2px solid transparent",overflow:"hidden",padding:function(e){var t=e.theme;return s(t)?[[16,13]]:[[16,26]]},textAlign:function(e){return"right"===e.theme.DisplayChoiceIcon?"right":""},transition:"background 200ms, box-shadow 200ms, outline-color 200ms",userSelect:"none","& .check-box__icon":{display:function(e){return e.theme.ShowCheckboxSettings?"":"none"}},"& .radio__icon":{display:function(e){return e.theme.ShowRadioSettings?"":"none"}}},choiceHeader:{composes:"choice__header",fontWeight:700,margin:function(e){return[[e.theme.ChoiceSpacing,0]]}},choiceText:{composes:"choice__text",fontWeight:700,marginLeft:8,paddingLeft:20},choiceContainer:{alignItems:"center",composes:"choice-container",display:"flex",flex:1,flexDirection:function(e){return"right"===e.theme.DisplayChoiceIcon?"row-reverse":"row"},"& .check-box__icon":{flexDirection:function(e){return"right"===e.theme.CheckBoxIconAlignment?"row-reverse":"row"}},"& .radio__icon":{flexDirection:function(e){return"right"===e.theme.RadioIconAlignment?"row-reverse":"row"}}},choiceSelected:{background:function(e){var t=e.theme;return!s(t)&&t.PrimaryColor},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+a.tv(t,t.PrimaryColor)+" inset"},color:function(e){var t=e.theme;return s(t)?t.PrimaryColor:a.oF(t,t.PrimaryColor)},composes:"choice--selected"},choiceHover:{composes:"choice--hover",background:function(e){var t=e.theme,n=e.selected;if(!s(t))return n?a._j(t.PrimaryColor,t.ActiveHighlightValue):a._j(t.ControlBackground,t.ActiveHighlightValue)},boxShadow:function(e){var t=e.theme,n=e.selected;return"0 0 0 "+t.BorderWidth+"px "+a.tv(t,n?a._j(t.PrimaryColor,t.ActiveHighlightValue):a._j(t.ControlBackground,t.ActiveHighlightValue))+" inset"}},choiceActive:{composes:"choice--active",background:function(e){var t=e.theme,n=e.selected;if(!s(t))return n?a._j(t.PrimaryColor,t.ActiveHighlightValue):a._j(t.ControlBackground,t.ActiveHighlightValue)},outlineColor:function(e){var t=e.theme;return s(t)&&t.PrimaryColor}}}),l=n(48278),u=n(89437),m=n(99076),d=n(47103),f=n(7495),p=n(20828),h=n(67927),b=n(59261),v=n(95457),g=n(1509),A=n(11325),y=n(39822),C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},_=r.forwardRef((function(e,t){var n=e.choice,o=e.controlType,a=e.openEnd,s=e.isFirst,d=e.isLast,f=e.disabled,p=e.selected,h=e.variable,b=e.onOpenEndBlur,y=e.onOpenEndChange,_=e.language,x=(0,i.Fg)(),w=c({theme:x,selected:p});return r.createElement(r.Fragment,null,r.createElement("div",{className:w.choiceContainer},r.createElement(u.H,C({},(0,l.V)(e),{choiceRef:t,choice:n,controlType:o,openEnd:a,isFirst:s,isLast:d,isDisabled:f,isSelected:p,variable:h}))),r.createElement(m.Z,C({},(0,l.V)(e),{choice:n,isSelected:p,name:n.elementId,label:(0,A.IQ)((0,g.I)(n,"TEXT",_)),value:a,onOpenEndBlur:b,onOpenEndChange:y,size:(0,v.yP)(n,"OpenEndSize","Full"),lines:(0,v.Yu)(n,"OpenEndLines",2)})))}));function x(e){var t=e.choice,n=e.controlType,a=e.isFirst,s=e.isLast,g=e.disabled,x=e.openEnd,w=e.onOpenEndBlur,T=e.onOpenEndChange,E=e.gridRendering,S=e.selected,k=e.variable,B=e.horizontal,N=e.onAfterSelection,M=r.useRef(),D=(0,f.Z)(),I=(0,i.Fg)(),O=c({theme:I,selected:S,horizontal:B}),P=(0,A.IQ)((0,b.Z)(t,"TEXT"));if(!t.value)return r.createElement("div",{id:t.elementId+"_INPUT",className:O.choiceHeader},r.createElement(p.Z,{choice:t,gridRendering:E}));if(D.type===d.ce.ImageSelector)return r.createElement(_,C({ref:M},e));var R=(0,d.TG)(D.type)?D.type:d.ce.RadioButton;function L(){M.current&&(M.current.select(),N&&N())}var V=(0,v.yP)(t,"OpenEndSize","Medium"),F=(0,v.yP)(t,"Color");return r.createElement(h.Y,{id:t.elementId+"_INPUT",type:R===d.ce.RadioButton?"radio":"checkbox",label:P,onKeyDown:function(e){if(e.target===e.currentTarget&&(" "===e.key&&(L(),e.preventDefault()),"ArrowUp"===e.key||"ArrowDown"===e.key)){var n=k.choiceList,r=n.indexOf(t)+("ArrowDown"===e.key?1:-1);if(n[r]){var i=document.getElementById(n[r].elementId+"_INPUT");i&&(i.focus(),R===d.ce.RadioButton&&i.click(),e.preventDefault())}}},onSelect:L,hasOpenEnd:(0,y.vo)(t),openEndSize:V,selected:S,className:(0,o.GL)(d.ce[R]),horizontal:B,renderChoice:function(){return r.createElement(u.H,C({},(0,l.V)(e),{choiceRef:M,choice:t,controlType:n,openEnd:x,isFirst:a,isLast:s,isDisabled:g,isSelected:S,variable:k}))},renderAfter:function(){return r.createElement(m.Z,C({},(0,l.V)(e),{choice:t,isSelected:S,name:t.elementId,label:P,value:x,onOpenEndBlur:w,onOpenEndChange:T,size:V,lines:(0,v.Yu)(t,"OpenEndLines",2)}))},carrouselChoiceBackgound:F})}},71253:function(e,t,n){"use strict";var r=n(25371),i=n(25974),o=n(96900);t.Z=(0,r.QM)({choiceList:{composes:"choice-list",display:function(e){var t=e.displayType;return t===i.c.Horizontal||t===i.c.HorizontalColumns?"flex":null},flexWrap:"wrap",alignItems:"flex-start"},choiceListTableHorizontal:{composes:"choice-list--table--horizontal",display:"flex",flexWrap:"wrap"},choiceListTableVertical:{composes:"choice-list--table--vertical"},choiceListGrid:{composes:"choice-list--grid",display:"grid",gridAutoFlow:function(e){return e.displayType===i.c.VerticalColumns?"column":null},gridGap:function(e){var t=e.theme;return(0,o.$h)(t)?0:t.ChoiceSpacing/2},gridTemplateColumns:function(e){return"repeat("+e.numberOfColumns+", 1fr)"},gridTemplateRows:function(e){return"repeat("+e.numberOfRows+", auto)"},overflowWrap:"anywhere","&>.choice":{margin:0,minWidth:125},"& .choice__container":{alignItems:"start",minWidth:90}},checkBoxAlignment:{"& .choice__container":{flexDirection:function(e){return"right"===e.theme.CheckBoxIconAlignment?"row-reverse":"row"}}},radioIconAlignment:{"& .choice__container":{flexDirection:function(e){return"right"===e.theme.RadioIconAlignment?"row-reverse":"row"}}}})},99076:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(67294),i=n(48278),o=n(95457),a=n(41744),s=n(39822),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function l(e){var t=e.choice,n=e.name,l=e.value,u=e.label,m=e.isSelected,d=e.onOpenEndBlur,f=e.onOpenEndChange,p=e.size,h=e.lines;return(0,s.vo)(t)?(0,o.Ag)(t,"DisplayOpenEndOnlyWhenSelected")&&!m?null:r.createElement(a.Z,c({},(0,i.V)(e),{value:l,name:n,label:u,isDisabled:!m,onOpenEndChange:function(e){return f(t,e.target.value)},onOpenEndBlur:function(){return d(e.choice)},validationResult:t.settings.validationResult,size:p,lines:h})):null}},27775:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ge}});var r,i,o=n(67294),a=n(25371),s=n(12291),c=n(94184),l=n.n(c),u=n(16856),m=n(92907),d=n(14121),f=n(95457),p=n(48278),h=(0,a.QM)((function(e){return{gridItem:{composes:"grid__item",margin:0,minWidth:e.GridCellMinWidth,minHeight:e.GridCellMinHeight,padding:e.GridCellPadding},gridItemError:{composes:"grid__item--error"},gridRowHeader:{composes:"grid__row-header",fontWeight:"normal",minWidth:50,textAlign:"left"},gridColumnHeader:{composes:"grid__column-header",fontWeight:"normal",verticalAlign:"top"},gridChoiceHeader:{composes:"grid__choice-header",fontWeight:"bold",verticalAlign:"top"}}})),b=n(47103);!function(e){e[e.Choice=0]="Choice",e[e.Column=1]="Column",e[e.Row=2]="Row"}(i||(i={}));var v=((r={})[i.Choice]={role:"columnheader",scope:"col"},r[i.Column]={role:"columnheader",scope:"col"},r[i.Row]={role:"rowheader",scope:"row"},r);function g(e){var t,n,r=e.row,s=e.column,c=e.validationResult,u=e.isChoiceHeader,m=e.isColumnHeader,p=e.isRowHeader,g=e.colSpan,A=e.children,y=e.choice,C=e.question,_=(0,a.Fg)(),x=h({theme:_}),w=(0,f.yP)(s,"Size"),T=(0,d.iM)(r,s,c)?x.gridItemError:"",E=(0,f.Z9)(r,"Color")?(0,f.yP)(r,"Color"):null,S=(0,f.Z9)(s,"Color")?(0,f.yP)(s,"Color"):null,k=(0,f.Z9)(y,"Color")?(0,f.yP)(y,"Color"):null,B=(null==C?void 0:C.type)===b.ce.StarRatingGrid,N={backgroundColor:E||S||k,width:"Full"===w?"100%":void 0,display:p&&B?"block":null};if(u)n=i.Choice,t=x.gridChoiceHeader;else if(m)n=i.Column,t=x.gridColumnHeader;else{if(!p)return o.createElement("td",{className:l()(x.gridItem,T),colSpan:g,style:N,role:"cell"},A);n=i.Row,t=x.gridRowHeader}var M=v[n],D=M.role,I=M.scope;return o.createElement("th",{className:l()(x.gridItem,t,T),colSpan:g,role:D,scope:I,style:N},A)}var A=n(41744),y=n(89437),C=n(27715),_=n(11325),x=n(6636),w=n(76347),T=n(96994),E=n(85567),S=n(85958),k=n(86204),B=n(35185),N=n(40029),M=n(78632),D=n(1509),I=(0,a.QM)({starRating:{composes:"star-rating",display:"flex",alignItems:"center",touchAction:"none",userSelect:"none",MsUserSelect:"none"},starRatingSpacer:{composes:"star-rating__spacer",verticalAlign:"middle",height:function(e){return e.starHeight},width:7},starRatingStar:function(e){var t=e.theme,n=e.splitWidth,r=e.starHeight;return{color:t.PrimaryColor,verticalAlign:"middle",composes:"star-rating__star",height:r,overflow:"hidden",position:"relative",width:n}},disabled:{opacity:.5,pointerEvents:"none"}}),O=n(57740);function P(e){var t=o.useState(0),n=t[0],r=t[1],i=e.value,s=e.setValue,c=e.elementId,d=e.split,f=void 0===d?1:d,p=e.starWidth,h=void 0===p?24:p,b=e.starHeight,v=void 0===b?24:b,g=e.isDisabled,A=void 0!==g&&g,y=h/f,C=(0,a.Fg)(),_=I({theme:C,starWidth:h,starHeight:v,splitWidth:y});return o.createElement("div",{id:c,className:l()(_.starRating)+" "+(A?_.disabled:""),onMouseOut:A?void 0:function(){return r(0)}},o.createElement("div",{className:"flex"}),function(e){var t=e.maxValue*(e.split||1);return(0,u.w6)(t)}(e).map((function(e){var t=(e+1)/f,a=n>0?t<=n:t<=i,c=o.createElement("div",{className:l()(_.starRatingSpacer)+" "+(A?_.disabled:""),onClick:A?void 0:function(){return s(t)},onMouseOver:A?void 0:function(){return r(t)}});return o.createElement(o.Fragment,{key:e},e%f==0&&c,o.createElement("div",{onClick:A?void 0:function(){return s(t)},onMouseOver:A?void 0:function(){return r(t)},className:l()(_.starRatingStar)+" "+(A?_.disabled:"")},o.createElement(m.G,{style:{position:"absolute",width:h,height:v,left:e%f==0?0:void 0,right:e%f==1?0:void 0},icon:[a?"fas":"far","star"]})),e%f==f-1&&c)})),o.createElement("div",{className:"flex"}),o.createElement(O.Z,{icon:["fas","times"],size:16,onClick:A?void 0:function(){return s(null,!0)},disabled:!0===A}))}var R,L=n(11110),V=n(47643),F=(R=function(e,t){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},R(e,t)},function(e,t){function n(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),q=function(){return q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},q.apply(this,arguments)},U=function(e){function t(t){var n=e.call(this,t)||this;return n.split=function(e){return(0,f.Yu)(e,"SplitStarIn",1)},n.setValue=function(e,t){void 0===t&&(t=!1);var r=n.props.question.variables[0],i=e&&!t?function(t){return t.set(String(e))}:function(e){return e.clear()};n.setMentions(n.props,r.name,i)},n.state={preview:-1,down:!1,value:-1},n}return F(t,e),t.prototype.initializeQuestion=function(t,n){var r=this;e.prototype.initializeQuestion.call(this,t,n),this.setState({value:this.getValue(n)});var i=new Image;i.onload=function(){r.setState({starWidth:i.width,starHeight:i.height})};var o=(0,D.I)(t,"ImageUrl",this.props.language);(0,_.Ew)(o)||(i.src=o)},t.prototype.didUpdateMentions=function(t,n){e.prototype.initializeQuestion.call(this,t,this.props),this.setState({value:this.getValue(this.props)})},t.prototype.maxValue=function(){return e.prototype.maxValue.call(this)||5},t.prototype.getValue=function(e){var t=this.getMention(e)?this.getMentionValue(e):"0";return parseFloat(t)},t.prototype.validate=function(e){var t=this.props,n=t.question,r=t.questionnaire,i=t.showSoftPrompt,o=t.useClientValidation;if((0,L.NA)(n.type,o))return(new M.O).build();var a=n.parent&&this.isAnswerRequired(r,n.parent)&&(0,f.Ag)(n,"AnswerRequired"),s=this.hasMentions(this.props,n.name);if(!i&&a&&!s){var c=(0,f.yP)(n,"CustomErrorMessage")||this.parentCustomError(n.parent);return(new M.O).fail(n.name,c||"IncompleteAnswer").build()}return(new M.O).build()},t.prototype.renderQuestion=function(e){var t=this,n=this.props,r=n.sequencedVariables,i=n.isDisabled,a=r.find((function(e){return e.type===V.x.Continuous}));return o.createElement(P,q({},(0,p.V)(this.props),{containerRef:function(e){t.starRating=e},setValue:this.setValue,starWidth:this.state.starWidth,starHeight:this.state.starHeight,value:this.state.value,maxValue:this.maxValue(),split:this.split(e),elementId:null==a?void 0:a.elementId,isDisabled:!0===i}))},t}(N.X),H=n(14839);function W(e){switch(e.type){case H.Q.CheckBox:return w.J;case H.Q.RadioButton:return T.Y;case H.Q.ImageSelector:return E.d;case H.Q.DropDownList:return k.T;case H.Q.Slider:return B.z;case H.Q.StarRating:return U;default:return S.e}}var z=n(71716),j=n(76529),G=n(96900),Q=(0,a.QM)((function(e){return{grid:{composes:"grid",borderCollapse:"separate",borderSpacing:0,margin:[[0,-e.GridCellPadding]],"& p":{margin:0},paddingBottom:"20px"},choiceGrid:{composes:"choice-grid",width:"100%"},gridContainer:{float:"left",maxWidth:"100%"},gridBody:{composes:"grid__body","& tr:nth-child(even) > th, tr:nth-child(even) > td":{borderTopStyle:"solid",borderTopColor:e.ControlBorderColor,borderTopWidth:e.BorderWidth,borderBottomStyle:"solid",borderBottomColor:e.ControlBorderColor,borderBottomWidth:e.BorderWidth,color:G.oF(e,G.$X(e)),background:G.Fq(e.ControlBackground,e.ControlAlpha)},"& tr > th:first-child, tr > td:first-child":{borderLeftStyle:"solid",borderLeftWidth:e.BorderWidth,borderTopLeftRadius:G.tI(e.BorderRadius),borderBottomLeftRadius:G.tI(e.BorderRadius)},"& tr:nth-child(even) > th:first-child, tr:nth-child(even) > td:first-child":{borderLeftColor:e.ControlBorderColor},"& tr:nth-child(odd) > th:first-child, tr:nth-child(odd) > td:first-child":{borderLeftColor:"transparent"},"& tr > th:last-child, tr > td:last-child":{borderRightStyle:"solid",borderRightWidth:e.BorderWidth,borderTopRightRadius:G.tI(e.BorderRadius),borderBottomRightRadius:G.tI(e.BorderRadius)},"& tr:nth-child(even) > th:last-child, tr:nth-child(even) > td:last-child":{borderRightColor:e.ControlBorderColor},"& tr:nth-child(odd) > th:last-child, tr:nth-child(odd) > td:last-child":{borderRightColor:"transparent"}},gridRow:{composes:"grid__row"},gridRowError:{composes:"grid__row--error"},gridSummary:{composes:"grid__summary",textAlign:"right",background:e.PrimaryColor,border:[[e.BorderWidth,"solid",G.tv(e,e.PrimaryColor)]],borderBottom:0===e.ControlAlpha&&0===e.BorderWidth?[[3,"solid",G.tv(e,e.PrimaryColor)]]:"",borderRadius:Math.min(e.BorderRadius,e.InputHeight/2),lineHeight:e.InputHeight+2*e.BorderWidth+"px",height:e.InputHeight+2*e.BorderWidth,boxSizing:"border-box",padding:[[0,16]],color:G.oF(e,e.PrimaryColor)},label:{composes:"label"},labelLeft:{paddingTop:"inherit",composes:"label-left",marginRight:"5px",textAlign:"left"},labelRight:{paddingTop:"inherit",composes:"label-right",marginLeft:"5px",textAlign:"left"},title:{fontWeight:"bold"},collapsibleGrid:{composes:"collapsible-grid","& > div:last-child":{borderBottom:[[.5,"solid","#eeeeee"]]},".image-choice__target:hover":{boxShadow:"initial"}},collapsibleGridContainer:{borderTop:[[.5,"solid","#eeeeee"]]},collapsibleGridHeader:{composes:"collapsible-grid__header",position:"relative",padding:[[15,0,15,0]],fontWeight:700,cursor:"pointer"},collapsibleGridHeaderCollapse:{composes:"collapsible-grid__header--collapse","& svg":{transform:"rotate(180deg)"}},collapsibleGridArrow:{composes:"collapsible-grid__arrow",position:"absolute",transition:[["transform","400ms","ease-in-out"]],top:0,right:0,bottom:0,fontSize:e.TextFontSize,margin:"auto",marginRight:12},collapsibleGridSeparator:{composes:"collapsible-grid__separator",padding:[[15,0,15,0]],fontWeight:700},collapsibleGridFooter:{composes:"collapsible-grid__footer",padding:[[5,0,15,0]]},choiceList:{composes:"choice-list"}}})),K=n(7495),Z=n(59261),$=n(23269),Y=n(99393),X=n(55796),J=n(46131),ee=n(7171),te=n(89222),ne=n(90977),re=n(5498),ie=function(){return ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ie.apply(this,arguments)},oe=function(e,t){var n=(0,f.yP)(e.question,t);return(0,u.q9)(n,"%")?n:null};function ae(e){var t=e.translatable,n=e.translatableKey,r=e.classes,i=(0,Z.Z)(t,n),a=(0,$.Z)(i);return a?o.createElement("div",{className:r,dangerouslySetInnerHTML:{__html:a}}):null}function se(e){var t=e.classes,n=e.axis;return o.createElement(ae,{translatable:n,translatableKey:"LeftLabel",classes:l()(t.label,t.labelLeft)})}function ce(e){var t=e.classes,n=e.axis;return o.createElement(ae,{translatable:n,translatableKey:"RightLabel",classes:l()(t.label,t.labelRight)})}function le(e){var t=e.classes,n=e.column,r=e.row;return o.createElement(ae,{translatable:r,translatableKey:"Labels_"+(n.index+1),classes:t.title})}function ue(e){var t=e.column,n=e.row,r=e.index;return o.createElement(ae,{translatable:n,translatableKey:"Labels_"+(t.index+1)+"_"+(r+1)})}function me(e){var t=e.choice;return o.createElement(ae,{translatable:t,translatableKey:"TEXT"})}function de(e){var t=e.row,n=void 0!==t.openEndActive&&!t.openEndActive,r=(0,f.Ag)(t,"DisplayIfDisableInstead"),i=t.openEndDisplayIf&&n&&r;return o.createElement(pe,ie({rowOrChoice:t,isHidden:n,isDisabledIfHidden:r,isDisabled:i},e))}function fe(e){var t=e.choice,n=void 0!==t.openEndActive&&!t.openEndActive,r=(0,f.Ag)(t,"DisplayIfDisableInstead"),i=t.openEndDisplayLogic&&n&&r;return o.createElement(pe,ie({rowOrChoice:t,isHidden:n,isDisabledIfHidden:r,isDisabled:i},e))}function pe(e){var t=e.rowOrChoice,n=e.isHidden,r=e.isDisabledIfHidden,i=e.isDisabled,a=(0,Z.Z)(t,"LeftLabel"),s=(0,Z.Z)(t,"TEXT");if(!(0,f.Z9)(t,"OpenEndType"))return null;var c=(0,d.W4)(t),l=e.validationResult,u=e.openEndValue,m=e.onOpenEndBlur,h=e.onOpenEndChange,b=(0,f.yP)(t,"OpenEndSize","Medium"),v=(0,f.Yu)(t,"OpenEndLines",2);return o.createElement(A.Z,ie({},(0,p.V)(e),{name:"V_"+c,label:a||s,isHidden:n,value:u[c],isDisabledRequest:r,isDisabled:i,onOpenEndBlur:function(){return m(t)},onOpenEndChange:function(e){return h(t,e)},validationResult:l,size:b,lines:v,gridRendering:!0}))}function he(e){var t=e.row;if(!(0,d.ky)(t))return null;var n=e.validationResult,r=e.validateSignal;return o.createElement(g,ie({},(0,p.V)(e),{isColumnHeader:(0,d.Ur)(t),isRowHeader:!(0,d.Ur)(t),validationResult:n,row:t}),o.createElement(se,ie({},e,{axis:t})),o.createElement(de,ie({row:t},e)),(0,f.Z9)(t,"OpenEndType")&&o.createElement(C.P,{signal:r,handler:function(){return e.validateRowOpenEnd(t)}}))}function be(e){var t=e.row;if(!(0,d.HD)(t))return null;var n=e.validationResult;return o.createElement(g,ie({},(0,p.V)(e),{isColumnHeader:(0,d.Ur)(t),isRowHeader:!(0,d.Ur)(t),validationResult:n,row:t}),o.createElement(ce,ie({},e,{axis:t})))}function ve(e){return(0,s.v9)((function(t){return t.interview.questionFieldStatus[e]}))}function ge(e){var t,n,r,i=e.question,a=e.row,c=e.column,l=e.variable,u=e.choice,m=e.isCollapsible,f=e.openEndValue,h=e.onOpenEndChange,v=e.onOpenEndBlur,g=(0,te.Y8)(l.name)[0],A=(0,s.v9)((function(e){return e})),C=(0,s.I0)(),_=Ie(u,g),x=(0,d.bX)(i,a,c),w=i.id+"&"+x.name,T=(null==i?void 0:i.type)===b.ce.HybridGrid;T?(r=null===(t=ve(w))||void 0===t?void 0:t.isDisabled,n=r||De(e,g,A,C)):n=De(e,g,A,C),o.useEffect((function(){T&&void 0===r&&C((0,re.tI)([w],n))}),[]);var E=o.useRef(),S=[H.Q.RadioButton,H.Q.CheckBox].includes(c.type);return m&&S?o.createElement(Y.Z,ie({},(0,p.V)(e),{controlType:W(c),gridRendering:!m,openEnd:(f||{})[u.index],onOpenEndChange:h,onOpenEndBlur:v,selected:_,choice:u,variable:l,disabled:n})):o.createElement("div",{key:u.index},o.createElement(y.H,{question:(0,d.bX)(i,a,c),gridRendering:!m,choice:u,choiceRef:E,controlType:W(c),isSelected:_,isDisabled:n,variable:l,executeUpdateForIdAfterSelection:w}))}function Ae(e){var t,n,r=e.row,i=e.column,a=e.validateSignal,s=e.question,c=(0,d.aX)(r,i),l=null===(n=null===(t=s.variables)||void 0===t?void 0:t.find((function(e){return e.name===c.name})).choiceList)||void 0===n?void 0:n.length;return o.createElement(o.Fragment,null,o.createElement(C.P,{key:"signal",handler:function(){return e.validateCell(r,i)},signal:a}),c.choiceList.length>0?c.choiceList.map((function(t){return o.createElement(g,ie({},(0,p.V)(e),{key:t.elementId,validationResult:e.validationResult,row:r,column:i,choice:t}),o.createElement(ge,ie({row:r,column:i,variable:c,choice:t},e)))})):o.createElement("td",{colSpan:l}))}function ye(e){var t,n=e.shouldDisableCell,r=e.validationResult,i=e.question,a=e.showSoftPrompt,c=e.validateSignal,l=e.row,u=e.column,m=(0,s.I0)(),f=(0,d.bX)(i,l,u),h=i.id+"&"+f.name,v=!1,A=i.type===b.ce.HybridGrid;return A?(t=ve(h),v=t?t.isDisabled:n&&n(l,u)):v=n&&n(l,u),o.useEffect((function(){A&&void 0===t&&m((0,re.tI)([h],v))}),[]),o.createElement(g,ie({},(0,p.V)(e),{key:u.index,validationResult:r,row:l,column:u}),o.createElement(K.G.Provider,{value:f},o.createElement(z.g,{key:u.index,question:f,controlType:W(u),gridRendering:!0,showSoftPrompt:a,validateSignal:c,isDisabled:v,executeUpdateForIdAfterSelection:h})))}function Ce(e){var t=e.choice,n=(0,Z.Z)(t,"ImageUrl");return[b.ce.ChoiceGrid,b.ce.NetPromoter].some((function(t){return t===e.question.type}))&&!(0,_.Ew)(n)?o.createElement("img",{src:n,alt:t.name}):null}function _e(e){var t=e.question,n=e.column,r=e.choice,i=t.type===b.ce.NetPromoter,a=o.createElement(o.Fragment,null,o.createElement(fe,ie({choice:r,column:n},e)),o.createElement(Ce,ie({},e,{choice:r})));return i?o.createElement("p",null,a):a}function xe(e){var t=e.columns,n=e.validationResult,r=e.row,i=e.column,a=(0,d.QN)(t);return(0,d.ky)(r)||(a+=1),(0,d.HD)(r)||(a+=1),i.index>0?null:o.createElement(g,ie({},(0,p.V)(e),{key:i.index,colSpan:a,isColumnHeader:!0,validationResult:n,row:r,column:i}),r.type===x.a.Text?o.createElement(ue,ie({},e,{column:i,row:r,index:0})):o.createElement(le,ie({},e,{column:i,row:r})))}function we(e){var t=e.classes,n=e.columns,r=e.validationResult,i=e.row,a=e.question,s=e.isScreenSmall,c=e.showLeftLabels,u=e.showRightLabels,m=(0,d.pI)(i,n,r)?t.gridRowError:"",f={display:s?"block":void 0};return o.createElement("tr",{className:l()(t.gridRow,m),role:"row",style:f},c&&o.createElement(he,ie({},e,{row:i})),n.map((function(t){return i.type===x.a.Variable?o.createElement(K.G.Provider,{key:i.index+"_"+t.index,value:(0,d.bX)(a,i,t)},function(e,t,n){var r,i,a=e.shouldHideCell,s=e.question,c=(0,d.F3)(n);if(a&&a(t,n)){if(c){var l=(0,d.aX)(t,n);if(l.choiceList.length>0)return l.choiceList.map((function(r){return o.createElement(g,ie({},(0,p.V)(e),{key:r.index,validationResult:e.validationResult,row:t,column:n,choice:r}))}));var u=null===(i=(null===(r=s.variables)||void 0===r?void 0:r.find((function(e){return e.name===l.name}))).choiceList)||void 0===i?void 0:i.length;return o.createElement("td",{colSpan:u})}return o.createElement(g,ie({},(0,p.V)(e),{key:n.index,validationResult:e.validationResult,row:t,column:n}))}if(c){var m=t.index+"_"+n.index;return o.createElement(Ae,ie({key:m},e,{row:t,column:n}))}return o.createElement(ye,ie({},e,{row:t,column:n}))}(e,i,t)):(0,d.UY)(i)?o.createElement(xe,ie({key:i.index+"_"+t.index},e,{row:i,column:t})):(0,d.Av)(i)?function(e,t,n){var r,i,a,s=e.question;if((0,d.F3)(n)){var c=null===(r=n.variables.find((function(e){var t;return(null===(t=e.choiceList)||void 0===t?void 0:t.length)>0})))||void 0===r?void 0:r.choiceList;if(!c){var l=null===(i=s.variables)||void 0===i?void 0:i.find((function(e){var t;return(null===(t=e.choiceList)||void 0===t?void 0:t.length)>0})),u=null===(a=null==l?void 0:l.choiceList)||void 0===a?void 0:a.length;return o.createElement("th",{colSpan:u,key:n.index})}return null==c?void 0:c.map((function(r){return o.createElement(g,ie({},(0,p.V)(e),{key:r.index,isChoiceHeader:!0,validationResult:e.validationResult,row:t,column:n,choice:r}),o.createElement(me,ie({},e,{choice:r})),o.createElement(_e,ie({},e,{column:n,choice:r})),o.createElement(C.P,{signal:e.validateSignal,handler:function(){return e.validateChoiceOpenEnd(n,r)}}))}))}var m=e.validationResult;return o.createElement(g,ie({},(0,p.V)(e),{key:n.index,isChoiceHeader:!0,validationResult:m,row:t,column:n}),t.type===x.a.Text?o.createElement(ue,ie({},e,{column:n,row:t,index:0})):o.createElement(le,ie({},e,{column:n,row:t})))}(e,i,t):function(e,t,n){var r,i,a,s=e.question,c=n.variables[0],l=(0,d.F3)(n);if(t.type===x.a.Text&&l)return c.choiceList.map((function(r){return o.createElement(g,ie({},(0,p.V)(e),{key:r.index,isColumnHeader:!0,validationResult:e.validationResult,row:t,column:n,choice:r}),o.createElement(ue,ie({},e,{column:n,row:t,index:r.index})))}));var u=null===(r=null==c?void 0:c.choiceList)||void 0===r?void 0:r.length;n.variables.every((function(e){var t;return 0===(null===(t=e.choiceList)||void 0===t?void 0:t.length)}))||(u=null===(a=null===(i=s.variables)||void 0===i?void 0:i.find((function(e){return e.name===c.name})).choiceList)||void 0===a?void 0:a.length);var m=l&&c?u:1;if(0===m)return null;var f=e.validationResult;return o.createElement(g,ie({},(0,p.V)(e),{key:n.index,colSpan:m,isColumnHeader:!0,validationResult:f,row:t,column:n}),t.type===x.a.Text?o.createElement(ue,ie({},e,{column:n,row:t,index:0})):o.createElement(le,ie({},e,{column:n,row:t})))}(e,i,t)})),u&&o.createElement(be,ie({},e,{row:i})))}function Te(e){var t=e.column,n=e.question,r=e.validationResult,i=e.getColumnRunningTotal,s=(0,a.Fg)(),c=Q({theme:s}),l=(0,Z.Z)(t,"LeftLabel"),u=(0,Z.Z)(t,"RightLabel");return o.createElement(g,ie({},(0,p.V)(e),{key:t.index,validationResult:r,column:t}),o.createElement(J.Z,{size:(0,f.yP)(t,"Size",(0,X.zm)(n)),leftLabel:l,rightLabel:u},o.createElement("div",{className:c.gridSummary},i(t))))}function Ee(e){var t=e.columns,n=function(e){return oe(e,"DefaultColumnsWidth")}(e),r=function(e){return oe(e,"FirstColumnWidth")}(e)||n;return o.createElement("colgroup",null,o.createElement("col",{style:{width:r}}),(0,u.DZ)((0,d.QN)(t),(function(e){return o.createElement("col",{key:e,style:{width:n}})})))}function Se(e){var t=e.columns,n=e.question,r=e.validationResult,i=e.showLeftLabel;return o.createElement("tr",{key:"total",role:"row"},i&&o.createElement(g,ie({},(0,p.V)(e),{isRowHeader:!0,validationResult:r}),o.createElement(ae,{translatable:n,translatableKey:"TotalRowLabel"})),t.map((function(t){return o.createElement(Te,ie({key:t.index},e,{column:t}))})))}function ke(e){var t=e.rows,n=e.question,r=e.language,i=(0,d.fd)(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(t,[n]),r),a=(0,d.Vr)(t,r),s=t.map((function(t){return o.createElement(we,ie({key:t.index},e,{row:t,showLeftLabels:i,showRightLabels:a}))}));return o.createElement(o.Fragment,null,s,n.type===b.ce.RunningTotal&&o.createElement(Se,ie({key:"total"},e,{showLeftLabel:i})))}function Be(e){var t=e.rows;return o.createElement("tr",{key:"header",role:"row"},t.map((function(t){return o.createElement(g,ie({key:t.index},(0,p.V)(e),{isChoiceHeader:!0,validationResult:e.validationResult,row:t}),o.createElement(se,ie({},e,{axis:t})),o.createElement(de,ie({row:t},e)),(0,f.Z9)(t,"OpenEndType")&&o.createElement(C.P,{signal:e.validateSignal,handler:function(){return e.validateRowOpenEnd(t)}}))})))}function Ne(e){var t=e.column,n=e.choice,r=e.rows;if(!(0,s.I0)()((0,ee.og)(n)))return null;var i=r.map((function(r){var i=(0,d.aX)(r,t);if(r.type!==x.a.Variable)return o.createElement(g,ie({},(0,p.V)(e),{key:r.index,isColumnHeader:!1,isRowHeader:!0,validationResult:e.validationResult,row:r,column:t,choice:n}),o.createElement(me,ie({},e,{choice:n})),o.createElement(_e,ie({},e,{column:t,choice:n})),o.createElement(C.P,{signal:e.validateSignal,handler:function(){return e.validateChoiceOpenEnd(t,n)}}));var a=e.validationResult,s=e.validateSignal;return o.createElement(g,ie({},(0,p.V)(e),{key:r.index,validationResult:a,row:r,column:t,choice:n}),o.createElement(C.P,{signal:s,handler:function(){return e.validateCell(r,t)}}),o.createElement(ge,ie({row:r,column:t,variable:i,choice:n},e)))}));return o.createElement("tr",{key:n.index,role:"row"},i)}function Me(e){var t=e.columns;return o.createElement(o.Fragment,null,o.createElement(Be,ie({},e)),t.map((function(t){var n;return null===(n=t.variables.find((function(e){var t;return(null===(t=e.choiceList)||void 0===t?void 0:t.length)>0})))||void 0===n?void 0:n.choiceList.map((function(n){return o.createElement(Ne,ie({key:n.index},e,{column:t,choice:n}))}))})))}function De(e,t,n,r){var i=e.row,o=e.column,a=e.variable,s=e.choice;if(function(e,t,n,r,i){return e.columns.filter((function(e){return e.variables[0]})).some((function(e){var o=(0,d.aX)(t,e);return o.choiceList.some((function(e){var a=(0,f.yP)(e,"DisableColumns");if(!(0,_.Ew)(a)&&(0,ne.qR)(r.interview.variables,o.name).some((function(t){return t.value===e.value}))&&a.replace(/\s/g,"").split(",").find((function(e){return e===n.index.toString()}))){var s=(0,d.aX)(t,n),c=(0,ne.qR)(r.interview.variables,s.name);return c&&c.length>0&&i((0,re.F1)(s.name,(function(e){return e.clear()}))),!0}return!1}))}))}(e,i,o,n,r))return!0;var c=t.filter((function(e){return function(e,t){return t.choiceList.some((function(t){return t.value===e}))}(e.value,a)})),l=parseInt(e.max||(0,f.yP)(o,"MaxAllowedAnswers"),10);return!Number.isNaN(l)&&!Ie(s,t)&&c.length>=l}function Ie(e,t){return t.some((function(t){return t.value===e.value}))}function Oe(e,t){return e.expandedRowsIndices&&e.expandedRowsIndices.includes(t.index)}function Pe(e){var t=e.validateSignal,n=e.shouldHideCell,r=e.columns,i=e.classes,a=e.language,s=e.row,c=r.filter((function(e){return!n||!n(s,e)})),l=c.map((function(t){var n=(0,d.aX)(s,t);return n.choiceList.map((function(r){return o.createElement("div",{key:r.index,className:i.choiceList},o.createElement(ge,ie({row:s,column:t,variable:n,choice:r,label:(0,D.I)(r,"TEXT",a),isCollapsible:!0},e)))}))})),u=(0,d.Vr)([s],a);return o.createElement(j.z,{expanded:Oe(e,s)},o.createElement(C.P,{key:"signal",handler:function(){return e.validateCell(s,c[0])},signal:t}),l,u&&o.createElement("div",{className:i.collapsibleGridFooter},o.createElement(ce,ie({},e,{axis:s}))))}function Re(e){var t=e.classes,n=e.columns,r=e.row;return o.createElement("div",{className:t.collapsibleGridContainer,key:r.index},o.createElement("div",{key:r.index,className:t.collapsibleGridSeparator},o.createElement(le,ie({},e,{column:n[0],row:r}))))}function Le(e){var t=e.classes,n=e.row,r=e.expandRow,i=e.addAccordionRef,a=l()(t.collapsibleGridHeader,!Oe(e,n)&&t.collapsibleGridHeaderCollapse);return o.createElement("div",{className:t.collapsibleGridContainer,key:n.index},o.createElement("div",{className:a,ref:function(e){return i&&i(n.index,e)},onClick:function(){return r(n)}},o.createElement(se,ie({},e,{axis:n})),o.createElement(m.G,{icon:"caret-up",className:t.collapsibleGridArrow})),o.createElement(Pe,ie({},e,{row:n})))}function Ve(e){var t=e.row;switch(t.type){case x.a.Title:return o.createElement(Re,ie({},e,{row:t}));case x.a.Variable:return o.createElement(Le,ie({},e,{row:t}));case x.a.Text:default:return null}}function Fe(e){var t=e.question,n=e.classes,r=e.elementRef,i=function(e){return(0,f.Ag)(e.question,"InverseRendering")}(e)?o.createElement(Me,ie({},e)):o.createElement(ke,ie({},e)),a=t.type===b.ce.ChoiceGrid;return o.createElement("table",{ref:r,className:l()(n.grid,a&&n.choiceGrid)},o.createElement(Ee,ie({},e)),o.createElement("tbody",{className:l()(a&&n.gridBody)},i))}function qe(e){var t=e.classes,n=e.elementRef,r=e.rows;return o.createElement("div",{ref:n,className:t.collapsibleGrid},r.map((function(t){return o.createElement(Ve,ie({key:t.index},e,{row:t}))})))}function Ue(e){var t=o.useRef(null),n=o.useState(),r=n[0],i=n[1],a=o.useState(),s=a[0],c=a[1],l=e.question,u=e.rows,m=e.columns,d=l.type===b.ce.ImageChoiceGrid,f=o.useCallback((function(){var e=t.current.closest(".page__wrapper--dynamic");c(e&&(d||e.clientWidth<r))}),[r,d]);return o.useEffect((function(){if(t.current){var e=t.current.getBoundingClientRect(),n=e.left+e.width;s||r===n||i(n)}}),[r,u,m,s]),We(f),s?o.createElement(qe,ie({},e,{elementRef:t})):o.createElement(Fe,ie({},e,{elementRef:t}))}function He(e){var t=o.useRef(null),n=o.useState(),r=n[0],i=n[1];return We((function(){var e=t.current.closest(".page__wrapper--dynamic");i(null!==e)})),o.createElement(Fe,ie({},e,{isScreenSmall:r,elementRef:t}))}function We(e){o.useEffect((function(){return window.addEventListener("resize",e),e(),function(){window.removeEventListener("resize",e)}}),[e])}function ze(e){var t=e.onReset,n=e.theme,r=(0,K.Z)(),i=(0,Z.Z)(n,"QuestionClearButton")||"Reset",a=(0,Z.Z)(r,"ResetButtonText")||i;return o.createElement(O.Z,{size:"full",text:(0,$.Z)(a),onClick:function(){return t()}})}function je(e){var t=e.question,n=e.rows,r=e.columns;if(t.type===b.ce.StarRatingGrid)return o.createElement(He,ie({},e));var i=[b.ce.ChoiceGrid,b.ce.ImageChoiceGrid].includes(t.type),a=r&&r.length&&r[0].variables.some((function(e){return e.choiceList.some(d.vo)})),s=n.some(d.vo);return!i||s||a?o.createElement(Fe,ie({},e)):o.createElement(Ue,ie({},e))}var Ge=o.memo((function(e){var t=e.question,n=(0,a.Fg)(),r=Q({theme:n}),i=t.type===b.ce.RunningTotal&&function(e){return(0,f.Ag)(e.question,"DisplayResetButton")}(e);return o.createElement(o.Fragment,null,o.createElement(je,ie({},e,{classes:r})),i&&o.createElement(ze,ie({},e)))}))},41744:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67294),i=n(25371),o=n(96900),a=(0,i.QM)({openEnd:{color:function(e){var t=e.theme;return o.oF(t,o.$X(t))},composes:"open-end",margin:function(e){return[[12,e.gridRendering?"auto":0]]},maxWidth:function(e){var t=e.theme,n=e.size;return o.gR(t,n,"Full")},minWidth:function(e){var t=e.theme,n=e.size;return o.Of(t,n,"Full")}},openEndError:{composes:"open-end--error"}}),s=n(14112);function c(e){var t=e.isDisabledRequest,n=e.isDisabled,o=e.isHidden,c=e.onOpenEndBlur,l=e.onOpenEndChange,u=e.name,m=e.value,d=e.label,f=e.size,p=e.lines,h=e.gridRendering,b=e.style,v=e.isMouseDownEventPropagation,g=void 0!==v&&v,A=e.isClickEventPropagation,y=void 0!==A&&A,C=r.useState(!1),_=C[0],x=C[1],w=(0,i.Fg)(),T=a({theme:w,size:f,gridRendering:h});return o&&!t?null:r.createElement("div",{className:T.openEnd},r.createElement(s.Z,{focused:_,freeform:!0,size:"Full"},r.createElement("textarea",{id:u+"_OE_INPUT",name:u+"_OE","aria-label":d,value:m,onChange:l,rows:p,onMouseDown:function(e){g||e.stopPropagation()},onClick:function(e){y||e.stopPropagation()},onFocus:function(){x(!0)},onBlur:function(e){x(!1),c(e)},disabled:n,style:b})))}},52640:function(e,t,n){"use strict";n.d(t,{v:function(){return S},Z:function(){return B}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=n(16856),c=n(47103),l=n(92907),u=n(1509),m=(0,i.QM)({icon:{composes:"validation-error__icon",position:"relative",float:"left",fontSize:30,color:function(e){return e.theme.ErrorColor},marginRight:14.5},dynamicIcon:{left:-44},validationError:{composes:"validation-error",position:"relative",fontWeight:700,color:function(e){return e.theme.ErrorColor},margin:[[14.5,0]]},dynamicValidationError:{left:-41}}),d=n(32833),f=n(23269);function p(e){var t=(0,i.Fg)(),n=m({theme:t}),o=(0,d.Z)(),s=(0,f.Z)(function(e){var t=e.error,n=e.question,r=e.questionnaire,i=e.language;if(!t)return"";var o=function(e){var t=e.error,n=e.question,r=e.language,i="CustomErrorMessage";return t.key===i&&t.message?t.message:(0,u.I)(n,i,r)||function(e,t,n){var r;if(e.type===c.ce.StarRatingGrid&&1===(null===(r=e.columns)||void 0===r?void 0:r.length)){var i=e.columns[0];return(0,u.I)(i,"CustomErrorMessage",n)}return""}(n,0,r)}(e);if(!o){var a=t.key||"InvalidAnswer";o=t.message||(0,u.I)(n,a,i)||(0,u.I)(r,a,i)||a}return function(e,t){return null==e||null==t?e:e.replace(/{(.*?)}/g,(function(e,n){return t[n]}))}(o,t.args)}(e)),p=e.question,h=e.error,b=o&&o.minWidth(778);return void 0===h?null:r.createElement(r.Fragment,null,r.createElement(l.G,{icon:"exclamation-circle",className:a()(n.icon,b&&n.dynamicIcon)}),r.createElement("div",{id:p.elementId+"_ERROR",className:a()(n.validationError,b&&n.dynamicValidationError),dangerouslySetInnerHTML:{__html:s}}))}var h=n(11325),b=n(96900),v=(0,i.QM)({question:{composes:"question",position:"relative",margin:function(e){return[[e.theme.QuestionSpacing,-29]]},padding:[[0,29]],"& img, video, iframe":{maxWidth:"100%"}},questionLegend:{composes:"question__legend",width:"100%"},questionName:{composes:"question__name",lineHeight:"inherit",marginTop:29,marginBottom:14.5},questionTitle:{composes:"question__title"},questionText:{composes:"question__text",display:"block",textAlign:function(e){var t=e.theme;return b.E4(t.TextTextAlign)},wordWrap:"break-word",marginBottom:"0.5em"},questionContent:{composes:"question__content",marginTop:29},questionShortText:{composes:"question__short-text"},questionError:{composes:"question--error"},questionValidation:{alignItems:"center",composes:"question__validation",display:"inline-flex"},questionValidationFocus:{borderLeftColor:function(e){return e.theme.ErrorColor},composes:"question__validation-focus"},dynamicQuestionValidationFocus:{borderLeftStyle:"solid",borderLeftWidth:3,left:-30,paddingLeft:30,position:"relative",width:"100%"}}),g=n(84858),A=n(12291);function y(e){var t=e.children;return(0,A.v9)((function(e){return e.application.debugInfo}))?t:null}var C=n(68088),_=n(36539);function x(e){var t=e.question,n=c.ce[t.type];return"question--type-"+(0,s.GL)(n)}function w(e){var t=e.question,n=e.questionnaire,o=e.language,a=e.validationResult,s=(0,i.Fg)(),c=v({theme:s}),l=Object.keys(a.errorsByVariableName)[0],u=a.errorsByVariableName[l];if(u){var m=u[0];if(m)return r.createElement("div",{className:c.questionValidation},r.createElement(p,{question:t,key:m,questionnaire:n,language:o,error:m}))}return r.createElement("div",{className:c.questionValidation})}function T(e){var t=e.question,n=e.title,i=e.classes,o=(0,f.Z)(n);return r.createElement("h2",{id:t.elementId+"_TITLE",className:i.questionTitle,dangerouslySetInnerHTML:{__html:o}})}function E(e){var t=e.text,n=r.useRef(),i=(0,_.L)(n).innerHeight,o=r.useState(0),a=o[0],s=o[1];return r.useLayoutEffect((function(){i>a&&s(i)}),[i,a]),r.createElement("div",{ref:n,style:{minHeight:a}},r.createElement(C.n,{text:t}))}function S(e){var t,n=e.question,i=e.text,o=e.shortText,a=e.classes,s=(0,A.v9)((function(e){return e.interview.device})),l=["ios","mac_os_x","mac_os"].includes(null===(t=null==s?void 0:s.os)||void 0===t?void 0:t.toLowerCase());return r.createElement("div",{id:n.elementId+"_LABEL",className:a.questionText},l?r.createElement(E,{text:i}):r.createElement(C.n,{text:i}),!(0,c.h)(n.type)&&!(0,h.Ew)(o)&&r.createElement(r.Fragment,null,r.createElement("br",null),r.createElement(C.n,{text:o,render:function(e){return r.createElement("p",{className:a.questionShortText,dangerouslySetInnerHTML:{__html:e}})}})))}function k(e){e.isDesktopPreviewView;var t=e.question,n=e.control,i=e.classes,o=r.createElement(r.Fragment,null,n,r.createElement("div",{className:"clear"}));return(0,c.h)(t.type)&&(o=r.createElement(g.Z,null,o)),r.createElement("div",{className:i.questionContent},o)}function B(e){var t=(0,i.Fg)(),n=v({theme:t}),o=(0,d.Z)(),s=o&&o.minWidth(778),c=function(e){var t=e.question,n=e.language;return(0,u.I)(t,"TITLE",n)}(e),l=function(e){var t=e.question,n=e.language;return(0,u.I)(t,"TEXT",n)}(e),m=function(e){var t=e.question,n=e.language;return(0,u.I)(t,"SHORT_TEXT",n)}(e),f=e.questionnaire,p=e.question,b=e.language,g=e.isHidden,A=e.control,C=e.validationResult,_=e.isDesktopPreviewView,E=!C||C.isValid,B=!(0,h.Ew)(c);return r.createElement("section",{id:p.elementId,className:a()(n.question,x(e),!E&&n.questionError),style:{display:g?"none":void 0}},r.createElement(y,null,p.name),!E&&r.createElement(w,{question:p,questionnaire:f,language:b,validationResult:C}),r.createElement("div",{className:a()(!E&&n.questionValidationFocus,!E&&s&&n.dynamicQuestionValidationFocus)},r.createElement("fieldset",{"aria-invalid":!E,"aria-describedby":E?void 0:p.elementId+"_ERROR"},r.createElement("legend",{className:n.questionLegend},B&&r.createElement(T,{question:p,title:c,classes:n}),r.createElement(S,{question:p,text:l,shortText:m,classes:n})),r.createElement(k,{isDesktopPreviewView:_,question:p,control:A,classes:n}))))}},57442:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=(0,i.QM)({textAnswer:{composes:"text-answer"},textAnswerMultiLine:{composes:"text-answer--multi-line"},textAnswerNumeric:{composes:"text-answer--numeric"},textAnswerDateTime:{composes:"text-answer--date-time"}}),c=n(47103),l=n(11325),u=n(14112),m=n(7495),d=n(59261),f=n(95457),p=n(55796);function h(e){var t=r.useState(!1),n=t[0],o=t[1],h=e.gridRendering,b=e.multiline,v=e.inputType,g=e.placeholder,A=e.inputRef,y=e.min,C=e.max,_=e.maxLength,x=e.onBlur,w=e.onFocus,T=e.onKeyDown,E=e.onKeyPress,S=e.onChange,k=e.value,B=e.disabled,N=e.lines,M=e.inputMode,D=(0,i.Fg)(),I=s({theme:D,gridRendering:h}),O=(0,m.Z)(),P=(0,d.Z)(O,"TEXT"),R=(0,d.Z)(O,"LeftLabel"),L=(0,d.Z)(O,"RightLabel"),V=O.parent?O.parent.elementId:O.elementId,F=O.variables[0],q=a()(I.textAnswer,b&&I.textAnswerMultiLine,O.type===c.ce.NumericAnswer&&I.textAnswerNumeric,O.type===c.ce.DateTimeAnswer&&I.textAnswerDateTime),U=function(e){o(!1),x&&x(e)},H=function(e){o(!0),w&&w(e)},W=function(e){return["Date","DateTime","Time"].includes((0,f.yP)(e,"Type"))}(O)?["far","calendar-alt"]:null;return r.createElement(u.Z,{focused:n,freeform:b,size:(0,p.dp)(O),leftLabel:R,rightLabel:L,className:q,accessoryRight:W},b&&r.createElement("textarea",{id:F.elementId+"_INPUT","aria-label":(0,l.IQ)(P),"aria-labelledby":V+"_LABEL",name:F.elementId,rows:N||2,placeholder:g,disabled:B,ref:A,maxLength:_,onBlur:U,onFocus:H,onKeyDown:T,onKeyPress:E,onChange:S,value:null!=k?k:void 0}),!b&&r.createElement("input",{type:v,inputMode:M,id:F.elementId+"_INPUT","aria-label":(0,l.IQ)(P),"aria-labelledby":V+"_LABEL",name:F.elementId,placeholder:g,ref:A,min:y,max:C,maxLength:_,onBlur:U,onFocus:H,onKeyDown:T,onKeyPress:E,onChange:S,disabled:B,value:null!=k?k:void 0,autoComplete:"off",style:{textAlign:M?"right":"inherit"}}))}},29182:function(e,t,n){"use strict";var r=n(25371),i=n(96900);function o(e){return 0===e.ControlAlpha&&0===e.BorderWidth?0:Math.min(e.BorderRadius,e.InputHeight/2)}t.Z=(0,r.QM)((function(e){return{select:{backgroundColor:function(t){return t.autoComplete?(0,i.vQ)(e):(0,i.Fq)(e.ControlBackground,e.ControlAlpha)},border:[[e.BorderWidth,"solid",e.ControlBorderColor]],borderBottom:0===e.ControlAlpha&&0===e.BorderWidth?[[3,"solid",e.ControlBorderColor]]:void 0,borderRadius:o(e),boxSizing:"border-box",color:e.ForegroundColorDark,composes:"select",display:"inline-block",fontSize:function(e){return"XSmall"===e.size&&13},height:e.InputHeight+2*e.BorderWidth,lineHeight:e.InputHeight+"px",position:"relative",transition:"color 200ms, background-color 200ms, box-shadow 200ms, border-color 200ms",verticalAlign:"middle",width:"100%","& div":{cursor:"default"}},selectExpanded:{borderRadius:[[o(e),o(e),0,0]],borderBottom:[[0===e.ControlAlpha&&0===e.BorderWidth?3:0,"solid",e.ControlBorderColor]],composes:"select--expanded"},selectFocused:{backgroundColor:function(t){return t.autoComplete?(0,i.vQ)(e,!0):(0,i.Fq)((0,i._j)(e.ControlBackground,e.ActiveHighlightValue),e.ControlAlpha)},borderColor:(0,i.tv)(e,e.PrimaryColor),composes:"select--focused"},selectContent:{background:"transparent",border:0,boxSizing:"border-box",color:"inherit",composes:"select__content",display:"block",fontFamily:"inherit",fontSize:"inherit",height:"100%",lineHeight:"inherit",outline:"none",overflow:"hidden",padding:function(e){var t=e.icon,n=e.size,r=e.disabled;return"XSmall"===n?[[0,r?16:24,0,t?32:16]]:[[0,r?16:38,0,t?42:16]]},resize:"none",textAlign:"left",textOverflow:"ellipsis",transition:"background-color 200ms, border-color 200ms",WebkitAppearance:"none",whiteSpace:"nowrap",width:"100%"},option:{alignItems:"center",composes:"select__option",cursor:"default",display:"flex",minHeight:e.OptionHeight,outline:"none",padding:[[0,16]],transition:"background-color 200ms, color 200ms",userSelect:"none",color:(0,i.oF)(e,e.ControlBackground),"&:hover":{backgroundColor:(0,i._j)("#fff",e.ActiveHighlightValue)},"&:focus":{background:e.PrimaryColor,color:(0,i.oF)(e,e.PrimaryColor),"&:hover":{backgroundColor:(0,i._j)(e.PrimaryColor,e.ActiveHighlightValue)}},"&:active":{color:(0,i.oF)(e,e.PrimaryColor),backgroundColor:e.PrimaryColor}},optionNonInteractive:{alignItems:"center",composes:"select__option",cursor:"default",display:"flex",minHeight:e.OptionHeight,outline:"none",padding:[[0,16]],userSelect:"none",color:(0,i.Q0)((0,i.oF)(e,(0,i.$X)(e)),2)},message:{alignItems:"center",backgroundColor:e.ControlBackground,composes:"select__message",display:"flex",fontSize:"0.8em",minHeight:e.OptionHeight,outline:"none",padding:[[0,16]]},listbox:{background:"#FFF",listStyleType:"none",composes:"select__listbox",margin:0,maxHeight:8*e.OptionHeight,outline:"none",overflowY:"auto",padding:0,position:"-webkit-sticky"},listboxExpanded:{composes:"select__listbox--expanded",borderBottomLeftRadius:Math.min(e.BorderRadius,e.InputHeight/2),borderBottomRightRadius:Math.min(e.BorderRadius,e.InputHeight/2),position:"relative"},dropDown:{boxSizing:"border-box",composes:"select__listbox--drop-down",position:"sticky",marginTop:"auto",zIndex:10,border:[[1,"solid",e.ControlBorderColor]]},check:{composes:"select__check",marginLeft:12,transition:"opacity 200ms"},hidden:{composes:"select__listbox--hidden",display:"none"},invisible:{opacity:0},icon:{composes:"input-box__accessory",position:"absolute",top:0,bottom:0,fontSize:function(e){return"XSmall"===e.size&&13},margin:"auto",pointerEvents:"none"},iconLeft:{color:(0,i.Q0)(e.ForegroundColorDark,1.6),composes:"input-box__accessory-left",left:0,marginLeft:function(e){return"XSmall"===e.size?8:16}},iconCaret:{composes:"input-box__accessory-right",right:0,marginRight:function(e){return"XSmall"===e.size?8:16}},choiceActive:{composes:"choice--active",background:function(t){var n=t.selected;if(!(0,i.$h)(e))return n?(0,i._j)(e.PrimaryColor,e.ActiveHighlightValue):(0,i._j)(e.ControlBackground,e.ActiveBackgroundValue)},color:function(t){return t.selected?(0,i.oF)(e,(0,i._j)(e.PrimaryColor,e.ActiveHighlightValue)):(0,i.oF)(e,(0,i._j)(e.ControlBackground,e.ActiveBackgroundValue))},outlineColor:function(){return(0,i.$h)(e)&&e.PrimaryColor}}}}))},72431:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r,i=n(67294),o=n(25371),a=n(94184),s=n.n(a),c=n(16856),l=n(29182),u=n(68088),m=n(92907),d=n(23269),f=n(11325),p=n(46131);function h(e){var t=e.option,n=e.typeAhead,r=e.multiple,a=e.selected,c=e.onDetectCharacter,d=e.onSelectOption,p=e.onSelectPreviousOption,h=e.onSelectNextOption,b=e.onSelectFirstOption,v=e.onSelectLastOption,g=e.onCloseListBox,A=(0,o.Fg)(),y=(0,l.Z)({theme:A});return i.createElement("li",{id:t.id,key:t.value,role:"option",onClick:function(e){t.isNonInteractive||(d(t),r||g()),e.preventDefault()},onKeyDown:function(e){return"Enter"===e.key||" "===e.key&&!n.length?(t.isNonInteractive||(d(t),r||g()),void e.preventDefault()):"Escape"===e.key?(g(),void e.preventDefault()):"ArrowUp"===e.key?(p(),void e.preventDefault()):"ArrowDown"===e.key?(h(),void e.preventDefault()):"Home"===e.key?(b(),void e.preventDefault()):"End"===e.key?(v(),void e.preventDefault()):void(c(e.key)&&e.preventDefault())},className:t.isNonInteractive?y.optionNonInteractive:y.option,tabIndex:-1,"aria-label":(0,f.IQ)(t.label),"aria-selected":t.isNonInteractive?void 0:a},i.createElement(u.n,{text:t.label}),i.createElement("div",{className:"flex"}),r&&i.createElement(m.G,{icon:["far","check"],className:s()(y.check,!a&&y.invisible)}))}function b(e){var t=e.options,n=e.multiple,a=e.required,u=e.id,f=e.labelId,b=e.className,v=e.value,g=e.onChange,A=e.size,y=e.icon,C=e.disabled,_=i.useRef(t),x=i.useRef(v),w=i.useMemo((function(){var e=t.filter((function(e){return e.value&&v.includes(e.value)}));return e.length?e:[t[0]]}),[t,v]),T=i.useMemo((function(){return n?t.filter((function(e){return""!==e.value})):t}),[t,n]),E=T.includes(w[0])?w[0]:T[0],S=i.useRef(),k=(0,o.Fg)(),B=(0,l.Z)({theme:k,icon:y,size:A,disabled:C}),N=i.useState(0),M=N[0],D=N[1],I=i.useState(!1),O=I[0],P=I[1],R=i.useState(!1),L=R[0],V=R[1],F=i.useState(""),q=F[0],U=F[1],H=i.useState(E),W=H[0],z=H[1],j=i.useState(!1),G=j[0],Q=j[1];function K(e){z(e)}i.useEffect((function(){x.current=v}),[v]),i.useEffect((function(){_.current=t}),[t]),i.useLayoutEffect((function(){var e;L&&(e=S.current.getBoundingClientRect(),(0,c.Xy)(M,e.width)||D(e.width))}),[L]),i.useEffect((function(){n||z(w[0])}),[n,w]),i.useLayoutEffect((function(){if(L&&W){var e=document.getElementById(W.id);e&&e.focus()}}),[L,W]);var Z=i.useCallback((function(e){g(n?(0,c.dl)(x.current,[e.value]):[e.value])}),[n,g]);function $(e,t){var n=T.indexOf(e),i=t===r.Previous,o=Array.from(Array(Math.abs(n-(i?0:T.length-1))).keys()).map((function(e){return i?Math.abs(e+1-n):e+n+1})).find((function(e){return!T[e].isNonInteractive}));return void 0!==o?T[o]:e}function Y(){var e=T[0];Z(e.isNonInteractive?$(e,r.Next):e)}function X(){var e=T[T.length-1];Z(e.isNonInteractive?$(e,r.Previous):e)}function J(){var e=$(W,r.Previous);n?K(e):Z(e)}function ee(){var e=$(W,r.Next);n?K(e):Z(e)}function te(){V(!1),z(E)}function ne(){V(!0)}function re(e){return!!/^[\w\d\s]$/i.test(e)&&(U(q+e),!0)}i.useEffect((function(){var e;if(q.length){e=setTimeout((function(){U("")}),500);var t=_.current.find((function(e){return e.label.toLowerCase().startsWith(q.toLowerCase())}));t&&z(t)}return function(){e&&window.clearTimeout(e)}}),[q,z]),i.useEffect((function(){function e(e){S.current.contains(e.target)||V(!1)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var ie=[f];w&&ie.push.apply(ie,w.map((function(e){return e.id})));var oe=T.map((function(e){return i.createElement(h,{key:e.id,option:e,typeAhead:q,multiple:n,selected:w.includes(e),onSelectOption:Z,onDetectCharacter:re,onCloseListBox:te,onSelectPreviousOption:J,onSelectNextOption:ee,onSelectFirstOption:Y,onSelectLastOption:X})})),ae=(0,d.Z)(w[0]&&w[0].label);return i.createElement(p.Z,{size:A},i.createElement("div",{ref:S,className:s()(b,B.select,O&&B.selectFocused,L&&B.selectExpanded,G&&B.choiceActive),id:u,onFocus:function(){return Q(!0)},onBlur:function(e){Q(!1);var t=e.relatedTarget||document.activeElement;S.current.contains(t)||te()}},y&&i.createElement(m.G,{icon:y,className:s()(B.icon,B.iconLeft,G&&B.choiceActive),onFocus:function(){return Q(!0)}}),i.createElement("div",{tabIndex:0,role:"button","aria-labelledby":ie.join(" "),className:B.selectContent,onClick:function(e){!0!==C&&(L?te():ne(),e.preventDefault())},onKeyDown:function(e){return"Enter"===e.key||" "===e.key&&!q.length?(L?te():ne(),void e.preventDefault()):"ArrowUp"===e.key?(ne(),J(),void e.preventDefault()):"ArrowDown"===e.key?(ne(),ee(),void e.preventDefault()):void(re(e.key)&&e.preventDefault())},onBlur:function(){return!0!==C&&P(!1)},onFocus:function(){return!0!==C&&P(!0)},"aria-haspopup":"listbox","aria-expanded":L,dangerouslySetInnerHTML:{__html:ae}}),!0!==C&&i.createElement(m.G,{icon:L?"caret-up":"caret-down",className:s()(B.icon,B.iconCaret)}),i.createElement("ul",{role:"listbox",className:s()(B.listbox,B.dropDown,!L&&B.hidden,L&&B.listboxExpanded),style:{minWidth:M},tabIndex:-1,"aria-required":a,"aria-activedescendant":w[0]&&w[0].id},oe)))}!function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(r||(r={}))},57740:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=n(92907),c=n(96900),l=function(e){return"number"==typeof e?e:"small"===e?16:24},u=(0,i.QM)({button:{alignItems:"center",background:function(e){var t=e.theme;return c.Fq(t.ButtonBackground,t.ControlAlpha)},borderRadius:function(e){return e.theme.BorderRadius},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+t.ControlBorderColor+" inset"},boxSizing:"border-box",color:function(e){var t=e.theme;return c.oF(t,c.O0(t))},composes:"button",cursor:"pointer",display:"flex",fontWeight:700,justifyContent:"center",minHeight:function(e){var t=e.theme;return t.InputHeight+2*t.BorderWidth},outline:"none",padding:6,transition:"background 200ms, box-shadow 200ms, color 200ms",userSelect:"none",fontFamily:function(e){return'"'+e.theme.TextFont+'", sans-serif'},"font-size":"16px","line-height":"25.7778px"},buttonActive:{color:function(e){var t=e.theme;return c.oF(t,t.PrimaryColor)},background:function(e){return e.theme.PrimaryColor},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+c._j(t.PrimaryColor,.5)+" inset"}},buttonHidden:{composes:"button--hidden",visibility:"hidden"},buttonDisabled:{composes:"button--disabled",opacity:.7,pointerEvents:"none"},buttonSmall:{composes:"button--small",fontSize:13,fontWeight:"initial",margin:[[0,6]],padding:[[6,12]]},buttonLarge:{composes:"button--large",flexBasis:180,margin:[[12,6]],padding:[[12,12]]},buttonFull:{composes:"button--full",margin:[[27,0]],padding:[[12,12]]},buttonFlex:{composes:"button--flex",flex:1,margin:[[12,6]],padding:[[12,12]]},buttonTextContainer:{composes:"button__text"},buttonBorderNone:{border:"none"},buttonTextAnimated:{transition:"transform 200ms ease-in-out"},buttonTextAnimatedHover:{transform:function(e){return"translate("+("start"===e.iconPosition?"13px":"-13px")+")"}},buttonIconContainer:{composes:"button__container",height:function(e){var t=e.size;return l(t)+"px"},lineHeight:function(e){var t=e.size;return l(t)+"px"},marginLeft:function(e){var t=e.iconPosition,n=e.iconOnHover,r=e.textAndIcon;return"end"===t&&r&&!n?10:0},marginRight:function(e){var t=e.iconPosition,n=e.iconOnHover,r=e.textAndIcon;return"start"===t&&r&&!n?10:0},pointerEvents:"none",position:"relative",verticalAlign:"middle"},buttonIcon:{composes:"button__icon",fontSize:function(e){var t=e.size;return l(t)},width:function(e){var t=e.size;return l(t)},left:function(e){var t=e.iconPosition,n=e.iconOnHover,r=e.textAndIcon;return"start"===t&&r&&!n?0:-12},position:function(e){var t=e.iconOnHover;return e.textAndIcon&&t?"absolute":"initial"},right:function(e){var t=e.iconPosition,n=e.iconOnHover,r=e.textAndIcon;return"end"===t&&r&&!n?0:-12},textAlign:"center"},buttonIconAnimated:{opacity:0,transform:function(e){return"translate("+("start"===e.iconPosition?"5px":"-5px")+")"},transition:"transform 200ms ease-in-out, opacity 200ms ease-in-out"},buttonIconAnimatedHover:{opacity:1,transform:function(e){return"translate("+("start"===e.iconPosition?"-8px":"8px")+")"}},buttonIconDisabled:{composes:"button__icon--disabled"},pointer:{cursor:"pointer"}}),m=n(11325),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)};function f(e,t){if("number"==typeof t)return"";switch(t){case"small":return e.buttonSmall;case"full":return e.buttonFull;case"flex":return e.buttonFlex;default:return e.buttonLarge}}function p(e){var t=e.size,n=e.active,o=e.disabled,c=e.icon,l=e.iconPosition,m=e.textAndIcon,d=e.iconOnHover,f=e.imageUrl,p=(0,i.Fg)(),h=u({theme:p,size:t,iconPosition:l,textAndIcon:m,iconOnHover:d});return r.createElement("div",{className:!f&&a()(h.buttonIconContainer,m&&d&&h.buttonIconAnimated,m&&n&&d&&h.buttonIconAnimatedHover)},!f&&r.createElement(s.G,{fixedWidth:!0,className:a()(h.buttonIcon,o&&h.buttonIconDisabled),icon:c}),f&&r.createElement("img",{src:f,className:h.pointer}))}function h(e){var t=e.size,n=e.className,o=e.disabled,s=e.onClick,c=e.active,l=e.hidden,h=e.text,b=e.icon,v=e.iconPosition,g=e.iconOnHover,A=e.displayText,y=e.displayIcon,C=e.imageUrl,_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(e,["size","className","disabled","onClick","active","hidden","text","icon","iconPosition","iconOnHover","displayText","displayIcon","imageUrl"]),x="ontouchstart"in window,w=!1!==A&&!(0,m.Ew)(h),T=!1!==y&&null!=b,E=w&&T,S=v||"end",k=(0,i.Fg)(),B=u({theme:k,iconPosition:S}),N=r.useState(!1),M=N[0],D=N[1],I=c||M;return r.createElement("button",d({type:"button","aria-label":h,onFocus:function(){return D(!0)},onBlur:function(){return D(!1)},onMouseOver:function(){return D(!0)},onMouseOut:function(){return D(!1)},onClick:function(){if(!x){if(o)return;s&&s()}},onTouchStart:function(){o||s&&s()},onKeyPress:function(e){o||" "!==e.key&&"Enter"!==e.key||(s&&s(),e.preventDefault())},className:a()(n,!C&&B.button,!C&&B.buttonBorderNone,!C&&f(B,t),I&&!o&&!C&&B.buttonActive,o&&B.buttonDisabled,l&&B.buttonHidden)},_),"start"===S&&T&&r.createElement(p,{size:t,icon:b,iconPosition:S,iconOnHover:g,active:I,textAndIcon:E,disabled:o,imageUrl:C}),w&&!C&&r.createElement("div",{className:a()(B.buttonTextContainer,E&&g&&B.buttonTextAnimated,E&&I&&g&&B.buttonTextAnimatedHover)},h),"end"===S&&T&&r.createElement(p,{size:t,icon:b,active:I,iconPosition:S,textAndIcon:E,disabled:o,iconOnHover:g,imageUrl:C}))}},67927:function(e,t,n){"use strict";n.d(t,{Y:function(){return d}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=n(96900),c=(0,i.QM)({choice:{composes:"choice",background:function(e){var t=e.theme;return e.carrouselChoiceBackgound||(0,s.Fq)(t.ControlBackground,t.ChoiceListBackgroundAlpha)},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.ChoiceListBackgroundBorderWidth+"px "+t.ControlBorderColor+" inset"},borderRadius:function(e){var t=e.theme;return Math.min(t.ChoiceListBackgroundBorderRadius,t.ChoiceHeight/2)},boxSizing:"border-box",cursor:"pointer",display:function(e){var t=e.hasOpenEnd,n=e.openEndSize;return t&&"Full"===n?"block":"flex"},flexWrap:"wrap",margin:function(e){var t=e.theme,n=e.horizontal;return(0,s.LL)(t,n)},color:function(e){var t=e.theme;return(0,s.oF)(t,(0,s.$X)(t))},overflow:"hidden",padding:function(e){var t=e.theme;return(0,s.$h)(t)?[[8,13]]:[[8,26]]},textAlign:function(e){return"right"===e.theme.DisplayChoiceIcon?"right":""},transition:"background 200ms, box-shadow 200ms, outline-color 200ms",userSelect:"none",outline:"2px solid transparent","& .check-box__icon":{display:function(e){return e.theme.ShowCheckboxSettings?"":"none"}},"& .radio__icon":{display:function(e){return e.theme.ShowRadioSettings?"":"none"}}},choiceHeader:{composes:"choice__header",fontWeight:700,margin:function(e){return[[e.theme.ChoiceSpacing,0]]}},choiceText:{composes:"choice__text",fontWeight:700},choiceContainer:{composes:"choice__container",alignItems:"center",display:"flex",flexGrow:1,minWidth:125,flexDirection:function(e){var t=e.theme,n=e.type;return"checkbox"===n&&"right"===t.CheckBoxIconAlignment||"radio"===n&&"right"===t.RadioIconAlignment?"row-reverse":"row"},margin:[[8,8,8,0]]},choiceSelected:{background:function(e){var t=e.theme;return!(0,s.$h)(t)&&t.PrimaryColor},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.ChoiceListBackgroundBorderWidth+"px "+(0,s.tv)(t,t.PrimaryColor)+" inset"},color:function(e){var t=e.theme;return(0,s.$h)(t)?t.PrimaryColor:(0,s.oF)(t,t.PrimaryColor)},composes:"choice--selected"},choiceHover:{composes:"choice--hover",background:function(e){var t=e.theme,n=e.selected;if(!(0,s.$h)(t))return n?(0,s._j)(t.PrimaryColor,t.ActiveHighlightValue):(0,s._j)(t.ControlBackground,t.ActiveBackgroundValue)},color:function(e){var t=e.theme;return e.selected?(0,s.oF)(t,(0,s._j)(t.PrimaryColor,t.ActiveHighlightValue)):(0,s.oF)(t,(0,s._j)(t.ControlBackground,t.ActiveBackgroundValue))},boxShadow:function(e){var t=e.theme,n=e.selected;return"0 0 0 "+t.ChoiceListBackgroundBorderWidth+"px "+(0,s.tv)(t,n?(0,s._j)(t.PrimaryColor,t.ActiveHighlightValue):(0,s._j)(t.ControlBackground,t.ActiveHighlightValue))+" inset"}},choiceActive:{composes:"choice--active",background:function(e){var t=e.theme,n=e.selected;if(!(0,s.$h)(t))return n?(0,s._j)(t.PrimaryColor,t.ActiveHighlightValue):(0,s._j)(t.ControlBackground,t.ActiveBackgroundValue)},color:function(e){var t=e.theme;return e.selected?(0,s.oF)(t,(0,s._j)(t.PrimaryColor,t.ActiveHighlightValue)):(0,s.oF)(t,(0,s._j)(t.ControlBackground,t.ActiveBackgroundValue))},outlineColor:function(e){var t=e.theme;return(0,s.$h)(t)&&t.PrimaryColor}},spacer:{width:20,flex:1}}),l=n(69886),u=n(38871),m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function d(e){var t=e.id,n=e.disabled,o=e.label,s=e.type,d=e.className,f=e.hasOpenEnd,p=e.openEndSize,h=e.horizontal,b=e.selected,v=e.onSelect,g=e.onKeyDown,A=e.renderChoice,y=e.renderAfter,C=e.carrouselChoiceBackgound,_=r.useState(!1),x=_[0],w=_[1],T=r.useState(!1),E=T[0],S=T[1],k=(0,i.Fg)(),B=c({theme:k,selected:b,hasOpenEnd:f,openEndSize:p,horizontal:h,type:s,carrouselChoiceBackgound:C}),N="radio"===s?l.X:u.T;return r.createElement("div",{id:t,role:s,"aria-checked":b,"aria-label":o,tabIndex:0,onFocus:function(){return S(!0)},onBlur:function(){return S(!1)},onMouseOver:function(){return w(!0)},onMouseOut:function(){return w(!1)},onKeyDown:g,onMouseDown:function(e){var t=e.target,n=document.activeElement;t.contains(n)||n.blur(),e.preventDefault()},onClick:function(){return v()},className:a().apply(void 0,m([B.choice],[d]||0,[x&&B.choiceHover,E&&B.choiceActive,b&&B.choiceSelected]))},r.createElement("div",{className:B.choiceContainer},A?A():r.createElement(r.Fragment,null,r.createElement(N,{checked:b,disabled:n,hover:x}),"none"!==k.DisplayChoiceIcon&&r.createElement("span",{className:B.spacer}),r.createElement("span",{className:B.choiceText,id:t,dangerouslySetInnerHTML:{__html:o}}))),y&&y())}},38871:function(e,t,n){"use strict";n.d(t,{T:function(){return l}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=(0,i.QM)({checkBoxIcon:{composes:"check-box__icon",verticalAlign:"middle",fontSize:23,pointerEvents:"none","& .custom__Image":{"max-height":"100%"}},checkBoxIconChecked:{composes:"check-box__icon--checked"},checkBoxIconDisabled:{composes:"check-box__icon--disabled",opacity:.5}}),c=n(92907);function l(e){var t=e.checked,n=e.disabled,o=e.hover,l=e.active,u=e.backgroundless,m=(0,i.Fg)(),d=s({theme:m}),f=m.CheckBoxIconType,p=m.TickedImageUrl,h=m.UntickedImageUrl,b=m.PrimaryColor,v=m.ControlBorderColor,g=m.ChoiceListBackgroundAlpha,A=m.ChoiceListBackgroundBorderWidth,y=n?v:b,C=v,_="default"===f||"custom"===f&&(!t&&""===h||t&&""===p),x=u||0===g&&0===A;return x&&(C=l||t?y:v),o&&(C=y),r.createElement("span",{className:a()("fa-layers fa-fw",d.checkBoxIcon,t&&d.checkBoxIconChecked,n&&d.checkBoxIconDisabled)},_&&r.createElement("div",null,r.createElement(c.G,{icon:["fas","square-full"],style:{transition:"color 200ms",color:C,transform:"scale("+21/23+")"}}),r.createElement(c.G,{icon:["fas","square-full"],color:"#fff",style:{transition:"transform 200ms",fontSize:"21px",transform:t&&!x?"":"scale("+17/21+")"}}),r.createElement(c.G,{icon:["fas","check"],color:y,style:{transition:"opacity 200ms",opacity:t?1:0},transform:"shrink-6"})),"custom"===f&&!t&&""!==h&&r.createElement("img",{className:"custom__Image",src:h,alt:"Unticked"}),"custom"===f&&t&&""!==p&&r.createElement("img",{className:"custom__Image",src:p,alt:"Ticked"}))}},76529:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(67294),i=n(7863),o=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};function s(e){var t=this,n=e.expanded,s=e.children,c=r.useRef(null),l=(0,i.q_)({to:n?function(e){return o(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e({display:"block"})];case 1:return t.sent(),[4,e({opacity:1,height:c.current?c.current.clientHeight:0})];case 2:return t.sent(),[4,e({height:""})];case 3:return t.sent(),[2]}}))}))}:function(e){return o(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e({height:c.current?c.current.clientHeight:0})];case 1:return t.sent(),[4,e({opacity:0,height:0})];case 2:return t.sent(),[4,e({display:"none"})];case 3:return t.sent(),[2]}}))}))},from:n?{opacity:1,display:"block",overflow:"hidden"}:{opacity:0,display:"none",overflow:"hidden",height:0},config:{duration:200},delay:200});return r.createElement(i.q.div,{style:l},r.createElement("div",{ref:c,style:{display:"inline-block",width:"100%"}},s))}},7760:function(e,t,n){"use strict";n.d(t,{R:function(){return s}});var r,i=n(67294),o=n(53840),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){return i.createElement("div",{className:"errors-log"},i.createElement("ul",{className:"errors"},this.props.errors.map((function(e,t){return i.createElement("li",{key:t},i.createElement(o.Z,{error:e.error}))}))))},t}(i.PureComponent)},53840:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(67294),i=n(70401),o=n.n(i);function a(e){var t=e.error,n=r.useState("string"==typeof t?t:t.stack),i=n[0],a=n[1];return r.useEffect((function(){"object"==typeof t&&o().fromError(t).then((function(e){a(t.name+": "+t.message+"\n"+e.map((function(e){return"    at "+e.toString()})).join("\n"))}))}),[t]),r.createElement("div",{className:"survey-engine__error"},r.createElement("pre",{className:"survey-engine__error__stack",dangerouslySetInnerHTML:{__html:i}}))}},92907:function(e,t,n){"use strict";n.d(t,{G:function(){return Gt}});var r={};n.r(r),n.d(r,{farAlignLeft:function(){return de.el},farArrowAltCircleLeft:function(){return fe.nP},farArrowAltCircleRight:function(){return pe.JY},farArrowAltLeft:function(){return he._o},farArrowAltRight:function(){return be.G1},farArrowAltSquareLeft:function(){return ve.pM},farArrowAltSquareRight:function(){return ge.$w},farArrowCircleLeft:function(){return Ae.OF},farArrowCircleRight:function(){return ye.FR},farArrowLeft:function(){return Ce.ac},farArrowRight:function(){return _e.eF},farArrowSquareLeft:function(){return xe.jq},farArrowSquareRight:function(){return we.db},farBallotCheck:function(){return Te.lH},farBrackets:function(){return Ee.Wf},farBracketsCurly:function(){return Se.Kg},farCalendar:function(){return ke.fT},farCalendarAlt:function(){return Be.IV},farCaretCircleLeft:function(){return Ne.OP},farCaretCircleRight:function(){return Me.YZ},farCaretDown:function(){return De.eW},farCaretLeft:function(){return Ie.Uu},farCaretRight:function(){return Oe.I4},farCaretSquareLeft:function(){return Pe.ci},farCaretSquareRight:function(){return Re.lL},farCheck:function(){return Le.LE},farCheckCircle:function(){return Ve.f8},farCheckSquare:function(){return Fe.a3},farChevronCircleLeft:function(){return qe.ji},farChevronCircleRight:function(){return Ue.Bc},farChevronDown:function(){return Ge.pt},farChevronLeft:function(){return He.A3},farChevronRight:function(){return We._t},farChevronSquareLeft:function(){return ze.Is},farChevronSquareRight:function(){return je.w7},farChevronUp:function(){return Qe.mT},farCircle:function(){return Ke.di},farCloudUpload:function(){return Ze.KN},farCodeBranch:function(){return $e.mh},farCog:function(){return Ye.b7},farCommentAltLines:function(){return Xe.nH},farDotCircle:function(){return Je._1},farEnvelope:function(){return et.FU},farExclamationTriangle:function(){return tt.eH},farEye:function(){return nt.Md},farFile:function(){return rt.gM},farFileAlt:function(){return it.cw},farFileArchive:function(){return ot.W2},farFileAudio:function(){return at.FM},farFileExcel:function(){return st.ic},farFilePdf:function(){return ct.gS},farFilePowerpoint:function(){return lt.WO},farFileVideo:function(){return ut.hv},farFileWord:function(){return mt.Mf},farFunction:function(){return dt.xF},farGlobeEurope:function(){return ft.bd},farHandPointLeft:function(){return pt.Ai},farHandPointRight:function(){return ht.ww},farICursor:function(){return bt.sd},farImage:function(){return vt.Vm},farImagePolaroid:function(){return gt.jZ},farLanguage:function(){return At.BC},farLink:function(){return yt.nN},farMicrophone:function(){return Ct.UO},farMobileAndroid:function(){return _t.C0},farParagraph:function(){return xt.CK},farPencil:function(){return wt.Tz},farPersonSign:function(){return Tt.TW},farPhone:function(){return Et.j1},farPortalExit:function(){return St.zq},farQuestion:function(){return kt.Ps},farRectangleLandscape:function(){return Bt.wP},farRectanglePortrait:function(){return Nt._c},farRectangleWide:function(){return Mt.r9},farSearch:function(){return Dt.wn},farSignOut:function(){return It.HE},farSlidersH:function(){return Ot.MU},farSortNumericDown:function(){return Pt.C7},farSquare:function(){return Rt.pL},farStar:function(){return Lt.T},farStopwatch:function(){return Vt.U$},farTable:function(){return Ft.B3},farTerminal:function(){return qt.Jw},farTimes:function(){return Ut.NB},farTimesCircle:function(){return Ht.nY},farTimesSquare:function(){return Wt.Jz},farUndoAlt:function(){return zt.R8},farUpload:function(){return jt.cf},fasAlienMonster:function(){return a.kt},fasAngleDown:function(){return s.gc},fasAngleUp:function(){return c.on},fasArrowAltCircleLeft:function(){return l.nP},fasArrowAltCircleRight:function(){return u.JY},fasArrowAltLeft:function(){return m._o},fasArrowAltRight:function(){return d.G1},fasArrowAltSquareLeft:function(){return f.pM},fasArrowAltSquareRight:function(){return p.$w},fasArrowCircleLeft:function(){return h.OF},fasArrowCircleRight:function(){return b.FR},fasArrowFromLeft:function(){return v.Ih},fasArrowLeft:function(){return g.ac},fasArrowRight:function(){return A.eF},fasArrowSquareLeft:function(){return y.jq},fasArrowSquareRight:function(){return C.db},fasCaretCircleLeft:function(){return _.OP},fasCaretCircleRight:function(){return x.YZ},fasCaretDown:function(){return w.eW},fasCaretLeft:function(){return T.Uu},fasCaretRight:function(){return E.I4},fasCaretSquareLeft:function(){return S.ci},fasCaretSquareRight:function(){return k.lL},fasCaretUp:function(){return B.l1},fasCheck:function(){return N.LE},fasCheckCircle:function(){return M.f8},fasCheckSquare:function(){return D.a3},fasChevronCircleLeft:function(){return I.ji},fasChevronCircleRight:function(){return O.Bc},fasChevronLeft:function(){return P.A3},fasChevronRight:function(){return R._t},fasChevronSquareLeft:function(){return L.Is},fasChevronSquareRight:function(){return V.w7},fasCircle:function(){return F.di},fasCog:function(){return q.b7},fasDoorOpen:function(){return U.TE},fasEnvelope:function(){return H.FU},fasExclamation:function(){return W.WV2},fasExclamationCircle:function(){return z.RL},fasFileCheck:function(){return j.tl},fasFlagCheckered:function(){return G.yt},fasGlobe:function(){return Q.g4},fasHandPointLeft:function(){return K.Ai},fasHandPointRight:function(){return Z.ww},fasMailbox:function(){return $.Fn},fasPaperPlane:function(){return Y.XC},fasPencil:function(){return X.Tz},fasSearch:function(){return J.wn},fasShippingFast:function(){return ee.x0},fasSignOut:function(){return ne.HE},fasSignature:function(){return te.Cu},fasSquare:function(){return me.pL},fasSquareFull:function(){return re.Fy},fasStar:function(){return ie.T},fasThumbsUp:function(){return oe.u8},fasTimes:function(){return ae.NB},fasTimesCircle:function(){return se.nY},fasTimesSquare:function(){return ce.Jz},fasUndo:function(){return le.X7},fasVial:function(){return ue.jf}});var i=n(78947),o=n(67814),a=n(42300),s=n(58908),c=n(50332),l=n(36811),u=n(40231),m=n(61651),d=n(74856),f=n(75161),p=n(32479),h=n(53849),b=n(57258),v=n(54327),g=n(19025),A=n(19824),y=n(99038),C=n(67164),_=n(81994),x=n(12442),w=n(77392),T=n(74132),E=n(28402),S=n(69168),k=n(24680),B=n(84226),N=n(903),M=n(90868),D=n(68426),I=n(8670),O=n(62483),P=n(75334),R=n(64746),L=n(81957),V=n(64008),F=n(31563),q=n(63744),U=n(42392),H=n(24372),W=n(92565),z=n(60956),j=n(76442),G=n(8321),Q=n(5229),K=n(83897),Z=n(35422),$=n(5222),Y=n(56928),X=n(40608),J=n(367),ee=n(4155),te=n(5272),ne=n(54385),re=n(84772),ie=n(84887),oe=n(23390),ae=n(91022),se=n(61561),ce=n(80690),le=n(14428),ue=n(89447),me=n(82278),de=n(30276),fe=n(4452),pe=n(14109),he=n(85870),be=n(23353),ve=n(36964),ge=n(27158),Ae=n(82451),ye=n(54427),Ce=n(67992),_e=n(25215),xe=n(15721),we=n(24848),Te=n(79540),Ee=n(80460),Se=n(78220),ke=n(74740),Be=n(98896),Ne=n(94414),Me=n(51047),De=n(51336),Ie=n(36801),Oe=n(97578),Pe=n(34650),Re=n(75622),Le=n(55426),Ve=n(12489),Fe=n(66028),qe=n(35029),Ue=n(16116),He=n(53310),We=n(6874),ze=n(61789),je=n(81229),Ge=n(13910),Qe=n(9581),Ke=n(79148),Ze=n(10806),$e=n(30640),Ye=n(62225),Xe=n(11812),Je=n(64301),et=n(22159),tt=n(17071),nt=n(73834),rt=n(20829),it=n(60171),ot=n(46230),at=n(60369),st=n(17248),ct=n(19711),lt=n(6812),ut=n(85765),mt=n(32472),dt=n(53990),ft=n(76771),pt=n(86545),ht=n(25798),bt=n(71347),vt=n(57770),gt=n(93428),At=n(54245),yt=n(85226),Ct=n(15457),_t=n(16593),xt=n(22057),wt=n(35120),Tt=n(83433),Et=n(49008),St=n(7e3),kt=n(69496),Bt=n(86268),Nt=n(33056),Mt=n(3828),Dt=n(78031),It=n(27009),Ot=n(34199),Pt=n(82051),Rt=n(71975),Lt=n(62361),Vt=n(95015),Ft=n(33001),qt=n(65653),Ut=n(31420),Ht=n(61210),Wt=n(34722),zt=n(77712),jt=n(11333);i.vI.add(r);var Gt=o.G},14112:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(67294),i=n(94184),o=n.n(i),a=n(25371),s=n(96900),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function l(e,t){var n=t.TextFontSize,r=t.BaseFontSize,i=t.InputHeight,o=t.BorderWidth;if(!(e||n>r))return i+2*o}var u=(0,a.QM)({inputBox:function(e){var t=e.theme,n=e.focused,r=e.style,i=e.freeform,o=e.accessoryLeft,a=e.accessoryRight;return c(c({boxSizing:"border-box",color:s.oF(t,s.$X(t)),composes:"input-box",height:l(i,t),lineHeight:i?t.LineHeight+"px":t.InputHeight+"px",overflow:"hidden",position:"relative",transition:"color 200ms, box-shadow 200ms, border-color 200ms",verticalAlign:"top",width:"100%"},r),{"& [type=tel], & [type=number]":{textAlign:"right"},"& select, & input, & textarea, & button":{backgroundColor:s.vQ(t,n),border:[[t.BorderWidth,"solid",n?t.PrimaryColor:t.ControlBorderColor]],borderRadius:0===t.ControlAlpha&&0===t.BorderWidth?0:Math.min(t.BorderRadius,t.InputHeight/2),borderBottom:0===t.ControlAlpha&&0===t.BorderWidth?[[3,"solid",t.ControlBorderColor]]:"",boxSizing:"border-box",color:"inherit",display:"block",fontFamily:"inherit",fontSize:"inherit",height:"100%",lineHeight:"inherit",outline:"none",overflow:"auto",padding:[[4,16]],paddingLeft:o?38:void 0,paddingRight:a?38:void 0,resize:"none",textAlign:"left",transition:"background-color 200ms, border-color 200ms",WebkitAppearance:"none",width:"100%"},"& button":{padding:[[0,16]]},"& textarea":{maxWidth:"100%",minWidth:"100%",resize:"vertical",minHeight:l(!1,t)},"& option":{color:"black"}})},inputBoxFocused:{composes:"input-box--focused"},inputBoxAccessory:{bottom:0,composes:"input-box__accessory",fontSize:function(e){return e.theme.TextFontSize},margin:"auto",pointerEvents:"none",position:"absolute",top:0},inputBoxAccessoryLeft:{composes:"input-box__accessory-left",left:0,marginLeft:16},inputBoxAccessoryRight:{composes:"input-box__accessory-right",right:0,marginRight:16}}),m=n(92907),d=n(46131),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)};function p(e){var t=e.focused,n=e.children,i=e.className,s=e.accessoryLeft,c=e.accessoryRight,l=e.size,p=e.leftLabel,h=e.rightLabel,b=(0,a.Fg)(),v=u(f(f({},e),{theme:b}));return r.createElement(d.Z,{size:l,leftLabel:p,rightLabel:h},r.createElement("div",{className:o()(v.inputBox,t&&v.inputBoxFocused,i)},s&&r.createElement(m.G,{icon:s,className:o()(v.inputBoxAccessory,v.inputBoxAccessoryLeft)}),n,c&&r.createElement(m.G,{icon:c,className:o()(v.inputBoxAccessory,v.inputBoxAccessoryRight)})))}},46131:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=n(96900),c=(0,i.QM)((function(e){return{inputWrapper:{alignItems:"center",composes:"input-wrapper",display:"flex"},inputWrapperLabel:{composes:"input-wrapper__label"},inputWrapperLabelLeft:{composes:"input-wrapper__label-left",marginRight:14.5},inputWrapperLabelRight:{composes:"input-wrapper__label-right",marginLeft:14.5},inputWrapperControl:function(t){var n=t.size;return{composes:"input-wrapper__control",flex:1,maxWidth:(0,s.gR)(e,n),minWidth:(0,s.Of)(e,n)}}}})),l=n(23269);function u(e){var t=e.size,n=e.leftLabel,o=e.rightLabel,s=e.children,u=(0,i.Fg)(),m=c({theme:u,size:t}),d=(0,l.Z)(n),f=(0,l.Z)(o);return r.createElement("div",{className:m.inputWrapper},d&&r.createElement("span",{className:a()(m.inputWrapperLabel,m.inputWrapperLabelLeft),dangerouslySetInnerHTML:{__html:d}}),r.createElement("div",{className:m.inputWrapperControl},s),f&&r.createElement("span",{className:a()(m.inputWrapperLabel,m.inputWrapperLabelRight),dangerouslySetInnerHTML:{__html:f}}))}},65444:function(e,t,n){"use strict";n.d(t,{U:function(){return l}});var r=n(67294),i=n(17126),o=n(25371),a=n.p+"f351fe441207101aa5f6a7ac9c7aa359.png",s=.28,c=(0,o.QM)({preview:{composes:"preview",height:"100%",display:"flex"},previewDesktop:{composes:"preview__desktop",flex:1,overflowY:"auto",position:"relative"},previewMobile:{composes:"preview__mobile",background:"#626262",overflowX:"hidden",overflowY:"auto",position:"relative",display:"flex",alignContent:"center",width:1307*s+96,paddingTop:48,paddingBottom:48,paddingLeft:10},deviceFrame:{composes:"device-frame",width:1307*s,height:2600*s,position:"relative",margin:"auto"},deviceFrameContent:{composes:"device-frame__content",cursor:"not-allowed",position:"absolute",top:200*s,bottom:21.28,left:84*s,right:84*s,background:function(e){return e.theme.PageBackground},overflow:"hidden",overflowY:"auto",scrollbarWidth:"none","& .page":{pointerEvents:"none",userSelect:"none",transform:"scale(0.8)",margin:(1-.8)/2*-100+"%",minHeight:"100%"},"&::-webkit-scrollbar":{width:0,height:0}},deviceFrameImage:{position:"absolute",top:0,bottom:0,left:0,right:0,pointerEvents:"none",backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundImage:"url("+a+")",zIndex:9},deviceFrameTime:{fontFamily:"sans-serif",position:"absolute",zIndex:10,top:30,left:44,width:40,fontSize:12,background:"white",color:"#999",fontWeight:700,letterSpacing:"0.06em"}});function l(e){var t=e.renderDesktop,n=e.renderMobile,a=r.useRef(),s=r.useRef(),l=(0,o.Fg)(),u=c({theme:l}),m=!1,d=r.useCallback((function(e){if(m)m=!1;else{var t=a.current,n=s.current,r=e.target,i=r.scrollTop/(r.scrollHeight-r.clientHeight),o=r===n?t:n;m=!0,o.scrollTop=i*(o.scrollHeight-o.clientHeight)}}),[a.current,s.current]);return r.useEffect((function(){var e=a.current,t=s.current;return e.addEventListener("scroll",d),t.addEventListener("scroll",d),function(){e.removeEventListener("scroll",d),t.removeEventListener("scroll",d)}}),[d]),r.createElement("div",{className:u.preview},r.createElement("div",{className:u.previewDesktop,ref:a},t()),r.createElement("div",{className:u.previewMobile},r.createElement("div",{className:u.deviceFrame},r.createElement("div",{className:u.deviceFrameTime},i.ou.now().toFormat("h:mm")),r.createElement("div",{className:u.deviceFrameImage}),r.createElement("div",{className:u.deviceFrameContent,ref:s},n()))))}},69886:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var r=n(67294),i=n(25371),o=n(94184),a=n.n(o),s=(0,i.QM)({radioIcon:{composes:"radio__icon",verticalAlign:"middle",fontSize:23,pointerEvents:"none","& .custom__Image":{"max-height":"100%"}},radioIconChecked:{composes:"radio__icon--checked"},radioIconDisabled:{composes:"radio__icon--disabled"}}),c=n(92907);function l(e){var t=e.checked,n=e.disabled,o=e.hover,l=e.backgroundLess,u=(0,i.Fg)(),m=s({theme:u}),d=u.PrimaryColor,f=u.ControlBorderColor,p=u.RadioIconType,h=u.TickedRadioImageUrl,b=u.UntickedRadioImageUrl,v=n?f:d,g=f,A="default"===p||"custom"===p&&(!t&&""===b||t&&""===h),y=l||0===u.ControlAlpha&&0===u.BorderWidth;return y&&(g=o||t?v:f),r.createElement("span",{className:a()("fa-layers fa-fw",m.radioIcon,t&&m.radioIconChecked,n&&m.radioIconDisabled)},A&&r.createElement("div",null,r.createElement(c.G,{icon:["fas","circle"],style:{transition:"color 200ms",color:g}}),r.createElement(c.G,{icon:["fas","circle"],color:"#fff",style:{transition:"transform 200ms",transform:t&&!y?"":"scale(0.8)"}}),r.createElement(c.G,{icon:["fas","circle"],color:v,style:{transition:"opacity 200ms",opacity:t?1:0},transform:"shrink-10"})),"custom"===p&&!t&&""!==b&&r.createElement("img",{className:"custom__Image",src:b,alt:"Unticked"}),"custom"===p&&t&&""!==h&&r.createElement("img",{className:"custom__Image",src:h,alt:"Ticked"}))}},84858:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r,i=n(67294),o=n(25371),a=n(31298),s=n(94184),c=n.n(s),l=n(92907),u=n(96900),m=(0,o.QM)((function(e){return{scrollbars:{composes:"scrollbars",overflow:"visible !important"},scrollable:{composes:"scrollable",margin:[[0,-29]],position:"relative"},scrollableWindow:{composes:"scrollable__window",display:"flex"},scrollTrackHorizontal:{left:29,right:29,zIndex:99,bottom:0,height:"16px !important",transition:"opacity 200ms"},scrollTrackHorizontalHidden:{opacity:0},scrollThumbHorizontal:{borderRadius:3,background:e.ControlBorderColor,height:"6px !important",top:5,transition:"height 100ms, border-radius 100ms, top 100ms"},scrollThumbHorizontalActive:{borderRadius:8,top:0,height:"16px !important"},scrollableChild:{composes:"scrollable__child",width:"100%",padding:[[0,29]]},indicator:{composes:"scrollable__scroll-indicator",background:e.ControlBackground,color:(0,u.oF)(e,e.ControlBackground),display:"inline-flex",alignItems:"center",justifyContent:"center",position:"absolute",margin:[[0,-29]],top:14.5,bottom:29,width:29,transition:"opacity 100ms, background 100ms, color 100ms",cursor:"pointer",userSelect:"none",zIndex:99},indicatorLeft:{composes:"scrollable__scroll-indicator--left",left:29,borderTopRightRadius:15,borderBottomRightRadius:15},indicatorRight:{composes:"scrollable__scroll-indicator--right",right:29,borderTopLeftRadius:15,borderBottomLeftRadius:15},indicatorHidden:{composes:"scrollable__scroll-indicator--hidden",opacity:0},icon:{composes:"scrollable__scroll-indicator__icon",color:(0,u.oF)(e,(0,u.$X)(e))}}})),d=function(){return d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d.apply(this,arguments)};function f(e){var t=e.onClick,n=e.direction,a=e.showIndicator,s=(0,o.Fg)(),u=m({theme:s}),d=n===r.Left?["caret-left",u.indicatorLeft]:["caret-right",u.indicatorRight],f=d[0],p=d[1];return i.createElement("div",{className:c()(u.indicator,p,!a&&u.indicatorHidden),onClick:t},i.createElement(l.G,{icon:f,className:u.icon}))}!function(e){e[e.Left=-1]="Left",e[e.Right=1]="Right"}(r||(r={}));var p={scrollLeft:0,scrollWidth:0,clientWidth:0};function h(e){var t=(0,o.Fg)(),n=m({theme:t}),s=i.useRef(void 0),l=i.useState(!1),u=l[0],h=l[1],b=i.useState(!1),v=b[0],g=b[1],A=i.useState(!1),y=A[0],C=A[1],_=i.useState(!1),x=_[0],w=_[1],T=i.useState(!1),E=T[0],S=T[1],k=i.useState(p),B=k[0],N=B.scrollLeft,M=B.scrollWidth,D=B.clientWidth,I=k[1],O=e.children;i.useEffect((function(){if(!u&&!v){var e=setTimeout((function(){return C(!1)}),200);return function(){clearTimeout(e)}}C(!0)}),[u,v]);var P=i.useCallback((function(e){s.current.view&&s.current.view.scrollBy({left:e,behavior:"smooth"})}),[]);function R(e){P(D*e)}return i.useEffect((function(){var e=D<M;w(e&&N>29),S(e&&N+D<M-29)}),[D,M,N]),i.createElement("div",{className:n.scrollable,onMouseOver:function(){return h(!0)},onMouseLeave:function(){return h(!1)}},i.createElement(f,{onClick:function(){return R(r.Left)},direction:r.Left,showIndicator:x}),i.createElement(a.$B,{className:c()(n.scrollbars),ref:s,autoHeight:!0,autoHeightMax:Number.MAX_SAFE_INTEGER,onUpdate:I,onScrollStart:function(){return g(!0)},onScrollStop:function(){return g(!1)},hideTracksWhenNotNeeded:!0,renderTrackHorizontal:function(e){return i.createElement("div",d({},e,{className:c()(n.scrollTrackHorizontal,!y&&n.scrollTrackHorizontalHidden)}))},renderThumbHorizontal:function(e){return i.createElement("div",d({},e,{className:n.scrollThumbHorizontal}))},renderView:function(e){return e.style&&(e.style=d(d({},e.style),{overflow:"visible"})),i.createElement("div",d({},e,{className:n.scrollableWindow}))}},i.createElement("div",{className:n.scrollableChild},O)),i.createElement(f,{onClick:function(){return R(r.Right)},direction:r.Right,showIndicator:E}))}},27715:function(e,t,n){"use strict";n.d(t,{P:function(){return a}});var r,i=n(67294),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.signal,n=e.handler;null!=t&&null!=n&&t.add(n)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,n=t.signal,r=t.handler;e.handler===r&&e.signal===n||(null!=n&&null!=r&&n.remove(r),null!=e.signal&&null!=e.handler&&e.signal.add(e.handler))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.signal,n=e.handler;null!=t&&null!=n&&t.remove(n)},t.prototype.render=function(){return null},t}(i.PureComponent)},26244:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r,i=n(67294),o=n(12291),a=n(7760),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.createElement(a.R,{errors:this.props.errors})},t}(i.PureComponent),l=(0,o.$j)((function(e){return{errors:e.errors}}))(c)},89437:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r,i=n(67294),o=n(12291),a=n(79344),s=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){var e=this.props.controlType;return i.createElement(e,this.props)},t}(i.PureComponent),u=(0,o.$j)((function(e,t){return c(c({},t),{questionnaire:e.interview.questionnaire,language:e.interview.language,mentions:e.interview.variables.mentionsByVariableName[t.variable.name],theme:e.interview.theme,matrix:(0,a.gH)(e.interview.navigation)})}))(l)},71716:function(e,t,n){"use strict";n.d(t,{g:function(){return x}});var r,i=n(67294),o=n(12291),a=n(22222),s=n(16856),c=n(53840),l=n(15899),u=n(30697),m=n(79344),d=n(17837),f=n(95457),p=n(10938),h=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){return b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},b.apply(this,arguments)},v=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n}return h(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.props.question!==e.question&&this.setState({error:void 0})},t.prototype.componentDidCatch=function(e,t){this.setState({error:e})},t.prototype.render=function(){var e=this.state.error;if(e)return i.createElement(c.Z,{error:e});var t=this.props.controlType;return i.createElement(t,b({},this.props))},t}(i.PureComponent),g=(0,a.wN)(a.PW,s.Xy),A=(0,a.wN)(a.PW,(function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=(0,s.XP)(e),r=(0,s.XP)(t),i=n.length;if(i!==r.length)return!1;for(var o=0;o<i;o++){var a=n[o];if(a!==r[o]||e[a]!==t[a])return!1}return!0})),y={current:void 0},C=function(e){return(0,u.__evaluateSafe__)(y.current,e).asBoolean()},_=function(){return C},x=(0,o.$j)((function(){var e=function(e){return e.interview.respondent},t=function(e,t){return t.question},n=function(e,t){return t.question.variableNames},r=function(e){return e.interview.questionnaire},i=function(e){var t;return null===(t=e.interview.navigation)||void 0===t?void 0:t.currentPageOnServer},o=function(e){return e.interview.language},c=function(e){return e.interview.variables.mentionsByVariableName},u=function(e,t){return{includeInvisible:!1,includeSoftPrompt:t.showSoftPrompt}},h=(0,a.P1)([n,c],(function(e,t){return(0,s.ei)(t,e)})),v=(0,a.P1)([n,function(e,t){return t.question.variableDependencies},c],(function(e,t,n){return(0,s.ei)(n,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(e,t))})),C=(0,a.P1)([n,function(e){return e.files.filesByVariableName}],(function(e,t){return(0,s.ei)(t,e)})),x=A(h,(function(e){return e})),w=A(v,(function(e){return e})),T=A(C,(function(e){return e})),E=(0,a.P1)([e,r,t,function(e,t){return t.question.variables},o,i],l.iP),S=(0,a.P1)([e,r,t,o,i],l.uC),k=(0,a.P1)([e,r,t,o,i],l.SW),B=(0,a.P1)([r,t,w,E,_,u,i],p.LP),N=(0,a.P1)([r,t,w,S,_,u,i],p.RC),M=(0,a.P1)([r,t,w,k,_,u,i],p.Bv),D=g(B,(function(e){return e})),I=g(N,(function(e){return e})),O=g(M,(function(e){return e}));return function(e,t){y.current=e.interview;var n=t.question,r=t.onAfterSelection,i=t.executeUpdateForIdAfterSelection,o=t.isDesktopPreviewView,a=(0,f.yP)(n,"MinRequiredAnswers")||(0,f.yP)(n,"MinValue"),s=(0,f.yP)(n,"MaxAllowedAnswers")||(0,f.yP)(n,"MaxValue");return b(b({},t),{min:d.A.evaluateRecalls(e.interview,a),max:d.A.evaluateRecalls(e.interview,s),language:e.interview.language,phone:e.interview.respondent.phone,email:e.interview.respondent.email,timeZone:e.interview.respondent.timeZone,block:(0,m.BQ)(e.interview.navigation),sequencedVariables:D(e,t),sequencedRows:I(e,t),sequencedColumns:O(e,t),questionnaire:e.interview.questionnaire,mentions:x(e,t),matrix:(0,m.gH)(e.interview.navigation),showSoftPrompt:t.showSoftPrompt,onNavigation:t.onNavigation,isDisabled:t.isDisabled,theme:e.interview.theme,files:T(e,t),useClientValidation:e.interview.useClientValidation,onAfterSelection:r,executeUpdateForIdAfterSelection:i,isDesktopPreviewView:o})}}))(v)},31421:function(e,t,n){"use strict";n.d(t,{_:function(){return Pe}});var r,i=n(67294),o=n(12291),a=n(50647),s=n(67792),c=n(95457),l=n(78813),u=n(59479);!function(e){e[e.ExitSurvey=0]="ExitSurvey",e[e.BranchTo=1]="BranchTo"}(r||(r={}));var m=n(78632),d=n(17126),f=n(25371),p=n(94184),h=n.n(p),b=n(67814),v=n(22222),g=n(16856),A=n(30697),y=n(89181),C=n(27715),_=n(5498);function x(e){var t=e.isFormInputFocused,n=(0,o.I0)();return i.useEffect((function(){if(!t){var e=document.querySelector(".question--error");if(e){e.scrollIntoView&&e.scrollIntoView(!0);var r=e.querySelector('.allowFocusOnQuestion, button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');r&&(r.focus(),n((0,_.um)(!0)))}}})),i.createElement(i.Fragment,null)}var w,T=n(55796),E=(w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)},function(e,t){function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.validateSignal=new l.M,t.onValidate=function(e){return t.validateSignal.dispatch(e).reduce((function(e,t){return{isValid:e.isValid&&t.isValid,errorsByVariableName:S(S({},e.errorsByVariableName),t.errorsByVariableName)}}),{isValid:!0,errorsByVariableName:{}})},t}return E(t,e),t.prototype.componentDidUpdate=function(e){var t=this.props.questions;e.questions!==t&&this.scrollToFirstQuestion()},t.prototype.scrollToFirstQuestion=function(){var e=document.getElementsByClassName("questionBlock")[0];null!=e&&e.scrollIntoView(!0)},t.prototype.render=function(){var e=this,t=this.props,n=t.validateSignal,r=t.questions,o=t.dispatch,a=t.questionnaire,s=t.device,c=t.matrixIndex,l=t.interview,u=t.language,m=t.validationByQuestion,d=t.onNavigation,f=t.theme,p=t.isNavigationDisabled,h=t.isFormInputFocused,b=t.isDesktopPreviewView;return i.createElement("main",{className:"question-list",id:"maincontent"},i.createElement(C.P,{signal:n,handler:this.onValidate}),r.map((function(t,n){return i.createElement(y.H,{question:t,dispatch:o,key:t.elementId+".row("+c+")",questionnaire:a,device:s,isHidden:!(0,A.__isQuestionVisible__)(t,l),isSingleOnPage:1===r.filter((function(e){return!(0,T._H)(e)})).length,validateSignal:e.validateSignal,language:u,validationResult:m[n],onNavigation:d,isNavigationDisabled:p,theme:f,isDesktopPreviewView:b})})),i.createElement(x,{isFormInputFocused:h}))},t}(i.PureComponent),B=function(e){return e.interview.navigation.currentPage?e.interview.navigation.currentPage.questions:[]},N=function(e){return e.isFormInputFocused},M=(0,v.P1)((function(e){return e}),(function(e,t){return t}),(function(e,t){var n=(0,g.ei)(e.errorsByVariableName,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(t.variableNames,[t.name]));return{isValid:0===Object.entries(n).length,errorsByVariableName:n}})),D=(0,v.P1)((function(e){return e.interview.validation}),B,(function(e,t){return t.map((function(t){return M(e,t)}))})),I=(0,o.$j)((function(e,t){return S(S({},t),{questions:B(e),questionnaire:e.interview.questionnaire,matrixIndex:e.interview.navigation.currentPage.loopIndex,device:e.interview.device,interview:e.interview,language:e.interview.language,isNavigationDisabled:e.interview.navigation.disabled,validationByQuestion:D(e),isFormInputFocused:N(e),isDesktopPreviewView:t.isDesktopPreviewView})}))(k),O=n(46361),P=(0,f.QM)({navigation:{bottom:0,composes:"navigation",left:0,margin:function(e){return"floating"===e.theme.BottomNavigationPosition?[[0,0]]:[[29,-6]]},position:function(e){return"floating"===e.theme.BottomNavigationPosition&&"fixed"},right:0,display:"flex",flexDirection:"column",justifyContent:"space-between"},navigationLeft:{marginRight:"5%",flex:"1 1 33%",display:"flex",justifyContent:"flex-start",flexWrap:"nowrap","& > .button":{flexBasis:"33%",margin:[["0%","8px"]],padding:[[0,12]]}},navigationCenter:{flex:"1 1 33%",display:"flex",justifyContent:"center",flexWrap:"nowrap","& > .button":{flexBasis:"33%",margin:[["0%","8px"]],padding:[[0,12]]}},navigationRight:{marginLeft:"5%",flex:"1 1 33%",display:"flex",flexWrap:"nowrap",justifyContent:"flex-end","& > .button":{flexBasis:"33%",margin:[["0%","8px"]],padding:[[0,12]]}},navigationButtonContainer:{width:"100%",display:"flex",flexDirection:"row",textAlign:"center","& .button":{margin:function(e){return"floating"===e.theme.BottomNavigationPosition&&0},borderRadius:function(e){return"floating"===e.theme.BottomNavigationPosition&&0}}}}),R=n(57740),L=n(59261),V=n(32833),F=n(79344),q=function(e){var t=e.onClick,n=e.shortcut,r=(0,L.Z)(n,n.blockName);return i.createElement(R.Z,{className:"navigation__shortcut",text:r,key:"Shortcut_"+n.blockName,onClick:t,"data-block":n.blockName,size:"flex"})},U=function(e,t,n){if(e.includes(t)||n){if(e.includes("left"))return"navigationLeft";if(e.includes("right"))return"navigationRight";if(e.includes("center"))return"navigationCenter"}return null};function H(e){var t=e.types,n=e.disabled,r=e.surveyTheme,o=e.onClick,s=e.visibleTypes,c=e.placeholderWhenHidden,l=e.size,u=(0,f.Fg)(),m=t.find((function(e){return s.includes(e)}))||t[0],d=!s.includes(m),p=(0,V.Z)(),h=p&&p.maxWidth(500),b=a.N[m]+"Button",v=u[b+"Type"]||"text",g=u[b+"Icon"]?u[b+"Icon"].split(" "):null,A=u[b+"IconOnHover"],y=u[b+"ImageUrl"]?u[b+"ImageUrl"].split(" "):null,C="text"===v||"textAndIcon"===v,_="icon"===v||"textAndIcon"===v,x="navigation__"+a.N[m].toLowerCase(),w=(0,L.Z)(r,a.N[m]+"Button");return d&&!c?null:i.createElement(R.Z,{className:x,text:w,displayText:!h&&C,icon:g,displayIcon:_||h,iconPosition:m===a.N.Back?"start":"end",iconOnHover:A,hidden:d,disabled:n,onClick:d?void 0:function(){return o(m)},size:l,imageUrl:y})}function W(e){var t=e.shortcuts,n=e.onNavigation,r=e.onNavigateShortcut,s=e.surveyTheme,l=e.disabled,u=e.position,m=(0,f.Fg)(),d=P({theme:m}),p=(0,o.v9)((function(e){return(0,F.BQ)(e.interview.navigation)})),h=p&&(0,c.Ag)(p,"DisplayShortcuts"),b=function(e,t){var n=[],r=e.hasPreviousPage,i=e.hasNextPage,o=e.hideBackButton;return r&&!o&&t.BackButtonVisible&&n.push(a.N.Back),i&&t.QuitButtonVisible&&n.push(a.N.Quit),!i&&t.SubmitButtonVisible?n.push(a.N.Submit):n.push(a.N.Next),n}(e,m),v=function(e,t){return{Back:U(e.BackButtonPlacement,t,e.BackButtonDisplayBothTopBottom),Submit:U(e.SubmitButtonPlacement,t,e.SubmitButtonDisplayBothTopBottom),Next:U(e.NextButtonPlacement,t,e.NextButtonDisplayBothTopBottom),Quit:U(e.QuitButtonPlacement,t,e.QuitButtonDisplayBothTopBottom)}}(m,u);if(0===b.length)return null;var g=m.SubmitButtonPlacement,A="floating"===m.BottomNavigationPosition?"flex":"large",y=function(e){return["Back","Next","Quit"].map((function(t){if(v[t]===e){var r=a.N[t],o=r===a.N.Next?[a.N.Submit,a.N.Next]:[r];return i.createElement(H,{placeholderWhenHidden:!1,disabled:l,surveyTheme:s,visibleTypes:b,onClick:n,types:o,size:A})}return null}))};return i.createElement("nav",{className:d.navigation},i.createElement("div",{className:d.navigationButtonContainer},i.createElement("div",{className:d.navigationLeft},y("navigationLeft")),i.createElement("div",{className:d.navigationCenter},y("navigationCenter")),i.createElement("div",{className:d.navigationRight},y("navigationRight"))),h&&g.includes(u)&&i.createElement("div",{className:d.navigationButtonContainer},t.map((function(e){return i.createElement(q,{key:e.blockName,onClick:function(){return r(e)},shortcut:e})}))))}var z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),j=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onNavigation=function(e){var n=t.props,r=n.disabled,i=n.onNavigation;r||i(e)},t.onNavigateShortcut=function(e){(0,t.props.dispatch)((0,_.$A)(e.blockName,e.type===O.o.NextQuestion))},t}return z(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.shortcuts,r=e.disabled,o=e.hasPreviousPage,a=e.hasNextPage,s=e.hideBackButton,c=e.position;return i.createElement(W,{position:c,surveyTheme:t,hasPreviousPage:o,hasNextPage:a,hideBackButton:s,shortcuts:n,onNavigateShortcut:this.onNavigateShortcut,onNavigation:this.onNavigation,disabled:r})},t}(i.PureComponent),G=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(){return Q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)},K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return G(t,e),t.prototype.render=function(){return i.createElement(j,Q({},this.props))},t}(i.PureComponent),Z=function(e){return e.interview.navigation.currentPage.questions.some((function(t){return(0,A.__isQuestionVisible__)(t,e.interview)&&(0,c.Ag)(t,"HideBackButton")}))||!(0,c.Ag)(e.interview.questionnaire,"ALLOW_BACKWARD_JUMPS")},$=(0,o.$j)((function(e,t){return Q(Q({},t),{shortcuts:e.interview.questionnaire.shortcuts,language:e.interview.language,disabled:e.interview.navigation.disabled,hasNextPage:e.interview.navigation.hasNextPage,hasPreviousPage:e.interview.navigation.hasPreviousPage,hideBackButton:Z(e),theme:e.interview.theme})}))(K),Y=n(96900),X=(0,f.QM)({progress:{composes:"progress",height:function(e){return e.theme.ProgressBarHeight},margin:function(e){return"floating"===e.theme.ProgressBarType?0:[[29,0]]},fontSize:0,position:function(e){var t=e.theme,n=e.isMobilePreview;return"floating"===t.ProgressBarType&&(n?"absolute":"fixed")},top:function(e){var t=e.theme,n=e.position,r=e.simulatedBannerVisible;return"top"===n&&(0,Y.Ml)(t,r)},bottom:function(e){var t=e.theme;return"bottom"===e.position&&(0,Y.Ml)(t)},left:0,width:"100%",zIndex:10},bar:{composes:"progress__bar",zIndex:function(e){return e.isMobilePreview&&1},width:function(e){return e.isMobilePreview&&"100%"},marginLeft:function(e){return e.isMobilePreview&&"0px"},top:function(e){var t=e.isMobilePreview,n=e.position;return t&&"bottom"===n&&"692px"},cursor:function(e){return e.isMobilePreview&&"not-allowed"},transform:function(e){var t=e.isMobilePreview,n=e.position;return t&&"top"===n&&"translateY(0px)"},position:"relative",background:function(e){var t=e.theme;return(0,Y.$X)(t)},borderRadius:function(e){var t=e.theme;return"floating"===t.ProgressBarType?0:Math.min(t.BorderRadius,t.ProgressBarHeight/2)},boxShadow:function(e){var t=e.theme;return"floating"===t.ProgressBarType?void 0:"0 0 0 "+Math.min(t.BorderWidth,1)+"px "+t.ControlBorderColor+" inset"},overflow:"hidden",height:function(e){return e.theme.ProgressBarHeight}},fill:{composes:"progress__fill",position:"absolute",top:0,left:0,bottom:0,transition:"width 600ms ease",background:function(e){return e.theme.PrimaryColor},overflow:"hidden"},innerValue:{position:"absolute",top:0,bottom:0,width:200,marginLeft:-100,textAlign:"center",color:function(e){var t=e.theme;return(0,Y.oj)(t,0)},fontSize:function(e){return e.theme.ProgressBarFontSize},lineHeight:function(e){return e.theme.ProgressBarHeight+"px"}},innerFillValue:{position:"absolute",top:0,bottom:0,width:200,marginLeft:-100,textAlign:"center",color:function(e){var t=e.theme;return(0,Y.oj)(t,100)},fontSize:function(e){return e.theme.ProgressBarFontSize},lineHeight:function(e){return e.theme.ProgressBarHeight+"px"}},bottomRightValue:{width:200,marginLeft:"auto",marginRight:24,fontSize:function(e){return e.theme.ProgressBarFontSize},textAlign:"right"},bottomValue:{width:50,margin:"auto",fontSize:function(e){return e.theme.ProgressBarFontSize},textAlign:"center",color:function(e){var t=e.theme;return(0,Y.oj)(t,100)}},floatingValue:{position:"absolute",top:function(e){return e.theme.ProgressBarHeight+8},width:50,fontSize:function(e){return e.theme.ProgressBarFontSize},textAlign:"center",marginTop:4,marginLeft:-25,color:function(e){var t=e.theme;return(0,Y.oF)(t,t.PrimaryColor)},background:function(e){return e.theme.PrimaryColor},borderRadius:function(e){var t=e.theme;return Math.min(t.BorderRadius,8)},boxShadow:function(e){var t=e.theme;return"0 0 0 "+t.BorderWidth+"px "+(0,Y.tv)(t,t.PrimaryColor)},opacity:"0",pointerEvents:"none",transition:"left 600ms ease, opacity 200ms"},floatingValueHover:{opacity:"1"},floatingValueArrowBorder:{border:[[8,"solid","transparent"]],borderBottomColor:function(e){var t=e.theme;return(0,Y.tv)(t,t.PrimaryColor)},display:"block",content:"",position:"absolute",top:function(e){return-16-e.theme.BorderWidth},left:17},floatingValueArrow:{border:[[8,"solid","transparent"]],borderBottomColor:function(e){return e.theme.PrimaryColor},display:"block",content:"",position:"absolute",top:-16,left:17}}),J=n(89482);function ee(e){var t=e.value,n=e.position,r=Math.max(Math.min(t,100),0),a=(0,o.v9)((function(e){return e.interview.respondent&&e.interview.respondent.simulated})),s=(0,o.v9)((function(e){return e.application.mode!==J.E.Normal}))&&a,c=i.useRef(null),l=i.useState(0),u=l[0],m=l[1],d=i.useState(!1),p=d[0],b=d[1],v=i.useState(!1),A=v[0],y=v[1],C=(0,f.Fg)(),_=X({theme:C,position:n,simulatedBannerVisible:s,isMobilePreview:A}),x=function(e){return e.ProgressBarShowValue?e.ProgressBarHeight>=e.ProgressBarFontSize?"inner":"floating"===e.ProgressBarType?"floating":"bottom":"none"}(C),w=i.useCallback((function(){if(c&&c.current){if("floating"===function(e){return e.ProgressBarType}(C)){var e=c.current.closest(".device-frame");if(e&&!(0,g.G)(e.childNodes,(function(e){return e===c.current}))){var t=(0,g.sE)(e.childNodes,(function(e){return e.getAttribute("data-position")===n}));t&&e.removeChild(t),e.appendChild(c.current)}}y(null!=c.current.closest(".preview__mobile")),m(c.current.getBoundingClientRect().width)}}),[]);return i.useLayoutEffect((function(){return w(),window.addEventListener("resize",w),function(){window.removeEventListener("resize",w)}})),i.createElement("aside",{className:_.progress,onFocus:function(){return b(!0)},onBlur:function(){return b(!1)},onMouseOver:function(){return b(!0)},onMouseOut:function(){return b(!1)}},i.createElement("div",{ref:c,className:_.bar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":r,"data-position":n},"inner"===x&&i.createElement("div",{className:_.innerValue,style:{left:u/2}},Math.round(r)+" %"),i.createElement("div",{className:_.fill,style:{width:r+"%"}},"inner"===x&&i.createElement("div",{className:_.innerFillValue,style:{left:u/2}},Math.round(r)+" %"))),"bottom"===x&&i.createElement("div",{className:_.bottomValue},Math.round(r)+" %"),"floating"===x&&i.createElement("div",{className:h()(_.floatingValue,p&&_.floatingValueHover),style:{left:Math.min(u-50,Math.max(50,u*r/100))}},Math.round(r)+" %",i.createElement("div",{className:_.floatingValueArrowBorder}),i.createElement("div",{className:_.floatingValueArrow})))}var te=n(92907),ne=(0,f.QM)({icon:{composes:"error__icon",display:"inline-block",fontSize:30,marginRight:14.5,verticalAlign:"middle"},errorContainer:{background:function(e){return e.theme.ErrorColor},borderRadius:10,color:function(e){var t=e.theme;return Y.oF(t,t.ErrorColor)},composes:"error__container",margin:[[14.5,0]],padding:[[9.67,14.5]]},errorMessage:{composes:"error__message",fontWeight:700,verticalAlign:"middle"}}),re=n(68088),ie=n(1509);function oe(e){var t=e.language,n=e.questionnaire,r=e.isValid,o=(0,f.Fg)(),a=ne({theme:o});return r?null:i.createElement("div",{className:a.errorContainer,role:"alert"},i.createElement(te.G,{icon:"exclamation-circle",className:a.icon}),i.createElement(re.n,{text:(0,ie.I)(n,"PageHasErrors",t),render:function(e){return i.createElement("span",{className:a.errorMessage,dangerouslySetInnerHTML:{__html:e}})}}))}var ae=(0,f.QM)({page:{composes:"page",height:"100%",color:function(e){var t=e.theme;return Y.oF(t,Y.op(t))},transition:"opacity 2000ms","& hr":{height:0,border:0,margin:function(e){return[[e.theme.PageSeparatorsSpacing,0]]},borderTop:function(e){var t=e.theme;return t.PageSeparatorsWidth+"px solid "+Y.oF(t,Y.op(t))}},"& img, video":{maxWidth:"100%"},"& fieldset":{display:"block",border:0,margin:0,padding:0,"& legend":{margin:0,padding:0}}},pageWrapper:{composes:"page__wrapper",minHeight:"100%",margin:[[0,"auto"]],padding:function(e){return"floating"===e.theme.TopNavigationPosition?[[61,109]]:[[56,109]]},position:"relative",background:function(e){return e.theme.PageWrapperBackground},boxSizing:"border-box",maxWidth:function(e){return e.theme.PageWrapperMaxWidth}},dynamicPageWrapper:{composes:"page__wrapper--dynamic",padding:function(){return 29}},pageContent:{composes:"page__content",paddingTop:29},pageMessage:{composes:"page__message",textAlign:"center",margin:"106px 0",padding:29,border:function(e){return e.theme.BorderWidth+" solid #707070"},borderRadius:function(e){return e.theme.BorderRadius},fontSize:"1.1em"},pageHeader:{composes:"page__header",marginBottom:58,"& h1, h2, h3, h4, h5, h6":{margin:0,padding:0}},pageHeaderLogo:{composes:"header__logo",display:"block",maxWidth:250,maxHeight:250,marginLeft:function(e){return"left"===e.theme.LogoAlign?void 0:"auto"},marginRight:function(e){return"right"===e.theme.LogoAlign?void 0:"auto"}},pageHeaderContent:{composes:"header__content",marginTop:20,outline:"none"},pageFooter:{composes:"page__footer","& h1, h2, h3, h4, h5, h6":{margin:0,padding:0}},legacyBrowserWarningFloating:{composes:"legacy__browser__warning--floating",maxWidth:"450px",position:"fixed",zIndex:2,margin:["2em",0,0,"2em"]},legacyBrowserWarningInline:{composes:"legacy__browser__warning--inline",position:"relative",maxWidth:"100%",margin:[0,0,"1em",0]},legacyBrowserWarningIconContainer:{composes:"legacy-browser-warning__icon__container",position:"absolute",marginTop:"-25px",width:"100%",zIndex:3,display:"flex",justifyContent:"center"},legacyBrowserWarningIconBackground:{composes:"legacy-browser-warning__icon__background",backgroundColor:"#ff9933",height:46,width:46,borderRadius:23,display:"flex",justifyContent:"center"},legacyBrowserWarningContent:{composes:"legacy-browser-warning__content",color:function(e){var t=e.theme;return Y.oF(t,t.ControlBackground)},backgroundColor:function(e){return e.theme.ControlBackground},borderRadius:function(e){return e.theme.BorderRadius},padding:[15,20]},legacyBrowserWarningEmphasis:{composes:"legacy-browser-warning__emphasis",fontWeight:"bold"},legacyBrowserWarningButton:{composes:"legacy-browser-warning__button",textAlign:"center",backgroundColor:function(e){return e.theme.PrimaryColor},color:function(e){var t=e.theme;return Y.oF(t,t.PrimaryColor)},padding:"5px",borderRadius:function(e){return e.theme.BorderRadius},maxWidth:"150px","&:hover":{backgroundColor:function(e){return e.theme.SecondaryColor},cursor:"pointer"}},backlinkContainer:{composes:"backlink-container",position:"sticky",bottom:0,float:"right",padding:["10px","30px"],borderRadius:["5px","0","0","0"],backgroundColor:function(e){var t=e.theme;return Y.Fq(t.PrimaryColor,.4)},color:function(e){var t=e.theme;return Y.oF(t,t.PrimaryColor)},"&:hover":{backgroundColor:function(e){return e.theme.PrimaryColor}}},backlink:{composes:"backlink",color:function(e){var t=e.theme;return Y.oF(t,t.PrimaryColor)}},skiplinkContainer:{composes:"skiplinkContainer","& a":{position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden","&:focus":{position:"static",width:"auto",height:"auto"}}}}),se=n(72431),ce=(0,f.QM)({topNavigation:{alignItems:"center",boxSizing:"border-box",composes:"top-navigation",display:"flex",flexDirection:"row",justifyContent:"flex-end",left:0,marginBottom:function(e){return"wrapper"===e.theme.TopNavigationPosition&&10},paddingRight:function(e){return"floating"===e.theme.TopNavigationPosition&&10},position:function(e){return"floating"===e.theme.TopNavigationPosition&&"absolute"},right:0,top:function(e){return"floating"===e.theme.TopNavigationPosition&&10},zIndex:2},languageSelector:{composes:"top-navigation__language-selector",fontSize:"13px",zIndex:11,marginLeft:"10px"}}),le={iv:{name:"Invariant Language (Invariant Country)",nativeName:"Invariant Language (Invariant Country)"},aa:{name:"Afar",nativeName:"Qafar"},af:{name:"Afrikaans",nativeName:"Afrikaans"},agq:{name:"Aghem",nativeName:"Aghem"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},ar:{name:"Arabic",nativeName:"العربية",isRightToLeft:!0},arn:{name:"Mapudungun",nativeName:"Mapudungun"},as:{name:"Assamese",nativeName:"অসমীয়া"},asa:{name:"Asu",nativeName:"Kipare"},ast:{name:"Asturian",nativeName:"Asturianu"},az:{name:"Azerbaijani",nativeName:"Azərbaycan dili"},ba:{name:"Bashkir",nativeName:"Башҡорт"},bas:{name:"Basaa",nativeName:"Ɓàsàa"},be:{name:"Belarusian",nativeName:"Беларуская"},bem:{name:"Bemba",nativeName:"Ichibemba"},bez:{name:"Bena",nativeName:"Hibena"},bg:{name:"Bulgarian",nativeName:"Български"},bin:{name:"Edo",nativeName:"Ẹ̀dó"},bm:{name:"Bamanankan",nativeName:"Bamanakan"},bn:{name:"Bangla",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"Brezhoneg"},brx:{name:"Bodo",nativeName:"बड़ो"},bs:{name:"Bosnian",nativeName:"Bosanski"},byn:{name:"Blin",nativeName:"ብሊን"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"Нохчийн"},cgg:{name:"Chiga",nativeName:"Rukiga"},chr:{name:"Cherokee",nativeName:"ᏣᎳᎩ"},co:{name:"Corsican",nativeName:"Corsu"},cs:{name:"Czech",nativeName:"Čeština"},cu:{name:"Church Slavic",nativeName:"Церковнослове́нскїй"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},dav:{name:"Taita",nativeName:"Kitaita"},de:{name:"German",nativeName:"Deutsch"},dje:{name:"Zarma",nativeName:"Zarmaciine"},dsb:{name:"Lower Sorbian",nativeName:"Dolnoserbšćina"},dua:{name:"Duala",nativeName:"Duálá"},dv:{name:"Divehi",nativeName:"ދިވެހިބަސް",isRightToLeft:!0},dyo:{name:"Jola-Fonyi",nativeName:"Joola"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ebu:{name:"Embu",nativeName:"Kĩembu"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"Eesti"},eu:{name:"Basque",nativeName:"Euskara"},ewo:{name:"Ewondo",nativeName:"Ewondo"},fa:{name:"Persian",nativeName:"فارسى",isRightToLeft:!0},ff:{name:"Fulah",nativeName:"Fulah"},fi:{name:"Finnish",nativeName:"Suomi"},fil:{name:"Filipino",nativeName:"Filipino"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fur:{name:"Friulian",nativeName:"Furlan"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"Galego"},gn:{name:"Guarani",nativeName:"Avañe’ẽ"},gsw:{name:"Alsatian",nativeName:"Elsässisch"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},guz:{name:"Gusii",nativeName:"Ekegusii"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"Hausa"},haw:{name:"Hawaiian",nativeName:"ʻŌlelo Hawaiʻi"},he:{name:"Hebrew",nativeName:"עברית",isRightToLeft:!0},hi:{name:"Hindi",nativeName:"हिंदी"},hr:{name:"Croatian",nativeName:"Hrvatski"},hsb:{name:"Upper Sorbian",nativeName:"Hornjoserbšćina"},hu:{name:"Hungarian",nativeName:"Magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},ia:{name:"Interlingua",nativeName:"Interlingua"},ibb:{name:"Ibibio",nativeName:"Ibibio-Efik"},id:{name:"Indonesian",nativeName:"Indonesia"},ig:{name:"Igbo",nativeName:"Igbo"},ii:{name:"Yi",nativeName:"ꆈꌠꁱꂷ"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"Inuktitut"},ja:{name:"Japanese",nativeName:"日本語"},jgo:{name:"Ngomba",nativeName:"Ndaꞌa"},jmc:{name:"Machame",nativeName:"Kimachame"},jv:{name:"Javanese",nativeName:"Basa Jawa"},ka:{name:"Georgian",nativeName:"Ქართული"},kab:{name:"Kabyle",nativeName:"Taqbaylit"},kam:{name:"Kamba",nativeName:"Kikamba"},kde:{name:"Makonde",nativeName:"Chimakonde"},kea:{name:"Kabuverdianu",nativeName:"Kabuverdianu"},khq:{name:"Koyra Chiini",nativeName:"Koyra ciini"},ki:{name:"Kikuyu",nativeName:"Gikuyu"},kk:{name:"Kazakh",nativeName:"Қазақ тілі"},kkj:{name:"Kako",nativeName:"Kakɔ"},kl:{name:"Greenlandic",nativeName:"Kalaallisut"},kln:{name:"Kalenjin",nativeName:"Kalenjin"},km:{name:"Khmer",nativeName:"ភាសាខ្មែរ"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kok:{name:"Konkani",nativeName:"कोंकणी"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"کٲشُر"},ksb:{name:"Shambala",nativeName:"Kishambaa"},ksf:{name:"Bafia",nativeName:"Rikpa"},ksh:{name:"Ripuarian",nativeName:"Kölsch"},ku:{name:"Central Kurdish",nativeName:"کوردیی ناوەڕاست",isRightToLeft:!0},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргыз"},la:{name:"Latin",nativeName:"Lingua latīna"},lag:{name:"Langi",nativeName:"Kɨlaangi"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},lkt:{name:"Lakota",nativeName:"Lakȟólʼiyapi"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ລາວ"},lrc:{name:"Northern Luri",nativeName:"لۊری شومالی"},lt:{name:"Lithuanian",nativeName:"Lietuvių"},lu:{name:"Luba-Katanga",nativeName:"Tshiluba"},luo:{name:"Luo",nativeName:"Dholuo"},luy:{name:"Luyia",nativeName:"Luluhia"},lv:{name:"Latvian",nativeName:"Latviešu"},mas:{name:"Masai",nativeName:"Maa"},mer:{name:"Meru",nativeName:"Kĩmĩrũ"},mfe:{name:"Morisyen",nativeName:"Kreol morisien"},mg:{name:"Malagasy",nativeName:"Malagasy"},mgh:{name:"Makhuwa-Meetto",nativeName:"Makua"},mgo:{name:"Metaʼ",nativeName:"Metaʼ"},mi:{name:"Maori",nativeName:"Reo Māori"},mk:{name:"Macedonian",nativeName:"Македонски"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mni:{name:"Manipuri",nativeName:"মৈতৈলোন্"},moh:{name:"Mohawk",nativeName:"Kanien’kéha"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},mua:{name:"Mundang",nativeName:"MUNDAŊ"},my:{name:"Burmese",nativeName:"ဗမာ"},mzn:{name:"Mazanderani",nativeName:"مازرونی"},naq:{name:"Nama",nativeName:"Khoekhoegowab"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"North Ndebele",nativeName:"IsiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},nl:{name:"Dutch",nativeName:"Nederlands"},nmg:{name:"Kwasio",nativeName:"Kwasio"},nn:{name:"Norwegian Nynorsk",nativeName:"Nynorsk"},nnh:{name:"Ngiemboon",nativeName:"Shwóŋò ngiembɔɔn"},nqo:{name:"N'ko",nativeName:"ߒߞߏ",isRightToLeft:!0},nr:{name:"South Ndebele",nativeName:"IsiNdebele"},nso:{name:"Sesotho sa Leboa",nativeName:"Sesotho sa Leboa"},nus:{name:"Nuer",nativeName:"Thok Nath"},nyn:{name:"Nyankole",nativeName:"Runyankore"},oc:{name:"Occitan",nativeName:"Occitan"},om:{name:"Oromo",nativeName:"Oromoo"},or:{name:"Odia",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"Ирон æвзаг"},pa:{name:"Punjabi",nativeName:"ਪੰਜਾਬੀ"},pap:{name:"Papiamento",nativeName:"Papiamentu"},pl:{name:"Polish",nativeName:"Polski"},prg:{name:"Prussian",nativeName:"Prūsiskan"},prs:{name:"Dari",nativeName:"درى",isRightToLeft:!0},ps:{name:"Pashto",nativeName:"پښتو",isRightToLeft:!0},pt:{name:"Portuguese(Brazil)",nativeName:"Português(Brasil)"},quc:{name:"K'iche'",nativeName:"K'iche'"},quz:{name:"Quechua",nativeName:"Runasimi"},rm:{name:"Romansh",nativeName:"Rumantsch"},rn:{name:"Rundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},rof:{name:"Rombo",nativeName:"Kihorombo"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Kinyarwanda"},rwk:{name:"Rwa",nativeName:"Kiruwa"},sa:{name:"Sanskrit",nativeName:"संस्कृत"},sah:{name:"Sakha",nativeName:"Саха"},saq:{name:"Samburu",nativeName:"Kisampur"},sbp:{name:"Sangu",nativeName:"Ishisangu"},sd:{name:"Sindhi",nativeName:"سنڌي",isRightToLeft:!0},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},seh:{name:"Sena",nativeName:"Sena"},ses:{name:"Koyraboro Senni",nativeName:"Koyraboro senni"},sg:{name:"Sango",nativeName:"Sängö"},shi:{name:"Tachelhit",nativeName:"ⵜⴰⵛⵍⵃⵉⵜ"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"Slovenčina"},sl:{name:"Slovenian",nativeName:"Slovenščina"},sma:{name:"Sami (Southern)",nativeName:"Åarjelsaemiengïele"},smj:{name:"Sami (Lule)",nativeName:"Julevusámegiella"},smn:{name:"Sami (Inari)",nativeName:"Anarâškielâ"},sms:{name:"Sami (Skolt)",nativeName:"Sää´mǩiõll"},sn:{name:"Shona",nativeName:"ChiShona"},so:{name:"Somali",nativeName:"Soomaali"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"Srpski"},ss:{name:"siSwati",nativeName:"Siswati"},ssy:{name:"Saho",nativeName:"Saho"},st:{name:"Sesotho",nativeName:"Sesotho"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Kiswahili",nativeName:"Kiswahili"},syr:{name:"Syriac",nativeName:"ܣܘܪܝܝܐ",isRightToLeft:!0},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},teo:{name:"Teso",nativeName:"Kiteso"},tg:{name:"Tajik",nativeName:"Тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tig:{name:"Tigre",nativeName:"ትግረ"},tk:{name:"Turkmen",nativeName:"Türkmen dili"},tn:{name:"Setswana",nativeName:"Setswana"},to:{name:"Tongan",nativeName:"Lea fakatonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"Татар"},twq:{name:"Tasawaq",nativeName:"Tasawaq senni"},tzm:{name:"Central Atlas Tamazight",nativeName:"Tamaziɣt n laṭlaṣ"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە",isRightToLeft:!0},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اُردو",isRightToLeft:!0},uz:{name:"Uzbek",nativeName:"O‘zbek"},vai:{name:"Vai",nativeName:"ꕙꔤ"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},vun:{name:"Vunjo",nativeName:"Kyivunjo"},wae:{name:"Walser",nativeName:"Walser"},wal:{name:"Wolaytta",nativeName:"ወላይታቱ"},wo:{name:"Wolof",nativeName:"Wolof"},xh:{name:"isiXhosa",nativeName:"IsiXhosa"},xog:{name:"Soga",nativeName:"Olusoga"},yav:{name:"Yangben",nativeName:"Nuasue"},yi:{name:"Yiddish",nativeName:"ייִדיש",isRightToLeft:!0},yo:{name:"Yoruba",nativeName:"Èdè Yorùbá"},zgh:{name:"Standard Moroccan Tamazight",nativeName:"ⵜⴰⵎⴰⵣⵉⵖⵜ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"isiZulu",nativeName:"IsiZulu"},yue:{name:"Cantonais",nativeName:"粤语"},mww:{name:"Daw Hmong",nativeName:"Hmong Daw"},ikt:{name:"Inuinnaqtun",nativeName:"Inuinnaqtun"},yua:{name:"Yucatec Maya",nativeName:"mayaʼ tʼàan"},kmr:{name:"Kurdish(Northern)",nativeName:"كوردی"},lzh:{name:"Chinese(Literary)",nativeName:"中文(文言文)"},"tlh-latn":{name:"Klingon",nativeName:"tlhIngan Hol"},"tlh-piqd":{name:"Klingon(plqaD)",nativeName:"tlhIngan Hol(plqaD)"},"fr-ca":{name:"French(Canada)",nativeName:"Français(Canada)"},"iu-latn":{name:"Inuktitut(Latin)",nativeName:"Inuktitut(Latin)"},"pt-pt":{name:"Portuguese",nativeName:"Português"},"zh-hans":{name:"Chinese Traditional",nativeName:"中文(简体)"},"zh-hant":{name:"Chinese Simplified",nativeName:"中文(繁體)"},"mn-cyrl":{name:"Mongolian(Cyrillic)",nativeName:"Монгол хэл(Cyrillic)"},"mn-mong":{name:"Mongolian(Traditional)",nativeName:"Монгол хэл(Traditional)"},"sr-cyrl":{name:"Serbian(Cyrillic)",nativeName:"Srpski(cyrillique)"},"sr-latn":{name:"Serbian(Latin)",nativeName:"Srpski(Latin)"},ab:{name:"Abkhazian",nativeName:"Аҧсуа"},ae:{name:"Avestan",nativeName:"Avesta"},an:{name:"Aragonés",nativeName:"Aragonese"},av:{name:"Avaric",nativeName:"авар мацӀ ; магӀарул мацӀ"},ay:{name:"Aymara",nativeName:"Aymar aru"},bh:{name:"Bihari",nativeName:"भोजपुरी"},bi:{name:"Bislama",nativeName:"Bislama"},ch:{name:"Chamorro",nativeName:"Chamorro"},cr:{name:"Cree",nativeName:"ᐦᐃᔭᐍᐏᐣ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},fj:{name:"Fijian",nativeName:"Vosa Vakaviti"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hz:{name:"Herero",nativeName:"Otjiherero"},ie:{name:"Interlingue",nativeName:"Interlingue"},ik:{name:"Inupiaq",nativeName:"Iñupiaq ; Iñupiatun"},io:{name:"Ido",nativeName:"Ido"},kg:{name:"Kongo",nativeName:"KiKongo"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kv:{name:"Komi",nativeName:"коми кыв"},li:{name:"Limburgish",nativeName:"Limburgs"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mo:{name:"Moldavian",nativeName:"лимба молдовеняскэ"},na:{name:"Nauru",nativeName:"Ekakairũ Naoero"},ng:{name:"Ndonga",nativeName:"Owambo"},no:{name:"Norwegian",nativeName:"Norsk"},nv:{name:"Navajo",nativeName:"Diné bizaad ; Dinékʼehǰí"},ny:{name:"Chichewa",nativeName:"ChiCheŵa ; chinyanja"},oj:{name:"Ojibwa",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},pi:{name:"Pāli",nativeName:"पािऴ"},qu:{name:"Quechua",nativeName:"Runa Simi ; Kichwa"},sc:{name:"Sardinian",nativeName:"sardu"},sh:{name:"Serbo-Croatian",nativeName:"Српскохрватски"},sm:{name:"Samoan",nativeName:"Gagana fa''a Samoa"},su:{name:"Sundanese",nativeName:"Basa Sunda"},tl:{name:"Tagalog",nativeName:"Tagalog"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Mā`ohi"},wa:{name:"Walloon",nativeName:"Walon"},za:{name:"Zhuang",nativeName:"Saw cueŋƅ ; Saw cuengh"}};function ue(e){var t=e.theme,n=(0,f.Fg)(),r=ce({theme:n}),a=n.LanguageSelectorVisible,s=n.ViewResponsesButtonVisible,c=n.LanguageSelectorLabelActive,l=(0,o.I0)(),u=(0,o.v9)((function(e){return e.interview.language})),m=(0,o.v9)((function(e){return e.interview.questionnaire.languages})),d=(0,g.UT)(m,(function(e){return le[e].nativeName.length})),p=le[d].nativeName.length,h=(0,L.Z)(t,"PrintResponsesButton"),b=(0,L.Z)(t,"LanguageSelector"),v=c&&i.createElement("span",null,b);return i.createElement("aside",{className:r.topNavigation,"aria-label":"Top Navigation"},s&&i.createElement(R.Z,{className:"top-navigation__view-responses",text:h,onClick:function(){var e=window.location.href,t=null;e.includes("/S2")?(e=e.split("/S2")[0]+"/S2/Responses/Index?language="+u,t=window.open(e)):t=window.open("Responses/Index?language="+u),t&&t.focus()},size:"small"}),a&&i.createElement(i.Fragment,null,v,i.createElement(se.Z,{id:"LANGUAGE_SELECTOR_INPUT",className:r.languageSelector,value:[u],size:20*p+"px",onChange:function(e){return l((0,_.D0)(e[0]))},icon:"globe",disabled:m.length<2,options:m.map((function(e){return{id:"LANGUAGE_SELECTOR_INPUT_"+e.toUpperCase(),label:le[e.toLowerCase()].nativeName,value:e}}))})))}var me=n(36539),de=(n(53840),n(11325)),fe=n(32086),pe=function(){return pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pe.apply(this,arguments)};function he(e){var t=(0,f.Fg)(),n=ae({theme:t}),r=e.children,o=e.pageRef;return i.createElement("div",{role:"none",className:n.page,ref:o},i.createElement(we,null),r)}function be(e){var t=(0,f.Fg)(),n=ae({theme:t}),r=e.children,o=e.wrapperRef,a=e.dimension;return i.createElement("div",{ref:o,className:h()(n.pageWrapper,a&&a.maxWidth(778)&&n.dynamicPageWrapper)},r)}function ve(e){e.message;var t=(0,f.Fg)(),n=ae({theme:t});return i.createElement("div",{className:n.pageMessage},"An error has occurred.")}function ge(e){var t=e.message,n=e.pageRef,r=e.wrapperRef,o=e.dimension,a=(0,f.Fg)(),s=ae({theme:a});return i.createElement(he,{pageRef:n},i.createElement(be,{wrapperRef:r,dimension:o},i.createElement("div",{className:s.pageContent},"object"==typeof t?i.createElement(ve,{message:t}):i.createElement("div",{className:s.pageMessage,dangerouslySetInnerHTML:{__html:t}}))))}function Ae(e){var t=e.theme,n=(0,f.Fg)(),r=ae({theme:n}),o=(0,L.Z)(t,"Logo"),a=n.LogoDescription;return o?i.createElement("img",{className:r.pageHeaderLogo,src:o,alt:null!=a?a:""}):null}function ye(e){var t=e.theme,n=(0,f.Fg)(),r=ae({theme:n}),o=(0,L.Z)(t,"PageHeader");return i.createElement(i.Fragment,null,i.createElement("header",{className:r.pageHeader},i.createElement(Ae,pe({},e)),i.createElement("div",{id:"PageHeader",className:r.pageHeaderContent,dangerouslySetInnerHTML:{__html:o}})),i.createElement("div",{className:"clear"}))}function Ce(e){var t=e.theme,n=(0,f.Fg)(),r=ae({theme:n}),o=(0,L.Z)(t,"PageFooter");return i.createElement(i.Fragment,null,i.createElement("footer",{className:r.pageFooter,dangerouslySetInnerHTML:{__html:o}}),i.createElement("div",{className:"clear"}))}function _e(e){var t=e.isDisplayWide,n=e.questionnaire,r=e.language,o=(0,fe.O)(),a=(0,f.Fg)(),s=ae({theme:a}),c=(0,ie.I)(n.theme,"acknowledgementButton",r),l=(0,ie.I)(n,"legacyBrowserWarning",r).replace(/([.?!])\s*(?=[A-Z0-9])/g,"$1|").split("|"),u=l[0],m=l.length>1?l.slice(1).join(" "):null;return i.createElement("div",{className:t?s.legacyBrowserWarningFloating:s.legacyBrowserWarningInline},i.createElement("div",{className:s.legacyBrowserWarningIconContainer},i.createElement("div",{className:s.legacyBrowserWarningIconBackground},i.createElement(b.G,{size:"3x",icon:["fas","exclamation"],transform:"shrink-7",color:a.ControlBackground}))),i.createElement("div",{className:s.legacyBrowserWarningContent},i.createElement("div",null,i.createElement("p",{className:s.legacyBrowserWarningEmphasis},u),m&&i.createElement("p",null,m)),i.createElement("div",{className:s.legacyBrowserWarningButton,role:"button",onClick:function(){o((0,_.Uo)(!1))},tabIndex:0,onKeyPress:null},c)))}function xe(){var e=(0,f.Fg)(),t=ae({theme:e});return i.createElement("div",{className:t.backlinkContainer},i.createElement("a",{className:t.backlink,href:"https://www.voxco.com",target:"_blank",rel:"noopener noreferrer"},"Survey Software")," ","Powered by Voxco")}function we(){var e=(0,f.Fg)(),t=ae({theme:e});return i.createElement("div",{className:t.skiplinkContainer},i.createElement("a",{href:"#maincontent"},"Skip to main content"))}function Te(e){var t=e.message,n=e.title,r=e.validateSignal,a=e.onNavigation,s=e.theme,c=e.language,l=e.questionnaire,u=e.isValid,m=e.progress,p=e.isDesktopPreviewView,h=i.useRef(null),b=i.useRef(null),v=(0,me.L)(b),A=v.minWidth(901),y=(0,de.w1)(),C=(0,o.v9)((function(e){return e.interview.questionnaire.settings.ENABLE_LEGACY_BROWSER_WARNING}))&&y;d.Zr.defaultLocale=c;var _=(0,f.Fg)(),x=_.ProgressBarType,w=_.ProgressBarDisplay,T=_.ProgressBarVisible,E=_.LanguageSelectorVisible,S=_.ViewResponsesButtonVisible,k=_.TopNavigationPosition,B=_.BottomNavigationPosition,N=E||S;if(t)return i.createElement(ge,pe({},pe(pe({},e),{pageRef:h,wrapperRef:b,dimension:v})));n&&(document.title=n);var M=m>=0&&T,D=M&&("topAndBottom"===w||"top"===w),O=M&&("topAndBottom"===w||"bottom"===w),P="floating"===x,R=!0;return(0,g.xb)(s.settings)||(R=s.settings.EnableBacklink),i.createElement(V.A.Provider,{value:v},i.createElement(he,{pageRef:h},C&&A&&i.createElement(_e,{isDisplayWide:A,questionnaire:l,language:c}),N&&"floating"===k&&i.createElement(ue,{theme:s}),i.createElement(be,{wrapperRef:b,dimension:v},C&&!A&&i.createElement(_e,{isDisplayWide:A,questionnaire:l,language:c}),N&&"wrapper"===k&&i.createElement(ue,{theme:s}),i.createElement(ye,pe({},e)),i.createElement(oe,{language:c,questionnaire:l,isValid:u}),D&&i.createElement(ee,{value:m,position:"top"}),(!M||!D||P)&&i.createElement("hr",null),"wrapper"===B&&i.createElement($,{position:"top",onNavigation:a}),i.createElement(I,{validateSignal:r,onNavigation:a,theme:s,isDesktopPreviewView:p}),i.createElement("hr",null),"wrapper"===B&&i.createElement($,{position:"bottom",onNavigation:a}),O&&i.createElement(ee,{value:m,position:"bottom"}),i.createElement(Ce,pe({},e))),"floating"===B&&i.createElement($,{position:"bottom",onNavigation:a}),R&&i.createElement(xe,null)))}var Ee,Se=n(34370),ke=n(11110),Be=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ne=function(){return Ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ne.apply(this,arguments)};u.y.on("validatePage",(function(e){return Ee?Ee(e):e}));var Me=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.validateSignal=new l.M,t.onValidate=function(e){if(e.defaultPrevented)return(new m.O).build();var n=t.validateSignal.dispatch(e.options).reduce((function(e,t){return{isValid:e.isValid&&(0,ke.JY)(t),errorsByVariableName:Ne(Ne({},e.errorsByVariableName),t.errorsByVariableName)}}),{isValid:!0,errorsByVariableName:{}});if(!e.options||!e.options.silent){var r=t.props.dispatch;r((0,_.hw)(!1,!0)),r((0,_.oD)(n))}return n},t.onNavigation=function(e){var n=t.props,i=n.questionnaire,o=n.isNavigationDisabled,l=n.useClientValidation,m=n.dispatch;switch(e){case a.N.Next:case a.N.Submit:if(o)break;if(!l){u.y.validatePage({silent:!0}),m((0,_.b$)());break}if("true"!=={}.DISABLE_CLIENT_VALIDATION&&!u.y.trigger("validatePage").isValid){var d=m((0,Se.kv)());m((0,Se.Gu)(d));break}m((0,Se.Lg)());break;case a.N.Back:if(o)break;m((0,_.BL)());break;case a.N.Quit:var f=(0,c.Wd)(i,r,"QUIT_BUTTON_ACTION"),p=(0,c.yP)(i,"QUIT_BUTTON_BRANCH_TO_QUESTION");p&&f===r.BranchTo?m((0,_.Bf)({destination:p,isQuitButton:!0})):m((0,_.mI)(s.$.Interrupted,{forcedQuit:!0}))}},t}return Be(t,e),t.prototype.componentDidMount=function(){var e=this;Ee=this.onValidate,this.resizeImages(),this.setViewportContent(),window.onresize=function(){return e.resizeImages()}},t.prototype.setViewportContent=function(){if(window.navigator.appVersion.includes("iPhone")){var e=document.getElementsByName("viewport")[0],t=e.getAttribute("content");e.setAttribute("content",t+", maximum-scale=1")}},t.prototype.resizeImages=function(){["pageHeader","pageFooter"].forEach((function(e){Array.from(document.getElementsByClassName(e)).forEach((function(e){Array.from(e.getElementsByTagName("img")).forEach((function(e){25!=e.height/window.innerHeight*100&&(e.style.maxHeight=25*window.innerHeight/100+"px",e.style.maxWidth="100%",e.style.height=e.style.height||"auto",e.style.width=e.style.width||"auto")}))}))}))},t.prototype.render=function(){return i.createElement(Te,Ne({onNavigation:this.onNavigation,validateSignal:this.validateSignal},this.props))},t}(i.PureComponent),De=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ie=function(){return Ie=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ie.apply(this,arguments)},Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return De(t,e),t.prototype.componentDidMount=function(){var e=this.props.page;void 0!==e&&e.isReady&&this.onPageReady(e)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){if(this.props.page!==e.page){var t=(0,de.DB)();void 0!==t&&(t.scrollTop=0)}},t.prototype.componentDidUpdate=function(){var e=this.props.page;void 0!==e&&e.isReady&&this.onPageReady(e)},t.prototype.onPageReady=function(e){u.y.trigger("pageReady",e)},t.prototype.render=function(){var e=this.props.page;return i.createElement("div",{role:"region","aria-live":"polite",className:"pageContainer"},(null==e?void 0:e.isReady)&&i.createElement(Me,Ie({},this.props,{progress:e.progress})))},t}(i.PureComponent),Pe=(0,o.$j)((function(e,t){var n=e.interview,r=n.navigation,i=n.questionnaire,o=n.validation,a=n.language,s=n.theme,c=null!=r?r:{},l=c.message,u=c.disabled,m=c.currentPage;return{message:e.isPageMessagesEnabled?l:void 0,questionnaire:i,validation:o,isNavigationDisabled:u,isValid:o.isValid,page:m,language:a,theme:s,title:(0,ie.I)(s,"SurveyTitle",a),useClientValidation:e.interview.useClientValidation,isDesktopPreviewView:t.isDesktopPreviewView}}))(Oe)},68088:function(e,t,n){"use strict";n.d(t,{n:function(){return u}});var r,i=n(67294),o=n(12291),a=n(62299),s=n(5498),c=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.recalled!==e.recalled},t.prototype.compareRender=function(e,t){return e===t||null!=e&&null!=t&&e.toString()===t.toString()},t.prototype.componentDidMount=function(){this.evaluateRecall(this.props)},t.prototype.componentDidUpdate=function(){this.evaluateRecall(this.props)},t.prototype.evaluateRecall=function(e){null!=e.text&&null==e.recalled&&e.dispatch((0,s.U9)(e.text,e.type))},t.prototype.defaultRender=function(e){return i.createElement("span",{dangerouslySetInnerHTML:{__html:e}})},t.prototype.render=function(){var e=this.props.recalled;return null==e&&(e=this.props.text),(this.props.render||this.defaultRender)(e)},t}(i.Component),u=(0,o.$j)((function(e,t){return{recalled:(0,a.j)(e.recall,t.text,t.type)}}))(l)},10938:function(e,t,n){"use strict";n.d(t,{wd:function(){return h},IR:function(){return b},LP:function(){return v},RC:function(){return A},Bv:function(){return C}});var r=n(16856),i=n(95457),o=n(14121),a=n(3525),s=n(47103),c=n(39822),l=n(55796),u=n(44584),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function f(e,t){return e.filter((function(e){return!(null==e||null!=e.skipLogic&&t(e.skipLogic)||null!=e.displayLogic&&!t(e.displayLogic))}))}var p=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return(0,r.VS)(t,(function(t){return(0,r.hX)((0,r.Vl)((0,i.yP)(t,e),","),(function(e){return!(0,r.xb)(e)}))}))};function h(e,t,n,s,c,l){var u,m=p(t+"EliminationIfVariablesAnswered",n),d=p(t+"EliminationIfVariablesNotAnswered",n);if((0,r.xb)(m)&&(0,r.xb)(d))return f(c,l);var h="Row"===t?(0,r.hX)(c,(function(e){return!(0,o.Ur)(e)})):c,b=(0,r.MR)(h,(function(e){return e.index})),v=(0,r.UI)(null===(u=(0,i.yP)(n,t+"EliminationExcluded"))||void 0===u?void 0:u.split(","),(function(e){return Number(e)-1})),g=function(t,n){var i=function(t,n){return(0,r.sE)(function(t){var n=(0,a._K)(e,t);return n?n.choiceList:[]}(t),(function(e){return e.index===n}))}(t,n);return i&&function(e,t){return(0,r.G)(s[t],(function(t){return t.value===e.value}))}(i,t)},A=(0,r.hX)(b,(function(e,t){return(0,r.q9)(v,t)})),y=(0,r.hX)(b,(function(e,t){return(0,r.G)(m,(function(e){return g(e,t)}))})),C=(0,r.hX)(b,(function(e,t){return!(0,r.xb)(d)&&(0,r.yW)(d,(function(e){return!g(e,t)}))})),_=(0,r.G0)(y,C);return(0,r.cT)(_,A),f((0,r.e5)(c,_),l)}var b=function(e,t,n,o,u,h,b,v){var g=d(o),A=h.includeInvisible,C=h.includeSoftPrompt;if(v)g=g.filter((function(e){var n;return null===(n=v.questions.flatMap((function(e){return e.variables})).find((function(e){return e.name===b.name})))||void 0===n?void 0:n.choices.some((function(n){return(0,c.Uk)(e,n,t)}))}));else{A||(g=g.filter((function(e){return!((0,i.Z9)(e,"Visible")&&!(0,i.Ag)(e,"Visible"))}))),g=function(e){var t=e.filter((function(e){return(0,i.Ag)(e,"Fixed")}));e=e.filter((function(e){return!(0,i.Ag)(e,"Fixed")}));for(var n=0,r=t;n<r.length;n++){var o=r[n];e.splice(o.index,0,o)}return e}(g=f(g,u));var _=t.columns,x=void 0===_?[]:_,w=t.parent,T=d([t],x,[w,b]),E=p.apply(void 0,d(["EliminateChoicesIfVariablesAnswered"],T)),S=p.apply(void 0,d(["EliminateChoicesIfVariablesNotAnswered"],T));if(!(0,r.xb)(E)||!(0,r.xb)(S)){var k=p.apply(void 0,d(["EliminationExcludedFields"],T)),B=function(e,t){return(0,r.G)(n[t],(function(t){return t.value===e.value}))},N=g.filter((function(e){return(0,r.q9)(k,e.value)||(0,c.$T)(e)})),M=g.filter((function(e){return(0,r.G)(E,(function(t){return B(e,t)}))})),D=(0,r.xb)(S)?[]:g.filter((function(e){return(0,r.yW)(S,(function(t){return!B(e,t)}))})),I=(0,r.G0)(M,D);(0,r.cT)(I,N),g=(0,r.cT)(g,I)}}if([s.ce.CheckBox,s.ce.DropDownList,s.ce.NumericRanking,s.ce.RadioButton,s.ce.ImageSelector].includes(t.type)||(g=g.filter((function(e){return!(0,r.xb)(e.value)}))),(0,a.s5)(e)&&(0,l.Mg)(t)&&!C){var O=(0,l.sI)(t)?(0,l.Y_)(t):null,P=t.variables.some((function(e){var t;return!(0,r.xb)(e.choiceList)&&(null===(t=n[e.name])||void 0===t?void 0:t.some((function(e){return e.value===O})))}));null==O||P||(g=g.filter((function(e){return e.value!==O})))}return g.map((function(e){return m(m({},e),{openEndActive:y(t,e,v,u,e.openEndDisplayLogic)})}))},v=function(e,t,n,r,i,o,a){return(a?r.filter((function(e){var t;return null===(t=a.questions)||void 0===t?void 0:t.flatMap((function(e){return e.variables})).some((function(t){return e.name.toLowerCase()===t.name.toLowerCase()}))})):h(e,"Variable",t,n,r,i)).map((function(r){return m(m({},r),{choiceList:b(e,t,n,r.choiceList,i,o,r,a)})}))};function g(e,t,n,r){return e.filter((function(e){var i=n.questions.find((function(e){return e.name.toLowerCase()===t.name.toLowerCase()})),o=r===u.w.Column?null==i?void 0:i.columnsPositions:null==i?void 0:i.rowsPositions;return null==o?void 0:o.some((function(t){return e.index===t}))}))}var A=function(e,t,n,a,s,c,l){return function(e,t){if(!t)return e;var n=(0,r.oE)(e,o.Ur);if(0===n.length)return e;var i=e.slice(n.length);return(0,r.yo)(i,t).reduce((function(e,t){return d(e,n,t)}),[])}((l?g(a,t,l,u.w.Row):h(e,"Row",t,n,a,s)).map((function(r){return m(m({},r),{variables:r.variables.map((function(r){return m(m({},r),{choiceList:b(e,t,n,r.choiceList,s,c,r,l)})}))})})).map((function(e){return m(m({},e),{openEndActive:y(t,e,l,s,e.openEndDisplayIf)})})),(0,i.Yu)(t,"RepeatHeader"))};function y(e,t,n,r,i){var a,s=(0,o.W4)(t);return n&&s?null===(a=n.questions.find((function(t){return t.name.toLowerCase()===e.name.toLowerCase()})))||void 0===a?void 0:a.variables.some((function(e){return e.name===s})):!i||r(i)}var C=function(e,t,n,r,i,o,a){return(a?g(r,t,a,u.w.Column):h(e,"Column",t,n,r,i)).map((function(r){return m(m({},r),{variables:r.variables.map((function(r){return m(m({},r),{choiceList:b(e,t,n,r.choiceList,i,o,r,a)})}))})}))}},5291:function(e,t,n){"use strict";n.d(t,{i:function(){return o}});var r=n(62174),i=n(53149),o=function(){function e(e){this.result=e}return e.prototype.asBoolean=function(){return"string"==typeof this.result?/^-?[0-9]+(\.[0-9]+)?$/.test(this.result)?parseFloat(this.result)>0:this.result===r.uX:"number"==typeof this.result?this.result>0:"boolean"==typeof this.result&&this.result},e.prototype.asNumber=function(){return"string"==typeof this.result&&/^-?[0-9]+(\.[0-9]+)?$/.test(this.result)?(0,i.NM)(parseFloat(this.result)):"number"!=typeof this.result||isNaN(this.result)?"boolean"==typeof this.result&&this.result?1:0:(0,i.NM)(this.result)},e.prototype.asString=function(){return String(this.asAny())},e.prototype.asAny=function(){return"number"==typeof this.result?isNaN(this.result)?0:(0,i.NM)(this.result):this.result},e}()},30697:function(e,t,n){"use strict";n.r(t),n.d(t,{clearCache:function(){return b},invalidateCache:function(){return y},cacheEvaluation:function(){return C},findCachedEvaluation:function(){return _},parse:function(){return x},__evaluateUnsafe__:function(){return w},__evaluateSafe__:function(){return T},findVariables:function(){return E},__isQuestionVisible__:function(){return S},__isBlockVisible__:function(){return k}});var r=n(69654),i=n(16856),o=n(62174),a=n(17837),s=n(14400),c=n(83627),l=n(5291),u=n(95457),m=n(50902),d=n(5498),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},p=r.Grammar.fromCompiled(m);m.ParserStart="basic_expression";var h=r.Grammar.fromCompiled(m),b=function(){g=v},v={resultById:{},resultIdsByVariableName:{},resultIdByKey:{}},g=v,A=0,y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.map((function(e){return g.resultIdsByVariableName[e.toUpperCase()]||[]})),r=(0,i.xH)(n),o=(0,i.jj)(r);0!==o.length&&(g={resultById:(0,i.D9)(g.resultById,(function(e,t){return-1===o.indexOf(parseInt(t))})),resultIdByKey:(0,i.D9)(g.resultIdByKey,(function(e,t){return-1===o.indexOf(e)})),resultIdsByVariableName:(0,i.D9)(g.resultIdsByVariableName,(function(t,n){return!(0,i.G)(e,(function(e){return e.toUpperCase()===n.toUpperCase()}))}))})};function C(e,t,n){var r,o,a=A++;return g={resultById:f(f({},g.resultById),(r={},r[a]=t,r)),resultIdByKey:f(f({},g.resultIdByKey),(o={},o[e]=a,o)),resultIdsByVariableName:f(f({},g.resultIdsByVariableName),(0,i.f9)(n,(0,i.UI)(n,(function(e){return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(g.resultIdsByVariableName[e]||[],[a])}))))},a}function _(e){return g.resultById[g.resultIdByKey[e]]}var x=function(e,t,n){void 0===n&&(n=c.M.Advanced);try{var i=n===c.M.Simple;i&&(e=a.A.evaluateRecalls(t.interview,e,s.a.Code));var l=((e=e.trim()).match(/\(/g)||[]).length,u=(e.match(/\)/g)||[]).length;if(l>u)e+=")".repeat(l-u);else if(u>l)for(var m=u;m>l;m--){var d=e.lastIndexOf(")");d>-1&&(e=e.slice(0,d)+e.slice(d+1))}var f=i?h:p,b=new r.Parser(f);return b.feed(e.toLowerCase()),null==b.results[0]?o.UI:(b.results.length>1&&console.warn("Evaluator: grammar for "+e+" was ambiguous; found "+b.results.length+" results."),"function"==typeof b.results[0]?b.results[0](t):b.results[0])}catch(t){return console.warn(e+": "+t),o.UI}};function w(e,t,n,r){r=r||!1,"object"==typeof n&&(r=n.type===c.M.Simple,n=n.expression);var i=function(e,t){return t?"simple:"+e:e}(n,r),o=g.resultIdByKey[i];if(null!=o)return new l.i(g.resultById[o]);var a=[],s=!1,u={interview:e(),didParseVariable:function(e){a.push(e.toUpperCase())},invalidateCache:function(){s=!0,t((0,d.G$)())},dispatch:function(n){t(n),u.interview=e()}},m=x(n,u,r?c.M.Simple:c.M.Advanced);return s||C(i,m,a),new l.i(m)}function T(e,t,n){return n=n||!1,"object"==typeof t&&(n=t.type===c.M.Simple,t=t.expression),w((function(){return e}),(function(e){return null}),t,n)}var E=function(e){if(!e)return[];"string"!=typeof e&&(e=e.expression);var t=(0,i.VO)((0,o.$g)());return(0,i.jj)(e.match(/\b[a-zA-Z]\w*\b/g)).filter((function(e){var n=e.toUpperCase();return!t.some((function(e){return e.toUpperCase()===n}))}))},S=function(e,t){var n,r;if(t.navigation.currentPage&&t.navigation.currentPage.previewQuestion===e.name)return!0;if((0,u.Z9)(e,"Active")&&!(0,u.Ag)(e,"Active"))return!1;if(null===(r=null===(n=t.navigation.currentPageOnServer)||void 0===n?void 0:n.questions)||void 0===r?void 0:r.some((function(t){return t.name===e.name})))return!0;var i=void 0===e.displayLogic||T(t,e.displayLogic).asBoolean(),o=void 0===e.skipLogic||!T(t,e.skipLogic).asBoolean();return i&&o},k=function(e,t){return e.questions.length>0&&(void 0===e.displayLogic||T(t,e.displayLogic).asBoolean())&&(void 0===e.skipLogic||!T(t,e.skipLogic).asBoolean())}},62174:function(e,t,n){"use strict";n.d(t,{uX:function(){return r},UI:function(){return i},$g:function(){return o}});var r="1",i=-9999999,o=function(){return{fn_min:"min",fn_max:"max",fn_som:"som",fn_sum:"sum",fn_smr:"smr",fn_sm2:"sm2",fn_ind:"ind",fn_prj:"prj",fn_if:"if",fn_si:"si",fn_v01:"v01",fn_nbr:"nbr",fn_sgn:"sgn",fn_cmp:"cmp",fn_cmr:"cmr",fn_meq:"meq",fn_mnb:"mnb",fn_rng:"rng",fn_rnk:"rnk",fn_sqr:"sqr",fn_ln:"ln",fn_log:"log",fn_abs:"abs",fn_trc:"trc",fn_ran:"ran",fn_mod:"mod",fn_exp:"exp",fn_jul:"jul",fn_yea:"yea",fn_mon:"mon",fn_day:"day",fn_wkd:"wkd",fn_qta:"qta",fn_qtf:"qtf",fn_qtc:"qtc",fn_str:"str",fn_nbc:"nbc",fn_qtisavail:"qtisavail",fn_qtareavail:"qtareavail",fn_getavailqt:"getavailqt",fn_selrandqt:"selrandqt",fn_qtisavailresp:"qtisavailresp",fn_qtareavailresp:"qtareavailresp",fn_getavailqtresp:"getavailqtresp",fn_selrandqtresp:"selrandqtresp",fn_rnb:"rnb",fn_rxy:"rxy",fn_nbl:"nbl",fn_csm:"csm",fn_cmx:"cmx",fn_cmn:"cmn",fn_cor:"cor",fn_can:"can",fn_cin:"cin",fn_mov:"mov",fn_mlb:"mlb",fn_mst:"mst",fn_mvc:"mvc",fn_fsr:"fsr",not:"not",true:"true",false:"false",and:"and",or:"or",contains:"contains",non:"non",ou:"ou",et:"et"}}},878:function(e,t,n){"use strict";n.r(t),n.d(t,{validateInput:function(){return A},validateOutput:function(){return x},eq:function(){return w},eq_algebraic:function(){return T},gt:function(){return E},lt:function(){return S},algebraic:function(){return k},compare:function(){return B},empty:function(){return N},strfind:function(){return M},vec:function(){return D},bool:function(){return I},nbr:function(){return O},cmp:function(){return P},sgn:function(){return R},cmr:function(){return L},meq:function(){return V},mnb:function(){return F},rng:function(){return q},rnk:function(){return U},ran:function(){return H},mod:function(){return W},sqr:function(){return z},ln:function(){return j},log:function(){return G},abs:function(){return Q},trc:function(){return K},exp:function(){return Z},validate:function(){return $},jul:function(){return Y},yea:function(){return X},mon:function(){return J},day:function(){return ee},wkd:function(){return te},nbc:function(){return re},qta:function(){return ie},qtf:function(){return oe},qtc:function(){return ae},qtisavail:function(){return le},qtareavail:function(){return ue},getavailqt:function(){return me},selrandqt:function(){return de},qtisavailresp:function(){return pe},qtareavailresp:function(){return he},getavailqtresp:function(){return be},selrandqtresp:function(){return ve},rxy:function(){return ge},nbl:function(){return Ae},loop:function(){return ye},fsr:function(){return Ce},rnb:function(){return _e},mst:function(){return xe},mov:function(){return we},min:function(){return Te},max:function(){return Ee},sum:function(){return Se},smr:function(){return ke},sm2:function(){return Be},prj:function(){return Ne},ind:function(){return Me},mul:function(){return De},pow:function(){return Ie},div:function(){return Oe},add:function(){return Pe},sub:function(){return Re}});var r=n(17126),i=n(16856),o=n(86923),a=n(11325),s=n(62174),c=n(25638),l=n(21295),u=n(3525),m=n(53149),d=n(56847),f=n(30697),p=n(5291),h=n(5498),b=n(90977),v=function(){return v=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)},g=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function A(e,t,n,r){var a=[];return a.push(o.number(e,n)),r&&a.push(o.number(e,r)),a.some((function(e){return e===s.UI||isNaN(e)&&(0,i.HD)(e)}))?s.UI:a.some(Number.isNaN)?NaN:void 0!==(a=a.map((function(e){return void 0===e?NaN:e})))[1]?t(a[0],a[1]):t(a[0])}function y(e,t,n){(0,i.S6)(n,(function(n){var r=o.val(e,n);r&&e.dispatch((0,h.F1)(r.name,(function(e){return e.clear(),(0,i.S6)(t,(function(t){return e.add(t)})),e})))}))}function C(e){return e&&""!==e?e:0}function _(e){return(0,a.yi)(e)||e===s.UI}function x(e){return _(e)?s.UI:isFinite(e)?e:0}function w(e,t,n){return t=o.val(e,t),n=o.val(e,n),t.equals(n)?1:0}function T(e,t,n){return k(e,t,n,(function(e,t){return e===t}))}function E(e,t,n){return k(e,t,n,(function(e,t){return(e||0)>(t||0)}))}function S(e,t,n){return k(e,t,n,(function(e,t){return(e||0)<(t||0)}))}function k(e,t,n,r){return t=o.number(e,t),(0,a.qm)(t)&&(t=0),n=o.number(e,n),(0,a.qm)(n)&&(n=0),[t,n].some((function(e){return e===s.UI||isNaN(e)&&(0,i.HD)(e)}))?s.UI:r(t,n)}function B(e,t,n){return t=o.val(e,t),n=o.val(e,n),t.compare(n)}function N(e,t){var n=(t=o.val(e,t)).values();return 0===n.length||n.every(a.Ew)}function M(e,t,n){return t=o.val(e,t),n=o.string(e,n),t.values().some((function(e){return e.toLowerCase().indexOf(n.toLowerCase())>-1}))}function D(e,t,n){return(t=o.val(e,t)).length<2?NaN:n(t.map((function(t){return o.number(e,t)})))}function I(e,t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=!1),(t=o.val(e,t))===s.UI)return _(r)?s.UI:r;(0,a.qm)(n)&&(n=0),(0,a.qm)(r)&&(r=0);var i=(t?n:r)||0;return _(i)?s.UI:i}function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map((function(t){return o.val(e,t).values().filter((function(e){return!(0,a.Ew)(e)})).length})).reduce((function(e,t){return e+t}))}function P(e,t,n,r,c,l){return void 0===n&&(n=0),void 0===r&&(r=-1),void 0===c&&(c=0),void 0===l&&(l=1),t=o.number(e,t),(0,a.qm)(t)&&(t=0),n=o.number(e,n),(0,a.qm)(n)&&(n=0),r=o.number(e,r),c=o.number(e,c),l=o.number(e,l),(0,i.G)([t,n],_)?s.UI:t===n?c:t>n?l:r}function R(e,t){return _(t=o.number(e,t))&&(t=s.UI),0===t?0:t>0?1:-1}function L(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return t=o.val(e,t),n=n.map((function(t){return o.val(e,t)})),t.values().filter((function(e){return!(0,a.Ew)(e)&&n.every((function(t){return t.values().includes(e)}))})).length}function V(e,t,n,r){t=o.val(e,t);var i=(0,b.qR)(e.interview.variables,t.name)[n-1];if(!i)return 0;var a=i.value;return"number"==typeof r&&(a=parseFloat(i.value)),a===r?1:0}function F(e,t,n){return t=o.val(e,t),n=o.string(e,n),t.values().findIndex((function(t){return/^-?[0-9]+(\.[0-9]+)?$/.test(t)?o.number(e,n)===o.number(e,t):n===t}))+1}function q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return t=o.number(e,t),(n=n.map((function(t){return o.number(e,t)}))).filter((function(e){return e<=t})).length}function U(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return null===(t=o.number(e,t))&&(t=0),n=n.map((function(t){var n=o.number(e,t);return null===n?0:n})),g(n,[t]).some(_)?s.UI:n.filter((function(e){return e<=t})).length}function H(e,t,n){if(t=o.number(e,t),[n=o.number(e,n),t].some((function(e){return null===e}))||n===t)return s.UI;var r=Math.random()*(n-t)+t;return e.invalidateCache&&e.invalidateCache(),x(r)}function W(e,t,n){return $(e,(function(e,t){return(0,m.NM)(Math.trunc(e||0)%Math.trunc(t||0))}),t,n)}function z(e,t){return t=o.number(e,t),(0,a.qm)(t)?0:t===s.UI||isNaN(t)?s.UI:x(A(e,Math.sqrt,t))}function j(e,t){var n=$(e,Math.log2,t);return n!==s.UI?n:0}function G(e,t){var n=$(e,Math.log10,t);return n!==s.UI?n:0}function Q(e,t){return A(e,Math.abs,t)}function K(e,t){return $(e,Math.trunc,t)}function Z(e,t){return $(e,Math.exp,t)}function $(e,t,n,r){return x(A(e,t,n,r))}function Y(e,t,n,i){return t=o.number(e,t),n=o.number(e,n),i=o.number(e,i),r.ou.fromFormat(t+"-"+n+"-"+i,"yyyy-M-d").diff(c.oG,"days").days}var X=function(e,t){return o.epoch(e,t).year},J=function(e,t){return o.epoch(e,t).month},ee=function(e,t){return o.epoch(e,t).day},te=function(e,t){var n=o.epoch(e,t).weekday;return 7===n?1:n+1};function ne(e,t){return e.interview.quotas.input.find((function(e){return e.stratumId===t}))}function re(e,t){return t=o.val(e,t),(0,u._K)(e.interview.questionnaire,t.name).choiceList.length}function ie(e,t){var n=ne(e,t=o.val(e,t));return n?n.objective:0}function oe(e,t){var n=ne(e,t=o.val(e,t));return n?n.frequency:0}function ae(e,t){var n=ne(e,t=o.val(e,t));return n?n.online:0}function se(e,t,n){var r=ne(e,n);if(r&&r.status!==d.u.Closed){var i=t?r.frequency+r.online:r.frequency;return r.objective<=0||i<r.objective}return!1}function ce(e,t,n){var r=0,i=0,o=0;return n.every((function(n){if(se(e,t,n)){var a=ne(e,n);r=a.objective<=0?0:a.objective-a.online,t&&a.objective>0&&(r-=a.online),r>i&&(i=r,o=a.id)}return!0})),o}function le(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=o.bool(e,t),a=n.some((function(t){return se(e,i,t)}));return a?1:0}function ue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=o.bool(e,t),a=n.length>0&&n.every((function(t){return se(e,i,t)}));return a?1:0}function me(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=o.bool(e,t);return ce(e,i,n)}function de(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=o.bool(e,t),a=n.filter((function(t){return se(e,i,t)}));return a.length>0?a[Math.floor(Math.random()*a.length)]:0}function fe(e,t){return t.filter((function(t){var n=ne(e,t);if(n){var r=(0,f.parse)(n.condition,e);return new p.i(r).asBoolean()}return!1}))}function pe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=fe(e,n);return le.apply(void 0,g([e,t],i))}function he(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=fe(e,n);return ue.apply(void 0,g([e,t],i))}function be(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=fe(e,n);return me.apply(void 0,g([e,t],i))}function ve(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=fe(e,n);return de.apply(void 0,g([e,t],i))}function ge(e,t,n){return t=o.val(e,t),e=v(v({},e),{matrix:t}),o.val(e,n)}function Ae(e,t){return t=o.val(e,t),(0,b.qW)(e.interview.variables,t.name)}function ye(e,t){var n=[];if(o.val(v(v({},e),{didParseVariable:function(t){e.didParseVariable&&e.didParseVariable(t),n.push(t)}}),t),!n.length)return t;var r=(0,b.qW)(e.interview.variables,n[0]);return(0,i.w6)(1,r+1).map((function(n){return o.val(v(v({},e),{matrix:n}),t)}))}function Ce(e,t,n){for(var r=o.val(e,t),i=o.val(e,n),a=(0,b.qR)(e.interview.variables,r.name,1),s=(0,l.rU)(i.block),c=function(t){var n=t+1,r=a.find((function(e){var t=e.value;return parseInt(t)===n}));e.dispatch((0,h.F1)(i.name,(function(e){return r?e.set(r.value,r.openEnd):e.clear()}),n))},u=0;u<s;u++)c(u);return 1}function _e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return(t=o.val(e,t))?(t=o.number(e,t),(0,i.Ed)(n,(function(n){var r=n.block.name;e.dispatch((0,h.iR)(r,t))})),t):null}function xe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(!(t=o.val(e,t)))return null;var i="string"==typeof t?[t]:t.labels();return y(e,i,n),o.number(e,o.number(e,t))}function we(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return y(e,t=o.string(e,t),n),t}function Te(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=function(e){return Math.min.apply(Math,e.map(C).map((function(e){return isNaN(e)?s.UI:e||0})))};return D(e,t,r)}function Ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=function(e){return Math.max.apply(Math,e.map(C).map((function(e){return isNaN(e)?s.UI:e||0})))};return D(e,t,r)}function Se(e,t){return x(D(e,t,(function(e){return e.map(C).reduce((function(e,t){return e+t}))})))}function ke(e,t,n){return t=o.val(e,t),""===(t=o.number(e,t))||null===t?s.UI:x(D(e,n,(function(e){return e.map((function(e){return _(e)?t:e})).reduce((function(e,t){return e+t}))})))}function Be(e,t){return x(D(e,t,(function(e){return e.map(C).map((function(e){return e*e})).reduce((function(e,t){return e+t}))})))}function Ne(e,t){if((t=o.val(e,t)).length<2)return NaN;var n=t.map((function(t){return o.number(e,t)}));if(n[0]<=0)return s.UI;if(n.length>n[0]){var r=C(n[n[0]]);if(!_(r))return r}return s.UI}function Me(e,t){return D(e,t,(function(e){var t=e.map((function(e){return isNaN(e)?null:e}));return t.slice(1).indexOf(t[0])+1}))}function De(e,t,n){return A(e,(function(e,t){return(e||0)*(t||0)}),t,n)}function Ie(e,t,n){return A(e,(function(e,t){return NaN===t?1:Math.pow(e||0,t||0)}),t,n)}function Oe(e,t,n){return t=o.number(e,t),(0,a.qm)(t)&&(t=0),n=o.number(e,n),((0,a.qm)(n)||0===n)&&(n=s.UI),[t,n].some((function(e){return e===s.UI||isNaN(e)}))?s.UI:x(t/n)}function Pe(e,t,n){return A(e,(function(e,t){return null===e&&(e=0),null===t&&(t=0),[e,t].some((function(e){return[void 0,NaN].includes(e)}))?NaN:e+t}),t,n)}function Re(e,t,n){return A(e,(function(e,t){return null===e&&(e=0),null===t&&(t=0),[e,t].some((function(e){return[void 0,NaN].includes(e)}))?NaN:e-t}),t,n)}},61093:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var r=n(62174),i=n(39271),o=(0,r.$g)(),a=i.compile(function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([{name:"ws",match:/[ \t]+/},{name:"@",match:"@"},{name:"#",match:"#"},{name:"(",match:"("},{name:")",match:")"},{name:"[",match:"["},{name:"]",match:"]"},{name:",",match:","},{name:"&",match:"&"},{name:"|",match:"|"},{name:"^",match:"^"},{name:"add",match:"+"},{name:"sub",match:"-"},{name:"div",match:"/"},{name:"mul",match:"*"},{name:"not_eq",match:/<>|!=/},{name:"lte",match:"<="},{name:"gte",match:">="},{name:"lt",match:"<"},{name:"gt",match:">"},{name:"eq_algebraic",match:"=="},{name:"eq",match:"="},{name:"is_empty",match:"is empty"},{name:"is_not_empty",match:"is not empty"},{name:"does_not_contain",match:"does not contain"},{name:"identifier",match:/\$?[a-z_][@.a-z0-9_]*/,keywords:o}],Object.keys(o).map((function(e){return{name:e,match:o[e]}})),[{name:"float",match:/[0-9]+\.[0-9]+/},{name:"uint",match:/[0-9]+(?!\w)/},{name:"word",match:/[0-9][a-z0-9_]+/},{name:"nl",match:/(?:\r\n?|\n)+/,lineBreaks:!0}]))},86923:function(e,t,n){"use strict";n.r(t),n.d(t,{val:function(){return b},number:function(){return v},string:function(){return g},epoch:function(){return A},bool:function(){return y},variableSelect:function(){return C},variableList:function(){return _},variable:function(){return x},variableRange:function(){return w},choiceRange:function(){return T},choice:function(){return E}});var r=n(17126),i=n(16856),o=n(62174),a=n(95457),s=n(25638),c=n(79344),l=n(47103),u=n(1509),m=n(3525),d=n(53149),f=n(15866),p=n(90977),h=n(47643);function b(e,t){return"function"==typeof t?t(e):t}function v(e,t){if("choice"===(null==(t=b(e,t))?void 0:t.type))return t.index;if("variable"===(null==t?void 0:t.type)&&(t=t.value()),"string"==typeof t){if((0,i.xb)(t))return null;if(/^-?\d+\.?\d*$/g.test(t))return parseFloat(t.replace(/[^0-9.-]/g,""));if(/^[-0-9 .,]+$/g.test(t))return(0,d.L4)(t,e.interview.language).value()}return"boolean"==typeof t?t?1:0:"number"!=typeof t||isNaN(t)?t:(0,d.NM)(t||0)}function g(e,t){return(t=b(e,t))?"choice"===t.type?t.code:"variable"===t.type?t.value():"number"==typeof t?Number.isNaN(t)?"":String(t):t:""}function A(e,t){var n=Math.round(v(e,t));return n>=372300?s.oG.plus({seconds:n}):s.oG.plus({days:n})}function y(e,t){return"string"==typeof(t=b(e,t))?/^-?[0-9]+(\.[0-9]+)?$/.test(t)?parseFloat(t)>0:t===o.uX:"boolean"==typeof t?t:"number"==typeof t&&t>0}function C(e,t,n){return{type:"variable-select",variables:n=b(e,n),equals:function(e){return"and"===t?n.every((function(t){return t.equals(e)})):n.some((function(t){return t.equals(e)}))}}}function _(e,t,n){return n=n.reduce((function(t,n){return"variable-range"===(n=b(e,n)).type&&(n=n.explode()),t.concat(n)}),[]),t>0?n.filter((function(e,n){return n%t==0})):n}function x(e,t){var n=(0,m.Dz)(e.interview.questionnaire,t),i=n?e.interview.questionnaire.blocks[n.blockIndex]:void 0;function d(){if(!n)return[];var r=(0,p.qR)(e.interview.variables,t,y());return r?r.map((function(t){var i=(0,f.n)(n.variables[0],t.value),o=e.interview.respondent.language;return i?(0,u.I)(i,"TEXT",o):r[0].value})):[]}function A(){if(t.startsWith("$"))return[e.interview.variables.system[t.toUpperCase()].code];var i,o,c,u=(0,p.qR)(e.interview.variables,t,y());if(c=null===(o=null==n?void 0:n.variables)||void 0===o?void 0:o.find((function(e){return e.name.toUpperCase()===t.toUpperCase()})),(null==n?void 0:n.type)===l.ce.DateTimeAnswer&&(null==c?void 0:c.type)!==h.x.Computed&&u.length>0){var m=r.ou.fromFormat(u[0].value,n?("Date"===(0,a.yP)(n,"Type")?i=(0,a.yP)(n,"DateFormat","yyyy-MM-dd"):"DateTime"===(0,a.yP)(n,"Type")?i=(0,a.yP)(n,"DateFormat","yyyy-MM-dd")+" "+(0,a.yP)(n,"TimeFormat","HH:mm"):"Time"===(0,a.yP)(n,"Type")&&(i=(0,a.yP)(n,"DateFormat","HH:mm")),i?(0,s.tz)(i):null):null),d=(0,a.yP)(n,"Type");if("Date"===d)return[String(m.diff(s.oG,"days"))];if("DateTime"===d||"Time"===d)return[String(m.diff(s.oG,"seconds"))]}return u.map((function(e){return e.value}))}function y(){return e.matrix||(0,c.mO)(e.interview.navigation,e.interview.questionnaire,t)}return e.didParseVariable&&e.didParseVariable(t),{type:"variable",name:t,value:function(){var e,t=null===(e=A())||void 0===e?void 0:e[0];return void 0===t&&n?null:t},values:A,label:function(){return d()[0]},labels:d,equals:function n(r,i){void 0===i&&(i=!0),r=b(e,r);var o,a=(0,m.Dz)(e.interview.questionnaire,t);if(a&&"choice-range"===r.type&&(r=r.explode(a)),"object"==typeof r&&r.length)return r.some((function(e){return n(e,!0)}));if(i&&function(t){if("string"==typeof t){var n=(0,p.qR)(e.interview.variables,t,y());return n&&n.length>0}return!1}(r))return x(e,r).values().some((function(e){return n(e.toLowerCase(),!1)}));if(a){var s=a.variables.find((function(e){return e.choiceList&&e.choiceList.length}))||a.variables[0];s&&(o=s.choiceList)}return A().some((function(t){return o&&"choice"===r.type?-1===r.index?"WR"===t:void 0!==r.code?t===r.code:r.index<o.length&&t===o[r.index].value:"number"==typeof r||/^-?[0-9]+(\.[0-9]+)?$/.test(r)?(r=v(e,r),v(e,t)===r):(r=g(e,r),(t=t.toLowerCase())===r)}))},compare:function(t){return t=b(e,t),A().map((function(n){var r=v(e,n)||0;return r===o.UI||t===o.UI?o.UI:r>t?1:r<t?-1:0}))},question:n,block:i}}function w(e,t,n){return t=b(e,t),n=b(e,n),{type:"variable-range",start:t,end:n,explode:function(){return(0,m.f8)(e.interview.questionnaire,t.name,n.name).map((function(t){return x(e,t.name)}))}}}function T(e,t,n){return t=b(e,t),n=b(e,n),{type:"choice-range",start:t,end:n,explode:function(e){var r=[];if(null!=t.index&&t.index===n.index||null!=t.code&&t.code===n.code)return[t];for(var i=0,o=e.variables[0].choiceList;i<o.length;i++){var a=o[i],s={type:"choice",index:a.index,code:a.value};if(t.index!==s.index&&t.code!==s.code){if(r.length&&(r.push(s),n.index===s.index||n.code===s.code))return r}else r.push(s)}return[t,n]}}}function E(e,t){return"number"==typeof t?{type:"choice",index:t-1}:{type:"choice",code:t}}},32833:function(e,t,n){"use strict";n.d(t,{A:function(){return i},Z:function(){return o}});var r=n(67294),i=r.createContext(void 0);function o(){return r.useContext(i)}},36539:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(67294),i=function(e){var t=e.width,n=e.height,r=e.innerWidth,i=e.innerHeight;return{width:t,height:n,innerWidth:r,innerHeight:i,minWidth:function(e){return t>=e},maxWidth:function(e){return t<e}}};function o(e){var t=r.useState(i({width:0,height:0,innerWidth:0,innerHeight:0})),n=t[0],o=t[1];return r.useEffect((function(){function t(){var t=e.current;if(t){var r=t.offsetWidth,a=t.offsetHeight,s=window.getComputedStyle(t),c=parseInt(s.paddingLeft,10)+parseInt(s.paddingRight,10),l=parseInt(s.paddingTop,10)+parseInt(s.paddingBottom,10),u=t.offsetWidth-c,m=t.offsetHeight-l;n.width===r&&n.height===a||o(i({width:r,height:a,innerWidth:u,innerHeight:m}))}}window.addEventListener("resize",t);var r=window.setInterval(t,200);return t(),function(){window.removeEventListener("resize",t),window.clearInterval(r)}}),[e,n]),n}},19881:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(12291),i=n(5498);function o(){var e=(0,r.v9)((function(e){return e.interview.language})),t=(0,r.I0)();return[e,function(e){t((0,i.D0)(e))}]}},89222:function(e,t,n){"use strict";n.d(t,{Y8:function(){return l},x5:function(){return u},cc:function(){return m},rk:function(){return d},or:function(){return f}});var r=n(67294),i=n(12291),o=n(16856),a=n(5498),s=n(77530),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)};function l(e){var t=(0,i.I0)(),n=(0,s.R)(e);return[(0,i.v9)((function(e){return n(e)})),r.useCallback((function(n){t((0,a.F1)(e,n))}),[t,e])]}function u(e){var t=l(e),n=t[0],i=t[1];return[r.useMemo((function(){return n.map((function(e){return e.value}))}),[n]),i]}function m(){var e=(0,i.I0)(),t=(0,i.v9)((function(e){return e.interview.navigation.currentPage.loopIndex}));return function(n,r){return e((0,a.F1)(n,r,t))}}function d(){var e=(0,i.oR)();return function(t){return(0,s.R)(t)(e.getState())}}function f(e){return(0,i.v9)((function(t){return(0,o.u4)((0,o.ei)(t.interview.variables.mentionsByVariableName,e),(function(e,n,r){var i;return c(c({},e),((i={})[r]=n.filter((function(e){return e.matrix===t.interview.navigation.currentPage.loopIndex})),i))}),{})}),i.wU)}},921:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(67294);function i(e){var t=r.useRef();return r.useEffect((function(){t.current=e})),t.current}},7495:function(e,t,n){"use strict";n.d(t,{G:function(){return i},Z:function(){return o}});var r=n(67294),i=r.createContext(void 0);function o(){return r.useContext(i)}},23269:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67294),i=n(12291),o=n(14400),a=n(62299),s=n(5498);function c(e,t){void 0===t&&(t=o.a.Text);var n=(0,i.I0)(),c=(0,i.v9)((function(n){return null==e?e:"string"==typeof e?(0,a.j)(n.recall,e,t):e.map((function(e){return(0,a.j)(n.recall,e,t)}))}),i.wU);return r.useEffect((function(){"string"==typeof e&&void 0===c&&e&&t&&n((0,s.U9)(e,t)),"object"==typeof e&&void 0===c&&e&&t&&e.forEach((function(e){return n((0,s.U9)(e,t))}))}),[c,e,t,n]),c}},402:function(e,t,n){"use strict";n.d(t,{J:function(){return a},Z:function(){return s}});var r=n(67294),i=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},o=r.createContext(void 0);function a(e){var t=e.children,n=r.useRef(0),a=r.useState([]),s=a[0],c=a[1],l=r.useMemo((function(){return s.map((function(e){return e.value})).reduce((function(e,t){return{top:Math.max(e.top||0,t.top||0),right:Math.max(e.right||0,t.right||0),bottom:Math.max(e.bottom||0,t.bottom||0),left:Math.max(e.left||0,t.left||0)}}),{top:0,right:0,bottom:0,left:0})}),[s]),u=r.useRef({reserveBounds:function(e){var t=n.current++;return c((function(n){return i(n,[{id:t,value:e}])})),t},releaseBounds:function(e){c((function(t){return i(t.filter((function(t){return t.id!==e})))}))}});return r.createElement(o.Provider,{value:u.current},t(l))}function s(e,t){var n=r.useContext(o),i=n.reserveBounds,a=n.releaseBounds;r.useEffect((function(){var t=i(e);return function(){a(t)}}),t)}},59261:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),i=n(1509),o=n(19881),a=n(23269);function s(e,t){var n=(0,o.Z)()[0],s=r.useMemo((function(){return(0,i.I)(e,t,n)}),[t,e,n]);return(0,a.Z)(s)}},22854:function(e,t,n){"use strict";n.d(t,{ZA:function(){return A},qi:function(){return C},Af:function(){return _},fV:function(){return x},V$:function(){return w}});var r=n(67294),i=n(12291),o=n(78813),a=n(95457),s=n(47103),c=n(89222),l=n(55796),u=n(78632),m=n(1509),d=n(19881);function f(){return(0,i.v9)((function(e){return e.interview.questionnaire}))}var p=n(23269),h=n(3525),b=n(32086),v=n(34370),g=n(11110);function A(e,t){if(e.type===s.ce.Description)return!1;if(!(0,a.Ag)(t,"INPUT_REQUIRED"))return!1;var n=(!(0,a.Z9)(e,"AnswerRequired")||(0,a.Ag)(e,"AnswerRequired"))&&e.parent||e;return!(0,a.Z9)(n,"AnswerRequired")||(0,a.Ag)(n,"AnswerRequired","Yes","SoftPrompt","UniquePrompt")}function y(e){var t=(0,d.Z)()[0];return r.useMemo((function(){var n=e.parent;return(0,a.Z9)(e,"CustomErrorMessage")?(0,m.I)(e,"CustomErrorMessage",t):n?n.type===s.ce.StarRatingGrid?(0,m.I)(n.columns[0],"CustomErrorMessage",t):(0,m.I)(n,"CustomErrorMessage",t):null}),[e,t])}function C(e,t){var n=f(),r=(0,c.rk)(),o=(0,i.v9)((function(e){return e})),s=(0,b.O)(),m=(0,h.s5)(n)&&(0,l.Mg)(e),d=y(e);return function(){var i=r(t.name).some((function(e){var t=e.value;return null!=t&&t.length>0})),c=(0,g.NA)(e.type,null==o?void 0:o.interview.useClientValidation);if(!(0,a.Ag)(n,"INPUT_REQUIRED"))return(new u.O).build();if(!i&&A(e,n)){if(c)return(new u.O).build();if(m){var l=[t];return(0,v.VZ)(e,l,s,o)}return(new u.O).fail(t.name,d||"IncompleteAnswer").build()}return(new u.O).build()}}function _(e,t,n){var o=(0,i.v9)((function(e){return e})),s=(0,c.x5)(t.name),l=s[0],m=s[1],d=parseInt((0,p.Z)((0,a.yP)(e,"MinRequiredAnswers")),10),f=parseInt((0,p.Z)((0,a.yP)(e,"MaxAllowedAnswers")),10),h=(0,a.yP)(e,"SoftPromptChoiceCode"),b=(0,c.rk)();return r.useEffect((function(){var e=t.choiceList.map((function(e){return e.value})),n=function(t){return!e.includes(t)};l.some(n)&&m((function(e){return e.remove(n)}))}),[e,l,m,t.name,t.choiceList,h]),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.reduce((function(e,n){return e.isValid?n(t):e}),(new u.O).build())}}(C(e,t),(function(){if((0,g.NA)(e.type,null==o?void 0:o.interview.useClientValidation))return(new u.O).build();var n=b(t.name);if(n.some((function(e){return e&&e.value.length&&function(e){var n;return null===(n=t.choiceList)||void 0===n?void 0:n.some((function(t){return t.value===e}))}(e.value)}))){if(null!==d&&d>0&&n.length<d)return(new u.O).fail(e.name,"InvalidChoicesMin",{min:String(d)}).build();if(null!==f&&f>0&&n.length>f)return(new u.O).fail(e.name,"InvalidChoicesMax",{max:String(f)}).build()}return(new u.O).build()}))}function x(e,t){var n=(0,c.or)((0,r.useMemo)((function(){return t.map((function(e){return e.name}))}),[t])),o=f(),s=parseInt((0,p.Z)((0,a.yP)(e,"MinRequiredAnswers")),10),m=parseInt((0,p.Z)((0,a.yP)(e,"MaxAllowedAnswers")),10),d=(0,c.cc)(),h=(0,c.rk)(),C=(0,i.v9)((function(e){return e})),_=y(e),x=(0,b.O)();return r.useEffect((function(){t.forEach((function(e){var t=e.choiceList.map((function(e){return e.value})),r=function(e){return!t.includes(e)};(n[e.name]||[]).map((function(e){return e.value})).some(r)&&d(e.name,(function(e){return e.remove(r)}))}))}),[n,d,t]),function(){var n=function(e){return e&&e.value.length&&(n=e.value,null===(i=null===(r=t[0])||void 0===r?void 0:r.choiceList)||void 0===i?void 0:i.some((function(e){return e.value===n})));var n,r,i},r=t.filter((function(e){var t=e.name;return h(t).some(n)})),i=A(e,o),a=i&&(0,l.Mg)(e),c=function(e,n){var r=new u.O;return t.forEach((function(t){var i=t.name;return r.fail(i,e,n)})),r.build()},d=(0,g.NA)(e.type,null==C?void 0:C.interview.useClientValidation);if(!r.length&&i)return d?(new u.O).build():a?(0,v.VZ)(e,t,x,C):c(_||"IncompleteAnswer");if(r.length&&!d){if(null!==s&&s>0&&r.length<s)return c("InvalidChoicesMin",{min:String(s)});if(null!==m&&m>0&&r.length>m)return c("InvalidChoicesMax",{max:String(m)})}return(new u.O).build()}}function w(e,t){(0,o.q)(e,t)}},25753:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var r=function(e,t){this.text=e,this.code=void 0!==t?t:e}},50721:function(e,t,n){"use strict";n.d(t,{a:function(){return a}});var r=n(16856),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},a=function(){function e(e){void 0===e&&(e=[]),this._result=[],void 0!==e&&(this._result=o(e))}return e.prototype.build=function(){return this._result.filter((function(e){return void 0!==e}))},e.prototype.set=function(e,t){return this.clear().add(e,t)},e.prototype.addOpenEndValueByCustomChoiceIndex=function(e,t){var n=this._result.findIndex((function(t){return t.customChoiceIndex===e})),r=this._result[n];return r.openEnd=t,this._result=o(this._result.slice(0,n),[r],this._result.slice(n+1)),this},e.prototype.addOpenEndValueByChoiceIndex=function(e,t){var n=this._result.findIndex((function(t){return t.value===e})),r=this._result[n];return r.openEnd=t,this._result=o(this._result.slice(0,n),[r],this._result.slice(n+1)),this},e.prototype.replace=function(e,t,n){return this.splice(e,1).insert(e,t,n)},e.prototype.remove=function(e){return this._result=this._result.filter((function(t,n){return!e(t.value,n,t.openEnd)})),this},e.prototype.pull=function(e){return this._result=this._result.filter((function(t){return t.value!==e})),this},e.prototype.mapValues=function(e){return this._result=this._result.map((function(t,n){return i(i({},t),{value:e(t.value,n,t.openEnd)})})),this},e.prototype.mapOpenEnds=function(e){return this._result=this._result.map((function(t,n){return i(i({},t),{openEnd:e(t.value,n,t.openEnd)})})),this},e.prototype.insert=function(e,t,n){return this._result.splice(e,0,{value:t,openEnd:n}),this},e.prototype.add=function(e,t,n){var r=this;return null==e||"string"==typeof e?this._result.push({value:e,openEnd:t,customChoiceIndex:n}):e.forEach((function(e){return r.add(e.value,e.openEnd,n)})),this},e.prototype.toggle=function(e,t){return this._result.some((function(t){return t.value===e}))?this.removeValue(e):this.add(e,t)},e.prototype.removeValue=function(e){return(0,r.Od)(this._result,(function(t){return t.value===e})),this},e.prototype.clear=function(){return this._result=[],this},e.prototype.splice=function(e,t){return void 0===t?this._result.splice(e):this._result.splice(e,t),this},e}()},78632:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var r=n(16856),i=n(11325),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},s=function(){function e(e){this.result=e||{isValid:!0,errorsByVariableName:{}}}return e.prototype.build=function(){return this.result},e.prototype.setValid=function(e){return this.result=o(o({},this.result),{isValid:e}),this},e.prototype.fail=function(e,t,n,r){var s;return(0,i.Ew)(e)||(0,i.Ew)(t)?this.setValid(!1):(this.result=o(o({},this.result),{isValid:!1,errorsByVariableName:o(o({},this.result.errorsByVariableName),(s={},s[e]=a(this.getErrors(e),[{key:t,args:n,message:r}]),s))}),this)},e.prototype.getErrors=function(e){return this.result.errorsByVariableName[e]||[]},e.prototype.clear=function(e){return this.result=o(o({},this.result),{errorsByVariableName:(0,r.CE)(this.result.errorsByVariableName,e)}),this},e}()},44584:function(e,t,n){"use strict";var r;n.d(t,{w:function(){return r}}),function(e){e[e.Row=0]="Row",e[e.Column=1]="Column"}(r||(r={}))},25974:function(e,t,n){"use strict";var r;n.d(t,{c:function(){return r}}),function(e){e[e.Vertical=0]="Vertical",e[e.Horizontal=1]="Horizontal",e[e.VerticalColumns=2]="VerticalColumns",e[e.HorizontalColumns=3]="HorizontalColumns"}(r||(r={}))},14839:function(e,t,n){"use strict";var r;n.d(t,{Q:function(){return r}}),function(e){e[e.Unknown=0]="Unknown",e[e.Text=1]="Text",e[e.CheckBox=2]="CheckBox",e[e.DropDownList=3]="DropDownList",e[e.RadioButton=4]="RadioButton",e[e.ImageSelector=5]="ImageSelector",e[e.Slider=6]="Slider",e[e.NumericAnswer=7]="NumericAnswer",e[e.StarRating=8]="StarRating"}(r||(r={}))},67792:function(e,t,n){"use strict";var r;n.d(t,{$:function(){return r}}),function(e){e[e.Empty=0]="Empty",e[e.Completed=1]="Completed",e[e.Dropped=2]="Dropped",e[e.ScreenedOut=3]="ScreenedOut",e[e.Interrupted=4]="Interrupted",e[e.OutOfQuota=5]="OutOfQuota",e[e.Reset=6]="Reset"}(r||(r={}))},65536:function(e,t,n){"use strict";var r;n.d(t,{h:function(){return r}}),function(e){e[e.No=0]="No",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Middle=3]="Middle",e[e.Top=4]="Top",e[e.Bottom=5]="Bottom",e[e.FollowLeft=6]="FollowLeft",e[e.FollowRight=7]="FollowRight",e[e.FollowTop=8]="FollowTop",e[e.FollowBottom=9]="FollowBottom"}(r||(r={}))},83627:function(e,t,n){"use strict";var r;n.d(t,{M:function(){return r}}),function(e){e[e.Simple=0]="Simple",e[e.Advanced=1]="Advanced"}(r||(r={}))},50647:function(e,t,n){"use strict";var r;n.d(t,{N:function(){return r}}),function(e){e[e.Back=0]="Back",e[e.Next=1]="Next",e[e.Submit=2]="Submit",e[e.Quit=3]="Quit"}(r||(r={}))},52308:function(e,t,n){"use strict";var r;n.d(t,{u:function(){return r}}),function(e){e[e.Status=0]="Status",e[e.ExitUrl=1]="ExitUrl",e[e.Relative=2]="Relative",e[e.Question=3]="Question",e[e.AutoClean=4]="AutoClean",e[e.CalculatedVariableName=5]="CalculatedVariableName",e[e.Variable=6]="Variable",e[e.ValueType=7]="ValueType",e[e.Value=8]="Value",e[e.Block=9]="Block",e[e.MatrixIndex=10]="MatrixIndex",e[e.Mode=11]="Mode",e[e.InclusionFormula=12]="InclusionFormula",e[e.ScoreFormula=13]="ScoreFormula",e[e.Priority=14]="Priority",e[e.AffectedRow=15]="AffectedRow",e[e.Mention=16]="Mention",e[e.SelectionCount=17]="SelectionCount",e[e.From=18]="From",e[e.To=19]="To",e[e.ReplyTo=20]="ReplyTo",e[e.Subject=21]="Subject",e[e.Body=22]="Body",e[e.CursorColor=23]="CursorColor",e[e.CursorURL=24]="CursorURL",e[e.SliderBarColor=25]="SliderBarColor",e[e.SliderBarTrailingColor=26]="SliderBarTrailingColor",e[e.SliderBarURL=27]="SliderBarURL",e[e.LeftAnchorURL=28]="LeftAnchorURL",e[e.RightAnchorURL=29]="RightAnchorURL"}(r||(r={}))},22748:function(e,t,n){"use strict";var r;n.d(t,{w:function(){return r}}),function(e){e[e.BranchTo=0]="BranchTo",e[e.ComputeVariable=1]="ComputeVariable",e[e.ExitSurvey=2]="ExitSurvey",e[e.SendEmail=3]="SendEmail",e[e.SetLoopRow=4]="SetLoopRow",e[e.SetVariableValue=5]="SetVariableValue",e[e.Selection=6]="Selection",e[e.SetPanelistData=7]="SetPanelistData",e[e.ExecuteSQL=8]="ExecuteSQL",e[e.PanelistReward=9]="PanelistReward",e[e.ResumeLastSession=10]="ResumeLastSession",e[e.CreatePanelist=11]="CreatePanelist",e[e.MobileAudioRecording=12]="MobileAudioRecording"}(r||(r={}))},47103:function(e,t,n){"use strict";var r;function i(e){switch(e){case r.HybridGrid:case r.RunningTotal:case r.ChoiceGrid:case r.ImageChoiceGrid:case r.StarRatingGrid:return!0;default:return!1}}function o(e){switch(e){case r.RadioButton:case r.CheckBox:case r.ImageSelector:return!0;default:return!1}}function a(e){switch(e){case r.ImageAreaEvaluator:case r.ImageAreaSelector:case r.ImageChoiceGrid:case r.ImageSelector:return!0;default:return!1}}n.d(t,{ce:function(){return r},h:function(){return i},TG:function(){return o},Or:function(){return a}}),function(e){e[e.None=0]="None",e[e.RadioButton=1]="RadioButton",e[e.DropDownList=2]="DropDownList",e[e.CheckBox=3]="CheckBox",e[e.Slider=4]="Slider",e[e.ImageSelector=5]="ImageSelector",e[e.TextAnswer=6]="TextAnswer",e[e.NumericAnswer=7]="NumericAnswer",e[e.EmailAddressAnswer=8]="EmailAddressAnswer",e[e.DateTimeAnswer=9]="DateTimeAnswer",e[e.OpenEndAnswer=10]="OpenEndAnswer",e[e.CardSort=11]="CardSort",e[e.DragDropRanking=12]="DragDropRanking",e[e.CustomQuestion=13]="CustomQuestion",e[e.HybridGrid=14]="HybridGrid",e[e.RunningTotal=15]="RunningTotal",e[e.ChoiceGrid=16]="ChoiceGrid",e[e.ImageChoiceGrid=17]="ImageChoiceGrid",e[e.RespondentLanguage=18]="RespondentLanguage",e[e.RespondentTimeZone=19]="RespondentTimeZone",e[e.RespondentEmail=20]="RespondentEmail",e[e.Description=21]="Description",e[e.ImageAreaEvaluator=22]="ImageAreaEvaluator",e[e.DrillDown=23]="DrillDown",e[e.RespondentMetaData=24]="RespondentMetaData",e[e.ImageAreaSelector=25]="ImageAreaSelector",e[e.StarRatingGrid=26]="StarRatingGrid",e[e.AutoComplete=27]="AutoComplete",e[e.LookupTable=28]="LookupTable",e[e.FileUpload=29]="FileUpload",e[e.NetPromoter=30]="NetPromoter",e[e.RespondentPhone=31]="RespondentPhone",e[e.Timer=32]="Timer",e[e.NumericRanking=33]="NumericRanking",e[e.Signature=34]="Signature",e[e.TextHighlighter=35]="TextHighlighter",e[e.SecuredTemporaryVariable=36]="SecuredTemporaryVariable",e[e.HeatMap=37]="HeatMap",e[e.Carrousel=38]="Carrousel"}(r||(r={}))},56847:function(e,t,n){"use strict";var r;n.d(t,{u:function(){return r}}),function(e){e[e.Open=0]="Open",e[e.HalfOpen=1]="HalfOpen",e[e.Closed=2]="Closed"}(r||(r={}))},38234:function(e,t,n){"use strict";var r;n.d(t,{B:function(){return r}}),function(e){e[e.None=0]="None",e[e.Permutation=1]="Permutation",e[e.Rotation=2]="Rotation",e[e.ReverseOrder=3]="ReverseOrder",e[e.Synchronized=4]="Synchronized",e[e.SortByCode=5]="SortByCode",e[e.SortByLabel=6]="SortByLabel",e[e.RandomReverse=7]="RandomReverse"}(r||(r={}))},6636:function(e,t,n){"use strict";var r;n.d(t,{a:function(){return r}}),function(e){e[e.Unknown=0]="Unknown",e[e.Title=1]="Title",e[e.Variable=2]="Variable",e[e.Text=3]="Text"}(r||(r={}))},46361:function(e,t,n){"use strict";var r;n.d(t,{o:function(){return r}}),function(e){e[e.CallingQuestion=0]="CallingQuestion",e[e.NextQuestion=1]="NextQuestion"}(r||(r={}))},13717:function(e,t,n){"use strict";var r;n.d(t,{v:function(){return r}}),function(e){e[e.Invisible=0]="Invisible",e[e.Visible=1]="Visible",e[e.VisibleDefault=2]="VisibleDefault"}(r||(r={}))},89482:function(e,t,n){"use strict";var r;function i(e){switch(e){case"test":return r.Test;case"normal":return r.Normal;case"simulation":return r.Simulation;default:return r.Preview}}n.d(t,{E:function(){return r},q:function(){return i}}),function(e){e[e.Test=0]="Test",e[e.Preview=1]="Preview",e[e.Normal=2]="Normal",e[e.Simulation=3]="Simulation"}(r||(r={}))},84741:function(e,t,n){"use strict";var r;n.d(t,{y:function(){return r}}),function(e){e[e.None=0]="None",e[e.DisplayMessage=1]="DisplayMessage",e[e.RedirectToUrl=2]="RedirectToUrl"}(r||(r={}))},47643:function(e,t,n){"use strict";var r;n.d(t,{x:function(){return r}}),function(e){e[e.Discrete=0]="Discrete",e[e.Continuous=1]="Continuous",e[e.Computed=2]="Computed",e[e.System=3]="System"}(r||(r={}))},90807:function(e,t,n){"use strict";n.d(t,{XW:function(){return o},ac:function(){return a},vX:function(){return s},Wh:function(){return c}});var r=n(16856),i=n(10126);function o(e){if(null!=e){var t=(0,r.Zp)(e.properties),n=(0,r.MR)(t,0);return{name:e.name,properties:(0,r.Pe)(n)}}}function a(e){if(null!=e){var t=(0,r.Zp)(e.settings),n=(0,r.MR)(t,0);return{name:e.name,settings:(0,r.Pe)(n)}}}function s(e,t){if(null!=e)return{skipLogic:(0,i.v)(e.skipLogic),displayLogic:(0,i.v)(null!=t?t:e.displayLogic)}}function c(e){if(null!=e)return{translatedTexts:(0,r.Cw)(e.translatedTexts,(function(e,t){return t.toLowerCase()}))}}},10126:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(11325),i=n(83627);function o(e){if(null!=e&&!(0,r.Ew)(e))return{type:e.startsWith("logic:adv")?i.M.Advanced:i.M.Simple,expression:e.substr(e.indexOf(";")+1)}}},59882:function(e,t,n){"use strict";n.d(t,{C:function(){return S},j:function(){return E}});var r,i=n(16856),o=n(90807),a=n(47103),s=n(22748),c=n(10126),l=n(95457),u=n(52308),m=n(30697),d=n(90578),f=n(14839),p=n(6636);function h(e,t){if(null!=e&&null!=e.conditions){for(var n,r=(n=e.syntax)?n.toUpperCase().replace(/[^(\(|\)|OR|AND|\s|\d)]/g,""):"",i=e.conditions.length;i>=1;i--){var o=b(e.conditions[i-1],t);e.syntax?r=r.replace(i.toString(),v(o)):(""!==r&&(r+=" "+e.operator+" "),r+=v(o))}return(0,c.v)("logic:basic;"+r)}}function b(e,t){var n=!1;switch(r[e.operator]){case r.Contains:e.operator="LIKE",e.value="%"+e.value+"%";break;case r.Equals:e.operator="=";break;case r.DifferentThan:e.operator="!=";break;case r.LessThan:e.operator="<";break;case r.MoreThan:e.operator=">";break;case r.LessThanOrEqual:e.operator="<=";break;case r.MoreThanOrEqual:e.operator=">=";break;case r.DoesNotContain:e.operator="NOT LIKE",e.value="%"+e.value+"%";break;case r.Empty:e.operator="=",e.value="";break;case r.NotEmpty:e.operator="!=",e.value="";break;case r.In:e.value=g(e.value),n=!0;break;case r.NotIn:e.operator="NOT IN",e.value=g(e.value),n=!0}return n||e.value.match("^[0-9]+$")||(e.value="'"+e.value+"'"),e.variableName=function(e,t){var n=t.find((function(t){return t.name===e}));return n?(0,l.yP)(n,"ColumnName",e):e}(e.variableName,t),e}function v(e){return e.variableName+" "+e.operator+" "+e.value}function g(e){return"("+(0,i.UI)(e.split(","),(function(e){return"'"+e.trim()+"'"})).join(",")+")"}!function(e){e[e.Contains=0]="Contains",e[e.Equals=1]="Equals",e[e.DifferentThan=2]="DifferentThan",e[e.LessThan=3]="LessThan",e[e.MoreThan=4]="MoreThan",e[e.LessThanOrEqual=5]="LessThanOrEqual",e[e.MoreThanOrEqual=6]="MoreThanOrEqual",e[e.DoesNotContain=7]="DoesNotContain",e[e.Empty=8]="Empty",e[e.NotEmpty=9]="NotEmpty",e[e.In=10]="In",e[e.NotIn=11]="NotIn"}(r||(r={}));var A=n(47643),y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)},C=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function _(e){return"Q_"+e.name.toUpperCase()}function x(e){return y(y({},(0,o.XW)(e)),{value:e.value,condition:(0,c.v)(e.condition),priority:e.priority,score:(0,c.v)(e.score)})}function w(e,t,n,r){return y(y({},(0,o.XW)(r)),{type:s.w[r.type]||s.w.BranchTo,questionName:e,isPreload:t,condition:(0,c.v)(r.condition),selections:(0,i.UI)(r.selections,x),selectionVariables:(0,i.UI)(r.selectionVariables,o.XW)})}function T(e){return(0,i.hX)(e,(function(e){return s.w[e.type]===s.w.ComputeVariable})).map((function(e){return e.properties[u.u[u.u.CalculatedVariableName]]}))}function E(e){return(0,i.VS)(e,(function(e){return C((0,m.findVariables)(e.displayLogic),(0,m.findVariables)(e.skipLogic),(0,i.VS)(e.choiceList,(function(e){return C((0,m.findVariables)(e.displayLogic),(0,m.findVariables)(e.skipLogic))})))}))}function S(e,t,n,r){var s,u,b,v=r.name.toUpperCase(),g=(0,i.UI)(r.variables,(function(e,t){return function(e,t,n,r){var i,a,s,c,u=(n[t.choiceListId]||[]).map((function(e){return y(y({},e),{elementId:(n=t,r=e,r.value?"V_"+n.name+"_C_"+r.value.replace(/\s/g,"_").toUpperCase():"V_"+n.name+"_H_"+r.index)});var n,r})),m=null===(a=null===(i=null==r?void 0:r.rows)||void 0===i?void 0:i.find((function(e){return(0,l.yP)(e,"OpenEndVariable")===t.name&&!(0,l.Ag)(e,"DisplayIfDisableInstead")})))||void 0===a?void 0:a.openEndDisplayIf;return y(y(y(y({},(0,o.ac)(t)),(0,o.vX)(t,m)),(0,o.Wh)(t)),{index:e,id:t.id,elementId:(c=t,"V_"+c.name),choiceListRandomization:(0,d.S)(t.choiceListRandomization),choiceList:u,maxMention:t.maxMention,type:null!==(s=t.type)&&void 0!==s?s:A.x.Discrete,dataType:t.dataType})}(t,e,n,r)})),x=(0,i.UI)(r.rows,(function(e,t){return function(e,t,n){return y(y(y(y({},(0,o.ac)(n)),(0,o.vX)(n)),(0,o.Wh)(n)),{index:e,type:p.a[n.type],openEndDisplayIf:(0,c.v)(n.openEndDisplayIf),variables:(0,i.UI)(n.variableIds,(function(e){return t[e]}))})}(t,g,e)})),S=y(y(y(y({},(0,o.ac)(r)),(0,o.vX)(r)),(0,o.Wh)(r)),{index:e,id:r.id,elementId:_(r),name:v,type:a.ce[r.type],blockIndex:t,isPageBreak:r.isPageBreak,preLoadActions:(0,i.UI)(r.preLoadActions,(function(e,t){return w(v,!0,0,e)})),postAnswerActions:(0,i.UI)(r.postAnswerActions,(function(e,t){return w(v,!1,0,e)})),variableRandomization:(0,d.S)(r.variableRandomization),choiceListRandomization:(0,d.S)(r.choiceListRandomization),rowRandomization:(0,d.S)(r.rowRandomization),columnRandomization:(0,d.S)(r.columnRandomization),rows:x,columns:(0,i.UI)(r.columns,(function(e,t){return function(e,t,n,r){var a=(0,i.UI)(n,(function(t){return t.variables[e]})),s=(0,i.hX)(a,(function(e){return!!e}));return y(y(y(y({},(0,o.ac)(r)),(0,o.vX)(r)),(0,o.Wh)(r)),{index:e,type:f.Q[r.type],variables:(0,i.jj)(s)})}(t,0,x,e)})),lookupFilter:h(r.lookupFilter,g),variables:g,variableNames:[],variableDependencies:[]});return S.variableNames=(u=C(T((s=S).preLoadActions),function(e){var t=(0,i.D9)(e,(function(e,t){return t.endsWith("VariableName")}));return(0,i.VO)(t)}(s.settings),(0,i.UI)(s.variables,(function(e){return e.name})),(0,i.VS)(s.rows,(function(e){return(0,i.UI)(e.variables,(function(e){return e.name}))})),(0,i.UI)(s.cards,(function(e){return e.name})),(0,i.UI)(s.dropdowns,(function(e){return e.name})),(0,i.UI)(s.areas,(function(e){return e.name})),(0,i.UI)(s.lookupColumns,(function(e){return e.name})),(0,i.VS)(s.variables,(function(e){return(0,i.UI)(e.choiceList,(function(e){return(0,l.yP)(e,"OpenEndVariable")}))})),(0,i.UI)(s.rows,(function(e){return(0,l.yP)(e,"OpenEndVariable")})),T(s.postAnswerActions)),b=(0,i.hX)(u,(function(e){return!!e})),(0,i.jj)(b)),S.variableDependencies=function(e){var t=e.columns,n=C([e],void 0===t?[]:t,e.variables).map((function(e){return C((0,l.yP)(e,"EliminateChoicesIfVariablesAnswered","").split(","),(0,l.yP)(e,"EliminateChoicesIfVariablesNotAnswered","").split(","))})).reduce((function(e,t){return C(e,t)}),[]),r=C(n,(0,l.yP)(e,"RowEliminationIfVariablesAnswered","").split(","),(0,l.yP)(e,"RowEliminationIfVariablesNotAnswered","").split(","),(0,l.yP)(e,"ColumnEliminationIfVariablesAnswered","").split(","),(0,l.yP)(e,"ColumnEliminationIfVariablesNotAnswered","").split(","),E(e.variables),(0,i.VS)(e.rows,(function(e){return C((0,m.findVariables)(e.displayLogic),(0,m.findVariables)(e.skipLogic),e.openEndDisplayIf?(0,m.findVariables)(e.openEndDisplayIf):[])})),(0,i.VS)(e.columns,(function(e){return C((0,m.findVariables)(e.displayLogic),(0,m.findVariables)(e.skipLogic),E(e.variables))})),(0,m.findVariables)(e.displayLogic),(0,m.findVariables)(e.skipLogic)),o=(0,i.hX)(r,(function(e){return!!e}));return(0,i.jj)(o)}(S),S}},12209:function(e,t,n){"use strict";n.d(t,{wW:function(){return u},jG:function(){return d}});var r=n(16856),i=n(90807),o=n(59882),a=n(10126),s=n(90578),c=n(46361),l=function(){return l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l.apply(this,arguments)};function u(e){if(null==e)return null;var t=(0,r.UI)(e.choiceLists,(function(e){return e.map((function(e,t){return function(e,t){return null==t?void 0:l(l(l(l({},(0,i.ac)(t)),(0,i.vX)(t)),(0,i.Wh)(t)),{elementId:"",index:e,value:t.value,name:"CHOICE_"+e,parentValue:t.parentValue,openEndDisplayLogic:(0,a.v)(t.openEndDisplayLogic),position:t.position})}(t,e)}))}));return l(l(l({},(0,i.ac)(e)),(0,i.Wh)(e)),{_v:e._v,_d:e._d,id:e.id,name:e.name,version:e.version||0,blocks:(0,r.UI)(e.blocks,(function(e,n){return function(e,t,n){if(null!=n)return l(l({},(0,i.ac)(n)),{id:n.id,index:e,questions:(0,r.UI)(n.questions,(function(n,r){return(0,o.C)(r,e,t,n)})),randomizations:n.randomizations.map(s.S),theme:d(n.theme),skipLogic:(0,a.v)(n.skipLogic),displayLogic:(0,a.v)(n.displayLogic)})}(n,t,e)})),theme:d(l(l({},e.theme),{isDefault:!0})),defaultLanguage:e.defaultLanguage,languages:e.languages,shortcuts:(0,r.UI)(e.shortcuts,m),randomizations:(0,r.UI)(e.randomizations,s.S),columns:e.columns,surveyProperties:e.surveyProperties})}function m(e){if(null!=e)return l(l({},(0,i.Wh)(e)),{blockName:e.blockName,type:c.o[String(e.type)]})}function d(e){if(null!=e)return l(l(l({},(0,i.ac)(e)),(0,i.Wh)(e)),{id:e.id,isDefault:e.isDefault,isPreview:e.isPreview,css:e.css,javascript:e.javascript,head:e.head})}},90578:function(e,t,n){"use strict";n.d(t,{S:function(){return a}});var r=n(11325),i=n(16856),o=n(38234);function a(e){if(!(0,i.xb)(e))return{id:e.id,pattern:o.B[e.pattern],bounds:s(e),seedAdjust:e.seedAdjust||e.id,groupCount:e.groupCount,synchronizedQuestion:e.synchronizedQuestion,synchronizedWithId:e.synchronizedWithId}}function s(e){if(e.bounds||e.start&&e.end){var t=(0,r.Ew)(e.bounds)?void 0:e.bounds.split("-"),n=t&&2===t.length,i=n?t[0]:void 0,o=n?t[1]:void 0;return(0,r.Ew)(e.start)||(i=e.start),(0,r.Ew)(e.end)||(o=e.end),{startName:i,endName:o}}}},54955:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(67792);function i(e){if(null!=e)return{id:e.id,respondentId:e.respondentId,simulated:e.simulated,isNew:void 0!==e.isNew?e.isNew:0===e.respondentId,seed:e.seed,email:e.email,phone:e.phone,timeZone:e.timeZone,pin:e.pin,language:e.language,ignoreForcedQuit:Boolean(e.ignoreForcedQuit),sessionStartTime:e.sessionStartTime,dispositionCode:r.$[e.dispositionCode],prevSessionFirstAnsweredQuestion:e.firstAnsweredQuestion,prevSessionLastAnsweredQuestion:e.lastAnsweredQuestion,firstAnsweredQuestion:void 0,lastAnsweredQuestion:void 0,appointmentDate:e.appointmentDate,offlineUserId:e.offlineUserId,offlineUserName:e.offlineUserName,ipAddress:e.ipAddress,panelistId:e.panelistId,sampleId:e.sampleId,panelistPoints:e.panelistPoints,accessCount:e.accessCount}}},64062:function(e,t,n){"use strict";n.d(t,{n:function(){return a}});var r=n(30037),i=(n(67792),n(52308)),o=n(17837),a=function(e,t){var n=(0,r.e3)(e,i.u.ExitUrl);return o.A.evaluateRecalls(t,n)}},21295:function(e,t,n){"use strict";n.d(t,{BB:function(){return o},rU:function(){return a},Qo:function(){return s}});var r=n(16856),i=n(95457),o=function(e){return(0,i.Ag)(e,"AutoPageBreak")},a=function(e){return(0,i.Yu)(e,"MaxLoopSize",1)},s=function(e,t){var n=[],i=!1;return o(e)?e.questions.filter((function(e){return e.index===t})):((0,r.S6)(e.questions,(function(o){if(n.push(o),o.index===t&&(i=!0),o.isPageBreak||o.index===(0,r.Z$)(e.questions).index){if(i)return!1;n=[]}})),n)}},39822:function(e,t,n){"use strict";n.d(t,{vo:function(){return s},HJ:function(){return c},$T:function(){return l},pn:function(){return u},aU:function(){return m},Uk:function(){return d}});var r=n(16856),i=n(95457),o=n(13717),a=n(47103);function s(e){return(0,i.Z9)(e,"OpenEndType")&&!(0,i.Ag)(e,"OpenEndType","None")}function c(e,t){var n=(0,r.sE)(t,(function(t){return t.choiceValue===e.value}));return n?n.rankingValue:""}function l(e){return(0,r.xb)(e.value)}function u(e){return!(0,i.Z9)(e,"Visible")||(0,i.Ag)(e,"Visible")}var m=function(e,t){switch(t){case o.v.Invisible:return!u(e);case o.v.VisibleDefault:return function(e){return(0,i.Ag)(e,"Default")}(e)&&u(e);case o.v.Visible:default:return!1}};function d(e,t,n){if(void 0!==e.position)return e.position===t.position;var r=n.type,i=n.parent,o=(0,a.h)(r)||i&&(0,a.h)(i.type)?0:1,s=t.position-o;return e.index===s}},14121:function(e,t,n){"use strict";n.d(t,{UY:function(){return h},Ur:function(){return b},Av:function(){return v},ky:function(){return g},HD:function(){return A},F3:function(){return y},aX:function(){return C},vo:function(){return _},W4:function(){return x},QN:function(){return w},Cm:function(){return T},_3:function(){return E},nt:function(){return S},Vr:function(){return k},fd:function(){return B},bX:function(){return O},pI:function(){return L},iM:function(){return V}});var r,i=n(16856),o=n(14839),a=n(6636),s=n(95457),c=n(1509),l=n(47103),u=n(30697),m=n(59882),d=n(11325),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},p=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},h=function(e){return(0,s.Ag)(e,"MergeCells")},b=function(e){return[a.a.Text,a.a.Title].includes(e.type)},v=function(e){return(0,s.Ag)(e,"UseChoiceTexts")},g=function(e){return!function(e){return(0,s.Ag)(e,"MergeLeftLabel")}(e)},A=function(e){return!function(e){return(0,s.Ag)(e,"MergeRightLabel")}(e)},y=function(e){return[o.Q.CheckBox,o.Q.RadioButton,o.Q.ImageSelector].includes(e.type)},C=function(e,t){return e.variables[t.index]},_=function(e){return(0,s.Z9)(e,"OpenEndVariable")},x=function(e){return(0,s.yP)(e,"OpenEndVariable")},w=function(e){var t=(0,i.UI)(e,(function(e){var t,n;return y(e)?null===(n=null===(t=e.variables.find((function(e){var t;return(null===(t=e.choiceList)||void 0===t?void 0:t.length)>0})))||void 0===t?void 0:t.choiceList)||void 0===n?void 0:n.length:1}));return(0,i.u4)(t,i.IH)},T=function(e){return(0,i.VS)(e.rows,(function(e){return(0,i.UI)(e.variables,(function(e){return e.name}))})).length},E=function(e){return 1===(0,s.Yu)(e,"MaxAllowedAnswers")||e.type!==l.ce.HybridGrid&&e.columns.some((function(e){return e.type===o.Q.RadioButton}))},S=function(e,t){var n=t.mentions,r=t.sequencedVariables,o=(0,s.yP)(e,"CarrouselChoiceListAnswerType")===l.ce[l.ce.CheckBox],a=(0,s.Z9)(e,"MaxAllowedAnswers")&&1===(0,s.Yu)(e,"MaxAllowedAnswers");return!((0,s.Z9)(e,"AnswerRequired")&&!(0,s.Ag)(e,"AnswerRequired")||o&&!a)&&r.length===(0,i.VS)(n,(function(e){return e})).length&&(0,i.VS)(n,(function(e){return e.length>0})).indexOf(!1)<=0},k=function(e,t){return e.some((function(e){return!(0,d.Ew)((0,c.I)(e,"RightLabel",t))}))},B=function(e,t){return e.some((function(e){return!(0,d.Ew)((0,c.I)(e,"LeftLabel",t))||!(0,d.Ew)((0,c.I)(e,"TotalRowLabel",t))}))},N=function(e,t,n){return C(e,t)+"_"+(n.index+1)},M=((0,i.HP)((function(e,t,n){return f(f({},n),{name:N(e,t,n),settings:(0,i.GM)(n.settings,(function(e,t){return t.startsWith("OpenEnd")}))})}),N),(r={})[o.Q.CheckBox]=l.ce.CheckBox,r[o.Q.RadioButton]=l.ce.RadioButton,r[o.Q.ImageSelector]=l.ce.ImageSelector,r[o.Q.DropDownList]=l.ce.DropDownList,r[o.Q.StarRating]=l.ce.StarRatingGrid,r[o.Q.NumericAnswer]=l.ce.NumericAnswer,r[o.Q.Slider]=l.ce.Slider,r);function D(e){return M[e.type]||l.ce.TextAnswer}function I(e,t){return p(function(e){return p((0,u.findVariables)(e.displayLogic),(0,u.findVariables)(e.skipLogic),e.openEndDisplayIf?(0,u.findVariables)(e.openEndDisplayIf):[])}(e),function(e){return p((0,u.findVariables)(e.displayLogic),(0,u.findVariables)(e.skipLogic),(0,m.j)(e.variables))}(t))}var O=function(e,t,n){var r=P(t,n,e);return{id:0,parent:e,name:C(t,n).name,settings:f(f({},n.settings),{MaxAllowedAnswers:n.settings.MaxAllowedAnswers||e.settings&&e.settings.MaxAllowedAnswers,AnswerRequired:!((0,s.Z9)(t,"AnswerRequired")&&!(0,s.Ag)(t,"AnswerRequired")||(0,s.Z9)(n,"AnswerRequired")&&!(0,s.Ag)(n,"AnswerRequired"))}),translatedTexts:n.translatedTexts,type:D(n),elementId:C(t,n).name,index:n.index,blockIndex:e.blockIndex,variables:r,skipLogic:n.skipLogic,displayLogic:n.displayLogic,isPageBreak:!1,variableNames:r.map((function(e){return null==e?void 0:e.name})),variableDependencies:I(t,n)}},P=function(e,t,n){var r=[C(e,t)],i=x(e);if(i){var o=R(n,i);r.push(o)}return r},R=function(e,t){var n;return null===(n=e.variables)||void 0===n?void 0:n.find((function(e){return e.name===t}))},L=function(e,t,n){if(!e||e.type!==a.a.Variable||!n)return!1;var r=t.map((function(t){return C(e,t)})),o=(0,i.ei)(n.errorsByVariableName,r.map((function(e){return e.name})));return(0,i.VO)(o).length>0},V=function(e,t,n){if(!e||e.type!==a.a.Variable||!n||!t)return!1;var r=C(e,t),i=n.errorsByVariableName[r.name]||[];return i&&i.length>0}},30037:function(e,t,n){"use strict";n.d(t,{e3:function(){return i},nB:function(){return o},qA:function(){return a}});var r=n(52308),i=function(e,t,n){return function(e,t){return!(!e||!e.properties)&&void 0!==e.properties[r.u[t]]}(e,t)?e.properties[r.u[t]]:n},o=function(e,t,n){return void 0===n?o(e,t,"Yes")||o(e,t,"True"):String(e.properties[r.u[t]]).toUpperCase()===n.toUpperCase()},a=function(e,t,n){return t[String(e.properties[r.u[n]])]}},55796:function(e,t,n){"use strict";n.d(t,{sI:function(){return m},_N:function(){return d},Mg:function(){return f},cO:function(){return p},_H:function(){return h},vc:function(){return b},WG:function(){return v},xU:function(){return g},$:function(){return A},N3:function(){return y},zm:function(){return C},dp:function(){return _},Qm:function(){return x},Y_:function(){return w},hH:function(){return T}});var r=n(17126),i=n(95457),o=n(25638),a=n(11325),s=n(47103),c=n(14121),l=n(25974);function u(e){return e===s.ce.ImageAreaEvaluator}function m(e){return!u(e.type)}function d(e){return!u(e.type)}function f(e){return(0,i.Ag)(e,"AnswerRequired","SoftPrompt")}function p(e,t){switch(e.type){case s.ce.AutoComplete:case s.ce.DropDownList:case s.ce.RadioButton:case s.ce.RespondentLanguage:case s.ce.RespondentTimeZone:return!0;case s.ce.ImageAreaSelector:case s.ce.ImageSelector:case s.ce.CheckBox:return(0,c._3)(e);case s.ce.StarRatingGrid:return 1===(0,c.Cm)(e);case s.ce.NetPromoter:case s.ce.ImageChoiceGrid:case s.ce.ChoiceGrid:return(0,c._3)(e)&&1===(0,c.Cm)(e);case s.ce.Carrousel:return(0,c.nt)(e,t);default:return!1}}function h(e){return e.type===s.ce.Description}function b(e,t){void 0===t&&(t=!0);var n=(0,o.tz)((0,i.yP)(e,"DateFormat")||"yyyy-MM-dd");if(t){var r=(0,o.tz)((0,i.yP)(e,"TimeFormat")||"HH:mm");if((0,i.Ag)(e,"Type","Time"))return r;if((0,i.Ag)(e,"Type","DateTime"))return n+" "+r}return n}function v(e,t,n){if(void 0===n&&(n=!0),!(0,a.Ew)(t)){var i=r.ou.fromFormat(t,b(e,n));return i.isValid?i:r.ou.fromFormat(t,(0,o.tz)("dddd, MMMM D, YYYY"))}}function g(e,t){return function(e,t){var n=e.variables;return(void 0===n?[]:n).map((function(e){return e.choiceList.find(t)})).find(Boolean)}(e,(function(e){return e.value.toUpperCase()===t.toUpperCase()}))}function A(e){return!(0,i.Z9)(e,"AutoFormatting")||(0,i.Ag)(e,"AutoFormatting")}function y(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function C(e){return[s.ce.NumericAnswer,s.ce.RunningTotal].includes(e.type)?"Small":"Medium"}function _(e){return(0,i.yP)(e,"Size",C(e))}function x(e){return e.filter((function(e){return!(0,i.Z9)(e,"Active")||(0,i.Ag)(e,"Active")}))}function w(e){return(0,i.yP)(e,"SoftPromptChoiceCode")}function T(e){var t=(0,i.yP)(e,"DisplayOrder"),n=(0,i.Yu)(e,"NumberOfColumns");return"Horizontal"===t&&n>1?l.c.HorizontalColumns:"Horizontal"===t&&(!n||n<=1)?l.c.Horizontal:"Horizontal"!==t&&n>1?l.c.VerticalColumns:l.c.Vertical}},3525:function(e,t,n){"use strict";n.d(t,{Qg:function(){return v},YL:function(){return A},tT:function(){return g},J1:function(){return E},Mb:function(){return d},Ty:function(){return x},FK:function(){return C},C2:function(){return y},Dz:function(){return w},aA:function(){return b},f8:function(){return T},_K:function(){return _},sC:function(){return p},Bw:function(){return h},s5:function(){return S},ew:function(){return f}});var r,i=n(17126),o=n(16856),a=n(95457),s=n(67792),c=n(84741),l=n(11325);!function(e){e[e.ByBlock=0]="ByBlock",e[e.Enabled=1]="Enabled",e[e.Disabled=2]="Disabled"}(r||(r={}));var u=n(1509),m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function d(e){return e.defaultLanguage}var f=function(e){return(0,a.Ag)(e,"EXECUTE_ADVANCED_ACTIONS_ON_RESUME")};function p(e,t){var n=(0,a.Wd)(e,r,"AUTO_ADVANCE_MODE");return n===r.ByBlock?(0,a.Ag)(t,"AutoAdvance"):n===r.Enabled}function h(e){var t=(0,a.yP)(e,"SURVEY_START_DATE"),n=(0,a.yP)(e,"SURVEY_END_DATE"),r="MM/DD/YYYY";if(t){var o=i.ou.fromFormat(t,r).toUTC();if(o&&i.ou.utc()<o)return!0}if(n){var s=i.ou.fromFormat(n,r).toUTC();if(s&&i.ou.utc()<s)return!0}return!1}var b=function(e,t,n){if(s.$[n])for(var r=s.$[n],i=(0,a.Wd)(e,c.y,r.toUpperCase()+"_ACTION");;){if(i===c.y.RedirectToUrl){var o=(0,a.yP)(e,(r.toUpperCase()||"TERMINATION")+"_ACTION_REDIRECT_URL");return(0,l.Ew)(o)?{}:{redirectUrl:o}}if(i===c.y.DisplayMessage){var m=(0,u.I)(e,r+"TerminationMessage",t);return(0,l.Ew)(m)?{}:{message:m}}if(""===r)return{};r="",i=(0,a.Wd)(e,c.y,"TERMINATION_ACTION")}return{}},v=function(e,t){return e.blocks.find((function(e){return e.name.toUpperCase()===t.toUpperCase()}))},g=function(e,t){var n=w(e,t);if(null!=n)return e.blocks[n.blockIndex]},A=function(e,t){var n=y(e,t);if(null!=n)return e.blocks[n.blockIndex]},y=function(e,t){if(null!=e&&!(0,l.Ew)(t)){var n=t.toUpperCase();return e.blocks.flatMap((function(e){return e.questions})).find((function(e){return e.name.toUpperCase()===n}))}},C=function(e,t){if(null!=e&&t)return e.blocks.flatMap((function(e){return e.questions})).find((function(e){return e.id===t}))},_=function(e,t){if(null!=e&&!(0,l.Ew)(t)){var n=t.toUpperCase();return e.blocks.flatMap((function(e){return e.questions.flatMap((function(e){return e.variables}))})).find((function(e){return e.name.toUpperCase()===n}))}},x=function(e,t){var n;if(null!=e&&!(0,l.Ew)(t))return null===(n=w(e,t))||void 0===n?void 0:n.type},w=function(e,t){if(null!=e&&!(0,l.Ew)(t)){var n=t.toUpperCase();return e.blocks.flatMap((function(e){return e.questions})).find((function(e){return e.variables.find((function(e){return e.name.toUpperCase()===n}))}))}},T=function(e,t,n,r){if(void 0===r&&(r=!0),null!=e){var i=(0,o.VS)(e.blocks,(function(e){return(0,o.UI)(e.questions,(function(e){return e}))}));if(n.startsWith("+")){var a=i.find((function(e){return e.name===t})),s=i.indexOf(a)+Number(n)-1;n=i[s].name}var c=(0,o.jj)((0,o.VS)(i,(function(e){return m([e.name],e.variableNames)}))),l=(0,o.oE)(c,(function(e){return e.toUpperCase()!==t.toUpperCase()})),u=(0,o.kb)(c,(function(e){return e.toUpperCase()!==n.toUpperCase()}));if(o.X4.apply(void 0,m([c],l,u)),!r){var d=c.shift(),f=i.find((function(e){return e.name===d}));f&&o.X4.apply(void 0,m([c],f.variableNames))}var p=(0,o.VS)(i,(function(e){return e.variables}));return(0,o.jj)((0,o.VS)(c,(function(e){return(0,o.sE)(p,(function(t){return t.name===e}))||(0,o.sE)(i,(function(t){return t.name===e})).variables})))}},E=function(e){var t=(0,a.yP)(e,"COMPLETION_QUESTION");return(0,l.Ew)(t)?null:y(e,t)},S=function(e){return(0,a.Ag)(e,"INPUT_REQUIRED")}},96754:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});var r=function(e){return(null==e?void 0:e.latitude)&&(null==e?void 0:e.longitude)&&e.latitude+", "+e.longitude||""}},95457:function(e,t,n){"use strict";n.d(t,{Z9:function(){return r},yP:function(){return i},Yu:function(){return o},Ag:function(){return a},Wd:function(){return s}});var r=function(e,t){return!(!e||!e.settings)&&void 0!==e.settings[t]},i=function(e,t,n){return r(e,t)?String(e.settings[t]):n},o=function(e,t,n){return e&&e.settings?"number"==typeof e.settings[t]?e.settings[t]:Number(e.settings[t])||n:n},a=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!(!e||!e.settings)&&(null==n||0===n.length?"boolean"==typeof e.settings[t]?e.settings[t]:a(e,t,"Yes","True"):n.some((function(n){return n.toUpperCase()===String(e.settings[t]).toUpperCase()})))},s=function(e,t,n){return"number"==typeof e.settings[n]?e.settings[n]:t[String(e.settings[n]||0)]}},1509:function(e,t,n){"use strict";n.d(t,{m:function(){return i},I:function(){return o}});var r="en";function i(e){r=e}function o(e,t,n,i){if(null==e||null==e.translatedTexts)return null;var o=e.translatedTexts[t.toLowerCase()];return o?o[n]||i||o[r]||"":i||""}},11110:function(e,t,n){"use strict";n.d(t,{NA:function(){return o},R6:function(){return a},JY:function(){return s},R0:function(){return c},I7:function(){return l}});var r=n(16856),i=n(47103);function o(e,t){return!t&&[i.ce.CheckBox,i.ce.ImageSelector,i.ce.RadioButton,i.ce.DropDownList,i.ce.AutoComplete,i.ce.Slider,i.ce.NetPromoter,i.ce.RespondentLanguage,i.ce.RespondentTimeZone,i.ce.NumericAnswer,i.ce.CardSort,i.ce.ImageAreaSelector,i.ce.ImageAreaEvaluator,i.ce.DateTimeAnswer,i.ce.NumericRanking,i.ce.ChoiceGrid,i.ce.ImageChoiceGrid,i.ce.StarRatingGrid,i.ce.DragDropRanking,i.ce.DrillDown,i.ce.RunningTotal,i.ce.HybridGrid,i.ce.FileUpload,i.ce.LookupTable,i.ce.EmailAddressAnswer,i.ce.RespondentEmail,i.ce.RespondentPhone,i.ce.TextAnswer,i.ce.Signature,i.ce.OpenEndAnswer,i.ce.Carrousel].includes(e)}function a(e){return{isValid:!1,errorsByVariableName:e.reduce((function(e,t){var n=t.variableName,r=t.message,i=t.softPrompt,o=n.split("$")[0];return e[o]||(e[o]=[]),e[o].push({message:r,softPrompt:i}),e}),{})}}function s(e){return(0,r.xb)(e.errorsByVariableName)||(0,r.yW)(e.errorsByVariableName,(function(e){return c(e)}))}function c(e){return e.every((function(e){return e.softPrompt&&!e.isErrorNew}))}var l=function(e,t,n){var r,i,a=null===(i=null===(r=t.currentPage)||void 0===r?void 0:r.questions)||void 0===i?void 0:i.filter((function(e){return o(e.type,n)}));return null==a?void 0:a.some((function(t){return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([t.name],t.variableNames).some((function(t){return t.toUpperCase()===e.toUpperCase()}))}))}},15866:function(e,t,n){"use strict";n.d(t,{c:function(){return i},n:function(){return o}});var r=n(95457),i=function(e){return e.choiceList.filter((function(e){return(0,r.Ag)(e,"Default")}))},o=function(e,t){return e.choiceList.find((function(e){return(e.value||"").toLowerCase()===(t||"").toLowerCase()}))}},14400:function(e,t,n){"use strict";var r;n.d(t,{a:function(){return r}}),function(e){e[e.Code=0]="Code",e[e.Text=1]="Text"}(r||(r={}))},17837:function(e,t,n){"use strict";n.d(t,{A:function(){return W}});var r,i=n(20648),o=n.n(i),a=n(17126),s=n(16856),c=n(14400),l=function(){function e(){}return e.prototype.toString=function(e){return e===c.a.Code?this.toCode():this.toText()},e}(),u=n(11325),m=n(47103),d=n(1509),f=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.question=t,a.language=n,a.questionnaire=r,a.choice=i,a.mention=o,a}return f(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"openend":return null!=this.mention?this.mention.openEnd:"";case"code":return this.toCode();case"text":return this.toText();case"image":return this.toImage()}return this},t.prototype.toImage=function(){return'<img src="'+(0,d.I)(this.choice,"ImageUrl",this.language)+'" />'},t.prototype.toCode=function(e){return void 0===e&&(e=0),this.choice.value},t.prototype.toText=function(){if(this.choice)return(0,d.I)(this.choice,"TEXT",this.language)},t}(l),h=n(3525),b=n(53149),v=n(95457),g=n(55796),A=n(15866),y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),C=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.mentions=t,o.language=n,o.questionnaire=r,o.question=(0,h.Dz)(r,i),o.variable=(0,h._K)(r,i),o}return y(t,e),t.prototype.evaluateProperty=function(e,t,n){var r,i;switch(t){case"image":return null!=this.question&&(0,m.Or)(this.question.type)?this.toImage():"";case"answer":case"answers":if(null!=n&&n.length>0){var o=this.mentions[Number.parseInt(n[0],10)-1];this.mentions=[o]}return this;case"choice":case"choices":if(n.length>0&&this.variable&&this.variable.choiceList){var a=(0,A.n)(this.variable,n[0]);if(a)return new p(this.question,this.language,this.questionnaire,a,this.mentions.find((function(e){return e.value===a.value})))}return"";case"choicebyindex":var s=void 0;if(n.length>0&&this.variable&&this.variable.choiceList&&!isNaN(s=Number(n[0]))&&s>0&&this.variable.choiceList.length>=s){var c=this.variable.choiceList[s-1];return(0,d.I)(c,"TEXT",this.language)}break;case"count":return this.mentions.length.toString();case"openend":return null!=(o=this.mentions.find((function(e){return!(0,u.Ew)(e.openEnd)})))?o.openEnd:"";case"code":return this.toCode();case"text":return this.toText();case"textlabel":if(null===(i=null===(r=this.question)||void 0===r?void 0:r.translatedTexts)||void 0===i?void 0:i.text)return(0,d.I)(this.question,"TEXT",this.language);default:return this}return this},t.prototype.toImage=function(){var e=this.mentions[0];if(null==e)return"";if(null==this.question)return e.value;var t=(0,A.n)(this.variable,e.value);return'<img src="'+(0,d.I)(t,"ImageUrl",this.language)+'" />'},t.prototype.toCode=function(e){void 0===e&&(e=0);var t=this.mentions[e];return void 0===t||(0,u.Ew)(t.value)?"0":t.value},t.prototype.toText=function(){var e=this,t=e.question,n=e.mentions,r=e.variable,i=n[0];if(!i)return"";if(t&&t.type===m.ce.OpenEndAnswer){var o=n.find((function(e){return void 0!==e.openEnd}));if(o)return o.openEnd}if(!(0,u.Ew)(i.value)){if(r){var a=(0,A.n)(r,i.value);if(a)return(0,d.I)(a,"TEXT",this.language)}if(t&&t.type===m.ce.NumericAnswer){var s=(0,b.L4)(i.value).value();if(!(0,u.yi)(s))return(0,b.IZ)(s,(0,v.Yu)(t,"NumberOfDecimals"),this.language,!1,(0,g.$)(t))}}return i.value},t}(l),_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(e){function t(t,n){var r=e.call(this)||this;return r.variableName=t,r.variables=n,r}return _(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"code":return this.toCode();case"text":return this.toText()}return this},t.prototype.toCode=function(){var e=this.variables.system[this.variableName];return void 0===e?"0":e.code},t.prototype.toText=function(){var e=this.variables.system[this.variableName];return void 0===e?"":e.text},t}(l),w=n(25638),T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(e){function t(t){var n=e.call(this)||this;return n.time=t,n}return T(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"code":return this.toCode();case"text":return this.toText();case"year":return null==this.time?"":this.time.year.toString();case"month":return null==this.time?"":this.time.toFormat("MMMM");case"day":return null==this.time?"":this.time.day.toString();case"value":return null==this.time?"":this.time.toFormat("D");case"format":if(null==this.time)return"";for(var r=n;Array.isArray(r);)r=(0,s.Ps)(r)||"";return this.time.toFormat((0,w.tz)(r));case"answer":return this.time.toString();default:return null}},t.prototype.toCode=function(){return null==this.time?"":this.time.diff(w.oG,"days").toString()},t.prototype.toText=function(){return null==this.time?"":this.time.toFormat("DDDD")},t}(l),S=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e){function t(t){var n=e.call(this)||this;return n.time=t,n}return S(t,e),t.prototype.evaluateProperty=function(e,t,n){if(!this.time)return"";switch(t){case"code":return this.toCode();case"text":return this.toText();case"hour":return this.time.toFormat("H");case"minute":return this.time.toFormat("m");case"second":return this.time.toFormat("s");case"value":return this.time.toFormat("tt");case"format":return this.time.toFormat((0,w.tz)(n.flat()[0]));default:return this}},t.prototype.toCode=function(){return this.time.toFormat("X")},t.prototype.toText=function(){return this.time.toFormat("t")},t}(l),B=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),N=function(e){function t(t){void 0===t&&(t=a.ou.utc());var n=e.call(this)||this;return n.startTime=t,n}return B(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"code":return this.toCode();case"text":return this.toText();case"hours":case"hour":return this.getDuration().hours.toString();case"minutes":case"minute":return this.getDuration().minutes.toString();case"seconds":case"second":return this.getDuration().seconds.toString();default:return this}},t.prototype.getDuration=function(){return a.ou.utc().diff(this.startTime)},t.prototype.toCode=function(){return this.getDuration().seconds.toFixed(0)},t.prototype.toText=function(){var e=this.getDuration();return e.hours+":"+e.minutes.toString().padStart(2,"0")+":"+e.seconds.toString().padStart(2,"0")},t}(l),M=n(58043),D=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=function(e){function t(t){var n=e.call(this)||this;return n.time=t,n}return D(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"code":return this.toCode();case"text":return this.toText();case"year":return null==this.time?"":this.time.toFormat("y");case"month":return null==this.time?"":this.time.toFormat("MMMM");case"day":return null==this.time?"":this.time.day.toString();case"hour":return null==this.time?"":this.time.toFormat("H");case"minute":return null==this.time?"":this.time.toFormat("m");case"second":return null==this.time?"":this.time.toFormat("s");case"value":return null==this.time?"":this.time.toFormat("FFF");case"format":return null==this.time?"":this.time.toFormat((0,w.tz)(n[0]));case"answer":return this.time.toString();default:return this}},t.prototype.toCode=function(){return null==this.time?"":this.time.diff(w.oG,"seconds").toString()},t.prototype.toText=function(){return null==this.time?"":this.time.toFormat("FFF")},t}(l),O=n(79344),P=n(90977),R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(e){function t(t){var n=e.call(this)||this;return n.time=t,n}return R(t,e),t.prototype.evaluateProperty=function(e,t,n){switch(t){case"code":return this.toCode();case"text":return this.toText();default:return this}},t.prototype.toCode=function(){return null==this.time?"":this.time.day.toString()},t.prototype.toText=function(){return null==this.time?"":this.time.toFormat("ccccc")},t}(l),V=n(96754),F="(\\.Format)(\\(|%28)(?<format>[a-zA-Z \\,\\:\\-\\/]+)(\\)|%29)",q="\\.(?<property>[a-z]+)((\\(|%28)(?<param>[a-z0-9/:\\-]+)(\\)|%29))?",U=o()("\\[(?<name>[a-z0-9_]+)((\\.Row)(\\(|%28)(?<matrix>[a-z0-9\\-]+)(\\)|%29))?("+F+")?((\\(|%28)(?<mention>[a-z0-9-]+)(\\)|%29))?(?<properties>("+q+")*)\\]","in"),H=o()("\\[(?<name>\\$[a-z0-9]+)("+F+")?(?<properties>("+q+")*)\\]","in"),W=function(){function e(){}return e.getProperties=function(e){var t=[];return o().forEach(e.properties,o()(q,"gi"),(function(e){return t.push(e)})),null!=e.mention&&t.unshift({property:"answer",param:[e.mention]}),null!=e.format&&t.unshift({property:"format",param:[e.format]}),0===t.length&&t.unshift({property:"answer"}),t},e.getDefaultValue=function(e,t){return(0,u.Ew)(e.property)?t===c.a.Code?"0":"":"code"===e.property.toLowerCase()?"0":""},e.recallSystemMatch=function(e,t,n){var r=e.name.toUpperCase();r.startsWith("$")||(r="$"+r),a.Zr.defaultLocale=n.language;var i=a.ou.utc(),o=a.ou.local();switch(r){case"$D":return new E(o);case"$H":return new k(o);case"$UTCDATE":return new E(i);case"$UTCTIME":return new k(i);case"$T":return new N(null==n?void 0:n.sessionStartTime);case"$J":return new L(o);case"$R":return n&&n.dispositionCode?String(n.dispositionCode):"";case"$PHONE":return n&&n.phone||"";case"$EMAIL":return n&&n.email||"";case"$GEOLOCATION":return(0,V.P)(n);default:return new x(r,t)}},e.recallQuestionMatch=function(e,t,n,r,i,o,l){var u=e.name.toUpperCase();if(l===c.a.Text&&(0,s.xb)((0,h._K)(r,u)))return e.toString();var d=void 0===e.matrix?(0,O.mO)(n,r,u):Number(e.matrix),f=e.mention?Number(e.mention)-1:0,p=(0,P.qR)(t,u,d);if(void 0===p||f>=p.length||f<0)return null;var b=(0,h.Dz)(r,u);if(null!=b&&p.length>0)switch(b.type){case m.ce.DateTimeAnswer:if(a.Zr.defaultLocale=i.language,/^-?\d+$/.test(p[0].value))return p[0].value;if((0,v.Ag)(b,"Type","DateTime"))return new I(a.ou.fromFormat(p[0].value,(0,g.vc)(b)));if((0,v.Ag)(b,"Type","Time")){var A=(0,v.yP)(b,"TimeFormat","HH:mm");return new k(a.ou.fromFormat(p[0].value,(0,w.tz)(A)))}return new E(a.ou.fromFormat(p[0].value,(0,g.vc)(b)));case m.ce.FileUpload:var y=JSON.parse(p[0].value);return y?y.fileName:""}return new C(p,i.language||o,r,u)},e.evaluateRecalledValue=function(e,t,n){void 0===n&&(n=c.a.Code);try{var r=t();if(!r)return this.getDefaultValue(e,n);var i=this.getProperties(e);for((0,s.G)(i,(function(e){return"text"===e.property.toLowerCase()}))&&(n=c.a.Text);r instanceof l;)if(i.length>0){var o=i.shift(),a=void 0!==o.param?[o.param]:void 0;r=r.evaluateProperty(n,o.property.toLowerCase(),a)}else r=r.toString(n);return void 0===r?"":r}catch(t){return M.Zb.e("piping","RECALL_ERROR",'An error occurred while evaluating "'+e+'"',t),""}},e.evaluateVariable=function(e,t,n){var r=this;void 0===n&&(n=c.a.Code);var i={name:t};return this.evaluateRecalledValue(i,(function(){return r.recallQuestionMatch(i,e.variables,e.navigation,e.questionnaire,e.respondent,e.language,n)}),n)},e.evaluateRecalls=function(e,t,n){var r=this;return void 0===n&&(n=c.a.Code),null==t?t:(t=o().replace(t,H,(function(t){return r.evaluateRecalledValue(t,(function(){return r.recallSystemMatch(t,e.variables,e.respondent)}),n)}),"all"),t=o().replace(t,U,(function(t){return r.evaluateRecalledValue(t,(function(){return r.recallQuestionMatch(t,e.variables,e.navigation,e.questionnaire,e.respondent,e.language,n)}),n)}),"all"))},e.identifyVariables=(0,s.HP)((function(e){var t=[];e=o().replace(e,H,(function(e){return t.push(e.name),e.name}),"all"),e=o().replace(e,U,(function(e){return t.push(e.name),e.name}),"all");var n=(0,s.jj)(t);return(0,s.UI)(n,s.GB)})),e}()},59479:function(e,t,n){"use strict";n.d(t,{y:function(){return g}});var r=n(30697),i=n(58043),o=n(17837),a=n(5498),s=n(54955),c=n(12209),l=n(89482),u=n(2094),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)},d={},f={},p={debug:!1,mode:"normal",messages:!1,mobileMode:!1,displayInThemeEditor:!1,hideAccessibilityPanel:!1},h=(0,s.K)({respondentId:0,simulated:!0,isNew:!0,seed:(0,u.X)(),sessionStartTime:0,offlineUserId:0,offlineUserName:""}),b={model:"simulated",browser:"simulated",os:"simulated",version:"simulated",type:"simulated"};function v(e,t){var n=t?f:d;return n[e]||(n[e]=[]),n[e]}var g=new(function(){function e(){var t=this;this.version=n(4147).i8,this.lib={}.LIB_NAME,this.store=void 0,this.dispatch=void 0,this.log=function(t){return i.Zb.d(e.TAG,"LOG",t)},this.error=function(t){return i.Zb.e(e.TAG,"ERROR","An error has occurred in custom.js.",t)},this.evaluate=function(e,n){return(0,r.__evaluateSafe__)(t.store.getState().interview,e,n)},this.recall=function(e){return o.A.evaluateRecalls(t.store.getState().interview,e)},this.showDebugInfo=function(){return t.dispatch(a.ZO())},this.onPageReady=function(e){return t.on("pageReady",e)},this.validatePage=function(e){return t.trigger("validatePage",{options:e})},this.onValidatePage=function(e){return t.on("validatePage",e)},this.setVariableMentions=function(e,n,r){return"function"==typeof e?t.trigger("setVariableMentions",{builder:e,variableName:n,matrixIndex:r}):t.trigger("setVariableMentions",{builder:function(t){return t.clear().add(e)},variableName:n,matrixIndex:r})},this.onSetVariableMentions=function(e){return t.on("setVariableMentions",e)},this.branchTo=function(e){return t.trigger("branchTo",e)},this.onBranchTo=function(e){return t.on("branchTo",e)},this.nextPage=function(){return t.trigger("nextPage")},this.onNextPage=function(e){return t.on("nextPage",e)},this.previousPage=function(){return t.trigger("previousPage")},this.onPreviousPage=function(e){return t.on("previousPage",e)},this.quit=function(e,n){return t.trigger("quit",{dispositionCode:e,options:n})},this.onQuit=function(e){return t.on("quit",e)},this.setAppointment=function(e){return t.trigger("setAppointment",{appointment:e})},this.setEmail=function(e){return t.trigger("setEmail",{email:e})},this.setPhone=function(e){return t.trigger("setPhone",{phone:e})},this.setTimeZone=function(e){return t.trigger("setTimeZone",{timeZone:e})},this.setLoopRow=function(e,n){return t.trigger("setLoopRow",{blockName:e,row:n})}}return e.prototype.init=function(e){return void 0===e&&(e=p),t=this,n=void 0,i=function(){var t,n,r,i,o,s,u,m,d,f=this;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(p){return t=e.mode,n=e.debug,r=e.messages,i=e.apiUrl,o=e.survey,s=e.containerHost,u=e.previewQuestionId,m=e.hideAccessibilityPanel,this.dispatch(a.FJ(r)),n&&this.dispatch(a.Dq()),this.dispatch(a.Wd(m)),this.dispatch(a.tx((0,l.q)(t))),d=e.displayInThemeEditor&&"true"===e.displayInThemeEditor.toString().toLowerCase(),this.dispatch(a.M2(d)),void 0!==i?this.dispatch(a.Cs(i)):void 0!==o&&(this.dispatch(a.tL(h)),this.dispatch(a.IO(b)),this.dispatch(a.AN((0,c.wW)(o))),this.dispatch(a.xf("simulated"))),u&&u>-1&&g.once("pageReady",(function(){return f.dispatch(a.oq(u))})),s&&window.parent&&(window.parent.postMessage({type:"ready"},s),g.on("quit",(function(e){var t=e.dispositionCode,n=e.options;window.parent.postMessage({type:"quit",dispositionCode:t,options:n},s)}))),window.addEventListener("message",(function(e){var t=e.origin,n=e.data;if(s===t&&"previewTheme"===n.type){var r=(0,c.jG)(n.theme);f.previewTheme(r)}})),[2]}))},new((r=void 0)||(r=Promise))((function(e,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,s)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i},e.prototype.on=function(e,t,n){if(v(e,n).push(t),"pageReady"===e){var r=this.store.getState();void 0!==r.interview.navigation.currentPage&&r.interview.navigation.currentPage.isReady&&t.apply(this,[r.interview.navigation.currentPage])}},e.prototype.off=function(e,t,n){var r=v(e,n),i=r.indexOf(t);i>-1&&r.splice(i,1)},e.prototype.once=function(e,t,n){var r=this,i=this,o=!1,a=function(s){if(!o){o=!0;var c=t.apply(i,[s]);return r.off(e,a,n),c}};this.on(e,a,n)},e.prototype.trigger=function(e,t){for(var n,r,i=(n=this.store,(r=m(m({},t),{interview:n.getState().interview,defaultPrevented:!1,stoppedPropagation:!1,stoppedImmediatePropagation:!1})).preventDefault=function(){r.defaultPrevented=!0},r.stopPropagation=function(){r.stoppedPropagation=!0},r.stopImmediatePropagation=function(){r.stoppedImmediatePropagation=!0},r),o=0,a=v(e,!0);o<a.length;o++){var s=a[o];try{i=s.apply(this,[i])||i}catch(e){this.error(e)}if(i.stoppedPropagation)return i;if(i.stoppedImmediatePropagation)break;i=m(m({},i),{stoppedImmediatePropagation:!1})}for(var c=0,l=v(e);c<l.length;c++){s=l[c];try{i=s.apply(this,[i])||i}catch(e){this.error(e)}if(i.stoppedPropagation)return i;if(i.stoppedImmediatePropagation)break;i=m(m({},i),{stoppedImmediatePropagation:!1})}return i},e.prototype.previewTheme=function(e){this.dispatch(a.rH(m(m({},e),{settings:m(m({},e.settings),{CustomJavascript:void 0})})))},e.TAG="publicApi",e}())},15899:function(e,t,n){"use strict";n.d(t,{ag:function(){return v},TE:function(){return g},aS:function(){return A},iP:function(){return _},SW:function(){return w},uC:function(){return T}});var r=n(16856),i=n(38234),o=n(95457),a=n(3525),s=n(1509),c=n(11325),l=n(2094),u=n(47103),m=n(39822),d=n(44584),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},p=function(e,t,n,o,a,u){var m,d;void 0===a&&(a=0);var h=(t.seedAdjust||a)+(e.seed||0)+(u||0),b=new l.n(h);if(t.bounds){var v=t.bounds,g=v.startName,A=v.endName;if((0,c.Ew)(g)||(0,c.Ew)(A))return n;var y=(0,r.cx)(n,(function(e){return e.name.toUpperCase()===g.toUpperCase()})),C=(0,r.cx)(n,(function(e){return e.name.toUpperCase()===A.toUpperCase()}))+1,_=n.slice(y,C);return function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(n.slice(0,y),p(e,f(f({},t),{bounds:void 0}),_,o,a,u),n.slice(C))}switch(t.pattern){case i.B.Permutation:if(t.groupCount){var x=(0,r.yo)(n,t.groupCount),w=(0,r.MR)(x,(function(){return b.next()}));return(0,r.xH)(w)}return(0,r.MR)(n,(function(){return b.next()}));case i.B.ReverseOrder:return(0,r.GY)(n);case i.B.Rotation:var T=t.groupCount&&t.groupCount>0?t.groupCount:1,E=(0,r.yo)(n,T),S=(null!==(m=E[b.next({minValue:0,maxValue:E.length})])&&void 0!==m?m:[])[0],k=null!==(d=null==S?void 0:S.index)&&void 0!==d?d:0;return(0,r.MR)(n,(function(e){return e.index<k}));case i.B.SortByCode:return(0,r.MR)(n,"value");case i.B.SortByLabel:var B=2==(2&u)?"LeftLabel":"TEXT";return(0,r.MR)(n,(function(e){return(0,s.I)(e,B,o)}));case i.B.RandomReverse:return b.next({minValue:1,maxValue:10})%2==0?(0,r.GY)(n):n;default:return n}},h=function(e,t,n){var r=e[t],o=null!=n?n:r.bounds;return r.pattern!==i.B.Synchronized||(0,c.Ew)(r.value)?f(f({},r),{b:o}):h(e,Number(r.value)-1,o)},b=function(e,t,n){var i=t.questions||[],o=(0,r.hX)(t.questions,"isPageBreak"),a=(0,r.UI)(o,"index");return t.randomizations&&t.randomizations.forEach((function(r,o){r=h(t.randomizations,o),i=p(e,r,i,n,r.id)})),i.map((function(e,t){return f(f({},e),{isPageBreak:a.includes(t),index:t})}))},v=function(e,t,n){var r=t.blocks||[];return t.randomizations&&t.randomizations.forEach((function(i){return r=p(e,i,r,n,t.id)})),r.map((function(t,r){return f(f({},t),{index:r,questions:b(e,t,n).map((function(e){return f(f({},e),{blockIndex:r})}))})}))};function g(e){for(var t={},n=0,r=e;n<r.length;n++)for(var i=0,o=r[n].questions;i<o.length;i++){var a=o[i];t[a.name.toUpperCase()]=[a.blockIndex,a.index]}return t}function A(e){for(var t={},n=0,r=e;n<r.length;n++)for(var i=0,o=r[n].questions;i<o.length;i++)for(var a=o[i],s=0,c=a.variableNames;s<c.length;s++)t[c[s].toUpperCase()]=[a.blockIndex,a.index];return t}var y=function(e,t,n,r){var o=(r?n(r):null)||n(t);if(o){if(o.pattern===i.B.Synchronized){var s=(0,a.C2)(e,o.synchronizedQuestion);if(void 0===s)return;return y(e,s,(function(e){return n(e)||e.choiceListRandomization||e.rowRandomization}))}return f(f({},o),{questionId:t.elementId})}},C=function(e,t,n,i,a,s){var c;if(s&&i.choiceList){var l=s.questions.find((function(e){return e.name===n.name})),u=null===(c=null==l?void 0:l.variables)||void 0===c?void 0:c.find((function(e){return e.name===i.name}));if(u&&u.choices)return(0,r.MR)(i.choiceList,(function(e){return(0,r.cx)(u.choices,(function(t){return(0,m.Uk)(e,t,n)}))}))}var d=i.choiceList||[],f=function(e,t,n){return y(e,t,(function(e){return e.choiceListRandomization}),n)}(t,n,i);if(null!=f){var h=i.choiceList.filter((function(e){return(0,o.Ag)(e,"Fixed")}));d=d.filter((function(e){return!(0,o.Ag)(e,"Fixed")})),d=p(e,f,d,a,n.id);for(var b=0,v=h;b<v.length;b++){var g=v[b];d.splice(g.index,0,g)}}return d},_=function(e,t,n,i,o,a){if(a&&function(e){return[u.ce.HybridGrid,u.ce.RunningTotal].includes(e.type)}(n))return i;var s;if(a&&i){var c=a.questions.find((function(e){return e.name===n.name}));s=(0,r.MR)(i,(function(e){return(0,r.cx)(null==c?void 0:c.variables,(function(t){var n;return(null===(n=t.name)||void 0===n?void 0:n.toUpperCase())===e.name.toUpperCase()}))}))}if(!s){s=i||[];var l=function(e,t){return y(e,t,(function(e){return e.variableRandomization}))}(t,n);null!=l&&(s=p(e,l,s,o,n.id))}return s.map((function(r){return f(f({},r),{choiceList:C(e,t,n,r,o,a)})}))},x=function(e,t,n,i){if(t&&(null==n?void 0:n.length)>0){var o=t.questions.find((function(t){return t.name.toUpperCase()===e.toUpperCase()}));if(o){var a=i===d.w.Row?null==o?void 0:o.rowsPositions:null==o?void 0:o.columnsPositions;if(a)return(0,r.MR)(n,(function(e){return a.indexOf(e.index)}))}}return null},w=function(e,t,n,r,i){var o=x(n.name,i,n.columns,d.w.Column);if(null===o){o=n.columns||[];var a=function(e,t){return y(e,t,(function(e){return e.columnRandomization}))}(t,n);null!=a&&(o=p(e,a,o,r,n.id))}return o.map((function(o){return f(f({},o),{variables:_(e,t,n,o.variables,r,i)})}))},T=function(e,t,n,r,i){var a=x(n.name,i,n.rows,d.w.Row);if(null===a){a=n.rows||[];var s=function(e,t){return y(e,t,(function(e){return e.rowRandomization}))}(t,n);if(null!=s){var c=a.filter((function(e){return(0,o.Ag)(e,"Fixed")}));a=a.filter((function(e){return!(0,o.Ag)(e,"Fixed")})),a=p(e,s,a,r,n.id,2);for(var l=0,u=c;l<u.length;l++){var m=u[l];a.splice(m.index,0,m)}}}return a.map((function(o){return f(f({},o),{variables:_(e,t,n,o.variables,r,i)})}))}},2094:function(e,t,n){"use strict";n.d(t,{X:function(){return o},n:function(){return a}});var r=Math.pow(2,31)-1,i=-1*Math.pow(2,31);function o(){return Math.floor(Math.random()*Math.floor(r))}var a=function(){function e(e){var t,n,a;this.mSeed=161803398,this.seedArray=[];var s=e||o(),c=s===i?r:Math.abs(s);n=this.mSeed-c,this.seedArray[55]=n,a=1;for(var l=1;l<55;l++)t=21*l%55,this.seedArray[t]=a,(a=n-a)<0&&(a+=r),n=this.seedArray[t];for(var u=1;u<5;u++)for(l=1;l<56;l++)this.seedArray[l]-=this.seedArray[1+(l+30)%55],this.seedArray[l]<0&&(this.seedArray[l]+=r);this.inext=0,this.inextp=21}return e.prototype.sample=function(){return this.internalSample()*(1/r)},e.prototype.internalSample=function(){var e,t=this.inext,n=this.inextp;return(t+=1)>=56&&(t=1),(n+=1)>=56&&(n=1),(e=this.seedArray[t]-this.seedArray[n])===r&&(e-=1),e<0&&(e+=r),this.seedArray[t]=e,this.inext=t,this.inextp=n,e},e.prototype.getSampleForLargeRange=function(){var e=this.internalSample();this.internalSample()%2==0&&(e=-e);var t=e;return(t+=r-1)/(2*r-1)},e.prototype.next=function(e){var t=e||{},n=t.minValue,i=void 0===n?0:n,o=t.maxValue;if(i=Math.trunc(i),o&&(o=Math.trunc(o)),null!=o&&o>=i){var a=o-i;return a<=r?Math.trunc(this.sample()*a)+i:Math.trunc(this.getSampleForLargeRange()*a+i)}return this.internalSample()},e}()},5498:function(e,t,n){"use strict";n.d(t,{ct:function(){return i},Qn:function(){return o},s3:function(){return a},UK:function(){return s},pF:function(){return c},Ct:function(){return l},AW:function(){return u},YA:function(){return m},ME:function(){return d},ec:function(){return f},Sx:function(){return p},zu:function(){return h},gB:function(){return b},ev:function(){return v},LH:function(){return g},Av:function(){return A},Tq:function(){return y},KM:function(){return C},Xe:function(){return _},Jo:function(){return x},wr:function(){return w},E3:function(){return T},ZQ:function(){return E},p3:function(){return S},Nc:function(){return k},Ed:function(){return B},Tn:function(){return N},fU:function(){return M},d_:function(){return D},FP:function(){return I},_t:function(){return O},VQ:function(){return P},pI:function(){return R},i0:function(){return L},Aq:function(){return V},bv:function(){return F},uY:function(){return q},Js:function(){return U},Bd:function(){return H},NP:function(){return W},l5:function(){return z},Ww:function(){return j},GV:function(){return G},z$:function(){return Q},QO:function(){return K},OY:function(){return Z},Ke:function(){return $},sf:function(){return Y},R9:function(){return X},FW:function(){return J},Kr:function(){return ee},Y4:function(){return te},jd:function(){return ne},Pi:function(){return re},fA:function(){return ie},qL:function(){return oe},ry:function(){return ae},Wr:function(){return se},xP:function(){return ce},sC:function(){return le},yQ:function(){return ue},y2:function(){return me},ir:function(){return de},O7:function(){return fe},ID:function(){return pe},_9:function(){return he},q:function(){return be},Hv:function(){return ve},US:function(){return ge},Ii:function(){return Ae},Aj:function(){return ye},b:function(){return Ce},D0:function(){return _e},Cs:function(){return xe},xf:function(){return we},Nj:function(){return Te},Dq:function(){return Ee},ay:function(){return Se},ZO:function(){return ke},M2:function(){return Be},tx:function(){return Ne},IO:function(){return Me},zt:function(){return De},tu:function(){return Ie},Xn:function(){return Oe},ap:function(){return Pe},pe:function(){return Re},ou:function(){return Le},kt:function(){return Ve},BA:function(){return Fe},tT:function(){return qe},p$:function(){return Ue},Bf:function(){return He},b$:function(){return We},BL:function(){return ze},Nh:function(){return je},oq:function(){return Ge},md:function(){return Qe},mI:function(){return Ke},JU:function(){return Ze},$A:function(){return $e},iP:function(){return Ye},Lq:function(){return Xe},gM:function(){return Je},Ru:function(){return et},U9:function(){return tt},tL:function(){return nt},OX:function(){return rt},bQ:function(){return it},MG:function(){return ot},lU:function(){return at},hy:function(){return st},iR:function(){return ct},F1:function(){return lt},nY:function(){return ut},AN:function(){return mt},rH:function(){return dt},FJ:function(){return ft},hw:function(){return pt},oD:function(){return ht},Zs:function(){return bt},Lz:function(){return vt},Uo:function(){return gt},qt:function(){return At},G$:function(){return yt},H2:function(){return Ct},x4:function(){return _t},um:function(){return xt},YJ:function(){return wt},Wd:function(){return Tt},FM:function(){return Et},tI:function(){return St}});var r=n(14400),i="AUDIO_RECORDING_START",o="AUDIO_RECORDING_STOP",a="CHANGE_LANGUAGE",s="CONNECTION_CONNECTED",c="CONNECTION_DISCONNECTED",l="CONNECTION_ERROR",u="CONNECTION_PROGRESS",m="CONNECTION_START",d="DEBUG_DISABLED",f="DEBUG_ENABLED",p="DEBUG_INFO_ENABLED",h="DEBUG_INFO_DISABLED",b="DEVICE_CHANGED",v="ENABLE_LEGACY_BROWSER_WARNING",g="FILE_UPLOAD_CLEARED",A="FILE_UPLOAD_COMPLETED",y="FILE_UPLOAD_FAILED",C="FILE_UPLOAD_PROGRESS",_="FILE_UPLOAD_STARTED",x="LOG_ERROR",w="LOOKUP_TABLE_FETCH",T="LOOKUP_TABLE_RECEIVE",E="MOBILE_PREVIEW_DISABLED",S="MOBILE_PREVIEW_ENABLED",k="MOBILE_PREVIEW_TOGGLE",B="NAVIGATION_BRANCH_TO",N="NAVIGATION_COMPLETION_QUESTION_REACHED",M="NAVIGATION_DISPLAY_MESSAGE",D="NAVIGATION_PAGE_READY",I="NAVIGATION_NEXT_PAGE",O="NAVIGATION_PREVIOUS_PAGE",P="NAVIGATION_PREVIEW_QUESTION",R="NAVIGATION_QUIT",L="NAVIGATION_RESET",V="NAVIGATION_SHORTCUT",F="OPEN_UPLOADED_FILE",q="PREVIEW_THEME",U="QUESTIONNAIRE_CHANGED",H="QUOTAS_CHANGED",W="QUOTAS_CLOSE_STRATUM",z="QUOTAS_CLOSE_USER_STRATUM",j="RECALL_TEXT",G="RESPONDENT_CHANGED",Q="RESPONDENT_SET_APPOINTMENT",K="RESPONDENT_SET_EMAIL",Z="RESPONDENT_SET_PHONE",$="RESPONDENT_SET_TIMEZONE",Y="SET_DISPLAY_IN_THEME_EDITOR",X="SET_LOOP_ROW",J="SET_NAVIGATION_ENABLED",ee="SET_PAGE_MESSAGES_ENABLED",te="SET_RECALL_MODE",ne="SET_SURVEY_MODE",re="SET_VARIABLE_MENTIONS",ie="SET_MULTIPLE_VARIABLES_MENTIONS",oe="VALIDATION_CLEAR",ae="VALIDATION_SET_RESULT",se="VALIDATION_SET_RESULT_NEXT",ce="RESET_MENTIONS",le="SERVER_PAGE_CHANGED",ue="SET_SERVER_TRACKED_ANSWERS",me="INVALIDATE_CLIENT_VARIABLES",de="USE_CLIENT_VALIDATION",fe="LOAD_ANSWERS_DTO",pe="REFRESH_CURRENT_PAGE_QUESTIONS",he="SET_IS_INPUT_FOCUSED",be="VALIDATE_PAGE_ON_SERVER",ve="SET_COORDINATES",ge="HIDE_ACCESSIBILITY_PANEL",Ae="UPDATE_QUESTION_FIELD_STATUS",ye=function(e,t){return{type:i,questionName:e,matrix:t}},Ce=function(){return{type:o}},_e=function(e){return{type:a,code:e}},xe=function(e){return{type:m,url:e}},we=function(e){return{type:s,url:e,connected:!0}},Te=function(e){return{type:c,reason:e,connected:!1}},Ee=function(){return{type:f}},Se=function(){return{type:h}},ke=function(){return{type:p}},Be=function(e){return{type:Y,displayInThemeEditor:e}},Ne=function(e){return{type:ne,mode:e}},Me=function(e){return{type:b,device:e}},De=function(e,t,n,r,i){return{type:_,variableName:e,matrix:t,fileName:n,size:r,cancellationTokenSource:i}},Ie=function(e,t){return{type:g,variableName:e,matrix:t}},Oe=function(e,t){return{type:A,variableName:e,matrix:t}},Pe=function(e,t,n){return{type:C,variableName:e,matrix:t,progress:n}},Re=function(e,t,n,r){return{type:y,variableName:e,matrix:t,fileName:n,error:r}},Le=function(e,t,n){return{type:"GET_FILE_FAILED",variableName:e,fileName:t,error:n}},Ve=function(e,t,n){return{type:w,tableId:e,params:t,questionName:n}},Fe=function(e,t,n,r){return{type:T,tableName:e,requestId:t,page:n,questionName:r}},qe=function(){return{type:k}},Ue=function(){return{type:N}},He=function(e){return{type:B,options:e}},We=function(){return{type:I}},ze=function(){return{type:O}},je=function(){return{type:D}},Ge=function(e){return{type:P,questionId:e}},Qe=function(e){return{type:M,message:e}},Ke=function(e,t){return{type:R,dispositionCode:e,options:t}},Ze=function(e){return{type:L,clearAnswers:e}},$e=function(e,t){return{type:V,blockName:e,exitToNextQuestion:t}},Ye=function(e){return{type:H,quotas:e}},Xe=function(e){return{type:W,stratumId:e}},Je=function(e){return{type:z,stratumId:e}},et=function(e){return{type:J,enabled:e}},tt=function(e,t){return{type:j,expression:e,mode:void 0===t?r.a.Text:t}},nt=function(e){return{type:G,respondent:e}},rt=function(e){return{type:le,page:e}},it=function(e){return{type:Q,appointment:e}},ot=function(e){return{type:K,email:e}},at=function(e){return{type:Z,phone:e}},st=function(e){return{type:$,timeZone:e}},ct=function(e,t){return{type:X,blockName:e,row:t}},lt=function(e,t,n){return{type:re,variableName:e.toUpperCase(),matrixIndex:n,builder:t}},ut=function(e){return{type:ie,mentionsByVariable:e}},mt=function(e){return{type:U,questionnaire:e}},dt=function(e){return{type:q,theme:e}},ft=function(e){return{type:ee,isPageMessageEnabled:e}},pt=function(e,t,n){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===n&&(n=null),{type:oe,includeNewValidationResults:e,keepSoftPromptError:t,removeValidationForVariables:n}},ht=function(e){return{type:ae,result:e}},bt=function(e){return{type:se,result:e}},vt=function(e){return{type:ce,mentions:e}},gt=function(e){return{type:v,enableWarning:e}},At=function(e){return{type:ue,answers:e}},yt=function(){return{type:me}},Ct=function(e){return{type:fe,answers:e}},_t=function(e){return{type:pe,page:e}},xt=function(e){return{type:he,isInputFocused:e}},wt=function(e,t){return{type:ve,latitude:e,longitude:t}},Tt=function(e){return{type:ge,hideAccessibilityPanel:e}},Et=function(e,t,n,r){return{type:"UPDATE_CARROUSEL_ACTIVE_VARIABLE",instanceId:e,activeVariableIndex:t,isPrevBtnActive:n,isNextBtnActive:r}},St=function(e,t){return{type:Ae,fieldIdentifiers:e,isDisabled:t}}},5156:function(e,t,n){"use strict";n.d(t,{xY:function(){return P},Dv:function(){return V}});var r=n(17126),i=n(16856),o=n(58043),a=n(11325),s=n(67792),c=n(54955),l=n(95457),u=n(30697),m=n(56847);function d(e){if(null!=e)return{id:e.id,stratumId:e.stratumId,condition:e.condition,description:e.description,variables:e.variables,status:m.u[e.status]||m.u.Open,userStatus:m.u[e.userStatus]||m.u.Open,todo:e.todo,objective:e.objective,frequency:e.frequency,online:e.online,userObjective:e.userObjective,userFrequency:e.userFrequency}}var f,p=n(65570);!function(e){e[e.DoNothing=0]="DoNothing",e[e.DisplayMessageAndExit=1]="DisplayMessageAndExit",e[e.RedirectToUrl=2]="RedirectToUrl"}(f||(f={}));var h,b=n(3525),v=n(12209),g=n(1509),A=n(5498),y=n(90977),C=n(89482),_=n(11110),x=function(e,t){var n=window.rg4js;n&&n("trackEvent",{type:"customTiming",name:e,duration:t})},w=n(79344),T=n(84741),E=n(47658),S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)},k="apiConnector",B=(null===(h=document.getElementById("S2_SessionId"))||void 0===h?void 0:h.value)||"",N=null,M=-1;function D(e){var t=function(t,n,r){void 0===r&&(r={});var i=r.data,s=r.onDone,c=r.retry,l=r.disableNavigation,u=void 0===l||l;n.startsWith("/")||(n="/"+n);var m=(new Date).getTime();if(N){var d=N+n+(B?"&vx-psid="+B:"");o.Zb.d(k,t+" "+d,"..."),u&&e.dispatch((0,A.Ru)(!1)),function n(){var r=new XMLHttpRequest;if(r.open(t,d,!0),r.addEventListener("load",(function(n){var i=(new Date).getTime()-m;if(x(d,i),u&&e.dispatch((0,A.Ru)(!0)),4===r.readyState&&(o.Zb.d(k,t+" "+d,r.status+" ("+i+"ms)"),s)){var c=r.responseText;if(!(0,a.Ew)(r.responseText))try{c=JSON.parse(c)}catch(n){o.Zb.e(k,"XHR_ERROR",void 0,n)}s(c,r.status,i)}})),r.addEventListener("error",(function(i){var a=(new Date).getTime()-m;x(d,a),c?setTimeout(n,600):(o.Zb.e(k,t+" "+d,"("+a+"ms)",i),s&&s(r.statusText,0,a),e.dispatch((0,A.Ru)(!0)))})),null!=i){var l=JSON.stringify(i);r.setRequestHeader("Content-Type","application/json"),r.send(l)}else r.send()}()}};return{get:function(e,n){return t("GET",e,n)},post:function(e,n){return t("POST",e,n)},put:function(e,n){return t("PUT",e,n)},del:function(e,n){return t("DELETE",e,n)}}}var I=function(e,t){void 0===t&&(t=e.interview.variables);var n=e.interview,r=n.navigation,o=n.questionnaire,a=t.mentionsByVariableName;return e.application.mode===C.E.Normal&&(a=O(r,t)),(0,i.UI)(a,(function(e,t){var n;return{variableName:t,questionType:null===(n=(0,b.Dz)(o,t))||void 0===n?void 0:n.type,matrices:(0,i.UI)((0,i.vM)(e,"matrix"),(function(e,t){return{index:t,mentions:e.map((function(e){return{index:e.index,value:e.value,openEnd:e.openEnd}}))}}))}}))},O=function(e,t){var n=R(e);return(0,i.D9)(t.mentionsByVariableName,(function(e,t){return null==n?void 0:n.some((function(e){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}))}))},P=function(e){var t=D(e),n=t.get,r=t.post,a=t.del;return{audioRecordingStart:function(e,t){n("r/audiorecording/start?questionName="+e+"&matrix="+t)},audioRecordingStop:function(){n("r/audiorecording/stop?")},clearFile:function(e,t){a("r/clear?variableName="+e+"&matrix="+t)},uploadFile:function(e,t){if(t){var n=new XMLHttpRequest;n.open("POST","/Upload?vx-psid="+B,!0);var r=new FormData;r.append("file",t),n.send(r)}},fileUploadOpen:function(e,t,r){n("r/filedialog/open?variableName="+e+"&mimeType="+t+"&matrix="+r)},openUploadedFile:function(e,t){n("r/openUploadedFile?variableName="+e+"&matrix="+t)},lookupTableFetch:function(t,r,i,a){var s=e.getState().interview,c=s.respondent.language||s.language;n(encodeURI("s/lookuptable?pageStart="+i.pageStart+"&language="+c+"&pageLength="+i.pageLength+"&search="+i.search+"&sortColumn="+i.sortColumn+"&sqlFilter="+i.sqlFilter+"&sortAsc="+i.sortAsc+"&selected="+i.selected.join(",")+"&questionName="+a+"&tableName="+t+"&requestId="+r+"&columnFilters="+JSON.stringify(i.columnFilters)),{onDone:function(n,i){if(200===i){var s=n&&n.hasOwnProperty("page")?n.page:null;s&&e.dispatch((0,A.BA)(t,r,s,a))}else o.Zb.e(k,"LOOKUP_TABLE_ERROR","An error occurred fetching the table.")}})},quit:function(e,t,r){var o={};r&&r.closedStrata&&(o.closedStrata=!0),r&&r.redirectUrl&&(o.redirectUrl=r.redirectUrl),r&&r.message&&(o.message=r.message),r&&r.forcedQuit&&(o.forcedQuit=!0),r&&r.discard&&(o.discard=!0),r&&r.questionId&&(o.questionId=r.questionId),t&&(o.disposition=t),o.language=e.language,o.forcedQuit&&n("r/quit?"+(0,i.UI)(o,(function(e,t){return t+"="+encodeURIComponent(e.toString())})).join("&"))},back:function(e){r("r/back?",{onDone:e})},shortcut:function(e,t){r("r/shortcut?",{data:e,onDone:t})},navigateTo:function(t,n){var i=e.getState(),o=i.application.mode,a=o===C.E.Preview||o===C.E.Test?I(i):null;r("r/navigateTo?",{data:{destination:t.destination,isQuitButton:t.isQuitButton,isPreviewNavigation:t.isPreviewNavigation,answers:a},onDone:n})},next:function(t){var n=e.getState().interview;o.Zb.d(k,"Saving interview state...");var a,s=(0,b.J1)(n.questionnaire),c=s&&(0,u.__isBlockVisible__)(n.questionnaire.blocks[s.blockIndex],n)&&(0,u.__isQuestionVisible__)(s,n);r("r/next?",{data:{quotas:(a=n.quotas.output,(0,i.UI)(a,(function(e){return S(S({},e),{status:m.u[e.status],userStatus:m.u[e.userStatus]})}))),answers:I(e.getState()),hasCompletionQuestion:c,completionQuestionReached:n.navigation.completionQuestionReached,respondent:n.respondent,matrixByBlockName:n.navigation.loopByBlockName},onDone:t})},setMentions:function(t,n){var i=e.getState().interview;o.Zb.d(k,"Saving variable mentions...");var a=(0,y.AY)(i.variables,i.navigation,i.questionnaire,t.variableName,t.matrixIndex,t.builder);(0,w.X$)(i.navigation).includes(t.variableName)&&r("r/setMentions?",{disableNavigation:!1,data:I(e.getState(),a),onDone:n})},validatePage:function(t){var n=e.getState().interview;o.Zb.d(k,"Validating page on server"),r("r/validatePage?",{disableNavigation:!1,data:{answers:I(e.getState()),respondent:n.respondent,matrixByBlockName:n.navigation.loopByBlockName},onDone:t})}}},R=function(e){var t,n;return null===(n=null===(t=null==e?void 0:e.currentPageOnServer)||void 0===t?void 0:t.questions)||void 0===n?void 0:n.flatMap((function(e){return null==e?void 0:e.variables.flatMap((function(e){return e.name}))}))},L=function(e,t,n){if(t&&t.answers&&e((0,A.H2)(t.answers)),t.currentPage&&e((0,A.OX)(t.currentPage)),t.termination){var r={terminationSurveyAction:t.termination.action,redirectUrl:t.termination.value};e((0,A.mI)(t.termination.dispositionCode,r))}n&&e(n)},V=function(e){return function(t){return function(n){var i;switch(n.type){case A.YA:!function(e,t,n){var i=D(n).get;(N=e).endsWith("/")&&(N=N.slice(0,-1));var o=r.ou.now();i("preflight?="+(new Date).getTime()+"&dtoffset="+o.offset,{onDone:function(e,r){return s=void 0,l=void 0,m=function(){var s,l,u,m,d,f,p,h,b;return function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,(function(v){switch(v.label){case 0:if(200!==r)return window.location.href=N+"/e/"+((null===(b=null==e?void 0:e.termination)||void 0===b?void 0:b.messageCode)||0),[2];if(e&&e.termination){switch(s=e.termination,l=s.action,u=s.value,l){case T.y.DisplayMessage:window.location.href=N+"/e/"+(e.termination.messageCode||0)+"?em="+encodeURIComponent(u);break;case T.y.RedirectToUrl:m=-1===u.indexOf("://")?"http://"+u:u,window.location.href=m;break;default:window.location.href=N+"/e/"+(e.termination.messageCode||0)}return[2]}return n.dispatch((0,A.IO)(e.device)),n.dispatch((0,A.tL)((0,c.K)(e.respondent))),n.dispatch((0,A.iP)(e.strata)),d=e.respondent.simulated,f="",0===e.respondent.surveyVersion&&(f="="+(new Date).getTime()),e.surveyTitle&&(document.title=e.surveyTitle),e.preventIndexing&&((p=document.createElement("meta")).name="robots",p.content="noindex",document.head.appendChild(p),(h=document.createElement("meta")).name="robots",h.content="nofollow",document.head.appendChild(h)),(0,a.Ew)(e.customHead)?[3,2]:[4,new Promise((function(t){document.head.innerHTML+=e.customHead,F(document.head),M>-1?document.head.childNodes[M].onload=function(){return t()}:t()}))];case 1:v.sent(),v.label=2;case 2:return U(i,e,f,n,d,t,o),[2]}}))},new((u=void 0)||(u=Promise))((function(e,t){function n(e){try{i(m.next(e))}catch(e){t(e)}}function r(e){try{i(m.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof u?i:new u((function(e){e(i)}))).then(n,r)}i((m=m.apply(s,l||[])).next())}));var s,l,u,m},retry:!0})}(n.url,t,e);break;case A.ct:P(e).audioRecordingStart(n.questionName,n.matrix);break;case A.Qn:P(e).audioRecordingStop();break;case A.wr:var o=t(n),d=e.getState().lookupTable.requestId[n.questionName];return P(e).lookupTableFetch(n.tableId,d,n.params,n.questionName),o;case A.Aq:return P(e).shortcut(n,(function(e){return L(t,e,n)})),null;case A._t:return P(e).back((function(r){r&&r.strata&&e.dispatch((0,A.iP)(r.strata)),L(t,r,n)})),null;case A.FP:var h=e.getState().interview;if(function(e){for(var t=e.getState().interview,n=(0,p.T)(t.quotas,t,(0,A.b$)()),r=[],i=function(n){if(0===n.stratumId)return"continue";var i,o=function(){return i||(i=(0,u.__evaluateSafe__)(t,n.condition).asBoolean()),i},a=n.status===m.u.Closed||n.frequency>n.objective,s=n.status===m.u.HalfOpen,c=n.userStatus===m.u.Closed||n.userObjective>0&&n.userFrequency>n.userObjective,l=n.userStatus===m.u.HalfOpen;(a||s)&&o()?(e.dispatch((0,A.Lq)(n.stratumId)),r.push(n)):(c||l)&&o()&&(e.dispatch((0,A.gM)(n.stratumId)),r.push(n))},o=0,a=n.output;o<a.length;o++)i(a[o]);return r.length>0}(e)&&(0,l.Ag)(h.questionnaire,"CLOSED_STRATA_RULE","BlockAllowInterviews")){switch((0,l.Wd)(h.questionnaire,f,"QUOTA_ACTION")){case f.DisplayMessageAndExit:var v=(0,g.I)(h.questionnaire,"QuotaMetClosedMessage",h.respondent.language);e.dispatch((0,A.md)(v));break;case f.RedirectToUrl:var y=(0,l.yP)(h.questionnaire,"QUOTA_ACTION_REDIRECT_URL");window.location.href=y;break;default:e.dispatch((0,A.mI)(s.$.OutOfQuota))}return null}return P(e).next((function(r){if(r&&r.strata&&e.dispatch((0,A.iP)(r.strata)),r.errors&&r.errors.length){var i=(0,_.R6)(r.errors);return e.dispatch((0,A.hw)(!0,!0)),e.dispatch((0,A.oD)(i)),void L(t,r)}if(r&&r.termination){var o=r.termination,a=o.action,c=o.value;switch(a){case T.y.DisplayMessage:e.dispatch((0,A.mI)(r.termination.dispositionCode||s.$.Completed,{message:c,terminationSurveyAction:a}));break;case T.y.RedirectToUrl:var l=-1===c.indexOf("://")?"http://"+c:c;window.location.href=l;break;default:L(t,r,n)}}else L(t,r,n),(0,E.X)(e)})),null;case A.pI:var C=n.dispositionCode,x=e.getState(),w=S(S({},(0,b.aA)(x.interview.questionnaire,x.interview.language,C)),n.options);return P(e).quit(e.getState().interview,C,w),t(n);case A.Ed:P(e).navigateTo(n.options,(function(e){return L(t,e,n)}));break;case A.VQ:var k=null===(i=(0,b.FK)(e.getState().interview.questionnaire,n.questionId))||void 0===i?void 0:i.name;k&&P(e).navigateTo({destination:k,isPreviewNavigation:!0},(function(e){return L(t,e,n)}));break;case A.Pi:P(e).setMentions(n,(function(n){var r;(null===(r=e.getState().interview.navigation)||void 0===r?void 0:r.disabled)||(t((0,A.x4)(n.currentPage)),n&&n.answers&&t((0,A.H2)(n.answers)))}));break;case A.q:P(e).validatePage((function(t){var n,r=e.getState().interview,i=r.navigation,o=r.useClientValidation,a=null===(n=t.errors)||void 0===n?void 0:n.filter((function(e){return(0,_.I7)(e.variableName.split("$")[0],i,o)}));if(a&&a.length){var s=(0,_.R6)(t.errors);e.dispatch((0,A.oD)(s))}}))}return t(n)}}},F=function(e){var t="SCRIPT";if(e.tagName===t)e.parentNode.replaceChild(q(e),e);else for(var n=-1,r=e.childNodes;++n<r.length;){var i=r[n];F(i),i.tagName===t&&i.attributes.length>0&&i.attributes.src&&(M=n)}return e},q=function(e){var t=document.createElement("script");t.text=e.innerHTML;for(var n,r=-1,i=e.attributes;++r<i.length;)t.setAttribute((n=i[r]).name,n.value);return t.async=!1,t},U=function(e,t,n,r,a,c,u){var m=t.respondent,f=t.answers,p=t.quotas,h=t.currentPage;e("s/"+m.surveyId+"/v/"+m.surveyVersion+"/survey.json?"+n,{onDone:function(t,n){if(200===n){var y=(0,v.wW)(t),C=(0,l.Ag)(y,"COLLECT_RESPONDENT_GEO_LOCATION");if(r.dispatch((0,A.AN)(y)),(0,i.M6)(m.matrixByBlockName,(function(e,t){r.dispatch((0,A.iR)(t,e))})),a||!(0,b.Bw)(y))f&&(c((0,A.H2)(f)),r.dispatch((0,A.qt)(f))),r.dispatch((0,A.OX)(h)),p&&r.dispatch((0,A.iP)(p.map(d))),m.language&&r.dispatch((0,A.D0)(m.language)),r.dispatch((0,A.xf)(N)),C&&navigator.geolocation?navigator.geolocation.getCurrentPosition((function(t){var n=t.coords,i=n.latitude,o=n.longitude;r.dispatch((0,A.YJ)(i,o)),e("/r/ready?tzid="+u.zoneName+"&lat="+i+"&lon="+o)}),(function(t){e("/r/ready?tzid="+u.zoneName+"&errormessage="+encodeURIComponent(t.message))})):e("/r/ready?tzid="+u.zoneName);else{var _=(0,g.I)(y,"InactiveSurveyMessage",r.getState().interview.language);r.dispatch((0,A.mI)(s.$.Dropped,{message:_,discard:!0}))}}else o.Zb.e(k,"SURVEY_ERROR","An error occurred downloading the survey.")}})}},47658:function(e,t,n){"use strict";n.d(t,{D:function(){return L},X:function(){return R}});var r,i=n(16856),o=n(22748),a=n(30697),s=n(52308),c=n(67792);!function(e){e[e.Absolute=0]="Absolute",e[e.Variable=1]="Variable",e[e.Formula=2]="Formula"}(r||(r={}));var l,u,m=n(17837),d=n(58043),f=n(30037),p=n(14400),h=n(64062),b=n(5498),v=n(2094),g=n(95457),A=n(79344),y=n(47103),C=n(3525),_="flowController",x=function(e){return e.getState().interview.navigation.currentPage},w=function(e){return x(e).questions.filter((function(t){return(0,a.__isQuestionVisible__)(t,e.getState().interview)}))},T=function(e,t){if(void 0===t.condition)return!0;var n=(0,a.__evaluateSafe__)(e.getState().interview,t.condition).asBoolean();return d.Zb.d(_,"SHOULD_EXECUTE_ACTION",o.w[t.type]+":("+t.condition.expression+")="+(n?"TRUE":"FALSE")),n},E=function(e,t){var n=e.getState().interview.navigation;t((0,b.b$)());var r=e.getState().interview.navigation;if(!r.completionQuestionReached){var i=e.getState().interview,o=(0,C.J1)(i.questionnaire);o&&(r.blockIndex>o.blockIndex||r.blockIndex===o.blockIndex&&r.questionIndex>=o.index)&&(0,a.__isBlockVisible__)(r.randomizedBlocks[o.blockIndex],i)&&(0,a.__isQuestionVisible__)(o,i)&&e.dispatch((0,b.p$)())}return n!==r||(e.dispatch((0,b.mI)(c.$.Completed)),!1)},S=function(e,t){var n=e.getState().interview,r=n.respondent;n.variables.mentionsByVariableName!==l&&t((0,b.Lz)(l)),u&&(r.email!==u.email&&t((0,b.MG)(u.email)),r.timeZone!==u.timeZone&&t((0,b.hy)(u.timeZone)),r.language!==u.language&&t((0,b.D0)(u.language)),r.phone!==u.phone&&t((0,b.lU)(u.phone)))},k=function(e){var t=e.getState().interview.respondent,n=e.getState().interview.questionnaire,r=function(e){return null!=(0,C.C2)(n,e)};if(!t.isNew){if(t.dispositionCode===c.$.Completed&&r((0,g.yP)(n,"RESUME_COMPLETED_QUESTION")))return!1;if(t.dispositionCode!==c.$.Completed&&r((0,g.yP)(n,"RESUME_NOT_COMPLETED_QUESTION")))return!1}return!r((0,g.yP)(n,"START_QUESTION"))},B=function(e,t,n,l){var u,g=((u={})[o.w.BranchTo]=function(){return function(e,t,n){var r=(0,f.e3)(n,s.u.Question);if(r){var i=(0,f.nB)(n,s.u.AutoClean),o=(0,f.qA)(n,c.$,s.u.Status),a=(0,h.n)(n,e.getState().interview);return e.dispatch((0,b.Bf)({exitSurvey:void 0!==o,autoClean:i,origin:t.name,destination:r,surveyResult:o,redirectUrl:a,isPreload:n.isPreload})),!0}}(e,n,l)},u[o.w.ExitSurvey]=function(){return function(e,t){var n=(0,f.qA)(t,c.$,s.u.Status),r=(0,h.n)(t,e.getState().interview);return e.dispatch((0,b.mI)(n,{redirectUrl:r})),!0}(e,l)},u[o.w.SetVariableValue]=function(){},u[o.w.MobileAudioRecording]=function(){return function(e,t){var n=e.getState().interview.navigation.currentPage.loopIndex;(0,f.nB)(t,s.u.Mode,"Start")?e.dispatch((0,b.Aj)(t.questionName,n)):e.dispatch((0,b.b)())}(e,l)},u[o.w.ComputeVariable]=function(){return function(e,t){var n=(0,f.e3)(t,s.u.CalculatedVariableName),i=(0,f.qA)(t,r,s.u.ValueType),o=(0,f.e3)(t,s.u.Value),c=o;i===r.Formula?c=(0,a.__evaluateUnsafe__)((function(){return e.getState().interview}),e.dispatch,o).asString():i===r.Variable&&(c=m.A.evaluateRecalls(e.getState().interview,o,p.a.Code));var l=o===c?o:o+" → "+c;d.Zb.d("logic","COMPUTE_VARIABLE",n+"="+l),e.dispatch((0,b.F1)(n,(function(e){return e.clear().add(c)})))}(e,l)},u[o.w.Selection]=function(){return function(e,t){var n=e.getState().interview,r=new v.n(n.respondent.seed),o=(0,i.hX)(t.selections,(function(e){return!e.condition||(0,a.__evaluateSafe__)(n,e.condition).asBoolean()})),s=(0,i.Xo)(o,(function(){return r.next()})),c=(0,i.Xo)(s,(function(e){return e.score&&(0,a.__evaluateSafe__)(n,e.score).asNumber()}),"desc"),l=(0,i.Xo)(c,(function(e){return Number(e.priority)||0}),"desc"),u=(0,i.UI)(l,(function(e){return(0,i.fy)(e.value)})),m=(0,i.vM)(t.selectionVariables,"name");(0,i.Ed)(m,(function(t,n){var r=t.map((function(){var e=u.shift();return{value:null==e?"":e}}));e.dispatch((0,b.F1)(n,(function(e){return e.clear().add(r)})))}))}(e,l)},u[o.w.SetLoopRow]=function(){return function(e,t){var n=(0,f.e3)(t,s.u.Block),i=(0,f.qA)(t,r,s.u.ValueType),o=(0,f.e3)(t,s.u.Value);i===r.Variable&&(o=(0,a.__evaluateUnsafe__)((function(){return e.getState().interview}),e.dispatch,o).asNumber()),e.dispatch((0,b.iR)(n,o))}(e,l)},u[o.w.ResumeLastSession]=function(){return function(e,t,n){var r=e.getState().interview.respondent.prevSessionLastAnsweredQuestion;if(r&&r!==t.name)return e.dispatch((0,b.Bf)({origin:t.name,destination:r})),e.dispatch((0,b.b$)()),!0}(e,n)},u[o.w.ExecuteSQL]=function(){return e.dispatch((0,b.G$)())},u);if(null!=g[l.type])return g[l.type]()},N=function(e,t,n,r,i){for(var a=0,s=r||[];a<s.length;a++){var c=s[a];if((!i||c.type===o.w.BranchTo)&&T(e,c)&&B(e,0,n,c))return!0}},M=function(e,t,n){for(var r=0,i=w(e);r<i.length;r++){var o=i[r];if(N(e,0,o,o.postAnswerActions,n))return!0}},D=function(e,t){var r=w(e).find((function(e){return e.type===y.ce.RespondentMetaData}));if(r){var o=(new(n(42238))).getResult(),a=(0,g.yP)(r,"BrowserLanguageVariableName"),s=(0,g.yP)(r,"IpAddressVariableName"),c=(0,g.yP)(r,"JavaSupportVariableName"),l=(0,g.yP)(r,"OperatingSystemVariableName"),u=(0,g.yP)(r,"RefererVariableName"),m=(0,g.yP)(r,"UserAgentVariableName"),d=e.getState().interview.respondent.ipAddress;if((0,i.xb)(a)||"undefined"==typeof window||t((0,b.F1)(a,(function(e){var t;return e.set(null===(t=null===window||void 0===window?void 0:window.navigator)||void 0===t?void 0:t.language)}))),(0,i.xb)(s)||t((0,b.F1)(s,(function(e){return e.set(d)}))),(0,i.xb)(c)||"undefined"==typeof window||t((0,b.F1)(c,(function(e){return e.set(window.navigator.javaEnabled()?"True":"False")}))),(0,i.xb)(l)||t((0,b.F1)(l,(function(e){return e.set(o.os.name+" "+o.os.version)}))),(0,i.xb)(u)||"undefined"==typeof window||t((0,b.F1)(u,(function(e){return e.set(window.location.href)}))),(0,i.xb)(m)||t((0,b.F1)(m,(function(e){return e.set(o.browser.name+" "+o.browser.version)}))),!w(e).some((function(e){return e.type!==y.ce.RespondentMetaData})))return E(e,t),!1}return!0},I=function(e,t,n){for(var r=0,i=w(e);r<i.length;r++){var o=i[r];if(N(e,0,o,o.preLoadActions,n))return!0}},O=function(){var e=[];function t(e){return e.questions.map((function(e){return e.index}))}return function(n){if(function(n){var r=t(n);return e.some((function(e){return e.blockIndex===n.blockIndex&&e.loopIndex===n.loopIndex&&(0,i.Xy)(e.questionIndices,r)}))}(n))return!1;var r=n.blockIndex,o=n.loopIndex;return e.push({blockIndex:r,loopIndex:o,questionIndices:t(n)}),!0}},P=function(e,t,n){for(var r=O();;){var i=x(e);if(i.isReady)return;if(!r(i)){d.Zb.e(_,"INFINITE_LOOP_DETECTED","An infinite loop was detected.");break}if(D(e,t))if(0!==w(e).length){if(!I(e,0,n)||x(e)===i){e.dispatch((0,b.Nh)());break}}else if(d.Zb.d(_,"PAGE_EMPTY","Page has no visible questions, navigating to the next page."),!E(e,t))return}},R=function(e){var t=e.getState().interview,n=t.respondent,r=t.variables;l=r.mentionsByVariableName,u={email:n.email,language:n.language,timeZone:n.timeZone,phone:n.phone}},L=function(e){return function(t){return function(n){var r;try{if(null===(r=e.getState().interview.navigation)||void 0===r?void 0:r.currentPageOnServer)switch(n.type){case b.FP:R(e);break;case b._t:S(e,t)}else switch(n.type){case b.FP:return x(e).isReady&&M(e)||E(e,t)&&P(e,t),n;case b._t:S(e,t);var o=t(n);return e.dispatch((0,b.Nh)()),o;case b.Aq:return o=t(n),I(e)?P(e,t):(e.dispatch((0,b.Nh)()),o);case b.Ed:case b.i0:return o=t(n),P(e,t),o;case b.UK:return o=t(n),function(e,t){var n=function(e){var t=e.getState().interview,n=t.respondent,r=t.questionnaire,i=null,o=function(e){return i=(0,C.C2)(r,e)};if(!n.isNew){if(n.dispositionCode===c.$.Completed&&o((0,g.yP)(r,"RESUME_COMPLETED_QUESTION")))return i;if(n.dispositionCode!==c.$.Completed&&o((0,g.yP)(r,"RESUME_NOT_COMPLETED_QUESTION")))return i}return o((0,g.yP)(r,"START_QUESTION"))?i:o(n.prevSessionLastAnsweredQuestion)}(e),r=e.getState().interview.questionnaire,o=!(0,C.ew)(r);if(!n)return t((0,b.JU)()),void P(e,t);d.Zb.i(_,"NAVIGATE_TO_START_QUESTION",n.name),o&&d.Zb.i(_,"NAVIGATE_TO_START_QUESTION","Skipping advanced actions.");var a=e.getState().interview.questionnaire.blocks[n.blockIndex],s=e.getState().interview.navigation.loopByBlockName[a.name.toUpperCase()]||1;t((0,b.JU)());for(var l=O();;){var u=x(e);if(!l(u)){d.Zb.e(_,"INFINITE_LOOP_DETECTED",'An infinite loop was detected navigating to start question "'+n.name+'".');break}var m=w(e);if(0!==m.length){var f=(0,i.Z$)(m),p=u.loopIndex>=s,h=u.blockIndex===n.blockIndex&&p;if(u.blockIndex>n.blockIndex||f.index>=n.index&&h){if(k(e)&&(0,A.Qy)(e.getState().interview.navigation)&&f.index===n.index){if(e.dispatch((0,b.Nh)()),x(e).previewQuestion)return;if(M(e,0,o))continue;if(!E(e,t))return;0===x(e).questions.length&&t((0,b.BL)())}return void P(e,t,o)}if(!I(e,0,o)){if(e.dispatch((0,b.Nh)()),x(e).previewQuestion)return;if(!M(e,0,o)){if(!(0,A.Qy)(e.getState().interview.navigation))break;if(!E(e,t))return}}}else if(d.Zb.d(_,"PAGE_EMPTY","Page has no visible questions, navigating to the next page."),!E(e,t))return}d.Zb.w(_,"NAVIGATE_TO_START_QUESTION",'Start question "'+n.name+'" not found.'),t((0,b.JU)()),P(e,t,o)}(e,t),o;case b.sC:case b.d_:R(e)}}catch(t){throw e.dispatch((0,b.md)(t)),t}return t(n)}}}},39819:function(e,t,n){"use strict";n.d(t,{Q:function(){return de}});var r=n(5498),i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o={url:"",connected:!1},a=function(e,t){switch(void 0===e&&(e=o),t.type){case r.UK:case r.pF:case r.Ct:return i(i({},e),{connected:t.connected});case r.AW:return i(i({},e),{progress:t.progress});case r.Js:return i(i({},e),{progress:void 0});case r.YA:return{url:t.url,connected:!1};default:return e}},s=n(1509),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},c.apply(this,arguments)},l=n(90977),u=n(95457),m=n(3525),d=n(25753),f=n(16856),p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)},h=function(e,t,n,r){if(!r.autoClean)return e;var i=r.isPreload&&(0,u.Ag)(n,"CLEAN_QUESTION_PRELOAD"),o=function(e,t,n,r,i,o){var a=(0,m.f8)(t,n,r,o),s=(0,m.YL)(t,n),c=(0,m.YL)(t,r);return(0,f.u4)(e.mentionsByVariableName,(function(e,n,r){var o,l=(0,m.tT)(t,r);return p(p({},e),((o={})[r]=n.filter((function(e){return function(e,t,n){if(a.map((function(e){return e.name})).includes(t))if(n.index===s.index){if(e.matrix>=i.loopIndex)return!0}else if(c.index>s.index)return!0;return(null==c?void 0:c.index)>s.index&&n.index===s.index&&e.matrix>i.loopIndex}(e,r,l)})),o))}),{})}(e,n,r.origin,r.destination,t,i);return(0,f.S6)(o,(function(t,n){var r;e=p(p({},e),{mentionsByVariableName:p(p({},e.mentionsByVariableName),(r={},r[n]=(0,f.e5)(e.mentionsByVariableName[n],t),r))})})),e},b=function(e,t,n,i,o,a){switch(t.type){case r.Js:return function(e,t,n,r){return p(p({},e),{system:p(p(p({},e.system),(0,l.ed)(r,n)),{$PNAME:new d.o(t.name),$A:new d.o((r.accessCount||1).toString()),$X:new d.o(t.id.toString()),$F:new d.o(t.id.toString()),"$SURVEY.Id":new d.o(t.id.toString()),"$SURVEY.Name":new d.o(t.name)}),mentionsByVariableName:{},currentLoopByBlockName:{}})}(e,t.questionnaire,a.currentPage,o);case r.gB:return function(e,t){return p(p({},e),{system:p(p({},e.system),{$DEVICE:new d.o(null==t?void 0:t.type),$DEVICEOS:new d.o(null==t?void 0:t.os),$DEVICEOSVERSION:new d.o(null==t?void 0:t.version),$DEVICEBROWSER:new d.o(null==t?void 0:t.browser),$DEVICEBROWSERVERSION:new d.o(null==t?void 0:t.version)})})}(e,t.device);case r.GV:case r.QO:case r.OY:case r.Ke:return function(e,t,n){return p(p({},e),{system:p(p(p({},e.system),(0,l.ed)(n,t)),{$Q:new d.o(String(n.respondentId||0)),$PIN:new d.o(n.pin),$EMAIL:new d.o(void 0!==n.email?n.email:""),$PHONE:new d.o(void 0!==n.phone?n.phone:""),$L:new d.o(n.language),$OFFLINEUSER:new d.o(n.offlineUserName,n.offlineUserId.toString()),$PANELISTID:new d.o(String(n.panelistId)),$SAMPLEID:new d.o(String(n.sampleId)),$PANELISTPOINTS:new d.o(String(n.panelistPoints))})})}(e,a.currentPage,o);case r.s3:return function(e,t){return p(p({},e),{system:p(p({},e.system),{$L:new d.o(t.language)})})}(e,o);case r.Pi:return(0,l.AY)(e,a,i,t.variableName,t.matrixIndex,t.builder);case r.fA:return function(e,t,n,r){return(0,f.u4)(r,(function(e,r,i){return(0,l.AY)(e,t,n,i.split(":")[0],void 0,r)}),e)}(e,a,i,t.mentionsByVariable);case r.FP:case r._t:case r.Ed:case r.R9:return function(e,t,n,i,o,a){var s=p({},e);return t.type===r.Ed&&(0,u.Ag)(o,"AUTO_DATA_CLEANING")&&(s=h(s,n,o,t.options)),p(p({},s),{system:p(p({},s.system),(0,l.ed)(a,i.currentPage))})}(e,t,n,a,i,o);case r.i0:return function(e,t,n){return t&&(e=p(p({},e),{mentionsByVariableName:{}})),p(p({},e),{system:p(p({},e.system),(0,l.ed)(n)),currentLoopByBlockName:{}})}(e,t.clearAnswers,o);case r.xP:return p(p({},e),{mentionsByVariableName:t.mentions});case r.yQ:return p(p({},e),{serverSideTrackedAnswers:t.answers});case r.y2:return p(p({},e),{invalidateClientSideVariables:!0});case r.O7:return function(e,t,n,r){return(0,f.u4)(r,(function(e,r){return function(e,t,n,r,i){return(0,f.u4)(i,(function(e,i){return(0,l.AY)(e,t,n,r,i.index,(function(e){return e.clear(),(0,f.S6)(i.mentions,(function(t){return e.add(t.value,t.openEnd)})),e}))}),e)}(e,t,n,r.variableName,r.matrices)}),e)}(e,a,i,t.answers);default:return e}},v=n(17126),g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},g.apply(this,arguments)},A=n(65570),y=n(79344),C=function(){return C=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},_=n(22950),x=function(){return x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x.apply(this,arguments)},w=function(){return w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w.apply(this,arguments)},T={},E=n(67792),S=n(84741),k=n(15899),B=n(30697),N=n(5156),M=n(17837),D=n(11325),I=function(){return I=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},I.apply(this,arguments)},O=function(e,t){return e.currentPage.questions.some((function(e){return(0,B.__isQuestionVisible__)(e,t)}))},P=function(e,t){var n=e;do{var r=(0,y.lp)(n);if(n===r)return null!=e.exitTo?(0,y.YA)(e,e.exitTo,!0):e;if(n=r,(0,y.Sk)(e,n))for(;!(0,B.__isBlockVisible__)((0,y.BQ)(n),t);){if(!(0,y.uC)(n))return null!=e.exitTo?(0,y.YA)(e,e.exitTo,!0):e;n=(0,y.IR)(n)}n=(0,y.bg)(n,t,e.exitTo)}while(!O(n,I(I({},t),{navigation:n})));return null==e.exitTo||n.blockIndex===e.blockIndex&&(0,y.gH)(n)===(0,y.gH)(e)?(n.exitTo=e.exitTo,n):(0,y.YA)(e,e.exitTo,!0)},R=function(e,t){return I(I({},e),{message:t})},L=n(96486),V=n(47103),F=function(){return F=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},F.apply(this,arguments)},q={};function U(e,t){var n=[];return t.forEach((function(t){e.find((function(e){return r=e,(n=t).index===r.index&&n.matrix===r.matrix&&n.value===r.value&&n.openEnd===r.openEnd&&n.customChoiceIndex===r.customChoiceIndex;var n,r}))||n.push(F({},t))})),n}function H(e,t,n,r,i,o){var a;if(e.type===V.ce.HybridGrid){var s=e.id+"&"+n,c=null===(a=e.rows)||void 0===a?void 0:a.filter((function(e){return e.variables&&e.variables.length>0&&e.variables.find((function(e){return e.name===n}))}));c&&c.length>0&&(function(e,t,n){e.variables.forEach((function(e){var r;if((null===(r=e.choiceList)||void 0===r?void 0:r.length)>0){var i=n[e.name];i&&i.length>0&&e.choiceList.forEach((function(e){i&&i.some((function(t){return t.value===e.value}))&&t.push((0,u.yP)(e,"DisableColumns"))}))}}))}(c[0],r,o),function(e,t,n,r,i,o){n.variables.forEach((function(n,a){var s=e.id+"&"+n.name,c=!1;r&&r.length>0&&r.join(",").replace(/\s/g,"").split(",").some((function(e){return e.toString()===a.toString()}))&&i!==s&&(c=!0),t[s]&&t[s].isDisabled!==c&&o.push([s,c])}))}(e,t,c[0],r,s,i))}}var W,z=function(){return z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},z.apply(this,arguments)},j={variables:{system:{},mentionsByVariableName:{}},navigation:{history:[],randomizedBlocks:[],randomizedQuestionIdByName:{},randomizedQuestionIdByVariable:{},questionIndex:0,loopByBlockName:{},disabled:!1,hasNextPage:!1,hasPreviousPage:!1,blockIndex:0},validation:{isValid:!0,errorsByVariableName:{}},language:"en"},G=function(e,t){switch(void 0===e&&(e=j),t.type){case r.pF:return j;case r.ir:return z(z({},e),{useClientValidation:t.useValidation})}var n=e.navigation.currentPage,i=function(e,t){switch(t.type){case r.Js:return(0,s.m)(t.questionnaire.defaultLanguage),t.questionnaire;case r.ev:return c(c({},e),{settings:c(c({},e.settings),{ENABLE_LEGACY_BROWSER_WARNING:t.enableWarning})});default:return e}}(e.questionnaire,t),o=function(e,t,n,i){switch(t.type){case r.pI:return function(e,t,n,r,i){var o=(0,m.aA)(n,t.language,r),a=(0,D.Ew)(null==i?void 0:i.message)?o.message:null==i?void 0:i.message;if((null==i?void 0:i.terminationSurveyAction)===S.y.DisplayMessage||!(0,D.Ew)(o.message)&&(null==i?void 0:i.terminationSurveyAction)!==S.y.RedirectToUrl){var c=(0,s.I)(n,"TerminationMessage",t.language);return R(e,a||c)}var l=(0,D.Ew)(null==i?void 0:i.redirectUrl)?o.redirectUrl:null==i?void 0:i.redirectUrl;if((null==i?void 0:i.terminationSurveyAction)===S.y.RedirectToUrl||(null==i?void 0:i.terminationSurveyAction)!==S.y.DisplayMessage&&!(0,D.Ew)(o.redirectUrl)){var u=M.A.evaluateRecalls(t,l);u.match(/^[a-zA-Z]+:\/\//)||(u="http://"+u),window.location.assign(u)}return e}(e,i,n,t.dispositionCode,t.options);case r.fU:return R(e,t.message);case r.sC:return function(e,t,n){var r=(0,y.yE)(e,t,n);return(0,y.XV)(r)}(e,i,t.page);case r.ID:return function(e,t,n){var r=e;return r.currentPage.questions=(0,y.MI)(n,t.questionnaire),r.currentPageOnServer=n,r}(e,i,t.page);case r.FW:return function(e,t){return I(I({},e),{disabled:!t})}(e,t.enabled)}if(!e.currentPageOnServer)switch(t.type){case r.d_:return(0,y.XV)(e);case r.Tn:return function(e){return I(I({},e),{completionQuestionReached:!0})}(e);case r.Ed:return function(e,t,n,r){if(n.exitSurvey)return(0,N.xY)(null).quit(r,E.$.Completed),e;var i=n.exitToNextQuestion?e.currentPage:void 0,o=n.origin,a=n.destination,s=a.startsWith("+")||!Number.isNaN(parseInt(a,10)),c=a.startsWith("block:")&&a.length>"block:".length,l=e;if(s)for(l=(0,y.iF)(e,t,o,parseInt(a,10));0===l.questionIndex&&!(0,B.__isBlockVisible__)((0,y.BQ)(l),r);){if(!(0,y.uC)(l))return null!=l.exitTo?(0,y.YA)(l,l.exitTo,!0):l;l=(0,y.IR)(l)}else l=c?(0,y.gZ)(e,t,a.substr("block:".length)):(0,y.Nb)(e,t,a);return e===l?e:(0,y.bg)(l,r,i)}(e,n,t.options,i);case r.FP:return P(e,i);case r._t:return function(e,t){var n=e;do{if(e===(n=(0,y.Xp)(n)))break}while(!O(n,I(I({},t),{navigation:n})));if(null!=e.exitTo)for(;n.blockIndex===e.blockIndex&&(0,y.gH)(n)===(0,y.gH)(e);){if(!(n.questionIndex>=e.questionIndex)){n.exitTo=e.exitTo;break}var r=(0,y.Xp)(n);if(r===n)break;n=r}return I({},n)}(e,i);case r.VQ:var o=(0,m.FK)(n,t.questionId);if(o)return function(e,t,n,r){var i,o=(0,m.C2)(t,r);if(o&&(null===(i=e.currentPage)||void 0===i?void 0:i.questions[0].index)===o.index&&e.blockIndex===o.blockIndex)return e;var a=(0,y.Nb)(e,t,r);return a=(0,y.bg)(a,n),a=I(I({},a),{currentPage:I(I({},a.currentPage),{previewQuestion:r})}),(0,y.XV)(a)}(e,n,i,o.name);break;case r.i0:return function(e,t,n){var r=(0,k.ag)(n.respondent,t,n.language);return e=I(I({},e),{currentPage:void 0,randomizedBlocks:r,randomizedQuestionIdByName:(0,k.TE)(r),randomizedQuestionIdByVariable:(0,k.aS)(r),history:[],questionIndex:-1,loopByBlockName:{},disabled:!1,hasNextPage:!1,hasPreviousPage:!1,blockIndex:0,message:void 0}),P(e,n)}(e,n,i);case r.Aq:return function(e,t,n,r){var i=e.currentPage;if(null!=e.exitTo)i=e.exitTo;else if(n){var o=(0,y.lp)(e);for(i=null;!(0,B.__isBlockVisible__)((0,y.BQ)(o),r);){if(!(0,y.uC)(o)){i=e.currentPage;break}o=(0,y.IR)(o)}null==i&&(i=(o=(0,y.bg)(o,r)).currentPage)}return e=(0,y.gZ)(e,r.questionnaire,t),e=(0,y.bg)(e,r,i),(0,y.wN)(e)}(e,t.blockName,t.exitToNextQuestion,i);case r.R9:return function(e,t,n,r){var i;if(void 0===(0,m.Qg)(t,n))return e;if(r<1)return e;if(1===r)return I(I({},e),{loopByBlockName:(0,f.CE)(e.loopByBlockName,n)});var o=e.currentPage;return o&&(o.loopIndex=r),I(I({},e),{currentPage:o,loopByBlockName:I(I({},e.loopByBlockName),(i={},i[n]=r,i))})}(e,n,t.blockName.toUpperCase(),t.row)}return e}((e=z(z({},e),{quotas:(0,A.T)(e.quotas,e,t)})).navigation,t,i,e),a=function(e,t,n,i){switch(t.type){case r.GV:return t.respondent;case r.z$:return g(g({},e),{appointmentDate:t.appointment});case r.QO:return g(g({},e),{email:t.email});case r.OY:return g(g({},e),{phone:t.phone});case r.Ke:return g(g({},e),{timeZone:t.timeZone});case r.s3:return g(g({},e),{language:t.code});case r.d_:return n.history||e.sessionStartTime?e:g(g({},e),{firstAnsweredQuestion:n.currentPage.questions[0].name,sessionStartTime:v.ou.utc()});case r.FP:return i&&!i.isShortcut?g(g({},e),{lastAnsweredQuestion:i.questions.slice(-1)[0].name}):e;case r.Hv:return g(g({},e),{latitude:t.latitude,longitude:t.longitude});default:return e}}(e.respondent,t,o,n),u=function(e,t){return t.type===r.gB?t.device:e}(e.device,t),d=function(e,t,n,i){void 0===e&&(e=q);var o,a,s,c=F({},e),l=[],u=[];switch(t.type){case r.FP:return console.log(i),(0,L.each)(i,(function(e,t){Object.keys(i).includes(t)&&H((0,m.Dz)(n,t),c,t,u,l,i),u=[]})),l.forEach((function(e){var t=e[0],n=e[1];c[t]=F(F({},c[t]),{isDisabled:n})})),c;case r.xP:var d=(o=t.mentions,a=i,s={},Object.keys(o).forEach((function(e){var t=U(o[e]||[],a[e]||[]);t.length>0&&(s[e]=t)})),Object.keys(a).forEach((function(e){var t=U(o[e]||[],a[e]||[]);t.length>0&&(s[e]=t)})),s);return(0,L.each)(d,(function(e,r){Object.keys(d).includes(r)&&H((0,m.Dz)(n,r),c,r,u,l,t.mentions),u=[]})),l.forEach((function(e){var t=e[0],n=e[1];c[t]=F(F({},c[t]),{isDisabled:n})})),c;case r.Ii:var f=t.fieldIdentifiers;for(var p in f){var h=f[p];c[h]?c[h]=F(F({},c[h]),{isDisabled:t.isDisabled}):c[h]={isDisabled:t.isDisabled}}return c;default:return c}}(e.questionFieldStatus,t,i,e.variables.mentionsByVariableName),p=b(e.variables,t,n,i,a,o),h=function(e,t,n,i){switch(t.type){case r.Js:case r.FP:case r._t:case r.Ed:return{isValid:!0,errorsByVariableName:{}};case r.qL:var o=function(t){var n=(0,f.CE)(e.errorsByVariableName,t);return(0,f.xb)(n)?{isValid:!0,errorsByVariableName:{}}:{isValid:!1,errorsByVariableName:n}};if(t.keepSoftPromptError){var a=Object.keys((0,f.D9)(e.errorsByVariableName,(function(e,t){return 0===(0,l.qW)(i,t)&&e.every((function(e){return e.softPrompt}))}))),s=Object.keys(e.errorsByVariableName);return o(f.zu.apply(void 0,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([s],a)))}return t.includeNewValidationResults?t.removeValidationForVariables&&t.removeValidationForVariables.length>0?o(t.removeValidationForVariables):{isValid:!0,errorsByVariableName:{}}:o(Object.keys(e.errorsByVariableName).filter((function(e){return!(0,_.ks)().includes((0,m.Ty)(n,e))})));case r.ry:case r.Wr:return{isValid:e.isValid&&t.result.isValid,errorsByVariableName:x(x({},e.errorsByVariableName),t.result.errorsByVariableName)};default:return e}}(e.validation,t,i,p),V=function(e,t,n){switch(t.type){case r.s3:var i=n.languages.some((function(e){return e===t.code}))?t.code:(0,m.Mb)(n);return document.documentElement.lang=i,i;case r.Js:return n.defaultLanguage;case r.GV:return t.respondent.language?t.respondent.language:e;default:return e}}(e.language,t,i),W=function(e,t,n,i){switch(n.type){case r.Js:return e&&e.isPreview?e:i.theme;case r.uY:return C(C({},n.theme),{isPreview:!0});case r.s3:case r.FP:case r.VQ:case r._t:case r.sC:case r.d_:var o=(0,y.BQ)(t),a=o&&o.theme?o.theme:i.theme;return e&&e.isPreview?e:a;default:return e}}(e.theme,o,t,i),G=function(e,t){var n,r;return void 0===e&&(e=T),"UPDATE_CARROUSEL_ACTIVE_VARIABLE"===t.type?e[t.instanceId]?w(w({},e),((r={})[t.instanceId]=w(w({},e[t.instanceId]),{activeVariableIndex:t.activeVariableIndex,isPrevBtnActive:t.isPrevBtnActive,isNextBtnActive:t.isNextBtnActive}),r)):w(w({},e),((n={})[t.instanceId]={activeVariableIndex:t.activeVariableIndex,isPrevBtnActive:t.isPrevBtnActive,isNextBtnActive:t.isNextBtnActive},n)):e}(e.carrousel,t);return z(z({},e),{questionnaire:i,quotas:e.quotas,navigation:o,respondent:a,validation:h,device:u,variables:p,language:V,theme:W,carrousel:G,questionFieldStatus:d})},Q=n(89482),K=function(){return K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K.apply(this,arguments)},Z={debug:!1,mode:Q.E.Normal,debugInfo:!1,displayInThemeEditor:!1,hideAccessibilityPanel:!0},$=function(e,t){switch(void 0===e&&(e=Z),t.type){case r.ec:return K(K({},e),{debug:!0});case r.ME:return K(K({},e),{debug:!1});case r.jd:return K(K({},e),{mode:t.mode});case r.Sx:return K(K({},e),{debugInfo:!0});case r.zu:return K(K({},e),{debugInfo:!1});case r.sf:return K(K({},e),{displayInThemeEditor:t.displayInThemeEditor});case r.US:return K(K({},e),{hideAccessibilityPanel:t.hideAccessibilityPanel});default:return e}},Y=[],X=function(e,t){if(void 0===e&&(e=Y),t.type===r.Jo){var n=t.error;return e.some((function(e){return e.error===n}))?e:e.concat({error:n})}return e},J=n(62299),ee=function(){return ee=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee.apply(this,arguments)},te={lookupTable:{},requestId:{},tableName:""},ne=function(e,t){var n,i;switch(void 0===e&&(e=te),t.type){case r.wr:return ee(ee({},e),{questionName:t.questionName,requestId:ee(ee({},e.requestId),(n={},n[t.questionName]=Math.random().toString(36).substr(2,10),n))});case r.E3:return e.requestId[t.questionName]!==t.requestId?e:ee(ee({},e),{lookupTable:ee(ee({},e.lookupTable),(i={},i[t.questionName]=t.page,i))});default:return e}};!function(e){e[e.Enabled=0]="Enabled",e[e.Disabled=1]="Disabled"}(W||(W={}));var re=function(e,t){switch(t.type){case r.ec:case r.ME:return W.Enabled;case r.Y4:return t.mode;default:return e}},ie=function(e,t){switch(void 0===e&&(e=!1),t.type){case r.ec:case r.ME:return!1;case r.Nc:return!e;case r.p3:return!0;case r.ZQ:return!1;default:return e}},oe=function(){return oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oe.apply(this,arguments)},ae=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},se={filesByVariableName:{}},ce=function(e,t){var n,i,o,a,s;switch(void 0===e&&(e=se),t.type){case r.Xe:var c=t.variableName,l=t.matrix,u=t.fileName,m=t.size,d=t.cancellationTokenSource;return(b=(e.filesByVariableName[c]||[]).find((function(e){return e.matrix===l})))&&b.cancellationTokenSource.cancel(),oe(oe({},e),{filesByVariableName:oe(oe({},e.filesByVariableName),(n={},n[c]=ae((e.filesByVariableName[c]||[]).filter((function(e){return e.matrix!==l})),[{matrix:l,fileName:u,size:m,cancellationTokenSource:d,status:"started",progress:0}]),n))});case r.LH:c=t.variableName;var f=t.matrix;return(b=(e.filesByVariableName[c]||[]).find((function(e){return e.matrix===f})))&&b.cancellationTokenSource.cancel(),oe(oe({},e),{filesByVariableName:oe(oe({},e.filesByVariableName),(i={},i[c]=ae((e.filesByVariableName[c]||[]).filter((function(e){return e.matrix!==f}))),i))});case r.KM:c=t.variableName;var p=t.matrix,h=t.progress,b=(e.filesByVariableName[c]||[]).find((function(e){return e.matrix===p}));return oe(oe({},e),{filesByVariableName:oe(oe({},e.filesByVariableName),(o={},o[c]=ae((e.filesByVariableName[c]||[]).filter((function(e){return e.matrix!==p})),[oe(oe({},b),{status:"ongoing",progress:h})]),o))});case r.Av:c=t.variableName;var v=t.matrix;return b=(e.filesByVariableName[c]||[]).find((function(e){return e.matrix===v})),oe(oe({},e),{filesByVariableName:oe(oe({},e.filesByVariableName),(a={},a[c]=ae((e.filesByVariableName[c]||[]).filter((function(e){return e.matrix!==v})),[oe(oe({},b),{status:"completed",progress:1})]),a))});case r.Tq:c=t.variableName;var g=t.matrix;return b=(e.filesByVariableName[c]||[]).find((function(e){return e.matrix===g})),oe(oe({},e),{filesByVariableName:oe(oe({},e.filesByVariableName),(s={},s[c]=ae((e.filesByVariableName[c]||[]).filter((function(e){return e.matrix!==g})),[oe(oe({},b),{status:"failed"})]),s))});default:return e}},le={application:void 0,connection:void 0,errors:void 0,interview:void 0,lookupTable:void 0,recall:void 0,recallMode:W.Enabled,isPageMessagesEnabled:!0,isFormInputFocused:!1,mobilePreview:!1,files:void 0},ue=function(e,t){return t.type===r.Kr?t.isPageMessageEnabled:e},me=function(e,t){return t.type===r._9?t.isInputFocused:e},de=function(e,t){void 0===e&&(e=le);var n=void 0!==e.interview?e.interview.navigation.currentPage:void 0,r=G(e.interview,t);return{interview:r,connection:a(e.connection,t),application:$(e.application,t),mobilePreview:ie(e.mobilePreview,t),recallMode:re(e.recallMode,t),isPageMessagesEnabled:ue(e.isPageMessagesEnabled,t),errors:X(e.errors,t),lookupTable:ne(e.lookupTable,t),recall:(0,J.y)(e.recall,t,r,n),files:ce(e.files,t),isFormInputFocused:me(e.isFormInputFocused,t)}}},79344:function(e,t,n){"use strict";n.d(t,{Sk:function(){return f},Nb:function(){return S},gZ:function(){return B},iF:function(){return k},bg:function(){return P},yE:function(){return D},X$:function(){return V},BQ:function(){return d},gH:function(){return b},MI:function(){return O},mO:function(){return _},uC:function(){return v},Qy:function(){return C},lp:function(){return T},IR:function(){return w},XV:function(){return L},Xp:function(){return R},YA:function(){return M},wN:function(){return N}});var r=n(16856),i=n(21295),o=n(58043),a=n(3525),s=n(95457),c=n(11325),l=n(55796),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},m="navigationUtilities",d=function(e){if(e.randomizedBlocks&&e.randomizedBlocks.length>0)return e.randomizedBlocks[e.blockIndex]},f=function(e,t){return e.questionIndex<0||e.blockIndex!==t.blockIndex},p=function(e){var t=d(e);if(void 0!==t&&0!==t.questions.length)return t.questions[e.questionIndex]},h=function(e,t){return t.loopByBlockName[e.toUpperCase()]||1},b=function(e){var t=d(e);return h(t.name,e)},v=function(e){return e.randomizedBlocks&&e.randomizedBlocks.length>e.blockIndex+1},g=function(e){var t=d(e);return t&&h(t.name,e)<(0,i.rU)(t)},A=function(e){var t=d(e);return t&&t.questions.length-1>e.questionIndex},y=function(e){return e.currentPageOnServer?!e.currentPageOnServer.isFirstPage:e.history.length>0},C=function(e){return e.currentPageOnServer?!e.currentPageOnServer.isLastPage:void 0!==e.exitTo||A(e)||g(e)||v(e)},_=function(e,t,n){var r=(0,a.tT)(t,n);return null==r||null==e.loopByBlockName?1:e.loopByBlockName[r.name.toUpperCase()]||1},x=function(e){return u(u({},e),{questionIndex:e.questionIndex+1})},w=function(e){var t,n=e.randomizedBlocks[e.blockIndex+1];return u(u({},e),{questionIndex:0,blockIndex:e.blockIndex+1,loopByBlockName:u(u({},e.loopByBlockName),(t={},t[n.name.toUpperCase()]=1,t))})},T=function(e){return C(e)?A(e)?x(e):g(e)?function(e){var t;return u(u({},e),{questionIndex:0,loopByBlockName:u(u({},e.loopByBlockName),(t={},t[d(e).name.toUpperCase()]=b(e)+1,t))})}(e):v(e)?w(e):e:e};function E(e,t){if(!(0,c.Ew)(t)){var n=e.randomizedQuestionIdByName[t.toUpperCase()];if(null!=n){var r=e.randomizedBlocks[n[0]];if(null!=r)return r.questions[n[1]]}}}var S=function(e,t,n,r){var i;if(void 0===(0,a.C2)(t,n))return o.Zb.e(m,"BRANCHING_QUESTION_NOT_FOUND",n),e;var s=e.randomizedQuestionIdByName[n],c=s[0],l=s[1],d=e.randomizedBlocks[c];return r||(r=c===e.currentPage.blockIndex?e.currentPage.loopIndex:1),u(u({},e),{blockIndex:c,questionIndex:l,loopByBlockName:u(u({},e.loopByBlockName),(i={},i[d.name.toUpperCase()]=r,i))})},k=function(e,t,n,r){e=S(e,t,n,b(e));for(var i=0;i<r;i++)e=T(e);return e},B=function(e,t,n){var r=(0,a.Qg)(t,n);if(void 0!==r)return u(u({},e),{questionIndex:0,blockIndex:r.index});o.Zb.e(m,"BRANCHING_BLOCK_NOT_FOUND",n)},N=function(e){return u(u({},e),{hasNextPage:C(e),hasPreviousPage:y(e)})},M=function(e,t,n){var r;!n&&void 0!==e.currentPage&&e.currentPage.isReady&&(e=function(e){var t=e.history;return void 0!==e.currentPage&&(t=t.concat(e.currentPage)),u(u({},e),{history:t})}(e));var a=e.randomizedBlocks[t.blockIndex];return e=u(u({},e),{exitTo:void 0,questionIndex:t.questions.slice(-1)[0].index,loopByBlockName:u(u({},e.loopByBlockName),(r={},r[a.name.toUpperCase()]=t.loopIndex,r)),blockIndex:t.blockIndex,currentPage:u(u({},t),{isPrevious:n,isReady:!1}),history:n?e.history.slice(0,-1):e.history,message:void 0}),function(e,t){var n=function(e,t){var n=e.questions[0].index,r=e.questions[e.questions.length-1].index,o=n===r?n:n+"-"+r;return t.name+"[q:"+o+"/"+t.questions.length+", m:"+e.loopIndex+"/"+(0,i.rU)(t)+"]"}(e,t),r=Math.max(0,(50-n.length)/2),a="-".repeat(Math.floor(r)),s="-".repeat(Math.ceil(r));o.Zb.v(m,a+n+s)}(t,a),N(e)},D=function(e,t,n){var r,i,o={blockIndex:I(n.blockId,null===(r=t.questionnaire)||void 0===r?void 0:r.blocks),loopIndex:n.matrix,questions:O(n,t.questionnaire),progress:n.progress,isPrevious:null,isReady:!1,isShortcut:null},a=u(u({},e),{randomizedBlocks:null===(i=t.questionnaire)||void 0===i?void 0:i.blocks,currentPageOnServer:n});return M(a,o)},I=function(e,t){var n;return null===(n=t.find((function(t){return t.id===e})))||void 0===n?void 0:n.index},O=function(e,t){return e.questions.map((function(e){return(0,a.C2)(t,e.name)}))},P=function(e,t,n){for(var o=d(e),a=[];;){var c=p(e);if(!c)break;if(a.push(c),!A(e)||c.isPageBreak||(0,i.BB)(o))break;e=x(e)}var m={blockIndex:e.blockIndex,loopIndex:b(e),questions:a,progress:null!=n?e.currentPage.progress:0,isPrevious:!1,isReady:!1,isShortcut:null!=n};return m.isShortcut||(m.progress=function(e,t,n,o){var a=function(e,t,n){var i=e,o=function(e,t){return E(e,(0,s.yP)(t,"PROGRESSBARSTARTQUESTION",""))}(t,n),a=function(e,t){return E(e,(0,s.yP)(t,"PROGRESSBARENDQUESTION",""))}(t,n);return o&&(i=(0,r.hX)(i,(function(e){return e.index>=o.blockIndex}))),a&&(i=(0,r.hX)(i,(function(e){return e.index<=a.blockIndex}))),(0,r.UI)(i,(function(e){var t=(0,l.Qm)(e.questions);return o&&e.index===o.blockIndex&&(t=(0,r.hX)(t,(function(e){return e.index>=o.index}))),a&&e.index===a.blockIndex&&(t=(0,r.hX)(t,(function(e){return e.index<=a.index}))),u(u({},e),{questions:t})}))}(o,e,n),c=(0,l.Qm)(t.questions);if((0,r.e5)(c,(0,r.VS)(a,(function(e){return e.questions}))).length===c.length)return-1;var m=0;(0,r.S6)(a,(function(e){if(t.blockIndex===e.index)return m+=e.questions.length*(t.loopIndex-1),(0,r.S6)(e.questions,(function(e,t){(0,r.Xy)(e,(0,r.Z$)(c))&&(m+=t+1)})),!1;m+=e.questions.length*(0,i.rU)(e)}));var d=a.map((function(e){return e.questions.length*(0,i.rU)(e)})).reduce(r.IH);return Math.trunc(m/d*100)}(e,m,t.questionnaire,e.randomizedBlocks)),u(u({},M(e,m)),{exitTo:n})},R=function(e){if(!y(e))return e;null==e.exitTo&&(e.history=e.history.filter((function(e){return!e.isShortcut})));var t=e.history.slice(-1)[0];return M(e,t,!0)},L=function(e){return u(u({},e),{currentPage:u(u({},e.currentPage),{isReady:!0})})},V=function(e){return(0,i.Qo)(d(e),e.questionIndex).flatMap((function(e){return e.variableDependencies}))}},65570:function(e,t,n){"use strict";n.d(t,{T:function(){return f}});var r=n(67792),i=n(30697),o=n(56847),a=n(5498),s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},c={input:[],output:[]},l=function(e,t){return e.map((function(e){return t.respondent.dispositionCode===r.$.Empty||e.stratumId>0&&!(0,i.__evaluateSafe__)(t,e.condition).asBoolean()?e:s(s({},e),{frequency:e.frequency-1,userFrequency:e.userFrequency-1})}))},u=function(e,t,n){return e.map((function(e,r){return e.stratumId>0&&!(0,i.__evaluateSafe__)(n,e.condition).asBoolean()?e:s(s({},e),{frequency:e.frequency+1,userFrequency:e.userFrequency+1,status:t[r].status,userStatus:t[r].userStatus})}))},m=function(e,t){return e.map((function(e){return e.stratumId!==t?e:s(s({},e),{status:o.u.Closed,userStatus:o.u.Closed})}))},d=function(e,t){return e.map((function(e){return e.stratumId!==t?e:s(s({},e),{userStatus:o.u.Closed})}))},f=function(e,t,n){switch(void 0===e&&(e=c),n.type){case a.Bd:return{input:l(n.quotas,t),output:(r=n.quotas,r.map((function(e){var t=s(s({},e),{status:e.status===o.u.Open?o.u.Open:o.u.HalfOpen,userStatus:e.userStatus===o.u.Open?o.u.Open:o.u.HalfOpen});return 0===e.stratumId&&(t.frequency+=1,t.userFrequency+=1),t})))};case a.FP:return s(s({},e),{output:u(e.input,e.output,t)});case a.NP:return s(s({},e),{output:m(e.input,n.stratumId)});case a.l5:return s(s({},e),{output:d(e.input,n.stratumId)});default:return e}var r}},90977:function(e,t,n){"use strict";n.d(t,{qR:function(){return f},qW:function(){return p},ed:function(){return b},AY:function(){return v}});var r=n(17126),i=n(16856),o=n(25753),a=n(25638),s=n(79344),c=n(50721),l=n(95457),u=n(96754),m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},m.apply(this,arguments)},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},f=function(e,t,n){return(e.mentionsByVariableName[t.toUpperCase()]||[]).filter((function(e){return void 0===n||e.matrix===n}))},p=function(e,t,n){var r=f(e,t,n),o=(0,i.VF)(r,"matrix");return(0,i.VO)(o).length},h=function(e){return void 0===e?"":String(e.loopIndex)},b=function(e,t){var n=(0,a.cC)(e),i=r.ou.utc(),s=r.ou.local().plus({minutes:n}),c=s.diff(e.sessionStartTime||r.ou.local());return{$D:new o.o(s.toFormat("DDDD"),s.diff(a.oG,"days").toString()),$UTCDATE:new o.o(i.toFormat("DDDD"),i.diff(a.oG,"days").toString()),$UTCTIME:new o.o(i.toFormat("t"),(i.second+60*i.minute+3600*i.hour).toString()),$H:new o.o(s.toFormat("DDDD"),(s.minute+60*(s.hour+1)).toString()),$J:new o.o(s.toFormat("DDDD"),s.day.toString()),$T:new o.o(c.hours.toFixed(0)+":"+c.minutes+":"+c.seconds,c.seconds.toFixed(0)),$GEOLOCATION:new o.o((0,u.P)(e)),$Z:new o.o(s.toFormat("ZZ")),$ROW:new o.o(h(t)),$R:new o.o(h(t))}},v=function(e,t,n,r,i,o){var a,u=m({},e),p=void 0===i?(0,s.mO)(t,n,r):i,h=f(u,r,p),b=o(new c.a(h)).build();return u=function(e,t,n,r){var i,o=t.toUpperCase();return m(m({},e),{mentionsByVariableName:m(m({},e.mentionsByVariableName),(i={},i[o]=(e.mentionsByVariableName[o]||[]).filter((function(e){return e.matrix!==n})),i))})}(u,r,p),m(m({},u),{mentionsByVariableName:m(m({},u.mentionsByVariableName),(a={},a[r]=d((u.mentionsByVariableName[r]||[]).filter((function(e){return e.matrix!==p})),b.map((function(e,t){var r=e.value,i=e.customChoiceIndex,o=e.openEnd;return o&&!(0,l.Ag)(n,"ALLOW_OPEN_END_LOWER_CASE")&&(o=o.toUpperCase()),{index:t+1,matrix:p,value:r,openEnd:o,customChoiceIndex:i}}))),a))})}},62299:function(e,t,n){"use strict";n.d(t,{j:function(){return p},y:function(){return y}});var r=n(16856),i=n(30697),o=n(17837),a={},s=n(14400),c=n(3525),l=n(5498),u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)},m=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},d={recalledTextById:{},recalledTextIdsByVariableName:{},recalledTextIdByKey:{}},f=function(e,t){return t+"|"+e},p=function(e,t,n){if(void 0!==t)return void 0===n&&(n=s.a.Text),e.recalledTextById[e.recalledTextIdByKey[f(t,n)]]},h=function(e,t,n,i,o){var s,c,l=f(t,n);if(void 0!==e.recalledTextIdByKey[l])return e;var d=function(e){return a[e]=void 0===a[e]?1:a[e]+1}("recall");return{recalledTextById:u(u({},e.recalledTextById),(s={},s[d]=i,s)),recalledTextIdsByVariableName:(0,r.f0)({},e.recalledTextIdsByVariableName,(0,r.f9)(o,(0,r.UI)(o,(function(t){return m(e.recalledTextIdsByVariableName[t]||[],[d])})))),recalledTextIdByKey:u(u({},e.recalledTextIdByKey),(c={},c[l]=d,c))}},b=function(e,t,n,i,a,s){void 0===a&&(a=[]),void 0===s&&(s=[]);var c=f(t,n),l=e.recalledTextIdByKey[c];if(void 0!==l)return(0,r.XP)((0,r.D9)(e.recalledTextIdsByVariableName,(function(e){return e.includes(l)}))).filter((function(e){return!a.includes(e)})).forEach((function(e){return a.push(e)})),e;o.A.identifyVariables(t).filter((function(e){return!a.includes(e)})).forEach((function(e){return a.push(e)}));for(var u=t;/^\[([^\]]+)\]$/.test(u);){if(s.includes(u))return h(e,t,n,u,a);if(s.push(u),(u=o.A.evaluateRecalls(i,u,n))===t)return h(e,t,n,u,a)}for(var m=/\[[^\[\]]+\]/g;(0,r.G)(u.match(m),(function(e){return!(0,r.q9)(s,e)}));)u=u.replace(m,(function(t){return e=b(e,t,n,i,a,s),(0,r.q9)(s,t)||s.push(t),p(e,t,n)}));return h(e,t,n,u,a)},v=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];i.invalidateCache.apply(i,t);var o=(0,r.UI)(t,(function(t){return e.recalledTextIdsByVariableName[t.toUpperCase()]||[]})),a=(0,r.xH)(o),s=(0,r.jj)(a);return 0===s.length?e:{recalledTextById:(0,r.D9)(e.recalledTextById,(function(e,t){return-1===s.indexOf(parseInt(t))})),recalledTextIdsByVariableName:(0,r.D9)(e.recalledTextIdsByVariableName,(function(e,n){return!(0,r.G)(t,(function(e){return e.toUpperCase()===n.toUpperCase()}))})),recalledTextIdByKey:(0,r.D9)(e.recalledTextIdByKey,(function(e){return-1===s.indexOf(e)}))}},g=function(e,t,n){if(t.blockIndex===(null==n?void 0:n.blockIndex)&&t.loopIndex!==(null==n?void 0:n.loopIndex)){var i=e.blocks[t.blockIndex].questions,o=(0,r.UI)(i,(function(e){return e.variables.map((function(e){return e.name}))})),a=(0,r.xH)(o),s=(0,r.hX)(a,(function(e){return void 0!==e})),c=(0,r.jj)(s);return(0,r.UI)(c,(function(e){return e}))}return[]},A=["$D","$H","$T","$J"],y=function(e,t,n,r){switch(void 0===e&&(e=d),t.type){case l.Ww:return b(e,t.expression,t.mode,n);case l.Pi:return v(e,t.variableName);case l.O7:return v.apply(void 0,m([e],t.answers.map((function(e){return e.variableName}))));case l.Js:return i.clearCache(),d;case l.gB:return v(e,"$DEVICE","$DEVICEOS","$DEVICEOSVERSION","$DEVICEBROWSER","$DEVICEBROWSERVERSION");case l.GV:return v.apply(void 0,m([e],A,["$Q","$PIN","$EMAIL","$PHONE","$L"]));case l.QO:return v(e,"$EMAIL");case l.OY:return v(e,"$PHONE");case l.Ke:return v.apply(void 0,m([e],A));case l.R9:return v(e,"$R","$ROW");case l.FP:case l._t:case l.sC:return v.apply(void 0,m([e],A,["$UTCDATE","$UTCTIME","$R","$ROW"],g(n.questionnaire,n.navigation.currentPage,r)));case l.Ed:return v.apply(void 0,m([e],function(e,t,n){return e.autoClean&&void 0!==n?(0,c.f8)(t,n.questions.slice(-1)[0].name,e.destination).slice(1).map((function(e){return e.name})):[]}(t.options,n.questionnaire,r),g(n.questionnaire,n.navigation.currentPage,r)));case l.i0:return t.clearAnswers?(i.clearCache(),d):e;case l.s3:return i.clearCache(),d;case l.Hv:return v(e,"$GEOLOCATION");default:return e}}},77530:function(e,t,n){"use strict";n.d(t,{R:function(){return o}});var r=n(22222),i=n(11325);function o(e){return(0,r.P1)((function(e){return e.interview.variables.mentionsByVariableName}),(function(e){return e.interview.navigation.currentPage.loopIndex}),(function(t,n){return(t[e]||[]).filter((function(e){return e.matrix===n&&!(0,i.Ew)(e.value)}))}))}},88507:function(e,t,n){"use strict";n.d(t,{Bk:function(){return S}});var r,i=n(14890),o=n(53894),a=n(39819),s=n(17126),c=n(93320),l=n(16856),u=n(90977),m=n(50721),d=n(5498),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},f.apply(this,arguments)},p=n(67792),h=n(58043),b=n(11325),v="debugLogger";function g(e,t,n){return void 0===t&&(t=10),void 0===n&&(n=""),(0,b.Ew)(e)?"":n+((e=(e=e.replace(/<[^>]+>/g,"")).replace(/\s/g,"˽")).length>t?e.slice(0,t-1)+"…":e)}function A(e){return"["+e.map((function(e){return g(e.value,10,"")+g(e.openEnd,10,"‒")})).join(", ")+"]"}"undefined"!=typeof window&&window.addEventListener("error",(function(e){e.error?h.Zb.e(v,"ERROR",void 0,e.error):h.Zb.e(v,"ERROR","Error was undefined.")}));var y=((r={})[d.ct]=function(e){return h.Zb.i(v,"AUDIO_RECORDING_START","for question "+e.questionName)},r[d.Qn]=function(e){return h.Zb.i(v,"AUDIO_RECORDING_STOP")},r[d.s3]=function(e){return h.Zb.i(v,"CHANGE_LANGUAGE",e)},r[d.UK]=function(e){return h.Zb.i(v,"CONNECTION_CONNECTED",e.url)},r[d.pF]=function(e){return h.Zb.w(v,"CONNECTION_DISCONNECTED",e.reason)},r[d.Ct]=function(e){return h.Zb.e(v,"CONNECTION_ERROR",e.error)},r[d.YA]=function(e){return h.Zb.i(v,"CONNECTION_START",e)},r[d.AW]=function(e){return h.Zb.d(v,"CONNECTION_PROGRESS",Math.ceil(100*e)+"%")},r[d.ME]=function(e){return h.Zb.v(v,"DEBUG_DISABLED")},r[d.ec]=function(e){return h.Zb.v(v,"DEBUG_ENABLED")},r[d.gB]=function(e){return h.Zb.d(v,"DEVICE_CHANGED",e.OS+" "+e.OSVersion+" "+e.model+" ("+e.type+")")},r[d.Xe]=function(e){return h.Zb.d(v,"FILE_UPLOAD_STARTED",e.variableName+"["+e.matrix+"]")},r[d.Av]=function(e){return h.Zb.d(v,"FILE_UPLOAD_COMPLETED",e.variableName+"["+e.matrix+"]")},r[d.Tq]=function(e){return h.Zb.d(v,"FILE_UPLOAD_FAILED",e.variableName+"["+e.matrix+"]")},r[d.LH]=function(e){return h.Zb.d(v,"FILE_UPLOAD_CLEARED",e.variableName+"["+e.matrix+"]")},r[d.Jo]=function(e){},r[d.wr]=function(e){return h.Zb.d(v,"LOOKUP_TABLE_FETCH",""+e.tableId)},r[d.E3]=function(e){return h.Zb.d(v,"LOOKUP_TABLE_RECEIVE",e.tableId+"("+e.requestId+") → "+e.page.rows.length+" rows")},r[d.Ed]=function(e){return h.Zb.d(v,"NAVIGATION_BRANCH_TO",e.origin+" → "+e.destination)},r[d.FP]=function(e){return h.Zb.i(v,"NAVIGATION_NEXT_PAGE")},r[d.d_]=function(e){return h.Zb.d(v,"NAVIGATION_PAGE_READY")},r[d._t]=function(e){return h.Zb.i(v,"NAVIGATION_PREVIOUS_PAGE")},r[d.pI]=function(e){return h.Zb.i(v,"NAVIGATION_QUIT",p.$[e.dispositionCode]+" "+(e.options||""))},r[d.i0]=function(e){return h.Zb.d(v,"NAVIGATION_RESET","clearAnswers: "+(e?"TRUE":"FALSE"))},r[d.Aq]=function(e){return h.Zb.d(v,"NAVIGATION_SHORTCUT",e.blockName)},r[d.bv]=function(e){return h.Zb.d(v,"OPEN_UPLOADED_FILE",e.variableName)},r[d.Bd]=function(e){return h.Zb.d(v,"QUOTAS_CHANGED")},r[d.NP]=function(e){return h.Zb.d(v,"QUOTAS_CLOSE_STRATUM","stratumId: "+e)},r[d.l5]=function(e){return h.Zb.d(v,"QUOTAS_CLOSE_USER_STRATUM","stratumId: "+e)},r[d.FW]=function(e){return h.Zb.d(v,"SET_NAVIGATION_ENABLED",e.enabled?"TRUE":"FALSE")},r[d.Ww]=function(e){},r[d.GV]=function(e){return h.Zb.d(v,"RESPONDENT_CHANGED","id: "+e.respondentId+" internalId: "+(e.id||"(simulated)"))},r[d.z$]=function(e){return h.Zb.d(v,"RESPONDENT_SET_APPOINTMENT",e)},r[d.QO]=function(e){return h.Zb.d(v,"RESPONDENT_SET_EMAIL",e)},r[d.OY]=function(e){return h.Zb.d(v,"RESPONDENT_SET_PHONE",e)},r[d.R9]=function(e){return h.Zb.d(v,"SET_LOOP_ROW",e.blockName+".Row = "+e.row)},r[d.Pi]=function(e,t){var n=t.getState().interview.variables,r=(0,u.qR)(n,e.variableName,e.matrixIndex),i=A(r),o=A(e.builder(new m.a(r)).build());h.Zb.v(v,"SET_VARIABLE_MENTIONS",e.variableName+": "+i+" → "+o)},r[d.Js]=function(e){return h.Zb.v(v,"QUESTIONNAIRE_CHANGED",e.name+" (id: "+e.id+" v"+(e.version||0)+")")},r[d.uY]=function(e){return h.Zb.v(v,"PREVIEW_THEME")},r[d.qL]=function(e){return h.Zb.v(v,"VALIDATION_CLEAR")},r[d.ry]=function(e){return h.Zb.v(v,"VALIDATION_SET_RESULT","isValid: "+(e.isValid?"TRUE":"FALSE"))},r);n(30697);var C=n(5156),_=n(59479),x=n(47658),w=(0,i.md)(o.Z,(function(e){return function(t){return _.y.store=e,_.y.dispatch=t,(0,l.M6)(function(e,t){return{connect:function(e){return t((0,d.Cs)(e.url))},disconnect:function(){return t((0,d.Nj)())},setVariableMentions:function(e){return t((0,d.F1)(e.variableName,e.builder,e.matrixIndex))},branchTo:function(e){return t((0,d.Bf)(e))},nextPage:function(){return t((0,d.b$)())},previousPage:function(){return t((0,d.BL)())},quit:function(e){return t((0,d.mI)(e.dispositionCode,e.options))},setPhone:function(e){return t((0,d.lU)(e.phone))},setEmail:function(e){return t((0,d.MG)(e.email))},setTimeZone:function(e){return t((0,d.hy)(e.timeZone))},setPageMessages:function(e){return t((0,d.FJ)(e.enabled))},setAppointment:function(e){return t((0,d.bQ)(e.appointment))},setLoopRow:function(e){return t((0,d.iR)(e.blockName,e.row))},fileUploadSelected:function(e){if(e.file){var t=new XMLHttpRequest;t.open("POST","/Upload",!0),t.setRequestHeader("Content-type","file");var n=new FormData;n.append("file",e.file),t.send(n)}}}}(0,t),(function(e,t){return _.y.on(t,(function(t){return t.defaultPrevented||e(t),t}))})),function(e){return function(e,t,n){switch(e.type){case d.Pi:return void n.trigger("setVariableMentions",e);case d.FP:return void n.trigger("nextPage",{});case d._t:return void n.trigger("previousPage",{});case d.pI:return void n.trigger("quit",e);case d.z$:return void n.trigger("setAppointment",e);case d.QO:return void n.trigger("setEmail",e);case d.OY:return void n.trigger("setPhone",e);case d.Ke:return void n.trigger("setTimeZone",e);case d.R9:return void n.trigger("setLoopRow",e);default:return t(e)}}(e,t,_.y)}}}),x.D,C.Dv,(function(e){return function(t){return function(n){var r=function(e,t){var n=s.ou.local().toJSDate().toISOString();switch(t.type){case d.Pi:var r=t.variableName,i=t.matrixIndex,o=t.builder,a=e.getState().interview.variables,c=(0,u.qR)(a,r,i),p=o(new m.a(c)).build();return(0,l.Xy)(c.map((function(e){return(0,l.ei)(e,["value","openEnd"])})),p)?null:f({time:n},t);case d.ct:case d.Qn:case d.UK:case d.pF:case d.Ct:case d.AW:case d.YA:case d.d_:case d.bv:case d.Ww:case d.Js:return null;default:return f({time:n},t)}}(e,n);if(!r)return t(n);var i=(0,c.safeDump)(r,{skipInvalid:!0});return console.log(("---\n"+i+"...").trim()),t(n)}}}),(function(e){return function(t){return function(n){return function(e,t){try{var n=t;if(null!=y[t.type])return y[t.type](n,e)}catch(e){h.Zb.e(v,"EVENT_LOGGER_ERROR","An error occurred logging an event.",e)}h.Zb._(v,t.type)}(e,n),t(n)}}})),T=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||i.qC)(w),E=(0,i.MT)(a.Q,T),S=function(){return E}},7171:function(e,t,n){"use strict";n.d(t,{ku:function(){return s},og:function(){return l},lR:function(){return u},m2:function(){return m}});var r=n(95457),i=n(5291),o=n(83627),a=n(30697);function s(e,t){var n=e.expression,r=e.type,s=void 0===r?o.M.Advanced:r,c=(void 0===t?{}:t).allowUnsafe,l=function(e){return e.interview};return function(e,t){var r=function(e,t){return void 0===t&&(t=o.M.Advanced),t===o.M.Simple?"simple:"+e:e}(n,s),u=(0,a.findCachedEvaluation)(r);if(u)return new i.i(u);var m=[],d=!1,f={interview:l(t()),didParseVariable:function(e){m.push(e.toUpperCase())},invalidateCache:function(){d=!0},dispatch:function(n){c&&(e(n),f.interview=l(t()))}},p=(0,a.parse)(n,f,s);return d||(0,a.cacheEvaluation)(r,p,m),new i.i(p)}}function c(e){return function(t){var n=e.skipLogic&&t(s(e.skipLogic)).asBoolean(),r=!e.displayLogic||t(s(e.displayLogic)).asBoolean();return!n&&r}}function l(e){return function(t){return t(c(e))}}function u(e){return function(t,n){var r,i=null===(r=n().interview.navigation)||void 0===r?void 0:r.currentPageOnServer;return i?i.questions.flatMap((function(e){return e.variables})).some((function(t){return t.name===e.name})):t(c(e))}}function m(e){return function(t,n){var i,o;return function(e){var t;return null===(t=e.interview.navigation.currentPage)||void 0===t?void 0:t.previewQuestion}(n())===e.name||!((0,r.Z9)(e,"Active")&&!(0,r.Ag)(e,"Active"))&&(!!(null===(o=null===(i=n().interview.navigation.currentPageOnServer)||void 0===i?void 0:i.questions)||void 0===o?void 0:o.some((function(t){return t.name===e.name})))||t(c(e)))}}},32086:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});var r=n(12291),i=function(){return(0,r.I0)()}},34370:function(e,t,n){"use strict";n.d(t,{Jd:function(){return y},kv:function(){return _},Gu:function(){return E},eE:function(){return k},Lg:function(){return B},VZ:function(){return N}});var r=n(9669),i=n.n(r),o=n(16856),a=n(5498),s=n(15866),c=n(39822),l=n(55796),u=n(7171),m=n(10938),d=n(77530),f=n(22950),p=n(13717),h=n(88507),b=n(40374),v=n(78632),g=n(11110),A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A.apply(this,arguments)};function y(){return function(e,t){var n=t().connection,r=i().create({baseURL:n.url,timeout:1e5});return r.interceptors.request.use(C),r}}function C(e){var t,n=e,r=null===(t=document.querySelector("#S2_SessionId"))||void 0===t?void 0:t.value;return r&&(n.params=n.params||{},n.params["vx-psid"]=r),n}function _(){var e={includeInvisible:!0,includeSoftPrompt:!0};return function(t,n){var r=n().interview.navigation.currentPage.questions.filter((function(e){return t((0,u.m2)(e))})).map((function(n){var r=t(function(e,t){var n=e.variableNames,r=e.variableDependencies;return function(i,a){var s=a().interview,c=s.questionnaire,l=s.variables,d=function(e){return i((0,u.ku)(e)).asBoolean()},f=(0,o.ei)(l.mentionsByVariableName,function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}(n||[],r||[]));return(0,m.wd)(c,"Variable",e,f,e.variables,d).map((function(n){var r=(0,m.IR)(c,e,f,n.choiceList,d,t,n);return A(A({},n),{choiceList:r})}))}}(n,e));return A(A({},n),{variables:r})}));return r}}function x(e,t){return function(n,r){var i=r(),o=i.interview.validation.errorsByVariableName;e.filter((function(e){return"SoftPrompt"===e.settings.AnswerRequired})).forEach((function(e){e.variables.forEach((function(r){var u=r.name;if(!(0,d.R)(u)(i).length&&(o[u]||[]).some((function(e){return e.softPrompt}))){var m=(0,l.Y_)(e);if(m){var f=(0,s.n)(r,m);f&&(0,c.aU)(f,t)&&n((0,a.F1)(u,(function(e){return e.set(f.value)})))}}}))}))}}function w(e){return function(t){return t(x(e,p.v.Invisible))}}function T(e){return function(t){return t(x(e,p.v.VisibleDefault))}}function E(e){return function(t,n){t((0,a.um)(!1));var r=k(e,n);return t((0,a.Zs)(r)),r}}function S(e){return{isValid:0===e.length||(0,g.R0)(e.map((function(e){return e.error}))),errorsByVariableName:e.reduce((function(e,t){var n=t.variableName,r=t.error;return e[n]?e[n].push(r):e[n]=[r],e}),{})}}function k(e,t){var n;void 0===t&&(t=(0,h.Bk)().getState);var r=function(e,n){var r=n(t);return r?e.concat(r):e},i=null===(n=t().interview)||void 0===n?void 0:n.useClientValidation;return S(e.map((function(e){var t=(0,f.TH)(e,i).reduce(r,[]);return t.length?t:(0,f.CF)(e,i).reduce(r,[])})).reduce((function(e,t){return e.concat(t)}),[]))}function B(){return function(e){var t=e(_());e(function(e){return function(t,n){var r=n();e.forEach((function(e){e.variables.forEach((function(e){var n=e.name;if(!(0,d.R)(n)(r).length){var i=(0,s.c)(e).filter((function(e){return!(0,c.pn)(e)}));i.length&&t((0,a.F1)(n,(function(e){return i.forEach((function(t){return e.add(t.value)})),e})))}}))}))}}(t)),e(w(t));var n=e(E(t));e(T(t)),n.isValid&&e((0,a.b$)())}}function N(e,t,n,r){var i=null==t?void 0:t.map((function(t){return(0,b.Z)(e,t)((function(){return r}))}));return i.every((function(e){return null!=e}))?S(i):(n(w([e])),n(T([e])),(new v.O).build())}},78813:function(e,t,n){"use strict";n.d(t,{M:function(){return i},q:function(){return o}});var r=n(67294),i=function(){function e(){this.handlers=[]}return e.prototype.add=function(e){this.handlers.includes(e)||this.handlers.push(e)},e.prototype.remove=function(e){var t=this.handlers.indexOf(e);t>-1&&this.handlers.splice(t,1)},e.prototype.dispatch=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.handlers.map((function(t){return t.apply(void 0,e)}))},e}();function o(e,t){(0,r.useEffect)((function(){return e.add(t),function(){return e.remove(t)}}),[e,t])}},25559:function(e,t){"use strict";t.Z={ActiveHighlightValue:.3,ActiveBackgroundValue:2.5,BackButtonIcon:"fas caret-left",BackButtonIconOnHover:!1,BackButtonType:"icon",BackButtonVisible:!0,BaseFontSize:18,BorderRadius:0,BorderWidth:1,BottomNavigationPosition:"wrapper",ButtonBackground:"#F0EFEF",ChoiceHeight:60,ChoiceSpacing:27,ChoiceListIconAlignment:"left",CheckBoxIconAlignment:"left",CheckBoxIconType:"default",ChoiceListBackgroundBorderWidth:1,ChoiceListBackgroundBorderRadius:0,ChoiceListBackgroundAlpha:1,ControlAlpha:1,ControlBackground:"#F0EFEF",ControlBorderColor:"#DBDBDB",DisplayChoiceIcon:"left",ErrorColor:"#F41134",EnableBacklink:!0,FieldBorderValue:.5,FontSize:18,ForegroundColorDark:"#555555",ForegroundColorLight:"#FFFFFF",GridCellMinHeight:42,GridCellMinWidth:56,GridCellPadding:8,HeaderSizes:{H1:23/18,H2:1,H3:16/18,H4:14/18},TickedImageUrl:"",UntickedImageUrl:"",TickedRadioImageUrl:"",UntickedRadioImageUrl:"",InputBackground:"#FFFFFF",InputHeight:40,InputMaxWidths:{XSmall:80,Small:130,Medium:260,Large:390},InputMinWidths:{XSmall:60,Small:120,Medium:190,Large:300,Full:120},LanguageSelectorVisible:!0,LanguageSelectorLabelActive:!0,LineHeight:29,LogoAlign:"left",NextButtonIcon:"fas caret-right",NextButtonIconOnHover:!1,NextButtonType:"icon",OptionHeight:40,PageBackground:"#ffffff",PageSeparatorsWidth:1,PageSeparatorsSpacing:8,PageWrapperBackground:"rgba(255,255,255,0)",PageWrapperMaxWidth:1200,PrimaryColor:"#0d67ca",ProgressBarFontSize:11,ProgressBarHeight:23,ProgressBarDisplay:"top",ProgressBarType:"basic",ProgressBarShowValue:!0,ProgressBarVisible:!0,QuestionSpacing:70,QuitButtonIcon:"fas arrow-from-left",QuitButtonIconOnHover:!0,QuitButtonType:"textAndIcon",QuitButtonVisible:!0,SecondaryColor:"#0b4f99",RadioIconType:"default",ShowCheckboxSettings:!0,ShowRadioSettings:!0,SliderHandleSizeSmall:12,SliderHandleSizeLarge:38,SliderRailHeightSmall:5,SliderRailHeightLarge:10,SubmitButtonIcon:"fas paper-plane",SubmitButtonIconOnHover:!0,SubmitButtonType:"textAndIcon",SubmitButtonVisible:!0,TextFont:"Open Sans",TextFontSize:"16",TextFontVariant:"regular",TextTextAlign:"left",TitleFont:"Open Sans",TitleFontSize:"18",TitleFontVariant:"600",TitleTextAlign:"left",TopNavigationPosition:"wrapper",ViewResponsesButtonVisible:!1,ContentResponsivenessOption:"resize-carousel",ShowStatementBackgroundSettings:!0,StatementBorderRadius:0,StatementBackgroundAlpha:1,LanguageSelectorPlacement:"top-right",ViewResponsesButtonPlacement:"top-right",BackButtonPlacement:"bottom-left",SubmitButtonPlacement:"bottom-right",NextButtonPlacement:"bottom-right",QuitButtonPlacement:"bottom-center",CustomBorderValue:!1,BackButtonDisplayBothTopBottom:!1,SubmitButtonDisplayBothTopBottom:!1,NextButtonDisplayBothTopBottom:!1,QuitButtonDisplayBothTopBottom:!1}},96900:function(e,t,n){"use strict";n.d(t,{Fq:function(){return a},_j:function(){return s},Q0:function(){return c},oF:function(){return l},op:function(){return u},Hu:function(){return m},O0:function(){return d},$X:function(){return f},vQ:function(){return p},tv:function(){return h},Of:function(){return v},gR:function(){return g},On:function(){return A},pJ:function(){return y},yv:function(){return C},Dp:function(){return _},tI:function(){return x},E4:function(){return w},$h:function(){return T},LL:function(){return E},oj:function(){return S},Ml:function(){return k}});var r=n(65792),i=n.n(r),o=/(#([\da-f]{3}){1,2}|(rgb|hsl)a\((\d{1,3}%?,\s?){3}(1|0?\.\d+)\)|(rgb|hsl)\(\d{1,3}%?(,\s?\d{1,3}%?){2}\))/gi;function a(e,t){return void 0===t&&(t=1),i()(e).alpha(t).css()}function s(e,t){return void 0===t&&(t=1),i()(e).darken(t).css()}function c(e,t){return void 0===t&&(t=1),i()(e).brighten(t).css()}function l(e,t){return n=t,(299*(r=i()(n).rgb())[0]+587*r[1]+114*r[2])/1e3>=128?e.ForegroundColorDark:e.ForegroundColorLight;var n,r}function u(e){var t=function(e){var t=e.PageBackground.match(o);return t?i().average(t,"rgb").css():"#ffffff"}(e),n=i()(e.PageWrapperBackground).alpha(),r=i()(e.PageWrapperBackground).alpha(0);return i().mix(t,r,n,"rgb")}function m(e,t){var n=u(e);return i().mix(n,t,e.ControlAlpha,"rgb")}function d(e){return m(e,e.ButtonBackground)}function f(e){return m(e,e.ControlBackground)}function p(e,t){return a(0===e.BorderWidth&&u(e).hex("rgb")===i()(e.InputBackground).hex("rgb")?t?s(e.ControlBackground,e.ActiveHighlightValue):e.ControlBackground:e.InputBackground,e.ControlAlpha)}function h(e,t){return s(t,e.FieldBorderValue)}function b(e,t,n,r){var i=n||r;if(i)return e[t][i]||i}function v(e,t,n){return void 0===n&&(n=void 0),b(e,"InputMinWidths",t,n)}function g(e,t,n){return void 0===n&&(n=void 0),b(e,"InputMaxWidths",t,n)}function A(e,t){return e?function(e){switch(e){case"100italic":return"100";case"200italic":return"200";case"300italic":return"300";case"regular":case"italic":return"400";case"500italic":return"500";case"600italic":return"600";case"700italic":return"700";case"800italic":return"800";case"900italic":return"900";default:return e}}(e):t}function y(e){return e?e.includes("italic")?"italic":"normal":""}function C(e,t){return void 0===t&&(t=""),e?e+"px":t}function _(e,t,n){return e?parseInt(t,10)>0?e*(t/n)+"px":e+"px":t+"px"}function x(e){return e>0?Math.round(Math.log(e)/Math.log(1.2)):0}function w(e){return e||""}function T(e){return 0===e.ControlAlpha&&0===e.BorderWidth}function E(e,t){if(t){var n=e.ChoiceSpacing/2;return[[0,n,n,0]]}return T(e)?[[0,-13]]:[[e.ChoiceSpacing,0]]}function S(e,t){return e.ProgressBarHeight<e.ProgressBarFontSize?l(e,u(e)):t>50?l(e,e.PrimaryColor):"floating"!==e.ProgressBarType?l(e,f(e)):l(e,u(e))}function k(e,t){return"floating"!==e.ProgressBarType?null:t?38:0}},53149:function(e,t,n){"use strict";n.d(t,{L4:function(){return l},h2:function(){return m},IZ:function(){return d},NM:function(){return f},cn:function(){return p},VI:function(){return h}});var r=n(92077),i=n.n(r),o=n(16856),a=(n(78731),n(17837)),s=n(11325);i().locales.id||i().register("locale","id",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"ribu",million:"juta",billion:"milyar",trillion:"triliun"},ordinal:function(){return"."},currency:{symbol:"Rp"}}),i().locales.ur||i().register("locale","ur",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"ہزار",million:"دس لاکھ",billion:"ارب",trillion:"ٹریلین"},ordinal:function(){return"."},currency:{symbol:"Rs"}}),i().locales.ar||i().register("locale","ar",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"د.إ"}}),i().locales.pt||i().register("locale","pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€"}}),i().locales.zh||i().register("locale","zh",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"¤"}}),i().locales.hi||i().register("locale","hi",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"¤"}}),i().locales.el||i().register("locale","el",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"¤"}}),i().locales.ro||i().register("locale","ro",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"¤"}}),i().locales.nl||i().register("locale","nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€"}});var c=function(e){i().locale(function(e){return(0,o.q9)((0,o.XP)(i().locales),e)}(e)?e:"en")},l=function(e,t){return c(t),i()(e)},u=function(e){return String(e).includes("e")},m=function(e){var t;return(null===(t=i().locales[e])||void 0===t?void 0:t.delimiters.decimal)||"."},d=function(e,t,n,r,o){if(c(n),null==e||""===e||u(e))return"";if(r)return String(function(e,t){if(""===e)return e;var n=Number(e);return Number.isNaN(n)?e:n.toFixed(t)}(e,t));if(o){var a="0,0";t>0&&(a+="."+Array(t+1).join("0"));var s=l(e,n),d=s.format(a);return"NaN"!==d?d:s.value().toString()}return","===m(i().locale())?String(e).replace(".",","):String(e)},f=function(e){return u(e)?e:Number(e.toPrecision(15))},p=function(e){var t=e.match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},h=function(e,t){if((0,s.Ew)(e))return null;var n=a.A.evaluateRecalls(t,e);return l(n).value()}},11325:function(e,t,n){"use strict";n.d(t,{DB:function(){return o},IQ:function(){return a},Ew:function(){return s},yi:function(){return c},qm:function(){return l},Fz:function(){return u},hR:function(){return m},w1:function(){return d},f6:function(){return f}}),n(67294);var r,i=n(16856),o=function(){return document.getElementsByClassName("survey-engine")[0]},a=function(e){return e?e.replace(/<br>/g," ").replace(/<\/?[^>]*>/g,""):""},s=function(e){return null==e||0===e.length},c=function(e){return null==e||isNaN(e)},l=function(e){return!e||""===e||Number.isNaN(e)},u=function(){null==r&&(r=document.createEvent("Events")).initEvent("blur",!1,!1);var e=document.activeElement;if(null!=e&&(0,i.q9)(["input","textarea"],e.tagName.toLowerCase()))return e.dispatchEvent(r),e.blur(),e},m=function(e){for(var t=e,n=0;t>=1024;)t/=1024,n+=1;return""+t.toFixed(0)+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},d=function(){return!!document.documentMode},f=function(e,t){return t.choiceList.some((function(t){return t.value===e}))}},16856:function(e,t,n){"use strict";n.d(t,{IH:function(){return xt},f0:function(){return wt},yo:function(){return Et},uZ:function(){return St},Xh:function(){return kt},VF:function(){return Bt},e5:function(){return Nt},S6:function(){return Mt},yW:function(){return Dt},hX:function(){return It},sE:function(){return Ot},cx:function(){return Pt},Ps:function(){return Rt},VS:function(){return Lt},xH:function(){return Vt},Ed:function(){return Ft},M6:function(){return qt},Pe:function(){return Ut},vM:function(){return Ht},q9:function(){return Wt},jV:function(){return zt},et:function(){return jt},xb:function(){return Gt},Xy:function(){return Qt},HD:function(){return Kt},GL:function(){return $t},XP:function(){return Yt},Z$:function(){return Xt},UI:function(){return Jt},Cw:function(){return en},Fp:function(){return tn},UT:function(){return nn},HP:function(){return rn},VV:function(){return on},CE:function(){return an},GM:function(){return sn},Xo:function(){return cn},ei:function(){return un},D9:function(){return mn},X4:function(){return dn},cT:function(){return fn},w6:function(){return pn},u4:function(){return hn},Od:function(){return bn},GY:function(){return vn},G:function(){return gn},MR:function(){return An},Vl:function(){return yn},kb:function(){return Cn},oE:function(){return _n},DZ:function(){return xn},Zp:function(){return wn},GB:function(){return Tn},fy:function(){return En},AK:function(){return Sn},G0:function(){return kn},jj:function(){return Bn},VO:function(){return Nn},zu:function(){return Mn},dl:function(){return Dn},f9:function(){return In}});var r=n(20874),i=n.n(r),o=n(28583),a=n.n(o),s=n(63706),c=n.n(s),l=n(8400),u=n.n(l),m=n(74691),d=n.n(m),f=n(50361),p=n.n(f),h=n(49995),b=n.n(h),v=n(91966),g=n.n(v),A=n(66073),y=n.n(A),C=n(711),_=n.n(C),x=n(63105),w=n.n(x),T=n(13311),E=n.n(T),S=n(30998),k=n.n(S),B=n(8804),N=n.n(B),M=n(94654),D=n.n(M),I=n(85564),O=n.n(I),P=n(84486),R=n.n(P),L=n(2525),V=n.n(L),F=n(17204),q=n.n(F),U=n(7739),H=n.n(U),W=(n(79095),n(64721)),z=n.n(W),j=n(25325),G=n.n(j),Q=n(71843),K=n.n(Q),Z=n(41609),$=n.n(Z),Y=n(18446),X=n.n(Y),J=(n(97398),n(47037)),ee=n.n(J),te=n(52353),ne=n.n(te),re=n(21804),ie=n.n(re),oe=n(3674),ae=n.n(oe),se=n(10928),ce=n.n(se),le=n(35161),ue=n.n(le),me=n(67523),de=n.n(me),fe=n(6162),pe=n.n(fe),he=n(84753),be=n.n(he),ve=n(88306),ge=n.n(ve),Ae=n(53632),ye=n.n(Ae),Ce=n(57557),_e=n.n(Ce),xe=n(14176),we=n.n(xe),Te=n(75472),Ee=n.n(Te),Se=n(65544),ke=n.n(Se),Be=n(78718),Ne=n.n(Be),Me=n(35937),De=n.n(Me),Ie=n(97019),Oe=n.n(Ie),Pe=n(45604),Re=n.n(Pe),Le=n(96026),Ve=n.n(Le),Fe=n(54061),qe=n.n(Fe),Ue=n(82729),He=n.n(Ue),We=n(31351),ze=n.n(We),je=(n(84238),n(59704)),Ge=n.n(je),Qe=n(89734),Ke=n.n(Qe),Ze=n(71640),$e=n.n(Ze),Ye=n(43464),Xe=n.n(Ye),Je=n(28812),et=n.n(Je),tt=n(98913),nt=n.n(tt),rt=n(93220),it=n.n(rt),ot=n(3945),at=n.n(ot),st=n(92742),ct=n.n(st),lt=n(27955),ut=n.n(lt),mt=n(93386),dt=n.n(mt),ft=n(44908),pt=n.n(ft),ht=n(52628),bt=n.n(ht),vt=n(82569),gt=n.n(vt),At=n(76566),yt=n.n(At),Ct=n(7287),_t=n.n(Ct),xt=i(),wt=a(),Tt=c(),Et=u(),St=d(),kt=p(),Bt=b(),Nt=g(),Mt=y(),Dt=_(),It=w(),Ot=E(),Pt=k(),Rt=N(),Lt=D(),Vt=O(),Ft=R(),qt=V(),Ut=q(),Ht=H(),Wt=z(),zt=G(),jt=K(),Gt=$(),Qt=X(),Kt=ee(),Zt=ne(),$t=ie(),Yt=ae(),Xt=ce(),Jt=ue(),en=de(),tn=pe(),nn=be(),rn=ge(),on=ye(),an=_e(),sn=we(),cn=Ee(),ln=ke(),un=Ne(),mn=De(),dn=Oe(),fn=Re(),pn=Ve(),hn=qe(),bn=He(),vn=ze(),gn=Ge(),An=Ke(),yn=$e(),Cn=Xe(),_n=et(),xn=nt(),wn=it(),Tn=at(),En=ct(),Sn=ut(),kn=dt(),Bn=pt(),Nn=bt(),Mn=gt(),Dn=yt(),In=_t();ln(Tt,(function(e,t){return Zt(e)?t:e}))},58043:function(e,t,n){"use strict";n.d(t,{Zb:function(){return c}});var r=n(17126),i=(n(70401),n(16856),[]),o=["e","w","i","d","v","_"],a=[];function s(e,t,n,s,c,l){o.indexOf(t)>=3||(i.push({date:e,severity:t,tag:n,event:s,msg:c,error:l}),console.log((r.ou.fromJSDate(e).toFormat("HH:mm:ss")+" "+t.toUpperCase()+"/"+n+" "+(s||"")+" "+(c||"")).trim()),l&&console.error(l.stack),a.forEach((function(r){return r(e,t,n,s,c)})))}var c={_:function(e,t,n){return s(new Date,"_",e,t,n)},v:function(e,t,n){return s(new Date,"v",e,t,n)},d:function(e,t,n){return s(new Date,"d",e,t,n)},i:function(e,t,n){return s(new Date,"i",e,t,n)},w:function(e,t,n){return s(new Date,"w",e,t,n)},e:function(e,t,n,r){return s(new Date,"e",e,t,n,r)}};"undefined"!=typeof Voxco&&c.i("logging","INITIALIZED","Initialized SurveyEngineJS v"+Voxco.version)},25638:function(e,t,n){"use strict";n.d(t,{oG:function(){return a},tz:function(){return c},n6:function(){return l},cC:function(){return u}});var r=n(17126),i=n(16856),o={"Afghanistan Standard Time":{displayName:"(UTC+04:30) Kabul",offsetInMinutes:270},"Alaskan Standard Time":{displayName:"(UTC-09:00) Alaska",offsetInMinutes:-540,supportsDaylightSavingTime:!0,daylightName:"Alaskan Daylight Time"},"Aleutian Standard Time":{displayName:"(UTC-10:00) Aleutian Islands",offsetInMinutes:-600,supportsDaylightSavingTime:!0,daylightName:"Aleutian Daylight Time"},"Altai Standard Time":{displayName:"(UTC+07:00) Barnaul, Gorno-Altaysk",offsetInMinutes:420,supportsDaylightSavingTime:!0,daylightName:"Altai Daylight Time"},"Arab Standard Time":{displayName:"(UTC+03:00) Kuwait, Riyadh",offsetInMinutes:180},"Arabian Standard Time":{displayName:"(UTC+04:00) Abu Dhabi, Muscat",offsetInMinutes:240},"Arabic Standard Time":{displayName:"(UTC+03:00) Baghdad",offsetInMinutes:180,supportsDaylightSavingTime:!0,daylightName:"Arabic Daylight Time"},"Argentina Standard Time":{displayName:"(UTC-03:00) City of Buenos Aires",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Argentina Daylight Time"},"Astrakhan Standard Time":{displayName:"(UTC+04:00) Astrakhan, Ulyanovsk",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Astrakhan Daylight Time"},"Atlantic Standard Time":{displayName:"(UTC-04:00) Atlantic Time (Canada)",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Atlantic Daylight Time"},"AUS Central Standard Time":{displayName:"(UTC+09:30) Darwin",offsetInMinutes:570},"Aus Central W. Standard Time":{displayName:"(UTC+08:45) Eucla",offsetInMinutes:525},"AUS Eastern Standard Time":{displayName:"(UTC+10:00) Canberra, Melbourne, Sydney",offsetInMinutes:600,supportsDaylightSavingTime:!0,daylightName:"AUS Eastern Daylight Time"},"Azerbaijan Standard Time":{displayName:"(UTC+04:00) Baku",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Azerbaijan Daylight Time"},"Azores Standard Time":{displayName:"(UTC-01:00) Azores",offsetInMinutes:-60,supportsDaylightSavingTime:!0,daylightName:"Azores Daylight Time"},"Bahia Standard Time":{displayName:"(UTC-03:00) Salvador",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Bahia Daylight Time"},"Bangladesh Standard Time":{displayName:"(UTC+06:00) Dhaka",offsetInMinutes:360,supportsDaylightSavingTime:!0,daylightName:"Bangladesh Daylight Time"},"Belarus Standard Time":{displayName:"(UTC+03:00) Minsk",offsetInMinutes:180,supportsDaylightSavingTime:!0,daylightName:"Belarus Daylight Time"},"Bougainville Standard Time":{displayName:"(UTC+11:00) Bougainville Island",offsetInMinutes:660,supportsDaylightSavingTime:!0,daylightName:"Bougainville Daylight Time"},"Cabo Verde Standard Time":{displayName:"(UTC-01:00) Cabo Verde Is.",offsetInMinutes:-60},"Canada Central Standard Time":{displayName:"(UTC-06:00) Saskatchewan",offsetInMinutes:-360},"Caucasus Standard Time":{displayName:"(UTC+04:00) Yerevan",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Caucasus Daylight Time"},"Cen. Australia Standard Time":{displayName:"(UTC+09:30) Adelaide",offsetInMinutes:570,supportsDaylightSavingTime:!0,daylightName:"Cen. Australia Daylight Time"},"Central America Standard Time":{displayName:"(UTC-06:00) Central America",offsetInMinutes:-360},"Central Asia Standard Time":{displayName:"(UTC+06:00) Astana",offsetInMinutes:360},"Central Brazilian Standard Time":{displayName:"(UTC-04:00) Cuiaba",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Central Brazilian Daylight Time"},"Central Europe Standard Time":{displayName:"(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague",offsetInMinutes:60,supportsDaylightSavingTime:!0,daylightName:"Central Europe Daylight Time"},"Central European Standard Time":{displayName:"(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb",offsetInMinutes:60,supportsDaylightSavingTime:!0,daylightName:"Central European Daylight Time"},"Central Pacific Standard Time":{displayName:"(UTC+11:00) Solomon Is., New Caledonia",offsetInMinutes:660},"Central Standard Time":{displayName:"(UTC-06:00) Central Time (US & Canada)",offsetInMinutes:-360,supportsDaylightSavingTime:!0,daylightName:"Central Daylight Time"},"Central Standard Time (Mexico)":{displayName:"(UTC-06:00) Guadalajara, Mexico City, Monterrey",offsetInMinutes:-360,supportsDaylightSavingTime:!0,daylightName:"Central Daylight Time (Mexico)"},"Chatham Islands Standard Time":{displayName:"(UTC+12:45) Chatham Islands",offsetInMinutes:765,supportsDaylightSavingTime:!0,daylightName:"Chatham Islands Daylight Time"},"China Standard Time":{displayName:"(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",offsetInMinutes:480},"Coordinated Universal Time":{displayName:"(UTC) Coordinated Universal Time",offsetInMinutes:0},"Cuba Standard Time":{displayName:"(UTC-05:00) Havana",offsetInMinutes:-300,supportsDaylightSavingTime:!0,daylightName:"Cuba Daylight Time"},"Dateline Standard Time":{displayName:"(UTC-12:00) International Date Line West",offsetInMinutes:-720},"E. Africa Standard Time":{displayName:"(UTC+03:00) Nairobi",offsetInMinutes:180},"E. Australia Standard Time":{displayName:"(UTC+10:00) Brisbane",offsetInMinutes:600},"E. Europe Standard Time":{displayName:"(UTC+02:00) Chisinau",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"E. Europe Daylight Time"},"E. South America Standard Time":{displayName:"(UTC-03:00) Brasilia",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"E. South America Daylight Time"},"Easter Island Standard Time":{displayName:"(UTC-06:00) Easter Island",offsetInMinutes:-360,supportsDaylightSavingTime:!0,daylightName:"Easter Island Daylight Time"},"Eastern Standard Time":{displayName:"(UTC-05:00) Eastern Time (US & Canada)",offsetInMinutes:-300,supportsDaylightSavingTime:!0,daylightName:"Eastern Daylight Time"},"Eastern Standard Time (Mexico)":{displayName:"(UTC-05:00) Chetumal",offsetInMinutes:-300,supportsDaylightSavingTime:!0,daylightName:"Eastern Daylight Time (Mexico)"},"Egypt Standard Time":{displayName:"(UTC+02:00) Cairo",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Egypt Daylight Time"},"Fiji Standard Time":{displayName:"(UTC+12:00) Fiji",offsetInMinutes:720,supportsDaylightSavingTime:!0,daylightName:"Fiji Daylight Time"},"FLE Standard Time":{displayName:"(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"FLE Daylight Time"},"Georgian Standard Time":{displayName:"(UTC+04:00) Tbilisi",offsetInMinutes:240},"GMT Standard Time":{displayName:"(UTC+00:00) Dublin, Edinburgh, Lisbon, London",offsetInMinutes:0,supportsDaylightSavingTime:!0,daylightName:"GMT Daylight Time"},"Greenland Standard Time":{displayName:"(UTC-03:00) Greenland",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Greenland Daylight Time"},"Greenwich Standard Time":{displayName:"(UTC+00:00) Monrovia, Reykjavik",offsetInMinutes:0},"GTB Standard Time":{displayName:"(UTC+02:00) Athens, Bucharest",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"GTB Daylight Time"},"Haiti Standard Time":{displayName:"(UTC-05:00) Haiti",offsetInMinutes:-300,supportsDaylightSavingTime:!0,daylightName:"Haiti Daylight Time"},"Hawaiian Standard Time":{displayName:"(UTC-10:00) Hawaii",offsetInMinutes:-600},"India Standard Time":{displayName:"(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi",offsetInMinutes:330},"Iran Standard Time":{displayName:"(UTC+03:30) Tehran",offsetInMinutes:210,supportsDaylightSavingTime:!0,daylightName:"Iran Daylight Time"},"Jerusalem Standard Time":{displayName:"(UTC+02:00) Jerusalem",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Jerusalem Daylight Time"},"Jordan Standard Time":{displayName:"(UTC+02:00) Amman",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Jordan Daylight Time"},"Kamchatka Standard Time":{displayName:"(UTC+12:00) Petropavlovsk-Kamchatsky - Old",offsetInMinutes:720,supportsDaylightSavingTime:!0,daylightName:"Kamchatka Daylight Time"},"Korea Standard Time":{displayName:"(UTC+09:00) Seoul",offsetInMinutes:540},"Libya Standard Time":{displayName:"(UTC+02:00) Tripoli",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Libya Daylight Time"},"Line Islands Standard Time":{displayName:"(UTC+14:00) Kiritimati Island",offsetInMinutes:840},"Lord Howe Standard Time":{displayName:"(UTC+10:30) Lord Howe Island",offsetInMinutes:630,supportsDaylightSavingTime:!0,daylightName:"Lord Howe Daylight Time"},"Magadan Standard Time":{displayName:"(UTC+11:00) Magadan",offsetInMinutes:660,supportsDaylightSavingTime:!0,daylightName:"Magadan Daylight Time"},"Magallanes Standard Time":{displayName:"(UTC-03:00) Punta Arenas",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Magallanes Daylight Time"},"Malay Peninsula Standard Time":{displayName:"(UTC+08:00) Kuala Lumpur, Singapore",offsetInMinutes:480},"Marquesas Standard Time":{displayName:"(UTC-09:30) Marquesas Islands",offsetInMinutes:-570},"Mauritius Standard Time":{displayName:"(UTC+04:00) Port Louis",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Mauritius Daylight Time"},"Mid-Atlantic Standard Time":{displayName:"(UTC-02:00) Mid-Atlantic - Old",offsetInMinutes:-120,supportsDaylightSavingTime:!0,daylightName:"Mid-Atlantic Daylight Time"},"Middle East Standard Time":{displayName:"(UTC+02:00) Beirut",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Middle East Daylight Time"},"Montevideo Standard Time":{displayName:"(UTC-03:00) Montevideo",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Montevideo Daylight Time"},"Morocco Standard Time":{displayName:"(UTC+00:00) Casablanca",offsetInMinutes:0,supportsDaylightSavingTime:!0,daylightName:"Morocco Daylight Time"},"Mountain Standard Time":{displayName:"(UTC-07:00) Mountain Time (US & Canada)",offsetInMinutes:-420,supportsDaylightSavingTime:!0,daylightName:"Mountain Daylight Time"},"Mountain Standard Time (Mexico)":{displayName:"(UTC-07:00) Chihuahua, La Paz, Mazatlan",offsetInMinutes:-420,supportsDaylightSavingTime:!0,daylightName:"Mountain Daylight Time (Mexico)"},"Myanmar Standard Time":{displayName:"(UTC+06:30) Yangon (Rangoon)",offsetInMinutes:390},"Namibia Standard Time":{displayName:"(UTC+01:00) Windhoek",offsetInMinutes:60,supportsDaylightSavingTime:!0,daylightName:"Namibia Daylight Time"},"Nepal Standard Time":{displayName:"(UTC+05:45) Kathmandu",offsetInMinutes:345},"New Zealand Standard Time":{displayName:"(UTC+12:00) Auckland, Wellington",offsetInMinutes:720,supportsDaylightSavingTime:!0,daylightName:"New Zealand Daylight Time"},"Newfoundland Standard Time":{displayName:"(UTC-03:30) Newfoundland",offsetInMinutes:-210,supportsDaylightSavingTime:!0,daylightName:"Newfoundland Daylight Time"},"Norfolk Standard Time":{displayName:"(UTC+11:00) Norfolk Island",offsetInMinutes:660,supportsDaylightSavingTime:!0,daylightName:"Norfolk Daylight Time"},"North Korea Standard Time":{displayName:"(UTC+08:30) Pyongyang",offsetInMinutes:510,supportsDaylightSavingTime:!0,daylightName:"North Korea Daylight Time"},"Novosibirsk Standard Time":{displayName:"(UTC+07:00) Novosibirsk",offsetInMinutes:420,supportsDaylightSavingTime:!0,daylightName:"Novosibirsk Daylight Time"},"Omsk Standard Time":{displayName:"(UTC+06:00) Omsk",offsetInMinutes:360,supportsDaylightSavingTime:!0,daylightName:"Omsk Daylight Time"},"Pacific SA Standard Time":{displayName:"(UTC-04:00) Santiago",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Pacific SA Daylight Time"},"Pacific Standard Time":{displayName:"(UTC-08:00) Pacific Time (US & Canada)",offsetInMinutes:-480,supportsDaylightSavingTime:!0,daylightName:"Pacific Daylight Time"},"Pacific Standard Time (Mexico)":{displayName:"(UTC-08:00) Baja California",offsetInMinutes:-480,supportsDaylightSavingTime:!0,daylightName:"Pacific Daylight Time (Mexico)"},"Pakistan Standard Time":{displayName:"(UTC+05:00) Islamabad, Karachi",offsetInMinutes:300,supportsDaylightSavingTime:!0,daylightName:"Pakistan Daylight Time"},"Paraguay Standard Time":{displayName:"(UTC-04:00) Asuncion",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Paraguay Daylight Time"},"Romance Standard Time":{displayName:"(UTC+01:00) Brussels, Copenhagen, Madrid, Paris",offsetInMinutes:60,supportsDaylightSavingTime:!0,daylightName:"Romance Daylight Time"},"Russia TZ 1 Standard Time":{displayName:"(UTC+02:00) Kaliningrad",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 1 Daylight Time"},"Russia TZ 10 Standard Time":{displayName:"(UTC+11:00) Chokurdakh",offsetInMinutes:660,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 10 Daylight Time"},"Russia TZ 11 Standard Time":{displayName:"(UTC+12:00) Anadyr, Petropavlovsk-Kamchatsky",offsetInMinutes:720,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 11 Daylight Time"},"Russia TZ 2 Standard Time":{displayName:"(UTC+03:00) Moscow, St. Petersburg, Volgograd",offsetInMinutes:180,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 2 Daylight Time"},"Russia TZ 3 Standard Time":{displayName:"(UTC+04:00) Izhevsk, Samara",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 3 Daylight Time"},"Russia TZ 4 Standard Time":{displayName:"(UTC+05:00) Ekaterinburg",offsetInMinutes:300,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 4 Daylight Time"},"Russia TZ 6 Standard Time":{displayName:"(UTC+07:00) Krasnoyarsk",offsetInMinutes:420,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 6 Daylight Time"},"Russia TZ 7 Standard Time":{displayName:"(UTC+08:00) Irkutsk",offsetInMinutes:480,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 7 Daylight Time"},"Russia TZ 8 Standard Time":{displayName:"(UTC+09:00) Yakutsk",offsetInMinutes:540,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 8 Daylight Time"},"Russia TZ 9 Standard Time":{displayName:"(UTC+10:00) Vladivostok",offsetInMinutes:600,supportsDaylightSavingTime:!0,daylightName:"Russia TZ 9 Daylight Time"},"SA Eastern Standard Time":{displayName:"(UTC-03:00) Cayenne, Fortaleza",offsetInMinutes:-180},"SA Pacific Standard Time":{displayName:"(UTC-05:00) Bogota, Lima, Quito, Rio Branco",offsetInMinutes:-300},"SA Western Standard Time":{displayName:"(UTC-04:00) Georgetown, La Paz, Manaus, San Juan",offsetInMinutes:-240},"Saint Pierre Standard Time":{displayName:"(UTC-03:00) Saint Pierre and Miquelon",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Saint Pierre Daylight Time"},"Sakhalin Standard Time":{displayName:"(UTC+11:00) Sakhalin",offsetInMinutes:660,supportsDaylightSavingTime:!0,daylightName:"Sakhalin Daylight Time"},"Samoa Standard Time":{displayName:"(UTC+13:00) Samoa",offsetInMinutes:780,supportsDaylightSavingTime:!0,daylightName:"Samoa Daylight Time"},"Saratov Standard Time":{displayName:"(UTC+04:00) Saratov",offsetInMinutes:240,supportsDaylightSavingTime:!0,daylightName:"Saratov Daylight Time"},"SE Asia Standard Time":{displayName:"(UTC+07:00) Bangkok, Hanoi, Jakarta",offsetInMinutes:420},"South Africa Standard Time":{displayName:"(UTC+02:00) Harare, Pretoria",offsetInMinutes:120},"Sri Lanka Standard Time":{displayName:"(UTC+05:30) Sri Jayawardenepura",offsetInMinutes:330},"Sudan Standard Time":{displayName:"(UTC+02:00) Khartoum",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Sudan Daylight Time"},"Syria Standard Time":{displayName:"(UTC+02:00) Damascus",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"Syria Daylight Time"},"Taipei Standard Time":{displayName:"(UTC+08:00) Taipei",offsetInMinutes:480},"Tasmania Standard Time":{displayName:"(UTC+10:00) Hobart",offsetInMinutes:600,supportsDaylightSavingTime:!0,daylightName:"Tasmania Daylight Time"},"Tocantins Standard Time":{displayName:"(UTC-03:00) Araguaina",offsetInMinutes:-180,supportsDaylightSavingTime:!0,daylightName:"Tocantins Daylight Time"},"Tokyo Standard Time":{displayName:"(UTC+09:00) Osaka, Sapporo, Tokyo",offsetInMinutes:540},"Tomsk Standard Time":{displayName:"(UTC+07:00) Tomsk",offsetInMinutes:420,supportsDaylightSavingTime:!0,daylightName:"Tomsk Daylight Time"},"Tonga Standard Time":{displayName:"(UTC+13:00) Nuku'alofa",offsetInMinutes:780,supportsDaylightSavingTime:!0,daylightName:"Tonga Daylight Time"},"Transbaikal Standard Time":{displayName:"(UTC+09:00) Chita",offsetInMinutes:540,supportsDaylightSavingTime:!0,daylightName:"Transbaikal Daylight Time"},"Turkey Standard Time":{displayName:"(UTC+03:00) Istanbul",offsetInMinutes:180,supportsDaylightSavingTime:!0,daylightName:"Turkey Daylight Time"},"Turks and Caicos Standard Time":{displayName:"(UTC-04:00) Turks and Caicos",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Turks and Caicos Daylight Time"},"Ulaanbaatar Standard Time":{displayName:"(UTC+08:00) Ulaanbaatar",offsetInMinutes:480,supportsDaylightSavingTime:!0,daylightName:"Ulaanbaatar Daylight Time"},"US Eastern Standard Time":{displayName:"(UTC-05:00) Indiana (East)",offsetInMinutes:-300,supportsDaylightSavingTime:!0,daylightName:"US Eastern Daylight Time"},"US Mountain Standard Time":{displayName:"(UTC-07:00) Arizona",offsetInMinutes:-420},"UTC+12":{displayName:"(UTC+12:00) Coordinated Universal Time+12",offsetInMinutes:720},"UTC+13":{displayName:"(UTC+13:00) Coordinated Universal Time+13",offsetInMinutes:780},"UTC-02":{displayName:"(UTC-02:00) Coordinated Universal Time-02",offsetInMinutes:-120},"UTC-08":{displayName:"(UTC-08:00) Coordinated Universal Time-08",offsetInMinutes:-480},"UTC-09":{displayName:"(UTC-09:00) Coordinated Universal Time-09",offsetInMinutes:-540},"UTC-11":{displayName:"(UTC-11:00) Coordinated Universal Time-11",offsetInMinutes:-660},"Venezuela Standard Time":{displayName:"(UTC-04:00) Caracas",offsetInMinutes:-240,supportsDaylightSavingTime:!0,daylightName:"Venezuela Daylight Time"},"W. Australia Standard Time":{displayName:"(UTC+08:00) Perth",offsetInMinutes:480,supportsDaylightSavingTime:!0,daylightName:"W. Australia Daylight Time"},"W. Central Africa Standard Time":{displayName:"(UTC+01:00) West Central Africa",offsetInMinutes:60},"W. Europe Standard Time":{displayName:"(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna",offsetInMinutes:60,supportsDaylightSavingTime:!0,daylightName:"W. Europe Daylight Time"},"W. Mongolia Standard Time":{displayName:"(UTC+07:00) Hovd",offsetInMinutes:420,supportsDaylightSavingTime:!0,daylightName:"W. Mongolia Daylight Time"},"West Asia Standard Time":{displayName:"(UTC+05:00) Ashgabat, Tashkent",offsetInMinutes:300},"West Bank Gaza Standard Time":{displayName:"(UTC+02:00) Gaza, Hebron",offsetInMinutes:120,supportsDaylightSavingTime:!0,daylightName:"West Bank Gaza Daylight Time"},"West Pacific Standard Time":{displayName:"(UTC+10:00) Guam, Port Moresby",offsetInMinutes:600}},a=r.ou.fromFormat("1979-12-31","yyyy-MM-dd"),s=function(e,t){var n=(0,i.Zp)(t),r=(0,i.UI)(n,(function(e,t){return{key:e[0],value:e[1],index:t}})),o=(0,i.MR)(r,(function(e){return-e.key.length})),a=(0,i.Ed)(o,(function(t){return e=e.replace(t.key,"{{"+t.index+"}}")}));return(0,i.Ed)(a,(function(t){return e=e.replace("{{"+t.index+"}}",t.value)})),e},c=function(e){return s(e,{ddd:"ccc",dddd:"cccc",f:"uuu",ff:"uu",fff:"u",g:"G",y:"yy",yy:"yy",yyy:"yyyy",yyyy:"yyyy",yyyyy:"yyyy",gg:"G",K:"ZZ",t:"a",tt:"a",z:"Z",zz:"ZZZ",zzz:"ZZ",":":":","/":"/"})},l=function(e){return s(e,{"yyyy-MM-dd":"yy-mm-dd","yy-MM-dd":"y-mm-dd","dd/MM/yyyy":"dd/mm/yy","dd/MM/yy":"dd/mm/y","d/M/yy":"d/m/y","MM/dd/yyyy":"mm/dd/yy","MM/dd/yy":"m/dd/y","dd.MM.yyyy":"dd.mm.yy",yyyyMMdd:"yymmdd",MMddyyyy:"mmddyy","HH:mm":"HH:ii","hh:mm tt":"hh:ii A","HH-mm":"HH-ii","hh-mm tt":"hh-ii A",hhmm:"hhii",HHmm:"HHii",hhmmss:"hhiiss",HHmmss:"HHiiss","HH:mm:ss":"HH:ii:ss"})},u=function(e){var t=e&&o[e.timeZone];return t?r.ou.local().isInDST?t.offsetInMinutes+60:t.offsetInMinutes:r.ou.local().offset}},40374:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(47643),i=n(77530),o=n(11325),a=n(95457);function s(e,t){if(void 0===t&&(t=e.variables.find((function(e){return e.type!==r.x.Computed}))),!t)return null;var n=t.name,s=(0,i.R)(n);return function(t){var r=t().interview,i=r.questionnaire,c=r.validation.errorsByVariableName,l=!0===(0,a.Ag)(i,"INPUT_REQUIRED"),u="SoftPrompt"===(0,a.yP)(e,"AnswerRequired");if(l&&u){var m=s(t());if(!(null==m?void 0:m.some((function(e){return!(0,o.Ew)(e.value)})))){var d=(c[n]||[]).some((function(e){return e.softPrompt}));return{variableName:n,error:{key:"IncompleteAnswer",softPrompt:!0,isErrorNew:!d}}}}return null}}},22950:function(e,t,n){"use strict";n.d(t,{TH:function(){return C},ks:function(){return y},CF:function(){return _}});var r=n(47103),i=n(47643),o=n(77530),a=n(11325);function s(e){var t=e.variables.filter((function(e){return e.type!==i.x.Computed}))[0];if(!t)return null;var n=t.name,r=(0,o.R)(n);return function(t){var i=!0===t().interview.questionnaire.settings.INPUT_REQUIRED,o=void 0===e.settings.AnswerRequired;if(i&&o){var s=r(t());if(!s.length||(0,a.Ew)(s[0].value))return{variableName:n,error:{key:"IncompleteAnswer"}}}return null}}function c(e){var t=e.name,n=e.maxMention,r=(0,o.R)(t);return function(e){return r(e()).length<=n?null:{variableName:t,error:{key:"InvalidAnswer"}}}}function l(e){var t=e.name,n=e.choiceList,r=(0,o.R)(t);return function(e){return r(e()).filter((function(e){return void 0===e.openEnd||!e.openEnd.trim().length})).map((function(e){return n.find((function(t){return t.value===e.value}))})).some((function(e){return e&&!0===e.settings.EnforceOpenEnd}))?{variableName:t,error:{key:"IncompleteAnswer",args:{openEnd:t}}}:null}}function u(e){var t=e.name,n=e.choiceList,r=(0,o.R)(t);return function(e){var i=r(e()).map((function(e){var t=e.openEnd,r=void 0===t?"":t,i=n.find((function(t){return t.value===e.value})).settings,o=(void 0===i?{}:i).MinOpenEndLength;return{openEnd:r.trim(),minimum:o}})).filter((function(e){var t=e.openEnd,n=e.minimum;return t.length&&void 0!==n})).map((function(e){var t=e.openEnd,n=e.minimum;return t.length<n?n:void 0})).filter((function(e){return void 0!==e}))[0];return i?{variableName:t,error:{key:"InvalidCharactersMin",args:{min:i}}}:null}}function m(e){var t=e.name,n=e.choiceList,r=(0,o.R)(t);return function(e){var i=r(e()).map((function(e){var t=e.openEnd,r=void 0===t?"":t,i=n.find((function(t){return t.value===e.value})).settings,o=(void 0===i?{}:i).MaxOpenEndLength;return{openEnd:r.trim(),maximum:o}})).filter((function(e){var t=e.openEnd,n=e.maximum;return t.length&&void 0!==n})).map((function(e){var t=e.openEnd,n=e.maximum;return t.length>n?n:void 0})).filter((function(e){return void 0!==e}))[0];return i?{variableName:t,error:{key:"InvalidCharactersMax",args:{max:i}}}:null}}var d=n(40374),f=n(53149);function p(e){var t=e.name,n=(0,o.R)(t);return function(r){var i=n(r());if(i.length){var o=i[0].value;if(!(0,a.f6)(o,e)){var s=r().interview,c=s.respondent.language||s.language,l=(0,f.L4)(o,c).value();if((0,a.yi)(l))return{variableName:t,error:{key:"InvalidNumber"}}}}return null}}function h(e,t){var n=t.name,r=(0,o.R)(n);return function(i){var o=r(i());if(o.length){var s=o[0].value,c=(0,f.cn)(s),l=parseInt(e.settings.NumberOfDecimals,10);if(l>=0&&l<=28&&!((0,a.f6)(s,t)||c<=l))return{variableName:n,error:{key:"InvalidNumber"}}}return null}}function b(e,t){var n=t.name,r=(0,o.R)(n);return function(i){var o=e.settings,s=i().interview,c=(0,f.VI)(o.MinValue,s);(0,a.yi)(c)&&(c=Number.MIN_SAFE_INTEGER);var l=r(i());if(l.length){var u=l[0].value,m=(0,f.VI)(u,s);if(!((0,a.f6)(u,t)||m>=c))return{variableName:n,error:{key:"LowerBoundNotFulfilled",args:{min:String(c)}}}}return null}}function v(e,t){var n=t.name,r=(0,o.R)(n);return function(i){var o=e.settings,s=i().interview,c=(0,f.VI)(o.MaxValue,s)||Number.MAX_SAFE_INTEGER,l=r(i());if(l.length){var u=l[0].value,m=(0,f.VI)(u,s);if(!((0,a.f6)(u,t)||m<=c))return{variableName:n,error:{key:"UpperBoundNotFulfilled",args:{max:String(c)}}}}return null}}function g(e,t){var n=t.name,r=(0,o.R)(n);return function(i){var o=e.settings,s=i().interview,c=(0,f.VI)(o.MaxValue,s),l=(0,f.VI)(o.MinValue,s);if(!(0,a.yi)(c)&&!(0,a.yi)(l)){var u=r(i());if(u.length){var m=u[0].value,d=(0,f.VI)(m,s);if(!((0,a.f6)(m,t)||d<=c&&d>=l))return{variableName:n,error:{key:"OutOfBounds",args:{max:String(c),min:String(l)}}}}}return null}}var A=n(11110),y=function(){return[r.ce.RadioButton,r.ce.DropDownList,r.ce.AutoComplete,r.ce.Slider,r.ce.NetPromoter,r.ce.RespondentLanguage,r.ce.RespondentTimeZone,r.ce.NumericAnswer]};function C(e,t){return y().includes(e.type)?(0,A.NA)(e.type,t)?[]:[s(e),(0,d.Z)(e)]:[]}function _(e,t){var n=e.variables.filter((function(e){return e.type!==i.x.Computed}))[0],o=(0,A.NA)(e.type,t);if(!n||o)return[];var a=n.type;switch(e.type){case r.ce.RadioButton:case r.ce.DropDownList:return[c(n),l(n),u(n),m(n)];case r.ce.AutoComplete:case r.ce.NetPromoter:case r.ce.RespondentLanguage:case r.ce.RespondentTimeZone:return[c(n)];case r.ce.Slider:return a===i.x.Discrete?[c(n)]:[];case r.ce.NumericAnswer:return[c(n),p(n),h(e,n),g(e,n),b(e,n),v(e,n)];default:return[]}}},16571:function(e,t,n){"use strict";e.exports=n.p+"8d1c2adf6b4897d3855c.ttf?gniomg"},7490:function(e,t,n){"use strict";e.exports=n.p+"f6cb83c5d3a4f5e7ace3.woff"},73381:function(e,t,n){"use strict";e.exports=n.p+"f6cb83c5d3a4f5e7ace3.woff?gniomg"},4147:function(e){"use strict";e.exports={i8:"3.1.166"}}},function(e){e.O(0,[421,293,742],(function(){return 75026,e(e.s=75026)})),e.O()}]);
//# sourceMappingURL=main.js.map
