window.APP = {
	serviceWorker: true,

	appUrl: 'https://app.questionstar.ru/',
	apiUrl: 'https://external.questionstar.ru/api/v1/',
	reportApiUrl: 'https://reports.questionstar.ru/api/v1/',
	signalrUrl: 'https://external.questionstar.ru/signalr',
	cookiesDomain: '.questionstar.ru',

	publicationUrl: 'https://survey.questionstar.ru',
	previewUrl: 'https://survey.questionstar.ru',
	siteUrl: 'https://www.questionstar.ru',
	feedbackUrl: 'https://survey.questionstar.com/2f072e43',
	supportUrl: 'https://survey.questionstar.com/d459de80',
	helpUrl: 'https://www.questionstar.ru/help-new/',

	emailFrom: 'sender@questionstar.ru',
	languages: ['en', 'de', 'ru', 'zh'],
	lang: 'ru',
	country: 'RU',
	gTagId: 'GTM-TQDVC69',
	autoUpdateInterval: 60, // sec
	currency: '₽',
	socialAuth: ['google', 'facebook', 'vk'],

	// password requirements
	passwordRequiredLength: 8,
	passwordRequireDifferentCase: false,
	passwordRequireNonLetterOrDigit: false,
	passwordRequireDigit: false,
};
(function(){var E2=Object.create;var td=Object.defineProperty;var T2=Object.getOwnPropertyDescriptor;var A2=Object.getOwnPropertyNames;var R2=Object.getPrototypeOf,D2=Object.prototype.hasOwnProperty;var C2=function(t){return td(t,"__esModule",{value:!0})};var KF=function(t,e){return function(){return e||t((e={exports:{}}).exports,e),e.exports}};var I2=function(t,e,r){if(e&&typeof e=="object"||typeof e=="function")for(var n=A2(e),i=0,o=n.length,a;i<o;i++)a=n[i],!D2.call(t,a)&&a!=="default"&&td(t,a,{get:function(s){return e[s]}.bind(null,a),enumerable:!(r=T2(e,a))||r.enumerable});return t},YF=function(t){return I2(C2(td(t!=null?E2(R2(t)):{},"default",t&&t.__esModule&&"default"in t?{get:function(){return t.default},enumerable:!0}:{value:t,enumerable:!0})),t)};var QF=KF(function(XF,Il){(function(t){"use strict";if(!t.__disableNativeFetch&&t.fetch)return;function e(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(y))throw new TypeError("Invalid character in header field name");return y.toLowerCase()}function r(y){return typeof y!="string"&&(y=String(y)),y}function n(y){this.map={},y instanceof n?y.forEach(function(b,_){this.append(_,b)},this):y&&Object.getOwnPropertyNames(y).forEach(function(b){this.append(b,y[b])},this)}n.prototype.append=function(y,b){y=e(y),b=r(b);var _=this.map[y];_||(_=[],this.map[y]=_),_.push(b)},n.prototype.delete=function(y){delete this.map[e(y)]},n.prototype.get=function(y){var b=this.map[e(y)];return b?b[0]:null},n.prototype.getAll=function(y){return this.map[e(y)]||[]},n.prototype.has=function(y){return this.map.hasOwnProperty(e(y))},n.prototype.set=function(y,b){this.map[e(y)]=[r(b)]},n.prototype.forEach=function(y,b){Object.getOwnPropertyNames(this.map).forEach(function(_){this.map[_].forEach(function(x){y.call(b,x,_,this)},this)},this)};function i(y){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}function o(y){return new Promise(function(b,_){y.onload=function(){b(y.result)},y.onerror=function(){_(y.error)}})}function a(y){var b=new FileReader;return b.readAsArrayBuffer(y),o(b)}function s(y,b){var _=new FileReader,x=b.headers.map["content-type"]?b.headers.map["content-type"].toString():"",P=/charset\=[0-9a-zA-Z\-\_]*;?/,F=y.type.match(P)||x.match(P),S=[y];return F&&S.push(F[0].replace(/^charset\=/,"").replace(/;$/,"")),_.readAsText.apply(_,S),o(_)}var l={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(y){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function u(){return this.bodyUsed=!1,this._initBody=function(y,b){if(this._bodyInit=y,typeof y=="string")this._bodyText=y;else if(l.blob&&Blob.prototype.isPrototypeOf(y))this._bodyBlob=y,this._options=b;else if(l.formData&&FormData.prototype.isPrototypeOf(y))this._bodyFormData=y;else if(!y)this._bodyText="";else if(!(l.arrayBuffer&&ArrayBuffer.prototype.isPrototypeOf(y)))throw new Error("unsupported BodyInit type")},l.blob?(this.blob=function(){var y=i(this);if(y)return y;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(a)},this.text=function(){var y=i(this);if(y)return y;if(this._bodyBlob)return s(this._bodyBlob,this._options);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var y=i(this);return y||Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}var c=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function f(y){var b=y.toUpperCase();return c.indexOf(b)>-1?b:y}function p(y,b){b=b||{};var _=b.body;if(p.prototype.isPrototypeOf(y)){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,b.headers||(this.headers=new n(y.headers)),this.method=y.method,this.mode=y.mode,_||(_=y._bodyInit,y.bodyUsed=!0)}else this.url=y;if(this.credentials=b.credentials||this.credentials||"omit",(b.headers||!this.headers)&&(this.headers=new n(b.headers)),this.method=f(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(_,b)}p.prototype.clone=function(){return new p(this)};function d(y){var b=new FormData;return y.trim().split("&").forEach(function(_){if(_){var x=_.split("="),P=x.shift().replace(/\+/g," "),F=x.join("=").replace(/\+/g," ");b.append(decodeURIComponent(P),decodeURIComponent(F))}}),b}function m(y){var b=new n,_=y.getAllResponseHeaders().trim().split("\n");return _.forEach(function(x){var P=x.trim().split(":"),F=P.shift().trim(),S=P.join(":").trim();b.append(F,S)}),b}u.call(p.prototype);function h(y,b){b||(b={}),this._initBody(y,b),this.type="default",this.status=b.status,this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText,this.headers=b.headers instanceof n?b.headers:new n(b.headers),this.url=b.url||""}u.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},h.error=function(){var y=new h(null,{status:0,statusText:""});return y.type="error",y};var v=[301,302,303,307,308];h.redirect=function(y,b){if(v.indexOf(b)===-1)throw new RangeError("Invalid status code");return new h(null,{status:b,headers:{location:y}})},t.Headers=n,t.Request=p,t.Response=h,t.fetch=function(y,b){return new Promise(function(_,x){var P;p.prototype.isPrototypeOf(y)&&!b?P=y:P=new p(y,b);var F=new XMLHttpRequest;function S(){if("responseURL"in F)return F.responseURL;if(/^X-Request-URL:/m.test(F.getAllResponseHeaders()))return F.getResponseHeader("X-Request-URL")}var k=!1;function E(){if(F.readyState===4){var j=F.status===1223?204:F.status;if(j<100||j>599){if(k)return;k=!0,x(new TypeError("Network request failed"));return}var L={status:j,statusText:F.statusText,headers:m(F),url:S()},Sr="response"in F?F.response:F.responseText;k||(k=!0,_(new h(Sr,L)))}}F.onreadystatechange=E,F.onload=E,F.onerror=function(){k||(k=!0,x(new TypeError("Network request failed")))},F.open(P.method,P.url,!0);try{P.credentials==="include"&&("withCredentials"in F?F.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(j){console&&console.warn&&console.warn("set withCredentials error:"+j)}"responseType"in F&&l.blob&&(F.responseType="blob"),P.headers.forEach(function(j,L){F.setRequestHeader(L,j)}),F.send(typeof P._bodyInit=="undefined"?null:P._bodyInit)})},t.fetch.polyfill=!0,typeof Il!="undefined"&&Il.exports&&(Il.exports=t.fetch)})(typeof self!="undefined"?self:XF)});var JF=KF(function(od){(function(t){"use strict";var e=t.Uint8Array,r=t.HTMLCanvasElement,n=r&&r.prototype,i=/\s*;\s*base64\s*(?:;|$)/i,o="toDataURL",a,s=function(u){for(var c=u.length,f=new e(c/4*3|0),p=0,d=0,m=[0,0],h=0,v=0,y,b,_;c--;)b=u.charCodeAt(p++),y=a[b-43],y!==255&&y!==_&&(m[1]=m[0],m[0]=b,v=v<<6|y,h++,h===4&&(f[d++]=v>>>16,m[1]!==61&&(f[d++]=v>>>8),m[0]!==61&&(f[d++]=v),h=0));return f};e&&(a=new e([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])),r&&(!n.toBlob||!n.toBlobHD)&&(n.toBlob||(n.toBlob=function(l,u){if(u||(u="image/png"),this.mozGetAsFile){l(this.mozGetAsFile("canvas",u));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(u)){l(this.msToBlob());return}var c=Array.prototype.slice.call(arguments,1),f=this[o].apply(this,c),p=f.indexOf(","),d=f.substring(p+1),m=i.test(f.substring(0,p)),h;Blob.fake?(h=new Blob,m?h.encoding="base64":h.encoding="URI",h.data=d,h.size=d.length):e&&(m?h=new Blob([s(d)],{type:u}):h=new Blob([decodeURIComponent(d)],{type:u})),l(h)}),!n.toBlobHD&&n.toDataURLHD?n.toBlobHD=function(){o="toDataURLHD";var l=this.toBlob();return o="toDataURL",l}:n.toBlobHD=n.toBlob)})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||od.content||od)});var tpe=YF(QF());(function(){var t=!1,e="attachShadow"in Element.prototype&&"getRootNode"in Element.prototype,r=!!(e&&document.createElement("div").attachShadow({mode:"open"}).getSelection),n=window.ShadyDOM&&window.ShadyDOM.inUse,i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o=!e||n||!r&&!i,a=/^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|script|source|style|template|track|wbr)$/,s="-shadow-selectionchange",l=[Node.ELEMENT_NODE,Node.TEXT_NODE,Node.DOCUMENT_FRAGMENT_NODE];function u(_){return l.includes(_.nodeType)}function c(_,x){var P=[],F=function(j){for(var L=0;L<j.length;++L)j[L].shadowRoot&&P.push(j[L].shadowRoot)};for(x.shadowRoot&&P.push(x.shadowRoot),F(x.childNodes);P.length;){for(var S=P.shift(),k=0;k<S.childNodes.length;++k)if(_.containsNode(S.childNodes[k],!0))return S;F(S.querySelectorAll("*"))}return null}function f(_,x,P){var F=x.childNodes||x.children;if(!F)return x;for(var S=0;S<F.length;++S){var k=P?S:F.length-1-S,E=F[k];if(!!u(E)){if(t&&console.debug("checking child",E,"IsLeft",P),_.containsNode(E,!0)){if(_.containsNode(E,!1))return t&&console.info("found child",E),E;if(!a.exec(E.localName||""))return t&&console.info("descending child",E),f(_,E,P)}t&&console.info(x,"does NOT contain",E)}}return x}var p={node:null,offset:-1};(function(){if(r||o)return document.addEventListener("selectionchange",function(x){document.dispatchEvent(new CustomEvent(s))}),function(){};var _=!1;document.addEventListener("selectionchange",function(x){_||(_=!0,document.dispatchEvent(new CustomEvent("-shadow-selectionchange")),window.requestAnimationFrame(function(){_=!1}))})})();function d(_,x,P){for(var F=x;(x=h(x,P))&&x.contains(F););return x?x instanceof Element&&_.containsNode(x,!0):!1}function m(_,x,P){if(_.type==="Range"){var F=function(){return _.toString().length},S=F();t&&console.info('initial selection: "'.concat(_.toString(),'"'));var k;if(_.modify("extend","forward","character"),k=F(),t&&console.info('forward selection: "'.concat(_.toString(),'"')),k>S||d(_,P,!0))return t&&console.info("got forward >, moving right"),_.modify("extend","backward","character"),!0;if(k<S||!_.containsNode(x))return t&&console.info("got forward <, moving left"),_.modify("extend","backward","character"),!1;if(_.modify("extend","backward","character"),k=F(),t&&console.info('backward selection: "'.concat(_.toString(),'"')),k>S||d(_,x,!1))return t&&console.info("got backwards >, moving left"),_.modify("extend","forward","character"),!1;if(k<S||!_.containsNode(P))return t&&console.info("got backwards <, moving right"),_.modify("extend","forward","character"),!0}}function h(_,x){if(!x)return _.previousSibling||_.parentNode||null;for(;_;){if(_.nextSibling)return _.nextSibling;_=_.parentNode}return null}var v=new Map;function y(_){if(n){var x=document.getSelection();return x.rangeCount?x.getRangeAt(0):null}else if(o){var P=document.getSelection();return P.containsNode(_,!0)?P.getRangeAt(0):null}else if(r){var F=_.getSelection();return F.rangeCount?F.getRangeAt(0):null}var S=v.get(_);if(S)return S;var k=b(_);return v.set(_,k.range),window.setTimeout(function(){v.delete(_)},0),t&&console.debug("getRange got",k),k.range}window.getShadowRootRange=y;function b(_){var x=window.getSelection();if(x.type==="None")return{range:null,type:"none"};if(!(x.type==="Caret"||x.type==="Range"))throw new TypeError("unexpected type: "+x.type);var P=f(x,_,!0);if(P===_)return{range:null,mode:"none"};var F=document.createRange(),S=null,k=void 0;if(x.type==="Range"&&(S=f(x,_,!1),k=m(x,P,S),k===void 0))return F.setStart(P,0),F.setEnd(S,S.length),{range:F,mode:"all"};var E=x.toString().length,j=0,L=0;if(S!==null){if(S.nodeType===Node.TEXT_NODE){for(var Sr=S.textContent,de=S.nextSibling,Wt=Sr.length-1;Wt>=0;--Wt){S.splitText(Wt);var P2=x.toString().length;if(P2!==E){L=Wt+1;break}}for(S.insertData(S.length,Sr.substr(S.length));S.nextSibling!==de;)S.nextSibling.remove()}}if(P.nodeType===Node.TEXT_NODE){P!==S&&(P.appendData("?"),x.collapseToStart(),x.modify("extend","right","character"));for(var $F=P.textContent,S2=P.nextSibling,k2=P===S?L:$F.length-1,Cl=k2;Cl>=0;--Cl)if(P.splitText(Cl),x.toString()===""){j=Cl;break}for(P.insertData(P.length,$F.substr(P.length));P.nextSibling!==S2;)P.nextSibling.remove();P!==S&&P.deleteData(P.length-1,1),S===null&&(S=P,L=j)}else S===null&&(S=P);return E===1&&p&&p.node===P&&p.offset>j&&k&&(k=!1),k===!0?(x.collapse(P,j),x.extend(S,L)):k===!1?(x.collapse(S,L),x.extend(P,j)):x.setPosition(P,j),F.setStart(P,j),F.setEnd(S,L),{range:F,mode:"normal"}}})();Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);Element.prototype.closest||(Element.prototype.closest=function(t){if(!this)return null;if(this.matches(t))return this;if(this.parentElement)return this.parentElement.closest(t)});Element.prototype.composedClosest=function(t){var e=this.closest(t);if(e)return e;var r=this.getRootNode();if(r!==document&&r!==this&&r instanceof ShadowRoot)return r.host.composedClosest(t)};(function(t){t.forEach(function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==null&&this.parentNode.removeChild(this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);navigator.languages||(navigator.languages=[navigator.language]);function j2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function B2(t){return q2(t)||N2(t)||L2(t)||M2()}function M2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L2(t,e){if(!!t){if(typeof t=="string")return rd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rd(t,e)}}function N2(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function q2(t){if(Array.isArray(t))return rd(t)}function rd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.fromEntries=Object.fromEntries||function(t){return B2(t).reduce(function(e,r){var n=r[0],i=r[1];return Object.assign(e,j2({},n,i))},{})};Element.prototype.getAttributeNames===void 0&&(Element.prototype.getAttributeNames=function(){for(var t=this.attributes,e=t.length,r=Array(e),n=0;n<e;n++)r[n]=t[n].name;return r});(function(t){t.forEach(function(e){e.hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){var n=Array.prototype.slice.call(arguments),i=document.createDocumentFragment();n.forEach(function(o){var a=o instanceof Node;i.appendChild(a?o:document.createTextNode(String(o)))}),this.parentNode.insertBefore(i,this)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);(function(t){t.forEach(function(e){e.hasOwnProperty("after")||Object.defineProperty(e,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(){var n=Array.prototype.slice.call(arguments),i=document.createDocumentFragment();n.forEach(function(o){var a=o instanceof Node;i.appendChild(a?o:document.createTextNode(String(o)))}),this.parentNode.insertBefore(i,this.nextSibling)}})})})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);(function(t){t.forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var n=Array.prototype.slice.call(arguments),i=document.createDocumentFragment();n.forEach(function(o){var a=o instanceof Node;i.appendChild(a?o:document.createTextNode(String(o)))}),this.appendChild(i)}})})})([Element.prototype,Document.prototype,DocumentFragment.prototype]);(function(t){t.forEach(function(e){e.hasOwnProperty("prepend")||Object.defineProperty(e,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var n=Array.prototype.slice.call(arguments),i=document.createDocumentFragment();n.forEach(function(o){var a=o instanceof Node;i.appendChild(a?o:document.createTextNode(String(o)))}),this.insertBefore(i,this.firstChild)}})})})([Element.prototype,Document.prototype,DocumentFragment.prototype]);function nd(t){return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nd(t)}function id(){var t=this.parentNode,e=arguments.length,r;if(!!t)for(e||t.removeChild(this);e--;)r=arguments[e],nd(r)!=="object"?r=this.ownerDocument.createTextNode(r):r.parentNode&&r.parentNode.removeChild(r),e?t.insertBefore(r,this.previousSibling):t.replaceChild(r,this)}Element.prototype.replaceWith||(Element.prototype.replaceWith=id);CharacterData.prototype.replaceWith||(CharacterData.prototype.replaceWith=id);DocumentType.prototype.replaceWith||(DocumentType.prototype.replaceWith=id);typeof window.queueMicrotask!="function"&&(window.queueMicrotask=function(t){Promise.resolve().then(t).catch(function(e){return setTimeout(function(){throw e})})});HTMLCollection.prototype[Symbol.iterator]=[][Symbol.iterator];FileList.prototype[Symbol.iterator]=[][Symbol.iterator];var dpe=YF(JF());(function(t){"use strict";var e="KeyboardEvent"in t;e||(t.KeyboardEvent=function(){throw TypeError("Illegal constructor")}),[["DOM_KEY_LOCATION_STANDARD",0],["DOM_KEY_LOCATION_LEFT",1],["DOM_KEY_LOCATION_RIGHT",2],["DOM_KEY_LOCATION_NUMPAD",3]].forEach(function(F){F[0]in t.KeyboardEvent||(t.KeyboardEvent[F[0]]=F[1])});var r=t.KeyboardEvent.DOM_KEY_LOCATION_STANDARD,n=t.KeyboardEvent.DOM_KEY_LOCATION_LEFT,i=t.KeyboardEvent.DOM_KEY_LOCATION_RIGHT,o=t.KeyboardEvent.DOM_KEY_LOCATION_NUMPAD;function a(F,S){return String(F).indexOf(S)!==-1}var s=function(){return a(navigator.platform,"Win")?"win":a(navigator.platform,"Mac")?"mac":a(navigator.platform,"CrOS")?"cros":a(navigator.platform,"Linux")?"linux":a(navigator.userAgent,"iPad")||a(navigator.platform,"iPod")||a(navigator.platform,"iPhone")?"ios":""}(),l=function(){return a(navigator.userAgent,"Chrome/")?"chrome":a(navigator.vendor,"Apple")?"safari":a(navigator.userAgent,"MSIE")?"ie":a(navigator.userAgent,"Gecko/")?"moz":a(navigator.userAgent,"Opera/")?"opera":""}(),u=l+"-"+s;function c(F,S,k){(u===S||l===S||s===S)&&Object.keys(k).forEach(function(E){F[E]=k[E]})}function f(F,S){var k={};return Object.keys(F).forEach(function(E){var j=F[E];S in j&&(k[j[S]]=j)}),k}function p(F){var S={};return Object.keys(F).forEach(function(k){S[F[k]]=k}),S}var d={3:{code:"Cancel"},6:{code:"Help"},8:{code:"Backspace"},9:{code:"Tab"},12:{code:"Clear"},13:{code:"Enter"},16:{code:"Shift"},17:{code:"Control"},18:{code:"Alt"},19:{code:"Pause"},20:{code:"CapsLock"},21:{code:"KanaMode"},22:{code:"Lang1"},25:{code:"Lang2"},27:{code:"Escape"},28:{code:"Convert"},29:{code:"NonConvert"},30:{code:"Accept"},31:{code:"ModeChange"},32:{code:"Space"},33:{code:"PageUp"},34:{code:"PageDown"},35:{code:"End"},36:{code:"Home"},37:{code:"ArrowLeft"},38:{code:"ArrowUp"},39:{code:"ArrowRight"},40:{code:"ArrowDown"},41:{code:"Select"},42:{code:"Print"},43:{code:"Execute"},44:{code:"PrintScreen"},45:{code:"Insert"},46:{code:"Delete"},47:{code:"Help"},48:{code:"Digit0",keyCap:"0"},49:{code:"Digit1",keyCap:"1"},50:{code:"Digit2",keyCap:"2"},51:{code:"Digit3",keyCap:"3"},52:{code:"Digit4",keyCap:"4"},53:{code:"Digit5",keyCap:"5"},54:{code:"Digit6",keyCap:"6"},55:{code:"Digit7",keyCap:"7"},56:{code:"Digit8",keyCap:"8"},57:{code:"Digit9",keyCap:"9"},65:{code:"KeyA",keyCap:"a"},66:{code:"KeyB",keyCap:"b"},67:{code:"KeyC",keyCap:"c"},68:{code:"KeyD",keyCap:"d"},69:{code:"KeyE",keyCap:"e"},70:{code:"KeyF",keyCap:"f"},71:{code:"KeyG",keyCap:"g"},72:{code:"KeyH",keyCap:"h"},73:{code:"KeyI",keyCap:"i"},74:{code:"KeyJ",keyCap:"j"},75:{code:"KeyK",keyCap:"k"},76:{code:"KeyL",keyCap:"l"},77:{code:"KeyM",keyCap:"m"},78:{code:"KeyN",keyCap:"n"},79:{code:"KeyO",keyCap:"o"},80:{code:"KeyP",keyCap:"p"},81:{code:"KeyQ",keyCap:"q"},82:{code:"KeyR",keyCap:"r"},83:{code:"KeyS",keyCap:"s"},84:{code:"KeyT",keyCap:"t"},85:{code:"KeyU",keyCap:"u"},86:{code:"KeyV",keyCap:"v"},87:{code:"KeyW",keyCap:"w"},88:{code:"KeyX",keyCap:"x"},89:{code:"KeyY",keyCap:"y"},90:{code:"KeyZ",keyCap:"z"},91:{code:"MetaLeft",location:n},92:{code:"MetaRight",location:i},93:{code:"ContextMenu"},95:{code:"Standby"},96:{code:"Numpad0",keyCap:"0",location:o},97:{code:"Numpad1",keyCap:"1",location:o},98:{code:"Numpad2",keyCap:"2",location:o},99:{code:"Numpad3",keyCap:"3",location:o},100:{code:"Numpad4",keyCap:"4",location:o},101:{code:"Numpad5",keyCap:"5",location:o},102:{code:"Numpad6",keyCap:"6",location:o},103:{code:"Numpad7",keyCap:"7",location:o},104:{code:"Numpad8",keyCap:"8",location:o},105:{code:"Numpad9",keyCap:"9",location:o},106:{code:"NumpadMultiply",keyCap:"*",location:o},107:{code:"NumpadAdd",keyCap:"+",location:o},108:{code:"NumpadComma",keyCap:",",location:o},109:{code:"NumpadSubtract",keyCap:"-",location:o},110:{code:"NumpadDecimal",keyCap:".",location:o},111:{code:"NumpadDivide",keyCap:"/",location:o},112:{code:"F1"},113:{code:"F2"},114:{code:"F3"},115:{code:"F4"},116:{code:"F5"},117:{code:"F6"},118:{code:"F7"},119:{code:"F8"},120:{code:"F9"},121:{code:"F10"},122:{code:"F11"},123:{code:"F12"},124:{code:"F13"},125:{code:"F14"},126:{code:"F15"},127:{code:"F16"},128:{code:"F17"},129:{code:"F18"},130:{code:"F19"},131:{code:"F20"},132:{code:"F21"},133:{code:"F22"},134:{code:"F23"},135:{code:"F24"},144:{code:"NumLock",location:o},145:{code:"ScrollLock"},160:{code:"ShiftLeft",location:n},161:{code:"ShiftRight",location:i},162:{code:"ControlLeft",location:n},163:{code:"ControlRight",location:i},164:{code:"AltLeft",location:n},165:{code:"AltRight",location:i},166:{code:"BrowserBack"},167:{code:"BrowserForward"},168:{code:"BrowserRefresh"},169:{code:"BrowserStop"},170:{code:"BrowserSearch"},171:{code:"BrowserFavorites"},172:{code:"BrowserHome"},173:{code:"AudioVolumeMute"},174:{code:"AudioVolumeDown"},175:{code:"AudioVolumeUp"},176:{code:"MediaTrackNext"},177:{code:"MediaTrackPrevious"},178:{code:"MediaStop"},179:{code:"MediaPlayPause"},180:{code:"LaunchMail"},181:{code:"MediaSelect"},182:{code:"LaunchApp1"},183:{code:"LaunchApp2"},186:{code:"Semicolon",keyCap:";"},187:{code:"Equal",keyCap:"="},188:{code:"Comma",keyCap:","},189:{code:"Minus",keyCap:"-"},190:{code:"Period",keyCap:"."},191:{code:"Slash",keyCap:"/"},192:{code:"Backquote",keyCap:"`"},219:{code:"BracketLeft",keyCap:"["},220:{code:"Backslash",keyCap:"\\"},221:{code:"BracketRight",keyCap:"]"},222:{code:"Quote",keyCap:"'"},226:{code:"IntlBackslash",keyCap:"\\"},229:{code:"Process"},246:{code:"Attn"},247:{code:"CrSel"},248:{code:"ExSel"},249:{code:"EraseEof"},250:{code:"Play"},251:{code:"ZoomToggle"},254:{code:"Clear"}};c(d,"moz",{59:{code:"Semicolon",keyCap:";"},61:{code:"Equal",keyCap:"="},107:{code:"Equal",keyCap:"="},109:{code:"Minus",keyCap:"-"},187:{code:"NumpadAdd",keyCap:"+",location:o},189:{code:"NumpadSubtract",keyCap:"-",location:o}}),c(d,"moz-mac",{12:{code:"NumLock",location:o},173:{code:"Minus",keyCap:"-"}}),c(d,"moz-win",{173:{code:"Minus",keyCap:"-"}}),c(d,"chrome-mac",{93:{code:"MetaRight",location:i}}),c(d,"safari",{3:{code:"Enter"},25:{code:"Tab"}}),c(d,"ios",{10:{code:"Enter",location:r}}),c(d,"safari-mac",{91:{code:"MetaLeft",location:n},93:{code:"MetaRight",location:i},229:{code:"KeyQ",keyCap:"Q"}});var m={};s==="cros"&&(m["U+00A0"]={code:"ShiftLeft",location:n},m["U+00A1"]={code:"ShiftRight",location:i},m["U+00A2"]={code:"ControlLeft",location:n},m["U+00A3"]={code:"ControlRight",location:i},m["U+00A4"]={code:"AltLeft",location:n},m["U+00A5"]={code:"AltRight",location:i}),u==="chrome-mac"&&(m["U+0010"]={code:"ContextMenu"}),u==="safari-mac"&&(m["U+0010"]={code:"ContextMenu"}),s==="ios"&&(m["U+0010"]={code:"Function"},m["U+001C"]={code:"ArrowLeft"},m["U+001D"]={code:"ArrowRight"},m["U+001E"]={code:"ArrowUp"},m["U+001F"]={code:"ArrowDown"},m["U+0001"]={code:"Home"},m["U+0004"]={code:"End"},m["U+000B"]={code:"PageUp"},m["U+000C"]={code:"PageDown"});var h=[];h[n]={16:{code:"ShiftLeft",location:n},17:{code:"ControlLeft",location:n},18:{code:"AltLeft",location:n}},h[i]={16:{code:"ShiftRight",location:i},17:{code:"ControlRight",location:i},18:{code:"AltRight",location:i}},h[o]={13:{code:"NumpadEnter",location:o}},c(h[o],"moz",{109:{code:"NumpadSubtract",location:o},107:{code:"NumpadAdd",location:o}}),c(h[n],"moz-mac",{224:{code:"MetaLeft",location:n}}),c(h[i],"moz-mac",{224:{code:"MetaRight",location:i}}),c(h[i],"moz-win",{91:{code:"MetaRight",location:i}}),c(h[i],"mac",{93:{code:"MetaRight",location:i}}),c(h[o],"chrome-mac",{12:{code:"NumLock",location:o}}),c(h[o],"safari-mac",{12:{code:"NumLock",location:o},187:{code:"NumpadAdd",location:o},189:{code:"NumpadSubtract",location:o},190:{code:"NumpadDecimal",location:o},191:{code:"NumpadDivide",location:o}});var v={ShiftLeft:{key:"Shift"},ShiftRight:{key:"Shift"},ControlLeft:{key:"Control"},ControlRight:{key:"Control"},AltLeft:{key:"Alt"},AltRight:{key:"Alt"},MetaLeft:{key:"Meta"},MetaRight:{key:"Meta"},NumpadEnter:{key:"Enter"},Space:{key:" "},Digit0:{key:"0",shiftKey:")"},Digit1:{key:"1",shiftKey:"!"},Digit2:{key:"2",shiftKey:"@"},Digit3:{key:"3",shiftKey:"#"},Digit4:{key:"4",shiftKey:"$"},Digit5:{key:"5",shiftKey:"%"},Digit6:{key:"6",shiftKey:"^"},Digit7:{key:"7",shiftKey:"&"},Digit8:{key:"8",shiftKey:"*"},Digit9:{key:"9",shiftKey:"("},KeyA:{key:"a",shiftKey:"A"},KeyB:{key:"b",shiftKey:"B"},KeyC:{key:"c",shiftKey:"C"},KeyD:{key:"d",shiftKey:"D"},KeyE:{key:"e",shiftKey:"E"},KeyF:{key:"f",shiftKey:"F"},KeyG:{key:"g",shiftKey:"G"},KeyH:{key:"h",shiftKey:"H"},KeyI:{key:"i",shiftKey:"I"},KeyJ:{key:"j",shiftKey:"J"},KeyK:{key:"k",shiftKey:"K"},KeyL:{key:"l",shiftKey:"L"},KeyM:{key:"m",shiftKey:"M"},KeyN:{key:"n",shiftKey:"N"},KeyO:{key:"o",shiftKey:"O"},KeyP:{key:"p",shiftKey:"P"},KeyQ:{key:"q",shiftKey:"Q"},KeyR:{key:"r",shiftKey:"R"},KeyS:{key:"s",shiftKey:"S"},KeyT:{key:"t",shiftKey:"T"},KeyU:{key:"u",shiftKey:"U"},KeyV:{key:"v",shiftKey:"V"},KeyW:{key:"w",shiftKey:"W"},KeyX:{key:"x",shiftKey:"X"},KeyY:{key:"y",shiftKey:"Y"},KeyZ:{key:"z",shiftKey:"Z"},Numpad0:{key:"0"},Numpad1:{key:"1"},Numpad2:{key:"2"},Numpad3:{key:"3"},Numpad4:{key:"4"},Numpad5:{key:"5"},Numpad6:{key:"6"},Numpad7:{key:"7"},Numpad8:{key:"8"},Numpad9:{key:"9"},NumpadMultiply:{key:"*"},NumpadAdd:{key:"+"},NumpadComma:{key:","},NumpadSubtract:{key:"-"},NumpadDecimal:{key:"."},NumpadDivide:{key:"/"},Semicolon:{key:";",shiftKey:":"},Equal:{key:"=",shiftKey:"+"},Comma:{key:",",shiftKey:"<"},Minus:{key:"-",shiftKey:"_"},Period:{key:".",shiftKey:">"},Slash:{key:"/",shiftKey:"?"},Backquote:{key:"`",shiftKey:"~"},BracketLeft:{key:"[",shiftKey:"{"},Backslash:{key:"\\",shiftKey:"|"},BracketRight:{key:"]",shiftKey:"}"},Quote:{key:"'",shiftKey:'"'},IntlBackslash:{key:"\\",shiftKey:"|"}};c(v,"mac",{MetaLeft:{key:"Meta"},MetaRight:{key:"Meta"}});var y={Add:"+",Decimal:".",Divide:"/",Subtract:"-",Multiply:"*",Spacebar:" ",Esc:"Escape",Nonconvert:"NonConvert",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Menu:"ContextMenu",MediaNextTrack:"MediaTrackNext",MediaPreviousTrack:"MediaTrackPrevious",SelectMedia:"MediaSelect",HalfWidth:"Hankaku",FullWidth:"Zenkaku",RomanCharacters:"Romaji",Crsel:"CrSel",Exsel:"ExSel",Zoom:"ZoomToggle"},b=f(d,"code");try{var _=e&&"location"in new KeyboardEvent("")}catch(F){}function x(F){var S="keyCode"in F?F.keyCode:"which"in F?F.which:0,k=function(){if(_||"keyLocation"in F){var j=_?F.location:F.keyLocation;if(j&&S in h[j])return h[j][S]}return"keyIdentifier"in F&&F.keyIdentifier in m?m[F.keyIdentifier]:S in d?d[S]:null}();if(0)switch(F.keyIdentifier){case"U+0010":case"U+001C":case"U+001D":case"U+001E":case"U+001F":}if(!k)return null;var E=function(){var j=v[k.code];return j?F.shiftKey&&"shiftKey"in j?j.shiftKey:j.key:k.code}();return{code:k.code,key:E,location:k.location,keyCap:k.keyCap}}function P(F,S){if(F=String(F),!b.hasOwnProperty(F))return"Undefined";if(S&&String(S).toLowerCase()!=="en-us")throw Error("Unsupported locale");var k=b[F];return k.keyCap||k.code||"Undefined"}"KeyboardEvent"in t&&"defineProperty"in Object&&function(){function F(k,E,j){E in k||Object.defineProperty(k,E,j)}if(F(KeyboardEvent.prototype,"code",{get:function(){var E=x(this);return E?E.code:""}}),"key"in KeyboardEvent.prototype){var S=Object.getOwnPropertyDescriptor(KeyboardEvent.prototype,"key");Object.defineProperty(KeyboardEvent.prototype,"key",{get:function(){var E=S.get.call(this);return y.hasOwnProperty(E)?y[E]:E}})}F(KeyboardEvent.prototype,"key",{get:function(){var E=x(this);return E&&"key"in E?E.key:"Unidentified"}}),F(KeyboardEvent.prototype,"location",{get:function(){var E=x(this);return E&&"location"in E?E.location:r}}),F(KeyboardEvent.prototype,"locale",{get:function(){return""}})}(),"queryKeyCap"in t.KeyboardEvent||(t.KeyboardEvent.queryKeyCap=P),t.identifyKey=function(F){if(!("code"in F)){var S=x(F);F.code=S?S.code:"",F.key=S&&"key"in S?S.key:"Unidentified",F.location="location"in F?F.location:"keyLocation"in F?F.keyLocation:S&&"location"in S?S.location:r,F.locale=""}}})(self);var ZF=Element.prototype.scrollIntoView;Element.prototype.scrollIntoView=function(t){try{ZF.call(this,t)}catch(e){ZF.call(this,!1)}};Promise.allSettled||(Promise.allSettled=function(t){return Promise.all(t.map(function(e){return e.then(function(r){return{status:"fulfilled",value:r}}).catch(function(r){return{status:"rejected",reason:r}})}))});function z2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ex(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function H2(t,e,r){return e&&ex(t.prototype,e),r&&ex(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}window.IntersectionObserver||(window.IntersectionObserver=function(){function t(){z2(this,t)}return H2(t,[{key:"observe",value:function(){}},{key:"unobserve",value:function(){}},{key:"disconnect",value:function(){}}]),t}());function U2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function V2(t,e,r){return e&&tx(t.prototype,e),r&&tx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}window.ResizeObserver||(window.ResizeObserver=function(){function t(){U2(this,t)}return V2(t,[{key:"observe",value:function(){}},{key:"unobserve",value:function(){}},{key:"disconnect",value:function(){}}]),t}());APP.surveyStatuses=Object.freeze({NEW:"new",RUNNING:"running",STOPPED:"stopped"});APP.scaleTypes=Object.freeze({CHECKBOX:"checkbox",RADIOBUTTON:"radio",NUMERIC:"number",TEXT:"text",TEXT_BLOCK:"text-block",RANGE:"range",DATE:"date",DROPDOWN:"select",AUTOCOMPLETE:"autocomplete",SORTING:"sorting",HEATMAP:"heatmap",HEATMAP_REGIONS:"heatmap-regions",FILE:"file",VARIABLE:"variable",SIGNATURE:"signature",NONE:"none"});APP.respondTypes=Object.freeze({RADIO:"radio",CHECKBOX:"checkbox",NUMBER:"number",TEXT:"text",RANGE:"range",URL:"url",EMAIL:"email",PHONE:"phone",PASSWORD:"password",BUTTON:"button",COLOR:"color",DATE:"date",TIME:"time",REGEX:"regex"});APP.listDirections=Object.freeze({STATEMENTS:"statementLists",OPTIONS:"optionLists"});APP.requireTypes=Object.freeze({NONE:"none",STRICT:"strict",SOFT:"soft"});APP.itemSchemes=Object.freeze({LABEL:"label",LIGHT:"light",SIMPLE:"simple",RANK_ORDER:"rank-order",RTL_SIMPLE:"rtl-simple",ROW_SIMPLE:"row-simple",MATRIX:"matrix",BPL_MATRIX:"bpl-matrix",FORM:"form",SL_FORM:"sl-form",G_SCALE_SLIDER:"g-scale-slider",G_SCALE:"g-scale",REGION:"region"});APP.endTypes=Object.freeze({END:"end",URL:"url",RESTART:"restart",BUTTON:"button",PAGE:"page"});APP.restoredTypes=Object.freeze({CONTINUE:"continue",RESTORE:"restore",END:"end"});APP.productTypes=Object.freeze({FREE:"free",BUSINESS:"business",ACADEMIC:"academic"});APP.permitTypes=Object.freeze({SURVEYS_EDIT:"surveys-edit",SURVEYS_COPY:"surveys-copy",LAYOUT_EDIT:"layout-edit",SURVEYS_TRANSLATE:"surveys-translate",DISTRIBUTE_OPTIONS:"distribute-options",DISTRIBUTE_SURVEYS:"distribute-surveys",SURVEYS_ACTIVATE:"surveys-activate",DISTRIBUTE_EMAILS:"distribute-emails",REPORTS_VIEW:"reports-view",REPORTS_EDIT:"reports-edit",RESULTS_EXPORT:"results-export",RESULTS_PRIVATE:"results-private"});APP.tickedTypes=Object.freeze({NEVER:"never",DAYS:"days",DATE:"date"});APP.flags=Object.freeze(["gray-bullet.svg","abkhazia.svg","afghanistan.svg","aland-islands.svg","albania.svg","algeria.svg","american-samoa.svg","andorra.svg","angola.svg","anguilla.svg","antigua-and-barbuda.svg","arab-league.svg","argentina.svg","armenia.svg","aruba.svg","australia.svg","austria.svg","azerbaijan.svg","azores-islands.svg","bahamas.svg","bahrain.svg","balearic-islands.svg","bangladesh.svg","barbados.svg","basque-country.svg","belarus.svg","belgium.svg","belize.svg","benin.svg","bermuda.svg","bhutan-1.svg","bhutan.svg","bolivia.svg","bonaire.svg","bosnia-and-herzegovina.svg","botswana.svg","brazil.svg","british-columbia.svg","british-indian-ocean-territory.svg","british-virgin-islands.svg","brunei.svg","bulgaria.svg","burkina-faso.svg","burundi.svg","cambodia.svg","cameroon.svg","canada.svg","canary-islands.svg","cape-verde.svg","cayman-islands.svg","central-african-republic.svg","ceuta.svg","chad.svg","chile.svg","china.svg","christmas-island.svg","cocos-island.svg","colombia.svg","comoros.svg","cook-islands.svg","corsica.svg","costa-rica.svg","croatia.svg","cuba.svg","curacao.svg","cyprus.svg","czech-republic.svg","democratic-republic-of-congo.svg","denmark.svg","djibouti.svg","dominica.svg","dominican-republic.svg","east-timor.svg","ecuador.svg","egypt.svg","england.svg","equatorial-guinea.svg","eritrea.svg","estonia.svg","ethiopia.svg","european-union.svg","falkland-islands.svg","faroe-islands.svg","fiji.svg","finland.svg","france.svg","french-polynesia.svg","gabon.svg","galapagos-islands.svg","gambia.svg","georgia.svg","germany.svg","ghana.svg","gibraltar.svg","greece.svg","greenland.svg","grenada.svg","guam.svg","guatemala.svg","guernsey.svg","guinea-bissau.svg","guinea.svg","guyana.svg","haiti.svg","hawaii.svg","honduras.svg","hong-kong.svg","hungary.svg","iceland.svg","india.svg","indonesia.svg","iran.svg","iraq.svg","ireland.svg","isle-of-man.svg","israel.svg","italy.svg","ivory-coast.svg","jamaica.svg","japan.svg","jersey.svg","jordan.svg","kazakhstan.svg","kenya.svg","kiribati.svg","kosovo.svg","kuwait.svg","kyrgyzstan.svg","laos.svg","latvia.svg","lebanon.svg","lesotho.svg","liberia.svg","libya.svg","liechtenstein.svg","lithuania.svg","luxembourg.svg","macao.svg","madagascar.svg","madeira.svg","malawi.svg","malaysia.svg","maldives.svg","mali.svg","malta.svg","marshall-island.svg","martinique.svg","mauritania.svg","mauritius.svg","melilla.svg","mexico.svg","micronesia.svg","moldova.svg","monaco.svg","mongolia.svg","montenegro.svg","montserrat.svg","morocco.svg","mozambique.svg","myanmar.svg","namibia.svg","nato.svg","nauru.svg","nepal.svg","netherlands.svg","new-zealand.svg","nicaragua.svg","niger.svg","nigeria.svg","niue.svg","norfolk-island.svg","north-korea.svg","northen-cyprus.svg","northern-marianas-islands.svg","norway.svg","oman.svg","orkney-islands.svg","ossetia.svg","pakistan.svg","palau.svg","palestine.svg","panama.svg","papua-new-guinea.svg","paraguay.svg","peru.svg","philippines.svg","pitcairn-islands.svg","portugal.svg","puerto-rico.svg","qatar.svg","rapa-nui.svg","republic-of-macedonia.svg","republic-of-poland.svg","republic-of-the-congo.svg","romania.svg","russia.svg","rwanda.svg","saba-island.svg","saint-kitts-and-nevis.svg","salvador.svg","samoa.svg","san-marino.svg","sao-tome-and-principe.svg","sardinia.svg","saudi-arabia.svg","scotland.svg","senegal.svg","serbia.svg","seychelles.svg","sierra-leone.svg","singapore.svg","sint-eustatius.svg","sint-maarten.svg","slovakia.svg","slovenia.svg","solomon-islands.svg","somalia.svg","somaliland.svg","south-africa.svg","south-korea.svg","south-sudan.svg","spain.svg","sri-lanka.svg","st-barts.svg","st-lucia.svg","st-vincent-and-the-grenadines.svg","sudan.svg","suriname.svg","swaziland.svg","sweden.svg","switzerland.svg","syria.svg","taiwan.svg","tajikistan.svg","tanzania.svg","thailand.svg","tibet.svg","togo.svg","tokelau.svg","tonga.svg","transnistria.svg","trinidad-and-tobago.svg","tunisia.svg","turkey.svg","turkmenistan.svg","turks-and-caicos.svg","tuvalu.svg","uganda.svg","ukraine.svg","united-arab-emirates.svg","united-kingdom.svg","united-nations.svg","united-states-of-america.svg","uruguay.svg","uzbekistn.svg","vanuatu.svg","vatican-city.svg","venezuela.svg","vietnam.svg","virgin-islands.svg","wales.svg","western-sahara.svg","yemen.svg","zambia.svg","zimbabwe.svg"]);APP.validatorKeys=["summary-error","validator-is-required","validator-min-choice","validator-max-choice","validator-text-required","validator-text-unselected","validator-text-min","validator-text-max","validator-number-format","validator-number-min","validator-number-max","validator-number-decimal","validator-password-length","validator-date-format","validator-date-min","validator-date-max","validator-url-format","validator-email-format","validator-custom-format","validator-condition-invalid-sum","validator-constant-sum-min","validator-constant-sum-max","validator-upload-size-max","validator-upload-files-min","validator-upload-files-max","validator-upload-format-custom","validator-upload-failed"];APP.servicePageKeys=["end-message","inactive-survey","already-completed","enter-password","password-field","restart-message","access-denied","email-subject:double-opt-in-request","email-template:double-opt-in-request","double-opt-in-success-message","quota-screenout-message","quota-full-message","unsubscribe-message","unsubscribe-confirm-message"];APP.surveyButtonKeys=["button-next","button-end","button-back","button-authorized","button-restart","button-unsubscribe"];APP.surveyControlKeys=["characters-entered","characters-left","not-enough-characters","too-many-characters"];APP.dateKeys=["date-format","date-placeholder"];APP.fileUploadKeys=["dropzone-text"];function Wn(t){return K2(t)||$2(t)||G2(t)||W2()}function W2(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function G2(t,e){if(!!t){if(typeof t=="string")return ad(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ad(t,e)}}function $2(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function K2(t){if(Array.isArray(t))return ad(t)}function ad(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}APP.systemKeys=[].concat(Wn(APP.surveyButtonKeys),Wn(APP.surveyControlKeys),Wn(APP.fileUploadKeys),Wn(APP.dateKeys),Wn(APP.validatorKeys),Wn(APP.servicePageKeys));function Y2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function X2(t,e,r){return e&&rx(t.prototype,e),r&&rx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Q2(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gn=function(){function t(){Y2(this,t),Q2(this,"_handlerMap",{})}return X2(t,[{key:"on",value:function(r,n){var i=this._handlerMap[r];i||(i=[],this._handlerMap[r]=i),i.push(n)}},{key:"off",value:function(r,n){var i=this._handlerMap[r];if(i){var o=i.indexOf(n);o!==-1&&i.splice(o,1)}}},{key:"emit",value:function(r,n){var i=this._handlerMap[r];i&&i.forEach(function(o){o(n)})}}]),t}();function J2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Z2(t,e,r){return e&&nx(t.prototype,e),r&&nx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ix(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ej=function(){function t(){J2(this,t),ix(this,"registry",new Map),ix(this,"metaTypeByClass",new Map)}return Z2(t,[{key:"register",value:function(r){var n=r.subType||r.metaType;if(this.registry.has(n))throw"Meta: '".concat(n,"' already registered");this.registry.set(n,r),this.metaTypeByClass.set(r.class,r.metaType),r.subType||(APP.metaTypes=APP.metaTypes||{},APP.metaTypes[r.name]=n)}},{key:"get",value:function(r,n){var i=this.registry.get(r);return i&&i.checkSubType&&(i=this.registry.get(n)),i}},{key:"getMetaType",value:function(r){return this.metaTypeByClass.get(r)}}]),t}(),A=new ej;function tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ox(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function rj(t,e,r){return e&&ox(t.prototype,e),r&&ox(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function nj(t){return sj(t)||aj(t)||oj(t)||ij()}function ij(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oj(t,e){if(!!t){if(typeof t=="string")return sd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sd(t,e)}}function aj(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sj(t){if(Array.isArray(t))return sd(t)}function sd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var lj=nj("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"),H=function(){function t(){tj(this,t)}return rj(t,null,[{key:"generate",value:function(){var r=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(36));return lj.map(function(n,i){if(n!=="x"&&n!=="y")return n;var o=r[i]%16||0,a=n==="x"?o:o&&3||8;return a.toString(16)}).join("")}},{key:"ZERO",get:function(){return"00000000-0000-0000-0000-000000000000"}}]),t}();function ax(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function sx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ax(Object(r),!0).forEach(function(n){gt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ax(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function jl(t){return jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(t)}function uj(t,e){return dj(t)||pj(t,e)||fj(t,e)||cj()}function cj(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fj(t,e){if(!!t){if(typeof t=="string")return lx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lx(t,e)}}function lx(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pj(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function dj(t){if(Array.isArray(t))return t}function ux(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function kr(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){ux(o,n,i,a,s,"next",l)}function s(l){ux(o,n,i,a,s,"throw",l)}a(void 0)})}}function hj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mj(t,e,r){return e&&cx(t.prototype,e),r&&cx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ld(t,e)}function ld(t,e){return ld=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ld(t,e)}function vj(t){var e=bj();return function(){var n=Bl(t),i;if(e){var o=Bl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gj(this,i)}}function gj(t,e){if(e&&(jl(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xe(t)}function xe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Bl(t){return Bl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(t)}function $n(t,e,r){_j(t,e),e.set(t,r)}function _j(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _e(t,e){var r=fx(t,e,"get");return wj(t,r)}function wj(t,e){return e.get?e.get.call(t):e.value}function ud(t,e,r){var n=fx(t,e,"set");return Fj(t,n,r),r}function fx(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Fj(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var cd=new WeakMap,ta=new WeakMap,ra=new WeakMap,Ml=new WeakMap,Ll=new WeakMap,Nl=new WeakMap,D=function(t){yj(r,t);var e=vj(r);function r(n){var i;return hj(this,r),i=e.call(this),gt(xe(i),"id",""),gt(xe(i),"metaType",""),gt(xe(i),"index",0),gt(xe(i),"virtual",!1),gt(xe(i),"new",!0),gt(xe(i),"saving",!1),gt(xe(i),"parentID",""),gt(xe(i),"saveID",""),$n(xe(i),cd,{writable:!0,value:!1}),$n(xe(i),ta,{writable:!0,value:void 0}),$n(xe(i),ra,{writable:!0,value:new Set}),$n(xe(i),Ml,{writable:!0,value:new Set}),$n(xe(i),Ll,{writable:!0,value:new Set}),$n(xe(i),Nl,{writable:!0,value:new Set}),i.id=n||H.generate(),i.metaType=A.getMetaType(i.constructor),i}return mj(r,[{key:"focused",get:function(){return _e(this,cd)},set:function(i){if(ud(this,cd,i),!i){this.onBlur&&this.onBlur(),r.focusedObjects.delete(this.metaType);return}r.focusingObject||(r.focusingObject=this);var o=DataStorage.cache.get(this.parentID);o&&(o.focused=!0,o.notify()),this.content&&r.focusingObject===this&&!this.isDeleted&&this.content.forEach(function(s){s.focused&&(s.focused=!1,s.notify())});var a=r.focusedObjects.get(this.metaType);a&&a.id!==this.id&&DataFlow.isRegistered(a)&&(a.focused=!1,a.notify(),a.content&&a.content.forEach(function(s){s.focused&&(s.focused=!1,s.notify())})),r.focusedObjects.set(this.metaType,this),r.focusingObject===this&&(r.focusingObject=null)}},{key:"getCachedParent",value:function(){return DataStorage.cache.get(this.parentID)}},{key:"getParent",value:function(){var n=kr(regeneratorRuntime.mark(function o(){var a,s,l=arguments;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(a=l.length>0&&l[0]!==void 0?l[0]:!1,this.parentID){c.next=5;break}if(!(a&&this.virtualParent)){c.next=4;break}return c.abrupt("return",this.virtualParent);case 4:return c.abrupt("return",null);case 5:return s=A.get(this.metaType,this.type),c.abrupt("return",DataStorage.get(this.parentID,s.parentMetaType));case 7:case"end":return c.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"register",value:function(){DataFlow.register(this),this.virtual||DataStorage.cache.set(this.id,this)}},{key:"save",value:function(){var n=kr(regeneratorRuntime.mark(function o(){var a,s,l,u,c,f,p,d,m,h,v,y,b,_,x,P=arguments;return regeneratorRuntime.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(a=P.length>0&&P[0]!==void 0?P[0]:{},s=a.silent,l=s===void 0?!1:s,u=a.noUpdate,c=u===void 0?!1:u,f=a.event,p=f===void 0?{}:f,!l&&!c&&this.update(),!this.virtual){S.next=4;break}return S.abrupt("return");case 4:return d=function(){var k=kr(regeneratorRuntime.mark(function E(j){var L;return regeneratorRuntime.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(![APP.metaTypes.SURVEY,APP.metaTypes.PUBLICATION,APP.metaTypes.REPORT,APP.metaTypes.TRANSLATION_SET,APP.metaTypes.RESPONDENT].includes(j.metaType)){de.next=2;break}return de.abrupt("return",j);case 2:return de.next=4,j.getParent();case 4:if(L=de.sent,L){de.next=7;break}return de.abrupt("return",j);case 7:return de.abrupt("return",d(L));case 8:case"end":return de.stop()}},E)}));return function(j){return k.apply(this,arguments)}}(),m=new Set,h=function k(E){m.add(E),E.isCollection&&E.content&&E.content.forEach(k),E.metaType===APP.metaTypes.QUESTION&&E.statementLists&&E.optionLists&&(E.statementLists.forEach(k),E.optionLists.forEach(k))},S.next=9,d(this);case 9:if(v=S.sent,!v.isDeleted){S.next=12;break}return S.abrupt("return");case 12:return h(v),y=function(){m.forEach(function(E){E.saving=!0;var j=DataFlow.states.get(E.id),L=p.diffs;L||(L=j?DataFlow.getDiffs(j,E):new Set),E.flushBeforeHanlders({diffs:L})})},b=function(){m.forEach(function(E){E.new=!1,E.saving=!1,E.flushAfterHandlers()})},v.metaType===APP.metaTypes.SURVEY&&v.update(),_=v.serialize(),_.metaType===APP.metaTypes.SURVEY&&(_.saveID=H.generate()),x=DataStorage.save(_,y,b),l||this.notify(p),S.abrupt("return",x);case 21:case"end":return S.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getDiff",value:function(i){if(this.new||!_e(this,ta))return ud(this,ta,i),i;var o=function(u,c){return u.find(function(f){return f.id===c})},a=function l(u,c){if(!c)return u;var f={};Object.entries(u).forEach(function(d){var m=uj(d,2),h=m[0],v=m[1];if(h==="id")f[h]=v;else if(v instanceof Array){if(c[h]===void 0){f[h]=v;return}var y=[];v[0]&&v[0].id&&v.forEach(function(_){var x=o(c[h],_.id),P=l(_,x);P&&y.push(P)}),c[h]&&c[h].forEach(function(_){var x=o(v,_.id);x||y.push({id:_.id,isDeleted:!0})}),y.length&&(f[h]=y)}else if(jl(v)==="object"&&v!==null){var b=l(v,c[h]);b&&(f[h]=b)}else c[h]!==v&&(f[h]=v)});var p=Object.keys(f);if(!(!p.length||p.length===1&&p[0]==="id"))return f},s=a(i,_e(this,ta));return ud(this,ta,i),s}},{key:"beforeNextSave",value:function(i){_e(this,ra).add(i)}},{key:"removeBeforeNextSave",value:function(i){_e(this,ra).delete(i)}},{key:"afterNextSave",value:function(i){_e(this,Ml).add(i)}},{key:"beforeSave",value:function(i){_e(this,Ll).add(i)}},{key:"removeBeforeSave",value:function(i){_e(this,Ll).delete(i)}},{key:"afterSave",value:function(i){_e(this,Nl).add(i)}},{key:"removeAfterSave",value:function(i){_e(this,Nl).delete(i)}},{key:"flushBeforeHanlders",value:function(i){_e(this,ra).forEach(function(o){o(i)}),_e(this,Ll).forEach(function(o){o(i)}),_e(this,ra).clear()}},{key:"flushAfterHandlers",value:function(i){_e(this,Ml).forEach(function(o){o(i)}),_e(this,Nl).forEach(function(o){o(i)}),_e(this,Ml).clear()}},{key:"waitSave",value:function(){var n=kr(regeneratorRuntime.mark(function o(){var a=this;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(u){a.afterNextSave(u)}));case 1:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"waitFinalSave",value:function(){var n=kr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,this.waitSave();case 2:return s.next=4,0;case 4:if(!this.isDirty()){s.next=6;break}return s.abrupt("return",this.waitFinalSave());case 6:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"isDirty",value:function(){return DataStorage.isObjectDirty(this)}},{key:"dispose",value:function(){DataFlow.delete(this),this.isDeleted=!0}},{key:"delete",value:function(){var n=kr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(this.dispose(),this.virtual){s.next=3;break}return s.abrupt("return",DataStorage.delete(this.id,this.metaType));case 3:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"merge",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!!i)for(var a in i)a!=="id"&&a!=="hub"&&a!=="parent"&&(!o||a in this)&&(this[a]=i[a])}},{key:"update",value:function(){}},{key:"upgrade",value:function(){var n=kr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:DataFlow.isRegistered(this)||(this.register(),this.focused&&(this.focused=!0),this.isDeleted=!1);case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"notify",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.isDeleted){var o=DataFlow.notify(this,i);if(this.metaType!==APP.metaTypes.MAILING){var a=DataStorage.cache.get(this.parentID)||this.virtualParent;a&&DataFlow.isRegistered(a)&&a.notify({source:i.source||this,diffs:o})}}}},{key:"copy",value:function(){console.warn("DataObject: 'copy' method should be implemented in child class")}},{key:"clone",value:function(){var i=new this.constructor(this,this.id);return i}},{key:"subscribe",value:function(i,o,a){if(typeof o!="function")throw"DataObject: handler is not provided as a second argument!";DataFlow.subscribe({id:this.id,metaType:a||this.metaType,context:i,handler:o})}},{key:"unsubscribe",value:function(i,o,a){DataFlow.unsubscribe(i,this.id,o,a)}},{key:"serialize",value:function(){var i=sx({},this);delete i.virtualParent,delete i.saving,delete i.hub;for(var o in i)i[o]instanceof Date?i[o]=i[o].toISOString():i[o]instanceof Array&&(i[o][0]&&i[o][0].serialize?i[o]=i[o].filter(function(a){return!a.virtual}).map(function(a){return a.serialize()}):i[o]=i[o].slice()),o.startsWith("_")&&(i[o.slice(1)]=i[o],delete i[o]);return i}}],[{key:"restore",value:function(i){if(!i)throw"DataObject.restore: data is null";var o=DataStorage.cache.get(i.id);if(o)return o.merge(r.restoreData(i)),o.upgrade&&o.upgrade(),o;var a=i.id,s=i.metaType,l=r._getClass(s,i.type);return i=r.restoreData(i),l?o=new l(i,a):(o=new r(a),o.merge(i,!1)),o.new=!1,o}},{key:"restoreData",value:function(i){i=sx({},i);var o=r._getClass(i.metaType,i.type);o&&o.hasOwnProperty("restoreData")&&(i=o.restoreData(i));var a=["creationDate","lastChangedDate","lastLoginDate","sentOn","paidTillDate","endDate","updateDate","linkExpiration","assignmentDate","expirationFromDate","expirationToDate"];return a.forEach(function(s){i[s]&&(i[s]=new Date(i[s]))}),i}},{key:"safeRestoreArray",value:function(i,o){var a=[];return i.forEach(function(s){try{a.push(o?o(s):r.restore(s))}catch(l){}}),a}},{key:"_getClass",value:function(i,o){var a=A.get(i,o);return a&&a.class}},{key:"merge",value:function(i,o){if(!!o)for(var a in o)a in i&&(i[a]=o[a])}}]),r}(Gn);D.focusedObjects=new Map;window.DataObject=D;function px(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function na(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){px(o,n,i,a,s,"next",l)}function s(l){px(o,n,i,a,s,"throw",l)}a(void 0)})}}function xj(t,e){return kj(t)||Sj(t,e)||Pj(t,e)||Oj()}function Oj(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Pj(t,e){if(!!t){if(typeof t=="string")return dx(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dx(t,e)}}function dx(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Sj(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function kj(t){if(Array.isArray(t))return t}function Ej(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Tj(t,e,r){return e&&hx(t.prototype,e),r&&hx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mx(t,e,r){Aj(t,e),e.set(t,r)}function Aj(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ql(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Er(t,e){var r=yx(t,e,"get");return Rj(t,r)}function Rj(t,e){return e.get?e.get.call(t):e.value}function Dj(t,e,r){var n=yx(t,e,"set");return Cj(t,n,r),r}function yx(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Cj(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var Tr=new WeakMap,fd=new WeakMap,Ij=function(){function t(){var e=this;Ej(this,t),ql(this,"cache",new Map),ql(this,"data",null),ql(this,"language",""),ql(this,"onLanguageChange",new Set),mx(this,Tr,{writable:!0,value:new Map}),mx(this,fd,{writable:!0,value:void 0});var r=localStorage.lang;(!r||!APP.languages.includes(r))&&(r=APP.lang),this.inited=new Promise(function(n){e.setLanguage(r),Dj(e,fd,n)})}return Tj(t,[{key:"get",value:function(r,n,i){APP.languages.includes(i)||(i=this.language);var o=this.data;if(i&&(o=this.cache.get(i)||this.data),!o)throw"L10n trying to get the key '".concat(r,"' before data fetch");var a=r.split("."),s=xj(a,2),l=s[0],u=s[1];if(!u)return o[l]||{};var c=o[l]&&o[l][u]||"";return n?this.patchText(c,n):c}},{key:"setLanguage",value:function(){var e=na(regeneratorRuntime.mark(function n(i){var o,a,s,l=arguments;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(o=l.length>1&&l[1]!==void 0?l[1]:{},a=o.silent,APP.languages.includes(i)){c.next=3;break}return c.abrupt("return");case 3:return window.IS_SURVEY_APP||(localStorage.lang=i),this.language=i,c.next=7,this.fetchLanguage(i);case 7:if(s=c.sent,this.language===i){c.next=10;break}return c.abrupt("return");case 10:if(i==="en"){c.next=14;break}return c.next=13,this.fillMissingKeys(s);case 13:s=c.sent;case 14:this.data=s,a||this.onLanguageChange.forEach(function(f){f()}),Er(this,fd).call(this);case 17:case"end":return c.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"fetchLanguage",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!APP.languages.includes(r))return Promise.resolve();if(!i&&this.cache.has(r))return this.cache.get(r);if(!i&&Er(this,Tr).has(r))return Er(this,Tr).get(r);var a=new Promise(function(){var s=na(regeneratorRuntime.mark(function l(u){var c,f;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,fetch("".concat(window.ROOT_PATH||"/","l10n/").concat(r,".json"));case 3:return f=d.sent,d.next=6,f.json();case 6:c=d.sent,d.next=18;break;case 9:if(d.prev=9,d.t0=d.catch(0),!(o<3)){d.next=15;break}setTimeout(na(regeneratorRuntime.mark(function m(){var h;return regeneratorRuntime.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return Er(n,Tr).delete(r),y.next=3,n.fetchLanguage(r,i,o+1);case 3:h=y.sent,u(h);case 5:case"end":return y.stop()}},m)})),(o+1)*2*1e3),d.next=17;break;case 15:throw Er(n,Tr).delete(r),"Failed to fetch ".concat(r,".json");case 17:return d.abrupt("return");case 18:n.cache.set(r,c),Er(n,Tr).delete(r),u(c);case 21:case"end":return d.stop()}},l,null,[[0,9]])}));return function(l){return s.apply(this,arguments)}}());return Er(this,Tr).set(r,a),a}},{key:"fetchAllLanguages",value:function(r){var n=this;return Promise.all(APP.languages.map(function(i){return n.fetchLanguage(i,r)}))}},{key:"fillMissingKeys",value:function(){var e=na(regeneratorRuntime.mark(function n(i){var o;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=JSON.parse(JSON.stringify(i)),s.next=3,this.fetchLanguage("en");case 3:return o=s.sent,Object.keys(o).forEach(function(l){i[l]||(i[l]={}),Object.keys(o[l]).forEach(function(u){i[l][u]||(APP.dev?i[l][u]="".concat(l,".").concat(u):i[l][u]=o[l][u])})}),s.abrupt("return",i);case 6:case"end":return s.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"check",value:function(){var e=na(regeneratorRuntime.mark(function n(){var i,o,a,s,l=arguments;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return i=l.length>0&&l[0]!==void 0?l[0]:this.language,c.next=3,this.fetchLanguage("en",!0);case 3:return o=c.sent,c.next=6,this.fetchLanguage(i,!0);case 6:a=c.sent,s={},Object.keys(o).forEach(function(f){if(!a[f]){s[f]="";return}Object.keys(o[f]).forEach(function(p){a[f][p]||(s[f]=s[f]||{},s[f][p]="")})}),Object.keys(s).length?(console.warn("The language '".concat(i,"' has some missing keys:")),console.info(s)):console.info("The language '".concat(i,"' is consistent with reference language 'en'"));case 10:case"end":return c.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"patchText",value:function(r,n){return r.replace(/\{([\w-]+)\}/g,function(i,o){return n[o]})}}]),t}(),w=new Ij;window.L10n=w;var ue=function(e,r,n){return e&&clearTimeout(e),setTimeout(n,r)};function pd(t){return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pd(t)}function jj(t){return Nj(t)||Lj(t)||Mj(t)||Bj()}function Bj(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mj(t,e){if(!!t){if(typeof t=="string")return dd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dd(t,e)}}function Lj(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nj(t){if(Array.isArray(t))return dd(t)}function dd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vx(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function hd(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){vx(o,n,i,a,s,"next",l)}function s(l){vx(o,n,i,a,s,"throw",l)}a(void 0)})}}function qj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zj(t,e,r){return e&&gx(t.prototype,e),r&&gx(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hj(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&md(t,e)}function md(t,e){return md=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},md(t,e)}function Uj(t){var e=Wj();return function(){var n=zl(t),i;if(e){var o=zl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Vj(this,i)}}function Vj(t,e){if(e&&(pd(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gt(t)}function Gt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wj(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function zl(t){return zl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(t)}function Ar(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bx=function(t){Hj(r,t);var e=Uj(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.cacheRequests,s=o.cacheResponse;return qj(this,r),i=e.call(this),Ar(Gt(i),"url",""),Ar(Gt(i),"unloaded",!1),Ar(Gt(i),"cacheRequests",!1),Ar(Gt(i),"cacheResponse",!1),Ar(Gt(i),"activeGetRequests",new Map),Ar(Gt(i),"responseCaches",new Map),Ar(Gt(i),"online",!0),i.url=n,i.cacheRequests=a,i.cacheResponse=s,window.addEventListener("unload",function(l){i.unloaded=!0}),i}return zj(r,[{key:"request",value:function(i,o,a,s){return this.fetch(o,{method:i,credentials:"include",referrerPolicy:"unsafe-url",headers:{"Content-Type":"application/json"},body:a?JSON.stringify(a):void 0,signal:s})}},{key:"fetch",value:function(n){function i(o,a){return n.apply(this,arguments)}return i.toString=function(){return n.toString()},i}(function(n,i){var o=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=function(){var c=hd(regeneratorRuntime.mark(function f(p){var d;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(o.online||(o.online=!0,o.emit("online")),p.status!==404){h.next=3;break}throw"404 "+n;case 3:if(!(!p||![200,401,403,400].includes(p.status))){h.next=6;break}return l(),h.abrupt("return");case 6:return h.next=8,p.json();case 8:if(d=h.sent,Object.assign(d||{},{response:p}),!(n!=="Account/Login"&&p.status===401)){h.next=14;break}return APP.isAuth=!1,Router.route("/login"),h.abrupt("return",d);case 14:return d.errors&&(console.error("API error: ".concat(i.method," /").concat(n)),d.errors.forEach(function(v){console.error("	",v)})),h.abrupt("return",d);case 16:case"end":return h.stop()}},f)}));return function(p){return c.apply(this,arguments)}}(),l=function(){if(!o.unloaded){var f="";navigator.onLine||(f+=w.get("logic.you-are-offline-api-message-details-text")),document.querySelector("#app-splash").hidden?o._alertDebouncer=ue(o._alertDebouncer,100,function(){alert(w.get("logic.error-connecting-server-api-message-error-text")+(f?"\n\n"+f:""))}):document.dispatchEvent(new CustomEvent("load-error")),console.error("API.".concat(i.method,"(").concat(n,")"),i)}},u=fetch(this.url+n,i);return u.then(s).catch(function(c){if(i.signal)return{aborted:!0};if(a){o.online&&(o.online=!1,o.emit("offline"),o._startInternetChecker());return}return console.warn("API resend:",n),new Promise(function(f,p){setTimeout(function(){o.fetch(n,i,!0).then(f,p)},5e3)})})})},{key:"login",value:function(){var n=hd(regeneratorRuntime.mark(function o(a,s){var l;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.request("POST","Account/Login",{grant_type:"password",email:a,password:s});case 2:if(l=c.sent,l.success){c.next=5;break}return c.abrupt("return",!1);case 5:return APP.isAuth=!0,DataStorage.clearCache(),User.emit("login"),c.abrupt("return",!0);case 9:case"end":return c.stop()}},o,this)}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"logout",value:function(){var n=hd(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:location.href=APP.apiUrl+"Account/Session/Logout?returnUrl="+location.origin+"/login",APP.isAuth=!1,User.init(),User.emit("logout");case 4:case"end":return s.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"get",value:function(i,o,a,s){var l=this;if(this.cacheRequests&&!o&&this.activeGetRequests.has(i))return Promise.resolve(this.activeGetRequests.get(i));if(a&&this.cacheResponse&&this.responseCaches.has(i))return Promise.resolve(this.responseCaches.get(i));var u=this.request("GET",i,o,s);return this.cacheRequests&&!o&&(u.then(function(){l.activeGetRequests.delete(i)}),this.activeGetRequests.set(i,u)),this.cacheResponse&&u.then(function(c){l.responseCaches.set(i,c)}),u}},{key:"post",value:function(i,o){return this.request("POST",i,o)}},{key:"put",value:function(i,o){return this.request("PUT",i,o)}},{key:"delete",value:function(i,o){return this.request("DELETE",i,o)}},{key:"upload",value:function(i){var o=new FormData;return jj(i).forEach(function(a){var s=a.id+(a.resourceType?"|"+a.resourceType:"");o.append(s,a)}),this.fetch("Resource/Resources/Uploads",{method:"POST",credentials:"include",body:o})}},{key:"submit",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"post",s=document.createElement("form");s.setAttribute("target","_self"),s.setAttribute("method",a),s.setAttribute("action",this.url+i);for(var l in o)if(o.hasOwnProperty(l)){var u=document.createElement("input");u.setAttribute("type","hidden"),u.setAttribute("name",l),u.setAttribute("value",o[l]),s.append(u)}document.body.append(s),s.submit()}},{key:"clearCache",value:function(){this.responseCaches.clear()}},{key:"_startInternetChecker",value:function(){var i=this;this.online||fetch("/version.txt").then(function(){i.online||(i.online=!0,i.emit("online"))}).catch(function(){setTimeout(function(){i._startInternetChecker()},5e3)})}}]),r}(Gn),z=new bx(APP.apiUrl),nt=new bx(APP.reportApiUrl,{cacheResponse:!0});window.API=z;function K(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function R(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function yd(t){return yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yd(t)}function I(t){R(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||yd(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function vd(t,e){R(2,arguments);var r=I(t).getTime(),n=K(e);return new Date(r+n)}function ia(t,e){R(2,arguments);var r=I(t),n=K(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function $t(t,e){R(2,arguments);var r=I(t),n=K(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var a=o.getDate();return i>=a?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function gd(t){return gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gd(t)}function bd(t){return R(1,arguments),t instanceof Date||gd(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Rr(t){if(R(1,arguments),!bd(t)&&typeof t!="number")return!1;var e=I(t);return!isNaN(Number(e))}function Hl(t){R(1,arguments);var e=I(t),r=e.getFullYear(),n=e.getMonth(),i=new Date(0);return i.setFullYear(r,n+1,0),i.setHours(0,0,0,0),i.getDate()}function oa(t){R(1,arguments);var e=I(t);return e.setDate(1),e.setHours(0,0,0,0),e}var Gj={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},$j=function(e,r,n){var i,o=Gj[e];return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},_x=$j;function he(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var Kj={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Yj={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Xj={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qj={date:he({formats:Kj,defaultWidth:"full"}),time:he({formats:Yj,defaultWidth:"full"}),dateTime:he({formats:Xj,defaultWidth:"full"})},wx=Qj;var Jj={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Zj=function(e,r,n,i){return Jj[e]},Fx=Zj;function te(t){return function(e,r){var n=r||{},i=n.context?String(n.context):"standalone",o;if(i==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=n.width?String(n.width):a;o=t.formattingValues[s]||t.formattingValues[a]}else{var l=t.defaultWidth,u=n.width?String(n.width):t.defaultWidth;o=t.values[u]||t.values[l]}var c=t.argumentCallback?t.argumentCallback(e):e;return o[c]}}var eB={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rB={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},nB={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},iB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},oB={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},aB=function(e,r){var n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},sB={ordinalNumber:aB,era:te({values:eB,defaultWidth:"wide"}),quarter:te({values:tB,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:te({values:rB,defaultWidth:"wide"}),day:te({values:nB,defaultWidth:"wide"}),dayPeriod:te({values:iB,defaultWidth:"wide",formattingValues:oB,defaultFormattingWidth:"wide"})},xx=sB;function re(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;var a=o[0],s=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?uB(s,function(f){return f.test(a)}):lB(s,function(f){return f.test(a)}),u;u=t.valueCallback?t.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u;var c=e.slice(a.length);return{value:u,rest:c}}}function lB(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function uB(t,e){for(var r=0;r<t.length;r++)if(e(t[r]))return r}function bt(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],o=e.match(t.parsePattern);if(!o)return null;var a=t.valueCallback?t.valueCallback(o[0]):o[0];a=r.valueCallback?r.valueCallback(a):a;var s=e.slice(i.length);return{value:a,rest:s}}}var cB=/^(\d+)(th|st|nd|rd)?/i,fB=/\d+/i,pB={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},dB={any:[/^b/i,/^(a|c)/i]},hB={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},mB={any:[/1/i,/2/i,/3/i,/4/i]},yB={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},vB={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},gB={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},bB={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},_B={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},wB={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FB={ordinalNumber:bt({matchPattern:cB,parsePattern:fB,valueCallback:function(e){return parseInt(e,10)}}),era:re({matchPatterns:pB,defaultMatchWidth:"wide",parsePatterns:dB,defaultParseWidth:"any"}),quarter:re({matchPatterns:hB,defaultMatchWidth:"wide",parsePatterns:mB,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:re({matchPatterns:yB,defaultMatchWidth:"wide",parsePatterns:vB,defaultParseWidth:"any"}),day:re({matchPatterns:gB,defaultMatchWidth:"wide",parsePatterns:bB,defaultParseWidth:"any"}),dayPeriod:re({matchPatterns:_B,defaultMatchWidth:"any",parsePatterns:wB,defaultParseWidth:"any"})},Ox=FB;var xB={code:"en-US",formatDistance:_x,formatLong:wx,formatRelative:Fx,localize:xx,match:Ox,options:{weekStartsOn:0,firstWeekContainsDate:1}},Dr=xB;function _d(t,e){R(2,arguments);var r=K(e);return vd(t,-r)}function wd(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");e=e||{};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function Px(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Sx(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function OB(t,e){var r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Px(t,e);var o;switch(n){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",Px(n,e)).replace("{{time}}",Sx(i,e))}var PB={p:Sx,P:OB},kx=PB;function Kn(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var SB=["D","DD"],kB=["YY","YYYY"];function Ex(t){return SB.indexOf(t)!==-1}function Tx(t){return kB.indexOf(t)!==-1}function Fd(t,e,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://git.io/fxCyr"))}function Ge(t,e){R(1,arguments);var r=e||{},n=r.locale,i=n&&n.options&&n.options.weekStartsOn,o=i==null?0:K(i),a=r.weekStartsOn==null?o:K(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=I(t),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function aa(t,e){R(1,arguments);var r=I(t),n=r.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=a==null?1:K(a),l=i.firstWeekContainsDate==null?s:K(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var c=Ge(u,e),f=new Date(0);f.setUTCFullYear(n,0,l),f.setUTCHours(0,0,0,0);var p=Ge(f,e);return r.getTime()>=c.getTime()?n+1:r.getTime()>=p.getTime()?n:n-1}function Kt(t){R(1,arguments);var e=1,r=I(t),n=r.getUTCDay(),i=(n<e?7:0)+n-e;return r.setUTCDate(r.getUTCDate()-i),r.setUTCHours(0,0,0,0),r}function sa(t){R(1,arguments);var e=I(t),r=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var i=Kt(n),o=new Date(0);o.setUTCFullYear(r,0,4),o.setUTCHours(0,0,0,0);var a=Kt(o);return e.getTime()>=i.getTime()?r+1:e.getTime()>=a.getTime()?r:r-1}function xd(t){R(1,arguments);var e=sa(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=Kt(r);return n}var EB=6048e5;function Od(t){R(1,arguments);var e=I(t),r=Kt(e).getTime()-xd(e).getTime();return Math.round(r/EB)+1}function Pd(t,e){R(1,arguments);var r=e||{},n=r.locale,i=n&&n.options&&n.options.firstWeekContainsDate,o=i==null?1:K(i),a=r.firstWeekContainsDate==null?o:K(r.firstWeekContainsDate),s=aa(t,e),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var u=Ge(l,e);return u}var TB=6048e5;function Sd(t,e){R(1,arguments);var r=I(t),n=Ge(r,e).getTime()-Pd(r,e).getTime();return Math.round(n/TB)+1}var AB=864e5;function kd(t){R(1,arguments);var e=I(t),r=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),i=r-n;return Math.floor(i/AB)+1}function U(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return r+n}var RB={y:function(e,r){var n=e.getUTCFullYear(),i=n>0?n:1-n;return U(r==="yy"?i%100:i,r.length)},M:function(e,r){var n=e.getUTCMonth();return r==="M"?String(n+1):U(n+1,2)},d:function(e,r){return U(e.getUTCDate(),r.length)},a:function(e,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,r){return U(e.getUTCHours()%12||12,r.length)},H:function(e,r){return U(e.getUTCHours(),r.length)},m:function(e,r){return U(e.getUTCMinutes(),r.length)},s:function(e,r){return U(e.getUTCSeconds(),r.length)},S:function(e,r){var n=r.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return U(o,r.length)}},_t=RB;var Yn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},DB={G:function(e,r,n){var i=e.getUTCFullYear()>0?1:0;switch(r){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});case"GGGG":default:return n.era(i,{width:"wide"})}},y:function(e,r,n){if(r==="yo"){var i=e.getUTCFullYear(),o=i>0?i:1-i;return n.ordinalNumber(o,{unit:"year"})}return _t.y(e,r)},Y:function(e,r,n,i){var o=aa(e,i),a=o>0?o:1-o;if(r==="YY"){var s=a%100;return U(s,2)}return r==="Yo"?n.ordinalNumber(a,{unit:"year"}):U(a,r.length)},R:function(e,r){var n=sa(e);return U(n,r.length)},u:function(e,r){var n=e.getUTCFullYear();return U(n,r.length)},Q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"Q":return String(i);case"QQ":return U(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,r,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(r){case"q":return String(i);case"qq":return U(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,r,n){var i=e.getUTCMonth();switch(r){case"M":case"MM":return _t.M(e,r);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,r,n){var i=e.getUTCMonth();switch(r){case"L":return String(i+1);case"LL":return U(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,r,n,i){var o=Sd(e,i);return r==="wo"?n.ordinalNumber(o,{unit:"week"}):U(o,r.length)},I:function(e,r,n){var i=Od(e);return r==="Io"?n.ordinalNumber(i,{unit:"week"}):U(i,r.length)},d:function(e,r,n){return r==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):_t.d(e,r)},D:function(e,r,n){var i=kd(e);return r==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):U(i,r.length)},E:function(e,r,n){var i=e.getUTCDay();switch(r){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});case"EEEE":default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,r,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"e":return String(a);case"ee":return U(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,r,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(r){case"c":return String(a);case"cc":return U(a,r.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,r,n){var i=e.getUTCDay(),o=i===0?7:i;switch(r){case"i":return String(o);case"ii":return U(o,r.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,r,n){var i=e.getUTCHours(),o=i/12>=1?"pm":"am";switch(r){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,r,n){var i=e.getUTCHours(),o;switch(i===12?o=Yn.noon:i===0?o=Yn.midnight:o=i/12>=1?"pm":"am",r){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,r,n){var i=e.getUTCHours(),o;switch(i>=17?o=Yn.evening:i>=12?o=Yn.afternoon:i>=4?o=Yn.morning:o=Yn.night,r){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,r,n){if(r==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return _t.h(e,r)},H:function(e,r,n){return r==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):_t.H(e,r)},K:function(e,r,n){var i=e.getUTCHours()%12;return r==="Ko"?n.ordinalNumber(i,{unit:"hour"}):U(i,r.length)},k:function(e,r,n){var i=e.getUTCHours();return i===0&&(i=24),r==="ko"?n.ordinalNumber(i,{unit:"hour"}):U(i,r.length)},m:function(e,r,n){return r==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):_t.m(e,r)},s:function(e,r,n){return r==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_t.s(e,r)},S:function(e,r){return _t.S(e,r)},X:function(e,r,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();if(a===0)return"Z";switch(r){case"X":return Rx(a);case"XXXX":case"XX":return Cr(a);case"XXXXX":case"XXX":default:return Cr(a,":")}},x:function(e,r,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(r){case"x":return Rx(a);case"xxxx":case"xx":return Cr(a);case"xxxxx":case"xxx":default:return Cr(a,":")}},O:function(e,r,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(r){case"O":case"OO":case"OOO":return"GMT"+Ax(a,":");case"OOOO":default:return"GMT"+Cr(a,":")}},z:function(e,r,n,i){var o=i._originalDate||e,a=o.getTimezoneOffset();switch(r){case"z":case"zz":case"zzz":return"GMT"+Ax(a,":");case"zzzz":default:return"GMT"+Cr(a,":")}},t:function(e,r,n,i){var o=i._originalDate||e,a=Math.floor(o.getTime()/1e3);return U(a,r.length)},T:function(e,r,n,i){var o=i._originalDate||e,a=o.getTime();return U(a,r.length)}};function Ax(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),o=n%60;if(o===0)return r+String(i);var a=e||"";return r+String(i)+a+U(o,2)}function Rx(t,e){if(t%60==0){var r=t>0?"-":"+";return r+U(Math.abs(t)/60,2)}return Cr(t,e)}function Cr(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),o=U(Math.floor(i/60),2),a=U(i%60,2);return n+o+r+a}var Dx=DB;var CB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,IB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,jB=/^'([^]*?)'?$/,BB=/''/g,MB=/[a-zA-Z]/;function Ed(t,e,r){R(2,arguments);var n=String(e),i=r||{},o=i.locale||Dr,a=o.options&&o.options.firstWeekContainsDate,s=a==null?1:K(a),l=i.firstWeekContainsDate==null?s:K(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=u==null?0:K(u),f=i.weekStartsOn==null?c:K(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var p=I(t);if(!Rr(p))throw new RangeError("Invalid time value");var d=Kn(p),m=_d(p,d),h={firstWeekContainsDate:l,weekStartsOn:f,locale:o,_originalDate:p},v=n.match(IB).map(function(y){var b=y[0];if(b==="p"||b==="P"){var _=kx[b];return _(y,o.formatLong,h)}return y}).join("").match(CB).map(function(y){if(y==="''")return"'";var b=y[0];if(b==="'")return LB(y);var _=Dx[b];if(_)return!i.useAdditionalWeekYearTokens&&Tx(y)&&Fd(y,e,t),!i.useAdditionalDayOfYearTokens&&Ex(y)&&Fd(y,e,t),_(m,y,o.localize,h);if(b.match(MB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+b+"`");return y}).join("");return v}function LB(t){return t.match(jB)[1].replace(BB,"'")}function Ir(t,e){R(2,arguments);var r=I(t),n=I(e),i=r.getTime()-n.getTime();return i<0?-1:i>0?1:i}function Td(t,e){R(2,arguments);var r=I(t),n=I(e),i=r.getFullYear()-n.getFullYear(),o=r.getMonth()-n.getMonth();return i*12+o}function Ad(t){R(1,arguments);var e=I(t);return e.setHours(23,59,59,999),e}function Rd(t){R(1,arguments);var e=I(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function Dd(t){R(1,arguments);var e=I(t);return Ad(e).getTime()===Rd(e).getTime()}function Cd(t,e){R(2,arguments);var r=I(t),n=I(e),i=Ir(r,n),o=Math.abs(Td(r,n)),a;if(o<1)a=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*o);var s=Ir(r,n)===-i;Dd(I(t))&&o===1&&Ir(t,n)===1&&(s=!1),a=i*(o-Number(s))}return a===0?0:a}function Id(t,e){return R(2,arguments),I(t).getTime()-I(e).getTime()}var Cx={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},NB="trunc";function Ix(t){return t?Cx[t]:Cx[NB]}function jd(t,e,r){R(2,arguments);var n=Id(t,e)/1e3;return Ix(r==null?void 0:r.roundingMethod)(n)}function Bd(t){return wd({},t)}var jx=1440,qB=2520,Md=43200,zB=86400;function Ld(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R(2,arguments);var n=r.locale||Dr;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var i=Ir(t,e);if(isNaN(i))throw new RangeError("Invalid time value");var o=Bd(r);o.addSuffix=Boolean(r.addSuffix),o.comparison=i;var a,s;i>0?(a=I(e),s=I(t)):(a=I(t),s=I(e));var l=jd(s,a),u=(Kn(s)-Kn(a))/1e3,c=Math.round((l-u)/60),f;if(c<2)return r.includeSeconds?l<5?n.formatDistance("lessThanXSeconds",5,o):l<10?n.formatDistance("lessThanXSeconds",10,o):l<20?n.formatDistance("lessThanXSeconds",20,o):l<40?n.formatDistance("halfAMinute",null,o):l<60?n.formatDistance("lessThanXMinutes",1,o):n.formatDistance("xMinutes",1,o):c===0?n.formatDistance("lessThanXMinutes",1,o):n.formatDistance("xMinutes",c,o);if(c<45)return n.formatDistance("xMinutes",c,o);if(c<90)return n.formatDistance("aboutXHours",1,o);if(c<jx){var p=Math.round(c/60);return n.formatDistance("aboutXHours",p,o)}else{if(c<qB)return n.formatDistance("xDays",1,o);if(c<Md){var d=Math.round(c/jx);return n.formatDistance("xDays",d,o)}else if(c<zB)return f=Math.round(c/Md),n.formatDistance("aboutXMonths",f,o)}if(f=Cd(s,a),f<12){var m=Math.round(c/Md);return n.formatDistance("xMonths",m,o)}else{var h=f%12,v=Math.floor(f/12);return h<3?n.formatDistance("aboutXYears",v,o):h<9?n.formatDistance("overXYears",v,o):n.formatDistance("almostXYears",v+1,o)}}function Nd(t,e){return R(1,arguments),Ld(t,Date.now(),e)}function qd(t,e){R(1,arguments);var r=t||{},n=I(r.start),i=I(r.end),o=i.getTime();if(!(n.getTime()<=o))throw new RangeError("Invalid interval");var a=[],s=n;s.setHours(0,0,0,0);var l=e&&"step"in e?Number(e.step):1;if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=o;)a.push(I(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function Ul(t,e){R(1,arguments);var r=e||{},n=r.locale,i=n&&n.options&&n.options.weekStartsOn,o=i==null?0:K(i),a=r.weekStartsOn==null?o:K(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=I(t),l=s.getDay(),u=(l<a?7:0)+l-a;return s.setDate(s.getDate()-u),s.setHours(0,0,0,0),s}function zd(t,e){R(1,arguments);var r=e||{},n=r.locale,i=n&&n.options&&n.options.weekStartsOn,o=i==null?0:K(i),a=r.weekStartsOn==null?o:K(r.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=I(t),l=s.getDay(),u=(l<a?-7:0)+6-(l-a);return s.setDate(s.getDate()+u),s.setHours(23,59,59,999),s}var Bx={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},HB=function(e,r,n){var i,o=n!=null&&n.addSuffix?Bx[e].withPreposition:Bx[e].standalone;return typeof o=="string"?i=o:r===1?i=o.one:i=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:"vor "+i:i},Mx=HB;var UB={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},VB={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},WB={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},GB={date:he({formats:UB,defaultWidth:"full"}),time:he({formats:VB,defaultWidth:"full"}),dateTime:he({formats:WB,defaultWidth:"full"})},Lx=GB;var $B={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},KB=function(e,r,n,i){return $B[e]},Nx=KB;var YB={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},XB={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Hd={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},QB={narrow:Hd.narrow,abbreviated:["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Hd.wide},JB={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},ZB={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},e5={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},t5=function(e){var r=Number(e);return r+"."},r5={ordinalNumber:t5,era:te({values:YB,defaultWidth:"wide"}),quarter:te({values:XB,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:te({values:Hd,formattingValues:QB,defaultWidth:"wide"}),day:te({values:JB,defaultWidth:"wide"}),dayPeriod:te({values:ZB,defaultWidth:"wide",formattingValues:e5,defaultFormattingWidth:"wide"})},qx=r5;var n5=/^(\d+)(\.)?/i,i5=/\d+/i,o5={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},a5={any:[/^v/i,/^n/i]},s5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},l5={any:[/1/i,/2/i,/3/i,/4/i]},u5={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},c5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},f5={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},p5={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},d5={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},h5={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},m5={ordinalNumber:bt({matchPattern:n5,parsePattern:i5,valueCallback:function(e){return parseInt(e)}}),era:re({matchPatterns:o5,defaultMatchWidth:"wide",parsePatterns:a5,defaultParseWidth:"any"}),quarter:re({matchPatterns:s5,defaultMatchWidth:"wide",parsePatterns:l5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:re({matchPatterns:u5,defaultMatchWidth:"wide",parsePatterns:c5,defaultParseWidth:"any"}),day:re({matchPatterns:f5,defaultMatchWidth:"wide",parsePatterns:p5,defaultParseWidth:"any"}),dayPeriod:re({matchPatterns:d5,defaultMatchWidth:"wide",parsePatterns:h5,defaultParseWidth:"any"})},zx=m5;var y5={code:"de",formatDistance:Mx,formatLong:Lx,formatRelative:Nx,localize:qx,match:zx,options:{weekStartsOn:1,firstWeekContainsDate:4}},Hx=y5;function la(t,e){if(t.one!==void 0&&e===1)return t.one;var r=e%10,n=e%100;return r===1&&n!==11?t.singularNominative.replace("{{count}}",e):r>=2&&r<=4&&(n<10||n>20)?t.singularGenitive.replace("{{count}}",e):t.pluralGenitive.replace("{{count}}",e)}function Oe(t){return function(e,r){return r.addSuffix?r.comparison>0?t.future?la(t.future,e):"\u0447\u0435\u0440\u0435\u0437 "+la(t.regular,e):t.past?la(t.past,e):la(t.regular,e)+" \u043D\u0430\u0437\u0430\u0434":la(t.regular,e)}}var v5={lessThanXSeconds:Oe({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),xSeconds:Oe({regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0430",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u0441\u0435\u043A\u0443\u043D\u0434"}}),halfAMinute:function(e,r){return r.addSuffix?r.comparison>0?"\u0447\u0435\u0440\u0435\u0437 \u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434":"\u043F\u043E\u043B\u043C\u0438\u043D\u0443\u0442\u044B"},lessThanXMinutes:Oe({regular:{one:"\u043C\u0435\u043D\u044C\u0448\u0435 \u043C\u0438\u043D\u0443\u0442\u044B",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435 {{count}} \u043C\u0438\u043D\u0443\u0442"},future:{one:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 \u043C\u0438\u043D\u0443\u0442\u0443",singularNominative:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u043C\u0435\u043D\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),xMinutes:Oe({regular:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0430",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442"},past:{singularNominative:"{{count}} \u043C\u0438\u043D\u0443\u0442\u0443 \u043D\u0430\u0437\u0430\u0434",singularGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442\u044B \u043D\u0430\u0437\u0430\u0434",pluralGenitive:"{{count}} \u043C\u0438\u043D\u0443\u0442 \u043D\u0430\u0437\u0430\u0434"},future:{singularNominative:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u0443",singularGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442\u044B",pluralGenitive:"\u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0438\u043D\u0443\u0442"}}),aboutXHours:Oe({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0447\u0430\u0441\u043E\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0447\u0430\u0441\u043E\u0432"}}),xHours:Oe({regular:{singularNominative:"{{count}} \u0447\u0430\u0441",singularGenitive:"{{count}} \u0447\u0430\u0441\u0430",pluralGenitive:"{{count}} \u0447\u0430\u0441\u043E\u0432"}}),xDays:Oe({regular:{singularNominative:"{{count}} \u0434\u0435\u043D\u044C",singularGenitive:"{{count}} \u0434\u043D\u044F",pluralGenitive:"{{count}} \u0434\u043D\u0435\u0439"}}),aboutXWeeks:Oe({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044E",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),xWeeks:Oe({regular:{singularNominative:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044F",singularGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u0438",pluralGenitive:"{{count}} \u043D\u0435\u0434\u0435\u043B\u044C"}}),aboutXMonths:Oe({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),xMonths:Oe({regular:{singularNominative:"{{count}} \u043C\u0435\u0441\u044F\u0446",singularGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0430",pluralGenitive:"{{count}} \u043C\u0435\u0441\u044F\u0446\u0435\u0432"}}),aboutXYears:Oe({regular:{singularNominative:"\u043E\u043A\u043E\u043B\u043E {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442",pluralGenitive:"\u043E\u043A\u043E\u043B\u043E {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u0440\u0438\u0431\u043B\u0438\u0437\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),xYears:Oe({regular:{singularNominative:"{{count}} \u0433\u043E\u0434",singularGenitive:"{{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"{{count}} \u043B\u0435\u0442"}}),overXYears:Oe({regular:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u0433\u043E\u0434\u0430",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u0431\u043E\u043B\u044C\u0448\u0435, \u0447\u0435\u043C \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}}),almostXYears:Oe({regular:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 {{count}} \u043B\u0435\u0442"},future:{singularNominative:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434",singularGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u0433\u043E\u0434\u0430",pluralGenitive:"\u043F\u043E\u0447\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 {{count}} \u043B\u0435\u0442"}})};function Ud(t,e,r){return r=r||{},v5[t](e,r)}var g5={full:"EEEE, d MMMM y '\u0433.'",long:"d MMMM y '\u0433.'",medium:"d MMM y '\u0433.'",short:"dd.MM.y"},b5={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},_5={any:"{{date}}, {{time}}"},w5={date:he({formats:g5,defaultWidth:"full"}),time:he({formats:b5,defaultWidth:"full"}),dateTime:he({formats:_5,defaultWidth:"any"})},Ux=w5;function Xn(t,e,r){R(2,arguments);var n=Ge(t,r),i=Ge(e,r);return n.getTime()===i.getTime()}var Vd=["\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0432\u0442\u043E\u0440\u043D\u0438\u043A","\u0441\u0440\u0435\u0434\u0443","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043F\u044F\u0442\u043D\u0438\u0446\u0443","\u0441\u0443\u0431\u0431\u043E\u0442\u0443"];function F5(t){var e=Vd[t];switch(t){case 0:return"'\u0432 \u043F\u0440\u043E\u0448\u043B\u043E\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u043F\u0440\u043E\u0448\u043B\u044B\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u043F\u0440\u043E\u0448\u043B\u0443\u044E "+e+" \u0432' p"}}function Vx(t){var e=Vd[t];return t===2?"'\u0432\u043E "+e+" \u0432' p":"'\u0432 "+e+" \u0432' p"}function x5(t){var e=Vd[t];switch(t){case 0:return"'\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0435\u0435 "+e+" \u0432' p";case 1:case 2:case 4:return"'\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 "+e+" \u0432' p";case 3:case 5:case 6:return"'\u0432 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0443\u044E "+e+" \u0432' p"}}var O5={lastWeek:function(e,r,n){var i=e.getUTCDay();return Xn(e,r,n)?Vx(i):F5(i)},yesterday:"'\u0432\u0447\u0435\u0440\u0430 \u0432' p",today:"'\u0441\u0435\u0433\u043E\u0434\u043D\u044F \u0432' p",tomorrow:"'\u0437\u0430\u0432\u0442\u0440\u0430 \u0432' p",nextWeek:function(e,r,n){var i=e.getUTCDay();return Xn(e,r,n)?Vx(i):x5(i)},other:"P"};function Wd(t,e,r,n){var i=O5[t];return typeof i=="function"?i(e,r,n):i}var P5={narrow:["\u0434\u043E \u043D.\u044D.","\u043D.\u044D."],abbreviated:["\u0434\u043E \u043D. \u044D.","\u043D. \u044D."],wide:["\u0434\u043E \u043D\u0430\u0448\u0435\u0439 \u044D\u0440\u044B","\u043D\u0430\u0448\u0435\u0439 \u044D\u0440\u044B"]},S5={narrow:["1","2","3","4"],abbreviated:["1-\u0439 \u043A\u0432.","2-\u0439 \u043A\u0432.","3-\u0439 \u043A\u0432.","4-\u0439 \u043A\u0432."],wide:["1-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","2-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","3-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","4-\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B"]},k5={narrow:["\u042F","\u0424","\u041C","\u0410","\u041C","\u0418","\u0418","\u0410","\u0421","\u041E","\u041D","\u0414"],abbreviated:["\u044F\u043D\u0432.","\u0444\u0435\u0432.","\u043C\u0430\u0440\u0442","\u0430\u043F\u0440.","\u043C\u0430\u0439","\u0438\u044E\u043D\u044C","\u0438\u044E\u043B\u044C","\u0430\u0432\u0433.","\u0441\u0435\u043D\u0442.","\u043E\u043A\u0442.","\u043D\u043E\u044F\u0431.","\u0434\u0435\u043A."],wide:["\u044F\u043D\u0432\u0430\u0440\u044C","\u0444\u0435\u0432\u0440\u0430\u043B\u044C","\u043C\u0430\u0440\u0442","\u0430\u043F\u0440\u0435\u043B\u044C","\u043C\u0430\u0439","\u0438\u044E\u043D\u044C","\u0438\u044E\u043B\u044C","\u0430\u0432\u0433\u0443\u0441\u0442","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u043E\u043A\u0442\u044F\u0431\u0440\u044C","\u043D\u043E\u044F\u0431\u0440\u044C","\u0434\u0435\u043A\u0430\u0431\u0440\u044C"]},E5={narrow:["\u042F","\u0424","\u041C","\u0410","\u041C","\u0418","\u0418","\u0410","\u0421","\u041E","\u041D","\u0414"],abbreviated:["\u044F\u043D\u0432.","\u0444\u0435\u0432.","\u043C\u0430\u0440.","\u0430\u043F\u0440.","\u043C\u0430\u044F","\u0438\u044E\u043D.","\u0438\u044E\u043B.","\u0430\u0432\u0433.","\u0441\u0435\u043D\u0442.","\u043E\u043A\u0442.","\u043D\u043E\u044F\u0431.","\u0434\u0435\u043A."],wide:["\u044F\u043D\u0432\u0430\u0440\u044F","\u0444\u0435\u0432\u0440\u0430\u043B\u044F","\u043C\u0430\u0440\u0442\u0430","\u0430\u043F\u0440\u0435\u043B\u044F","\u043C\u0430\u044F","\u0438\u044E\u043D\u044F","\u0438\u044E\u043B\u044F","\u0430\u0432\u0433\u0443\u0441\u0442\u0430","\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F","\u043E\u043A\u0442\u044F\u0431\u0440\u044F","\u043D\u043E\u044F\u0431\u0440\u044F","\u0434\u0435\u043A\u0430\u0431\u0440\u044F"]},T5={narrow:["\u0412","\u041F","\u0412","\u0421","\u0427","\u041F","\u0421"],short:["\u0432\u0441","\u043F\u043D","\u0432\u0442","\u0441\u0440","\u0447\u0442","\u043F\u0442","\u0441\u0431"],abbreviated:["\u0432\u0441\u043A","\u043F\u043D\u0434","\u0432\u0442\u0440","\u0441\u0440\u0434","\u0447\u0442\u0432","\u043F\u0442\u043D","\u0441\u0443\u0431"],wide:["\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0432\u0442\u043E\u0440\u043D\u0438\u043A","\u0441\u0440\u0435\u0434\u0430","\u0447\u0435\u0442\u0432\u0435\u0440\u0433","\u043F\u044F\u0442\u043D\u0438\u0446\u0430","\u0441\u0443\u0431\u0431\u043E\u0442\u0430"]},A5={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u044C"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u044C"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D\u043E\u0447\u044C",noon:"\u043F\u043E\u043B\u0434\u0435\u043D\u044C",morning:"\u0443\u0442\u0440\u043E",afternoon:"\u0434\u0435\u043D\u044C",evening:"\u0432\u0435\u0447\u0435\u0440",night:"\u043D\u043E\u0447\u044C"}},R5={narrow:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0438"},abbreviated:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D.",noon:"\u043F\u043E\u043B\u0434.",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447.",night:"\u043D\u043E\u0447\u0438"},wide:{am:"\u0414\u041F",pm:"\u041F\u041F",midnight:"\u043F\u043E\u043B\u043D\u043E\u0447\u044C",noon:"\u043F\u043E\u043B\u0434\u0435\u043D\u044C",morning:"\u0443\u0442\u0440\u0430",afternoon:"\u0434\u043D\u044F",evening:"\u0432\u0435\u0447\u0435\u0440\u0430",night:"\u043D\u043E\u0447\u0438"}};function D5(t,e){var r=e||{},n=String(r.unit),i;return n==="date"?i="-\u0435":n==="week"||n==="minute"||n==="second"?i="-\u044F":i="-\u0439",t+i}var C5={ordinalNumber:D5,era:te({values:P5,defaultWidth:"wide"}),quarter:te({values:S5,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:te({values:k5,defaultWidth:"wide",formattingValues:E5,defaultFormattingWidth:"wide"}),day:te({values:T5,defaultWidth:"wide"}),dayPeriod:te({values:A5,defaultWidth:"any",formattingValues:R5,defaultFormattingWidth:"wide"})},Wx=C5;var I5=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,j5=/\d+/i,B5={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},M5={any:[/^д/i,/^н/i]},L5={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},N5={any:[/1/i,/2/i,/3/i,/4/i]},q5={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},z5={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},H5={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},U5={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},V5={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},W5={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},G5={ordinalNumber:bt({matchPattern:I5,parsePattern:j5,valueCallback:function(e){return parseInt(e,10)}}),era:re({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),quarter:re({matchPatterns:L5,defaultMatchWidth:"wide",parsePatterns:N5,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:re({matchPatterns:q5,defaultMatchWidth:"wide",parsePatterns:z5,defaultParseWidth:"any"}),day:re({matchPatterns:H5,defaultMatchWidth:"wide",parsePatterns:U5,defaultParseWidth:"any"}),dayPeriod:re({matchPatterns:V5,defaultMatchWidth:"wide",parsePatterns:W5,defaultParseWidth:"any"})},Gx=G5;var $5={code:"ru",formatDistance:Ud,formatLong:Ux,formatRelative:Wd,localize:Wx,match:Gx,options:{weekStartsOn:1,firstWeekContainsDate:1}},$x=$5;var Vl={lessThanXSeconds:{one:"\u4E0D\u5230 1 \u79D2",other:"\u4E0D\u5230 {{count}} \u79D2"},xSeconds:{one:"1 \u79D2",other:"{{count}} \u79D2"},halfAMinute:"\u534A\u5206\u949F",lessThanXMinutes:{one:"\u4E0D\u5230 1 \u5206\u949F",other:"\u4E0D\u5230 {{count}} \u5206\u949F"},xMinutes:{one:"1 \u5206\u949F",other:"{{count}} \u5206\u949F"},xHours:{one:"1 \u5C0F\u65F6",other:"{{count}} \u5C0F\u65F6"},aboutXHours:{one:"\u5927\u7EA6 1 \u5C0F\u65F6",other:"\u5927\u7EA6 {{count}} \u5C0F\u65F6"},xDays:{one:"1 \u5929",other:"{{count}} \u5929"},aboutXWeeks:{one:"\u5927\u7EA6 1 \u4E2A\u661F\u671F",other:"\u5927\u7EA6 {{count}} \u4E2A\u661F\u671F"},xWeeks:{one:"1 \u4E2A\u661F\u671F",other:"{{count}} \u4E2A\u661F\u671F"},aboutXMonths:{one:"\u5927\u7EA6 1 \u4E2A\u6708",other:"\u5927\u7EA6 {{count}} \u4E2A\u6708"},xMonths:{one:"1 \u4E2A\u6708",other:"{{count}} \u4E2A\u6708"},aboutXYears:{one:"\u5927\u7EA6 1 \u5E74",other:"\u5927\u7EA6 {{count}} \u5E74"},xYears:{one:"1 \u5E74",other:"{{count}} \u5E74"},overXYears:{one:"\u8D85\u8FC7 1 \u5E74",other:"\u8D85\u8FC7 {{count}} \u5E74"},almostXYears:{one:"\u5C06\u8FD1 1 \u5E74",other:"\u5C06\u8FD1 {{count}} \u5E74"}};function Gd(t,e,r){r=r||{};var n;return typeof Vl[t]=="string"?n=Vl[t]:e===1?n=Vl[t].one:n=Vl[t].other.replace("{{count}}",e),r.addSuffix?r.comparison>0?n+"\u5185":n+"\u524D":n}var K5={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},Y5={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},X5={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Q5={date:he({formats:K5,defaultWidth:"full"}),time:he({formats:Y5,defaultWidth:"full"}),dateTime:he({formats:X5,defaultWidth:"full"})},Kx=Q5;function Yx(t,e,r,n){return Xn(t,e,r)?n:t.getTime()>e.getTime()?"'\u4E0B\u4E2A'"+n:"'\u4E0A\u4E2A'"+n}var J5={lastWeek:Yx,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:Yx,other:"PP p"};function $d(t,e,r,n){var i=J5[t];return typeof i=="function"?i(e,r,n,"eeee p"):i}var Z5={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},e3={narrow:["1","2","3","4"],abbreviated:["\u7B2C\u4E00\u5B63","\u7B2C\u4E8C\u5B63","\u7B2C\u4E09\u5B63","\u7B2C\u56DB\u5B63"],wide:["\u7B2C\u4E00\u5B63\u5EA6","\u7B2C\u4E8C\u5B63\u5EA6","\u7B2C\u4E09\u5B63\u5EA6","\u7B2C\u56DB\u5B63\u5EA6"]},t3={narrow:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],abbreviated:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],wide:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},r3={narrow:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],short:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],abbreviated:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],wide:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},n3={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}},i3={narrow:{am:"\u4E0A",pm:"\u4E0B",midnight:"\u51CC\u6668",noon:"\u5348",morning:"\u65E9",afternoon:"\u4E0B\u5348",evening:"\u665A",night:"\u591C"},abbreviated:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"},wide:{am:"\u4E0A\u5348",pm:"\u4E0B\u5348",midnight:"\u51CC\u6668",noon:"\u4E2D\u5348",morning:"\u65E9\u6668",afternoon:"\u4E2D\u5348",evening:"\u665A\u4E0A",night:"\u591C\u95F4"}};function o3(t,e){var r=Number(t),n=e||{},i=String(n.unit);switch(i){case"date":return r.toString()+"\u65E5";case"hour":return r.toString()+"\u65F6";case"minute":return r.toString()+"\u5206";case"second":return r.toString()+"\u79D2";default:return"\u7B2C "+r.toString()}}var a3={ordinalNumber:o3,era:te({values:Z5,defaultWidth:"wide"}),quarter:te({values:e3,defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:te({values:t3,defaultWidth:"wide"}),day:te({values:r3,defaultWidth:"wide"}),dayPeriod:te({values:n3,defaultWidth:"wide",formattingValues:i3,defaultFormattingWidth:"wide"})},Xx=a3;var s3=/^(第\s*)?\d+(日|时|分|秒)?/i,l3=/\d+/i,u3={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},c3={any:[/^(前)/i,/^(公元)/i]},f3={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},p3={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},d3={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},h3={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},m3={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},y3={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},v3={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},g3={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},b3={ordinalNumber:bt({matchPattern:s3,parsePattern:l3,valueCallback:function(e){return parseInt(e,10)}}),era:re({matchPatterns:u3,defaultMatchWidth:"wide",parsePatterns:c3,defaultParseWidth:"any"}),quarter:re({matchPatterns:f3,defaultMatchWidth:"wide",parsePatterns:p3,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:re({matchPatterns:d3,defaultMatchWidth:"wide",parsePatterns:h3,defaultParseWidth:"any"}),day:re({matchPatterns:m3,defaultMatchWidth:"wide",parsePatterns:y3,defaultParseWidth:"any"}),dayPeriod:re({matchPatterns:v3,defaultMatchWidth:"any",parsePatterns:g3,defaultParseWidth:"any"})},Qx=b3;var _3={code:"zh-CN",formatDistance:Gd,formatLong:Kx,formatRelative:$d,localize:Xx,match:Qx,options:{weekStartsOn:1,firstWeekContainsDate:4}},Jx=_3;function Zx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Wl(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zx(Object(r),!0).forEach(function(n){w3(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function w3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qn=function(){var e={en:Dr,de:Hx,ru:$x,zh:Jx};return e[w.language]},Le=function(e,r){return Ed(e,r,{locale:Qn()})},eO=function(e,r){return Nd(e,Wl(Wl({},r),{},{locale:Qn()}))},tO=function(e,r){return Ul(e,Wl(Wl({},r),{},{locale:Qn()}))};var rO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,r=new Date,n=qd({start:Ul(r,e&&{locale:Qn()}),end:zd(r,e&&{locale:Qn()})});return n.reduce(function(i,o){return i.push(Le(o,"EEEEEE")),i},[])},nO=function(){var e=Qn();return Array(12).fill(0).map(function(r,n){return e.localize.month(n)})};function Kd(t){return Kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kd(t)}function iO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function jr(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){iO(o,n,i,a,s,"next",l)}function s(l){iO(o,n,i,a,s,"throw",l)}a(void 0)})}}function F3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x3(t,e,r){return e&&oO(t.prototype,e),r&&oO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function O3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yd(t,e)}function Yd(t,e){return Yd=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yd(t,e)}function P3(t){var e=k3();return function(){var n=Gl(t),i;if(e){var o=Gl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return S3(this,i)}}function S3(t,e){if(e&&(Kd(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jn(t)}function Jn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function k3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Gl(t){return Gl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gl(t)}function ua(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var E3=function(t){O3(r,t);var e=P3(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return F3(this,r),n=e.call(this,o),ua(Jn(n),"accessionID",""),ua(Jn(n),"paidTillDate",new Date),ua(Jn(n),"endDate",new Date),ua(Jn(n),"brandingURL",""),ua(Jn(n),"isBranding",!1),n.merge(i,!1),n.register(),n}return x3(r,[{key:"paidTillDateFormat",get:function(){return Le(this.paidTillDate,"P")}},{key:"endDateFormat",get:function(){return Le(this.endDate,"P")}},{key:"getSurveys",value:function(){var n=jr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",nt.get("Subscription/Subscriptions/Widget/Surveys/"+this.id,void 0,!1));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getRespondents",value:function(){var n=jr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",nt.get("Subscription/Subscriptions/Widget/Respondents/"+this.id,void 0,!0));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getEmails",value:function(){var n=jr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",nt.get("Subscription/Subscriptions/Widget/Emails/"+this.id,void 0,!0));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getUsers",value:function(){var n=jr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",nt.get("Subscription/Subscriptions/Widget/Contributors/"+this.id,void 0,!0));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}],[{key:"fetch",value:function(){var n=jr(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.fetch("Subscription/Subscriptions/"+a));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"fetchAll",value:function(){var n=jr(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",DataStorage.fetch("Subscription/Subscriptions"));case 1:case"end":return s.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetchAllRunning",value:function(){var n=jr(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.fetch("Survey/Surveys/Subscription/Running/"+a));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(D);A.register({class:E3,name:"SUBSCRIPTION",metaType:"subscription",apiPath:"Subscription/Subscriptions/"});function Xd(t){return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xd(t)}function T3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function A3(t,e,r){return e&&aO(t.prototype,e),r&&aO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function R3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qd(t,e)}function Qd(t,e){return Qd=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qd(t,e)}function D3(t){var e=I3();return function(){var n=$l(t),i;if(e){var o=$l(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return C3(this,i)}}function C3(t,e){if(e&&(Xd(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jd(t)}function Jd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$l(t)}function sO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j3=function(t){R3(r,t);var e=D3(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return T3(this,r),n=e.call(this,o),sO(Jd(n),"permits",[]),sO(Jd(n),"surveyID",""),n.merge(i),n.register(),n}return A3(r,[{key:"hasPermit",value:function(i){var o=this.permits.find(function(a){return a.permitType===i});return!o||o.enabled}}],[{key:"restoreData",value:function(i){return i.permits&&(i.permits=i.permits.map(D.restore)),i}}]),r}(D);A.register({class:j3,name:"PERMISSION",metaType:"permission",apiPath:"Permission/Permissions/"});function Zd(t){return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(t)}function lO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function B3(t,e,r){return e&&lO(t.prototype,e),r&&lO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function M3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eh(t,e)}function eh(t,e){return eh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},eh(t,e)}function N3(t){var e=z3();return function(){var n=Kl(t),i;if(e){var o=Kl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return q3(this,i)}}function q3(t,e){if(e&&(Zd(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return th(t)}function th(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function z3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Kl(t){return Kl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Kl(t)}function uO(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var H3=function(t){L3(r,t);var e=N3(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return M3(this,r),n=e.call(this,o),uO(th(n),"enabled",!1),uO(th(n),"permitType",!1),n.merge(i),n.register(),n}return B3(r)}(D);A.register({class:H3,name:"PERMIT",metaType:"permit"});function rh(t){return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(t)}function cO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function U3(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){cO(o,n,i,a,s,"next",l)}function s(l){cO(o,n,i,a,s,"throw",l)}a(void 0)})}}function V3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W3(t,e,r){return e&&fO(t.prototype,e),r&&fO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function G3(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&nh(t,e)}function nh(t,e){return nh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},nh(t,e)}function $3(t){var e=Y3();return function(){var n=Yl(t),i;if(e){var o=Yl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return K3(this,i)}}function K3(t,e){if(e&&(rh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pO(t)}function pO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Y3(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Yl(t){return Yl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Yl(t)}function X3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ih=function(t){G3(r,t);var e=$3(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return V3(this,r),n=e.call(this,o),X3(pO(n),"permissions",[]),n.merge(i),n.register(),n}return W3(r,[{key:"hasPermission",value:function(i,o){var a=this.permissions.find(function(s){return s.surveyID===i});return a?a.hasPermit(o):!0}}],[{key:"fetch",value:function(){var n=U3(regeneratorRuntime.mark(function o(){var a;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,DataStorage.fetch("Permission/Permissions");case 2:return a=l.sent,l.abrupt("return",new r({permissions:a.map(D.restore)}));case 4:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()}]),r}(D);A.register({class:ih,name:"PERMISSIONS",metaType:"permissions"});function dO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function oh(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){dO(o,n,i,a,s,"next",l)}function s(l){dO(o,n,i,a,s,"throw",l)}a(void 0)})}}function Q3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function J3(t,e,r){return e&&hO(t.prototype,e),r&&hO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Z3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mO=function(){function t(){Q3(this,t),Z3(this,"step",null)}return J3(t,[{key:"start",value:function(){var e=oh(regeneratorRuntime.mark(function n(){var i=this,o;return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,z.post("Session/Sessions/Start",Router.getPath());case 2:o=s.sent,o&&o.success&&(Object.assign(this,o.data),Router.on("page-change",oh(regeneratorRuntime.mark(function l(){return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,i.navigate();case 2:case"end":return c.stop()}},l)}))));case 4:case"end":return s.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"navigate",value:function(){var e=oh(regeneratorRuntime.mark(function n(){var i;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,z.post("Session/Sessions/Navigate/"+this.id,Router.getPath());case 2:i=a.sent,i&&i.success&&(this.step=i.data);case 4:case"end":return a.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()}]),t}();function ah(t){return ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ah(t)}function yO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function sh(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){yO(o,n,i,a,s,"next",l)}function s(l){yO(o,n,i,a,s,"throw",l)}a(void 0)})}}function eM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tM(t,e,r){return e&&vO(t.prototype,e),r&&vO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lh(t,e)}function lh(t,e){return lh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},lh(t,e)}function nM(t){var e=aM();return function(){var n=Xl(t),i;if(e){var o=Xl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return iM(this,i)}}function iM(t,e){if(e&&(ah(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oM(t)}function oM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xl(t){return Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xl(t)}var sM=function(t){rM(r,t);var e=nM(r);function r(){var n;return eM(this,r),n=e.call(this),n.init(),n.id="user",n.metaType="user",n}return tM(r,[{key:"init",value:function(){this.email="",this.language="",this.firstName="",this.lastName="",this.emailConfirmed=!1,this.autoLogoutTimeout=0,this.country=APP.country,this.additional=!1,this.additionalCountry="",this.trackingCode="",this.templateID="",this.permissions=null,this.session=new mO,this.experrto=!1}},{key:"isAuthorized",get:function(){return!!this.email}},{key:"name",get:function(){return!this.firstName&&!this.lastName?this.email:this.firstName&&this.lastName?this.firstName+" "+this.lastName:this.firstName||this.lastName}},{key:"abbreviation",get:function(){return!this.firstName&&!this.lastName?this.email.charAt(0).toUpperCase():this.firstName&&this.lastName?this.firstName.charAt(0).toUpperCase()+this.lastName.charAt(0).toUpperCase():this.firstName.charAt(0).toUpperCase()||this.lastName.charAt(0).toUpperCase()}},{key:"fetch",value:function(){var n=sh(regeneratorRuntime.mark(function o(){var a=this;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.email){l.next=2;break}return l.abrupt("return");case 2:if(!this._fetchRequest){l.next=4;break}return l.abrupt("return",this._fetchRequest);case 4:return this._fetchRequest=new Promise(function(){var u=sh(regeneratorRuntime.mark(function c(f){var p;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,z.get("Account/UserInfo");case 2:if(p=m.sent,!(p&&p.success)){m.next=12;break}return Object.assign(a,p.data),a.subscription=D.restore(p.data.subscription),a.fetchPermissions(),m.next=9,a.session.start();case 9:return m.next=11,w.setLanguage(a.language);case 11:window.dispatchEvent(new CustomEvent("user-fetch"));case 12:a._fetchRequest=null,f(),a.register();case 15:case"end":return m.stop()}},c)}));return function(c){return u.apply(this,arguments)}}()),l.abrupt("return",this._fetchRequest);case 6:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetchPermissions",value:function(){var n=sh(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,ih.fetch();case 2:this.permissions=s.sent;case 3:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"save",value:function(){return this.notify(),z.put("Account/UpdateUserInfo",this)}}]),r}(D),lM=new sM;window.User=lM;(function(){var t=function(r){if(r.ctrlKey){r.preventDefault();var n=function(l){return!l.tagName.includes("-")||l.tagName.includes("MARKUP")||l.tagName.includes("MKP")},i=function(l){var u={},c=Object.keys(l.constructor.properties||{});return c.forEach(function(f){u[f]=l[f]}),u},o=function(l){for(var u=l;u&&n(u);)u.parentElement?u=u.parentElement:u=u.parentNode&&u.parentNode.host;return u},a=o(r.composedPath()[0]);if(!a)return;console.group("Parent Components"),r.composedPath().filter(function(s){return s.shadowRoot&&s&&!n(s)}).forEach(function(s){console.groupCollapsed(s.localName),console.dirxml(s),console.info(i(s)),console.groupEnd()}),console.groupEnd(),console.groupEnd()}};window.addEventListener("contextmenu",t)})();function uM(t,e){return dM(t)||pM(t,e)||fM(t,e)||cM()}function cM(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fM(t,e){if(!!t){if(typeof t=="string")return gO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gO(t,e)}}function gO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pM(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function dM(t){if(Array.isArray(t))return t}var Zn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,r=function n(i){return!i||!i.shadowRoot||!i.shadowRoot.activeElement?i:n(i.shadowRoot.activeElement)};return r(e.activeElement)},bO=function(e){var r=Zn(e);return r?r.getRootNode():document},wt=function(e){var r=bO(e);return r.getSelection?r.getSelection():window.getSelection()},_O=function(e){var r=bO();return window.ShadowRoot&&r instanceof ShadowRoot&&!r.getSelection&&!navigator.userAgent.includes("Firefox")?getShadowRootRange(r):wt().getRangeAt(e)},Ft=null,wO=[0,0],FO=function(){document.body.scrollTop||document.body.scrollLeft?Ft=document.body:(document.documentElement.scrollTop||document.documentElement.scrollLeft)&&(Ft=document.documentElement),Ft&&(wO=[Ft.scrollLeft,Ft.scrollTop])},xO=function(){if(!!Ft){var e=wO,r=uM(e,2);Ft.scrollLeft=r[0],Ft.scrollTop=r[1],Ft=null}},ca=function(){return"ontouchstart"in window||navigator.msMaxTouchPoints},OO=function(){return ca()?"touchstart":"mousedown"},PO=function(){return ca()?"touchmove":"mousemove"},SO=function(){return ca()?"touchend":"mouseup"};var Ql=function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document,i;return n.shadowRoot&&n.shadowRoot.elementFromPoint?i=n.shadowRoot.elementFromPoint(e,r):n.elementFromPoint?i=n.elementFromPoint(e,r):i=document.elementFromPoint(e,r),!i||i===n?n:i.shadowRoot?t(e,r,i):i},Jl=new Map,kO=function t(e){e.propertyName==="height"&&(e.currentTarget.removeEventListener("transitionend",t),e.currentTarget.style.height="",Jl.get(e.currentTarget)(),Jl.delete(e.currentTarget))},uh=function(e,r){var n=Jl.get(e);return n&&n(),e.removeEventListener("transitionend",kO),new Promise(function(i){e.style.height=e.scrollHeight+"px";var o,a;o=requestAnimationFrame(function(){a=setTimeout(function(){e.style.height=r+"px",e.addEventListener("transitionend",kO)})}),Jl.set(e,function(){i(),cancelAnimationFrame(o),clearTimeout(a)})})},me=function(e){var r=function(){!window.WebComponents||window.WebComponents.ready?e():window.addEventListener("WebComponentsReady",e)};["complete","loaded","interactive"].includes(document.readyState)?r():document.addEventListener("DOMContentLoaded",r)};window.afterContentLoad=me;window.getComposedActiveElement=Zn;window.getComposedSelection=wt;function hM(t){return gM(t)||vM(t)||yM(t)||mM()}function mM(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function yM(t,e){if(!!t){if(typeof t=="string")return ch(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ch(t,e)}}function vM(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gM(t){if(Array.isArray(t))return ch(t)}function ch(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}window.Edit={_markAsInsertion:function(e){var r=wt();if(!(!r||!r.anchorNode)){var n;r.anchorNode.matches&&r.anchorNode.matches(e)?n=r.anchorNode:r.anchorNode.parentElement&&r.anchorNode.parentElement.matches(e)&&(n=r.anchorNode.parentElement),(e==="ol"||e==="ul")&&(n=r.anchorNode.parentElement&&r.anchorNode.parentElement.closest(e),n&&n.querySelectorAll("li").forEach(function(i){i.classList.add("qs-insertion")})),n&&n.classList.add("qs-insertion")}},getHTMLOfSelection:function(){var e,r=wt();if(r.rangeCount>0){e=r.getRangeAt(0);var n=e.cloneContents(),i=document.createElement("div");return i.append(n),i.innerHTML}else return""},getStringDiff:function(e,r){for(var n,i=0;i<r.length;i++)if(r[i]!==e[i]){n=i;break}for(var o,a=0;a<r.length;a++)if(r[r.length-1-a]!==e[e.length-1-a]){o=r.length-a;break}if(n==null||o==null)return[];var s=r.slice(0,n),l=r.slice(o);return[s,r.slice(n,o),l]},editable:function(e){e.contentEditable=!0,e.style.outline="none"},bold:function(){document.execCommand("bold"),Edit._markAsInsertion("b")},italic:function(){document.execCommand("italic"),Edit._markAsInsertion("i")},underline:function(){document.execCommand("underline"),Edit._markAsInsertion("u")},undo:function(){document.execCommand("undo")},redo:function(){document.execCommand("redo")},clear:function(){document.execCommand("formatBlock",!1,"div"),document.execCommand("removeFormat");var e=getSelection();if(!!e.rangeCount){var r=_O(0);if(!!r){var n=function(c){return c instanceof Element?c:c.parentElement},i=n(r.commonAncestorContainer),o=n(r.startContainer),a=n(r.endContainer),s=["div","br","img"],l=!1;hM(i.querySelectorAll("*")).forEach(function(u){u===o&&(l=!0),l&&(s.includes(u.localName)?u.style="":u.outerHTML=u.textContent),u===a&&(l=!1)})}}},link:function(){document.execCommand("createLink",!1,"https://"),Edit._markAsInsertion("a")},unlink:function(){document.execCommand("unlink")},color:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document;r=r||wt(),n.execCommand("styleWithCSS",!1,!0),n.execCommand("foreColor",!1,e),n.execCommand("styleWithCSS",!1,!1);var i=r.anchorNode;if(!!i){if(!r.containsNode(i)){var o=function s(l){if(l.nextSibling)return l.nextSibling;if(l.parentElement)return s(l.parentElement)};i=o(i)}if(!!i){i instanceof Element||(i=i.parentElement);var a=i.closest("[contenteditable]");!a||(a.querySelectorAll("font[color^=rgba]").forEach(function(s){s.color="",s.style.color=e}),Edit._markAsInsertion("font"))}}},backColor:function(e){document.execCommand("backColor",!1,e),Edit._markAsInsertion("span")},increase:function(){var e=document.queryCommandValue("fontSize")||3;e<7&&(e++,document.execCommand("fontSize",!1,e)),Edit._markAsInsertion("font")},decrease:function(){var e=document.queryCommandValue("fontSize")||3;e>1&&(e--,document.execCommand("fontSize",!1,e)),Edit._markAsInsertion("font")},indent:function(){document.execCommand("indent"),Edit._markAsInsertion("blockquote")},outdent:function(){document.execCommand("outdent"),Edit._markAsInsertion("blockquote")},listNum:function(){document.execCommand("insertOrderedList"),Edit._markAsInsertion("ol")},list:function(){document.execCommand("insertUnorderedList"),Edit._markAsInsertion("ul")},center:function(){document.execCommand("justifyCenter"),Edit._markAsInsertion("div")},left:function(){document.execCommand("justifyLeft"),Edit._markAsInsertion("div")},right:function(){document.execCommand("justifyRight"),Edit._markAsInsertion("div")},justify:function(){document.execCommand("justifyFull"),Edit._markAsInsertion("div")},selectAll:function(){document.execCommand("selectAll")},upper:function(){document.execCommand("superscript"),Edit._markAsInsertion("sup")},lower:function(){document.execCommand("subscript"),Edit._markAsInsertion("sub")},createTable:function(){document.execCommand("subscript")},image:function(e){document.execCommand("insertImage",!1,e),Edit._markAsInsertion("img")},tempDiv:document.createElement("div"),removeOverlay:function(e){return this.tempDiv.innerHTML=e||"",this.tempDiv.querySelectorAll(".qs-insertion-container > .overlay").forEach(function(r){r.remove()}),this.tempDiv.innerHTML},_picNumber:1,resetPicNumber:function(){this._picNumber=1},removeHTML:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.replaceImages,o=i===void 0?!1:i;if(this.tempDiv.innerHTML=e||"",o){var a={"smile-min":"\uD83D\uDE20","smile-low":"\uD83D\uDE41","smile-neutral":"\uD83D\uDE10","smile-high":"\uD83D\uDE42","smile-max":"\uD83D\uDE03"};this.tempDiv.querySelectorAll("emoji-ui").forEach(function(s){var l=s.getAttribute("pic");s.outerHTML=a[l]||""}),this.tempDiv.querySelectorAll("img").forEach(function(s){s.outerHTML=w.get("core.pic-n-replaced-image-placeholder-text",{n:r._picNumber}),r._picNumber++})}return this.tempDiv.querySelectorAll(".qs-insertion-container > .overlay").forEach(function(s){s.remove()}),this.tempDiv.textContent.replace(/ /g," ")},removeElement:function(e){var r=document.createRange();r.selectNode(e);var n=wt();n.removeAllRanges(),n.addRange(r),document.execCommand("delete",!1,null)},textEllipsis:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" \n",o=6,a=0,s=1,l="",u=(e+"").split(/\s+/);return u.some(function(c){if(a+=c.length*o+o,a>r)if(s<n)s++,a=c.length*o+o,l+=i+c;else{var f=(a-r)/o;return l+=" "+c.slice(0,-f)+"\u2026",!0}else l+=" "+c;return!1}),l.trim()},htmlEscape:function(e){return String(e).replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}};function fh(t){return fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fh(t)}function EO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bM(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?EO(Object(r),!0).forEach(function(n){_M(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):EO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _M(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function TO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function Zl(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){TO(o,n,i,a,s,"next",l)}function s(l){TO(o,n,i,a,s,"throw",l)}a(void 0)})}}function wM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function FM(t,e,r){return e&&AO(t.prototype,e),r&&AO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ei(){return typeof Reflect!="undefined"&&Reflect.get?ei=Reflect.get:ei=function(e,r,n){var i=xM(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ei.apply(this,arguments)}function xM(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Yt(t),t!==null););return t}function OM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ph(t,e)}function ph(t,e){return ph=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ph(t,e)}function PM(t){var e=kM();return function(){var n=Yt(t),i;if(e){var o=Yt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return SM(this,i)}}function SM(t,e){if(e&&(fh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Br(t)}function Br(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Yt(t)}function RO(t,e,r){EM(t,e),e.set(t,r)}function EM(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xt(t,e){var r=DO(t,e,"get");return TM(t,r)}function TM(t,e){return e.get?e.get.call(t):e.value}function eu(t,e,r){var n=DO(t,e,"set");return AM(t,n,r),r}function DO(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function AM(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}var fa=new WeakMap,xt=new WeakMap,Ee=function(t){OM(r,t);var e=PM(r);function r(n){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"someContent",a=arguments.length>2?arguments[2]:void 0;wM(this,r),i=e.call(this,a),RO(Br(i),fa,{writable:!0,value:void 0}),RO(Br(i),xt,{writable:!0,value:void 0}),n=n||{},eu(Br(i),fa,o);var s;return Object.defineProperty(Br(i),Xt(Br(i),fa),{enumerable:!0,get:function(){return s},set:function(u){u&&!Xt(this,xt)&&eu(this,xt,Promise.resolve()),s=u}}),i.content=n[o],i.content&&eu(Br(i),xt,Promise.resolve()),i.content&&i.content.sort&&i.sortByProp("index"),i}return FM(r,[{key:"content",get:function(){return this[Xt(this,fa)]},set:function(i){this[Xt(this,fa)]=i}},{key:"isCollection",get:function(){return!0}},{key:"fetchChildren",value:function(){var n=Zl(regeneratorRuntime.mark(function o(){var a=this,s,l,u,c,f,p,d=arguments;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s=d.length>0&&d[0]!==void 0?d[0]:!1,l=d.length>1&&d[1]!==void 0?d[1]:"",u={},h.next=5,Promise.race([Xt(this,xt),Promise.resolve(u)]);case 5:if(c=h.sent,f=c!==u,p=f&&!this.content,!(Xt(this,xt)&&!s&&!p)){h.next=10;break}return h.abrupt("return",Xt(this,xt));case 10:return eu(this,xt,new Promise(function(){var v=Zl(regeneratorRuntime.mark(function y(b){var _,x;return regeneratorRuntime.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return _=A.get(a.metaType).apiPath,F.next=3,DataStorage.fetch(_+a.id+(l?"/".concat(l):""),{raw:!0});case 3:x=F.sent,a.merge(D.restoreData(x)),a.content=a.content||[],a.update(),b();case 8:case"end":return F.stop()}},y)}));return function(y){return v.apply(this,arguments)}}())),h.abrupt("return",Xt(this,xt));case 12:case"end":return h.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"add",value:function(i,o){this.content||(this.content=[]);var a=this.content.find(function(s){return s.id===i.id});a||(o!=null&&o!==-1?(o=Math.min(o,this.content.length),this.content.splice(o,0,i)):this.content.push(i))}},{key:"remove",value:function(i){var o=this.content.findIndex(function(s){return s.id===i.id});if(o!==-1&&(delete i.parentID,delete i.virtualParent,i.isDeleted||i.notify(),this.content.splice(o,1),this.content=this.content.slice(),i.focused)){var a=this.content[Math.min(this.content.length-1,Math.max(0,o))];a?(a.focused=!0,a.notify()):i.focused=!1}}},{key:"update",value:function(){var i=this;if(!!this.content){if(this.virtual){this.content.forEach(function(o,a){o.virtualParent=i,o.index=a}),this.content=this.content.slice();return}this.content=this.content.filter(function(o){return o}),this.content.forEach(function(o,a){var s=o.parentID!==i.id||o.index!==a;o.parentID=i.id,o.index=a,s&&o.notify()}),this.content=this.content.slice()}}},{key:"copy",value:function(){var n=Zl(regeneratorRuntime.mark(function o(){var a,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return a=bM({},this),u.next=3,Promise.all(this.content.map(function(){var c=Zl(regeneratorRuntime.mark(function f(p){var d;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,p.copy();case 2:return d=h.sent,h.next=5,d.save();case 5:return h.abrupt("return",d.id);case 6:case"end":return h.stop()}},f)}));return function(f){return c.apply(this,arguments)}}()));case 3:return a.content=u.sent,s=new this.constructor(a),s.save(),u.abrupt("return",s);case 7:case"end":return u.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"moveUp",value:function(i){var o=this.content.findIndex(function(a){return a.id===i.id});this.remove(i),this.add(i,o-1)}},{key:"moveDown",value:function(i){var o=this.content.findIndex(function(a){return a.id===i.id});this.remove(i),this.add(i,o+1)}},{key:"sortByProp",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.content=this.content.sort(function(a,s){return a[i]===void 0?1:s[i]===void 0?-1:o?a[i]-s[i]:s[i]-a[i]})}},{key:"serialize",value:function(){var i=ei(Yt(r.prototype),"serialize",this).call(this);return delete i.virtualParent,i}},{key:"delete",value:function(){return this.content&&this.content.forEach(function(i){i.dispose(),delete i.parentID,delete i.virtualParent}),ei(Yt(r.prototype),"delete",this).call(this)}},{key:"dispose",value:function(){this.content&&this.content.forEach(function(i){i.dispose()}),ei(Yt(r.prototype),"dispose",this).call(this)}}]),r}(D);function CO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function RM(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?CO(Object(r),!0).forEach(function(n){da(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function tu(t){return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tu(t)}function IO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function DM(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){IO(o,n,i,a,s,"next",l)}function s(l){IO(o,n,i,a,s,"throw",l)}a(void 0)})}}function CM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function IM(t,e,r){return e&&jO(t.prototype,e),r&&jO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dh(t,e)}function dh(t,e){return dh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},dh(t,e)}function BM(t){var e=LM();return function(){var n=ru(t),i;if(e){var o=ru(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return MM(this,i)}}function MM(t,e){if(e&&(tu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pa(t)}function pa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ru(t){return ru=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ru(t)}function da(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var BO=function(t){jM(r,t);var e=BM(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return CM(this,r),n=e.call(this,i,"objects",o),da(pa(n),"name","UNNAMED FOLDER"),da(pa(n),"folderType",""),da(pa(n),"owner",User.id),da(pa(n),"system",!1),n.objects=n.objects||[],n.merge(i,!1),n.register(),n}return IM(r,[{key:"fetchChildren",value:function(){var n=DM(regeneratorRuntime.mark(function o(){var a=this;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(tu(this.objects[0])!=="object"){l.next=2;break}return l.abrupt("return");case 2:return l.next=4,Promise.all(this.objects.map(function(u){return a.folderType==="survey"?Survey.fetch(u):Resource.fetch(u)}));case 4:this.objects=l.sent,this.update();case 6:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"serialize",value:function(){var i=RM({},this);return delete i.objects,delete i.virtualParent,i}}]),r}(Ee);A.register({class:BO,name:"FOLDER",metaType:"folder",apiPath:"Folder/Folders/"});window.Folder=BO;function hh(t){return hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hh(t)}function MO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function NM(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){MO(o,n,i,a,s,"next",l)}function s(l){MO(o,n,i,a,s,"throw",l)}a(void 0)})}}function qM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zM(t,e,r){return e&&LO(t.prototype,e),r&&LO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mh(t,e)}function mh(t,e){return mh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mh(t,e)}function UM(t){var e=WM();return function(){var n=nu(t),i;if(e){var o=nu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return VM(this,i)}}function VM(t,e){if(e&&(hh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NO(t)}function NO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function nu(t){return nu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nu(t)}function GM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qO=function(t){HM(r,t);var e=UM(r);function r(n,i){var o;return qM(this,r),o=e.call(this,n,"folders",i),GM(NO(o),"virtual",!0),o.update(),o.register(),o}return zM(r,[{key:"save",value:function(){return this.update(),Promise.all(this.folders.map(function(i){return i.save()}))}}],[{key:"fetchForType",value:function(){var n=NM(regeneratorRuntime.mark(function o(a){var s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,DataStorage.fetch("Folder/Folders/FolderType?folderType="+a);case 2:return s=u.sent,u.abrupt("return",new r({folders:s||[]}));case 4:case"end":return u.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(Ee);A.register({class:qO,name:"FOLDERS",metaType:"folders"});window.Folders=qO;function yh(t){return yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yh(t)}function zO(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function HO(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){zO(o,n,i,a,s,"next",l)}function s(l){zO(o,n,i,a,s,"throw",l)}a(void 0)})}}function $M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function KM(t,e,r){return e&&UO(t.prototype,e),r&&UO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function iu(){return typeof Reflect!="undefined"&&Reflect.get?iu=Reflect.get:iu=function(e,r,n){var i=YM(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},iu.apply(this,arguments)}function YM(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ti(t),t!==null););return t}function XM(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vh(t,e)}function vh(t,e){return vh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vh(t,e)}function QM(t){var e=ZM();return function(){var n=ti(t),i;if(e){var o=ti(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return JM(this,i)}}function JM(t,e){if(e&&(yh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(t)}function $e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ti(t){return ti=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ti(t)}function it(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var VO=function(t){XM(r,t);var e=QM(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return $M(this,r),n=e.call(this,o),it($e(n),"owner",User.id),it($e(n),"creationDate",new Date),it($e(n),"description",""),it($e(n),"size",0),it($e(n),"resourceType",""),it($e(n),"surveys",[]),it($e(n),"url",""),it($e(n),"thumbURL",""),it($e(n),"tempFile",null),it($e(n),"tempThumbURL",null),n.merge(i,!1),n.update(),n.register(),n}return KM(r,[{key:"assignSurvey",value:function(i){if(!this.surveys.includes(i))return this.surveys.push(i),z.post("Resource/Resources/Assignment/"+this.id,i)}},{key:"update",value:function(){this.new||(this.tempThumbURL&&URL.revokeObjectURL(this.tempThumbURL),this.tempFile=null,this.tempThumbURL=null),this.tempFile&&!this.tempThumbURL&&(this.tempThumbURL=URL.createObjectURL(this.tempFile),this.thumbURL=this.tempThumbURL)}},{key:"serialize",value:function(){var i=iu(ti(r.prototype),"serialize",this).call(this);return delete i.creationDate,delete i.tempFile,delete i.tempThumbURL,i}}],[{key:"fetch",value:function(){var n=HO(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.get(a,APP.metaTypes.RESOURCE));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"fetchAllForType",value:function(){var n=HO(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.fetch("Resource/Resources/ResourceType?resourceType=".concat(a)));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(D);A.register({class:VO,name:"RESOURCE",metaType:"resource",parentMetaType:APP.metaTypes.FOLDER,apiPath:"Resource/Resources/"});window.Resource=VO;function gh(t){return gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gh(t)}function eL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tL(t,e,r){return e&&WO(t.prototype,e),r&&WO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bh(t,e)}function bh(t,e){return bh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},bh(t,e)}function nL(t){var e=oL();return function(){var n=ou(t),i;if(e){var o=ou(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return iL(this,i)}}function iL(t,e){if(e&&(gh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GO(t)}function GO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ou(t){return ou=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ou(t)}function aL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var sL=function(t){rL(r,t);var e=nL(r);function r(n,i){var o;return eL(this,r),o=e.call(this,n,"resources",i),aL(GO(o),"virtual",!0),o.update(),o.register(),o}return tL(r,[{key:"save",value:function(){throw"Call 'notify' on library or call 'save' on specific resource."}}]),r}(Ee);window.Library=sL;function _h(t){return _h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_h(t)}function $O(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function KO(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){$O(o,n,i,a,s,"next",l)}function s(l){$O(o,n,i,a,s,"throw",l)}a(void 0)})}}function YO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function XO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?YO(Object(r),!0).forEach(function(n){oe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):YO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function lL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function uL(t,e,r){return e&&QO(t.prototype,e),r&&QO(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function cL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wh(t,e)}function wh(t,e){return wh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},wh(t,e)}function fL(t){var e=dL();return function(){var n=au(t),i;if(e){var o=au(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return pL(this,i)}}function pL(t,e){if(e&&(_h(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ie(t)}function ie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function au(t){return au=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},au(t)}function oe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var JO=function(t){cL(r,t);var e=fL(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return lL(this,r),n=e.call(this,o),oe(ie(n),"name","New Template"),oe(ie(n),"isSystem",!1),oe(ie(n),"isOwner",!1),oe(ie(n),"isPreviosButton",!0),oe(ie(n),"creationDate",new Date),oe(ie(n),"owner",User.id),oe(ie(n),"logo",""),oe(ie(n),"cssLink",""),oe(ie(n),"buttonNext",""),oe(ie(n),"buttonBack",""),oe(ie(n),"buttonEnd",""),oe(ie(n),"buttonCenter",""),oe(ie(n),"errorMessage",""),oe(ie(n),"endMessage",""),oe(ie(n),"customLayout",""),oe(ie(n),"inlineCSS",""),oe(ie(n),"simpleChoicesViewType","classic"),oe(ie(n),"matrixMobileViewType","accordion"),oe(ie(n),"progressType","simple"),oe(ie(n),"progressTextType","page"),oe(ie(n),"inputBorderType","around"),oe(ie(n),"inputLabelType","classic"),n.merge(i,!1),n.register(),n}return uL(r,[{key:"copy",value:function(){return new r(XO(XO({},this),{},{name:w.get("core.copy-prefix-text")+this.name,isSystem:!1,creationDate:new Date}))}}],[{key:"fetchAll",value:function(){var n=KO(regeneratorRuntime.mark(function o(){var a;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,DataStorage.fetch("Template/Templates");case 2:return a=l.sent,l.abrupt("return",a.sort(function(u,c){var f=new Date(u.creationDate).getTime(),p=new Date(c.creationDate).getTime();return p-f}));case 4:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetch",value:function(){var n=KO(regeneratorRuntime.mark(function o(a){var s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,DataStorage.fetch("Template/Templates/"+a);case 2:return s=u.sent,u.abrupt("return",s);case 4:case"end":return u.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(D);A.register({class:JO,name:"TEMPLATE",metaType:"template",apiPath:"Template/Templates/"});window.Template=JO;function Fh(t){return Fh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fh(t)}function ZO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function eP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ZO(Object(r),!0).forEach(function(n){Lr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mL(t,e,r){return e&&tP(t.prototype,e),r&&tP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xh(t,e)}function xh(t,e){return xh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xh(t,e)}function vL(t){var e=bL();return function(){var n=su(t),i;if(e){var o=su(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gL(this,i)}}function gL(t,e){if(e&&(Fh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mr(t)}function Mr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function su(t){return su=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},su(t)}function Lr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rP=function(t){yL(r,t);var e=vL(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return hL(this,r),n=e.call(this,o),Lr(Mr(n),"creationDate",new Date),Lr(Mr(n),"owner",User.id),Lr(Mr(n),"description",""),Lr(Mr(n),"positionX",0),Lr(Mr(n),"positionY",0),Lr(Mr(n),"color","yellow"),n.merge(i,!1),n.register(),n}return mL(r,[{key:"copy",value:function(){return new r(eP(eP({},this),{},{description:this.description,creationDate:new Date,positionX:this.positionX+10,positionY:this.positionY+10,color:this.color}))}}]),r}(D);A.register({class:rP,name:"NOTE",metaType:"note",apiPath:"Note/Notes/"});window.Note=rP;function Oh(t){return Oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oh(t)}function _L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function wL(t,e,r){return e&&nP(t.prototype,e),r&&nP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function FL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ph(t,e)}function Ph(t,e){return Ph=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ph(t,e)}function xL(t){var e=PL();return function(){var n=lu(t),i;if(e){var o=lu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return OL(this,i)}}function OL(t,e){if(e&&(Oh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ha(t)}function ha(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function PL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function lu(t){return lu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},lu(t)}function uu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var iP=function(t){FL(r,t);var e=xL(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return _L(this,r),n=e.call(this,o),uu(ha(n),"key",""),uu(ha(n),"value",""),uu(ha(n),"edited",!1),uu(ha(n),"parentID",""),n.merge(i,!1),n.register(),n}return wL(r,[{key:"translated",get:function(){var i=DataStorage.cache.get(this.parentID);return!i||i.isSystemOriginal||this.edited||!this.value}},{key:"copy",value:function(){return new r({key:this.key,value:this.value,edited:this.edited,parentID:this.parentID})}}]),r}(D);A.register({class:iP,name:"DEFINITION",metaType:"definition"});window.Definition=iP;function B(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var cu=function(e,r){var n,i=APP.questionTypes,o=(n={},B(n,i.SINGLECHOICE+"default",APP.scaleTypes.RADIOBUTTON),B(n,i.SINGLECHOICE+"rows",APP.scaleTypes.RADIOBUTTON),B(n,i.SINGLECHOICE+"columns",APP.scaleTypes.RADIOBUTTON),B(n,i.SINGLECHOICE+"column-left-label",APP.scaleTypes.RADIOBUTTON),B(n,i.SINGLECHOICE+"row",APP.scaleTypes.RADIOBUTTON),B(n,i.MULTICHOICE+"default",APP.scaleTypes.CHECKBOX),B(n,i.MULTICHOICE+"rows",APP.scaleTypes.CHECKBOX),B(n,i.MULTICHOICE+"columns",APP.scaleTypes.CHECKBOX),B(n,i.MULTICHOICE+"column-left-label",APP.scaleTypes.CHECKBOX),B(n,i.MULTICHOICE+"row",APP.scaleTypes.CHECKBOX),B(n,i.MATRIX+"simple",APP.scaleTypes.RADIOBUTTON),B(n,i.MATRIX+"side-by-side",APP.scaleTypes.RADIOBUTTON),B(n,i.MATRIX+"bipolar",APP.scaleTypes.RADIOBUTTON),B(n,i.SLIDERS+"sliders",APP.scaleTypes.RANGE),B(n,i.SLIDERS+"gradient-sliders",APP.scaleTypes.RANGE),B(n,i.SLIDERS+"balks",APP.scaleTypes.RANGE),B(n,i.SLIDERS+"ratings",APP.scaleTypes.RANGE),B(n,i.SLIDERS+"emotions",APP.scaleTypes.RANGE),B(n,i.TEXTINPUT+"form",APP.scaleTypes.TEXT),B(n,i.TEXTINPUT+"single-line",APP.scaleTypes.TEXT),B(n,i.TEXTINPUT+"multiline",APP.scaleTypes.TEXT_BLOCK),B(n,i.AUTOCOMPLETE+"single-answer",APP.scaleTypes.AUTOCOMPLETE),B(n,i.AUTOCOMPLETE+"multiple-answers",APP.scaleTypes.AUTOCOMPLETE),B(n,i.DROPDOWN+"default",APP.scaleTypes.DROPDOWN),B(n,i.HEATMAP+"default",APP.scaleTypes.HEATMAP),B(n,i.SIGNATURE+"default",APP.scaleTypes.SIGNATURE),B(n,i.SORTING+"rank-order",APP.scaleTypes.SORTING),B(n,i.FILE_UPLOAD+"default",APP.scaleTypes.FILE),n);return o[e+r]||APP.scaleTypes.RADIOBUTTON},fu=function(e){var r,n,i,o;if(((r=e.parentQuestion)===null||r===void 0?void 0:r.type)===APP.questionTypes.TEXTINPUT&&(n=e.parentQuestion)!==null&&n!==void 0&&(i=n.constantSum)!==null&&i!==void 0&&i.enabled)return APP.respondTypes.NUMBER;var a=(o={},B(o,APP.scaleTypes.RADIOBUTTON,APP.respondTypes.RADIO),B(o,APP.scaleTypes.CHECKBOX,APP.respondTypes.CHECKBOX),B(o,APP.scaleTypes.NUMERIC,APP.respondTypes.NUMBER),B(o,APP.scaleTypes.RANGE,APP.respondTypes.RANGE),B(o,APP.scaleTypes.DATE,APP.respondTypes.DATE),B(o,APP.scaleTypes.TEXT,APP.respondTypes.TEXT),B(o,APP.scaleTypes.TEXT_BLOCK,APP.respondTypes.TEXT),B(o,APP.scaleTypes.AUTOCOMPLETE,APP.respondTypes.TEXT),B(o,APP.scaleTypes.DROPDOWN,APP.respondTypes.TEXT),B(o,APP.scaleTypes.HEATMAP,APP.respondTypes.CHECKBOX),o);return a[e.scaleType]};var Sh=function(e){var r,n=(r={},B(r,APP.respondTypes.RADIO,"radiobox-marked"),B(r,APP.respondTypes.CHECKBOX,"checkbox-multiple-marked"),B(r,APP.respondTypes.TEXT,"form-textbox"),B(r,APP.respondTypes.NUMBER,"numeric"),B(r,APP.respondTypes.PHONE,"phone-classic"),B(r,APP.respondTypes.PASSWORD,"multiplication-box"),B(r,APP.respondTypes.DATE,"calendar"),B(r,APP.respondTypes.TIME,"clock"),B(r,APP.respondTypes.URL,"web"),B(r,APP.respondTypes.EMAIL,"email-outline"),B(r,APP.respondTypes.REGEX,"regex"),r);return n[e]},oP=function(e){var r=e.name.split(".").pop(),n={pdf:"file-pdf",doc:"file-word",docx:"file-word",xls:"file-excel",xlsx:"file-excel",ppt:"file-powerpoint",pptx:"file-powerpoint",mp3:"file-music",aac:"file-music",ogg:"file-music",opus:"file-music"};return n[r]||"file-outline"};function kh(t){return kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kh(t)}function aP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Eh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?aP(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function SL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kL(t,e,r){return e&&sP(t.prototype,e),r&&sP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ma(){return typeof Reflect!="undefined"&&Reflect.get?ma=Reflect.get:ma=function(e,r,n){var i=EL(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ma.apply(this,arguments)}function EL(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Nr(t),t!==null););return t}function TL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Th(t,e)}function Th(t,e){return Th=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Th(t,e)}function AL(t){var e=DL();return function(){var n=Nr(t),i;if(e){var o=Nr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return RL(this,i)}}function RL(t,e){if(e&&(kh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ye(t)}function ye(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Nr(t){return Nr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nr(t)}function ve(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lP=function(t){TL(r,t);var e=AL(r);function r(n,i){var o;return SL(this,r),o=e.call(this,i),ve(ye(o),"parentID",null),ve(ye(o),"role","statements"),ve(ye(o),"_label",""),ve(ye(o),"labelHidden",!1),ve(ye(o),"scaleType",APP.scaleTypes.RADIOBUTTON),ve(ye(o),"initialState","half"),ve(ye(o),"_randomized",!1),ve(ye(o),"sortable",!0),ve(ye(o),"hidden",!1),ve(ye(o),"_items",[new Item,new Item,new Item]),ve(ye(o),"minSelections",0),ve(ye(o),"maxSelections",0),ve(ye(o),"_commonPrefix",""),ve(ye(o),"_commonPostfix",""),ve(ye(o),"numberOfColumns",2),ve(ye(o),"fakeList",!1),o.merge(n,!1),(!n||!n.items)&&o.update(),o.register(),o}return kL(r,[{key:"parentQuestion",get:function(){return this.getCachedParent()}},{key:"content",get:function(){return this.items},set:function(i){this.items=i}},{key:"items",get:function(){return this._items},set:function(i){if(Array.isArray(i))this._items=i;else throw"List: wrong type of 'items'";this.update()}},{key:"label",get:function(){return this._label},set:function(i){this._label=i}},{key:"randomized",get:function(){return this._randomized},set:function(i){this._randomized=i,this.update()}},{key:"commonPrefix",get:function(){return this._commonPrefix},set:function(i){var o=this;this._items.forEach(function(a){(!a.optionPrefix||a.optionPrefix===o._commonPrefix)&&(a.optionPrefix=i,a.notify())}),this._commonPrefix=i}},{key:"commonPostfix",get:function(){return this._commonPostfix},set:function(i){var o=this;this._items.forEach(function(a){(!a.optionPostfix||a.optionPostfix===o._commonPostfix)&&(a.optionPostfix=i,a.notify())}),this._commonPostfix=i}},{key:"getDefaultLabel",value:function(){var i=DataStorage.cache.get(this.parentID);return i.type===APP.questionTypes.MATRIX&&this.role==="options"?w.get("builder.default-matrix-option-list-label"):w.get("builder.default-list-label")}},{key:"update",value:function(){var i=this;this.items.filter(function(o){return i.scaleType!==APP.scaleTypes.DROPDOWN||!o.isCallToAction}).forEach(function(o,a){o.defaultCode=a+1}),this._items=this.items.map(function(o,a){var s=o.isStatement,l=o.pinnable;return o=o.notify?o:new Item(o,o.id),o.index=a,o.parentID=i.id,o.isStatement=i.role==="statements",o.respondType=fu(i),o.pinnable=i.randomized,(s!==o.isStatement||l!==o.pinnable)&&o.notify(),o})}},{key:"copy",value:function(i){return new r(Eh(Eh({},this),{},{items:this.items.map(function(o){return new Item(Eh({},o),i&&o.id)})}),i&&this.id)}},{key:"add",value:function(i,o){var a=new Item(i,i&&i.id);a.optionPrefix=this._commonPrefix,a.optionPostfix=this._commonPostfix,o===void 0?this._items.push(a):this._items.splice(o,0,a),a.focused=!0}},{key:"remove",value:function(i){this.items.splice(i,1);var o=this.items[Math.min(this.items.length-1,Math.max(0,i))];o&&(o.focused=!0,o.notify())}},{key:"removeDuplicates",value:function(){var i={},o=this.items.map(function(a){var s=a.label.toLowerCase();if(!s||!i[s])i[s]=!0;else return null;return a});this.items=o.filter(function(a){return a})}},{key:"reverse",value:function(){this._items.reverse(),this.save()}},{key:"dropExclusives",value:function(i,o){var a=this,s=this.parentQuestion;if(!((o==="isPreset"||o==="isExclusive")&&s.type!==APP.questionTypes.SINGLECHOICE)){var l=function(d){var m=!1;d.items.forEach(function(h){(d.id!==a.id||i.index!==h.index)&&h[o]&&(h[o]=!1,h.notify&&h.notify(),m=!0)}),m&&d.save()},u=s.type===APP.questionTypes.DROPDOWN,c=s.type===APP.questionTypes.AUTOCOMPLETE&&s.modifier==="single-answer";if((u||c)&&(o==="isPreset"||o==="isCallToAction")){var f=this.role==="statements"?s.statementLists:s.optionLists;f.forEach(function(p){l(p)})}else l(this)}}},{key:"clearHTML",value:function(){this.items.forEach(function(i){i.label=i.label.replace(/<(?:.|\n)*?>/gm,""),i.notify()})}},{key:"upgrade",value:function(){ma(Nr(r.prototype),"upgrade",this).call(this),this.items&&this.items.forEach(function(i){i.upgrade()}),this.update(),this.notify()}},{key:"dispose",value:function(){this.items.forEach(function(i){i.dispose()}),ma(Nr(r.prototype),"dispose",this).call(this)}}]),r}(D);A.register({class:lP,name:"LIST",metaType:"list",parentMetaType:APP.metaTypes.QUESTION});window.List=lP;function Ah(t){return Ah=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ah(t)}function uP(t,e){return BL(t)||jL(t,e)||IL(t,e)||CL()}function CL(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function IL(t,e){if(!!t){if(typeof t=="string")return cP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cP(t,e)}}function cP(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jL(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function BL(t){if(Array.isArray(t))return t}function fP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ML(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fP(Object(r),!0).forEach(function(n){ee(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function LL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function NL(t,e,r){return e&&pP(t.prototype,e),r&&pP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ya(){return typeof Reflect!="undefined"&&Reflect.get?ya=Reflect.get:ya=function(e,r,n){var i=qL(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ya.apply(this,arguments)}function qL(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=qr(t),t!==null););return t}function zL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rh(t,e)}function Rh(t,e){return Rh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rh(t,e)}function HL(t){var e=VL();return function(){var n=qr(t),i;if(e){var o=qr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return UL(this,i)}}function UL(t,e){if(e&&(Ah(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z(t)}function Z(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function VL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function qr(t){return qr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qr(t)}function ee(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dP=function(t){zL(r,t);var e=HL(r);function r(n,i){var o;return LL(this,r),o=e.call(this,i),ee(Z(o),"parentID",null),ee(Z(o),"label",""),ee(Z(o),"edited",!1),ee(Z(o),"optionPrefix",""),ee(Z(o),"optionPostfix",""),ee(Z(o),"hasCustomField",!1),ee(Z(o),"pinnable",!1),ee(Z(o),"pinned",!1),ee(Z(o),"highlight",!1),ee(Z(o),"index",null),ee(Z(o),"code",null),ee(Z(o),"defaultCode",null),ee(Z(o),"hidden",!1),ee(Z(o),"customFieldPlaceholder",""),ee(Z(o),"isCustom",!1),ee(Z(o),"_isPreset",!1),ee(Z(o),"_isExclusive",!1),ee(Z(o),"_isCallToAction",!1),ee(Z(o),"notRequired",!1),ee(Z(o),"notApplicable",!1),ee(Z(o),"isStatement",!1),ee(Z(o),"fakeItem",!1),ee(Z(o),"scheme",APP.itemSchemes.LIGHT),ee(Z(o),"respondType",APP.scaleTypes.RADIO),ee(Z(o),"details",{}),n&&Object.keys(n).forEach(function(a){(o.hasOwnProperty(a)||["isPreset","isExclusive","isCallToAction"].includes(a))&&a!=="id"&&(o[a]=n[a])}),o.customFieldPlaceholder=o.customFieldPlaceholder||"",o.details=o.details||{},o.details[APP.itemSchemes.MATRIX]&&!o.details[APP.itemSchemes.BPL_MATRIX]&&(o.details[APP.itemSchemes.BPL_MATRIX]=o.details[APP.itemSchemes.MATRIX],delete o.details[APP.itemSchemes.MATRIX]),o.register(),o}return NL(r,[{key:"parentList",get:function(){return this.getCachedParent()}},{key:"parent",get:function(){return this.getCachedParent()}},{key:"props",get:function(){return this.details[this.scheme]||(this.scheme==="form"?this.details[this.scheme]={respondType:APP.respondTypes.TEXT}:this.details[this.scheme]={}),this.details[this.scheme]},set:function(i){this.details[this.scheme]=i}},{key:"isPreset",get:function(){return this._isPreset},set:function(i){this._setExclusive("isPreset",i)}},{key:"isExclusive",get:function(){return this._isExclusive},set:function(i){this._setExclusive("isExclusive",i)}},{key:"isCallToAction",get:function(){return this._isCallToAction},set:function(i){this._setExclusive("isCallToAction",i)}},{key:"_setExclusive",value:function(i,o){this["_"+i]=o,this.parentList&&o&&this.parentList.dropExclusives(this,i)}},{key:"getDefaultLabel",value:function(i){return i===APP.itemSchemes.BPL_MATRIX?w.get("builder.default-polar-item-label"):this.scheme===APP.itemSchemes.LABEL?w.get("builder.default-label-item-label"):this.isStatement?w.get("builder.default-statement-item-label"):w.get("builder.default-option-item-label")}},{key:"copy",value:function(i){return new r(ML({},this),i&&this.id)}},{key:"getFinalCode",value:function(){return this.code!=null?this.code:this.defaultCode}},{key:"upgrade",value:function(){ya(qr(r.prototype),"upgrade",this).call(this),this.update(),this.notify()}},{key:"serialize",value:function(){var i,o=ya(qr(r.prototype),"serialize",this).call(this);return delete o.notApplicable,delete o.isStatement,delete o.defaultCode,Object.entries(o).forEach(function(a){var s=uP(a,2),l=s[0],u=s[1];(["scheme","pinnable","isStatement"].includes(l)||u==null||u===!1||u==="")&&delete o[l]}),o.details=Object.fromEntries(Object.entries(o.details).filter(function(a){var s=uP(a,2),l=s[0],u=s[1];return Object.keys(u).length})),Object.keys(o.details).length||delete o.details,[APP.questionTypes.DROPDOWN,APP.questionTypes.AUTOCOMPLETE].includes((i=this.parentList)===null||i===void 0?void 0:i.parentQuestion.type)&&(o.label=Edit.removeHTML(o.label)),o}},{key:"save",value:function(){!this.parentList||(this.notify(),this.parentList.save({silent:!0}))}}]),r}(D);A.register({class:dP,name:"ITEM",metaType:"item"});window.Item=dP;function Dh(t){return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dh(t)}function hP(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function WL(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){hP(o,n,i,a,s,"next",l)}function s(l){hP(o,n,i,a,s,"throw",l)}a(void 0)})}}function GL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $L(t,e,r){return e&&mP(t.prototype,e),r&&mP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function KL(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ch(t,e)}function Ch(t,e){return Ch=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ch(t,e)}function YL(t){var e=QL();return function(){var n=du(t),i;if(e){var o=du(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return XL(this,i)}}function XL(t,e){if(e&&(Dh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pu(t)}function pu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QL(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function du(t){return du=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},du(t)}function Ih(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jh=function(t){KL(r,t);var e=YL(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return GL(this,r),n=e.call(this,o),Ih(pu(n),"source",new SurveyLogicSource),Ih(pu(n),"target",new SurveyLogicTarget),Ih(pu(n),"editMode",!1),n.merge(i,!1),n.update(),n.register(),n}return $L(r,[{key:"isCompleted",get:function(){return this.target&&(this.target.survey||this.target.page||this.target.questions.length)}},{key:"populate",value:function(){var n=WL(regeneratorRuntime.mark(function o(a){var s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:s=a.parentSurvey,this.source=new SurveyLogicSource({survey:s,page:a});case 2:case"end":return u.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"copy",value:function(){return new r({source:this.source.copy(),target:this.target.copy()})}},{key:"serialize",value:function(){try{var i={id:this.id,metaType:this.metaType,parentID:this.source.page.id,isSurveyEnd:!!this.target.survey,jumpPages:this.target.page?[{pageID:this.target.page.id}]:[]};return i}catch(o){setTimeout(function(){throw"PageSkipLogic.serialize error: "+o.message})}}}],[{key:"restoreData",value:function(i){var o=DataStorage.cache.get(i.parentID);if(!o)return setTimeout(function(){throw"PageSkipLogic.restoreData parent page not found: (parentID ".concat(i.parentID,") (id ").concat(i.id,")")}),{};var a=DataStorage.cache.get(o.parentID);return{source:new SurveyLogicSource({survey:a,page:o}),target:new SurveyLogicTarget({survey:i.isSurveyEnd?a:null,page:i.jumpPages[0]&&DataStorage.cache.get(i.jumpPages[0].pageID)})}}}]),r}(D);A.register({class:jh,name:"PAGE_SKIP_LOGIC",metaType:"pageSkipLogic"});function Bh(t){return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bh(t)}function yP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function vP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yP(Object(r),!0).forEach(function(n){Ur(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function JL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ZL(t,e,r){return e&&gP(t.prototype,e),r&&gP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function va(){return typeof Reflect!="undefined"&&Reflect.get?va=Reflect.get:va=function(e,r,n){var i=e4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},va.apply(this,arguments)}function e4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Hr(t),t!==null););return t}function t4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mh(t,e)}function Mh(t,e){return Mh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mh(t,e)}function r4(t){var e=i4();return function(){var n=Hr(t),i;if(e){var o=Hr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return n4(this,i)}}function n4(t,e){if(e&&(Bh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zr(t)}function zr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Hr(t){return Hr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hr(t)}function Ur(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bP=function(t){t4(r,t);var e=r4(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return JL(this,r),n=e.call(this,i,"questions",o),Ur(zr(n),"name",""),Ur(zr(n),"isSurveyComplete",!1),Ur(zr(n),"isEnd",!1),Ur(zr(n),"jump",null),Ur(zr(n),"displayLogics",[]),Ur(zr(n),"randomized",!1),n.name=i.name||"",n.questions=n.questions||[],n.merge(i,!1),n.register(),n}return ZL(r,[{key:"parentSurvey",get:function(){return this.getCachedParent()}},{key:"pNumberText",get:function(){return"P"+(this.index+1)}},{key:"getSkipLogicsToItself",value:function(){var i=this,o=this.parentSurvey;if(!!o){var a=[];return o.pages.forEach(function(s){s.jump&&s.jump.target.page===i&&a.push(s.jump),s.questions.forEach(function(l){l.jumps.forEach(function(u){u.target.page===i&&a.push(u)})})}),a}}},{key:"initSkipLogic",value:function(){this.jump&&this.jump instanceof jh||this.jump&&(this.jump=DataObject.restore(this.jump))}},{key:"initDisplayLogic",value:function(){this.displayLogics.length&&this.displayLogics[0]instanceof DisplayLogic||(this.displayLogics=DataObject.safeRestoreArray(this.displayLogics))}},{key:"upgrade",value:function(){va(Hr(r.prototype),"upgrade",this).call(this),this.initSkipLogic(),this.initDisplayLogic(),this.questions&&this.questions.forEach(function(i){i.upgrade()}),this.update(),this.notify()}},{key:"populate",value:function(){var i=new Question({wizardMode:!0,isDefault:!0});i.populate(),this.questions=[i],this.update()}},{key:"copy",value:function(i){var o=new r(vP(vP({},this),{},{name:w.get("core.copy-prefix-text")+this.name,questions:this.questions.map(function(a){return a.copy(i)})}),i&&this.id);return this.jump&&(o.jump=this.jump.copy(),o.jump.source.page=o),o.displayLogics=this.displayLogics.map(function(a){return a.copy({page:o})}),o.update(),o}},{key:"serialize",value:function(){var i=va(Hr(r.prototype),"serialize",this).call(this);return this.jump&&(i.jump=this.jump.serialize()),i.questions=i.questions.filter(function(o){return!o.wizardMode||o.isDefault}),i}}],[{key:"restoreData",value:function(i){return i.questions&&(i.questions=i.questions.map(DataObject.restore)),i}}]),r}(Ee);A.register({class:bP,name:"PAGE",metaType:"page",parentMetaType:APP.metaTypes.SURVEY});window.Page=bP;function Lh(t){return Lh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lh(t)}function o4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _P(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a4(t,e,r){return e&&_P(t.prototype,e),r&&_P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ga(){return typeof Reflect!="undefined"&&Reflect.get?ga=Reflect.get:ga=function(e,r,n){var i=s4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ga.apply(this,arguments)}function s4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Vr(t),t!==null););return t}function l4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Nh(t,e)}function Nh(t,e){return Nh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Nh(t,e)}function u4(t){var e=f4();return function(){var n=Vr(t),i;if(e){var o=Vr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return c4(this,i)}}function c4(t,e){if(e&&(Lh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wP(t)}function wP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Vr(t){return Vr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vr(t)}function p4(t,e){d4(t,e),e.add(t)}function d4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function FP(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var xP=function(e){var r;return r=new WeakSet,function(i){l4(a,i);var o=u4(a);function a(){var s;o4(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),p4(wP(s),r),s}return a4(a,[{key:"getDefaultProps",value:function(){if(!FP(this,r,n).call(this)){var l;return(l=ga(Vr(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{initialMessage:w.get("placeholders.please-enter-question-default-props-placeholder"),notFoundMessage:w.get("placeholders.nothing-found-question-default-props-placeholder"),addNewMessage:w.get("placeholders.add-alternative-question-default-props-placeholder"),customsAllowed:!1,saveCustoms:!1,editMode:!0,keepInCommonList:!1,minAnswers:0,maxAnswers:0}}},{key:"setHiddens",value:function(){if(!FP(this,r,n).call(this)){var l;return(l=ga(Vr(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists.forEach(function(u){u.hidden=!1})}}]),a}(e);function n(){return this.type===APP.questionTypes.AUTOCOMPLETE}};function qh(t){return qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qh(t)}function h4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function m4(t,e,r){return e&&OP(t.prototype,e),r&&OP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hu(){return typeof Reflect!="undefined"&&Reflect.get?hu=Reflect.get:hu=function(e,r,n){var i=y4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},hu.apply(this,arguments)}function y4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ri(t),t!==null););return t}function v4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zh(t,e)}function zh(t,e){return zh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zh(t,e)}function g4(t){var e=_4();return function(){var n=ri(t),i;if(e){var o=ri(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return b4(this,i)}}function b4(t,e){if(e&&(qh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PP(t)}function PP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ri(t){return ri=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ri(t)}function w4(t,e){F4(t,e),e.add(t)}function F4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x4(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var SP=function(e){var r;return r=new WeakSet,function(i){v4(a,i);var o=g4(a);function a(){var s;h4(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),w4(PP(s),r),s}return m4(a,[{key:"getDefaultProps",value:function(){if(!x4(this,r,n).call(this)){var l;return(l=hu(ri(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{html:"",css:"",js:""}}}]),a}(e);function n(){return this.type===APP.questionTypes.CODE}};function Hh(t){return Hh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hh(t)}function O4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function P4(t,e,r){return e&&kP(t.prototype,e),r&&kP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ba(){return typeof Reflect!="undefined"&&Reflect.get?ba=Reflect.get:ba=function(e,r,n){var i=S4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ba.apply(this,arguments)}function S4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Wr(t),t!==null););return t}function k4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uh(t,e)}function Uh(t,e){return Uh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uh(t,e)}function E4(t){var e=A4();return function(){var n=Wr(t),i;if(e){var o=Wr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return T4(this,i)}}function T4(t,e){if(e&&(Hh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EP(t)}function EP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Wr(t){return Wr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Wr(t)}function R4(t,e){D4(t,e),e.add(t)}function D4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function TP(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var AP=function(e){var r;return r=new WeakSet,function(i){k4(a,i);var o=E4(a);function a(){var s;O4(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),R4(EP(s),r),s}return P4(a,[{key:"getDefaultProps",value:function(){if(!TP(this,r,n).call(this)){var l;return(l=ba(Wr(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{editMode:!0}}},{key:"setHiddens",value:function(){if(!TP(this,r,n).call(this)){var l;return(l=ba(Wr(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists.forEach(function(u){u.hidden=!1})}}]),a}(e);function n(){return this.type===APP.questionTypes.DROPDOWN}};function Vh(t){return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vh(t)}function C4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I4(t,e,r){return e&&RP(t.prototype,e),r&&RP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _a(){return typeof Reflect!="undefined"&&Reflect.get?_a=Reflect.get:_a=function(e,r,n){var i=j4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_a.apply(this,arguments)}function j4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Gr(t),t!==null););return t}function B4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wh(t,e)}function Wh(t,e){return Wh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Wh(t,e)}function M4(t){var e=N4();return function(){var n=Gr(t),i;if(e){var o=Gr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L4(this,i)}}function L4(t,e){if(e&&(Vh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DP(t)}function DP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Gr(t){return Gr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gr(t)}function q4(t,e){z4(t,e),e.add(t)}function z4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function CP(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var IP=function(e){var r;return r=new WeakSet,function(i){B4(a,i);var o=M4(a);function a(){var s;C4(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),q4(DP(s),r),s}return I4(a,[{key:"getDefaultProps",value:function(){if(!CP(this,r,n).call(this)){var l;return(l=_a(Gr(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{maxFileSize:20,allowedExtensions:""}}},{key:"setHiddens",value:function(){if(!CP(this,r,n).call(this)){var l;return(l=_a(Gr(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.optionLists[0].items.forEach(function(u,c){u.hidden=c!==0})}}]),a}(e);function n(){return this.type===APP.questionTypes.FILE_UPLOAD}};function Gh(t){return Gh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gh(t)}function H4(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function U4(t,e,r){return e&&jP(t.prototype,e),r&&jP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ni(){return typeof Reflect!="undefined"&&Reflect.get?ni=Reflect.get:ni=function(e,r,n){var i=V4(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ni.apply(this,arguments)}function V4(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Qt(t),t!==null););return t}function W4(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$h(t,e)}function $h(t,e){return $h=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$h(t,e)}function G4(t){var e=K4();return function(){var n=Qt(t),i;if(e){var o=Qt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return $4(this,i)}}function $4(t,e){if(e&&(Gh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BP(t)}function BP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function K4(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Qt(t){return Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qt(t)}function Y4(t,e){X4(t,e),e.add(t)}function X4(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kh(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var MP=function(e){var r;return r=new WeakSet,function(i){W4(a,i);var o=G4(a);function a(){var s;H4(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),Y4(BP(s),r),s}return U4(a,[{key:"getDefaultProps",value:function(){if(!Kh(this,r,n).call(this)){var l;return(l=ni(Qt(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{url:""}}},{key:"setHiddens",value:function(){if(!Kh(this,r,n).call(this)){var l;return(l=ni(Qt(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.optionLists[0].items.forEach(function(u){var c=u.details[APP.itemSchemes.REGION];u.hidden=!(c&&c.points&&c.points.length)})}},{key:"getItemScheme",value:function(){if(!Kh(this,r,n).call(this)){var l;return(l=ni(Qt(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}return APP.itemSchemes.REGION}}]),a}(e);function n(){return this.type===APP.questionTypes.HEATMAP}};function Yh(t){return Yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yh(t)}function LP(t){return eN(t)||Z4(t)||J4(t)||Q4()}function Q4(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function J4(t,e){if(!!t){if(typeof t=="string")return Xh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xh(t,e)}}function Z4(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function eN(t){if(Array.isArray(t))return Xh(t)}function Xh(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function rN(t,e,r){return e&&NP(t.prototype,e),r&&NP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ii(){return typeof Reflect!="undefined"&&Reflect.get?ii=Reflect.get:ii=function(e,r,n){var i=nN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ii.apply(this,arguments)}function nN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Jt(t),t!==null););return t}function iN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qh(t,e)}function Qh(t,e){return Qh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qh(t,e)}function oN(t){var e=sN();return function(){var n=Jt(t),i;if(e){var o=Jt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return aN(this,i)}}function aN(t,e){if(e&&(Yh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qP(t)}function qP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Jt(t){return Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jt(t)}function lN(t,e){uN(t,e),e.add(t)}function uN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jh(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var zP=function(e){var r;return r=new WeakSet,function(i){iN(a,i);var o=oN(a);function a(){var s;tN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),lN(qP(s),r),s}return rN(a,[{key:"getDefaultProps",value:function(){if(!Jh(this,r,n).call(this)){var l;return(l=ii(Jt(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{swapped:!1,labelsAbove:!1,randomizeStatements:!1,randomizeAnswers:!1,isBulky:!1,mobileViewType:"break",stickyHeader:!1}}},{key:"setHiddens",value:function(){if(!Jh(this,r,n).call(this)){var l;return(l=ii(Jt(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}["simple","bipolar"].includes(this.modifier)?(this.optionLists[0].hidden=!1,this.statementLists.forEach(function(u){u.hidden=!1})):this.modifier==="side-by-side"&&[].concat(LP(this.statementLists),LP(this.optionLists)).forEach(function(u){u.hidden=!1})}},{key:"getItemScheme",value:function(){if(!Jh(this,r,n).call(this)){var l;return(l=ii(Jt(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}return APP.itemSchemes.MATRIX}}]),a}(e);function n(){return this.type===APP.questionTypes.MATRIX}};function Zh(t){return Zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zh(t)}function cN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fN(t,e,r){return e&&HP(t.prototype,e),r&&HP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wa(){return typeof Reflect!="undefined"&&Reflect.get?wa=Reflect.get:wa=function(e,r,n){var i=pN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},wa.apply(this,arguments)}function pN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=$r(t),t!==null););return t}function dN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&em(t,e)}function em(t,e){return em=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},em(t,e)}function hN(t){var e=yN();return function(){var n=$r(t),i;if(e){var o=$r(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return mN(this,i)}}function mN(t,e){if(e&&(Zh(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UP(t)}function UP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $r(t){return $r=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$r(t)}function vN(t,e){gN(t,e),e.add(t)}function gN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function VP(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var WP=function(e){var r;return r=new WeakSet,function(i){dN(a,i);var o=hN(a);function a(){var s;cN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),vN(UP(s),r),s}return fN(a,[{key:"getDefaultProps",value:function(){if(!VP(this,r,n).call(this)){var l;return(l=wa($r(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{backgroundPath:"",signColor:""}}},{key:"setHiddens",value:function(){if(!VP(this,r,n).call(this)){var l;return(l=wa($r(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.optionLists[0].items.forEach(function(u,c){u.hidden=c!==0})}}]),a}(e);function n(){return this.type===APP.questionTypes.SIGNATURE}};function tm(t){return tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tm(t)}function bN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _N(t,e,r){return e&&GP(t.prototype,e),r&&GP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function oi(){return typeof Reflect!="undefined"&&Reflect.get?oi=Reflect.get:oi=function(e,r,n){var i=wN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},oi.apply(this,arguments)}function wN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Zt(t),t!==null););return t}function FN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rm(t,e)}function rm(t,e){return rm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rm(t,e)}function xN(t){var e=PN();return function(){var n=Zt(t),i;if(e){var o=Zt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ON(this,i)}}function ON(t,e){if(e&&(tm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $P(t)}function $P(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function PN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Zt(t)}function SN(t,e){kN(t,e),e.add(t)}function kN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function nm(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var KP=function(e){var r;return r=new WeakSet,function(i){FN(a,i);var o=xN(a);function a(){var s;bN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),SN($P(s),r),s}return _N(a,[{key:"getDefaultProps",value:function(){if(!nm(this,r,n).call(this)){var l;return(l=oi(Zt(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}}},{key:"setHiddens",value:function(){if(!nm(this,r,n).call(this)){var l;return(l=oi(Zt(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1}},{key:"getItemScheme",value:function(){if(!nm(this,r,n).call(this)){var l;return(l=oi(Zt(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}var u={default:APP.itemSchemes.SIMPLE,rows:APP.itemSchemes.SIMPLE,columns:APP.itemSchemes.SIMPLE,"column-left-label":APP.itemSchemes.RTL_SIMPLE,row:APP.itemSchemes.ROW_SIMPLE};return u[this.modifier]}}]),a}(e);function n(){return this.type===APP.questionTypes.SINGLECHOICE||this.type===APP.questionTypes.MULTICHOICE}};function im(t){return im=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},im(t)}function EN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function TN(t,e,r){return e&&YP(t.prototype,e),r&&YP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Kr(){return typeof Reflect!="undefined"&&Reflect.get?Kr=Reflect.get:Kr=function(e,r,n){var i=AN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Kr.apply(this,arguments)}function AN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ot(t),t!==null););return t}function RN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&om(t,e)}function om(t,e){return om=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},om(t,e)}function DN(t){var e=IN();return function(){var n=Ot(t),i;if(e){var o=Ot(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return CN(this,i)}}function CN(t,e){if(e&&(im(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XP(t)}function XP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ot(t){return Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ot(t)}function jN(t,e){BN(t,e),e.add(t)}function BN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fa(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var QP=function(e){var r;return r=new WeakSet,function(i){RN(a,i);var o=DN(a);function a(){var s;EN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),jN(XP(s),r),s}return TN(a,[{key:"getDefaultProps",value:function(){if(!Fa(this,r,n).call(this)){var l;return(l=Kr(Ot(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{step:.1,gridLinesNum:11,isRandomized:!1,decimalsNum:0,emotionsReversed:!1,showScaleLabels:!1,showDigitalScale:!1,showRuler:!1,showValues:!1,savedAsInitial:!1,stickyHeader:!1,gridShape:"uniform",gScaleMoveType:"discrete",gScaleInitialState:"empty",snapToGrid:!1,isGradientGrid:!1,notApplicable:!1,notApplicableText:w.get("qt-browser.not-applicable-question-default-prop"),pic:"star",invertEmotions:!1,startColor:"rgba(255, 0, 0, 255)",middleColor:"rgba(0, 0, 255, 255)",endColor:"rgba(0, 255, 0, 255)",useMidColorStop:!1,widthType:"medium"}}},{key:"update",value:function(){if(!Fa(this,r,n).call(this)){var l;return(l=Kr(Ot(a.prototype),"update",this))===null||l===void 0?void 0:l.call(this)}this.modifier==="emotions"?this.minValue=1:this.modifier==="ratings"&&(this.props.gScaleMoveType==="discrete"?this.minValue=1:this.props.gScaleMoveType==="half"?this.minValue=.5:this.props.gScaleMoveType==="smooth"&&(this.minValue=0))}},{key:"setHiddens",value:function(){if(!Fa(this,r,n).call(this)){var l;return(l=Kr(Ot(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.statementLists[0].hidden=!1}},{key:"getItemScheme",value:function(){if(!Fa(this,r,n).call(this)){var l;return(l=Kr(Ot(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}var u={sliders:APP.itemSchemes.G_SCALE_SLIDER,"gradient-sliders":APP.itemSchemes.G_SCALE_SLIDER,balks:APP.itemSchemes.G_SCALE_SLIDER,ratings:APP.itemSchemes.G_SCALE,emotions:APP.itemSchemes.G_SCALE};return u[this.modifier]}},{key:"updateItemProps",value:function(){!Fa(this,r,n).call(this)||this.optionLists.forEach(function(l){l.hidden||l.items.forEach(function(u){u.scheme=APP.itemSchemes.LABEL,u.notify()})})}}]),a}(e);function n(){return this.type===APP.questionTypes.SLIDERS}};function am(t){return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},am(t)}function MN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function LN(t,e,r){return e&&JP(t.prototype,e),r&&JP(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yr(){return typeof Reflect!="undefined"&&Reflect.get?Yr=Reflect.get:Yr=function(e,r,n){var i=NN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Yr.apply(this,arguments)}function NN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Pt(t),t!==null););return t}function qN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sm(t,e)}function sm(t,e){return sm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sm(t,e)}function zN(t){var e=UN();return function(){var n=Pt(t),i;if(e){var o=Pt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return HN(this,i)}}function HN(t,e){if(e&&(am(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZP(t)}function ZP(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Pt(t)}function VN(t,e){WN(t,e),e.add(t)}function WN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mu(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var eS=function(e){var r;return r=new WeakSet,function(i){qN(a,i);var o=zN(a);function a(){var s;MN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),VN(ZP(s),r),s}return LN(a,[{key:"getDefaultProps",value:function(){if(!mu(this,r,n).call(this)){var l;return(l=Yr(Pt(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{notApplicableText:w.get("qt-browser.not-applicable-question-default-prop")}}},{key:"update",value:function(){if(!mu(this,r,n).call(this)){var l;return(l=Yr(Pt(a.prototype),"update",this))===null||l===void 0?void 0:l.call(this)}if(this.modifier==="rank-order"){var u=this.statementLists.find(function(d){return!d.hidden}),c=this.optionLists.find(function(d){return!d.hidden}),f=c.maxSelections||u.items.length,p=[];u.items.forEach(function(d){if(p.length!==f){var m=c.items.find(function(v){return v.props.mirrorStatementId===d.id});if(m)p.push(m);else{var h=new Item;h.details[APP.itemSchemes.RANK_ORDER]={mirrorStatementId:d.id},p.push(h)}}}),p.forEach(function(d,m){d.index=m,d.label=m+1+""}),c.items=p,c.update(),u.items.forEach(function(d){d.notify()})}}},{key:"setHiddens",value:function(){if(!mu(this,r,n).call(this)){var l;return(l=Yr(Pt(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.statementLists[0].hidden=!1}},{key:"getItemScheme",value:function(){if(!mu(this,r,n).call(this)){var l;return(l=Yr(Pt(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}var u={"rank-order":APP.itemSchemes.RANK_ORDER};return u[this.modifier]}}]),a}(e);function n(){return this.type===APP.questionTypes.SORTING}};function lm(t){return lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lm(t)}function GN(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $N(t,e,r){return e&&tS(t.prototype,e),r&&tS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ai(){return typeof Reflect!="undefined"&&Reflect.get?ai=Reflect.get:ai=function(e,r,n){var i=KN(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ai.apply(this,arguments)}function KN(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=er(t),t!==null););return t}function YN(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&um(t,e)}function um(t,e){return um=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},um(t,e)}function XN(t){var e=JN();return function(){var n=er(t),i;if(e){var o=er(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return QN(this,i)}}function QN(t,e){if(e&&(lm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rS(t)}function rS(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function JN(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function er(t){return er=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},er(t)}function ZN(t,e){eq(t,e),e.add(t)}function eq(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function cm(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}var nS=function(e){var r;return r=new WeakSet,function(i){YN(a,i);var o=XN(a);function a(){var s;GN(this,a);for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return s=o.call.apply(o,[this].concat(u)),ZN(rS(s),r),s}return $N(a,[{key:"getDefaultProps",value:function(){if(!cm(this,r,n).call(this)){var l;return(l=ai(er(a.prototype),"getDefaultProps",this))===null||l===void 0?void 0:l.call(this)}return{minLength:0,maxLength:0,showEntered:!0,showLeft:!0,widthType:"small",singleLineItem:new Item({respondType:APP.respondTypes.TEXT}),notApplicableText:w.get("qt-browser.not-applicable-question-default-prop")}}},{key:"setHiddens",value:function(){if(!cm(this,r,n).call(this)){var l;return(l=ai(er(a.prototype),"setHiddens",this))===null||l===void 0?void 0:l.call(this)}this.optionLists[0].hidden=!1,this.optionLists[0].items[0]&&(this.optionLists[0].items[0].hidden=!1),this.optionLists[0].items.slice(1).forEach(function(u){u.hidden=!0}),this.modifier==="form"&&(this.statementLists[0].hidden=!1,this.statementLists[0].items.forEach(function(u){u.hidden=!1}))}},{key:"getItemScheme",value:function(){if(!cm(this,r,n).call(this)){var l;return(l=ai(er(a.prototype),"getItemScheme",this))===null||l===void 0?void 0:l.call(this)}var u={form:APP.itemSchemes.FORM,"single-line":APP.itemSchemes.SL_FORM};return u[this.modifier]}}]),a}(e);function n(){return this.type===APP.questionTypes.TEXTINPUT}};var tq=[xP,AP,IP,MP,zP,WP,KP,QP,eS,nS,SP],iS=function(e){return tq.reduce(function(r,n){return n(r)},e)};function fm(t){return fm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fm(t)}function oS(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function rq(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){oS(o,n,i,a,s,"next",l)}function s(l){oS(o,n,i,a,s,"throw",l)}a(void 0)})}}function aS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?aS(Object(r),!0).forEach(function(n){G(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ot(t){return oq(t)||iq(t)||lS(t)||nq()}function nq(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function iq(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oq(t){if(Array.isArray(t))return pm(t)}function sS(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=lS(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function lS(t,e){if(!!t){if(typeof t=="string")return pm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pm(t,e)}}function pm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function aq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function sq(t,e,r){return e&&uS(t.prototype,e),r&&uS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function at(){return typeof Reflect!="undefined"&&Reflect.get?at=Reflect.get:at=function(e,r,n){var i=lq(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},at.apply(this,arguments)}function lq(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ne(t),t!==null););return t}function uq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dm(t,e)}function dm(t,e){return dm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},dm(t,e)}function cq(t){var e=pq();return function(){var n=Ne(t),i;if(e){var o=Ne(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return fq(this,i)}}function fq(t,e){if(e&&(fm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W(t)}function W(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ne(t){return Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ne(t)}function G(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var cS=function(t){uq(r,t);var e=cq(r);function r(n,i){var o;return aq(this,r),o=e.call(this,i),G(W(o),"_type",APP.questionTypes.SINGLECHOICE),G(W(o),"_modifier","default"),G(W(o),"description",""),G(W(o),"qNumber",0),G(W(o),"customID",""),G(W(o),"statementLists",[]),G(W(o),"optionLists",[]),G(W(o),"labelList",{list:null,showLabels:!1}),G(W(o),"isPrivate",!1),G(W(o),"isInline",!1),G(W(o),"requireType",APP.requireTypes.NONE),G(W(o),"notApplicable",!1),G(W(o),"useInitialValues",!1),G(W(o),"minAnswers",!1),G(W(o),"maxAnswers",!1),G(W(o),"parentID",null),G(W(o),"wizardMode",!1),G(W(o),"isDefault",!1),G(W(o),"randomizeStatements",!1),G(W(o),"randomizeOptions",!1),G(W(o),"pinned",!1),G(W(o),"details",{}),G(W(o),"jumps",[]),G(W(o),"displayLogics",[]),G(W(o),"simpleChoicesViewType",""),G(W(o),"matrixMobileViewType",""),G(W(o),"minValue",0),G(W(o),"maxValue",100),G(W(o),"constantSum",{enabled:!1,mode:"exact",overflowValidation:"show-error",exact:100,rangeMin:50,rangeMax:100,remainingText:w.get("builder.remaining-text-constant-sum-default-value"),overflowText:w.get("builder.overflow-text-constant-sum-default-value"),totalText:w.get("builder.sum-text-constant-sum-default-value")}),o.props,n&&n.optionLists&&n.statementLists&&(o.optionLists=n.optionLists,o.statementLists=n.statementLists),o.statementLists=(o.statementLists||[]).sort(function(a,s){return a.hidden-s.hidden||a.index-s.index}),o.optionLists=(o.optionLists||[]).sort(function(a,s){return a.hidden-s.hidden||a.index-s.index}),o._type=n&&n.type||o._type,o.register(),o.merged=!1,o.merge(n,!1),o.statementLists.length||(o.statementLists=[new List]),o.optionLists.length||(o.optionLists=[new List]),o.merged=!0,o.details=o.details||{},n&&n.optionLists&&n.statementLists&&o.update(),o.optionLists.length&&o._setSchemes(),o.register(),o._subscribedToSchemes=!1,o._subscribeToSetSchemes(),o}return sq(r,[{key:"parentPage",get:function(){return this.getCachedParent()}},{key:"_subscribeToSetSchemes",value:function(){var i=this;this._subscribedToSchemes||(this._subscribedToSchemes=!0,this.subscribe(this,function(o){var a=o.diffs;a.has("items")&&i._setSchemes()},"list"))}},{key:"icon",get:function(){var i=sS(APP.questionTypesAll),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;if(a.response===this.type){var s=sS(a.modifiers),l;try{for(s.s();!(l=s.n()).done;){var u=l.value;if(u.response===this.modifier)return u.icon}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){i.e(c)}finally{i.f()}return""}},{key:"qNumberText",get:function(){return"Q"+this.qNumber}},{key:"type",get:function(){return this._type},set:function(i){this._type!==i&&(this._type=i,Modifier.apply(this.modifier,this),!!DataFlow.isRegistered(this)&&(this.props,this.update()))}},{key:"modifier",get:function(){return this._modifier},set:function(i){Modifier.apply(i,this),this.merged&&this.populate(!1),this.props}},{key:"props",get:function(){return this.details[this.type]||(this.details[this.type]=at(Ne(r.prototype),"getDefaultProps",this).call(this)||{}),this.details[this.type]},set:function(i){this.details[this.type]=i}},{key:"optionList",get:function(){return this.optionLists.find(function(i){return!i.hidden})}},{key:"statementList",get:function(){return this.statementLists.find(function(i){return!i.hidden})}},{key:"randomized",get:function(){return this.randomizeStatements||this.randomizeOptions}},{key:"htmlType",get:function(){return this.type===APP.questionTypes.TEXTINPUT||this.type===APP.questionTypes.SLIDERS?this.modifier:this.type}},{key:"update",value:function(){var i=this,o,a;this.setHiddens(),this.optionLists.forEach(function(s){s.maxSelections=i.type===APP.questionTypes.HEATMAP?s.maxSelections||1:s.maxSelections||0}),this.statementLists.forEach(function(s,l){s.parentID===i.id&&s.randomized===i.randomizeStatements&&s.role==="statements"||(s.index=l,s.parentID=i.id,s.randomized=i.randomizeStatements,s.role="statements",s.update())}),this.optionLists.forEach(function(s,l){s.parentID===i.id&&s.randomized===i.randomizeOptions&&s.role==="options"||(s.index=l,s.parentID=i.id,s.randomized=i.randomizeOptions,s.role="options",s.update())}),this.type===APP.questionTypes.TEXTINPUT&&this.modifier==="form"&&(o=this.constantSum)!==null&&o!==void 0&&o.enabled&&this.statementLists[0].items.forEach(function(s){s.respondType=APP.scaleTypes.NUMERIC,s.props.respondType=APP.scaleTypes.NUMERIC,s.notify()}),this.type!==APP.questionTypes.TEXTINPUT&&this.type!==APP.questionTypes.SLIDERS&&(a=this.constantSum)!==null&&a!==void 0&&a.enabled&&(this.constantSum.enabled=!1),at(Ne(r.prototype),"update",this).call(this),this.updateItemProps()}},{key:"_setScaleTypes",value:function(){var i=this,o=this.type===APP.questionTypes.MATRIX;this.type===APP.questionTypes.MATRIX&&this.modifier==="bipolar"&&[].concat(ot(this.statementLists),ot(this.optionLists)).forEach(function(a){a.scaleType!==APP.scaleTypes.RADIOBUTTON&&a.scaleType!==APP.scaleTypes.RANGE&&(a.scaleType=cu(i.type,i.modifier))}),o||[].concat(ot(this.statementLists),ot(this.optionLists)).forEach(function(a){var s;a.scaleType=cu(i.type,i.modifier,(s=i.constantSum)===null||s===void 0?void 0:s.enabled)}),this.type===APP.questionTypes.TEXTINPUT?this.modifier==="single-line"?this.optionLists.forEach(function(a){a.hidden||a.items.forEach(function(s){s.hidden||(s.respondType=i.props.singleLineItem&&i.props.singleLineItem.respondType||APP.respondTypes.TEXT)})}):this.modifier==="multiline"?this.optionLists.forEach(function(a){a.items.forEach(function(s){s.respondType=APP.respondTypes.TEXT})}):this.statementLists.forEach(function(a){var s;a.hidden||(a.scaleType=cu(i.type,i.modifier,(s=i.constantSum)===null||s===void 0?void 0:s.enabled),a.items.forEach(function(l){i.constantSum.enabled?(l.respondType=APP.respondTypes.NUMBER,l.details.form&&(l.details.form.respondType=APP.respondTypes.NUMBER)):l.respondType=l.details.form&&l.details.form.respondType||APP.respondTypes.TEXT}))}):o||this.optionLists.forEach(function(a){a.items.forEach(function(s){s.respondType=fu(a)})})}},{key:"setHiddens",value:function(){var i=[].concat(ot(this.statementLists),ot(this.optionLists));!i.length||(i.forEach(function(o){o.hidden=!0}),at(Ne(r.prototype),"setHiddens",this).call(this),this.optionLists.length&&this.type!==APP.questionTypes.TEXTINPUT&&this.type!==APP.questionTypes.FILE_UPLOAD&&this.optionLists[0].items.forEach(function(o){o.hidden=!1}))}},{key:"_setSchemes",value:function(){this._setScaleTypes();var i=at(Ne(r.prototype),"getItemScheme",this).call(this)||APP.itemSchemes.LIGHT,o=[].concat(ot(this.statementLists),ot(this.optionLists));o.forEach(function(a){a.items.forEach(function(s){var l=!1;s.scheme!==i&&(s.scheme=i,l=!0),l&&s.notify&&s.notify()})}),this.updateItemProps()}},{key:"copy",value:function(i){var o=this,a,s,l=yu({},this);this.constantSum&&(l.constantSum=yu({},this.constantSum)),l.details={},Object.keys(this.details).forEach(function(f){l.details[f]=yu({},o.details[f])}),(a=l.labelList)!==null&&a!==void 0&&a.list&&(l.labelList=yu({},this.labelList),l.labelList.list=l.labelList.list.copy(i)),l.description=this.description,l.statementLists=this.statementLists.map(function(f){return f.copy(i)}),l.optionLists=this.optionLists.map(function(f){return f.copy(i)});var u=l.details[APP.questionTypes.TEXTINPUT];u&&u.singleLineItem&&!i&&(u.singleLineItem.id=H.generate());var c=new r(l,i&&this.id);return c.jumps=this.jumps.map(function(f){return f.copy(c)}),c.displayLogics=this.displayLogics.map(function(f){return f.copy({question:c})}),(s=l.labelList)!==null&&s!==void 0&&s.list&&(c.labelList.list.parentID=c.id),c}},{key:"onBlur",value:function(){this.wizardMode=!1}},{key:"upgrade",value:function(){at(Ne(r.prototype),"upgrade",this).call(this),this._subscribeToSetSchemes(),this.initSkipLogic(),this.initDisplayLogic(),this.statementLists&&[].concat(ot(this.statementLists),ot(this.optionLists)).forEach(function(i){i.upgrade()}),this.update(),this._setSchemes(),this.notify()}},{key:"populate",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;(i||!this.statementLists.length)&&(this.statementLists=[new List,new List]),(i||!this.optionLists.length)&&(this.optionLists=[new List]),this.update(),this._setSchemes()}},{key:"addList",value:function(i,o){return this[o].splice(i,0,new List),this.save()}},{key:"swapLists",value:function(){var i=[this.optionLists.slice(),this.statementLists.slice()];this.statementLists=i[0],this.optionLists=i[1];var o=[this.randomizeOptions,this.randomizeStatements];this.randomizeStatements=o[0],this.randomizeOptions=o[1]}},{key:"clearHTML",value:function(){this.statementLists.forEach(function(i){i.clearHTML()}),this.optionLists.forEach(function(i){i.clearHTML()})}},{key:"setForAllItems",value:function(i,o){var a=function(l){l.items.forEach(function(u){u[i]=o})};this.statementLists.forEach(a),this.optionLists.forEach(a)}},{key:"dispose",value:function(){this._subscribedToSchemes=!1,this.statementLists&&this.statementLists.forEach(function(i){i.dispose()}),this.optionLists&&this.optionLists.forEach(function(i){i.dispose()}),at(Ne(r.prototype),"dispose",this).call(this)}},{key:"serialize",value:function(){var i,o=at(Ne(r.prototype),"serialize",this).call(this);if(o!=null&&(i=o.labelList)!==null&&i!==void 0&&i.list){var a,s=JSON.parse(JSON.stringify(o.labelList)),l=s.list;s.list={fakeList:!0,parentID:l.parentID,scaleType:l.scaleType,items:l==null||(a=l._items)===null||a===void 0?void 0:a.map(function(u){return{fakeItem:!0,label:u.label,scheme:"label",id:u.id,index:u.index,parentID:u.parentID}})},o.labelList=s}return o}},{key:"initSkipLogic",value:function(){this.jumps.length&&this.jumps[0]instanceof SkipLogic||(this.jumps=D.safeRestoreArray(this.jumps))}},{key:"initDisplayLogic",value:function(){this.displayLogics.length&&this.displayLogics[0]instanceof DisplayLogic||(this.displayLogics=D.safeRestoreArray(this.displayLogics))}}],[{key:"restoreData",value:function(i){var o;return(!i.type||i.type==="unknown")&&(console.warn("Question.restoreData: question.type is "+i.type),i.type=APP.questionTypes.SINGLECHOICE),i.statementLists&&(i.statementLists=i.statementLists.filter(function(a){return!a.isDelete}).map(D.restore)),i.optionLists&&(i.optionLists=i.optionLists.filter(function(a){return!a.isDelete}).map(D.restore)),i.constantSum==null&&delete i.constantSum,(o=i.labelList)!==null&&o!==void 0&&o.list?i.labelList.list=new List(i.labelList.list):i.labelList={labelList:null,showLabels:!1},i}},{key:"getMainRoleForType",value:function(i){var o=[APP.questionTypes.TEXTINPUT,APP.questionTypes.NUMERIC,APP.questionTypes.DATE_TIME,APP.questionTypes.SLIDERS,APP.questionTypes.SORTING,APP.questionTypes.MATRIX,APP.questionTypes.HEATMAP,APP.questionTypes.FILE_UPLOAD,APP.questionTypes.SIGNATURE],a=[APP.questionTypes.SINGLECHOICE,APP.questionTypes.MULTICHOICE,APP.questionTypes.DROPDOWN,APP.questionTypes.AUTOCOMPLETE,APP.questionTypes.INSTRUCTION,APP.questionTypes.CODE];if(o.includes(i))return"statements";if(a.includes(i))return"options"}},{key:"fetch",value:function(){var n=rq(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.get(a,APP.metaTypes.QUESTION));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(iS(D));A.register({class:cS,name:"QUESTION",metaType:"question",parentMetaType:APP.metaTypes.PAGE});window.Question=cS;function fS(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function hm(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){fS(o,n,i,a,s,"next",l)}function s(l){fS(o,n,i,a,s,"throw",l)}a(void 0)})}}function dq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hq(t,e,r){return e&&pS(t.prototype,e),r&&pS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mq(t,e,r){yq(t,e),e.set(t,r)}function yq(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vq(t,e,r){var n=dS(t,e,"set");return gq(t,n,r),r}function gq(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function bq(t,e){var r=dS(t,e,"get");return _q(t,r)}function dS(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function _q(t,e){return e.get?e.get.call(t):e.value}var mm=new WeakMap,hS=function(){function t(e,r){if(dq(this,t),mq(this,mm,{writable:!0,value:!1}),!window.$||!$.connection)return this;this.hub=$.connection[e],this.hub.connection.url=APP.signalrUrl,this.objectId=r,this.isConnected=!1,this.onConnect=new Set}return hq(t,[{key:"connection",get:function(){return this.hub.connection}},{key:"connect",value:function(){var e=hm(regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(this.isConnected||this.isConnecting||!this.hub)){a.next=2;break}return a.abrupt("return",this.connectionPromise);case 2:return this.isConnecting=!0,this.connectionPromise=new Promise(function(s,l){i.hub.connection.start({withCredentials:!0}).done(function(){i.isConnecting=!1,i.isConnected=!0,i.hub.server.subscribe(i.objectId).done(s).fail(l)}).fail(function(){i.isConnecting=!1,i.isConnected=!1,i._startReconnect()}),bq(i,mm)||(i.hub.connection.disconnected(function(){i.isConnected=!1,i._startReconnect()}),i.hub.connection.reconnecting(function(){i.hub.connection.stop()}),DataStorage.on("sync-enabled-change",function(){var u=DataStorage.cache.get(i.objectId);!DataStorage.syncEnabled&&u&&DataStorage.failedObjects.set(i.objectId,u.serialize())}),vq(i,mm,!0))}),this.connectionPromise.then(function(){i.onConnect.forEach(function(s){s()})}),a.abrupt("return",this.connectionPromise);case 6:case"end":return a.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"disconnect",value:function(){var e=hm(regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(!this.isConnected||!this.hub)){a.next=2;break}return a.abrupt("return");case 2:return a.abrupt("return",new Promise(function(s,l){i.isConnected=!1,i.hub.server.unsubscribe(i.objectId).done(s).fail(l)}));case 3:case"end":return a.stop()}},n,this)}));function r(){return e.apply(this,arguments)}return r}()},{key:"send",value:function(){var e=hm(regeneratorRuntime.mark(function n(i){var o,a,s,l,u=arguments;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(this.isConnected){f.next=3;break}return f.next=3,this.connect();case 3:for(a=u.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=u[l];return f.abrupt("return",(o=this.hub.server)[i].apply(o,s));case 5:case"end":return f.stop()}},n,this)}));function r(n){return e.apply(this,arguments)}return r}()},{key:"on",value:function(r,n){this.hub&&this.hub.on(r,n)}},{key:"off",value:function(r,n){this.hub&&this.hub.off(r,n)}},{key:"_startReconnect",value:function(){var r=this;setTimeout(function(){var n=navigator.onLine&&z.online;if(!n){r._startReconnect();return}r.connect()},2e3)}}]),t}();function ym(t){return ym=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ym(t)}function mS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function yS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?mS(Object(r),!0).forEach(function(n){bm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):mS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function wq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Fq(t,e,r){return e&&vS(t.prototype,e),r&&vS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vm(t,e)}function vm(t,e){return vm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vm(t,e)}function Oq(t){var e=Sq();return function(){var n=vu(t),i;if(e){var o=vu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Pq(this,i)}}function Pq(t,e){if(e&&(ym(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gm(t)}function gm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function vu(t){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},vu(t)}function bm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _m=function(t){xq(r,t);var e=Oq(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return wq(this,r),n=e.call(this,o),bm(gm(n),"objectID",""),bm(gm(n),"columns",["",""]),n.merge(i),n.register(),n}return Fq(r,[{key:"parentLoop",get:function(){return this.getCachedParent()}},{key:"copy",value:function(){return new r(yS(yS({},this),{},{columns:this.columns.slice()}))}}]),r}(D);A.register({class:_m,name:"LOOP_STATIC_ROW",metaType:"loopField"});function wm(t){return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wm(t)}function gS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bS(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gS(Object(r),!0).forEach(function(n){le(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function gu(t){return Aq(t)||Tq(t)||Eq(t)||kq()}function kq(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Eq(t,e){if(!!t){if(typeof t=="string")return Fm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fm(t,e)}}function Tq(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Aq(t){if(Array.isArray(t))return Fm(t)}function Fm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _S(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Dq(t,e,r){return e&&_S(t.prototype,e),r&&_S(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function xa(){return typeof Reflect!="undefined"&&Reflect.get?xa=Reflect.get:xa=function(e,r,n){var i=Cq(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},xa.apply(this,arguments)}function Cq(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Xr(t),t!==null););return t}function Iq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xm(t,e)}function xm(t,e){return xm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xm(t,e)}function jq(t){var e=Mq();return function(){var n=Xr(t),i;if(e){var o=Xr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Bq(this,i)}}function Bq(t,e){if(e&&(wm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return se(t)}function se(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xr(t){return Xr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xr(t)}function le(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Lq=function(t){Iq(r,t);var e=jq(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return Rq(this,r),n=e.call(this,o),le(se(n),"pages",[]),le(se(n),"type","static"),le(se(n),"staticColumns",[]),le(se(n),"staticList",[]),le(se(n),"question",""),le(se(n),"questionNumericLimit",5),le(se(n),"questionSelector","all-options"),le(se(n),"questionCondition",new Condition),le(se(n),"questionConditionItemID",null),le(se(n),"respondentListID",""),le(se(n),"idField",""),le(se(n),"refField",""),le(se(n),"hierarchyField",""),le(se(n),"limitEnabled",!1),le(se(n),"limit",3),le(se(n),"orderType","sequential"),le(se(n),"choiceText","{{L1}}"),le(se(n),"sortChoices",!1),le(se(n),"breakAllowed",!1),le(se(n),"forceFirstLoop",!1),n.addColumn(),n.addColumn(),n.addRow(),n.addRow(),n.addRow(),n.merge(i),n.register(),n}return Dq(r,[{key:"startPage",get:function(){return this.pages[0]},set:function(i){this.pages[0]=i}},{key:"endPage",get:function(){return this.pages[this.pages.length-1]}},{key:"startQuestion",get:function(){var i;return this.pages.find(function(o){return i=o.questions[0],i}),i}},{key:"restPages",get:function(){return this.pages.slice(1)}},{key:"lNumber",get:function(){return this.index+1}},{key:"parentSurvey",get:function(){var i;return(i=this.pages[0])===null||i===void 0?void 0:i.parentSurvey}},{key:"addRow",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.staticList.length,o=arguments.length>1?arguments[1]:void 0,a=new _m({columns:Array(this.staticColumns.length).fill("")},o);return this.staticList.splice(i,0,a),this.staticList=this.staticList.slice(),a}},{key:"addColumn",value:function(){this.staticColumns.push(H.generate()),this.staticColumns=this.staticColumns.slice(),this.staticList.forEach(function(i){i.columns=[].concat(gu(i.columns),[""])})}},{key:"deleteRow",value:function(i){this.staticList.splice(i,1),this.staticList=this.staticList.slice()}},{key:"deleteColumn",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.staticColumns.length-1;this.staticColumns.splice(i,1),this.staticColumns=this.staticColumns.slice(),this.staticList.forEach(function(o){o.columns.splice(i,1),o.columns=o.columns.slice()})}},{key:"sortPages",value:function(){this.pages.sort(function(i,o){return i.index-o.index})}},{key:"update",value:function(){var i=this;if(xa(Xr(r.prototype),"update",this).call(this),this.sortPages(),["static","question"].includes(this.type)&&this.staticList.length&&this.staticList[0].columns.length!==this.staticColumns.length&&setTimeout(function(){throw"Loop: columns number mismatch ".concat(i.staticList[0].columns.length," ").concat(i.staticColumns.length)}),!this.question||!this.questionSelector){this._updateStaticList();return}this.questionNumericLimit=this.questionNumericLimit|0;var o=new Map,a=new Map;this.staticList=this.staticList.filter(function(p,d){if(p.objectID){var m=i._isSingleInputNumber(i.question)?d:p.objectID;o.set(m,p.id),a.set(m,p.columns.slice(1))}return!p.objectID});var s=this.getAvailableQuestions();if(this.question&&!s.includes(this.question)){this.question=null,requestAnimationFrame(function(){i._updateStaticList()});return}var l=this._isScMcDdAc(this.question)&&this.questionSelector!=="option-position",u=[APP.questionTypes.SINGLECHOICE,APP.questionTypes.DROPDOWN].includes(this.question.type)&&this.questionSelector==="option-position",c=this._isMatrix(this.question)&&this.questionSelector.endsWith("-options"),f=function(){return Array(i.staticColumns.length-1).fill("")};l||u||c?this.question.optionList.items.filter(function(p){return i.question.type!==APP.questionTypes.DROPDOWN||!p.isCallToAction}).reverse().forEach(function(p,d,m){var h=i.addRow(0,o.get(p.id));h.objectID=p.id,h.columns=[u?m.length-d:Edit.removeHTML(p.label)].concat(gu(a.get(p.id)||f()))}):this._isSingleInputNumber(this.question)?Array(this.questionNumericLimit).fill().reverse().forEach(function(p,d,m){var h=m.length-1-d,v=i.addRow(0,o.get(h));v.objectID=i.question.id,v.columns=[m.length-d].concat(gu(a.get(h)||f()))}):(this._isForm(this.question)||this._isMatrix(this.question))&&this.question.statementList.items.slice().reverse().forEach(function(p){var d=i.addRow(0,o.get(p.id));d.objectID=p.id,d.columns=[Edit.removeHTML(p.label)].concat(gu(a.get(p.id)||f()))}),this._updateStaticList()}},{key:"_updateStaticList",value:function(){var i=this;this.sortPages(),this.type!=="question"&&(this.staticList=this.staticList.filter(function(o){return!o.objectID})),this.staticColumns.length<1&&this.addColumn(),this.staticList.length||(this.staticColumns.length<2&&this.addColumn(),this.addRow()),this.type==="static"&&this.staticList.length<3?Array(3-this.staticList.length).fill().forEach(function(){i.addRow()}):this.type==="question"&&(this.staticList=this.staticList.filter(function(o){return o.objectID||o.columns.some(function(a){return a.trim()})})),this.staticList.forEach(function(o,a){o.parentID=i.id,o.index=a})}},{key:"getAvailableQuestions",value:function(){var i=this;return this.parentSurvey?this.parentSurvey.getAllQuestions().filter(function(o){var a=i.parentSurvey.getLoopForPage(o.parentPage);if(a&&a!==i)return!1;var s=o.parentPage.index<i.startPage.index||o.parentPage.index===i.startPage.index&&o.index<i.startPage.questions[0].index;return s&&(i._isScMcDdAc(o)||i._isSingleInputNumber(o)||i._isForm(o)||i._isMatrix(o))}):[]}},{key:"_isScMcDdAc",value:function(i){return[APP.questionTypes.SINGLECHOICE,APP.questionTypes.MULTICHOICE,APP.questionTypes.DROPDOWN,APP.questionTypes.AUTOCOMPLETE].includes(i.type)}},{key:"_isSingleInputNumber",value:function(i){return i&&i.type===APP.questionTypes.TEXTINPUT&&i.modifier==="single-line"&&i.props.singleLineItem.respondType===APP.respondTypes.NUMBER}},{key:"_isForm",value:function(i){return i&&i.type===APP.questionTypes.TEXTINPUT&&i.modifier==="form"}},{key:"_isMatrix",value:function(i){if(!i)return!1;var o=i.optionList&&[APP.scaleTypes.RADIOBUTTON,APP.scaleTypes.CHECKBOX,APP.scaleTypes.NUMERIC,APP.scaleTypes.RANGE].includes(i.optionList.scaleType);return i.type===APP.questionTypes.MATRIX&&i.modifier==="simple"&&o}},{key:"copy",value:function(){return new r(bS(bS({},this),{},{pages:this.pages.slice(),staticList:this.staticList.map(function(i){return i.copy()})}))}},{key:"serialize",value:function(){var i=xa(Xr(r.prototype),"serialize",this).call(this);return i.pages=this.pages.map(function(o){return o.id}).filter(function(o){return o}),i.staticList=this.staticList.map(function(o){return o.serialize()}),this.question&&(delete i.question,i.questionID=this.question.id),delete i.questionCondition,i.questionConditionOperator=this.questionCondition.operator,i.questionConditionValue=this.questionCondition.value,i}}],[{key:"restoreData",value:function(i){return i.staticList&&(i.staticList=i.staticList.map(function(o){return D.restore(o)})),i.pages&&(i.pages=i.pages.map(function(o){return DataStorage.cache.get(o)}).filter(function(o){return o})),i.questionID&&(i.question=DataStorage.cache.get(i.questionID)),i.questionCondition=new Condition({operator:i.questionConditionOperator,value:i.questionConditionValue}),i}}]),r}(D);A.register({class:Lq,name:"LOOP",metaType:"loop"});function Om(t){return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Om(t)}function wS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Nq(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wS(Object(r),!0).forEach(function(n){Ye(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function qq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zq(t,e,r){return e&&FS(t.prototype,e),r&&FS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pm(t,e)}function Pm(t,e){return Pm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Pm(t,e)}function Uq(t){var e=Wq();return function(){var n=bu(t),i;if(e){var o=bu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Vq(this,i)}}function Vq(t,e){if(e&&(Om(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ke(t)}function Ke(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function bu(t){return bu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bu(t)}function Ye(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var si=function(t){Hq(r,t);var e=Uq(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return qq(this,r),n=e.call(this,o),Ye(Ke(n),"index",0),Ye(Ke(n),"groupID",H.generate()),Ye(Ke(n),"option",null),Ye(Ke(n),"title",""),Ye(Ke(n),"code",0),Ye(Ke(n),"isIgnored",!1),Ye(Ke(n),"edited",!1),Ye(Ke(n),"value",null),Ye(Ke(n),"isNoAnswer",!1),Ye(Ke(n),"isNotApplicable",!1),n.merge(i),n.register(),n}return zq(r,[{key:"copy",value:function(){return new r(Nq({},this))}}]),r}(D);A.register({class:si,name:"REPORT_ANSWER",metaType:"reportAnswer"});function Sm(t){return Sm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sm(t)}function xS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gq(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xS(Object(r),!0).forEach(function(n){rr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function $q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Kq(t,e,r){return e&&OS(t.prototype,e),r&&OS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yq(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&km(t,e)}function km(t,e){return km=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},km(t,e)}function Xq(t){var e=Jq();return function(){var n=_u(t),i;if(e){var o=_u(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Qq(this,i)}}function Qq(t,e){if(e&&(Sm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tr(t)}function tr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jq(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _u(t){return _u=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_u(t)}function rr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var li=function(t){Yq(r,t);var e=Xq(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return $q(this,r),n=e.call(this,o),rr(tr(n),"index",0),rr(tr(n),"statement",null),rr(tr(n),"title",""),rr(tr(n),"oppositeTitle",""),rr(tr(n),"isIgnored",!1),rr(tr(n),"edited",!1),rr(tr(n),"groupID",H.generate()),n.merge(i),n.register(),n}return Kq(r,[{key:"copy",value:function(){return new r(Gq({},this))}}]),r}(D);A.register({class:li,name:"REPORT_STATEMENT",metaType:"reportStatement"});function Zq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e6(t,e,r){return e&&PS(t.prototype,e),r&&PS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function St(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Em=function(){function t(e){Zq(this,t),St(this,"name",""),St(this,"optionID",""),St(this,"value",0),St(this,"percent",0),St(this,"cumulativePercent",0),St(this,"stackSharePercent",0),St(this,"code",0),St(this,"score",0),St(this,"total",0),DataObject.merge(this,e)}return e6(t,[{key:"isNoAnswer",get:function(){return this.optionID===H.ZERO}},{key:"isNotApplicable",get:function(){return this.optionID==="00000000-0000-0000-0000-000000000001"}}],[{key:"restore",value:function(r){return r.value=C(r.value),r.total=C(r.total),r.percent=C(r.percent),r.cumulativePercent=C(r.cumulativePercent),r.stackSharePercent=C(r.stackSharePercent),r.name=r.columnName,new t(r)}}]),t}();function SS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function t6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?SS(Object(r),!0).forEach(function(n){fe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SS(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function r6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n6(t,e,r){return e&&kS(t.prototype,e),r&&kS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function fe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tm=function(){function t(e){r6(this,t),fe(this,"n",0),fe(this,"min",0),fe(this,"max",0),fe(this,"mean",0),fe(this,"q1",0),fe(this,"q3",0),fe(this,"median",0),fe(this,"range",0),fe(this,"stdDev",0),fe(this,"sum",0),fe(this,"stdErrMean",0),fe(this,"variance",0),fe(this,"binSize",0),fe(this,"binSizeDecimalSignsNumber",0),fe(this,"detractors",0),fe(this,"passives",0),fe(this,"promoters",0),fe(this,"nps",0),DataObject.merge(this,e)}return n6(t,null,[{key:"restore",value:function(r){return r=t6({},r),Object.keys(r).forEach(function(n){r[n]=C(r[n])}),new t(r)}}]),t}();function ES(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function i6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ES(Object(r),!0).forEach(function(n){Xe(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ES(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function o6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a6(t,e,r){return e&&TS(t.prototype,e),r&&TS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Xe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Am=function(){function t(e){o6(this,t),Xe(this,"name",""),Xe(this,"rightLabel",""),Xe(this,"items",[]),Xe(this,"metrics",new Tm),Xe(this,"respondentsTotal",0),Xe(this,"respondentsValuable",0),Xe(this,"respondentsNotApplicable",0),Xe(this,"scaleMin",0),Xe(this,"scaleMax",0),Xe(this,"isEmpty",!1),DataObject.merge(this,e)}return a6(t,null,[{key:"restore",value:function(r){return r=i6({},r),delete r.answers,r.metrics&&(r.metrics=Tm.restore(r.metrics)),r.items=r.data.map(function(n){return Em.restore(n)}),new t(r)}}]),t}();var C=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return e==="NaN"||e==="Infinity"||e==="-Infinity"?"\u2014":typeof e!="number"?e:+(e||0).toFixed(r)};function s6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l6(t,e,r){return e&&AS(t.prototype,e),r&&AS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Oa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var RS=function(){function t(e){s6(this,t),Oa(this,"r",0),Oa(this,"rSquared",0),Oa(this,"adjustedRSquared",0),Oa(this,"rmse",0),Oa(this,"durbinWatson",0),DataObject.merge(this,e)}return l6(t,null,[{key:"restore",value:function(r){return new t({r:C(r[0]||0,3),rSquared:C(r[1]||0,3),adjustedRSquared:C(r[2]||0,3),rmse:C(r[3]||0,3),durbinWatson:C(r[4]||0,3)})}}]),t}();function DS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function IS(t,e,r){return e&&CS(t.prototype,e),r&&CS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jS=function(){function t(e){DS(this,t),Rm(this,"regression",null),Rm(this,"residual",null),Rm(this,"total",null),DataObject.merge(this,e)}return IS(t,null,[{key:"restore",value:function(r){return new t({regression:Dm.restore(r[0]||[]),residual:Dm.restore(r[1]||[]),total:Dm.restore(r[2]||[])})}}]),t}(),Dm=function(){function t(e){DS(this,t),this.sumOfSquares=0,this.df=0,this.meanSquare=0,this.f=0,this.p=0,DataObject.merge(this,e)}return IS(t,null,[{key:"restore",value:function(r){return new t({sumOfSquares:C(r[0]||0,3),df:C(r[1]||0,3),meanSquare:C(r[2]||0,3),f:C(r[3]||0,3),p:C(r[4]||0,3)})}}]),t}();function BS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function LS(t,e,r){return e&&MS(t.prototype,e),r&&MS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var NS=function(){function t(e){BS(this,t),wu(this,"items",[]),wu(this,"dependentTitle",""),wu(this,"titles",[]),wu(this,"removedTitles",[]),DataObject.merge(this,e)}return LS(t,null,[{key:"restore",value:function(r){return new t({items:r.coefficients.map(u6.restore),dependentTitle:r.variablesFullNames[0],titles:r.coefficientsVariablesNames,removedTitles:r.variablesFullNames.filter(function(n){return!r.coefficientsVariablesNames.includes(n)})})}}]),t}(),u6=function(){function t(e){BS(this,t),this.unstandardized=0,this.standardError=0,this.standardized=0,this.t=0,this.p=0,this.confIntervalLower=0,this.confIntervalUpper=0,this.collinearityTolerance=0,this.collinearityVIF=0,DataObject.merge(this,e)}return LS(t,null,[{key:"restore",value:function(r){return new t({unstandardized:C(r[0],3),standardError:C(r[1],3),standardized:C(r[2],3),t:C(r[3],3),p:C(r[4],3),confIntervalLower:C(r[5],3),confIntervalUpper:C(r[6],3),collinearityTolerance:C(r[7],3),collinearityVIF:C(r[8],3)})}}]),t}();function De(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HS(t,e,r){return e&&zS(t.prototype,e),r&&zS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var US=function(){function t(e){qS(this,t),this.items=[],this.titles=[],DataObject.merge(this,e)}return HS(t,null,[{key:"restore",value:function(r){return new t({items:r.metrics.map(c6.restore),titles:r.variablesFullNames})}}]),t}(),c6=function(){function t(e){qS(this,t),De(this,"binSize",0),De(this,"binSizeDecimalSignsNumber",0),De(this,"max",0),De(this,"mean",0),De(this,"median",0),De(this,"min",0),De(this,"n",0),De(this,"q1",0),De(this,"q3",0),De(this,"range",0),De(this,"stdDev",0),De(this,"stdErrMean",0),De(this,"variance",0),DataObject.merge(this,e)}return HS(t,null,[{key:"restore",value:function(r){return new t({binSize:C(r.binSize,3),binSizeDecimalSignsNumber:C(r.binSizeDecimalSignsNumber,3),max:C(r.max,3),mean:C(r.mean,3),median:C(r.median,3),min:C(r.min,3),n:C(r.n,3),q1:C(r.q1,3),q3:C(r.q3,3),range:C(r.range,3),stdDev:C(r.stdDev,3),stdErrMean:C(r.stdErrMean,3),variance:C(r.variance,3)})}}]),t}();function VS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function GS(t,e,r){return e&&WS(t.prototype,e),r&&WS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $S(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var KS=function(){function t(e){VS(this,t),$S(this,"items",[]),$S(this,"titles",[]),DataObject.merge(this,e)}return GS(t,null,[{key:"restore",value:function(r){return new t({items:r.collinearityMatrix.map(f6.restore),titles:r.collinearityMatrixVariablesNames})}}]),t}(),f6=function(){function t(e){VS(this,t),this.dimension=0,this.eigenvalue=0,this.conditionIndex=0,this.intercept=0,this.vars=[],DataObject.merge(this,e)}return GS(t,null,[{key:"restore",value:function(r){return new t({dimension:C(r[0],3),eigenvalue:C(r[1],3),conditionIndex:C(r[2],3),vars:r.slice(3).map(function(n){return C(n,3)})})}}]),t}();function p6(t,e){return y6(t)||m6(t,e)||h6(t,e)||d6()}function d6(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h6(t,e){if(!!t){if(typeof t=="string")return YS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return YS(t,e)}}function YS(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m6(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function y6(t){if(Array.isArray(t))return t}function XS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QS(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function JS(t,e,r){return e&&QS(t.prototype,e),r&&QS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ZS=function(){function t(e){XS(this,t),Fu(this,"predicted",null),Fu(this,"residual",null),Fu(this,"stdPredicted",null),Fu(this,"stdResidual",null),DataObject.merge(this,e)}return JS(t,null,[{key:"restore",value:function(r){return new t({predicted:xu.restore(r.residualsStat[1]||{}),residual:xu.restore(r.residualsStat[0]||{}),stdPredicted:xu.restore(r.residualsStat[3]||{}),stdResidual:xu.restore(r.residualsStat[2]||{})})}}]),t}(),xu=function(){function t(e){XS(this,t),this.min=0,this.max=0,this.mean=0,this.stdDev=0,this.n=0,DataObject.merge(this,e)}return JS(t,null,[{key:"restore",value:function(r){return Object.entries(r).forEach(function(n){var i=p6(n,2),o=i[0],a=i[1];r[o]=C(a)}),new t(r)}}]),t}();function v6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ek(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g6(t,e,r){return e&&ek(t.prototype,e),r&&ek(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Cm(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tk=function(){function t(e){v6(this,t),Cm(this,"aic",0),Cm(this,"bic",0),Cm(this,"pseudoRSquared",0),DataObject.merge(this,e)}return g6(t,null,[{key:"restore",value:function(r){return new t({aic:C(r[0]||0,3),bic:C(r[1]||0,3),pseudoRSquared:C(r[2]||0,3)})}}]),t}();function b6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _6(t,e,r){return e&&rk(t.prototype,e),r&&rk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nk=function(){function t(e){b6(this,t),kt(this,"summary",null),kt(this,"anova",null),kt(this,"coefficients",null),kt(this,"descriptives",null),kt(this,"collinearity",null),kt(this,"residuals",null),kt(this,"infoCriteria",null),kt(this,"errors",[]),kt(this,"warnings",{coefficients:[],collinearity:[]}),DataObject.merge(this,e)}return _6(t,null,[{key:"restore",value:function(r){return new t({summary:RS.restore(r.modelSummary),infoCriteria:tk.restore(r.informationCreteria),anova:jS.restore(r.anova),coefficients:NS.restore(r),descriptives:US.restore(r),collinearity:KS.restore(r),residuals:ZS.restore(r),warnings:{coefficients:r.coefficientsWarnings,collinearity:r.collinearityMatrixWarnings},errors:r.errors.map(function(n){return{source:n.source,message:n.message.split("\n")[0]}})})}}]),t}();function ik(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function w6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ik(Object(r),!0).forEach(function(n){Te(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ik(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function F6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ok(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function x6(t,e,r){return e&&ok(t.prototype,e),r&&ok(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Te(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ak=function(){function t(e){F6(this,t),Te(this,"n",0),Te(this,"min",0),Te(this,"max",0),Te(this,"mean",0),Te(this,"median",0),Te(this,"q1",0),Te(this,"q3",0),Te(this,"range",0),Te(this,"stdDev",0),Te(this,"stdErrMean",0),Te(this,"variance",0),Te(this,"binSize",0),Te(this,"binSizeDecimalSignsNumber",0),DataObject.merge(this,e)}return x6(t,null,[{key:"restore",value:function(r){return r=w6({},r),Object.keys(r).forEach(function(n){r[n]=C(r[n],3)}),new t(r)}}]),t}();function sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function O6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?sk(Object(r),!0).forEach(function(n){Et(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function P6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function S6(t,e,r){return e&&lk(t.prototype,e),r&&lk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Et(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uk=function(){function t(e){P6(this,t),Et(this,"studentT",0),Et(this,"df",0),Et(this,"pValue",0),Et(this,"meanDiff",0),Et(this,"stdDev",0),Et(this,"stdError",0),Et(this,"confIntervalLower",0),Et(this,"confIntervalUpper",0),DataObject.merge(this,e)}return S6(t,null,[{key:"restore",value:function(r){return r=O6({},r),Object.keys(r).forEach(function(n){r[n]=C(r[n],3)}),new t(r)}}]),t}();function ck(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function k6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ck(Object(r),!0).forEach(function(n){st(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ck(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function E6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function T6(t,e,r){return e&&fk(t.prototype,e),r&&fk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pk=function(){function t(e){E6(this,t),st(this,"visualizationId",""),st(this,"f",0),st(this,"fSig",0),st(this,"errorMessage",""),st(this,"n",0),st(this,"samplesMetrics",[]),st(this,"resultSets",[]),st(this,"titles",["","","",""]),st(this,"isNumberClassificators",!1),DataObject.merge(this,e)}return T6(t,null,[{key:"restore",value:function(r){return r=k6({},r),r.samplesMetrics=r.samplesMetrics.map(function(n){return ak.restore(n)}),r.resultSets=r.resultSets.map(function(n){return uk.restore(n)}),r.f=C(r.f,3),r.fSig=C(r.fSig,3),r.reportItemID&&(r.visualizationId=r.reportItemID),new t(r)}}]),t}();function A6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function R6(t,e,r){return e&&dk(t.prototype,e),r&&dk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var hk=function(){function t(e){A6(this,t),this.url=e.heatmapImgUrl||"",this.filteredCasesAmount=e.filteredCasesAmount||0,this.heatmapPointsAmount=e.heatmapPointsAmount||0}return R6(t,null,[{key:"restore",value:function(r){return new t(r)}}]),t}();function mk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function D6(t,e,r){return e&&mk(t.prototype,e),r&&mk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function C6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ui(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var yk=D6(function t(e){C6(this,t),ui(this,"id",""),ui(this,"caseID",""),ui(this,"name",0),ui(this,"size",0),ui(this,"thumbURL",""),ui(this,"extension",""),DataObject.merge(this,e)});function vk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I6(t,e,r){return e&&vk(t.prototype,e),r&&vk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function j6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ci(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gk=I6(function t(e){j6(this,t),ci(this,"observed",0),ci(this,"expected",0),ci(this,"difference",0),ci(this,"totalPercent",0),ci(this,"rowPercent",0),ci(this,"colPercent",0),DataObject.merge(this,e)});function bk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function B6(t,e,r){return e&&bk(t.prototype,e),r&&bk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function M6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _k=B6(function t(e){M6(this,t),lt(this,"chiSquare",0),lt(this,"degreesOfFreedom",0),lt(this,"pValue",0),lt(this,"phiCoeff",0),lt(this,"coeffOfContingency",0),lt(this,"cramerCoeff",0),lt(this,"lambdaS",0),lt(this,"lambdaR",0),lt(this,"lambdaC",0),lt(this,"observationsGrandTotal",0),DataObject.merge(this,e)});function wk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function L6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wk(Object(r),!0).forEach(function(n){Tt(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function N6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function q6(t,e,r){return e&&Fk(t.prototype,e),r&&Fk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xk=function(){function t(e){N6(this,t),Tt(this,"colDimensions",[]),Tt(this,"rowDimensions",[]),Tt(this,"dataRows",[]),Tt(this,"colsMeans",[]),Tt(this,"colsTotals",[]),Tt(this,"rowsMeans",[]),Tt(this,"rowsTotals",[]),Tt(this,"statistics",null),DataObject.merge(this,e)}return q6(t,null,[{key:"restore",value:function(r){r=L6({},r);var n=function(o){return!(o.length===1&&!o[0])};return r.rowDimensions=r.rowDimensions.filter(n),r.colDimensions=r.colDimensions.filter(n),r.dataRows=r.dataRows.map(function(i){return i.map(function(o){return o.difference=o.observed-o.expected,new gk(o)})}),r.statistics=new _k(r.statistics),new t(r)}}]),t}();function Ok(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function z6(t,e,r){return e&&Ok(t.prototype,e),r&&Ok(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function H6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Pk=z6(function t(e){H6(this,t),Pa(this,"correlationCoeffR",0),Pa(this,"pValue",0),Pa(this,"fisherZ",0),Pa(this,"n",0),Pa(this,"isEmpty",!1),this.isEmpty=e===null,DataObject.merge(this,e)});function Sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function U6(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sk(Object(r),!0).forEach(function(n){Ou(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function V6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W6(t,e,r){return e&&kk(t.prototype,e),r&&kk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ou(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ek=function(){function t(e){V6(this,t),Ou(this,"correlationType",""),Ou(this,"variables",[]),Ou(this,"dataRows",[]),DataObject.merge(this,e)}return W6(t,null,[{key:"restore",value:function(r){return r=U6({},r),r.dataRows=r.dataRows.map(function(n){return n.map(function(i){return new Pk(i)})}),new t(r)}}]),t}();function G6(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Tk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $6(t,e,r){return e&&Tk(t.prototype,e),r&&Tk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ge(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Im=function(){function t(e){G6(this,t),ge(this,"visualizationTypes",[]),ge(this,"visualizationId",""),ge(this,"plotName",""),ge(this,"visualizationsSettings",[]),ge(this,"series",[]),ge(this,"files",[]),ge(this,"crosstab",null),ge(this,"correlation",null),ge(this,"regression",null),ge(this,"tTest",null),ge(this,"heatmap",null),ge(this,"isEmpty",!1),ge(this,"isError",!1),ge(this,"notEnoughData",!1),ge(this,"errorCodes",[]),ge(this,"totalCasesAmount",0),ge(this,"filteredCasesAmount",0),DataObject.merge(this,e)}return $6(t,[{key:"type",get:function(){return this.crosstab?"pivot":this.correlation?"correlation":this.tTest?"t-test":this.heatmap?"heatmap":"plain"}},{key:"data",get:function(){var r={plain:"series",pivot:"crosstab",correlation:"correlation",regression:"regression","t-test":"tTest",heatmap:"heatmap"},n=r[this.type];return this[n]}},{key:"isVisualizationSupported",value:function(r){if(this.visualizationId&&this.visualizationId!==r.id)return!1;if(["NPSGauge","NPSPieChart","NPSBarChart","NPSColumnChart","NPSTable"].includes(r.type))return this.visualizationTypes.includes(r.type);var n=!this.visualizationTypes.length||this.visualizationTypes.includes(r.type);return this.type==="correlation"?n&&(this.isEmpty||this.data.correlationType===r.correlationType):r.type==="LinearRegression"?!0:this.type==="t-test"?n&&(this.isEmpty||!this.data.visualizationId||this.data.visualizationId===r.id):n}},{key:"getSettingsForVisualization",value:function(r){return this.visualizationsSettings.find(function(n){return n.visualizationTypes.includes(r.type)})}}],[{key:"restore",value:function(r){return new t({visualizationTypes:r.targetVisualizationTypes,visualizationId:r.targetVisualizationID,plotName:r.targetPlotName,visualizationsSettings:r.axisSettings,series:r.reportSeriesDataList&&r.reportSeriesDataList.map(function(n){return Am.restore(n)}),files:r.files&&r.files.map(function(n){return new yk(n)}),heatmap:r.heatmapImgUrl&&hk.restore(r),crosstab:r.pivotClientModel&&xk.restore(r.pivotClientModel),correlation:r.correlationClientModel&&Ek.restore(r.correlationClientModel),regression:r.regressionClientModel&&nk.restore(r.regressionClientModel.regressionResult),tTest:r.tTestResult&&pk.restore(r.tTestResult),isError:r.isError||!1,notEnoughData:r.notEnoughData||!1,errorCodes:r.errorCodes,totalCasesAmount:r.totalCasesAmount,filteredCasesAmount:r.filteredCasesAmount})}}]),t}();function Ak(t){return Q6(t)||X6(t)||Y6(t)||K6()}function K6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y6(t,e){if(!!t){if(typeof t=="string")return jm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jm(t,e)}}function X6(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Q6(t){if(Array.isArray(t))return jm(t)}function jm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Pu=function(e,r){var n,i="";if(r.loopRowID){var o=DataStorage.cache.get(r.loopRowID);i="L".concat(o.index+1)}var a=function(k){var E=[];return k.parentList.parentQuestion.statementLists.forEach(function(j){j.hidden||j.items.forEach(function(L){E.push(L)})}),E.indexOf(k)};if(r.variableID){var s=DataStorage.cache.get(r.variableID);return{icon:"variable",id:"",title:s.title}}if(r.isCustomField){var l=[].concat(Ak(r.statements),Ak(r.answers))[0];if(r.question.type===APP.questionTypes.TEXTINPUT&&r.question.modifier==="single-line")return{icon:"form-textbox",id:"Q"+r.question.qNumber+i,title:Edit.removeHTML(r.question.description)};var u=l.option?l.option.index:a(l.statement);return{icon:"form-textbox",id:"Q"+r.question.qNumber+"."+(u+1)+i,title:l.title}}if(r.question.type===APP.questionTypes.MULTICHOICE&&["correlation","linear-regression","t-test-paired","t-test-independent"].includes(e)){var c=r.answers[0];return{icon:r.question.icon,id:"Q".concat(r.question.qNumber,".").concat(c.option.index+1)+i,title:[c.option.label,r.question.description].filter(function(S){return S}).join(" | ")}}var f=r.question.type===APP.questionTypes.SLIDERS&&["correlation","linear-regression","t-test-paired","t-test-independent"].includes(e),p=r.question.type===APP.questionTypes.SORTING&&e!=="plain";if(f||p){var d=r.statements[0];return{icon:r.question.icon,id:"Q".concat(r.question.qNumber,".").concat(a(d.statement)+1)+i,title:[d.statement.label,r.question.description].filter(function(S){return S}).join(" | ")}}if(r.question.type===APP.questionTypes.TEXTINPUT&&r.question.modifier==="form"&&(e!=="plain"||!((n=r.question.constantSum)!==null&&n!==void 0&&n.enabled))){var m=r.statements[0],h=ut.getRespondType(r.question,r.optionList,m);return{icon:Sh(h),id:"Q".concat(r.question.qNumber,".").concat(a(m.statement)+1)+i,title:[m.statement.label,r.question.description].filter(function(S){return S}).join(" | ")}}if(r.question.type===APP.questionTypes.MATRIX){var v="",y="";if(r.question.modifier==="side-by-side"&&(v="."+(r.optionList.index+1),r.optionList.label&&(y=r.optionList.label)),e==="plain"&&![APP.scaleTypes.TEXT,APP.scaleTypes.NUMERIC,APP.scaleTypes.DATE].includes(r.optionList.scaleType))return{icon:"table",id:"Q".concat(r.question.qNumber).concat(v)+i,title:[y,r.question.description].filter(function(S){return S}).join(" | ")};var b="";r.question.modifier==="bipolar"&&(b=" | "+ut.getOppositeTitle(r.question,r.statements[0].statement));var _=e==="plain"&&[APP.scaleTypes.TEXT,APP.scaleTypes.NUMERIC,APP.scaleTypes.DATE].includes(r.optionList.scaleType),x=["correlation","linear-regression","t-test-paired","t-test-independent"].includes(e)&&[APP.scaleTypes.CHECKBOX,APP.scaleTypes.NUMERIC].includes(r.optionList.scaleType);if(_||x){var P=r.answers[0].option.label?" | "+r.answers[0].option.label:"";return{icon:"table",id:"Q".concat(r.question.qNumber).concat(v,".").concat(a(r.statements[0].statement)+1,".").concat(r.answers[0].option.index+1)+i,title:r.statements[0].statement.label+b+P+(y?" | ":"")+y}}return{icon:"table",id:"Q".concat(r.question.qNumber).concat(v,".").concat(a(r.statements[0].statement)+1)+i,title:r.statements[0].statement.label+b+(y?" | ":"")+y}}var F=r.question.icon;return r.question.type===APP.questionTypes.TEXTINPUT&&r.question.modifier==="single-line"&&(F=Sh(ut.getRespondType(r.question))),{icon:F,id:"Q"+r.question.qNumber+i,title:r.question.description}},Rk=function(e,r,n){if(r.variableID){var i=DataStorage.cache.get(r.variableID);return i.title}if(e==="plain")if(r.question.type===APP.questionTypes.MATRIX&&[APP.scaleTypes.TEXT,APP.scaleTypes.NUMERIC,APP.scaleTypes.DATE].includes(r.optionList.scaleType)){var o=Edit.removeHTML(r.statements[0].statement.label,n);r.question.modifier==="bipolar"&&(o+=" | "+ut.getOppositeTitle(r.question,r.statements[0].statement));var a;return r.statements.length?a=r.statements[0].statement.label:r.answers.length&&(a=r.answers[0].option.label),Edit.removeHTML(a,n)&&(o+=" | "+Edit.removeHTML(a,n)),o}else return Pu(e,r).title;else{if(e==="pivot")return[APP.questionTypes.MATRIX,APP.questionTypes.SORTING].includes(r.question.type)?Edit.removeHTML(r.statements[0].statement.label,n):Edit.removeHTML(r.question.description,n);if(["correlation","linear-regression","t-test-paired","t-test-independent"].includes(e)){var s;if([APP.questionTypes.TEXTINPUT,APP.questionTypes.SLIDERS,APP.questionTypes.SORTING].includes(r.question.type)&&r.question.modifier!=="single-line"&&!((s=r.question.constantSum)!==null&&s!==void 0&&s.enabled))return Edit.removeHTML(r.statements[0].statement.label,n);if(r.question.type===APP.questionTypes.MATRIX)if([APP.scaleTypes.CHECKBOX,APP.scaleTypes.NUMERIC].includes(r.optionList.scaleType)){var l=Edit.removeHTML(r.statements[0].statement.label,n);return Edit.removeHTML(r.answers[0].option.label,n)&&(l+=" | "+Edit.removeHTML(r.answers[0].option.label,n)),l}else{var u=Edit.removeHTML(r.statements[0].statement.label,n);return r.question.modifier==="bipolar"&&(u+=" | "+ut.getOppositeTitle(r.question,r.statements[0].statement)),u}else return r.question.type===APP.questionTypes.MULTICHOICE?Edit.removeHTML(r.answers[0].option.label,n):Edit.removeHTML(r.question.description,n)}}};var Bm=new Map,Su=new Set,Qr=function(e,r){return new Promise(function(n,i){r.resolve=n,r.reject=i;var o=Bm.get(e);o||(o=[],Bm.set(e,o));var a=function(u){Su.add(e),u().then(function(c){u.resolve(c),Su.delete(e),s()}).catch(function(c){u.reject(c),Su.delete(e),s()})},s=function(){var u=o.shift();u&&a(u)};!o.length&&!Su.has(e)?a(r):o.push(r)})},Mm=function(e,r){var n=Bm.get(e);if(!!n){var i=n.indexOf(r);i!==-1&&n.splice(i,1)}};function Lm(t){return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lm(t)}function Dk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ck(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dk(Object(r),!0).forEach(function(n){Se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function At(t){return tz(t)||ez(t)||Z6(t)||J6()}function J6(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z6(t,e){if(!!t){if(typeof t=="string")return Nm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nm(t,e)}}function ez(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tz(t){if(Array.isArray(t))return Nm(t)}function Nm(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ik(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function jk(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){Ik(o,n,i,a,s,"next",l)}function s(l){Ik(o,n,i,a,s,"throw",l)}a(void 0)})}}function rz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nz(t,e,r){return e&&Bk(t.prototype,e),r&&Bk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function fi(){return typeof Reflect!="undefined"&&Reflect.get?fi=Reflect.get:fi=function(e,r,n){var i=iz(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},fi.apply(this,arguments)}function iz(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=nr(t),t!==null););return t}function oz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qm(t,e)}function qm(t,e){return qm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qm(t,e)}function az(t){var e=lz();return function(){var n=nr(t),i;if(e){var o=nr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return sz(this,i)}}function sz(t,e){if(e&&(Lm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pe(t)}function Pe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nr(t)}function Se(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ut=function(t){oz(r,t);var e=az(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return rz(this,r),n=e.call(this,i,"visualizations",o),Se(Pe(n),"positionMode","block"),Se(Pe(n),"isPrivate",!1),Se(Pe(n),"filterGroups",[]),Se(Pe(n),"emptyDataSets",[]),Se(Pe(n),"actualDataSets",[]),Se(Pe(n),"dataReady",!1),Se(Pe(n),"dirty",!1),Se(Pe(n),"notPopulated",!1),Se(Pe(n),"_fetchEnqueued",!1),Se(Pe(n),"_fetching",!1),Se(Pe(n),"_fetchId",0),Se(Pe(n),"detractors",null),Se(Pe(n),"promoters",null),Se(Pe(n),"enabledPassives",!1),n.merge(i),n.update(),n.register(),n}return nz(r,[{key:"parentPage",get:function(){return this.getCachedParent()}},{key:"dataSets",get:function(){return this.actualDataSets.length?this.actualDataSets:this.emptyDataSets}},{key:"stats",get:function(){return this.actualDataSets.length?{filtered:this.actualDataSets[0].filteredCasesAmount,total:this.actualDataSets[0].totalCasesAmount}:{filtered:0,total:0}}},{key:"clearData",value:function(){this.emptyDataSets=[],this.actualDataSets=[],nt.responseCaches.delete(this._getFetchPath())}},{key:"getAllSources",value:function(){return[]}},{key:"getAvailableVisualizations",value:function(){return[]}},{key:"generateEmptyDataSets",value:function(){}},{key:"attachVisualization",value:function(){}},{key:"detachVisualization",value:function(){}},{key:"update",value:function(){var i=this;fi(nr(r.prototype),"update",this).call(this);var o=function a(s){if(s.variableID){var l=DataStorage.cache.get(s.variableID);return l.sources.some(a)}return s.question.isPrivate};this.isPrivate=this.getAllSources().some(function(a){return o(a)}),this.filterGroups.forEach(function(a){a.parentID=i.id}),this.getAllSources().forEach(function(a){a.parentID=i.id})}},{key:"invalidateData",value:function(){this.dataReady=!1,this.notify()}},{key:"fetchIfInvalidated",value:function(i,o,a){!this.dataReady&&!this._fetchEnqueued&&!this._fetching&&this.fetchData(i,null,o,a)}},{key:"_getFetchPath",value:function(){var i;this.type==="plain"?this.source.question&&this.source.question.type===APP.questionTypes.HEATMAP?i="HeatmapContent":i="Content":this.type==="pivot"?i="PivotContent":this.type==="correlation"?i="CorrelationContent":this.type==="t-test-paired"||this.type==="t-test-independent"?i="TTestContent":this.type==="linear-regression"&&(i="RegressionContent");var o=this.parentPage.parentReport;return"ReportBlock/".concat(i,"/").concat(o.id,"/").concat(this.id)}},{key:"fetchEmptyData",value:function(){var n=jk(regeneratorRuntime.mark(function o(a,s,l){var u=this,c,f,p,d,m;return regeneratorRuntime.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(!(this.emptyDataSets.length&&!a)){v.next=2;break}return v.abrupt("return");case 2:return c=this.parentPage,f=c.parentReport,v.next=6,new Promise(function(y){setTimeout(y)});case 6:if(f){v.next=8;break}return v.abrupt("return");case 8:if(!f.isDirty()){v.next=11;break}return v.next=11,f.waitFinalSave();case 11:if(p=DataStorage.cache.get(f.surveyID),!p.isDirty()){v.next=15;break}return v.next=15,p.waitFinalSave();case 15:if(!["plain","t-test-paired","t-test-independent"].includes(this.type)){v.next=19;break}this.emptyDataSets=this.generateEmptyDataSets(l),v.next=31;break;case 19:if(this.type==="pivot"?d="ReportBlock/PivotEmpty/".concat(f.id,"/").concat(this.id):this.type==="correlation"&&(d="ReportBlock/CorrelationEmpty/".concat(f.id,"/").concat(this.id)),d){v.next=22;break}return v.abrupt("return");case 22:return this._fetchEmptyFn=function(){return u._emptyFetchController=new AbortController,nt.get(d+(s?"?Language=".concat(s):""),null,null,u._emptyFetchController.signal)},v.next=25,Qr("report",this._fetchEmptyFn);case 25:if(m=v.sent,!(!m||!m.data)){v.next=30;break}if(!m.aborted){v.next=29;break}return v.abrupt("return");case 29:throw"analysis.fetchEmptyData error: "+JSON.stringify(this.serialize());case 30:this.emptyDataSets=m.data.map(function(y){var b=Im.restore(y);return b.isEmpty=!0,b});case 31:this.notify({diffs:new Set(["data-update"])});case 32:case"end":return v.stop()}},o,this)}));function i(o,a,s){return n.apply(this,arguments)}return i}()},{key:"fetchData",value:function(){var n=jk(regeneratorRuntime.mark(function o(a,s,l,u){var c=this,f,p,d,m,h;return regeneratorRuntime.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(!(this.actualDataSets.length&&!a)){y.next=2;break}return y.abrupt("return");case 2:if(!this._fetchEnqueued){y.next=4;break}return y.abrupt("return");case 4:return f=H.generate(),this._fetchId=f,this._fetchEnqueued=!0,s||this.invalidateData(),this.fetchEmptyData(null,l,u),y.next=11,new Promise(function(b){setTimeout(b)});case 11:if(p=this.parentPage,!(!p||!p.parentReport)){y.next=15;break}return this._fetchEnqueued=!1,y.abrupt("return");case 15:if(d=p.parentReport,!d.isDirty()){y.next=19;break}return y.next=19,d.waitFinalSave();case 19:if(m=DataStorage.cache.get(d.surveyID),!m.isDirty()){y.next=23;break}return y.next=23,m.waitFinalSave();case 23:if(nt.responseCaches.clear(),this._fetchEnqueued=!1,p=this.parentPage,p){y.next=28;break}return y.abrupt("return");case 28:return this._fetching=!0,this._fetchFn=function(){var b=c._getFetchPath();return c._fetchController=new AbortController,nt.get(b+(l?"?Language=".concat(l):""),null,!a,c._fetchController.signal)},y.next=32,Qr("report",this._fetchFn);case 32:if(h=y.sent,this._fetchId===f){y.next=35;break}return y.abrupt("return");case 35:if(!(!h||!h.data||!h.success)){y.next=42;break}if(this._fetchEnqueued||(this.dataReady=!0),this.notify({diffs:new Set(["data-update"])}),!h){y.next=42;break}if(!h.aborted){y.next=41;break}return y.abrupt("return");case 41:throw"analysis.fetchData error: "+h.errors;case 42:this.type==="plain"&&(!h||!h.data.length)||(this.actualDataSets=h.data.map(function(b){return Im.restore(b)}),this.dataSetsChanged()),this._fetchEnqueued||(this._fetching=!1,this.dataReady=!0),this.notify({diffs:new Set(["data-update"])});case 45:case"end":return y.stop()}},o,this)}));function i(o,a,s,l){return n.apply(this,arguments)}return i}()},{key:"abortFetch",value:function(){var i,o;Mm("report",this._fetchEmptyFn),Mm("report",this._fetchFn),(i=this._emptyFetchController)===null||i===void 0||i.abort(),(o=this._fetchController)===null||o===void 0||o.abort()}},{key:"dataSetsChanged",value:function(){}},{key:"hasActualDataSetForVisualization",value:function(i){return!this._fetchEnqueued&&!this._fetching&&this.actualDataSets.find(function(o){return o.isVisualizationSupported(i)})}},{key:"getAllDataSetsForVisualization",value:function(i){var o=this.dataSets;return this.dataReady||(o=[].concat(At(this.actualDataSets),At(this.emptyDataSets))),o.filter(function(a){return a.isVisualizationSupported(i)})}},{key:"getDataSetForVisualization",value:function(i){return this.getAllDataSetsForVisualization(i)[0]}},{key:"getDataSettingsForVisualization",value:function(i){var o=this.getDataSetForVisualization(i);if(o){var a;return(a=o.visualizationsSettings)===null||a===void 0?void 0:a.find(function(s){var l,u;return((l=s.visualizationTypes)===null||l===void 0?void 0:l.includes(i.type))&&((u=s.dataRepresentationModes)===null||u===void 0?void 0:u.includes(i.dataRepresentationMode))})}}},{key:"copy",value:function(){return Ck(Ck({},this),{},{visualizations:this.visualizations.map(function(i){return i.copy()}),filterGroups:this.filterGroups.map(function(i){return i.copy()})})}},{key:"upgrade",value:function(){fi(nr(r.prototype),"upgrade",this).call(this),this.pages&&this.visualizations.forEach(function(i){i.upgrade()}),this.update(),this.notify()}},{key:"serialize",value:function(){var i=this,o=fi(nr(r.prototype),"serialize",this).call(this);return o.filterGroups=this.filterGroups.map(function(a){return a.serialize()}),o.titles=this.getAllSources().map(function(a){var s=Pu(i.type,a);return s.id+" "+s.title}),delete o.actualDataSets,delete o.emptyDataSets,delete o.dataSets,delete o.dataReady,delete o.fetchEnqueued,delete o.dirty,o}},{key:"initFilters",value:function(){this.filterGroups&&(this.filterGroups=this.filterGroups.map(DataObject.restore).filter(function(i){return i.filters.length}))}}],[{key:"_getStatements",value:function(i){var o=this,a;if(i.type===APP.questionTypes.TEXTINPUT&&i.modifier==="form"?a=!0:a=[APP.questionTypes.MATRIX,APP.questionTypes.SLIDERS,APP.questionTypes.SORTING].includes(i.type),!a)return[];var s=[];return i.statementLists.forEach(function(l){l.hidden||(s=s.concat(l.items))}),Edit.resetPicNumber(),s.map(function(l,u){return new li({statement:l,title:Edit.removeHTML(l.label,{replaceImages:!0}),oppositeTitle:o.getOppositeTitle(i,l),index:u})})}},{key:"getOppositeTitle",value:function(i,o){if(!(i.type!==APP.questionTypes.MATRIX||i.modifier!=="bipolar")){var a=o.details[APP.itemSchemes.BPL_MATRIX];return a&&a.bplLabel?Edit.removeHTML(a.bplLabel,{replaceImages:!0}):""}}},{key:"_getAnswers",value:function(i,o){var a=i.type===APP.questionTypes.DROPDOWN,s=i.type===APP.questionTypes.AUTOCOMPLETE,l=o.items;return(a||s)&&(l=[],i.optionLists.forEach(function(u){var c;(c=l).push.apply(c,At(u.items))})),Edit.resetPicNumber(),l.filter(function(u){return!u.hidden&&(!a||!u.isCallToAction)}).map(function(u,c){return new si({option:u,title:Edit.removeHTML(u.label,{replaceImages:!0}),code:u.code!=null?u.code:u.defaultCode,index:c})})}},{key:"getRespondType",value:function(i,o,a){if(i.type===APP.questionTypes.HEATMAP)return"heatmap";if(i.type===APP.questionTypes.TEXTINPUT&&i.modifier==="single-line")return i.props.singleLineItem.respondType;if(i.type===APP.questionTypes.TEXTINPUT&&a)return a.statement.respondType;var s=o.items.find(function(l){return!l.hidden});return s&&s.respondType}},{key:"generateWizardItem",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.isCustomField,l=Pu(i,o);return o.qNumber=l.id,o.title=Rk(i,o,{replaceImages:!0}),{icon:l.icon,id:l.id,title:Edit.removeHTML(l.title,{replaceImages:!0}),source:o,isCustomField:s||!1}}},{key:"addLoopsToWizardItems",value:function(i,o,a){var s=this;return a=At(a),o.loops.forEach(function(l){var u;if(!!["static","question"].includes(l.type)){var c=[];l.pages.forEach(function(m){m.questions.forEach(function(h){c=[].concat(At(c),At(a.filter(function(v){return v.source.question===h})))})});var f=[];l.staticList.forEach(function(m){var h=c.map(function(v){var y=v.source.copy();return y.loopRowID=m.id,s.generateWizardItem(i,y,{isCustomField:v.isCustomField})});h.length&&(h[0].firstInLoopRow=m),f=[].concat(At(f),At(h))}),c.length&&(c[0].firstInLoop=l),f.length&&(f[f.length-1].lastInLoop=l);var p=c[c.length-1],d=a.indexOf(p);(u=a).splice.apply(u,[d+1,0].concat(At(f)))}}),a}},{key:"restoreData",value:function(i){return i.visualizations&&(i.visualizations=i.visualizations.map(DataObject.restore)),i.filterGroups||(i.filterGroups=[]),i.atoms&&(i.atoms=i.atoms.sort(function(o,a){return o.index-a.index})),i}}]),r}(Ee);A.register({class:ut,name:"ANALYSIS",metaType:"reportBlock",checkSubType:!0});function zm(t){return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zm(t)}function Mk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Lk(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Mk(Object(r),!0).forEach(function(n){Ie(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function uz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cz(t,e,r){return e&&Nk(t.prototype,e),r&&Nk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function fz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hm(t,e)}function Hm(t,e){return Hm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hm(t,e)}function pz(t){var e=hz();return function(){var n=ku(t),i;if(e){var o=ku(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return dz(this,i)}}function dz(t,e){if(e&&(zm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ce(t)}function Ce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ku(t){return ku=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ku(t)}function Ie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ir=function(t){fz(r,t);var e=pz(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return uz(this,r),n=e.call(this,o),Ie(Ce(n),"parentID",""),Ie(Ce(n),"variableID",""),Ie(Ce(n),"loopRowID",""),Ie(Ce(n),"title",""),Ie(Ce(n),"substitution",""),Ie(Ce(n),"qNumber",""),Ie(Ce(n),"question",null),Ie(Ce(n),"optionList",null),Ie(Ce(n),"statements",[]),Ie(Ce(n),"answers",[]),Ie(Ce(n),"textGroups",[]),Ie(Ce(n),"isCustomField",!1),n.merge(i),n.register(),n}return cz(r,[{key:"parentAnalysis",get:function(){return this.getCachedParent()}},{key:"isEmpty",get:function(){return!this.variableID&&!this.question}},{key:"equals",value:function(i){return this.variableID===i.variableID&&this.question===i.question&&this.optionList===i.optionList&&this.statements.every(function(o){return i.statements.find(function(a){return o.statement===a.statement})})&&this.answers.every(function(o){return i.answers.find(function(a){return o.option===a.option})})&&!!this.isCustomField==!!i.isCustomField}},{key:"copy",value:function(){return new r(Lk(Lk({},this),{},{answers:this.answers.map(function(i){return i.copy()}),statements:this.statements.map(function(i){return i.copy()})}))}},{key:"uses",value:function(){var i;if(this.variableID)return{statements:!1,oppositeStatements:!1,answers:!1,texts:!1};var o=!1,a=!1;if(this.parentAnalysis.type==="plain"&&!this.isCustomField){var s;this.question.type===APP.questionTypes.SLIDERS||this.question.type===APP.questionTypes.SORTING||(s=this.question.constantSum)!==null&&s!==void 0&&s.enabled?o=!0:this.question.type===APP.questionTypes.MATRIX&&(o=![APP.scaleTypes.TEXT,APP.scaleTypes.NUMERIC,APP.scaleTypes.DATE].includes(this.optionList.scaleType),a=this.question.modifier==="bipolar")}var l=this.question.type===APP.questionTypes.SINGLECHOICE||this.question.type===APP.questionTypes.MULTICHOICE,u=this.question.type===APP.questionTypes.SLIDERS&&this.question.props.showScaleLabels,c=this.question.type===APP.questionTypes.DROPDOWN,f=this.question.type===APP.questionTypes.SORTING,p=this.question.type===APP.questionTypes.AUTOCOMPLETE&&!this.question.props.customsAllowed,d=this.question.type===APP.questionTypes.MATRIX,m=[APP.scaleTypes.RADIOBUTTON,APP.scaleTypes.CHECKBOX].includes(this.optionList.scaleType),h=!this.isCustomField&&(l||u||c||f||p||d&&m),v=this.question.type===APP.questionTypes.TEXTINPUT&&["single-line","form"].includes(this.question.modifier),y=(v||this.isCustomField)&&!((i=this.question.constantSum)!==null&&i!==void 0&&i.enabled);return{statements:o,oppositeStatements:a,answers:h,texts:y}}},{key:"_getRangeProps",value:function(){return this.optionList.scaleType==="range"?{scaleMin:this.question.type===APP.questionTypes.MATRIX?0:this.question.minValue,scaleMax:this.question.type===APP.questionTypes.MATRIX?100:this.question.maxValue,isSnapToGrid:this.question.props.snapToGrid,numberOfDecimals:this.question.type===APP.questionTypes.MATRIX?0:this.question.props.decimalsNum,numberOfGridGaps:this.question.type===APP.questionTypes.MATRIX?10:this.question.props.gridLinesNum-1}:{scaleMin:0,scaleMax:Number(!this.variableID),isSnapToGrid:!1,numberOfDecimals:0,numberOfGridGaps:0}}},{key:"lightSerialize",value:function(){if(this.variableID)return{variableID:this.variableID};var i=this.question.type===APP.questionTypes.MATRIX&&[APP.scaleTypes.TEXT,APP.scaleTypes.DATE,APP.scaleTypes.NUMERIC].includes(this.optionList.scaleType)||this.optionList.scaleType===APP.scaleTypes.CHECKBOX,o=[APP.questionTypes.SINGLECHOICE,APP.questionTypes.DROPDOWN,APP.questionTypes.MATRIX,APP.questionTypes.AUTOCOMPLETE].includes(this.question.type)||this.question.type===APP.questionTypes.TEXTINPUT&&this.question.modifier==="single-line";return{statementID:this.statements.length?this.statements[0].statement.id:null,optionListID:o?this.optionList.id:null,optionID:(i||this.isCustomField)&&this.answers.length?this.answers[0].option.id:null,isCustomField:this.isCustomField}}},{key:"serialize",value:function(){var i=this;if(this.variableID)return[{id:this.id,displayName:this.title,parentID:this.parentID,variableID:this.variableID,scaleType:APP.scaleTypes.VARIABLE}];var o=this.answers.map(function(l,u){return{id:l.id,index:u,code:l.code,title:l.option||l.title?l.title:l.value,optionID:l.isNoAnswer||!l.option?H.ZERO:l.isNotApplicable?"00000000-0000-0000-0000-000000000001":l.option.id,isIgnored:l.isIgnored,edited:l.edited,value:+l.value,groupID:l.groupID,hasCustomField:i.isCustomField}});if(this.statements.length){var a=this.statements.map(function(l,u){return{id:l.id,index:u,serieIndex:u,parentID:i.parentID,loopRowID:i.loopRowID,questionID:i.question.id,optionListID:i.optionList.id,statementID:l.statement.id,qNumber:i.qNumber,displayName:l.title,rightLabel:l.oppositeTitle,scaleType:i.optionList.scaleType,dataFormatType:i.isCustomField?APP.respondTypes.TEXT:ut.getRespondType(i.question,i.optionList,l),isIgnored:l.isIgnored,edited:l.edited,hasCustomField:i.isCustomField,answers:u===0?o:[],textGroups:i.textGroups,scaleMin:i._getRangeProps().scaleMin,scaleMax:i._getRangeProps().scaleMax,isSnapToGrid:i._getRangeProps().isSnapToGrid,numberOfDecimals:i._getRangeProps().numberOfDecimals,numberOfGridGaps:i._getRangeProps().numberOfGridGaps}});return a}var s=[{index:0,serieIndex:0,id:this.id,parentID:this.parentID,loopRowID:this.loopRowID,qNumber:this.qNumber,questionID:this.question.id,optionListID:this.optionList.id,scaleType:this.optionList.scaleType,dataFormatType:ut.getRespondType(this.question,this.optionList),hasCustomField:this.isCustomField,answers:o,textGroups:this.textGroups,scaleMin:this._getRangeProps().scaleMin,scaleMax:this._getRangeProps().scaleMax,isSnapToGrid:this._getRangeProps().isSnapToGrid,numberOfDecimals:this._getRangeProps().numberOfDecimals,numberOfGridGaps:this._getRangeProps().numberOfGridGaps}];return s}}],[{key:"lightRestore",value:function(i){if(i.variableID)return new r({variableID:i.variableID});var o;if(i.optionListID)o=DataStorage.cache.get(i.optionListID);else if(i.statementID){var a=DataStorage.cache.get(i.statementID);o=a.parentList.parentQuestion.optionList}else if(i.optionID){var s=DataStorage.cache.get(i.optionID);o=s.parentList}return new r({question:o.parentQuestion,optionList:o,statements:i.statementID?[new li({statement:DataStorage.cache.get(i.statementID)})]:[],answers:i.optionID?[new si({option:DataStorage.cache.get(i.optionID)})]:[],isCustomField:i.isCustomField})}},{key:"restore",value:function(i){if(i.sort(function(c,f){return c.index-f.index}),!i.length)throw"AnalysisSource.restore: no atoms to restore";if(i[0].variableID){var o=DataStorage.cache.get(i[0].variableID);if(!o)throw"AnalysisSource.restore: no custom variable found";return new r({new:!1,variableID:i[0].variableID,title:i[0].displayName||""},i[0].id)}var a=[];if(i[0].statementID&&(a=i.sort(function(c,f){return c.index-f.index}).map(function(c){var f=DataStorage.cache.get(c.statementID);return f?new li({statement:f,title:c.displayName||"",oppositeTitle:c.rightLabel||"",isIgnored:c.isIgnored,edited:c.edited,groupID:c.groupID,index:c.index},c.id):null}).filter(function(c){return c}),!a.length))throw"AnalysisSource.restore: no statements to restore";var s=i[0].answers.sort(function(c,f){return c.index-f.index}).map(function(c){var f;return c.optionID!==H.ZERO&&c.optionID!=="00000000-0000-0000-0000-000000000001"&&(f=DataStorage.cache.get(c.optionID),!f)?null:new si({option:f,title:c.title,code:c.code,isIgnored:c.isIgnored,edited:c.edited,value:c.value,groupID:c.groupID,index:c.index,isNoAnswer:c.optionID===H.ZERO,isNotApplicable:c.optionID==="00000000-0000-0000-0000-000000000001"},c.id)}).filter(function(c){return c});if(i[0].answers.length&&!s.length)throw"AnalysisSource.restore: no answers to restore";var l=DataStorage.cache.get(i[0].questionID),u=DataStorage.cache.get(i[0].optionListID);if(!l||!u||l.modifier!=="single-line"&&i[0].hasCustomField&&!a.length&&!s.length)throw"Survey structure has been changed";return new r({new:!1,loopRowID:i[0].loopRowID,qNumber:i[0].qNumber,question:l,optionList:u,statements:a,answers:s,textGroups:i[0].textGroups,isCustomField:i[0].hasCustomField},a.length?null:i[0].id)}}]),r}(D);function Um(t){return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Um(t)}function qk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Jr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qk(Object(r),!0).forEach(function(n){mz(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function mz(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vz(t,e,r){return e&&zk(t.prototype,e),r&&zk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vm(t,e)}function Vm(t,e){return Vm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Vm(t,e)}function bz(t){var e=Fz();return function(){var n=Eu(t),i;if(e){var o=Eu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _z(this,i)}}function _z(t,e){if(e&&(Um(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wz(t)}function wz(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Eu(t){return Eu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Eu(t)}var xz=function(t){gz(r,t);var e=bz(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return yz(this,r),n=e.call(this,o),n.index=0,n.title="",n.formula="x + y",n.sources=[],n.merge(i),n.register(),n}return vz(r,[{key:"vNumberText",get:function(){return"V"+(this.index+1)}},{key:"copy",value:function(){return new r(Jr(Jr({},this),{},{sources:this.sources.map(function(i){return i.copy()})}))}},{key:"serialize",value:function(){var i=Jr({},this);try{i.entities=i.sources.map(function(o){return Jr(Jr({},o.lightSerialize()),{},{substitution:o.substitution})}),delete i.sources}catch(o){return}return i}}],[{key:"restoreData",value:function(i){return i.entities&&(i.sources=i.entities.map(function(o){return new ir(Jr(Jr({},ir.lightRestore(o)),{},{substitution:o.substitution}))})),i}}]),r}(D);A.register({class:xz,name:"CUSTOM_VAR",metaType:"customVariable"});function Wm(t){return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wm(t)}function Hk(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function Tu(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){Hk(o,n,i,a,s,"next",l)}function s(l){Hk(o,n,i,a,s,"throw",l)}a(void 0)})}}function Oz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pz(t,e,r){return e&&Uk(t.prototype,e),r&&Uk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Au(){return typeof Reflect!="undefined"&&Reflect.get?Au=Reflect.get:Au=function(e,r,n){var i=Sz(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Au.apply(this,arguments)}function Sz(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=pi(t),t!==null););return t}function kz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gm(t,e)}function Gm(t,e){return Gm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gm(t,e)}function Ez(t){var e=Az();return function(){var n=pi(t),i;if(e){var o=pi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Tz(this,i)}}function Tz(t,e){if(e&&(Wm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N(t)}function N(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Az(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function pi(t){return pi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pi(t)}function q(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $m=function(t){kz(r,t);var e=Ez(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return Oz(this,r),n=e.call(this,i,"definitions",o),q(N(n),"code",""),q(N(n),"questionnaireID",""),q(N(n),"isStarted",!1),q(N(n),"creationDate",new Date),q(N(n),"autoRestart",!0),q(N(n),"autoRestartTimeOut",30),q(N(n),"autoEndSurvey",!1),q(N(n),"autoEndSurveyTimeOut",30),q(N(n),"isOnlyForAuthorizedRespondents",!1),q(N(n),"isRestrictAccessToPrivateData",!1),q(N(n),"isSavePrivateDataSeparately",!1),q(N(n),"isDisabledSaveIP",!1),q(N(n),"isPublic",!1),q(N(n),"isAnonymizeIDs",!1),q(N(n),"isUseOnlyLocalServers",!0),q(N(n),"isSearchIndex",!1),q(N(n),"isNoScript",!1),q(N(n),"masterPassword",""),q(N(n),"publicationEvents",[]),q(N(n),"endRedirectURL",""),q(N(n),"endReportID",""),q(N(n),"endRestoredRedirectURL",""),q(N(n),"endRestoredReportID",""),q(N(n),"isExpiration",!1),q(N(n),"expirationFromDate",new Date),q(N(n),"expirationToDate",new Date),q(N(n),"language",""),q(N(n),"determineLanguage",!0),q(N(n),"fallbackLanguage",""),q(N(n),"doubleOptInEnabled",!1),q(N(n),"doubleOptInRespondentFieldMap",[]),q(N(n),"quotas",[]),q(N(n),"notifyEmails",[]),q(N(n),"endTriggerWebService",!1),q(N(n),"endWebService",null),q(N(n),"isFilter",!1),q(N(n),"filterGroups",[]),n.definitions=n.definitions||[],n.merge(i,!1),n.register(),n}return Pz(r,[{key:"populate",value:function(){var n=Tu(regeneratorRuntime.mark(function o(){var a=this,s,l,u;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,w.fetchLanguage(this.language);case 2:return this.setDefault("template-title",""),this.setDefault("survey-title",""),this.setDefault("survey-description",""),s=DataStorage.cache.get(this.questionnaireID),s.loops.forEach(function(p){a.setDefault("loop-question:".concat(p.id),w.get("loops.question-default-description",null,a.language)),a.setDefault("loop-break-choice:".concat(p.id),w.get("loops.break-choice-default-label",null,a.language))}),this.setDefault("date-format",w.get("date-input-ui.input-format",null,this.language)),this.setDefault("date-placeholder",w.get("date-input-ui.input-placeholder",null,this.language)),this.setDefault("characters-entered",w.get("textarea-ui.characters-entered-form-status-text",null,this.language)),this.setDefault("characters-left",w.get("textarea-ui.characters-left-form-status-text",null,this.language)),this.setDefault("not-enough-characters",w.get("textarea-ui.not-enough-characters-form-status-warning-text",null,this.language)),this.setDefault("too-many-characters",w.get("textarea-ui.too-many-characters-form-status-warning-text",null,this.language)),this.setDefault("dropzone-text",w.get("import-dropzone-ui.dropzone-text",null,this.language)),APP.surveyButtonKeys.forEach(function(p){a.setDefault(p,w.get("button-nav-ui.".concat(p,"-title-text"),null,a.language))}),l=document.createElement("survey-validator-ui"),l.raw=!0,l.language=this.language,l.style.display="none",document.body.append(l),f.next=22,0;case 22:return APP.validatorKeys.forEach(function(p){a.setDefault(p,l.getValidatorValue(p))}),l.remove(),u=document.createElement("survey-definition-ui"),u.raw=!0,u.language=this.language,u.style.display="none",document.body.append(u),f.next=31,0;case 31:APP.servicePageKeys.forEach(function(p){a.setDefault(p,u.getDefinitionValue(p))}),u.remove();case 33:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"isOriginal",get:function(){return!0}},{key:"isSystemOriginal",get:function(){return this.isOriginal&&APP.languages.includes(this.language)}},{key:"title",get:function(){var i=this.get("survey-title");return i.edited?i.value:Edit.removeHTML(this.get("template-title").value)}},{key:"description",get:function(){var i=this.get("survey-description");return i.edited?i.value:Edit.removeHTML(this.get("template-title").value)}},{key:"addEvent",value:function(i){this.publicationEvents.unshift({publicationEventType:i,publicationID:this.id,eventDate:new Date,userId:User.id}),this.publicationEvents=this.publicationEvents.slice()}},{key:"get",value:function(i){var o=this.getDefinition(i);if(!o)throw"Missing definition in publication '".concat(i,"'");return o}},{key:"getDefinition",value:function(i){return this.definitions.find(function(o){return o.key===i})}},{key:"set",value:function(){return this.setDefinition.apply(this,arguments)}},{key:"setDefinition",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,s=this.getDefinition(i);s?s.value=o:(s=new Definition({key:i,value:o}),this.definitions.push(s),this.definitions=this.definitions.slice()),a||this.update()}},{key:"setDefault",value:function(i,o){var a=this.getDefinition(i);(!a||!a.edited)&&this.setDefinition(i,o)}},{key:"start",value:function(){var n=Tu(regeneratorRuntime.mark(function o(){var a;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.isStarted=!0,a=DataStorage.cache.get(this.questionnaireID),a&&(a.surveyState="running"),this.addEvent("start"),l.next=6,z.put("Publication/Publications/Start/"+this.id);case 6:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"stop",value:function(){var n=Tu(regeneratorRuntime.mark(function o(){var a;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.isStarted=!1,a=DataStorage.cache.get(this.questionnaireID),a&&(a.surveyState="stopped"),this.addEvent("stop"),l.next=6,z.put("Publication/Publications/Stop/"+this.id);case 6:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"checkCode",value:function(i){return z.post("Publication/Publications/Code/Check",i)}},{key:"newCode",value:function(){return z.get("Publication/Publications/Code/New")}},{key:"serialize",value:function(){var i=Au(pi(r.prototype),"serialize",this).call(this);return i.definitions=i.definitions.filter(function(o){return o.edited}),i.doubleOptInRespondentFieldMap=[],this.doubleOptInRespondentFieldMap.forEach(function(o){try{i.doubleOptInRespondentFieldMap.push({fieldName:o.fieldName,source:o.source.lightSerialize()})}catch(a){}}),i.endWebService&&(i.endWebService=i.endWebService.serialize()),delete i.publicationEvents,i}}],[{key:"restoreData",value:function(i){i.publicationEvents.forEach(function(s){s.eventDate=new Date(s.eventDate)}),i.definitions=i.definitions.map(D.restore),i.quotas=i.quotas.map(D.restore),i.doubleOptInRespondentFieldMap=i.doubleOptInRespondentFieldMap||[],i.doubleOptInRespondentFieldMap=D.safeRestoreArray(i.doubleOptInRespondentFieldMap,function(s){return{fieldName:s.fieldName,source:ir.lightRestore(s.source)}}),i.doubleOptInRespondentFieldMap.find(function(s){return s.fieldName==="RESPONDENT_EMAIL"})||i.doubleOptInRespondentFieldMap.push({fieldName:"RESPONDENT_EMAIL",source:new ir}),i.doubleOptInRespondentFieldMap.find(function(s){return s.fieldName==="RESPONDENT_FIRST_NAME"})||i.doubleOptInRespondentFieldMap.push({fieldName:"RESPONDENT_FIRST_NAME",source:new ir}),i.doubleOptInRespondentFieldMap.find(function(s){return s.fieldName==="RESPONDENT_LAST_NAME"})||i.doubleOptInRespondentFieldMap.push({fieldName:"RESPONDENT_LAST_NAME",source:new ir});var o=["RESPONDENT_EMAIL","RESPONDENT_FIRST_NAME","RESPONDENT_LAST_NAME"],a=function(l){var u=o.indexOf(l);return u===-1?5:u};return i.doubleOptInRespondentFieldMap.sort(function(s,l){return a(s)-a(l)}),i.doubleOptInRespondentList&&(i.doubleOptInRespondentList=i.doubleOptInRespondentList.serialize()),i.endWebService&&(i.endWebService=D.restore(i.endWebService)),i.filterGroups?i.filterGroups=i.filterGroups.map(D.restore).filter(function(s){return s.filters.length}):i.filterGroups=[],i}},{key:"fetchForSurvey",value:function(){var n=Tu(regeneratorRuntime.mark(function o(a){var s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,DataStorage.fetch("Publication/Publications/Survey/First/"+a);case 2:return s=u.sent,u.next=5,s.populate();case 5:return u.abrupt("return",s);case 6:case"end":return u.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(Ee);A.register({class:$m,name:"PUBLICATION",metaType:"publication",apiPath:"Publication/Publications/"});function Km(t){return Km=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Km(t)}function Vk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Wk(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vk(Object(r),!0).forEach(function(n){ae(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vk(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Gk(t){return Iz(t)||Cz(t)||Dz(t)||Rz()}function Rz(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dz(t,e){if(!!t){if(typeof t=="string")return Ym(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ym(t,e)}}function Cz(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Iz(t){if(Array.isArray(t))return Ym(t)}function Ym(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $k(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function qe(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){$k(o,n,i,a,s,"next",l)}function s(l){$k(o,n,i,a,s,"throw",l)}a(void 0)})}}function jz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Bz(t,e,r){return e&&Kk(t.prototype,e),r&&Kk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zr(){return typeof Reflect!="undefined"&&Reflect.get?Zr=Reflect.get:Zr=function(e,r,n){var i=Mz(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Zr.apply(this,arguments)}function Mz(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Rt(t),t!==null););return t}function Lz(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xm(t,e)}function Xm(t,e){return Xm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xm(t,e)}function Nz(t){var e=zz();return function(){var n=Rt(t),i;if(e){var o=Rt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qz(this,i)}}function qz(t,e){if(e&&(Km(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y(t)}function Y(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Rt(t){return Rt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rt(t)}function ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yk=function(t){Lz(r,t);var e=Nz(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return jz(this,r),n=e.call(this,i,"pages",o),ae(Y(n),"name","UNNAMED SURVEY"),ae(Y(n),"creationDate",new Date),ae(Y(n),"lastChangedDate",new Date),ae(Y(n),"language",User.language),ae(Y(n),"surveyState",APP.surveyStatuses.NEW),ae(Y(n),"numberOfPages",0),ae(Y(n),"numberOfQuestions",0),ae(Y(n),"numberOfNotes",0),ae(Y(n),"numberOfLanguages",0),ae(Y(n),"isShare",!1),ae(Y(n),"hasQuotas",!1),ae(Y(n),"customVariables",[]),ae(Y(n),"loops",[]),ae(Y(n),"_logicsInited",!1),ae(Y(n),"owner",""),ae(Y(n),"deletedBy",""),ae(Y(n),"lockUserID",""),ae(Y(n),"connectionID",""),ae(Y(n),"subscriptionID",""),ae(Y(n),"hub",new hS("surveyHub",n.id)),ae(Y(n),"stepID",""),ae(Y(n),"publication",void 0),n.merge(i,!1),n.register(),n.subscribe(Y(n),function(a){var s=a.diffs;s.has("questions")&&setTimeout(function(){n._updateQuestionNumbers()})},"page"),n.subscribe(Y(n),function(){return n._checkLogics()}),n.subscribe(Y(n),function(){return n._checkLogics()},"page"),n.subscribe(Y(n),function(){return n._checkLogics()},"question"),n.subscribe(Y(n),function(){return n._checkLogics()},"list"),n.subscribe(Y(n),function(){return n._checkLogics()},"item"),n}return Bz(r,[{key:"hasUpload",get:function(){return this.getAllQuestions().find(function(i){return i.type===APP.questionTypes.FILE_UPLOAD})}},{key:"fetchChildren",value:function(){var n=qe(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a&&(this._logicsInited=!1),l.next=3,Zr(Rt(r.prototype),"fetchChildren",this).call(this,a);case 3:this._qNumbersInited||(this._updateQuestionNumbers(),this._qNumbersInited=!0),this._initLogics(),this.update();case 6:case"end":return l.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"fetchPublication",value:function(){var n=qe(regeneratorRuntime.mark(function o(){var a,s=arguments;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(a=s.length>0&&s[0]!==void 0?s[0]:!1,!(a||!this.publication)){u.next=5;break}return u.next=4,$m.fetchForSurvey(this.id);case 4:this.publication=u.sent;case 5:case"end":return u.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getLoopForPage",value:function(i){return this.loops.find(function(o){return o.pages.includes(i)})}},{key:"detachLoopRespondentList",value:function(i,o){var a=this.loops.find(function(s){return["hierarchicalList","semiHierarchicalList"].includes(s.type)&&s.respondentListID===i});if(!a)return z.post("RespondentList/RespondentLists/Publication/Rejection/Loop/"+i,o)}},{key:"synchronize",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",z.put("Survey/Surveys/Synchronize/"+this.id));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"restore",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",z.put("Survey/Surveys/Restore/"+this.id));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"revert",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",z.put("Survey/Surveys/Revert/"+this.id));case 1:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"moveToSubscription",value:function(){var n=qe(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:z.put("Survey/Surveys/Subscription/Move/"+this.id,a),this.subscriptionID=a,this.notify();case 3:case"end":return l.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"share",value:function(){var n=qe(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.isShare=a,this.notify(),l.abrupt("return",z.put("Survey/Surveys/Share/"+this.id,a));case 3:case"end":return l.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"_initLogics",value:function(){this._logicsInited||!this.pages||(this.initSkipLogic(),this.initDisplayLogic(),this._logicsInited=!0,this._checkLogics(),this._fixDisplayLogic())}},{key:"_fixDisplayLogic",value:function(){var i=this,o=!1;this.pages.forEach(function(a,s){a.displayLogics=a.displayLogics.map(function(l){var u=i.pages.slice(0,s).find(function(c){return c.displayLogics.find(function(f){return f.id===l.id})});return u&&(l=l.copy({page:a}),o=!0),l})}),this.getAllQuestions().forEach(function(a){a.displayLogics=a.displayLogics.map(function(s){var l=s.targets.find(function(u){return u.questions[0]!==a});return l&&(s=s.copy({question:a}),o=!0),s})}),o&&this.save()}},{key:"initSkipLogic",value:function(){this.pages.forEach(function(i){i.initSkipLogic(),i.questions.forEach(function(o){o.initSkipLogic()})})}},{key:"initDisplayLogic",value:function(){this.pages.forEach(function(i){i.initDisplayLogic(),i.questions.forEach(function(o){o.initDisplayLogic()})})}},{key:"getSkipLogicsToItself",value:function(){var i=this;if(!(!this.pages||!this._logicsInited)){var o=[];return this.pages.forEach(function(a){a.jump&&a.jump.target.survey===i&&o.push(a.jump),a.questions.forEach(function(s){s.jumps.forEach(function(l){l.target.survey===i&&o.push(l)})})}),o}}},{key:"_checkLogics",value:function(){!this.pages||!this._logicsInited||(this._checkDisplayLogics(),this._checkSkipLogics())}},{key:"_checkDisplayLogics",value:function(){var i=this,o=function(l){var u=l.displayLogics.slice();u.forEach(function(c){a(c,l)})},a=function(l,u){var c=function(){var p=u.displayLogics.indexOf(l);u.displayLogics.splice(p,1),u.displayLogics=u.displayLogics.slice()};l.targets.forEach(function(f){l&&f.item&&!DataFlow.isRegistered(f.item)&&(c(),u.save())}),l.sources.forEach(function(f){l&&!i._checkLogicSource(f.source)&&(l.remove(f),l.update(),l.notify(),l.sources.length||c(),u.save())})};this.pages.forEach(function(s){o(s),s.questions.forEach(function(l){o(l)})})}},{key:"_checkSkipLogics",value:function(){var i=this;this.pages.forEach(function(o){o.jump&&o.jump.target.page&&!DataFlow.isRegistered(o.jump.target.page)&&(o.jump=null,o.save()),o.questions.forEach(function(a){var s=a.jumps.slice();s.forEach(function(l){if(!i._checkSkipLogic(l)){var u=a.jumps.indexOf(l);a.jumps.splice(u,1)}}),s.length!==a.jumps.length&&(a.jumps=a.jumps.slice(),a.save())})})}},{key:"_checkSkipLogic",value:function(i){return!i.target||i.target.page&&this._isDeleted(i.target.page)?!1:this._checkLogicSource(i.source)}},{key:"_checkLogicSource",value:function(i){if(!i)return!1;if(i.type!=="survey"||!i.question)return!0;var o=[i.optionList,i.statement,i.option].some(this._isDeleted);if(o||i.questionType&&i.questionType!==i.question.type)return!1;var a=[APP.questionTypes.SINGLECHOICE,APP.questionTypes.MULTICHOICE,APP.questionTypes.SLIDERS].includes(i.question.type);return!(i.questionModifier&&i.questionModifier!==i.question.modifier&&!a)}},{key:"_isDeleted",value:function(i){return i&&!DataFlow.isRegistered(i)}},{key:"getAllQuestions",value:function(){var i=[];return(this.pages||[]).forEach(function(o){i.push.apply(i,Gk(o.questions||[]))}),i}},{key:"update",value:function(){var i=this;if(Zr(Rt(r.prototype),"update",this).call(this),this._updateQuestionNumbers(),this.customVariables.forEach(function(u,c){u.index=c}),this.loops.sort(function(u,c){var f,p;return((f=u.startPage)===null||f===void 0?void 0:f.index)-((p=c.startPage)===null||p===void 0?void 0:p.index)}),this.loops.forEach(function(u){u.sortPages()}),!!this.pages){var o,a,s=[],l=[];this.pages.forEach(function(u){var c=i.getLoopForPage(u);if(a&&c&&c!==a&&(s=[]),a&&c&&c!==a&&l.includes(c)){var f=c.pages.indexOf(u);c.pages.splice(f,1),c=null}if(c&&c===a&&!o){var p;(p=c.pages).push.apply(p,Gk(s)),s=[]}a&&!c&&s.push(u),c&&(a=c,l.push(c)),o=c}),this.loops=this.loops.filter(function(u){return u.pages=u.pages.filter(function(c){return!c.isDeleted}),u.pages.length}),this.loops.forEach(function(u,c){u.index=c,u.update()})}}},{key:"_updateQuestionNumbers",value:function(){!this.pages||this.getAllQuestions().forEach(function(i,o){i.qNumber!==o+1&&(i.qNumber=o+1,i.notify())})}},{key:"upgrade",value:function(){Zr(Rt(r.prototype),"upgrade",this).call(this),this._logicsInited=!1,this.pages&&this.pages.forEach(function(i){i.upgrade()}),this._updateQuestionNumbers(),this._initLogics(),this.update(),this.notify()}},{key:"populate",value:function(){var i=new Page;i.populate(),this.pages=[i],this.numberOfPages=1,this.numberOfQuestions=1,this.title=this.name,this.update()}},{key:"copy",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,a=Wk(Wk({},this),{},{numberOfLanguages:this.numberOfLanguages,numberOfPages:this.numberOfPages,numberOfQuestions:this.numberOfQuestions,name:w.get("core.copy-prefix-text")+this.name,title:this.title,language:this.language,lockUserID:"",owner:User.id});return o?a.pages=this.pages.map(function(s){return s.copy(i)}):(delete a.pages,delete a.customVariables),new r(a,i&&this.id)}},{key:"serialize",value:function(){var i,o=Zr(Rt(r.prototype),"serialize",this).call(this);if(o.connectionID=this.hub.connection.id,o.stepID=(i=User.session.step)===null||i===void 0?void 0:i.id,o.customVariables=o.customVariables.filter(function(a){return a}),o.loops=this.loops.map(function(a,s){return a=a.serialize(),a.index=s,a}),delete o.publication,!this.pages)throw"Trying to save survey with pages == undefined";return o}}],[{key:"restoreData",value:function(i){return i.pages&&(i.pages=i.pages.map(DataObject.restore)),i.customVariables&&(i.customVariables=DataObject.safeRestoreArray(i.customVariables)),i.loops&&(i.loops=DataObject.safeRestoreArray(i.loops),i.loops.sort(function(o,a){return o.index-a.index})),i}},{key:"fetch",value:function(){var n=qe(regeneratorRuntime.mark(function o(a,s){return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",DataStorage.get(a,APP.metaTypes.SURVEY,s));case 1:case"end":return u.stop()}},o)}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"fetchAll",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",DataStorage.fetch("Survey/Surveys"));case 1:case"end":return s.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetchAllRunning",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",DataStorage.fetch("Survey/Surveys/User/Running"));case 1:case"end":return s.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetchAllDeleted",value:function(){var n=qe(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",DataStorage.fetch("Survey/Surveys/Delete"));case 1:case"end":return s.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"fetchAllForTemplate",value:function(){var n=qe(regeneratorRuntime.mark(function o(a){return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",DataStorage.fetch("Survey/Surveys/Template/"+a));case 1:case"end":return l.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()}]),r}(Ee);A.register({class:Yk,name:"SURVEY",metaType:"survey",parentMetaType:APP.metaTypes.FOLDER,apiPath:"Survey/Surveys/"});window.Survey=Yk;function Hz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Uz(t,e,r){return e&&Xk(t.prototype,e),r&&Xk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Vz=function(){function t(e){Hz(this,t),this.type=e}return Uz(t,[{key:"update",value:function(){}},{key:"getConditionType",value:function(){throw"[NOT IMPLEMENTED]: LogicSource.getConditionType"}},{key:"serialize",value:function(){throw"[NOT IMPLEMENTED]: LogicSource.serialize"}}],[{key:"restore",value:function(r){if(r.questionID||r.variableID)return SurveyLogicSource.restore(r);if(r.userProfileFieldID)return RespondentFieldLogicSource.restore(r);if(r.targetEntityType==="SurveyCompleted")return SurveyCompletedLogicSource.restore(r);if(r.targetEntityType==="SurveyStatus")return SurveyStatusSource.restore(r);if(r.targetEntityType==="CaseCompletionDate")return DateLogicSource.restore(r);if(r.targetEntityType==="URLParameter")return UrlParameterLogicSource.restore(r);if(r.targetEntityType==="DeviceType")return DeviceTypeLogicSource.restore(r);if(r.targetEntityType==="Translation")return TranslationLogicSource.restore(r);console.error("LogicSource.restore: Unknown logic source type")}}]),t}();window.LogicSource=Vz;function Qm(t){return Qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qm(t)}function Wz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Gz(t,e,r){return e&&Qk(t.prototype,e),r&&Qk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $z(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jm(t,e)}function Jm(t,e){return Jm=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jm(t,e)}function Kz(t){var e=Xz();return function(){var n=Ru(t),i;if(e){var o=Ru(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Yz(this,i)}}function Yz(t,e){if(e&&(Qm(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zm(t)}function Zm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xz(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ru(t){return Ru=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ru(t)}function Qz(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Jz=function(t){$z(r,t);var e=Kz(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Wz(this,r),n=e.call(this,"respondent-field"),Qz(Zm(n),"fieldID","RESPONDENT_FIRST_NAME"),Object.assign(Zm(n),i),n}return Gz(r,[{key:"getConditionType",value:function(){return this.fieldID==="RESPONDENT_OPT_IN"?"opt-in":"bare-text"}},{key:"copy",value:function(){return new r(this)}},{key:"serialize",value:function(){return{targetEntityType:"UserProfileField",userProfileFieldID:this.fieldID}}}],[{key:"restore",value:function(i){return new r({fieldID:i.userProfileFieldID})}}]),r}(LogicSource);window.RespondentFieldLogicSource=Jz;function ey(t){return ey=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ey(t)}function Zz(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e8(t,e,r){return e&&Jk(t.prototype,e),r&&Jk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function t8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ty(t,e)}function ty(t,e){return ty=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ty(t,e)}function r8(t){var e=o8();return function(){var n=Du(t),i;if(e){var o=Du(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return n8(this,i)}}function n8(t,e){if(e&&(ey(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i8(t)}function i8(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Du(t){return Du=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Du(t)}var a8=function(t){t8(r,t);var e=r8(r);function r(){return Zz(this,r),e.call(this,"survey-completed")}return e8(r,[{key:"getConditionType",value:function(){return"survey-completed"}},{key:"copy",value:function(){return new r(this)}},{key:"serialize",value:function(){return{targetEntityType:"SurveyCompleted"}}}],[{key:"restore",value:function(){return new r}}]),r}(LogicSource);window.SurveyCompletedLogicSource=a8;function ry(t){return ry=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ry(t)}function s8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function l8(t,e,r){return e&&Zk(t.prototype,e),r&&Zk(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function u8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ny(t,e)}function ny(t,e){return ny=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ny(t,e)}function c8(t){var e=d8();return function(){var n=Cu(t),i;if(e){var o=Cu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return f8(this,i)}}function f8(t,e){if(e&&(ry(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p8(t)}function p8(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Cu(t){return Cu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Cu(t)}var h8=function(t){u8(r,t);var e=c8(r);function r(){return s8(this,r),e.call(this,"survey-status")}return l8(r,[{key:"getConditionType",value:function(){return"survey-status"}},{key:"copy",value:function(){return new r(this)}},{key:"serialize",value:function(){return{targetEntityType:"SurveyStatus"}}}],[{key:"restore",value:function(){return new r}}]),r}(LogicSource);window.SurveyStatusSource=h8;function iy(t){return iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iy(t)}function m8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y8(t,e,r){return e&&e1(t.prototype,e),r&&e1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function v8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oy(t,e)}function oy(t,e){return oy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},oy(t,e)}function g8(t){var e=w8();return function(){var n=Iu(t),i;if(e){var o=Iu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return b8(this,i)}}function b8(t,e){if(e&&(iy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _8(t)}function _8(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Iu(t){return Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Iu(t)}var F8=function(t){v8(r,t);var e=g8(r);function r(){return m8(this,r),e.call(this,"date")}return y8(r,[{key:"getConditionType",value:function(){return"completion-date"}},{key:"copy",value:function(){return new r}},{key:"serialize",value:function(){return{targetEntityType:"CaseCompletionDate"}}}],[{key:"restore",value:function(){return new r}}]),r}(LogicSource);window.DateLogicSource=F8;function ay(t){return ay=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ay(t)}function x8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function O8(t,e,r){return e&&t1(t.prototype,e),r&&t1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function P8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sy(t,e)}function sy(t,e){return sy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sy(t,e)}function S8(t){var e=E8();return function(){var n=ju(t),i;if(e){var o=ju(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return k8(this,i)}}function k8(t,e){if(e&&(ay(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ze(t)}function ze(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ju(t){return ju=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ju(t)}function ct(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var T8=function(t){P8(r,t);var e=S8(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x8(this,r),n=e.call(this,"survey"),ct(ze(n),"variableID",""),ct(ze(n),"survey",null),ct(ze(n),"page",null),ct(ze(n),"question",null),ct(ze(n),"optionList",null),ct(ze(n),"statement",null),ct(ze(n),"option",null),ct(ze(n),"isCode",!1),ct(ze(n),"isCount",!1),ct(ze(n),"isCustomField",!1),Object.assign(ze(n),i),n}return O8(r,[{key:"setVariableID",value:function(i){this.variableID=i,this.survey=null,this.page=null,this.question=null,this.optionList=null,this.statement=null,this.option=null,this.isCode=!1,this.isCount=!1,this.isCustomField=!1}},{key:"setQuestion",value:function(i){this.question=i,this.variableID=""}},{key:"update",value:function(){this.questionType=this.question&&this.question.type,this.questionModifier=this.question&&this.question.modifier,this.scaleType=this.optionList&&this.optionList.scaleType}},{key:"copy",value:function(i){var o=new r(this);if(!i)return o;var a=function(u){var c=u.role==="options"?i.optionLists:i.statementLists;return c[u.index]||c[0]},s=function(u){var c=a(u.parentList);return c.items[u.index]||c.items[0]};return o.question=i,o.optionList&&(o.optionList=a(o.optionList)),o.option&&(o.option=s(o.option)),o.statement&&(o.statement=s(o.statement)),o.update(),o}},{key:"getConditionType",value:function(){if(this.variableID)return"variable";var i=[APP.questionTypes.SINGLECHOICE,APP.questionTypes.MULTICHOICE,APP.questionTypes.AUTOCOMPLETE,APP.questionTypes.DROPDOWN].includes(this.question.type),o=[APP.questionTypes.MATRIX,APP.questionTypes.SLIDERS,APP.questionTypes.SORTING].includes(this.question.type),a=this.question.type===APP.questionTypes.TEXTINPUT&&this.question.modifier==="form",s=o||a;if(this.isCustomField)return"bare-text";if([APP.questionTypes.INSTRUCTION,APP.questionTypes.CODE].includes(this.question.type))return"simple";if(s&&!this.statement&&!this.option)return"simple-question";if(this.question.type===APP.questionTypes.SLIDERS)return"number";if(this.question.type===APP.questionTypes.SORTING&&this.statement)return"sorting-item";if([APP.questionTypes.HEATMAP,APP.questionTypes.FILE_UPLOAD].includes(this.question.type))return"displayed-answered";if(this.question.type===APP.questionTypes.TEXTINPUT){if(this.question.modifier==="single-line")return this.question.props.singleLineItem?this._getCondTypeForItem(this.question.props.singleLineItem):"text";if(this.question.modifier==="multiline")return"text";if(this.statement){if(this.statement.respondType===APP.respondTypes.NUMBER)return"number";if(this.statement.respondType===APP.respondTypes.DATE)return"date"}return"text"}else{if(this.question.type===APP.questionTypes.AUTOCOMPLETE&&!this.option&&!this.isCount)return"text";if(!this.statement&&!this.option)return"question";if(this.statement&&!this.option)return this.question.modifier==="bipolar"?"number":this._getCondTypeForItem(this.statement,this.getOptionList());if(this.statement&&this.option)return this._getCondTypeForItem(this.option);if(!this.statement&&this.option&&this.question.type===APP.questionTypes.MATRIX)return"number";if(this.option&&i)return"choice"}}},{key:"_getCondTypeForItem",value:function(i,o){return o&&[APP.scaleTypes.RANGE,APP.scaleTypes.RADIOBUTTON,APP.scaleTypes.CHECKBOX].includes(o.scaleType)?"statement":[APP.respondTypes.NUMBER,APP.respondTypes.RANGE].includes(i.respondType)?"number":[APP.respondTypes.RADIO,APP.respondTypes.CHECKBOX].includes(i.respondType)?"choice":i.respondType===APP.respondTypes.DATE?"date":"text"}},{key:"_getEntityType",value:function(){return this.variableID?"CustomVariable":!this.statement&&this.option&&this.question.type===APP.questionTypes.MATRIX?"MatrixAnswerInColumn":this.statement&&!this.option?"MatrixAnswersInRow":this.option?"Answer":"Question"}},{key:"getOptionList",value:function(){if(!!this.question)return this.optionList?this.optionList:this.option?this.option.parentList:this.question.optionList}},{key:"serialize",value:function(){if(this.variableID)return{targetEntityType:this._getEntityType(),variableID:this.variableID};var i=this.getOptionList();return{targetEntityType:this._getEntityType(),questionID:this.question.id,scaleID:i?i.id:null,questionRowID:this.statement?this.statement.id:null,answerID:this.option?this.option.id:null,isCode:this.isCode,isCount:this.isCount,isCustomField:this.isCustomField}}}],[{key:"restore",value:function(i){if(i.variableID)return new r({variableID:i.variableID});var o=DataStorage.cache.get(i.questionID),a=DataStorage.cache.get(o.parentID),s=DataStorage.cache.get(a.parentID);return new r({survey:s,question:o,optionList:i.scaleID?DataStorage.cache.get(i.scaleID):void 0,statement:i.questionRowID?DataStorage.cache.get(i.questionRowID):void 0,option:i.answerID?DataStorage.cache.get(i.answerID):void 0,isCode:i.isCode,isCount:i.isCount,isCustomField:i.isCustomField})}}]),r}(LogicSource);window.SurveyLogicSource=T8;function ly(t){return ly=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ly(t)}function A8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function R8(t,e,r){return e&&r1(t.prototype,e),r&&r1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function D8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uy(t,e)}function uy(t,e){return uy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},uy(t,e)}function C8(t){var e=j8();return function(){var n=Bu(t),i;if(e){var o=Bu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return I8(this,i)}}function I8(t,e){if(e&&(ly(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cy(t)}function cy(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Bu(t){return Bu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bu(t)}function B8(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var M8=function(t){D8(r,t);var e=C8(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return A8(this,r),n=e.call(this,"url-parameter"),B8(cy(n),"parameterName",""),Object.assign(cy(n),i),n}return R8(r,[{key:"getConditionType",value:function(){return"bare-text"}},{key:"copy",value:function(){return new r(this)}},{key:"serialize",value:function(){return{targetEntityType:"URLParameter",parameterName:this.parameterName}}}],[{key:"restore",value:function(i){return new r({parameterName:i.parameterName})}}]),r}(LogicSource);window.UrlParameterLogicSource=M8;function fy(t){return fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fy(t)}function L8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function N8(t,e,r){return e&&n1(t.prototype,e),r&&n1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function q8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&py(t,e)}function py(t,e){return py=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},py(t,e)}function z8(t){var e=V8();return function(){var n=Mu(t),i;if(e){var o=Mu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return H8(this,i)}}function H8(t,e){if(e&&(fy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U8(t)}function U8(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function V8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Mu(t){return Mu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Mu(t)}var W8=function(t){q8(r,t);var e=z8(r);function r(){return L8(this,r),e.call(this,"device-type")}return N8(r,[{key:"getConditionType",value:function(){return"device-type"}},{key:"copy",value:function(){return new r}},{key:"serialize",value:function(){return{targetEntityType:"DeviceType"}}}],[{key:"restore",value:function(){return new r}}]),r}(LogicSource);window.DeviceTypeLogicSource=W8;function dy(t){return dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dy(t)}function G8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function $8(t,e,r){return e&&i1(t.prototype,e),r&&i1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function K8(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hy(t,e)}function hy(t,e){return hy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hy(t,e)}function Y8(t){var e=Q8();return function(){var n=Lu(t),i;if(e){var o=Lu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return X8(this,i)}}function X8(t,e){if(e&&(dy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o1(t)}function o1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q8(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Lu(t){return Lu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Lu(t)}var J8=function(t){K8(r,t);var e=Y8(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return G8(this,r),n=e.call(this,"translation"),Object.assign(o1(n),i),n}return $8(r,[{key:"getConditionType",value:function(){return"translation"}},{key:"copy",value:function(){return new r(this)}},{key:"serialize",value:function(){return{targetEntityType:"Translation"}}}],[{key:"restore",value:function(){return new r}}]),r}(LogicSource);window.TranslationLogicSource=J8;function Z8(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function e9(t,e,r){return e&&a1(t.prototype,e),r&&a1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var t9=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Z8(this,t),Sa(this,"id",H.generate()),Sa(this,"survey",null),Sa(this,"page",null),Sa(this,"questions",[]),Sa(this,"item",null),Object.assign(this,e)}return e9(t,[{key:"question",get:function(){return this.questions[0]},set:function(r){r?this.questions=[r]:this.questions=[]}},{key:"copy",value:function(r){var n=new t(this);if(!r)return n;var i=function(s){var l=s.role==="options"?r.question.optionLists:r.question.statementLists;return l[s.index]||l[0]},o=function(s){var l=i(s.parentList);return l.items[s.index]||l.items[0]};return n.item&&(n.item=o(n.item)),r.question&&(n.questions=[r.question]),r.page&&(n.page=r.page),n}},{key:"serialize",value:function(){return{jumpQuestions:this.questions.map(function(r){return{questionID:r.id}}),jumpQuestionRows:this.item&&this.item.isStatement?[{questionRowID:this.item.id}]:[],jumpAnswers:this.item&&!this.item.isStatement?[{answerID:this.item.id}]:[]}}}],[{key:"restoreData",value:function(r){var n;r.jumpQuestions[0]&&(n=r.jumpQuestions[0].questionID);var i;return r.jumpQuestionRows[0]?i=r.jumpQuestionRows[0].questionRowID:r.jumpAnswers[0]&&(i=r.jumpAnswers[0].answerID),{question:n&&DataStorage.cache.get(n),item:i&&DataStorage.cache.get(i)}}}]),t}();window.SurveyLogicTarget=t9;function r9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n9(t,e,r){return e&&s1(t.prototype,e),r&&s1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var i9=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};r9(this,t),l1(this,"operator",""),l1(this,"value",null),Object.assign(this,e)}return n9(t,[{key:"copy",value:function(){return new t(this)}}]),t}();window.Condition=i9;function my(t){return my=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},my(t)}function u1(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function o9(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){u1(o,n,i,a,s,"next",l)}function s(l){u1(o,n,i,a,s,"throw",l)}a(void 0)})}}function a9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s9(t,e,r){return e&&c1(t.prototype,e),r&&c1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yy(t,e)}function yy(t,e){return yy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},yy(t,e)}function u9(t){var e=f9();return function(){var n=Nu(t),i;if(e){var o=Nu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return c9(this,i)}}function c9(t,e){if(e&&(my(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ka(t)}function ka(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Nu(t){return Nu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nu(t)}function qu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f1=function(t){l9(r,t);var e=u9(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return a9(this,r),n=e.call(this,o),qu(ka(n),"source",new SurveyLogicSource),qu(ka(n),"condition",new Condition),qu(ka(n),"target",new SurveyLogicTarget),qu(ka(n),"editMode",!1),n.merge(i,!1),n.update(),n.register(),n}return s9(r,[{key:"populate",value:function(){var n=o9(regeneratorRuntime.mark(function o(a){var s,l,u;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:s=a.parentPage,l=s.parentSurvey,this.source=new SurveyLogicSource({survey:l,question:a}),u=l.pages.indexOf(s),u<l.pages.length-1?this.target=new SurveyLogicTarget({page:l.pages[u+1]}):this.target=new SurveyLogicTarget({survey:l});case 5:case"end":return f.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"copy",value:function(i){var o=new r({source:this.source.copy(i),target:this.target.copy(),condition:this.condition.copy()});return o.update(),o}},{key:"update",value:function(){this.source.update()}},{key:"serialize",value:function(){var i=[];if(this.source.option)i=[{answerID:this.source.option.id,isCustomField:this.source.isCustomField}];else if(this.source.question.type===APP.questionTypes.TEXTINPUT){var o=this.source.question.optionList.items.find(function(s){return!s.hidden});i=[{answerID:o.id}]}var a={id:this.id,metaType:this.metaType,isSimple:!1,parentID:this.source.question.id,jumpScales:this.source.optionList?[{scaleID:this.source.optionList.id}]:[],jumpQuestionRows:this.source.statement?[{questionRowID:this.source.statement.id,isCustomField:this.source.isCustomField}]:[],jumpAnswers:i,isCode:this.source.isCode,isCount:this.source.isCount,condition:this.condition.operator,value:this.condition.value,isSurveyEnd:!!this.target.survey,jumpPages:this.target.page?[{pageID:this.target.page.id}]:[],jumpQuestions:this.target.questions.length?this.target.questions:[]};return a}}],[{key:"restoreData",value:function(i){var o=DataStorage.cache.get(i.parentID),a=DataStorage.cache.get(o.parentID),s=DataStorage.cache.get(a.parentID);return{source:new SurveyLogicSource({survey:s,question:o,optionList:i.jumpScales[0]&&DataStorage.cache.get(i.jumpScales[0].scaleID),statement:i.jumpQuestionRows[0]&&DataStorage.cache.get(i.jumpQuestionRows[0].questionRowID),option:i.jumpAnswers[0]&&o.type!==APP.questionTypes.TEXTINPUT?DataStorage.cache.get(i.jumpAnswers[0].answerID):void 0,isCode:i.isCode,isCount:i.isCount,isCustomField:!!(i.jumpQuestionRows[0]&&i.jumpQuestionRows[0].isCustomField||i.jumpAnswers[0]&&i.jumpAnswers[0].isCustomField)}),condition:new Condition({operator:i.condition,value:i.value}),target:new SurveyLogicTarget({survey:i.isSurveyEnd?s:null,page:i.jumpPages[0]&&DataStorage.cache.get(i.jumpPages[0].pageID),questions:i.jumpQuestions})}}}]),r}(D);A.register({class:f1,name:"SKIP_LOGIC",metaType:"skipLogic"});window.SkipLogic=f1;function vy(t){return vy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vy(t)}function p1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function d1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?p1(Object(r),!0).forEach(function(n){Ta(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function h1(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function p9(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){h1(o,n,i,a,s,"next",l)}function s(l){h1(o,n,i,a,s,"throw",l)}a(void 0)})}}function d9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h9(t,e,r){return e&&m1(t.prototype,e),r&&m1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zu(){return typeof Reflect!="undefined"&&Reflect.get?zu=Reflect.get:zu=function(e,r,n){var i=m9(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},zu.apply(this,arguments)}function m9(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=di(t),t!==null););return t}function y9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gy(t,e)}function gy(t,e){return gy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gy(t,e)}function v9(t){var e=b9();return function(){var n=di(t),i;if(e){var o=di(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return g9(this,i)}}function g9(t,e){if(e&&(vy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ea(t)}function Ea(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},di(t)}function Ta(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y1=function(t){y9(r,t);var e=v9(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return d9(this,r),n=e.call(this,o),Ta(Ea(n),"type","show"),Ta(Ea(n),"targets",[]),Ta(Ea(n),"sources",[]),Ta(Ea(n),"editMode",!1),n.merge(i,!1),n.update(),n.register(),n}return h9(r,[{key:"populate",value:function(){var n=p9(regeneratorRuntime.mark(function o(a){var s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return s=new SurveyLogicTarget,a instanceof Page?s.page=a:a instanceof Question&&(s.question=a),this.targets=[s],u.next=5,this.addSource(a,0);case 5:case"end":return u.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"update",value:function(){var i=this;this.sources.forEach(function(o){o.update(),o.parentID=i.id})}},{key:"copy",value:function(i){var o=new r(d1(d1({},this),{},{targets:this.targets.map(function(a){return a.copy(i)}),sources:this.sources.map(function(a){return a.copy()})}));return o.update(),o}},{key:"addSource",value:function(i,o){var a,s;i instanceof Page?s=i:i instanceof Question&&(a=i,s=i.parentPage);var l=s.parentSurvey,u=new DisplayLogicSource,c,f=l.getAllQuestions().reverse().find(function(d){return d.type===APP.questionTypes.CODE?!1:a?d.qNumber<i.qNumber:d.parentPage.index<s.index}),p=!0;f?c=f.parentPage:p=!1,p?u.source=new SurveyLogicSource({survey:l,page:c,question:f}):u.source=new RespondentFieldLogicSource,this.sources.splice(o,0,u),this.sources=this.sources.slice()}},{key:"remove",value:function(i){var o=this.sources.findIndex(function(a){return a.id===i.id});o!==-1&&(this.sources.splice(o,1),this.sources=this.sources.slice())}},{key:"serialize",value:function(){var i=zu(di(r.prototype),"serialize",this).call(this);return delete i.editMode,i}}],[{key:"restoreData",value:function(i){return i.sources=i.sources.map(function(o){return new DisplayLogicSource(DisplayLogicSource.restoreData(o))}),i.targets=i.targets.map(function(o){return new SurveyLogicTarget(SurveyLogicTarget.restoreData(o))}),i}}]),r}(D);A.register({class:y1,name:"DISPLAY_LOGIC",metaType:"displayLogic"});window.DisplayLogic=y1;function by(t){return by=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},by(t)}function v1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function g1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?v1(Object(r),!0).forEach(function(n){Ra(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function w9(t,e,r){return e&&b1(t.prototype,e),r&&b1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function F9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_y(t,e)}function _y(t,e){return _y=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_y(t,e)}function x9(t){var e=P9();return function(){var n=Hu(t),i;if(e){var o=Hu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return O9(this,i)}}function O9(t,e){if(e&&(by(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(t)}function Aa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Hu(t){return Hu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hu(t)}function Ra(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _1=function(t){F9(r,t);var e=x9(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return _9(this,r),n=e.call(this,o),Ra(Aa(n),"source",new SurveyLogicSource),Ra(Aa(n),"condition",new Condition),Ra(Aa(n),"logicOperator","or"),Ra(Aa(n),"isCompleted",!1),n.merge(i,!1),n.update(),n.register(),n}return w9(r,[{key:"update",value:function(){this.source.update()}},{key:"copy",value:function(){return new r(g1(g1({},this),{},{source:this.source.copy(),condition:this.condition.copy()}))}},{key:"serialize",value:function(){var i={isSimple:!0,logicOperator:this.logicOperator,condition:this.condition.operator,value:this.condition.value};if(this.source instanceof SurveyLogicSource)if(this.source.variableID)Object.assign(i,{type:"survey",variableID:this.source.variableID});else{var o=[];if(this.source.option)o=[{answerID:this.source.option.id,isCustomField:this.source.isCustomField}];else if(this.source.question.type===APP.questionTypes.TEXTINPUT){var a=this.source.question.optionList.items.find(function(s){return!s.hidden});o=[{answerID:a.id}]}Object.assign(i,{type:"survey",parentID:this.source.question.id,jumpQuestions:!this.source.optionList&&!this.source.statement&&!o.length?[{questionID:this.source.question.id}]:[],jumpScales:this.source.optionList?[{scaleID:this.source.optionList.id}]:[],jumpQuestionRows:this.source.statement?[{questionRowID:this.source.statement.id,isCustomField:this.source.isCustomField}]:[],jumpAnswers:o,isCode:this.source.isCode,isCount:this.source.isCount,isCustomField:this.source.isCustomField})}else this.source instanceof RespondentFieldLogicSource?Object.assign(i,{type:"respondent-field",param:this.source.fieldID}):this.source instanceof UrlParameterLogicSource?Object.assign(i,{type:"url-parameter",param:this.source.parameterName}):this.source instanceof DeviceTypeLogicSource?Object.assign(i,{type:"device-type"}):this.source instanceof TranslationLogicSource&&Object.assign(i,{type:"translation"});return i}}],[{key:"restoreData",value:function(i){var o;if(i.type==="survey")if(i.variableID)o=new SurveyLogicSource({variableID:i.variableID});else{var a=DataStorage.cache.get(i.parentID==="00000000-0000-0000-0000-000000000000"?i.jumpQuestions[0].questionID:i.parentID),s=DataStorage.cache.get(a.parentID),l=DataStorage.cache.get(s.parentID);o=new SurveyLogicSource({survey:l,page:s,question:a,optionList:i.jumpScales[0]&&DataStorage.cache.get(i.jumpScales[0].scaleID),statement:i.jumpQuestionRows[0]&&DataStorage.cache.get(i.jumpQuestionRows[0].questionRowID),option:i.jumpAnswers[0]&&a.type!==APP.questionTypes.TEXTINPUT?DataStorage.cache.get(i.jumpAnswers[0].answerID):void 0,isCode:i.isCode,isCount:i.isCount,isCustomField:!!(i.jumpQuestionRows[0]&&i.jumpQuestionRows[0].isCustomField||i.jumpAnswers[0]&&i.jumpAnswers[0].isCustomField)})}else i.type==="respondent-field"?o=new RespondentFieldLogicSource({fieldID:i.param}):i.type==="url-parameter"?o=new UrlParameterLogicSource({parameterName:i.param}):i.type==="device-type"?o=new DeviceTypeLogicSource:i.type==="translation"&&(o=new TranslationLogicSource);return{condition:new Condition({operator:i.condition,value:i.value}),logicOperator:i.logicOperator,source:o}}}]),r}(D);A.register({class:_1,name:"DISPLAY_LOGIC_SOURCE",metaType:"displayLogicSource"});window.DisplayLogicSource=_1;function w1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function F1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w1(Object(r),!0).forEach(function(n){en(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function S9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function k9(t,e,r){return e&&x1(t.prototype,e),r&&x1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function en(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var wy=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S9(this,t),en(this,"id",H.generate()),en(this,"source",new DateLogicSource),en(this,"condition",new Condition),en(this,"logicOperator","or"),en(this,"isCompleted",!1),en(this,"parent",null),Object.assign(this,e)}return k9(t,[{key:"populate",value:function(r){var n=r.pages.find(function(o){return o.questions.length});if(!!n){var i=n.questions[0];!i||(this.source=new SurveyLogicSource({survey:r,question:i}))}}},{key:"copy",value:function(){return new t(F1(F1({},this),{},{id:H.generate(),source:this.source.copy(),condition:this.condition.copy()}))}},{key:"serialize",value:function(){var r={logicOperator:this.logicOperator,isCompleted:this.isCompleted,comparisonOperator:this.condition.operator,targetValue:this.condition.value};return Object.assign(r,this.source.serialize()),["empty","not-empty","answered","not-answered"].includes(this.condition.operator)&&(r.isCode=!1,r.isCount=!1),r}}],[{key:"restoreData",value:function(r){return{logicOperator:r.logicOperator,isCompleted:r.isCompleted,source:LogicSource.restore(r),condition:new Condition({operator:r.comparisonOperator,value:r.targetValue})}}}]),t}();A.register({class:wy,name:"FILTER",metaType:"reportfilteritem"});function Fy(t){return Fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fy(t)}function O1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function P1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?O1(Object(r),!0).forEach(function(n){Wu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function E9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function T9(t,e,r){return e&&S1(t.prototype,e),r&&S1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uu(){return typeof Reflect!="undefined"&&Reflect.get?Uu=Reflect.get:Uu=function(e,r,n){var i=A9(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Uu.apply(this,arguments)}function A9(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=hi(t),t!==null););return t}function R9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xy(t,e)}function xy(t,e){return xy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xy(t,e)}function D9(t){var e=I9();return function(){var n=hi(t),i;if(e){var o=hi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return C9(this,i)}}function C9(t,e){if(e&&(Fy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vu(t)}function Vu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function hi(t){return hi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},hi(t)}function Wu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var j9=function(t){R9(r,t);var e=D9(r);function r(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return E9(this,r),n=e.call(this,o),Wu(Vu(n),"groupLogicOperator","and"),Wu(Vu(n),"filters",[]),Wu(Vu(n),"editMode",!1),n.merge(i,!1),n.update(),n.register(),n}return T9(r,[{key:"populate",value:function(i){var o=new wy;o.populate(i),this.filters=[o],this.update()}},{key:"upgrade",value:function(){this.update()}},{key:"update",value:function(){var i=this;Uu(hi(r.prototype),"update",this).call(this),this.filters.forEach(function(o){o.parentID=i.id,o.parent=i}),this.filters=this.filters.slice()}},{key:"add",value:function(i){this.filters.push(i),this.update()}},{key:"remove",value:function(i){var o=this.filters.findIndex(function(a){return a.id===i.id});o!==-1&&(this.filters.splice(o,1),this.filters=this.filters.slice())}},{key:"copy",value:function(){return new r(P1(P1({},this),{},{filters:this.filters.map(function(i){return i.copy()})}))}},{key:"serialize",value:function(){return{id:this.id,metaType:this.metaType,groupLogicOperator:this.groupLogicOperator,items:this.filters.map(function(i){return i.serialize()})}}}],[{key:"restoreData",value:function(i){var o=[];return i.items.forEach(function(a){try{o.push(D.restore(a))}catch(s){}}),{groupLogicOperator:i.groupLogicOperator,filters:o}}}]),r}(D);A.register({class:j9,name:"FILTER_GROUP",metaType:"filterGroup"});function B9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function M9(t,e,r){return e&&k1(t.prototype,e),r&&k1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Gu=function(){function t(){B9(this,t)}return M9(t,[{key:"read",value:function(){console.warn("StorageAdapter: 'read' method is not implemented")}},{key:"create",value:function(r,n){return this.update(r,n)}},{key:"update",value:function(){console.warn("StorageAdapter: 'update' method is not implemented")}},{key:"delete",value:function(){console.warn("StorageAdapter: 'delete' method is not implemented")}},{key:"clear",value:function(){console.warn("StorageAdapter: 'clear' method is not implemented")}}]),t}();function Oy(t){return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oy(t)}function L9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function N9(t,e,r){return e&&E1(t.prototype,e),r&&E1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function q9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Py(t,e)}function Py(t,e){return Py=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Py(t,e)}function z9(t){var e=U9();return function(){var n=$u(t),i;if(e){var o=$u(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return H9(this,i)}}function H9(t,e){if(e&&(Oy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T1(t)}function T1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $u(t){return $u=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$u(t)}function V9(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var A1=function(t){q9(r,t);var e=z9(r);function r(){var n;L9(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o)),V9(T1(n),"db",new Map),n}return N9(r,[{key:"read",value:function(i){return Promise.resolve(this.db.get(i))}},{key:"update",value:function(i,o){return Promise.resolve(this.db.set(i,o))}},{key:"delete",value:function(i){return Promise.resolve(this.db.delete(i))}},{key:"clear",value:function(){return Promise.resolve(this.db.clear())}}]),r}(Gu);function Sy(t){return Sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sy(t)}function W9(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function G9(t,e,r){return e&&R1(t.prototype,e),r&&R1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $9(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ky(t,e)}function ky(t,e){return ky=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ky(t,e)}function K9(t){var e=Q9();return function(){var n=Ku(t),i;if(e){var o=Ku(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Y9(this,i)}}function Y9(t,e){if(e&&(Sy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X9(t)}function X9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q9(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ku(t){return Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ku(t)}var D1=function(t){$9(r,t);var e=K9(r);function r(){return W9(this,r),e.apply(this,arguments)}return G9(r,[{key:"read",value:function(i,o){return z.get(A.get(o).apiPath+i).then(function(a){if(!a.success){console.error("RemoteStorageAdapter.read:",a.errors);return}return a.data})}},{key:"create",value:function(i,o,a){return z.post(A.get(a).apiPath,o)}},{key:"update",value:function(i,o,a){return z.put(A.get(a).apiPath+i,o)}},{key:"delete",value:function(i,o){return z.delete(A.get(o).apiPath+i)}}]),r}(Gu);function J9(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=I1(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function C1(t){return t7(t)||e7(t)||I1(t)||Z9()}function Z9(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I1(t,e){if(!!t){if(typeof t=="string")return Ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ey(t,e)}}function e7(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function t7(t){if(Array.isArray(t))return Ey(t)}function Ey(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function j1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function r7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?j1(Object(r),!0).forEach(function(n){Yu(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):j1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function n7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i7(t,e,r){return e&&B1(t.prototype,e),r&&B1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o7=function(){function t(){n7(this,t),Yu(this,"states",new Map),Yu(this,"objectsById",new Map),Yu(this,"listeners",[])}return i7(t,[{key:"register",value:function(r){if(this.states.has(r.id)){this.objectsById.get(r.id).add(r);return}var n=this.objectsById.get(r.id);n||(n=new Set,this.objectsById.set(r.id,n)),n.add(r),this._saveState(r)}},{key:"isRegistered",value:function(r){return this.objectsById.has(r.id)}},{key:"_saveState",value:function(r){var n=r7({},r);n.focused=r.focused;for(var i in n)Array.isArray(n[i])&&(n[i]=n[i].slice());this.states.set(r.id,n)}},{key:"delete",value:function(r){this.states.delete(r.id),this.objectsById.delete(r.id),this._deleteListenersBy(function(n){return n.id===r.id})}},{key:"notify",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.states.has(r.id)){console.warn("DataFlow: trying to notify not registered object",r,n);return}if(!n.source||n.source===r){var i=this.objectsById.get(r.id);i.forEach(function(u){r!==u&&u.merge(r,!1,!0)})}var o=this.states.get(r.id),a=n.diffs||this.getDiffs(o,r),s=n.source||r,l={source:s,diffs:a};return this.listeners.forEach(function(u){u.id!==r.id||!u.metaType||s.metaType!==u.metaType||u.handler.call(u.context,l)}),n.source||this._saveState(r),a}},{key:"getDiffs",value:function(r,n){var i=["details","parent"],o=new Set,a=new Set([].concat(C1(Object.keys(r)),C1(Object.keys(n)),["_focused"])),s=J9(a),l;try{for(s.s();!(l=s.n()).done;){var u=l.value;!i.includes(u)&&!this._isEqual(r[u],n[u])&&o.add(this._fixProp(u))}}catch(c){s.e(c)}finally{s.f()}return o}},{key:"_isEqual",value:function(r,n){return Array.isArray(r)&&Array.isArray(n)?r.length===n.length&&r.every(function(i,o){return i.id?i.id===n[o].id:i===n[o]}):r===n}},{key:"_fixProp",value:function(r){return r.startsWith("_")?r.slice(1):r}},{key:"subscribe",value:function(r){var n=function(o){return o.handler===r.handler&&o.context===r.context&&o.metaType===r.metaType};this.listeners.some(n)||this.listeners.push(r)}},{key:"unsubscribe",value:function(r,n,i,o){n&&i&&o?this._deleteListenersBy(function(a){return a.context===r&&a.id===n&&i===a.metaType&&o===a.handler}):n&&o?this._deleteListenersBy(function(a){return a.context===r&&a.id===n&&o===a.handler}):n&&i?this._deleteListenersBy(function(a){return a.context===r&&a.id===n&&i===a.metaType}):n?this._deleteListenersBy(function(a){return a.context===r&&a.id===n}):this._deleteListenersBy(function(a){return a.context===r})}},{key:"_deleteListenersBy",value:function(r){this.listeners=this.listeners.filter(function(n){return!r(n)})}}]),t}();window.DataFlow=new o7;function Ty(t){return Ty=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ty(t)}function M1(t){return u7(t)||l7(t)||s7(t)||a7()}function a7(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s7(t,e){if(!!t){if(typeof t=="string")return Ay(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ay(t,e)}}function l7(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function u7(t){if(Array.isArray(t))return Ay(t)}function Ay(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function L1(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function ft(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){L1(o,n,i,a,s,"next",l)}function s(l){L1(o,n,i,a,s,"throw",l)}a(void 0)})}}function c7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function N1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f7(t,e,r){return e&&N1(t.prototype,e),r&&N1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ry(t,e)}function Ry(t,e){return Ry=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ry(t,e)}function d7(t){var e=m7();return function(){var n=Xu(t),i;if(e){var o=Xu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return h7(this,i)}}function h7(t,e){if(e&&(Ty(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return He(t)}function He(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xu(t){return Xu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xu(t)}function Qe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var y7=function(t){p7(r,t);var e=d7(r);function r(){var n;c7(this,r),n=e.call(this),Qe(He(n),"temporaryAdapter",new A1),Qe(He(n),"persistentAdapter",new D1),Qe(He(n),"cache",new Map),Qe(He(n),"activeRequests",new Map),Qe(He(n),"dirtyObjects",new Map),Qe(He(n),"failedObjects",new Map),Qe(He(n),"lastSuccessfullSaveID",new Map),Qe(He(n),"savingObjects",new Set),Qe(He(n),"syncStates",new Map),Qe(He(n),"locked",!1),Qe(He(n),"syncing",!1);var i=function(){n.syncEnabled=navigator.onLine&&z.online};return i(),window.addEventListener("online",i),window.addEventListener("offline",i),z.on("online",i),z.on("offline",i),window.onbeforeunload=function(o){if(n.syncing||n.locked)return!1;if(n.dirtyObjects.size)return n.sync(),!1},n}return f7(r,[{key:"syncEnabled",get:function(){return this._syncEnabled},set:function(i){var o=this,a=this._syncEnabled!==i;this._syncEnabled=i,i&&a&&this.sync(),i||this.dirtyObjects.forEach(function(s){o.failedObjects.set(s.id,s)}),a&&this.emit("sync-enabled-change")}},{key:"_addRequest",value:function(){var n=ft(regeneratorRuntime.mark(function o(a,s){var l=this,u;return regeneratorRuntime.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!this.activeRequests.has(a)){f.next=2;break}return f.abrupt("return",this.activeRequests.get(a));case 2:return u=s(),this.activeRequests.set(a,u),u.then(function(){l.activeRequests.delete(a)}),f.abrupt("return",u);case 6:case"end":return f.stop()}},o,this)}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"_storeLastSaveID",value:function(i){i.saveID&&this.lastSuccessfullSaveID.set(i.id,i.saveID)}},{key:"_loadLastSaveID",value:function(i){return this.lastSuccessfullSaveID.get(i.id)}},{key:"fetch",value:function(){var n=ft(regeneratorRuntime.mark(function o(a){var s,l,u,c=arguments;return regeneratorRuntime.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return s=c.length>1&&c[1]!==void 0?c[1]:{},l=s.raw,u=function(m){return m?DataObject.restore(m):null},p.abrupt("return",this._addRequest("fetch"+a,ft(regeneratorRuntime.mark(function d(){return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",z.get(a).then(function(v){return v.success?l?v.data:Array.isArray(v.data)?v.data.map(u):u(v.data):(setTimeout(function(){throw"DataStorage.fetch(".concat(a,") error: ").concat(v.errors)}),null)},function(v){throw"DataStorage.fetch(".concat(a,"): ").concat(v.message)}));case 1:case"end":return h.stop()}},d)}))));case 3:case"end":return p.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"get",value:function(){var n=ft(regeneratorRuntime.mark(function o(a,s,l){var u=this,c,f,p=arguments;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c=p.length>3&&p[3]!==void 0?p[3]:{},f=c.raw,a){m.next=4;break}return console.error("DataStorage.get: id is null"),m.abrupt("return");case 4:if(!(this.cache.has(a)&&!l)){m.next=6;break}return m.abrupt("return",this.cache.get(a));case 6:if(s){m.next=9;break}return console.error("DataStorage.get: metaType is null"),m.abrupt("return");case 9:return m.abrupt("return",this._addRequest("get"+a,ft(regeneratorRuntime.mark(function h(){return regeneratorRuntime.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",u.persistentAdapter.read(a,s).then(function(b){return b?(u._storeLastSaveID(b),f?b:DataObject.restore(b)):null},function(b){console.error(b),console.error("DataStorage.get(".concat(a,", ").concat(s,"): ").concat(b.message))}));case 1:case"end":return y.stop()}},h)}))));case 10:case"end":return m.stop()}},o,this)}));function i(o,a,s){return n.apply(this,arguments)}return i}()},{key:"save",value:function(){var n=ft(regeneratorRuntime.mark(function o(a){var s,l,u,c,f,p=arguments;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(s=p.length>1&&p[1]!==void 0?p[1]:function(){},l=p.length>2&&p[2]!==void 0?p[2]:function(){},!a.virtual){m.next=4;break}return m.abrupt("return");case 4:return this.syncEnabled?this.dirtyObjects.set(a.id,a):this.failedObjects.set(a.id,a),m.next=7,this.temporaryAdapter[a.new?"create":"update"](a.id,a,a.metaType);case 7:if(this.enqueueSync(),u=this.syncStates.get(a.id),!u){m.next=13;break}return u.onStart.push(s),u.onFinish.push(l),m.abrupt("return",u.promise);case 13:return f=new Promise(function(h){c=h}),this.syncStates.set(a.id,{onStart:[s],onFinish:[l,c],promise:f}),m.abrupt("return",f);case 16:case"end":return m.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"delete",value:function(){var n=ft(regeneratorRuntime.mark(function o(a,s){return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,this.persistentAdapter.delete(a,s);case 2:return u.next=4,this.temporaryAdapter.delete(a,s);case 4:this.cache.delete(a);case 5:case"end":return u.stop()}},o,this)}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"enqueueSync",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.syncing||(this.emit("dirty"),this.emit("update")),!this.syncEnqueued&&(setTimeout(function(){i.syncEnqueued=!1,i.sync()},o||this.syncing?2e3:0),this.syncEnqueued=!0,this.emit("update"))}},{key:"sync",value:function(){var n=ft(regeneratorRuntime.mark(function o(){var a=this,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(this.syncEnabled&&this.failedObjects.size)){u.next=3;break}return u.next=3,Promise.allSettled(M1(this.failedObjects.values()).map(function(){var c=ft(regeneratorRuntime.mark(function f(p){var d,m,h;return regeneratorRuntime.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(d=a._loadLastSaveID(p),d){y.next=5;break}return a.failedObjects.delete(p.id),a.dirtyObjects.set(p.id,p),y.abrupt("return");case 5:return y.next=7,a.persistentAdapter.read(p.id,p.metaType);case 7:m=y.sent,a.failedObjects.delete(p.id),!m.saveID||d===m.saveID?a.dirtyObjects.set(p.id,p):(a.dirtyObjects.delete(m.id),h=a.cache.get(m.id),h.merge(DataObject.restoreData(m),!0),h.upgrade(),a._storeLastSaveID(m));case 10:case"end":return y.stop()}},f)}));return function(f){return c.apply(this,arguments)}}()));case 3:if(!(this.syncing||!this.syncEnabled||!this.dirtyObjects.size)){u.next=7;break}return this.emit("synced"),this.emit("update"),u.abrupt("return");case 7:return this.syncing=!0,this.emit("syncing"),this.emit("update"),s=!1,u.next=13,Promise.all(M1(this.dirtyObjects).map(function(){var c=ft(regeneratorRuntime.mark(function f(p){var d,m,h,v;return regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return d=p[1],m=a.syncStates.get(d.id),a.syncStates.delete(d.id),m&&m.onStart.forEach(function(_){_()}),a.dirtyObjects.delete(d.id),a.savingObjects.add(d.id),b.prev=6,b.next=9,a.persistentAdapter[d.new?"create":"update"](d.id,d,d.metaType);case 9:h=b.sent,h.errors||!h.response.ok?s=!0:(v=a.cache.get(d.id),v.new=!1,a._storeLastSaveID(d)),b.next=17;break;case 13:b.prev=13,b.t0=b.catch(6),s=!0,d.saveID&&!a.failedObjects.has(d.id)?a.failedObjects.set(d.id,d):a.dirtyObjects.has(d.id)||a.dirtyObjects.set(d.id,d);case 17:a.savingObjects.delete(d.id),m&&m.onFinish.forEach(function(_){_()});case 19:case"end":return b.stop()}},f,null,[[6,13]])}));return function(f){return c.apply(this,arguments)}}()));case 13:this.syncing=!1,this.emit("synced"),this.emit("update"),s?this.emit("error"):this.dirtyObjects.size&&this.enqueueSync(!0);case 17:case"end":return u.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"isObjectDirty",value:function(i){return this.dirtyObjects.has(i.id)||this.savingObjects.has(i.id)}},{key:"clearCache",value:function(){return this.cache.clear(),this.temporaryAdapter.clear()}}]),r}(Gn);window.DataStorage=new y7;var v7=new Map;window.ComponentRegistry=v7;APP.questionTypes=Object.freeze({INSTRUCTION:"instruction",SINGLECHOICE:"single-choice",MULTICHOICE:"multi-choice",TEXTINPUT:"text-input",MATRIX:"matrix",DROPDOWN:"dropdown",AUTOCOMPLETE:"autocomplete",SLIDERS:"sliders",HEATMAP:"heatmap",FILE_UPLOAD:"file-upload",SORTING:"sorting",CODE:"code",SIGNATURE:"signature"});var q1=function(){APP.questionTypesAll=[{response:APP.questionTypes.INSTRUCTION,name:w.get("qt-browser.info-page-question-type-name"),icon:"comment-text-outline",description:w.get("qt-browser.info-page-question-type-description"),modifiers:[{name:w.get("qt-browser.info-page-question-type-modifier-name"),icon:"comment-text-outline",response:"default"}]},{response:APP.questionTypes.SINGLECHOICE,name:w.get("qt-browser.single-choice-question-type-name"),icon:"radiobox-marked",description:w.get("qt-browser.single-choice-question-type-description"),modifiers:[{name:w.get("qt-browser.vertical-left-question-type-modifier-name"),icon:"radiobox-marked",response:"default"},{name:w.get("qt-browser.vertical-right-question-type-modifier-name"),icon:"radiobox-marked",response:"column-left-label"},{name:w.get("qt-browser.horizontal-question-type-modifier-name"),icon:"radiobox-marked",response:"row"},{name:w.get("qt-browser.rows-question-type-modifier-name"),icon:"radiobox-marked",response:"rows"},{name:w.get("qt-browser.columns-question-type-modifier-name"),icon:"radiobox-marked",response:"columns"}]},{response:APP.questionTypes.MULTICHOICE,name:w.get("qt-browser.multiple-choice-question-type-name"),icon:"checkbox-multiple-marked-outline",description:w.get("qt-browser.multiple-choice-question-type-description"),modifiers:[{name:w.get("qt-browser.vertical-left-question-type-modifier-name"),icon:"checkbox-multiple-marked",response:"default"},{name:w.get("qt-browser.vertical-right-question-type-modifier-name"),icon:"checkbox-multiple-marked",response:"column-left-label"},{name:w.get("qt-browser.horizontal-question-type-modifier-name"),icon:"checkbox-multiple-marked",response:"row"},{name:w.get("qt-browser.rows-question-type-modifier-name"),icon:"checkbox-multiple-marked",response:"rows"},{name:w.get("qt-browser.columns-question-type-modifier-name"),icon:"checkbox-multiple-marked",response:"columns"}]},{response:APP.questionTypes.TEXTINPUT,name:w.get("qt-browser.text-input-question-type-name"),icon:"format-text",description:w.get("qt-browser.text-input-question-type-description"),modifiers:[{name:w.get("qt-browser.single-line-text-input-modifier-name"),icon:"cursor-text",response:"single-line"},{name:w.get("qt-browser.multiple-lines-text-input-modifier-name"),icon:"text-box-outline",response:"multiline"},{name:w.get("qt-browser.form-text-input-modifier-name"),icon:"pencil-box-multiple-outline",response:"form"}]},{response:APP.questionTypes.MATRIX,name:w.get("qt-browser.matrix-question-type-name"),icon:"table",description:w.get("qt-browser.matrix-question-type-description"),modifiers:[{name:w.get("qt-browser.simple-matrix-modifier-name"),icon:"table",response:"simple"},{name:w.get("qt-browser.side-by-side-matrix-modifier-name"),description:w.get("qt-browser.side-by-side-matrix-modifier-description"),icon:"table",response:"side-by-side"},{name:w.get("qt-browser.bipolar-matrix-modifier-name"),description:w.get("qt-browser.bipolar-matrix-modifier-description"),icon:"table",response:"bipolar"}]},{response:APP.questionTypes.DROPDOWN,name:w.get("qt-browser.dropdown-select-question-type-name"),icon:"arrow-down-drop-circle-outline",description:w.get("qt-browser.dropdown-select-question-type-description"),modifiers:[{name:w.get("qt-browser.default-dropdown-select-modifier-name"),icon:"arrow-down-drop-circle-outline",response:"default"}]},{response:APP.questionTypes.AUTOCOMPLETE,name:w.get("qt-browser.autocomplete-question-type-name"),icon:"qs-autocomplete",description:w.get("qt-browser.autocomplete-question-type-description"),modifiers:[{name:w.get("qt-browser.single-answer-autocomplete-modifier-name"),icon:"qs-autocomplete",response:"single-answer"},{name:w.get("qt-browser.multiple-answers-autocomplete-modifier-name"),icon:"qs-autocomplete-multiple",response:"multiple-answers"}]},{response:APP.questionTypes.SLIDERS,name:w.get("qt-browser.sliders-and-graphs-question-type-name"),icon:"tune",description:w.get("qt-browser.sliders-and-graphs-question-type-description"),modifiers:[{name:w.get("qt-browser.sliders-sliders-and-graphs-modifier-name"),icon:"tune",response:"sliders"},{name:w.get("qt-browser.gradient-sliders-sliders-and-graphs-modifier-name"),icon:"gate",response:"gradient-sliders"},{name:w.get("qt-browser.bars-sliders-and-graphs-modifier-name"),icon:"tune",response:"balks"},{name:w.get("qt-browser.ratings-sliders-and-graphs-modifier-name"),icon:"star",response:"ratings"},{name:w.get("qt-browser.emotions-sliders-and-graphs-modifier-name"),icon:"emoticon",response:"emotions"}]},{response:APP.questionTypes.SORTING,name:w.get("qt-browser.sorting-question-type-name"),icon:"sort",modifiers:[{name:w.get("qt-browser.rank-order-sorting-modifier-name"),icon:"sort",response:"rank-order"}]},{name:w.get("qt-browser.constant-sum-question-type-name"),icon:"sigma",isConstantSum:!0,modifiers:[{name:w.get("qt-browser.form-text-input-modifier-name"),icon:"pencil-box-multiple-outline",response:"form",type:APP.questionTypes.TEXTINPUT,isConstantSum:!0},{name:w.get("qt-browser.sliders-sliders-and-graphs-modifier-name"),icon:"tune",response:"sliders",type:APP.questionTypes.SLIDERS,isConstantSum:!0},{name:w.get("qt-browser.gradient-sliders-sliders-and-graphs-modifier-name"),icon:"gate",response:"gradient-sliders",type:APP.questionTypes.SLIDERS,isConstantSum:!0},{name:w.get("qt-browser.bars-sliders-and-graphs-modifier-name"),icon:"tune",response:"balks",type:APP.questionTypes.SLIDERS,isConstantSum:!0},{name:w.get("qt-browser.ratings-sliders-and-graphs-modifier-name"),icon:"star",response:"ratings",type:APP.questionTypes.SLIDERS,isConstantSum:!0}]},{response:APP.questionTypes.HEATMAP,name:w.get("qt-browser.heatmap-question-type-name"),icon:"fire",modifiers:[{name:w.get("qt-browser.default-heatmap-modifier-name"),icon:"fire",response:"default"}]},{response:APP.questionTypes.FILE_UPLOAD,name:w.get("qt-browser.file-upload-question-type-name"),icon:"file-upload",modifiers:[{name:w.get("qt-browser.default-file-upload-modifier-name"),icon:"file-upload",response:"default"}]},{response:APP.questionTypes.SIGNATURE,name:w.get("qt-browser.signature-question-type-name"),icon:"draw",description:w.get("qt-browser.signature-modifier-name"),modifiers:[{name:w.get("qt-browser.signature-question-type-name"),icon:"draw",response:"default"}]},{response:APP.questionTypes.CODE,name:w.get("qt-browser.custom-html-css-js-question-type-name"),icon:"code-tags",description:w.get("qt-browser.custom-html-css-js-question-type-description"),modifiers:[{name:w.get("qt-browser.default-custom-html-css-js-modifier-name"),icon:"code-tags",response:"default"}]}]};w.inited.then(q1);w.onLanguageChange.add(q1);function z1(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function g7(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){z1(o,n,i,a,s,"next",l)}function s(l){z1(o,n,i,a,s,"throw",l)}a(void 0)})}}window.Modifier={apply:function(){var t=g7(regeneratorRuntime.mark(function r(n){var i,o,a,s,l,u,c,f,p=arguments;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:i=p.length>1&&p[1]!==void 0?p[1]:{},i._modifier=n,o={},i.type===APP.questionTypes.SINGLECHOICE&&i.optionLists[0]&&(a=i.optionLists[0],a.items.forEach(function(h){h.isPreset&&(s=h,h.isPreset=!1)}),s&&(a.items[s.index].isPreset=!0)),i.type===APP.questionTypes.TEXTINPUT&&i.statementLists[0]&&!i.details[APP.questionTypes.TEXTINPUT]&&(l=i.statementLists[0],l.items.forEach(function(h){h.respondType=APP.scaleTypes.TEXT})),(i.type===APP.questionTypes.DROPDOWN||i.type===APP.questionTypes.AUTOCOMPLETE)&&i.clearHTML(),i.type===APP.questionTypes.DROPDOWN&&i.optionLists[0]&&(i.setForAllItems("isPreset",!1),u=i.optionLists.some(function(h){return h.items.some(function(v){return v.isCallToAction})}),u||(c=i.optionLists[0],f=new Item({label:w.get("qt-browser.please-select-question-modifier"),isCallToAction:!0}),c._items.unshift(f),c.update())),o[n]&&o[n]();case 8:case"end":return m.stop()}},r)}));function e(r){return t.apply(this,arguments)}return e}()};ca()&&(Dy=window.innerHeight,window.addEventListener("resize",function(){var t=Zn();if(window.innerHeight<Dy&&t&&t.matches("[contenteditable], input, textarea")){var e=wt();e&&e.anchorNode&&(t=e.anchorNode instanceof HTMLElement?e.anchorNode:e.anchorNode.parentElement),t&&t.scrollIntoView({block:"center",behavior:"smooth"})}Dy=window.innerHeight}));var Dy;var Cy=new Set,Qu=function(e){Cy.add(e)},H1=function(e){Cy.delete(e)},U1=!1,Ju=function(e){U1!==e&&(U1=e,Cy.forEach(function(r){r(e)}))};window.addEventListener("keydown",function(t){t.key==="Tab"&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&Ju(!0)},!0);window.addEventListener("mousedown",function(){Ju(!1)},!0);Qu(function(t){t?document.body.setAttribute("focus-visible",""):document.body.removeAttribute("focus-visible")});function Iy(t){return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iy(t)}function V1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function b7(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?V1(Object(r),!0).forEach(function(n){_7(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V1(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _7(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function F7(t,e,r){return e&&W1(t.prototype,e),r&&W1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Da(){return typeof Reflect!="undefined"&&Reflect.get?Da=Reflect.get:Da=function(e,r,n){var i=x7(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Da.apply(this,arguments)}function x7(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=tn(t),t!==null););return t}function O7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jy(t,e)}function jy(t,e){return jy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jy(t,e)}function P7(t){var e=E7();return function(){var n=tn(t),i;if(e){var o=tn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return S7(this,i)}}function S7(t,e){if(e&&(Iy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k7(t)}function k7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function tn(t){return tn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},tn(t)}var Ca=function t(e){return function(r){O7(i,r);var n=P7(i);function i(){var o;return w7(this,i),o=n.call(this),o._getStateProps().forEach(function(a){o._loadPropState(a);var s=a.name+"-state-observer";o[s]=function(l){t.updating||o._setStateValue(a,l)},o._createPropertyObserver(a.name,s)}),o}return F7(i,[{key:"_setStateValue",value:function(a,s){var l=this;t.updating=!0;var u=t.registry.get(a.statePath);u&&u.forEach(function(c){c.component!==l&&(c.component[c.prop.name]=s)}),this._savePropState(a,s),t.updating=!1}},{key:"_savePropState",value:function(a,s){localStorage["state-mixin:"+a.statePath]=JSON.stringify(s)}},{key:"_getPropState",value:function(a){var s=localStorage["state-mixin:"+a.statePath];if(s)return JSON.parse(s)}},{key:"_loadPropState",value:function(a){var s=this._getPropState(a);s!==void 0&&(t.updating=!0,this[a.name]=s,t.updating=!1)}},{key:"_getStateProps",value:function(){var a=this;return Object.keys(this.constructor.properties||[]).filter(function(s){return a.constructor.properties[s].statePath}).map(function(s){return b7({name:s},a.constructor.properties[s])})}},{key:"connectedCallback",value:function(){var a=this;Da(tn(i.prototype),"connectedCallback",this).call(this),this._getStateProps().forEach(function(s){t.registry.has(s.statePath)||t.registry.set(s.statePath,[]);var l=t.registry.get(s.statePath);l.push({component:a,prop:s}),a._loadPropState(s)})}},{key:"disconnectedCallback",value:function(){var a=this;Da(tn(i.prototype),"disconnectedCallback",this).call(this),t.registry.forEach(function(s){var l=s.findIndex(function(u){return u.component===a});l!==-1&&s.splice(l,1)})}}]),i}(e)};Ca.updating=!1;Ca.registry=new Map;function By(t){return By=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},By(t)}function T7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function G1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function A7(t,e,r){return e&&G1(t.prototype,e),r&&G1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ia(){return typeof Reflect!="undefined"&&Reflect.get?Ia=Reflect.get:Ia=function(e,r,n){var i=R7(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ia.apply(this,arguments)}function R7(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=rn(t),t!==null););return t}function D7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&My(t,e)}function My(t,e){return My=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},My(t,e)}function C7(t){var e=j7();return function(){var n=rn(t),i;if(e){var o=rn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return I7(this,i)}}function I7(t,e){if(e&&(By(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $1(t)}function $1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function j7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function rn(t){return rn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rn(t)}var Ly=function(e){return function(r){D7(i,r);var n=C7(i);function i(){var o;return T7(this,i),o=n.call(this),o._subscribeHandlers=new Map,o._getSubscribeProps().forEach(function(a){var s=a+"-subscribe-observer";o[s]=function(l,u){l!==u&&(u&&(u.unsubscribe($1(o),u.metaType,o._getHandlerForProp(a)),o._subscribeHandlers.delete(a)),o._subscribe(a))},o._createPropertyObserver(a,s)}),o}return A7(i,[{key:"connectedCallback",value:function(){var a=this;Ia(rn(i.prototype),"connectedCallback",this).call(this),this._getSubscribeProps().forEach(function(s){a[s]&&a._subscribe(s)})}},{key:"disconnectedCallback",value:function(){var a=this;Ia(rn(i.prototype),"disconnectedCallback",this).call(this),this._getSubscribeProps().forEach(function(s){a[s]&&(a[s].unsubscribe?a[s].unsubscribe(a,a[s].metaType,a._getHandlerForProp(s)):setTimeout(function(){var l;if(a[s].metaType)l=a[s].metaType;else if(a[s].serialize)l=JSON.stringify(a[s].serialize());else try{l=JSON.stringify(a[s])}catch(u){l=a[s]}throw"no unsubscribe method: "+l}),a._subscribeHandlers.delete(s))})}},{key:"_getSubscribeProps",value:function(){var a=this;return Object.keys(this.constructor.properties||[]).filter(function(s){return a.constructor.properties[s].subscribe})}},{key:"_getHandlerForProp",value:function(a){var s=this;if(this._subscribeHandlers.has(a))return this._subscribeHandlers.get(a);var l=!1,u=function(f){var p=f.diffs,d=s.constructor.properties[a].subscribe;d instanceof Array&&!d.some(function(m){return p.has(m)})||l||(l=!0,s.notifyPath(a),l=!1)};return this._subscribeHandlers.set(a,u),u}},{key:"_subscribe",value:function(a){!this[a]||!this.isConnected||this._subscribeHandlers.has(a)||(this._sub=!0,this[a].subscribe(this,this._getHandlerForProp(a)))}}]),i}(e)};function Ny(t){return Ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ny(t)}function B7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function M7(t,e,r){return e&&K1(t.prototype,e),r&&K1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ja(){return typeof Reflect!="undefined"&&Reflect.get?ja=Reflect.get:ja=function(e,r,n){var i=L7(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ja.apply(this,arguments)}function L7(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=nn(t),t!==null););return t}function N7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qy(t,e)}function qy(t,e){return qy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qy(t,e)}function q7(t){var e=U7();return function(){var n=nn(t),i;if(e){var o=nn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return z7(this,i)}}function z7(t,e){if(e&&(Ny(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H7(t)}function H7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function U7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function nn(t){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nn(t)}var zy=function(e){return function(r){N7(i,r);var n=q7(i);function i(){return B7(this,i),n.apply(this,arguments)}return M7(i,[{key:"connectedCallback",value:function(){ja(nn(i.prototype),"connectedCallback",this).call(this),this.constructor.global&&ComponentRegistry.set(this.constructor.is,this)}},{key:"disconnectedCallback",value:function(){ja(nn(i.prototype),"disconnectedCallback",this).call(this),this.constructor.global&&ComponentRegistry.delete(this.constructor.is)}}]),i}(e)};function Hy(t){return Hy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hy(t)}function V7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function W7(t,e,r){return e&&Y1(t.prototype,e),r&&Y1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ba(){return typeof Reflect!="undefined"&&Reflect.get?Ba=Reflect.get:Ba=function(e,r,n){var i=G7(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ba.apply(this,arguments)}function G7(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=on(t),t!==null););return t}function $7(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Uy(t,e)}function Uy(t,e){return Uy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Uy(t,e)}function K7(t){var e=Q7();return function(){var n=on(t),i;if(e){var o=on(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Y7(this,i)}}function Y7(t,e){if(e&&(Hy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X7(t)}function X7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Q7(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function on(t){return on=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},on(t)}var Vy=function(e){return function(r){$7(i,r);var n=K7(i);function i(){var o;return V7(this,i),o=n.call(this),o.__onLangChange=function(){o.l10n=w.data,o.locale=w.language,o.l10nObserver&&o.l10nObserver()},o}return W7(i,[{key:"connectedCallback",value:function(){var a=this;Ba(on(i.prototype),"connectedCallback",this).call(this),w.onLanguageChange.add(this.__onLangChange),w.data?this.l10n=w.data:w.inited.then(function(){a.l10n=w.data})}},{key:"disconnectedCallback",value:function(){Ba(on(i.prototype),"disconnectedCallback",this).call(this),w.onLanguageChange.delete(this.__onLangChange)}}]),i}(e)};function Wy(t){return Wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wy(t)}function J7(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function X1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Z7(t,e,r){return e&&X1(t.prototype,e),r&&X1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ma(){return typeof Reflect!="undefined"&&Reflect.get?Ma=Reflect.get:Ma=function(e,r,n){var i=eH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ma.apply(this,arguments)}function eH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=an(t),t!==null););return t}function tH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gy(t,e)}function Gy(t,e){return Gy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Gy(t,e)}function rH(t){var e=oH();return function(){var n=an(t),i;if(e){var o=an(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return nH(this,i)}}function nH(t,e){if(e&&(Wy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iH(t)}function iH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function an(t){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},an(t)}var or=function t(e){return function(r){tH(i,r);var n=rH(i);function i(){return J7(this,i),n.apply(this,arguments)}return Z7(i,[{key:"connectedCallback",value:function(){Ma(an(i.prototype),"connectedCallback",this).call(this),t.stats[this.localName]=t.stats[this.localName]||0,t.stats[this.localName]++,t.total++}},{key:"disconnectedCallback",value:function(){Ma(an(i.prototype),"disconnectedCallback",this).call(this),t.stats[this.localName]--,t.stats[this.localName]||delete t.stats[this.localName],t.total--}}]),i}(e)};or.stats={};or.total=0;or.print=function(){console.groupCollapsed("Total:",or.total),Object.entries(or.stats).sort(function(t,e){return e[1]-t[1]}).forEach(function(t){console.info(t[0]+":",t[1])}),console.groupEnd()};window.StatsMixin=or;function $y(t){return $y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$y(t)}function aH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function sH(t,e,r){return e&&Q1(t.prototype,e),r&&Q1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ky(t,e)}function Ky(t,e){return Ky=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ky(t,e)}function uH(t){var e=pH();return function(){var n=Zu(t),i;if(e){var o=Zu(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return cH(this,i)}}function cH(t,e){if(e&&($y(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fH(t)}function fH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Zu(t){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Zu(t)}var Yy=function(e){return function(r){lH(i,r);var n=uH(i);function i(){return aH(this,i),n.apply(this,arguments)}return sH(i,[{key:"is",value:function(a){for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u<s;u++)l[u-1]=arguments[u];return a!==void 0&&l.includes(a)}},{key:"isNull",value:function(a){return a==null}},{key:"get",value:function(a){return a}},{key:"if",value:function(a,s,l){return a?s:l}},{key:"inc",value:function(a){return a+1}},{key:"fallback",value:function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return s.find(function(u){return u!=null&&u!==""})}},{key:"getProp",value:function(a,s){return a[s]}},{key:"removeHTML",value:function(a){return Edit.removeHTML(a)}},{key:"hasPermission",value:function(a,s){return User.permissions.hasPermission(a,s)}}]),i}(e)};function Xy(t){return Xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xy(t)}function dH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J1(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hH(t,e,r){return e&&J1(t.prototype,e),r&&J1(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function La(){return typeof Reflect!="undefined"&&Reflect.get?La=Reflect.get:La=function(e,r,n){var i=mH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},La.apply(this,arguments)}function mH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=sn(t),t!==null););return t}function yH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qy(t,e)}function Qy(t,e){return Qy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Qy(t,e)}function vH(t){var e=bH();return function(){var n=sn(t),i;if(e){var o=sn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gH(this,i)}}function gH(t,e){if(e&&(Xy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ue(t)}function Ue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function sn(t){return sn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},sn(t)}function _H(t,e){Z1(t,e),e.add(t)}function wH(t,e,r){Z1(t,e),e.set(t,r)}function Z1(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function eE(t,e,r){var n=tE(t,e,"set");return FH(t,n,r),r}function FH(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function Jy(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function Zy(t,e){var r=tE(t,e,"get");return xH(t,r)}function tE(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function xH(t,e){return e.get?e.get.call(t):e.value}var ev=function(e){var r,n;return r=new WeakMap,n=new WeakSet,function(o){yH(s,o);var a=vH(s);function s(){var l;dH(this,s),l=a.call(this),_H(Ue(l),n),wH(Ue(l),r,{writable:!0,value:[]});var u=l._getProvideProps();return u.length&&(l.addEventListener("context-consume",function(c){c.stopPropagation(),Zy(Ue(l),r).push({host:c.composedPath()[0],prop:c.detail.prop,contextProp:c.detail.contextProp}),u.forEach(function(f){var p=l.constructor.properties[f].provide;p===c.detail.contextProp&&(c.detail.provided=!0,Jy(Ue(l),n,i).call(Ue(l),p,l[f]))})}),l.addEventListener("context-unconsume",function(c){c.stopPropagation(),eE(Ue(l),r,Zy(Ue(l),r).filter(function(f){var p=f.host,d=f.contextProp;return p!==c.composedPath()[0]||d!==c.detail.contextProp}))})),u.forEach(function(c){var f=l.constructor.properties[c].provide;Jy(Ue(l),n,i).call(Ue(l),f,l[c])}),u.forEach(function(c){var f=l.constructor.properties[c].provide,p=c+"-context-observer";l[p]=function(d,m){d!==m&&Jy(Ue(l),n,i).call(Ue(l),f,l[c])},l._createPropertyObserver(c,p)}),l}return hH(s,[{key:"_getProvideProps",value:function(){var u=this;return Object.keys(this.constructor.properties||[]).filter(function(c){return u.constructor.properties[c].provide})}},{key:"_getConsumeProps",value:function(){var u=this;return Object.keys(this.constructor.properties||[]).filter(function(c){return u.constructor.properties[c].consume})}},{key:"connectedCallback",value:function(){var u=this;La(sn(s.prototype),"connectedCallback",this).call(this),this._getConsumeProps().forEach(function(c){var f=u.constructor.properties[c].consume,p=!0;typeof f!="string"&&(p=f.required,f=f.key);var d=new CustomEvent("context-consume",{bubbles:!0,composed:!0,detail:{prop:c,contextProp:f}});u.dispatchEvent(d),!d.detail.provided&&p&&console.error("Context: no provider found for '".concat(f,"'"),u)})}},{key:"disconnectedCallback",value:function(){var u=this;La(sn(s.prototype),"disconnectedCallback",this).call(this),eE(this,r,[]),this._getConsumeProps().forEach(function(c){var f=u.constructor.properties[c].consume;typeof f!="string"&&(f=f.key),u.dispatchEvent(new CustomEvent("context-unconsume",{bubbles:!0,composed:!0,detail:{prop:c,contextProp:f}}))})}}]),s}(e);function i(o,a){Zy(this,r).forEach(function(s){s.contextProp===o&&(s.host[s.prop]=a)})}};function tv(t){return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tv(t)}function OH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function PH(t,e,r){return e&&rE(t.prototype,e),r&&rE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Na(){return typeof Reflect!="undefined"&&Reflect.get?Na=Reflect.get:Na=function(e,r,n){var i=SH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Na.apply(this,arguments)}function SH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ln(t),t!==null););return t}function kH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rv(t,e)}function rv(t,e){return rv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rv(t,e)}function EH(t){var e=RH();return function(){var n=ln(t),i;if(e){var o=ln(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return TH(this,i)}}function TH(t,e){if(e&&(tv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AH(t)}function AH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function RH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}var Q=function t(e){return function(r){kH(i,r);var n=EH(i);function i(){return OH(this,i),n.apply(this,arguments)}return PH(i,[{key:"connectedCallback",value:function(){var a=this;Na(ln(i.prototype),"connectedCallback",this).call(this),this.constructor.sharedStyles&&(t.elements.set(this,this.constructor.sharedStyles),this.constructor.sharedStyles.forEach(function(s){t.applyStyle(a,s)}))}},{key:"disconnectedCallback",value:function(){Na(ln(i.prototype),"disconnectedCallback",this).call(this),this.constructor.sharedStyles&&t.elements.delete(this)}}]),i}(e)};window.SharedStylesMixin=Q;Q.elements=new Map;Q.styles=new Map;Q.updateStyle=function(t,e){var r=document.createElement("style");r.textContent=e,r.id=t,Q.styles.set(t,r),Q.elements.forEach(function(n,i){n.includes(t)&&Q.applyStyle(i,t)})};Q.applyStyle=function(t,e){var r=Q.styles.get(e);if(!!r){var n=t.shadowRoot.querySelector("#".concat(e));n&&n.remove(),t.shadowRoot.append(r.cloneNode(!0))}};function nv(t){return nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nv(t)}function DH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function CH(t,e,r){return e&&nE(t.prototype,e),r&&nE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mi(){return typeof Reflect!="undefined"&&Reflect.get?mi=Reflect.get:mi=function(e,r,n){var i=IH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},mi.apply(this,arguments)}function IH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ar(t),t!==null););return t}function jH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&iv(t,e)}function iv(t,e){return iv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},iv(t,e)}function BH(t){var e=NH();return function(){var n=ar(t),i;if(e){var o=ar(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return MH(this,i)}}function MH(t,e){if(e&&(nv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LH(t)}function LH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NH(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ar(t)}var iE=function(e){return function(r){jH(i,r);var n=BH(i);function i(){return DH(this,i),n.apply(this,arguments)}return CH(i,[{key:"ready",value:function(){var a=this;mi(ar(i.prototype),"ready",this).call(this);var s=function(f){typeof DragSpotMdl!="undefined"&&(a._dragActive=!!DragSpotMdl.dragging,clearInterval(a._scrollInterval))};this._dragScrollOnMove=function(c){if(typeof DragSpotMdl!="undefined"){if(!DragSpotMdl.dragging){a._scrollInterval&&(clearInterval(a._scrollInterval),a._scrollInterval=null);return}var f;if(c.type==="touchmove"){f=c.touches[0].clientY;var p=Ql(c.touches[0].clientX,c.touches[0].clientY);if(!p||!p.composedClosest||!p.composedClosest("[slot=left-panel], survey-navigator-mdl, compact-survey-navigator-mdl")){clearInterval(a._scrollInterval);return}}else f=c.clientY;if(s(),clearInterval(a._scrollInterval),!!a._dragActive){var d=a.getDragScrollContainer();f+40>window.innerHeight?(u(!0),a._scrollInterval=setInterval(function(){u(!0)},20)):f<d.getBoundingClientRect().top+40&&(u(!1),a._scrollInterval=setInterval(function(){u(!1)},20))}}};var l=!1,u=function(f){l||(l=!0,setTimeout(function(){requestAnimationFrame(function(){var p=a.getDragScrollContainer();p.scrollTop=p.scrollTop+10*(f?1:-1),l=!1})},40))};this._dragScrollOnUp=function(){clearInterval(a._scrollInterval),a._dragActive=!1},this.addEventListener("mouseenter",s),this.addEventListener("mouseleave",function(c){clearInterval(a._scrollInterval),a._dragActive=!1})}},{key:"connectedCallback",value:function(){mi(ar(i.prototype),"connectedCallback",this).call(this),document.addEventListener("touchmove",this._dragScrollOnMove),document.addEventListener("mousemove",this._dragScrollOnMove),document.addEventListener("mouseup",this._dragScrollOnUp),document.addEventListener("touchend",this._dragScrollOnUp)}},{key:"disconnectedCallback",value:function(){mi(ar(i.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("touchmove",this._dragScrollOnMove),document.removeEventListener("mousemove",this._dragScrollOnMove),document.removeEventListener("mouseup",this._dragScrollOnUp),document.removeEventListener("touchend",this._dragScrollOnUp)}}]),i}(e)};function ov(t){return ov=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ov(t)}function qH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zH(t,e,r){return e&&oE(t.prototype,e),r&&oE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ec(){return typeof Reflect!="undefined"&&Reflect.get?ec=Reflect.get:ec=function(e,r,n){var i=HH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ec.apply(this,arguments)}function HH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=yi(t),t!==null););return t}function UH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&av(t,e)}function av(t,e){return av=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},av(t,e)}function VH(t){var e=$H();return function(){var n=yi(t),i;if(e){var o=yi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WH(this,i)}}function WH(t,e){if(e&&(ov(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GH(t)}function GH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $H(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function yi(t){return yi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},yi(t)}var ce=function(e){return function(r){UH(i,r);var n=VH(i);function i(){return qH(this,i),n.apply(this,arguments)}return zH(i,[{key:"ready",value:function(){ec(yi(i.prototype),"ready",this).call(this),this.isMobileDevise=!1,navigator.userAgent.match(/iPhone/i)?(this.setAttribute("is-iphone",""),this.isMobileDevise=!0):navigator.userAgent.match(/Android/i)?(this.setAttribute("is-android",""),this.isMobileDevise=!0):navigator.userAgent.match(/iPad/i)?(this.setAttribute("is-ipad",""),this.isMobileDevise=!0):navigator.userAgent.match(/Firefox/i)?this.setAttribute("is-firefox",""):navigator.userAgent.match(/Trident/i)&&this.setAttribute("is-ie",""),this.isMobileDevise&&this.setAttribute("is-mobile",this.isMobileDevise)}}]),i}(e)};function sv(t){return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sv(t)}function KH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function YH(t,e,r){return e&&aE(t.prototype,e),r&&aE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tc(){return typeof Reflect!="undefined"&&Reflect.get?tc=Reflect.get:tc=function(e,r,n){var i=XH(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},tc.apply(this,arguments)}function XH(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=vi(t),t!==null););return t}function QH(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lv(t,e)}function lv(t,e){return lv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},lv(t,e)}function JH(t){var e=tU();return function(){var n=vi(t),i;if(e){var o=vi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ZH(this,i)}}function ZH(t,e){if(e&&(sv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eU(t)}function eU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function vi(t){return vi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},vi(t)}var sE=document.createElement("style");sE.innerHTML='\n	::-webkit-scrollbar {\n		display: none !important;\n	}\n\n	* {\n		scrollbar-width: none;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	[hidden-soft] {\n		opacity: 0 !important;\n		/*visibility: hidden !important;*/\n		pointer-events: none;\n	}\n\n	:host(:not([focus-visible])) :focus {\n		outline: none;\n	}\n\n	a:link, a:visited {\n		color: var(--color-accent);\n		text-decoration: underline;\n	}\n\n	a:hover {\n		text-decoration: none;\n	}\n\n	.drop-transforms {\n		transform: none !important;\n		z-index: 10000;\n	}\n\n	dom-if, dom-repeat {\n		display: none;\n	}\n\n	.active-element {\n		position: relative;\n		cursor: pointer;\n		outline: none;\n		-webkit-user-select: none;\n		-moz-user-select: none;\n		-ms-user-select: none;\n		user-select: none;\n		transition: var(--transition-min);\n	}\n\n	.shrink {\n		min-width: 0;\n	}\n\n	strong, b {\n		font-weight: 400;\n	}\n\n	ul {\n		margin: 0;\n		padding-left: var(--gap-max);\n	}\n\n	li:not(:last-child) {\n		margin-bottom: var(--side-padding-min);\n	}\n\n	[contenteditable][placeholder]:empty::after {\n		content: attr(placeholder);\n		display: block;\n		color: rgba(0, 0, 0, 0.5);\n		font-style: italic;\n		pointer-events: none;\n	}\n\n	/* hide placeholder on focus */\n	[contenteditable][placeholder]:empty:focus::after {\n		opacity: 0;\n	}\n\n	/* firefox small height if empty bug fix */\n	[contenteditable]:not([placeholder]):empty::before {\n		content: "\\feff";\n	}\n\n	font[color] a {\n		color: inherit;\n	}\n\n	@media (max-width: 700px) {\n		.hide-on-mobile {\n			display: none !important;\n		}\n\n		.ellipsis-on-mobile {\n			white-space: nowrap;\n			overflow: hidden;\n			text-overflow: ellipsis;\n		}\n\n		.grow-on-mobile {\n			flex-grow: 1;\n		}\n	}\n\n	@media (min-width: 700px) {\n		.show-on-mobile {\n			display: none !important;\n		}\n	}\n\n	@media (max-width: 950px) {\n		.hide-on-tablet {\n			display: none !important;\n		}\n	}\n\n	@media (min-width: 950px) {\n		.show-on-tablet {\n			display: none !important;\n		}\n	}\n\n	@media (max-width: 1024px) {\n		.hide-on-tablet-landscape {\n			display: none !important;\n		}\n	}\n\n	@media (min-width: 1025px) {\n		.show-on-tablet-landscape {\n			display: none !important;\n		}\n	}\n\n	@media (min-width: 1400px) {\n		.hide-on-wide-screen {\n			display: none !important;\n		}\n	}\n\n	@media (max-width: 1399px) {\n		.show-on-wide-screen {\n			display: none !important;\n		}\n	}\n';var qa=function(e){return function(r){QH(i,r);var n=JH(i);function i(){return KH(this,i),n.apply(this,arguments)}return YH(i,[{key:"ready",value:function(){tc(vi(i.prototype),"ready",this).call(this),!window.IS_SURVEY_APP&&this.shadowRoot&&this.shadowRoot.insertBefore(sE.cloneNode(!0),this.shadowRoot.firstChild)}}]),i}(e)};function uv(t){return uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uv(t)}function rU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nU(t,e,r){return e&&lE(t.prototype,e),r&&lE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function za(){return typeof Reflect!="undefined"&&Reflect.get?za=Reflect.get:za=function(e,r,n){var i=iU(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},za.apply(this,arguments)}function iU(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=un(t),t!==null););return t}function oU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cv(t,e)}function cv(t,e){return cv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},cv(t,e)}function aU(t){var e=uU();return function(){var n=un(t),i;if(e){var o=un(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return sU(this,i)}}function sU(t,e){if(e&&(uv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lU(t)}function lU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},un(t)}var sr=function(e){return function(r){oU(i,r);var n=aU(i);function i(){var o;return rU(this,i),o=n.call(this),o.__onEnabledChange=function(a){a?o.setAttribute("focus-visible",""):o.removeAttribute("focus-visible")},o}return nU(i,[{key:"connectedCallback",value:function(){za(un(i.prototype),"connectedCallback",this).call(this),Qu(this.__onEnabledChange)}},{key:"disconnectedCallback",value:function(){za(un(i.prototype),"disconnectedCallback",this).call(this),H1(this.__onEnabledChange)}}]),i}(e)};function fv(t){return fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fv(t)}function cU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fU(t,e,r){return e&&uE(t.prototype,e),r&&uE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rc(){return typeof Reflect!="undefined"&&Reflect.get?rc=Reflect.get:rc=function(e,r,n){var i=pU(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},rc.apply(this,arguments)}function pU(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=gi(t),t!==null););return t}function dU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pv(t,e)}function pv(t,e){return pv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pv(t,e)}function hU(t){var e=yU();return function(){var n=gi(t),i;if(e){var o=gi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return mU(this,i)}}function mU(t,e){if(e&&(fv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cE(t)}function cE(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yU(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function gi(t){return gi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gi(t)}var fE=function(e){return function(r){dU(i,r);var n=hU(i);function i(){var o;return cU(this,i),o=n.call(this),o.isMobile=window.screen.width<700,o.handleResize=o.handleResize.bind(cE(o)),window.addEventListener("resize",o.handleResize),o}return fU(i,[{key:"handleResize",value:function(){this.isMobile=window.screen.width<700}},{key:"disconnectedCallback",value:function(){rc(gi(i.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this.handleResize)}}]),i}(e)};window.JSCompiler_renameProperty=function(t,e){return t};var vU=0;function pE(){}pE.prototype.__mixinApplications;pE.prototype.__mixinSet;var ne=function(e){var r=e.__mixinApplications;r||(r=new WeakMap,e.__mixinApplications=r);var n=vU++;function i(o){var a=o.__mixinSet;if(a&&a[n])return o;var s=r,l=s.get(o);if(!l){l=e(o),s.set(o,l);var u=Object.create(l.__mixinSet||a||null);u[n]=!0,l.__mixinSet=u}return l}return i};function dE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mE(t,e,r){return e&&hE(t.prototype,e),r&&hE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yE(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dv(t,e)}function dv(t,e){return dv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},dv(t,e)}function vE(t){var e=_U();return function(){var n=nc(t),i;if(e){var o=nc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gU(this,i)}}function gU(t,e){if(e&&(ic(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bU(t)}function bU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _U(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function nc(t){return nc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nc(t)}function ic(t){return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ic(t)}function hv(t,e,r,n,i){var o;i&&(o=ic(r)==="object"&&r!==null,o&&(n=t.__dataTemp[e]));var a=n!==r&&(n===n||r===r);return o&&a&&(t.__dataTemp[e]=r),a}var Dt=ne(function(t){var e=function(r){yE(i,r);var n=vE(i);function i(){return dE(this,i),n.apply(this,arguments)}return mE(i,[{key:"_shouldPropertyChange",value:function(a,s,l){return hv(this,a,s,l,!0)}}]),i}(t);return e}),oc=ne(function(t){var e=function(r){yE(i,r);var n=vE(i);function i(){return dE(this,i),n.apply(this,arguments)}return mE(i,[{key:"_shouldPropertyChange",value:function(a,s,l){return hv(this,a,s,l,this.mutableData)}}],[{key:"properties",get:function(){return{mutableData:Boolean}}}]),i}(t);return e});Dt._mutablePropertyChange=hv;var wU=/(url\()([^)]*)(\))/g,FU=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ac,je;function cn(t,e){if(t&&FU.test(t)||t==="//")return t;if(ac===void 0){ac=!1;try{var r=new URL("b","http://a");r.pathname="c%20d",ac=r.href==="http://a/c%20d"}catch(n){}}if(e||(e=document.baseURI||window.location.href),ac)try{return new URL(t,e).href}catch(n){return t}return je||(je=document.implementation.createHTMLDocument("temp"),je.base=je.createElement("base"),je.head.appendChild(je.base),je.anchor=je.createElement("a"),je.body.appendChild(je.anchor)),je.base.href=e,je.anchor.href=t,je.anchor.href||t}function Ha(t,e){return t.replace(wU,function(r,n,i,o){return n+"'"+cn(i.replace(/["']/g,""),e)+"'"+o})}function bi(t){return t.substring(0,t.lastIndexOf("/")+1)}var Ua=!window.ShadyDOM||!window.ShadyDOM.inUse,Vxe=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),Wxe=!window.customElements.polyfillWrapFlushCallback,gE=Ua&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&function(){try{var t=new CSSStyleSheet;t.replaceSync("");var e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(r){return!1}}(),bE=window.Polymer&&window.Polymer.rootPath||bi(document.baseURI||window.location.href);var Va=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;var _E=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;var Je=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;var wE=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;var Ct=window.Polymer&&window.Polymer.legacyOptimizations||!1;var sc=window.Polymer&&window.Polymer.legacyWarnings||!1;var FE=window.Polymer&&window.Polymer.syncInitialRender||!1;var lc=window.Polymer&&window.Polymer.legacyUndefined||!1;var xE=window.Polymer&&window.Polymer.orderedComputed||!1;var mv=!0;var yv=window.Polymer&&window.Polymer.removeNestedTemplates||!1;var uc=window.Polymer&&window.Polymer.fastDomIf||!1;var Wa=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;var Ga=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;var OE=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;function vv(t){return vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vv(t)}function xU(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function OU(t,e,r){return e&&PE(t.prototype,e),r&&PE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$a(t,e)}function SU(t){var e=SE();return function(){var n=Ka(t),i;if(e){var o=Ka(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kU(this,i)}}function kU(t,e){if(e&&(vv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EU(t)}function EU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gv(t){var e=typeof Map=="function"?new Map:void 0;return gv=function(n){if(n===null||!TU(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return cc(n,arguments,Ka(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),$a(i,n)},gv(t)}function cc(t,e,r){return SE()?cc=Reflect.construct:cc=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&$a(u,a.prototype),u},cc.apply(null,arguments)}function SE(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function TU(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function $a(t,e){return $a=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$a(t,e)}function Ka(t){return Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(t)}var bv={},kE={};function EE(t,e){bv[t]=kE[t.toLowerCase()]=e}function TE(t){return bv[t]||kE[t.toLowerCase()]}function AU(t){t.querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}var fn=function(t){PU(r,t);var e=SU(r);function r(){return xU(this,r),e.apply(this,arguments)}return OU(r,[{key:"attributeChangedCallback",value:function(i,o,a,s){o!==a&&this.register()}},{key:"assetpath",get:function(){if(!this.__assetpath){var i=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,o=cn(this.getAttribute("assetpath")||"",i.baseURI);this.__assetpath=bi(o)}return this.__assetpath}},{key:"register",value:function(i){if(i=i||this.id,i){if(Je&&TE(i)!==void 0)throw EE(i,null),new Error("strictTemplatePolicy: dom-module ".concat(i," re-registered"));this.id=i,EE(i,this),AU(this)}}}],[{key:"observedAttributes",get:function(){return["id"]}},{key:"import",value:function(i,o){if(i){var a=TE(i);return a&&o?a.querySelector(o):a}return null}}]),r}(gv(HTMLElement));fn.prototype.modules=bv;customElements.define("dom-module",fn);function fc(t){return IU(t)||CU(t)||DU(t)||RU()}function RU(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DU(t,e){if(!!t){if(typeof t=="string")return _v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _v(t,e)}}function CU(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function IU(t){if(Array.isArray(t))return _v(t)}function _v(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var jU="link[rel=import][type~=css]",BU="include",AE="shady-unscoped";function wv(t){return fn.import(t)}function RE(t){var e=t.body?t.body:t,r=Ha(e.textContent,t.baseURI),n=document.createElement("style");return n.textContent=r,n}function MU(t){for(var e=t.trim().split(/\s+/),r=[],n=0;n<e.length;n++)r.push.apply(r,fc(LU(e[n])));return r}function LU(t){var e=wv(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(e._styles===void 0){var r=[];r.push.apply(r,fc(Fv(e)));var n=e.querySelector("template");n&&r.push.apply(r,fc(pc(n,e.assetpath))),e._styles=r}return e._styles}function pc(t,e){if(!t._styles){for(var r=[],n=t.content.querySelectorAll("style"),i=0;i<n.length;i++){var o=n[i],a=o.getAttribute(BU);a&&r.push.apply(r,fc(MU(a).filter(function(s,l,u){return u.indexOf(s)===l}))),e&&(o.textContent=Ha(o.textContent,e)),r.push(o)}t._styles=r}return t._styles}function DE(t){var e=wv(t);return e?Fv(e):[]}function Fv(t){for(var e=[],r=t.querySelectorAll(jU),n=0;n<r.length;n++){var i=r[n];if(i.import){var o=i.import,a=i.hasAttribute(AE);if(a&&!o._unscopedStyle){var s=RE(o);s.setAttribute(AE,""),o._unscopedStyle=s}else o._style||(o._style=RE(o));e.push(a?o._unscopedStyle:o._style)}}return e}function CE(t){for(var e=t.trim().split(/\s+/),r="",n=0;n<e.length;n++)r+=NU(e[n]);return r}function NU(t){var e=wv(t);if(e&&e._cssText===void 0){var r=zU(e),n=e.querySelector("template");n&&(r+=qU(n,e.assetpath)),e._cssText=r||null}return e||console.warn("Could not find style data in module named",t),e&&e._cssText||""}function qU(t,e){for(var r="",n=pc(t,e),i=0;i<n.length;i++){var o=n[i];o.parentNode&&o.parentNode.removeChild(o),r+=o.textContent}return r}function zU(t){for(var e="",r=Fv(t),n=0;n<r.length;n++)e+=r[n].textContent;return e}var T=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(t){return ShadyDOM.patch(t)}:function(t){return t};function dc(t){return t.indexOf(".")>=0}function Ze(t){var e=t.indexOf(".");return e===-1?t:t.slice(0,e)}function xv(t,e){return t.indexOf(e+".")===0}function _i(t,e){return e.indexOf(t+".")===0}function It(t,e,r){return e+r.slice(t.length)}function hc(t,e){return t===e||xv(t,e)||_i(t,e)}function wi(t){if(Array.isArray(t)){for(var e=[],r=0;r<t.length;r++)for(var n=t[r].toString().split("."),i=0;i<n.length;i++)e.push(n[i]);return e.join(".")}else return t}function IE(t){return Array.isArray(t)?wi(t).split("."):t.toString().split(".")}function be(t,e,r){for(var n=t,i=IE(e),o=0;o<i.length;o++){if(!n)return;var a=i[o];n=n[a]}return r&&(r.path=i.join(".")),n}function Ov(t,e,r){var n=t,i=IE(e),o=i[i.length-1];if(i.length>1){for(var a=0;a<i.length-1;a++){var s=i[a];if(n=n[s],!n)return}n[o]=r}else n[e]=r;return i.join(".")}var mc={},HU=/-[a-z]/g,UU=/([A-Z])/g;function pn(t){return mc[t]||(mc[t]=t.indexOf("-")<0?t:t.replace(HU,function(e){return e[1].toUpperCase()}))}function Fi(t){return mc[t]||(mc[t]=t.replace(UU,"-$1").toLowerCase())}var VU=0,jE=0,xi=[],WU=0,Pv=!1,BE=document.createTextNode("");new window.MutationObserver(GU).observe(BE,{characterData:!0});function GU(){Pv=!1;for(var t=xi.length,e=0;e<t;e++){var r=xi[e];if(r)try{r()}catch(n){setTimeout(function(){throw n})}}xi.splice(0,t),jE+=t}var lr={after:function(e){return{run:function(n){return window.setTimeout(n,e)},cancel:function(n){window.clearTimeout(n)}}},run:function(e,r){return window.setTimeout(e,r)},cancel:function(e){window.clearTimeout(e)}};var Oi={run:function(e){return window.requestAnimationFrame(e)},cancel:function(e){window.cancelAnimationFrame(e)}};var ME={run:function(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel:function(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}};var pe={run:function(e){return Pv||(Pv=!0,BE.textContent=WU++),xi.push(e),VU++},cancel:function(e){var r=e-jE;if(r>=0){if(!xi[r])throw new Error("invalid async handle: "+e);xi[r]=null}}};function yc(t){return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yc(t)}function $U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function KU(t,e,r){return e&&LE(t.prototype,e),r&&LE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ya(){return typeof Reflect!="undefined"&&Reflect.get?Ya=Reflect.get:Ya=function(e,r,n){var i=YU(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ya.apply(this,arguments)}function YU(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=dn(t),t!==null););return t}function XU(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sv(t,e)}function Sv(t,e){return Sv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Sv(t,e)}function QU(t){var e=eV();return function(){var n=dn(t),i;if(e){var o=dn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return JU(this,i)}}function JU(t,e){if(e&&(yc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZU(t)}function ZU(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function dn(t){return dn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},dn(t)}var tV=pe,vc=ne(function(t){var e=function(r){XU(i,r);var n=QU(i);function i(){var o;return $U(this,i),o=n.call(this),o.__dataEnabled=!1,o.__dataReady=!1,o.__dataInvalid=!1,o.__data={},o.__dataPending=null,o.__dataOld=null,o.__dataInstanceProps=null,o.__dataCounter=0,o.__serializing=!1,o._initializeProperties(),o}return KU(i,[{key:"_createPropertyAccessor",value:function(a,s){this._addPropertyToAttributeMap(a),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[a]||(this.__dataHasAccessor[a]=!0,this._definePropertyAccessor(a,s))}},{key:"_addPropertyToAttributeMap",value:function(a){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var s=this.__dataAttributes[a];return s||(s=this.constructor.attributeNameForProperty(a),this.__dataAttributes[s]=a),s}},{key:"_definePropertyAccessor",value:function(a,s){Object.defineProperty(this,a,{get:function(){return this.__data[a]},set:s?function(){}:function(l){this._setPendingProperty(a,l,!0)&&this._invalidateProperties()}})}},{key:"ready",value:function(){this.__dataReady=!0,this._flushProperties()}},{key:"_initializeProperties",value:function(){for(var a in this.__dataHasAccessor)this.hasOwnProperty(a)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[a]=this[a],delete this[a])}},{key:"_initializeInstanceProperties",value:function(a){Object.assign(this,a)}},{key:"_setProperty",value:function(a,s){this._setPendingProperty(a,s)&&this._invalidateProperties()}},{key:"_getProperty",value:function(a){return this.__data[a]}},{key:"_setPendingProperty",value:function(a,s,l){var u=this.__data[a],c=this._shouldPropertyChange(a,s,u);return c&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(a in this.__dataOld)&&(this.__dataOld[a]=u),this.__data[a]=s,this.__dataPending[a]=s),c}},{key:"_isPropertyPending",value:function(a){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(a))}},{key:"_invalidateProperties",value:function(){var a=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,tV.run(function(){a.__dataInvalid&&(a.__dataInvalid=!1,a._flushProperties())}))}},{key:"_enableProperties",value:function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}},{key:"_flushProperties",value:function(){this.__dataCounter++;var a=this.__data,s=this.__dataPending,l=this.__dataOld;this._shouldPropertiesChange(a,s,l)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(a,s,l)),this.__dataCounter--}},{key:"_shouldPropertiesChange",value:function(a,s,l){return Boolean(s)}},{key:"_propertiesChanged",value:function(a,s,l){}},{key:"_shouldPropertyChange",value:function(a,s,l){return l!==s&&(l===l||s===s)}},{key:"attributeChangedCallback",value:function(a,s,l,u){s!==l&&this._attributeToProperty(a,l),Ya(dn(i.prototype),"attributeChangedCallback",this)&&Ya(dn(i.prototype),"attributeChangedCallback",this).call(this,a,s,l,u)}},{key:"_attributeToProperty",value:function(a,s,l){if(!this.__serializing){var u=this.__dataAttributes,c=u&&u[a]||a;this[c]=this._deserializeValue(s,l||this.constructor.typeForProperty(c))}}},{key:"_propertyToAttribute",value:function(a,s,l){this.__serializing=!0,l=arguments.length<3?this[a]:l,this._valueToNodeAttribute(this,l,s||this.constructor.attributeNameForProperty(a)),this.__serializing=!1}},{key:"_valueToNodeAttribute",value:function(a,s,l){var u=this._serializeValue(s);(l==="class"||l==="name"||l==="slot")&&(a=T(a)),u===void 0?a.removeAttribute(l):a.setAttribute(l,u)}},{key:"_serializeValue",value:function(a){switch(yc(a)){case"boolean":return a?"":void 0;default:return a!=null?a.toString():void 0}}},{key:"_deserializeValue",value:function(a,s){switch(s){case Boolean:return a!==null;case Number:return Number(a);default:return a}}}],[{key:"createProperties",value:function(a){var s=this.prototype;for(var l in a)l in s||s._createPropertyAccessor(l)}},{key:"attributeNameForProperty",value:function(a){return a.toLowerCase()}},{key:"typeForProperty",value:function(a){}}]),i}(t);return e});function gc(t){return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gc(t)}function rV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nV(t,e,r){return e&&NE(t.prototype,e),r&&NE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hn(){return typeof Reflect!="undefined"&&Reflect.get?hn=Reflect.get:hn=function(e,r,n){var i=iV(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},hn.apply(this,arguments)}function iV(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=jt(t),t!==null););return t}function oV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kv(t,e)}function kv(t,e){return kv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},kv(t,e)}function aV(t){var e=uV();return function(){var n=jt(t),i;if(e){var o=jt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return sV(this,i)}}function sV(t,e){if(e&&(gc(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lV(t)}function lV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function jt(t){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jt(t)}var qE={},bc=HTMLElement.prototype;for(;bc;){for(Ev=Object.getOwnPropertyNames(bc),_c=0;_c<Ev.length;_c++)qE[Ev[_c]]=!0;bc=Object.getPrototypeOf(bc)}var Ev,_c;function cV(t,e){if(!qE[e]){var r=t[e];r!==void 0&&(t.__data?t._setPendingProperty(e,r):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=r))}}var wc=ne(function(t){var e=vc(t),r=function(n){oV(o,n);var i=aV(o);function o(){return rV(this,o),i.apply(this,arguments)}return nV(o,[{key:"_initializeProperties",value:function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),hn(jt(o.prototype),"_initializeProperties",this).call(this)}},{key:"_initializeProtoProperties",value:function(s){for(var l in s)this._setProperty(l,s[l])}},{key:"_ensureAttribute",value:function(s,l){var u=this;u.hasAttribute(s)||this._valueToNodeAttribute(u,l,s)}},{key:"_serializeValue",value:function(s){switch(gc(s)){case"object":if(s instanceof Date)return s.toString();if(s)try{return JSON.stringify(s)}catch(l){return""}default:return hn(jt(o.prototype),"_serializeValue",this).call(this,s)}}},{key:"_deserializeValue",value:function(s,l){var u;switch(l){case Object:try{u=JSON.parse(s)}catch(c){u=s}break;case Array:try{u=JSON.parse(s)}catch(c){u=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: ".concat(s))}break;case Date:u=isNaN(s)?String(s):Number(s),u=new Date(u);break;default:u=hn(jt(o.prototype),"_deserializeValue",this).call(this,s,l);break}return u}},{key:"_definePropertyAccessor",value:function(s,l){cV(this,s),hn(jt(o.prototype),"_definePropertyAccessor",this).call(this,s,l)}},{key:"_hasAccessor",value:function(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}},{key:"_isPropertyPending",value:function(s){return Boolean(this.__dataPending&&s in this.__dataPending)}}],[{key:"createPropertiesForAttributes",value:function(){for(var s=this.observedAttributes,l=0;l<s.length;l++)this.prototype._createPropertyAccessor(pn(s[l]))}},{key:"attributeNameForProperty",value:function(s){return Fi(s)}}]),o}(e);return r});function Tv(t){return Tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tv(t)}function fV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pV(t,e,r){return e&&zE(t.prototype,e),r&&zE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Av(t,e)}function Av(t,e){return Av=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Av(t,e)}function hV(t){var e=vV();return function(){var n=Fc(t),i;if(e){var o=Fc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return mV(this,i)}}function mV(t,e){if(e&&(Tv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yV(t)}function yV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Fc(t){return Fc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fc(t)}var gV={"dom-if":!0,"dom-repeat":!0},HE=!1,UE=!1;function bV(){if(!HE){HE=!0;var t=document.createElement("textarea");t.placeholder="a",UE=t.placeholder===t.textContent}return UE}function _V(t){bV()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}function wV(t){var e=t.getAttribute("is");if(e&&gV[e]){var r=t;for(r.removeAttribute("is"),t=r.ownerDocument.createElement(e),r.parentNode.replaceChild(t,r),t.appendChild(r);r.attributes.length;)t.setAttribute(r.attributes[0].name,r.attributes[0].value),r.removeAttribute(r.attributes[0].name)}return t}function VE(t,e){var r=e.parentInfo&&VE(t,e.parentInfo);if(r){for(var n=r.firstChild,i=0;n;n=n.nextSibling)if(e.parentIndex===i++)return n}else return t}function FV(t,e,r,n){n.id&&(e[n.id]=r)}function xV(t,e,r){if(r.events&&r.events.length)for(var n=0,i=r.events,o;n<i.length&&(o=i[n]);n++)t._addMethodEventListenerToNode(e,o.name,o.value,t)}function OV(t,e,r,n){r.templateInfo&&(e._templateInfo=r.templateInfo,e._parentTemplateInfo=n)}function PV(t,e,r){t=t._methodHost||t;var n=function(o){t[r]?t[r](o,o.detail):console.warn("listener method `"+r+"` not defined")};return n}var WE=ne(function(t){var e=function(r){dV(i,r);var n=hV(i);function i(){return fV(this,i),n.apply(this,arguments)}return pV(i,[{key:"_stampTemplate",value:function(a,s){a&&!a.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(a),s=s||this.constructor._parseTemplate(a);var l=s.nodeInfoList,u=s.content||a.content,c=document.importNode(u,!0);c.__noInsertionPoint=!s.hasInsertionPoint;var f=c.nodeList=new Array(l.length);c.$={};for(var p=0,d=l.length,m;p<d&&(m=l[p]);p++){var h=f[p]=VE(c,m);FV(this,c.$,h,m),OV(this,h,m,s),xV(this,h,m)}return c=c,c}},{key:"_addMethodEventListenerToNode",value:function(a,s,l,u){u=u||a;var c=PV(u,s,l);return this._addEventListenerToNode(a,s,c),c}},{key:"_addEventListenerToNode",value:function(a,s,l){a.addEventListener(s,l)}},{key:"_removeEventListenerFromNode",value:function(a,s,l){a.removeEventListener(s,l)}}],[{key:"_parseTemplate",value:function(a,s){if(!a._templateInfo){var l=a._templateInfo={};l.nodeInfoList=[],l.nestedTemplate=Boolean(s),l.stripWhiteSpace=s&&s.stripWhiteSpace||a.hasAttribute("strip-whitespace"),this._parseTemplateContent(a,l,{parent:null})}return a._templateInfo}},{key:"_parseTemplateContent",value:function(a,s,l){return this._parseTemplateNode(a.content,s,l)}},{key:"_parseTemplateNode",value:function(a,s,l){var u=!1,c=a;return c.localName=="template"&&!c.hasAttribute("preserve-content")?u=this._parseTemplateNestedTemplate(c,s,l)||u:c.localName==="slot"&&(s.hasInsertionPoint=!0),_V(c),c.firstChild&&this._parseTemplateChildNodes(c,s,l),c.hasAttributes&&c.hasAttributes()&&(u=this._parseTemplateNodeAttributes(c,s,l)||u),u||l.noted}},{key:"_parseTemplateChildNodes",value:function(a,s,l){if(!(a.localName==="script"||a.localName==="style"))for(var u=a.firstChild,c=0,f;u;u=f){if(u.localName=="template"&&(u=wV(u)),f=u.nextSibling,u.nodeType===Node.TEXT_NODE){for(var p=f;p&&p.nodeType===Node.TEXT_NODE;)u.textContent+=p.textContent,f=p.nextSibling,a.removeChild(p),p=f;if(s.stripWhiteSpace&&!u.textContent.trim()){a.removeChild(u);continue}}var d={parentIndex:c,parentInfo:l};this._parseTemplateNode(u,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),u.parentNode&&c++}}},{key:"_parseTemplateNestedTemplate",value:function(a,s,l){var u=a,c=this._parseTemplate(u,s),f=c.content=u.content.ownerDocument.createDocumentFragment();return f.appendChild(u.content),l.templateInfo=c,!0}},{key:"_parseTemplateNodeAttributes",value:function(a,s,l){for(var u=!1,c=Array.from(a.attributes),f=c.length-1,p;p=c[f];f--)u=this._parseTemplateNodeAttribute(a,s,l,p.name,p.value)||u;return u}},{key:"_parseTemplateNodeAttribute",value:function(a,s,l,u,c){return u.slice(0,3)==="on-"?(a.removeAttribute(u),l.events=l.events||[],l.events.push({name:u.slice(3),value:c}),!0):u==="id"?(l.id=c,!0):!1}},{key:"_contentForTemplate",value:function(a){var s=a._templateInfo;return s&&s.content||a.content}}]),i}(t);return e});function SV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kV(t,e,r){return e&&GE(t.prototype,e),r&&GE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pi(){return typeof Reflect!="undefined"&&Reflect.get?Pi=Reflect.get:Pi=function(e,r,n){var i=EV(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Pi.apply(this,arguments)}function EV(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ur(t),t!==null););return t}function TV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rv(t,e)}function Rv(t,e){return Rv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rv(t,e)}function AV(t){var e=CV();return function(){var n=ur(t),i;if(e){var o=ur(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return RV(this,i)}}function RV(t,e){if(e&&(Xa(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DV(t)}function DV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CV(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ur(t){return ur=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ur(t)}function Xa(t){return Xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xa(t)}var Qa=0,Ja=[],V={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$E="__computeInfo",IV=/[A-Z]/;function Dv(t,e,r){var n=t[e];if(!n)n=t[e]={};else if(!t.hasOwnProperty(e)&&(n=t[e]=Object.create(t[e]),r))for(var i in n)for(var o=n[i],a=n[i]=Array(o.length),s=0;s<o.length;s++)a[s]=o[s];return n}function Za(t,e,r,n,i,o){if(e){var a=!1,s=Qa++;for(var l in r){var u=i?Ze(l):l,c=e[u];if(c)for(var f=0,p=c.length,d;f<p&&(d=c[f]);f++)(!d.info||d.info.lastRun!==s)&&(!i||Cv(l,d.trigger))&&(d.info&&(d.info.lastRun=s),d.fn(t,l,r,n,d.info,i,o),a=!0)}return a}return!1}function jV(t,e,r,n,i,o,a,s){var l=!1,u=a?Ze(n):n,c=e[u];if(c)for(var f=0,p=c.length,d;f<p&&(d=c[f]);f++)(!d.info||d.info.lastRun!==r)&&(!a||Cv(n,d.trigger))&&(d.info&&(d.info.lastRun=r),d.fn(t,n,i,o,d.info,a,s),l=!0);return l}function Cv(t,e){if(e){var r=e.name;return r==t||!!(e.structured&&xv(r,t))||!!(e.wildcard&&_i(r,t))}else return!0}function KE(t,e,r,n,i){var o=typeof i.method=="string"?t[i.method]:i.method,a=i.property;o?o.call(t,t.__data[a],n[a]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function BV(t,e,r,n,i){var o=t[V.NOTIFY],a,s=Qa++;for(var l in e)e[l]&&(o&&jV(t,o,s,l,r,n,i)||i&&MV(t,l,r))&&(a=!0);var u;a&&(u=t.__dataHost)&&u._invalidateProperties&&u._invalidateProperties()}function MV(t,e,r){var n=Ze(e);if(n!==e){var i=Fi(n)+"-changed";return YE(t,i,r[e],e),!0}return!1}function YE(t,e,r,n){var i={value:r,queueProperty:!0};n&&(i.path=n),T(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function LV(t,e,r,n,i,o){var a=o?Ze(e):e,s=a!=e?e:null,l=s?be(t,s):t.__data[e];s&&l===void 0&&(l=r[e]),YE(t,i.eventName,l,s)}function NV(t,e,r,n,i){var o,a=t.detail,s=a&&a.path;s?(n=It(r,n,s),o=a&&a.value):o=t.currentTarget[r],o=i?!o:o,(!e[V.READ_ONLY]||!e[V.READ_ONLY][n])&&e._setPendingPropertyOrPath(n,o,!0,Boolean(s))&&(!a||!a.queueProperty)&&e._invalidateProperties()}function qV(t,e,r,n,i){var o=t.__data[e];Va&&(o=Va(o,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,o)}function zV(t,e,r,n){var i=t[V.COMPUTE];if(i)if(xE){Qa++;var o=UV(t),a=[];for(var s in e)XE(s,i,a,o,n);for(var l;l=a.shift();)QE(t,"",e,r,l)&&XE(l.methodInfo,i,a,o,n);Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else for(var u=e;Za(t,i,u,r,n);)Object.assign(r,t.__dataOld),Object.assign(e,t.__dataPending),u=t.__dataPending,t.__dataPending=null}var HV=function(e,r,n){for(var i=0,o=r.length-1,a=-1;i<=o;){var s=i+o>>1,l=n.get(r[s].methodInfo)-n.get(e.methodInfo);if(l<0)i=s+1;else if(l>0)o=s-1;else{a=s;break}}a<0&&(a=o+1),r.splice(a,0,e)},XE=function(e,r,n,i,o){var a=o?Ze(e):e,s=r[a];if(s)for(var l=0;l<s.length;l++){var u=s[l];u.info.lastRun!==Qa&&(!o||Cv(e,u.trigger))&&(u.info.lastRun=Qa,HV(u.info,n,i))}};function UV(t){var e=t.constructor.__orderedComputedDeps;return e||function(){e=new Map;for(var r=t[V.COMPUTE],n=VV(t),i=n.counts,o=n.ready,a=n.total,s;s=o.shift();){e.set(s,e.size);var l=r[s];l&&l.forEach(function(c){var f=c.info.methodInfo;--a,--i[f]==0&&o.push(f)})}if(a!==0){var u=t;console.warn("Computed graph for ".concat(u.localName," incomplete; circular?"))}t.constructor.__orderedComputedDeps=e}(),e}function VV(t){var e=t[$E],r={},n=t[V.COMPUTE],i=[],o=0;for(var a in e){var s=e[a];o+=r[a]=s.args.filter(function(u){return!u.literal}).length+(s.dynamicFn?1:0)}for(var l in n)e[l]||i.push(l);return{counts:r,ready:i,total:o}}function QE(t,e,r,n,i){var o=jv(t,e,r,n,i);if(o===Ja)return!1;var a=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[a]?t._setPendingProperty(a,o,!0):(t[a]=o,!1)}function WV(t,e,r){var n=t.__dataLinkedPaths;if(n){var i;for(var o in n){var a=n[o];_i(o,e)?(i=It(o,a,e),t._setPendingPropertyOrPath(i,r,!0,!0)):_i(a,e)&&(i=It(a,o,e),t._setPendingPropertyOrPath(i,r,!0,!0))}}}function Iv(t,e,r,n,i,o,a){r.bindings=r.bindings||[];var s={kind:n,target:i,parts:o,literal:a,isCompound:o.length!==1};if(r.bindings.push(s),XV(s)){var l=s.parts[0],u=l.event,c=l.negate;s.listenerEvent=u||Fi(i)+"-changed",s.listenerNegate=c}for(var f=e.nodeInfoList.length,p=0;p<s.parts.length;p++){var d=s.parts[p];d.compoundIndex=p,GV(t,e,s,d,f)}}function GV(t,e,r,n,i){if(!n.literal)if(r.kind==="attribute"&&r.target[0]==="-")console.warn("Cannot set attribute "+r.target+' because "-" is not a valid attribute starting character');else for(var o=n.dependencies,a={index:i,binding:r,part:n,evaluator:t},s=0;s<o.length;s++){var l=o[s];typeof l=="string"&&(l=nT(l),l.wildcard=!0),t._addTemplatePropertyEffect(e,l.rootProperty,{fn:$V,info:a,trigger:l})}}function $V(t,e,r,n,i,o,a){var s=a[i.index],l=i.binding,u=i.part;if(o&&u.source&&e.length>u.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){var c=r[e];e=It(u.source,l.target,e),s._setPendingPropertyOrPath(e,c,!1,!0)&&t._enqueueClient(s)}else{var f=i.evaluator._evaluateBinding(t,u,e,r,n,o);f!==Ja&&KV(t,s,l,u,f)}}function KV(t,e,r,n,i){if(i=YV(e,i,r,n),Va&&(i=Va(i,r.target,r.kind,e)),r.kind=="attribute")t._valueToNodeAttribute(e,i,r.target);else{var o=r.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[o]?(!e[V.READ_ONLY]||!e[V.READ_ONLY][o])&&e._setPendingProperty(o,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,o,i)}}function YV(t,e,r,n){if(r.isCompound){var i=t.__dataCompoundStorage[r.target];i[n.compoundIndex]=e,e=i.join("")}return r.kind!=="attribute"&&(r.target==="textContent"||r.target==="value"&&(t.localName==="input"||t.localName==="textarea"))&&(e=e==null?"":e),e}function XV(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function QV(t,e){var r=e.nodeList,n=e.nodeInfoList;if(n.length)for(var i=0;i<n.length;i++){var o=n[i],a=r[i],s=o.bindings;if(s)for(var l=0;l<s.length;l++){var u=s[l];JV(a,u),ZV(a,t,u)}a.__dataHost=t}}function JV(t,e){if(e.isCompound){for(var r=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),n=e.parts,i=new Array(n.length),o=0;o<n.length;o++)i[o]=n[o].literal;var a=e.target;r[a]=i,e.literal&&e.kind=="property"&&(a==="className"&&(t=T(t)),t[a]=e.literal)}}function ZV(t,e,r){if(r.listenerEvent){var n=r.parts[0];t.addEventListener(r.listenerEvent,function(i){NV(i,e,r.target,n.source,n.negate)})}}function JE(t,e,r,n,i,o){o=e.static||o&&(Xa(o)!=="object"||o[e.methodName]);for(var a={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:o},s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||t._addPropertyEffect(l.rootProperty,r,{fn:n,info:a,trigger:l});return o&&t._addPropertyEffect(e.methodName,r,{fn:n,info:a}),a}function jv(t,e,r,n,i){var o=t._methodHost||t,a=o[i.methodName];if(a){var s=t._marshalArgs(i.args,e,r);return s===Ja?Ja:a.apply(o,s)}else i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}var eW=[],ZE="(?:[a-zA-Z_$][\\w.:$\\-*]*)",tW="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",rW="(?:'(?:[^'\\\\]|\\\\.)*')",nW='(?:"(?:[^"\\\\]|\\\\.)*")',iW="(?:"+rW+"|"+nW+")",eT="(?:("+ZE+"|"+tW+"|"+iW+")\\s*)",oW="(?:"+eT+"(?:,\\s*"+eT+")*)",aW="(?:\\(\\s*(?:"+oW+"?)\\)\\s*)",sW="("+ZE+"\\s*"+aW+"?)",lW="(\\[\\[|{{)\\s*",uW="(?:]]|}})",cW="(?:(!)\\s*)?",fW=lW+cW+sW+uW,tT=new RegExp(fW,"g");function rT(t){for(var e="",r=0;r<t.length;r++){var n=t[r].literal;e+=n||""}return e}function Bv(t){var e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){var r=e[1],n={methodName:r,static:!0,args:eW};if(e[2].trim()){var i=e[2].replace(/\\,/g,"&comma;").split(",");return pW(i,n)}else return n}return null}function pW(t,e){return e.args=t.map(function(r){var n=nT(r);return n.literal||(e.static=!1),n},this),e}function nT(t){var e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),r={name:e,value:"",literal:!1},n=e[0];switch(n==="-"&&(n=e[1]),n>="0"&&n<="9"&&(n="#"),n){case"'":case'"':r.value=e.slice(1,-1),r.literal=!0;break;case"#":r.value=Number(e),r.literal=!0;break}return r.literal||(r.rootProperty=Ze(e),r.structured=dc(e),r.structured&&(r.wildcard=e.slice(-2)==".*",r.wildcard&&(r.name=e.slice(0,-2)))),r}function iT(t,e,r){var n=be(t,r);return n===void 0&&(n=e[r]),n}function oT(t,e,r,n){var i={indexSplices:n};lc&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(r+".splices",i),t.notifyPath(r+".length",e.length),lc&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function es(t,e,r,n,i,o){oT(t,e,r,[{index:n,addedCount:i,removed:o,object:e,type:"splice"}])}function dW(t){return t[0].toUpperCase()+t.substring(1)}var mn=ne(function(t){var e=WE(wc(t)),r=function(n){TV(o,n);var i=AV(o);function o(){var a;return SV(this,o),a=i.call(this),a.__isPropertyEffectsClient=!0,a.__dataClientsReady,a.__dataPendingClients,a.__dataToNotify,a.__dataLinkedPaths,a.__dataHasPaths,a.__dataCompoundStorage,a.__dataHost,a.__dataTemp,a.__dataClientsInitialized,a.__data,a.__dataPending,a.__dataOld,a.__computeEffects,a.__computeInfo,a.__reflectEffects,a.__notifyEffects,a.__propagateEffects,a.__observeEffects,a.__readOnly,a.__templateInfo,a._overrideLegacyUndefined,a}return kV(o,[{key:"PROPERTY_EFFECT_TYPES",get:function(){return V}},{key:"_initializeProperties",value:function(){Pi(ur(o.prototype),"_initializeProperties",this).call(this),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}},{key:"_registerHost",value:function(){if(ts.length){var s=ts[ts.length-1];s._enqueueClient(this),this.__dataHost=s}}},{key:"_initializeProtoProperties",value:function(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}},{key:"_initializeInstanceProperties",value:function(s){var l=this[V.READ_ONLY];for(var u in s)(!l||!l[u])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[u]=this.__dataPending[u]=s[u])}},{key:"_addPropertyEffect",value:function(s,l,u){this._createPropertyAccessor(s,l==V.READ_ONLY);var c=Dv(this,l,!0)[s];c||(c=this[l][s]=[]),c.push(u)}},{key:"_removePropertyEffect",value:function(s,l,u){var c=Dv(this,l,!0)[s],f=c.indexOf(u);f>=0&&c.splice(f,1)}},{key:"_hasPropertyEffect",value:function(s,l){var u=this[l];return Boolean(u&&u[s])}},{key:"_hasReadOnlyEffect",value:function(s){return this._hasPropertyEffect(s,V.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(s){return this._hasPropertyEffect(s,V.NOTIFY)}},{key:"_hasReflectEffect",value:function(s){return this._hasPropertyEffect(s,V.REFLECT)}},{key:"_hasComputedEffect",value:function(s){return this._hasPropertyEffect(s,V.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(s,l,u,c){if(c||Ze(Array.isArray(s)?s[0]:s)!==s){if(!c){var f=be(this,s);if(s=Ov(this,s,l),!s||!Pi(ur(o.prototype),"_shouldPropertyChange",this).call(this,s,l,f))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,l,u))return WV(this,s,l),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,l,u);this[s]=l}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(s,l,u){(u!==s[l]||Xa(u)=="object")&&(l==="className"&&(s=T(s)),s[l]=u)}},{key:"_setPendingProperty",value:function(s,l,u){var c=this.__dataHasPaths&&dc(s),f=c?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,l,f[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),c?this.__dataTemp[s]=l:this.__data[s]=l,this.__dataPending[s]=l,(c||this[V.NOTIFY]&&this[V.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=u),!0):!1}},{key:"_setProperty",value:function(s,l){this._setPendingProperty(s,l,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(var l=0;l<s.length;l++){var u=s[l];u.__dataEnabled?u.__dataPending&&u._flushProperties():u._enableProperties()}}}},{key:"_readyClients",value:function(){this.__enableOrFlushClients()}},{key:"setProperties",value:function(s,l){for(var u in s)(l||!this[V.READ_ONLY]||!this[V.READ_ONLY][u])&&this._setPendingPropertyOrPath(u,s[u],!0);this._invalidateProperties()}},{key:"ready",value:function(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}},{key:"_propertiesChanged",value:function(s,l,u){var c=this.__dataHasPaths;this.__dataHasPaths=!1;var f;zV(this,l,u,c),f=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(l,u,c),this._flushClients(),Za(this,this[V.REFLECT],l,u,c),Za(this,this[V.OBSERVE],l,u,c),f&&BV(this,f,l,u,c),this.__dataCounter==1&&(this.__dataTemp={})}},{key:"_propagatePropertyChanges",value:function(s,l,u){this[V.PROPAGATE]&&Za(this,this[V.PROPAGATE],s,l,u),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,l,u)}},{key:"_runEffectsForTemplate",value:function(s,l,u,c){var f=this,p=function(m,h){Za(f,s.propertyEffects,m,u,h,s.nodeList);for(var v=s.firstChild;v;v=v.nextSibling)f._runEffectsForTemplate(v,m,u,h)};s.runEffects?s.runEffects(p,l,c):p(l,c)}},{key:"linkPaths",value:function(s,l){s=wi(s),l=wi(l),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=l}},{key:"unlinkPaths",value:function(s){s=wi(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}},{key:"notifySplices",value:function(s,l){var u={path:""},c=be(this,s,u);oT(this,c,u.path,l)}},{key:"get",value:function(s,l){return be(l||this,s)}},{key:"set",value:function(s,l,u){u?Ov(u,s,l):(!this[V.READ_ONLY]||!this[V.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,l,!0)&&this._invalidateProperties()}},{key:"push",value:function(s){for(var l={path:""},u=be(this,s,l),c=u.length,f=arguments.length,p=new Array(f>1?f-1:0),d=1;d<f;d++)p[d-1]=arguments[d];var m=u.push.apply(u,p);return p.length&&es(this,u,l.path,c,p.length,[]),m}},{key:"pop",value:function(s){var l={path:""},u=be(this,s,l),c=Boolean(u.length),f=u.pop();return c&&es(this,u,l.path,u.length,0,[f]),f}},{key:"splice",value:function(s,l,u){for(var c=arguments.length,f=new Array(c>3?c-3:0),p=3;p<c;p++)f[p-3]=arguments[p];var d={path:""},m=be(this,s,d);l<0?l=m.length-Math.floor(-l):l&&(l=Math.floor(l));var h;return arguments.length===2?h=m.splice(l):h=m.splice.apply(m,[l,u].concat(f)),(f.length||h.length)&&es(this,m,d.path,l,f.length,h),h}},{key:"shift",value:function(s){var l={path:""},u=be(this,s,l),c=Boolean(u.length),f=u.shift();return c&&es(this,u,l.path,0,0,[f]),f}},{key:"unshift",value:function(s){for(var l={path:""},u=be(this,s,l),c=arguments.length,f=new Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];var d=u.unshift.apply(u,f);return f.length&&es(this,u,l.path,0,f.length,[]),d}},{key:"notifyPath",value:function(s,l){var u;if(arguments.length==1){var c={path:""};l=be(this,s,c),u=c.path}else Array.isArray(s)?u=wi(s):u=s;this._setPendingPropertyOrPath(u,l,!0,!0)&&this._invalidateProperties()}},{key:"_createReadOnlyProperty",value:function(s,l){this._addPropertyEffect(s,V.READ_ONLY),l&&(this["_set"+dW(s)]=function(u){this._setProperty(s,u)})}},{key:"_createPropertyObserver",value:function(s,l,u){var c={property:s,method:l,dynamicFn:Boolean(u)};this._addPropertyEffect(s,V.OBSERVE,{fn:KE,info:c,trigger:{name:s}}),u&&this._addPropertyEffect(l,V.OBSERVE,{fn:KE,info:c,trigger:{name:l}})}},{key:"_createMethodObserver",value:function(s,l){var u=Bv(s);if(!u)throw new Error("Malformed observer expression '"+s+"'");JE(this,u,V.OBSERVE,jv,null,l)}},{key:"_createNotifyingProperty",value:function(s){this._addPropertyEffect(s,V.NOTIFY,{fn:LV,info:{eventName:Fi(s)+"-changed",property:s}})}},{key:"_createReflectedProperty",value:function(s){var l=this.constructor.attributeNameForProperty(s);l[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+l+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,V.REFLECT,{fn:qV,info:{attrName:l}})}},{key:"_createComputedProperty",value:function(s,l,u){var c=Bv(l);if(!c)throw new Error("Malformed computed expression '"+l+"'");var f=JE(this,c,V.COMPUTE,QE,s,u);Dv(this,$E)[s]=f}},{key:"_marshalArgs",value:function(s,l,u){for(var c=this.__data,f=[],p=0,d=s.length;p<d;p++){var m=s[p],h=m.name,v=m.structured,y=m.wildcard,b=m.value,_=m.literal;if(!_)if(y){var x=_i(h,l),P=iT(c,u,x?l:h);b={path:x?l:h,value:P,base:x?be(c,h):P}}else b=v?iT(c,u,h):c[h];if(lc&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return Ja;f[p]=b}return f}},{key:"_bindTemplate",value:function(s,l){var u=this.constructor._parseTemplate(s),c=this.__preBoundTemplateInfo==u;if(!c)for(var f in u.propertyEffects)this._createPropertyAccessor(f);if(l)if(u=Object.create(u),u.wasPreBound=c,!this.__templateInfo)this.__templateInfo=u;else{var p=s._parentTemplateInfo||this.__templateInfo,d=p.lastChild;u.parent=p,p.lastChild=u,u.previousSibling=d,d?d.nextSibling=u:p.firstChild=u}else this.__preBoundTemplateInfo=u;return u}},{key:"_stampTemplate",value:function(s,l){l=l||this._bindTemplate(s,!0),ts.push(this);var u=Pi(ur(o.prototype),"_stampTemplate",this).call(this,s,l);if(ts.pop(),l.nodeList=u.nodeList,!l.wasPreBound)for(var c=l.childNodes=[],f=u.firstChild;f;f=f.nextSibling)c.push(f);return u.templateInfo=l,QV(this,l),this.__dataClientsReady&&(this._runEffectsForTemplate(l,this.__data,null,!1),this._flushClients()),u}},{key:"_removeBoundDom",value:function(s){var l=s.templateInfo,u=l.previousSibling,c=l.nextSibling,f=l.parent;u?u.nextSibling=c:f&&(f.firstChild=c),c?c.previousSibling=u:f&&(f.lastChild=u),l.nextSibling=l.previousSibling=null;for(var p=l.childNodes,d=0;d<p.length;d++){var m=p[d];T(T(m).parentNode).removeChild(m)}}}],[{key:"addPropertyEffect",value:function(s,l,u){this.prototype._addPropertyEffect(s,l,u)}},{key:"createPropertyObserver",value:function(s,l,u){this.prototype._createPropertyObserver(s,l,u)}},{key:"createMethodObserver",value:function(s,l){this.prototype._createMethodObserver(s,l)}},{key:"createNotifyingProperty",value:function(s){this.prototype._createNotifyingProperty(s)}},{key:"createReadOnlyProperty",value:function(s,l){this.prototype._createReadOnlyProperty(s,l)}},{key:"createReflectedProperty",value:function(s){this.prototype._createReflectedProperty(s)}},{key:"createComputedProperty",value:function(s,l,u){this.prototype._createComputedProperty(s,l,u)}},{key:"bindTemplate",value:function(s){return this.prototype._bindTemplate(s)}},{key:"_addTemplatePropertyEffect",value:function(s,l,u){var c=s.hostProps=s.hostProps||{};c[l]=!0;var f=s.propertyEffects=s.propertyEffects||{},p=f[l]=f[l]||[];p.push(u)}},{key:"_parseTemplateNode",value:function(s,l,u){var c=e._parseTemplateNode.call(this,s,l,u);if(s.nodeType===Node.TEXT_NODE){var f=this._parseBindings(s.textContent,l);f&&(s.textContent=rT(f)||" ",Iv(this,l,u,"text","textContent",f),c=!0)}return c}},{key:"_parseTemplateNodeAttribute",value:function(s,l,u,c,f){var p=this._parseBindings(f,l);if(p){var d=c,m="property";IV.test(c)?m="attribute":c[c.length-1]=="$"&&(c=c.slice(0,-1),m="attribute");var h=rT(p);return h&&m=="attribute"&&(c=="class"&&s.hasAttribute("class")&&(h+=" "+s.getAttribute(c)),s.setAttribute(c,h)),m=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(c,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),m==="property"&&(c=pn(c)),Iv(this,l,u,m,c,p,h),!0}else return e._parseTemplateNodeAttribute.call(this,s,l,u,c,f)}},{key:"_parseTemplateNestedTemplate",value:function(s,l,u){var c=e._parseTemplateNestedTemplate.call(this,s,l,u),f=s.parentNode,p=u.templateInfo,d=f.localName==="dom-if",m=f.localName==="dom-repeat";yv&&(d||m)&&(f.removeChild(s),u=u.parentInfo,u.templateInfo=p,u.noted=!0,c=!1);var h=p.hostProps;if(uc&&d)h&&(l.hostProps=Object.assign(l.hostProps||{},h),yv||(u.parentInfo.noted=!0));else{var v="{";for(var y in h){var b=[{mode:v,source:y,dependencies:[y],hostProp:!0}];Iv(this,l,u,"property","_host_"+y,b)}}return c}},{key:"_parseBindings",value:function(s,l){for(var u=[],c=0,f;(f=tT.exec(s))!==null;){f.index>c&&u.push({literal:s.slice(c,f.index)});var p=f[1][0],d=Boolean(f[2]),m=f[3].trim(),h=!1,v="",y=-1;p=="{"&&(y=m.indexOf("::"))>0&&(v=m.substring(y+2),m=m.substring(0,y),h=!0);var b=Bv(m),_=[];if(b){for(var x=b.args,P=b.methodName,F=0;F<x.length;F++){var S=x[F];S.literal||_.push(S)}var k=l.dynamicFns;(k&&k[P]||b.static)&&(_.push(P),b.dynamicFn=!0)}else _.push(m);u.push({source:m,mode:p,negate:d,customEvent:h,signature:b,dependencies:_,event:v}),c=tT.lastIndex}if(c&&c<s.length){var E=s.substring(c);E&&u.push({literal:E})}return u.length?u:null}},{key:"_evaluateBinding",value:function(s,l,u,c,f,p){var d;return l.signature?d=jv(s,u,c,f,l.signature):u!=l.source?d=be(s,l.source):p&&dc(u)?d=be(s,u):d=s.__data[u],l.negate&&(d=!d),d}}]),o}(e);return r}),ts=[];var hW=0;function aT(){hW++}var mW=[];function xc(t){mW.push(t)}function Mv(t){return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mv(t)}function yW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vW(t,e,r){return e&&sT(t.prototype,e),r&&sT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function cr(){return typeof Reflect!="undefined"&&Reflect.get?cr=Reflect.get:cr=function(e,r,n){var i=gW(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},cr.apply(this,arguments)}function gW(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=pt(t),t!==null););return t}function bW(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lv(t,e)}function Lv(t,e){return Lv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Lv(t,e)}function _W(t){var e=xW();return function(){var n=pt(t),i;if(e){var o=pt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return wW(this,i)}}function wW(t,e){if(e&&(Mv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FW(t)}function FW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pt(t)}function OW(t){var e={};for(var r in t){var n=t[r];e[r]=typeof n=="function"?{type:n}:n}return e}var lT=ne(function(t){var e=vc(t);function r(o){var a=Object.getPrototypeOf(o);return a.prototype instanceof i?a:null}function n(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){var a=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){var s=o.properties;s&&(a=OW(s))}o.__ownProperties=a}return o.__ownProperties}var i=function(o){bW(s,o);var a=_W(s);function s(){return yW(this,s),a.apply(this,arguments)}return vW(s,[{key:"_initializeProperties",value:function(){aT(),this.constructor.finalize(),cr(pt(s.prototype),"_initializeProperties",this).call(this)}},{key:"connectedCallback",value:function(){cr(pt(s.prototype),"connectedCallback",this)&&cr(pt(s.prototype),"connectedCallback",this).call(this),this._enableProperties()}},{key:"disconnectedCallback",value:function(){cr(pt(s.prototype),"disconnectedCallback",this)&&cr(pt(s.prototype),"disconnectedCallback",this).call(this)}}],[{key:"observedAttributes",get:function(){var u=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){xc(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(f){return u.prototype._addPropertyToAttributeMap(f)}):[]}return this.__observedAttributes}},{key:"finalize",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){var u=r(this);u&&u.finalize(),this.__finalized=!0,this._finalizeClass()}}},{key:"_finalizeClass",value:function(){var u=n(this);u&&this.createProperties(u)}},{key:"_properties",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){var u=r(this);this.__properties=Object.assign({},u&&u._properties,n(this))}return this.__properties}},{key:"typeForProperty",value:function(u){var c=this._properties[u];return c&&c.type}}]),s}(e);return i});function Nv(t){return Nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nv(t)}function PW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function SW(t,e,r){return e&&uT(t.prototype,e),r&&uT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yn(){return typeof Reflect!="undefined"&&Reflect.get?yn=Reflect.get:yn=function(e,r,n){var i=kW(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},yn.apply(this,arguments)}function kW(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Bt(t),t!==null););return t}function EW(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qv(t,e)}function qv(t,e){return qv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qv(t,e)}function TW(t){var e=DW();return function(){var n=Bt(t),i;if(e){var o=Bt(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return AW(this,i)}}function AW(t,e){if(e&&(Nv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RW(t)}function RW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Bt(t){return Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bt(t)}var cT="3.4.1",Oc=window.ShadyCSS&&window.ShadyCSS.cssBuild,fr=ne(function(t){var e=lT(mn(t));function r(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;var u=l._properties;for(var c in u){var f=u[c];"value"in f&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=f)}}return l.__propertyDefaults}function n(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,u,c,f){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn("Cannot redefine computed property '".concat(u,"'.")):l._createComputedProperty(u,c.computed,f)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn("Cannot make readOnly property '".concat(u,"' non-readOnly.")),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn("Cannot make reflected property '".concat(u,"' non-reflected.")),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn("Cannot make notify property '".concat(u,"' non-notify.")),c.observer&&l._createPropertyObserver(u,c.observer,f[c.observer]),l._addPropertyToAttributeMap(u)}function o(l,u,c,f){if(!Oc){for(var p=u.content.querySelectorAll("style"),d=pc(u),m=DE(c),h=u.content.firstElementChild,v=0;v<m.length;v++){var y=m[v];y.textContent=l._processStyleText(y.textContent,f),u.content.insertBefore(y,h)}for(var b=0,_=0;_<d.length;_++){var x=d[_],P=p[b];P!==x?(x=x.cloneNode(!0),P.parentNode.insertBefore(x,P)):b++,x.textContent=l._processStyleText(x.textContent,f)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),OE&&Oc&&gE){var F=u.content.querySelectorAll("style");if(F){var S="";Array.from(F).forEach(function(k){S+=k.textContent,k.parentNode.removeChild(k)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(S)}}}function a(l){var u=null;if(l&&(!Je||wE)&&(u=fn.import(l,"template"),Je&&!u))throw new Error("strictTemplatePolicy: expecting dom-module or null template for ".concat(l));return u}var s=function(l){EW(c,l);var u=TW(c);function c(){var f;return PW(this,c),f=u.call(this),f._template,f._importPath,f.rootPath,f.importPath,f.root,f.$,f}return SW(c,[{key:"_initializeProperties",value:function(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),yn(Bt(c.prototype),"_initializeProperties",this).call(this),this.rootPath=bE,this.importPath=this.constructor.importPath;var p=r(this.constructor);if(!!p)for(var d in p){var m=p[d];if(this._canApplyPropertyDefault(d)){var h=typeof m.value=="function"?m.value.call(this):m.value;this._hasAccessor(d)?this._setPendingProperty(d,h,!0):this[d]=h}}}},{key:"_canApplyPropertyDefault",value:function(p){return!this.hasOwnProperty(p)}},{key:"connectedCallback",value:function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),yn(Bt(c.prototype),"connectedCallback",this).call(this)}},{key:"ready",value:function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),yn(Bt(c.prototype),"ready",this).call(this)}},{key:"_readyClients",value:function(){this._template&&(this.root=this._attachDom(this.root)),yn(Bt(c.prototype),"_readyClients",this).call(this)}},{key:"_attachDom",value:function(p){var d=T(this);if(d.attachShadow)return p?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:p}),d.shadowRoot.appendChild(p),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),FE&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}},{key:"updateStyles",value:function(p){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,p)}},{key:"resolveUrl",value:function(p,d){return!d&&this.importPath&&(d=cn(this.importPath)),cn(p,d)}}],[{key:"polymerElementVersion",get:function(){return cT}},{key:"_finalizeClass",value:function(){e._finalizeClass.call(this);var p=n(this);p&&this.createObservers(p,this._properties),this._prepareTemplate()}},{key:"_prepareTemplate",value:function(){var p=this.template;p&&(typeof p=="string"?(console.error("template getter must return HTMLTemplateElement"),p=null):Ct||(p=p.cloneNode(!0))),this.prototype._template=p}},{key:"createProperties",value:function(p){for(var d in p)i(this.prototype,d,p[d],p)}},{key:"createObservers",value:function(p,d){for(var m=this.prototype,h=0;h<p.length;h++)m._createMethodObserver(p[h],d)}},{key:"template",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){var p=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;this._template=p!==void 0?p:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&a(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template},set:function(p){this._template=p}},{key:"importPath",get:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){var p=this.importMeta;if(p)this._importPath=bi(p.url);else{var d=fn.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}},{key:"_processStyleText",value:function(p,d){return Ha(p,d)}},{key:"_finalizeTemplate",value:function(p){var d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;var m=this.importPath,h=m?cn(m):"";o(this,d,p,h),this.prototype._bindTemplate(d)}}},{key:"_parseTemplateContent",value:function(p,d,m){return d.dynamicFns=d.dynamicFns||this._properties,e._parseTemplateContent.call(this,p,d,m)}},{key:"_addTemplatePropertyEffect",value:function(p,d,m){return sc&&!(d in this._properties)&&!(m.info.part.signature&&m.info.part.signature.static)&&!m.info.part.hostProp&&!p.nestedTemplate&&console.warn("Property '".concat(d,"' used in template but not declared in 'properties'; ")+"attribute will not be observed."),e._addTemplatePropertyEffect.call(this,p,d,m)}}]),c}(e);return s});function CW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function IW(t,e,r){return e&&fT(t.prototype,e),r&&fT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var pT=function(){function t(e){CW(this,t),this.value=e.toString()}return IW(t,[{key:"toString",value:function(){return this.value}}]),t}();function jW(t){if(t instanceof pT)return t.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: ".concat(t))}function BW(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof pT)return jW(t);throw new Error("non-template value passed to Polymer's html function: ".concat(t))}var g=function(e){for(var r=document.createElement("template"),n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return r.innerHTML=i.reduce(function(a,s,l){return a+BW(s)+e[l+1]},e[0]),r};var Mt=fr(HTMLElement);function zv(t){return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(t)}function dT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hT(t,e,r){return e&&dT(t.prototype,e),r&&dT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yT(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hv(t,e)}function Hv(t,e){return Hv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hv(t,e)}function vT(t){var e=NW();return function(){var n=Pc(t),i;if(e){var o=Pc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return MW(this,i)}}function MW(t,e){if(e&&(zv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LW(t)}function LW(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function NW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Pc(t){return Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Pc(t)}function gT(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Uv;APP.local?Uv=function(e){return Q(ev(Yy(or(Vy(qa(Ly(Ca(zy(Dt(e))))))))))}:Uv=function(e){return Q(ev(Yy(Vy(qa(Ly(Ca(zy(Dt(e)))))))))};var O=function(t){yT(r,t);var e=vT(r);function r(){return mT(this,r),e.apply(this,arguments)}return hT(r)}(Uv(Mt));gT(O,"html",g);var M=function(t){yT(r,t);var e=vT(r);function r(){return mT(this,r),e.apply(this,arguments)}return hT(r)}(Mt);gT(M,"html",g);function Vv(t){return Vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vv(t)}function bT(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function qW(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){bT(o,n,i,a,s,"next",l)}function s(l){bT(o,n,i,a,s,"throw",l)}a(void 0)})}}function zW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _T(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HW(t,e,r){return e&&_T(t.prototype,e),r&&_T(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sc(){return typeof Reflect!="undefined"&&Reflect.get?Sc=Reflect.get:Sc=function(e,r,n){var i=UW(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Sc.apply(this,arguments)}function UW(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Si(t),t!==null););return t}function VW(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wv(t,e)}function Wv(t,e){return Wv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Wv(t,e)}function WW(t){var e=KW();return function(){var n=Si(t),i;if(e){var o=Si(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return GW(this,i)}}function GW(t,e){if(e&&(Vv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $W(t)}function $W(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KW(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Si(t){return Si=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Si(t)}function YW(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var XW=function(t){VW(r,t);var e=WW(r);function r(){var n;return zW(this,r),n=e.call(this),n.initStatus=new Promise(function(i){n.init=i}),n}return HW(r,[{key:"connectedCallback",value:function(){var n=qW(regeneratorRuntime.mark(function o(){var a,s;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(Sc(Si(r.prototype),"connectedCallback",this).call(this),this.isConnected){u.next=3;break}return u.abrupt("return");case 3:return a=Router.getParam("survey-id"),u.next=6,Survey.fetch(a,Router.getPage()==="builder");case 6:if(s=u.sent,!s){u.next=14;break}return u.next=10,s.fetchChildren();case 10:this.survey=s,this.init(),u.next=15;break;case 14:this.isConnected&&APP.isAuth&&ComponentRegistry.get("fatal-error-mdl").open({type:"survey-not-found"});case 15:case"end":return u.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),r}(O);YW(XW,"properties",{survey:{type:Object}});var wT='<style>\n	:host {\n		display: block;\n		padding: 16px;\n		border-radius: 6px;\n		/* transition: var(--transition-min); */\n		box-sizing: border-box;\n	}\n\n	:host([theme=outline]) {\n		border: 2px solid currentColor;\n	}\n\n	:host([theme=accent]) {\n		background-color: #607d8b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=warning]) {\n		background-color: #d8252b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=success]) {\n		background-color: hsl(122, 69%, 42%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=alt]) {\n		background-color: hsl(263, 37%, 55%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=accent5]) {\n		background-color: #949494;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=brightest]) {\n		background-color: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=darkest]) {\n		background-color: rgba(33, 37, 43, 1);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=bg1]) {\n		background-color: #eee;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=element]) {\n		background-color: #a8bac3;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=shine]) {\n		background-color: rgba(255, 255, 255, 0.4);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=shade]) {\n		background-color: rgba(96, 125, 139, 0.1);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=brand]) {\n		background-color: #e31c5e;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([connect="all"]) {\n		border-radius: 2px;\n	}\n\n	:host([connect="top"]) {\n		border-top-left-radius: 2px;\n		border-top-right-radius: 2px;\n	}\n\n	:host([connect="bottom"]) {\n		border-bottom-left-radius: 2px;\n		border-bottom-right-radius: 2px;\n	}\n\n	:host([connect="left"]) {\n		border-top-left-radius: 2px;\n		border-bottom-left-radius: 2px;\n	}\n\n	:host([connect="right"]) {\n		border-top-right-radius: 2px;\n		border-bottom-right-radius: 2px;\n	}\n\n	:host([compact]) {\n		padding: 8px;\n	}\n\n	:host([grow=""]),\n	:host([grow=min]) {\n		flex-grow: 1;\n	}\n\n	:host([grow=mid]) {\n		flex-grow: 5;\n	}\n\n	:host([grow=max]) {\n		flex-grow: 10;\n	}\n\n	@media (max-width: 700px) {\n		:host([compact-on-mobile]) {\n			padding: 8px;\n		}\n	}\n</style>\n<slot></slot>';function Gv(t){return Gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gv(t)}function FT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function JW(t,e,r){return e&&FT(t.prototype,e),r&&FT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZW(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$v(t,e)}function $v(t,e){return $v=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$v(t,e)}function tG(t){var e=iG();return function(){var n=kc(t),i;if(e){var o=kc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return rG(this,i)}}function rG(t,e){if(e&&(Gv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nG(t)}function nG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function iG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function kc(t){return kc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kc(t)}function Kv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rs=function(t){eG(r,t);var e=tG(r);function r(){return ZW(this,r),e.apply(this,arguments)}return JW(r)}(M);Kv(rs,"is","card-mkp");Kv(rs,"template",g([wT]));Kv(rs,"properties",{theme:{type:String,reflectToAttribute:!0},connect:{type:String,reflectToAttribute:!0},compact:{type:Boolean,reflectToAttribute:!0}});customElements.define(rs.is,rs);var xT='<style>\n	:host {\n		display: block;\n		height: 16px;\n		width: 16px;\n		flex-shrink: 0;\n	}\n\n	:host([inline]) {\n		display: inline-block;\n	}\n\n	:host([min]) {\n		height: 2px;\n		width: 2px;\n	}\n\n	:host([mid]) {\n		height: 8px;\n		width: 8px;\n	}\n\n	:host([max]) {\n		height: 16px;\n		width: 16px;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host([value="4"]) {\n		height: 4px;\n		width: 4px;\n	}\n\n	:host([value="5"]) {\n		height: 5px;\n		width: 5px;\n	}\n\n	:host([value="6"]) {\n		height: 6px;\n		width: 6px;\n	}\n\n	:host([value="15"]) {\n		height: 15px;\n		width: 15px;\n	}\n</style>';function Yv(t){return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yv(t)}function OT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aG(t,e,r){return e&&OT(t.prototype,e),r&&OT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xv(t,e)}function Xv(t,e){return Xv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xv(t,e)}function uG(t){var e=pG();return function(){var n=Ec(t),i;if(e){var o=Ec(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return cG(this,i)}}function cG(t,e){if(e&&(Yv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fG(t)}function fG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ec(t){return Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ec(t)}function PT(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tc=function(t){lG(r,t);var e=uG(r);function r(){return sG(this,r),e.apply(this,arguments)}return aG(r)}(M);PT(Tc,"template",g([xT]));PT(Tc,"is","spacer-mkp");customElements.define(Tc.is,Tc);var ST='<style>\n	:host {\n		position: fixed;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n		z-index: 10000;\n\n		background-color: #eee;\n\n		/* will-change: opacity; */\n		-ms-scroll-chaining: none;\n		    overscroll-behavior: contain;\n	}\n\n	:host(:not([no-animate])) {\n		transition: opacity 0.2s;\n	}\n\n	.content {\n		transition: 0.2s;\n		/* will-change: opacity; */\n	}\n\n	:host(:not([active])) {\n		opacity: 0;\n		pointer-events: none;\n	}\n\n	:host(:not([inited]):not([init-opacity-disabled])) .content {\n		opacity: 0;\n	}\n</style>\n\n<div id="container">\n	<modal-header-mkp caption="[[caption]]" no-close="[[noClose]]" on-close="_close"></modal-header-mkp>\n\n	<complex-mkp\n		id="complex"\n		class="content"\n		context="[[context]]"\n		left-pan-active="{{leftPanActive}}"\n		right-pan-active="{{rightPanActive}}"\n		left-pan-caption="[[leftPanCaption]]"\n		right-pan-caption="[[rightPanCaption]]"\n		no-left-pan="[[noLeftPan]]"\n		no-pans="[[noPans]]"\n		no-pan-space="[[noPanSpace]]"\n		size="[[size]]"\n	>\n		<slot name="base-content" slot="base-content"></slot>\n		<slot name="left-panel" slot="left-panel"></slot>\n		<slot name="compact-left-panel" slot="compact-left-panel"></slot>\n		<slot name="right-panel" slot="right-panel"></slot>\n	</complex-mkp>\n</div>';function Qv(t){return Qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qv(t)}function hG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function mG(t,e,r){return e&&kT(t.prototype,e),r&&kT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ac(){return typeof Reflect!="undefined"&&Reflect.get?Ac=Reflect.get:Ac=function(e,r,n){var i=yG(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ac.apply(this,arguments)}function yG(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ki(t),t!==null););return t}function vG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jv(t,e)}function Jv(t,e){return Jv=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jv(t,e)}function gG(t){var e=wG();return function(){var n=ki(t),i;if(e){var o=ki(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return bG(this,i)}}function bG(t,e){if(e&&(Qv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _G(t)}function _G(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ki(t){return ki=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ki(t)}function Zv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ns=function(t){vG(r,t);var e=gG(r);function r(){var n;return hG(this,r),n=e.call(this),n._loader=document.createElement("loader-ui"),n}return mG(r,[{key:"ready",value:function(){var i=this;Ac(ki(r.prototype),"ready",this).call(this),this._updateState(),this._updateHidden(),this.addEventListener("transitionend",function(){i.active||(i.$.complex.resetScroll(),i.style.zIndex=-1)})}},{key:"resetScroll",value:function(){this.$.complex.resetScroll()}},{key:"_activeObserver",value:function(){this.dispatchEvent(new CustomEvent(this.active?"open":"close")),this._updateState(),this._updateHidden()}},{key:"_updateHidden",value:function(){this.active===void 0&&(this.style.zIndex=-1),this.active&&(this.style.zIndex="")}},{key:"_updateState",value:function(){var i=this;this.active&&!this.inited?this._loader.open():(!this.active||this.inited)&&this._loader.close(),this._debouncer=ue(this._debouncer,1,function(){i.inited&&document.dispatchEvent(new CustomEvent("view-ready"))})}},{key:"_close",value:function(){this.active=!1}}]),r}(M);Zv(ns,"is","modal-mkp");Zv(ns,"template",g([ST]));Zv(ns,"properties",{active:{type:Boolean,reflectToAttribute:!0,observer:"_activeObserver"},inited:{type:Boolean,reflectToAttribute:!0,observer:"_updateState"},caption:{type:String},leftPanActive:{type:Boolean},rightPanActive:{type:Boolean},leftPanCaption:{type:String},rightPanCaption:{type:String},context:{type:Object},noLeftPan:{type:Boolean,reflectToAttribute:!0},noPans:{type:Boolean},noPanSpace:{type:Boolean},noClose:{type:Boolean},size:{type:String}});customElements.define(ns.is,ns);var ET='<style>\n	:host {\n		position: relative;\n		z-index: 10000;\n\n		display: flex;\n		justify-content: space-between;\n		align-items: center;\n\n		height: 50px;\n		padding-left: 8px;\n		padding-right: 8px;\n\n		background-color: rgba(255, 255, 255, 1);\n		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n	}\n\n	.caption {\n		color: #607d8b;\n		font-size: 22px;\n		height: 34px;\n		display: flex;\n		align-items: center;\n	}\n</style>\n\n<flex-mkp space-max v-center>\n	<button-ui round theme="bg1" icon="arrow-left" hidden="[[noClose]]" on-click="_close"></button-ui>\n	<spacer-mkp min hidden="[[!noClose]]"></spacer-mkp>\n	<div class="caption">[[caption]]</div>\n</flex-mkp>\n<sync-status-mdl></sync-status-mdl>';function eg(t){return eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eg(t)}function xG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function OG(t,e,r){return e&&TT(t.prototype,e),r&&TT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function PG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tg(t,e)}function tg(t,e){return tg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tg(t,e)}function SG(t){var e=TG();return function(){var n=Rc(t),i;if(e){var o=Rc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kG(this,i)}}function kG(t,e){if(e&&(eg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EG(t)}function EG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Rc(t){return Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rc(t)}function rg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var is=function(t){PG(r,t);var e=SG(r);function r(){return xG(this,r),e.apply(this,arguments)}return OG(r,[{key:"_close",value:function(){this.dispatchEvent(new CustomEvent("close"))}}]),r}(O);rg(is,"is","modal-header-mkp");rg(is,"template",g([ET]));rg(is,"properties",{caption:{type:String},noClose:{type:Boolean,value:!1}});customElements.define(is.is,is);var AT='<style>\n	:host {\n		display: block;\n	}\n\n	:host([no-pans]) panel-mkp[position=left] {\n		transform: translate(-100%);\n	}\n\n	:host([no-pans]) panel-mkp,\n	:host([no-pans]) floating-button-ui {\n		display: none !important;\n	}\n\n	panel-mkp {\n		display: flex;\n		flex-direction: column;\n	}\n\n	.scrollable {\n		flex-grow: 1;\n		display: flex;\n		flex-direction: column;\n		overflow-y: auto;\n		-ms-scroll-chaining: none;\n		    overscroll-behavior: contain;\n		scroll-behavior: smooth;\n	}\n\n	.panel-bottom-space {\n		height: 34px;\n		flex-shrink: 0;\n		pointer-events: none;\n	}\n\n	@media (max-width: 1300px) {\n		:host(:not([no-left-pan]):not([no-pans])) .content {\n			margin-left: calc(16px * 2);\n		}\n	}\n</style>\n\n<content-mkp\n	id="content"\n	class="content"\n	no-content-space="[[noContentSpace]]"\n	compact-on-mobile="[[compactOnMobile]]"\n	size="[[size]]"\n>\n	<slot name="base-content"></slot>\n</content-mkp>\n\n<panel-mkp\n	theme="brightest"\n	active="{{leftPanActive}}"\n	hidden="[[noLeftPan]]"\n	position="left"\n	on-toggle-panel="_toggleLeftPan"\n	on-close-panel-on-mobile="_closeLeftPanOnMobile"\n	on-mouseenter="_leftPanelMouseEnter"\n>\n	<panel-header-mkp theme="brightest" position="left" no-border is-always-pan-active="[[isAlwaysPanActive]]">[[leftPanCaption]]</panel-header-mkp>\n	<div id="leftPanelScrollable" class="scrollable">\n		<slot name="left-panel"></slot>\n		<div class="panel-bottom-space" hidden="[[noPanSpace]]"></div>\n	</div>\n	<slot name="compact-left-panel" slot="compact"></slot>\n</panel-mkp>\n\n<panel-mkp\n	id="rightPanel"\n	theme="accent"\n	active="{{rightPanActive}}"\n	position="right"\n	hidden-soft$="[[_toolbarHidden]]"\n>\n	<panel-header-mkp theme="accent" icon="cog" on-close-panel="_toggleRightPan" is-always-pan-active="[[isAlwaysPanActive]]">[[rightPanCaption]]</panel-header-mkp>\n	<div class="scrollable">\n		<slot name="right-panel"></slot>\n		<div class="panel-bottom-space" hidden="[[noPanSpace]]"></div>\n	</div>\n</panel-mkp>\n\n<floating-button-ui\n	class$="[[hideClass]]"\n	theme="accent"\n	icon="cog"\n	icon-toggled="chevron-right"\n	toggled="[[rightPanActive]]"\n	position="bottom, right"\n	active="[[!_toolbarHidden]]"\n	on-click="_toggleRightPan"\n></floating-button-ui>';function ng(t){return ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ng(t)}function RG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function DG(t,e,r){return e&&RT(t.prototype,e),r&&RT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ei(){return typeof Reflect!="undefined"&&Reflect.get?Ei=Reflect.get:Ei=function(e,r,n){var i=CG(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ei.apply(this,arguments)}function CG(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=pr(t),t!==null););return t}function IG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ig(t,e)}function ig(t,e){return ig=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ig(t,e)}function jG(t){var e=LG();return function(){var n=pr(t),i;if(e){var o=pr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return BG(this,i)}}function BG(t,e){if(e&&(ng(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MG(t)}function MG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function pr(t){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pr(t)}function og(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var os=function(t){IG(r,t);var e=jG(r);function r(){return RG(this,r),e.apply(this,arguments)}return DG(r,[{key:"_toggleLeftPan",value:function(){this.leftPanActive=!this.leftPanActive,this._isSmallScreen&&this.leftPanActive&&(this.rightPanActive=!1)}},{key:"_closeLeftPanOnMobile",value:function(){window.innerWidth<1e3&&this._toggleLeftPan()}},{key:"_toggleRightPan",value:function(){this.rightPanActive=!this.rightPanActive,this._isSmallScreen&&this.rightPanActive&&(this.leftPanActive=!1)}},{key:"resetScroll",value:function(){this.$.content.scrollTop=0,document.documentElement.scrollTop=0,document.body.scrollTop=0}},{key:"_contextObserver",value:function(i){i?(window.addEventListener("content-scroll",this._scrollHandler),this._scrollHandler(),this._isSmallScreen||(this.rightPanActive=!0),this._isSmallScreen&&this.rightPanActive&&(this.leftPanActive=!1)):(window.removeEventListener("content-scroll",this._scrollHandler),this._toolbarHidden=!0)}},{key:"_leftPanelMouseEnter",value:function(){this.leftPanActive||(this.leftPanActive=!!DragSpotMdl.dragging)}},{key:"_getHideClass",value:function(i){return!i&&"hide-on-wide-screen"}},{key:"getDragScrollContainer",value:function(){return this.$.leftPanelScrollable}},{key:"rightPanActiving",value:function(){this.rightPanActive=!0,this.rightPanelBlink()}},{key:"rightPanelBlink",value:function(){var i=this,o=this.context;this._isSmallScreen||requestAnimationFrame(function(){if(i.context===o){i.$.rightPanel.setAttribute("blink","");var a=function s(){i.$.rightPanel.removeAttribute("blink"),i.$.rightPanel.removeEventListener("animationend",s)};i.$.rightPanel.addEventListener("animationend",a)}})}},{key:"ready",value:function(){var i=this;Ei(pr(r.prototype),"ready",this).call(this),this._scrollHandler=function(){if(!!i.context){if(i.context.ownerDocument!==document){i._toolbarHidden=!1;return}requestAnimationFrame(function(){if(!!i.context){var o=i.context.getBoundingClientRect(),a=parseFloat(getComputedStyle(document.body).getPropertyValue("--app-header-height"));o.top+o.height<a||o.top>window.innerHeight?i._toolbarHidden=!0:i._toolbarHidden=!1}})}},this._onTouchMove=function(o){if(!!DragSpotMdl.dragging){var a=Ql(o.touches[0].clientX,o.touches[0].clientY);!a||!a.composedClosest||a.composedClosest("panel-mkp[position=left], compact-panel-caption-mkp, compact-survey-navigator-mdl")&&(i.leftPanActive=!0)}}}},{key:"connectedCallback",value:function(){var i=this;Ei(pr(r.prototype),"connectedCallback",this).call(this),this._prevWidth,this._resizeHandler=function(){i._prevWidth!==window.innerWidth&&(i._prevWidth=window.innerWidth,i._isSmallScreen=window.innerWidth<1400,i.leftPanActive=!i._isSmallScreen,i.rightPanActive=!i._isSmallScreen)},window.addEventListener("resize",this._resizeHandler),this._resizeHandler(),this._routeHandler=function(){i.dispatchEvent(new CustomEvent("context-select",{composed:!0,bubbles:!0}))},window.Router&&Router.on("route",this._routeHandler),document.addEventListener("touchmove",this._onTouchMove),this.addEventListener("close-right-panel",function(){i.rightPanActive=!1})}},{key:"disconnectedCallback",value:function(){Ei(pr(r.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("content-scroll",this._scrollHandler),window.removeEventListener("resize",this._resizeHandler),window.Router&&Router.off("route",this._routeHandler),document.removeEventListener("touchmove",this._onTouchMove)}}]),r}(iE(O));og(os,"is","complex-mkp");og(os,"template",g([AT]));og(os,"properties",{leftPanCaption:{type:String,value:""},rightPanCaption:{type:String,value:""},leftPanActive:{type:Boolean,value:!0,reflectToAttribute:!0,notify:!0},rightPanActive:{type:Boolean,value:!0,reflectToAttribute:!0,notify:!0},context:{type:Object,observer:"_contextObserver"},noLeftPan:{type:Boolean,value:!1,reflectToAttribute:!0},noPans:{type:Boolean,value:!1,reflectToAttribute:!0},noPanSpace:{type:Boolean},noContentSpace:{type:Boolean},compactOnMobile:{type:Boolean},openLeftPanelOnDrag:{type:String},size:{type:String},_isSmallScreen:{type:Boolean,value:!1},_isFirstActive:{type:Boolean,value:!0},_toolbarHidden:{type:Boolean,value:!0},isAlwaysPanActive:{type:Boolean,value:!1},hideClass:{type:String,computed:"_getHideClass(isAlwaysPanActive)"}});customElements.define(os.is,os);var DT='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n\n		min-height: calc(100vh - 50px);\n		height: calc(100vh - 50px);\n		overflow-y: auto;\n		/* scroll-behavior: smooth; */\n		-ms-scroll-chaining: none;\n		    overscroll-behavior: contain;\n		-webkit-overflow-scrolling: touch;\n	}\n\n	:host([scroll-disabled]) {\n		overflow: hidden;\n	}\n\n	.container {\n		display: flex;\n		flex-direction: column;\n		flex-grow: 1;\n		padding: 16px;\n		box-sizing: border-box;\n	}\n\n	:host([size=min]) .container {\n		width: 100%;\n		max-width: 960px;\n	}\n\n	:host([size=mid]) .container {\n		width: 100%;\n		max-width: 1300px;\n	}\n\n	:host([size=max]) {\n		align-items: stretch;\n	}\n\n	@media (max-width: 700px) {\n		.container {\n			padding: 8px;\n		}\n\n		:host([compact-on-mobile]) .container {\n			padding: calc(2px * 2);\n		}\n	}\n\n	:host([is-iphone]) .container {\n		margin-bottom: 110px;\n	}\n\n	:host([is-ipad]) .container {\n		margin-bottom: 63px;\n	}\n</style>\n<div part="container" class="container">\n	<slot></slot>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n	<spacer-mkp class="show-on-mobile" max hidden="[[noContentSpace]]"></spacer-mkp>\n</div>';function ag(t){return ag=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ag(t)}function qG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zG(t,e,r){return e&&CT(t.prototype,e),r&&CT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function as(){return typeof Reflect!="undefined"&&Reflect.get?as=Reflect.get:as=function(e,r,n){var i=HG(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},as.apply(this,arguments)}function HG(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=vn(t),t!==null););return t}function UG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sg(t,e)}function sg(t,e){return sg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sg(t,e)}function VG(t){var e=GG();return function(){var n=vn(t),i;if(e){var o=vn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WG(this,i)}}function WG(t,e){if(e&&(ag(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IT(t)}function IT(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GG(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function vn(t){return vn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},vn(t)}function lg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ss=function(t){UG(r,t);var e=VG(r);function r(){var n;return qG(this,r),n=e.call(this),n.addEventListener("scroll",function(){n.dispatchEvent(new CustomEvent("content-scroll",{composed:!0,bubbles:!0,detail:IT(n)}))},{passive:!0}),n}return zG(r,[{key:"connectedCallback",value:function(){var i=this;as(vn(r.prototype),"connectedCallback",this).call(this),this._enableScroll=function(){i.scrollDisabled=!1},this._disableScroll=function(){i.scrollDisabled=!0},document.addEventListener("enable-content-scroll",this._enableScroll),document.addEventListener("disable-content-scroll",this._disableScroll)}},{key:"disconnectedCallback",value:function(){as(vn(r.prototype),"disconnectedCallback",this).call(this),this._enableScroll(),document.removeEventListener("enable-content-scroll",this._enableScroll),document.removeEventListener("disable-content-scroll",this._disableScroll)}}]),r}(ce(qa(M)));lg(ss,"is","content-mkp");lg(ss,"template",g([DT]));lg(ss,"properties",{innerScroll:{type:Boolean,value:!0,reflectToAttribute:!0},scrollDisabled:{type:Boolean,value:!1,reflectToAttribute:!0},size:{type:String,value:"min",reflectToAttribute:!0},noContentSpace:{type:Boolean},compactOnMobile:{type:Boolean,value:!1,reflectToAttribute:!0}});customElements.define(ss.is,ss);var jT="<style>\n	:host {\n		display: flex;\n	}\n\n	:host([inline]) {\n		display: inline-flex;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host([no-shrink]) {\n		flex-shrink: 0;\n	}\n\n	:host([wrap]) {\n		flex-wrap: wrap;\n	}\n\n	:host([column]) {\n		flex-flow: column;\n	}\n\n	:host([center]) {\n		align-items: center;\n		justify-content: center;\n	}\n\n	:host([h-start]) {\n		justify-content: flex-start;\n	}\n\n	:host([h-center]) {\n		justify-content: center;\n	}\n\n	:host([h-end]) {\n		justify-content: flex-end;\n	}\n\n	:host([h-spread]) {\n		justify-content: space-around;\n	}\n\n	:host([h-justify]) {\n		justify-content: space-between;\n	}\n\n	:host([v-start]) {\n		align-items: flex-start;\n	}\n\n	:host([v-center]) {\n		align-items: center;\n	}\n\n	:host([v-end]) {\n		align-items: flex-end;\n	}\n\n	:host([v-stretch]) {\n		align-items: stretch;\n	}\n\n	:host([space-min]) {\n		margin-top: -2px;\n		margin-left: -2px;\n	}\n\n	:host([space-min]) ::slotted(*) {\n		margin-top: 2px;\n		margin-left: 2px;\n	}\n\n	:host([space-mid]) {\n		margin-top: calc(16px / -2);\n		margin-left: calc(16px / -2);\n	}\n\n	:host([space-mid]) ::slotted(*) {\n		margin-top: 8px;\n		margin-left: 8px;\n	}\n\n	:host([space-max]) {\n		margin-top: calc(16px * -1);\n		margin-left: calc(16px * -1);\n	}\n\n	:host([space-max]) ::slotted(*) {\n		margin-top: 16px;\n		margin-left: 16px;\n	}\n\n	:host([space-side-min]) {\n		margin-top: calc(6px * -1);\n		margin-left: calc(6px * -1);\n	}\n\n	:host([space-side-min]) ::slotted(*) {\n		margin-top: 6px;\n		margin-left: 6px;\n	}\n</style>\n<slot></slot>";function ug(t){return ug=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ug(t)}function BT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function KG(t,e,r){return e&&BT(t.prototype,e),r&&BT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function YG(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XG(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cg(t,e)}function cg(t,e){return cg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},cg(t,e)}function QG(t){var e=e$();return function(){var n=Dc(t),i;if(e){var o=Dc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return JG(this,i)}}function JG(t,e){if(e&&(ug(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZG(t)}function ZG(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function e$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Dc(t){return Dc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Dc(t)}function MT(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Cc=function(t){XG(r,t);var e=QG(r);function r(){return YG(this,r),e.apply(this,arguments)}return KG(r)}(M);MT(Cc,"template",g([jT]));MT(Cc,"is","flex-mkp");customElements.define(Cc.is,Cc);var LT='<style>\n	:host {\n		display: block;\n		position: -webkit-sticky;\n		position: sticky;\n		z-index: 99;\n	}\n\n	.container {\n		border: 4px solid;\n		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);\n	}\n\n	:host([position=top]) {\n		top: 8px;\n		margin-bottom: 16px;\n	}\n\n	:host([position=bottom]) {\n		bottom: 8px;\n		margin-top: calc(16px * 2);\n	}\n\n	:host([theme=accent]) .container {\n		border-color: #607d8b;\n	}\n\n	:host([theme=warning]) .container {\n		border-color: #d8252b;\n	}\n\n	:host([theme=success]) .container {\n		border-color: hsl(122, 69%, 42%);\n	}\n\n	:host([theme=alt]) .container {\n		border-color: hsl(263, 37%, 55%);\n	}\n\n	:host([theme=accent5]) .container {\n		border-color: #949494;\n	}\n\n	:host([theme=bg1]) .container {\n		border-color: #eee;\n	}\n\n	:host([theme=element]) .container {\n		border-color: #a8bac3;\n	}\n</style>\n\n<card-mkp class="container" theme="brightest" compact>\n	<flex-mkp space-mid v-center h-justify>\n		<slot></slot>\n	</flex-mkp>\n</card-mkp>';function fg(t){return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fg(t)}function NT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r$(t,e,r){return e&&NT(t.prototype,e),r&&NT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function n$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pg(t,e)}function pg(t,e){return pg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pg(t,e)}function o$(t){var e=l$();return function(){var n=Ic(t),i;if(e){var o=Ic(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return a$(this,i)}}function a$(t,e){if(e&&(fg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s$(t)}function s$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ic(t){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ic(t)}function dg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ls=function(t){i$(r,t);var e=o$(r);function r(){return n$(this,r),e.apply(this,arguments)}return r$(r)}(M);dg(ls,"is","sticky-message-mkp");dg(ls,"template",g([LT]));dg(ls,"properties",{theme:{type:String,reflectToAttribute:!0},position:{type:String,reflectToAttribute:!0}});customElements.define(ls.is,ls);var qT='<style>\n	:host {\n		display: block;\n	}\n\n	:host(:not([compact])) {\n		font-size: 22px;\n	}\n\n	.caption {\n		justify-content: center;\n		text-align: center;\n	}\n</style>\n<card-mkp theme="[[_cardTheme]]" compact="[[compact]]" connect="all" grow>\n	<caption-mkp class="caption" icon="[[icon]]" theme="accent5"><slot></slot></caption-mkp>\n</card-mkp>';function hg(t){return hg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hg(t)}function c$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f$(t,e,r){return e&&zT(t.prototype,e),r&&zT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function p$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mg(t,e)}function mg(t,e){return mg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mg(t,e)}function d$(t){var e=y$();return function(){var n=jc(t),i;if(e){var o=jc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return h$(this,i)}}function h$(t,e){if(e&&(hg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m$(t)}function m$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function jc(t){return jc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jc(t)}function yg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var us=function(t){p$(r,t);var e=d$(r);function r(){return c$(this,r),e.apply(this,arguments)}return f$(r,[{key:"_getCardTheme",value:function(i,o){return i||(o?"bg1":"")}}]),r}(O);yg(us,"is","empty-mkp");yg(us,"template",g([qT]));yg(us,"properties",{icon:{type:String,reflectToAttribute:!0},compact:{type:Boolean,reflectToAttribute:!0},theme:{type:String},_cardTheme:{computed:"_getCardTheme(theme, compact)"}});customElements.define(us.is,us);var HT='<style>\n	:host {\n		--hr-color: currentColor;\n		display: block;\n		border-top: 2px dotted var(--hr-color);\n		margin: 8px 0;\n	}\n\n	:host([light]) {\n		opacity: 0.5;\n		border-top-width: 1px;\n	}\n\n	:host([compact]) {\n		margin: 2px 0;\n	}\n\n	:host([theme="accent"]) {\n		--hr-color: var(--color-accent);\n	}\n\n	:host([theme="warning"]) {\n		--hr-color: var(--color-warning);\n	}\n\n	:host([theme="success"]) {\n		--hr-color: var(--color-success);\n	}\n\n	:host([theme="alt"]) {\n		--hr-color: var(--color-alt);\n	}\n\n	:host([theme="accent5"]) {\n		--hr-color: var(--color-accent-5);\n	}\n\n	:host([theme="brightest"]) {\n		--hr-color: var(--color-brightest);\n	}\n\n	:host([theme="darkest"]) {\n		--hr-color: var(--color-darkest);\n	}\n\n	:host([theme="bg2"]) {\n		--hr-color: var(--color-theme-bg-1);\n	}\n\n	:host([theme="element"]) {\n		--hr-color: var(--color-theme-element);\n	}\n</style>';function vg(t){return vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vg(t)}function UT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function g$(t,e,r){return e&&UT(t.prototype,e),r&&UT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function b$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gg(t,e)}function gg(t,e){return gg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gg(t,e)}function w$(t){var e=O$();return function(){var n=Bc(t),i;if(e){var o=Bc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return F$(this,i)}}function F$(t,e){if(e&&(vg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x$(t)}function x$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Bc(t){return Bc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bc(t)}function VT(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Mc=function(t){_$(r,t);var e=w$(r);function r(){return b$(this,r),e.apply(this,arguments)}return g$(r)}(M);VT(Mc,"template",g([HT]));VT(Mc,"is","hr-mkp");customElements.define(Mc.is,Mc);var WT='<style>\n	:host {\n		display: flex;\n		justify-content: flex-start;\n		align-items: center;\n	}\n\n	:host([h1]) {\n		font-size: 22px;\n		padding-bottom: 16px;\n		border-bottom: 2px solid currentColor;\n	}\n\n	:host([h2]) {\n		font-size: 18px;\n		padding-bottom: 16px;\n	}\n\n	:host([theme=accent]) { color: #607d8b; }\n	:host([theme=warning]) { color: #d8252b; }\n	:host([theme=success]) { color: hsl(122, 69%, 42%); }\n	:host([theme=alt]) { color: hsl(263, 37%, 55%); }\n	:host([theme=accent5]) { color: #949494; }\n	:host([theme=brightest]) { color: rgba(255, 255, 255, 1); }\n	:host([theme=darkest]) { color: rgba(33, 37, 43, 1); }\n	:host([theme=bg1]) { color: #eee; }\n	:host([theme=element]) { color: #a8bac3; }\n	:host([theme=brand]) { color: #e31c5e; }\n\n	:host([icon-theme=accent]) icon-ui { color: #607d8b; }\n	:host([icon-theme=warning]) icon-ui { color: #d8252b; }\n	:host([icon-theme=success]) icon-ui { color: hsl(122, 69%, 42%); }\n	:host([icon-theme=alt]) icon-ui { color: hsl(263, 37%, 55%); }\n	:host([icon-theme=accent5]) icon-ui { color: #949494; }\n	:host([icon-theme=brightest]) icon-ui { color: rgba(255, 255, 255, 1); }\n	:host([icon-theme=darkest]) icon-ui { color: rgba(33, 37, 43, 1); }\n	:host([icon-theme=bg1]) icon-ui { color: #eee; }\n	:host([icon-theme=element]) icon-ui { color: #a8bac3; }\n	:host([icon-theme=brand]) icon-ui { color: #e31c5e; }\n\n	:host([compact]) {\n		padding-bottom: 0;\n		border-bottom: none;\n	}\n\n	icon-ui {\n		font-size: 22px;\n		margin-right: 8px;\n	}\n\n	:host(:not([icon])) icon-ui {\n		display: none;\n	}\n</style>\n<icon-ui icon="[[icon]]"></icon-ui>\n<slot></slot>';function bg(t){return bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bg(t)}function GT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function S$(t,e,r){return e&&GT(t.prototype,e),r&&GT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function k$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_g(t,e)}function _g(t,e){return _g=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_g(t,e)}function T$(t){var e=D$();return function(){var n=Lc(t),i;if(e){var o=Lc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return A$(this,i)}}function A$(t,e){if(e&&(bg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R$(t)}function R$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function D$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Lc(t){return Lc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Lc(t)}function wg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var cs=function(t){E$(r,t);var e=T$(r);function r(){return k$(this,r),e.apply(this,arguments)}return S$(r)}(M);wg(cs,"is","caption-mkp");wg(cs,"template",g([WT]));wg(cs,"properties",{icon:{type:String,reflectToAttribute:!0}});customElements.define(cs.is,cs);var $T='<style>\n	:host {\n	}\n\n	.main {\n		border-radius: 0;\n		margin: 10px;\n		box-shadow: 0 8px 26px -15px #777;\n	}\n\n	:host([theme=warning]) .caption {\n		color: #d8252b;\n	}\n</style>\n\n<card-mkp class="main">\n	<caption-mkp class="caption" theme="[[theme]]" icon="[[icon]]">[[message]]</caption-mkp>\n</card-mkp>';function Fg(t){return Fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fg(t)}function KT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function I$(t,e,r){return e&&KT(t.prototype,e),r&&KT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function j$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function B$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xg(t,e)}function xg(t,e){return xg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xg(t,e)}function M$(t){var e=q$();return function(){var n=Nc(t),i;if(e){var o=Nc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return L$(this,i)}}function L$(t,e){if(e&&(Fg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N$(t)}function N$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function q$(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Nc(t){return Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nc(t)}function Og(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fs=function(t){B$(r,t);var e=M$(r);function r(){return j$(this,r),e.apply(this,arguments)}return I$(r)}(O);Og(fs,"is","alert-ui");Og(fs,"template",g([$T]));Og(fs,"properties",{message:{type:String},icon:{type:String},theme:{type:String,reflectToAttribute:!0}});customElements.define(fs.is,fs);var YT='<style>\n	:host {\n		display: inline-flex;\n	}\n\n	:host([is-custom]) {\n		position: relative;\n		overflow: hidden;\n	}\n\n	.placeholder {\n		opacity: 0;\n	}\n\n	.icon {\n		vertical-align: inherit;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	.mdi {\n		display: inline-block;\n		font: normal normal normal 24px/1 "Material Design Icons";\n		font-size: inherit;\n		text-rendering: auto;\n		line-height: inherit;\n		-webkit-font-smoothing: antialiased;\n		-moz-osx-font-smoothing: grayscale;\n	}\n\n	.custom {\n		position: relative;\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		justify-content: center;\n	}\n\n	svg {\n		position: absolute;\n	}\n\n	:host(:not([no-fill])) svg * {\n		fill: currentColor !important;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n\n<div id="mdi" class="icon mdi" hidden="[[isCustom]]"></div>\n<div part="custom" id="custom" class="icon custom" hidden="[[!isCustom]]"></div>';function Pg(t){return Pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pg(t)}function XT(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function QT(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){XT(o,n,i,a,s,"next",l)}function s(l){XT(o,n,i,a,s,"throw",l)}a(void 0)})}}function H$(t){return G$(t)||W$(t)||V$(t)||U$()}function U$(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function V$(t,e){if(!!t){if(typeof t=="string")return Sg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sg(t,e)}}function W$(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function G$(t){if(Array.isArray(t))return Sg(t)}function Sg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function $$(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function K$(t,e,r){return e&&JT(t.prototype,e),r&&JT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function qc(){return typeof Reflect!="undefined"&&Reflect.get?qc=Reflect.get:qc=function(e,r,n){var i=Y$(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},qc.apply(this,arguments)}function Y$(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ti(t),t!==null););return t}function X$(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kg(t,e)}function kg(t,e){return kg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},kg(t,e)}function Q$(t){var e=eK();return function(){var n=Ti(t),i;if(e){var o=Ti(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return J$(this,i)}}function J$(t,e){if(e&&(Pg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z$(t)}function Z$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ti(t){return Ti=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ti(t)}function Eg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ae=function(t){X$(r,t);var e=Q$(r);function r(){var n;return $$(this,r),n=e.call(this),r.cacheStatus.then(function(){n._iconsCache=r.iconsCache}),n._currentIcon,n}return K$(r,[{key:"connectedCallback",value:function(){qc(Ti(r.prototype),"connectedCallback",this).call(this),this._renderOnConnect&&(this._renderOnConnect=!1,this._render())}},{key:"_getIsCustom",value:function(i){return r.customIcons.has(i)}},{key:"_render",value:function(){if(!(!this.icon||window.TEST_MODE)&&this._currentIcon!==this.icon){if(!this.isConnected){this._renderOnConnect=!0;return}if(!this.isCustom){var i=r.mdiIcons.get(this.icon);this.$.mdi.innerHTML=i?"&#x".concat(i,";"):"",this._currentIcon=this.icon;return}if(!(!this._iconsCache||!this._getIsCustom(this.icon))){var o=this._iconsCache.get(this.icon);this.$.custom.innerHTML='<div class="placeholder mdi">&#x'.concat(r.mdiIcons.get("heart"),";</div>").concat(o),this._currentIcon=this.icon}}}}]),r}(M);Eg(Ae,"is","icon-ui");Eg(Ae,"template",g([YT]));Eg(Ae,"properties",{icon:{type:String,reflectToAttribute:!0,observer:"_render"},isCustom:{type:Boolean,computed:"_getIsCustom(icon)",reflectToAttribute:!0},_iconsCache:{type:Object,observer:"_render"}});Ae.customIcons=new Set(["qs-bar-chart","qs-bar-stacked-chart","qs-radar-chart","qs-scatter-chart","qs-box-plot-chart","qs-correlation-analysis","qs-t-test-analysis","qs-linear-regression-analysis","qs-font-size-increase","qs-font-size-decrease","qs-subset","qs-not-subset","qs-skip-logic-definition","qs-message-alert-outline","qs-tarif-free","qs-tarif-business-monthly","qs-tarif-business-standard","qs-tarif-business-professional","qs-tarif-business-press","qs-export-file-csv","qs-export-file-pptx","qs-export-file-spss","qs-export-file-xlsx","qs-export-file-docx","qs-export-file-pdf","qs-export-file-pdf-light","qs-email-double-check-outline","qs-autocomplete","qs-autocomplete-multiple","qs-google-data-studio"]);window.IS_SURVEY_APP&&Ae.customIcons.clear();Ae.iconsCache=new Map;APP.local&&!window.IS_BUNDLE?Ae.cacheStatus=Promise.all(H$(Ae.customIcons).map(function(){var t=QT(regeneratorRuntime.mark(function e(r){var n;return regeneratorRuntime.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,fetch("".concat(window.ROOT_PATH||"/","icons/").concat(r,".svg"));case 2:if(n=o.sent,!n){o.next=10;break}return o.t0=Ae.iconsCache,o.t1=r,o.next=8,n.text();case 8:o.t2=o.sent,o.t0.set.call(o.t0,o.t1,o.t2);case 10:case"end":return o.stop()}},e)}));return function(e){return t.apply(this,arguments)}}())):Ae.cacheStatus=new Promise(function(){var t=QT(regeneratorRuntime.mark(function e(r){var n,i;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,fetch("".concat(window.ROOT_PATH||"/","icons/icons.json")).catch(function(){setTimeout(function(){throw"Failed to fetch icons bundle"})});case 2:if(n=a.sent,!n){a.next=9;break}return a.next=6,n.json();case 6:i=a.sent,Object.keys(i).forEach(function(s){Ae.iconsCache.set(s.replace(".svg",""),i[s])}),r();case 9:case"end":return a.stop()}},e)}));return function(e){return t.apply(this,arguments)}}());Ae.mdiIcons=new Map([["ab-testing","F01C9"],["abjad-arabic","F1328"],["abjad-hebrew","F1329"],["abugida-devanagari","F132A"],["abugida-thai","F132B"],["access-point","F0003"],["access-point-check","F1538"],["access-point-minus","F1539"],["access-point-network","F0002"],["access-point-network-off","F0BE1"],["access-point-off","F1511"],["access-point-plus","F153A"],["access-point-remove","F153B"],["account","F0004"],["account-alert","F0005"],["account-alert-outline","F0B50"],["account-arrow-left","F0B51"],["account-arrow-left-outline","F0B52"],["account-arrow-right","F0B53"],["account-arrow-right-outline","F0B54"],["account-box","F0006"],["account-box-multiple","F0934"],["account-box-multiple-outline","F100A"],["account-box-outline","F0007"],["account-cancel","F12DF"],["account-cancel-outline","F12E0"],["account-cash","F1097"],["account-cash-outline","F1098"],["account-check","F0008"],["account-check-outline","F0BE2"],["account-child","F0A89"],["account-child-circle","F0A8A"],["account-child-outline","F10C8"],["account-circle","F0009"],["account-circle-outline","F0B55"],["account-clock","F0B56"],["account-clock-outline","F0B57"],["account-cog","F1370"],["account-cog-outline","F1371"],["account-convert","F000A"],["account-convert-outline","F1301"],["account-cowboy-hat","F0E9B"],["account-details","F0631"],["account-details-outline","F1372"],["account-edit","F06BC"],["account-edit-outline","F0FFB"],["account-group","F0849"],["account-group-outline","F0B58"],["account-hard-hat","F05B5"],["account-heart","F0899"],["account-heart-outline","F0BE3"],["account-key","F000B"],["account-key-outline","F0BE4"],["account-lock","F115E"],["account-lock-outline","F115F"],["account-minus","F000D"],["account-minus-outline","F0AEC"],["account-multiple","F000E"],["account-multiple-check","F08C5"],["account-multiple-check-outline","F11FE"],["account-multiple-minus","F05D3"],["account-multiple-minus-outline","F0BE5"],["account-multiple-outline","F000F"],["account-multiple-plus","F0010"],["account-multiple-plus-outline","F0800"],["account-multiple-remove","F120A"],["account-multiple-remove-outline","F120B"],["account-music","F0803"],["account-music-outline","F0CE9"],["account-network","F0011"],["account-network-outline","F0BE6"],["account-off","F0012"],["account-off-outline","F0BE7"],["account-outline","F0013"],["account-plus","F0014"],["account-plus-outline","F0801"],["account-question","F0B59"],["account-question-outline","F0B5A"],["account-reactivate","F152B"],["account-reactivate-outline","F152C"],["account-remove","F0015"],["account-remove-outline","F0AED"],["account-search","F0016"],["account-search-outline","F0935"],["account-settings","F0630"],["account-settings-outline","F10C9"],["account-star","F0017"],["account-star-outline","F0BE8"],["account-supervisor","F0A8B"],["account-supervisor-circle","F0A8C"],["account-supervisor-circle-outline","F14EC"],["account-supervisor-outline","F112D"],["account-switch","F0019"],["account-switch-outline","F04CB"],["account-tie","F0CE3"],["account-tie-outline","F10CA"],["account-tie-voice","F1308"],["account-tie-voice-off","F130A"],["account-tie-voice-off-outline","F130B"],["account-tie-voice-outline","F1309"],["account-voice","F05CB"],["adjust","F001A"],["adobe","F0936"],["adobe-acrobat","F0F9D"],["air-conditioner","F001B"],["air-filter","F0D43"],["air-horn","F0DAC"],["air-humidifier","F1099"],["air-humidifier-off","F1466"],["air-purifier","F0D44"],["airbag","F0BE9"],["airballoon","F001C"],["airballoon-outline","F100B"],["airplane","F001D"],["airplane-landing","F05D4"],["airplane-off","F001E"],["airplane-takeoff","F05D5"],["airport","F084B"],["alarm","F0020"],["alarm-bell","F078E"],["alarm-check","F0021"],["alarm-light","F078F"],["alarm-light-outline","F0BEA"],["alarm-multiple","F0022"],["alarm-note","F0E71"],["alarm-note-off","F0E72"],["alarm-off","F0023"],["alarm-panel","F15C4"],["alarm-panel-outline","F15C5"],["alarm-plus","F0024"],["alarm-snooze","F068E"],["album","F0025"],["alert","F0026"],["alert-box","F0027"],["alert-box-outline","F0CE4"],["alert-circle","F0028"],["alert-circle-check","F11ED"],["alert-circle-check-outline","F11EE"],["alert-circle-outline","F05D6"],["alert-decagram","F06BD"],["alert-decagram-outline","F0CE5"],["alert-minus","F14BB"],["alert-minus-outline","F14BE"],["alert-octagon","F0029"],["alert-octagon-outline","F0CE6"],["alert-octagram","F0767"],["alert-octagram-outline","F0CE7"],["alert-outline","F002A"],["alert-plus","F14BA"],["alert-plus-outline","F14BD"],["alert-remove","F14BC"],["alert-remove-outline","F14BF"],["alert-rhombus","F11CE"],["alert-rhombus-outline","F11CF"],["alien","F089A"],["alien-outline","F10CB"],["align-horizontal-center","F11C3"],["align-horizontal-left","F11C2"],["align-horizontal-right","F11C4"],["align-vertical-bottom","F11C5"],["align-vertical-center","F11C6"],["align-vertical-top","F11C7"],["all-inclusive","F06BE"],["allergy","F1258"],["alpha","F002B"],["alpha-a","F0AEE"],["alpha-a-box","F0B08"],["alpha-a-box-outline","F0BEB"],["alpha-a-circle","F0BEC"],["alpha-a-circle-outline","F0BED"],["alpha-b","F0AEF"],["alpha-b-box","F0B09"],["alpha-b-box-outline","F0BEE"],["alpha-b-circle","F0BEF"],["alpha-b-circle-outline","F0BF0"],["alpha-c","F0AF0"],["alpha-c-box","F0B0A"],["alpha-c-box-outline","F0BF1"],["alpha-c-circle","F0BF2"],["alpha-c-circle-outline","F0BF3"],["alpha-d","F0AF1"],["alpha-d-box","F0B0B"],["alpha-d-box-outline","F0BF4"],["alpha-d-circle","F0BF5"],["alpha-d-circle-outline","F0BF6"],["alpha-e","F0AF2"],["alpha-e-box","F0B0C"],["alpha-e-box-outline","F0BF7"],["alpha-e-circle","F0BF8"],["alpha-e-circle-outline","F0BF9"],["alpha-f","F0AF3"],["alpha-f-box","F0B0D"],["alpha-f-box-outline","F0BFA"],["alpha-f-circle","F0BFB"],["alpha-f-circle-outline","F0BFC"],["alpha-g","F0AF4"],["alpha-g-box","F0B0E"],["alpha-g-box-outline","F0BFD"],["alpha-g-circle","F0BFE"],["alpha-g-circle-outline","F0BFF"],["alpha-h","F0AF5"],["alpha-h-box","F0B0F"],["alpha-h-box-outline","F0C00"],["alpha-h-circle","F0C01"],["alpha-h-circle-outline","F0C02"],["alpha-i","F0AF6"],["alpha-i-box","F0B10"],["alpha-i-box-outline","F0C03"],["alpha-i-circle","F0C04"],["alpha-i-circle-outline","F0C05"],["alpha-j","F0AF7"],["alpha-j-box","F0B11"],["alpha-j-box-outline","F0C06"],["alpha-j-circle","F0C07"],["alpha-j-circle-outline","F0C08"],["alpha-k","F0AF8"],["alpha-k-box","F0B12"],["alpha-k-box-outline","F0C09"],["alpha-k-circle","F0C0A"],["alpha-k-circle-outline","F0C0B"],["alpha-l","F0AF9"],["alpha-l-box","F0B13"],["alpha-l-box-outline","F0C0C"],["alpha-l-circle","F0C0D"],["alpha-l-circle-outline","F0C0E"],["alpha-m","F0AFA"],["alpha-m-box","F0B14"],["alpha-m-box-outline","F0C0F"],["alpha-m-circle","F0C10"],["alpha-m-circle-outline","F0C11"],["alpha-n","F0AFB"],["alpha-n-box","F0B15"],["alpha-n-box-outline","F0C12"],["alpha-n-circle","F0C13"],["alpha-n-circle-outline","F0C14"],["alpha-o","F0AFC"],["alpha-o-box","F0B16"],["alpha-o-box-outline","F0C15"],["alpha-o-circle","F0C16"],["alpha-o-circle-outline","F0C17"],["alpha-p","F0AFD"],["alpha-p-box","F0B17"],["alpha-p-box-outline","F0C18"],["alpha-p-circle","F0C19"],["alpha-p-circle-outline","F0C1A"],["alpha-q","F0AFE"],["alpha-q-box","F0B18"],["alpha-q-box-outline","F0C1B"],["alpha-q-circle","F0C1C"],["alpha-q-circle-outline","F0C1D"],["alpha-r","F0AFF"],["alpha-r-box","F0B19"],["alpha-r-box-outline","F0C1E"],["alpha-r-circle","F0C1F"],["alpha-r-circle-outline","F0C20"],["alpha-s","F0B00"],["alpha-s-box","F0B1A"],["alpha-s-box-outline","F0C21"],["alpha-s-circle","F0C22"],["alpha-s-circle-outline","F0C23"],["alpha-t","F0B01"],["alpha-t-box","F0B1B"],["alpha-t-box-outline","F0C24"],["alpha-t-circle","F0C25"],["alpha-t-circle-outline","F0C26"],["alpha-u","F0B02"],["alpha-u-box","F0B1C"],["alpha-u-box-outline","F0C27"],["alpha-u-circle","F0C28"],["alpha-u-circle-outline","F0C29"],["alpha-v","F0B03"],["alpha-v-box","F0B1D"],["alpha-v-box-outline","F0C2A"],["alpha-v-circle","F0C2B"],["alpha-v-circle-outline","F0C2C"],["alpha-w","F0B04"],["alpha-w-box","F0B1E"],["alpha-w-box-outline","F0C2D"],["alpha-w-circle","F0C2E"],["alpha-w-circle-outline","F0C2F"],["alpha-x","F0B05"],["alpha-x-box","F0B1F"],["alpha-x-box-outline","F0C30"],["alpha-x-circle","F0C31"],["alpha-x-circle-outline","F0C32"],["alpha-y","F0B06"],["alpha-y-box","F0B20"],["alpha-y-box-outline","F0C33"],["alpha-y-circle","F0C34"],["alpha-y-circle-outline","F0C35"],["alpha-z","F0B07"],["alpha-z-box","F0B21"],["alpha-z-box-outline","F0C36"],["alpha-z-circle","F0C37"],["alpha-z-circle-outline","F0C38"],["alphabet-aurebesh","F132C"],["alphabet-cyrillic","F132D"],["alphabet-greek","F132E"],["alphabet-latin","F132F"],["alphabet-piqad","F1330"],["alphabet-tengwar","F1337"],["alphabetical","F002C"],["alphabetical-off","F100C"],["alphabetical-variant","F100D"],["alphabetical-variant-off","F100E"],["altimeter","F05D7"],["amazon","F002D"],["amazon-alexa","F08C6"],["ambulance","F002F"],["ammunition","F0CE8"],["ampersand","F0A8D"],["amplifier","F0030"],["amplifier-off","F11B5"],["anchor","F0031"],["android","F0032"],["android-auto","F0A8E"],["android-debug-bridge","F0033"],["android-messages","F0D45"],["android-studio","F0034"],["angle-acute","F0937"],["angle-obtuse","F0938"],["angle-right","F0939"],["angular","F06B2"],["angularjs","F06BF"],["animation","F05D8"],["animation-outline","F0A8F"],["animation-play","F093A"],["animation-play-outline","F0A90"],["ansible","F109A"],["antenna","F1119"],["anvil","F089B"],["apache-kafka","F100F"],["api","F109B"],["api-off","F1257"],["apple","F0035"],["apple-airplay","F001F"],["apple-finder","F0036"],["apple-icloud","F0038"],["apple-ios","F0037"],["apple-keyboard-caps","F0632"],["apple-keyboard-command","F0633"],["apple-keyboard-control","F0634"],["apple-keyboard-option","F0635"],["apple-keyboard-shift","F0636"],["apple-safari","F0039"],["application","F0614"],["application-cog","F1577"],["application-export","F0DAD"],["application-import","F0DAE"],["application-settings","F1555"],["approximately-equal","F0F9E"],["approximately-equal-box","F0F9F"],["apps","F003B"],["apps-box","F0D46"],["arch","F08C7"],["archive","F003C"],["archive-alert","F14FD"],["archive-alert-outline","F14FE"],["archive-arrow-down","F1259"],["archive-arrow-down-outline","F125A"],["archive-arrow-up","F125B"],["archive-arrow-up-outline","F125C"],["archive-outline","F120E"],["arm-flex","F0FD7"],["arm-flex-outline","F0FD6"],["arrange-bring-forward","F003D"],["arrange-bring-to-front","F003E"],["arrange-send-backward","F003F"],["arrange-send-to-back","F0040"],["arrow-all","F0041"],["arrow-bottom-left","F0042"],["arrow-bottom-left-bold-outline","F09B7"],["arrow-bottom-left-thick","F09B8"],["arrow-bottom-left-thin-circle-outline","F1596"],["arrow-bottom-right","F0043"],["arrow-bottom-right-bold-outline","F09B9"],["arrow-bottom-right-thick","F09BA"],["arrow-bottom-right-thin-circle-outline","F1595"],["arrow-collapse","F0615"],["arrow-collapse-all","F0044"],["arrow-collapse-down","F0792"],["arrow-collapse-horizontal","F084C"],["arrow-collapse-left","F0793"],["arrow-collapse-right","F0794"],["arrow-collapse-up","F0795"],["arrow-collapse-vertical","F084D"],["arrow-decision","F09BB"],["arrow-decision-auto","F09BC"],["arrow-decision-auto-outline","F09BD"],["arrow-decision-outline","F09BE"],["arrow-down","F0045"],["arrow-down-bold","F072E"],["arrow-down-bold-box","F072F"],["arrow-down-bold-box-outline","F0730"],["arrow-down-bold-circle","F0047"],["arrow-down-bold-circle-outline","F0048"],["arrow-down-bold-hexagon-outline","F0049"],["arrow-down-bold-outline","F09BF"],["arrow-down-box","F06C0"],["arrow-down-circle","F0CDB"],["arrow-down-circle-outline","F0CDC"],["arrow-down-drop-circle","F004A"],["arrow-down-drop-circle-outline","F004B"],["arrow-down-thick","F0046"],["arrow-down-thin-circle-outline","F1599"],["arrow-expand","F0616"],["arrow-expand-all","F004C"],["arrow-expand-down","F0796"],["arrow-expand-horizontal","F084E"],["arrow-expand-left","F0797"],["arrow-expand-right","F0798"],["arrow-expand-up","F0799"],["arrow-expand-vertical","F084F"],["arrow-horizontal-lock","F115B"],["arrow-left","F004D"],["arrow-left-bold","F0731"],["arrow-left-bold-box","F0732"],["arrow-left-bold-box-outline","F0733"],["arrow-left-bold-circle","F004F"],["arrow-left-bold-circle-outline","F0050"],["arrow-left-bold-hexagon-outline","F0051"],["arrow-left-bold-outline","F09C0"],["arrow-left-box","F06C1"],["arrow-left-circle","F0CDD"],["arrow-left-circle-outline","F0CDE"],["arrow-left-drop-circle","F0052"],["arrow-left-drop-circle-outline","F0053"],["arrow-left-right","F0E73"],["arrow-left-right-bold","F0E74"],["arrow-left-right-bold-outline","F09C1"],["arrow-left-thick","F004E"],["arrow-left-thin-circle-outline","F159A"],["arrow-right","F0054"],["arrow-right-bold","F0734"],["arrow-right-bold-box","F0735"],["arrow-right-bold-box-outline","F0736"],["arrow-right-bold-circle","F0056"],["arrow-right-bold-circle-outline","F0057"],["arrow-right-bold-hexagon-outline","F0058"],["arrow-right-bold-outline","F09C2"],["arrow-right-box","F06C2"],["arrow-right-circle","F0CDF"],["arrow-right-circle-outline","F0CE0"],["arrow-right-drop-circle","F0059"],["arrow-right-drop-circle-outline","F005A"],["arrow-right-thick","F0055"],["arrow-right-thin-circle-outline","F1598"],["arrow-split-horizontal","F093B"],["arrow-split-vertical","F093C"],["arrow-top-left","F005B"],["arrow-top-left-bold-outline","F09C3"],["arrow-top-left-bottom-right","F0E75"],["arrow-top-left-bottom-right-bold","F0E76"],["arrow-top-left-thick","F09C4"],["arrow-top-left-thin-circle-outline","F1593"],["arrow-top-right","F005C"],["arrow-top-right-bold-outline","F09C5"],["arrow-top-right-bottom-left","F0E77"],["arrow-top-right-bottom-left-bold","F0E78"],["arrow-top-right-thick","F09C6"],["arrow-top-right-thin-circle-outline","F1594"],["arrow-up","F005D"],["arrow-up-bold","F0737"],["arrow-up-bold-box","F0738"],["arrow-up-bold-box-outline","F0739"],["arrow-up-bold-circle","F005F"],["arrow-up-bold-circle-outline","F0060"],["arrow-up-bold-hexagon-outline","F0061"],["arrow-up-bold-outline","F09C7"],["arrow-up-box","F06C3"],["arrow-up-circle","F0CE1"],["arrow-up-circle-outline","F0CE2"],["arrow-up-down","F0E79"],["arrow-up-down-bold","F0E7A"],["arrow-up-down-bold-outline","F09C8"],["arrow-up-drop-circle","F0062"],["arrow-up-drop-circle-outline","F0063"],["arrow-up-thick","F005E"],["arrow-up-thin-circle-outline","F1597"],["arrow-vertical-lock","F115C"],["artstation","F0B5B"],["aspect-ratio","F0A24"],["assistant","F0064"],["asterisk","F06C4"],["at","F0065"],["atlassian","F0804"],["atm","F0D47"],["atom","F0768"],["atom-variant","F0E7B"],["attachment","F0066"],["audio-video","F093D"],["audio-video-off","F11B6"],["augmented-reality","F0850"],["auto-download","F137E"],["auto-fix","F0068"],["auto-upload","F0069"],["autorenew","F006A"],["av-timer","F006B"],["aws","F0E0F"],["axe","F08C8"],["axis","F0D48"],["axis-arrow","F0D49"],["axis-arrow-info","F140E"],["axis-arrow-lock","F0D4A"],["axis-lock","F0D4B"],["axis-x-arrow","F0D4C"],["axis-x-arrow-lock","F0D4D"],["axis-x-rotate-clockwise","F0D4E"],["axis-x-rotate-counterclockwise","F0D4F"],["axis-x-y-arrow-lock","F0D50"],["axis-y-arrow","F0D51"],["axis-y-arrow-lock","F0D52"],["axis-y-rotate-clockwise","F0D53"],["axis-y-rotate-counterclockwise","F0D54"],["axis-z-arrow","F0D55"],["axis-z-arrow-lock","F0D56"],["axis-z-rotate-clockwise","F0D57"],["axis-z-rotate-counterclockwise","F0D58"],["babel","F0A25"],["baby","F006C"],["baby-bottle","F0F39"],["baby-bottle-outline","F0F3A"],["baby-buggy","F13E0"],["baby-carriage","F068F"],["baby-carriage-off","F0FA0"],["baby-face","F0E7C"],["baby-face-outline","F0E7D"],["backburger","F006D"],["backspace","F006E"],["backspace-outline","F0B5C"],["backspace-reverse","F0E7E"],["backspace-reverse-outline","F0E7F"],["backup-restore","F006F"],["bacteria","F0ED5"],["bacteria-outline","F0ED6"],["badge-account","F0DA7"],["badge-account-alert","F0DA8"],["badge-account-alert-outline","F0DA9"],["badge-account-horizontal","F0E0D"],["badge-account-horizontal-outline","F0E0E"],["badge-account-outline","F0DAA"],["badminton","F0851"],["bag-carry-on","F0F3B"],["bag-carry-on-check","F0D65"],["bag-carry-on-off","F0F3C"],["bag-checked","F0F3D"],["bag-personal","F0E10"],["bag-personal-off","F0E11"],["bag-personal-off-outline","F0E12"],["bag-personal-outline","F0E13"],["bag-suitcase","F158B"],["bag-suitcase-off","F158D"],["bag-suitcase-off-outline","F158E"],["bag-suitcase-outline","F158C"],["baguette","F0F3E"],["balloon","F0A26"],["ballot","F09C9"],["ballot-outline","F09CA"],["ballot-recount","F0C39"],["ballot-recount-outline","F0C3A"],["bandage","F0DAF"],["bandcamp","F0675"],["bank","F0070"],["bank-minus","F0DB0"],["bank-outline","F0E80"],["bank-plus","F0DB1"],["bank-remove","F0DB2"],["bank-transfer","F0A27"],["bank-transfer-in","F0A28"],["bank-transfer-out","F0A29"],["barcode","F0071"],["barcode-off","F1236"],["barcode-scan","F0072"],["barley","F0073"],["barley-off","F0B5D"],["barn","F0B5E"],["barrel","F0074"],["baseball","F0852"],["baseball-bat","F0853"],["baseball-diamond","F15EC"],["baseball-diamond-outline","F15ED"],["bash","F1183"],["basket","F0076"],["basket-fill","F0077"],["basket-minus","F1523"],["basket-minus-outline","F1524"],["basket-off","F1525"],["basket-off-outline","F1526"],["basket-outline","F1181"],["basket-plus","F1527"],["basket-plus-outline","F1528"],["basket-remove","F1529"],["basket-remove-outline","F152A"],["basket-unfill","F0078"],["basketball","F0806"],["basketball-hoop","F0C3B"],["basketball-hoop-outline","F0C3C"],["bat","F0B5F"],["battery","F0079"],["battery-10","F007A"],["battery-10-bluetooth","F093E"],["battery-20","F007B"],["battery-20-bluetooth","F093F"],["battery-30","F007C"],["battery-30-bluetooth","F0940"],["battery-40","F007D"],["battery-40-bluetooth","F0941"],["battery-50","F007E"],["battery-50-bluetooth","F0942"],["battery-60","F007F"],["battery-60-bluetooth","F0943"],["battery-70","F0080"],["battery-70-bluetooth","F0944"],["battery-80","F0081"],["battery-80-bluetooth","F0945"],["battery-90","F0082"],["battery-90-bluetooth","F0946"],["battery-alert","F0083"],["battery-alert-bluetooth","F0947"],["battery-alert-variant","F10CC"],["battery-alert-variant-outline","F10CD"],["battery-bluetooth","F0948"],["battery-bluetooth-variant","F0949"],["battery-charging","F0084"],["battery-charging-10","F089C"],["battery-charging-100","F0085"],["battery-charging-20","F0086"],["battery-charging-30","F0087"],["battery-charging-40","F0088"],["battery-charging-50","F089D"],["battery-charging-60","F0089"],["battery-charging-70","F089E"],["battery-charging-80","F008A"],["battery-charging-90","F008B"],["battery-charging-high","F12A6"],["battery-charging-low","F12A4"],["battery-charging-medium","F12A5"],["battery-charging-outline","F089F"],["battery-charging-wireless","F0807"],["battery-charging-wireless-10","F0808"],["battery-charging-wireless-20","F0809"],["battery-charging-wireless-30","F080A"],["battery-charging-wireless-40","F080B"],["battery-charging-wireless-50","F080C"],["battery-charging-wireless-60","F080D"],["battery-charging-wireless-70","F080E"],["battery-charging-wireless-80","F080F"],["battery-charging-wireless-90","F0810"],["battery-charging-wireless-alert","F0811"],["battery-charging-wireless-outline","F0812"],["battery-heart","F120F"],["battery-heart-outline","F1210"],["battery-heart-variant","F1211"],["battery-high","F12A3"],["battery-low","F12A1"],["battery-medium","F12A2"],["battery-minus","F008C"],["battery-negative","F008D"],["battery-off","F125D"],["battery-off-outline","F125E"],["battery-outline","F008E"],["battery-plus","F008F"],["battery-positive","F0090"],["battery-unknown","F0091"],["battery-unknown-bluetooth","F094A"],["battlenet","F0B60"],["beach","F0092"],["beaker","F0CEA"],["beaker-alert","F1229"],["beaker-alert-outline","F122A"],["beaker-check","F122B"],["beaker-check-outline","F122C"],["beaker-minus","F122D"],["beaker-minus-outline","F122E"],["beaker-outline","F0690"],["beaker-plus","F122F"],["beaker-plus-outline","F1230"],["beaker-question","F1231"],["beaker-question-outline","F1232"],["beaker-remove","F1233"],["beaker-remove-outline","F1234"],["bed","F02E3"],["bed-double","F0FD4"],["bed-double-outline","F0FD3"],["bed-empty","F08A0"],["bed-king","F0FD2"],["bed-king-outline","F0FD1"],["bed-outline","F0099"],["bed-queen","F0FD0"],["bed-queen-outline","F0FDB"],["bed-single","F106D"],["bed-single-outline","F106E"],["bee","F0FA1"],["bee-flower","F0FA2"],["beehive-off-outline","F13ED"],["beehive-outline","F10CE"],["beekeeper","F14E2"],["beer","F0098"],["beer-outline","F130C"],["bell","F009A"],["bell-alert","F0D59"],["bell-alert-outline","F0E81"],["bell-cancel","F13E7"],["bell-cancel-outline","F13E8"],["bell-check","F11E5"],["bell-check-outline","F11E6"],["bell-circle","F0D5A"],["bell-circle-outline","F0D5B"],["bell-minus","F13E9"],["bell-minus-outline","F13EA"],["bell-off","F009B"],["bell-off-outline","F0A91"],["bell-outline","F009C"],["bell-plus","F009D"],["bell-plus-outline","F0A92"],["bell-remove","F13EB"],["bell-remove-outline","F13EC"],["bell-ring","F009E"],["bell-ring-outline","F009F"],["bell-sleep","F00A0"],["bell-sleep-outline","F0A93"],["beta","F00A1"],["betamax","F09CB"],["biathlon","F0E14"],["bicycle","F109C"],["bicycle-basket","F1235"],["bicycle-electric","F15B4"],["bicycle-penny-farthing","F15E9"],["bike","F00A3"],["bike-fast","F111F"],["billboard","F1010"],["billiards","F0B61"],["billiards-rack","F0B62"],["binoculars","F00A5"],["bio","F00A6"],["biohazard","F00A7"],["bird","F15C6"],["bitbucket","F00A8"],["bitcoin","F0813"],["black-mesa","F00A9"],["blender","F0CEB"],["blender-software","F00AB"],["blinds","F00AC"],["blinds-open","F1011"],["block-helper","F00AD"],["blogger","F00AE"],["blood-bag","F0CEC"],["bluetooth","F00AF"],["bluetooth-audio","F00B0"],["bluetooth-connect","F00B1"],["bluetooth-off","F00B2"],["bluetooth-settings","F00B3"],["bluetooth-transfer","F00B4"],["blur","F00B5"],["blur-linear","F00B6"],["blur-off","F00B7"],["blur-radial","F00B8"],["bolnisi-cross","F0CED"],["bolt","F0DB3"],["bomb","F0691"],["bomb-off","F06C5"],["bone","F00B9"],["book","F00BA"],["book-account","F13AD"],["book-account-outline","F13AE"],["book-alphabet","F061D"],["book-check","F14F3"],["book-check-outline","F14F4"],["book-cross","F00A2"],["book-information-variant","F106F"],["book-lock","F079A"],["book-lock-open","F079B"],["book-minus","F05D9"],["book-minus-multiple","F0A94"],["book-minus-multiple-outline","F090B"],["book-multiple","F00BB"],["book-multiple-outline","F0436"],["book-music","F0067"],["book-open","F00BD"],["book-open-blank-variant","F00BE"],["book-open-outline","F0B63"],["book-open-page-variant","F05DA"],["book-open-page-variant-outline","F15D6"],["book-open-variant","F14F7"],["book-outline","F0B64"],["book-play","F0E82"],["book-play-outline","F0E83"],["book-plus","F05DB"],["book-plus-multiple","F0A95"],["book-plus-multiple-outline","F0ADE"],["book-remove","F0A97"],["book-remove-multiple","F0A96"],["book-remove-multiple-outline","F04CA"],["book-search","F0E84"],["book-search-outline","F0E85"],["book-variant","F00BF"],["book-variant-multiple","F00BC"],["bookmark","F00C0"],["bookmark-check","F00C1"],["bookmark-check-outline","F137B"],["bookmark-minus","F09CC"],["bookmark-minus-outline","F09CD"],["bookmark-multiple","F0E15"],["bookmark-multiple-outline","F0E16"],["bookmark-music","F00C2"],["bookmark-music-outline","F1379"],["bookmark-off","F09CE"],["bookmark-off-outline","F09CF"],["bookmark-outline","F00C3"],["bookmark-plus","F00C5"],["bookmark-plus-outline","F00C4"],["bookmark-remove","F00C6"],["bookmark-remove-outline","F137A"],["bookshelf","F125F"],["boom-gate","F0E86"],["boom-gate-alert","F0E87"],["boom-gate-alert-outline","F0E88"],["boom-gate-down","F0E89"],["boom-gate-down-outline","F0E8A"],["boom-gate-outline","F0E8B"],["boom-gate-up","F0E8C"],["boom-gate-up-outline","F0E8D"],["boombox","F05DC"],["boomerang","F10CF"],["bootstrap","F06C6"],["border-all","F00C7"],["border-all-variant","F08A1"],["border-bottom","F00C8"],["border-bottom-variant","F08A2"],["border-color","F00C9"],["border-horizontal","F00CA"],["border-inside","F00CB"],["border-left","F00CC"],["border-left-variant","F08A3"],["border-none","F00CD"],["border-none-variant","F08A4"],["border-outside","F00CE"],["border-right","F00CF"],["border-right-variant","F08A5"],["border-style","F00D0"],["border-top","F00D1"],["border-top-variant","F08A6"],["border-vertical","F00D2"],["bottle-soda","F1070"],["bottle-soda-classic","F1071"],["bottle-soda-classic-outline","F1363"],["bottle-soda-outline","F1072"],["bottle-tonic","F112E"],["bottle-tonic-outline","F112F"],["bottle-tonic-plus","F1130"],["bottle-tonic-plus-outline","F1131"],["bottle-tonic-skull","F1132"],["bottle-tonic-skull-outline","F1133"],["bottle-wine","F0854"],["bottle-wine-outline","F1310"],["bow-tie","F0678"],["bowl","F028E"],["bowl-mix","F0617"],["bowl-mix-outline","F02E4"],["bowl-outline","F02A9"],["bowling","F00D3"],["box","F00D4"],["box-cutter","F00D5"],["box-cutter-off","F0B4A"],["box-shadow","F0637"],["boxing-glove","F0B65"],["braille","F09D0"],["brain","F09D1"],["bread-slice","F0CEE"],["bread-slice-outline","F0CEF"],["bridge","F0618"],["briefcase","F00D6"],["briefcase-account","F0CF0"],["briefcase-account-outline","F0CF1"],["briefcase-check","F00D7"],["briefcase-check-outline","F131E"],["briefcase-clock","F10D0"],["briefcase-clock-outline","F10D1"],["briefcase-download","F00D8"],["briefcase-download-outline","F0C3D"],["briefcase-edit","F0A98"],["briefcase-edit-outline","F0C3E"],["briefcase-minus","F0A2A"],["briefcase-minus-outline","F0C3F"],["briefcase-outline","F0814"],["briefcase-plus","F0A2B"],["briefcase-plus-outline","F0C40"],["briefcase-remove","F0A2C"],["briefcase-remove-outline","F0C41"],["briefcase-search","F0A2D"],["briefcase-search-outline","F0C42"],["briefcase-upload","F00D9"],["briefcase-upload-outline","F0C43"],["briefcase-variant","F1494"],["briefcase-variant-outline","F1495"],["brightness-1","F00DA"],["brightness-2","F00DB"],["brightness-3","F00DC"],["brightness-4","F00DD"],["brightness-5","F00DE"],["brightness-6","F00DF"],["brightness-7","F00E0"],["brightness-auto","F00E1"],["brightness-percent","F0CF2"],["broom","F00E2"],["brush","F00E3"],["bucket","F1415"],["bucket-outline","F1416"],["buddhism","F094B"],["buffer","F0619"],["buffet","F0578"],["bug","F00E4"],["bug-check","F0A2E"],["bug-check-outline","F0A2F"],["bug-outline","F0A30"],["bugle","F0DB4"],["bulldozer","F0B22"],["bullet","F0CF3"],["bulletin-board","F00E5"],["bullhorn","F00E6"],["bullhorn-outline","F0B23"],["bullseye","F05DD"],["bullseye-arrow","F08C9"],["bulma","F12E7"],["bunk-bed","F1302"],["bunk-bed-outline","F0097"],["bus","F00E7"],["bus-alert","F0A99"],["bus-articulated-end","F079C"],["bus-articulated-front","F079D"],["bus-clock","F08CA"],["bus-double-decker","F079E"],["bus-marker","F1212"],["bus-multiple","F0F3F"],["bus-school","F079F"],["bus-side","F07A0"],["bus-stop","F1012"],["bus-stop-covered","F1013"],["bus-stop-uncovered","F1014"],["butterfly","F1589"],["butterfly-outline","F158A"],["cable-data","F1394"],["cached","F00E8"],["cactus","F0DB5"],["cake","F00E9"],["cake-layered","F00EA"],["cake-variant","F00EB"],["calculator","F00EC"],["calculator-variant","F0A9A"],["calculator-variant-outline","F15A6"],["calendar","F00ED"],["calendar-account","F0ED7"],["calendar-account-outline","F0ED8"],["calendar-alert","F0A31"],["calendar-arrow-left","F1134"],["calendar-arrow-right","F1135"],["calendar-blank","F00EE"],["calendar-blank-multiple","F1073"],["calendar-blank-outline","F0B66"],["calendar-check","F00EF"],["calendar-check-outline","F0C44"],["calendar-clock","F00F0"],["calendar-cursor","F157B"],["calendar-edit","F08A7"],["calendar-export","F0B24"],["calendar-heart","F09D2"],["calendar-import","F0B25"],["calendar-minus","F0D5C"],["calendar-month","F0E17"],["calendar-month-outline","F0E18"],["calendar-multiple","F00F1"],["calendar-multiple-check","F00F2"],["calendar-multiselect","F0A32"],["calendar-outline","F0B67"],["calendar-plus","F00F3"],["calendar-question","F0692"],["calendar-range","F0679"],["calendar-range-outline","F0B68"],["calendar-refresh","F01E1"],["calendar-refresh-outline","F0203"],["calendar-remove","F00F4"],["calendar-remove-outline","F0C45"],["calendar-search","F094C"],["calendar-star","F09D3"],["calendar-sync","F0E8E"],["calendar-sync-outline","F0E8F"],["calendar-text","F00F5"],["calendar-text-outline","F0C46"],["calendar-today","F00F6"],["calendar-week","F0A33"],["calendar-week-begin","F0A34"],["calendar-weekend","F0ED9"],["calendar-weekend-outline","F0EDA"],["call-made","F00F7"],["call-merge","F00F8"],["call-missed","F00F9"],["call-received","F00FA"],["call-split","F00FB"],["camcorder","F00FC"],["camcorder-off","F00FF"],["camera","F0100"],["camera-account","F08CB"],["camera-burst","F0693"],["camera-control","F0B69"],["camera-enhance","F0101"],["camera-enhance-outline","F0B6A"],["camera-flip","F15D9"],["camera-flip-outline","F15DA"],["camera-front","F0102"],["camera-front-variant","F0103"],["camera-gopro","F07A1"],["camera-image","F08CC"],["camera-iris","F0104"],["camera-metering-center","F07A2"],["camera-metering-matrix","F07A3"],["camera-metering-partial","F07A4"],["camera-metering-spot","F07A5"],["camera-off","F05DF"],["camera-outline","F0D5D"],["camera-party-mode","F0105"],["camera-plus","F0EDB"],["camera-plus-outline","F0EDC"],["camera-rear","F0106"],["camera-rear-variant","F0107"],["camera-retake","F0E19"],["camera-retake-outline","F0E1A"],["camera-switch","F0108"],["camera-switch-outline","F084A"],["camera-timer","F0109"],["camera-wireless","F0DB6"],["camera-wireless-outline","F0DB7"],["campfire","F0EDD"],["cancel","F073A"],["candle","F05E2"],["candycane","F010A"],["cannabis","F07A6"],["caps-lock","F0A9B"],["car","F010B"],["car-2-plus","F1015"],["car-3-plus","F1016"],["car-arrow-left","F13B2"],["car-arrow-right","F13B3"],["car-back","F0E1B"],["car-battery","F010C"],["car-brake-abs","F0C47"],["car-brake-alert","F0C48"],["car-brake-hold","F0D5E"],["car-brake-parking","F0D5F"],["car-brake-retarder","F1017"],["car-child-seat","F0FA3"],["car-clutch","F1018"],["car-cog","F13CC"],["car-connected","F010D"],["car-convertible","F07A7"],["car-coolant-level","F1019"],["car-cruise-control","F0D60"],["car-defrost-front","F0D61"],["car-defrost-rear","F0D62"],["car-door","F0B6B"],["car-door-lock","F109D"],["car-electric","F0B6C"],["car-electric-outline","F15B5"],["car-emergency","F160F"],["car-esp","F0C49"],["car-estate","F07A8"],["car-hatchback","F07A9"],["car-info","F11BE"],["car-key","F0B6D"],["car-lifted-pickup","F152D"],["car-light-dimmed","F0C4A"],["car-light-fog","F0C4B"],["car-light-high","F0C4C"],["car-limousine","F08CD"],["car-multiple","F0B6E"],["car-off","F0E1C"],["car-outline","F14ED"],["car-parking-lights","F0D63"],["car-pickup","F07AA"],["car-seat","F0FA4"],["car-seat-cooler","F0FA5"],["car-seat-heater","F0FA6"],["car-settings","F13CD"],["car-shift-pattern","F0F40"],["car-side","F07AB"],["car-sports","F07AC"],["car-tire-alert","F0C4D"],["car-traction-control","F0D64"],["car-turbocharger","F101A"],["car-wash","F010E"],["car-windshield","F101B"],["car-windshield-outline","F101C"],["carabiner","F14C0"],["caravan","F07AD"],["card","F0B6F"],["card-account-details","F05D2"],["card-account-details-outline","F0DAB"],["card-account-details-star","F02A3"],["card-account-details-star-outline","F06DB"],["card-account-mail","F018E"],["card-account-mail-outline","F0E98"],["card-account-phone","F0E99"],["card-account-phone-outline","F0E9A"],["card-bulleted","F0B70"],["card-bulleted-off","F0B71"],["card-bulleted-off-outline","F0B72"],["card-bulleted-outline","F0B73"],["card-bulleted-settings","F0B74"],["card-bulleted-settings-outline","F0B75"],["card-minus","F1600"],["card-minus-outline","F1601"],["card-off","F1602"],["card-off-outline","F1603"],["card-outline","F0B76"],["card-plus","F11FF"],["card-plus-outline","F1200"],["card-remove","F1604"],["card-remove-outline","F1605"],["card-search","F1074"],["card-search-outline","F1075"],["card-text","F0B77"],["card-text-outline","F0B78"],["cards","F0638"],["cards-club","F08CE"],["cards-diamond","F08CF"],["cards-diamond-outline","F101D"],["cards-heart","F08D0"],["cards-outline","F0639"],["cards-playing-outline","F063A"],["cards-spade","F08D1"],["cards-variant","F06C7"],["carrot","F010F"],["cart","F0110"],["cart-arrow-down","F0D66"],["cart-arrow-right","F0C4E"],["cart-arrow-up","F0D67"],["cart-check","F15EA"],["cart-minus","F0D68"],["cart-off","F066B"],["cart-outline","F0111"],["cart-plus","F0112"],["cart-remove","F0D69"],["cart-variant","F15EB"],["case-sensitive-alt","F0113"],["cash","F0114"],["cash-100","F0115"],["cash-check","F14EE"],["cash-lock","F14EA"],["cash-lock-open","F14EB"],["cash-marker","F0DB8"],["cash-minus","F1260"],["cash-multiple","F0116"],["cash-plus","F1261"],["cash-refund","F0A9C"],["cash-register","F0CF4"],["cash-remove","F1262"],["cash-usd","F1176"],["cash-usd-outline","F0117"],["cassette","F09D4"],["cast","F0118"],["cast-audio","F101E"],["cast-connected","F0119"],["cast-education","F0E1D"],["cast-off","F078A"],["castle","F011A"],["cat","F011B"],["cctv","F07AE"],["ceiling-light","F0769"],["cellphone","F011C"],["cellphone-android","F011D"],["cellphone-arrow-down","F09D5"],["cellphone-basic","F011E"],["cellphone-charging","F1397"],["cellphone-cog","F0951"],["cellphone-dock","F011F"],["cellphone-erase","F094D"],["cellphone-information","F0F41"],["cellphone-iphone","F0120"],["cellphone-key","F094E"],["cellphone-link","F0121"],["cellphone-link-off","F0122"],["cellphone-lock","F094F"],["cellphone-message","F08D3"],["cellphone-message-off","F10D2"],["cellphone-nfc","F0E90"],["cellphone-nfc-off","F12D8"],["cellphone-off","F0950"],["cellphone-play","F101F"],["cellphone-screenshot","F0A35"],["cellphone-settings","F0123"],["cellphone-sound","F0952"],["cellphone-text","F08D2"],["cellphone-wireless","F0815"],["celtic-cross","F0CF5"],["centos","F111A"],["certificate","F0124"],["certificate-outline","F1188"],["chair-rolling","F0F48"],["chair-school","F0125"],["charity","F0C4F"],["chart-arc","F0126"],["chart-areaspline","F0127"],["chart-areaspline-variant","F0E91"],["chart-bar","F0128"],["chart-bar-stacked","F076A"],["chart-bell-curve","F0C50"],["chart-bell-curve-cumulative","F0FA7"],["chart-box","F154D"],["chart-box-outline","F154E"],["chart-box-plus-outline","F154F"],["chart-bubble","F05E3"],["chart-donut","F07AF"],["chart-donut-variant","F07B0"],["chart-gantt","F066C"],["chart-histogram","F0129"],["chart-line","F012A"],["chart-line-stacked","F076B"],["chart-line-variant","F07B1"],["chart-multiline","F08D4"],["chart-multiple","F1213"],["chart-pie","F012B"],["chart-ppf","F1380"],["chart-sankey","F11DF"],["chart-sankey-variant","F11E0"],["chart-scatter-plot","F0E92"],["chart-scatter-plot-hexbin","F066D"],["chart-timeline","F066E"],["chart-timeline-variant","F0E93"],["chart-timeline-variant-shimmer","F15B6"],["chart-tree","F0E94"],["chat","F0B79"],["chat-alert","F0B7A"],["chat-alert-outline","F12C9"],["chat-minus","F1410"],["chat-minus-outline","F1413"],["chat-outline","F0EDE"],["chat-plus","F140F"],["chat-plus-outline","F1412"],["chat-processing","F0B7B"],["chat-processing-outline","F12CA"],["chat-remove","F1411"],["chat-remove-outline","F1414"],["chat-sleep","F12D1"],["chat-sleep-outline","F12D2"],["check","F012C"],["check-all","F012D"],["check-bold","F0E1E"],["check-box-multiple-outline","F0C51"],["check-box-outline","F0C52"],["check-circle","F05E0"],["check-circle-outline","F05E1"],["check-decagram","F0791"],["check-network","F0C53"],["check-network-outline","F0C54"],["check-outline","F0855"],["check-underline","F0E1F"],["check-underline-circle","F0E20"],["check-underline-circle-outline","F0E21"],["checkbook","F0A9D"],["checkbox-blank","F012E"],["checkbox-blank-circle","F012F"],["checkbox-blank-circle-outline","F0130"],["checkbox-blank-off","F12EC"],["checkbox-blank-off-outline","F12ED"],["checkbox-blank-outline","F0131"],["checkbox-intermediate","F0856"],["checkbox-marked","F0132"],["checkbox-marked-circle","F0133"],["checkbox-marked-circle-outline","F0134"],["checkbox-marked-outline","F0135"],["checkbox-multiple-blank","F0136"],["checkbox-multiple-blank-circle","F063B"],["checkbox-multiple-blank-circle-outline","F063C"],["checkbox-multiple-blank-outline","F0137"],["checkbox-multiple-marked","F0138"],["checkbox-multiple-marked-circle","F063D"],["checkbox-multiple-marked-circle-outline","F063E"],["checkbox-multiple-marked-outline","F0139"],["checkerboard","F013A"],["checkerboard-minus","F1202"],["checkerboard-plus","F1201"],["checkerboard-remove","F1203"],["cheese","F12B9"],["cheese-off","F13EE"],["chef-hat","F0B7C"],["chemical-weapon","F013B"],["chess-bishop","F085C"],["chess-king","F0857"],["chess-knight","F0858"],["chess-pawn","F0859"],["chess-queen","F085A"],["chess-rook","F085B"],["chevron-double-down","F013C"],["chevron-double-left","F013D"],["chevron-double-right","F013E"],["chevron-double-up","F013F"],["chevron-down","F0140"],["chevron-down-box","F09D6"],["chevron-down-box-outline","F09D7"],["chevron-down-circle","F0B26"],["chevron-down-circle-outline","F0B27"],["chevron-left","F0141"],["chevron-left-box","F09D8"],["chevron-left-box-outline","F09D9"],["chevron-left-circle","F0B28"],["chevron-left-circle-outline","F0B29"],["chevron-right","F0142"],["chevron-right-box","F09DA"],["chevron-right-box-outline","F09DB"],["chevron-right-circle","F0B2A"],["chevron-right-circle-outline","F0B2B"],["chevron-triple-down","F0DB9"],["chevron-triple-left","F0DBA"],["chevron-triple-right","F0DBB"],["chevron-triple-up","F0DBC"],["chevron-up","F0143"],["chevron-up-box","F09DC"],["chevron-up-box-outline","F09DD"],["chevron-up-circle","F0B2C"],["chevron-up-circle-outline","F0B2D"],["chili-hot","F07B2"],["chili-medium","F07B3"],["chili-mild","F07B4"],["chili-off","F1467"],["chip","F061A"],["christianity","F0953"],["christianity-outline","F0CF6"],["church","F0144"],["cigar","F1189"],["cigar-off","F141B"],["circle","F0765"],["circle-box","F15DC"],["circle-box-outline","F15DD"],["circle-double","F0E95"],["circle-edit-outline","F08D5"],["circle-expand","F0E96"],["circle-half","F1395"],["circle-half-full","F1396"],["circle-medium","F09DE"],["circle-multiple","F0B38"],["circle-multiple-outline","F0695"],["circle-off-outline","F10D3"],["circle-outline","F0766"],["circle-slice-1","F0A9E"],["circle-slice-2","F0A9F"],["circle-slice-3","F0AA0"],["circle-slice-4","F0AA1"],["circle-slice-5","F0AA2"],["circle-slice-6","F0AA3"],["circle-slice-7","F0AA4"],["circle-slice-8","F0AA5"],["circle-small","F09DF"],["circular-saw","F0E22"],["city","F0146"],["city-variant","F0A36"],["city-variant-outline","F0A37"],["clipboard","F0147"],["clipboard-account","F0148"],["clipboard-account-outline","F0C55"],["clipboard-alert","F0149"],["clipboard-alert-outline","F0CF7"],["clipboard-arrow-down","F014A"],["clipboard-arrow-down-outline","F0C56"],["clipboard-arrow-left","F014B"],["clipboard-arrow-left-outline","F0CF8"],["clipboard-arrow-right","F0CF9"],["clipboard-arrow-right-outline","F0CFA"],["clipboard-arrow-up","F0C57"],["clipboard-arrow-up-outline","F0C58"],["clipboard-check","F014E"],["clipboard-check-multiple","F1263"],["clipboard-check-multiple-outline","F1264"],["clipboard-check-outline","F08A8"],["clipboard-edit","F14E5"],["clipboard-edit-outline","F14E6"],["clipboard-file","F1265"],["clipboard-file-outline","F1266"],["clipboard-flow","F06C8"],["clipboard-flow-outline","F1117"],["clipboard-list","F10D4"],["clipboard-list-outline","F10D5"],["clipboard-multiple","F1267"],["clipboard-multiple-outline","F1268"],["clipboard-outline","F014C"],["clipboard-play","F0C59"],["clipboard-play-multiple","F1269"],["clipboard-play-multiple-outline","F126A"],["clipboard-play-outline","F0C5A"],["clipboard-plus","F0751"],["clipboard-plus-outline","F131F"],["clipboard-pulse","F085D"],["clipboard-pulse-outline","F085E"],["clipboard-text","F014D"],["clipboard-text-multiple","F126B"],["clipboard-text-multiple-outline","F126C"],["clipboard-text-outline","F0A38"],["clipboard-text-play","F0C5B"],["clipboard-text-play-outline","F0C5C"],["clippy","F014F"],["clock","F0954"],["clock-alert","F0955"],["clock-alert-outline","F05CE"],["clock-check","F0FA8"],["clock-check-outline","F0FA9"],["clock-digital","F0E97"],["clock-end","F0151"],["clock-fast","F0152"],["clock-in","F0153"],["clock-out","F0154"],["clock-outline","F0150"],["clock-start","F0155"],["clock-time-eight","F1446"],["clock-time-eight-outline","F1452"],["clock-time-eleven","F1449"],["clock-time-eleven-outline","F1455"],["clock-time-five","F1443"],["clock-time-five-outline","F144F"],["clock-time-four","F1442"],["clock-time-four-outline","F144E"],["clock-time-nine","F1447"],["clock-time-nine-outline","F1453"],["clock-time-one","F143F"],["clock-time-one-outline","F144B"],["clock-time-seven","F1445"],["clock-time-seven-outline","F1451"],["clock-time-six","F1444"],["clock-time-six-outline","F1450"],["clock-time-ten","F1448"],["clock-time-ten-outline","F1454"],["clock-time-three","F1441"],["clock-time-three-outline","F144D"],["clock-time-twelve","F144A"],["clock-time-twelve-outline","F1456"],["clock-time-two","F1440"],["clock-time-two-outline","F144C"],["close","F0156"],["close-box","F0157"],["close-box-multiple","F0C5D"],["close-box-multiple-outline","F0C5E"],["close-box-outline","F0158"],["close-circle","F0159"],["close-circle-multiple","F062A"],["close-circle-multiple-outline","F0883"],["close-circle-outline","F015A"],["close-network","F015B"],["close-network-outline","F0C5F"],["close-octagon","F015C"],["close-octagon-outline","F015D"],["close-outline","F06C9"],["close-thick","F1398"],["closed-caption","F015E"],["closed-caption-outline","F0DBD"],["cloud","F015F"],["cloud-alert","F09E0"],["cloud-braces","F07B5"],["cloud-check","F0160"],["cloud-check-outline","F12CC"],["cloud-circle","F0161"],["cloud-download","F0162"],["cloud-download-outline","F0B7D"],["cloud-lock","F11F1"],["cloud-lock-outline","F11F2"],["cloud-off-outline","F0164"],["cloud-outline","F0163"],["cloud-print","F0165"],["cloud-print-outline","F0166"],["cloud-question","F0A39"],["cloud-refresh","F052A"],["cloud-search","F0956"],["cloud-search-outline","F0957"],["cloud-sync","F063F"],["cloud-sync-outline","F12D6"],["cloud-tags","F07B6"],["cloud-upload","F0167"],["cloud-upload-outline","F0B7E"],["clover","F0816"],["coach-lamp","F1020"],["coat-rack","F109E"],["code-array","F0168"],["code-braces","F0169"],["code-braces-box","F10D6"],["code-brackets","F016A"],["code-equal","F016B"],["code-greater-than","F016C"],["code-greater-than-or-equal","F016D"],["code-json","F0626"],["code-less-than","F016E"],["code-less-than-or-equal","F016F"],["code-not-equal","F0170"],["code-not-equal-variant","F0171"],["code-parentheses","F0172"],["code-parentheses-box","F10D7"],["code-string","F0173"],["code-tags","F0174"],["code-tags-check","F0694"],["codepen","F0175"],["coffee","F0176"],["coffee-maker","F109F"],["coffee-off","F0FAA"],["coffee-off-outline","F0FAB"],["coffee-outline","F06CA"],["coffee-to-go","F0177"],["coffee-to-go-outline","F130E"],["coffin","F0B7F"],["cog","F0493"],["cog-box","F0494"],["cog-clockwise","F11DD"],["cog-counterclockwise","F11DE"],["cog-off","F13CE"],["cog-off-outline","F13CF"],["cog-outline","F08BB"],["cog-refresh","F145E"],["cog-refresh-outline","F145F"],["cog-sync","F1460"],["cog-sync-outline","F1461"],["cog-transfer","F105B"],["cog-transfer-outline","F105C"],["cogs","F08D6"],["collage","F0640"],["collapse-all","F0AA6"],["collapse-all-outline","F0AA7"],["color-helper","F0179"],["comma","F0E23"],["comma-box","F0E2B"],["comma-box-outline","F0E24"],["comma-circle","F0E25"],["comma-circle-outline","F0E26"],["comment","F017A"],["comment-account","F017B"],["comment-account-outline","F017C"],["comment-alert","F017D"],["comment-alert-outline","F017E"],["comment-arrow-left","F09E1"],["comment-arrow-left-outline","F09E2"],["comment-arrow-right","F09E3"],["comment-arrow-right-outline","F09E4"],["comment-bookmark","F15AE"],["comment-bookmark-outline","F15AF"],["comment-check","F017F"],["comment-check-outline","F0180"],["comment-edit","F11BF"],["comment-edit-outline","F12C4"],["comment-eye","F0A3A"],["comment-eye-outline","F0A3B"],["comment-flash","F15B0"],["comment-flash-outline","F15B1"],["comment-minus","F15DF"],["comment-minus-outline","F15E0"],["comment-multiple","F085F"],["comment-multiple-outline","F0181"],["comment-off","F15E1"],["comment-off-outline","F15E2"],["comment-outline","F0182"],["comment-plus","F09E5"],["comment-plus-outline","F0183"],["comment-processing","F0184"],["comment-processing-outline","F0185"],["comment-question","F0817"],["comment-question-outline","F0186"],["comment-quote","F1021"],["comment-quote-outline","F1022"],["comment-remove","F05DE"],["comment-remove-outline","F0187"],["comment-search","F0A3C"],["comment-search-outline","F0A3D"],["comment-text","F0188"],["comment-text-multiple","F0860"],["comment-text-multiple-outline","F0861"],["comment-text-outline","F0189"],["compare","F018A"],["compare-horizontal","F1492"],["compare-vertical","F1493"],["compass","F018B"],["compass-off","F0B80"],["compass-off-outline","F0B81"],["compass-outline","F018C"],["compass-rose","F1382"],["concourse-ci","F10A0"],["connection","F1616"],["console","F018D"],["console-line","F07B7"],["console-network","F08A9"],["console-network-outline","F0C60"],["consolidate","F10D8"],["contactless-payment","F0D6A"],["contactless-payment-circle","F0321"],["contactless-payment-circle-outline","F0408"],["contacts","F06CB"],["contacts-outline","F05B8"],["contain","F0A3E"],["contain-end","F0A3F"],["contain-start","F0A40"],["content-copy","F018F"],["content-cut","F0190"],["content-duplicate","F0191"],["content-paste","F0192"],["content-save","F0193"],["content-save-alert","F0F42"],["content-save-alert-outline","F0F43"],["content-save-all","F0194"],["content-save-all-outline","F0F44"],["content-save-cog","F145B"],["content-save-cog-outline","F145C"],["content-save-edit","F0CFB"],["content-save-edit-outline","F0CFC"],["content-save-move","F0E27"],["content-save-move-outline","F0E28"],["content-save-outline","F0818"],["content-save-settings","F061B"],["content-save-settings-outline","F0B2E"],["contrast","F0195"],["contrast-box","F0196"],["contrast-circle","F0197"],["controller-classic","F0B82"],["controller-classic-outline","F0B83"],["cookie","F0198"],["coolant-temperature","F03C8"],["copyright","F05E6"],["cordova","F0958"],["corn","F07B8"],["corn-off","F13EF"],["cosine-wave","F1479"],["counter","F0199"],["cow","F019A"],["cpu-32-bit","F0EDF"],["cpu-64-bit","F0EE0"],["crane","F0862"],["creation","F0674"],["creative-commons","F0D6B"],["credit-card","F0FEF"],["credit-card-check","F13D0"],["credit-card-check-outline","F13D1"],["credit-card-clock","F0EE1"],["credit-card-clock-outline","F0EE2"],["credit-card-marker","F06A8"],["credit-card-marker-outline","F0DBE"],["credit-card-minus","F0FAC"],["credit-card-minus-outline","F0FAD"],["credit-card-multiple","F0FF0"],["credit-card-multiple-outline","F019C"],["credit-card-off","F0FF1"],["credit-card-off-outline","F05E4"],["credit-card-outline","F019B"],["credit-card-plus","F0FF2"],["credit-card-plus-outline","F0676"],["credit-card-refund","F0FF3"],["credit-card-refund-outline","F0AA8"],["credit-card-remove","F0FAE"],["credit-card-remove-outline","F0FAF"],["credit-card-scan","F0FF4"],["credit-card-scan-outline","F019D"],["credit-card-settings","F0FF5"],["credit-card-settings-outline","F08D7"],["credit-card-wireless","F0802"],["credit-card-wireless-off","F057A"],["credit-card-wireless-off-outline","F057B"],["credit-card-wireless-outline","F0D6C"],["cricket","F0D6D"],["crop","F019E"],["crop-free","F019F"],["crop-landscape","F01A0"],["crop-portrait","F01A1"],["crop-rotate","F0696"],["crop-square","F01A2"],["crosshairs","F01A3"],["crosshairs-gps","F01A4"],["crosshairs-off","F0F45"],["crosshairs-question","F1136"],["crown","F01A5"],["crown-outline","F11D0"],["cryengine","F0959"],["crystal-ball","F0B2F"],["cube","F01A6"],["cube-off","F141C"],["cube-off-outline","F141D"],["cube-outline","F01A7"],["cube-scan","F0B84"],["cube-send","F01A8"],["cube-unfolded","F01A9"],["cup","F01AA"],["cup-off","F05E5"],["cup-off-outline","F137D"],["cup-outline","F130F"],["cup-water","F01AB"],["cupboard","F0F46"],["cupboard-outline","F0F47"],["cupcake","F095A"],["curling","F0863"],["currency-bdt","F0864"],["currency-brl","F0B85"],["currency-btc","F01AC"],["currency-cny","F07BA"],["currency-eth","F07BB"],["currency-eur","F01AD"],["currency-eur-off","F1315"],["currency-gbp","F01AE"],["currency-ils","F0C61"],["currency-inr","F01AF"],["currency-jpy","F07BC"],["currency-krw","F07BD"],["currency-kzt","F0865"],["currency-mnt","F1512"],["currency-ngn","F01B0"],["currency-php","F09E6"],["currency-rial","F0E9C"],["currency-rub","F01B1"],["currency-sign","F07BE"],["currency-try","F01B2"],["currency-twd","F07BF"],["currency-usd","F01C1"],["currency-usd-circle","F116B"],["currency-usd-circle-outline","F0178"],["currency-usd-off","F067A"],["current-ac","F1480"],["current-dc","F095C"],["cursor-default","F01C0"],["cursor-default-click","F0CFD"],["cursor-default-click-outline","F0CFE"],["cursor-default-gesture","F1127"],["cursor-default-gesture-outline","F1128"],["cursor-default-outline","F01BF"],["cursor-move","F01BE"],["cursor-pointer","F01BD"],["cursor-text","F05E7"],["dance-ballroom","F15FB"],["dance-pole","F1578"],["data-matrix","F153C"],["data-matrix-edit","F153D"],["data-matrix-minus","F153E"],["data-matrix-plus","F153F"],["data-matrix-remove","F1540"],["data-matrix-scan","F1541"],["database","F01BC"],["database-check","F0AA9"],["database-edit","F0B86"],["database-export","F095E"],["database-import","F095D"],["database-lock","F0AAA"],["database-marker","F12F6"],["database-minus","F01BB"],["database-plus","F01BA"],["database-refresh","F05C2"],["database-remove","F0D00"],["database-search","F0866"],["database-settings","F0D01"],["database-sync","F0CFF"],["death-star","F08D8"],["death-star-variant","F08D9"],["deathly-hallows","F0B87"],["debian","F08DA"],["debug-step-into","F01B9"],["debug-step-out","F01B8"],["debug-step-over","F01B7"],["decagram","F076C"],["decagram-outline","F076D"],["decimal","F10A1"],["decimal-comma","F10A2"],["decimal-comma-decrease","F10A3"],["decimal-comma-increase","F10A4"],["decimal-decrease","F01B6"],["decimal-increase","F01B5"],["delete","F01B4"],["delete-alert","F10A5"],["delete-alert-outline","F10A6"],["delete-circle","F0683"],["delete-circle-outline","F0B88"],["delete-clock","F1556"],["delete-clock-outline","F1557"],["delete-empty","F06CC"],["delete-empty-outline","F0E9D"],["delete-forever","F05E8"],["delete-forever-outline","F0B89"],["delete-off","F10A7"],["delete-off-outline","F10A8"],["delete-outline","F09E7"],["delete-restore","F0819"],["delete-sweep","F05E9"],["delete-sweep-outline","F0C62"],["delete-variant","F01B3"],["delta","F01C2"],["desk","F1239"],["desk-lamp","F095F"],["deskphone","F01C3"],["desktop-classic","F07C0"],["desktop-mac","F01C4"],["desktop-mac-dashboard","F09E8"],["desktop-tower","F01C5"],["desktop-tower-monitor","F0AAB"],["details","F01C6"],["dev-to","F0D6E"],["developer-board","F0697"],["deviantart","F01C7"],["devices","F0FB0"],["diabetes","F1126"],["dialpad","F061C"],["diameter","F0C63"],["diameter-outline","F0C64"],["diameter-variant","F0C65"],["diamond","F0B8A"],["diamond-outline","F0B8B"],["diamond-stone","F01C8"],["dice-1","F01CA"],["dice-1-outline","F114A"],["dice-2","F01CB"],["dice-2-outline","F114B"],["dice-3","F01CC"],["dice-3-outline","F114C"],["dice-4","F01CD"],["dice-4-outline","F114D"],["dice-5","F01CE"],["dice-5-outline","F114E"],["dice-6","F01CF"],["dice-6-outline","F114F"],["dice-d10","F1153"],["dice-d10-outline","F076F"],["dice-d12","F1154"],["dice-d12-outline","F0867"],["dice-d20","F1155"],["dice-d20-outline","F05EA"],["dice-d4","F1150"],["dice-d4-outline","F05EB"],["dice-d6","F1151"],["dice-d6-outline","F05ED"],["dice-d8","F1152"],["dice-d8-outline","F05EC"],["dice-multiple","F076E"],["dice-multiple-outline","F1156"],["digital-ocean","F1237"],["dip-switch","F07C1"],["directions","F01D0"],["directions-fork","F0641"],["disc","F05EE"],["disc-alert","F01D1"],["disc-player","F0960"],["discord","F066F"],["dishwasher","F0AAC"],["dishwasher-alert","F11B8"],["dishwasher-off","F11B9"],["disqus","F01D2"],["distribute-horizontal-center","F11C9"],["distribute-horizontal-left","F11C8"],["distribute-horizontal-right","F11CA"],["distribute-vertical-bottom","F11CB"],["distribute-vertical-center","F11CC"],["distribute-vertical-top","F11CD"],["diving-flippers","F0DBF"],["diving-helmet","F0DC0"],["diving-scuba","F0DC1"],["diving-scuba-flag","F0DC2"],["diving-scuba-tank","F0DC3"],["diving-scuba-tank-multiple","F0DC4"],["diving-snorkel","F0DC5"],["division","F01D4"],["division-box","F01D5"],["dlna","F0A41"],["dna","F0684"],["dns","F01D6"],["dns-outline","F0B8C"],["do-not-disturb","F0698"],["do-not-disturb-off","F0699"],["dock-bottom","F10A9"],["dock-left","F10AA"],["dock-right","F10AB"],["dock-top","F1513"],["dock-window","F10AC"],["docker","F0868"],["doctor","F0A42"],["dog","F0A43"],["dog-service","F0AAD"],["dog-side","F0A44"],["dolby","F06B3"],["dolly","F0E9E"],["domain","F01D7"],["domain-off","F0D6F"],["domain-plus","F10AD"],["domain-remove","F10AE"],["dome-light","F141E"],["domino-mask","F1023"],["donkey","F07C2"],["door","F081A"],["door-closed","F081B"],["door-closed-lock","F10AF"],["door-open","F081C"],["doorbell","F12E6"],["doorbell-video","F0869"],["dot-net","F0AAE"],["dots-grid","F15FC"],["dots-hexagon","F15FF"],["dots-horizontal","F01D8"],["dots-horizontal-circle","F07C3"],["dots-horizontal-circle-outline","F0B8D"],["dots-square","F15FD"],["dots-triangle","F15FE"],["dots-vertical","F01D9"],["dots-vertical-circle","F07C4"],["dots-vertical-circle-outline","F0B8E"],["douban","F069A"],["download","F01DA"],["download-box","F1462"],["download-box-outline","F1463"],["download-circle","F1464"],["download-circle-outline","F1465"],["download-lock","F1320"],["download-lock-outline","F1321"],["download-multiple","F09E9"],["download-network","F06F4"],["download-network-outline","F0C66"],["download-off","F10B0"],["download-off-outline","F10B1"],["download-outline","F0B8F"],["drag","F01DB"],["drag-horizontal","F01DC"],["drag-horizontal-variant","F12F0"],["drag-variant","F0B90"],["drag-vertical","F01DD"],["drag-vertical-variant","F12F1"],["drama-masks","F0D02"],["draw","F0F49"],["drawing","F01DE"],["drawing-box","F01DF"],["dresser","F0F4A"],["dresser-outline","F0F4B"],["drone","F01E2"],["dropbox","F01E3"],["drupal","F01E4"],["duck","F01E5"],["dumbbell","F01E6"],["dump-truck","F0C67"],["ear-hearing","F07C5"],["ear-hearing-off","F0A45"],["earth","F01E7"],["earth-arrow-right","F1311"],["earth-box","F06CD"],["earth-box-minus","F1407"],["earth-box-off","F06CE"],["earth-box-plus","F1406"],["earth-box-remove","F1408"],["earth-minus","F1404"],["earth-off","F01E8"],["earth-plus","F1403"],["earth-remove","F1405"],["egg","F0AAF"],["egg-easter","F0AB0"],["egg-off","F13F0"],["egg-off-outline","F13F1"],["egg-outline","F13F2"],["eiffel-tower","F156B"],["eight-track","F09EA"],["eject","F01EA"],["eject-outline","F0B91"],["electric-switch","F0E9F"],["electric-switch-closed","F10D9"],["electron-framework","F1024"],["elephant","F07C6"],["elevation-decline","F01EB"],["elevation-rise","F01EC"],["elevator","F01ED"],["elevator-down","F12C2"],["elevator-passenger","F1381"],["elevator-up","F12C1"],["ellipse","F0EA0"],["ellipse-outline","F0EA1"],["email","F01EE"],["email-alert","F06CF"],["email-alert-outline","F0D42"],["email-box","F0D03"],["email-check","F0AB1"],["email-check-outline","F0AB2"],["email-edit","F0EE3"],["email-edit-outline","F0EE4"],["email-lock","F01F1"],["email-mark-as-unread","F0B92"],["email-minus","F0EE5"],["email-minus-outline","F0EE6"],["email-multiple","F0EE7"],["email-multiple-outline","F0EE8"],["email-newsletter","F0FB1"],["email-off","F13E3"],["email-off-outline","F13E4"],["email-open","F01EF"],["email-open-multiple","F0EE9"],["email-open-multiple-outline","F0EEA"],["email-open-outline","F05EF"],["email-outline","F01F0"],["email-plus","F09EB"],["email-plus-outline","F09EC"],["email-receive","F10DA"],["email-receive-outline","F10DB"],["email-search","F0961"],["email-search-outline","F0962"],["email-send","F10DC"],["email-send-outline","F10DD"],["email-sync","F12C7"],["email-sync-outline","F12C8"],["email-variant","F05F0"],["ember","F0B30"],["emby","F06B4"],["emoticon","F0C68"],["emoticon-angry","F0C69"],["emoticon-angry-outline","F0C6A"],["emoticon-confused","F10DE"],["emoticon-confused-outline","F10DF"],["emoticon-cool","F0C6B"],["emoticon-cool-outline","F01F3"],["emoticon-cry","F0C6C"],["emoticon-cry-outline","F0C6D"],["emoticon-dead","F0C6E"],["emoticon-dead-outline","F069B"],["emoticon-devil","F0C6F"],["emoticon-devil-outline","F01F4"],["emoticon-excited","F0C70"],["emoticon-excited-outline","F069C"],["emoticon-frown","F0F4C"],["emoticon-frown-outline","F0F4D"],["emoticon-happy","F0C71"],["emoticon-happy-outline","F01F5"],["emoticon-kiss","F0C72"],["emoticon-kiss-outline","F0C73"],["emoticon-lol","F1214"],["emoticon-lol-outline","F1215"],["emoticon-neutral","F0C74"],["emoticon-neutral-outline","F01F6"],["emoticon-outline","F01F2"],["emoticon-poop","F01F7"],["emoticon-poop-outline","F0C75"],["emoticon-sad","F0C76"],["emoticon-sad-outline","F01F8"],["emoticon-sick","F157C"],["emoticon-sick-outline","F157D"],["emoticon-tongue","F01F9"],["emoticon-tongue-outline","F0C77"],["emoticon-wink","F0C78"],["emoticon-wink-outline","F0C79"],["engine","F01FA"],["engine-off","F0A46"],["engine-off-outline","F0A47"],["engine-outline","F01FB"],["epsilon","F10E0"],["equal","F01FC"],["equal-box","F01FD"],["equalizer","F0EA2"],["equalizer-outline","F0EA3"],["eraser","F01FE"],["eraser-variant","F0642"],["escalator","F01FF"],["escalator-box","F1399"],["escalator-down","F12C0"],["escalator-up","F12BF"],["eslint","F0C7A"],["et","F0AB3"],["ethereum","F086A"],["ethernet","F0200"],["ethernet-cable","F0201"],["ethernet-cable-off","F0202"],["ev-plug-ccs1","F1519"],["ev-plug-ccs2","F151A"],["ev-plug-chademo","F151B"],["ev-plug-tesla","F151C"],["ev-plug-type1","F151D"],["ev-plug-type2","F151E"],["ev-station","F05F1"],["evernote","F0204"],["excavator","F1025"],["exclamation","F0205"],["exclamation-thick","F1238"],["exit-run","F0A48"],["exit-to-app","F0206"],["expand-all","F0AB4"],["expand-all-outline","F0AB5"],["expansion-card","F08AE"],["expansion-card-variant","F0FB2"],["exponent","F0963"],["exponent-box","F0964"],["export","F0207"],["export-variant","F0B93"],["eye","F0208"],["eye-check","F0D04"],["eye-check-outline","F0D05"],["eye-circle","F0B94"],["eye-circle-outline","F0B95"],["eye-minus","F1026"],["eye-minus-outline","F1027"],["eye-off","F0209"],["eye-off-outline","F06D1"],["eye-outline","F06D0"],["eye-plus","F086B"],["eye-plus-outline","F086C"],["eye-remove","F15E3"],["eye-remove-outline","F15E4"],["eye-settings","F086D"],["eye-settings-outline","F086E"],["eyedropper","F020A"],["eyedropper-minus","F13DD"],["eyedropper-off","F13DF"],["eyedropper-plus","F13DC"],["eyedropper-remove","F13DE"],["eyedropper-variant","F020B"],["face","F0643"],["face-agent","F0D70"],["face-mask","F1586"],["face-mask-outline","F1587"],["face-outline","F0B96"],["face-profile","F0644"],["face-profile-woman","F1076"],["face-recognition","F0C7B"],["face-shimmer","F15CC"],["face-shimmer-outline","F15CD"],["face-woman","F1077"],["face-woman-outline","F1078"],["face-woman-shimmer","F15CE"],["face-woman-shimmer-outline","F15CF"],["facebook","F020C"],["facebook-gaming","F07DD"],["facebook-messenger","F020E"],["facebook-workplace","F0B31"],["factory","F020F"],["family-tree","F160E"],["fan","F0210"],["fan-alert","F146C"],["fan-chevron-down","F146D"],["fan-chevron-up","F146E"],["fan-minus","F1470"],["fan-off","F081D"],["fan-plus","F146F"],["fan-remove","F1471"],["fan-speed-1","F1472"],["fan-speed-2","F1473"],["fan-speed-3","F1474"],["fast-forward","F0211"],["fast-forward-10","F0D71"],["fast-forward-30","F0D06"],["fast-forward-5","F11F8"],["fast-forward-60","F160B"],["fast-forward-outline","F06D2"],["fax","F0212"],["feather","F06D3"],["feature-search","F0A49"],["feature-search-outline","F0A4A"],["fedora","F08DB"],["fencing","F14C1"],["ferris-wheel","F0EA4"],["ferry","F0213"],["file","F0214"],["file-account","F073B"],["file-account-outline","F1028"],["file-alert","F0A4B"],["file-alert-outline","F0A4C"],["file-cabinet","F0AB6"],["file-cad","F0EEB"],["file-cad-box","F0EEC"],["file-cancel","F0DC6"],["file-cancel-outline","F0DC7"],["file-certificate","F1186"],["file-certificate-outline","F1187"],["file-chart","F0215"],["file-chart-outline","F1029"],["file-check","F0216"],["file-check-outline","F0E29"],["file-clock","F12E1"],["file-clock-outline","F12E2"],["file-cloud","F0217"],["file-cloud-outline","F102A"],["file-code","F022E"],["file-code-outline","F102B"],["file-cog","F107B"],["file-cog-outline","F107C"],["file-compare","F08AA"],["file-delimited","F0218"],["file-delimited-outline","F0EA5"],["file-document","F0219"],["file-document-edit","F0DC8"],["file-document-edit-outline","F0DC9"],["file-document-multiple","F1517"],["file-document-multiple-outline","F1518"],["file-document-outline","F09EE"],["file-download","F0965"],["file-download-outline","F0966"],["file-edit","F11E7"],["file-edit-outline","F11E8"],["file-excel","F021B"],["file-excel-box","F021C"],["file-excel-box-outline","F102C"],["file-excel-outline","F102D"],["file-export","F021D"],["file-export-outline","F102E"],["file-eye","F0DCA"],["file-eye-outline","F0DCB"],["file-find","F021E"],["file-find-outline","F0B97"],["file-hidden","F0613"],["file-image","F021F"],["file-image-outline","F0EB0"],["file-import","F0220"],["file-import-outline","F102F"],["file-key","F1184"],["file-key-outline","F1185"],["file-link","F1177"],["file-link-outline","F1178"],["file-lock","F0221"],["file-lock-outline","F1030"],["file-move","F0AB9"],["file-move-outline","F1031"],["file-multiple","F0222"],["file-multiple-outline","F1032"],["file-music","F0223"],["file-music-outline","F0E2A"],["file-outline","F0224"],["file-pdf","F0225"],["file-pdf-box","F0226"],["file-pdf-box-outline","F0FB3"],["file-pdf-outline","F0E2D"],["file-percent","F081E"],["file-percent-outline","F1033"],["file-phone","F1179"],["file-phone-outline","F117A"],["file-plus","F0752"],["file-plus-outline","F0EED"],["file-powerpoint","F0227"],["file-powerpoint-box","F0228"],["file-powerpoint-box-outline","F1034"],["file-powerpoint-outline","F1035"],["file-presentation-box","F0229"],["file-question","F086F"],["file-question-outline","F1036"],["file-refresh","F0918"],["file-refresh-outline","F0541"],["file-remove","F0B98"],["file-remove-outline","F1037"],["file-replace","F0B32"],["file-replace-outline","F0B33"],["file-restore","F0670"],["file-restore-outline","F1038"],["file-search","F0C7C"],["file-search-outline","F0C7D"],["file-send","F022A"],["file-send-outline","F1039"],["file-settings","F1079"],["file-settings-outline","F107A"],["file-star","F103A"],["file-star-outline","F103B"],["file-swap","F0FB4"],["file-swap-outline","F0FB5"],["file-sync","F1216"],["file-sync-outline","F1217"],["file-table","F0C7E"],["file-table-box","F10E1"],["file-table-box-multiple","F10E2"],["file-table-box-multiple-outline","F10E3"],["file-table-box-outline","F10E4"],["file-table-outline","F0C7F"],["file-tree","F0645"],["file-tree-outline","F13D2"],["file-undo","F08DC"],["file-undo-outline","F103C"],["file-upload","F0A4D"],["file-upload-outline","F0A4E"],["file-video","F022B"],["file-video-outline","F0E2C"],["file-word","F022C"],["file-word-box","F022D"],["file-word-box-outline","F103D"],["file-word-outline","F103E"],["film","F022F"],["filmstrip","F0230"],["filmstrip-box","F0332"],["filmstrip-box-multiple","F0D18"],["filmstrip-off","F0231"],["filter","F0232"],["filter-menu","F10E5"],["filter-menu-outline","F10E6"],["filter-minus","F0EEE"],["filter-minus-outline","F0EEF"],["filter-off","F14EF"],["filter-off-outline","F14F0"],["filter-outline","F0233"],["filter-plus","F0EF0"],["filter-plus-outline","F0EF1"],["filter-remove","F0234"],["filter-remove-outline","F0235"],["filter-variant","F0236"],["filter-variant-minus","F1112"],["filter-variant-plus","F1113"],["filter-variant-remove","F103F"],["finance","F081F"],["find-replace","F06D4"],["fingerprint","F0237"],["fingerprint-off","F0EB1"],["fire","F0238"],["fire-alert","F15D7"],["fire-extinguisher","F0EF2"],["fire-hydrant","F1137"],["fire-hydrant-alert","F1138"],["fire-hydrant-off","F1139"],["fire-truck","F08AB"],["firebase","F0967"],["firefox","F0239"],["fireplace","F0E2E"],["fireplace-off","F0E2F"],["firework","F0E30"],["fish","F023A"],["fish-off","F13F3"],["fishbowl","F0EF3"],["fishbowl-outline","F0EF4"],["fit-to-page","F0EF5"],["fit-to-page-outline","F0EF6"],["flag","F023B"],["flag-checkered","F023C"],["flag-minus","F0B99"],["flag-minus-outline","F10B2"],["flag-outline","F023D"],["flag-plus","F0B9A"],["flag-plus-outline","F10B3"],["flag-remove","F0B9B"],["flag-remove-outline","F10B4"],["flag-triangle","F023F"],["flag-variant","F0240"],["flag-variant-outline","F023E"],["flare","F0D72"],["flash","F0241"],["flash-alert","F0EF7"],["flash-alert-outline","F0EF8"],["flash-auto","F0242"],["flash-circle","F0820"],["flash-off","F0243"],["flash-outline","F06D5"],["flash-red-eye","F067B"],["flashlight","F0244"],["flashlight-off","F0245"],["flask","F0093"],["flask-empty","F0094"],["flask-empty-minus","F123A"],["flask-empty-minus-outline","F123B"],["flask-empty-off","F13F4"],["flask-empty-off-outline","F13F5"],["flask-empty-outline","F0095"],["flask-empty-plus","F123C"],["flask-empty-plus-outline","F123D"],["flask-empty-remove","F123E"],["flask-empty-remove-outline","F123F"],["flask-minus","F1240"],["flask-minus-outline","F1241"],["flask-off","F13F6"],["flask-off-outline","F13F7"],["flask-outline","F0096"],["flask-plus","F1242"],["flask-plus-outline","F1243"],["flask-remove","F1244"],["flask-remove-outline","F1245"],["flask-round-bottom","F124B"],["flask-round-bottom-empty","F124C"],["flask-round-bottom-empty-outline","F124D"],["flask-round-bottom-outline","F124E"],["fleur-de-lis","F1303"],["flip-horizontal","F10E7"],["flip-to-back","F0247"],["flip-to-front","F0248"],["flip-vertical","F10E8"],["floor-lamp","F08DD"],["floor-lamp-dual","F1040"],["floor-lamp-variant","F1041"],["floor-plan","F0821"],["floppy","F0249"],["floppy-variant","F09EF"],["flower","F024A"],["flower-outline","F09F0"],["flower-poppy","F0D08"],["flower-tulip","F09F1"],["flower-tulip-outline","F09F2"],["focus-auto","F0F4E"],["focus-field","F0F4F"],["focus-field-horizontal","F0F50"],["focus-field-vertical","F0F51"],["folder","F024B"],["folder-account","F024C"],["folder-account-outline","F0B9C"],["folder-alert","F0DCC"],["folder-alert-outline","F0DCD"],["folder-clock","F0ABA"],["folder-clock-outline","F0ABB"],["folder-cog","F107F"],["folder-cog-outline","F1080"],["folder-download","F024D"],["folder-download-outline","F10E9"],["folder-edit","F08DE"],["folder-edit-outline","F0DCE"],["folder-google-drive","F024E"],["folder-heart","F10EA"],["folder-heart-outline","F10EB"],["folder-home","F10B5"],["folder-home-outline","F10B6"],["folder-image","F024F"],["folder-information","F10B7"],["folder-information-outline","F10B8"],["folder-key","F08AC"],["folder-key-network","F08AD"],["folder-key-network-outline","F0C80"],["folder-key-outline","F10EC"],["folder-lock","F0250"],["folder-lock-open","F0251"],["folder-marker","F126D"],["folder-marker-outline","F126E"],["folder-move","F0252"],["folder-move-outline","F1246"],["folder-multiple","F0253"],["folder-multiple-image","F0254"],["folder-multiple-outline","F0255"],["folder-multiple-plus","F147E"],["folder-multiple-plus-outline","F147F"],["folder-music","F1359"],["folder-music-outline","F135A"],["folder-network","F0870"],["folder-network-outline","F0C81"],["folder-open","F0770"],["folder-open-outline","F0DCF"],["folder-outline","F0256"],["folder-plus","F0257"],["folder-plus-outline","F0B9D"],["folder-pound","F0D09"],["folder-pound-outline","F0D0A"],["folder-refresh","F0749"],["folder-refresh-outline","F0542"],["folder-remove","F0258"],["folder-remove-outline","F0B9E"],["folder-search","F0968"],["folder-search-outline","F0969"],["folder-settings","F107D"],["folder-settings-outline","F107E"],["folder-star","F069D"],["folder-star-multiple","F13D3"],["folder-star-multiple-outline","F13D4"],["folder-star-outline","F0B9F"],["folder-swap","F0FB6"],["folder-swap-outline","F0FB7"],["folder-sync","F0D0B"],["folder-sync-outline","F0D0C"],["folder-table","F12E3"],["folder-table-outline","F12E4"],["folder-text","F0C82"],["folder-text-outline","F0C83"],["folder-upload","F0259"],["folder-upload-outline","F10ED"],["folder-zip","F06EB"],["folder-zip-outline","F07B9"],["font-awesome","F003A"],["food","F025A"],["food-apple","F025B"],["food-apple-outline","F0C84"],["food-croissant","F07C8"],["food-drumstick","F141F"],["food-drumstick-off","F1468"],["food-drumstick-off-outline","F1469"],["food-drumstick-outline","F1420"],["food-fork-drink","F05F2"],["food-halal","F1572"],["food-kosher","F1573"],["food-off","F05F3"],["food-steak","F146A"],["food-steak-off","F146B"],["food-variant","F025C"],["food-variant-off","F13E5"],["foot-print","F0F52"],["football","F025D"],["football-australian","F025E"],["football-helmet","F025F"],["forklift","F07C9"],["form-dropdown","F1400"],["form-select","F1401"],["form-textarea","F1095"],["form-textbox","F060E"],["form-textbox-lock","F135D"],["form-textbox-password","F07F5"],["format-align-bottom","F0753"],["format-align-center","F0260"],["format-align-justify","F0261"],["format-align-left","F0262"],["format-align-middle","F0754"],["format-align-right","F0263"],["format-align-top","F0755"],["format-annotation-minus","F0ABC"],["format-annotation-plus","F0646"],["format-bold","F0264"],["format-clear","F0265"],["format-color-fill","F0266"],["format-color-highlight","F0E31"],["format-color-marker-cancel","F1313"],["format-color-text","F069E"],["format-columns","F08DF"],["format-float-center","F0267"],["format-float-left","F0268"],["format-float-none","F0269"],["format-float-right","F026A"],["format-font","F06D6"],["format-font-size-decrease","F09F3"],["format-font-size-increase","F09F4"],["format-header-1","F026B"],["format-header-2","F026C"],["format-header-3","F026D"],["format-header-4","F026E"],["format-header-5","F026F"],["format-header-6","F0270"],["format-header-decrease","F0271"],["format-header-equal","F0272"],["format-header-increase","F0273"],["format-header-pound","F0274"],["format-horizontal-align-center","F061E"],["format-horizontal-align-left","F061F"],["format-horizontal-align-right","F0620"],["format-indent-decrease","F0275"],["format-indent-increase","F0276"],["format-italic","F0277"],["format-letter-case","F0B34"],["format-letter-case-lower","F0B35"],["format-letter-case-upper","F0B36"],["format-letter-ends-with","F0FB8"],["format-letter-matches","F0FB9"],["format-letter-starts-with","F0FBA"],["format-line-spacing","F0278"],["format-line-style","F05C8"],["format-line-weight","F05C9"],["format-list-bulleted","F0279"],["format-list-bulleted-square","F0DD0"],["format-list-bulleted-triangle","F0EB2"],["format-list-bulleted-type","F027A"],["format-list-checkbox","F096A"],["format-list-checks","F0756"],["format-list-numbered","F027B"],["format-list-numbered-rtl","F0D0D"],["format-list-text","F126F"],["format-overline","F0EB3"],["format-page-break","F06D7"],["format-paint","F027C"],["format-paragraph","F027D"],["format-pilcrow","F06D8"],["format-quote-close","F027E"],["format-quote-close-outline","F11A8"],["format-quote-open","F0757"],["format-quote-open-outline","F11A7"],["format-rotate-90","F06AA"],["format-section","F069F"],["format-size","F027F"],["format-strikethrough","F0280"],["format-strikethrough-variant","F0281"],["format-subscript","F0282"],["format-superscript","F0283"],["format-text","F0284"],["format-text-rotation-angle-down","F0FBB"],["format-text-rotation-angle-up","F0FBC"],["format-text-rotation-down","F0D73"],["format-text-rotation-down-vertical","F0FBD"],["format-text-rotation-none","F0D74"],["format-text-rotation-up","F0FBE"],["format-text-rotation-vertical","F0FBF"],["format-text-variant","F0E32"],["format-text-variant-outline","F150F"],["format-text-wrapping-clip","F0D0E"],["format-text-wrapping-overflow","F0D0F"],["format-text-wrapping-wrap","F0D10"],["format-textbox","F0D11"],["format-textdirection-l-to-r","F0285"],["format-textdirection-r-to-l","F0286"],["format-title","F05F4"],["format-underline","F0287"],["format-vertical-align-bottom","F0621"],["format-vertical-align-center","F0622"],["format-vertical-align-top","F0623"],["format-wrap-inline","F0288"],["format-wrap-square","F0289"],["format-wrap-tight","F028A"],["format-wrap-top-bottom","F028B"],["forum","F028C"],["forum-outline","F0822"],["forward","F028D"],["forwardburger","F0D75"],["fountain","F096B"],["fountain-pen","F0D12"],["fountain-pen-tip","F0D13"],["freebsd","F08E0"],["frequently-asked-questions","F0EB4"],["fridge","F0290"],["fridge-alert","F11B1"],["fridge-alert-outline","F11B2"],["fridge-bottom","F0292"],["fridge-industrial","F15EE"],["fridge-industrial-alert","F15EF"],["fridge-industrial-alert-outline","F15F0"],["fridge-industrial-off","F15F1"],["fridge-industrial-off-outline","F15F2"],["fridge-industrial-outline","F15F3"],["fridge-off","F11AF"],["fridge-off-outline","F11B0"],["fridge-outline","F028F"],["fridge-top","F0291"],["fridge-variant","F15F4"],["fridge-variant-alert","F15F5"],["fridge-variant-alert-outline","F15F6"],["fridge-variant-off","F15F7"],["fridge-variant-off-outline","F15F8"],["fridge-variant-outline","F15F9"],["fruit-cherries","F1042"],["fruit-cherries-off","F13F8"],["fruit-citrus","F1043"],["fruit-citrus-off","F13F9"],["fruit-grapes","F1044"],["fruit-grapes-outline","F1045"],["fruit-pineapple","F1046"],["fruit-watermelon","F1047"],["fuel","F07CA"],["fullscreen","F0293"],["fullscreen-exit","F0294"],["function","F0295"],["function-variant","F0871"],["furigana-horizontal","F1081"],["furigana-vertical","F1082"],["fuse","F0C85"],["fuse-alert","F142D"],["fuse-blade","F0C86"],["fuse-off","F142C"],["gamepad","F0296"],["gamepad-circle","F0E33"],["gamepad-circle-down","F0E34"],["gamepad-circle-left","F0E35"],["gamepad-circle-outline","F0E36"],["gamepad-circle-right","F0E37"],["gamepad-circle-up","F0E38"],["gamepad-down","F0E39"],["gamepad-left","F0E3A"],["gamepad-right","F0E3B"],["gamepad-round","F0E3C"],["gamepad-round-down","F0E3D"],["gamepad-round-left","F0E3E"],["gamepad-round-outline","F0E3F"],["gamepad-round-right","F0E40"],["gamepad-round-up","F0E41"],["gamepad-square","F0EB5"],["gamepad-square-outline","F0EB6"],["gamepad-up","F0E42"],["gamepad-variant","F0297"],["gamepad-variant-outline","F0EB7"],["gamma","F10EE"],["gantry-crane","F0DD1"],["garage","F06D9"],["garage-alert","F0872"],["garage-alert-variant","F12D5"],["garage-open","F06DA"],["garage-open-variant","F12D4"],["garage-variant","F12D3"],["gas-cylinder","F0647"],["gas-station","F0298"],["gas-station-off","F1409"],["gas-station-off-outline","F140A"],["gas-station-outline","F0EB8"],["gate","F0299"],["gate-and","F08E1"],["gate-arrow-right","F1169"],["gate-nand","F08E2"],["gate-nor","F08E3"],["gate-not","F08E4"],["gate-open","F116A"],["gate-or","F08E5"],["gate-xnor","F08E6"],["gate-xor","F08E7"],["gatsby","F0E43"],["gauge","F029A"],["gauge-empty","F0873"],["gauge-full","F0874"],["gauge-low","F0875"],["gavel","F029B"],["gender-female","F029C"],["gender-male","F029D"],["gender-male-female","F029E"],["gender-male-female-variant","F113F"],["gender-non-binary","F1140"],["gender-transgender","F029F"],["gentoo","F08E8"],["gesture","F07CB"],["gesture-double-tap","F073C"],["gesture-pinch","F0ABD"],["gesture-spread","F0ABE"],["gesture-swipe","F0D76"],["gesture-swipe-down","F073D"],["gesture-swipe-horizontal","F0ABF"],["gesture-swipe-left","F073E"],["gesture-swipe-right","F073F"],["gesture-swipe-up","F0740"],["gesture-swipe-vertical","F0AC0"],["gesture-tap","F0741"],["gesture-tap-box","F12A9"],["gesture-tap-button","F12A8"],["gesture-tap-hold","F0D77"],["gesture-two-double-tap","F0742"],["gesture-two-tap","F0743"],["ghost","F02A0"],["ghost-off","F09F5"],["gif","F0D78"],["gift","F0E44"],["gift-outline","F02A1"],["git","F02A2"],["github","F02A4"],["gitlab","F0BA0"],["glass-cocktail","F0356"],["glass-cocktail-off","F15E6"],["glass-flute","F02A5"],["glass-mug","F02A6"],["glass-mug-off","F15E7"],["glass-mug-variant","F1116"],["glass-mug-variant-off","F15E8"],["glass-pint-outline","F130D"],["glass-stange","F02A7"],["glass-tulip","F02A8"],["glass-wine","F0876"],["glasses","F02AA"],["globe-light","F12D7"],["globe-model","F08E9"],["gmail","F02AB"],["gnome","F02AC"],["go-kart","F0D79"],["go-kart-track","F0D7A"],["gog","F0BA1"],["gold","F124F"],["golf","F0823"],["golf-cart","F11A4"],["golf-tee","F1083"],["gondola","F0686"],["goodreads","F0D7B"],["google","F02AD"],["google-ads","F0C87"],["google-analytics","F07CC"],["google-assistant","F07CD"],["google-cardboard","F02AE"],["google-chrome","F02AF"],["google-circles","F02B0"],["google-circles-communities","F02B1"],["google-circles-extended","F02B2"],["google-circles-group","F02B3"],["google-classroom","F02C0"],["google-cloud","F11F6"],["google-controller","F02B4"],["google-controller-off","F02B5"],["google-downasaur","F1362"],["google-drive","F02B6"],["google-earth","F02B7"],["google-fit","F096C"],["google-glass","F02B8"],["google-hangouts","F02C9"],["google-home","F0824"],["google-keep","F06DC"],["google-lens","F09F6"],["google-maps","F05F5"],["google-my-business","F1048"],["google-nearby","F02B9"],["google-photos","F06DD"],["google-play","F02BC"],["google-plus","F02BD"],["google-podcast","F0EB9"],["google-spreadsheet","F09F7"],["google-street-view","F0C88"],["google-translate","F02BF"],["gradient","F06A0"],["grain","F0D7C"],["graph","F1049"],["graph-outline","F104A"],["graphql","F0877"],["grass","F1510"],["grave-stone","F0BA2"],["grease-pencil","F0648"],["greater-than","F096D"],["greater-than-or-equal","F096E"],["grid","F02C1"],["grid-large","F0758"],["grid-off","F02C2"],["grill","F0E45"],["grill-outline","F118A"],["group","F02C3"],["guitar-acoustic","F0771"],["guitar-electric","F02C4"],["guitar-pick","F02C5"],["guitar-pick-outline","F02C6"],["guy-fawkes-mask","F0825"],["hail","F0AC1"],["hair-dryer","F10EF"],["hair-dryer-outline","F10F0"],["halloween","F0BA3"],["hamburger","F0685"],["hammer","F08EA"],["hammer-screwdriver","F1322"],["hammer-wrench","F1323"],["hand","F0A4F"],["hand-heart","F10F1"],["hand-heart-outline","F157E"],["hand-left","F0E46"],["hand-okay","F0A50"],["hand-peace","F0A51"],["hand-peace-variant","F0A52"],["hand-pointing-down","F0A53"],["hand-pointing-left","F0A54"],["hand-pointing-right","F02C7"],["hand-pointing-up","F0A55"],["hand-right","F0E47"],["hand-saw","F0E48"],["hand-wash","F157F"],["hand-wash-outline","F1580"],["hand-water","F139F"],["handball","F0F53"],["handcuffs","F113E"],["handshake","F1218"],["handshake-outline","F15A1"],["hanger","F02C8"],["hard-hat","F096F"],["harddisk","F02CA"],["harddisk-plus","F104B"],["harddisk-remove","F104C"],["hat-fedora","F0BA4"],["hazard-lights","F0C89"],["hdr","F0D7D"],["hdr-off","F0D7E"],["head","F135E"],["head-alert","F1338"],["head-alert-outline","F1339"],["head-check","F133A"],["head-check-outline","F133B"],["head-cog","F133C"],["head-cog-outline","F133D"],["head-dots-horizontal","F133E"],["head-dots-horizontal-outline","F133F"],["head-flash","F1340"],["head-flash-outline","F1341"],["head-heart","F1342"],["head-heart-outline","F1343"],["head-lightbulb","F1344"],["head-lightbulb-outline","F1345"],["head-minus","F1346"],["head-minus-outline","F1347"],["head-outline","F135F"],["head-plus","F1348"],["head-plus-outline","F1349"],["head-question","F134A"],["head-question-outline","F134B"],["head-remove","F134C"],["head-remove-outline","F134D"],["head-snowflake","F134E"],["head-snowflake-outline","F134F"],["head-sync","F1350"],["head-sync-outline","F1351"],["headphones","F02CB"],["headphones-bluetooth","F0970"],["headphones-box","F02CC"],["headphones-off","F07CE"],["headphones-settings","F02CD"],["headset","F02CE"],["headset-dock","F02CF"],["headset-off","F02D0"],["heart","F02D1"],["heart-box","F02D2"],["heart-box-outline","F02D3"],["heart-broken","F02D4"],["heart-broken-outline","F0D14"],["heart-circle","F0971"],["heart-circle-outline","F0972"],["heart-flash","F0EF9"],["heart-half","F06DF"],["heart-half-full","F06DE"],["heart-half-outline","F06E0"],["heart-minus","F142F"],["heart-minus-outline","F1432"],["heart-multiple","F0A56"],["heart-multiple-outline","F0A57"],["heart-off","F0759"],["heart-off-outline","F1434"],["heart-outline","F02D5"],["heart-plus","F142E"],["heart-plus-outline","F1431"],["heart-pulse","F05F6"],["heart-remove","F1430"],["heart-remove-outline","F1433"],["helicopter","F0AC2"],["help","F02D6"],["help-box","F078B"],["help-circle","F02D7"],["help-circle-outline","F0625"],["help-network","F06F5"],["help-network-outline","F0C8A"],["help-rhombus","F0BA5"],["help-rhombus-outline","F0BA6"],["hexadecimal","F12A7"],["hexagon","F02D8"],["hexagon-multiple","F06E1"],["hexagon-multiple-outline","F10F2"],["hexagon-outline","F02D9"],["hexagon-slice-1","F0AC3"],["hexagon-slice-2","F0AC4"],["hexagon-slice-3","F0AC5"],["hexagon-slice-4","F0AC6"],["hexagon-slice-5","F0AC7"],["hexagon-slice-6","F0AC8"],["hexagram","F0AC9"],["hexagram-outline","F0ACA"],["high-definition","F07CF"],["high-definition-box","F0878"],["highway","F05F7"],["hiking","F0D7F"],["hinduism","F0973"],["history","F02DA"],["hockey-puck","F0879"],["hockey-sticks","F087A"],["hololens","F02DB"],["home","F02DC"],["home-account","F0826"],["home-alert","F087B"],["home-alert-outline","F15D0"],["home-analytics","F0EBA"],["home-assistant","F07D0"],["home-automation","F07D1"],["home-circle","F07D2"],["home-circle-outline","F104D"],["home-city","F0D15"],["home-city-outline","F0D16"],["home-currency-usd","F08AF"],["home-edit","F1159"],["home-edit-outline","F115A"],["home-export-outline","F0F9B"],["home-flood","F0EFA"],["home-floor-0","F0DD2"],["home-floor-1","F0D80"],["home-floor-2","F0D81"],["home-floor-3","F0D82"],["home-floor-a","F0D83"],["home-floor-b","F0D84"],["home-floor-g","F0D85"],["home-floor-l","F0D86"],["home-floor-negative-1","F0DD3"],["home-group","F0DD4"],["home-heart","F0827"],["home-import-outline","F0F9C"],["home-lightbulb","F1251"],["home-lightbulb-outline","F1252"],["home-lock","F08EB"],["home-lock-open","F08EC"],["home-map-marker","F05F8"],["home-minus","F0974"],["home-minus-outline","F13D5"],["home-modern","F02DD"],["home-outline","F06A1"],["home-plus","F0975"],["home-plus-outline","F13D6"],["home-remove","F1247"],["home-remove-outline","F13D7"],["home-roof","F112B"],["home-search","F13B0"],["home-search-outline","F13B1"],["home-thermometer","F0F54"],["home-thermometer-outline","F0F55"],["home-variant","F02DE"],["home-variant-outline","F0BA7"],["hook","F06E2"],["hook-off","F06E3"],["hops","F02DF"],["horizontal-rotate-clockwise","F10F3"],["horizontal-rotate-counterclockwise","F10F4"],["horse","F15BF"],["horse-human","F15C0"],["horse-variant","F15C1"],["horseshoe","F0A58"],["hospital","F0FF6"],["hospital-box","F02E0"],["hospital-box-outline","F0FF7"],["hospital-building","F02E1"],["hospital-marker","F02E2"],["hot-tub","F0828"],["hours-24","F1478"],["hubspot","F0D17"],["hulu","F0829"],["human","F02E6"],["human-baby-changing-table","F138B"],["human-cane","F1581"],["human-capacity-decrease","F159B"],["human-capacity-increase","F159C"],["human-child","F02E7"],["human-edit","F14E8"],["human-female","F0649"],["human-female-boy","F0A59"],["human-female-dance","F15C9"],["human-female-female","F0A5A"],["human-female-girl","F0A5B"],["human-greeting","F064A"],["human-greeting-proximity","F159D"],["human-handsdown","F064B"],["human-handsup","F064C"],["human-male","F064D"],["human-male-boy","F0A5C"],["human-male-child","F138C"],["human-male-female","F02E8"],["human-male-girl","F0A5D"],["human-male-height","F0EFB"],["human-male-height-variant","F0EFC"],["human-male-male","F0A5E"],["human-pregnant","F05CF"],["human-queue","F1571"],["human-scooter","F11E9"],["human-wheelchair","F138D"],["humble-bundle","F0744"],["hvac","F1352"],["hvac-off","F159E"],["hydraulic-oil-level","F1324"],["hydraulic-oil-temperature","F1325"],["hydro-power","F12E5"],["ice-cream","F082A"],["ice-cream-off","F0E52"],["ice-pop","F0EFD"],["id-card","F0FC0"],["identifier","F0EFE"],["ideogram-cjk","F1331"],["ideogram-cjk-variant","F1332"],["iframe","F0C8B"],["iframe-array","F10F5"],["iframe-array-outline","F10F6"],["iframe-braces","F10F7"],["iframe-braces-outline","F10F8"],["iframe-outline","F0C8C"],["iframe-parentheses","F10F9"],["iframe-parentheses-outline","F10FA"],["iframe-variable","F10FB"],["iframe-variable-outline","F10FC"],["image","F02E9"],["image-album","F02EA"],["image-area","F02EB"],["image-area-close","F02EC"],["image-auto-adjust","F0FC1"],["image-broken","F02ED"],["image-broken-variant","F02EE"],["image-edit","F11E3"],["image-edit-outline","F11E4"],["image-filter-black-white","F02F0"],["image-filter-center-focus","F02F1"],["image-filter-center-focus-strong","F0EFF"],["image-filter-center-focus-strong-outline","F0F00"],["image-filter-center-focus-weak","F02F2"],["image-filter-drama","F02F3"],["image-filter-frames","F02F4"],["image-filter-hdr","F02F5"],["image-filter-none","F02F6"],["image-filter-tilt-shift","F02F7"],["image-filter-vintage","F02F8"],["image-frame","F0E49"],["image-minus","F1419"],["image-move","F09F8"],["image-multiple","F02F9"],["image-multiple-outline","F02EF"],["image-off","F082B"],["image-off-outline","F11D1"],["image-outline","F0976"],["image-plus","F087C"],["image-remove","F1418"],["image-search","F0977"],["image-search-outline","F0978"],["image-size-select-actual","F0C8D"],["image-size-select-large","F0C8E"],["image-size-select-small","F0C8F"],["image-text","F160D"],["import","F02FA"],["inbox","F0687"],["inbox-arrow-down","F02FB"],["inbox-arrow-down-outline","F1270"],["inbox-arrow-up","F03D1"],["inbox-arrow-up-outline","F1271"],["inbox-full","F1272"],["inbox-full-outline","F1273"],["inbox-multiple","F08B0"],["inbox-multiple-outline","F0BA8"],["inbox-outline","F1274"],["inbox-remove","F159F"],["inbox-remove-outline","F15A0"],["incognito","F05F9"],["incognito-circle","F1421"],["incognito-circle-off","F1422"],["incognito-off","F0075"],["infinity","F06E4"],["information","F02FC"],["information-outline","F02FD"],["information-variant","F064E"],["instagram","F02FE"],["instrument-triangle","F104E"],["invert-colors","F0301"],["invert-colors-off","F0E4A"],["iobroker","F12E8"],["ip","F0A5F"],["ip-network","F0A60"],["ip-network-outline","F0C90"],["ipod","F0C91"],["islam","F0979"],["island","F104F"],["iv-bag","F10B9"],["jabber","F0DD5"],["jeepney","F0302"],["jellyfish","F0F01"],["jellyfish-outline","F0F02"],["jira","F0303"],["jquery","F087D"],["jsfiddle","F0304"],["judaism","F097A"],["jump-rope","F12FF"],["kabaddi","F0D87"],["kangaroo","F1558"],["karate","F082C"],["keg","F0305"],["kettle","F05FA"],["kettle-alert","F1317"],["kettle-alert-outline","F1318"],["kettle-off","F131B"],["kettle-off-outline","F131C"],["kettle-outline","F0F56"],["kettle-steam","F1319"],["kettle-steam-outline","F131A"],["kettlebell","F1300"],["key","F0306"],["key-arrow-right","F1312"],["key-chain","F1574"],["key-chain-variant","F1575"],["key-change","F0307"],["key-link","F119F"],["key-minus","F0308"],["key-outline","F0DD6"],["key-plus","F0309"],["key-remove","F030A"],["key-star","F119E"],["key-variant","F030B"],["key-wireless","F0FC2"],["keyboard","F030C"],["keyboard-backspace","F030D"],["keyboard-caps","F030E"],["keyboard-close","F030F"],["keyboard-esc","F12B7"],["keyboard-f1","F12AB"],["keyboard-f10","F12B4"],["keyboard-f11","F12B5"],["keyboard-f12","F12B6"],["keyboard-f2","F12AC"],["keyboard-f3","F12AD"],["keyboard-f4","F12AE"],["keyboard-f5","F12AF"],["keyboard-f6","F12B0"],["keyboard-f7","F12B1"],["keyboard-f8","F12B2"],["keyboard-f9","F12B3"],["keyboard-off","F0310"],["keyboard-off-outline","F0E4B"],["keyboard-outline","F097B"],["keyboard-return","F0311"],["keyboard-settings","F09F9"],["keyboard-settings-outline","F09FA"],["keyboard-space","F1050"],["keyboard-tab","F0312"],["keyboard-variant","F0313"],["khanda","F10FD"],["kickstarter","F0745"],["klingon","F135B"],["knife","F09FB"],["knife-military","F09FC"],["kodi","F0314"],["kubernetes","F10FE"],["label","F0315"],["label-multiple","F1375"],["label-multiple-outline","F1376"],["label-off","F0ACB"],["label-off-outline","F0ACC"],["label-outline","F0316"],["label-percent","F12EA"],["label-percent-outline","F12EB"],["label-variant","F0ACD"],["label-variant-outline","F0ACE"],["ladder","F15A2"],["ladybug","F082D"],["lambda","F0627"],["lamp","F06B5"],["lamps","F1576"],["lan","F0317"],["lan-check","F12AA"],["lan-connect","F0318"],["lan-disconnect","F0319"],["lan-pending","F031A"],["language-c","F0671"],["language-cpp","F0672"],["language-csharp","F031B"],["language-css3","F031C"],["language-fortran","F121A"],["language-go","F07D3"],["language-haskell","F0C92"],["language-html5","F031D"],["language-java","F0B37"],["language-javascript","F031E"],["language-kotlin","F1219"],["language-lua","F08B1"],["language-markdown","F0354"],["language-markdown-outline","F0F5B"],["language-php","F031F"],["language-python","F0320"],["language-r","F07D4"],["language-ruby","F0D2D"],["language-ruby-on-rails","F0ACF"],["language-rust","F1617"],["language-swift","F06E5"],["language-typescript","F06E6"],["language-xaml","F0673"],["laptop","F0322"],["laptop-chromebook","F0323"],["laptop-mac","F0324"],["laptop-off","F06E7"],["laptop-windows","F0325"],["laravel","F0AD0"],["laser-pointer","F1484"],["lasso","F0F03"],["lastpass","F0446"],["latitude","F0F57"],["launch","F0327"],["lava-lamp","F07D5"],["layers","F0328"],["layers-minus","F0E4C"],["layers-off","F0329"],["layers-off-outline","F09FD"],["layers-outline","F09FE"],["layers-plus","F0E4D"],["layers-remove","F0E4E"],["layers-search","F1206"],["layers-search-outline","F1207"],["layers-triple","F0F58"],["layers-triple-outline","F0F59"],["lead-pencil","F064F"],["leaf","F032A"],["leaf-maple","F0C93"],["leaf-maple-off","F12DA"],["leaf-off","F12D9"],["leak","F0DD7"],["leak-off","F0DD8"],["led-off","F032B"],["led-on","F032C"],["led-outline","F032D"],["led-strip","F07D6"],["led-strip-variant","F1051"],["led-variant-off","F032E"],["led-variant-on","F032F"],["led-variant-outline","F0330"],["leek","F117D"],["less-than","F097C"],["less-than-or-equal","F097D"],["library","F0331"],["library-shelves","F0BA9"],["license","F0FC3"],["lifebuoy","F087E"],["light-switch","F097E"],["lightbulb","F0335"],["lightbulb-cfl","F1208"],["lightbulb-cfl-off","F1209"],["lightbulb-cfl-spiral","F1275"],["lightbulb-cfl-spiral-off","F12C3"],["lightbulb-group","F1253"],["lightbulb-group-off","F12CD"],["lightbulb-group-off-outline","F12CE"],["lightbulb-group-outline","F1254"],["lightbulb-multiple","F1255"],["lightbulb-multiple-off","F12CF"],["lightbulb-multiple-off-outline","F12D0"],["lightbulb-multiple-outline","F1256"],["lightbulb-off","F0E4F"],["lightbulb-off-outline","F0E50"],["lightbulb-on","F06E8"],["lightbulb-on-outline","F06E9"],["lightbulb-outline","F0336"],["lighthouse","F09FF"],["lighthouse-on","F0A00"],["lightning-bolt","F140B"],["lightning-bolt-outline","F140C"],["lingerie","F1476"],["link","F0337"],["link-box","F0D1A"],["link-box-outline","F0D1B"],["link-box-variant","F0D1C"],["link-box-variant-outline","F0D1D"],["link-lock","F10BA"],["link-off","F0338"],["link-plus","F0C94"],["link-variant","F0339"],["link-variant-minus","F10FF"],["link-variant-off","F033A"],["link-variant-plus","F1100"],["link-variant-remove","F1101"],["linkedin","F033B"],["linux","F033D"],["linux-mint","F08ED"],["lipstick","F13B5"],["list-status","F15AB"],["litecoin","F0A61"],["loading","F0772"],["location-enter","F0FC4"],["location-exit","F0FC5"],["lock","F033E"],["lock-alert","F08EE"],["lock-alert-outline","F15D1"],["lock-check","F139A"],["lock-clock","F097F"],["lock-open","F033F"],["lock-open-alert","F139B"],["lock-open-alert-outline","F15D2"],["lock-open-check","F139C"],["lock-open-outline","F0340"],["lock-open-variant","F0FC6"],["lock-open-variant-outline","F0FC7"],["lock-outline","F0341"],["lock-pattern","F06EA"],["lock-plus","F05FB"],["lock-question","F08EF"],["lock-reset","F0773"],["lock-smart","F08B2"],["locker","F07D7"],["locker-multiple","F07D8"],["login","F0342"],["login-variant","F05FC"],["logout","F0343"],["logout-variant","F05FD"],["longitude","F0F5A"],["looks","F0344"],["lotion","F1582"],["lotion-outline","F1583"],["lotion-plus","F1584"],["lotion-plus-outline","F1585"],["loupe","F0345"],["lumx","F0346"],["lungs","F1084"],["magnet","F0347"],["magnet-on","F0348"],["magnify","F0349"],["magnify-close","F0980"],["magnify-minus","F034A"],["magnify-minus-cursor","F0A62"],["magnify-minus-outline","F06EC"],["magnify-plus","F034B"],["magnify-plus-cursor","F0A63"],["magnify-plus-outline","F06ED"],["magnify-remove-cursor","F120C"],["magnify-remove-outline","F120D"],["magnify-scan","F1276"],["mail","F0EBB"],["mailbox","F06EE"],["mailbox-open","F0D88"],["mailbox-open-outline","F0D89"],["mailbox-open-up","F0D8A"],["mailbox-open-up-outline","F0D8B"],["mailbox-outline","F0D8C"],["mailbox-up","F0D8D"],["mailbox-up-outline","F0D8E"],["manjaro","F160A"],["map","F034D"],["map-check","F0EBC"],["map-check-outline","F0EBD"],["map-clock","F0D1E"],["map-clock-outline","F0D1F"],["map-legend","F0A01"],["map-marker","F034E"],["map-marker-alert","F0F05"],["map-marker-alert-outline","F0F06"],["map-marker-check","F0C95"],["map-marker-check-outline","F12FB"],["map-marker-circle","F034F"],["map-marker-distance","F08F0"],["map-marker-down","F1102"],["map-marker-left","F12DB"],["map-marker-left-outline","F12DD"],["map-marker-minus","F0650"],["map-marker-minus-outline","F12F9"],["map-marker-multiple","F0350"],["map-marker-multiple-outline","F1277"],["map-marker-off","F0351"],["map-marker-off-outline","F12FD"],["map-marker-outline","F07D9"],["map-marker-path","F0D20"],["map-marker-plus","F0651"],["map-marker-plus-outline","F12F8"],["map-marker-question","F0F07"],["map-marker-question-outline","F0F08"],["map-marker-radius","F0352"],["map-marker-radius-outline","F12FC"],["map-marker-remove","F0F09"],["map-marker-remove-outline","F12FA"],["map-marker-remove-variant","F0F0A"],["map-marker-right","F12DC"],["map-marker-right-outline","F12DE"],["map-marker-star","F1608"],["map-marker-star-outline","F1609"],["map-marker-up","F1103"],["map-minus","F0981"],["map-outline","F0982"],["map-plus","F0983"],["map-search","F0984"],["map-search-outline","F0985"],["mapbox","F0BAA"],["margin","F0353"],["marker","F0652"],["marker-cancel","F0DD9"],["marker-check","F0355"],["mastodon","F0AD1"],["material-design","F0986"],["material-ui","F0357"],["math-compass","F0358"],["math-cos","F0C96"],["math-integral","F0FC8"],["math-integral-box","F0FC9"],["math-log","F1085"],["math-norm","F0FCA"],["math-norm-box","F0FCB"],["math-sin","F0C97"],["math-tan","F0C98"],["matrix","F0628"],["medal","F0987"],["medal-outline","F1326"],["medical-bag","F06EF"],["meditation","F117B"],["memory","F035B"],["menu","F035C"],["menu-down","F035D"],["menu-down-outline","F06B6"],["menu-left","F035E"],["menu-left-outline","F0A02"],["menu-open","F0BAB"],["menu-right","F035F"],["menu-right-outline","F0A03"],["menu-swap","F0A64"],["menu-swap-outline","F0A65"],["menu-up","F0360"],["menu-up-outline","F06B7"],["merge","F0F5C"],["message","F0361"],["message-alert","F0362"],["message-alert-outline","F0A04"],["message-arrow-left","F12F2"],["message-arrow-left-outline","F12F3"],["message-arrow-right","F12F4"],["message-arrow-right-outline","F12F5"],["message-bookmark","F15AC"],["message-bookmark-outline","F15AD"],["message-bulleted","F06A2"],["message-bulleted-off","F06A3"],["message-cog","F06F1"],["message-cog-outline","F1172"],["message-draw","F0363"],["message-flash","F15A9"],["message-flash-outline","F15AA"],["message-image","F0364"],["message-image-outline","F116C"],["message-lock","F0FCC"],["message-lock-outline","F116D"],["message-minus","F116E"],["message-minus-outline","F116F"],["message-outline","F0365"],["message-plus","F0653"],["message-plus-outline","F10BB"],["message-processing","F0366"],["message-processing-outline","F1170"],["message-reply","F0367"],["message-reply-text","F0368"],["message-settings","F06F0"],["message-settings-outline","F1171"],["message-text","F0369"],["message-text-clock","F1173"],["message-text-clock-outline","F1174"],["message-text-lock","F0FCD"],["message-text-lock-outline","F1175"],["message-text-outline","F036A"],["message-video","F036B"],["meteor","F0629"],["metronome","F07DA"],["metronome-tick","F07DB"],["micro-sd","F07DC"],["microphone","F036C"],["microphone-minus","F08B3"],["microphone-off","F036D"],["microphone-outline","F036E"],["microphone-plus","F08B4"],["microphone-settings","F036F"],["microphone-variant","F0370"],["microphone-variant-off","F0371"],["microscope","F0654"],["microsoft","F0372"],["microsoft-access","F138E"],["microsoft-azure","F0805"],["microsoft-azure-devops","F0FD5"],["microsoft-bing","F00A4"],["microsoft-dynamics-365","F0988"],["microsoft-edge","F01E9"],["microsoft-edge-legacy","F1250"],["microsoft-excel","F138F"],["microsoft-internet-explorer","F0300"],["microsoft-office","F03C6"],["microsoft-onedrive","F03CA"],["microsoft-onenote","F0747"],["microsoft-outlook","F0D22"],["microsoft-powerpoint","F1390"],["microsoft-sharepoint","F1391"],["microsoft-teams","F02BB"],["microsoft-visual-studio","F0610"],["microsoft-visual-studio-code","F0A1E"],["microsoft-windows","F05B3"],["microsoft-windows-classic","F0A21"],["microsoft-word","F1392"],["microsoft-xbox","F05B9"],["microsoft-xbox-controller","F05BA"],["microsoft-xbox-controller-battery-alert","F074B"],["microsoft-xbox-controller-battery-charging","F0A22"],["microsoft-xbox-controller-battery-empty","F074C"],["microsoft-xbox-controller-battery-full","F074D"],["microsoft-xbox-controller-battery-low","F074E"],["microsoft-xbox-controller-battery-medium","F074F"],["microsoft-xbox-controller-battery-unknown","F0750"],["microsoft-xbox-controller-menu","F0E6F"],["microsoft-xbox-controller-off","F05BB"],["microsoft-xbox-controller-view","F0E70"],["microsoft-yammer","F0789"],["microwave","F0C99"],["microwave-off","F1423"],["middleware","F0F5D"],["middleware-outline","F0F5E"],["midi","F08F1"],["midi-port","F08F2"],["mine","F0DDA"],["minecraft","F0373"],["mini-sd","F0A05"],["minidisc","F0A06"],["minus","F0374"],["minus-box","F0375"],["minus-box-multiple","F1141"],["minus-box-multiple-outline","F1142"],["minus-box-outline","F06F2"],["minus-circle","F0376"],["minus-circle-multiple","F035A"],["minus-circle-multiple-outline","F0AD3"],["minus-circle-off","F1459"],["minus-circle-off-outline","F145A"],["minus-circle-outline","F0377"],["minus-network","F0378"],["minus-network-outline","F0C9A"],["mirror","F11FD"],["mixed-martial-arts","F0D8F"],["mixed-reality","F087F"],["molecule","F0BAC"],["molecule-co","F12FE"],["molecule-co2","F07E4"],["monitor","F0379"],["monitor-cellphone","F0989"],["monitor-cellphone-star","F098A"],["monitor-clean","F1104"],["monitor-dashboard","F0A07"],["monitor-edit","F12C6"],["monitor-eye","F13B4"],["monitor-lock","F0DDB"],["monitor-multiple","F037A"],["monitor-off","F0D90"],["monitor-screenshot","F0E51"],["monitor-share","F1483"],["monitor-speaker","F0F5F"],["monitor-speaker-off","F0F60"],["monitor-star","F0DDC"],["moon-first-quarter","F0F61"],["moon-full","F0F62"],["moon-last-quarter","F0F63"],["moon-new","F0F64"],["moon-waning-crescent","F0F65"],["moon-waning-gibbous","F0F66"],["moon-waxing-crescent","F0F67"],["moon-waxing-gibbous","F0F68"],["moped","F1086"],["moped-electric","F15B7"],["moped-electric-outline","F15B8"],["moped-outline","F15B9"],["more","F037B"],["mother-heart","F1314"],["mother-nurse","F0D21"],["motion","F15B2"],["motion-outline","F15B3"],["motion-pause","F1590"],["motion-pause-outline","F1592"],["motion-play","F158F"],["motion-play-outline","F1591"],["motion-sensor","F0D91"],["motion-sensor-off","F1435"],["motorbike","F037C"],["motorbike-electric","F15BA"],["mouse","F037D"],["mouse-bluetooth","F098B"],["mouse-move-down","F1550"],["mouse-move-up","F1551"],["mouse-move-vertical","F1552"],["mouse-off","F037E"],["mouse-variant","F037F"],["mouse-variant-off","F0380"],["move-resize","F0655"],["move-resize-variant","F0656"],["movie","F0381"],["movie-edit","F1122"],["movie-edit-outline","F1123"],["movie-filter","F1124"],["movie-filter-outline","F1125"],["movie-open","F0FCE"],["movie-open-outline","F0FCF"],["movie-outline","F0DDD"],["movie-roll","F07DE"],["movie-search","F11D2"],["movie-search-outline","F11D3"],["muffin","F098C"],["multiplication","F0382"],["multiplication-box","F0383"],["mushroom","F07DF"],["mushroom-off","F13FA"],["mushroom-off-outline","F13FB"],["mushroom-outline","F07E0"],["music","F075A"],["music-accidental-double-flat","F0F69"],["music-accidental-double-sharp","F0F6A"],["music-accidental-flat","F0F6B"],["music-accidental-natural","F0F6C"],["music-accidental-sharp","F0F6D"],["music-box","F0384"],["music-box-multiple","F0333"],["music-box-multiple-outline","F0F04"],["music-box-outline","F0385"],["music-circle","F0386"],["music-circle-outline","F0AD4"],["music-clef-alto","F0F6E"],["music-clef-bass","F0F6F"],["music-clef-treble","F0F70"],["music-note","F0387"],["music-note-bluetooth","F05FE"],["music-note-bluetooth-off","F05FF"],["music-note-eighth","F0388"],["music-note-eighth-dotted","F0F71"],["music-note-half","F0389"],["music-note-half-dotted","F0F72"],["music-note-off","F038A"],["music-note-off-outline","F0F73"],["music-note-outline","F0F74"],["music-note-plus","F0DDE"],["music-note-quarter","F038B"],["music-note-quarter-dotted","F0F75"],["music-note-sixteenth","F038C"],["music-note-sixteenth-dotted","F0F76"],["music-note-whole","F038D"],["music-note-whole-dotted","F0F77"],["music-off","F075B"],["music-rest-eighth","F0F78"],["music-rest-half","F0F79"],["music-rest-quarter","F0F7A"],["music-rest-sixteenth","F0F7B"],["music-rest-whole","F0F7C"],["mustache","F15DE"],["nail","F0DDF"],["nas","F08F3"],["nativescript","F0880"],["nature","F038E"],["nature-people","F038F"],["navigation","F0390"],["navigation-outline","F1607"],["near-me","F05CD"],["necklace","F0F0B"],["needle","F0391"],["netflix","F0746"],["network","F06F3"],["network-off","F0C9B"],["network-off-outline","F0C9C"],["network-outline","F0C9D"],["network-strength-1","F08F4"],["network-strength-1-alert","F08F5"],["network-strength-2","F08F6"],["network-strength-2-alert","F08F7"],["network-strength-3","F08F8"],["network-strength-3-alert","F08F9"],["network-strength-4","F08FA"],["network-strength-4-alert","F08FB"],["network-strength-off","F08FC"],["network-strength-off-outline","F08FD"],["network-strength-outline","F08FE"],["new-box","F0394"],["newspaper","F0395"],["newspaper-minus","F0F0C"],["newspaper-plus","F0F0D"],["newspaper-variant","F1001"],["newspaper-variant-multiple","F1002"],["newspaper-variant-multiple-outline","F1003"],["newspaper-variant-outline","F1004"],["nfc","F0396"],["nfc-search-variant","F0E53"],["nfc-tap","F0397"],["nfc-variant","F0398"],["nfc-variant-off","F0E54"],["ninja","F0774"],["nintendo-game-boy","F1393"],["nintendo-switch","F07E1"],["nintendo-wii","F05AB"],["nintendo-wiiu","F072D"],["nix","F1105"],["nodejs","F0399"],["noodles","F117E"],["not-equal","F098D"],["not-equal-variant","F098E"],["note","F039A"],["note-multiple","F06B8"],["note-multiple-outline","F06B9"],["note-outline","F039B"],["note-plus","F039C"],["note-plus-outline","F039D"],["note-text","F039E"],["note-text-outline","F11D7"],["notebook","F082E"],["notebook-check","F14F5"],["notebook-check-outline","F14F6"],["notebook-edit","F14E7"],["notebook-edit-outline","F14E9"],["notebook-minus","F1610"],["notebook-minus-outline","F1611"],["notebook-multiple","F0E55"],["notebook-outline","F0EBF"],["notebook-plus","F1612"],["notebook-plus-outline","F1613"],["notebook-remove","F1614"],["notebook-remove-outline","F1615"],["notification-clear-all","F039F"],["npm","F06F7"],["nuke","F06A4"],["null","F07E2"],["numeric","F03A0"],["numeric-0","F0B39"],["numeric-0-box","F03A1"],["numeric-0-box-multiple","F0F0E"],["numeric-0-box-multiple-outline","F03A2"],["numeric-0-box-outline","F03A3"],["numeric-0-circle","F0C9E"],["numeric-0-circle-outline","F0C9F"],["numeric-1","F0B3A"],["numeric-1-box","F03A4"],["numeric-1-box-multiple","F0F0F"],["numeric-1-box-multiple-outline","F03A5"],["numeric-1-box-outline","F03A6"],["numeric-1-circle","F0CA0"],["numeric-1-circle-outline","F0CA1"],["numeric-10","F0FE9"],["numeric-10-box","F0F7D"],["numeric-10-box-multiple","F0FEA"],["numeric-10-box-multiple-outline","F0FEB"],["numeric-10-box-outline","F0F7E"],["numeric-10-circle","F0FEC"],["numeric-10-circle-outline","F0FED"],["numeric-2","F0B3B"],["numeric-2-box","F03A7"],["numeric-2-box-multiple","F0F10"],["numeric-2-box-multiple-outline","F03A8"],["numeric-2-box-outline","F03A9"],["numeric-2-circle","F0CA2"],["numeric-2-circle-outline","F0CA3"],["numeric-3","F0B3C"],["numeric-3-box","F03AA"],["numeric-3-box-multiple","F0F11"],["numeric-3-box-multiple-outline","F03AB"],["numeric-3-box-outline","F03AC"],["numeric-3-circle","F0CA4"],["numeric-3-circle-outline","F0CA5"],["numeric-4","F0B3D"],["numeric-4-box","F03AD"],["numeric-4-box-multiple","F0F12"],["numeric-4-box-multiple-outline","F03B2"],["numeric-4-box-outline","F03AE"],["numeric-4-circle","F0CA6"],["numeric-4-circle-outline","F0CA7"],["numeric-5","F0B3E"],["numeric-5-box","F03B1"],["numeric-5-box-multiple","F0F13"],["numeric-5-box-multiple-outline","F03AF"],["numeric-5-box-outline","F03B0"],["numeric-5-circle","F0CA8"],["numeric-5-circle-outline","F0CA9"],["numeric-6","F0B3F"],["numeric-6-box","F03B3"],["numeric-6-box-multiple","F0F14"],["numeric-6-box-multiple-outline","F03B4"],["numeric-6-box-outline","F03B5"],["numeric-6-circle","F0CAA"],["numeric-6-circle-outline","F0CAB"],["numeric-7","F0B40"],["numeric-7-box","F03B6"],["numeric-7-box-multiple","F0F15"],["numeric-7-box-multiple-outline","F03B7"],["numeric-7-box-outline","F03B8"],["numeric-7-circle","F0CAC"],["numeric-7-circle-outline","F0CAD"],["numeric-8","F0B41"],["numeric-8-box","F03B9"],["numeric-8-box-multiple","F0F16"],["numeric-8-box-multiple-outline","F03BA"],["numeric-8-box-outline","F03BB"],["numeric-8-circle","F0CAE"],["numeric-8-circle-outline","F0CAF"],["numeric-9","F0B42"],["numeric-9-box","F03BC"],["numeric-9-box-multiple","F0F17"],["numeric-9-box-multiple-outline","F03BD"],["numeric-9-box-outline","F03BE"],["numeric-9-circle","F0CB0"],["numeric-9-circle-outline","F0CB1"],["numeric-9-plus","F0FEE"],["numeric-9-plus-box","F03BF"],["numeric-9-plus-box-multiple","F0F18"],["numeric-9-plus-box-multiple-outline","F03C0"],["numeric-9-plus-box-outline","F03C1"],["numeric-9-plus-circle","F0CB2"],["numeric-9-plus-circle-outline","F0CB3"],["numeric-negative-1","F1052"],["numeric-positive-1","F15CB"],["nut","F06F8"],["nutrition","F03C2"],["nuxt","F1106"],["oar","F067C"],["ocarina","F0DE0"],["oci","F12E9"],["ocr","F113A"],["octagon","F03C3"],["octagon-outline","F03C4"],["octagram","F06F9"],["octagram-outline","F0775"],["odnoklassniki","F03C5"],["offer","F121B"],["office-building","F0991"],["office-building-marker","F1520"],["office-building-marker-outline","F1521"],["office-building-outline","F151F"],["oil","F03C7"],["oil-lamp","F0F19"],["oil-level","F1053"],["oil-temperature","F0FF8"],["omega","F03C9"],["one-up","F0BAD"],["onepassword","F0881"],["opacity","F05CC"],["open-in-app","F03CB"],["open-in-new","F03CC"],["open-source-initiative","F0BAE"],["openid","F03CD"],["opera","F03CE"],["orbit","F0018"],["orbit-variant","F15DB"],["order-alphabetical-ascending","F020D"],["order-alphabetical-descending","F0D07"],["order-bool-ascending","F02BE"],["order-bool-ascending-variant","F098F"],["order-bool-descending","F1384"],["order-bool-descending-variant","F0990"],["order-numeric-ascending","F0545"],["order-numeric-descending","F0546"],["origin","F0B43"],["ornament","F03CF"],["ornament-variant","F03D0"],["outdoor-lamp","F1054"],["overscan","F1005"],["owl","F03D2"],["pac-man","F0BAF"],["package","F03D3"],["package-down","F03D4"],["package-up","F03D5"],["package-variant","F03D6"],["package-variant-closed","F03D7"],["page-first","F0600"],["page-last","F0601"],["page-layout-body","F06FA"],["page-layout-footer","F06FB"],["page-layout-header","F06FC"],["page-layout-header-footer","F0F7F"],["page-layout-sidebar-left","F06FD"],["page-layout-sidebar-right","F06FE"],["page-next","F0BB0"],["page-next-outline","F0BB1"],["page-previous","F0BB2"],["page-previous-outline","F0BB3"],["pail","F1417"],["pail-minus","F1437"],["pail-minus-outline","F143C"],["pail-off","F1439"],["pail-off-outline","F143E"],["pail-outline","F143A"],["pail-plus","F1436"],["pail-plus-outline","F143B"],["pail-remove","F1438"],["pail-remove-outline","F143D"],["palette","F03D8"],["palette-advanced","F03D9"],["palette-outline","F0E0C"],["palette-swatch","F08B5"],["palette-swatch-outline","F135C"],["palm-tree","F1055"],["pan","F0BB4"],["pan-bottom-left","F0BB5"],["pan-bottom-right","F0BB6"],["pan-down","F0BB7"],["pan-horizontal","F0BB8"],["pan-left","F0BB9"],["pan-right","F0BBA"],["pan-top-left","F0BBB"],["pan-top-right","F0BBC"],["pan-up","F0BBD"],["pan-vertical","F0BBE"],["panda","F03DA"],["pandora","F03DB"],["panorama","F03DC"],["panorama-fisheye","F03DD"],["panorama-horizontal","F03DE"],["panorama-vertical","F03DF"],["panorama-wide-angle","F03E0"],["paper-cut-vertical","F03E1"],["paper-roll","F1157"],["paper-roll-outline","F1158"],["paperclip","F03E2"],["parachute","F0CB4"],["parachute-outline","F0CB5"],["parking","F03E3"],["party-popper","F1056"],["passport","F07E3"],["passport-biometric","F0DE1"],["pasta","F1160"],["patio-heater","F0F80"],["patreon","F0882"],["pause","F03E4"],["pause-circle","F03E5"],["pause-circle-outline","F03E6"],["pause-octagon","F03E7"],["pause-octagon-outline","F03E8"],["paw","F03E9"],["paw-off","F0657"],["pdf-box","F0E56"],["peace","F0884"],["peanut","F0FFC"],["peanut-off","F0FFD"],["peanut-off-outline","F0FFF"],["peanut-outline","F0FFE"],["pen","F03EA"],["pen-lock","F0DE2"],["pen-minus","F0DE3"],["pen-off","F0DE4"],["pen-plus","F0DE5"],["pen-remove","F0DE6"],["pencil","F03EB"],["pencil-box","F03EC"],["pencil-box-multiple","F1144"],["pencil-box-multiple-outline","F1145"],["pencil-box-outline","F03ED"],["pencil-circle","F06FF"],["pencil-circle-outline","F0776"],["pencil-lock","F03EE"],["pencil-lock-outline","F0DE7"],["pencil-minus","F0DE8"],["pencil-minus-outline","F0DE9"],["pencil-off","F03EF"],["pencil-off-outline","F0DEA"],["pencil-outline","F0CB6"],["pencil-plus","F0DEB"],["pencil-plus-outline","F0DEC"],["pencil-remove","F0DED"],["pencil-remove-outline","F0DEE"],["pencil-ruler","F1353"],["penguin","F0EC0"],["pentagon","F0701"],["pentagon-outline","F0700"],["percent","F03F0"],["percent-outline","F1278"],["periodic-table","F08B6"],["perspective-less","F0D23"],["perspective-more","F0D24"],["pharmacy","F03F1"],["phone","F03F2"],["phone-alert","F0F1A"],["phone-alert-outline","F118E"],["phone-bluetooth","F03F3"],["phone-bluetooth-outline","F118F"],["phone-cancel","F10BC"],["phone-cancel-outline","F1190"],["phone-check","F11A9"],["phone-check-outline","F11AA"],["phone-classic","F0602"],["phone-classic-off","F1279"],["phone-dial","F1559"],["phone-dial-outline","F155A"],["phone-forward","F03F4"],["phone-forward-outline","F1191"],["phone-hangup","F03F5"],["phone-hangup-outline","F1192"],["phone-in-talk","F03F6"],["phone-in-talk-outline","F1182"],["phone-incoming","F03F7"],["phone-incoming-outline","F1193"],["phone-lock","F03F8"],["phone-lock-outline","F1194"],["phone-log","F03F9"],["phone-log-outline","F1195"],["phone-message","F1196"],["phone-message-outline","F1197"],["phone-minus","F0658"],["phone-minus-outline","F1198"],["phone-missed","F03FA"],["phone-missed-outline","F11A5"],["phone-off","F0DEF"],["phone-off-outline","F11A6"],["phone-outgoing","F03FB"],["phone-outgoing-outline","F1199"],["phone-outline","F0DF0"],["phone-paused","F03FC"],["phone-paused-outline","F119A"],["phone-plus","F0659"],["phone-plus-outline","F119B"],["phone-remove","F152F"],["phone-remove-outline","F1530"],["phone-return","F082F"],["phone-return-outline","F119C"],["phone-ring","F11AB"],["phone-ring-outline","F11AC"],["phone-rotate-landscape","F0885"],["phone-rotate-portrait","F0886"],["phone-settings","F03FD"],["phone-settings-outline","F119D"],["phone-voip","F03FE"],["pi","F03FF"],["pi-box","F0400"],["pi-hole","F0DF1"],["piano","F067D"],["pickaxe","F08B7"],["picture-in-picture-bottom-right","F0E57"],["picture-in-picture-bottom-right-outline","F0E58"],["picture-in-picture-top-right","F0E59"],["picture-in-picture-top-right-outline","F0E5A"],["pier","F0887"],["pier-crane","F0888"],["pig","F0401"],["pig-variant","F1006"],["piggy-bank","F1007"],["pill","F0402"],["pillar","F0702"],["pin","F0403"],["pin-off","F0404"],["pin-off-outline","F0930"],["pin-outline","F0931"],["pine-tree","F0405"],["pine-tree-box","F0406"],["pine-tree-fire","F141A"],["pinterest","F0407"],["pinwheel","F0AD5"],["pinwheel-outline","F0AD6"],["pipe","F07E5"],["pipe-disconnected","F07E6"],["pipe-leak","F0889"],["pipe-wrench","F1354"],["pirate","F0A08"],["pistol","F0703"],["piston","F088A"],["pitchfork","F1553"],["pizza","F0409"],["play","F040A"],["play-box","F127A"],["play-box-multiple","F0D19"],["play-box-multiple-outline","F13E6"],["play-box-outline","F040B"],["play-circle","F040C"],["play-circle-outline","F040D"],["play-network","F088B"],["play-network-outline","F0CB7"],["play-outline","F0F1B"],["play-pause","F040E"],["play-protected-content","F040F"],["play-speed","F08FF"],["playlist-check","F05C7"],["playlist-edit","F0900"],["playlist-minus","F0410"],["playlist-music","F0CB8"],["playlist-music-outline","F0CB9"],["playlist-play","F0411"],["playlist-plus","F0412"],["playlist-remove","F0413"],["playlist-star","F0DF2"],["plex","F06BA"],["plus","F0415"],["plus-box","F0416"],["plus-box-multiple","F0334"],["plus-box-multiple-outline","F1143"],["plus-box-outline","F0704"],["plus-circle","F0417"],["plus-circle-multiple","F034C"],["plus-circle-multiple-outline","F0418"],["plus-circle-outline","F0419"],["plus-minus","F0992"],["plus-minus-box","F0993"],["plus-minus-variant","F14C9"],["plus-network","F041A"],["plus-network-outline","F0CBA"],["plus-one","F041B"],["plus-outline","F0705"],["plus-thick","F11EC"],["podcast","F0994"],["podium","F0D25"],["podium-bronze","F0D26"],["podium-gold","F0D27"],["podium-silver","F0D28"],["point-of-sale","F0D92"],["pokeball","F041D"],["pokemon-go","F0A09"],["poker-chip","F0830"],["polaroid","F041E"],["police-badge","F1167"],["police-badge-outline","F1168"],["poll","F041F"],["poll-box","F0420"],["poll-box-outline","F127B"],["polo","F14C3"],["polymer","F0421"],["pool","F0606"],["popcorn","F0422"],["post","F1008"],["post-outline","F1009"],["postage-stamp","F0CBB"],["pot","F02E5"],["pot-mix","F065B"],["pot-mix-outline","F0677"],["pot-outline","F02FF"],["pot-steam","F065A"],["pot-steam-outline","F0326"],["pound","F0423"],["pound-box","F0424"],["pound-box-outline","F117F"],["power","F0425"],["power-cycle","F0901"],["power-off","F0902"],["power-on","F0903"],["power-plug","F06A5"],["power-plug-off","F06A6"],["power-plug-off-outline","F1424"],["power-plug-outline","F1425"],["power-settings","F0426"],["power-sleep","F0904"],["power-socket","F0427"],["power-socket-au","F0905"],["power-socket-de","F1107"],["power-socket-eu","F07E7"],["power-socket-fr","F1108"],["power-socket-it","F14FF"],["power-socket-jp","F1109"],["power-socket-uk","F07E8"],["power-socket-us","F07E9"],["power-standby","F0906"],["powershell","F0A0A"],["prescription","F0706"],["presentation","F0428"],["presentation-play","F0429"],["pretzel","F1562"],["printer","F042A"],["printer-3d","F042B"],["printer-3d-nozzle","F0E5B"],["printer-3d-nozzle-alert","F11C0"],["printer-3d-nozzle-alert-outline","F11C1"],["printer-3d-nozzle-outline","F0E5C"],["printer-alert","F042C"],["printer-check","F1146"],["printer-eye","F1458"],["printer-off","F0E5D"],["printer-pos","F1057"],["printer-search","F1457"],["printer-settings","F0707"],["printer-wireless","F0A0B"],["priority-high","F0603"],["priority-low","F0604"],["professional-hexagon","F042D"],["progress-alert","F0CBC"],["progress-check","F0995"],["progress-clock","F0996"],["progress-close","F110A"],["progress-download","F0997"],["progress-question","F1522"],["progress-upload","F0998"],["progress-wrench","F0CBD"],["projector","F042E"],["projector-screen","F042F"],["propane-tank","F1357"],["propane-tank-outline","F1358"],["protocol","F0FD8"],["publish","F06A7"],["pulse","F0430"],["pump","F1402"],["pumpkin","F0BBF"],["purse","F0F1C"],["purse-outline","F0F1D"],["puzzle","F0431"],["puzzle-check","F1426"],["puzzle-check-outline","F1427"],["puzzle-edit","F14D3"],["puzzle-edit-outline","F14D9"],["puzzle-heart","F14D4"],["puzzle-heart-outline","F14DA"],["puzzle-minus","F14D1"],["puzzle-minus-outline","F14D7"],["puzzle-outline","F0A66"],["puzzle-plus","F14D0"],["puzzle-plus-outline","F14D6"],["puzzle-remove","F14D2"],["puzzle-remove-outline","F14D8"],["puzzle-star","F14D5"],["puzzle-star-outline","F14DB"],["qi","F0999"],["qqchat","F0605"],["qrcode","F0432"],["qrcode-edit","F08B8"],["qrcode-minus","F118C"],["qrcode-plus","F118B"],["qrcode-remove","F118D"],["qrcode-scan","F0433"],["quadcopter","F0434"],["quality-high","F0435"],["quality-low","F0A0C"],["quality-medium","F0A0D"],["quora","F0D29"],["rabbit","F0907"],["racing-helmet","F0D93"],["racquetball","F0D94"],["radar","F0437"],["radiator","F0438"],["radiator-disabled","F0AD7"],["radiator-off","F0AD8"],["radio","F0439"],["radio-am","F0CBE"],["radio-fm","F0CBF"],["radio-handheld","F043A"],["radio-off","F121C"],["radio-tower","F043B"],["radioactive","F043C"],["radioactive-off","F0EC1"],["radiobox-blank","F043D"],["radiobox-marked","F043E"],["radiology-box","F14C5"],["radiology-box-outline","F14C6"],["radius","F0CC0"],["radius-outline","F0CC1"],["railroad-light","F0F1E"],["rake","F1544"],["raspberry-pi","F043F"],["ray-end","F0440"],["ray-end-arrow","F0441"],["ray-start","F0442"],["ray-start-arrow","F0443"],["ray-start-end","F0444"],["ray-start-vertex-end","F15D8"],["ray-vertex","F0445"],["react","F0708"],["read","F0447"],["receipt","F0449"],["record","F044A"],["record-circle","F0EC2"],["record-circle-outline","F0EC3"],["record-player","F099A"],["record-rec","F044B"],["rectangle","F0E5E"],["rectangle-outline","F0E5F"],["recycle","F044C"],["recycle-variant","F139D"],["reddit","F044D"],["redhat","F111B"],["redo","F044E"],["redo-variant","F044F"],["reflect-horizontal","F0A0E"],["reflect-vertical","F0A0F"],["refresh","F0450"],["refresh-circle","F1377"],["regex","F0451"],["registered-trademark","F0A67"],["reiterate","F1588"],["relation-many-to-many","F1496"],["relation-many-to-one","F1497"],["relation-many-to-one-or-many","F1498"],["relation-many-to-only-one","F1499"],["relation-many-to-zero-or-many","F149A"],["relation-many-to-zero-or-one","F149B"],["relation-one-or-many-to-many","F149C"],["relation-one-or-many-to-one","F149D"],["relation-one-or-many-to-one-or-many","F149E"],["relation-one-or-many-to-only-one","F149F"],["relation-one-or-many-to-zero-or-many","F14A0"],["relation-one-or-many-to-zero-or-one","F14A1"],["relation-one-to-many","F14A2"],["relation-one-to-one","F14A3"],["relation-one-to-one-or-many","F14A4"],["relation-one-to-only-one","F14A5"],["relation-one-to-zero-or-many","F14A6"],["relation-one-to-zero-or-one","F14A7"],["relation-only-one-to-many","F14A8"],["relation-only-one-to-one","F14A9"],["relation-only-one-to-one-or-many","F14AA"],["relation-only-one-to-only-one","F14AB"],["relation-only-one-to-zero-or-many","F14AC"],["relation-only-one-to-zero-or-one","F14AD"],["relation-zero-or-many-to-many","F14AE"],["relation-zero-or-many-to-one","F14AF"],["relation-zero-or-many-to-one-or-many","F14B0"],["relation-zero-or-many-to-only-one","F14B1"],["relation-zero-or-many-to-zero-or-many","F14B2"],["relation-zero-or-many-to-zero-or-one","F14B3"],["relation-zero-or-one-to-many","F14B4"],["relation-zero-or-one-to-one","F14B5"],["relation-zero-or-one-to-one-or-many","F14B6"],["relation-zero-or-one-to-only-one","F14B7"],["relation-zero-or-one-to-zero-or-many","F14B8"],["relation-zero-or-one-to-zero-or-one","F14B9"],["relative-scale","F0452"],["reload","F0453"],["reload-alert","F110B"],["reminder","F088C"],["remote","F0454"],["remote-desktop","F08B9"],["remote-off","F0EC4"],["remote-tv","F0EC5"],["remote-tv-off","F0EC6"],["rename-box","F0455"],["reorder-horizontal","F0688"],["reorder-vertical","F0689"],["repeat","F0456"],["repeat-off","F0457"],["repeat-once","F0458"],["replay","F0459"],["reply","F045A"],["reply-all","F045B"],["reply-all-outline","F0F1F"],["reply-circle","F11AE"],["reply-outline","F0F20"],["reproduction","F045C"],["resistor","F0B44"],["resistor-nodes","F0B45"],["resize","F0A68"],["resize-bottom-right","F045D"],["responsive","F045E"],["restart","F0709"],["restart-alert","F110C"],["restart-off","F0D95"],["restore","F099B"],["restore-alert","F110D"],["rewind","F045F"],["rewind-10","F0D2A"],["rewind-30","F0D96"],["rewind-5","F11F9"],["rewind-60","F160C"],["rewind-outline","F070A"],["rhombus","F070B"],["rhombus-medium","F0A10"],["rhombus-medium-outline","F14DC"],["rhombus-outline","F070C"],["rhombus-split","F0A11"],["rhombus-split-outline","F14DD"],["ribbon","F0460"],["rice","F07EA"],["rickshaw","F15BB"],["rickshaw-electric","F15BC"],["ring","F07EB"],["rivet","F0E60"],["road","F0461"],["road-variant","F0462"],["robber","F1058"],["robot","F06A9"],["robot-industrial","F0B46"],["robot-mower","F11F7"],["robot-mower-outline","F11F3"],["robot-vacuum","F070D"],["robot-vacuum-variant","F0908"],["rocket","F0463"],["rocket-launch","F14DE"],["rocket-launch-outline","F14DF"],["rocket-outline","F13AF"],["rodent","F1327"],["roller-skate","F0D2B"],["roller-skate-off","F0145"],["rollerblade","F0D2C"],["rollerblade-off","F002E"],["rollupjs","F0BC0"],["roman-numeral-1","F1088"],["roman-numeral-10","F1091"],["roman-numeral-2","F1089"],["roman-numeral-3","F108A"],["roman-numeral-4","F108B"],["roman-numeral-5","F108C"],["roman-numeral-6","F108D"],["roman-numeral-7","F108E"],["roman-numeral-8","F108F"],["roman-numeral-9","F1090"],["room-service","F088D"],["room-service-outline","F0D97"],["rotate-3d","F0EC7"],["rotate-3d-variant","F0464"],["rotate-left","F0465"],["rotate-left-variant","F0466"],["rotate-orbit","F0D98"],["rotate-right","F0467"],["rotate-right-variant","F0468"],["rounded-corner","F0607"],["router","F11E2"],["router-network","F1087"],["router-wireless","F0469"],["router-wireless-off","F15A3"],["router-wireless-settings","F0A69"],["routes","F046A"],["routes-clock","F1059"],["rowing","F0608"],["rss","F046B"],["rss-box","F046C"],["rss-off","F0F21"],["rug","F1475"],["rugby","F0D99"],["ruler","F046D"],["ruler-square","F0CC2"],["ruler-square-compass","F0EBE"],["run","F070E"],["run-fast","F046E"],["rv-truck","F11D4"],["sack","F0D2E"],["sack-percent","F0D2F"],["safe","F0A6A"],["safe-square","F127C"],["safe-square-outline","F127D"],["safety-goggles","F0D30"],["sail-boat","F0EC8"],["sale","F046F"],["salesforce","F088E"],["sass","F07EC"],["satellite","F0470"],["satellite-uplink","F0909"],["satellite-variant","F0471"],["sausage","F08BA"],["saw-blade","F0E61"],["sawtooth-wave","F147A"],["saxophone","F0609"],["scale","F0472"],["scale-balance","F05D1"],["scale-bathroom","F0473"],["scale-off","F105A"],["scan-helper","F13D8"],["scanner","F06AB"],["scanner-off","F090A"],["scatter-plot","F0EC9"],["scatter-plot-outline","F0ECA"],["school","F0474"],["school-outline","F1180"],["scissors-cutting","F0A6B"],["scooter","F15BD"],["scooter-electric","F15BE"],["scoreboard","F127E"],["scoreboard-outline","F127F"],["screen-rotation","F0475"],["screen-rotation-lock","F0478"],["screw-flat-top","F0DF3"],["screw-lag","F0DF4"],["screw-machine-flat-top","F0DF5"],["screw-machine-round-top","F0DF6"],["screw-round-top","F0DF7"],["screwdriver","F0476"],["script","F0BC1"],["script-outline","F0477"],["script-text","F0BC2"],["script-text-outline","F0BC3"],["sd","F0479"],["seal","F047A"],["seal-variant","F0FD9"],["search-web","F070F"],["seat","F0CC3"],["seat-flat","F047B"],["seat-flat-angled","F047C"],["seat-individual-suite","F047D"],["seat-legroom-extra","F047E"],["seat-legroom-normal","F047F"],["seat-legroom-reduced","F0480"],["seat-outline","F0CC4"],["seat-passenger","F1249"],["seat-recline-extra","F0481"],["seat-recline-normal","F0482"],["seatbelt","F0CC5"],["security","F0483"],["security-network","F0484"],["seed","F0E62"],["seed-off","F13FD"],["seed-off-outline","F13FE"],["seed-outline","F0E63"],["seesaw","F15A4"],["segment","F0ECB"],["select","F0485"],["select-all","F0486"],["select-color","F0D31"],["select-compare","F0AD9"],["select-drag","F0A6C"],["select-group","F0F82"],["select-inverse","F0487"],["select-marker","F1280"],["select-multiple","F1281"],["select-multiple-marker","F1282"],["select-off","F0488"],["select-place","F0FDA"],["select-search","F1204"],["selection","F0489"],["selection-drag","F0A6D"],["selection-ellipse","F0D32"],["selection-ellipse-arrow-inside","F0F22"],["selection-marker","F1283"],["selection-multiple","F1285"],["selection-multiple-marker","F1284"],["selection-off","F0777"],["selection-search","F1205"],["semantic-web","F1316"],["send","F048A"],["send-check","F1161"],["send-check-outline","F1162"],["send-circle","F0DF8"],["send-circle-outline","F0DF9"],["send-clock","F1163"],["send-clock-outline","F1164"],["send-lock","F07ED"],["send-lock-outline","F1166"],["send-outline","F1165"],["serial-port","F065C"],["server","F048B"],["server-minus","F048C"],["server-network","F048D"],["server-network-off","F048E"],["server-off","F048F"],["server-plus","F0490"],["server-remove","F0491"],["server-security","F0492"],["set-all","F0778"],["set-center","F0779"],["set-center-right","F077A"],["set-left","F077B"],["set-left-center","F077C"],["set-left-right","F077D"],["set-merge","F14E0"],["set-none","F077E"],["set-right","F077F"],["set-split","F14E1"],["set-square","F145D"],["set-top-box","F099F"],["settings-helper","F0A6E"],["shaker","F110E"],["shaker-outline","F110F"],["shape","F0831"],["shape-circle-plus","F065D"],["shape-outline","F0832"],["shape-oval-plus","F11FA"],["shape-plus","F0495"],["shape-polygon-plus","F065E"],["shape-rectangle-plus","F065F"],["shape-square-plus","F0660"],["shape-square-rounded-plus","F14FA"],["share","F0496"],["share-all","F11F4"],["share-all-outline","F11F5"],["share-circle","F11AD"],["share-off","F0F23"],["share-off-outline","F0F24"],["share-outline","F0932"],["share-variant","F0497"],["share-variant-outline","F1514"],["sheep","F0CC6"],["shield","F0498"],["shield-account","F088F"],["shield-account-outline","F0A12"],["shield-account-variant","F15A7"],["shield-account-variant-outline","F15A8"],["shield-airplane","F06BB"],["shield-airplane-outline","F0CC7"],["shield-alert","F0ECC"],["shield-alert-outline","F0ECD"],["shield-bug","F13DA"],["shield-bug-outline","F13DB"],["shield-car","F0F83"],["shield-check","F0565"],["shield-check-outline","F0CC8"],["shield-cross","F0CC9"],["shield-cross-outline","F0CCA"],["shield-edit","F11A0"],["shield-edit-outline","F11A1"],["shield-half","F1360"],["shield-half-full","F0780"],["shield-home","F068A"],["shield-home-outline","F0CCB"],["shield-key","F0BC4"],["shield-key-outline","F0BC5"],["shield-link-variant","F0D33"],["shield-link-variant-outline","F0D34"],["shield-lock","F099D"],["shield-lock-outline","F0CCC"],["shield-off","F099E"],["shield-off-outline","F099C"],["shield-outline","F0499"],["shield-plus","F0ADA"],["shield-plus-outline","F0ADB"],["shield-refresh","F00AA"],["shield-refresh-outline","F01E0"],["shield-remove","F0ADC"],["shield-remove-outline","F0ADD"],["shield-search","F0D9A"],["shield-star","F113B"],["shield-star-outline","F113C"],["shield-sun","F105D"],["shield-sun-outline","F105E"],["shield-sync","F11A2"],["shield-sync-outline","F11A3"],["ship-wheel","F0833"],["shoe-ballet","F15CA"],["shoe-cleat","F15C7"],["shoe-formal","F0B47"],["shoe-heel","F0B48"],["shoe-print","F0DFA"],["shoe-sneaker","F15C8"],["shopping","F049A"],["shopping-music","F049B"],["shopping-outline","F11D5"],["shopping-search","F0F84"],["shore","F14F9"],["shovel","F0710"],["shovel-off","F0711"],["shower","F09A0"],["shower-head","F09A1"],["shredder","F049C"],["shuffle","F049D"],["shuffle-disabled","F049E"],["shuffle-variant","F049F"],["shuriken","F137F"],["sigma","F04A0"],["sigma-lower","F062B"],["sign-caution","F04A1"],["sign-direction","F0781"],["sign-direction-minus","F1000"],["sign-direction-plus","F0FDC"],["sign-direction-remove","F0FDD"],["sign-pole","F14F8"],["sign-real-estate","F1118"],["sign-text","F0782"],["signal","F04A2"],["signal-2g","F0712"],["signal-3g","F0713"],["signal-4g","F0714"],["signal-5g","F0A6F"],["signal-cellular-1","F08BC"],["signal-cellular-2","F08BD"],["signal-cellular-3","F08BE"],["signal-cellular-outline","F08BF"],["signal-distance-variant","F0E64"],["signal-hspa","F0715"],["signal-hspa-plus","F0716"],["signal-off","F0783"],["signal-variant","F060A"],["signature","F0DFB"],["signature-freehand","F0DFC"],["signature-image","F0DFD"],["signature-text","F0DFE"],["silo","F0B49"],["silverware","F04A3"],["silverware-clean","F0FDE"],["silverware-fork","F04A4"],["silverware-fork-knife","F0A70"],["silverware-spoon","F04A5"],["silverware-variant","F04A6"],["sim","F04A7"],["sim-alert","F04A8"],["sim-alert-outline","F15D3"],["sim-off","F04A9"],["sim-off-outline","F15D4"],["sim-outline","F15D5"],["simple-icons","F131D"],["sina-weibo","F0ADF"],["sine-wave","F095B"],["sitemap","F04AA"],["size-l","F13A6"],["size-m","F13A5"],["size-s","F13A4"],["size-xl","F13A7"],["size-xs","F13A3"],["size-xxl","F13A8"],["size-xxs","F13A2"],["size-xxxl","F13A9"],["skate","F0D35"],["skateboard","F14C2"],["skew-less","F0D36"],["skew-more","F0D37"],["ski","F1304"],["ski-cross-country","F1305"],["ski-water","F1306"],["skip-backward","F04AB"],["skip-backward-outline","F0F25"],["skip-forward","F04AC"],["skip-forward-outline","F0F26"],["skip-next","F04AD"],["skip-next-circle","F0661"],["skip-next-circle-outline","F0662"],["skip-next-outline","F0F27"],["skip-previous","F04AE"],["skip-previous-circle","F0663"],["skip-previous-circle-outline","F0664"],["skip-previous-outline","F0F28"],["skull","F068C"],["skull-crossbones","F0BC6"],["skull-crossbones-outline","F0BC7"],["skull-outline","F0BC8"],["skull-scan","F14C7"],["skull-scan-outline","F14C8"],["skype","F04AF"],["skype-business","F04B0"],["slack","F04B1"],["slash-forward","F0FDF"],["slash-forward-box","F0FE0"],["sleep","F04B2"],["sleep-off","F04B3"],["slide","F15A5"],["slope-downhill","F0DFF"],["slope-uphill","F0E00"],["slot-machine","F1114"],["slot-machine-outline","F1115"],["smart-card","F10BD"],["smart-card-outline","F10BE"],["smart-card-reader","F10BF"],["smart-card-reader-outline","F10C0"],["smog","F0A71"],["smoke-detector","F0392"],["smoking","F04B4"],["smoking-off","F04B5"],["smoking-pipe","F140D"],["smoking-pipe-off","F1428"],["snake","F150E"],["snapchat","F04B6"],["snowboard","F1307"],["snowflake","F0717"],["snowflake-alert","F0F29"],["snowflake-melt","F12CB"],["snowflake-off","F14E3"],["snowflake-variant","F0F2A"],["snowman","F04B7"],["soccer","F04B8"],["soccer-field","F0834"],["social-distance-2-meters","F1579"],["social-distance-6-feet","F157A"],["sofa","F04B9"],["sofa-outline","F156D"],["sofa-single","F156E"],["sofa-single-outline","F156F"],["solar-panel","F0D9B"],["solar-panel-large","F0D9C"],["solar-power","F0A72"],["soldering-iron","F1092"],["solid","F068D"],["sony-playstation","F0414"],["sort","F04BA"],["sort-alphabetical-ascending","F05BD"],["sort-alphabetical-ascending-variant","F1148"],["sort-alphabetical-descending","F05BF"],["sort-alphabetical-descending-variant","F1149"],["sort-alphabetical-variant","F04BB"],["sort-ascending","F04BC"],["sort-bool-ascending","F1385"],["sort-bool-ascending-variant","F1386"],["sort-bool-descending","F1387"],["sort-bool-descending-variant","F1388"],["sort-calendar-ascending","F1547"],["sort-calendar-descending","F1548"],["sort-clock-ascending","F1549"],["sort-clock-ascending-outline","F154A"],["sort-clock-descending","F154B"],["sort-clock-descending-outline","F154C"],["sort-descending","F04BD"],["sort-numeric-ascending","F1389"],["sort-numeric-ascending-variant","F090D"],["sort-numeric-descending","F138A"],["sort-numeric-descending-variant","F0AD2"],["sort-numeric-variant","F04BE"],["sort-reverse-variant","F033C"],["sort-variant","F04BF"],["sort-variant-lock","F0CCD"],["sort-variant-lock-open","F0CCE"],["sort-variant-remove","F1147"],["soundcloud","F04C0"],["source-branch","F062C"],["source-branch-check","F14CF"],["source-branch-minus","F14CB"],["source-branch-plus","F14CA"],["source-branch-refresh","F14CD"],["source-branch-remove","F14CC"],["source-branch-sync","F14CE"],["source-commit","F0718"],["source-commit-end","F0719"],["source-commit-end-local","F071A"],["source-commit-local","F071B"],["source-commit-next-local","F071C"],["source-commit-start","F071D"],["source-commit-start-next-local","F071E"],["source-fork","F04C1"],["source-merge","F062D"],["source-pull","F04C2"],["source-repository","F0CCF"],["source-repository-multiple","F0CD0"],["soy-sauce","F07EE"],["soy-sauce-off","F13FC"],["spa","F0CD1"],["spa-outline","F0CD2"],["space-invaders","F0BC9"],["space-station","F1383"],["spade","F0E65"],["sparkles","F1545"],["speaker","F04C3"],["speaker-bluetooth","F09A2"],["speaker-multiple","F0D38"],["speaker-off","F04C4"],["speaker-wireless","F071F"],["speedometer","F04C5"],["speedometer-medium","F0F85"],["speedometer-slow","F0F86"],["spellcheck","F04C6"],["spider","F11EA"],["spider-thread","F11EB"],["spider-web","F0BCA"],["spirit-level","F14F1"],["spoon-sugar","F1429"],["spotify","F04C7"],["spotlight","F04C8"],["spotlight-beam","F04C9"],["spray","F0665"],["spray-bottle","F0AE0"],["sprinkler","F105F"],["sprinkler-variant","F1060"],["sprout","F0E66"],["sprout-outline","F0E67"],["square","F0764"],["square-circle","F1500"],["square-edit-outline","F090C"],["square-medium","F0A13"],["square-medium-outline","F0A14"],["square-off","F12EE"],["square-off-outline","F12EF"],["square-outline","F0763"],["square-root","F0784"],["square-root-box","F09A3"],["square-rounded","F14FB"],["square-rounded-outline","F14FC"],["square-small","F0A15"],["square-wave","F147B"],["squeegee","F0AE1"],["ssh","F08C0"],["stack-exchange","F060B"],["stack-overflow","F04CC"],["stackpath","F0359"],["stadium","F0FF9"],["stadium-variant","F0720"],["stairs","F04CD"],["stairs-box","F139E"],["stairs-down","F12BE"],["stairs-up","F12BD"],["stamper","F0D39"],["standard-definition","F07EF"],["star","F04CE"],["star-box","F0A73"],["star-box-multiple","F1286"],["star-box-multiple-outline","F1287"],["star-box-outline","F0A74"],["star-check","F1566"],["star-check-outline","F156A"],["star-circle","F04CF"],["star-circle-outline","F09A4"],["star-face","F09A5"],["star-four-points","F0AE2"],["star-four-points-outline","F0AE3"],["star-half","F0246"],["star-half-full","F04D0"],["star-minus","F1564"],["star-minus-outline","F1568"],["star-off","F04D1"],["star-off-outline","F155B"],["star-outline","F04D2"],["star-plus","F1563"],["star-plus-outline","F1567"],["star-remove","F1565"],["star-remove-outline","F1569"],["star-three-points","F0AE4"],["star-three-points-outline","F0AE5"],["state-machine","F11EF"],["steam","F04D3"],["steering","F04D4"],["steering-off","F090E"],["step-backward","F04D5"],["step-backward-2","F04D6"],["step-forward","F04D7"],["step-forward-2","F04D8"],["stethoscope","F04D9"],["sticker","F1364"],["sticker-alert","F1365"],["sticker-alert-outline","F1366"],["sticker-check","F1367"],["sticker-check-outline","F1368"],["sticker-circle-outline","F05D0"],["sticker-emoji","F0785"],["sticker-minus","F1369"],["sticker-minus-outline","F136A"],["sticker-outline","F136B"],["sticker-plus","F136C"],["sticker-plus-outline","F136D"],["sticker-remove","F136E"],["sticker-remove-outline","F136F"],["stocking","F04DA"],["stomach","F1093"],["stop","F04DB"],["stop-circle","F0666"],["stop-circle-outline","F0667"],["store","F04DC"],["store-24-hour","F04DD"],["store-outline","F1361"],["storefront","F07C7"],["storefront-outline","F10C1"],["stove","F04DE"],["strategy","F11D6"],["stretch-to-page","F0F2B"],["stretch-to-page-outline","F0F2C"],["string-lights","F12BA"],["string-lights-off","F12BB"],["subdirectory-arrow-left","F060C"],["subdirectory-arrow-right","F060D"],["submarine","F156C"],["subtitles","F0A16"],["subtitles-outline","F0A17"],["subway","F06AC"],["subway-alert-variant","F0D9D"],["subway-variant","F04DF"],["summit","F0786"],["sunglasses","F04E0"],["surround-sound","F05C5"],["surround-sound-2-0","F07F0"],["surround-sound-3-1","F07F1"],["surround-sound-5-1","F07F2"],["surround-sound-7-1","F07F3"],["svg","F0721"],["swap-horizontal","F04E1"],["swap-horizontal-bold","F0BCD"],["swap-horizontal-circle","F0FE1"],["swap-horizontal-circle-outline","F0FE2"],["swap-horizontal-variant","F08C1"],["swap-vertical","F04E2"],["swap-vertical-bold","F0BCE"],["swap-vertical-circle","F0FE3"],["swap-vertical-circle-outline","F0FE4"],["swap-vertical-variant","F08C2"],["swim","F04E3"],["switch","F04E4"],["sword","F04E5"],["sword-cross","F0787"],["syllabary-hangul","F1333"],["syllabary-hiragana","F1334"],["syllabary-katakana","F1335"],["syllabary-katakana-halfwidth","F1336"],["symbol","F1501"],["symfony","F0AE6"],["sync","F04E6"],["sync-alert","F04E7"],["sync-circle","F1378"],["sync-off","F04E8"],["tab","F04E9"],["tab-minus","F0B4B"],["tab-plus","F075C"],["tab-remove","F0B4C"],["tab-unselected","F04EA"],["table","F04EB"],["table-account","F13B9"],["table-alert","F13BA"],["table-arrow-down","F13BB"],["table-arrow-left","F13BC"],["table-arrow-right","F13BD"],["table-arrow-up","F13BE"],["table-border","F0A18"],["table-cancel","F13BF"],["table-chair","F1061"],["table-check","F13C0"],["table-clock","F13C1"],["table-cog","F13C2"],["table-column","F0835"],["table-column-plus-after","F04EC"],["table-column-plus-before","F04ED"],["table-column-remove","F04EE"],["table-column-width","F04EF"],["table-edit","F04F0"],["table-eye","F1094"],["table-eye-off","F13C3"],["table-furniture","F05BC"],["table-headers-eye","F121D"],["table-headers-eye-off","F121E"],["table-heart","F13C4"],["table-key","F13C5"],["table-large","F04F1"],["table-large-plus","F0F87"],["table-large-remove","F0F88"],["table-lock","F13C6"],["table-merge-cells","F09A6"],["table-minus","F13C7"],["table-multiple","F13C8"],["table-network","F13C9"],["table-of-contents","F0836"],["table-off","F13CA"],["table-plus","F0A75"],["table-refresh","F13A0"],["table-remove","F0A76"],["table-row","F0837"],["table-row-height","F04F2"],["table-row-plus-after","F04F3"],["table-row-plus-before","F04F4"],["table-row-remove","F04F5"],["table-search","F090F"],["table-settings","F0838"],["table-split-cell","F142A"],["table-star","F13CB"],["table-sync","F13A1"],["table-tennis","F0E68"],["tablet","F04F6"],["tablet-android","F04F7"],["tablet-cellphone","F09A7"],["tablet-dashboard","F0ECE"],["tablet-ipad","F04F8"],["taco","F0762"],["tag","F04F9"],["tag-faces","F04FA"],["tag-heart","F068B"],["tag-heart-outline","F0BCF"],["tag-minus","F0910"],["tag-minus-outline","F121F"],["tag-multiple","F04FB"],["tag-multiple-outline","F12F7"],["tag-off","F1220"],["tag-off-outline","F1221"],["tag-outline","F04FC"],["tag-plus","F0722"],["tag-plus-outline","F1222"],["tag-remove","F0723"],["tag-remove-outline","F1223"],["tag-text","F1224"],["tag-text-outline","F04FD"],["tailwind","F13FF"],["tank","F0D3A"],["tanker-truck","F0FE5"],["tape-measure","F0B4D"],["target","F04FE"],["target-account","F0BD0"],["target-variant","F0A77"],["taxi","F04FF"],["tea","F0D9E"],["tea-outline","F0D9F"],["teach","F0890"],["teamviewer","F0500"],["telegram","F0501"],["telescope","F0B4E"],["television","F0502"],["television-ambient-light","F1356"],["television-box","F0839"],["television-classic","F07F4"],["television-classic-off","F083A"],["television-clean","F1110"],["television-guide","F0503"],["television-off","F083B"],["television-pause","F0F89"],["television-play","F0ECF"],["television-stop","F0F8A"],["temperature-celsius","F0504"],["temperature-fahrenheit","F0505"],["temperature-kelvin","F0506"],["tennis","F0DA0"],["tennis-ball","F0507"],["tent","F0508"],["terraform","F1062"],["terrain","F0509"],["test-tube","F0668"],["test-tube-empty","F0911"],["test-tube-off","F0912"],["text","F09A8"],["text-account","F1570"],["text-box","F021A"],["text-box-check","F0EA6"],["text-box-check-outline","F0EA7"],["text-box-minus","F0EA8"],["text-box-minus-outline","F0EA9"],["text-box-multiple","F0AB7"],["text-box-multiple-outline","F0AB8"],["text-box-outline","F09ED"],["text-box-plus","F0EAA"],["text-box-plus-outline","F0EAB"],["text-box-remove","F0EAC"],["text-box-remove-outline","F0EAD"],["text-box-search","F0EAE"],["text-box-search-outline","F0EAF"],["text-recognition","F113D"],["text-search","F13B8"],["text-shadow","F0669"],["text-short","F09A9"],["text-subject","F09AA"],["text-to-speech","F050A"],["text-to-speech-off","F050B"],["texture","F050C"],["texture-box","F0FE6"],["theater","F050D"],["theme-light-dark","F050E"],["thermometer","F050F"],["thermometer-alert","F0E01"],["thermometer-chevron-down","F0E02"],["thermometer-chevron-up","F0E03"],["thermometer-high","F10C2"],["thermometer-lines","F0510"],["thermometer-low","F10C3"],["thermometer-minus","F0E04"],["thermometer-off","F1531"],["thermometer-plus","F0E05"],["thermostat","F0393"],["thermostat-box","F0891"],["thought-bubble","F07F6"],["thought-bubble-outline","F07F7"],["thumb-down","F0511"],["thumb-down-outline","F0512"],["thumb-up","F0513"],["thumb-up-outline","F0514"],["thumbs-up-down","F0515"],["ticket","F0516"],["ticket-account","F0517"],["ticket-confirmation","F0518"],["ticket-confirmation-outline","F13AA"],["ticket-outline","F0913"],["ticket-percent","F0724"],["ticket-percent-outline","F142B"],["tie","F0519"],["tilde","F0725"],["timelapse","F051A"],["timeline","F0BD1"],["timeline-alert","F0F95"],["timeline-alert-outline","F0F98"],["timeline-check","F1532"],["timeline-check-outline","F1533"],["timeline-clock","F11FB"],["timeline-clock-outline","F11FC"],["timeline-help","F0F99"],["timeline-help-outline","F0F9A"],["timeline-minus","F1534"],["timeline-minus-outline","F1535"],["timeline-outline","F0BD2"],["timeline-plus","F0F96"],["timeline-plus-outline","F0F97"],["timeline-remove","F1536"],["timeline-remove-outline","F1537"],["timeline-text","F0BD3"],["timeline-text-outline","F0BD4"],["timer","F13AB"],["timer-10","F051C"],["timer-3","F051D"],["timer-off","F13AC"],["timer-off-outline","F051E"],["timer-outline","F051B"],["timer-sand","F051F"],["timer-sand-empty","F06AD"],["timer-sand-full","F078C"],["timetable","F0520"],["toaster","F1063"],["toaster-off","F11B7"],["toaster-oven","F0CD3"],["toggle-switch","F0521"],["toggle-switch-off","F0522"],["toggle-switch-off-outline","F0A19"],["toggle-switch-outline","F0A1A"],["toilet","F09AB"],["toolbox","F09AC"],["toolbox-outline","F09AD"],["tools","F1064"],["tooltip","F0523"],["tooltip-account","F000C"],["tooltip-check","F155C"],["tooltip-check-outline","F155D"],["tooltip-edit","F0524"],["tooltip-edit-outline","F12C5"],["tooltip-image","F0525"],["tooltip-image-outline","F0BD5"],["tooltip-minus","F155E"],["tooltip-minus-outline","F155F"],["tooltip-outline","F0526"],["tooltip-plus","F0BD6"],["tooltip-plus-outline","F0527"],["tooltip-remove","F1560"],["tooltip-remove-outline","F1561"],["tooltip-text","F0528"],["tooltip-text-outline","F0BD7"],["tooth","F08C3"],["tooth-outline","F0529"],["toothbrush","F1129"],["toothbrush-electric","F112C"],["toothbrush-paste","F112A"],["torch","F1606"],["tortoise","F0D3B"],["toslink","F12B8"],["tournament","F09AE"],["tow-truck","F083C"],["tower-beach","F0681"],["tower-fire","F0682"],["toy-brick","F1288"],["toy-brick-marker","F1289"],["toy-brick-marker-outline","F128A"],["toy-brick-minus","F128B"],["toy-brick-minus-outline","F128C"],["toy-brick-outline","F128D"],["toy-brick-plus","F128E"],["toy-brick-plus-outline","F128F"],["toy-brick-remove","F1290"],["toy-brick-remove-outline","F1291"],["toy-brick-search","F1292"],["toy-brick-search-outline","F1293"],["track-light","F0914"],["trackpad","F07F8"],["trackpad-lock","F0933"],["tractor","F0892"],["tractor-variant","F14C4"],["trademark","F0A78"],["traffic-cone","F137C"],["traffic-light","F052B"],["train","F052C"],["train-car","F0BD8"],["train-variant","F08C4"],["tram","F052D"],["tram-side","F0FE7"],["transcribe","F052E"],["transcribe-close","F052F"],["transfer","F1065"],["transfer-down","F0DA1"],["transfer-left","F0DA2"],["transfer-right","F0530"],["transfer-up","F0DA3"],["transit-connection","F0D3C"],["transit-connection-horizontal","F1546"],["transit-connection-variant","F0D3D"],["transit-detour","F0F8B"],["transit-skip","F1515"],["transit-transfer","F06AE"],["transition","F0915"],["transition-masked","F0916"],["translate","F05CA"],["translate-off","F0E06"],["transmission-tower","F0D3E"],["trash-can","F0A79"],["trash-can-outline","F0A7A"],["tray","F1294"],["tray-alert","F1295"],["tray-full","F1296"],["tray-minus","F1297"],["tray-plus","F1298"],["tray-remove","F1299"],["treasure-chest","F0726"],["tree","F0531"],["tree-outline","F0E69"],["trello","F0532"],["trending-down","F0533"],["trending-neutral","F0534"],["trending-up","F0535"],["triangle","F0536"],["triangle-outline","F0537"],["triangle-wave","F147C"],["triforce","F0BD9"],["trophy","F0538"],["trophy-award","F0539"],["trophy-broken","F0DA4"],["trophy-outline","F053A"],["trophy-variant","F053B"],["trophy-variant-outline","F053C"],["truck","F053D"],["truck-check","F0CD4"],["truck-check-outline","F129A"],["truck-delivery","F053E"],["truck-delivery-outline","F129B"],["truck-fast","F0788"],["truck-fast-outline","F129C"],["truck-outline","F129D"],["truck-trailer","F0727"],["trumpet","F1096"],["tshirt-crew","F0A7B"],["tshirt-crew-outline","F053F"],["tshirt-v","F0A7C"],["tshirt-v-outline","F0540"],["tumble-dryer","F0917"],["tumble-dryer-alert","F11BA"],["tumble-dryer-off","F11BB"],["tune","F062E"],["tune-variant","F1542"],["tune-vertical","F066A"],["tune-vertical-variant","F1543"],["turnstile","F0CD5"],["turnstile-outline","F0CD6"],["turtle","F0CD7"],["twitch","F0543"],["twitter","F0544"],["twitter-retweet","F0547"],["two-factor-authentication","F09AF"],["typewriter","F0F2D"],["ubisoft","F0BDA"],["ubuntu","F0548"],["ufo","F10C4"],["ufo-outline","F10C5"],["ultra-high-definition","F07F9"],["umbraco","F0549"],["umbrella","F054A"],["umbrella-closed","F09B0"],["umbrella-closed-outline","F13E2"],["umbrella-closed-variant","F13E1"],["umbrella-outline","F054B"],["undo","F054C"],["undo-variant","F054D"],["unfold-less-horizontal","F054E"],["unfold-less-vertical","F0760"],["unfold-more-horizontal","F054F"],["unfold-more-vertical","F0761"],["ungroup","F0550"],["unicode","F0ED0"],["unicorn","F15C2"],["unicorn-variant","F15C3"],["unicycle","F15E5"],["unity","F06AF"],["unreal","F09B1"],["untappd","F0551"],["update","F06B0"],["upload","F0552"],["upload-lock","F1373"],["upload-lock-outline","F1374"],["upload-multiple","F083D"],["upload-network","F06F6"],["upload-network-outline","F0CD8"],["upload-off","F10C6"],["upload-off-outline","F10C7"],["upload-outline","F0E07"],["usb","F0553"],["usb-flash-drive","F129E"],["usb-flash-drive-outline","F129F"],["usb-port","F11F0"],["valve","F1066"],["valve-closed","F1067"],["valve-open","F1068"],["van-passenger","F07FA"],["van-utility","F07FB"],["vanish","F07FC"],["vanish-quarter","F1554"],["vanity-light","F11E1"],["variable","F0AE7"],["variable-box","F1111"],["vector-arrange-above","F0554"],["vector-arrange-below","F0555"],["vector-bezier","F0AE8"],["vector-circle","F0556"],["vector-circle-variant","F0557"],["vector-combine","F0558"],["vector-curve","F0559"],["vector-difference","F055A"],["vector-difference-ab","F055B"],["vector-difference-ba","F055C"],["vector-ellipse","F0893"],["vector-intersection","F055D"],["vector-line","F055E"],["vector-link","F0FE8"],["vector-point","F055F"],["vector-polygon","F0560"],["vector-polyline","F0561"],["vector-polyline-edit","F1225"],["vector-polyline-minus","F1226"],["vector-polyline-plus","F1227"],["vector-polyline-remove","F1228"],["vector-radius","F074A"],["vector-rectangle","F05C6"],["vector-selection","F0562"],["vector-square","F0001"],["vector-triangle","F0563"],["vector-union","F0564"],["vhs","F0A1B"],["vibrate","F0566"],["vibrate-off","F0CD9"],["video","F0567"],["video-3d","F07FD"],["video-3d-off","F13D9"],["video-3d-variant","F0ED1"],["video-4k-box","F083E"],["video-account","F0919"],["video-box","F00FD"],["video-box-off","F00FE"],["video-check","F1069"],["video-check-outline","F106A"],["video-high-definition","F152E"],["video-image","F091A"],["video-input-antenna","F083F"],["video-input-component","F0840"],["video-input-hdmi","F0841"],["video-input-scart","F0F8C"],["video-input-svideo","F0842"],["video-minus","F09B2"],["video-minus-outline","F02BA"],["video-off","F0568"],["video-off-outline","F0BDB"],["video-outline","F0BDC"],["video-plus","F09B3"],["video-plus-outline","F01D3"],["video-stabilization","F091B"],["video-switch","F0569"],["video-switch-outline","F0790"],["video-vintage","F0A1C"],["video-wireless","F0ED2"],["video-wireless-outline","F0ED3"],["view-agenda","F056A"],["view-agenda-outline","F11D8"],["view-array","F056B"],["view-array-outline","F1485"],["view-carousel","F056C"],["view-carousel-outline","F1486"],["view-column","F056D"],["view-column-outline","F1487"],["view-comfy","F0E6A"],["view-comfy-outline","F1488"],["view-compact","F0E6B"],["view-compact-outline","F0E6C"],["view-dashboard","F056E"],["view-dashboard-outline","F0A1D"],["view-dashboard-variant","F0843"],["view-dashboard-variant-outline","F1489"],["view-day","F056F"],["view-day-outline","F148A"],["view-grid","F0570"],["view-grid-outline","F11D9"],["view-grid-plus","F0F8D"],["view-grid-plus-outline","F11DA"],["view-headline","F0571"],["view-list","F0572"],["view-list-outline","F148B"],["view-module","F0573"],["view-module-outline","F148C"],["view-parallel","F0728"],["view-parallel-outline","F148D"],["view-quilt","F0574"],["view-quilt-outline","F148E"],["view-sequential","F0729"],["view-sequential-outline","F148F"],["view-split-horizontal","F0BCB"],["view-split-vertical","F0BCC"],["view-stream","F0575"],["view-stream-outline","F1490"],["view-week","F0576"],["view-week-outline","F1491"],["vimeo","F0577"],["violin","F060F"],["virtual-reality","F0894"],["virus","F13B6"],["virus-outline","F13B7"],["vk","F0579"],["vlc","F057C"],["voice-off","F0ED4"],["voicemail","F057D"],["volleyball","F09B4"],["volume-high","F057E"],["volume-low","F057F"],["volume-medium","F0580"],["volume-minus","F075E"],["volume-mute","F075F"],["volume-off","F0581"],["volume-plus","F075D"],["volume-source","F1120"],["volume-variant-off","F0E08"],["volume-vibrate","F1121"],["vote","F0A1F"],["vote-outline","F0A20"],["vpn","F0582"],["vuejs","F0844"],["vuetify","F0E6D"],["walk","F0583"],["wall","F07FE"],["wall-sconce","F091C"],["wall-sconce-flat","F091D"],["wall-sconce-flat-variant","F041C"],["wall-sconce-round","F0748"],["wall-sconce-round-variant","F091E"],["wallet","F0584"],["wallet-giftcard","F0585"],["wallet-membership","F0586"],["wallet-outline","F0BDD"],["wallet-plus","F0F8E"],["wallet-plus-outline","F0F8F"],["wallet-travel","F0587"],["wallpaper","F0E09"],["wan","F0588"],["wardrobe","F0F90"],["wardrobe-outline","F0F91"],["warehouse","F0F81"],["washing-machine","F072A"],["washing-machine-alert","F11BC"],["washing-machine-off","F11BD"],["watch","F0589"],["watch-export","F058A"],["watch-export-variant","F0895"],["watch-import","F058B"],["watch-import-variant","F0896"],["watch-variant","F0897"],["watch-vibrate","F06B1"],["watch-vibrate-off","F0CDA"],["water","F058C"],["water-alert","F1502"],["water-alert-outline","F1503"],["water-boiler","F0F92"],["water-boiler-alert","F11B3"],["water-boiler-off","F11B4"],["water-check","F1504"],["water-check-outline","F1505"],["water-minus","F1506"],["water-minus-outline","F1507"],["water-off","F058D"],["water-off-outline","F1508"],["water-outline","F0E0A"],["water-percent","F058E"],["water-percent-alert","F1509"],["water-plus","F150A"],["water-plus-outline","F150B"],["water-polo","F12A0"],["water-pump","F058F"],["water-pump-off","F0F93"],["water-remove","F150C"],["water-remove-outline","F150D"],["water-well","F106B"],["water-well-outline","F106C"],["watering-can","F1481"],["watering-can-outline","F1482"],["watermark","F0612"],["wave","F0F2E"],["waveform","F147D"],["waves","F078D"],["waze","F0BDE"],["weather-cloudy","F0590"],["weather-cloudy-alert","F0F2F"],["weather-cloudy-arrow-right","F0E6E"],["weather-fog","F0591"],["weather-hail","F0592"],["weather-hazy","F0F30"],["weather-hurricane","F0898"],["weather-lightning","F0593"],["weather-lightning-rainy","F067E"],["weather-night","F0594"],["weather-night-partly-cloudy","F0F31"],["weather-partly-cloudy","F0595"],["weather-partly-lightning","F0F32"],["weather-partly-rainy","F0F33"],["weather-partly-snowy","F0F34"],["weather-partly-snowy-rainy","F0F35"],["weather-pouring","F0596"],["weather-rainy","F0597"],["weather-snowy","F0598"],["weather-snowy-heavy","F0F36"],["weather-snowy-rainy","F067F"],["weather-sunny","F0599"],["weather-sunny-alert","F0F37"],["weather-sunny-off","F14E4"],["weather-sunset","F059A"],["weather-sunset-down","F059B"],["weather-sunset-up","F059C"],["weather-tornado","F0F38"],["weather-windy","F059D"],["weather-windy-variant","F059E"],["web","F059F"],["web-box","F0F94"],["web-clock","F124A"],["webcam","F05A0"],["webhook","F062F"],["webpack","F072B"],["webrtc","F1248"],["wechat","F0611"],["weight","F05A1"],["weight-gram","F0D3F"],["weight-kilogram","F05A2"],["weight-lifter","F115D"],["weight-pound","F09B5"],["whatsapp","F05A3"],["wheel-barrow","F14F2"],["wheelchair-accessibility","F05A4"],["whistle","F09B6"],["whistle-outline","F12BC"],["white-balance-auto","F05A5"],["white-balance-incandescent","F05A6"],["white-balance-iridescent","F05A7"],["white-balance-sunny","F05A8"],["widgets","F072C"],["widgets-outline","F1355"],["wifi","F05A9"],["wifi-off","F05AA"],["wifi-star","F0E0B"],["wifi-strength-1","F091F"],["wifi-strength-1-alert","F0920"],["wifi-strength-1-lock","F0921"],["wifi-strength-2","F0922"],["wifi-strength-2-alert","F0923"],["wifi-strength-2-lock","F0924"],["wifi-strength-3","F0925"],["wifi-strength-3-alert","F0926"],["wifi-strength-3-lock","F0927"],["wifi-strength-4","F0928"],["wifi-strength-4-alert","F0929"],["wifi-strength-4-lock","F092A"],["wifi-strength-alert-outline","F092B"],["wifi-strength-lock-outline","F092C"],["wifi-strength-off","F092D"],["wifi-strength-off-outline","F092E"],["wifi-strength-outline","F092F"],["wikipedia","F05AC"],["wind-turbine","F0DA5"],["window-close","F05AD"],["window-closed","F05AE"],["window-closed-variant","F11DB"],["window-maximize","F05AF"],["window-minimize","F05B0"],["window-open","F05B1"],["window-open-variant","F11DC"],["window-restore","F05B2"],["window-shutter","F111C"],["window-shutter-alert","F111D"],["window-shutter-open","F111E"],["windsock","F15FA"],["wiper","F0AE9"],["wiper-wash","F0DA6"],["wizard-hat","F1477"],["wordpress","F05B4"],["wrap","F05B6"],["wrap-disabled","F0BDF"],["wrench","F05B7"],["wrench-outline","F0BE0"],["xamarin","F0845"],["xamarin-outline","F0846"],["xing","F05BE"],["xml","F05C0"],["xmpp","F07FF"],["mdi-y-combinator","F0624"],["yahoo","F0B4F"],["yeast","F05C1"],["yin-yang","F0680"],["yoga","F117C"],["youtube","F05C3"],["youtube-gaming","F0848"],["youtube-studio","F0847"],["youtube-subscription","F0D40"],["youtube-tv","F0448"],["yurt","F1516"],["mdi-z-wave","F0AEA"],["zend","F0AEB"],["zigbee","F0D41"],["zip-box","F05C4"],["zip-box-outline","F0FFA"],["zip-disk","F0A23"],["zodiac-aquarius","F0A7D"],["zodiac-aries","F0A7E"],["zodiac-cancer","F0A7F"],["zodiac-capricorn","F0A80"],["zodiac-gemini","F0A81"],["zodiac-leo","F0A82"],["zodiac-libra","F0A83"],["zodiac-pisces","F0A84"],["zodiac-sagittarius","F0A85"],["zodiac-scorpio","F0A86"],["zodiac-taurus","F0A87"],["zodiac-virgo","F0A88"],["blank","F68C"]]);customElements.define(Ae.is,Ae);var ZT='<style>\n	:host {\n		display: block;\n	}\n\n	:host([disabled]) .tag {\n		padding-right: 9px;\n		background: #eee;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=survey][disabled]) .tag {\n		background-color: #607d8b;\n		color: rgba(255, 255, 255, 1);\n		opacity: 0.8;\n	}\n\n	:host([disabled]) .tag icon-ui {\n		display: none;\n	}\n\n	:host([disabled]) .input-wrapper {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([disabled]) .clear-btn,\n	:host([multi][disabled][has-selected-items]) .input-wrapper {\n		display: none;\n	}\n\n	.container {\n		display: flex;\n		align-items: center;\n	}\n\n	.field-item:first-of-type {\n		border-top-left-radius: 4px;\n		border-bottom-left-radius: 4px;\n	}\n\n	:host([disabled]) .field-item:nth-last-of-type(2),\n	.field-item:last-of-type {\n		border-top-right-radius: 4px;\n		border-bottom-right-radius: 4px;\n	}\n\n	.field-item {\n		margin-left: 2px;\n		margin-top: 2px;\n	}\n\n	.common-field {\n		flex-grow: 1;\n		box-sizing: border-box;\n		display: flex;\n		min-width: 1px;\n	}\n\n	:host([multi]) .common-field {\n		flex-wrap: wrap;\n		min-height: 34px;\n		min-width: 34px;\n	}\n\n	:host([multi]:not([no-border])) .common-field {\n		border: 1px dotted #a8bac3;\n		border-radius: 4px;\n		padding: 8px;\n		padding-left: calc(16px / 2 - 2px);\n		padding-top: calc(16px / 2 - 2px);\n	}\n\n	:host([show-errors]:not([valid])) input {\n		color: #d8252b;\n		border-color: #d8252b;\n		border-style: solid;\n	}\n\n	.input-wrapper {\n		position: relative;\n		display: inline-flex;\n		min-width: 0;\n		margin-bottom: 1px;\n	}\n\n	input {\n		position: relative;\n		min-width: 1px;\n		width: 230px;\n		flex-grow: 1;\n		padding: 0 8px;\n		text-overflow: ellipsis;\n	}\n\n	:host(:not([theme=survey])) input {\n		border-radius: 2px;\n	}\n\n	:host(:not([theme=survey])) input:focus,\n	input:focus {\n		color: rgba(33, 37, 43, 1);\n		border-color: #607d8b;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([focus]) .suggest-field {\n		opacity: 1;\n		pointer-events: auto;\n		transform: none;\n	}\n\n	:host([focus]) .clear-btn {\n		color: rgba(33, 37, 43, 1);\n	}\n\n	.clear-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.clear-btn {\n		position: absolute;\n		right: 0;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		flex-shrink: 0;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	:host([_clearable]) input {\n		padding-right: 34px;\n	}\n\n	:host(:not([_clearable])) .clear-btn {\n		opacity: 0;\n		pointer-events: none;\n	}\n\n	.suggest-field {\n		position: absolute;\n		left: 0;\n		top: 34px;\n		z-index: 10000;\n		min-width: 100%;\n\n		max-width: 50vw;\n		overflow: hidden;\n		box-sizing: border-box;\n\n		background-color: rgba(255, 255, 255, 1);\n		border-radius: 4px;\n		border-top-left-radius: 2px;\n		border-top-right-radius: 2px;\n\n		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);\n		opacity: 0;\n		pointer-events: none;\n		transform: translate(0, -10px);\n		transition: 0.2s;\n	}\n\n	.suggest-field .hidden-item {\n		display: none;\n	}\n\n	.suggest-render {\n		position: relative;\n		max-height: 400px;\n		max-width: 800px;\n		overflow-y: auto;\n	}\n\n	.suggest-option {\n		outline: none;\n		color: rgba(33, 37, 43, 1);\n		padding: 6px;\n		padding-left: 8px;\n		padding-right: 8px;\n		white-space: nowrap;\n		cursor: pointer;\n		transition: 0.2s;\n		transition-property: background, border;\n	}\n\n	.suggest-option.hover {\n		color: rgba(33, 37, 43, 1);\n		background-color: #eee;\n	}\n\n	.search-value-result {\n		text-decoration: underline;\n	}\n\n	.suggest-label {\n		display: block;\n		white-space: nowrap;\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	.suggest-caption {\n		display: block;\n		color: #a8bac3;\n		border-bottom: 1px dotted #a8bac3;\n		font-size: 14px;\n		padding: 8px calc(16px / 2 - 2px);\n	}\n\n	.suggest-highlight {\n		background-color: rgba(96, 125, 139, 0.25);\n		font-weight: 500;\n	}\n\n	.suggest-hidden {\n		display: none;\n	}\n\n	.suggest-msg {\n		display: flex;\n		align-items: center;\n		font-style: italic;\n		color: #a8bac3;\n		padding-left: 8px;\n		padding-right: 8px;\n		font-size: 14px;\n		height: 30px;\n	}\n\n	.suggest-add-btn {\n		cursor: pointer;\n		outline: none;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		transition: 0.2s;\n		color: rgba(33, 37, 43, 1);\n		background-color: #eee;\n		padding-left: 9px;\n		padding-right: 9px;\n		display: flex;\n		align-items: center;\n		height: 34px;\n		position: relative;\n	}\n\n	:host(:not([theme=survey])) .suggest-add-btn {\n		color: rgba(255, 255, 255, 1);\n		background-color: #607d8b;\n	}\n\n	.suggest-add-btn icon-ui,\n	.suggest-add-btn-icon {\n		padding-right: calc(9px / 2);\n	}\n\n	.tag {\n		display: inline-flex;\n		align-items: center;\n		box-sizing: border-box;\n		min-height: 34px;\n		padding: 8px 0;\n		padding-left: 9px;\n\n		background-color: #607d8b;\n		color: rgba(255, 255, 255, 1);\n		border-radius: 2px;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		cursor: default;\n	}\n\n	.tag-label {\n		flex-grow: 1;\n	}\n\n	.tag icon-ui {\n		position: relative;\n		cursor: pointer;\n		opacity: 0.4;\n		padding-left: calc(9px / 2);\n		padding-right: calc(9px / 2);\n		transition: 0.2s;\n	}\n\n	.tag:hover icon-ui {\n		opacity: 1;\n	}\n\n	:host(:not([custom-button])) .custom-button {\n		display: none;\n	}\n\n	/* IE hack */\n	:host([not-found]) .suggest-field {\n		max-height: 34px;\n	}\n\n	:host([not-found][show-add-custom-btn]) .suggest-field,\n	:host([not-found][has-custom-button]) .suggest-field {\n		max-height: 68px;\n	}\n\n	@media (max-width: 700px) {\n		.input-wrapper {\n			flex-grow: 1;\n		}\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="container">\n\n	<div class="common-field" part="common-field">\n		<template is="dom-repeat" items="[[selectedItems]]">\n			<span class="tag field-item" part="tag" item="[[item]]" on-mousedown="_preventDefault">\n				<div class="tag-label">[[_removeHTML(item.text)]]</div> <icon-ui icon="close" on-click="_itemRemoveTapped"></icon-ui>\n			</span>\n		</template>\n\n		<div id="input-wrapper" class="input-wrapper field-item" part="input-wrapper" hidden="[[!_canShowInput(selectedItems, maxAnswers)]]">\n			<div>\n				<input\n					id="input"\n					class="input"\n					placeholder="[[placeholder]]"\n					value="{{searchText::input}}"\n					on-keyup="_inputKeyUp"\n					on-focus="_inputFocus"\n					on-blur="_inputBlur"\n					disabled="[[disabled]]"\n					type="text"\n					aria-autocomplete="list"\n				>\n				<span class="outline-bottom"></span>\n			</div>\n\n			<div class="clear-btn" on-mousedown="_preventDefault" on-click="_clearInputTapped">\n				<icon-ui icon="close"></icon-ui>\n			</div>\n\n			<!-- suggestions -->\n			<div class="suggest-field">\n\n				<div hidden="[[!notFound]]">\n					<div class="suggest-msg">[[notFoundMessage]]</div>\n				</div>\n\n				<div hidden="[[!showAddCustomBtn]]" on-mousedown="_preventDefault">\n					<div id="add-custom-btn" class="suggest-add-btn" on-click="_addVariantTapped"><icon-ui icon="plus"></icon-ui>[[addNewMessage]]</div>\n				</div>\n\n				<div id="suggestRender" class="suggest-render" role="listbox" on-mousedown="_suggestFieldMousedown">\n					<template is="dom-repeat" items="[[visibleItems]]">\n						<div class$="[[_getSuggestionClasses(item, searchText, notFound, selectedItems)]]" index="[[index]]" item="[[item]]" role$="[[_getSuggestionRole(item)]]" on-click="_itemTapped">\n							<div class="suggest-label">[[_formatText(item.text, searchText)]]</div>\n						</div>\n					</template>\n				</div>\n\n				<div class="suggest-add-btn custom-button" on-mousedown="_preventDefault" on-click="_customButtonClick">\n					<div class="suggest-add-btn-icon">\n						<slot name="custom-button-icon"></slot>\n					</div>\n					<slot name="custom-button-text"></slot>\n				</div>\n\n			</div>\n\n		</div>\n	</div>\n\n	<slot></slot>\n</div>';var Ve="<style>\n	.input {\n		-webkit-appearance: none;\n		   -moz-appearance: none;\n		        appearance: none;\n		box-sizing: border-box;\n		outline: none;\n\n		/* font-family: inherit;\n		font-size: inherit;\n		font-weight: inherit; */\n		font-family: 'Roboto Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;\n		font-size: 18px;\n		font-weight: 300;\n\n		color: rgba(33, 37, 43, 1);\n		background-color: #eee;\n		border: 2px solid #a8bac3;\n		border-radius: 4px;\n		box-shadow: none;\n\n		transition: 0.2s;\n		transition-property: color, background, border;\n	}\n\n	.input:not(textarea) {\n		height: 34px;\n	}\n\n	::-webkit-search-cancel-button {\n		display: none;\n	}\n\n	input::-ms-clear {\n		display: none;\n	}\n\n	/* placeholder */\n	::-webkit-input-placeholder {\n		color: #a8bac3;\n	}\n	::-moz-placeholder {\n		color: #a8bac3;\n	}\n	:-ms-input-placeholder {\n		color: #a8bac3;\n	}\n	::-ms-input-placeholder {\n		color: #a8bac3;\n	}\n	::placeholder {\n		color: #a8bac3;\n	}\n\n	:focus::-webkit-input-placeholder {\n		opacity: 0.4;\n	}\n\n	:focus::-moz-placeholder {\n		opacity: 0.4;\n	}\n\n	:focus:-ms-input-placeholder {\n		opacity: 0.4;\n	}\n\n	:focus::-ms-input-placeholder {\n		opacity: 0.4;\n	}\n\n	:focus::placeholder {\n		opacity: 0.4;\n	}\n\n	:host([icon]) ::-webkit-input-placeholder {\n		padding-left: calc(34px - 2px * 2);\n	}\n\n	:host([icon]) ::-moz-placeholder {\n		padding-left: calc(34px - 2px * 2);\n	}\n\n	:host([icon]) :-ms-input-placeholder {\n		padding-left: calc(34px - 2px * 2);\n	}\n\n	:host([icon]) ::-ms-input-placeholder {\n		padding-left: calc(34px - 2px * 2);\n	}\n\n	:host([icon]) ::placeholder {\n		padding-left: calc(34px - 2px * 2);\n	}\n\n	/* border-type */\n	:host(:not([border-type=bottom])) .outline-bottom {\n		display: none;\n	}\n\n	:host([border-type=bottom]) .input {\n		border-top: 0;\n		border-left: 0;\n		border-right: 0;\n		border-bottom-width: 1px;\n		border-bottom-left-radius: 0;\n		border-bottom-right-radius: 0;\n	}\n\n	.outline-bottom {\n		position: relative;\n		display: block;\n		width: 100%;\n	}\n\n	.outline-bottom::before {\n		content: '';\n		height: 2px;\n		left: 0;\n		width: 100%;\n		bottom: 0;\n		position: absolute;\n		background: #a8bac3;\n		transition: 0.2s ease;\n		transform: scaleX(0);\n	}\n\n	.input:focus + .outline-bottom::before {\n		background: #607d8b;\n		transform: scaleX(1);\n	}\n\n	/* label-type */\n	:host([label-type=floating]) .label {\n		position: relative;\n		top: 50%;\n		z-index: 1;\n		transition: 0.2s ease;\n		pointer-events: none;\n		margin-left: 6px;\n		margin-bottom: 2px;\n	}\n\n	:host([label-type=floating][focus]) .label,\n	:host([label-type=floating][has-value]) .label {\n		top: 0;\n		margin-left: 0;\n	}\n\n	:host([label-type=floating][icon]) .label {\n		margin-left: 34px;\n	}\n\n	:host([label-type=floating][icon][focus]) .label,\n	:host([label-type=floating][icon][has-value]) .label {\n		margin-left: 0;\n	}\n</style>";function Tg(t){return Tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tg(t)}function nK(t){return sK(t)||aK(t)||oK(t)||iK()}function iK(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oK(t,e){if(!!t){if(typeof t=="string")return Ag(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ag(t,e)}}function aK(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sK(t){if(Array.isArray(t))return Ag(t)}function Ag(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function uK(t,e,r){return e&&eA(t.prototype,e),r&&eA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ps(){return typeof Reflect!="undefined"&&Reflect.get?ps=Reflect.get:ps=function(e,r,n){var i=cK(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ps.apply(this,arguments)}function cK(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=gn(t),t!==null););return t}function fK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rg(t,e)}function Rg(t,e){return Rg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rg(t,e)}function pK(t){var e=hK();return function(){var n=gn(t),i;if(e){var o=gn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return dK(this,i)}}function dK(t,e){if(e&&(Tg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tA(t)}function tA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function gn(t){return gn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gn(t)}function ds(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ai=function(t){fK(r,t);var e=pK(r);function r(){var n;return lK(this,r),n=e.call(this),ds(tA(n),"_cleanMap",new Map),n._getClearable=function(i){return!!i},n._getSuggestionClasses=function(i,o){o=o.toLowerCase();var a=n.selectedItems&&n.selectedItems.map(function(s){return s.text});return"suggest-".concat(i.type)+((!o||i.text.toLowerCase().includes(o))&&!a.includes(i.text)?"":" suggest-hidden")+(i.type==="caption"?"":" custom-tabindex")+(i.highlight?" suggest-highlight":"")},n._getSuggestionRole=function(i){return i.type==="option"?"option":""},n._getShowAddCustomBtn=function(i,o,a,s){return!!(i&&o&&a&&s)},n}return uK(r,[{key:"_multiObserver",value:function(){this.multi||(this.selectedItems=[])}},{key:"_getHasSelectedItems",value:function(i){return i&&!!i.length}},{key:"_getValid",value:function(i,o){return!i||o&&!!o.length}},{key:"_initialMessageObserver",value:function(i){!i||(this.placeholder=i)}},{key:"_customsAllowedObserver",value:function(){if(!this.customsAllowed){if(this.multi&&this.data){var i=this.data.filter(function(o){return o.type==="option"}).map(function(o){return o.text});this.selectedItems=this.selectedItems.filter(function(o){return i.includes(o.text)})}this.searchText=""}}},{key:"_searchTextObserver",value:function(){!this.textInput||(this.textInput.value!==this.searchText&&(this.textInput.value=this.searchText),this._updateNotFound(),this.dispatchEvent(new CustomEvent("text-change",{detail:this.searchText})))}},{key:"_updateNotFound",value:function(){var i;this.notFound=!((i=this._getFilteredItems())!==null&&i!==void 0&&i.length)}},{key:"_cachedRemoveHTML",value:function(i){var o=this._cleanMap.get(i);return o||(o=Edit.removeHTML(i),this._cleanMap.set(i,o)),o}},{key:"_escapeRegex",value:function(i){return i.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"_formatText",value:function(i,o){var a=new RegExp("("+this._escapeRegex(o)+")","i"),s=this._cachedRemoveHTML(i);return o.length&&(s=s.replace(a,function(l,u){return"\u0332"+u.split("").join("\u0332")})),s}},{key:"_dataObserver",value:function(){this._prepareItems()}},{key:"_removeExtraAnswers",value:function(){this.maxAnswers&&(this.selectedItems=this.selectedItems.slice(0,this.maxAnswers))}},{key:"_canShowInput",value:function(i,o){return!o||(i==null?void 0:i.length)<o}},{key:"_getFilteredItems",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!this.data||!this._inited)){var o=this.data.slice();if(i)return o;var a=this.searchText.trim().toLowerCase();o=o.filter(function(l){if(l.type==="caption")return!0;var u=l.text.toLowerCase().includes(a);return u});var s=this.selectedItems&&this.selectedItems.map(function(l){return l.text});return this.multi&&s&&s.length&&(o=o.filter(function(l){return!s.includes(l.text)})),o=o.filter(function(l,u){var c=o[u+1];return!(l.type==="caption"&&(!c||c.type==="caption"))}),o}}},{key:"_prepareItems",value:function(){this.visibleItems=this._getFilteredItems(!0),this._updateNotFound()}},{key:"_selectItem",value:function(i){if(this.multi){var o=this.selectedItems&&this.selectedItems.find(function(a){return a.type==="option"&&i.text===a.text});o||(this.selectedItems.push(i),this.selectedItems=this.selectedItems.slice()),this.searchText="",this._changedValues()}else this.searchText=i.text,this.textInput.value=Edit.removeHTML(i.text),this.dispatchEvent(new CustomEvent("change",{detail:this.searchText})),this.textInput.blur();this._updateNotFound()}},{key:"_changedValues",value:function(){var i=this.selectedItems.map(function(o){return o.text});this.dispatchEvent(new CustomEvent("change",{detail:i}))}},{key:"getFinalValues",value:function(){var i=[],o=this.searchText.trim();return this.multi?(i=this.selectedItems.map(function(a){return a.text}),this.customsAllowed&&o&&i.push(o)):o&&(i=[o]),i.length?i:null}},{key:"_itemTapped",value:function(i){if(!!i){var o=i.currentTarget?i.currentTarget.item:i.item;o.type!=="caption"&&(this._selectItem(o),this.multi||this.textInput.blur())}}},{key:"_itemRemoveTapped",value:function(i){var o=i.target.closest(".tag").item,a=this.selectedItems.indexOf(o);this.selectedItems.splice(a,1),this.selectedItems=this.selectedItems.slice(),this._changedValues(),this._updateNotFound()}},{key:"_clearInputTapped",value:function(){this.searchText="",this.dispatchEvent(new CustomEvent("clear")),this.textInput.focus()}},{key:"_addVariantTapped",value:function(){!this.customsAllowed||(this._selectItem({text:this.searchText}),this.searchText="")}},{key:"_preventDefault",value:function(i){i.preventDefault()}},{key:"_removeHTML",value:function(i){return Edit.removeHTML(i)}},{key:"_inputKeyUp",value:function(i){i.key==="Enter"&&(this.searchText&&(this.customsAllowed?this._selectItem({text:this.searchText}):(this.searchText="",this.dispatchEvent(new CustomEvent("clear")),this.textInput.blur())),i.preventDefault())}},{key:"_inputFocus",value:function(){this.setAttribute("focus","")}},{key:"_inputBlur",value:function(){var i=this,o=this.data.find(function(a){return i.searchText===a.text});!this.customsAllowed&&!o&&this.searchText?(this.searchText="",this.multi||this.dispatchEvent(new CustomEvent("clear"))):this.searchText&&(this.customsAllowed||o)&&this._selectItem({text:this.searchText}),this.showErrors=!0,this.activeItem=null,this.removeAttribute("focus")}},{key:"_customButtonClick",value:function(){this.textInput.blur(),this.dispatchEvent(new CustomEvent("custom-button-click"))}},{key:"_activeItemObserver",value:function(i,o){var a=this;o&&(o.classList.remove("hover"),o.setAttribute("aria-selected","false"),o.id=""),i&&(i.classList.add("hover"),i.setAttribute("aria-selected","true"),i.id="selected"),this.$.input.setAttribute("aria-activedescendant",""),requestAnimationFrame(function(){a.$.input.setAttribute("aria-activedescendant","selected")})}},{key:"focus",value:function(){this.textInput.focus()}},{key:"_suggestFieldMousedown",value:function(i){var o=this;return setTimeout(function(){o.$.input.focus()}),i.preventDefault(),!1}},{key:"connectedCallback",value:function(){var i=this;ps(gn(r.prototype),"connectedCallback",this).call(this),this.textInput=this.$.input,this.inputWrapper=this.$["input-wrapper"],this.selectedItems=[],this.$.suggestRender.addEventListener("mouseover",function(o){o.target.className.includes("suggest-option")&&(i.activeItem=o.target)}),this.addEventListener("keydown",function(o){var a=i.$.suggestRender.querySelectorAll(".suggest-option:not(.suggest-hidden)"),s=i.$.suggestRender.querySelector(".suggest-option:not(.suggest-hidden).hover"),l=nK(a).indexOf(s);o.key==="Enter"&&i.activeItem&&i.activeItem.isConnected&&i.activeItem.matches(".hover")&&(o.preventDefault(),i._itemTapped(i.activeItem)),o.key==="ArrowUp"&&(o.preventDefault(),i.activeItem=a[Math.max(0,l-1)]),o.key==="ArrowDown"&&(o.preventDefault(),i.activeItem=a[Math.min(a.length-1,l+1)])}),setTimeout(function(){requestAnimationFrame(function(){var o;(o=i.value)!==null&&o!==void 0&&o.length&&(i.multi?i.value.forEach(function(a){i.selectedItems.push({text:a}),i.selectedItems=i.selectedItems.slice()}):i.searchText=i.value[0]),i._inited=!0,i._prepareItems()})},window.IS_SURVEY_APP&&1e3)}},{key:"ready",value:function(){ps(gn(r.prototype),"ready",this).call(this);var i=!!this.shadowRoot.querySelector("slot[name=custom-button-text]").assignedNodes().length;i&&this.setAttribute("has-custom-button","")}}]),r}(O);ds(Ai,"is","autocomplete-ui");ds(Ai,"template",g([Ve+ZT]));ds(Ai,"sharedStyles",["survey"]);ds(Ai,"properties",{value:{type:Array,reflectToAttribute:!0},theme:{type:String,value:""},placeholder:{type:String,computed:"get(l10n.autocomplete-ui.please-enter-input-placeholder)"},maxAnswers:{type:Number,observer:"_removeExtraAnswers"},data:{type:Array,observer:"_dataObserver"},searchText:{type:String,value:"",observer:"_searchTextObserver"},visibleItems:{type:Array},selectedItems:{type:Array,value:[],notify:!0,observer:"_updateNotFound"},hasSelectedItems:{type:Boolean,reflectToAttribute:!0,computed:"_getHasSelectedItems(searchText)"},multi:{type:Boolean,reflectToAttribute:!0,observer:"_multiObserver"},required:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},noBorder:{type:Boolean,value:!1,reflectToAttribute:!0},borderType:{type:String,value:"around",reflectToAttribute:!0},valid:{type:Boolean,notify:!0,reflectToAttribute:!0,computed:"_getValid(required, selectedItems)"},showErrors:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},notFound:{type:Boolean,value:!1,reflectToAttribute:!0},customsAllowed:{type:Boolean,value:!1,observer:"_customsAllowedObserver"},showAddCustomBtn:{type:Boolean,computed:"_getShowAddCustomBtn(multi, customsAllowed, searchText, visibleItems)",reflectToAttribute:!0},initialMessage:{type:String,observer:"_initialMessageObserver"},notFoundMessage:{type:String,computed:"get(l10n.autocomplete-ui.nothing-found-dropdown-empty-text)"},addNewMessage:{type:String,computed:"get(l10n.autocomplete-ui.add-custom-dropdown-button)"},activeItem:{type:Element,observer:"_activeItemObserver"},_clearable:{computed:"_getClearable(searchText)",reflectToAttribute:!0}});customElements.define(Ai.is,Ai);var rA='<style>\n	:host {\n		display: inline-block;\n		font-size: 16px;\n		position: relative;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		color: currentColor;\n		max-width: 100%;\n		cursor: pointer;\n		--button-size: var(--ui-height);\n	}\n\n	a {\n		display: flex;\n		flex-wrap: nowrap;\n		justify-content: flex-start;\n		align-items: center;\n		height: var(--ui-height);\n		border-radius: 4px;\n		box-sizing: border-box;\n		text-decoration: none !important;\n		white-space: nowrap;\n	}\n\n	a:link {\n		color: currentColor;\n	}\n\n	a:visited {\n		color: currentColor;\n	}\n\n	span {\n		margin-left: 9px;\n		margin-right: 9px;\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	:host([compact]) a {\n		font-size: initial !important;\n		width: calc(var(--ui-height) / 1.5) !important;\n		height: calc(var(--ui-height) / 1.5) !important;\n	}\n\n	:host([icon]) span {\n		margin-left: 6px;\n	}\n\n	:host([square]) a {\n		width: var(--ui-height);\n		border-radius: 4px;\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([none]) a {\n		width: var(--ui-height);\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([square]) span {\n		display: none;\n	}\n\n	:host([none]) span {\n		display: none;\n	}\n\n	:host([round]) a {\n		width: var(--ui-height);\n		border-radius: var(--ui-height);\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([round]) span {\n		display: none;\n	}\n\n	:host([grow]) {\n		display: block;\n		flex-grow: 1;\n	}\n\n	:host([connect="all"]) a {\n		border-radius: 2px !important;\n	}\n\n	:host([connect="left"]) a {\n		border-top-left-radius: 2px !important;\n		border-bottom-left-radius: 2px !important;\n	}\n\n	:host([connect="right"]) a {\n		border-top-right-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host([connect="top"]) a {\n		border-top-left-radius: 2px !important;\n		border-top-right-radius: 2px !important;\n	}\n\n	:host([connect="bottom"]) a {\n		border-bottom-left-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n		cursor: default;\n	}\n\n	:host-context([cursor=no-drop]) {\n		cursor: no-drop !important;\n	}\n\n	.reset-button,\n	.end-button,\n	.restart-button,\n	.restore-button,\n	.authorized-button,\n	.unsubscribe-button,\n	.next-button {\n		color: #fff;\n		font-size: 18px;\n		background-color: #7f8da4;\n		background-image: none;\n	}\n\n	.back-button {\n		color: #fff;\n		font-size: 18px;\n		background-color: #afbed6;\n		background-image: none;\n	}\n\n	.defaults {\n		display: none;\n	}\n\n	:host(:empty) .defaults {\n		display: block;\n	}\n\n	:host(:empty) .custom {\n		display: none;\n	}\n\n	:host([default]) .defaults {\n		display: block;\n	}\n\n	:host([default]) .custom {\n		display: none;\n	}\n\n	:host(:not([focus-visible])) :focus {\n		outline: none;\n	}\n</style>\n<style include="survey-style"></style>\n\n<a class$="{{action}}-button" href="[[link]]" target="[[target]]" on-click="navigate" on-keyup="_onKeyUp" tabindex="0">\n	<span>\n		<div class="defaults">\n			<div hidden="[[!is(action, \'next\')]]"><l10n-ui key="button-nav-ui.button-next-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'reset\')]]"><l10n-ui key="button-nav-ui.button-reset-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'end\')]]"><l10n-ui key="button-nav-ui.button-end-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'back\')]]"><l10n-ui key="button-nav-ui.button-back-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'authorized\')]]"><l10n-ui key="button-nav-ui.button-authorized-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'restart\')]]"><l10n-ui key="button-nav-ui.button-restart-title-text" language="[[language]]"></l10n-ui></div>\n			<div hidden="[[!is(action, \'unsubscribe\')]]"><l10n-ui key="button-nav-ui.button-unsubscribe-title-text" language="[[language]]"></l10n-ui></div>\n		</div>\n		<div id="custom" class="custom">\n			<slot></slot>\n		</div>\n	</span>\n	<paper-ripple noink="[[disabled]]"></paper-ripple>\n</a>';function Dg(t){return Dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dg(t)}function yK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vK(t,e,r){return e&&nA(t.prototype,e),r&&nA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zc(){return typeof Reflect!="undefined"&&Reflect.get?zc=Reflect.get:zc=function(e,r,n){var i=gK(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},zc.apply(this,arguments)}function gK(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ri(t),t!==null););return t}function bK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Cg(t,e)}function Cg(t,e){return Cg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Cg(t,e)}function _K(t){var e=xK();return function(){var n=Ri(t),i;if(e){var o=Ri(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return wK(this,i)}}function wK(t,e){if(e&&(Dg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FK(t)}function FK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ri(t){return Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ri(t)}function Hc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Di=function(t){bK(r,t);var e=_K(r);function r(){return yK(this,r),e.apply(this,arguments)}return vK(r,[{key:"_onKeyUp",value:function(i){(i.key==="Enter"||i.key===" ")&&this.navigate()}},{key:"navigate",value:function(){this.dispatchEvent(new CustomEvent("navigate",{detail:this.action}))}},{key:"connectedCallback",value:function(){var i=this;zc(Ri(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.default=i.textContent===""})}}]),r}(sr(O));Hc(Di,"is","button-nav-ui");Hc(Di,"template",g([rA]));Hc(Di,"sharedStyles",["survey"]);Hc(Di,"properties",{theme:{type:String,reflectToAttribute:!0},disabled:{type:String,reflectToAttribute:!0},connect:{type:String,reflectToAttribute:!0},compact:{value:!1,reflectToAttribute:!0},link:{type:String,reflectToAttribute:!0},target:{type:String,reflectToAttribute:!0},action:{type:String},language:{type:String},default:{type:Boolean,reflectToAttribute:!0}});customElements.define(Di.is,Di);var iA='<style>\n	:host {\n		display: flex;\n		color: #607d8b;\n		font-size: 17px;\n		cursor: pointer;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([button-mode]) {\n		padding: 0 9px;\n	}\n\n	:host([button-mode]) .control {\n		display: none;\n	}\n\n	:host([button-mode][checked]) {\n		background: rgba(96, 125, 139, 0.1);\n	}\n\n	:host([label-position=right]),\n	:host([label-position=left]),\n	:host([theme=survey]) {\n		padding: 8px 0;\n	}\n\n	:host([label-position=right]:not(:empty)) .control {\n		margin-right: 8px;\n	}\n\n	:host([label-position=left]) {\n		flex-direction: row-reverse;\n		justify-content: space-between;\n	}\n\n	:host([label-position=left]:not(:empty)) .control {\n		padding-left: 8px;\n	}\n\n	:host([label-position=top]) {\n		flex-direction: column-reverse;\n	}\n\n	:host([label-position=top]:not(:empty)) .control {\n		margin-top: 8px;\n	}\n\n	:host([label-position=bottom]) {\n		flex-direction: column;\n	}\n\n	:host([label-position=bottom]:not(:empty)) .control {\n		margin-bottom: 8px;\n	}\n\n	input {\n		display: none;\n	}\n\n	.control {\n		position: relative;\n		display: flex;\n		color: inherit;\n		cursor: inherit;\n		height: 20px;\n		width: 20px;\n		margin: 0;\n		flex-shrink: 0;\n	}\n\n	.control::before,\n	.control::after {\n		position: absolute;\n		box-sizing: border-box;\n	}\n\n	.control::before {\n		content: \'\';\n		height: 20px;\n		width: 20px;\n		border-radius: 4px;\n		border: 2px solid #607d8b;\n		background-color: rgba(96, 125, 139, 0.1);\n	}\n\n	.control::after {\n		content: \'\';\n		height: 8px;\n		width: 10px;\n		border-radius: 2px;\n		border-left: 3px solid #607d8b;\n		border-bottom: 3px solid #607d8b;\n\n		transition: 0.2s cubic-bezier(0, 0, 0.46, 1);\n		transform: translate(50%, 50%) rotate(-495deg) scale(0.7);\n		opacity: 0;\n	}\n\n	:host([checked]) .control::after {\n		transform: translate(50%, 50%) rotate(-45deg) scale(1);\n		opacity: 1;\n	}\n</style>\n<style include="survey-style"></style>\n\n<input\n	id="input"\n	type="checkbox"\n	name="[[name]]"\n	checked="{{checked::change}}"\n	disabled="[[disabled]]"\n>\n<div class="control checkbox"></div>\n<slot></slot>';function Ig(t){return Ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ig(t)}function PK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function SK(t,e,r){return e&&oA(t.prototype,e),r&&oA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ci(){return typeof Reflect!="undefined"&&Reflect.get?Ci=Reflect.get:Ci=function(e,r,n){var i=kK(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ci.apply(this,arguments)}function kK(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=dr(t),t!==null););return t}function EK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jg(t,e)}function jg(t,e){return jg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jg(t,e)}function TK(t){var e=DK();return function(){var n=dr(t),i;if(e){var o=dr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return AK(this,i)}}function AK(t,e){if(e&&(Ig(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RK(t)}function RK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function dr(t){return dr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},dr(t)}function Uc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bn=function(t){EK(r,t);var e=TK(r);function r(){var n;return PK(this,r),n=e.call(this),n.addEventListener("click",function(){return n.toggle()}),n}return SK(r,[{key:"toggle",value:function(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent("checkbox-checked",{composed:!0,bubbles:!0}))}},{key:"ready",value:function(){Ci(dr(r.prototype),"ready",this).call(this),this.checked===void 0&&(this.checked=!1)}},{key:"_checkedObserver",value:function(){var i=this;if(this.setAttribute("aria-checked",!!this.checked),!!this.checked){var o=r.Registry.get(this.tag);!o||o.forEach(function(a){a.checked&&a!==i&&(i.exclusive||a.exclusive)&&(a.checked=!1,a.dispatchEvent(new CustomEvent("checkbox-checked",{composed:!0,bubbles:!0})))})}}},{key:"connectedCallback",value:function(){Ci(dr(r.prototype),"connectedCallback",this).call(this);var i=r.Registry.get(this.tag);i||(i=new Set,r.Registry.set(this.tag,i)),i.add(this)}},{key:"disconnectedCallback",value:function(){Ci(dr(r.prototype),"disconnectedCallback",this).call(this);var i=r.Registry.get(this.tag);!i||i.delete(this)}}]),r}(Q(M));Uc(bn,"is","checkbox-ui");Uc(bn,"template",g([iA]));Uc(bn,"sharedStyles",["survey"]);Uc(bn,"properties",{name:{type:String,reflectToAttribute:!0},tag:{type:String,reflectToAttribute:!0},value:{reflectToAttribute:!0},checked:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"_checkedObserver"},theme:{type:String,reflectToAttribute:!0},labelPosition:{type:String,value:"right",reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},buttonMode:{type:Boolean,value:!1,reflectToAttribute:!0},exclusive:{type:Boolean,value:!1}});bn.Registry=new Map;customElements.define(bn.is,bn);var aA="<style>\n	:host {\n		display: inline-block;\n		white-space: nowrap;\n	}\n</style>\n[[_dateOutput]]";function Bg(t){return Bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bg(t)}function IK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function jK(t,e,r){return e&&sA(t.prototype,e),r&&sA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hs(){return typeof Reflect!="undefined"&&Reflect.get?hs=Reflect.get:hs=function(e,r,n){var i=BK(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},hs.apply(this,arguments)}function BK(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=_n(t),t!==null););return t}function MK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mg(t,e)}function Mg(t,e){return Mg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mg(t,e)}function LK(t){var e=zK();return function(){var n=_n(t),i;if(e){var o=_n(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return NK(this,i)}}function NK(t,e){if(e&&(Bg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qK(t)}function qK(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zK(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_n(t)}function Lg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ms=function(t){MK(r,t);var e=LK(r);function r(){var n;return IK(this,r),n=e.call(this),n._onLangChange=function(){n._update()},n}return jK(r,[{key:"_update",value:function(){var i=this;if(!this.date||this.date==="0001-01-01T00:00:00"||typeof this.date!="string"&&!(this.date instanceof Date)){this._dateOutput="";return}var o=Date.now()-new Date(this.date);if(this.numeric)try{this._dateOutput=Le(new Date(this.date),"P"+(this.noTime?"":"p"))}catch(a){}else!this.absolute&&o/6e4<this._relativeThreshold?(setTimeout(function(){i._update()},6e4),this._dateOutput=eO(new Date(this.date),{addSuffix:!0})):this.noTime?this._dateOutput=Le(new Date(this.date),"PP"):this._dateOutput=Le(new Date(this.date),"eee, PPp")}},{key:"connectedCallback",value:function(){hs(_n(r.prototype),"connectedCallback",this).call(this),w.onLanguageChange.add(this._onLangChange)}},{key:"disconnectedCallback",value:function(){hs(_n(r.prototype),"disconnectedCallback",this).call(this),w.onLanguageChange.delete(this._onLangChange)}}]),r}(M);Lg(ms,"is","date-ui");Lg(ms,"template",g([aA]));Lg(ms,"properties",{date:{type:String,observer:"_update"},absolute:{type:Boolean,value:!1,observer:"_update"},numeric:{type:Boolean,value:!1,observer:"_update"},noTime:{type:Boolean,value:!1,observer:"_update"},_dateOutput:{type:String},_relativeThreshold:{value:20}});customElements.define(ms.is,ms);var lA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		justify-content: flex-end;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([theme=brightest]) .btn {\n		background-color: rgba(255, 255, 255, 1) !important;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=brightest]) .btn-disabled {\n		opacity: 0.4;\n	}\n\n	:host([theme=brightest]) input {\n		background-color: rgba(255, 255, 255, 1) !important;\n		border-bottom: 2px solid rgba(255, 255, 255, 1);\n		border-top: 2px solid rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=bg1]) .btn {\n		background-color: #eee !important;\n		color: #a8bac3;\n	}\n\n	:host([theme=bg1]) .btn-disabled {\n		opacity: 0.4;\n	}\n\n	:host([theme=bg1]) input {\n		background-color: #eee !important;\n		border-bottom: 2px solid #eee;\n		border-top: 2px solid #eee;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=none]) input {\n		border: none !important;\n		background-color: transparent !important;\n		font-size: inherit;\n		font-family: inherit;\n		font-weight: inherit;\n	}\n\n	.container {\n		display: inline-flex;\n		align-items: center;\n		margin-left: -2px;\n		width: 100%;\n	}\n\n	.container > * {\n		margin-left: 2px;\n	}\n\n	input {\n		font-family: \'Roboto Condensed\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n		font-weight: 300;\n		width: 100%;\n		padding: 0 8px;\n		padding-top: 1px;\n		min-width: 140px;\n		font-size: 18px;\n		padding-right: 34px;\n	}\n\n	input[value=""] {\n		border: 2px solid red;\n	}\n\n	:host(:not([theme=survey])) input {\n		padding-top: 2px;\n		border: none;\n		border-bottom: 2px solid #a8bac3;\n		border-bottom-left-radius: 0;\n		border-bottom-right-radius: 0;\n	}\n\n	input:focus,\n	:host([focus]) input {\n		color: rgba(33, 37, 43, 1);\n		border-color: #607d8b;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([show-errors]) input {\n		color: #d8252b;\n		border-color: #d8252b;\n	}\n\n	input:invalid {\n		color: #d8252b;\n		border-color: #d8252b;\n	}\n\n	.input-container {\n		position: relative;\n	}\n\n	.calendar-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.calendar-btn {\n		position: absolute;\n		right: 0;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.calendar-btn > icon-ui {\n		vertical-align: baseline;\n	}\n\n	:host([readonly]) .calendar-btn,\n	:host([disabled]) .calendar-btn {\n		display: none;\n		pointer-events: none;\n	}\n\n	.clear-btn {\n		position: absolute;\n		right: 34px;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.clear-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.clear-btn > icon-ui {\n		vertical-align: baseline;\n	}\n\n	input:focus ~ .clear-btn,\n	input:focus ~ .calendar-btn {\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([readonly]) .clear-btn,\n	:host([disabled]) .clear-btn {\n		display: none;\n		pointer-events: none;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="input-container">\n	<input\n		id="input"\n		class="input"\n		type="text"\n		required="[[required]]"\n		placeholder="[[_placeholder]]"\n		pattern="[[_pattern]]"\n		maxlength="10"\n		read-only="[[readonly]]"\n		on-input="_inputHandler"\n		on-blur="_checkErrors"\n		aria-label$="[[ariaLabel]]"\n	>\n	<span class="outline-bottom"></span>\n\n	<div class="clear-btn" on-click="clear" on-mousedown="_clearMousedown" hidden="[[!_clearable]]">\n		<icon-ui icon="close"></icon-ui>\n	</div>\n\n	<div class="calendar-btn" on-click="openCalendar">\n		<icon-ui id="calendarIcon" icon="calendar"></icon-ui>\n	</div>\n</div>';function Ng(t){return Ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ng(t)}function UK(t,e){return $K(t)||GK(t,e)||WK(t,e)||VK()}function VK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function WK(t,e){if(!!t){if(typeof t=="string")return uA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uA(t,e)}}function uA(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function GK(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function $K(t){if(Array.isArray(t))return t}function KK(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function YK(t,e,r){return e&&cA(t.prototype,e),r&&cA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ys(){return typeof Reflect!="undefined"&&Reflect.get?ys=Reflect.get:ys=function(e,r,n){var i=XK(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ys.apply(this,arguments)}function XK(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=wn(t),t!==null););return t}function QK(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qg(t,e)}function qg(t,e){return qg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qg(t,e)}function JK(t){var e=tY();return function(){var n=wn(t),i;if(e){var o=wn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return ZK(this,i)}}function ZK(t,e){if(e&&(Ng(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eY(t)}function eY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function wn(t){return wn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wn(t)}function Vc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ii=function(t){QK(r,t);var e=JK(r);function r(){return KK(this,r),e.apply(this,arguments)}return YK(r,[{key:"_getFormat",value:function(i){return i||w.get("date-input-ui.input-format")}},{key:"_getPlaceholder",value:function(i){return Edit.removeHTML(i)||w.get("date-input-ui.input-placeholder")}},{key:"_getPattern",value:function(i){return"^"+i.toUpperCase().replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&").replace("DD","(\\d\\d)").replace("MM","(\\d\\d)").replace("YYYY","(\\d\\d\\d\\d)")+"$"}},{key:"_getClearable",value:function(i,o){return i&&!!o}},{key:"_dateObserver",value:function(){if(!this.date||!Rr(this.date)){this.inputValue="",this.value="",this.$.input.value="",this.validate();return}var i=function(a){return(a+"").padStart(2,"0")};this.$.input.value=this._format.toUpperCase().replace("DD",i(this.date.getDate())).replace("MM",i(this.date.getMonth()+1)).replace("YYYY",this.date.getFullYear()),this.inputValue=this.$.input.value,this.value=Le(new Date(this.date),"yyyy-MM-dd"),this.validate(),this.calendarShown&&this.valid&&(this._datePicker.date=this.date)}},{key:"validate",value:function(){if(this.valid=this.$.input.checkValidity(),this.valid&&this.maxDate&&this.date&&(this.valid=this.date<this.maxDate),this.valid&&this.minDate&&this.date){var i=new Date(this.minDate);i.setHours(0),i.setMinutes(0),i.setSeconds(0),this.valid=this.date>i}this.showErrors=!this.valid,this.dispatchEvent(new CustomEvent("validate",{bubbles:!0}))}},{key:"_checkErrors",value:function(){this.closeCalendar(),this.showErrors=!this.valid}},{key:"_minObserver",value:function(){this.minDate=this.min?new Date(this.min):void 0,this._datePicker&&(this._datePicker.minDate=this.minDate),this.validate()}},{key:"_maxObserver",value:function(){this.maxDate=this.max?new Date(this.max):void 0,this.maxDate&&(this.maxDate.setHours(23),this.maxDate.setMinutes(59),this.maxDate.setSeconds(59)),this._datePicker&&(this._datePicker.maxDate=this.maxDate),this.validate()}},{key:"_initDatePicker",value:function(){var i=this;this._floatingUi=document.createElement("floating-ui"),this._datePicker=document.createElement("date-picker-ui"),this._datePicker.theme=this.theme,this._datePicker.minDate=this.minDate,this._datePicker.maxDate=this.maxDate,this._floatingUi.fitToScreen=this.fitToScreen,this._floatingUi.append(this._datePicker),this._datePicker.addEventListener("confirm",function(o){i.closeCalendar(),i.dispatchEvent(new CustomEvent("calendar-confirm",{composed:!0,bubbles:!0}))}),this._datePicker.addEventListener("date-changed",function(o){i._calendarInited&&o.detail.value&&(i.date=o.detail.value)})}},{key:"_inputHandler",value:function(i){var o=i.target,a=o.value;if(!a){this.date=null;return}var s=function(u){var c=o.selectionStart;c===o.value.length&&(c=u.length),o.value=u,o.setSelectionRange(c,c)};a.length>10&&(a=a.slice(0,10)),s(a),this._checkDate(a),this.inputValue=a}},{key:"_checkDate",value:function(i){var o=i.match(new RegExp(this._pattern)),a=this._format.toUpperCase().indexOf("DD"),s=this._format.toUpperCase().indexOf("MM"),l=this._format.toUpperCase().indexOf("YYYY"),u=[a,s,l],c=u.map(function(p){return p===Math.min.apply(Math,u)?1:p===Math.max.apply(Math,u)?3:2}),f=UK(c,3);a=f[0],s=f[1],l=f[2],o?this.date=new Date(Date.UTC(+o[l],+o[s]-1,+o[a])):this.valid=!1}},{key:"openCalendar",value:function(){this.readonly||this.disabled||this.calendarShown||(this._initDatePicker(),this._calendarInited=!1,this.date&&this.valid?this._datePicker.date=this.date:this._datePicker.date=null,this.min&&(this._datePicker.minDate=this.minDate),this.max&&(this._datePicker.maxDate=this.maxDate),this._datePicker.mode="date",this._floatingUi.context=this,document.body.append(this._floatingUi),this.calendarShown=!0,this.$.input.focus(),this.$.input.setSelectionRange(this.$.input.value.length,this.$.input.value.length),this._calendarInited=!0)}},{key:"closeCalendar",value:function(){this._floatingUi&&this._floatingUi.remove(),this.calendarShown=!1,this.$.input.blur()}},{key:"focus",value:function(){this.$.input.focus()}},{key:"blur",value:function(){this.$.input.blur()}},{key:"connectedCallback",value:function(){var i=this;ys(wn(r.prototype),"connectedCallback",this).call(this),this._outsideClickHandler=function(o){var a=o.composedPath().find(function(u){return u===i.$.calendarIcon});if(a){o.preventDefault();return}var s=o.composedPath()[0].composedClosest("date-input-ui"),l=o.composedPath()[0].composedClosest("date-picker-ui");s===i||l===i._datePicker||i.closeCalendar()},this.$.input.onfocus=function(o){i.setAttribute("focus",""),i.openCalendar()},this.$.input.onblur=function(o){i.removeAttribute("focus")},this.inputValue?(this._checkDate(this.inputValue),this.$.input.value=this.inputValue):this.value&&Rr(new Date(this.value))&&(this.date=new Date(this.value)),document.addEventListener("mousedown",this._outsideClickHandler)}},{key:"_clearMousedown",value:function(i){i.preventDefault()}},{key:"clear",value:function(i){this.inputValue="",this.value="",this.$.input.value="",this.date=null,this.dispatchEvent(new CustomEvent("clear")),i.stopPropagation()}},{key:"disconnectedCallback",value:function(){ys(wn(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("mousedown",this._outsideClickHandler)}}]),r}(O);Vc(Ii,"is","date-input-ui");Vc(Ii,"template",g([Ve+lA]));Vc(Ii,"sharedStyles",["survey"]);Vc(Ii,"properties",{inputValue:{type:String,notify:!0,reflectToAttribute:!0},value:{type:String,notify:!0,reflectToAttribute:!0},theme:{type:String,reflectToAttribute:!0},date:{type:Date,notify:!0,observer:"_dateObserver"},min:{type:String,observer:"_minObserver"},minDate:{type:Date},max:{type:String,observer:"_maxObserver"},maxDate:{type:Date},format:{type:String},placeholder:{type:String},_format:{type:String,computed:"_getFormat(format, clearBtn)"},_placeholder:{type:String,computed:"_getPlaceholder(placeholder, clearBtn)"},required:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"validate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},calendarShown:{type:Boolean,value:!1,reflectToAttribute:!0},borderType:{type:String,value:"around",reflectToAttribute:!0},fitToScreen:{type:Boolean,value:!1},valid:{type:Boolean,notify:!0},showErrors:{type:Boolean,value:!1,reflectToAttribute:!0},clearBtn:{type:Boolean,value:!1,reflectToAttribute:!0},ariaLabel:{type:String},_pattern:{computed:"_getPattern(_format)"},_clearable:{computed:"_getClearable(clearBtn, inputValue)"}});customElements.define(Ii.is,Ii);var fA='<style>\n	:host {\n		display: block;\n		color: rgba(33, 37, 43, 1);\n		background: rgba(255, 255, 255, 1);\n		padding: 8px;\n	}\n\n	.content {\n		display: flex;\n	}\n\n	.content > * {\n		flex-grow: 1;\n	}\n\n	.header {\n		display: flex;\n		align-items: center;\n		justify-content: space-between;\n		font-weight: bold;\n	}\n\n	.sub-header {\n		display: flex;\n		flex-direction: row;\n		flex-wrap: nowrap;\n	}\n\n	.header .month {\n		margin-right: 6px;\n	}\n\n	.header .prev,\n	.header .next,\n	.header .month,\n	.header .year {\n		cursor: pointer;\n	}\n\n	.weekdays {\n		display: flex;\n		font-size: 12px;\n		opacity: 0.4;\n		margin: 2px 0;\n		justify-content: space-between;\n	}\n\n	.month-mode .month,\n	.year-mode .year {\n		display: flex;\n		justify-content: center;\n		align-items: center;\n		height: 13px;\n		padding: 8px;\n		cursor: pointer;\n	}\n\n	.month {\n		padding-right: 2px;\n	}\n\n	.year {\n		padding-left: 2px;\n	}\n\n\n	.date-mode .day:hover,\n	.month-mode .month:hover,\n	.year-mode .year:hover {\n		background: rgba(96, 125, 139, 0.1);\n	}\n\n	.month-mode,\n	.year-mode {\n		width: 270px;\n		height: 280px;\n	}\n\n	@media (pointer: fine) {\n		.year-mode,\n		.month-mode {\n			height: 250px;\n		}\n	}\n\n	.weekday, .day {\n		display: flex;\n		justify-content: center;\n		align-items: center;\n		width: 13px;\n		height: 13px;\n		padding: 8px;\n	}\n\n	.days {\n		display: grid;\n		grid-template-columns: repeat(7, 1fr);\n	}\n\n	.day {\n		cursor: pointer;\n	}\n\n	.day:empty {\n		pointer-events: none;\n	}\n\n	.month-mode {\n		flex-wrap: wrap;\n		display: flex;\n	}\n\n	.month-mode .month {\n		flex-grow: 1;\n		flex-shrink: 0;\n		flex-basis: 20%;\n		height: auto;\n	}\n\n	.year-mode {\n		display: flex;\n		flex-direction: column;\n	}\n\n	[disabled] {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	[selected],\n	.day[selected]:hover,\n	.month[selected]:hover,\n	.year[selected]:hover {\n		color: rgba(255, 255, 255, 1);\n		background: rgba(33, 37, 43, 1);\n		opacity: 0.9;\n	}\n\n	[today] {\n		outline: 1px solid currentColor;\n		outline-offset: -2px;\n	}\n\n	:host(:not([theme=survey])) [selected] {\n		color: rgba(255, 255, 255, 1);\n		background: #607d8b;\n		opacity: 1;\n	}\n\n	:host(:not([theme=survey])) [today] {\n		outline: 1px solid currentColor;\n		outline-offset: -2px;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="content">\n	<!-- day -->\n	<div id="date" class="date-mode" hidden="[[!is(mode, \'date\')]]">\n		<div class="header">\n			<button-ui id="prev" class="prev" round icon="chevron-left" on-click="_prevMonth"></button-ui>\n			<div class="sub-header">\n				<div class="month" on-click="_setMonthMode">[[_month]]</div>\n				<div class="year" on-click="_setYearMode">[[_year]]</div>\n			</div>\n			<button-ui id="next" class="next" round icon="chevron-right" on-click="_nextMonth"></button-ui>\n		</div>\n		<div class="weekdays">\n			<template is="dom-repeat" items="[[_weekdays]]" as="weekday">\n				<div class="weekday">[[weekday]]</div>\n			</template>\n		</div>\n		<div class="days">\n			<template is="dom-repeat" items="[[_days]]" as="day">\n				<div\n					class="day"\n					day="[[day.name]]"\n					selected$="[[_isDaySelected(day.name, _selectedDate)]]"\n					today$="[[_isToday(day.name, _selectedDate)]]"\n					disabled$="[[day.disabled]]"\n					on-click="_dayTapped"\n					on-dblclick="_confirm"\n				>[[day.name]]</div>\n			</template>\n		</div>\n	</div>\n\n	<!-- month -->\n	<div id="month" class="month-mode" hidden="[[!is(mode, \'month\')]]">\n		<template is="dom-repeat" items="[[_months]]" as="month" index-as="monthNumber">\n			<div class="month" month="[[monthNumber]]" selected$="[[_isMonthSelected(monthNumber, _selectedDate)]]" on-click="_monthTapped"  disabled$="[[month.disabled]]">[[month.name]]</div>\n		</template>\n	</div>\n\n	<!-- year -->\n	<div id="year" class="year-mode" hidden="[[!is(mode, \'year\')]]">\n		<scroll-shadow-ui>\n			<template is="dom-repeat" items="[[_years]]" as="year">\n				<div class="year" year="[[year]]" selected$="[[_isYearSelected(year, _selectedDate)]]" on-click="_yearTapped" disabled$="[[_isYearValidate(year, minData)]]">[[year]]</div>\n			</template>\n		</scroll-shadow-ui>\n	</div>\n</div>';function zg(t){return zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zg(t)}function nY(t){return sY(t)||aY(t)||oY(t)||iY()}function iY(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function oY(t,e){if(!!t){if(typeof t=="string")return Hg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(t,e)}}function aY(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sY(t){if(Array.isArray(t))return Hg(t)}function Hg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function uY(t,e,r){return e&&pA(t.prototype,e),r&&pA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wc(){return typeof Reflect!="undefined"&&Reflect.get?Wc=Reflect.get:Wc=function(e,r,n){var i=cY(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Wc.apply(this,arguments)}function cY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ji(t),t!==null););return t}function fY(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ug(t,e)}function Ug(t,e){return Ug=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ug(t,e)}function pY(t){var e=mY();return function(){var n=ji(t),i;if(e){var o=ji(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return dY(this,i)}}function dY(t,e){if(e&&(zg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hY(t)}function hY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ji(t){return ji=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ji(t)}function Gc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bi=function(t){fY(r,t);var e=pY(r);function r(){var n;return lY(this,r),n=e.call(this),n._initRangeDate(),n}return uY(r,[{key:"ready",value:function(){Wc(ji(r.prototype),"ready",this).call(this),this.date||this._scrollToSelectedYear(),this.addEventListener("mousedown",function(i){i.preventDefault()})}},{key:"_initRangeDate",value:function(){var i,o,a=((i=this.minDate)===null||i===void 0?void 0:i.getFullYear())||1950,s=((o=this.maxDate)===null||o===void 0?void 0:o.getFullYear())||2100;s>a&&(this._years=Array(s-a+1).fill().map(function(l,u){return u+a}))}},{key:"_rangeDateObserver",value:function(){this._initRangeDate()}},{key:"_getIsDateMode",value:function(i){return i==="date"}},{key:"_dateObserver",value:function(){var i=new Date;this.date?this._selectedDate=this.date:this.minDate?this._selectedDate=new Date(this.minDate<=i?i:this.minDate):this._selectedDate=i,this._scrollToSelectedYear()}},{key:"_selectedDateObserver",value:function(){this._render()}},{key:"_render",value:function(){this.maxDate<this._selectedDate&&(this._selectedDate=new Date(this.maxDate)),this._weekdays=rO(),this._initDays(),this._initMonths(),this._year=this._selectedDate.getFullYear(),this._checkButtonStatus()}},{key:"_initDays",value:function(){var i=this,o=Array(Hl(this._selectedDate)).fill().map(function(u,c){return c+1}),a=!!tO(oa(this._selectedDate)).getUTCDay(),s=oa(this._selectedDate).getUTCDay()+a;o.unshift.apply(o,nY(Array(s%7).fill("")));var l=[];o.forEach(function(u){var c={name:u,disabled:i._isDayValidate(u)};l.push(c)}),this._days=l}},{key:"_initMonths",value:function(){var i=this;this._month=Le(this._selectedDate,"LLLL");var o=[];nO().forEach(function(a,s){var l={name:a,disabled:i._isMonthValidate(s)};o.push(l)}),this._months=o}},{key:"_nextMonth",value:function(){this._selectedDate=$t(this._selectedDate,1),this._checkButtonStatus()}},{key:"_prevMonth",value:function(){this._selectedDate=$t(this._selectedDate,-1),this._checkButtonStatus()}},{key:"_checkButtonStatus",value:function(){this._checkNextStep(),this._checkPrevStep()}},{key:"_checkNextStep",value:function(){var i=this._selectedDate.getDate(),o=ia(this._selectedDate,-1*(i-1)),a=$t(o,1),s=!0;this.maxDate&&(s=a<this.maxDate),this.$.next.disabled=!s}},{key:"_checkPrevStep",value:function(){var i=$t(this._selectedDate,-1),o=!0;this.minDate&&(o=new Date(i.getFullYear(),i.getMonth()-1,1)>=new Date(this.minDate.getFullYear(),this.minDate.getMonth()-1,1)),this.$.prev.disabled=!o}},{key:"_setMonthMode",value:function(){this.mode="month"}},{key:"_setYearMode",value:function(){var i=this;this.mode="year",requestAnimationFrame(function(){i.$.year.querySelector("scroll-shadow-ui").update()}),this._scrollToSelectedYear()}},{key:"_scrollToSelectedYear",value:function(){var i=this;requestAnimationFrame(function(){var o=i.$.year.querySelector("[selected]");o&&(FO(),o.scrollIntoView({block:"center"}),xO())})}},{key:"_dayTapped",value:function(i){this.date=new Date(this._selectedDate.getFullYear(),this._selectedDate.getMonth(),i.currentTarget.day),this._confirm()}},{key:"_monthTapped",value:function(i){this._selectedDate=new Date(this._selectedDate.setMonth(i.currentTarget.month)),this.mode="date"}},{key:"_yearTapped",value:function(i){this._selectedDate=new Date(this._selectedDate.setYear(i.currentTarget.year)),this.mode="month"}},{key:"_isDaySelected",value:function(i){if(!(!this._selectedDate||!this.date))return this._selectedDate.getDate()===i&&this._selectedDate.getMonth()===this.date.getMonth()&&this._selectedDate.getFullYear()===this.date.getFullYear()}},{key:"_isToday",value:function(i){if(!!this._selectedDate){var o=new Date;return i===o.getDate()&&this._selectedDate.getMonth()===o.getMonth()&&this._selectedDate.getFullYear()===o.getFullYear()}}},{key:"_isMonthSelected",value:function(i){if(!!this._selectedDate)return this._selectedDate.getMonth()===i}},{key:"_isYearSelected",value:function(i){if(!!this._selectedDate)return this._selectedDate.getFullYear()===i}},{key:"_isYearValidate",value:function(i){var o=!1;if(this.minDate){var a=this.minDate.getFullYear();o=i<a}var s=!1;if(this.maxDate){var l=this.maxDate.getFullYear();s=i>l}return o||s}},{key:"_isMonthValidate",value:function(i){if(!!this._selectedDate){var o=!1;if(this.minDate){var a=this._selectedDate.getFullYear(),s=this.minDate.getFullYear();if(a===s){var l=this.minDate.getMonth();o=i<l}}var u=!1;if(this.maxDate){var c=this._selectedDate.getFullYear(),f=this.maxDate.getFullYear();if(c===f){var p=this.maxDate.getMonth();u=i>p}}return o||u}}},{key:"_isDayValidate",value:function(i){if(!(!this._selectedDate||!i)){var o=!1;if(this.minDate){var a=this._selectedDate.getFullYear(),s=this.minDate.getFullYear(),l=this._selectedDate.getMonth(),u=this.minDate.getMonth();if(a===s&&l===u){var c=this.minDate.getDate();o=i<c}}var f=!1;if(this.maxDate){var p=this._selectedDate.getFullYear(),d=this.maxDate.getFullYear(),m=this._selectedDate.getMonth(),h=this.maxDate.getMonth();if(p===d&&m===h){var v=this.maxDate.getDate();f=i>v}}return o||f}}},{key:"_confirm",value:function(){this.dispatchEvent(new CustomEvent("confirm"))}}]),r}(O);Gc(Bi,"is","date-picker-ui");Gc(Bi,"template",g([fA]));Gc(Bi,"sharedStyles",["survey"]);Gc(Bi,"properties",{date:{type:Date,notify:!0,observer:"_dateObserver"},_selectedDate:{type:Date,observer:"_selectedDateObserver"},theme:{type:String,reflectToAttribute:!0},minDate:{type:Date,observer:"_rangeDateObserver"},maxDate:{type:Date,observer:"_rangeDateObserver"},mode:{type:String,value:"date"},locale:{type:String,observer:"_render"},_isDateMode:{computed:"_getIsDateMode(mode)"}});customElements.define(Bi.is,Bi);var dA='<style>\n	:host {\n		display: block;\n		color: rgba(33, 37, 43, 1);\n		background: rgba(255, 255, 255, 1);\n		padding: 8px;\n	}\n\n	#hours::-webkit-scrollbar,\n	#minutes::-webkit-scrollbar {\n		display: none !important;\n	}\n\n	.content {\n		display: flex;\n		height: 200px;\n	}\n\n	.hours-wrap,\n	.minutes-wrap,\n	.ampm-wrap {\n		width: 45px;\n		height: 100%;\n		overflow: scroll;\n	}\n\n	.ampm-wrap .list {\n		height: 100%;\n		display: flex;\n		flex-direction: column;\n		justify-content: center;\n	}\n\n	.hours,\n	.minutes,\n	.am,\n	.pm {\n		cursor: pointer;\n		display: flex;\n		justify-content: center;\n		align-items: center;\n		height: 30px;\n	}\n\n\n	.hours:hover,\n	.minutes:hover,\n	.am:hover,\n	.pm:hover {\n		background: rgba(96, 125, 139, 0.1);\n	}\n\n	[selected],\n	.hours[selected]:hover,\n	.minutes[selected]:hover,\n	.am[selected]:hover,\n	.pm[selected]:hover {\n		color: rgba(255, 255, 255, 1);\n		background: rgba(33, 37, 43, 1);\n		opacity: 0.9;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n</style>\n<style include="survey-style"></style>\n\n<div class="content">\n	<div id="hours" class="hours-wrap">\n		<div class="list">\n			<template is="dom-repeat" items="[[_hoursList]]">\n				<div class="hours" on-click="_handleSetHours" data-hours$="[[item]]">[[item]]</div>\n			</template>\n		</div>\n		<div class="list">\n			<template is="dom-repeat" items="[[_hoursList]]">\n				<div class="hours" on-click="_handleSetHours" data-hours$="[[item]]">[[item]]</div>\n			</template>\n		</div>\n	</div>\n	<div id="minutes" class="minutes-wrap">\n		<div class="list">\n			<template is="dom-repeat" items="[[_minutesList]]">\n				<div class="minutes" on-click="_handleSetMinutes" data-minutes$="[[item]]">[[item]]</div>\n			</template>\n		</div>\n		<div class="list">\n			<template is="dom-repeat" items="[[_minutesList]]">\n				<div class="minutes" on-click="_handleSetMinutes" data-minutes$="[[item]]">[[item]]</div>\n			</template>\n		</div>\n	</div>\n\n	<div id="ampm" class="ampm-wrap" hidden="[[!is(locale, \'en\')]]">\n		<div class="list">\n			<div class="am" on-click="_handleSetAM" selected>AM</div>\n			<div class="pm" on-click="_handleSetPM">PM</div>\n		</div>\n	</div>\n</div>';function Vg(t){return Vg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vg(t)}function vY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gY(t,e,r){return e&&hA(t.prototype,e),r&&hA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function $c(){return typeof Reflect!="undefined"&&Reflect.get?$c=Reflect.get:$c=function(e,r,n){var i=bY(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},$c.apply(this,arguments)}function bY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Mi(t),t!==null););return t}function _Y(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wg(t,e)}function Wg(t,e){return Wg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Wg(t,e)}function wY(t){var e=OY();return function(){var n=Mi(t),i;if(e){var o=Mi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return FY(this,i)}}function FY(t,e){if(e&&(Vg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xY(t)}function xY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Mi(t){return Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Mi(t)}function Kc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Li=function(t){_Y(r,t);var e=wY(r);function r(){return vY(this,r),e.apply(this,arguments)}return gY(r,[{key:"_timeObserver",value:function(){if(this.time&&!isNaN(this.time.getTime())&&(this.minutes=this.time.getMinutes(),this.hours=this.time.getHours(),this.locale==="en")){var i=this.time.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).split(" ");this.hours=i[0],this.ampm=i[1].toLowerCase()}}},{key:"_hoursObserver",value:function(){this._setTimeValueByKey("hours")}},{key:"_minutesObserver",value:function(){this._setTimeValueByKey("minutes")}},{key:"_ampmObserver",value:function(){this.$.ampm.querySelectorAll(".list > *").forEach(function(i){return i.removeAttribute("selected")}),this._selectElement(this.$.ampm.querySelector(".".concat(this.ampm)))}},{key:"_setTimeValueByKey",value:function(i){var o=parseInt(this[i]);this.$[i].querySelectorAll(".".concat(i,"[selected]")).forEach(function(s){return s.removeAttribute("selected")});var a=this.$[i].querySelectorAll("\n			[data-".concat(i,'="').concat(o<10?"0"+o:this[i],'"]\n		'));a.length&&a.forEach(this._selectElement)}},{key:"_getTimeList",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Array(i).fill(0).map(function(s,l){var u=o.locale==="en"&&!a?l+1:l;return u<10?"0".concat(u):u})}},{key:"_getHoursList",value:function(){return this.locale==="en"?this._getTimeList(12):this._getTimeList(24)}},{key:"_getMinutesList",value:function(){return this._getTimeList(60,!0)}},{key:"_handleSetHours",value:function(i){this.hours=i.currentTarget.textContent,this._setTime()}},{key:"_handleSetMinutes",value:function(i){this.minutes=i.currentTarget.textContent,this._setTime()}},{key:"_handleSetAM",value:function(i){this.ampm="am",this._setTime()}},{key:"_handleSetPM",value:function(i){this.ampm="pm",this._setTime()}},{key:"_setTime",value:function(){var i=new Date;i.setHours(this.locale==="en"&&this.ampm==="pm"?parseInt(this.hours)+12:this.hours),i.setMinutes(this.minutes),this.time=i}},{key:"_selectElement",value:function(i){i.setAttribute("selected","true")}},{key:"_scrollPositionLists",value:function(i){var o=i,a=o.querySelectorAll(".list");o.scrollTop<20?o.insertBefore(a[1],a[0]):o.scrollTop+200>o.scrollHeight-20&&o.append(a[0])}},{key:"_setValueScroll",value:function(i,o){var a=parseInt(this[i]),s=parseInt(o),l=this.$[i].querySelector("\n			[data-".concat(i,'="').concat(a<10?"0"+s:s===12?11:o,'"]\n		'));this.$[i].scrollTop=l.offsetTop-l.offsetHeight}},{key:"_parseHoursAMPM",value:function(){var i=this.time.toLocaleString("en-US",{hour:"2-digit",hour12:!0}).split(" ");return{hours:i[0],ampm:i[1].toLowerCase()}}},{key:"_setInitialTime",value:function(){!this.time||(this._setTimeValueByKey("hours"),this._setTimeValueByKey("minutes"),this._setValueScroll("hours",this._parseHoursAMPM().hours),this._setValueScroll("minutes",this.time.getMinutes()),this.ampm=this._parseHoursAMPM().ampm)}},{key:"connectedCallback",value:function(){var i=this;$c(Mi(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.$.minutes.scrollTop=i.$.minutes.querySelector(".list").offsetHeight,i.$.hours.scrollTop=i.$.hours.querySelector(".list").offsetHeight,i._setInitialTime()}),this._infinityScroll=function(o){i._scrollPositionLists(o.currentTarget)},this.$.minutes.addEventListener("scroll",this._infinityScroll),this.$.hours.addEventListener("scroll",this._infinityScroll)}}]),r}(O);Kc(Li,"is","time-picker-ui");Kc(Li,"template",g([dA]));Kc(Li,"sharedStyles",["survey"]);Kc(Li,"properties",{time:{type:Date,notify:!0,observer:"_timeObserver"},hours:{type:Number,value:0,observer:"_hoursObserver",reflectToAttribute:!0},minutes:{type:Number,value:0,observer:"_minutesObserver",reflectToAttribute:!0},ampm:{type:String,value:"am",observer:"_ampmObserver",reflectToAttribute:!0},_hoursList:{computed:"_getHoursList()"},_minutesList:{computed:"_getMinutesList()"},locale:{type:String}});customElements.define(Li.is,Li);var mA='<style>\n	:host {\n		display: block;\n		width: 80px;\n	}\n\n	:host([full-theme]) {\n		width: auto;\n	}\n\n	:host([disabled]) iron-input {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([theme=brightest]) .btn {\n		background-color: rgba(255, 255, 255, 1) !important;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=brightest]) .btn-disabled {\n		opacity: 0.4;\n	}\n\n	:host([theme=brightest]) input {\n		background-color: rgba(255, 255, 255, 1) !important;\n		border-bottom: 2px solid rgba(255, 255, 255, 1);\n		border-top: 2px solid rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([theme=bg1]) .btn {\n		background-color: #eee !important;\n		color: #a8bac3;\n	}\n\n	:host([theme=bg1]) .btn-disabled {\n		opacity: 0.4;\n	}\n\n	:host([theme=bg1]) input {\n		background-color: #eee !important;\n		border-bottom: 2px solid #eee;\n		border-top: 2px solid #eee;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host(:not([theme=survey])) input {\n		padding-top: 2px;\n		border: none;\n		border-bottom: 2px solid #a8bac3;\n		border-bottom-left-radius: 0;\n		border-bottom-right-radius: 0;\n	}\n\n	.container {\n		position: relative;\n		display: block;\n		align-items: center;\n		margin-left: -2px;\n	}\n\n	.container > * {\n		margin-left: 2px;\n	}\n\n	:host([full-theme]) .container {\n		margin-left: 0;\n	}\n\n	:host([full-theme]) .container > * {\n		margin-left: 0;\n	}\n\n	input[value=""] {\n		border: 2px solid red;\n	}\n\n	.input {\n		width: 100%;\n		padding: 0 8px;\n		padding-top: 2px;\n		border-bottom-left-radius: 0;\n		border-bottom-right-radius: 0;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	input:focus {\n		border-bottom: 2px solid #607d8b;\n		background-color: rgba(255, 255, 255, 1) !important;\n	}\n\n	input {\n		min-width: 80px;\n		font-size: 18px;\n	}\n\n	:host(:not([valid])[show-errors]) input {\n		color: #d8252b;\n		border-color: #d8252b;\n	}\n\n	.icon {\n		position: absolute;\n		top: 4px;\n		right: 0;\n		padding-right: 5px;\n		font-size: 16px;\n		line-height: 1.6;\n		vertical-align: middle;\n		cursor: pointer;\n	}\n\n	.clear-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.clear-btn {\n		position: absolute;\n		right: 34px;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.time-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.time-btn {\n		position: absolute;\n		right: 0;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.time-btn > icon-ui {\n		vertical-align: baseline;\n	}\n\n	input:focus ~ .time-btn {\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([readonly]) .time-btn,\n	:host([disabled]) .time-btn {\n		display: none;\n		pointer-events: none;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	:host([is-mobile]) .clear-btn,\n	:host([is-mobile]) .time-btn {\n		display: none;\n	}\n\n	:host([readonly]) .clear-btn,\n	:host([disabled]) .clear-btn {\n		display: none;\n		pointer-events: none;\n	}\n</style>\n<style include="survey-style"></style>\n\n<iron-input\n	class="container"\n	auto-validate\n	prevent-invalid-input\n>\n	<input\n		id="input"\n		class="input"\n		required="[[required]]"\n		placeholder="[[_placeholder]]"\n		maxlength="[[_maxLength]]"\n		pattern="[[_pattern]]"\n		value="[[inputValue]]"\n		on-input="_inputHandler"\n		on-blur="_checkErrors"\n	>\n	<span class="outline-bottom"></span>\n\n	<div class="clear-btn" on-click="clear" on-mousedown="_clearMousedown" hidden="[[!_clearable]]">\n		<icon-ui icon="close"></icon-ui>\n	</div>\n\n	<div class="time-btn" on-click="openMenu">\n		<icon-ui id="timeIcon" icon="clock"></icon-ui>\n	</div>\n</iron-input>';function Gg(t){return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gg(t)}function SY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function kY(t,e,r){return e&&yA(t.prototype,e),r&&yA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yc(){return typeof Reflect!="undefined"&&Reflect.get?Yc=Reflect.get:Yc=function(e,r,n){var i=EY(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Yc.apply(this,arguments)}function EY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ni(t),t!==null););return t}function TY(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$g(t,e)}function $g(t,e){return $g=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$g(t,e)}function AY(t){var e=CY();return function(){var n=Ni(t),i;if(e){var o=Ni(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return RY(this,i)}}function RY(t,e){if(e&&(Gg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DY(t)}function DY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ni(t){return Ni=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ni(t)}function Xc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qi=function(t){TY(r,t);var e=AY(r);function r(){return SY(this,r),e.apply(this,arguments)}return kY(r,[{key:"_getPlaceholder",value:function(i,o){return o!=null&&o.trim()?o:i==="en"?"hh:mm a":"hh:mm"}},{key:"_getPattern",value:function(i){return i==="en"?"(1[012]|0?[1-9]):[0-5][0-9] (am|pm|AM|PM)":"\\d\\d:\\d\\d"}},{key:"_getMaxLength",value:function(i){return i==="en"?8:5}},{key:"_getEnUSLocale",value:function(){var i=ComponentRegistry.get("survey-builder-mdl");return i?i.publication.language:"ru"}},{key:"_validate",value:function(){if(typeof this.time=="string"&&(this.time=new Date(this.time)),typeof this.min=="string"&&(this.min=new Date(this.min)),this.min&&this.time){var i=this.time.getHours()*60+this.time.getMinutes(),o=this.min.getHours()*60+this.min.getMinutes();this.valid=this.$.input.checkValidity()&&i>=o}else this.valid=this.$.input.checkValidity()}},{key:"_getClearable",value:function(i,o){return i&&!!o}},{key:"_valueObserver",value:function(){var i=this;!this.time&&this.inputValue&&(this.time=this._parseTime(this.inputValue),this.time&&requestAnimationFrame(function(){i.$.input.value=i.inputValue})),this._validate()}},{key:"_timeObserver",value:function(){var i=this;this._validate();var o=function(s){return(s+"").padStart(2,"0")};requestAnimationFrame(function(){i.time?i._locale==="en"?i.inputValue=i.time.toLocaleTimeString("en-US",{hour:"2-digit",hour12:!0,minute:"numeric"}):i.inputValue=o(i.time.getHours())+":"+o(i.time.getMinutes()):i.inputValue=""})}},{key:"_initTimePicker",value:function(){var i=this;this._floatingUi=document.createElement("floating-ui"),this._timePicker=document.createElement("time-picker-ui"),this._timePicker.time=this.time,this._timePicker.locale=this._locale,this._floatingUi.fitToScreen=this.fitToScreen,this._floatingUi.append(this._timePicker),this._timePicker.addEventListener("time-changed",function(o){i.time=o.detail.value})}},{key:"openMenu",value:function(){this.readonly||this.disabled||this.menuShown||(this.menuShown=!0,this._initTimePicker(),this._floatingUi.context=this,document.body.append(this._floatingUi))}},{key:"closeMenu",value:function(){this._floatingUi&&this._floatingUi.remove(),this.menuShown=!1,this.$.input.blur()}},{key:"_checkErrors",value:function(){this.showErrors=!0}},{key:"_clearMousedown",value:function(i){i.preventDefault()}},{key:"clear",value:function(i){this.inputValue="",this.value="",this.$.input.value="",this.time=null,this.dispatchEvent(new CustomEvent("clear")),i.stopPropagation()}},{key:"_inputHandler",value:function(i){this._validate(),this._valueTemp=this._valueTemp===void 0?this.inputValue:this._valueTemp,this._valueTemp=this._valueTemp||"";var o=i.target,a=o.value;this.inputValue=o.value;var s=o.value.length,l=this._valueTemp.length;if(this._lastPos||(this._lastPos=0),!a){this.time=null;return}a.length<=2&&a.includes(":")&&(a=a.length===2?"0"+a:"00",s=a.length);var u=function(p){(l<s&&s>=p||l>s&&s-1>p)&&a[p]!==":"&&(a=a.slice(0,p)+":"+a.slice(p,s))};a=a.replace(/:/g,""),u(2),a.length>this._maxLength&&(a=a.slice(0,this._maxLength));var c=o.selectionStart;this._locale==="en"&&a.length===5&&this._lastPos<c&&(a=a.slice(0,5)+" AM"),c===o.value.length&&(c=a.length),o.value=a,o.selectionStart=c,o.selectionEnd=c,this._valueTemp=a,this.time=this._parseTime(a),this._lastPos=c}},{key:"_parseTime",value:function(i){var o=i.match(this._locale==="en"?/(\d\d):(\d\d) (am|pm|AM|PM)/:/(\d\d):(\d\d)/);if(o){var a,s=new Date;return s.setHours(((a=o[3])===null||a===void 0?void 0:a.toLowerCase())==="pm"?parseInt(o[1])+12:o[1]),s.setMinutes(o[2]),s}}},{key:"connectedCallback",value:function(){var i=this;Yc(Ni(r.prototype),"connectedCallback",this).call(this),this.$.input.type=this.isMobileDevise?"time":"text",this._outsideClickHandler=function(o){var a=o.composedPath().find(function(l){return l===i.$.timeIcon});if(a){o.preventDefault();return}var s=o.composedPath()[0].composedClosest("time-picker-ui");s!==i._timePicker&&i.closeMenu()},document.addEventListener("mousedown",this._outsideClickHandler)}}]),r}(ce(O));Xc(qi,"is","time-input-ui");Xc(qi,"template",g([Ve+mA]));Xc(qi,"sharedStyles",["survey"]);Xc(qi,"properties",{inputValue:{type:String,notify:!0,reflectToAttribute:!0,observer:"_valueObserver"},_valueTemp:{type:String},time:{type:Date,notify:!0,observer:"_timeObserver"},min:{type:Date,observer:"_validate"},required:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_validate"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},borderType:{type:String,value:"around",reflectToAttribute:!0},valid:{type:Boolean,reflectToAttribute:!0,notify:!0},showErrors:{type:Boolean,value:!1,reflectToAttribute:!0},clearBtn:{type:Boolean,value:!1,reflectToAttribute:!0},theme:{type:String,reflectToAttribute:!0},fullTheme:{type:Boolean,value:!1,reflectToAttribute:!0},menuShown:{type:Boolean,value:!1,reflectToAttribute:!0},placeholder:{type:String},_placeholder:{computed:"_getPlaceholder(_locale, placeholder)"},_pattern:{computed:"_getPattern(_locale)"},_maxLength:{computed:"_getMaxLength(_locale)"},_clearable:{computed:"_getClearable(clearBtn, inputValue)"},_locale:{computed:"_getEnUSLocale()"}});customElements.define(qi.is,qi);var vA="<style>\n	:host {\n		display: block;\n		position: absolute;\n		z-index: 50000;\n		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);\n	}\n\n	:host, ::slotted(*) {\n		border-radius: 4px;\n	}\n</style>\n\n<slot></slot>";function Kg(t){return Kg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kg(t)}function jY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function BY(t,e,r){return e&&gA(t.prototype,e),r&&gA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function vs(){return typeof Reflect!="undefined"&&Reflect.get?vs=Reflect.get:vs=function(e,r,n){var i=MY(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},vs.apply(this,arguments)}function MY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Fn(t),t!==null););return t}function LY(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yg(t,e)}function Yg(t,e){return Yg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Yg(t,e)}function NY(t){var e=HY();return function(){var n=Fn(t),i;if(e){var o=Fn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qY(this,i)}}function qY(t,e){if(e&&(Kg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zY(t)}function zY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function HY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Fn(t){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fn(t)}function Xg(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var gs=function(t){LY(r,t);var e=NY(r);function r(){return jY(this,r),e.apply(this,arguments)}return BY(r,[{key:"updatePosition",value:function(){if(!!this.context)if(this.fitToScreen){var i=this.context.getBoundingClientRect(),o=this.getBoundingClientRect(),a=i.left+window.scrollX;i.left+o.width>window.innerWidth&&(a+=window.scrollX+window.innerWidth-(a+o.width+this.margin));var s=i.bottom+window.scrollY+2;i.bottom+o.height+2>window.innerHeight&&(s+=window.scrollY+window.innerHeight-(s+o.height+this.margin)),this.style.left=a+"px",this.style.top=s+"px"}else{var l=this.context.getBoundingClientRect(),u=l.left+window.pageXOffset,c=l.bottom+window.pageYOffset;this.style.left=u+"px",this.style.top=c+"px"}}},{key:"connectedCallback",value:function(){var i=this;vs(Fn(r.prototype),"connectedCallback",this).call(this),this._scrollableHandler=function(o){if(!!i.context){var a=i.context.composedClosest("scrollable-ui");a===o.composedPath()[0].composedClosest("scrollable-ui")&&i.updatePosition()}},this._scrollHandler=function(o){i.updatePosition()},document.body.addEventListener("scroll",this._scrollHandler),document.addEventListener("content-scroll",this._scrollHandler),document.addEventListener("scrollable-ui",this._scrollableHandler),requestAnimationFrame(function(){i.updatePosition()})}},{key:"disconnectedCallback",value:function(){vs(Fn(r.prototype),"disconnectedCallback",this).call(this),document.body.removeEventListener("scroll",this._scrollHandler),document.removeEventListener("content-scroll",this._scrollHandler),document.removeEventListener("scrollable-ui",this._scrollableHandler)}}]),r}(O);Xg(gs,"is","floating-ui");Xg(gs,"template",g([vA]));Xg(gs,"properties",{context:{type:Element,observer:"updatePosition"},fitToScreen:{type:Boolean,value:!1},margin:{type:Number,value:0}});customElements.define(gs.is,gs);var bA='<style>\n	:host {\n		display: flex;\n		color: #607d8b;\n		font-size: 17px;\n		cursor: pointer;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([button-mode]) {\n		padding: 0 9px;\n	}\n\n	:host([button-mode]) .control {\n		display: none;\n	}\n\n	:host([button-mode][checked]) {\n		background: rgba(96, 125, 139, 0.1);\n	}\n\n	:host([label-position=right]),\n	:host([label-position=left]),\n	:host([theme=survey]) {\n		padding: 8px 0;\n	}\n\n	:host([label-position=right]:not(:empty)) .control {\n		margin-right: 8px;\n	}\n\n	:host([label-position=left]) {\n		flex-direction: row-reverse;\n		justify-content: space-between;\n	}\n\n	:host([label-position=left]:not(:empty)) .control {\n		padding-left: 8px;\n	}\n\n	:host([label-position=top]) {\n		flex-direction: column-reverse;\n	}\n\n	:host([label-position=top]:not(:empty)) .control {\n		margin-top: 8px;\n	}\n\n	:host([label-position=bottom]) {\n		flex-direction: column;\n	}\n\n	:host([label-position=bottom]:not(:empty)) .control {\n		margin-bottom: 8px;\n	}\n\n	input {\n		display: none;\n	}\n\n	.control {\n		display: flex;\n		position: relative;\n		color: inherit;\n		cursor: inherit;\n		height: 20px;\n		width: 20px;\n		margin: 0;\n		flex-shrink: 0;\n	}\n\n	.control::before {\n		content: \'\';\n		display: inline-block;\n		position: absolute;\n		box-sizing: border-box;\n		height: 20px;\n		width: 20px;\n		background-color: rgba(96, 125, 139, 0.1);\n		border: 2px solid #607d8b;\n		border-radius: 20px;\n	}\n\n	.control::after {\n		content: \'\';\n		position: absolute;\n		height: 10px;\n		width: 10px;\n		border-radius: 10px;\n		background-color: #607d8b;\n		-webkit-print-color-adjust: exact;\n		transition: 0.2s cubic-bezier(0, 0, 0.46, 1);\n		transform: translate(50%, 50%) scale(0.2);\n		opacity: 0;\n	}\n\n	:host([checked]) .control::after {\n		transform: translate(50%, 50%) scale(1);\n		opacity: 1;\n	}\n</style>\n<style include="survey-style"></style>\n\n<input\n	id="input"\n	type="radio"\n	name="[[name]]"\n	checked="{{checked::change}}"\n	disabled="[[disabled]]"\n	value="[[value]]"\n>\n<div class="control radio"></div>\n<slot></slot>';function Qg(t){return Qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qg(t)}function VY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _A(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function WY(t,e,r){return e&&_A(t.prototype,e),r&&_A(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zi(){return typeof Reflect!="undefined"&&Reflect.get?zi=Reflect.get:zi=function(e,r,n){var i=GY(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},zi.apply(this,arguments)}function GY(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=hr(t),t!==null););return t}function $Y(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jg(t,e)}function Jg(t,e){return Jg=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jg(t,e)}function KY(t){var e=QY();return function(){var n=hr(t),i;if(e){var o=hr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return YY(this,i)}}function YY(t,e){if(e&&(Qg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XY(t)}function XY(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QY(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function hr(t){return hr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},hr(t)}function Qc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xn=function(t){$Y(r,t);var e=KY(r);function r(){var n;return VY(this,r),n=e.call(this),n.addEventListener("click",function(){return n.toggle()}),n}return WY(r,[{key:"toggle",value:function(){(this.unCheck||!this.checked)&&(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("radio-checked",{composed:!0,bubbles:!0})))}},{key:"getSelectedValue",value:function(){var i=r.Registry.get(this.name);if(!!i){var o=i.find(function(a){return a.checked});return o&&o.value}}},{key:"_checkedObserver",value:function(){var i=this;if(this.setAttribute("aria-checked",!!this.checked),!!this.checked){var o=r.Registry.get(this.name);!o||o.forEach(function(a){a.checked&&a!==i&&(a.checked=!1,a.dispatchEvent(new CustomEvent("checkbox-checked",{composed:!0,bubbles:!0})))})}}},{key:"_nameObserver",value:function(i,o){this.isConnected&&o&&(this._removeFromRegistry(o),this._addToRegistry(this.name),this.checked&&(this.checked=!1))}},{key:"_addToRegistry",value:function(i){var o=r.Registry.get(i);o||(o=new Set,r.Registry.set(i,o)),o.add(this)}},{key:"_removeFromRegistry",value:function(i){var o=r.Registry.get(i);!o||o.delete(this)}},{key:"ready",value:function(){zi(hr(r.prototype),"ready",this).call(this),this.checked===void 0&&(this.checked=!1)}},{key:"connectedCallback",value:function(){zi(hr(r.prototype),"connectedCallback",this).call(this),this._addToRegistry(this.name)}},{key:"disconnectedCallback",value:function(){zi(hr(r.prototype),"disconnectedCallback",this).call(this),this._removeFromRegistry(this.name)}}]),r}(Q(M));Qc(xn,"is","radio-button-ui");Qc(xn,"template",g([bA]));Qc(xn,"sharedStyles",["survey"]);Qc(xn,"properties",{name:{type:String,reflectToAttribute:!0,observer:"_nameObserver"},value:{type:String,reflectToAttribute:!0},checked:{type:Boolean,notify:!0,reflectToAttribute:!0,observer:"_checkedObserver"},theme:{type:String,reflectToAttribute:!0},labelPosition:{type:String,value:"right",reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},buttonMode:{type:Boolean,value:!1,reflectToAttribute:!0},unCheck:{type:Boolean,value:!1,reflectToAttribute:!0}});xn.Registry=new Map;customElements.define(xn.is,xn);var wA="<slot></slot>";function Zg(t){return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(t)}function ZY(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function eX(t,e,r){return e&&FA(t.prototype,e),r&&FA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eb(t,e)}function eb(t,e){return eb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},eb(t,e)}function rX(t){var e=oX();return function(){var n=Jc(t),i;if(e){var o=Jc(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return nX(this,i)}}function nX(t,e){if(e&&(Zg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iX(t)}function iX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oX(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Jc(t){return Jc=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jc(t)}function tb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var et=function(t){tX(r,t);var e=rX(r);function r(){var n;return ZY(this,r),n=e.call(this),n._getColors=function(i,o,a){var s=function(u){var c,f,p,d=255;if(u.includes("#"))c=parseInt(u.slice(1,3),16),f=parseInt(u.slice(3,5),16),p=parseInt(u.slice(5,7),16);else if(u.includes("rgb")){var m=u.replace("rgba(","").replace("rgb(").replace(")","").split(",");c=m[0].trim()*1,f=m[1].trim()*1,p=m[2].trim()*1,d=m[3]?m[3]:255}return{r:c,g:f,b:p,a:d}};return{start:s(i),middle:s(o),end:s(a)}},n}return eX(r,[{key:"_getGridColor",value:function(i){var o,a,s,l;if(this.midStop){var u=Math.round(this.linesNum/2);i<u?(o=Math.round((this.colors.middle.r-this.colors.start.r)/u),a=Math.round((this.colors.middle.g-this.colors.start.g)/u),s=Math.round((this.colors.middle.b-this.colors.start.b)/u),l={r:Math.abs(this.colors.start.r+o*i),g:Math.abs(this.colors.start.g+a*i),b:Math.abs(this.colors.start.b+s*i)}):(o=Math.round((this.colors.end.r-this.colors.middle.r)/u),a=Math.round((this.colors.end.g-this.colors.middle.g)/u),s=Math.round((this.colors.end.b-this.colors.middle.b)/u),l={r:Math.abs(this.colors.middle.r+o*(i-u)),g:Math.abs(this.colors.middle.g+a*(i-u)),b:Math.abs(this.colors.middle.b+s*(i-u))})}else o=Math.round((this.colors.end.r-this.colors.start.r)/this.linesNum),a=Math.round((this.colors.end.g-this.colors.start.g)/this.linesNum),s=Math.round((this.colors.end.b-this.colors.start.b)/this.linesNum),l={r:Math.abs(this.colors.start.r+o*i),g:Math.abs(this.colors.start.g+a*i),b:Math.abs(this.colors.start.b+s*i)};return"rgb(".concat(l.r,", ").concat(l.g,", ").concat(l.b,")")}}]),r}(O);tb(et,"is","range-grid-ui");tb(et,"template",g([wA]));tb(et,"properties",{linesNum:{type:Number,value:11},midStop:{type:Boolean},showRuler:{type:Boolean},sliderType:{value:"slider"},colors:{type:Object,computed:"_getColors(startColor, middleColor, endColor)"},startColor:{value:"rgba(255, 0, 0, 255)"},middleColor:{value:"rgba(0, 0, 255, 255)"},endColor:{value:"rgba(0, 255, 0, 255)"}});customElements.define(et.is,et);var xA='<style>\n	:host {\n		--shift-marks: 0%;\n\n		display: flex;\n		justify-content: space-between;\n		align-items: center;\n		height: 30px;\n		padding-left: 8px;\n		padding-right: calc(8px + 0%);\n		flex-grow: 1;\n	}\n\n	:host([slider-type="balks"]) {\n		padding: 0;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	.grid-point {\n		height: 1px;\n		width: 1px;\n		position: relative;\n		font-size: 12px;\n	}\n\n	.grid-point::after {\n		position: absolute;\n		top: 0;\n		left: 0;\n		content: attr(data-num);\n		transform: translate(-50%, -50%);\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot></slot>';function sX(t,e){return fX(t)||cX(t,e)||uX(t,e)||lX()}function lX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uX(t,e){if(!!t){if(typeof t=="string")return OA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(t,e)}}function OA(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function cX(t,e){var r=t==null?null:typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,o=!1,a,s;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}return n}}function fX(t){if(Array.isArray(t))return t}var rb=function(e){e=e.trim(),e.startsWith("#")?e=pX(e):e==="transparent"&&(e="rgba(0, 0, 0, 0)");var r=e.match(/rgba?\((\d+(?:\.\d+)?), *(\d+(?:\.\d+)?), *(\d+(?:\.\d+)?)(?:, *(\d+(?:\.\d+)?))?\)/);if(!!r){var n=sX(r,5),i=n[0],o=n[1],a=n[2],s=n[3],l=n[4];return{r:+o,g:+a,b:+s,a:l===void 0?1:+l}}},pX=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n,i,o;return e.length===4?(n=parseInt(e[1]+e[1],16),i=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16)):e.length===5?(n=parseInt(e[1]+e[1],16),i=parseInt(e[2]+e[2],16),o=parseInt(e[3]+e[3],16),r=parseInt(e[4]+e[4],16)/255):(n=parseInt(e.slice(1,3),16),i=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16)),nb({r:n,g:i,b:o,a:r})};var nb=function(e){return"rgba("+e.r+", "+e.g+", "+e.b+", "+e.a+")"};var ib=function(e){return e>0?Math.pow(10,e):1},bs=function(e){var r=e.min,n=e.max,i=e.snap,o=e.lines,a=e.decimals,s=ib(a);return i?Math.floor((n-r)/(o-1)*s)/s:(n-r)/s/(n-r)},Zc=function(e){var r=e.min,n=e.max,i=e.snap,o=e.lines,a=e.decimals,s=bs({min:r,max:n,snap:i,lines:o,decimals:a}),l=0;if(i){var u=s*(o-1),c=n-r;c>o&&(l=(1-u/c)*100)}return l};function ob(t){return ob=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ob(t)}function dX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hX(t,e,r){return e&&PA(t.prototype,e),r&&PA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ef(){return typeof Reflect!="undefined"&&Reflect.get?ef=Reflect.get:ef=function(e,r,n){var i=mX(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ef.apply(this,arguments)}function mX(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Hi(t),t!==null););return t}function yX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ab(t,e)}function ab(t,e){return ab=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},ab(t,e)}function vX(t){var e=_X();return function(){var n=Hi(t),i;if(e){var o=Hi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return gX(this,i)}}function gX(t,e){if(e&&(ob(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bX(t)}function bX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Hi(t){return Hi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hi(t)}function tf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ui=function(t){yX(r,t);var e=vX(r);function r(){return dX(this,r),e.apply(this,arguments)}return hX(r,[{key:"_drawGrid",value:function(){this._removeGrid();var i=this.max;if(this.snap){var o=bs({min:this.min,max:this.max,snap:this.snap,lines:this.lines,decimals:this.decimals});i=this.min+o*(this.lines-1)}for(var a=1;a<=this.lines;a++){var s=document.createElement("div");s.classList.add("grid-point");var l=i-this.min,u=l/(this.lines-1),c=this.min*1+u*(a-1),f=1;this.decimals>0&&(f=Math.pow(10,this.decimals)),a<this.lines&&a>1?s.dataset.num=Math.round(c*f)/f:a===1?s.dataset.num=this.min:s.dataset.num=i,this.sliderType==="gradient-sliders"&&(s.style.color=this._getGridColor(a)),this.shadowRoot.append(s)}}},{key:"_removeGrid",value:function(){var i=this.shadowRoot.querySelectorAll(".grid-point");i.forEach(function(o){o.remove()})}},{key:"connectedCallback",value:function(){ef(Hi(r.prototype),"connectedCallback",this).call(this),this._drawGrid();var i=Zc({min:this.min,max:this.max,snap:this.snap,lines:this.lines,decimals:this.decimals});this.style.setProperty("--shift-marks",i+"%")}}]),r}(Q(et));tf(Ui,"is","range-grid-digital-ui");tf(Ui,"template",g([xA]));tf(Ui,"sharedStyles",["survey"]);tf(Ui,"properties",{gridShape:{value:"uniform"},min:{type:Number,reflectToAttribute:!0},max:{type:Number,reflectToAttribute:!0},snap:{type:Boolean,reflectToAttribute:!0},lines:{type:Number,reflectToAttribute:!0},decimals:{type:Number,reflectToAttribute:!0}});customElements.define(Ui.is,Ui);var SA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		justify-content: center;\n		position: relative;\n		flex-grow: 1;\n		padding: 2px 0;\n		--shift-marks: 0%;\n	}\n\n	:host ::slotted(*) {\n		position: relative;\n	}\n\n	.grid {\n		display: flex;\n		justify-content: space-between;\n		align-items: center;\n		position: absolute;\n		height: 100%;\n		width: 100%;\n		top: 0;\n		left: 0;\n		box-sizing: border-box;\n		background-origin: content-box;\n		padding-left: 8px;\n		padding-right: calc(8px + 0%);\n		transform: translateZ(0);\n		opacity: 1;\n		transition: opacity .4s ease;\n	}\n\n\n	:host([slider-type="balks"]) .grid {\n		padding-left: 0;\n		padding-right: 0;\n	}\n\n	:host([grid-transparent]) .grid {\n		opacity: .5;\n	}\n\n	.custom-bg-color {\n		background-color: rgb(27, 171, 210);\n	}\n</style>\n<style include="survey-style"></style>\n\n<div id="grid" class="grid"></div>\n<slot></slot>';function sb(t){return sb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sb(t)}function FX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xX(t,e,r){return e&&kA(t.prototype,e),r&&kA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rf(){return typeof Reflect!="undefined"&&Reflect.get?rf=Reflect.get:rf=function(e,r,n){var i=OX(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},rf.apply(this,arguments)}function OX(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Vi(t),t!==null););return t}function PX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lb(t,e)}function lb(t,e){return lb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},lb(t,e)}function SX(t){var e=TX();return function(){var n=Vi(t),i;if(e){var o=Vi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return kX(this,i)}}function kX(t,e){if(e&&(sb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EX(t)}function EX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TX(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Vi(t){return Vi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(t)}function nf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wi=function(t){PX(r,t);var e=SX(r);function r(){return FX(this,r),e.apply(this,arguments)}return xX(r,[{key:"_drawGrid",value:function(){this._removeGrid();for(var i="34px",o=0;o<this.lines;o++){var a=document.createElement("div");this.gridShape==="grow"&&this.sliderType==="gradient-sliders"?i="".concat(10+Math.round(24/this.lines*o*10)/10,"px"):this.gridShape==="decrease"&&this.sliderType==="gradient-sliders"?i="".concat(34-Math.round(24/this.lines*o*10)/10,"px"):this.gridShape==="node"&&this.sliderType==="gradient-sliders"?o<this.lines/2?i="".concat(10+Math.round(24/(this.lines/2)*o*10)/10,"px"):o===this.lines/2?i="34px":i="".concat(34-Math.round(24/(this.lines/2)*(o-Math.round(this.lines/2))*10)/10,"px"):this.gridShape==="thinning"&&this.sliderType==="gradient-sliders"&&(o<this.lines/2?i="".concat(34-Math.round(22/(this.lines/2)*o*10)/10,"px"):o===this.lines/2?i="12px":i="".concat(12+Math.round(22/(this.lines/2)*(o-Math.round(this.lines/2))*10)/10,"px"));var s=this._getGridColor(o),l=s.replace("rgb(","rgba(").replace(")",", 0.1)"),u={backgroundClip:"padding-box",width:"2px",height:i};this.sliderType==="gradient-sliders"?(u.borderLeft="2px solid ".concat(l),u.borderRight="2px solid ".concat(l),a.style.backgroundColor=s):a.classList.add("custom-bg-color"),Object.assign(a.style,u),this.$.grid.append(a)}}},{key:"_removeGrid",value:function(){this.$.grid.innerHTML=null}},{key:"connectedCallback",value:function(){var i=this;rf(Vi(r.prototype),"connectedCallback",this).call(this),(this.showRuler||this.sliderType==="gradient-sliders")&&this._drawGrid(),requestAnimationFrame(function(){i.querySelector("range-input-ui").value||(i.gridTransparent=!0)}),this.addEventListener("range-changed",function(){i.gridTransparent=!1});var o=Zc({min:this.min,max:this.max,snap:this.snap,lines:this.lines,decimals:this.decimals});this.style.setProperty("--shift-marks",o+"%")}}]),r}(Q(et));nf(Wi,"is","range-grid-mark-ui");nf(Wi,"template",g([SA]));nf(Wi,"sharedStyles",["survey"]);nf(Wi,"properties",{gridShape:{value:"uniform"},min:{type:Number,reflectToAttribute:!0},max:{type:Number,reflectToAttribute:!0},snap:{type:Boolean,reflectToAttribute:!0},lines:{type:Number,reflectToAttribute:!0},decimals:{type:Number,reflectToAttribute:!0},gridTransparent:{value:!1,reflectToAttribute:!0}});customElements.define(Wi.is,Wi);var EA='<style>\n	:host {\n		display: flex;\n		flex-direction: row;\n		justify-content: space-between;\n		align-items: flex-end;\n		flex-grow: 1;\n		padding-top: 2px;\n		padding-bottom: 2px;\n		padding-left: 6px;\n		padding-right: 6px;\n		min-width: 0;\n		box-sizing: border-box;\n		margin: 0 calc(var(--container-width) / var(--items-count) / -2);\n		--container-width: 310px;\n		--items-count: 11;\n		max-height: 500px;\n	}\n\n	:host([slider-type="balks"]) {\n		padding: 0;\n	}\n\n	:host([width-type=small]) { --container-width: 240px; }\n	:host([width-type=medium]) { --container-width: 480px; }\n	:host([width-type=wide]) { --container-width: 600px; }\n\n	:host([item-count="1"]) { --items-count: 1; }\n	:host([item-count="2"]) { --items-count: 1.5; }\n	:host([item-count="3"]) { --items-count: 2.7; }\n	:host([item-count="4"]) { --items-count: 4; }\n	:host([item-count="5"]) { --items-count: 5; }\n	:host([item-count="6"]) { --items-count: 6; }\n	:host([item-count="7"]) { --items-count: 7; }\n	:host([item-count="8"]) { --items-count: 8; }\n	:host([item-count="9"]) { --items-count: 9; }\n	:host([item-count="10"]) { --items-count: 10; }\n\n	:host([width-type=auto][item-count="2"]) { --items-count: 2; }\n	:host([width-type=auto][item-count="3"]) { --items-count: 3; }\n\n	:host([width-type=medium][item-count="1"]) { --items-count: 2; }\n	:host([width-type=medium][item-count="2"]) { --items-count: 2; }\n\n	:host([width-type=wide][item-count="1"]) { --items-count: 2.5; }\n	:host([width-type=wide][item-count="2"]) { --items-count: 2.5; }\n\n	::slotted(*) {\n		word-wrap: break-word;\n		text-align: center;\n		width: calc(var(--container-width) / var(--items-count));\n		min-width: 0;\n	}\n\n	:host([is-ie]) ::slotted(*) {\n		width: 100px;\n	}\n\n	:host([width-type=auto]) {\n		margin: 0 calc((100% / var(--items-count) * -1) + 30px);\n	}\n\n	:host([width-type=auto]) ::slotted(*) {\n		flex-basis: calc(100% / var(--items-count));\n	}\n\n	:host([width-type=fixed]) {\n		margin: 0;\n	}\n\n	:host([width-type=fixed]:not([item-count="1"])) ::slotted(span:first-of-type) {\n		text-align: left;\n	}\n\n	:host([width-type=fixed]:not([item-count="1"])) ::slotted(span:last-of-type) {\n		text-align: right;\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n\n	/* mobile */\n	@media (max-width: 700px) {\n		:host {\n			margin: 0 !important;\n		}\n\n		::slotted(:last-of-type) {\n			text-align: end;\n		}\n\n		::slotted(:first-of-type) {\n			text-align: start;\n		}\n\n		:host([is-g-scale]) ::slotted(:last-of-type) {\n			text-align: center;\n			padding-left: 20px;\n		}\n\n		:host([is-g-scale]) ::slotted(:first-of-type) {\n			text-align: center;\n			padding-right: 20px;\n		}\n\n		:host([is-g-scale][item-count="2"]) {\n			justify-content: center;\n		}\n\n		:host([is-g-scale][item-count="2"]) ::slotted(*) {\n			width: 160px;\n		}\n	}\n</style>\n\n<slot></slot>';function ub(t){return ub=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ub(t)}function RX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function DX(t,e,r){return e&&TA(t.prototype,e),r&&TA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function of(){return typeof Reflect!="undefined"&&Reflect.get?of=Reflect.get:of=function(e,r,n){var i=CX(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},of.apply(this,arguments)}function CX(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Gi(t),t!==null););return t}function IX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cb(t,e)}function cb(t,e){return cb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},cb(t,e)}function jX(t){var e=LX();return function(){var n=Gi(t),i;if(e){var o=Gi(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return BX(this,i)}}function BX(t,e){if(e&&(ub(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MX(t)}function MX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LX(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Gi(t){return Gi=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(t)}function AA(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var af=function(t){IX(r,t);var e=jX(r);function r(){return RX(this,r),e.apply(this,arguments)}return DX(r,[{key:"connectedCallback",value:function(){var i=this;of(Gi(r.prototype),"connectedCallback",this).call(this),me(function(){requestAnimationFrame(function(){i.setAttribute("item-count",i.querySelectorAll("span").length)})})}}]),r}(ce(et));AA(af,"template",g([EA]));AA(af,"is","range-grid-header-el");customElements.define(af.is,af);var RA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		justify-content: center;\n	}\n\n	:host([disabled]) .range-value {\n		display: none;\n	}\n\n	/* .range-value {\n		color: var(--color-accent);\n	} */\n</style>\n\n<div class="range-value">[[value]]</div>';function fb(t){return fb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fb(t)}function qX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function DA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zX(t,e,r){return e&&DA(t.prototype,e),r&&DA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sf(){return typeof Reflect!="undefined"&&Reflect.get?sf=Reflect.get:sf=function(e,r,n){var i=HX(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},sf.apply(this,arguments)}function HX(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=$i(t),t!==null););return t}function UX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pb(t,e)}function pb(t,e){return pb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pb(t,e)}function VX(t){var e=$X();return function(){var n=$i(t),i;if(e){var o=$i(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return WX(this,i)}}function WX(t,e){if(e&&(fb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GX(t)}function GX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $i(t){return $i=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$i(t)}function db(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var _s=function(t){UX(r,t);var e=VX(r);function r(){return qX(this,r),e.apply(this,arguments)}return zX(r,[{key:"connectedCallback",value:function(){var i=this;sf($i(r.prototype),"connectedCallback",this).call(this);var o;requestAnimationFrame(function(){o=i.parentElement.parentElement.parentElement.querySelector("range-input-ui,g-scale-ui"),o&&(o.addEventListener("range-changed",i._rangeHandler),o.addEventListener("value-changed",i._valueHandler))}),this._rangeHandler=function(a){a.detail&&(i.value=parseFloat(Math.round(a.detail*100)/100).toFixed(i.decimals))},this._valueHandler=function(a){a.detail.value&&(i.value=parseFloat(Math.round(a.detail.value*100)/100).toFixed(i.decimals))}}}]),r}(O);db(_s,"is","range-value-el");db(_s,"template",g([RA]));db(_s,"properties",{value:{type:String},disabled:{type:Boolean,reflectToAttribute:!0},decimals:{type:Number,value:0}});customElements.define(_s.is,_s);var CA='<style>\n	:host {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		color: #607d8b;\n		font-size: 17px;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		min-height: 34px;\n	}\n\n	:host([theme=bg1]) {\n		--slider-thumb-color: var(--color-brightest);\n		--slider-track-color: var(--color-theme-bg-1);\n	}\n\n	:host([theme=bg2]) {\n		--slider-thumb-color: var(--color-theme-bg-1);\n		--slider-track-color: var(--color-brightest);\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host(:not([value])) input,\n	:host([value=NaN]) input,\n	:host([value=""]) input {\n		opacity: 0.6;\n	}\n\n	:host(:not([value]):not([disabled]):hover) input,\n	:host([value=NaN]:not([disabled]):hover) input,\n	:host([value=""]:not([disabled]):hover) input {\n		opacity: 1;\n	}\n\n	:host(:not([value]):not([disabled])) input::-webkit-slider-runnable-track,\n	:host([value=NaN]:not([disabled])) input::-webkit-slider-runnable-track,\n	:host([value=""]:not([disabled])) input::-webkit-slider-runnable-track {\n		-webkit-filter: grayscale(70%) contrast(140%);\n		        filter: grayscale(70%) contrast(140%);\n	}\n\n	:host(:not([value])) input::-moz-range-track,\n	:host([value=NaN]) input::-moz-range-track,\n	:host([value=""]) input::-moz-range-track {\n		filter: grayscale(70%) contrast(140%);\n	}\n\n	:host(:not([value])) input::-ms-track,\n	:host([value=NaN]) input::-ms-track,\n	:host([value=""]) input::-ms-track {\n		filter: grayscale(70%) contrast(140%);\n	}\n\n	.wrap {\n		position: relative;\n		display: flex;\n		align-items: center;\n		width: 100%;\n	}\n\n	input {\n		width: 100%;\n		min-width: 100%;\n		height: calc(34px - 8px);\n		background-color: transparent;\n		margin: 0;\n		padding: 0;\n		display: inline-block;\n		vertical-align: inherit;\n		cursor: inherit;\n		transition: 0.2s;\n		-webkit-appearance: none;\n	}\n\n	input::-moz-focus-outer {\n		border: 0;\n	}\n\n	:host([readonly]) input {\n		-webkit-filter: grayscale(50%);\n		        filter: grayscale(50%);\n		cursor: default;\n		pointer-events: none;\n	}\n\n	input[disabled] {\n		opacity: 0.6;\n		-webkit-filter: grayscale(100%);\n		        filter: grayscale(100%);\n		cursor: default;\n		pointer-events: none;\n	}\n\n	input[disabled]::-webkit-slider-thumb {\n		display: none;\n	}\n\n	input[disabled]::-moz-range-thumb {\n		display: none;\n		visibility: hidden;\n	}\n\n	input[disabled]::-ms-thumb {\n		display: none;\n	}\n\n	:host([slider-type=balks]) input[disabled] {\n		opacity: 0.2;\n	}\n\n	:host([slider-type=balks]) .wrap {\n		overflow: hidden;\n	}\n\n	:host([slider-type=balks]) input {\n		-webkit-appearance: none;\n		display: block;\n		cursor: default;\n		transition: 0.2s;\n		background: #a8bac3;\n		border: 1px solid #607d8b;\n		overflow: hidden;\n		contain: paint;\n		transform: translate(0, 0);\n	}\n\n	:host([no-border]) input {\n		border: 0;\n	}\n\n	:host([slider-type=balks]) input::-webkit-slider-runnable-track {\n		border: none;\n		background: none;\n		-webkit-transition: none;\n		transition: none;\n		box-shadow: none;\n		width: 100%;\n		border-radius: 0;\n		cursor: default;\n	}\n\n	:host([slider-type=balks]) input::-moz-range-track {\n		border: none;\n		background: none;\n		-moz-transition: none;\n		transition: none;\n		box-shadow: none;\n		width: 100%;\n		border-radius: 0;\n		cursor: default;\n	}\n\n	:host([slider-type=balks]) input::-ms-track {\n		border: none;\n		background: none;\n		-ms-transition: none;\n		transition: none;\n		box-shadow: none;\n		width: 100%;\n		border-radius: 0;\n		cursor: default;\n	}\n\n	:host([slider-type=balks]) input::-webkit-slider-thumb {\n		height: 60px;\n		width: 0;\n		background: none;\n		cursor: default;\n		-webkit-appearance: none;\n		margin-top: -30px;\n		-webkit-transition: transform 0.2s;\n		transition: transform 0.2s;\n		box-shadow: -500px 0 0 500px #607d8b;\n		transform: none;\n		border: none;\n	}\n\n	:host([slider-type=balks]) input::-moz-range-thumb {\n		box-sizing: border-box;\n		height: 60px;\n		width: 0;\n		background: none;\n		cursor: default;\n		-webkit-appearance: none;\n		margin-top: -30px;\n		-moz-transition: transform 0.2s;\n		transition: transform 0.2s;\n		box-shadow: -500px 0 0 500px #607d8b;\n		transform: none;\n		border: none;\n	}\n\n	:host([slider-type=balks]) input::-ms-thumb {\n		box-sizing: border-box;\n		height: 60px;\n		width: 0;\n		background: none;\n		cursor: default;\n		-webkit-appearance: none;\n		margin-top: -30px;\n		-ms-transition: transform 0.2s;\n		transition: transform 0.2s;\n		box-shadow: -500px 0 0 500px #607d8b;\n		transform: none;\n		border: none;\n		/* background: #4CAF50; */\n	}\n\n	input::-webkit-slider-runnable-track {\n		box-sizing: border-box;\n		width: 100%;\n		height: 8px;\n		cursor: default;\n		-webkit-transition: 0.2s;\n		transition: 0.2s;\n		border-radius: 16px;\n		box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4);\n		border: 1px solid #eee;\n		background: #a8bac3;\n		-webkit-print-color-adjust: exact;\n	}\n\n	input::-moz-range-track {\n		box-sizing: border-box;\n		width: 100%;\n		height: 8px;\n		cursor: default;\n		-moz-transition: 0.2s;\n		transition: 0.2s;\n		border-radius: 16px;\n		box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4);\n		border: 1px solid #eee;\n		background: #a8bac3;\n	}\n\n	input::-ms-track {\n		box-sizing: border-box;\n		width: 100%;\n		height: 8px;\n		cursor: default;\n		-ms-transition: 0.2s;\n		transition: 0.2s;\n		border-radius: 16px;\n		box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.4);\n		border: 1px solid #eee;\n		background: #a8bac3;\n	}\n\n	input[type=range]::-ms-fill-lower,\n	input[type=range]::-ms-fill-upper {\n		border-radius: 16px;\n		background: #a8bac3;\n	}\n\n	input::-webkit-slider-thumb {\n		box-sizing: border-box;\n		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n		height: 16px;\n		width: 16px;\n		border-radius: 16px;\n		background: #607d8b;\n		cursor: pointer;\n		-webkit-appearance: none;\n		margin-top: -6px;\n		-webkit-transition: transform 0.2s;\n		transition: transform 0.2s;\n	}\n\n	input::-moz-range-thumb {\n		box-sizing: border-box;\n		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n		height: 16px;\n		width: 16px;\n		border-radius: 16px;\n		background: #607d8b;\n		cursor: pointer;\n		-webkit-appearance: none;\n		margin-top: -6px;\n		-moz-transition: transform 0.2s;\n		transition: transform 0.2s;\n		transform: translateZ(0);\n	}\n\n	input::-ms-thumb {\n		box-sizing: border-box;\n		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n		height: 16px;\n		width: 16px;\n		border-radius: 16px;\n		background: #607d8b;\n		cursor: pointer;\n		-webkit-appearance: none;\n		margin-top: -2px;\n		-ms-transition: transform 0.2s;\n		transition: transform 0.2s;\n	}\n\n	input::-webkit-slider-thumb:hover {\n		transform: scale(1.2);\n		background: #a8bac3;\n		border: 6px solid #607d8b;\n	}\n\n	input::-moz-range-thumb:hover {\n		transform: scale(1.2);\n		background: #a8bac3;\n		border: 6px solid #607d8b;\n	}\n\n	input::-ms-thumb:hover {\n		background: #a8bac3;\n		border: 6px solid #607d8b;\n	}\n\n	:host(:not([focus-visible])) input:focus {\n		outline: none;\n	}\n\n	.clear-btn {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		flex-shrink: 0;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.clear-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.clear-btn > icon-ui {\n		vertical-align: baseline;\n	}\n\n	:host(:not([clearable])) .clear-btn {\n		opacity: 0;\n		pointer-events: none;\n	}\n\n	:host(:not([clear-btn])) .clear-btn,\n	:host([readonly]) .clear-btn,\n	:host([disabled]) .clear-btn {\n		display: none;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="wrap">\n	<input\n		id="input"\n		type="range"\n		class="range"\n		name="[[name]]"\n		disabled="[[disabled]]"\n		max="[[max]]"\n		min="[[min]]"\n		step="[[step]]"\n		value="{{value}}"\n		aria-label$="[[ariaLabel]]"\n		part="input"\n		on-input="_onInput"\n	>\n	<div class="clear-btn" on-click="clear" on-mousedown="_clearMousedown">\n		<icon-ui icon="close"></icon-ui>\n	</div>\n</div>\n\n<slot></slot>';function hb(t){return hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hb(t)}function IA(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function YX(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){IA(o,n,i,a,s,"next",l)}function s(l){IA(o,n,i,a,s,"throw",l)}a(void 0)})}}function XX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function QX(t,e,r){return e&&jA(t.prototype,e),r&&jA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ki(){return typeof Reflect!="undefined"&&Reflect.get?Ki=Reflect.get:Ki=function(e,r,n){var i=JX(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ki.apply(this,arguments)}function JX(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=mr(t),t!==null););return t}function ZX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&mb(t,e)}function mb(t,e){return mb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},mb(t,e)}function eQ(t){var e=nQ();return function(){var n=mr(t),i;if(e){var o=mr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tQ(this,i)}}function tQ(t,e){if(e&&(hb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rQ(t)}function rQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function mr(t){return mr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mr(t)}function lf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Yi=function(t){ZX(r,t);var e=eQ(r);function r(){var n;return XX(this,r),n=e.call(this),n._getFactor=ib,n._getStep=function(i,o,a,s,l){return bs({min:i,max:o,snap:a,lines:s,decimals:l})},n._getRange=function(i){return i},n}return QX(r,[{key:"_getClearable",value:function(i,o){return i&&!!o}},{key:"_valueObserver",value:function(){var n=YX(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,0;case 2:if(this.isBuilder&&(this.value===void 0&&(this.value=null),this._setInitial()),this._resetCenterInit(),this.value>this.maxRange-this.step&&(this.value=this.maxRange),!(this.$.input.valueAsNumber!==+this.value&&this.value!=null&&!Object.is(this.value,NaN))){s.next=13;break}s.prev=6,this.$.input.valueAsNumber=this.value,s.next=13;break;case 10:throw s.prev=10,s.t0=s.catch(6),"range-input-ui: error when trying to set value ".concat(this.value,"; ").concat(s.t0.stack,"; ").concat(this.getRootNode().host.localName);case 13:case"end":return s.stop()}},o,this,[[6,10]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"_initialStateObserver",value:function(){this.isBuilder&&!parseInt(this.initialState)&&(this.value=null),this._setInitial()}},{key:"_disabledObserver",value:function(){!this.constantSum||(this.disabled?this.constantSum.setValue(this,0):this.constantSum.setValue(this,+this.value),this._checkConstantSum())}},{key:"_constantSumObserver",value:function(){var i;(i=this.constantSum)===null||i===void 0||i.setValue(this,this.$.input.valueAsNumber)}},{key:"focus",value:function(){this.$.input.focus()}},{key:"_setInitial",value:function(){if(this.value==null||this.value==="")if(this.initialState!=null){var i={half:(this.min+this.max)/2,empty:this.min,filled:this.max};(this.initialState==="half"||!Number.isInteger(this.initialState))&&(this.$.input.step=.1),this.$.input.value=this.initialState in i?i[this.initialState]:this.initialState}else this.min<0?this.$.input.value=this.min:this.$.input.value=0;else this.$.input.value=this.value}},{key:"_updateRange",value:function(i){var o=i.currentTarget.getBoundingClientRect(),a=(i.changedTouches[0].clientX-o.left)/o.width;if(a<.015?a=0:a>.985&&(a=1),i.currentTarget.value=this.min+a*(this.max-this.min),i.currentTarget.value===1/0)throw"range-input-ui: Infinity value (".concat(i.changedTouches[0].clientX,", ").concat(o.left,", ").concat(o.width,"; ").concat(this.min,", ").concat(this.max,")");this.value=i.currentTarget.value,this.dispatchEvent(new CustomEvent("range-changed",{bubbles:!0,detail:this.value})),i.cancelable&&i.preventDefault()}},{key:"_resetCenterInit",value:function(){this.$.input.step=this.step}},{key:"_clearMousedown",value:function(i){i.preventDefault()}},{key:"clear",value:function(i){this.value=null,this._setInitial(),this.dispatchEvent(new CustomEvent("clear")),i.stopPropagation()}},{key:"_checkConstantSum",value:function(){this.constantSum&&this.constantSum.overflowValidation==="forbid-input"&&this.constantSum.remainingPoints<0&&this.$.input.valueAsNumber>this.$.input.min&&(this.$.input.valueAsNumber=this.$.input.valueAsNumber+this.constantSum.remainingPoints,this.$.input.dispatchEvent(new CustomEvent("input")),this.constantSum.setValue(this,this.$.input.valueAsNumber))}},{key:"_onInput",value:function(i){this.constantSum&&(this.disabled||this.constantSum.setValue(this,i.target.valueAsNumber),this._checkConstantSum())}},{key:"ready",value:function(){var i=this;Ki(mr(r.prototype),"ready",this).call(this),this.$.input.oninput=function(){i.value=i.$.input.value},this.$.input.onchange=function(){i.dispatchEvent(new CustomEvent("range-changed",{bubbles:!0,detail:i.$.input.value}))},this._touchstartHandler=function(o){o.cancelable&&o.preventDefault()},this._touchendHandler=function(o){i._resetCenterInit(),i._updateRange(o)},this._touchmoveHandler=function(o){i._resetCenterInit(),i._updateRange(o)},this._mouseupHandler=function(o){i.value=o.currentTarget.value,i.dispatchEvent(new CustomEvent("range-changed",{bubbles:!0,detail:o.currentTarget.value}))},this.$.input.addEventListener("touchstart",this._touchstartHandler,{passive:!1}),this.$.input.addEventListener("touchend",this._touchendHandler),this.$.input.addEventListener("touchmove",this._touchmoveHandler,{passive:!1}),this.$.input.addEventListener("mouseup",this._mouseupHandler)}},{key:"connectedCallback",value:function(){var i=this;Ki(mr(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i._setInitial()})}},{key:"disconnectedCallback",value:function(){Ki(mr(r.prototype),"disconnectedCallback",this).call(this),this.constantSum&&this.constantSum.setValue(this,0)}}]),r}(sr(O));lf(Yi,"is","range-input-ui");lf(Yi,"template",g([CA]));lf(Yi,"sharedStyles",["survey"]);lf(Yi,"properties",{name:{type:String,reflectToAttribute:!0},value:{type:String,notify:!0,reflectToAttribute:!0,observer:"_valueObserver"},disabled:{type:Boolean,reflectToAttribute:!0,observer:"_disabledObserver"},max:{type:Number,observer:"_initialStateObserver"},maxRange:{type:Number,computed:"_getRange(max, factor)",observer:"_initialStateObserver"},min:{type:Number,observer:"_initialStateObserver"},minRange:{type:Number,computed:"_getRange(min, factor)",observer:"_initialStateObserver"},step:{type:Number,computed:"_getStep(min, max, snap, lines, decimals)",observer:"_valueObserver"},decimals:{type:Number,value:0,observer:"_initialStateObserver"},factor:{type:Number,computed:"_getFactor(decimals)"},snap:{type:Boolean,observer:"_initialStateObserver"},lines:{type:Number},sliderType:{value:"slider",reflectToAttribute:!0},initialState:{type:String,observer:"_initialStateObserver"},ariaLabel:{type:String},clearBtn:{type:Boolean,value:!1,reflectToAttribute:!0},clearable:{computed:"_getClearable(clearBtn, value)",reflectToAttribute:!0},isBuilder:{type:Boolean,value:!1},constantSum:{type:Object,consume:{key:"constantSum",required:!1},observer:"_constantSumObserver"}});customElements.define(Yi.is,Yi);var BA="<style>\n	:host {\n		display: inline-block;\n		height: 1em;\n		max-height: 1em;\n		width: 1em;\n		min-width: 1em;\n		max-width: 1em;\n		background-repeat: no-repeat;\n		background-position: center center;\n		background-size: contain;\n		padding: 0;\n		margin: 0;\n		white-space: nowrap;\n		overflow: hidden;\n		text-align: center;\n		color: rgba(0, 0, 0, 0);\n	}\n</style>\n&emsp;";function yb(t){return yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yb(t)}function oQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aQ(t,e,r){return e&&MA(t.prototype,e),r&&MA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vb(t,e)}function vb(t,e){return vb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vb(t,e)}function lQ(t){var e=fQ();return function(){var n=uf(t),i;if(e){var o=uf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return uQ(this,i)}}function uQ(t,e){if(e&&(yb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cQ(t)}function cQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function uf(t){return uf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},uf(t)}function gb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ws=function(t){sQ(r,t);var e=lQ(r);function r(){return oQ(this,r),e.apply(this,arguments)}return aQ(r,[{key:"_picObserver",value:function(){var i={"smile-min":"1f641.svg","smile-low":"1f615.svg","smile-low-min":"1f62b.svg","smile-neutral":"1f610.svg",smile:"1f642.svg","smile-revers":"1f643.svg","smile-high":"1f642.svg","smile-max":"1f603.svg","smile-high-max":"1f60a.svg","smile-tongue":"1f60b.svg","smile-close-eyes":"1f60c.svg","smile-eyes-heart":"1f60d.svg","smile-louing":"1f60f.svg","smile-kiss":"1f61a.svg","smile-neutral-tongue":"1f61b.svg","smile-eye-tongue":"1f61c.svg","smile-hight-tongue":"1f61d.svg","smile-hurt":"1f61e.svg","smile-surprise":"1f61f.svg","smile-sleepy":"1f62a.svg","smile-tired":"1f62b.svg","smile-guilty":"1f62c.svg","smile-weep":"1f62d.svg","smile-confusion":"1f62e.svg","smile-full-confusion":"1f62f.svg","smile-admiration":"1f600.svg","smile-laughter":"1f601.svg","smile-tears-happiness":"1f602.svg","smile-admiration-light":"1f604.svg","smile-embarrassment":"1f605.svg","smile-holy":"1f607.svg","smile-demon":"1f608.svg","smile-wink":"1f609.svg","emo-distrust":"1f611.svg","emo-full-distrust":"1f612.svg","emo-frustration":"1f613.svg","emo-cool":"1f60e.svg","emo-lol":"1f606.svg","emo-zzz":"1f634.svg","emo-wow":"1f631.svg","emo-kiss":"1f618.svg","emo-cry":"1f622.svg","emo-think":"1f614.svg","emo-confused":"1f616.svg","emo-light-kiss":"1f617.svg","emo-angry":"1f620.svg","emo-very-angry":"1f621.svg","emo-pity":"1f622.svg","emo-restrained-anger":"1f623.svg","emo-victory":"1f624.svg","emo-guilty":"1f625.svg","emo-frowning":"1f626.svg","emo-strong-surprise":"1f627.svg","emo-very-strong-surprise":"1f628.svg","emo-very-tired":"1f629.svg","emo-very-frustration":"1f630.svg","emo-surprise":"1f632.svg","emo-severe-embarrassment":"1f633.svg","emo-sleep":"1f634.svg","emo-eyes-cross":"1f635.svg","emo-no-mouth":"1f636.svg","emo-alertness":"1f644.svg","emo-fasten-mouth":"1f910.svg","emo-money":"1f911.svg","emo-sick":"1f912.svg","emo-points":"1f913.svg","emo-hmm":"1f914.svg","emo-injured":"1f915.svg","emo-robot":"1f916.svg","emo-hug":"1f917.svg","emo-queasy":"1f922.svg","emo-slaver":"1f924.svg","emo-pinokio":"1f925.svg","emo-rhinitis":"1f927.svg",logo:"logo.svg",star:"2b50.svg","star-beams":"1f31f.svg",box:"1f381.svg",heart:"1f5a4.svg",diamond:"1f48e.svg",flower:"1f33b.svg",shit:"1f4a9.svg",bomb:"1f4a3.svg",drop:"1f4a7.svg",money:"1f4b0.svg",lamp:"1f4a1.svg",blow:"1f4a5.svg",burger:"1f354.svg",pizza:"1f355.svg",cake:"1f382.svg","apple-green":"1f34f.svg",beer:"1f37a.svg",strawberry:"1f353.svg",watermelon:"1f349.svg",cherry:"1f352.svg",quiwi:"1f95d.svg",cat:"1f431.svg",penguin:"1f427.svg",bug:"1f41e.svg",fish:"1f41f.svg",bus:"1f68d.svg",taxi:"1f696.svg",rocket:"1f680.svg",copter:"1f681.svg",paint:"1f3a8.svg",photo:"1f4f7.svg",mac:"1f5a5.svg"};this.style.backgroundImage="url(".concat(window.ROOT_PATH||"/","uilib/ui/emoji/svg/").concat(i[this.pic],")")}}]),r}(O);gb(ws,"is","emoji-ui");gb(ws,"template",g([BA]));gb(ws,"properties",{pic:{type:String,reflectToAttribute:!0,observer:"_picObserver"}});customElements.define(ws.is,ws);var LA='<style>\n	:host {\n		display: block;\n	}\n\n	.container {\n		display: inline-flex;\n		font-size: 32px;\n		position: relative;\n		height: 100%;\n		overflow: hidden;\n		-webkit-touch-callout: none;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	.disabled {\n		-webkit-filter: grayscale(60%);\n		        filter: grayscale(60%);\n		opacity: 0.8;\n		pointer-events: none;\n	}\n\n	.disabled .pic {\n		pointer-events: none;\n	}\n\n	:host([exemple]) .container {\n		pointer-events: none;\n	}\n\n	.pic {\n		display: flex;\n		align-items: center;\n		-webkit-filter: grayscale(100%);\n		        filter: grayscale(100%);\n		opacity: 0.4;\n		cursor: pointer;\n		margin-left: 4px;\n		margin-right: 4px;\n	}\n\n	.pic:hover {\n		-webkit-filter: grayscale(40%);\n		        filter: grayscale(40%);\n		transform: scale(1.1);\n		opacity: 1;\n	}\n\n	:host([exemple]) .pic {\n		-webkit-filter: none;\n		        filter: none;\n		opacity: 1;\n	}\n\n	.pic-selected {\n		-webkit-filter: grayscale(0%);\n		        filter: grayscale(0%);\n		opacity: 1;\n	}\n\n	.pic-selected:hover {\n		-webkit-filter: grayscale(0%);\n		        filter: grayscale(0%);\n	}\n\n	.pic-selected-pre {\n		-webkit-filter: grayscale(70%);\n		        filter: grayscale(70%);\n	}\n\n	@media screen and (max-width: 700px) {\n		:host([type=emotions]) .container {\n			width: 100%;\n			justify-content: center;\n		}\n	}\n</style>\n\n<style include="survey-style"></style>\n\n<div id="container" class="container"></div>';function bb(t){return bb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bb(t)}function _b(t){return yQ(t)||mQ(t)||hQ(t)||dQ()}function dQ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hQ(t,e){if(!!t){if(typeof t=="string")return wb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wb(t,e)}}function mQ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function yQ(t){if(Array.isArray(t))return wb(t)}function wb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function vQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function gQ(t,e,r){return e&&NA(t.prototype,e),r&&NA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fs(){return typeof Reflect!="undefined"&&Reflect.get?Fs=Reflect.get:Fs=function(e,r,n){var i=bQ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Fs.apply(this,arguments)}function bQ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=On(t),t!==null););return t}function _Q(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fb(t,e)}function Fb(t,e){return Fb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Fb(t,e)}function wQ(t){var e=xQ();return function(){var n=On(t),i;if(e){var o=On(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return FQ(this,i)}}function FQ(t,e){if(e&&(bb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qA(t)}function qA(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function On(t){return On=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},On(t)}function xs(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xi=function(t){_Q(r,t);var e=wQ(r);function r(){var n;vQ(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o)),xs(qA(n),"width",{half:"50%",empty:"0",filled:"100%"}),n}return gQ(r,[{key:"_getValueAsNumber",value:function(i,o){if(o)return 0;var a=parseInt(i);return isNaN(a)?0:a}},{key:"_resultValueObserver",value:function(i){var o={discrete:0,half:1,smooth:2},a=i.replace(/px/i,""),s=this.precisionRound(a/this.cont.getBoundingClientRect().width,o[this.moveType])*this.count;this.value=parseFloat(Math.round(s*100)/100).toFixed(o[this.moveType])}},{key:"precisionRound",value:function(i,o){var a=Math.pow(10,o);return Math.round(i*a)/a}},{key:"_disabledObserver",value:function(){this.initialized&&(this.disabled?this.cont.classList.add("disabled"):this.cont.classList.remove("disabled"),this.constantSum&&(this.constantSum.setValue(this,this.valueAsNumber),this._checkConstantSum()))}},{key:"_renderPics",value:function(){var i=this;if(!!this.cont){this.dispatchEvent(new CustomEvent("g-scale-changed",{bubbles:!0,detail:this.value})),this.pics=[];var o=document.createDocumentFragment();this.type==="emotions"&&(this.moveType="discrete");for(var a=function(x){var P=document.createElement("div");P.classList.add("pic");var F=null;if(i.type==="ratings")P.innerHTML='<emoji-ui pic="'.concat(i.pic,'"></emoji-ui>'),i.moveType==="discrete"&&(F=function(){i.dispatchEvent(new CustomEvent("g-scale-changing",{cancelable:!0,detail:x}))&&(i.pics.forEach(function(E,j){j<=x?(E.classList.add("pic-selected"),E.classList.remove("pic-selected-pre")):(E.classList.remove("pic-selected"),E.classList.remove("pic-selected-pre"))}),i.value!==x+1?i.value=x+1:i.value=0)},P.onmouseover=function(){i.pics.forEach(function(k,E){E<=x&&!k.classList.contains("pic-selected")||E>x&&k.classList.contains("pic-selected")?k.classList.add("pic-selected-pre"):k.classList.remove("pic-selected-pre")})},P.onmouseout=function(){i.pics.forEach(function(k){k.classList.remove("pic-selected-pre")})});else if(i.type==="emotions"){var S=i.smilesTemplates[i.typeTemplate][i.count-2].slice();i.emotionsReversed&&S.reverse(),S[x]?(P.innerHTML='<emoji-ui pic="'.concat(S[x],'"></emoji-ui>'),F=function(){i.dispatchEvent(new CustomEvent("g-scale-changing",{cancelable:!0,detail:x}))&&(i.pics.forEach(function(E){E.classList.remove("pic-selected")}),P.classList.add("pic-selected"),i.value=i.value!==x+1?x+1:0)},i.value&&i.value-1===x&&P.classList.add("pic-selected")):P.hidden=!0}P.onclick=F,P.ontouchend=F,o.append(P),i.pics.push(P)},s=0;s<this.count;s++)a(s);if(this.cont.innerHTML="",this.cont.append(o),this.type!=="emotions"){if(this.moveType==="half"||this.moveType==="smooth"){var l=this.cont.cloneNode(!0);l.id="",l.classList.remove("disabled");var u=this.width[this.initialState];this.value&&(u=this.value/this.count*100+"%");var c={position:"absolute",top:0,left:0,width:u,overflow:"hidden",boxSizing:"border-box",opacity:this.value?"1":"0.4"};Object.assign(l.style,c),_b(l.children).forEach(function(_){_.style.filter="none",_.style.opacity="1"});var f=document.createElement("div"),p={position:"absolute",top:0,left:0,height:"100%",width:"100%",cursor:"default"};Object.assign(f.style,p);var d,m=function(x){(!d||x)&&(d=i.cont.getBoundingClientRect())},h=function(){l.style.border="none",i._halfPositionsArr=[],_b(i.cont.children).forEach(function(x){if(x.classList.contains("pic")){x.style.pointerEvents="none";var P=x.getBoundingClientRect();i._halfPositionsArr.push(P.left-d.left),i._halfPositionsArr.push(P.left+P.width/2-d.left),i._halfPositionsArr.push(P.left+P.width-d.left)}})},v={smooth:function(x){m(),l.style.width=x.clientX-d.left+.6+"px"},half:function(x){m();var P=x.clientX-d.left;i._halfPositionsArr||h();var F=0;P>6&&i._halfPositionsArr.forEach(function(S,k){var E=i._halfPositionsArr[k+1];P>S&&P<=E&&(F=E)}),l.style.width=F+"px"}},y=v[this.moveType];f.onmouseover=function(_){l.style.opacity="0.4",y(_),f.onmousemove=y},f.onmousedown=function(_){l.style.opacity="1",y(_),f.onmousemove=y,l.style.width!==i.resultValue?i.resultValue=l.style.width:i.resultValue="0px"},f.ontouchstart=function(_){l.style.opacity="1",y(_),f.ontouchmove=y},f.onmouseup=function(){i.resultValue!=="0px"&&(l.style.opacity="1",f.onmousemove=null,l.style.width.includes("%")||(i.resultValue=l.style.width),i.controlInitialized=!0)},f.onmouseenter=function(){m(!0)},f.onmouseleave=function(){f.onmousemove=null,i.value||i.controlInitialized?(l.style.opacity="1",l.style.width=i.resultValue?i.resultValue:u):l.style.width=i.width[i.initialState]},f.ontouchend=function(){l.style.opacity="1",f.ontouchmove=null,i.resultValue=l.style.width,i.controlInitialized=!0},f.ontouchcancel=function(){f.ontouchmove=null,i.controlInitialized&&(l.style.opacity="1"),i.resultValue&&(l.style.width=i.resultValue)},this.cont.append(l),this.cont.append(f)}else{var b=parseInt(this.value);_b(this.cont.children).forEach(function(_,x){b>x&&_.classList.add("pic-selected")})}this.constantSum&&(this.constantSum.setValue(this,this.valueAsNumber),this._checkConstantSum())}}}},{key:"_checkConstantSum",value:function(){this.constantSum.overflowValidation==="forbid-input"&&this.constantSum.remainingPoints<0&&this.valueAsNumber>0}},{key:"_constantSumObserver",value:function(){var i;(i=this.constantSum)===null||i===void 0||i.setValue(this,this.valueAsNumber)}},{key:"connectedCallback",value:function(){Fs(On(r.prototype),"connectedCallback",this).call(this),this.cont=this.$.container,this._renderPics(),this.initialized=!0,this._disabledObserver()}},{key:"disconnectedCallback",value:function(){Fs(On(r.prototype),"disconnectedCallback",this).call(this),document.body.removeEventListener("mouseup",this._mouseUp,!1),this.constantSum&&this.constantSum.setValue(this,0)}}]),r}(O);xs(Xi,"is","g-scale-ui");xs(Xi,"template",g([LA]));xs(Xi,"sharedStyles",["survey"]);xs(Xi,"properties",{type:{type:String,value:"ratings",observer:"_renderPics"},value:{type:String,notify:!0,reflectToAttribute:!0,observer:"_renderPics"},valueAsNumber:{type:Number,computed:"_getValueAsNumber(value, disabled)"},count:{type:Number,value:5,observer:"_renderPics"},pic:{type:String,value:"star",observer:"_renderPics"},typeTemplate:{type:String,value:"classic"},smilesTemplates:{type:Object,value:function(){return{classic:[["smile-min","smile-max"],["smile-low","smile-neutral","smile-high"],["smile-min","smile-low","smile-high","smile-max"],["smile-min","smile-low","smile-neutral","smile-high","smile-max"],["smile-low-min","smile-min","smile-low","smile-high","smile-max","smile-high-max"]],second:[["smile-low","smile-low"],["smile-low-min","smile-neutral","smile-high-max"],["smile-min","smile-neutral","smile-neutral","smile-max"],["smile-low-min","smile-low","smile-neutral","smile-high","smile-high-max"],["smile-min","smile-low","smile-neutral","smile-neutral","smile-high","smile-max"]]}}},moveType:{type:String,value:"discrete",observer:"_renderPics"},emotionsReversed:{type:Boolean,observer:"_renderPics"},initialState:{type:String,value:"half",observer:"_renderPics"},disabled:{type:Boolean,value:!1,observer:"_disabledObserver"},exemple:{type:Boolean,value:!1,observer:"_disabledObserver",reflectToAttribute:!0},resultValue:{type:String,observer:"_resultValueObserver"},constantSum:{type:Object,consume:{key:"constantSum",required:!1},observer:"_constantSumObserver"}});customElements.define(Xi.is,Xi);var zA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		flex-grow: 1;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	textarea {\n		width: 100%;\n		min-width: 100%;\n		min-height: 50px;\n		padding: 8px;\n		resize: vertical;\n	}\n\n	textarea:focus {\n		color: rgba(33, 37, 43, 1);\n		border-color: #607d8b;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	.icon {\n		padding-right: 2px;\n	}\n\n	.counter {\n		display: inline-flex;\n		flex-wrap: wrap;\n		font-size: 12px;\n		margin-top: 8px;\n		padding: 6px;\n		padding-left: 8px;\n		border-radius: 4px;\n\n		color: inherit;\n		border: 1px solid currentColor;\n		opacity: 0.6;\n	}\n\n	:host(:not([theme=survey])) .counter {\n		color: #607d8b;\n		border-color: #a8bac3;\n		opacity: 1;\n	}\n\n	:host([error-min]) .counter,\n	:host([error-max]) .counter {\n		color: #d8252b;\n		border-color: #d8252b;\n	}\n\n	.error {\n		color: #d8252b;\n		padding: 2px;\n		padding-top: 8px;\n		font-size: 12px;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<textarea\n	id="input"\n	class="input"\n	name="[[name]]"\n	disabled="[[disabled]]"\n	placeholder="[[placeholder]]"\n	read-only="[[readonly]]"\n	value="{{value}}"\n	cols="50"\n	rows="[[rows]]"\n></textarea>\n<span class="outline-bottom"></span>\n\n<div class="counter" hidden="[[!_showCounter]]">\n	<div hidden="[[!showEntered]]"><l10n-ui key="textarea-ui.characters-entered-form-status-text" props="char-count" char-count="[[_enteredCount]]"></l10n-ui></div>\n	<spacer-mkp inline mid hidden="[[!showEntered]]"></spacer-mkp>\n	<div hidden="[[!showLeft]]"><l10n-ui key="textarea-ui.characters-left-form-status-text" props="char-count" char-count="[[_leftCount]]"></l10n-ui></div>\n</div>\n\n<div class="error" hidden="[[!_hasErrors(errorMin, errorMax)]]">\n	<div hidden="[[!errorMin]]">\n		<icon-ui class="icon" icon="alert"></icon-ui>\n		<l10n-ui key="textarea-ui.not-enough-characters-form-status-warning-text" props="min-chars, char-count" min-chars="[[minLength]]" char-count="[[_enteredCount]]"></l10n-ui>\n	</div>\n	<div hidden="[[!errorMax]]">\n		<icon-ui class="icon" icon="alert"></icon-ui>\n		<l10n-ui key="textarea-ui.too-many-characters-form-status-warning-text" props="max-chars, char-count" max-chars="[[maxLength]]" char-count="[[_enteredCount]]"></l10n-ui>\n	</div>\n</div>';function xb(t){return xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xb(t)}function PQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function SQ(t,e,r){return e&&HA(t.prototype,e),r&&HA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Os(){return typeof Reflect!="undefined"&&Reflect.get?Os=Reflect.get:Os=function(e,r,n){var i=kQ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Os.apply(this,arguments)}function kQ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Pn(t),t!==null););return t}function EQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ob(t,e)}function Ob(t,e){return Ob=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ob(t,e)}function TQ(t){var e=DQ();return function(){var n=Pn(t),i;if(e){var o=Pn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return AQ(this,i)}}function AQ(t,e){if(e&&(xb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RQ(t)}function RQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Pn(t)}function cf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qi=function(t){EQ(r,t);var e=TQ(r);function r(){var n;return PQ(this,r),n=e.call(this),n._getShowCounter=function(i,o){return i||o},n}return SQ(r,[{key:"connectedCallback",value:function(){var i=this;Os(Pn(r.prototype),"connectedCallback",this).call(this),this.$.input.oninput=function(){i.value=i.$.input.value,i.update()},this.$.input.onblur=function(o){i.value=i.$.input.value,i.update()},this.maxLength||(this.showLeft=!1),this.update()}},{key:"ready",value:function(){var i=this;Os(Pn(r.prototype),"ready",this).call(this),new MutationObserver(function(){i._notifyResize()}).observe(this.$.input,{attributes:!0})}},{key:"update",value:function(){this._updateCounters(),this._checkMaxLength(),this._checkMinLength()}},{key:"_maxLengthObserver",value:function(){this.update()}},{key:"_minLengthObserver",value:function(){this.update()}},{key:"_updateCounters",value:function(){this.value?this._enteredCount=this.value.length:this._enteredCount=0,this.maxLength?this._leftCount=this.maxLength-this._enteredCount:this._leftCount=0}},{key:"_checkMaxLength",value:function(){this.errorMax=!!this.maxLength&&this._enteredCount>this.maxLength}},{key:"_checkMinLength",value:function(){if(!this._enteredCount){this.errorMin=!1;return}this.errorMin=!!this.minLength&&this._enteredCount<this.minLength}},{key:"_notifyResize",value:function(){this.dispatchEvent(new CustomEvent("scrollable-notify",{bubbles:!0,composed:!0}))}},{key:"_hasErrors",value:function(i,o){return i||o}}]),r}(O);cf(Qi,"is","textarea-ui");cf(Qi,"template",g([Ve+zA]));cf(Qi,"sharedStyles",["survey"]);cf(Qi,"properties",{name:{type:String,reflectToAttribute:!0},value:{type:String,notify:!0,reflectToAttribute:!0},theme:{type:String},disabled:{type:Boolean,reflectToAttribute:!0},_enteredCount:{type:Number,value:0},_leftCount:{type:Number,value:0},maxLength:{type:Number,observer:"_maxLengthObserver"},minLength:{type:Number,observer:"_minLengthObserver"},placeholder:{type:String},_showCounter:{computed:"_getShowCounter(showEntered, showLeft)"},errorMin:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_notifyResize"},errorMax:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_notifyResize"},showEntered:{type:Boolean,value:!1,observer:"_notifyResize"},showLeft:{type:Boolean,value:!1},rows:{type:Number,value:5},readonly:{type:Boolean,value:!1},case:{type:String},save:{type:Boolean,reflectToAttribute:!0},borderType:{type:String,value:"around",reflectToAttribute:!0}});customElements.define(Qi.is,Qi);var UA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		justify-content: flex-end;\n	}\n\n	:host([clear-btn][_clearable]) input {\n		padding-right: 34px;\n	}\n\n	:host([disabled]) input {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	input {\n		width: 100%;\n		padding: 0 8px;\n		padding-top: 1px;\n	}\n\n	:host(:not([theme=survey])) input {\n		padding-top: 2px;\n		border: none;\n		border-bottom: 2px solid #a8bac3;\n		border-bottom-left-radius: 0;\n		border-bottom-right-radius: 0;\n	}\n\n	:host(:not([theme=survey])) input:focus,\n	input:focus {\n		color: rgba(33, 37, 43, 1);\n		border-color: #607d8b;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([default]) input {\n		color: rgba(96, 125, 139, 0.9);\n	}\n\n	:host([theme=bg1]) input {\n		background-color: #eee;\n	}\n\n	:host([theme=brightest]) input {\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=none]) {\n		font-size: inherit;\n		font-family: inherit;\n		font-weight: inherit;\n	}\n\n	:host([theme=none]) input {\n		border-bottom: none;\n		border: none;\n		background-color: transparent !important;\n	}\n\n	:host([theme=onlyVal]) input {\n		cursor: inherit;\n		border: none;\n		color: inherit;\n		background-color: transparent;\n		transition: 0.2s, padding-left 0.2s;\n		font-size: 12px;\n		padding-left: 6px;\n		font-family: Arial;\n	}\n\n	:host([theme=onlyVal]) input:focus {\n		cursor: inherit;\n		border: none;\n		color: inherit;\n		background-color: transparent;\n	}\n\n	:host([connect=all]) input {\n		border-top-left-radius: 2px;\n		border-top-right-radius: 2px;\n	}\n\n	:host([connect=left]) input {\n		border-top-left-radius: 2px !important;\n	}\n\n	:host([connect=right]) input {\n		border-top-right-radius: 2px !important;\n	}\n\n	:host([input-value=""]:not([has-value])) .icon,\n	:host(:not([input-value]):not([has-value])) .icon {\n		display: flex;\n	}\n\n	:host(:not([icon])) .icon {\n		display: none;\n	}\n\n	:host([focus]) .icon {\n		opacity: 0.4;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n\n	.label {\n		margin-bottom: 4px;\n	}\n\n	.label:empty {\n		display: none;\n	}\n\n	.input-container {\n		position: relative;\n	}\n\n	.clear-btn {\n		position: absolute;\n		right: 0;\n		top: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		width: 34px;\n		height: 34px;\n		font-size: 18px;\n\n		color: rgba(33, 37, 43, 1);\n		cursor: pointer;\n	}\n\n	.clear-btn:not(:hover) {\n		opacity: 0.4;\n	}\n\n	.clear-btn > icon-ui {\n		vertical-align: baseline;\n	}\n\n	input:focus ~ .clear-btn {\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([readonly]) .clear-btn,\n	:host([disabled]) .clear-btn {\n		display: none;\n		pointer-events: none;\n	}\n\n	.icon {\n		display: none;\n		position: absolute;\n		left: 8px;\n		top: 50%;\n		transform: translateY(-50%);\n		color: #a8bac3;\n		font-size: 22px;\n		transition: color 0.2s;\n		pointer-events: none;\n	}\n\n	/* validation */\n	:host([show-errors]:not([valid])) input {\n		color: #d8252b;\n		border-color: #d8252b;\n	}\n\n	:host([show-errors]:not([valid])) input + .icon {\n		color: #d8252b;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="label">[[label]]</div>\n<div class="input-container">\n	<input\n		id="input"\n		class="input"\n		type="[[type]]"\n		name="[[name]]"\n		value="[[inputValue]]"\n		max="[[max]]"\n		min="[[min]]"\n		step="[[step]]"\n		required="[[required]]"\n		disabled="[[disabled]]"\n		read-only="[[readonly]]"\n		max-length="[[maxlength]]"\n		min-length="[[minlength]]"\n		placeholder="[[_removeHTML(placeholder)]]"\n		autocomplete="[[autocomplete]]"\n		autocapitalize$="[[autocapitalize]]"\n		autocorrect$="[[autocorrect]]"\n		autofocus="[[autofocus]]"\n		pattern="[[_finalPattern]]"\n		aria-label$="[[ariaLabel]]"\n	>\n	<span class="outline-bottom"></span>\n\n	<icon-ui class="icon" icon$="[[icon]]"></icon-ui>\n\n	<div class="clear-btn" on-click="clear" on-mousedown="_clearMousedown" hidden="[[!_clearable]]">\n		<icon-ui icon="close"></icon-ui>\n	</div>\n</div>';function Pb(t){return Pb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(t)}function IQ(t){return LQ(t)||MQ(t)||BQ(t)||jQ()}function jQ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function BQ(t,e){if(!!t){if(typeof t=="string")return Sb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sb(t,e)}}function MQ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function LQ(t){if(Array.isArray(t))return Sb(t)}function Sb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function NQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qQ(t,e,r){return e&&VA(t.prototype,e),r&&VA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ps(){return typeof Reflect!="undefined"&&Reflect.get?Ps=Reflect.get:Ps=function(e,r,n){var i=zQ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ps.apply(this,arguments)}function zQ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Sn(t),t!==null););return t}function HQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kb(t,e)}function kb(t,e){return kb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},kb(t,e)}function UQ(t){var e=GQ();return function(){var n=Sn(t),i;if(e){var o=Sn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return VQ(this,i)}}function VQ(t,e){if(e&&(Pb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WQ(t)}function WQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GQ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Sn(t)}function ff(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ji=function(t){HQ(r,t);var e=UQ(r);function r(){return NQ(this,r),e.apply(this,arguments)}return qQ(r,[{key:"_getStep",value:function(i){if(i)return 1/Math.pow(10,i)}},{key:"_getClearable",value:function(i,o,a){return i&&o&&a!=="number"}},{key:"_getCustomErrorsArray",value:function(i){return i?IQ(i.values()):[]}},{key:"_getFinalPattern",value:function(i,o){var a=this;return i==="email"&&!o?this._escapePattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"):i==="tel"&&!o?this._escapePattern("^(\\+)?(\\(\\d\\) ?\\d|\\d)(([ \\-]?\\d)|( ?\\(\\d|#|\\) ?)){0,}(\\d|\\s+)$"):(requestAnimationFrame(function(){a.validate()}),this._escapePattern(o)||"")}},{key:"_inputValueObserver",value:function(){var i=this;this.hasValue=!!this.inputValue,requestAnimationFrame(function(){i.validate()})}},{key:"_finalPatternObserver",value:function(){var i=this;try{this._regExp=this._finalPattern?new RegExp(this._finalPattern):null}catch(o){this._regExp=null}requestAnimationFrame(function(){i._finalPattern||i.$.input.removeAttribute("pattern"),i.validate()})}},{key:"_constantSumObserver",value:function(){var i;(i=this.constantSum)===null||i===void 0||i.setValue(this,isNaN(this.$.input.valueAsNumber)?0:this.$.input.valueAsNumber)}},{key:"_escapePattern",value:function(i){return i&&i.replace(/\\\\/g,"\\")}},{key:"_removeHTML",value:function(i){return Edit.removeHTML(i)}},{key:"connectedCallback",value:function(){var i=this;Ps(Sn(r.prototype),"connectedCallback",this).call(this),pe.run(function(){if(i.input=i.shadowRoot.querySelector("#input"),i.validate(),!!i.input){i.autofocus&&i.input.focus(),i.constantSum&&(i.$.input.min=0),i.input.oninput=function(s){if(i.validate(),i.hasValue=!!s.target.value,i.preventInvalidInput&&!i.valid&&(!i.required||s.target.value)){var l=s.target.selectionStart-1;s.target.value=i.inputValue||"";try{s.target.selectionStart=l,s.target.selectionEnd=l}catch(u){}queueMicrotask(function(){i.validate()});return}i.constantSum&&(isNaN(s.target.valueAsNumber)?i.constantSum.setValue(i,0):(i.constantSum.setValue(i,s.target.valueAsNumber),i.constantSum.overflowValidation==="forbid-input"&&i.constantSum.remainingPoints<0&&s.target.valueAsNumber>s.target.min&&(s.target.valueAsNumber=s.target.valueAsNumber+i.constantSum.remainingPoints,s.target.dispatchEvent(new CustomEvent("input")),i.constantSum.setValue(i,s.target.valueAsNumber)))),i._finalPattern&&(i._regExp.test(s.target.value)||!i.required&&!s.target.value)||!i.preventInvalidInput?i.inputValue=s.target.value:i._finalPattern||(i.inputValue=s.target.value),i.preventInvalidInput&&i.inputValue&&i.type==="number"&&(i.inputValue=+i.inputValue)};var o=!1,a=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;!navigator.userAgent.includes("Chrome")||!o||["email","password","text"].includes(i.type)&&i.input.value===""&&(o=!0,i.input.value="",l&&(i.input.blur(),i.input.focus()),o=!1)};i.input.onfocus=function(s){i.setAttribute("focus",""),a(!0)},i.input.onblur=function(s){i.showErrors=!0,i.removeAttribute("focus"),a()}}})}},{key:"disconnectedCallback",value:function(){Ps(Sn(r.prototype),"disconnectedCallback",this).call(this),this.constantSum&&this.constantSum.setValue(this,0)}},{key:"validate",value:function(){this.valid=this.checkValidity(),this.dispatchEvent(new CustomEvent("validate",{bubbles:!0}))}},{key:"checkValidity",value:function(){return this.$.input.checkValidity()}},{key:"_clearMousedown",value:function(i){i.preventDefault()}},{key:"clear",value:function(i){this.$.input.value="",this.inputValue="",this._inputValueObserver(),this.dispatchEvent(new CustomEvent("clear")),i.stopPropagation()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blur",value:function(){this.input&&this.input.blur()}},{key:"select",value:function(){this.input.select()}}]),r}(O);ff(Ji,"is","input-ui");ff(Ji,"template",g([Ve+UA]));ff(Ji,"sharedStyles",["survey"]);ff(Ji,"properties",{label:{type:String,value:""},inputValue:{type:String,notify:!0,reflectToAttribute:!0,observer:"_inputValueObserver"},icon:{type:String,reflectToAttribute:!0},theme:{type:String,reflectToAttribute:!0},name:{type:String,reflectToAttribute:!0},autofocus:{type:Boolean,value:!1},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},default:{type:Boolean,value:!1,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},min:{type:String},max:{type:String},step:{type:Number,computed:"_getStep(decimals)"},decimals:{type:Number},preventInvalidInput:{type:Boolean,value:!1},placeholder:{type:String},pattern:{type:String},_finalPattern:{type:String,computed:"_getFinalPattern(type, pattern)",observer:"_finalPatternObserver"},type:{type:String,value:"text"},autocomplete:{type:String},autocapitalize:{type:String},autocorrect:{type:String},hasValue:{type:Boolean,value:!1,reflectToAttribute:!0},clearBtn:{type:Boolean,value:!1,reflectToAttribute:!0},_clearable:{computed:"_getClearable(clearBtn, hasValue, type)",reflectToAttribute:!0},valid:{type:Boolean,notify:!0,reflectToAttribute:!0},showErrors:{type:Boolean,value:!1,reflectToAttribute:!0},required:{type:Boolean,value:!1},minlength:{type:Number},maxlength:{type:Number},ariaLabel:{type:String},borderType:{type:String,value:"around",reflectToAttribute:!0},floatingLabel:{type:String,value:!1,reflectToAttribute:!0},constantSum:{type:Object,consume:{key:"constantSum",required:!1},observer:"_constantSumObserver"}});customElements.define(Ji.is,Ji);var WA='<style>\n	:host {\n		display: block;\n	}\n\n	.progress {\n		position: relative;\n		display: flex;\n		flex-direction: row;\n		align-items: center;\n		justify-content: center;\n		flex-grow: 1;\n		min-height: 34px;\n	}\n\n	.progress-bar {\n		display: flex;\n		align-items: center;\n		flex-grow: 1;\n		height: 34px;\n		padding: 8px;\n		box-sizing: border-box;\n\n		background-color: #f5f5f5;\n		background-image: none;\n	}\n\n	.complete-bar {\n		display: inline-block;\n		height: 100%;\n		background-color: #9bacc8;\n		background-image: none;\n	}\n\n	.progress-text {\n		padding: 8px 16px;\n		font-size: 14px;\n		color: #000;\n		white-space: nowrap;\n		z-index: 1;\n	}\n\n	:host([grow]) {\n		flex-grow: 1;\n	}\n\n	/* compact */\n	:host([type=compact]) .progress,\n	:host([type=compact]) .progress-bar {\n		min-height: 5px;\n		height: 5px;\n	}\n\n	:host([type=compact]) .progress-bar {\n		padding: 0;\n		background: transparent;\n	}\n\n	:host([type=compact]) .complete-bar {\n		background-color: hsl(225, 39%, 52%);\n		transition: 0.4s width;\n	}\n\n	:host([type=compact]) .wave {\n		width: 200px;\n		height: 100%;\n		background: linear-gradient(150deg, transparent, rgba(255, 255, 255, 0.5), transparent);\n		animation: wave linear 1.7s infinite;\n	}\n\n	@keyframes wave {\n		from {\n			margin-left: -20%;\n		}\n\n		to {\n			margin-left: 400%;\n		}\n	}\n\n	:host([type=compact]) .progress-text,\n	:host([type=simple]) .progress-text {\n		display: none;\n	}\n\n	:host([type=percent-inside]) .progress-bar,\n	:host([type=text]) .progress-bar {\n		position: absolute;\n		right: 0;\n		left: 0;\n		top: 0;\n		bottom: 0;\n	}\n\n	:host([type=percent-outside-right]) .progress {\n		flex-direction: row-reverse;\n	}\n\n	:host([type=text]) .complete-bar {\n		opacity: 0;\n	}\n\n	:host([theme="accent"]) .progress-bar {\n		background-color: #eee;\n	}\n\n	:host([theme="accent"]) .complete-bar {\n		background-color: #607d8b;\n	}\n\n	:host([theme="accent"]) .progress-text {\n		color: #a8bac3 !important;\n		font-size: 16px;\n	}\n\n\n	:host([text-right]) .progress {\n		justify-content: flex-end;\n	}\n\n	:host([size=mid]) .progress-bar {\n		height: 100%;\n		padding: 2px;\n	}\n\n	:host([size=mid]) .progress-text {\n		padding-top: 2px;\n		padding-bottom: 2px;\n	}\n\n	:host([size=max]) .progress-bar {\n		height: 100%;\n	}\n\n	:host([theme="warning"]) .progress-bar {\n		background-color: #eee;\n	}\n\n	:host([theme="warning"]) .complete-bar {\n		background-color: #d8252b;\n	}\n\n	:host([theme="warning"]) .progress-text {\n		color: rgba(255, 255, 255, 1) !important;\n		font-size: 16px;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="progress">\n	<div class="progress-text"><slot>[[_getText(textType, percent, currentPage, totalPages)]]</slot></div>\n	<div class="progress-bar">\n		<div class="complete-bar" style$="width: [[percent]]%">\n			<div class="wave"></div>\n		</div>\n	</div>\n</div>';function Eb(t){return Eb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eb(t)}function KQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function YQ(t,e,r){return e&&GA(t.prototype,e),r&&GA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function XQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tb(t,e)}function Tb(t,e){return Tb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tb(t,e)}function QQ(t){var e=eJ();return function(){var n=pf(t),i;if(e){var o=pf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return JQ(this,i)}}function JQ(t,e){if(e&&(Eb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZQ(t)}function ZQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eJ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function pf(t){return pf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},pf(t)}function df(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Zi=function(t){XQ(r,t);var e=QQ(r);function r(){return KQ(this,r),e.apply(this,arguments)}return YQ(r,[{key:"_getText",value:function(i,o,a,s){return i==="percent"?"".concat(o,"%"):"".concat(a," ").concat(w.get("core.of-delimiter-text")," ").concat(s)}}]),r}(Q(M));df(Zi,"is","progress-ui");df(Zi,"template",g([WA]));df(Zi,"sharedStyles",["survey"]);df(Zi,"properties",{type:{type:String,reflectToAttribute:!0},textType:{type:String,value:"page",reflectToAttribute:!0},percent:{type:Number,value:0},currentPage:{type:Number,value:1},totalPages:{type:Number,value:1}});customElements.define(Zi.is,Zi);var $A='<style>\n	:host {\n		display: flex;\n		flex-direction: row;\n		align-items: center;\n		min-width: 0;\n\n		font-size: 18px;\n		font-family: \'Roboto Condensed\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n		font-weight: 300;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	select {\n		max-width: 100%;\n		width: 100%;\n		padding-left: 9px;\n		padding-right: calc(9px * 2.5);\n	}\n\n	select::-ms-expand {\n		display: none;\n	}\n\n	option[highlight] {\n		background-color: rgba(96, 125, 139, 0.25) !important;\n	}\n\n	.others {\n		padding-left: 9px;\n	}\n\n	.icon {\n		position: absolute;\n		right: 6px;\n		color: rgba(33, 37, 43, 1);\n		pointer-events: none;\n	}\n\n	select:focus {\n		color: rgba(33, 37, 43, 1);\n		border-color: #607d8b;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	select:focus + .icon {\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([is-ie]) .icon {\n		top: 10px;\n	}\n\n	.wrapper {\n		position: relative;\n		display: inline-flex;\n		flex-direction: row;\n		max-width: 100%;\n		align-items: center;\n		overflow: hidden;\n	}\n\n	.options {\n		display: none;\n	}\n\n	select option {\n		background-color: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	@media (max-width: 700px) {\n		:host {\n			flex-direction: column;\n			align-items: stretch;\n		}\n\n		.others {\n			padding-left: 0;\n			padding-top: 9px;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<div id="options" class="options">\n	<template is="dom-if" if="[[simple]]">\n		<template is="dom-repeat" items="[[directionData]]" as="list">\n			<template is="dom-repeat" items="[[get(list.items, directionData)]]">\n				<option\n					value="[[item.id]]"\n					selected="[[_isSelected(item)]]"\n					hidden="[[_isHidden(item)]]"\n					highlight$="[[item.highlight]]"\n				>[[_getItemLabel(item, directionData)]]</option>\n			</template>\n		</template>\n	</template>\n\n	<template is="dom-if" if="[[!simple]]">\n		<option value="[[_getItemLabel(ctaItem)]]" selected="[[_isSelected(ctaItem)]]" hidden="[[!ctaItem]]" highlight$="[[ctaItem.highlight]]">[[_getItemLabel(ctaItem)]]</option>\n\n		<template is="dom-repeat" items="[[directionData]]" as="list">\n			<optgroup label="[[_getOptgroupLabel(list.label)]]"></optgroup>\n			<template is="dom-repeat" items="[[get(list.items, directionData)]]">\n				<option\n					value="[[item.id]]"\n					selected="[[_isSelected(item)]]"\n					hidden="[[_isHidden(item)]]"\n					highlight$="[[item.highlight]]"\n				>[[_getItemLabel(item, directionData)]]</option>\n			</template>\n		</template>\n	</template>\n</div>\n\n<div class="wrapper">\n	<div>\n		<select id="select" class="input select"></select>\n		<span class="outline-bottom"></span>\n	</div>\n	<icon-ui class="icon" icon="unfold-more-horizontal"></icon-ui>\n</div>\n\n\n<div class="others">\n	<slot id="slot" name="others"></slot>\n</div>';function Ab(t){return Ab=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ab(t)}function rJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function nJ(t,e,r){return e&&KA(t.prototype,e),r&&KA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hf(){return typeof Reflect!="undefined"&&Reflect.get?hf=Reflect.get:hf=function(e,r,n){var i=iJ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},hf.apply(this,arguments)}function iJ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=eo(t),t!==null););return t}function oJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rb(t,e)}function Rb(t,e){return Rb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Rb(t,e)}function aJ(t){var e=uJ();return function(){var n=eo(t),i;if(e){var o=eo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return sJ(this,i)}}function sJ(t,e){if(e&&(Ab(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lJ(t)}function lJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uJ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function eo(t){return eo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(t)}function mf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var to=function(t){oJ(r,t);var e=aJ(r);function r(){var n;return rJ(this,r),n=e.call(this),n._presetItem=null,n._callToActionItem=null,n}return nJ(r,[{key:"_getItemLabel",value:function(i){if(!i)return"";var o=Edit.removeHTML(i.label);return o}},{key:"_getOptgroupLabel",value:function(i){return this.directionData.length>1?i:""}},{key:"_isSelected",value:function(i){return i?this._presetItem&&this._presetItem.id===i.id||!this._presetItem&&this._callToActionItem&&this._callToActionItem.id===i.id?!0:!this._presetItem&&!this._callToActionItem?i===this.directionData[0].items[0]:!1:!1}},{key:"_isHidden",value:function(i){return this.ctaItem&&i.label===this.ctaItem.label}},{key:"_directionDataObserver",value:function(){var i=this;this.ctaItem=null,this.directionData.length>1&&(this.simple=!1),this.directionData.forEach(function(o){o.items.forEach(function(a){(a.isCallToAction||a.isPreset)&&(i.customFieldHidden=!a.hasCustomField,i.placeholder=a.customFieldPlaceholder),a.isPreset&&!i.value&&(i._presetItem=a),a.isCallToAction&&(i._callToActionItem=a,i.directionData.length>1&&(i.ctaItem=a)),a.id===i.value&&(i._presetItem=a)}),o.items=o.items.slice()}),requestAnimationFrame(function(){var o=i.$.options.querySelectorAll("optgroup, option");o.forEach(function(a){i.$.select.append(a)})})}},{key:"connectedCallback",value:function(){var i=this;hf(eo(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.updateHiddens(i.value)}),this.$.select.onchange=function(o){var a=o.target.value;i.value=a,i.updateHiddens(a),i.dispatchEvent(new CustomEvent("change",{detail:a}))}}},{key:"updateHiddens",value:function(i){var o=this.$.slot.assignedNodes()[0];if(o){var a=o.querySelectorAll("input-ui");a.forEach(function(s){s.getAttribute("for")===i?s.removeAttribute("hidden"):s.setAttribute("hidden","")})}}}]),r}(ce(O));mf(to,"is","select-ui");mf(to,"template",g([Ve+$A]));mf(to,"sharedStyles",["survey"]);mf(to,"properties",{value:{type:String,reflectToAttribute:!0,notify:!0},placeholder:{type:String},directionData:{type:Array,observer:"_directionDataObserver"},customFieldHidden:{type:Boolean,value:!0},simple:{type:Boolean,value:!0},borderType:{type:String,value:"around",reflectToAttribute:!0}});customElements.define(to.is,to);var YA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		align-items: stretch;\n		flex-grow: 1;\n		overflow: auto;\n	}\n\n	:host([modifier="columns"]) {\n		flex-wrap: wrap;\n	}\n\n	:host([modifier="row"]) {\n		display: block;\n	}\n\n	@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n		:host([modifier="row"]) {\n			display: flex;\n			flex-direction: row;\n			justify-content: space-between;\n		}\n	}\n\n	:host([modifier="row"]) #items {\n		display: inline-grid;\n		grid-auto-flow: column;\n		grid-auto-columns: minmax(30px, 100px);\n		align-items: flex-end;\n		word-break: break-word;\n		-webkit-overflow-scrolling: touch;\n		flex-grow: 1;\n	}\n\n	:host([modifier="row"]) #labels {\n		display: grid;\n		grid-auto-flow: column;\n		justify-content: space-between;\n		align-items: stretch;\n		word-break: break-word;\n	}\n\n	:host([is-short-labels][is-small-elements][modifier="row"]) #items {\n		grid-auto-columns: minmax(-webkit-min-content, 60px);\n		grid-auto-columns: minmax(min-content, 60px);\n	}\n\n	:host([is-small-elements]) {\n		grid-auto-columns: minmax(80px, 120px);\n	}\n\n	:host([is-small-elements][modifier="row"]) #items {\n		grid-auto-columns: minmax(80px, 120px);\n	}\n\n	:host([button-mode][modifier="row"]) #items {\n		grid-auto-columns: minmax(30px, 200px);\n	}\n\n	:host([has-images][modifier="row"]) #items {\n		grid-auto-columns: unset;\n	}\n\n	:host([is-oters-input][modifier="row"]) {\n		grid-auto-columns: minmax(-webkit-min-content, 120px);\n		grid-auto-columns: minmax(min-content, 120px);\n	}\n\n	:host([modifier="rows"]) {\n		flex-wrap: wrap;\n		flex-direction: row;\n	}\n\n	:host([modifier="row"]) ::slotted(span) {\n		margin-bottom: 10px;\n		padding: 0 10px;\n		text-align: center;\n	}\n\n	:host([modifier="row"]) ::slotted(span:first-child) {\n		text-align: left;\n	}\n\n	:host([modifier="row"]) ::slotted(span:last-child) {\n		text-align: right;\n	}\n\n	:host([modifier="default"]) ::slotted(span) {\n		display: none;\n	}\n\n	:host([modifier="default"]) ::slotted(span:first-child) {\n		display: block;\n		margin-bottom: 10px;\n	}\n\n	@media (max-width: 700px) {\n		:host {\n			align-items: stretch;\n		}\n\n		:host([modifier="columns"]),\n		:host([modifier="rows"]) #items {\n			flex-direction: column;\n		}\n\n		:host([modifier=form]) ::slotted(form-item-ui) {\n			padding-bottom: 16px;\n		}\n\n		:host([modifier=form]) ::slotted(form-item-ui:last-child) {\n			padding-bottom: 0;\n		}\n\n		:host ::slotted(span) {\n			display: none;\n		}\n\n		:host ::slotted(span:first-child) {\n			display: block;\n			margin-bottom: 10px;\n		}\n\n		:host .fake-last-label {\n			text-align: right;\n		}\n	}\n\n	@media (max-width: 500px) {\n		:host .fake-last-label {\n			text-align: left;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot id="labels" name="labels"></slot>\n\n<slot id="items"></slot>';function Db(t){return Db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(t)}function XA(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function QA(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){XA(o,n,i,a,s,"next",l)}function s(l){XA(o,n,i,a,s,"throw",l)}a(void 0)})}}function fJ(t){return mJ(t)||hJ(t)||dJ(t)||pJ()}function pJ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function dJ(t,e){if(!!t){if(typeof t=="string")return Cb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cb(t,e)}}function hJ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mJ(t){if(Array.isArray(t))return Cb(t)}function Cb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function yJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JA(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vJ(t,e,r){return e&&JA(t.prototype,e),r&&JA(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ss(){return typeof Reflect!="undefined"&&Reflect.get?Ss=Reflect.get:Ss=function(e,r,n){var i=gJ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ss.apply(this,arguments)}function gJ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=kn(t),t!==null););return t}function bJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ib(t,e)}function Ib(t,e){return Ib=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ib(t,e)}function _J(t){var e=xJ();return function(){var n=kn(t),i;if(e){var o=kn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return wJ(this,i)}}function wJ(t,e){if(e&&(Db(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FJ(t)}function FJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xJ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function kn(t){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kn(t)}function yf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ro=function(t){bJ(r,t);var e=_J(r);function r(){return yJ(this,r),e.apply(this,arguments)}return vJ(r,[{key:"renderElement",value:function(){var i=this,o=this.querySelectorAll("simple-item-ui, form-item-ui");o.length<=5&&(this.isSmallElements=!0),this.maxAnswers&&this.maxAnswers<o.length&&this._renderMaxAnswersCheck(o),this.style.height="",this.resetAll(o),this.modifier==="row"&&this.resizeLabels(),this.isShortLabels=!0,o.forEach(function(p){var d=p.querySelector('[slot="other"] input-ui')||p.shadowRoot.querySelector('[slot="other"] input-ui');!i.isOtersInput&&d&&(i.isOtersInput=!0),!i.hasAttribute("has-images")&&p.hasAttribute("has-images")&&i.setAttribute("has-images",""),i.isShortLabels&&!p.hasAttribute("short-label")&&(i.isShortLabels=!1);var m={form:"form","column-left-label":"left",row:"top"};p.setAttribute("direction",m[i.modifier]||"right")});var a=this.getBoundingClientRect().width,s=o.length,l=1;if(this.modifier==="columns"&&a>this.maxWidth){var u=0;o.forEach(function(p){var d=p.getBoundingClientRect().height;d>u&&(u=d)});var c=fJ(o).filter(function(p){return!p.hasAttribute("hidden")});s=Math.ceil(c.length/this.columnCount),l=this.columnCount,this.style.height=s*(u+4)+"px"}if(this.modifier==="rows"?a<this.maxWidth&&(this.calcSizeW(o,".prefix",s,l),this.calcSizeW(o,".postfix",s,l)):this.modifier==="row"?a>this.maxWidth?(this.calcSizeH(o,".label"),this.calcSizeH(o,".prefix"),this.modifier!=="form"&&(this.calcSizeW(o,".control",s,l),this.calcSizeH(o,".postfix")),this.calcSizeW(o,".label",s,l),this.modifier==="form"&&this.calcSizeH(o,".other")):(this.calcSizeWH(o,".label",s,l),this.calcSizeWH(o,".prefix",s,l),this.calcSizeWH(o,".postfix",s,l),this.scrollWidth>this.clientWidth||o.length>=7?(this.modifier="default",this.renderElement(),this.renderLabelsForMobile()):document.documentElement.clientWidth<700&&this.renderLabelsForMobile()):a>this.maxWidth?(this.calcSizeW(o,".label",s,l),this.calcSizeW(o,".prefix",s,l),this.modifier!=="form"&&(this.calcSizeW(o,".postfix",s,l),this.calcSizeW(o,".control",s,l)),this.modifier==="form"&&(this.calcSizeW(o,".other",s,l),this.calcSizeW(o,".wrap",s,l)),this.modifier==="default"&&this._tmpModifier==="row"&&(this.modifier=this._tmpModifier,this.calcSizeH(o,".label"),this.calcSizeH(o,".prefix"),this.modifier!=="form"&&(this.calcSizeW(o,".control",s,l),this.calcSizeH(o,".postfix")),this.calcSizeW(o,".label",s,l),this.modifier==="form"&&this.calcSizeH(o,".other"),this.renderLabelsForDesktop(),this.resizeLabels())):(this.calcSizeW(o,".prefix",s,l),this.calcSizeW(o,".postfix",s,l)),o.length){var f=[".label",".label",".control"].reduce(function(p,d){return p+o[0].shadowRoot.querySelector(d).clientWidth},0);this.dispatchEvent(new CustomEvent("constant-sum-width",{composed:!0,bubbles:!0,detail:f}))}}},{key:"resizeLabels",value:function(){var i=this;requestAnimationFrame(function(){i.$.labels.style.width=i.$.items.clientWidth+"px"})}},{key:"renderLabelsForMobile",value:function(){var i=this.$.labels.assignedNodes(),o=i[i.length-1],a=this.shadowRoot.querySelector(".fake-last-label");a||(a=document.createElement("div"),a.classList.add("fake-last-label"),o&&(a.innerHTML=o.innerHTML),a.style.marginTop="10px",this.shadowRoot.append(a))}},{key:"renderLabelsForDesktop",value:function(){var i=this.shadowRoot.querySelector(".fake-last-label");i==null||i.remove()}},{key:"_renderMaxAnswersCheck",value:function(i){var o=this,a=this.querySelectorAll("checkbox-ui[checked]");if(a.length>this.maxAnswers)for(var s=0;s<a.length-this.maxAnswers;s++)a[s].checked=!1;a.length&&this.querySelectorAll("checkbox-ui[checked]")[0].setAttribute("last-check",!0),i.forEach(function(l){l.addEventListener("click",function(u){var c=u.currentTarget.querySelector("checkbox-ui");if(c.checked){var f=o.querySelectorAll("checkbox-ui[checked]").length,p=o.querySelector("checkbox-ui[last-check]");p&&p.removeAttribute("last-check"),o.maxAnswers<=f-1&&p&&(p.checked=!1,p.dispatchEvent(new CustomEvent("checkbox-checked",{composed:!0,bubbles:!0}))),c.setAttribute("last-check",!0)}})})}},{key:"calcSizeWH",value:function(i,o,a,s){this.calcSizeW(i,o,a,s),this.calcSizeH(i,o)}},{key:"calcSizeW",value:function(i,o,a,s){for(var l=0;l<s;l++){for(var u=0,c=l*a,f=a+c-1,p=c;p<=f;p++)if(i.length>p&&i[p].shadowRoot){var d=i[p].shadowRoot.querySelector(o),m=d.getBoundingClientRect().width;m>u&&(u=m)}if(u>0){for(var h=c;h<=f;h++)if(i.length>h){var v=i[h].shadowRoot.querySelector(o);v.style.width=Math.ceil(u)+"px"}}}}},{key:"calcSizeH",value:function(i,o){var a=0;i.forEach(function(s){if(s.shadowRoot){var l=s.shadowRoot.querySelector(o),u=l.getBoundingClientRect().height;u>a&&(a=u)}}),i.forEach(function(s){if(s.shadowRoot){var l=s.shadowRoot.querySelector(o);l.style.height=Math.ceil(a)+"px"}})}},{key:"resetWH",value:function(i,o){i.forEach(function(a){if(a.shadowRoot){var s=a.shadowRoot.querySelector(o);s&&(s.style.width="",s.style.height="")}})}},{key:"resetAll",value:function(i){this.resetWH(i,".label"),this.resetWH(i,".prefix"),this.resetWH(i,".postfix"),this.resetWH(i,".control"),this.resetWH(i,".label-text"),this.modifier==="form"&&this.resetWH(i,".other")}},{key:"connectedCallback",value:function(){var i=this;Ss(kn(r.prototype),"connectedCallback",this).call(this),this._tmpModifier=this.modifier,this._resizeHandler=function(o){i._debouncer=ue(i._debouncer,1e3,function(){i.renderElement()})},window.TEST_MODE?requestAnimationFrame(function(){requestAnimationFrame(function(){i.renderElement()})}):me(QA(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,0;case 2:requestAnimationFrame(QA(regeneratorRuntime.mark(function l(){return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,0;case 2:i.renderElement(),setTimeout(function(){i.renderElement()},600);case 4:case"end":return c.stop()}},l)})));case 3:case"end":return s.stop()}},o)}))),window.addEventListener("resize",this._resizeHandler)}},{key:"disconnectedCallback",value:function(){Ss(kn(r.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this._resizeHandler)}}]),r}(fE(O));yf(ro,"is","simple-list-ui");yf(ro,"template",g([YA]));yf(ro,"sharedStyles",["survey"]);yf(ro,"properties",{modifier:{type:String,value:"default",reflectToAttribute:!0},_tmpModifier:{type:String},columnCount:{type:Number,reflectToAttribute:!0},maxWidth:{type:Number,value:600},maxAnswers:{type:Number},isOtersInput:{type:Boolean,reflectToAttribute:!0},isShortLabels:{type:Boolean,reflectToAttribute:!0},isSmallElements:{type:Boolean,value:!1,reflectToAttribute:!0}});customElements.define(ro.is,ro);var ZA='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n	}\n\n	/* no control */\n	:host([button-mode]) {\n		border-radius: 4px;\n		color: #a8bac3;\n		background: rgba(255, 255, 255, 1);\n		transition: background 0.2s;\n	}\n\n	:host([button-mode][checked]) {\n		color: rgba(255, 255, 255, 1);\n		background: #a8bac3;\n	}\n\n	:host([button-mode]:not([checked]):hover) {\n		color: #a8bac3;\n		background: rgba(255, 255, 255, 1);\n	}\n\n	:host([button-mode]) .container {\n		position: relative;\n		padding: 2px;\n	}\n\n	:host([button-mode]) .control {\n		display: none;\n	}\n\n	:host([direction=top][button-mode]) {\n		justify-content: center;\n	}\n\n	:host([direction=top][button-mode]) .container {\n		justify-content: center;\n	}\n\n	:host([direction=top][button-mode]) .label {\n		justify-content: center;\n		margin-top: 0;\n		margin-bottom: 0;\n		min-height: 50px;\n	}\n\n	:host([direction=right][button-mode]) .label {\n		padding: 0 calc(2px * 3);\n	}\n	/* :host([direction=top][button-mode]) {\n		margin: 0 2px;\n	} */\n\n	:host([direction=top]),\n	:host([direction=bottom]) {\n		margin: calc(2px * 2) !important;\n	}\n\n	:host(:not([direction=inside])) {\n		margin: 2px;\n	}\n\n	:host([direction=inside]) {\n		flex-grow: 1;\n		justify-content: center;\n		align-items: center;\n	}\n\n	:host([direction=inside]) .container {\n		padding: 0;\n		min-height: 0;\n	}\n\n	.container {\n		display: flex;\n		flex-direction: row;\n		align-items: center;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		padding: 0 2px;\n		min-height: 34px;\n	}\n\n	:host([direction=bottom]) .container,\n	:host([direction=top]) .container {\n		flex-direction: column;\n	}\n\n	:host([empty]) {\n		cursor: default;\n	}\n\n	:host([empty]) .container {\n		align-items: center;\n	}\n\n	:host([highlight]) {\n		background-color: rgba(96, 125, 139, 0.25);\n		margin-bottom: 8px;\n	}\n\n	:host([direction=top]) .label,\n	:host([direction=bottom]) .label {\n		text-align: center;\n	}\n\n	:host([direction=right]) .label-text,\n	:host([direction=left]) .label-text {\n		padding: 8px 2px;\n	}\n\n	:host([direction=top]) .label-text,\n	:host([direction=bottom]) .label-text {\n		padding: 0 2px;\n	}\n\n	:host([empty]) .control {\n		display: none;\n	}\n\n	:host([direction=top]) .control {\n		flex-direction: column;\n	}\n\n	:host([direction=bottom]) .label {\n		flex-direction: column;\n	}\n\n	:host([direction=top]) .label {\n		margin-top: calc(2px * 3);\n		margin-bottom: calc(2px * 3);\n		min-width: 30px;\n		flex-direction: column;\n		justify-content: flex-end;\n		word-break: break-word;\n	}\n\n	:host([direction=bottom]) .control {\n		flex-direction: column;\n	}\n\n	.item {\n		display: flex;\n		flex-direction: row;\n	}\n\n	.label-text {\n		display: none;\n		flex-shrink: 4;\n		max-width: 100%;\n	}\n\n	.label {\n		display: flex;\n		flex-direction: row;\n		align-items: center;\n	}\n\n	:host([has-label]) .label-text {\n		display: block;\n	}\n\n	:host([has-other]) .other {\n		display: block;\n		align-self: baseline;\n		min-width: 60px;\n	}\n\n	:host([has-other]:not([direction="top"])) .other {\n		max-width: 180px;\n	}\n\n	:host([has-control][has-other]:not([direction="top"])) .other {\n		padding-left: 16px;\n	}\n\n	:host([has-control]) .label-text {\n		cursor: pointer;\n	}\n\n	:host([has-other][has-label]) .label-text {\n		display: block;\n	}\n\n	:host(:not([has-control]):not([inline-other])) .label {\n		flex-direction: column;\n		align-items: flex-start;\n	}\n\n	:host([direction=left]) .label {\n		padding-left: calc(2px * 3);\n	}\n\n	:host([direction=left]) .label,\n	:host([direction=form]) .label,\n	:host([direction=top]) .label {\n		order: 1;\n		align-items: initial;\n	}\n\n	.control {\n		display: flex;\n		align-content: center;\n		align-items: center;\n	}\n\n	:host([direction=top]) .control,\n	:host([direction=bottom]) .control {\n		align-items: center;\n	}\n\n	:host([direction=top]) .control,\n	:host([direction=left]) .control {\n		order: 3;\n	}\n\n	:host([direction=left]) .control,\n	:host([direction=right]) .control {\n		align-self: flex-start;\n	}\n\n	:host([direction=form]) .control {\n		order: 2;\n	}\n\n	.other {\n		padding-left: 0;\n		display: none;\n	}\n\n	.other ::slotted(*) {\n		display: inline-block;\n	}\n\n	@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n		.other ::slotted(*) {\n			display: block;\n		}\n	}\n\n	.other ::slotted(input-ui) {\n		display: inline-block;\n		width: 180px;\n	}\n\n	.other:not([direction="top"]) ::slotted(input-ui) {\n		display: inline-block;\n		width: 180px;\n	}\n\n	.x-fix {\n		font-size: 16px;\n	}\n\n	:host([direction=left]) .x-fix, :host([direction=right]) .x-fix {\n		white-space: nowrap;\n	}\n\n	:host([direction=top]) .x-fix {\n		text-align: center;\n		padding: 0;\n	}\n\n	.prefix {\n		text-align: right;\n		padding-right: calc(2px * 2);\n	}\n\n	.postfix {\n		text-align: left;\n		padding-left: calc(2px * 2);\n	}\n\n	.expand {\n		display: flex;\n		flex-grow: 1;\n		justify-content: center;\n		align-items: center;\n	}\n\n	:host([input]) .expand {\n		justify-content: stretch;\n	}\n\n	:host([width-type="small"]) .expand {\n		min-width: calc(960px / 4);\n	}\n\n	:host([width-type="medium"]) .expand {\n		min-width: calc(960px / 2);\n	}\n\n	:host([width-type="wide"]) .control {\n		flex-grow: 1;\n	}\n\n	:host([no-label]) .label {\n		display: none;\n	}\n\n\n	@media (max-width: 700px) {\n		:host([right]) {\n			justify-content: flex-end;\n			align-items: flex-end;\n			padding: calc(2px * 2);\n		}\n\n		:host([direction=left]) .container {\n			flex-grow: 1;\n			justify-content: space-between;\n		}\n\n		:host([direction=inside]) .label {\n			padding-left: calc(2px * 3);\n		}\n\n		:host([direction=inside]) .label-text {\n			padding: 0 2px;\n		}\n\n		:host([direction=form]) {\n			justify-content: space-between;\n			flex-direction: column;\n		}\n\n		:host([direction=inside]) .label,\n		:host([direction=right]) .label,\n		:host([direction=left]) .label {\n			flex-wrap: wrap;\n		}\n\n		.control {\n			flex-direction: column;\n		}\n\n		:host([has-control]) .control {\n			min-width: 34px;\n		}\n\n		:host([direction=right]) .label {\n			padding-left: calc(2px * 2);\n			padding-right: 0;\n		}\n\n		:host([direction=form]) .label,\n		:host([direction=left]) .label {\n			padding-left: 0;\n			padding-right: calc(2px * 2);\n		}\n\n		:host([direction=bottom]) .control,\n		:host([direction=top]) .control {\n			/* flex-direction: row; */\n			justify-content: center;\n		}\n\n		:host([direction=left]) .other,\n		:host([direction=right]) .other {\n			padding-left: 0;\n		}\n\n		:host([width-type="medium"]) .expand,\n		:host([width-type="small"]) .expand {\n			min-width: 0;\n		}\n\n		:host([direction=bottom]) .prefix,\n		:host([direction=top]) .prefix {\n			/* text-align: right; */\n		}\n\n		:host([direction=bottom]) .postfix,\n		:host([direction=top]) .postfix {\n			text-align: left;\n		}\n\n		.x-fix {\n			text-align: center;\n		}\n\n		:host([has-control][has-other]:not([direction="top"])) .other {\n			padding-left: 0;\n		}\n\n		.label {\n			flex-direction: column;\n			align-items: flex-start;\n		}\n\n		:host([direction=top]) .label {\n			align-items: center;\n		}\n\n		:host([direction=bottom]) .label {\n			align-items: center;\n		}\n\n		/* a11y hack to prevent input focusing before control checked (on mobile) */\n		:host([role=checkbox][aria-checked=false]) .other ::slotted(*),\n		:host([role=radio][aria-checked=false]) .other ::slotted(*) {\n			pointer-events: none;\n		}\n\n		:host([empty]) .label {\n			flex-grow: 1;\n		}\n\n		:host([empty]) .label-text {\n			width: 100%;\n		}\n\n		:host([empty]) .label-text ::slotted(*) {\n			width: 100%;\n			display: inline-block;\n		}\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	:host(:not([focus-visible])) {\n		outline: none;\n	}\n\n	:host([is-ie][input]) .expand ::slotted(*) {\n		width: 170px;\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot name="error"></slot>\n<div class="container">\n	<paper-ripple hidden="[[!buttonMode]]" noink="[[!buttonMode]]"></paper-ripple>\n	<div class="control">\n		<div class="x-fix prefix"><slot name="prefix"></slot></div>\n		<div class="expand"><slot name="control"></slot></div>\n		<div class="x-fix postfix"><slot name="postfix"></slot></div>\n	</div>\n	<div class="label">\n		<div class="label-text"><slot name="label"></slot></div>\n		<div class="other">\n			<slot name="other"></slot>\n		</div>\n	</div>\n</div>';function jb(t){return jb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jb(t)}function eR(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function PJ(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){eR(o,n,i,a,s,"next",l)}function s(l){eR(o,n,i,a,s,"throw",l)}a(void 0)})}}function tR(t){return TJ(t)||EJ(t)||kJ(t)||SJ()}function SJ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kJ(t,e){if(!!t){if(typeof t=="string")return Bb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bb(t,e)}}function EJ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function TJ(t){if(Array.isArray(t))return Bb(t)}function Bb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function RJ(t,e,r){return e&&rR(t.prototype,e),r&&rR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ks(){return typeof Reflect!="undefined"&&Reflect.get?ks=Reflect.get:ks=function(e,r,n){var i=DJ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ks.apply(this,arguments)}function DJ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=En(t),t!==null););return t}function CJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mb(t,e)}function Mb(t,e){return Mb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Mb(t,e)}function IJ(t){var e=BJ();return function(){var n=En(t),i;if(e){var o=En(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jJ(this,i)}}function jJ(t,e){if(e&&(jb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lb(t)}function Lb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BJ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function En(t){return En=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},En(t)}function vf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var no=function(t){CJ(r,t);var e=IJ(r);function r(){var n;return AJ(this,r),n=e.call(this),n.addEventListener("click",function(i){var o=i.composedPath()[0];if(!n.buttonMode){if(n.direction==="right"){if(o.classList.contains("container")||o.classList.contains("label"))return}else if(n.direction==="left"&&o.classList.contains("container"))return}var a=n.querySelector("radio-button-ui, checkbox-ui");if(!a){var s=n.querySelector("respond-ui");a=s==null?void 0:s.shadowRoot.querySelector("radio-button-ui, checkbox-ui")}if(!(o.tagName==="RADIO-BUTTON-UI"||o.tagName==="CHECKBOX-UI"||o.type==="radio"||o.type==="checkbox"||o.classList.contains("checkbox")||o.classList.contains("radio")||o.classList.contains("control")&&!a)&&a){if(o.type==="text"&&a.checked)return;a.disabled||a.toggle()}}),n.addEventListener("keydown",function(i){(i.key===" "||i.key==="Enter")&&i.target===Lb(n)&&i.preventDefault();var o=n.querySelector("radio-button-ui");if(o){var a=function(l){Ju(!0),i.preventDefault();var u=tR(o.constructor.Registry.get(o.name)),c=u.indexOf(o)+l;c<0&&(c=u.length-1);var f=u[c%u.length];f.toggle(),f.closest("simple-item-ui").focus()};i.key==="ArrowUp"||i.key==="ArrowLeft"?a(-1):(i.key==="ArrowDown"||i.key==="ArrowRight")&&a(1)}},!0),n.addEventListener("keyup",function(i){var o=n.querySelector("radio-button-ui, checkbox-ui");(i.key===" "||i.key==="Enter")&&i.target===Lb(n)&&!o.disabled&&o.toggle()}),n.addEventListener("radio-checked",function(i){n.checked=i.target.checked}),n.addEventListener("checkbox-checked",function(i){n.checked=i.target.checked}),n}return RJ(r,[{key:"ready",value:function(){ks(En(r.prototype),"ready",this).call(this),this.checked===void 0&&(this.checked=!1)}},{key:"_checkedObserver",value:function(){if(["radio","checkbox"].includes(this.getAttribute("role"))&&this.setAttribute("aria-checked",!!this.checked),this.getAttribute("role")==="radio"){var i=this.querySelector("radio-button-ui");if(!i)return;var o=i.constructor.Registry.get(i.name);if(!o)return;if(o=tR(o),this.checked)this.tabIndex=0,o.forEach(function(s){s!==i&&(s.closest("simple-item-ui").tabIndex=-1)});else{this.tabIndex=-1;var a=o.find(function(s){return s.checked});a||(o[0].closest("simple-item-ui").tabIndex=0)}}}},{key:"connectedCallback",value:function(){var i=this;ks(En(r.prototype),"connectedCallback",this).call(this),window.TEST_MODE?requestAnimationFrame(function(){i.renderElement()}):me(PJ(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:requestAnimationFrame(function(){i.renderElement(),setTimeout(function(){i.renderElement()},600)});case 1:case"end":return s.stop()}},o)})))}},{key:"renderElement",value:function(){var i=this,o,a;this.shadowRoot.querySelector("slot[name=other]").assignedNodes().length!==0?(this.setAttribute("has-other",""),this.querySelector('span[slot="other"] input-ui').addEventListener("input-value-changed",function(u){var c=i.querySelector("checkbox-ui, radio-button-ui");c&&!c.disabled&&c.checked&&!u.detail.value&&c.toggle()})):this.removeAttribute("has-other"),this.shadowRoot.querySelector("slot[name=label]").assignedNodes().length!==0?this.setAttribute("has-label",""):this.removeAttribute("has-label"),this.shadowRoot.querySelector("slot[name=control]").assignedNodes().length!==0?this.setAttribute("has-control",""):this.removeAttribute("has-control");var s=this.querySelectorAll("[slot=control] > input-ui, [slot=control] > date-input-ui");s.length&&this.setAttribute("input","");var l=this.shadowRoot.querySelector("slot[name=label]").assignedNodes();((o=l[0])===null||o===void 0?void 0:o.getElementsByTagName("img").length)>0?this.setAttribute("has-images",""):((a=l[0])===null||a===void 0?void 0:a.textContent.trim().length)<=4&&this.setAttribute("short-label","")}}]),r}(ce(sr(O)));vf(no,"is","simple-item-ui");vf(no,"template",g([ZA]));vf(no,"sharedStyles",["survey"]);vf(no,"properties",{direction:{type:String,reflectToAttribute:!0},prefix:{type:String},postfix:{type:String},highlight:{value:!1,reflectToAttribute:!0},checked:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_checkedObserver"},buttonMode:{type:Boolean,value:!1,reflectToAttribute:!0}});customElements.define(no.is,no);var nR='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		padding: 2px;\n		position: relative;\n	}\n\n	.container {\n		display: flex;\n		flex-direction: row;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		padding: 2px;\n		min-height: 34px;\n	}\n\n	:host([empty]) {\n		cursor: default;\n	}\n\n	:host([no-prefix]) .prefix,\n	:host([no-postfix]) .postfix,\n	:host([no-label]) .label {\n		padding: 0;\n		width: 0;\n	}\n\n	:host([highlight]) {\n		background-color: rgba(96, 125, 139, 0.25);\n	}\n\n	.label {\n		display: flex;\n		flex-direction: column;\n		justify-content: center;\n	}\n\n	.label-text {\n		/* height: var(--ui-height); */\n		padding: 0 2px;\n	}\n\n	:host([empty]) .control {\n		display: none;\n	}\n\n	.item {\n		display: flex;\n		flex-direction: row;\n	}\n\n	.control {\n		display: flex;\n		align-content: center;\n	}\n\n	.x-fix {\n		display: flex;\n		align-items: center;\n		flex-shrink: 0;\n		font-size: 12px;\n		white-space: nowrap;\n		max-height: 34px;\n	}\n\n	.prefix {\n		text-align: right;\n		padding-right: 4px;\n	}\n\n	.postfix {\n		text-align: left;\n	}\n\n	.expand {\n		flex-grow: 1;\n	}\n\n	.other ::slotted(*) {\n		display: inline-block;\n		width: 180px;\n		max-width: 100%;\n	}\n\n	:host([width-type="wide"]) .control {\n		flex-grow: 1;\n	}\n\n	:host([width-type="medium"]) .control {\n		width: 50%;\n	}\n\n	:host([width-type="small"]) .label {\n		max-width: 500px;\n		word-wrap: break-word;\n		flex-shrink: 1;\n	}\n\n	:host([width-type="small"]) .expand {\n		width: 180px;\n	}\n\n	:host([width-type="small"]) .wrap {\n		flex-shrink: 0;\n	}\n\n	:host([width-type="wide"]) .label {\n		max-width: 220px;\n		word-wrap: break-word;\n	}\n\n	:host([width-type="medium"]) .label {\n		max-width: 220px;\n		word-wrap: break-word;\n	}\n\n	.wrap {\n		display: flex;\n		flex-grow: 1;\n	}\n\n	.not-applicable {\n		margin-left: 8px;\n	}\n\n	:host([has-error])::after {\n		content: "";\n		position: absolute;\n		display: block;\n		width: 2px;\n		top: 3px;\n		bottom: 3px;\n		left: 0;\n		background-color: #d8252b;\n	}\n\n	@media (max-width: 700px) {\n		:host {\n			justify-content: space-between;\n			flex-direction: column;\n		}\n\n		.container {\n			flex-direction: column;\n		}\n\n		.control {\n			flex-direction: column;\n			align-items: stretch;\n		}\n\n		.wrap {\n			flex-direction: column;\n			align-items: stretch;\n			width: auto !important;\n		}\n\n		.other {\n			padding-top: 4px;\n		}\n\n		.label {\n			padding-right: 4px;\n			padding-left: 4px;\n			width: auto !important;\n		}\n\n		:host([width-type="medium"]) .expand,\n		:host([width-type="small"]) .expand {\n			min-width: 0;\n			width: auto;\n		}\n\n		:host([width-type="medium"]) .control,\n		:host([width-type="small"]) .control {\n			width: auto;\n		}\n\n		.x-fix {\n			text-align: center;\n		}\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot name="error"></slot>\n\n<div class="container">\n	<div class="label">\n		<div class="label-text">\n			<slot name="label"></slot>\n		</div>\n	</div>\n	<div class="wrap">\n		<div class="control">\n			<div class="x-fix prefix">\n				<slot name="prefix"></slot>\n			</div>\n			<div class="expand">\n				<slot id="control" name="control"></slot>\n			</div>\n		</div>\n		<div class="x-fix postfix">\n			<slot name="postfix"></slot>\n		</div>\n		<div class="other">\n			<slot id="other" name="other"></slot>\n		</div>\n		<div class="not-applicable">\n			<slot name="not-applicable"></slot>\n		</div>\n	</div>\n</div>';function Nb(t){return Nb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nb(t)}function iR(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function LJ(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){iR(o,n,i,a,s,"next",l)}function s(l){iR(o,n,i,a,s,"throw",l)}a(void 0)})}}function NJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qJ(t,e,r){return e&&oR(t.prototype,e),r&&oR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gf(){return typeof Reflect!="undefined"&&Reflect.get?gf=Reflect.get:gf=function(e,r,n){var i=zJ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},gf.apply(this,arguments)}function zJ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=io(t),t!==null););return t}function HJ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qb(t,e)}function qb(t,e){return qb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qb(t,e)}function UJ(t){var e=GJ();return function(){var n=io(t),i;if(e){var o=io(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return VJ(this,i)}}function VJ(t,e){if(e&&(Nb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WJ(t)}function WJ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GJ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function io(t){return io=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},io(t)}function bf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var oo=function(t){HJ(r,t);var e=UJ(r);function r(){return NJ(this,r),e.apply(this,arguments)}return qJ(r,[{key:"renderElement",value:function(){var i,o,a=this,s=this.querySelector("*[slot=other]"),l=this.shadowRoot.querySelector(".other"),u=this.shadowRoot.querySelector(".expand"),c=this.querySelector("*[slot=postfix]"),f=this.shadowRoot.querySelector(".postfix"),p=(i=this.$.other.assignedNodes().filter(function(h){return h instanceof HTMLElement})[0])===null||i===void 0?void 0:i.querySelector("input-ui"),d=(o=this.$.control.assignedNodes().filter(function(h){return h instanceof HTMLElement})[0])===null||o===void 0?void 0:o.querySelector("input-ui");s?f.style.padding=c?"0 4px":"0 0 0 4px":(l.style.width="auto",f.style.padding=c?"0 0 0 4px":0);var m=function(v,y){var b=v.target.inputValue;b&&b.length&&(!y&&!!b||!!y.inputValue&&!!b)&&a.removeAttribute("has-error")};l.addEventListener("validate",function(h){return m(h,d)}),u.addEventListener("validate",function(h){return m(h,p)})}},{key:"connectedCallback",value:function(){var i=this;gf(io(r.prototype),"connectedCallback",this).call(this),this._resizeHandler=function(o){i._debouncer=ue(i._debouncer,1e3,function(){i.renderElement()})},window.addEventListener("resize",this._resizeHandler),window.TEST_MODE?requestAnimationFrame(function(){i.renderElement()}):me(LJ(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:requestAnimationFrame(function(){i.renderElement(),setTimeout(function(){i.renderElement()},600)});case 1:case"end":return s.stop()}},o)})))}}]),r}(O);bf(oo,"is","form-item-ui");bf(oo,"template",g([nR]));bf(oo,"sharedStyles",["survey"]);bf(oo,"properties",{highlight:{value:!1,reflectToAttribute:!0},widthType:{type:String,reflectToAttribute:!0}});customElements.define(oo.is,oo);var zb=!1,$J=[],aR=[];function KJ(){zb=!0,requestAnimationFrame(function(){zb=!1,YJ($J),setTimeout(function(){XJ(aR)})})}function YJ(t){for(;t.length;)sR(t.shift())}function XJ(t){for(var e=0,r=t.length;e<r;e++)sR(t.shift())}function sR(t){var e=t[0],r=t[1],n=t[2];try{r.apply(e,n)}catch(i){setTimeout(function(){throw i})}}function yr(t,e,r){zb||KJ(),aR.push([t,e,r])}var lR='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		position: relative;\n		overflow: hidden;\n	}\n\n	/* for firefox < 64 */\n	@supports not (scrollbar-width: none) {\n		:host([is-firefox][has-scrollbar]) .scroll-container {\n			margin-right: -18px;\n		}\n	}\n\n	.scroll-container {\n		overflow: auto;\n		-webkit-overflow-scrolling: touch;\n		/* scroll-behavior: smooth; */\n	}\n\n	:host([contain-scroll][has-scrollbar]) {\n		-ms-scroll-chaining: none;\n		    overscroll-behavior: none;\n	}\n\n	.shadow-container {\n		position: absolute;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n		scroll-behavior: smooth;\n	}\n\n	.shadow {\n		position: absolute;\n		z-index: 100000;\n		border-radius: 50%;\n	}\n\n	.top, .bottom {\n		width: 100%;\n		height: 1px;\n	}\n	.top { top: -2px; }\n	.bottom { bottom: -2px; }\n\n	.left, .right {\n		width: 1px;\n		height: 100%;\n	}\n	.left { left: -2px; }\n	.right { right: -2px; }\n</style>\n\n<!-- <div class="shadow-container"> -->\n<div id="top" class="shadow top"></div>\n<div id="left" class="shadow left"></div>\n<div id="right" class="shadow right"></div>\n<div id="bottom" class="shadow bottom"></div>\n<!-- </div> -->\n<div id="scrollContainer" class="scroll-container">\n	<slot id="slot"></slot>\n</div>';function Hb(t){return Hb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hb(t)}function JJ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ZJ(t,e,r){return e&&uR(t.prototype,e),r&&uR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ao(){return typeof Reflect!="undefined"&&Reflect.get?ao=Reflect.get:ao=function(e,r,n){var i=eZ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ao.apply(this,arguments)}function eZ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=vr(t),t!==null););return t}function tZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ub(t,e)}function Ub(t,e){return Ub=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ub(t,e)}function rZ(t){var e=oZ();return function(){var n=vr(t),i;if(e){var o=vr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return nZ(this,i)}}function nZ(t,e){if(e&&(Hb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iZ(t)}function iZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},vr(t)}function Vb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Es=function(t){tZ(r,t);var e=rZ(r);function r(){return JJ(this,r),e.apply(this,arguments)}return ZJ(r,[{key:"ready",value:function(){var i=this;ao(vr(r.prototype),"ready",this).call(this),this.$.scrollContainer.addEventListener("scroll",function(){i.update(),i.dispatchEvent(new CustomEvent(i.constructor.is,{composed:!0,bubbles:!0}))}),new MutationObserver(function(){i.update()}).observe(this,{childList:!0,subtree:!0})}},{key:"connectedCallback",value:function(){var i=this;ao(vr(r.prototype),"connectedCallback",this).call(this),yr(this,function(){i.update()}),this._resizeHandler=function(){i.update()},window.addEventListener("resize",this._resizeHandler)}},{key:"disconnectedCallback",value:function(){ao(vr(r.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this._resizeHandler)}},{key:"computeShadow",value:function(i,o){var a=Math.min(i/9,20+(o>500?o/100:0)),s=a/(7+(o>500?o/600:0));return{blur:a,spread:s}}},{key:"setShadow",value:function(i,o){if(!!o.blur){var a=this.colored?"rgba(7, 149, 191, 0.8)":"rgba(0, 0, 0, .6)";this.$[i].style.boxShadow="0 0 ".concat(o.blur,"px ").concat(o.spread,"px ").concat(a)}}},{key:"reset",value:function(){this.$.top.style.boxShadow="",this.$.left.style.boxShadow="",this.$.right.style.boxShadow="",this.$.bottom.style.boxShadow=""}},{key:"update",value:function(){var i=this;this.reset();var o=this.$.scrollContainer;requestAnimationFrame(function(){i.hasScrollbar=Math.abs(o.clientHeight-o.scrollHeight)>1||Math.abs(o.clientWidth-o.scrollWidth)>1,i.setShadow("top",i.computeShadow(o.scrollTop,o.clientWidth)),i.setShadow("left",i.computeShadow(o.scrollLeft,o.clientHeight)),i.setShadow("right",i.computeShadow(o.scrollWidth-o.clientWidth-o.scrollLeft,o.clientHeight)),i.setShadow("bottom",i.computeShadow(o.scrollHeight-o.clientHeight-o.scrollTop,o.clientWidth))})}},{key:"scrolledToBottom",value:function(){this.scrolledTo(this.$.scrollContainer.scrollHeight)}},{key:"scrolledToTop",value:function(){this.scrolledTo(0)}},{key:"scrolledTo",value:function(i){var o=this;requestAnimationFrame(function(){o.$.scrollContainer.scrollTop=i,o.update()})}}]),r}(ce(O));Vb(Es,"is","scroll-shadow-ui");Vb(Es,"template",g([lR]));Vb(Es,"properties",{colored:{type:Boolean,reflectToAttribute:!0},containScroll:{type:Boolean,reflectToAttribute:!0},hasScrollbar:{type:Boolean,reflectToAttribute:!0}});customElements.define(Es.is,Es);var cR="<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		flex-grow: 1;\n		overflow-x: auto;\n		overflow-y: hidden;\n	}\n\n	:host([swap]) {\n		flex-direction: row;\n	}\n\n	@media screen and (max-width: 800px) {\n		:host([swap][type=break]),\n		:host([swap][type=accordion]) {\n			flex-direction: column;\n		}\n\n		:host([slider]) ::slotted(matrix-row-el) {\n			padding-bottom: 16px;\n		}\n\n		:host([slider]) ::slotted(matrix-row-el:last-child),\n		:host([type=break]) ::slotted(matrix-row-el:last-child),\n		:host([type=accordion]) ::slotted(matrix-row-el:last-child) {\n			padding-bottom: 0;\n		}\n\n		:host([type=slide]:not([slider])) {\n			overflow-x: auto;\n		}\n	}\n</style>\n\n<slot></slot>\n";function Wb(t){return Wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(t)}function sZ(t,e){var r=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=pR(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o=!0,a=!1,s;return{s:function(){r=r.call(t)},n:function(){var u=r.next();return o=u.done,u},e:function(u){a=!0,s=u},f:function(){try{!o&&r.return!=null&&r.return()}finally{if(a)throw s}}}}function fR(t){return cZ(t)||uZ(t)||pR(t)||lZ()}function lZ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pR(t,e){if(!!t){if(typeof t=="string")return Gb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gb(t,e)}}function uZ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function cZ(t){if(Array.isArray(t))return Gb(t)}function Gb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pZ(t,e,r){return e&&dR(t.prototype,e),r&&dR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ts(){return typeof Reflect!="undefined"&&Reflect.get?Ts=Reflect.get:Ts=function(e,r,n){var i=dZ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ts.apply(this,arguments)}function dZ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Tn(t),t!==null););return t}function hZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$b(t,e)}function $b(t,e){return $b=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},$b(t,e)}function mZ(t){var e=gZ();return function(){var n=Tn(t),i;if(e){var o=Tn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return yZ(this,i)}}function yZ(t,e){if(e&&(Wb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vZ(t)}function vZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Tn(t){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Tn(t)}function Kb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var so=function(t){hZ(r,t);var e=mZ(r);function r(){return fZ(this,r),e.apply(this,arguments)}return pZ(r,[{key:"initRowsAccordion",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this.hasAttribute("sbs-matrix")){var a=this.querySelectorAll("matrix-row-el:not([hidden]):not([header])"),s=this.querySelector("matrix-row-el:nth-child("+(this.indexRow+1)+") ~ matrix-row-el:not([valid]):not([hidden]):not([header])");i&&(this.indexRow=this.getIndexNode(a,i)),s||(s=this.querySelector("matrix-row-el:not([valid]):not([hidden]):not([header])")),s?s.expandVis(o):i&&i.expandVis(o)}}},{key:"initHeaderBackgroundImage",value:function(i){var o=this.headerBackgroundOptions,a=o.backgroundImage,s=o.backgroundColor,l=o.elementWidth,u=o.elementHeight,c=o.elementLeft,f=o.elementOffsetTop,p=o.elementSelector,d=o.backgroundFirstProp,m=p==="body"||p===".page";u=p==="body"?document.documentElement.clientHeight:u;var h={backgroundSize:m?"cover":"auto",backgroundImage:a,backgroundColor:s,backgroundPosition:m?"left center":"0 0",width:l+"px",height:u+"px",position:"absolute",left:c-this.offsetLeft+"px",top:f-this.offsetTop+"px",zIndex:-2},v={overflow:"hidden",backgroundColor:"transparent"},y={backgroundColor:d==="color"?s:"transparent",zIndex:-1,position:"absolute",left:0,top:0,right:0,bottom:0};d||(y.backgroundColor=s),i.forEach(function(b){h.top=f-b.offsetTop+"px",Object.assign(b.style,v);var _=b.querySelector(".fake-background"),x=b.querySelector(".fake-background-color");if(x)Object.assign(x.style,y);else{var P=document.createElement("div");P.classList.add("fake-background-color"),Object.assign(P.style,y),b.append(P)}if(_)Object.assign(_.style,h);else{var F=document.createElement("div");F.classList.add("fake-background"),Object.assign(F.style,h),b.append(F)}})}},{key:"initHeaderBackgroundColor",value:function(i){var o=this;i.forEach(function(a){var s;a.style.backgroundColor=o.headerBackgroundOptions.backgroundColor,(s=a.querySelector(".fake-background"))===null||s===void 0||s.remove()})}},{key:"initHeaderBackground",value:function(){var i=this.querySelectorAll("matrix-row-el[sticky]");this.headerBackgroundOptions=this.getBackgroundOptions([".question-respond-area",".qs-question-box",".page",".column","body"]),this.initHeaderBackgroundImage(i)}},{key:"_isHeaderImageBackground",value:function(){return!this.headerBackgroundOptions.backgroundImage||this.headerBackgroundOptions.backgroundImage==="none"}},{key:"renderElement",value:function(){var i=this,o=this.querySelectorAll("matrix-row-el:not([hidden])");this.initHeaderBackground(),this.resetAll(),this.evenOddLogic(o),this.hasAttribute("swap")&&requestAnimationFrame(function(){i.calcHeight(o,".label-left"),i.calcHeight(o,".label-right")});var a=this.querySelectorAll("span[slot=label-left] span[slot=label], span[slot=label-right] span[slot=label]"),s=fR(a).filter(function(m){return m==null?void 0:m.textContent.trim().length});if(this.noLabels=!s.length,o.forEach(function(m){if(!i.hasAttribute("bpl-matrix")&&!i.hasAttribute("rank-order")){var h=i.querySelectorAll("matrix-row-el:not([header])");if(h.length===1&&i.noLabels){if(m.setAttribute("no-labels",""),m.hasAttribute("header")){var v=i.querySelectorAll("range-grid-header-el");v.forEach(function(y){y.setAttribute("width-type","fixed")})}i.type==="accordion"&&(i.type="break")}}}),document.body.offsetWidth>this.maxWidth||this.type==="slide")requestAnimationFrame(function(){i.calcWidth(o,".label-left"),i.calcWidth(o,".label-right"),i.calcItemsWidth(o),o.length>0&&i.calcWidthGroup(o[0])}),o.forEach(function(m){m.hasAttribute("header")||m.expandForce()});else if(this.type==="accordion"){o.forEach(function(m){m.hasAttribute("header")||(m.hasExpanded=!0)});var l=!0,u=r.Registry.get("matrix");u&&u.forEach(function(m){m.expanded&&m!==i&&(l=!1)}),l&&(this.expanded=!0,this.initRowsAccordion(null,!1))}else this.type==="break"&&o.forEach(function(m){m.hasAttribute("header")||(m.hasExpanded=!1,m.expanded=!0,m.showItems())});this.hasAttribute("swap")&&this.calcItemsHeight(o);var c=this.querySelector("matrix-row-el:not([hidden]):not([header])");if(c&&requestAnimationFrame(function(){var m=[".label-left",".label-left",".expand"].reduce(function(v,y){return v+c.shadowRoot.querySelector(y).clientWidth},0),h=c.querySelector(".slider-value");h&&(m-=h.clientWidth),i.dispatchEvent(new CustomEvent("constant-sum-width",{composed:!0,bubbles:!0,detail:m}))}),!this.hasAttribute("slider")){var f=this.querySelector("matrix-row-el[header]");if(f){var p=f.querySelectorAll("html-raw-ui, .qs-matrix-option-text"),d=fR(p).filter(function(m){return m==null?void 0:m.textContent.trim().length});d.length||(f.setAttribute("hidden",""),this.querySelectorAll("matrix-row-el:not([hidden]):not([header])").forEach(function(m){m.querySelectorAll(".show-on-mobile").forEach(function(h){h.setAttribute("hidden","")})}))}}}},{key:"_stickyHeaderBehavior",value:function(i){var o=this,a=this,s=a.getBoundingClientRect(),l=s.top,u=l*-1;i.forEach(function(p){p.style.width=o.scrollWidth+"px"});var c=function(d){var m=a.offsetHeight-d.offsetHeight;u>=m?d.style.transform="translateY(".concat(m,"px)"):d.style.transform="translateY(".concat(u-2,"px)")},f=function(d){d.style.transform="translateY(0px)"};return function(p,d,m){i.forEach(function(h){l<=0?(c(h),p&&p(h)):(f(h),d&&d(h)),m&&m(h)})}}},{key:"stickyHeader",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,o=arguments.length>1?arguments[1]:void 0;document.documentElement.clientWidth<800||this._stickyHeaderBehavior(o)()}},{key:"calcItemsWidth",value:function(i){var o=this,a=[],s=[],l=0;i.forEach(function(c,f){var p,d,m=[],h;o.hasAttribute("slider")?h=c.querySelectorAll("matrix-scale-el:not([min]):not([header]):not(.show-on-mobile)"):h=c.querySelectorAll("matrix-scale-el:not([min]):not([hidden]):not(.show-on-mobile)"),c.hasAttribute("bulky")&&f===0&&((p=h[0])===null||p===void 0?void 0:p.getAttribute("scale-type"))!=="range"&&(h=[]),h.length>1&&c.hasAttribute("bulky")&&f!==1&&((d=h[0])===null||d===void 0?void 0:d.getAttribute("scale-type"))==="range"&&(h=[]);for(var v=0;v<h.length;v++){var y=h[v].getBoundingClientRect().width;s.length>v?y>s[v]&&(s[v]=y):s.push(y);for(var b=h[v].querySelectorAll("matrix-item-el:not([hidden])"),_=0;_<b.length;_++){var x=b[_].getBoundingClientRect().width,P=v*h.length+_;m.length>P?x>m[P]&&(m[P]=x):m.push(x)}a[v]=m,m=[]}}),i.forEach(function(c){for(var f=c.querySelectorAll("matrix-scale-el:not([min]):not(.show-on-mobile):not([swap])"),p=function(h){var v=f[h].getAttribute("scale-type")==="range";s[h]>0&&function(){f[h].style.width=s[h]+"px";for(var y=f[h].querySelectorAll("matrix-item-el:not([hidden])"),b=function(P){y[P].style.width=a[h][P]+"px";var F=y[P].querySelector("matrix-header-item-el"),S=F&&F.textContent.trim();if(!o.hasAttribute("swap")&&!o.hasAttribute("bulky")&&!o.hasAttribute("slider")){var k=F?F.querySelectorAll("html-raw-ui, .qs-matrix-option-text"):!1;k.length&&k.forEach(function(L){L.style.transform="skewX(-45deg)",L.style.padding="0 0 0 20px"})}if(F){var E=F.shadowRoot.querySelectorAll(".matrix-header-rotate");if(E.forEach(function(L){if(F.hasAttribute("rotate")){var Sr=h===0?2:0,de;(c.hasAttribute("sbs-matrix")&&P===1&&y.length<=2&&v||P===0&&y.length<2&&v)&&(de=100),L.style.transform="translate(".concat((v?de+30||75:a[h][P])+Sr,"px, 0px) rotate(-45deg) skewX(45deg)"),L.style.height=v?de?de+"px":"55px":Math.ceil(a[h][P]*Math.sin(45*Math.PI/180))+"px";var Wt=S.length<30?140:S.length*5;L.style.minWidth=Wt+"px",l=l<Wt?Wt:l,L.setAttribute("rotate","")}F.hasAttribute("highlight")&&L.setAttribute("highlight","")}),F.hasAttribute("highlight")){var j=F.shadowRoot.querySelectorAll(".triangle-up");j.forEach(function(L){L.setAttribute("highlight",""),F.hasAttribute("bulky")||(L.style.borderLeftWidth=a[h][P]/2-1+"px",L.style.borderRightWidth=a[h][P]/2-2+"px",L.style.borderBottomWidth=a[h][P]/2-2+"px")})}}},_=0;_<y.length;_++)b(_)}()},d=0;d<f.length;d++)p(d)});var u=this.querySelector("matrix-row-el[header]");u&&!this.hasAttribute("swap")&&!this.hasAttribute("bulky")&&!this.hasAttribute("slider")&&(u.style.height=l*Math.sin(45*.0175)+50+"px")}},{key:"calcItemsHeight",value:function(i){var o=this,a=[],s=[];i.forEach(function(l){for(var u=l.querySelectorAll("matrix-scale-el"),c=0;c<u.length;c++){var f=u[c].getBoundingClientRect().height;s.length>c?f>s[c]&&(s[c]=f):s.push(f);for(var p=u[c].querySelectorAll("matrix-item-el:not([hidden])"),d=0;d<p.length;d++){var m=p[d].getBoundingClientRect().height,h=c*u.length+d;a.length>h?m>a[h]&&(a[h]=m):a.push(m)}}}),i.forEach(function(l){for(var u=l.querySelectorAll("matrix-scale-el"),c=0;c<u.length;c++){o.hasAttribute("swap")||(u[c].style.height=s[c]+"px");for(var f=u[c].querySelectorAll("matrix-item-el:not([hidden])"),p=0;p<f.length;p++){var d=c*u.length+p;f[p].style.height=a[d]+"px"}}})}},{key:"evenOddLogic",value:function(i){var o=!1;i.forEach(function(a){a.hasAttribute("header")||(a.previousElementSibling&&a.previousElementSibling.tagName==="MATRIX-HEADER-GROUP-EL"&&(o=!1),o?(a.setAttribute("odd",""),a.querySelectorAll("matrix-scale-el").forEach(function(s){s.setAttribute("odd",""),a.hasAttribute("highlight")&&s.setAttribute("highlight","")})):(a.setAttribute("even",""),a.querySelectorAll("matrix-scale-el").forEach(function(s){s.setAttribute("even",""),a.hasAttribute("highlight")&&s.setAttribute("highlight","")})),o=!o)})}},{key:"calcWidth",value:function(i,o){var a=0;i.forEach(function(s){var l=s.shadowRoot.querySelector(o),u=l.getBoundingClientRect().width;u>a&&(a=u)}),a>0&&i.forEach(function(s){var l=s.shadowRoot.querySelector(o);l.style.width=Math.ceil(a)+"px";var u=s.querySelectorAll(".matrix-header-rotate");u.forEach(function(c){c.style.transform="translate(".concat(Math.ceil(a),"px, 2px) rotate(-45deg)")}),s.querySelectorAll("matrix-header-item-el").forEach(function(c){c.shadowRoot&&!c.hasAttribute("bulky")&&!c.hasAttribute("swap")&&o===".label-left"&&c.shadowRoot.querySelectorAll(".matrix-header-rotate").forEach(function(f){var p=parseInt(getComputedStyle(f,null).borderBottomWidth),d=2,m=Math.ceil(a-p-1);getComputedStyle(document.body).getPropertyValue("--matrix-first-column-width").trim()==="auto"&&(d=1),f.style.height=Math.ceil(Math.ceil(a)*Math.sin(45*Math.PI/180))+"px",f.style.transform="translate(".concat(m,"px, ").concat(d,"px) rotate(-45deg)"),f.setAttribute("rotate","")})})})}},{key:"calcWidthGroup",value:function(i){var o=0;i.querySelectorAll("matrix-scale-el").forEach(function(u){o+=u.getBoundingClientRect().width});var a=i.shadowRoot.querySelector(".label-left");o+=a.getBoundingClientRect().width;var s=i.shadowRoot.querySelector(".label-right");o+=s.getBoundingClientRect().width,o-=16;var l=this.querySelectorAll("matrix-header-group-el:not([hidden])");l.forEach(function(u){u.style.width=o+"px"})}},{key:"calcHeight",value:function(i,o){var a=0;i.forEach(function(s){var l=s.shadowRoot.querySelector(o),u=l.getBoundingClientRect().height;u>a&&(a=u)}),i.forEach(function(s){var l=s.shadowRoot.querySelector(o);l.style.height=Math.ceil(a)+"px"})}},{key:"resetWH",value:function(i,o){i.forEach(function(a){var s=a.shadowRoot.querySelectorAll(o);s.forEach(function(l){l.style.width="",l.style.height=""})})}},{key:"resetAll",value:function(){var i=this.querySelectorAll("matrix-row-el");i.forEach(function(o){o.hasAttribute("even")&&o.removeAttribute("even"),o.hasAttribute("odd")&&o.removeAttribute("odd"),o.querySelectorAll("matrix-scale-el").forEach(function(a){a.hasAttribute("even")&&a.removeAttribute("even"),a.hasAttribute("odd")&&a.removeAttribute("odd")})}),this.resetWH(i,".label-left"),this.resetWH(i,".label-right"),this.querySelectorAll("matrix-scale-el").forEach(function(o){o.style.width="",o.style.height=""}),this.querySelectorAll("matrix-item-el").forEach(function(o){o.style.width="",o.style.height=""}),i.forEach(function(o){if(o.hasAttribute("expanded")){o.removeAttribute("expanded");var a=o.querySelectorAll("matrix-item-el > simple-item-ui");a.forEach(function(s){s.hasAttribute("no-label")||s.setAttribute("no-label","")})}})}},{key:"getIndexNode",value:function(i,o){if(!(!i||!o)){var a=Array.prototype.slice.call(i);return a.indexOf(o)}}},{key:"getBackgroundOptions",value:function(i){var o={backgroundImage:"",backgroundColor:"",elementWidth:"",elementHeight:"",elementLeft:"",elementTop:"",elementOffsetTop:"",elementSelector:"",backgroundFirstProp:null},a=sZ(i),s;try{for(a.s();!(s=a.n()).done;){var l=s.value,u=this.composedClosest(l);if(u){var c=getComputedStyle(u,null),f=c.backgroundImage,p=c.backgroundColor;if(!o.backgroundColor&&!p.includes("rgba(0, 0, 0, 0)")&&(o.backgroundColor=p,o.backgroundFirstProp=o.backgroundFirstProp||"color"),!o.backgroundImage&&f.includes("url")){o.backgroundImage=f,o.backgroundFirstProp=o.backgroundFirstProp||"image";var d=u.getBoundingClientRect(),m=d.width,h=d.height,v=d.left,y=d.top;o={backgroundImage:o.backgroundImage,backgroundColor:o.backgroundColor,elementWidth:m,elementHeight:h,elementLeft:v,elementTop:y,elementOffsetTop:u.offsetTop,elementSelector:l,backgroundFirstProp:o.backgroundFirstProp}}}}}catch(b){a.e(b)}finally{a.f()}return o.backgroundColor=o.backgroundColor||"rgba(255, 255, 255, 1)",o}},{key:"_setElTransform",value:function(i,o,a){i.style.transform="translateX(".concat(o,"px) translateY(").concat(a,"px)")}},{key:"_setBGPosition",value:function(i,o){if(this.headerBackgroundOptions!==null){var a=this.offsetTop,s=this.offsetHeight,l=o.offsetHeight,u=document.documentElement.scrollTop||document.body.scrollTop,c=this.headerBackgroundOptions.elementSelector,f;if(c!=="body"){u>=a+s-l?this._setElTransform(i,this.scrollLeft,f):u>=a?(f=-u+a,this._setElTransform(i,this.scrollLeft,-u+a)):u<=a&&this._setElTransform(i,this.scrollLeft,0);return}u>=a+s-l?this._setElTransform(i,this.scrollLeft,u-s+l):u<=a?this._setElTransform(i,this.scrollLeft,u):u>=a&&this._setElTransform(i,this.scrollLeft,a+2)}}},{key:"initBackgroundPosition",value:function(i){var o=this;this._isHeaderImageBackground()||i.forEach(function(a){var s=a.querySelector(".fake-background");o._setBGPosition(s,a)})}},{key:"connectedCallback",value:function(){var i=this;if(Ts(Tn(r.prototype),"connectedCallback",this).call(this),this.hasAttribute("slider")&&this.querySelector("g-scale-ui[type=emotions]")){var o=this.querySelectorAll("range-grid-header-el"),a=this.querySelectorAll("range-grid-header-el .qs-slider-option-text:not(:first-child):not(:last-child)");a.forEach(function(c){c.remove()}),o.forEach(function(c){c.setAttribute("item-count",2),c.setAttribute("is-g-scale","")})}this._changedHandler=function(c){var f=i.querySelectorAll("matrix-row-el:not([hidden]):not([header])");i.indexRow=i.getIndexNode(f,c.target),!!c.detail&&i.type==="accordion"&&!i.hasAttribute("bpl-matrix")&&i.initRowsAccordion(c.target)},this.addEventListener("changed-row",this._changedHandler),this.mutationObserver=new MutationObserver(function(){i.renderElement(),requestAnimationFrame(function(){setTimeout(function(){var c=i.querySelectorAll("matrix-row-el[sticky]");i.initBackgroundPosition(c),i.initHeaderBackground()},200)})}),this.mutationObserver.observe(document.body,{attributes:!0});var s;window.TEST_PAUSE_PROMISE=new Promise(function(c){s=c});var l;this._resizeHandler=function(c,f){!l||(i.initBackgroundPosition(l),i.initHeaderBackground(),!(i._oldInnerWidth===window.innerWidth&&!f)&&(i._oldInnerWidth=window.innerWidth,i.renderElement(),l.length&&i.stickyHeader(c,l)))},this._scrollHandler=function(c){!l||(l.length&&i.stickyHeader(c,l),i.initBackgroundPosition(l))},window.addEventListener("resize",this._resizeHandler),window.addEventListener("scroll",this._scrollHandler),this.addEventListener("scroll",this._scrollHandler),document.body.addEventListener("scroll",this._scrollHandler),me(function(){requestAnimationFrame(function(){i.renderElement(),l=i.querySelectorAll("matrix-row-el[sticky]"),l.length&&i.stickyHeader(null,l),i.initBackgroundPosition(l);var c=i.querySelectorAll("matrix-scale-el input-ui, matrix-scale-el date-input-ui, matrix-scale-el respond-ui[type=text], matrix-scale-el respond-ui[type=number]"),f=i.querySelectorAll("matrix-row-el, matrix-scale-el, matrix-item-el, matrix-text-above-el, matrix-header-item-el");f.forEach(function(p){p.type?p.type=i.type:p.setAttribute("type",i.type),i.hasAttribute("swap")&&p.setAttribute("swap",""),i.hasAttribute("slider")&&p.setAttribute("slider",""),i.hasAttribute("grow")&&p.setAttribute("grow",""),i.hasAttribute("bulky")&&p.setAttribute("bulky",""),i.hasAttribute("no-border")&&p.setAttribute("no-border",""),i.hasAttribute("sbs-matrix")&&p.setAttribute("sbs-matrix",""),i.hasAttribute("bpl-matrix")&&p.setAttribute("bpl-matrix",""),i.widthType&&p.setAttribute("width-type",i.widthType),c.length&&p.setAttribute("input","")}),requestAnimationFrame(function(){setTimeout(function(){i._resizeHandler(null,!0)})}),requestAnimationFrame(function(){i._resizeHandler(null,!0),i._scrollHandler(),window.TEST_MODE&&requestAnimationFrame(function(){setTimeout(function(){i._resizeHandler(null,!0),i._scrollHandler(),requestAnimationFrame(function(){s(),window.TEST_PAUSE_PROMISE=null})},2e3)})})})});var u=r.Registry.get("matrix");u||(u=new Set,r.Registry.set("matrix",u)),u.add(this)}},{key:"disconnectedCallback",value:function(){Ts(Tn(r.prototype),"disconnectedCallback",this).call(this),window.removeEventListener("resize",this._resizeHandler),window.removeEventListener("scroll",this._scrollHandler),this.removeEventListener("scroll",this._scrollHandler),document.body.removeEventListener("scroll",this._scrollHandler),this.mutationObserver.disconnect();var i=r.Registry.get("matrix");!i||i.delete(this)}}]),r}(O);Kb(so,"is","matrix-ui");Kb(so,"template",g([cR]));Kb(so,"properties",{type:{type:String,value:"break",reflectToAttribute:!0},maxWidth:{type:Number,value:800},widthType:{type:String},indexRow:{value:0},noLabels:{type:Boolean,value:!1,reflectToAttribute:!0},expanded:{type:Boolean,value:!1},bulky:{type:Boolean,reflectToAttribute:!0},headerBackgroundOptions:{type:Object}});so.Registry=new Map;customElements.define(so.is,so);var hR='<style>\n	:host {\n		display: flex;\n		justify-content: center;\n		min-width: calc(120px / 2 + 16px);\n		box-sizing: border-box;\n	}\n\n	::slotted(simple-item-ui[input]) {\n		width: 180px;\n	}\n\n	:host([even]) {\n		background: rgba(96, 125, 139, 0.1);\n	}\n\n	:host([respond-type=range][bulky][header]) {\n		flex-grow: 1;\n	}\n\n	:host([grow]),\n	:host([width-type=wide]) {\n		flex-grow: 1;\n	}\n\n	:host([no-border]) {\n		border: 0;\n	}\n\n	:host([highlight]) {\n		background-color: rgba(96, 125, 139, 0.25);\n	}\n\n	:host([bulky]) {\n		min-width: 120px;\n	}\n\n	:host([is-ie][respond-type=text]),\n	:host([is-ie][respond-type=date]),\n	:host([is-ie][respond-type=number]) {\n		min-width: 180px;\n	}\n\n\n	@media (max-width: 800px) {\n		:host([type=break]),\n		:host([type=accordion]) {\n			border: 0;\n			justify-content: flex-start;\n			min-width: 0;\n		}\n\n		:host([type=break]) ::slotted(simple-item-ui),\n		:host([type=accordion]) ::slotted(simple-item-ui) {\n			justify-content: flex-start;\n			align-items: flex-start;\n		}\n\n		:host([type=accordion]) {\n			flex-shrink: 0;\n		}\n	}\n\n	@media (min-width: 699px) {\n		:host([bulky]:not([input])) {\n			width: calc(320px / 4);\n		}\n\n		:host([bulky][input]) {\n			width: calc(320px / 2);\n		}\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot></slot>';function Yb(t){return Yb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yb(t)}function mR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _Z(t,e,r){return e&&mR(t.prototype,e),r&&mR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xb(t,e)}function Xb(t,e){return Xb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Xb(t,e)}function xZ(t){var e=SZ();return function(){var n=_f(t),i;if(e){var o=_f(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return OZ(this,i)}}function OZ(t,e){if(e&&(Yb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PZ(t)}function PZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _f(t){return _f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_f(t)}function wf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lo=function(t){FZ(r,t);var e=xZ(r);function r(){return wZ(this,r),e.apply(this,arguments)}return _Z(r)}(ce(O));wf(lo,"template",g([hR]));wf(lo,"is","matrix-item-el");wf(lo,"sharedStyles",["survey"]);wf(lo,"properties",{type:{type:String,reflectToAttribute:!0}});customElements.define(lo.is,lo);var yR='<style>\n	:host {\n		display: block;\n		width: 100%;\n	}\n\n	.matrix-header-item {\n		min-height: 34px;\n		background-color: inherit;\n		background-image: none;\n		font-family: inherit;\n		font-weight: initial;\n		font-style: initial;\n		font-size: 13px;\n		color: inherit;\n	}\n\n	.matrix-header-rotate[highlight] {\n		background-color: rgba(96, 125, 139, 0.25);\n	}\n\n	:host([bulky]) {\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		justify-content: center;\n	}\n\n	:host([rotate]) {\n		display: flex;\n		min-height: calc(120px + 16px);\n	}\n\n	:host([bulky]) .matrix-header-item {\n		display: flex;\n		text-align: center;\n		width: 100%;\n		flex-grow: 1;\n	}\n\n	:host([rotate]) .matrix-header-item {\n		bottom: 0;\n		left: 0;\n		width: calc(120px / 2 + 2px);\n		position: relative;\n	}\n\n	:host([bulky]) .matrix-header-rotate {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		width: 100%;\n		padding: 8px;\n	}\n\n	:host([rotate]) .matrix-header-rotate {\n		height: 44px;\n		box-sizing: border-box;\n		display: flex;\n		align-items: center;\n		padding: 2px;\n		min-width: 120px;\n		position: absolute;\n		bottom: 0;\n		left: calc(1px * 1.4);\n		transform: translate(64px, 0) rotate(-45deg);\n		transform-origin: bottom left;\n	}\n\n	.matrix-header-rotate[rotate] {\n		border-bottom: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([swap]) .matrix-header-rotate {\n		border-bottom-width: 0;\n	}\n\n	@media screen and (max-width: 800px) {\n		:host([type=break]),\n		:host([type=accordion]) {\n			border: 0;\n			justify-content: flex-start;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="matrix-header-item">\n	<span class="matrix-header-rotate">\n		<slot></slot>\n	</span>\n</div>';function Qb(t){return Qb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qb(t)}function vR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function EZ(t,e,r){return e&&vR(t.prototype,e),r&&vR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function TZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jb(t,e)}function Jb(t,e){return Jb=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Jb(t,e)}function RZ(t){var e=IZ();return function(){var n=Ff(t),i;if(e){var o=Ff(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return DZ(this,i)}}function DZ(t,e){if(e&&(Qb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CZ(t)}function CZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ff(t){return Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(t)}function xf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var uo=function(t){AZ(r,t);var e=RZ(r);function r(){return TZ(this,r),e.apply(this,arguments)}return EZ(r)}(O);xf(uo,"is","matrix-header-item-el");xf(uo,"template",g([yR]));xf(uo,"sharedStyles",["survey"]);xf(uo,"properties",{highlight:{type:Boolean,reflectToAttribute:!0},rotate:{type:Boolean,reflectToAttribute:!0}});customElements.define(uo.is,uo);var gR='<style>\n	:host {\n		display: block;\n		background-color: rgba(96, 125, 139, 0.25);\n		padding: 8px;\n		font-size: 16px;\n		min-height: 16px;\n		min-width: 48px;\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot></slot>';function Zb(t){return Zb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zb(t)}function bR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function BZ(t,e,r){return e&&bR(t.prototype,e),r&&bR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function MZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&e_(t,e)}function e_(t,e){return e_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},e_(t,e)}function NZ(t){var e=HZ();return function(){var n=Of(t),i;if(e){var o=Of(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qZ(this,i)}}function qZ(t,e){if(e&&(Zb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zZ(t)}function zZ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function HZ(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Of(t){return Of=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Of(t)}function t_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var As=function(t){LZ(r,t);var e=NZ(r);function r(){return MZ(this,r),e.apply(this,arguments)}return BZ(r)}(O);t_(As,"is","matrix-header-group-el");t_(As,"template",g([gR]));t_(As,"sharedStyles",["survey"]);customElements.define(As.is,As);var _R='<style>\n	:host {\n		display: flex;\n		flex-direction: row;\n		align-items: stretch;\n		position: relative;\n		transition: height 0.2s;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	:host([swap]) {\n		flex-direction: column;\n	}\n\n	:host([has-error])::after {\n		content: "";\n		position: absolute;\n		display: block;\n		width: 2px;\n		top: 3px;\n		bottom: 3px;\n		left: 0;\n		background-color: #d8252b;\n	}\n\n	:host([header]) {\n		overflow: visible;\n	}\n\n	:host([header][sticky]) {\n		z-index: 2000;\n		width: 100%;\n		transition: -webkit-backdrop-filter .2s ease;\n		transition: backdrop-filter .2s ease;\n		transition: backdrop-filter .2s ease, -webkit-backdrop-filter .2s ease;\n	}\n\n	:host([header][sticky]) .expand {\n		background-color: inherit;\n	}\n\n	:host([header]) .label-left {\n		align-items: flex-end;\n	}\n\n	.label-left {\n		display: flex;\n		align-items: center;\n		width: auto;\n		min-width: 120px;\n		padding: 2px;\n		flex-shrink: 0;\n		box-sizing: border-box;\n	}\n\n	:host([slider]) .label-left {\n		width: auto;\n		max-width: 320px;\n	}\n\n	:host([width-type=smaller]) .label-left,\n	:host([width-type=small]) .label-left {\n		min-width: calc(120px / 2);\n	}\n\n	.label-right {\n		display: none;\n		flex-shrink: 0;\n	}\n\n	.label {\n		display: none;\n	}\n\n	:host([bpl-matrix]) .label-right {\n		display: block;\n		min-width: 120px;\n		width: auto;\n		padding: 2px;\n		text-align: left;\n		padding-left: 8px;\n	}\n\n	:host([width-type=smaller]) .label-right,\n	:host([width-type=small]) .label-right {\n		min-width: calc(120px / 2);\n	}\n\n	:host([text-above]) .label-left,\n	:host([text-above]) .label-right {\n		display: none;\n	}\n\n	.expand {\n		display: none;\n		flex-direction: row;\n	}\n\n	:host([grow]) .expand {\n		flex-grow: 1;\n	}\n\n	:host([swap]) .expand {\n		flex-direction: column;\n	}\n\n	:host([width-type=small]) .expand {\n		min-width: calc(960px / 4);\n	}\n\n	:host([width-type=medium]) .expand {\n		min-width: calc(960px / 2);\n	}\n\n	:host([width-type=wide]) .expand {\n		flex-grow: 1;\n	}\n\n	/* slider */\n	:host([slider][width-type=small]) .expand {\n		width: calc(960px / 3);\n	}\n\n	:host([slider][width-type=medium]) .expand {\n		width: calc(960px / 2);\n	}\n\n	:host([slider][width-type=wide]) .expand {\n		max-width: 600px;\n	}\n\n	:host([header]) .expand,\n	:host([expanded]) .expand {\n		display: flex;\n	}\n\n	:host([bpl-matrix]:not([expanded])) .expand {\n		display: flex;\n	}\n\n	:host([bpl-matrix]:not([expanded])) .expand ::slotted(matrix-scale-el) {\n		flex-direction: row;\n	}\n\n	:host .expand ::slotted(.sub-header) {\n		display: none;\n		padding: 2px;\n	}\n\n	:host([swap]) .expand ::slotted(matrix-scale-el) {\n		border-bottom: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([swap]) .label-left {\n		border-bottom: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([type=slide]:not([swap]):not([no-border]):not([header])) .expand ::slotted(matrix-scale-el),\n	:host([type=slide]:not([swap]):not([no-border])[header][bulky]) .expand ::slotted(matrix-scale-el) {\n		border-right: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([type=slide]:not([swap]):not([no-border]):not([header])) .expand ::slotted(matrix-scale-el:first-child),\n	:host([type=slide]:not([swap]):not([no-border])[header][bulky]) .expand ::slotted(matrix-scale-el:first-child) {\n		border-left: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([no-labels]) .label-left,\n	:host([no-labels]) .label-right {\n		display: none;\n	}\n\n	@media (min-width: 800px) {\n		:host(:not([swap]):not([slider])) .label-left {\n			max-width: 320px;\n		}\n\n		:host(:not([swap])[wide-label]) .label-left {\n			max-width: calc(320px * 2);\n		}\n\n		:host([bpl-matrix]:not([slider])) .label-left,\n		:host([bpl-matrix]:not([slider])) .label-right {\n			max-width: 320px;\n		}\n\n		:host(:not([swap]):not([no-border]):not([header])) .expand ::slotted(matrix-scale-el),\n		:host(:not([swap]):not([no-border])[header][bulky]) .expand ::slotted(matrix-scale-el) {\n			border-right: 1px solid rgba(96, 125, 139, 0.1);\n		}\n\n		:host(:not([swap]):not([no-border]):not([header])) .expand ::slotted(matrix-scale-el:first-of-type),\n		:host(:not([swap]):not([no-border])[header][bulky]) .expand ::slotted(matrix-scale-el:first-of-type) {\n			border-left: 1px solid rgba(96, 125, 139, 0.1);\n		}\n\n		:host([swap]) {\n			width: auto;\n		}\n	}\n\n	:host(:not([no-zebra])[odd]) .label-right,\n	:host(:not([no-zebra])[odd]) .label-left,\n	:host(:not([no-zebra])[odd]) .expand ::slotted(matrix-scale-el),\n	:host(:not([no-zebra])[odd]) .expand ::slotted(div) {\n		background-color: rgba(0, 0, 0, 0);\n	}\n\n	:host(:not([no-zebra])[even]) .label-right,\n	:host(:not([no-zebra])[even]) .label-left,\n	:host(:not([no-zebra])[even]) .expand ::slotted(matrix-scale-el),\n	:host(:not([no-zebra])[even]) .expand ::slotted(div) {\n		background-color: rgba(96, 125, 139, 0.1);\n	}\n\n	:host([highlight]) .label-right,\n	:host([highlight]) .label-left,\n	:host([highlight]) .expand ::slotted(matrix-scale-el),\n	:host([highlight]) .expand ::slotted(div) {\n		background-color: rgba(96, 125, 139, 0.25) !important;\n	}\n\n	:host([header]:not([swap])) .label-left {\n		padding-bottom: 0;\n	}\n\n	:host([header]) .label-right,\n	:host([header]) .label-left,\n	:host([header]) .expand ::slotted(matrix-scale-el) {\n		background-color: inherit;\n		background-image: none;\n	}\n\n	.chevron {\n		display: none;\n		margin-left: auto;\n		font-size: 30px;\n	}\n\n	/* space for tool labels to avoid horizontal scroll */\n	@media (min-width: 800px) {\n		:host([slider][width-type=wide]) .expand {\n			margin-right: 120px;\n		}\n	}\n\n	@media screen and (max-width: 800px) {\n		.label-left {\n			width: auto;\n		}\n\n		:host([slider]) .label-left {\n			max-width: unset;\n		}\n\n		:host([header][type=break]),\n		:host([header][type=accordion]) {\n			display: none;\n		}\n\n		:host([type=accordion]) {\n			overflow: hidden;\n		}\n\n		:host([slider]),\n		:host([type=break]),\n		:host([type=accordion]) {\n			flex-direction: column;\n		}\n\n		:host([odd][type=break]:not([slider])),\n		:host([odd][type=accordion]:not([slider])) {\n			border-top: 1px solid;\n			border-bottom: 1px solid;\n		}\n\n		:host([type=break]) .expand ::slotted(.sub-header),\n		:host([type=accordion]) .expand ::slotted(.sub-header) {\n			display: block;\n		}\n\n		:host([slider]) .label-left,\n		:host([type=break]) .label-left,\n		:host([type=accordion]) .label-left {\n			min-height: 34px;\n			border: 0;\n			text-align: left;\n			padding: 2px;\n			flex-shrink: 0;\n		}\n\n		:host([type=accordion]) .label-right,\n		:host([type=accordion]) .label-left {\n			cursor: pointer;\n		}\n\n		:host(:not([swap])[bulky]) .label-left {\n			border-right: 0;\n		}\n\n		:host([width-type=small]) .label-left {\n			width: calc(960px / 4);\n			box-sizing: border-box;\n		}\n\n		:host(:not([swap]):not([bulky]):not([header])) .label-left {\n			border-right: 0;\n		}\n\n		:host([slider]) .label-right,\n		:host([type=break]) .label-right,\n		:host([type=accordion]) .label-right {\n			min-height: 34px;\n			border: 0;\n			text-align: left;\n			padding: 2px;\n		}\n\n		:host([slider]) .expand {\n			flex-wrap: wrap;\n		}\n\n		:host(:not([bpl-matrix])[type=accordion]) .label {\n			display: block;\n			margin-left: 8px;\n			font-size: 12px;\n			padding-bottom: 2px;\n		}\n\n		:host([type=break]) .expand,\n		:host([type=accordion]) .expand {\n			flex-direction: column;\n		}\n\n		:host([width-type=medium]) .expand {\n			min-width: 100%;\n		}\n\n		:host([type=break][text-above]) .label-left,\n		:host([type=accordion][text-above]) .label-left,\n		:host([type=break][text-above]) .label-right,\n		:host([type=accordion][text-above]) .label-right {\n			display: block;\n		}\n\n		:host([slider][highlight]) .expand ::slotted(matrix-scale-el) {\n			background: rgba(96, 125, 139, 0.25) !important;\n		}\n\n		:host(:not([swap]):not([no-border]):not([header])[type=break]) .expand ::slotted(matrix-scale-el),\n		:host(:not([swap]):not([no-border])[header][bulky][type=accordion]) .expand ::slotted(matrix-scale-el) {\n			border-right-width: 0;\n			border-left-width: 0;\n		}\n\n		:host([swap]) .expand ::slotted(matrix-scale-el) {\n			border-bottom-width: 0;\n		}\n\n		:host([swap]) .label-left {\n			border-bottom-width: 0;\n		}\n\n		:host([type=accordion]) .chevron {\n			display: inline-flex;\n		}\n\n		:host([type="slide"]) {\n			overflow: visible;\n		}\n\n		.label-left > div {\n			width: 100% !important;\n		}\n\n		:host([slider][width-type=medium]) .expand,\n		:host([slider][width-type=wide]) .expand {\n			width: 100%;\n			max-width: none;\n		}\n\n		:host([slider][width-type=small]) .expand,\n		:host([width-type=small]) .label-left {\n			width: 100%;\n			max-width: none;\n		}\n	}\n\n	/* IE11 */\n	.label-left > div {\n		width: inherit;\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="label-left" on-mousedown="_expandMousedown">\n	<div>\n		<slot name="label-left"></slot>\n		<div id="label" class="label"></div>\n	</div>\n	<icon-ui class="chevron" icon="[[ddIcon]]"></icon-ui>\n</div>\n<span class="expand">\n	<slot></slot>\n</span>\n<div class="label-right" on-mousedown="_expandMousedown">\n	<slot name="label-right"></slot>\n</div>';function r_(t){return r_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r_(t)}function wR(t){return $Z(t)||GZ(t)||WZ(t)||VZ()}function VZ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function WZ(t,e){if(!!t){if(typeof t=="string")return n_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n_(t,e)}}function GZ(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function $Z(t){if(Array.isArray(t))return n_(t)}function n_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function FR(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function KZ(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){FR(o,n,i,a,s,"next",l)}function s(l){FR(o,n,i,a,s,"throw",l)}a(void 0)})}}function YZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function XZ(t,e,r){return e&&xR(t.prototype,e),r&&xR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Rs(){return typeof Reflect!="undefined"&&Reflect.get?Rs=Reflect.get:Rs=function(e,r,n){var i=QZ(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Rs.apply(this,arguments)}function QZ(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=An(t),t!==null););return t}function JZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i_(t,e)}function i_(t,e){return i_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},i_(t,e)}function ZZ(t){var e=ree();return function(){var n=An(t),i;if(e){var o=An(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return eee(this,i)}}function eee(t,e){if(e&&(r_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tee(t)}function tee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ree(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},An(t)}function Pf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Rn=function(t){JZ(r,t);var e=ZZ(r);function r(){return YZ(this,r),e.apply(this,arguments)}return XZ(r,[{key:"_observerExpanded",value:function(){var i=this.shadowRoot.querySelector("slot[name=label-left]");if(!(!i||!i.assignedNodes()[0])){var o=i.assignedNodes()[0].querySelector("input-ui");o&&(this.expanded?(o.theme="survey",o.readonly=!1,o.disabled=!1,o.parentNode.style.display="flex"):o.inputValue&&o.inputValue.trim()?(o.theme="onlyVal",o.readonly=!0,o.disabled=!0,o.parentNode.style.display="flex"):o.parentNode.style.display="none")}}},{key:"_getIcon",value:function(i){return i?"chevron-up":"chevron-down"}},{key:"expandForce",value:function(){this.hasExpanded=!1,this.expanded=!0,this.hideItems()}},{key:"expand",value:function(){this.expanded=!0,this.showItems()}},{key:"collspan",value:function(){this.expanded=!1,this.hideItems()}},{key:"expandVis",value:function(){var n=KZ(regeneratorRuntime.mark(function o(){var a=this,s,l,u,c,f=arguments;return regeneratorRuntime.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(s=f.length>0&&f[0]!==void 0?f[0]:!0,this.hasExpanded){d.next=3;break}return d.abrupt("return");case 3:if(!this.expanded){d.next=15;break}if(this.style.height="",this.collspan(),l=this.scrollHeight,this.expand(),this.collspan(),d.t0=s,!d.t0){d.next=13;break}return d.next=13,uh(this,l);case 13:d.next=25;break;case 15:if(this.style.height="",this.expand(),u=this.scrollHeight,this.collspan(),s&&uh(this,u),this.expand(),c=r.Registry.get(this.tag),c){d.next=24;break}return d.abrupt("return");case 24:c.forEach(function(m){m.expanded&&m!==a&&m.expandVis(!1)});case 25:case"end":return d.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"hideItems",value:function(){var i=this.querySelector("div > range-grid-header-el");i&&!i.hasAttribute("hidden")&&i.setAttribute("hidden","");var o=this.querySelectorAll("matrix-item-el > simple-item-ui");o.forEach(function(s){s.hasAttribute("no-label")||s.setAttribute("no-label","")});var a=this.querySelector('[slot="label-right"] > simple-item-ui');a&&!a.hasAttribute("right")&&i&&a.setAttribute("right","")}},{key:"showItems",value:function(){var i=this.querySelector("div > range-grid-header-el");i&&i.hasAttribute("hidden")&&i.removeAttribute("hidden");var o=this.querySelectorAll("matrix-item-el > simple-item-ui");o.forEach(function(s){s.hasAttribute("no-label")&&s.removeAttribute("no-label")});var a=this.querySelector('[slot="label-right"] > simple-item-ui');a&&a.hasAttribute("right")&&!i&&a.removeAttribute("right")}},{key:"_expandMousedown",value:function(i){if(i.target.matches("input-ui")&&i.target.getAttribute("theme")!=="onlyVal")return!1;this.type==="accordion"&&this.expandVis()}},{key:"_getSubHeader",value:function(i){var o=i.previousElementSibling;return o===null?null:o!=null&&o.classList.contains("sub-header")?o:this._getSubHeader(o)}},{key:"_getScaleLabel",value:function(i){var o=this._getSubHeader(i);return o?"<b>".concat(o==null?void 0:o.textContent.trim(),":</b>"):""}},{key:"_getLabelValue",value:function(){var i=this,o=this.querySelectorAll("matrix-scale-el"),a="";return o.forEach(function(s){var l,u=(l=s.querySelector("matrix-item-el[respond-type]"))===null||l===void 0?void 0:l.getAttribute("respond-type"),c=s.querySelector("range-input-ui");if(u==="radio"){var f=s.querySelector("simple-item-ui[checked]");f&&(a+="<div>".concat(i._getScaleLabel(s)," "),a+="".concat(f.getAttribute("aria-label"),"</div>"))}else if(u==="checkbox"){var p=s.querySelectorAll("simple-item-ui[checked]");p.length&&(a+="<div>".concat(i._getScaleLabel(s)," "),p.forEach(function(h,v){a+="".concat(h.getAttribute("aria-label")).concat(v!==p.length-1?", ":"</div>")}))}else if(u==="text"||u==="number"||u==="date"){var d=u==="date"?"date-input-ui[input-value]":"input-ui[input-value]",m=wR(s.querySelectorAll(d)).filter(function(h){return h.inputValue.trim()});m.length&&(a+="<div>".concat(i._getScaleLabel(s)," "),m.forEach(function(h,v){h.inputValue.trim()&&(a+="".concat(h.getAttribute("aria-label")," - ").concat(h.getAttribute("input-value").trim()).concat(v!==m.length-1?", ":"</div>"))}))}else c&&c.value&&(a+="<div>".concat(i._getScaleLabel(s)," "),a+="".concat(c.value,"</div>"))}),a}},{key:"connectedCallback",value:function(){var i=this;Rs(An(r.prototype),"connectedCallback",this).call(this),me(function(){requestAnimationFrame(function(){var a=i.querySelectorAll("matrix-scale-el, matrix-item-el"),s=i.querySelector("[slot=label-left] simple-item-ui"),l=s&&s.querySelector("input-ui"),u=i.querySelector("span[slot=error]");i.valid=!1;var c=i.querySelectorAll("simple-item-ui span[slot=control] radio-button-ui, simple-item-ui span[slot=control] checkbox-ui");if(c.length||(c=i.querySelectorAll("simple-item-ui span[slot=control] input-ui")),c.length||(c=i.querySelectorAll("range-input-ui")),c.length||(c=i.querySelectorAll("g-scale-ui")),!c.length){var f=i.querySelectorAll("respond-ui");c=f.length&&wR(f).map(function(p){return p.shadowRoot.querySelector("date-input-ui")||p.shadowRoot.querySelector("radio-button-ui")})}c.length&&c.forEach(function(p){!p||!i.valid&&(p.checked||!!p.inputValue||p.matches("range-input-ui")&&!!p.value||p.matches("g-scale-ui")&&!!p.value)&&(i.valid=!0)}),i._otherInputHandler=function(p){var d=p.target.inputValue;u&&!!d&&(u.innerHTML=""),i.valid&&!!d&&i.removeAttribute("has-error")},i._changedHandler=function(p){i.valid=!1,l?l&&!!l.inputValue&&i.removeAttribute("has-error"):i.removeAttribute("has-error"),i.type==="accordion"&&!(i.hasAttribute("bpl-matrix")||i.hasAttribute("sbs-matrix"))&&(i.$.label.innerHTML=i._getLabelValue(),i.valid=!!p.detail,i.dispatchEvent(new CustomEvent("changed-row",{composed:!0,bubbles:!0,detail:p.detail})))},a.forEach(function(p){if(i.hasAttribute("header")&&p.setAttribute("header",""),p.matches("matrix-scale-el")){var d=p.querySelectorAll("simple-item-ui radio-button-ui");d.forEach(function(m){if(m.checked){var h=m.closest("simple-item-ui"),v=h&&h.querySelector('[slot="label"]');i.$.label.innerHTML=v.textContent}})}}),l&&l.addEventListener("validate",i._otherInputHandler),i.addEventListener("changed-label",i._changedHandler),i.getAttribute("type")==="accordion"&&i.hideItems()});var o=r.Registry.get(i.tag);o||(o=new Set,r.Registry.set(i.tag,o)),o.add(i)})}},{key:"disconnectedCallback",value:function(){Rs(An(r.prototype),"disconnectedCallback",this).call(this);var i=r.Registry.get(this.tag);!i||i.delete(this)}}]),r}(O);Pf(Rn,"is","matrix-row-el");Pf(Rn,"template",g([_R]));Pf(Rn,"sharedStyles",["survey"]);Pf(Rn,"properties",{type:{type:String,value:"break",reflectToAttribute:!0},expanded:{value:!1,reflectToAttribute:!0,observer:"_observerExpanded"},highlight:{value:!1,reflectToAttribute:!0},maxWidth:{type:Number,value:800},ddIcon:{type:String,computed:"_getIcon(expanded)"},hasExpanded:{value:!1},valid:{type:Boolean,reflectToAttribute:!0,value:!1},sticky:{type:String,reflectToAttribute:!0}});Rn.Registry=new Map;customElements.define(Rn.is,Rn);var OR='<style>\n	:host {\n		display: flex;\n		flex-direction: row;\n		align-items: stretch;\n		box-sizing: border-box;\n	}\n\n	:host(:not([min]):not([auto])) {\n		flex-grow: 1;\n	}\n\n	:host([scale-type=range][bulky][header]) {\n		flex-grow: 1;\n	}\n\n	:host([bulky][list-header]) {\n		padding: 8px;\n	}\n\n	:host([swap]) {\n		flex-direction: column;\n	}\n\n	:host(:not([swap])) ::slotted(matrix-item-el) {\n		border-left: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([swap]) ::slotted(matrix-item-el) {\n		border-bottom: 1px solid rgba(96, 125, 139, 0.1);\n	}\n\n	:host([header]:not([bulky])) ::slotted(matrix-item-el),\n	:host(:not([swap])) ::slotted(matrix-item-el:first-of-type) {\n		border-left: 0;\n	}\n\n	:host([swap]) ::slotted(matrix-item-el:last-child) {\n		border-bottom: 0;\n	}\n\n	::slotted(.show-on-mobile) {\n		display: none;\n	}\n\n	:host([is-not-applicable]) {\n		justify-content: center;\n	}\n\n	:host([slider][header]) {\n		min-width: 0;\n	}\n\n	@media screen and (max-width: 800px) {\n		:host([type=break]),\n		:host([type=accordion]) {\n			flex-direction: column;\n			align-items: stretch;\n			padding: 2px;\n		}\n\n		:host([type=break]:not([header])),\n		:host([type=accordion]:not([header])) {\n			border-right: 0;\n		}\n\n		:host([type=break]) ::slotted(matrix-item-el),\n		:host([type=accordion]) ::slotted(matrix-item-el) {\n			border: 0;\n		}\n\n		:host([slider]) {\n			width: 100%;\n		}\n\n		:host([type=break][swap]:not([header])) ::slotted(matrix-item-el),\n		:host([type=accordion][swap]:not([header])) ::slotted(matrix-item-el) {\n			border-bottom: 0;\n		}\n\n		:host([type=break][swap]:not([header])) ::slotted(matrix-item-el:first-child),\n		:host([type=accordion][swap]:not([header])) ::slotted(matrix-item-el:first-child) {\n			border-top: 0;\n		}\n\n		:host([type=accordion]) {\n			overflow: hidden;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<slot></slot>';function o_(t){return o_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o_(t)}function iee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function oee(t,e,r){return e&&PR(t.prototype,e),r&&PR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sf(){return typeof Reflect!="undefined"&&Reflect.get?Sf=Reflect.get:Sf=function(e,r,n){var i=aee(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Sf.apply(this,arguments)}function aee(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=co(t),t!==null););return t}function see(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a_(t,e)}function a_(t,e){return a_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},a_(t,e)}function lee(t){var e=fee();return function(){var n=co(t),i;if(e){var o=co(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return uee(this,i)}}function uee(t,e){if(e&&(o_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cee(t)}function cee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function co(t){return co=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},co(t)}function kf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fo=function(t){see(r,t);var e=lee(r);function r(){return iee(this,r),e.apply(this,arguments)}return oee(r,[{key:"getLabel",value:function(i){var o=i.composedClosest("simple-item-ui"),a=o==null?void 0:o.querySelector('[slot="label"]'),s="";if(a&&(s=a.textContent),s)this.dispatchEvent(new CustomEvent("changed-label",{composed:!0,bubbles:!0,detail:s}));else{var l=0,u=this.querySelectorAll("radio-button-ui");for(l=0;l<u.length;l++)if(u[l]===i){this.dispatchEvent(new CustomEvent("changed-label",{composed:!0,bubbles:!0,detail:(l+1).toString()}));break}}}},{key:"ready",value:function(){var i=this;Sf(co(r.prototype),"ready",this).call(this),this._checkedHandler=function(a){a.target.hasAttribute("checked")?i.getLabel(a.target):i.dispatchEvent(new CustomEvent("changed-label",{composed:!0,bubbles:!0}))};var o=function(){i.dispatchEvent(new CustomEvent("changed-label",{composed:!0,bubbles:!0}))};this.addEventListener("radio-checked",this._checkedHandler),this.addEventListener("checkbox-checked",this._checkedHandler),this.addEventListener("validate",o),this.addEventListener("range-changed",o),this.addEventListener("g-scale-changed",o),this.addEventListener("calendar-confirm",o)}}]),r}(O);kf(fo,"is","matrix-scale-el");kf(fo,"template",g([OR]));kf(fo,"sharedStyles",["survey"]);kf(fo,"properties",{type:{type:String,reflectToAttribute:!0},scaleType:{type:String,reflectToAttribute:!0}});customElements.define(fo.is,fo);var SR="<style>\n	:host {\n		display: flex;\n		flex-direction: row;\n		justify-content: space-between;\n		flex-grow: 1;\n	}\n\n	@media (max-width: 800px) {\n		:host([type=break]),\n		:host([type=accordion]) {\n			display: none;\n		}\n	}\n</style>\n\n<slot></slot>";function s_(t){return s_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s_(t)}function kR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function dee(t,e,r){return e&&kR(t.prototype,e),r&&kR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l_(t,e)}function l_(t,e){return l_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},l_(t,e)}function yee(t){var e=bee();return function(){var n=Ef(t),i;if(e){var o=Ef(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return vee(this,i)}}function vee(t,e){if(e&&(s_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gee(t)}function gee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ef(t){return Ef=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ef(t)}function ER(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tf=function(t){mee(r,t);var e=yee(r);function r(){return hee(this,r),e.apply(this,arguments)}return dee(r)}(O);ER(Tf,"template",g([SR]));ER(Tf,"is","matrix-text-above-el");customElements.define(Tf.is,Tf);var TR='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		justify-content: center;\n	}\n\n	@media (min-width: 800px) {\n		.show-on-mobile {\n			display: none !important;\n		}\n	}\n</style>\n\n<checkbox-ui tag="right" checked="{{checked}}">\n	<template is="dom-if" if="[[!hideLabelOnDesktop]]">\n		<slot></slot>\n	</template>\n	<template  is="dom-if" if="[[hideLabelOnDesktop]]">\n		<div class="show-on-mobile">\n			<slot></slot>\n		</div>\n	</template>\n</checkbox-ui>';function u_(t){return u_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u_(t)}function AR(t){return Oee(t)||xee(t)||Fee(t)||wee()}function wee(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fee(t,e){if(!!t){if(typeof t=="string")return c_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c_(t,e)}}function xee(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Oee(t){if(Array.isArray(t))return c_(t)}function c_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function See(t,e,r){return e&&RR(t.prototype,e),r&&RR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function kee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f_(t,e)}function f_(t,e){return f_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},f_(t,e)}function Eee(t){var e=Ree();return function(){var n=Af(t),i;if(e){var o=Af(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Tee(this,i)}}function Tee(t,e){if(e&&(u_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aee(t)}function Aee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ree(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Af(t){return Af=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Af(t)}function p_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ds=function(t){kee(r,t);var e=Eee(r);function r(){return Pee(this,r),e.apply(this,arguments)}return See(r,[{key:"_checkedObserver",value:function(i){var o,a=this.parentElement.parentElement.parentElement;a||(a=this.parentElement.parentElement);var s=a.querySelectorAll("range-input-ui,g-scale-ui,range-value-el,input-ui,date-input-ui"),l=(o=a.querySelector("respond-ui"))===null||o===void 0?void 0:o.shadowRoot.querySelectorAll("range-input-ui,g-scale-ui,range-value-el,input-ui,date-input-ui");l&&(s=[].concat(AR(s),AR(l))),s.forEach(function(u){u.disabled=i})}}]),r}(O);p_(Ds,"is","not-applicable-el");p_(Ds,"template",g([TR]));p_(Ds,"properties",{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,observer:"_checkedObserver"},hideLabelOnDesktop:{type:Boolean,value:!1}});customElements.define(Ds.is,Ds);var DR='<style>\n	:host {\n		position: absolute;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n		z-index: 100000;\n\n		display: flex;\n		flex-flow: column;\n		align-items: center;\n		justify-content: center;\n\n		transition: opacity 0.2s;\n		/* will-change: opacity; */\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	:host([theme=accent]) {\n		color: #607d8b;\n	}\n\n	:host([theme=brand]) {\n		color: #e31c5e;\n	}\n\n	:host([fixed]) {\n		position: fixed;\n	}\n\n	:host(:not([active])) {\n		opacity: 0;\n		pointer-events: none;\n	}\n\n	:host(:not([type=spinner])) .spinner,\n	:host(:not([type=progress])) .progress {\n		display: none;\n	}\n\n	.overlay {\n		position: absolute;\n		background-color: rgba(255, 255, 255, 0.6);\n		top: 0;\n		left: 0;\n		height: 100%;\n		width: 100%;\n	}\n\n	.container {\n		position: relative;\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		transform: translateY(-50%);\n	}\n\n	.progress {\n		flex-shrink: 0;\n		position: relative;\n		width: 40%;\n		min-width: 120px;\n		height: 10px;\n		background-color: currentColor;\n		overflow: hidden;\n		border-radius: 4px;\n	}\n\n	.progress-bar {\n		position: absolute;\n		width: 0;\n		height: 10px;\n		top: 0;\n		left: 0;\n		background-color: #fff;\n		border-radius: 2px;\n		transition: 0.2s;\n	}\n\n	.text:empty {\n		display: none;\n	}\n\n	.text {\n		margin-top: 16px;\n		z-index: 100;\n		max-width: 240px;\n		text-align: center;\n	}\n\n	.spinner {\n		flex-shrink: 0;\n		display: flex;\n		margin-right: 2px;\n		height: 16px;\n		align-items: flex-end;\n	}\n\n	.spinner > * {\n		margin-left: 2px;\n		margin-top: 16px;\n	}\n\n	.spinner-point {\n		height: 4px;\n		width: 8px;\n		background-color: currentColor;\n		animation-duration: 1.4s;\n		animation-iteration-count: infinite;\n		animation-name: pulse;\n		transform-origin: center center;\n	}\n\n	.spinner-point:first-of-type {\n		opacity: 0.8;\n		width: 8px;\n	}\n\n	.spinner-point:last-of-type {\n		opacity: 0.8;\n		width: 8px;\n	}\n\n	.spinner-point:nth-of-type(1) { animation-delay: calc(0.2s * 0); }\n	.spinner-point:nth-of-type(2) { animation-delay: calc(0.2s * 1); }\n	.spinner-point:nth-of-type(3) { animation-delay: calc(0.2s * 2); }\n	.spinner-point:nth-of-type(4) { animation-delay: calc(0.2s * 3); }\n	.spinner-point:nth-of-type(5) { animation-delay: calc(0.2s * 4); }\n	.spinner-point:nth-of-type(6) { animation-delay: calc(0.2s * 5); }\n	.spinner-point:nth-of-type(7) { animation-delay: calc(0.2s * 6); }\n	.spinner-point:nth-of-type(8) { animation-delay: calc(0.2s * 7); }\n	.spinner-point:nth-of-type(9) { animation-delay: calc(0.2s * 8); }\n	.spinner-point:nth-of-type(10) { animation-delay: calc(0.2s * 9); }\n	.spinner-point:nth-of-type(11) { animation-delay: calc(0.2s * 10); }\n	.spinner-point:nth-of-type(12) { animation-delay: calc(0.2s * 11); }\n	.spinner-point:nth-of-type(13) { animation-delay: calc(0.2s * 12); }\n	.spinner-point:nth-of-type(14) { animation-delay: calc(0.2s * 13); }\n	.spinner-point:nth-of-type(15) { animation-delay: calc(0.2s * 14); }\n\n	@keyframes pulse {\n		0% {\n			transform: scale(1);\n		}\n\n		50% {\n			transform: scaleY(3);\n		}\n\n		100% {\n			transform: scale(1);\n		}\n	}\n</style>\n\n<div class="overlay"></div>\n<div class="container">\n	<div id="text" class="text" hidden="[[!text]]">\n		<html-raw-ui html="[[text]]"></html-raw-ui>\n	</div>\n	<div id="progress" class="progress">\n		<div id="bar" class="progress-bar"></div>\n	</div>\n	<div id="spinner" class="spinner">\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n		<div class="spinner-point"></div>\n	</div>\n</div>';function d_(t){return d_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d_(t)}function Cee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Iee(t,e,r){return e&&CR(t.prototype,e),r&&CR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h_(t,e)}function h_(t,e){return h_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},h_(t,e)}function Bee(t){var e=Nee();return function(){var n=Rf(t),i;if(e){var o=Rf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Mee(this,i)}}function Mee(t,e){if(e&&(d_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lee(t)}function Lee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Rf(t){return Rf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rf(t)}function m_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Cs=function(t){jee(r,t);var e=Bee(r);function r(){return Cee(this,r),e.apply(this,arguments)}return Iee(r,[{key:"_progressObserver",value:function(i){!this.$.bar||(this.$.bar.style.width=i+"%")}},{key:"_getContextElement",value:function(){return this.context instanceof ShadowRoot?this.context.host:this.context}},{key:"open",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.body,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.type,s=o.text;if(a=a||"spinner",s=s!==void 0?s:w.get("loader.please-wait-loader-text"),!(this.context===i&&this.type===a&&this.text===s)){this.type=a,this.context=i,this.active=!0;var l=getComputedStyle(this._getContextElement()).position;return(l==="static"||!l)&&(this._getContextElement().style.position="relative",this._getContextElement().style.zIndex="1"),this.context.append(this),this.setText(s),new Promise(function(u){requestAnimationFrame(function(){setTimeout(function(){u()})})})}}},{key:"close",value:function(){this.context&&(this._getContextElement().style.position="",this._getContextElement().style.zIndex="",this.context=null),this.active=!1,this._progress=0,this.remove()}},{key:"setProgress",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this._progress=i}},{key:"setText",value:function(i){this.text=i}}]),r}(O);m_(Cs,"is","loader-ui");m_(Cs,"template",g([DR]));m_(Cs,"properties",{active:{type:Boolean,value:!1,reflectToAttribute:!0},type:{value:"spinner",reflectToAttribute:!0},text:{type:String},fixed:{value:!1,reflectToAttribute:!0},theme:{type:String,value:"accent",reflectToAttribute:!0},_progress:{value:0,observer:"_progressObserver"}});customElements.define(Cs.is,Cs);var IR='<style>\n	:host {\n		display: inline-block;\n		font-size: 16px;\n		position: relative;\n		outline: none;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		color: currentColor;\n		max-width: 100%;\n		cursor: pointer;\n		--outline-bg: rgba(0, 0, 0, 0);\n		--button-size: var(--ui-height);\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	.container {\n		display: flex;\n		flex-wrap: nowrap;\n		justify-content: flex-start;\n		align-items: center;\n\n		height: var(--ui-height);\n		border-radius: 4px;\n		box-sizing: border-box;\n		text-decoration: none;\n		white-space: nowrap;\n	}\n\n	icon-ui {\n		margin-left: 9px;\n	}\n\n	span {\n		margin-left: 9px;\n		margin-right: 9px;\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	:host([loading]) #icon {\n		animation: .6s linear 0s normal none infinite running rot;\n	}\n\n	@keyframes rot {\n		0% {\n			transform: rotate(0deg);\n		}\n\n		100% {\n			transform: rotate(360deg);\n		}\n	}\n\n	@keyframes rot {\n		0% {\n			transform: rotate(0deg);\n		}\n\n		100% {\n			transform: rotate(360deg);\n		}\n	}\n\n	:host([compact]) .container {\n		font-size: initial !important;\n		width: calc(var(--ui-height) / 1.5) !important;\n		height: calc(var(--ui-height) / 1.5) !important;\n	}\n\n	:host([icon]) span {\n		margin-left: 6px;\n	}\n\n	:host(:not([icon])) icon-ui {\n		display: none !important;\n	}\n\n	:host([square]) .container {\n		width: var(--ui-height);\n		border-radius: 4px;\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([none]) .container {\n		width: var(--ui-height);\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([square]) icon-ui {\n		margin-left: 0;\n		margin-right: 0;\n	}\n\n	:host([none]) icon-ui {\n		margin-left: 0;\n		margin-right: 0;\n	}\n\n	:host([square]) span {\n		display: none;\n	}\n\n	:host([none]) span {\n		display: none;\n	}\n\n	:host([round]) .container {\n		width: var(--ui-height);\n		border-radius: var(--ui-height);\n		font-size: 22px;\n		justify-content: center !important;\n	}\n\n	:host([round]) icon-ui {\n		margin-left: 0;\n		margin-right: 0;\n	}\n\n	:host([round]) span {\n		display: none;\n	}\n\n	:host([grow]) {\n		display: block;\n		flex-grow: 1;\n	}\n\n	:host([connect=all]) .container {\n		border-radius: 2px !important;\n	}\n\n	:host([connect=left]) .container {\n		border-top-left-radius: 2px !important;\n		border-bottom-left-radius: 2px !important;\n	}\n\n	:host([connect=right]) .container {\n		border-top-right-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host([connect=top]) .container {\n		border-top-left-radius: 2px !important;\n		border-top-right-radius: 2px !important;\n	}\n\n	:host([connect=bottom]) .container {\n		border-bottom-left-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host([theme=brightest]) .container {\n		color: rgba(33, 37, 43, 1) !important;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme="brightest-outline"]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		border: 2px solid rgba(255, 255, 255, 1);\n	}\n\n	:host([outline]) .container {\n		border: 2px solid currentColor;\n		background-color: rgba(0, 0, 0, 0);\n		color: currentColor;\n	}\n\n	:host([theme=outline]) .container {\n		border: 2px solid currentColor;\n		background-color: rgba(0, 0, 0, 0);\n		color: currentColor;\n	}\n\n	:host([theme=accent]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: #607d8b;\n	}\n\n	:host([theme=accent-outline]) .container {\n		color: #607d8b !important;\n		border: 2px solid #607d8b;\n	}\n\n	:host([theme=warning]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: #d8252b;\n	}\n\n	:host([theme=warning-outline]) .container {\n		color: #d8252b !important;\n		border: 2px solid #d8252b;\n	}\n\n	:host([theme=success]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: hsl(122, 69%, 42%);\n	}\n\n	:host([theme=success-outline]) .container {\n		color: hsl(122, 69%, 42%) !important;\n		border: 2px solid hsl(122, 69%, 42%);\n	}\n\n	:host([theme=alt]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: hsl(263, 37%, 55%);\n	}\n\n	:host([theme=alt-outline]) .container {\n		color: hsl(263, 37%, 55%) !important;\n		border: 2px solid hsl(263, 37%, 55%);\n	}\n\n	:host([theme=accent5]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: #949494;\n	}\n\n	:host([theme=accent5-outline]) .container {\n		color: #949494 !important;\n		border: 2px solid #949494;\n	}\n\n	:host([theme=bg1]) .container {\n		color: #607d8b !important;\n		background-color: #eee;\n	}\n\n	:host([theme=bg2]) .container {\n		color: #607d8b !important;\n		background-color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=element]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: #a8bac3;\n	}\n\n	:host([theme=shine]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: rgba(255, 255, 255, 0.5);\n	}\n\n	:host([theme=brand]) .container {\n		color: rgba(255, 255, 255, 1) !important;\n		background-color: #e31c5e;\n	}\n\n	:host([theme=brand-text]) .container {\n		color: #e31c5e !important;\n		background-color: transparent;\n	}\n\n	:host([inactive]) {\n		pointer-events: none;\n	}\n\n	:host([inactive]) .container {\n		color: #a8bac3 !important;\n		background-color: #eee;\n		cursor: default;\n	}\n\n	:host([active]) .container {\n		box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 0.4);\n	}\n\n	:host([active][theme=accent]) .container {\n		box-shadow: inset 0 0 15px 0 rgba(0, 0, 0, 0.5);\n	}\n\n	:host([icon-theme=accent]) icon-ui {\n		color: #607d8b;\n	}\n\n	:host([icon-theme=alt]) icon-ui {\n		color: hsl(263, 37%, 55%);\n	}\n\n	:host([icon-theme=accent5]) icon-ui {\n		color: #949494;\n	}\n\n	:host([icon-theme=warning]) icon-ui {\n		color: #d8252b;\n	}\n\n	:host([icon-theme=success]) icon-ui {\n		color: hsl(122, 69%, 42%);\n	}\n\n	@media (max-width: 700px) {\n		:host([no-title-on-mobile]) .container {\n			width: var(--ui-height);\n		}\n\n		:host([no-title-on-mobile]) span {\n			display: none;\n		}\n	}\n\n	@media (max-width: 1024px) {\n		:host {\n			--gap-min: 1px;\n			--side-padding: 10px;\n			--side-padding-min: 4px;\n		}\n\n		:host([no-title-on-tablet]) .container {\n			width: var(--ui-height);\n		}\n\n		:host([no-title-on-tablet]) span {\n			display: none;\n		}\n	}\n\n	@media (max-width: 1300px) {\n		:host {\n			--gap-min: 1px;\n			--side-padding: 10px;\n			--side-padding-min: 4px;\n		}\n\n		:host([no-title-on-tablet-landscape]) .container {\n			width: var(--ui-height);\n		}\n\n		:host([no-title-on-tablet-landscape]) span {\n			display: none;\n		}\n	}\n\n	:host-context([cursor=no-drop]) {\n		cursor: no-drop !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div part="conatiner" class="container">\n	<slot name="pre"></slot>\n	<icon-ui id="icon" icon="[[icon]]"></icon-ui>\n	<span><slot></slot></span>\n	<paper-ripple class="ripple" noink="[[_getNoink(inactive, noRipple)]]"></paper-ripple>\n</div>';function y_(t){return y_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y_(t)}function zee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hee(t,e,r){return e&&jR(t.prototype,e),r&&jR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v_(t,e)}function v_(t,e){return v_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},v_(t,e)}function Vee(t){var e=$ee();return function(){var n=Df(t),i;if(e){var o=Df(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Wee(this,i)}}function Wee(t,e){if(e&&(y_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gee(t)}function Gee(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $ee(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Df(t){return Df=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Df(t)}function Cf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var po=function(t){Uee(r,t);var e=Vee(r);function r(){return zee(this,r),e.apply(this,arguments)}return Hee(r,[{key:"_loadingObserver",value:function(){this.loading?this.$.icon.icon="sync":this.$.icon.ico=this.icon}},{key:"_getNoink",value:function(i,o){return i||o}}]),r}(Q(M));Cf(po,"is","button-ui");Cf(po,"template",g([IR]));Cf(po,"sharedStyles",["survey"]);Cf(po,"properties",{icon:{type:String,reflectToAttribute:!0},theme:{type:String,reflectToAttribute:!0},iconTheme:{type:String,reflectToAttribute:!0},inactive:{type:Boolean,reflectToAttribute:!0},active:{type:Boolean,reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},connect:{type:String,reflectToAttribute:!0},compact:{value:!1,reflectToAttribute:!0},grow:{type:Boolean,value:!1,reflectToAttribute:!0},noRipple:{type:Boolean,value:!1,reflectToAttribute:!0},loading:{type:Boolean,value:!1,observer:"_loadingObserver",reflectToAttribute:!0}});customElements.define(po.is,po);var BR="<slot></slot>";function g_(t){return g_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g_(t)}function MR(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function Yee(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){MR(o,n,i,a,s,"next",l)}function s(l){MR(o,n,i,a,s,"throw",l)}a(void 0)})}}function Xee(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Qee(t,e,r){return e&&LR(t.prototype,e),r&&LR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function If(){return typeof Reflect!="undefined"&&Reflect.get?If=Reflect.get:If=function(e,r,n){var i=Jee(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},If.apply(this,arguments)}function Jee(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ho(t),t!==null););return t}function Zee(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b_(t,e)}function b_(t,e){return b_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},b_(t,e)}function ete(t){var e=nte();return function(){var n=ho(t),i;if(e){var o=ho(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tte(this,i)}}function tte(t,e){if(e&&(g_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rte(t)}function rte(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nte(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ho(t){return ho=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ho(t)}function __(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Is=function(t){Zee(r,t);var e=ete(r);function r(){return Xee(this,r),e.apply(this,arguments)}return Qee(r,[{key:"ready",value:function(){If(ho(r.prototype),"ready",this).call(this),this._render()}},{key:"_initProps",value:function(){var i=this;this.getAttribute("props").split(/,\s*/).forEach(function(o){o=pn(o);var a=o+"-observer";i[a]=function(){i._render()},i._createPropertyObserver(o,a)})}},{key:"_patchText",value:function(i){var o=this;return this.raw?i:i.replace(/\{([\w-]+)\}/g,function(a,s){return s=pn(s),o[s]})}},{key:"l10nObserver",value:function(){this._render()}},{key:"_render",value:function(){var n=Yee(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!this.language){s.next=3;break}return s.next=3,w.fetchLanguage(this.language);case 3:if(!w.data){s.next=7;break}this.innerHTML=this._patchText(w.get(this.key,null,this.language)),s.next=10;break;case 7:return s.next=9,w.inited;case 9:this.innerHTML=this._patchText(w.get(this.key,null,this.language));case 10:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),r}(O);__(Is,"is","l10n-ui");__(Is,"template",g([BR]));__(Is,"properties",{key:{type:String},props:{type:String,observer:"_initProps"},language:{type:String,observer:"_render"},raw:{type:Boolean}});customElements.define(Is.is,Is);var NR='<style>\n	:host {\n		display: flex;\n		cursor: pointer;\n		height: 34px;\n		line-height: 34px;\n		padding-left: 9px;\n		padding-right: 9px;\n		transition: 0.2s;\n		white-space: nowrap;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		/* ff scroll fix */\n		margin-bottom: 0.5px;\n	}\n\n	:host([disabled]) {\n		pointer-events: none;\n		opacity: 0.6;\n	}\n\n	:host([indent]) {\n		padding-left: calc(9px * 3);\n	}\n\n	.icon {\n		padding-right: 8px;\n	}\n\n	.label {\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	.label:empty {\n		display: none;\n	}\n</style>\n\n<icon-ui class="icon" icon="[[icon]]" hidden="[[!icon]]"></icon-ui>\n<div class="label"><slot></slot></div>';function w_(t){return w_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w_(t)}function ote(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ate(t,e,r){return e&&qR(t.prototype,e),r&&qR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jf(){return typeof Reflect!="undefined"&&Reflect.get?jf=Reflect.get:jf=function(e,r,n){var i=ste(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},jf.apply(this,arguments)}function ste(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=mo(t),t!==null););return t}function lte(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&F_(t,e)}function F_(t,e){return F_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},F_(t,e)}function ute(t){var e=pte();return function(){var n=mo(t),i;if(e){var o=mo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return cte(this,i)}}function cte(t,e){if(e&&(w_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fte(t)}function fte(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pte(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function mo(t){return mo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mo(t)}function x_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var js=function(t){lte(r,t);var e=ute(r);function r(){return ote(this,r),e.apply(this,arguments)}return ate(r,[{key:"ready",value:function(){var i=this;jf(mo(r.prototype),"ready",this).call(this),this.addEventListener("click",function(){i.dispatchEvent(new CustomEvent("select",{detail:i.value,bubbles:!0}))}),this.addEventListener("auxclick",function(o){o.button===1&&i.dispatchEvent(new CustomEvent("aux-select",{detail:i.value,bubbles:!0}))})}}]),r}(O);x_(js,"is","option-ui");x_(js,"template",g([NR]));x_(js,"properties",{value:{value:"",reflectToAttribute:!0},icon:{type:String,value:"",reflectToAttribute:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},indent:{type:Boolean,value:!1,reflectToAttribute:!0},grow:{type:Boolean,value:!1,reflectToAttribute:!0}});customElements.define(js.is,js);var zR='<style>\n	:host {\n		display: inline-block;\n		position: relative;\n	}\n\n	:host([disabled]) .button {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([no-icon]) .icon {\n		display: none;\n	}\n\n	:host([no-chevron]) .icon,\n	:host([no-chevron]) .title {\n		padding-right: 0;\n	}\n\n	:host([no-chevron]) .chevron {\n		display: none;\n	}\n\n	:host([no-title]) .title {\n		display: none;\n	}\n\n	:host([no-title]) .icon {\n		padding-right: 2px;\n	}\n\n	:host([no-chevron]) .title {\n		padding-right: 0;\n	}\n\n	:host([context=report-wizard]) {\n		position: initial;\n	}\n\n	:host([context=report-wizard]) .dropdown {\n		bottom: initial;\n		transform: initial;\n		min-width: calc(100% - 2px);\n		left: 2px;\n	}\n\n	:host([position~=top]) .dropdown {\n		box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);\n		border-bottom-left-radius: 0 !important;\n		top: 0;\n		transform: translateY(calc(-100% - 2px)); /* hack for IE */\n	}\n\n	:host([position~=top]) .search {\n		order: 1;\n	}\n\n	:host([position~=bottom]) .dropdown {\n		border-top-left-radius: 0 !important;\n		bottom: 0;\n		transform: translateY(calc(100% + 2px)); /* hack for IE */\n	}\n\n	/* :host([no-title]) .dropdown { */\n	:host([position~=left]) .dropdown {\n		left: auto;\n		right: 0;\n	}\n\n	:host([connect=all]) .button {\n		border-radius: 2px !important;\n	}\n\n	:host([connect=left]) .button {\n		border-top-left-radius: 2px !important;\n		border-bottom-left-radius: 2px !important;\n	}\n\n	:host([connect=right]) .button {\n		border-top-right-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host([connect=top]) .button {\n		border-top-left-radius: 2px !important;\n		border-top-right-radius: 2px !important;\n	}\n\n	:host([connect=bottom]) .button {\n		border-bottom-left-radius: 2px !important;\n		border-bottom-right-radius: 2px !important;\n	}\n\n	:host(:not([active])) .dropdown {\n		height: 0;\n		overflow: hidden;\n	}\n\n	:host([active]) .dropdown {\n		opacity: 1;\n		pointer-events: auto;\n	}\n\n	:host([active][position~=top]) .button {\n		border-top-left-radius: 0 !important;\n		border-top-right-radius: 0 !important;\n	}\n\n	:host([active][position~=bottom]) .button {\n		border-bottom-left-radius: 0 !important;\n		border-bottom-right-radius: 0 !important;\n	}\n\n	:host([grow]) {\n		display: block;\n		flex-grow: 1;\n	}\n\n	.button {\n		display: flex;\n		align-items: center;\n		height: 34px;\n		padding-left: 9px;\n		padding-right: 9px;\n		font-size: 16px;\n		border-radius: 4px;\n		color: currentColor;\n		cursor: pointer;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		text-decoration: none !important;\n		white-space: nowrap;\n		box-sizing: border-box;\n	}\n\n	.button .title.placeholder {\n		font-style: italic;\n	}\n\n	.button .title {\n		overflow: hidden;\n		text-overflow: ellipsis;\n		/* fix unicode icon vertical alignment */\n		/* line-height: 1; */\n	}\n\n	.button > :not(:last-child) {\n		padding-right: 8px;\n	}\n\n	:host([compact]) .button > :not(:last-child) {\n		padding-right: 6px;\n	}\n\n	.dropdown {\n		display: flex;\n		flex-direction: column;\n		position: absolute;\n		min-width: 100%;\n		max-width: 350px;\n		left: 0;\n		opacity: 0;\n		pointer-events: none;\n		font-size: 16px;\n		transition: opacity 0.2s;\n		background-color: rgba(0, 0, 0, 0.8);\n		border-radius: 4px;\n		z-index: 10000;\n		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);\n	}\n\n	:host([hide-selected]) .dropdown ::slotted([selected]) {\n		display: none !important;\n	}\n\n	:host([fixed-width]) .dropdown {\n		width: 100%;\n		max-width: 100%;\n	}\n\n	:host([fixed-width][position~=top]) .dropdown {\n		border-bottom-right-radius: 0 !important;\n	}\n\n	:host([fixed-width][position~=bottom]) .dropdown {\n		border-top-right-radius: 0 !important;\n	}\n\n	:host([btn-final-theme=accent]) .button {\n		background-color: #607d8b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([btn-final-theme=bg1]) .button {\n		background-color: #eee;\n		color: #607d8b;\n	}\n\n	:host([btn-final-theme=brightest]) .button {\n		background-color: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([btn-final-theme=darkest]) .button {\n		background-color: rgba(33, 37, 43, 1);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([btn-final-theme=success]) .button {\n		background-color: hsl(122, 69%, 42%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([btn-final-theme=success-outline]) .button {\n		border: 2px solid hsl(122, 69%, 42%);\n		color: hsl(122, 69%, 42%);\n	}\n\n	:host([btn-final-theme=element]) .button {\n		background-color: #a8bac3;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([btn-final-theme=alt-element]) .button {\n		background-color: hsl(255, 32%, 76%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([btn-final-theme=none]) .button {\n		height: 34px;\n		padding: 8px !important;\n		/* margin-top: 0.5px; */\n	}\n\n	:host([btn-final-theme=none]) .button .icon {\n		margin-top: -2px;\n	}\n\n	:host([dd-theme=brightest]) .dropdown {\n		background-color: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([dd-theme=brightest]) .dropdown ::slotted([selected]) {\n		background-color: rgba(96, 125, 139, 0.1);\n	}\n\n	:host([dd-theme=darkest]) .dropdown {\n		background-color: rgba(33, 37, 43, 1);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([dd-theme=darkest]) .dropdown ::slotted([selected]) {\n		background: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n	}\n\n	:host([dd-theme=accent]) .dropdown {\n		background-color: #607d8b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([dd-theme=accent]) .dropdown ::slotted([selected]) {\n		background-color: rgba(255, 255, 255, 0.4);\n	}\n\n	.chevron {\n		margin-left: auto;\n	}\n\n	.search {\n		margin: 2px;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	@media (max-width: 700px) {\n		:host([no-title-on-mobile]) .title {\n			display: none;\n		}\n\n		:host([no-title-on-mobile]) .icon {\n			padding-right: 2px;\n		}\n	}\n\n	@media (max-width: 1024px) {\n		:host {\n			--gap-min: 1px;\n			--side-padding: 10px;\n			--side-padding-min: 4px;\n		}\n\n		:host([no-title-on-tablet]) .title {\n			display: none;\n		}\n\n		:host([no-title-on-tablet]) .icon {\n			padding-right: 2px;\n		}\n	}\n</style>\n\n<div part="button" id="btn" class="button" on-click="_toggleActive">\n	<icon-ui class="icon" icon="[[_selectedOption.icon]]" hidden="[[!get(_selectedOption.icon, isEmpty)]]"></icon-ui>\n	<span class="title placeholder" hidden="[[!isEmpty]]">[[placeholder]]</span>\n	<span class="title" hidden="[[isEmpty]]">[[_selectedOption.textContent]]</span>\n	<icon-ui class="chevron" icon="[[_ddIcon]]" hidden="[[noChevron]]"></icon-ui>\n</div>\n\n<div class="dropdown">\n	<input-ui\n		id="search"\n		class="search"\n		type="search"\n		icon="magnify"\n		input-value="{{_searchText}}"\n		connect="all"\n		autocomplete="off"\n		on-keydown="_searchKeyDown"\n		hidden="[[!search]]"\n	></input-ui>\n	<empty-mkp compact theme="brightest" hidden="[[!_showEmptyMsg]]"><slot name="empty-message">[[l10n.options-ui.no-items-found-for-search-text]]</slot></empty-mkp>\n	<scroll-shadow-ui id="scrollable" on-select="_selectHandler" colored contain-scroll>\n		<slot id="slot"></slot>\n	</scroll-shadow-ui>\n</div>';function O_(t){return O_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O_(t)}function Dn(t){return vte(t)||yte(t)||mte(t)||hte()}function hte(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mte(t,e){if(!!t){if(typeof t=="string")return P_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P_(t,e)}}function yte(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vte(t){if(Array.isArray(t))return P_(t)}function P_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function HR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function bte(t,e,r){return e&&HR(t.prototype,e),r&&HR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function yo(){return typeof Reflect!="undefined"&&Reflect.get?yo=Reflect.get:yo=function(e,r,n){var i=_te(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},yo.apply(this,arguments)}function _te(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=gr(t),t!==null););return t}function wte(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S_(t,e)}function S_(t,e){return S_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},S_(t,e)}function Fte(t){var e=Pte();return function(){var n=gr(t),i;if(e){var o=gr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return xte(this,i)}}function xte(t,e){if(e&&(O_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ote(t)}function Ote(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pte(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function gr(t){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},gr(t)}function k_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bs=function(t){wte(r,t);var e=Fte(r);function r(){return gte(this,r),e.apply(this,arguments)}return bte(r,[{key:"_getIsEmpty",value:function(i){return!i}},{key:"_getBtnFinalTheme",value:function(i,o,a){return a&&i?i:o}},{key:"_valueObserver",value:function(){var i=this;requestAnimationFrame(function(){i._updateState()})}},{key:"_getTitle",value:function(){return this._selectedOption?this._selectedOption.textContent:this.placeholder}},{key:"_activeObserver",value:function(){var i=this;if(this.ddIcon||(this._ddIcon=this.active?"menu-up":"menu-down"),this.active){this._openOutside(),this._updateSize();var o=this.querySelector("option-ui[selected]"),a=this.$.scrollable.$.scrollContainer;o&&a&&(a.scrollTop=o.offsetTop+o.clientHeight/2-a.clientHeight/2),requestAnimationFrame(function(){i.$.scrollable.update()})}else this._closeOutside();this.search&&(this.active?requestAnimationFrame(function(){i.$.search.focus()}):this._searchText="")}},{key:"_openOutside",value:function(){if(this.position==="dynamic"){var i=this.$.btn.getBoundingClientRect();window.innerHeight-i.bottom<150?this.position="dynamic top":this.position="dynamic bottom",this._placeholderEl.className=this.className,this._placeholderEl.slot=this.slot,this._placeholderEl.style.width="".concat(i.width,"px"),this._placeholderEl.style.minWidth="".concat(i.width,"px"),this._placeholderEl.style.height="".concat(i.height,"px"),this.style.position="absolute",this.style.top="".concat(i.top,"px"),this.style.left="".concat(i.left,"px"),this.style.width="".concat(i.width,"px"),this.style.height="".concat(i.height,"px"),this.style.zIndex="1000000",this.replaceWith(this._placeholderEl),document.body.append(this)}}},{key:"_updateOutsidePosition",value:function(){if(!(!this._placeholderEl||!Dn(document.body.children).includes(this))){var i=this._placeholderEl.getBoundingClientRect();this.style.top="".concat(i.top,"px"),this.style.left="".concat(i.left,"px")}}},{key:"_closeOutside",value:function(){!this._placeholderEl||!Dn(document.body.children).includes(this)||(this.position="dynamic",this._placeholderEl.replaceWith(this),this.style.position="",this.style.top="",this.style.left="",this.style.width="",this.style.height="",this.style.zIndex="")}},{key:"_selectedOptionObserver",value:function(i,o){o&&(o.selected=!1),this._selectedOption&&(this._selectedOption.selected=!0,this.dispatchEvent(new CustomEvent("selected",{detail:this._selectedOption.value})))}},{key:"_ddIconObserver",value:function(){this._ddIcon=this.ddIcon}},{key:"_toggleActive",value:function(){this.active=!this.active}},{key:"_selectHandler",value:function(i){this.value=i.target.value,this.active=!1}},{key:"_updateState",value:function(){var i=this,o=Dn(this.querySelectorAll("*"));o.forEach(function(a){a.matches("slot")&&o.push.apply(o,Dn(a.assignedNodes()))}),this._selectedOption=o.find(function(a){return i.comparator?i.comparator(i.value,a.value):a.value==(i.value==null?"":i.value)})}},{key:"_updateSize",value:function(){if(this.position.includes("top")){var i=parseFloat(getComputedStyle(document.body).getPropertyValue("--app-header-height"));this.position.includes("dynamic")&&(i=0),this.$.scrollable.style.maxHeight=this.getBoundingClientRect().top-i-(this.search?50:10)+"px"}else if(this.position.includes("bottom")&&this.scroll){var o=window.innerHeight-this.getBoundingClientRect().bottom-(this.search?50:10);this.$.scrollable.style.maxHeight="var(--dropdown-max-height, ".concat(o,"px)")}this.scroll&&this.$.scrollable.update()}},{key:"_searchTextObserver",value:function(){var i=this;!this.isConnected||(Dn(this.children).forEach(function(o){o&&(o.style.display=o.textContent.toLowerCase().includes(i._searchText.toLowerCase())?"":"none")}),this._showEmptyMsg=this.children.length&&Dn(this.children).every(function(o){return o.style.display==="none"}),this.$.scrollable.update())}},{key:"_searchKeyDown",value:function(i){if(i.key==="Enter"){var o=Dn(this.children).find(function(a){return a.style.display!=="none"});o&&(this.value=o.value),this.active=!1}else i.key==="Escape"&&(this.active=!1)}},{key:"ready",value:function(){var i=this;yo(gr(r.prototype),"ready",this).call(this),this._placeholderEl=document.createElement("div"),this._updateSize(),new MutationObserver(function(){yr(i,function(){i._updateState(),i.notifyPath("_selectedOption.textContent")})}).observe(this,{subtree:!0,characterData:!0,childList:!0})}},{key:"connectedCallback",value:function(){var i=this;yo(gr(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i._updateState()}),this._outsideClickHandler=function(o){var a=!o.composedPath().includes(i);a&&(i.active=!1)},this._scrollAndResizeHandler=function(){i.active&&(i._updateSize(),i._updateOutsidePosition())},document.addEventListener("click",this._outsideClickHandler),document.addEventListener("content-scroll",this._scrollAndResizeHandler),document.addEventListener("scrollable-ui",this._scrollAndResizeHandler),document.addEventListener("scroll-shadow-ui",this._scrollAndResizeHandler),window.addEventListener("resize",this._scrollAndResizeHandler)}},{key:"disconnectedCallback",value:function(){yo(gr(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("click",this._outsideClickHandler),document.removeEventListener("content-scroll",this._scrollAndResizeHandler),document.removeEventListener("scrollable-ui",this._scrollAndResizeHandler),document.removeEventListener("scroll-shadow-ui",this._scrollAndResizeHandler),window.removeEventListener("resize",this._scrollAndResizeHandler)}}]),r}(O);k_(Bs,"is","options-ui");k_(Bs,"template",g([zR]));k_(Bs,"properties",{value:{observer:"_valueObserver",reflectToAttribute:!0,notify:!0},comparator:{type:Object},placeholder:{type:String},active:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_activeObserver"},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},compact:{type:Boolean,value:!1,reflectToAttribute:!0},noIcon:{type:Boolean,value:!1,reflectToAttribute:!0},noTitle:{type:Boolean,value:!1,reflectToAttribute:!0},noChevron:{type:Boolean,value:!1,reflectToAttribute:!0},fixedWidth:{type:Boolean,value:!1,reflectToAttribute:!0},scroll:{type:Boolean,value:!1},position:{type:String,value:"bottom",reflectToAttribute:!0},search:{type:Boolean,value:!1,reflectToAttribute:!0},_searchText:{type:String,observer:"_searchTextObserver"},_showEmptyMsg:{type:Boolean,value:!1},grow:{type:Boolean,reflectToAttribute:!0},btnEmptyTheme:{type:String,reflectToAttribute:!0},btnTheme:{type:String,reflectToAttribute:!0},btnFinalTheme:{type:String,reflectToAttribute:!0,computed:"_getBtnFinalTheme(btnEmptyTheme, btnTheme, isEmpty)"},ddTheme:{type:String,value:"brightest",reflectToAttribute:!0},ddIcon:{type:String,observer:"_ddIconObserver"},_ddIcon:{type:String,value:"menu-down"},_selectedOption:{type:Object,observer:"_selectedOptionObserver"},isEmpty:{type:Boolean,reflectToAttribute:!0,computed:"_getIsEmpty(_selectedOption, value)"}});customElements.define(Bs.is,Bs);var UR='<style>\n	:host {\n		display: block;\n	}\n\n	.window {\n		display: flex;\n		flex-direction: column;\n		max-height: calc(100vh - 16px);\n		max-width: calc(100vw - 16px);\n	}\n\n	.header, .toolbar {\n		flex-shrink: 0;\n	}\n\n	:host([size=min]) .window {\n		width: 340px;\n	}\n\n	:host([size=mid]) .window {\n		width: 650px;\n	}\n\n	:host([size=max]) .window {\n		width: 1000px;\n	}\n\n	:host([size=super-max]) .window {\n		width: 1300px;\n	}\n\n	:host([active]) .icon,\n	:host([active]) .caption,\n	:host([active]) .toolbar {\n		transform: translate(0, 0);\n	}\n\n	:host([alert]) .close-button {\n		display: none;\n	}\n\n	:host([alert]) .ok-button {\n		flex-grow: 0;\n		margin-left: auto !important;\n	}\n\n	/* icon */\n	:host([theme=accent]) .icon {\n		background-color: #607d8b;\n	}\n\n	:host([theme=warning]) .icon {\n		background-color: #d8252b;\n	}\n\n	:host([theme=success]) .icon {\n		background-color: hsl(122, 69%, 42%);\n	}\n\n	:host([theme=alt]) .icon {\n		background-color: hsl(263, 37%, 55%);\n	}\n\n	:host([theme=accent5]) .icon {\n		background-color: #949494;\n	}\n\n	/* caption */\n	:host([theme=accent]) .caption {\n		color: #607d8b;\n	}\n\n	:host([theme=warning]) .caption {\n		color: #d8252b;\n	}\n\n	:host([theme=success]) .caption {\n		color: hsl(122, 69%, 42%);\n	}\n\n	:host([theme=alt]) .caption {\n		color: hsl(263, 37%, 55%);\n	}\n\n	:host([theme=accent5]) .caption {\n		color: #949494;\n	}\n\n	:host([position=top]) .container {\n		align-items: flex-start;\n	}\n\n	:host([position=top]) .window {\n		margin-top: calc(50px + 8px);\n		max-height: calc(100vh - 16px * 2 - 50px + 8px);\n	}\n\n	.container {\n		position: fixed;\n		top: 0;\n		left: 0;\n		bottom: 0;\n		right: 0;\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		transition: 0.4s;\n		background-color: rgba(96, 125, 139, 0.5);\n		z-index: 20000;\n	}\n\n	:host(:not([active])) .container {\n		opacity: 0;\n		pointer-events: none;\n		/* transition-delay: var(--transition-min); */\n	}\n\n	.header {\n		display: flex;\n		align-items: stretch;\n	}\n\n	.icon {\n		box-sizing: border-box;\n		padding: 8px;\n		border-top-left-radius: 6px;\n		border-top-right-radius: 2px;\n		border-bottom-left-radius: 2px;\n		border-bottom-right-radius: 2px;\n		flex-basis: 50px;\n		display: flex;\n		justify-content: center;\n		align-items: center;\n		transition: transform 0.4s;\n		transform: translate(-10px, -10px);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	.caption {\n		padding: 8px;\n		background-color: rgba(255, 255, 255, 1);\n\n		border-top-left-radius: 2px;\n		border-top-right-radius: 6px;\n		border-bottom-left-radius: 2px;\n		border-bottom-right-radius: 2px;\n\n		margin-left: 2px;\n		flex-grow: 1;\n		font-size: 18px;\n\n		transition: transform 0.4s;\n		transform: translate(10px, -10px);\n\n		white-space: nowrap;\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	.content {\n		display: flex;\n		flex-direction: column;\n		min-height: 1%;\n\n		margin-top: 2px;\n		padding: 16px;\n\n		background-color: rgba(255, 255, 255, 1);\n		color: rgba(33, 37, 43, 1);\n		border-radius: 2px;\n		transition: 0.2s;\n	}\n\n	.toolbar {\n		padding: 8px;\n		background-color: rgba(255, 255, 255, 1);\n		border-top-left-radius: 2px;\n		border-top-right-radius: 2px;\n		border-bottom-left-radius: 6px;\n		border-bottom-right-radius: 6px;\n		margin-top: 2px;\n		transition: transform 0.4s;\n		transform: translate(0, 20px);\n	}\n\n	:host([is-iphone]) .window {\n		max-height: calc(100vh - 16px * 8);\n	}\n\n	@media (max-width: 700px) {\n		.window {\n			max-height: calc(100vh - 16px * 4);\n		}\n	}\n</style>\n\n<div id="container" class="container">\n	<div class="window">\n\n		<div class="header">\n			<div class="icon">\n				<icon-ui icon="[[icon]]"></icon-ui>\n			</div>\n\n			<div class="caption">[[caption]]<slot name="caption"></slot></div>\n		</div>\n\n		<div class="content">\n			<template is="dom-if" if="[[noScroll]]" restamp>\n				<slot></slot>\n			</template>\n			<template is="dom-if" if="[[!noScroll]]" restamp>\n				<scroll-shadow-ui>\n					<slot></slot>\n				</scroll-shadow-ui>\n			</template>\n		</div>\n\n		<div class="toolbar">\n			<flex-mkp space-min h-justify>\n				<button-ui\n					class="close-button"\n					connect="right"\n					grow\n					theme="[[theme]]-outline"\n					icon="close"\n					on-click="close"\n				>\n					[[_getCancel(l10n, cancel)]]\n				</button-ui>\n\n				<button-ui\n					class="ok-button"\n					theme="[[theme]]"\n					icon="check"\n					connect="[[if(alert, \'none\', \'left\')]]"\n					disabled="[[!confirm]]"\n					grow\n					on-click="_ok"\n				>\n					[[_getOk(l10n, ok)]]\n				</button-ui>\n			</flex-mkp>\n		</div>\n\n	</div>\n</div>';function E_(t){return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(t)}function kte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ete(t,e,r){return e&&VR(t.prototype,e),r&&VR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(){return typeof Reflect!="undefined"&&Reflect.get?Ms=Reflect.get:Ms=function(e,r,n){var i=Tte(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ms.apply(this,arguments)}function Tte(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Cn(t),t!==null););return t}function Ate(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T_(t,e)}function T_(t,e){return T_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},T_(t,e)}function Rte(t){var e=Ite();return function(){var n=Cn(t),i;if(e){var o=Cn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Dte(this,i)}}function Dte(t,e){if(e&&(E_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cte(t)}function Cte(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ite(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Cn(t){return Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Cn(t)}function A_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ls=function(t){Ate(r,t);var e=Rte(r);function r(){return kte(this,r),e.apply(this,arguments)}return Ete(r,[{key:"_getOk",value:function(i,o){if(i)return o||i.core["dialog-ok-button"]}},{key:"_getCancel",value:function(i,o){if(i)return o||i.core["dialog-cancel-button"]}},{key:"open",value:function(){var i=this;return document.addEventListener("keyup",this._closeByEsc),document.body.append(this),this._openRaf=requestAnimationFrame(function(){requestAnimationFrame(function(){i.active=!0,i.dispatchEvent(new CustomEvent("open",{composed:!0,bubbles:!0}))})}),this.dispatchEvent(new CustomEvent("disable-content-scroll",{composed:!0,bubbles:!0})),new Promise(function(o){i.resolve=function(a){i.active=!1,i.dispatchEvent(new CustomEvent("close")),o(a),document.removeEventListener("keyup",i._closeByEsc),i.dispatchEvent(new CustomEvent("enable-content-scroll",{composed:!0,bubbles:!0}))}})}},{key:"_ok",value:function(){this.confirm&&this.resolve(!0)}},{key:"close",value:function(){cancelAnimationFrame(this._openRaf),this.resolve&&this.resolve(!1)}},{key:"ready",value:function(){var i=this;Ms(Cn(r.prototype),"ready",this).call(this),this.remove(),this.addEventListener("keyup",function(o){o.key==="Enter"&&(!o.composedPath()[0].composedClosest("textarea, [contenteditable], .ace_search_field, autocomplete-ui")||o.ctrlKey&&!o.shiftKey)&&i._ok(!0)},!0),this.$.container.addEventListener("transitionend",function(o){if(!(o.target!==i.$.container||o.propertyName!=="opacity"))if(i.active){var a=i.querySelector("[autofocus]");a&&a.focus()}else i.remove()}),this._closeByEsc=function(o){o.key==="Escape"&&!o.composedPath()[0].composedClosest(".ace_text-input")&&(o.stopImmediatePropagation(),i.close())}}},{key:"disconnectedCallback",value:function(){Ms(Cn(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("keyup",this._closeByEsc)}}]),r}(ce(O));A_(Ls,"is","dialog-ui");A_(Ls,"template",g([UR]));A_(Ls,"properties",{active:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0},theme:{type:String,value:"accent",reflectToAttribute:!0},confirm:{type:Boolean,value:!0,reflectToAttribute:!0},size:{value:"min",reflectToAttribute:!0},position:{type:String,reflectToAttribute:!0},alert:{type:Boolean,value:!1},noScroll:{type:Boolean,value:!1},caption:{type:String},icon:{type:String},ok:{type:String},cancel:{type:String}});customElements.define(Ls.is,Ls);var WR="<style>\n	:host {\n		display: none;\n	}\n</style>";function R_(t){return R_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R_(t)}function Bte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Mte(t,e,r){return e&&GR(t.prototype,e),r&&GR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bf(){return typeof Reflect!="undefined"&&Reflect.get?Bf=Reflect.get:Bf=function(e,r,n){var i=Lte(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Bf.apply(this,arguments)}function Lte(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=vo(t),t!==null););return t}function Nte(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D_(t,e)}function D_(t,e){return D_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},D_(t,e)}function qte(t){var e=Ute();return function(){var n=vo(t),i;if(e){var o=vo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return zte(this,i)}}function zte(t,e){if(e&&(R_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hte(t)}function Hte(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ute(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function vo(t){return vo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(t)}function $R(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Mf=function(t){Nte(r,t);var e=qte(r);function r(){return Bte(this,r),e.apply(this,arguments)}return Mte(r,[{key:"connectedCallback",value:function(){Bf(vo(r.prototype),"connectedCallback",this).call(this),me(function(){requestAnimationFrame(function(){document.body.hasAttribute("loading")&&document.body.removeAttribute("loading")})})}}]),r}(M);$R(Mf,"template",g([WR]));$R(Mf,"is","empty-ui");customElements.define(Mf.is,Mf);function C_(t){return C_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C_(t)}function Vte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Wte(t,e,r){return e&&KR(t.prototype,e),r&&KR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Gte(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ns(t,e)}function $te(t){var e=YR();return function(){var n=qs(t),i;if(e){var o=qs(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Kte(this,i)}}function Kte(t,e){if(e&&(C_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yte(t)}function Yte(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function I_(t){var e=typeof Map=="function"?new Map:void 0;return I_=function(n){if(n===null||!Xte(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Lf(n,arguments,qs(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ns(i,n)},I_(t)}function Lf(t,e,r){return YR()?Lf=Reflect.construct:Lf=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&Ns(u,a.prototype),u},Lf.apply(null,arguments)}function YR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xte(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Ns(t,e){return Ns=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ns(t,e)}function qs(t){return qs=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(t)}var Qte=function(t){Gte(r,t);var e=$te(r);function r(){return Vte(this,r),e.apply(this,arguments)}return Wte(r,[{key:"html",set:function(i){this.innerHTML=i}}]),r}(I_(HTMLElement));customElements.define("html-raw-ui",Qte);var XR='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	[focused] {\n		outline-color: #607d8b;\n		outline-style: dashed;\n		outline-width: 2px;\n		outline-offset: calc(-1 * 2px);\n	}\n\n	[adjustable-type=respond-instruction] {\n		display: none;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div id="errorMessage" class="qs-required-questions-error-box" adjustable-type="error" hidden="[[!showErrors]]">\n	<survey-validator-ui name="summary-error" language="[[language]]"></survey-validator-ui>\n</div>\n\n<flex-mkp class="qs-question-section" column grow wrap>\n	<template is="dom-repeat" items="[[questions]]" as="question">\n		<div class="qs-question-box" adjustable-type="question">\n			<div class="qs-question-error" adjustable-type="question-error" hidden="[[!showErrors]]">\n				<l10n-ui key="template.validation-message-example-template-view-text" language="[[language]]"></l10n-ui>\n			</div>\n			<div class="qs-question-text" adjustable-type="question-description">\n				<!-- [[question.type]].[[question.modifier]] -->\n				<l10n-ui key="template.question-example-template-view-text" language="[[language]]"></l10n-ui>\n			</div>\n			<div\n				id="[[question.id]]"\n				class="question-respond-area"\n				adjustable-type$="[[_getQuestionAdjustableType(question)]]"\n				adjustable-modifier$="[[question.modifier]]">\n				<respond-area-scheme-el question="[[question]]" template="[[template]]"></respond-area-scheme-el>\n			</div>\n		</div>\n	</template>\n</flex-mkp>';function j_(t){return j_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j_(t)}function Zte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ere(t,e,r){return e&&QR(t.prototype,e),r&&QR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B_(t,e)}function B_(t,e){return B_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},B_(t,e)}function rre(t){var e=ore();return function(){var n=Nf(t),i;if(e){var o=Nf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return nre(this,i)}}function nre(t,e){if(e&&(j_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ire(t)}function ire(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ore(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Nf(t){return Nf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Nf(t)}function qf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var go=function(t){tre(r,t);var e=rre(r);function r(){return Zte(this,r),e.apply(this,arguments)}return ere(r,[{key:"_surveyObserver",value:function(i){var o=this;if(!!i){var a=[],s=i.pages;this.questions=[],s&&s.forEach(function(l){l.questions.forEach(function(u){if(u.type!==APP.questionTypes.CODE){if(!a.includes(u.type+"_"+u.modifier)){a.push(u.type+"_"+u.modifier),o.questions.push(u);return}var c=u.type===APP.questionTypes.SINGLECHOICE||u.type===APP.questionTypes.MULTICHOICE,f=u.simpleChoicesViewType&&u.simpleChoicesViewType!==o.template.simpleChoicesViewType;c&&f&&!a.includes("choices_"+u.simpleChoicesViewType)&&(a.push("choices_"+u.simpleChoicesViewType),o.questions.push(u))}})}),requestAnimationFrame(function(){requestAnimationFrame(function(){o.dispatchEvent(new CustomEvent("init"))})})}}},{key:"_getQuestionAdjustableType",value:function(i){return i.type===APP.questionTypes.SINGLECHOICE||i.type===APP.questionTypes.MULTICHOICE?i.simpleChoicesViewType&&i.simpleChoicesViewType!==this.template.simpleChoicesViewType?"respond-choice-alt":"respond-choice":"respond-".concat(i.type)}}]),r}(O);qf(go,"is","survey-page-ui");qf(go,"template",g([XR]));qf(go,"sharedStyles",["survey"]);qf(go,"properties",{survey:{type:Object,observer:"_surveyObserver"},template:{type:Object},language:{type:String},showErrors:{type:Boolean},questions:{type:Array}});customElements.define(go.is,go);var JR='<style>\n	:host {\n		display: block;\n	}\n\n	:host([theme=brightest][type=checkbox]) input::before,\n	:host([theme=brightest][type=checkbox]) input::after {\n		border-color: rgba(255, 255, 255, 1);\n		background: inherit;\n	}\n\n	:host([grow]) {\n		display: block;\n		flex-grow: 1;\n	}\n\n	:host([grow]) input[type="range"] {\n		width: 260px;\n	}\n\n	:host([width-type=small]) {\n		width: 185px;\n	}\n\n	:host([width-type=medium]) {\n		width: 310px;\n	}\n\n	:host([width-type=wide]) {\n		width: 430px;\n	}\n\n	:host([type=range][width-type=small]) {\n		width: 240px;\n	}\n\n	:host([type=range][width-type=medium]) {\n		width: 450px;\n	}\n\n	:host([type=range][width-type=wide]) {\n		width: 540px;\n	}\n\n	radio-button-ui,\n	checkbox-ui {\n		justify-content: center;\n	}\n</style>\n\n<template is="dom-if" if="[[_isType(type, \'time\')]]" restamp>\n	<time-input-ui\n			theme="[[theme]]"\n			border-type="[[borderType]]"\n			input-value="{{value}}"\n			max="[[max]]"\n			min="[[min]]"\n			disabled="[[disabled]]"\n			placeholder="[[placeholder]]"\n			full-theme\n			clear-btn\n	></time-input-ui>\n</template>\n\n<template is="dom-if" if="[[_isType(type, \'date\')]]" restamp>\n	<date-input-ui\n		theme="[[theme]]"\n		border-type="[[borderType]]"\n		value="{{value}}"\n		max="[[max]]"\n		min="[[min]]"\n		format="[[format]]"\n		placeholder="[[placeholder]]"\n		disabled="[[disabled]]"\n		clear-btn\n	></date-input-ui>\n</template>\n\n<template is="dom-if" if="[[_isType(type, \'checkbox\')]]" restamp>\n	<checkbox-ui theme="[[theme]]" checked="{{checked}}" disabled="[[disabled]]" label-position=""></checkbox-ui>\n</template>\n\n<template is="dom-if" if="[[_isType(type, \'radio\')]]" restamp>\n	<radio-button-ui theme="[[theme]]" name="[[name]]" checked="{{checked}}" disabled="[[disabled]]" label-position=""></radio-button-ui>\n</template>\n\n<template is="dom-if" if="[[_isType(type, \'range\')]]" restamp>\n	<range-input-ui\n		value="{{value}}"\n		theme="[[theme]]"\n		slider-type="[[sliderType]]"\n		name="[[name]]"\n		disabled="[[disabled]]"\n		max="[[max]]"\n		min="[[min]]"\n		decimals="[[decimals]]"\n		lines="[[lines]]"\n		snap="[[snap]]"\n		initial-state="[[initial]]"\n		is-builder\n	></range-input-ui>\n</template>\n\n<template is="dom-if" if="[[_isType(type, \'text\', \'number\', \'email\', \'phone\', \'password\', \'url\', \'regex\')]]" restamp>\n	<input-ui\n		type="[[_getInputType(type)]]"\n		theme="[[theme]]"\n		border-type="[[borderType]]"\n		name="[[name]]"\n		disabled="[[disabled]]"\n		autocomplete="[[autocompleteType]]"\n		autofocus="[[autofocus]]"\n		maxlength="[[maxLength]]"\n		minlength="[[minLength]]"\n		pattern="[[pattern]]"\n		placeholder="[[placeholder]]"\n		input-value="[[value]]"\n		decimals="[[decimals]]"\n		clear-btn="[[!_isType(type, \'number\')]]"\n	></input-ui>\n</template>';function M_(t){return M_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M_(t)}function sre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZR(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lre(t,e,r){return e&&ZR(t.prototype,e),r&&ZR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zf(){return typeof Reflect!="undefined"&&Reflect.get?zf=Reflect.get:zf=function(e,r,n){var i=ure(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},zf.apply(this,arguments)}function ure(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=bo(t),t!==null););return t}function cre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&L_(t,e)}function L_(t,e){return L_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},L_(t,e)}function fre(t){var e=hre();return function(){var n=bo(t),i;if(e){var o=bo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return pre(this,i)}}function pre(t,e){if(e&&(M_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dre(t)}function dre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hre(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function bo(t){return bo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bo(t)}function N_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var zs=function(t){cre(r,t);var e=fre(r);function r(){return sre(this,r),e.apply(this,arguments)}return lre(r,[{key:"_isType",value:function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return a.includes(i)}},{key:"_getInputType",value:function(i){var o={password:"password",number:"number",email:"email",phone:"tel",url:"url"};return o[i]||"text"}},{key:"connectedCallback",value:function(){var i=this;zf(bo(r.prototype),"connectedCallback",this).call(this),this.input=this.$["respond-input"],this._grow=function(){var o=i.getBoundingClientRect();i.input.style.width=o.width||260+"px"},this.grow&&setTimeout(this._grow,50)}}]),r}(M);N_(zs,"is","respond-ui");N_(zs,"template",g([JR]));N_(zs,"properties",{name:{type:String},type:{type:String,value:"radio",reflectToAttribute:!0},checked:{type:Boolean,notify:!0,reflectToAttribute:!0},placeholder:{type:String},format:{type:String},value:{type:String,value:"",notify:!0,reflectToAttribute:!0},theme:{type:String,reflectToAttribute:!0},pattern:{type:String},minLenght:{type:Number},maxLenght:{type:Number},decimals:{type:Number},autofocus:{type:Boolean},autocompleteType:{type:String},disabled:{type:Boolean},widthType:{type:String,reflectToAttribute:!0},borderType:{type:String,reflectToAttribute:!0},grow:{type:Boolean},initial:{type:String}});customElements.define(zs.is,zs);var eD='<style>\n	:host {\n		display: flex;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		--heatmap-image-height: initial;\n		--heatmap-image-width: initial;\n		--heatmap-image-grow: initial;\n	}\n\n	#container {\n		position: relative;\n		flex-grow: var(--heatmap-image-grow);\n	}\n\n	:host([readonly]) {\n		pointer-events: none;\n	}\n\n	:host([disabled]) {\n		-webkit-filter: grayscale(0.5);\n		        filter: grayscale(0.5);\n		opacity: 0.8;\n		pointer-events: none;\n	}\n\n	:host([disabled]) .point-container {\n		display: none;\n	}\n\n	.point-container {\n		position: absolute;\n		transform: translate(calc(34px / 2 / -2), calc(34px / 2 / -2));\n		touch-action: manipulation;\n	}\n\n	.point {\n		width: calc(34px / 2);\n		height: calc(34px / 2);\n		border: 2px solid rgba(255, 255, 255, .8);\n		border-radius: 50%;\n		box-sizing: border-box;\n\n		background: rgba(200, 0, 0, 0.5);\n		transition: transform 0.2s;\n		animation: blink 0.2s;\n		cursor: pointer;\n	}\n\n	.point.removing {\n		transform: scale(0);\n	}\n\n	.point-container.dragging {\n		pointer-events: none;\n	}\n\n	.point-container.dragging .point {\n		transform: scale(1.3);\n	}\n\n	image-ui {\n		flex-grow: var(--heatmap-image-grow);\n	}\n\n	image-ui[loading] {\n		height: 100%;\n	}\n\n	@media (min-width: 700px) {\n		image-ui {\n			height: var(--heatmap-image-height);\n			width: var(--heatmap-image-width);\n		}\n	}\n\n	@keyframes blink {\n		0% {\n			transform: scale(0.7);\n		}\n\n		50% {\n			transform: scale(1.3);\n		}\n\n		100% {\n			transform: scale(1);\n		}\n	}\n\n	@media (max-width: 700px), (pointer: coarse) {\n		.point-container {\n			position: absolute;\n			transform: translate(calc(34px / 1.5 / -2), calc(34px / 1.5 / -2));\n		}\n\n		.point {\n			width: calc(34px / 1.5);\n			height: calc(34px / 1.5);\n		}\n	}\n\n	@media (pointer: coarse) {\n		.point-container.dragging .point {\n			transform: scale(2.5);\n		}\n	}\n</style>\n<div id="container">\n	<image-ui id="image" src="[[url]]" on-click="_imageClick"></image-ui>\n</div>';function q_(t){return q_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q_(t)}function yre(t){return _re(t)||bre(t)||gre(t)||vre()}function vre(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gre(t,e){if(!!t){if(typeof t=="string")return z_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z_(t,e)}}function bre(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _re(t){if(Array.isArray(t))return z_(t)}function z_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Fre(t,e,r){return e&&tD(t.prototype,e),r&&tD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hs(){return typeof Reflect!="undefined"&&Reflect.get?Hs=Reflect.get:Hs=function(e,r,n){var i=xre(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Hs.apply(this,arguments)}function xre(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=In(t),t!==null););return t}function Ore(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&H_(t,e)}function H_(t,e){return H_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},H_(t,e)}function Pre(t){var e=Ere();return function(){var n=In(t),i;if(e){var o=In(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Sre(this,i)}}function Sre(t,e){if(e&&(q_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kre(t)}function kre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ere(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function In(t){return In=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},In(t)}function U_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Us=function(t){Ore(r,t);var e=Pre(r);function r(){var n;return wre(this,r),n=e.call(this),n.pointTemplate=document.createElement("template"),n.pointTemplate.innerHTML='\n			<div class="point-container">\n				<div class="point"></div>\n			</div>\n		',n}return Fre(r,[{key:"_render",value:function(){var i=this;!this._naturalSize||!this.points||(this._removeExtraPoints()&&(this.points=this.points.slice()),this._debouncer=ue(this._debouncer,1,function(){i.shadowRoot.querySelectorAll(".point-container").forEach(function(a){i.points.includes(a.point)||(a.querySelector(".point").classList.add("removing"),a.querySelector(".point").addEventListener("transitionend",function(){a.remove()},{once:!0}))});var o=yre(i.shadowRoot.querySelectorAll(".point-container")).map(function(a){return a.point});i.points.forEach(function(a){if(!o.includes(a)){var s=i.pointTemplate.content.cloneNode(!0),l=s.querySelector(".point-container");l.point=a,l.style.left="".concat(i._pointToPercent(a)[0],"%"),l.style.top="".concat(i._pointToPercent(a)[1],"%"),i.$.container.append(s)}})}))}},{key:"_imageClick",value:function(i){!this._naturalSize||(this.points.push(this._normalizePoint([i.offsetX,i.offsetY])),this._removeExtraPoints(),this.points=this.points.slice())}},{key:"_removeExtraPoints",value:function(){if(this.points.length>this.maxClicks)return this.points.splice(0,this.points.length-this.maxClicks),!0}},{key:"_pointToPercent",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return[i[0]/(o?this._naturalSize.width:this.$.container.clientWidth)*100,i[1]/(o?this._naturalSize.height:this.$.container.clientHeight)*100]}},{key:"_normalizePoint",value:function(i){return[Math.round(this._naturalSize.width/this.$.container.clientWidth*i[0]),Math.round(this._naturalSize.height/this.$.container.clientHeight*i[1])]}},{key:"connectedCallback",value:function(){var i=this;Hs(In(r.prototype),"connectedCallback",this).call(this);var o=function(){var l=i.$.image.shadowRoot.querySelector("img");i._naturalSize={width:l.naturalWidth,height:l.naturalHeight}};this.$.image.addEventListener("load",function(){o()});var a;this._onMouseDown=function(s){var l=s.composedPath()[0].closest(".point-container");s.composedPath()[0].composedClosest("heatmap-ui")===i&&(s.type==="mousedown"&&s.preventDefault(),!!l&&(a=l,a.classList.add("dragging")))},this._onMouseMove=function(s){if(!!a){var l;s.type==="touchmove"?l=[s.touches[0].clientX,s.touches[0].clientY]:l=[s.clientX,s.clientY],s.preventDefault();var u=i.$.image.getBoundingClientRect();l=[Math.min(u.width,Math.max(0,l[0]-u.left)),Math.min(u.height,Math.max(0,l[1]-u.top))];var c=i._normalizePoint(l);a.point[0]=c[0],a.point[1]=c[1],l=i._pointToPercent(l,!1),a.style.left="".concat(l[0],"%"),a.style.top="".concat(l[1],"%")}},this._onMouseUp=function(s){!a||(a.classList.remove("dragging"),a=null,i.points=i.points.slice())},document.addEventListener("mousedown",this._onMouseDown),document.addEventListener("mousemove",this._onMouseMove),document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("touchstart",this._onMouseDown),document.addEventListener("touchmove",this._onMouseMove,{passive:!1}),document.addEventListener("touchend",this._onMouseUp)}},{key:"disconnectedCallback",value:function(){Hs(In(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("mousedown",this._onMouseDown),document.removeEventListener("mousemove",this._onMouseMove),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchstart",this._onMouseDown),document.removeEventListener("touchmove",this._onMouseMove,{passive:!1}),document.removeEventListener("touchend",this._onMouseUp)}}]),r}(M);U_(Us,"is","heatmap-ui");U_(Us,"template",g([eD]));U_(Us,"properties",{url:{type:String},points:{type:Array,value:function(){return[]},notify:!0,observer:"_render"},maxClicks:{type:Number,value:3,observer:"_render"},readonly:{type:Boolean,reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},_naturalSize:{type:Object,observer:"_render"}});customElements.define(Us.is,Us);var rD='<img id="img" hidden="[[error]]">\n\n<div class="error" hidden="[[!error]]">\n	<icon-ui icon="alert-octagon" class="error-icon"></icon-ui>\n	<div class="msg"><l10n-ui key="image-ui.image-load-error-text"></l10n-ui></div>\n	<button-ui class="reload-button" square theme="accent" icon="sync" on-click="refresh" loading="[[loading]]"></button-ui>\n</div>\n\n<style>\n	:host {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n	}\n\n	:host([loading]) {\n		min-height: 80px;\n	}\n\n	#img {\n		all: inherit;\n		max-width: 100%;\n	}\n\n	:host([is-ie]) #img {\n		width: 100%;\n		vertical-align: top;\n	}\n\n	:host([is-ie]) .error .msg {\n		left: 50px;\n	}\n\n	.error {\n		display: flex;\n		position: relative;\n		justify-content: center;\n		align-items: center;\n		flex-direction: column;\n		padding: 20px;\n		background-color: #fff;\n	}\n\n	.error .img {\n		opacity: 0.2;\n		object-fit: contain;\n	}\n\n	.error .msg {\n		position: absolute;\n		top: 0;\n		left: 0;\n		width: 100%;\n		height: 100%;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		box-sizing: border-box;\n		padding: 16px;\n\n		font-weight: 400;\n		text-align: center;\n		color: rgba(33, 37, 43, 1);\n	}\n\n	.error-icon {\n		font-size: 220px;\n		color: #607d8b;\n		opacity: 0.2;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	.reload-button {\n		z-index: 1;\n	}\n</style>';function V_(t){return V_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V_(t)}function Are(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rre(t,e,r){return e&&nD(t.prototype,e),r&&nD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hf(){return typeof Reflect!="undefined"&&Reflect.get?Hf=Reflect.get:Hf=function(e,r,n){var i=Dre(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Hf.apply(this,arguments)}function Dre(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=_o(t),t!==null););return t}function Cre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&W_(t,e)}function W_(t,e){return W_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},W_(t,e)}function Ire(t){var e=Mre();return function(){var n=_o(t),i;if(e){var o=_o(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jre(this,i)}}function jre(t,e){if(e&&(V_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bre(t)}function Bre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mre(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function _o(t){return _o=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},_o(t)}function G_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Vs=function(t){Cre(r,t);var e=Ire(r);function r(){var n;return Are(this,r),n=e.call(this),n._rootPath=window.ROOT_PATH||"/",n._loader=document.createElement("loader-ui"),n}return Rre(r,[{key:"_srcObserver",value:function(i,o){!this.error&&this.src===o||!o&&!this.src||this._loadImage(this.src)}},{key:"_loadImage",value:function(i){var o=this,a=this.$.img;if(!i){a.onerror=null,a.src="";return}this.error=!1,this.loading=!0,a.src=i,a.onerror=function(s){if(o.error=!0,o.loading=!1,o._loader.close(),o.src)throw new Error("image-ui don't load src: '".concat(o.src,"'"))},a.onload=function(){o.loading=!1,o._loader.close(),o.dispatchEvent(new CustomEvent("load")),o.dispatchEvent(new CustomEvent("iron-resize",{bubbles:!0,composed:!0}))},this._loader.open(this.shadowRoot)}},{key:"refresh",value:function(){var i=this;this.loading=!0,setTimeout(function(){i._loadImage("".concat(i.src,"?").concat(Date.now()))},500)}},{key:"connectedCallback",value:function(){var i=this;Hf(_o(r.prototype),"connectedCallback",this).call(this),window.addEventListener("online",function(){i.refresh()})}}]),r}(ce(O));G_(Vs,"is","image-ui");G_(Vs,"template",g([rD]));G_(Vs,"properties",{src:{type:String,observer:"_srcObserver"},loading:{type:Boolean,value:!0,reflectToAttribute:!0},error:{value:!1}});customElements.define(Vs.is,Vs);var iD='<style>\n	:host {\n		display: block;\n	}\n\n	.defaults {\n		display: none;\n	}\n\n	:host(:empty) .defaults {\n		display: block;\n	}\n\n	:host(:empty) .custom {\n		display: none;\n	}\n\n	:host([default]) .defaults {\n		display: block;\n	}\n\n	:host([default]) .custom {\n		display: none;\n	}\n</style>\n\n<div class="defaults">\n	<div id="end-message" hidden="[[!is(name, \'end-message\')]]">\n		<div>\n			<div style="text-align: center;">\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.end-message-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.end-message-message-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="inactive-survey" hidden="[[!is(name, \'inactive-survey\')]]">\n		<div>\n			<div style="text-align: center;">\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.inactive-survey-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.inactive-survey-already-completed-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.inactive-survey-please-contact-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="survey-not-available" hidden="[[!is(name, \'survey-not-available\')]]">\n		<div>\n			<div style="text-align: center;">\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.survey-not-available-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.survey-not-available-survey-not-started-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.survey-not-available-please-contact-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="already-completed" hidden="[[!is(name, \'already-completed\')]]">\n		<div>\n			<div style="text-align: center;">\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.already-completed-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.already-completed-thank-you-support-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n			<div style="text-align: center;">\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.already-completed-survey-only-once-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="enter-password" hidden="[[!is(name, \'enter-password\')]]">\n		<div>\n			<div>\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.enter-password-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div>\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.enter-password-invitation-only-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n			<div>\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.enter-password-personal-link-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="password-field" hidden="[[!is(name, \'password-field\')]]">\n		<div>\n			<font size="4">\n				<b>\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.password-field-text" language="[[language]]"></l10n-ui>\n				</b>\n			</font>\n		</div>\n	</div>\n	<div id="restart-message" hidden="[[!is(name, \'restart-message\')]]">\n		<div style="text-align: center;">\n			<div>\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.restart-message-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n			<br>\n			<br>\n			<br>\n			<div>\n				<div>\n					<font size="4">\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.restart-message-description-text" language="[[language]]"></l10n-ui>\n					</font>\n				</div>\n				<br>\n			</div>\n			<div>\n				<font size="4" color="#e53935">\n					<l10n-ui raw="[[raw]]" props="time" time="{{time}}" key="survey-definition-ui.restart-message-timeout-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="access-denied" hidden="[[!is(name, \'access-denied\')]]">\n		<div>\n			<div>\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.access-denied-title-text" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n		<br>\n		<div>\n			<div>\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.access-denied-please-check-password-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n			<div>\n				<font size="4">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.access-denied-please-contact-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="unsubscribe-message" hidden="[[!is(name, \'unsubscribe-message\')]]">\n		<div>\n			<div>\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.unsubscribe-title-text" props="email" email="[[email]]" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="unsubscribe-confirm-message" hidden="[[!is(name, \'unsubscribe-confirm-message\')]]">\n		<div>\n			<div>\n				<font size="5">\n					<b>\n						<l10n-ui raw="[[raw]]" key="survey-definition-ui.unsubscribe-confirm-title-text" props="email" email="[[email]]" language="[[language]]"></l10n-ui>\n					</b>\n				</font>\n			</div>\n		</div>\n	</div>\n	<div id="auto-end-survey-message" hidden="[[!is(name, \'auto-end-survey-message\')]]">\n		<div style="text-align: center;">\n			<div>\n				<font size="4">\n					<l10n-ui raw="[[raw]]" prop="time" time="{{time}}" key="survey-definition-ui.auto-end-survey-message-timeout-text" language="[[language]]"></l10n-ui>\n				</font>\n			</div>\n		</div>\n	</div>\n\n	<div id="email-subject:double-opt-in-request" hidden="[[!is(name, \'email-subject:double-opt-in-request\')]]"><l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-request-email-subject-text" language="[[language]]"></l10n-ui></div>\n\n	<div id="email-template:double-opt-in-request" hidden="[[!is(name, \'email-template:double-opt-in-request\')]]">\n		<br><br>\n		<l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-request-email-thank-you-for-taking-survey-text" language="[[language]]"></l10n-ui>\n		<br><br>\n		<l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-request-email-please-click-on-link-text" language="[[language]]"></l10n-ui>\n		<br><br>\n		<a href="{OPT_IN_LINK}"><l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-request-email-confirm-link" language="[[language]]"></l10n-ui></a>\n		<br><br>\n		<l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-request-email-thank-you-text" language="[[language]]"></l10n-ui>\n	</div>\n\n	<div id="double-opt-in-success-message" hidden="[[!is(name, \'double-opt-in-success-message\')]]">\n		<div style="text-align: center;">\n			<font class="qs-insertion" size="5"><b class="qs-insertion"><br></b></font>\n		</div>\n		<div style="text-align: center;">\n			<font class="qs-insertion" size="5"><b class="qs-insertion"><l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-success-message-title-text" language="[[language]]"></l10n-ui></b></font>\n		</div>\n		<div style="text-align: center;">\n			<font class="qs-insertion" size="5"><b class="qs-insertion"><br></b></font>\n		</div>\n		<div style="text-align: center;"><l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-success-message-your-consent-saved-text" language="[[language]]"></l10n-ui></div>\n		<div style="text-align: center;"><br></div>\n		<div style="text-align: center;" class="qs-insertion"><l10n-ui raw="[[raw]]" key="survey-definition-ui.double-opt-in-success-message-you-can-close-window-text" language="[[language]]"></l10n-ui></div>\n	</div>\n\n	<div id="quota-screenout-message" hidden="[[!is(name, \'quota-screenout-message\')]]">\n		<div style="text-align: center;">\n			<font class="qs-whitelist" size="5">\n				<b class="qs-whitelist">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.quota-screenout-message-title-text" language="[[language]]"></l10n-ui>\n				</b>\n			</font>\n			<br>\n			<br>\n			<font class="qs-whitelist" size="4">\n				<l10n-ui raw="[[raw]]" key="survey-definition-ui.quota-screenout-message-desccription-text" language="[[language]]"></l10n-ui>\n			</font>\n		</div>\n	</div>\n\n	<div id="quota-full-message" hidden="[[!is(name, \'quota-full-message\')]]">\n		<div style="text-align: center;">\n			<font class="qs-whitelist" size="5">\n				<b class="qs-whitelist">\n					<l10n-ui raw="[[raw]]" key="survey-definition-ui.quota-full-message-title-text" language="[[language]]"></l10n-ui>\n				</b>\n			</font>\n			<br>\n			<br>\n			<font class="qs-whitelist" size="4">\n				<l10n-ui raw="[[raw]]" key="survey-definition-ui.quota-full-message-desccription-text" language="[[language]]"></l10n-ui>\n			</font>\n		</div>\n	</div>\n\n	<div id="loop-question" hidden="[[!is(name, \'loop-question\')]]">\n		<l10n-ui raw="[[raw]]" key="loops.question-default-description" language="[[language]]"></l10n-ui>\n	</div>\n\n	<div id="loop-break-choice" hidden="[[!is(name, \'loop-break-choice\')]]">\n		<l10n-ui raw="[[raw]]" key="loops.break-choice-default-label" language="[[language]]"></l10n-ui>\n	</div>\n</div>\n\n<div class="custom">\n	<slot></slot>\n</div>';function $_(t){return $_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$_(t)}function Nre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qre(t,e,r){return e&&oD(t.prototype,e),r&&oD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Uf(){return typeof Reflect!="undefined"&&Reflect.get?Uf=Reflect.get:Uf=function(e,r,n){var i=zre(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Uf.apply(this,arguments)}function zre(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=wo(t),t!==null););return t}function Hre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K_(t,e)}function K_(t,e){return K_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},K_(t,e)}function Ure(t){var e=Gre();return function(){var n=wo(t),i;if(e){var o=wo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Vre(this,i)}}function Vre(t,e){if(e&&($_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wre(t)}function Wre(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gre(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function wo(t){return wo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wo(t)}function Y_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ws=function(t){Hre(r,t);var e=Ure(r);function r(){return Nre(this,r),e.apply(this,arguments)}return qre(r,[{key:"connectedCallback",value:function(){var i=this;Uf(wo(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.default=i.innerHTML===""}),yr(this,function(){var o=i.innerHTML;o=o.replace(/{time}/gi,i.time),o=o.replace(/{email}/gi,i.email),i.innerHTML=o})}},{key:"getDefinitionValue",value:function(i){var o=this.shadowRoot.querySelector("[id='".concat(i,"']"));return o?o.innerHTML.replace(/<\/?l10n-ui[^>]*>/g,""):""}}]),r}(O);Y_(Ws,"is","survey-definition-ui");Y_(Ws,"template",g([iD]));Y_(Ws,"properties",{name:{type:String,value:"",reflectToAttribute:!0},language:{type:String},email:{type:String,value:"{email}"},time:{type:String,value:"{time}"},default:{type:Boolean,reflectToAttribute:!0},raw:{type:Boolean}});customElements.define(Ws.is,Ws);var aD='<style>\n	:host {\n		display: block;\n	}\n\n	.defaults {\n		display: none;\n	}\n\n	:host(:empty) .defaults {\n		display: block;\n	}\n\n	:host(:empty) .custom {\n		display: none;\n	}\n\n	:host([default]) .defaults {\n		display: block;\n	}\n\n	:host([default]) .custom {\n		display: none;\n	}\n</style>\n\n<div class="defaults">\n	<div id="summary-error" hidden="[[!is(name, \'summary-error\')]]">\n		<div>\n			<l10n-ui key="survey-validator-ui.summary-error-not-answered-text" language="[[language]]" raw="[[raw]]"></l10n-ui>\n		</div>\n		<br>\n		<div>\n			<l10n-ui key="survey-validator-ui.summary-error-please-answer-text" language="[[language]]" raw="[[raw]]"></l10n-ui>\n		</div>\n		<div>\n			<l10n-ui key="survey-validator-ui.summary-error-thank-you-text" language="[[language]]" raw="[[raw]]"></l10n-ui>\n		</div>\n	</div>\n	<div id="validator-is-required" hidden="[[!is(name, \'validator-is-required\')]]"><l10n-ui key="survey-validator-ui.validator-is-required-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-min-choice" hidden="[[!is(name, \'validator-min-choice\')]]"><l10n-ui key="survey-validator-ui.validator-min-choice-text" props="min" min="[[min]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-max-choice" hidden="[[!is(name, \'validator-max-choice\')]]"><l10n-ui key="survey-validator-ui.validator-max-choice-text" props="max" max="[[max]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-text-required" hidden="[[!is(name, \'validator-text-required\')]]"><l10n-ui key="survey-validator-ui.validator-text-required-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-text-unselected" hidden="[[!is(name, \'validator-text-unselected\')]]"><l10n-ui key="survey-validator-ui.validator-text-unselected-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-text-min" hidden="[[!is(name, \'validator-text-min\')]]"><l10n-ui key="survey-validator-ui.validator-text-min-text" props="minChars, charCount" min-chars="[[minChars]]" char-count="[[charCount]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-text-max" hidden="[[!is(name, \'validator-text-max\')]]"><l10n-ui key="survey-validator-ui.validator-text-max-text" props="maxChars, charCount" max-chars="[[maxChars]]" char-count="[[charCount]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-number-format" hidden="[[!is(name, \'validator-number-format\')]]"><l10n-ui key="survey-validator-ui.validator-number-format-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-number-min" hidden="[[!is(name, \'validator-number-min\')]]"><l10n-ui key="survey-validator-ui.validator-number-min-text" props="min" min="[[min]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-number-max" hidden="[[!is(name, \'validator-number-max\')]]"><l10n-ui key="survey-validator-ui.validator-number-max-text" props="max" max="[[max]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-number-decimal" hidden="[[!is(name, \'validator-number-decimal\')]]"><l10n-ui key="survey-validator-ui.validator-number-decimal-text" props="num" num="[[num]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-password-length" hidden="[[!is(name, \'validator-password-length\')]]"><l10n-ui key="survey-validator-ui.validator-password-length-text" props="min" min="[[min]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-date-format" hidden="[[!is(name, \'validator-date-format\')]]"><l10n-ui key="survey-validator-ui.validator-date-format-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-date-min" hidden="[[!is(name, \'validator-date-min\')]]"><l10n-ui key="survey-validator-ui.validator-date-min-text" props="minDate" min-date="[[minDate]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-date-max" hidden="[[!is(name, \'validator-date-max\')]]"><l10n-ui key="survey-validator-ui.validator-date-max-text" props="maxDate" max-date="[[maxDate]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-url-format" hidden="[[!is(name, \'validator-url-format\')]]"><l10n-ui key="survey-validator-ui.validator-url-format-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-email-format" hidden="[[!is(name, \'validator-email-format\')]]"><l10n-ui key="survey-validator-ui.validator-email-format-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-custom-format" hidden="[[!is(name, \'validator-custom-format\')]]"><l10n-ui key="survey-validator-ui.validator-custom-format-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n\n	<div id="validator-constant-sum-min" hidden="[[!is(name, \'validator-constant-sum-min\')]]"><l10n-ui key="survey-validator-ui.validator-constant-sum-min" props="min" min="[[min]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-constant-sum-max" hidden="[[!is(name, \'validator-constant-sum-max\')]]"><l10n-ui key="survey-validator-ui.validator-constant-sum-max" props="max" max="[[max]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n\n	<div id="validator-upload-size-max" hidden="[[!is(name, \'validator-upload-size-max\')]]"><l10n-ui key="survey-validator-ui.validator-upload-size-max-text" props="maxSize" max-size="[[maxSize]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-files-min" hidden="[[!is(name, \'validator-upload-files-min\')]]"><l10n-ui key="survey-validator-ui.validator-upload-files-min-text" props="minFiles" min-files="[[minFiles]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-files-max" hidden="[[!is(name, \'validator-upload-files-max\')]]"><l10n-ui key="survey-validator-ui.validator-upload-files-max-text" props="maxFiles" max-files="[[maxFiles]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-format-custom" hidden="[[!is(name, \'validator-upload-format-custom\')]]"><l10n-ui key="survey-validator-ui.validator-upload-format-custom-text" props="fileCustomFormat" custom-format="[[fileCustomFormat]]" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-format-pdf" hidden="[[!is(name, \'validator-upload-format-pdf\')]]"><l10n-ui key="survey-validator-ui.validator-upload-format-pdf-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-format-text" hidden="[[!is(name, \'validator-upload-format-text\')]]"><l10n-ui key="survey-validator-ui.validator-upload-format-text-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-format-graphic" hidden="[[!is(name, \'validator-upload-format-graphic\')]]"><l10n-ui key="survey-validator-ui.validator-upload-format-graphic-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-format-spreadsheet" hidden="[[!is(name, \'validator-upload-format-spreadsheet\')]]"><l10n-ui key="survey-validator-ui.validator-upload-format-spreadsheet-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n	<div id="validator-upload-failed" hidden="[[!is(name, \'validator-upload-failed\')]]"><l10n-ui key="survey-validator-ui.validator-upload-failed-text" language="[[language]]" raw="[[raw]]"></l10n-ui></div>\n</div>\n\n<div id="custom" class="custom">\n	<slot></slot>\n</div>';function X_(t){return X_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X_(t)}function Kre(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Yre(t,e,r){return e&&sD(t.prototype,e),r&&sD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Vf(){return typeof Reflect!="undefined"&&Reflect.get?Vf=Reflect.get:Vf=function(e,r,n){var i=Xre(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Vf.apply(this,arguments)}function Xre(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Fo(t),t!==null););return t}function Qre(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Q_(t,e)}function Q_(t,e){return Q_=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Q_(t,e)}function Jre(t){var e=tne();return function(){var n=Fo(t),i;if(e){var o=Fo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Zre(this,i)}}function Zre(t,e){if(e&&(X_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ene(t)}function ene(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Fo(t){return Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fo(t)}function J_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Gs=function(t){Qre(r,t);var e=Jre(r);function r(){return Kre(this,r),e.apply(this,arguments)}return Yre(r,[{key:"connectedCallback",value:function(){var i=this;Vf(Fo(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.default=i.innerHTML===""}),yr(this,function(){var o=i.innerHTML;o=o.replace(/{max}/gi,i.max),o=o.replace(/{min}/gi,i.min),o=o.replace(/{min-chars}/gi,i.minChars),o=o.replace(/{max-chars}/gi,i.maxChars),o=o.replace(/{min-date}/gi,i.minDate),o=o.replace(/{max-date}/gi,i.maxDate),o=o.replace(/{char-count}/gi,i.charCount),o=o.replace(/{num}/gi,i.num),o=o.replace(/{sum}/gi,i.num),o=o.replace(/{max-size}/gi,i.maxSize),i.innerHTML=o})}},{key:"getValidatorValue",value:function(i){var o=this.shadowRoot.querySelector("#"+i);if(o)return o.innerHTML.replace(/<\/?l10n-ui[^>]*>/g,"")}}]),r}(O);J_(Gs,"is","survey-validator-ui");J_(Gs,"template",g([aD]));J_(Gs,"properties",{name:{type:String,value:"",reflectToAttribute:!0},language:{type:String},max:{type:String,value:"{max}"},min:{type:String,value:"{min}"},minChars:{type:String,value:"{min-chars}"},maxChars:{type:String,value:"{max-chars}"},charCount:{type:String,value:"{char-count}"},num:{type:String,value:"{num}"},sum:{type:String,value:"{sum}"},minDate:{type:String,value:"{min-date}"},maxDate:{type:String,value:"{max-date}"},minFiles:{type:String,value:"{min-files}"},maxFiles:{type:String,value:"{max-files}"},fileCustomFormat:{type:String,value:"{custom-format}"},maxSize:{type:String,value:"{max-size}"},default:{type:Boolean,reflectToAttribute:!0},raw:{type:Boolean,value:!1}});customElements.define(Gs.is,Gs);var lD='<style>\n	:host {\n		display: block;\n	}\n\n	flex-mkp {\n		height: 34px;\n		margin: 0;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n<template is="dom-if" if="[[is(question.type, \'signature\')]]" restamp>\n	<signature-ui background-path="[[question.props.backgroundPath]]" sign-color="[[question.props.signColor]]"></signature-ui>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'single-choice\', \'multi-choice\')]]" restamp>\n	<template is="dom-repeat" items="[[_scales]]" as="scale">\n		<simple-list-ui\n			modifier="[[question.modifier]]"\n			column-count="[[scale.numberOfColumns]]"\n			hidden="[[scale.hidden]]"\n			button-mode$="[[_getButtonMode(template, question)]]"\n		>\n			<template is="dom-if" if="[[question.labelList.showLabels]]" restamp>\n				<template is="dom-if" if="[[is(question.modifier, \'row\')]]" restamp>\n					<template is="dom-repeat" items="[[question.labelList.list.items]]">\n						<span slot="labels"><html-raw-ui html="[[item.label]]"></html-raw-ui></span>\n					</template>\n				</template>\n			</template>\n			<template is="dom-repeat" items="[[scale.items]]" as="option">\n				<simple-item-ui hidden="[[option.hidden]]" highlight="[[option.highlight]]" button-mode$="[[_getButtonMode(template, question)]]" checked="[[option.isPreset]]">\n					<span slot="label"><html-raw-ui html="[[option.label]]"></html-raw-ui></span>\n					<span slot="control">\n						<template is="dom-if" if="[[is(\'multi-choice\', question.type)]]" restamp>\n							<checkbox-ui theme="survey" name="[[option.id]]" checked="[[option.isPreset]]"></checkbox-ui>\n						</template>\n						<template is="dom-if" if="[[is(\'single-choice\', question.type)]]" restamp>\n							<radio-button-ui theme="survey" name="[[question.id]]" checked="[[option.isPreset]]"></radio-button-ui>\n						</template>\n					</span>\n					<template is="dom-if" if="[[option.hasCustomField]]" restamp>\n						<span slot="other">\n							<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[option.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n						</span>\n					</template>\n					<template is="dom-if" if="[[option.optionPrefix]]" restamp>\n						<span slot="prefix">\n							[[option.optionPrefix]]\n						</span>\n					</template>\n					<template is="dom-if" if="[[option.optionPostfix]]" restamp>\n						<span slot="postfix">\n							[[option.optionPostfix]]\n						</span>\n					</template>\n				</simple-item-ui>\n			</template>\n		</simple-list-ui>\n	</template>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'matrix\')]]" restamp>\n	<template is="dom-if" if="[[is(question.modifier, \'simple\')]]" restamp>\n		<matrix-scheme-simple-el mobile="[[matrixMobileViewType]]" question="[[question]]" template="[[question]]"></matrix-scheme-simple-el>\n	</template>\n	<template is="dom-if" if="[[is(question.modifier, \'side-by-side\')]]" restamp>\n		<matrix-scheme-sbs-el mobile="[[matrixMobileViewType]]" question="[[question]]" template="[[question]]"></matrix-scheme-sbs-el>\n	</template>\n	<template is="dom-if" if="[[is(question.modifier, \'bipolar\')]]" restamp>\n		<matrix-scheme-bpl-el mobile="[[matrixMobileViewType]]" question="[[question]]" template="[[template]]"></matrix-scheme-bpl-el>\n	</template>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'text-input\')]]" restamp>\n	<template is="dom-if" if="[[is(\'single-line\', question.modifier)]]" restamp>\n		<simple-list-ui>\n			<form-item-ui\n				highlight="[[question.props.singleLineItem.highlight]]"\n				width-type="[[question.props.widthType]]"\n				direction="right"\n			>\n				<span slot="control">\n					<respond-ui\n						theme="survey"\n						border-type="[[template.inputBorderType]]"\n						type="[[question.props.singleLineItem.respondType]]"\n						placeholder="[[question.details.text-input.singleLineItem.details.form.placeholder]]"\n						value="[[question.details.text-input.singleLineItem.details.form.initialValue]]"\n					></respond-ui>\n				</span>\n				<template is="dom-if" if="[[question.details.text-input.singleLineItem.hasCustomField]]" restamp>\n					<span slot="other">\n						<input-ui\n							placeholder="[[question.details.text-input.singleLineItem.customFieldPlaceholder]]"\n							clear-btn\n							theme="survey"\n							border-type="[[template.inputBorderType]]"\n						></input-ui>\n					</span>\n				</template>\n				<template is="dom-if" if="[[question.details.text-input.singleLineItem.optionPrefix]]" restamp>\n					<span slot="prefix">\n						[[question.details.text-input.singleLineItem.optionPrefix]]\n					</span>\n				</template>\n				<template is="dom-if" if="[[question.details.text-input.singleLineItem.optionPostfix]]" restamp>\n					<span slot="postfix">\n						[[question.details.text-input.singleLineItem.optionPostfix]]\n					</span>\n				</template>\n				<span slot="not-applicable" hidden="[[!question.notApplicable]]">\n					<not-applicable-el>[[question.details.text-input.notApplicableText]]</not-applicable-el>\n				</span>\n			</form-item-ui>\n		</simple-list-ui>\n	</template>\n	<template is="dom-if" if="[[is(question.modifier, \'multiline\')]]" restamp>\n		<template is="dom-repeat" items="[[_scales]]" as="scale">\n			<div hidden="[[scale.hidden]]">\n				<template is="dom-repeat" items="[[scale.items]]" as="option" hidden="[[scale.hidden]]">\n					<div hidden="[[option.hidden]]">\n						<textarea-ui\n							theme="survey"\n							value="[[question.props.initialValue]]"\n							placeholder="[[question.props.placeholder]]"\n							border-type="[[template.inputBorderType]]"\n							show-entered="[[question.props.showEntered]]"\n							show-left="[[question.props.showLeft]]"\n							min-length="[[question.props.minLength]]"\n							max-length="[[question.props.maxLength]]"\n						></textarea-ui>\n					</div>\n				</template>\n			</div>\n		</template>\n	</template>\n	<template is="dom-if" if="[[is(question.modifier, \'form\')]]" restamp>\n		<template is="dom-repeat" items="[[_statements]]" as="statementGroup">\n			<simple-list-ui modifier="form" hidden="[[statementGroup.hidden]]">\n				<template is="dom-repeat" items="[[statementGroup.items]]" as="statement">\n					<form-item-ui hidden="[[statement.hidden]]" highlight="[[statement.highlight]]" width-type="[[question.props.widthType]]" direction="left">\n						<span slot="label"><html-raw-ui html="[[statement.label]]"></html-raw-ui></span>\n						<span slot="control">\n							<respond-ui\n								theme="survey"\n								border-type="[[template.inputBorderType]]"\n								type="[[statement.respondType]]"\n								placeholder="[[statement.details.form.placeholder]]"\n								value="[[statement.details.form.initialValue]]"\n							></respond-ui>\n						</span>\n						<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n							<span slot="other">\n								<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n							</span>\n						</template>\n						<template is="dom-if" if="[[statement.optionPrefix]]" restamp>\n							<span slot="prefix">\n								[[statement.optionPrefix]]\n							</span>\n						</template>\n						<template is="dom-if" if="[[statement.optionPostfix]]" restamp>\n							<span slot="postfix">\n								[[statement.optionPostfix]]\n							</span>\n						</template>\n					</form-item-ui>\n				</template>\n			</simple-list-ui>\n		</template>\n	</template>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'sliders\')]]" restamp>\n\n	<template is="dom-if" if="[[is(question.modifier, \'sliders\', \'gradient-sliders\', \'balks\')]]" restamp>\n		<range-scheme-sliders-el\n			statements="[[_statements]]"\n			scales="[[_scales]]"\n			mobile="[[matrixMobileViewType]]"\n			question="[[question]]"\n			show-bottom-digital-scale="[[_showBottomDigitalScale]]"\n		></range-scheme-sliders-el>\n	</template>\n\n	<template is="dom-if" if="[[is(question.modifier, \'ratings\')]]" restamp>\n		<range-scheme-rarings-el\n			statements="[[_statements]]"\n			scales="[[_scales]]"\n			mobile="[[matrixMobileViewType]]"\n			question="[[question]]"\n		></range-scheme-rarings-el>\n	</template>\n\n	<template is="dom-if" if="[[is(question.modifier, \'emotions\')]]" restamp>\n		<range-scheme-emotions-el\n			statements="[[_statements]]"\n			scales="[[_scales]]"\n			mobile="[[matrixMobileViewType]]"\n			question="[[question]]"\n		></range-scheme-emotions-el>\n	</template>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'autocomplete\')]]" restamp>\n	<autocomplete-ui\n		theme="survey"\n		border-type="[[template.inputBorderType]]"\n		initial-message="[[question.props.initialMessage]]"\n		not-found-message="[[question.props.notFoundMessage]]"\n		add-new-message="[[question.props.addNewMessage]]"\n		multi="[[is(\'multiple-answers\', question.modifier)]]"\n		customs-allowed="[[question.props.customsAllowed]]"\n		data="[[_autocompleteData]]"\n	></autocomplete-ui>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'dropdown\')]]" restamp>\n	<select-ui theme="survey" border-type="[[template.inputBorderType]]" direction-data="[[_scales]]">\n		<span slot="others">\n			<template is="dom-repeat" items="[[_scales]]" as="list">\n				<template is="dom-repeat" items="[[get(list.items, _scales)]]">\n					<template is="dom-if" if="[[item.hasCustomField]]">\n						<input-ui\n							hidden\n							theme="survey"\n							name$="[[item.id]]"\n							for$="[[item.id]]"\n							placeholder="[[item.customFieldPlaceholder]]"\n							border-type="around"\n						></input-ui>\n					</template>\n				</template>\n			</template>\n		</span>\n	</select-ui>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'heatmap\')]]" restamp>\n	<heatmap-ui theme="survey" url="[[question.props.url]]" max-clicks="[[question.optionLists.0.maxSelections]]"></heatmap-ui>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'file-upload\')]]" restamp>\n	<file-upload-ui\n		theme="survey"\n		max-size="[[question.prop.maxFileSize]]"\n		max-files="[[question.optionLists.0.maxSelections]]"\n		min-files="[[question.optionLists.0.minSelections]]"\n	></file-upload-ui>\n</template>\n\n<template is="dom-if" if="[[is(question.type, \'sorting\')]]" restamp>\n	<rank-order-ui\n		max-answers="[[question.optionLists.0.maxSelections]]"\n		not-applicable-enabled="[[question.notApplicable]]"\n		items="[[_getRankOrderItems(question)]]"\n		answered="[[_getRankOrderAnswered(question)]]"\n	>\n		<span slot="not-applicable">[[question.props.notApplicableText]]</span>\n	</rank-order-ui>\n</template>';var uD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	@media (min-width: 700px) {\n		.show-on-mobile {\n			display: none !important;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<matrix-ui type="[[mobile]]" bulky="[[question.details.matrix.isBulky]]">\n	<matrix-row-el header type="[[mobile]]" sticky="[[question.props.stickyHeader]]">\n		<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n			<matrix-scale-el header hidden="[[scale.hidden]]" type="[[mobile]]" scale-type="[[scale.scaleType]]">\n				<template is="dom-repeat" items="[[scale.items]]" as="option">\n					<matrix-item-el header hidden="[[option.hidden]]" type="[[mobile]]">\n						<matrix-header-item-el rotate="[[!question.details.matrix.isBulky]]" highlight="[[option.highlight]]">\n							<html-raw-ui html="[[option.label]]"></html-raw-ui>\n						</matrix-header-item-el>\n					</matrix-item-el>\n				</template>\n			</matrix-scale-el>\n		</template>\n		<span slot="label-left">\n			<matrix-item-el type$="[[mobile]]">\n				<matrix-header-item-el rotate="[[!question.details.matrix.isBulky]]"></matrix-header-item-el>\n			</matrix-item-el>\n		</span>\n	</matrix-row-el>\n	<template is="dom-repeat" items="[[question.statementLists]]" as="statementGroup">\n		<template is="dom-if" if="[[!statementGroup.hidden]]" restamp>\n			<template is="dom-repeat" items="[[statementGroup.items]]" as="statement" hidden="[[statementGroup.hidden]]">\n				<matrix-row-el highlight="[[statement.highlight]]" hidden="[[statement.hidden]]" type="[[mobile]]">\n					<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n						<template is="dom-if" if="[[!scale.hidden]]" restamp>\n							<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n								<template is="dom-if" if="[[!is(mobile, \'slide\')]]" restamp>\n									<div grow class="show-on-mobile">\n										<range-grid-header-el grow item-count="5">\n											<template is="dom-repeat" items="[[question.optionList.items]]">\n												<span class="qs-slider-option-text">[[item.label]]</span>\n											</template>\n										</range-grid-header-el>\n									</div>\n								</template>\n							</template>\n							<matrix-scale-el type$="[[mobile]]">\n								<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n									<range-input-ui\n										class="qs-variable"\n										theme="survey"\n										min="0"\n										max="100"\n										initial-state="50"\n										type="range"\n										grow=""\n										slider-type="slider"\n									></range-input-ui>\n								</template>\n								<template is="dom-if" if="[[!is(scale.scaleType, \'range\')]]" restamp>\n									<template is="dom-repeat" items="[[scale.items]]" as="option">\n										<matrix-item-el hidden="[[option.hidden]]" highlight$="[[option.highlight]]" type="[[mobile]]">\n											<simple-item-ui direction="inside" no-label>\n												<span slot="label">\n													<html-raw-ui html="[[option.label]]"></html-raw-ui>\n												</span>\n												<span slot="control">\n													<respond-ui theme="survey" border-type="[[template.inputBorderType]]" name="[[statement.id]]" type="[[scale.scaleType]]"></respond-ui>\n												</span>\n											</simple-item-ui>\n										</matrix-item-el>\n									</template>\n								</template>\n							</matrix-scale-el>\n						</template>\n					</template>\n					<span slot="label-left">\n						<simple-item-ui empty="">\n							<span slot="label">\n								<html-raw-ui html="[[statement.label]]"></html-raw-ui>\n							</span>\n							<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n								<span slot="other">\n									<input-ui\n										theme="survey"\n										border-type="[[template.inputBorderType]]"\n										placeholder="[[statement.customFieldPlaceholder]]"\n										clear-btn\n										valid\n										show-errors\n									></input-ui>\n								</span>\n							</template>\n						</simple-item-ui>\n					</span>\n					<span slot="label-right">\n						<simple-item-ui empty="" right="">\n							<span slot="label">\n								<html-raw-ui html="[[statement.details.bpl-matrix.bplLabel]]"></html-raw-ui>\n							</span>\n						</simple-item-ui>\n					</span>\n				</matrix-row-el>\n			</template>\n		</template>\n	</template>\n</matrix-ui>';function Z_(t){return Z_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z_(t)}function cD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ine(t,e,r){return e&&cD(t.prototype,e),r&&cD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function one(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ane(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&e0(t,e)}function e0(t,e){return e0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},e0(t,e)}function sne(t){var e=cne();return function(){var n=Wf(t),i;if(e){var o=Wf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return lne(this,i)}}function lne(t,e){if(e&&(Z_(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return une(t)}function une(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function cne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Wf(t){return Wf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Wf(t)}function Gf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var xo=function(t){ane(r,t);var e=sne(r);function r(){return one(this,r),e.apply(this,arguments)}return ine(r)}(O);Gf(xo,"is","matrix-scheme-simple-el");Gf(xo,"template",g([uD]));Gf(xo,"sharedStyles",["survey"]);Gf(xo,"properties",{question:{type:Object},mobile:{type:String}});customElements.define(xo.is,xo);var fD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<template sbs-matrix is="dom-if" if="[[question.details.matrix.isBulky]]" restamp>\n	<matrix-ui sbs-matrix type="[[mobile]]" bulky$="[[question.details.matrix.isBulky]]" swap$="[[question.details.matrix.swapped]]">\n		<matrix-row-el header sticky$="[[question.props.stickyHeader]]">\n			<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n				<matrix-scale-el header list-header hidden="[[scale.hidden]]" scale-type$="[[scale.scaleType]]">\n					<html-raw-ui html="[[scale.label]]"></html-raw-ui>\n				</matrix-scale-el>\n			</template>\n			<span slot="label-left">\n				<matrix-item-el>\n					<matrix-header-item-el highlight="[[option.highlight]]" rotate$="[[!question.details.matrix.isBulky]]"></matrix-header-item-el>\n				</matrix-item-el>\n			</span>\n		</matrix-row-el>\n		<matrix-row-el header sticky$="[[question.props.stickyHeader]]">\n			<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n				<matrix-scale-el header hidden="[[scale.hidden]]" scale-type$="[[scale.scaleType]]">\n					<template is="dom-repeat" items="[[scale.items]]" as="option">\n						<matrix-item-el header hidden="[[option.hidden]]">\n							<matrix-header-item-el highlight="[[option.highlight]]" rotate$="[[!question.details.matrix.isBulky]]">\n								<html-raw-ui html="[[option.label]]"></html-raw-ui>\n							</matrix-header-item-el>\n						</matrix-item-el>\n					</template>\n				</matrix-scale-el>\n			</template>\n			<span slot="label-left">\n				<matrix-item-el>\n					<matrix-header-item-el rotate$="[[!question.details.matrix.isBulky]]"></matrix-header-item-el>\n				</matrix-item-el>\n			</span>\n		</matrix-row-el>\n		<template is="dom-repeat" items="[[question.statementLists]]" as="statementGroup">\n			<template is="dom-if" if="[[!statementGroup.hidden]]" restamp>\n				<template is="dom-repeat" items="[[statementGroup.items]]" as="statement" hidden="[[statementGroup.hidden]]">\n					<matrix-row-el highlight$="[[statement.highlight]]" hidden="[[statement.hidden]]">\n						<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n							<template is="dom-if" if="[[!scale.hidden]]" restamp>\n								<matrix-scale-el>\n									<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n										<range-input-ui\n												class="qs-variable"\n												theme="survey"\n												min="0"\n												max="100"\n												initial-state="50"\n												type="range"\n												grow=""\n												slider-type="slider">\n										</range-input-ui>\n									</template>\n									<template is="dom-if" if="[[!is(scale.scaleType, \'range\')]]" restamp>\n										<template is="dom-repeat" items="[[scale.items]]" as="option">\n											<matrix-item-el respond-type$="[[scale.scaleType]]" highlight$="[[option.highlight]]" hidden="[[option.hidden]]">\n												<simple-item-ui direction="inside" no-label input$="[[is(scale.scaleType, \'text\', \'number\', \'date\')]]">\n													<span slot="label">\n														<html-raw-ui html="[[option.label]]"></html-raw-ui>\n													</span>\n													<span slot="control">\n														<respond-ui theme="survey" border-type="[[template.inputBorderType]]" name="[[statement.id]]" type="[[scale.scaleType]]"></respond-ui>\n													</span>\n												</simple-item-ui>\n											</matrix-item-el>\n										</template>\n									</template>\n								</matrix-scale-el>\n							</template>\n						</template>\n						<span slot="label-left">\n							<simple-item-ui empty="">\n								<span slot="label">\n									<html-raw-ui html="[[statement.label]]"></html-raw-ui>\n								</span>\n								<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n									<span slot="other">\n										<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn="" valid="" show-errors=""></input-ui>\n									</span>\n								</template>\n							</simple-item-ui>\n						</span>\n						<span slot="label-right">\n							<simple-item-ui empty="" right="">\n								<span slot="label">\n									<html-raw-ui html="[[statement.details.bpl-matrix.bplLabel]]"></html-raw-ui>\n								</span>\n							</simple-item-ui>\n						</span>\n					</matrix-row-el>\n				</template>\n			</template>\n		</template>\n	</matrix-ui>\n</template>\n<template is="dom-if" if="[[!question.details.matrix.isBulky]]" restamp>\n	<matrix-ui sbs-matrix type="[[mobile]]" bulky$="[[question.details.matrix.isBulky]]" swap$="[[question.details.matrix.swapped]]">\n		<matrix-row-el header sticky$="[[question.props.stickyHeader]]">\n			<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n				<matrix-scale-el header hidden="[[scale.hidden]]" scale-type$="[[scale.scaleType]]">\n					<matrix-item-el header>\n						<matrix-header-item-el rotate$="[[!question.details.matrix.isBulky]]">\n							<html-raw-ui html="[[scale.label]]"></html-raw-ui>\n						</matrix-header-item-el>\n					</matrix-item-el>\n					<template is="dom-repeat" items="[[scale.items]]" as="option">\n						<matrix-item-el header hidden="[[option.hidden]]">\n							<matrix-header-item-el highlight="[[option.highlight]]" rotate$="[[!question.details.matrix.isBulky]]">\n								<html-raw-ui html="[[option.label]]"></html-raw-ui>\n							</matrix-header-item-el>\n						</matrix-item-el>\n					</template>\n				</matrix-scale-el>\n			</template>\n			<span slot="label-left">\n				<matrix-item-el>\n					<matrix-header-item-el highlight="[[option.highlight]]" rotate$="[[!question.details.matrix.isBulky]]"></matrix-header-item-el>\n				</matrix-item-el>\n			</span>\n		</matrix-row-el>\n		<template is="dom-repeat" items="[[question.statementLists]]" as="statementGroup">\n			<template is="dom-if" if="[[!statementGroup.hidden]]" restamp>\n				<template is="dom-repeat" items="[[statementGroup.items]]" as="statement" hidden="[[statementGroup.hidden]]">\n					<matrix-row-el highlight$="[[statement.highlight]]" hidden="[[statement.hidden]]">\n						<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n							<div class="sub-header">[[scale.label]]</div>\n							<template is="dom-if" if="[[!scale.hidden]]" restamp>\n								<matrix-scale-el>\n									<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n										<matrix-item-el></matrix-item-el>\n										<range-input-ui\n												class="qs-variable"\n												theme="survey"\n												min="0"\n												max="100"\n												initial-state="50"\n												name="bae66079-963f-4579-813f-281794916bd7"\n												type="range"\n												grow=""\n												slider-type="slider">\n										</range-input-ui>\n									</template>\n									<template is="dom-if" if="[[!is(scale.scaleType, \'range\')]]" restamp>\n										<matrix-item-el></matrix-item-el>\n										<template is="dom-repeat" items="[[scale.items]]" as="option">\n											<matrix-item-el respond-type$="[[scale.scaleType]]" highlight$="[[option.highlight]]" hidden="[[option.hidden]]">\n												<simple-item-ui aria-label$="[[option.label]]" direction="inside" no-label input$="[[is(scale.scaleType, \'text\', \'number\', \'date\')]]">\n													<span slot="label">\n														<html-raw-ui html="[[option.label]]"></html-raw-ui>\n													</span>\n													<span slot="control">\n														<respond-ui theme="survey" border-type="[[template.inputBorderType]]" name="[[statement.id]]" type="[[scale.scaleType]]"></respond-ui>\n													</span>\n												</simple-item-ui>\n											</matrix-item-el>\n										</template>\n									</template>\n								</matrix-scale-el>\n							</template>\n						</template>\n						<span slot="label-left">\n							<simple-item-ui empty="">\n								<span slot="label">\n									<html-raw-ui html="[[statement.label]]"></html-raw-ui>\n								</span>\n								<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n									<span slot="other">\n										<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn="" valid="" show-errors=""></input-ui>\n									</span>\n								</template>\n							</simple-item-ui>\n						</span>\n						<span slot="label-right">\n							<simple-item-ui empty="" right="">\n								<span slot="label">\n									<html-raw-ui html="[[statement.details.bpl-matrix.bplLabel]]"></html-raw-ui>\n								</span>\n							</simple-item-ui>\n						</span>\n					</matrix-row-el>\n				</template>\n			</template>\n		</template>\n	</matrix-ui>\n</template>';function t0(t){return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t0(t)}function pD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pne(t,e,r){return e&&pD(t.prototype,e),r&&pD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r0(t,e)}function r0(t,e){return r0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},r0(t,e)}function mne(t){var e=gne();return function(){var n=$f(t),i;if(e){var o=$f(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return yne(this,i)}}function yne(t,e){if(e&&(t0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vne(t)}function vne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function $f(t){return $f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},$f(t)}function Kf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Oo=function(t){hne(r,t);var e=mne(r);function r(){return dne(this,r),e.apply(this,arguments)}return pne(r)}(O);Kf(Oo,"is","matrix-scheme-sbs-el");Kf(Oo,"template",g([fD]));Kf(Oo,"sharedStyles",["survey"]);Kf(Oo,"properties",{question:{type:Object},mobile:{type:String}});customElements.define(Oo.is,Oo);var dD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	@media (min-width: 700px) {\n		.show-on-mobile {\n			display: none !important;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<matrix-ui bpl-matrix type="[[mobile]]" bulky="[[question.details.matrix.isBulky]]">\n	<matrix-row-el header>\n		<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n			<matrix-scale-el header hidden="[[scale.hidden]]" scale-type="[[scale.scaleType]]">\n				<template is="dom-repeat" items="[[scale.items]]" as="option">\n					<matrix-item-el header hidden="[[option.hidden]]">\n						<matrix-header-item-el rotate="[[!question.details.matrix.isBulky]]" highlight="[[option.highlight]]">\n							<html-raw-ui html="[[option.label]]"></html-raw-ui>\n						</matrix-header-item-el>\n					</matrix-item-el>\n				</template>\n			</matrix-scale-el>\n		</template>\n		<span slot="label-left">\n			<matrix-item-el type$="[[mobile]]">\n				<matrix-header-item-el rotate$="[[!question.details.matrix.isBulky]]"></matrix-header-item-el>\n			</matrix-item-el>\n		</span>\n	</matrix-row-el>\n	<template is="dom-repeat" items="[[question.statementLists]]" as="statementGroup">\n		<template is="dom-if" if="[[!statementGroup.hidden]]" restamp>\n			<template is="dom-repeat" items="[[statementGroup.items]]" as="statement" hidden="[[statementGroup.hidden]]">\n				<matrix-row-el highlight$="[[statement.highlight]]" hidden="[[statement.hidden]]" type$="[[mobile]]">\n					<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n						<template is="dom-if" if="[[!scale.hidden]]" restamp>\n							<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n								<template is="dom-if" if="[[!is(mobile, \'slide\')]]" restamp>\n									<div grow class="show-on-mobile">\n										<range-grid-header-el item-count="5">\n											<template is="dom-repeat" items="[[question.optionList.items]]">\n												<span class="qs-slider-option-text">[[item.label]]</span>\n											</template>\n										</range-grid-header-el>\n									</div>\n								</template>\n							</template>\n							<matrix-scale-el type$="[[mobile]]">\n								<template is="dom-if" if="[[is(scale.scaleType, \'range\')]]" restamp>\n									<range-input-ui\n											class="qs-variable"\n											theme="survey"\n											min="0"\n											max="100"\n											initial-state="50"\n											type="range"\n											grow=""\n											slider-type="slider">\n									</range-input-ui>\n								</template>\n								<template is="dom-if" if="[[!is(scale.scaleType, \'range\')]]" restamp>\n									<template is="dom-repeat" items="[[scale.items]]" as="option">\n										<matrix-item-el highlight$="[[option.highlight]]" hidden="[[option.hidden]]">\n											<simple-item-ui direction="inside" no-label>\n												<span slot="label">\n													<html-raw-ui html="[[option.label]]"></html-raw-ui>\n												</span>\n												<span slot="control">\n													<respond-ui theme="survey" border-type="[[template.inputBorderType]]" name="[[statement.id]]" type="[[scale.scaleType]]"></respond-ui>\n												</span>\n											</simple-item-ui>\n										</matrix-item-el>\n									</template>\n								</template>\n							</matrix-scale-el>\n						</template>\n					</template>\n					<span slot="label-left">\n						<simple-item-ui empty="">\n							<span slot="label">\n								<html-raw-ui html="[[statement.label]]"></html-raw-ui>\n							</span>\n							<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n								<span slot="other">\n									<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n								</span>\n							</template>\n						</simple-item-ui>\n					</span>\n					<span slot="label-right">\n						<simple-item-ui empty="" right="">\n							<span slot="label">\n								<template is="dom-if" if="[[statement.details.bpl-matrix.bplLabel]]" restamp>\n									<html-raw-ui html="[[statement.details.bpl-matrix.bplLabel]]"></html-raw-ui>\n								</template>\n								<template is="dom-if" if="[[!statement.details.bpl-matrix.bplLabel]]" restamp>\n									<html-raw-ui html="[[statement.label]]"></html-raw-ui>\n								</template>\n							</span>\n						</simple-item-ui>\n					</span>\n				</matrix-row-el>\n			</template>\n		</template>\n	</template>\n</matrix-ui>';function n0(t){return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n0(t)}function hD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _ne(t,e,r){return e&&hD(t.prototype,e),r&&hD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function wne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i0(t,e)}function i0(t,e){return i0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},i0(t,e)}function xne(t){var e=Sne();return function(){var n=Yf(t),i;if(e){var o=Yf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return One(this,i)}}function One(t,e){if(e&&(n0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pne(t)}function Pne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Yf(t){return Yf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Yf(t)}function Xf(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Po=function(t){Fne(r,t);var e=xne(r);function r(){return wne(this,r),e.apply(this,arguments)}return _ne(r)}(O);Xf(Po,"is","matrix-scheme-bpl-el");Xf(Po,"template",g([dD]));Xf(Po,"sharedStyles",["survey"]);Xf(Po,"properties",{question:{type:Object},mobile:{type:String}});customElements.define(Po.is,Po);var mD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<matrix-ui type="break" slider width-type="smaller">\n	<matrix-row-el header class="hide-on-mobile" width-type="smaller" slider>\n		<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n			<template is="dom-if" if="[[question.props.showScaleLabels]]">\n				<matrix-scale-el header min$="[[scale.hidden]]" type="[[mobile]]" slider width-type="smaller">\n					<template is="dom-if" if="[[!scale.hidden]]">\n						<range-grid-header-el width-type="auto">\n							<template is="dom-repeat" items="[[scale.items]]" as="option">\n								<span>[[option.label]]</span>\n							</template>\n						</range-grid-header-el>\n					</template>\n					<template is="dom-if" if="[[scale.hidden]]">\n						<matrix-item-el type="break" slider="" no-border="" width-type="smaller" header=""></matrix-item-el>\n					</template>\n				</matrix-scale-el>\n			</template>\n		</template>\n		<template is="dom-if" if="[[question.notApplicable]]">\n			<matrix-scale-el is-not-applicable auto type="break" slider width-type="smaller" header>\n				<span style="text-align: center;">[[question.props.notApplicableText]]</span>\n			</matrix-scale-el>\n		</template>\n	</matrix-row-el>\n\n	<template is="dom-repeat" items="[[statements]]" as="statementGroup">\n		<div hidden="[[statementGroup.hidden]]">\n			<template is="dom-repeat" items="[[statementGroup.items]]" as="statement">\n				<matrix-row-el no-border highlight="[[statement.highlight]]" hidden="[[statement.hidden]]">\n					<template is="dom-repeat" items="[[scales]]" as="scale">\n						<template is="dom-if" if="[[scale.hidden]]">\n							<matrix-scale-el no-border>\n								<g-scale-ui\n									type="ratings"\n									theme="survey"\n									pic="[[question.props.pic]]"\n									count="[[question.maxValue]]"\n									initial-state="[[question.props.gScaleInitialState]]"\n									move-type="[[question.props.gScaleMoveType]]"\n								></g-scale-ui>\n							</matrix-scale-el>\n						</template>\n					</template>\n\n					<matrix-scale-el min="" type="break" slider="" no-border="" width-type="smaller" even="">\n						<matrix-item-el type="break" slider="" no-border="" width-type="smaller"></matrix-item-el>\n					</matrix-scale-el>\n\n					<template is="dom-if" if="[[question.notApplicable]]">\n						<matrix-scale-el is-not-applicable slider auto type="break" width-type="smaller">\n							<matrix-item-el type="break" slider width-type="smaller">\n								<not-applicable-el hide-label-on-desktop>[[question.props.notApplicableText]]</not-applicable-el>\n							</matrix-item-el>\n						</matrix-scale-el>\n					</template>\n\n\n					<span slot="label-left">\n						<simple-item-ui empty="" direction="right">\n							<span slot="label"><html-raw-ui html="[[statement.label]]"></html-raw-ui></span>\n							<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n								<span slot="other">\n									<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n								</span>\n							</template>\n						</simple-item-ui>\n					</span>\n				</matrix-row-el>\n			</template>\n		</div>\n	</template>\n</matrix-ui>';function o0(t){return o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o0(t)}function yD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ene(t,e,r){return e&&yD(t.prototype,e),r&&yD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ane(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a0(t,e)}function a0(t,e){return a0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},a0(t,e)}function Rne(t){var e=Ine();return function(){var n=Qf(t),i;if(e){var o=Qf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Dne(this,i)}}function Dne(t,e){if(e&&(o0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cne(t)}function Cne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ine(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Qf(t){return Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(t)}function s0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $s=function(t){Ane(r,t);var e=Rne(r);function r(){return Tne(this,r),e.apply(this,arguments)}return Ene(r)}(O);s0($s,"is","range-scheme-rarings-el");s0($s,"template",g([mD]));s0($s,"properties",{question:{type:Object},mobile:{type:String},statements:{type:Object},scales:{type:Object}});customElements.define($s.is,$s);var vD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<matrix-ui type="break" slider width-type="smaller">\n	<matrix-row-el header class="hide-on-mobile" width-type="smaller" slider>\n		<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n			<template is="dom-if" if="[[question.props.showScaleLabels]]">\n				<matrix-scale-el header min$="[[scale.hidden]]" type="[[mobile]]" slider width-type="smaller">\n					<template is="dom-if" if="[[!scale.hidden]]">\n						<range-grid-header-el width-type="auto">\n							<template is="dom-repeat" items="[[scale.items]]" as="option">\n								<span>[[option.label]]</span>\n							</template>\n						</range-grid-header-el>\n					</template>\n					<template is="dom-if" if="[[scale.hidden]]">\n						<matrix-item-el type="break" slider="" no-border="" width-type="smaller" header=""></matrix-item-el>\n					</template>\n				</matrix-scale-el>\n			</template>\n		</template>\n		<template is="dom-if" if="[[question.notApplicable]]">\n			<matrix-scale-el is-not-applicable auto type="break" slider width-type="smaller" header>\n				<span style="text-align: center;">[[question.props.notApplicableText]]</span>\n			</matrix-scale-el>\n		</template>\n	</matrix-row-el>\n\n	<template is="dom-repeat" items="[[statements]]" as="statementGroup">\n		<div hidden="[[statementGroup.hidden]]">\n			<template is="dom-repeat" items="[[statementGroup.items]]" as="statement">\n				<matrix-row-el no-border highlight="[[statement.highlight]]" hidden="[[statement.hidden]]">\n					<template is="dom-repeat" items="[[scales]]" as="scale">\n						<template is="dom-if" if="[[scale.hidden]]">\n							<matrix-scale-el no-border>\n								<g-scale-ui\n									type="emotions"\n									theme="survey"\n									pic="[[question.props.pic]]"\n									count="[[question.maxValue]]"\n									initial-state="[[question.props.gScaleInitialState]]"\n									move-type="[[question.props.gScaleMoveType]]"\n								></g-scale-ui>\n							</matrix-scale-el>\n						</template>\n					</template>\n\n					<matrix-scale-el min="" type="break" slider="" no-border="" width-type="smaller" even="">\n						<matrix-item-el type="break" slider="" no-border="" width-type="smaller"></matrix-item-el>\n					</matrix-scale-el>\n\n					<template is="dom-if" if="[[question.props.showValues]]">\n						<matrix-scale-el auto type="break" slider width-type="smaller" >\n							<matrix-item-el type="break" slider width-type="smaller">\n								<range-value-el decimals="[[question.props.decimalsNum]]"></range-value-el>\n							</matrix-item-el>\n						</matrix-scale-el>\n					</template>\n\n					<template is="dom-if" if="[[question.notApplicable]]">\n						<matrix-scale-el is-not-applicable slider auto type="break" width-type="smaller">\n							<matrix-item-el type="break" slider width-type="smaller">\n								<not-applicable-el hide-label-on-desktop>[[question.props.notApplicableText]]</not-applicable-el>\n							</matrix-item-el>\n						</matrix-scale-el>\n					</template>\n\n\n					<span slot="label-left">\n						<simple-item-ui empty="" direction="right">\n							<span slot="label"><html-raw-ui html="[[statement.label]]"></html-raw-ui></span>\n							<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n								<span slot="other">\n									<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n								</span>\n							</template>\n						</simple-item-ui>\n					</span>\n				</matrix-row-el>\n			</template>\n		</div>\n	</template>\n</matrix-ui>';function l0(t){return l0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l0(t)}function gD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Bne(t,e,r){return e&&gD(t.prototype,e),r&&gD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Mne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u0(t,e)}function u0(t,e){return u0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},u0(t,e)}function Nne(t){var e=Hne();return function(){var n=Jf(t),i;if(e){var o=Jf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qne(this,i)}}function qne(t,e){if(e&&(l0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zne(t)}function zne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Jf(t){return Jf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jf(t)}function c0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ks=function(t){Lne(r,t);var e=Nne(r);function r(){return Mne(this,r),e.apply(this,arguments)}return Bne(r)}(O);c0(Ks,"is","range-scheme-emotions-el");c0(Ks,"template",g([vD]));c0(Ks,"properties",{question:{type:Object},mobile:{type:String},statements:{type:Object},scales:{type:Object}});customElements.define(Ks.is,Ks);var bD='<style>\n	:host {\n		display: block;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n</style>\n<style include="survey-style"></style>\n\n<matrix-ui type="break" slider width-type$="[[question.props.widthType]]">\n	<matrix-row-el header class="hide-on-mobile" width-type="[[question.props.widthType]]" slider sticky="[[question.props.stickyHeader]]">\n		<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n			<template is="dom-if" if="[[question.props.showScaleLabels]]">\n				<matrix-scale-el header hidden="[[scale.hidden]]" type="[[mobile]]" slider width-type="[[question.props.widthType]]">\n					<range-grid-header-el width-type="[[question.props.widthType]]">\n						<template is="dom-repeat" items="[[scale.items]]" as="option">\n							<span>[[option.label]]</span>\n						</template>\n					</range-grid-header-el>\n				</matrix-scale-el>\n			</template>\n		</template>\n\n		<template is="dom-if" if="[[question.notApplicable]]">\n			<matrix-scale-el type="break" slider width-type="[[question.props.widthType]]" header>\n				<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n			</matrix-scale-el>\n		</template>\n\n		<template is="dom-if" if="[[!question.notApplicable]]">\n			<template is="dom-if" if="[[question.props.showValues]]">\n				<matrix-scale-el min auto type="break" slider width-type="[[question.props.widthType]]" header>\n					<matrix-item-el min type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n				</matrix-scale-el>\n			</template>\n		</template>\n\n		<template is="dom-if" if="[[question.notApplicable]]">\n			<matrix-scale-el is-not-applicable auto type="break" slider width-type="[[question.props.widthType]]" header no-border>\n				<span style="text-align: center;">[[question.props.notApplicableText]]</span>\n			</matrix-scale-el>\n		</template>\n	</matrix-row-el>\n	<template is="dom-if" if="[[question.props.showDigitalScale]]">\n		<matrix-row-el header class="hide-on-mobile" type="break" slider no-border width-type="[[question.props.widthType]]" sticky="[[question.props.stickyHeader]]">\n			<matrix-scale-el type="break" slider no-border width-type="[[question.props.widthType]]" header>\n				<range-grid-digital-ui\n					width-type="[[question.props.widthType]]"\n					min="[[question.minValue]]"\n					max="[[question.maxValue]]"\n					snap\n					lines="[[question.props.gridLinesNum]]"\n					decimals="[[question.props.decimalsNum]]"\n					slider-type="sliders"\n					grid-shape="[[question.props.gridShape]]"\n					start-color="[[question.props.startColor]]"\n					middle-color="[[question.props.middleColor]]"\n					end-color="[[question.props.endColor]]"\n				>\n				</range-grid-digital-ui>\n			</matrix-scale-el>\n\n			<template is="dom-if" if="[[question.notApplicable]]">\n				<matrix-scale-el auto type="break" slider width-type="[[question.props.widthType]]" header>\n					<template is="dom-if" if="[[question.props.showValues]]">\n						<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n					</template>\n				</matrix-scale-el>\n			</template>\n\n			<template is="dom-if" if="[[!question.notApplicable]]">\n				<template is="dom-if" if="[[question.props.showValues]]">\n					<matrix-scale-el auto type="break" slider width-type="[[question.props.widthType]]" header>\n						<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n					</matrix-scale-el>\n				</template>\n			</template>\n\n			<template is="dom-if" if="[[question.notApplicable]]">\n				<matrix-scale-el is-not-applicable auto type="break" slider width-type="[[question.props.widthType]]" header>\n					<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n				</matrix-scale-el>\n			</template>\n\n		</matrix-row-el>\n	</template>\n\n	<template is="dom-repeat" items="[[statements]]" as="statementGroup">\n		<div hidden="[[statementGroup.hidden]]">\n			<template is="dom-repeat" items="[[statementGroup.items]]" as="statement">\n				<matrix-row-el no-border highlight="[[statement.highlight]]" hidden="[[statement.hidden]]">\n					<template is="dom-repeat" items="[[scales]]" as="scale">\n						<template is="dom-if" if="[[!scale.hidden]]">\n							<matrix-scale-el no-border>\n								<range-grid-mark-ui\n									lines-num="11"\n									mid-stop="[[question.props.useMidColorStop]]"\n									slider-type="[[question.modifier]]"\n									lines="[[question.props.gridLinesNum]]"\n									grid-shape="[[question.props.gridShape]]"\n									snap="[[question.props.snapToGrid]]"\n									decimals="[[question.props.decimalsNum]]"\n									min="[[question.minValue]]"\n									max="[[question.maxValue]]"\n									start-color="[[question.props.startColor]]"\n									middle-color="[[question.props.middleColor]]"\n									end-color="[[question.props.endColor]]"\n									show-ruler="[[question.props.showRuler]]"\n								>\n									<range-input-ui\n										theme="survey"\n										slider-type="[[question.modifier]]"\n										lines="[[question.props.gridLinesNum]]"\n										min="[[question.minValue]]"\n										max="[[question.maxValue]]"\n										initial-state="[[question.props.gScaleInitialState]]"\n										decimals="[[question.props.decimalsNum]]"\n										step="[[question.props.step]]"\n										show-ruler="[[question.props.showRuler]]"\n										show-values="[[question.props.showValues]]"\n										snap="[[question.props.snapToGrid]]"\n									></range-input-ui>\n								</range-grid-mark-ui>\n							</matrix-scale-el>\n						</template>\n					</template>\n\n					<template is="dom-if" if="[[question.notApplicable]]">\n						<matrix-scale-el auto type="break" slider width-type="[[question.props.widthType]]" >\n							<matrix-item-el type="break" slider width-type="[[question.props.widthType]]">\n								<template is="dom-if" if="[[question.props.showValues]]">\n									<range-value-el decimals="[[question.props.decimalsNum]]"></range-value-el>\n								</template>\n							</matrix-item-el>\n						</matrix-scale-el>\n					</template>\n\n					<template is="dom-if" if="[[!question.notApplicable]]">\n						<template is="dom-if" if="[[question.props.showValues]]">\n							<matrix-scale-el auto type="break" slider width-type="[[question.props.widthType]]" >\n								<matrix-item-el type="break" slider width-type="[[question.props.widthType]]">\n									<range-value-el decimals="[[question.props.decimalsNum]]"></range-value-el>\n								</matrix-item-el>\n							</matrix-scale-el>\n						</template>\n					</template>\n\n					<template is="dom-if" if="[[question.notApplicable]]">\n						<matrix-scale-el is-not-applicable slider auto type="break" width-type="[[question.props.widthType]]">\n							<matrix-item-el type="break" slider width-type="[[question.props.widthType]]">\n								<not-applicable-el hide-label-on-desktop>[[question.props.notApplicableText]]</not-applicable-el>\n							</matrix-item-el>\n						</matrix-scale-el>\n					</template>\n\n					<span slot="label-left">\n						<simple-item-ui empty="" direction="right">\n							<span slot="label"><html-raw-ui html="[[statement.label]]"></html-raw-ui></span>\n							<template is="dom-if" if="[[statement.hasCustomField]]" restamp>\n								<span slot="other">\n									<input-ui theme="survey" border-type="[[template.inputBorderType]]" placeholder="[[statement.customFieldPlaceholder]]" clear-btn valid show-errors></input-ui>\n								</span>\n							</template>\n						</simple-item-ui>\n					</span>\n				</matrix-row-el>\n			</template>\n		</div>\n	</template>\n	<template is="dom-if" if="[[showBottomDigitalScale]]">\n		<template is="dom-if" if="[[question.props.showDigitalScale]]">\n			<matrix-row-el header class="hide-on-mobile" type="break" slider no-border width-type="[[question.props.widthType]]">\n				<matrix-scale-el type="break" slider no-border width-type="[[question.props.widthType]]" header>\n					<range-grid-digital-ui\n						width-type="[[question.props.widthType]]"\n						min="[[question.minValue]]"\n						max="[[question.maxValue]]"\n						snap\n						lines="[[question.props.gridLinesNum]]"\n						decimals="[[question.props.decimalsNum]]"\n						slider-type="sliders"\n						grid-shape="[[question.props.gridShape]]"\n						start-color="[[question.props.startColor]]"\n						middle-color="[[question.props.middleColor]]"\n						end-color="[[question.props.endColor]]"\n					>\n					</range-grid-digital-ui>\n				</matrix-scale-el>\n				<template is="dom-if" if="[[question.props.showValues]]">\n					<matrix-scale-el auto type="break" slider width-type="[[question.props.widthType]]" header>\n						<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n					</matrix-scale-el>\n				</template>\n\n				<template is="dom-if" if="[[question.notApplicable]]">\n					<matrix-scale-el is-not-applicable auto type="break" slider width-type="[[question.props.widthType]]" header>\n						<matrix-item-el type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n					</matrix-scale-el>\n				</template>\n\n			</matrix-row-el>\n		</template>\n		<matrix-row-el header class="hide-on-mobile" width-type="[[question.props.widthType]]" slider>\n			<template is="dom-repeat" items="[[question.optionLists]]" as="scale">\n				<template is="dom-if" if="[[question.props.showScaleLabels]]">\n					<matrix-scale-el header hidden="[[scale.hidden]]" type="[[mobile]]" slider width-type="[[question.props.widthType]]">\n						<range-grid-header-el width-type="[[question.props.widthType]]">\n							<template is="dom-repeat" items="[[scale.items]]" as="option">\n								<span></span>\n							</template>\n						</range-grid-header-el>\n					</matrix-scale-el>\n				</template>\n			</template>\n			<template is="dom-if" if="[[question.props.showValues]]">\n				<matrix-scale-el min auto type="break" slider width-type="[[question.props.widthType]]" header>\n					<matrix-item-el min type="break" slider width-type="[[question.props.widthType]]" header></matrix-item-el>\n				</matrix-scale-el>\n			</template>\n			<template is="dom-if" if="[[question.notApplicable]]">\n				<matrix-scale-el is-not-applicable auto type="break" slider width-type="[[question.props.widthType]]" header>\n					<span style="text-align: center;">[[question.props.notApplicableText]]</span>\n				</matrix-scale-el>\n			</template>\n		</matrix-row-el>\n	</template>\n</matrix-ui>';function f0(t){return f0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f0(t)}function _D(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Vne(t,e,r){return e&&_D(t.prototype,e),r&&_D(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p0(t,e)}function p0(t,e){return p0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},p0(t,e)}function $ne(t){var e=Xne();return function(){var n=Zf(t),i;if(e){var o=Zf(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Kne(this,i)}}function Kne(t,e){if(e&&(f0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yne(t)}function Yne(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xne(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Zf(t){return Zf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Zf(t)}function d0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ys=function(t){Gne(r,t);var e=$ne(r);function r(){return Wne(this,r),e.apply(this,arguments)}return Vne(r)}(O);d0(Ys,"is","range-scheme-sliders-el");d0(Ys,"template",g([bD]));d0(Ys,"properties",{question:{type:Object},mobile:{type:String},statements:{type:Object},scales:{type:Object},showBottomDigitalScale:{type:Boolean}});customElements.define(Ys.is,Ys);function h0(t){return h0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h0(t)}function Qne(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Jne(t,e,r){return e&&wD(t.prototype,e),r&&wD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zne(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&m0(t,e)}function m0(t,e){return m0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},m0(t,e)}function eie(t){var e=nie();return function(){var n=ep(t),i;if(e){var o=ep(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tie(this,i)}}function tie(t,e){if(e&&(h0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rie(t)}function rie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ep(t){return ep=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ep(t)}function tp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var So=function(t){Zne(r,t);var e=eie(r);function r(){return Qne(this,r),e.apply(this,arguments)}return Jne(r,[{key:"_questionObserver",value:function(i){var o=this;if(!!i){this._scales=i.optionLists,this._statements=i.statementLists;var a=[];this._scales.forEach(function(s){if(o._scales.length>1){var l={type:"caption",text:s.label};a.push(l)}s.items.forEach(function(u){var c={type:"option",text:u.label,highlight:u.highlight,preset:u.isPreset};u.label&&a.push(c)})}),this._autocompleteData=a}}},{key:"_getLabelList",value:function(i){if(i!=null&&i.details["label-list"])return i==null?void 0:i.details["label-list"]}},{key:"_getMatrixMobileViewType",value:function(i,o){return(i==null?void 0:i.matrixMobileViewType)||o.matrixMobileViewType}},{key:"_getShowBottomDigitalScale",value:function(i){var o;return i&&((o=i.statementLists[0].items)===null||o===void 0?void 0:o.length)>5}},{key:"_getButtonMode",value:function(i,o){return o.simpleChoicesViewType==="button"||!o.simpleChoicesViewType&&i.simpleChoicesViewType==="button"}},{key:"_getRankOrderItems",value:function(i){if(!!i){var o=i.statementLists.find(function(a){return!a.hidden});return o.items.map(function(a){return{id:a.id,highlight:a.highlight,label:a.label,hasCustomField:a.hasCustomField}})}}},{key:"_getRankOrderAnswered",value:function(){return window.TEST_MODE}}]),r}(O);tp(So,"is","respond-area-scheme-el");tp(So,"template",g([lD]));tp(So,"sharedStyles",["survey"]);tp(So,"properties",{question:{type:Object,observer:"_questionObserver"},template:{type:Object,subscribe:!0},matrixMobileViewType:{type:String,computed:"_getMatrixMobileViewType(question, template)"},_itemsLength:{type:Number},_labelList:{type:Object,computed:"_getLabelList(question)"},_showBottomDigitalScale:{type:Boolean,computed:"_getShowBottomDigitalScale(question)"}});customElements.define(So.is,So);var FD="<style>\n	:host {\n		display: block;\n	}\n</style>\n\n<slot></slot>";function y0(t){return y0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y0(t)}function oie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function aie(t,e,r){return e&&xD(t.prototype,e),r&&xD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function sie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v0(t,e)}function v0(t,e){return v0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},v0(t,e)}function lie(t){var e=fie();return function(){var n=rp(t),i;if(e){var o=rp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return uie(this,i)}}function uie(t,e){if(e&&(y0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cie(t)}function cie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function rp(t){return rp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},rp(t)}function g0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Xs=function(t){sie(r,t);var e=lie(r);function r(){var n;return oie(this,r),n=e.call(this),n.languages=[{code:"af",title:"Afrikaans"},{code:"am",title:"\u12A0\u121B\u122D\u129B"},{code:"ar",title:" \u0627\u0644\u0639\u0631\u0628\u064A\u0629"},{code:"az",title:"Az\u0259rbaycan dili"},{code:"be",title:"\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F"},{code:"bg",title:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438"},{code:"bn",title:"\u09AC\u09BE\u0999\u09BE\u09B2\u09BF"},{code:"bs",title:"Bosanski"},{code:"ca",title:"Catal\xE0"},{code:"ceb",title:"Cebuano"},{code:"co",title:"Corsu"},{code:"cs",title:"\u010Cesk\xFD"},{code:"cy",title:"Cymraeg"},{code:"da",title:"Dansk"},{code:"de",title:"Deutsch"},{code:"el",title:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AE "},{code:"en",title:"English"},{code:"es",title:"Espa\xF1ol"},{code:"et",title:"Eesti"},{code:"eu",title:"Euskara"},{code:"fa",title:"\u0641\u0627\u0631\u0633\u06CC"},{code:"fi",title:"Suomen"},{code:"fr",title:"Fran\xE7ais"},{code:"fy",title:"Fryske"},{code:"ga",title:"Gaeilge"},{code:"gd",title:"G\xE0idhlig na h-Alba"},{code:"gl",title:"Galega"},{code:"gu",title:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0 "},{code:"ha",title:"Hausa"},{code:"haw",title:"Hawai\u02BBi"},{code:"hi",title:"\u0939\u093F\u0928\u094D\u0926\u0940 \u092D\u093E\u0937\u093E"},{code:"hmn",title:"Hmoob"},{code:"hr",title:"Hrvatski"},{code:"ht",title:"Krey\xF2l ayisyen"},{code:"hu",title:"Magyar"},{code:"hy",title:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576\u056B"},{code:"id",title:"Bahasa Indonesia"},{code:"ig",title:"As\u1EE5s\u1EE5"},{code:"is",title:"\xCDslensk"},{code:"it",title:"Italiano"},{code:"iw",title:"\u05E9\u05E4\u05D4 \u05E2\u05D1\u05E8\u05D9\u05EA"},{code:"ja",title:"\u65E5\u672C\u8A9E"},{code:"jw",title:"Jawa"},{code:"ka",title:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8"},{code:"kk",title:"\u049A\u0430\u0437\u0430\u049B"},{code:"km",title:"\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A"},{code:"kn",title:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1 \u0CAD\u0CBE\u0CB7\u0CC6"},{code:"ko",title:"\uD55C\uAD6D\uC5B4"},{code:"ku",title:"Kurd\xEE (Kurmanc\xEE)"},{code:"ky",title:"\u041A\u044B\u0440\u0433\u044B\u0437 \u0442\u0438\u043B\u0438"},{code:"lb",title:"L\xEBtzebuergesch"},{code:"lo",title:"\u0E9E\u0EB2\u0EAA\u0EB2\u0EA5\u0EB2\u0EA7"},{code:"lt",title:"Lietuvi\u0173"},{code:"lv",title:"Latvie\u0161u"},{code:"mg",title:"Malagasy"},{code:"mi",title:"Maori"},{code:"mk",title:"\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438"},{code:"ml",title:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02 \u0D2D\u0D3E\u0D37"},{code:"mn",title:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B"},{code:"mr",title:"\u092E\u0930\u093E\u0920\u0940 \u092D\u093E\u0937\u093E"},{code:"ms",title:"Melayu"},{code:"mt",title:"Maltija"},{code:"my",title:"\u1019\u103C\u1014\u103A\u1019\u102C (\u1017\u1019\u102C) \u1018\u102C\u101E\u102C\u1005\u1000\u102C\u1038"},{code:"ne",title:"\u0928\u0947\u092A\u093E\u0932\u0940 \u092D\u093E\u0937\u093E"},{code:"nl",title:"Nederlandse"},{code:"no",title:"Norsk"},{code:"ny",title:"Chichewa"},{code:"pa",title:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40 \u0A2D\u0A3E\u0A38\u0A3C\u0A3E"},{code:"pl",title:"Polski"},{code:"ps",title:"\u067E\u069A\u062A\u0648 \u0698\u0628\u0647"},{code:"pt",title:"Portugues"},{code:"ro",title:"Rom\xE2n\u0103"},{code:"ru",title:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439"},{code:"sd",title:"\u0633\u0646\u068C\u064A \u067B\u0648\u0644\u064A"},{code:"si",title:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD \u0DB7\u0DCF\u0DC2\u0DCF\u0DC0"},{code:"sk",title:"Slovensk\xFD"},{code:"sl",title:"Slovenski"},{code:"sm",title:"Samoa"},{code:"sn",title:"Shona"},{code:"so",title:"Soomaaliga"},{code:"sq",title:"Shqipe"},{code:"sr",title:"\u0421\u0440\u043F\u0441\u043A\u0438"},{code:"st",title:"Sesotho"},{code:"su",title:"Sunda"},{code:"sv",title:"Svenska"},{code:"sw",title:"Kiswahili"},{code:"ta",title:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD"},{code:"te",title:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41"},{code:"tg",title:"\u0422\u043E\u04B7\u0438\u043A\u04E3"},{code:"th",title:"\u0E20\u0E32\u0E29\u0E32\u0E44\u0E17\u0E22"},{code:"tl",title:"Filipino"},{code:"tr",title:"T\xFCrk "},{code:"uk",title:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"},{code:"ur",title:"\u0627\u0631\u062F\u0648 \u0632\u0628\u0627\u0646"},{code:"uz",title:"O'zbek"},{code:"vi",title:"Ti\u1EBFng Vi\u1EC7t"},{code:"xh",title:"IsiXhosa"},{code:"yi",title:"\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9 \u05E9\u05E4\u05BC\u05E8\u05D0\u05B7\u05DA"},{code:"yo",title:"Yor\xF9b\xE1"},{code:"zh",title:"\u7B80\u4F53\u4E2D\u6587"},{code:"zu",title:"IsiZulu"}],n}return aie(r,[{key:"_codeObserver",value:function(i){var o=this.languages.find(function(a){return a.code===i});this.innerHTML=o.title}}]),r}(O);g0(Xs,"is","survey-language-ui");g0(Xs,"template",g([FD]));g0(Xs,"properties",{code:{type:String,observer:"_codeObserver"}});customElements.define(Xs.is,Xs);var OD='<style>\n	:host {\n		display: flex;\n		cursor: pointer;\n		border: 1px solid #a8bac3;\n		border-radius: 6px;\n		margin-top: 16px;\n		margin-left: 16px;\n		padding: 8px;\n		min-width: 320px;\n	}\n\n	.flag {\n		width: 60px;\n		/* height: 60px; */\n	}\n\n	.flag, .title {\n		margin-left: 16px;\n	}\n\n	:host([focused]) {\n		box-shadow: 0 0 20px #607d8b;\n	}\n</style>\n\n<flex-mkp space-max v-center grow on-mouseenter="_focus" on-mouseleave="_blur">\n	<img class="flag" src="[[_getFlagUrl(flag)]]">\n	<div class="label"><slot></slot></div>\n</flex-mkp>';function b0(t){return b0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b0(t)}function die(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hie(t,e,r){return e&&PD(t.prototype,e),r&&PD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_0(t,e)}function _0(t,e){return _0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},_0(t,e)}function yie(t){var e=bie();return function(){var n=np(t),i;if(e){var o=np(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return vie(this,i)}}function vie(t,e){if(e&&(b0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gie(t)}function gie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function np(t){return np=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},np(t)}function w0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Qs=function(t){mie(r,t);var e=yie(r);function r(){return die(this,r),e.apply(this,arguments)}return hie(r,[{key:"_getFlagUrl",value:function(i){if(i)return i.startsWith("/")?(window.ROOT_PATH||"/")+i.slice(1):i}},{key:"_focus",value:function(){this.focused=!0}},{key:"_blur",value:function(){this.focused=!1}}]),r}(O);w0(Qs,"is","survey-language-item-ui");w0(Qs,"template",g([OD]));w0(Qs,"properties",{code:{type:String},flag:{type:String},focused:{type:Boolean,value:!1,reflectToAttribute:!0}});customElements.define(Qs.is,Qs);var SD='<style>\n	:host {\n		position: absolute;\n		top: 0;\n		width: 100vw;\n		height: 100vh;\n		display: flex;\n		align-items: flex-end;\n		justify-content: flex-end;\n		pointer-events: none;\n	}\n\n	.popover {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		height: 50px;\n		width: 50px;\n		padding: 16px;\n		box-sizing: border-box;\n		border-radius: 50%;\n\n		margin: 16px;\n		background: white;\n		box-shadow: rgba(0, 0, 0, 0.2) 0 3px 5px 0;\n		/* pointer-events: auto; */\n	}\n</style>\n<style include="survey-style"></style>\n\n<div class="popover">[[_timeLeft]]</div>';function F0(t){return F0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F0(t)}function wie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Fie(t,e,r){return e&&kD(t.prototype,e),r&&kD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ip(){return typeof Reflect!="undefined"&&Reflect.get?ip=Reflect.get:ip=function(e,r,n){var i=xie(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ip.apply(this,arguments)}function xie(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ko(t),t!==null););return t}function Oie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x0(t,e)}function x0(t,e){return x0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},x0(t,e)}function Pie(t){var e=Eie();return function(){var n=ko(t),i;if(e){var o=ko(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Sie(this,i)}}function Sie(t,e){if(e&&(F0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kie(t)}function kie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Eie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function ko(t){return ko=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ko(t)}function op(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Eo=function(t){Oie(r,t);var e=Pie(r);function r(){return wie(this,r),e.apply(this,arguments)}return Fie(r,[{key:"_startTimer",value:function(){var i=this;if(!(this._timerStarted||!this.start||!this.duration)){this._timerStarted=!0;var o=this.duration*1e3*60-(new Date-this.start);setTimeout(function(){i.dispatchEvent(new CustomEvent("end"))},o),this._updateText(),setInterval(function(){i._updateText()},1e3)}}},{key:"_updateText",value:function(){var i=this.duration*1e3*60-(new Date-this.start),o=Math.max(0,Math.floor(i/1e3/60)),a=Math.max(0,Math.floor(i/1e3%60));this._timeLeft="".concat(o.toString().padStart(2,"0"),":").concat(a.toString().padStart(2,"0"))}},{key:"connectedCallback",value:function(){ip(ko(r.prototype),"connectedCallback",this).call(this),this._startTimer()}}]),r}(O);op(Eo,"is","survey-auto-end-ui");op(Eo,"template",g([SD]));op(Eo,"sharedStyles",["survey"]);op(Eo,"properties",{start:{type:Date,observer:"_startTimer"},duration:{type:Number,observer:"_startTimer"},_timeLeft:{type:String}});customElements.define(Eo.is,Eo);var ED="<style>\n	:host {\n		display: block;\n	}\n</style>\n<div>\n	<slot></slot>\n</div>";function O0(t){return O0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O0(t)}function Aie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rie(t,e,r){return e&&TD(t.prototype,e),r&&TD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ap(){return typeof Reflect!="undefined"&&Reflect.get?ap=Reflect.get:ap=function(e,r,n){var i=Die(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},ap.apply(this,arguments)}function Die(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=To(t),t!==null););return t}function Cie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P0(t,e)}function P0(t,e){return P0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},P0(t,e)}function Iie(t){var e=Mie();return function(){var n=To(t),i;if(e){var o=To(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jie(this,i)}}function jie(t,e){if(e&&(O0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bie(t)}function Bie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function To(t){return To=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},To(t)}function S0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Js=function(t){Cie(r,t);var e=Iie(r);function r(){return Aie(this,r),e.apply(this,arguments)}return Rie(r,[{key:"_timeObserver",value:function(){var i=this;this._timer=this.time;var o=setInterval(function(){i._timer--,i.setTimerEl(),i._timer===0&&(clearInterval(o),i.dispatchEvent(new CustomEvent("navigate",{detail:"restart"})))},1e3)}},{key:"connectedCallback",value:function(){var i=this;ap(To(r.prototype),"connectedCallback",this).call(this),requestAnimationFrame(function(){i.timerEl=i.querySelector(".time"),i.setTimerEl()})}},{key:"setTimerEl",value:function(){if(this.timerEl)this.timerEl.innerHTML=this._timer;else{var i=this.querySelector("survey-definition-ui");i&&(i.time=this._timer)}}}]),r}(O);S0(Js,"is","survey-auto-restart-ui");S0(Js,"template",g([ED]));S0(Js,"properties",{time:{type:Number,value:15,observer:"_timeObserver"},_timer:{type:Number}});customElements.define(Js.is,Js);var AD='<style>\n	:host {\n		display: block;\n	}\n</style>\n\n<card-mkp theme="brightest" connect="all">\n	<div>\n		[[l10n.redirect-form.redirect-url-warning-text]]\n	</div>\n	<spacer-mkp mid></spacer-mkp>\n	<div>\n		[[l10n.redirect-form.redirect-url-description-text-part1]]\n		<a on-click="navigate" href="#">[[url]]</a>[[l10n.redirect-form.redirect-url-description-text-part2]]\n	</div>\n	<spacer-mkp max></spacer-mkp>\n	<a on-click="navigate" href="#">[[l10n.redirect-form.redirect-url-link-title]]</a>\n</card-mkp>';function k0(t){return k0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k0(t)}function Nie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qie(t,e,r){return e&&RD(t.prototype,e),r&&RD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function zie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E0(t,e)}function E0(t,e){return E0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},E0(t,e)}function Hie(t){var e=Wie();return function(){var n=sp(t),i;if(e){var o=sp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Uie(this,i)}}function Uie(t,e){if(e&&(k0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vie(t)}function Vie(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wie(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function sp(t){return sp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},sp(t)}function T0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Zs=function(t){zie(r,t);var e=Hie(r);function r(){return Nie(this,r),e.apply(this,arguments)}return qie(r,[{key:"navigate",value:function(){window.top.location=this.url}},{key:"_urlObserver",value:function(){window.location===window.parent.location&&(window.location=this.url)}}]),r}(O);T0(Zs,"is","redirect-form-ui");T0(Zs,"template",g([AD]));T0(Zs,"properties",{url:{type:String,observer:"_urlObserver"}});customElements.define(Zs.is,Zs);var DD='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		position: relative;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	:host([readonly]),\n	:host([disabled]) {\n		pointer-events: none;\n	}\n\n	.item-container {\n		cursor: move;\n		transform-origin: center left;\n	}\n\n	.item-container[not-applicable] .item {\n		opacity: 0.6;\n	}\n\n	.item {\n		display: flex;\n		align-items: center;\n		min-height: 34px;\n	}\n\n	.item-container.dragging {\n		position: absolute;\n		pointer-events: none;\n		transform: scale(1.2);\n		transition: transform 0.2s;\n		z-index: 1;\n	}\n\n	.reorder-icon {\n		display: none;\n		flex-shrink: 0;\n		font-size: 22px;\n		margin-left: 8px;\n	}\n\n	.position {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		flex-shrink: 0;\n		box-sizing: border-box;\n		height: calc(34px / 1.2);\n		width: calc(34px / 1.2);\n		margin: 0 8px;\n		color: #607d8b;\n		background: rgba(96, 125, 139, 0.1);\n		border-radius: 50%;\n	}\n\n	.other-container {\n		display: flex;\n		padding-left: 8px;\n		box-sizing: border-box;\n		width: 100%;\n	}\n\n	matrix-scale-el {\n		align-items: center;\n		justify-content: center;\n	}\n\n	slot#notApplicable {\n		text-align: center;\n	}\n\n	/* ios safari drag scroll fix */\n	html-raw-ui {\n		display: block;\n	}\n\n	@media (pointer: coarse) {\n		.reorder-icon {\n			display: inline-flex;\n		}\n	}\n\n	@media (max-width: 800px) {\n		matrix-scale-el {\n			align-items: initial;\n			justify-content: initial;\n		}\n\n		not-applicable-el {\n			margin-left: calc(8px + 2px * 2);\n		}\n	}\n</style>\n\n<matrix-ui type="break" no-border slider rank-order>\n	<matrix-row-el class="hide-on-mobile" header wide-label hidden="[[!notApplicableEnabled]]">\n		<matrix-scale-el auto><slot id="notApplicable" name="not-applicable"></slot></matrix-scale-el>\n	</matrix-row-el>\n\n	<template is="dom-repeat" items="[[items]]">\n		<matrix-row-el id="[[item.statmentID]]" class="item-container" item="[[item]]" no-zebra wide-label highlight$="[[item.highlight]]" not-applicable$="[[get(item.notApplicable, updateTrigger)]]" hidden$="[[get(item.hidden, updateTrigger)]]">\n			<simple-item-ui slot="label-left" inline-other>\n				<span slot="error" hidden="[[!item.errorKey]]">\n					<div class="qs-question-error" adjustable-type="question-error">\n						<survey-validator-ui name="[[item.errorKey]]" tabindex="0"></survey-validator-ui>\n					</div>\n				</span>\n				<div slot="label" class="item">\n					<icon-ui class="reorder-icon" icon="reorder-horizontal"></icon-ui>\n					<div class="position">[[_getPosition(item, answered, updateTrigger)]]</div>\n					<div class="label"><html-raw-ui html="[[item.label]]"></html-raw-ui></div>\n				</div>\n				<span slot="other" class="other-container" hidden="[[!get(item.hasCustomField, updateTrigger)]]">\n					<input-ui\n						class="qs-variable"\n						theme="survey"\n						name="[[get(item.customFieldID, updateTrigger)]]"\n						border-type="around"\n						placeholder="[[get(item.customFieldPlaceholder, updateTrigger)]]"\n						clear-btn\n						input-value="{{item.customFieldValue}}"\n						on-input-value-changed="_customFieldValueChanged"\n					></input-ui>\n				</span>\n			</simple-item-ui>\n\n			<matrix-scale-el is-not-applicable auto no-border>\n				<matrix-item-el auto hidden="[[!notApplicableEnabled]]">\n					<not-applicable-el checked="[[get(item.notApplicable, updateTrigger)]]" hide-label-on-desktop on-checked-changed="_notApplicableChanged">\n						<span class="not-applicable"></span>\n					</not-applicable-el>\n				</matrix-item-el>\n			</matrix-scale-el>\n		</matrix-row-el>\n	</template>\n\n	<matrix-row-el class="hide-on-mobile" header wide-label hidden="[[!_canShowBottomNotApplicable(items)]]">\n		<matrix-scale-el auto><span class="not-applicable"></span></matrix-scale-el>\n	</matrix-row-el>\n</matrix-ui>\n<style include="survey-style"></style>';function A0(t){return A0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A0(t)}function $ie(t){return Qie(t)||Xie(t)||Yie(t)||Kie()}function Kie(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yie(t,e){if(!!t){if(typeof t=="string")return R0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return R0(t,e)}}function Xie(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Qie(t){if(Array.isArray(t))return R0(t)}function R0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Jie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Zie(t,e,r){return e&&CD(t.prototype,e),r&&CD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function el(){return typeof Reflect!="undefined"&&Reflect.get?el=Reflect.get:el=function(e,r,n){var i=eoe(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},el.apply(this,arguments)}function eoe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=jn(t),t!==null););return t}function toe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D0(t,e)}function D0(t,e){return D0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},D0(t,e)}function roe(t){var e=ooe();return function(){var n=jn(t),i;if(e){var o=jn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return noe(this,i)}}function noe(t,e){if(e&&(A0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ioe(t)}function ioe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ooe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},jn(t)}function lp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Ao=function(t){toe(r,t);var e=roe(r);function r(){return Jie(this,r),e.apply(this,arguments)}return Zie(r,[{key:"get",value:function(i){return i}},{key:"_getPosition",value:function(i){if(!this.answered||i.notApplicable)return"-";var o=this.items.filter(function(a){return!a.notApplicable&&!a.hidden}).indexOf(i)+1;return this.maxAnswers&&o>this.maxAnswers?"-":o}},{key:"_canShowBottomNotApplicable",value:function(){return this.notApplicableEnabled&&this.items&&this.items.length>5}},{key:"_notApplicableChanged",value:function(i){if(!!this._inited){var o=i.target.closest(".item-container").item;o.notApplicable=i.detail.value,this.dispatchEvent(new CustomEvent("not-applicable-changed",{detail:{id:o.id,notApplicableID:o.notApplicableID,notApplicable:o.notApplicable}})),this.updateTrigger=!this.updateTrigger,this.answered=!0,this._updateAnswers()}}},{key:"_customFieldValueChanged",value:function(i){this.dispatchEvent(new CustomEvent("custom-field-value-changed",{detail:{input:i.target,value:i.detail.value}}))}},{key:"_updateAnswers",value:function(){if(!!this.answered){var i=this.items.filter(function(a){return!a.notApplicable});this.maxAnswers&&(i=i.slice(0,this.maxAnswers));var o=1;i=i.map(function(a){return{id:a.id,position:a.hidden?null:o++}}),this.dispatchEvent(new CustomEvent("order-changed",{detail:i}))}}},{key:"_setNotApplicableLabel",value:function(){var i=this.$.notApplicable.assignedNodes()[0];i&&this.shadowRoot.querySelectorAll(".not-applicable").forEach(function(o){o.innerHTML=i.innerHTML})}},{key:"connectedCallback",value:function(){var i=this;el(jn(r.prototype),"connectedCallback",this).call(this),this._inited=!1,setTimeout(function(){i._inited=!0}),requestAnimationFrame(function(){i._setNotApplicableLabel()});var o,a=document.createElement("div"),s,l,u,c=function(m,h){o.style.top=m[1]+"px";var v=$ie(i.shadowRoot.querySelectorAll(".item-container")).filter(function(_){return _!==o}).map(function(_){var x=u.top+_.offsetTop+_.offsetHeight/2;return{center:x,el:_,diff:h[1]-x}}).sort(function(_,x){return Math.abs(_.diff)-Math.abs(x.diff)})[0];v.diff<=0?v.el.before(a):v.el.after(a);var y=i.items.indexOf(o.item);i.items.splice(y,1);var b=i.items.indexOf(v.el.item)+(v.diff>0);i.items.splice(b,0,o.item),i.updateTrigger=!i.updateTrigger},f=function(m){return m.type.includes("touch")?[m.touches[0].clientX,m.touches[0].clientY]:[m.clientX,m.clientY]},p=function(){l||(l=[o.offsetLeft,o.offsetTop],c(l,s),o.classList.add("dragging"),a.style.height=o.offsetHeight+"px",o.insertAdjacentElement("afterEnd",a))};this._onMouseDown=function(d){if(!d.target.closest("input-ui")){u=i.getBoundingClientRect();var m=d.target.closest(".item-container");if(d.type==="mousedown"&&d.cancelable){var h;d.preventDefault(),(h=Zn())===null||h===void 0||h.blur()}if(!(!m||d.target.closest("not-applicable-el"))){s=f(d);var v=m.querySelector(".position").getBoundingClientRect();d.type==="touchstart"&&s[0]>v.right||(d.cancelable&&d.preventDefault(),o=m,d.target.closest("a")||p(),document.addEventListener("mousemove",i._onMouseMove,{passive:!1}),document.addEventListener("touchmove",i._onMouseMove,{passive:!1}),document.addEventListener("mouseup",i._onMouseUp),document.addEventListener("touchend",i._onMouseUp))}}},this._onMouseMove=function(d){if(!!o){if(!d.cancelable&&d.type==="touchmove"){i._onMouseUp();return}p(),d.cancelable&&d.preventDefault();var m=f(d),h=[Math.min(u.width,Math.max(0,m[0]-u.left)),Math.min(u.height,Math.max(0,m[1]-u.top))];h=[u.left+h[0]-s[0]+l[0],u.top+h[1]-s[1]+l[1]],c(h,m),i.answered=!0}},this._onMouseUp=function(){!o||(o.classList.remove("dragging"),o.style.top="",o=null,l=null,a.remove(),i.items=i.items.slice(),document.removeEventListener("mousemove",i._onMouseMove,{passive:!1}),document.removeEventListener("touchmove",i._onMouseMove,{passive:!1,capture:!0}),document.removeEventListener("mouseup",i._onMouseUp),document.removeEventListener("touchend",i._onMouseUp),i._updateAnswers())},this.shadowRoot.addEventListener("mousedown",this._onMouseDown),this.shadowRoot.addEventListener("touchstart",this._onMouseDown,{passive:!1})}},{key:"disconnectedCallback",value:function(){el(jn(r.prototype),"disconnectedCallback",this).call(this),document.removeEventListener("mousedown",this._onMouseDown),document.removeEventListener("touchstart",this._onMouseDown,{passive:!1}),document.removeEventListener("mousemove",this._onMouseMove,{passive:!1}),document.removeEventListener("touchmove",this._onMouseMove,{passive:!1,capture:!0}),document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("touchend",this._onMouseUp)}}]),r}(Q(M));lp(Ao,"is","rank-order-ui");lp(Ao,"template",g([DD]));lp(Ao,"sharedStyles",["survey"]);lp(Ao,"properties",{items:{type:Array,value:function(){return[]},notify:!0},maxAnswers:{type:Number,value:0},notApplicableEnabled:{type:Boolean,value:!1},readonly:{type:Boolean,reflectToAttribute:!0},disabled:{type:Boolean,reflectToAttribute:!0},answered:{type:Boolean}});customElements.define(Ao.is,Ao);var ID='<style>\n	:host {\n		display: flex;\n		padding: 0 8px;\n		flex-grow: 1;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	:host(:not([focus-visible])) {\n		outline: none;\n	}\n\n	:host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	}\n\n	:host([max-files-selected]) .dropzone {\n		padding-bottom: 0;\n	}\n\n	:host([max-files-selected]) .files {\n		padding-bottom: 16px;\n	}\n\n	:host([no-preview]) .file {\n		cursor: default;\n	}\n\n	.dropzone {\n		width: 100%;\n		max-height: none;\n		min-height: 170px;\n		margin: 8px;\n		padding-bottom: calc(16px + 8px);\n		padding-top: 16px;\n		box-sizing: border-box;\n		border-radius: 20px;\n	}\n\n	.files {\n		display: flex;\n		flex-wrap: wrap;\n		align-self: flex-start;\n		padding: 16px;\n		padding-top: 0;\n		padding-bottom: calc(16px + 8px);\n	}\n\n	.file {\n		position: relative;\n		display: flex;\n		width: 150px;\n		height: 150px;\n		border-radius: 20px;\n		margin: 8px;\n		overflow: hidden;\n		cursor: pointer;\n	}\n\n	.file:not([is-image]) {\n		background: rgba(0, 0, 0, 0.15);\n	}\n\n	.thumb {\n		position: relative;\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		flex-grow: 1;\n	}\n\n	.file-footer {\n		position: absolute;\n		bottom: 0;\n		left: 0;\n		right: 0;\n\n		display: flex;\n		align-items: center;\n		max-width: 100%;\n		background-color: rgba(0, 0, 0, 0.8);\n	}\n\n	.file[is-valid] .file-footer {\n		background-color: rgba(0, 0, 0, 0.5);\n	}\n\n	.file:not([is-valid]) .file-description {\n		color: #d8252b;\n		opacity: 1;\n	}\n\n	.file:not([is-valid]) .thumb-image,\n	.file:not([is-valid]) .thumb-icon {\n		-webkit-filter: blur(3px);\n		        filter: blur(3px);\n	}\n\n	.file-description {\n		display: flex;\n		min-width: 0;\n		padding: 8px;\n		padding-left: calc(8px + 2px * 2);\n		white-space: nowrap;\n	}\n\n	.file-description.file-name {\n		padding-right: 8px;\n		color: white;\n		opacity: 0.6;\n	}\n\n	span {\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	.file-description.file-size-error {\n		color: #d8252b;\n	}\n\n	.thumb-image {\n		object-position: center;\n		object-fit: cover;\n		width: 100%;\n		height: 100%;\n		-webkit-user-drag: none;\n	}\n\n	.thumb-icon {\n		color: white;\n		font-size: 125px;\n	}\n\n	.delete-icon {\n		margin-left: auto;\n		margin-right: calc(8px + 2px);\n		font-size: 18px;\n		color: white;\n		cursor: pointer;\n		opacity: 0.6;\n	}\n\n	.warn-icon {\n		position: absolute;\n		padding-bottom: 34px;\n		font-size: 100px;\n		color: #d8252b;\n		text-shadow: 0 10px 15px rgba(0, 0, 0, 0.8);\n	}\n\n	tooltip-ui {\n		display: flex;\n		flex-grow: 1;\n	}\n\n	@media (max-width: 500px) {\n		.files {\n			grid-template-columns: auto;\n		}\n	}\n\n	@media (pointer: fine) {\n		/* bug: error text glitches on Chrome */\n		/* .delete-icon {\n			transition: var(--transition-min);\n		} */\n		.delete-icon:hover {\n			opacity: 1;\n		}\n	}\n</style>\n\n<import-dropzone-ui\n	class="dropzone"\n	active\n	always-active\n	multiple="[[_multiple]]"\n	compact="[[_compactDropzone]]"\n	accept="[[accept]]"\n	theme="[[theme]]"\n	disabled="[[_isDropzoneDisabled(maxFilesSelected, disabled)]]"\n	info-text="[[_getMessage(\'dropzoneText\')]]"\n	on-import="_importHandler"\n	on-invalid-format="_onInvalidFormat"\n>\n	<template is="dom-if" if="[[files.length]]" restamp>\n		<div slot="icon-content" class="files">\n			<template is="dom-repeat" items="[[files]]" as="file">\n\n				<div class="file" file="[[file]]" is-valid$="[[_isValid(file, files)]]" is-image$="[[file.thumbURL]]" on-click="_fileClick">\n					<loader-ui active="[[get(file.uploading, files)]]"></loader-ui>\n					<tooltip-ui\n						theme="warning"\n						tooltip="[[_getWarningTooltip(file, files)]]"\n						margin-top="20px"\n						margin-left="10px"\n						disabled="[[_isValid(file, files)]]"\n					>\n						<div class="thumb">\n							<template is="dom-if" if="[[file.thumbURL]]" restamp>\n								<img class="thumb-image" src="[[get(file.thumbURL, files)]]" alt="[[file.name]]">\n							</template>\n							<icon-ui class="thumb-icon" icon="[[_getThumbIcon(file)]]" hidden="[[file.thumbURL]]"></icon-ui>\n							<icon-ui class="warn-icon" icon="alert" hidden="[[!_isTooBig(file)]]"></icon-ui>\n							<icon-ui class="warn-icon" icon="cloud-alert" hidden="[[!get(file.uploadFailed, files)]]"></icon-ui>\n							<div class="file-footer">\n								<!-- <tooltip-ui tooltip="[[file.name]]"> -->\n								<div class="file-description file-name" hidden="[[_isTooBig(file)]]"><span>[[file.name]]</span></div>\n								<div class="file-description file-size-error" hidden="[[!_isTooBig(file)]]">\n									<span>[[file.name]]</span>\n									<size-ui size="[[file.size]]" decimal="2"></size-ui>\n								</div>\n								<!-- </tooltip-ui> -->\n								<icon-ui class="delete-icon" icon="delete" on-click="_delete" hidden="[[disabled]]"></icon-ui>\n							</div>\n						</div>\n					</tooltip-ui>\n				</div>\n\n			</template>\n		</div>\n	</template>\n</import-dropzone-ui>';function C0(t){return C0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C0(t)}function soe(t){return foe(t)||coe(t)||uoe(t)||loe()}function loe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function uoe(t,e){if(!!t){if(typeof t=="string")return I0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return I0(t,e)}}function coe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function foe(t){if(Array.isArray(t))return I0(t)}function I0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jD(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function poe(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){jD(o,n,i,a,s,"next",l)}function s(l){jD(o,n,i,a,s,"throw",l)}a(void 0)})}}function doe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hoe(t,e,r){return e&&BD(t.prototype,e),r&&BD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function moe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j0(t,e)}function j0(t,e){return j0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},j0(t,e)}function yoe(t){var e=goe();return function(){var n=up(t),i;if(e){var o=up(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return voe(this,i)}}function voe(t,e){if(e&&(C0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B0(t)}function B0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function goe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function up(t){return up=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},up(t)}function M0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var tl=function(t){moe(r,t);var e=yoe(r);function r(){var n;return doe(this,r),n=e.call(this),n.addEventListener("keydown",function(i){(i.key===" "||i.key==="Enter")&&i.target===B0(n)&&i.preventDefault()},!0),n.addEventListener("keyup",function(i){(i.key===" "||i.key==="Enter")&&i.target===B0(n)&&n.shadowRoot.querySelector("import-dropzone-ui").openSystemDialog()}),n}return hoe(r,[{key:"_getMessage",value:function(i){if(this[i])return this[i];var o={dropzoneText:w.get("import-dropzone-ui.dropzone-text"),minFilesErrorText:w.get("survey-validator-ui.validator-upload-files-min-text",{"min-files":this.minFiles}),maxFilesErrorText:w.get("survey-validator-ui.validator-upload-files-max-text",{"max-files":this.maxFiles}),maxSizeErrorText:w.get("survey-validator-ui.validator-upload-size-max-text",{"max-size":this.maxSize}),invalidFormatErrorText:w.get("survey-validator-ui.validator-upload-format-custom-text",{"custom-format":this.accept}),uploadFailedErrorText:w.get("survey-validator-ui.validator-upload-failed-text")};return o[i]}},{key:"_getMultiple",value:function(i){return i!==1}},{key:"_getValidFiles",value:function(i){var o=this;return i.filter(function(a){return o._isValid(a)})}},{key:"_isDropzoneDisabled",value:function(i,o){return i||o}},{key:"_getThumbIcon",value:function(i){return oP(i)}},{key:"_isImage",value:function(i){return i.type.startsWith("image")||i.name.match(/\.(jpe?g|png|webp|bmp|tif|svg|gif)/)}},{key:"_isTooBig",value:function(i){return this.maxSize&&i.size/1024/1024>this.maxSize}},{key:"_isValid",value:function(i){return!this._isTooBig(i)&&!i.uploadFailed}},{key:"_getMaxFilesSelected",value:function(){return!!this.maxFiles&&this._validFiles.length>=this.maxFiles}},{key:"_getWarningTooltip",value:function(i){return this._isTooBig(i)?this._getMessage("maxSizeErrorText"):this._getMessage("uploadFailedErrorText")}},{key:"_fileClick",value:function(i){var o,a;i.preventDefault(),i.stopPropagation();var s=i.currentTarget.file;if(!(this.noPreview||!s.filePath)){var l="".concat(window.ROOT_PATH||"/","VariableFile/Preview/").concat(this.case,"/").concat(s.id);if(s.thumbURL&&!((o=s.type)!==null&&o!==void 0&&o.includes("pdf")||(a=s.extension)!==null&&a!==void 0&&a.includes("PDF"))){var u=document.createElement("image-modal-ui");u.open(l);return}window.open(l)}}},{key:"_checkMinFiles",value:function(){this.minFiles&&this.files.length<this.minFiles&&NotifyUi.notify("warning",this._getMessage("minFilesErrorText"),3e3)}},{key:"_delete",value:function(i){i.preventDefault(),i.stopPropagation();var o=i.currentTarget.closest(".file").file,a=this.files.indexOf(o);this.files.splice(a,1),this.files=this.files.slice(),URL.revokeObjectURL(o.thumbURL),this._checkMinFiles(),this._isValid(o)&&this.case&&fetch("".concat(window.ROOT_PATH||"/","VariableFile/Delete/").concat(this.case,"/").concat(o.id),{method:"POST"})}},{key:"_upload",value:function(){var n=poe(regeneratorRuntime.mark(function o(a){var s,l,u,c;return regeneratorRuntime.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(a.length){p.next=2;break}return p.abrupt("return");case 2:if(this.dispatchEvent(new CustomEvent("upload-start")),!(this.case&&this.variable)){p.next=29;break}return s=new FormData,a.forEach(function(d){d.uploading=!0,s.append("files",d)}),s.append("variable",this.variable),s.append("ids",JSON.stringify(a.map(function(d){return d.id}))),l=!0,p.prev=9,p.next=12,fetch("".concat(window.ROOT_PATH||"/","VariableFile/Uploads/").concat(this.case),{method:"POST",body:s,timeout:1e3});case 12:if(u=p.sent,!u.ok){p.next=20;break}return p.next=16,u.json();case 16:c=p.sent,c.forEach(function(d){a.find(function(m){return m.id===d.id?(d.thumbURL||(URL.revokeObjectURL(m.thumbURL),m.thumbURL=d.thumbURL),m.thumbURL=d.thumbURL,m.filePath=d.filePath,!0):!1})}),p.next=22;break;case 20:l=!1,a.forEach(function(d){d.uploadFailed=!0});case 22:p.next=28;break;case 24:p.prev=24,p.t0=p.catch(9),l=!1,a.forEach(function(d){d.uploadFailed=!0});case 28:l||NotifyUi.notify("warning",this._getMessage("uploadFailedErrorText"),3e3);case 29:a.forEach(function(d){d.uploading=!1}),this.files=this.files.slice(),this.dispatchEvent(new CustomEvent("upload-finish"));case 32:case"end":return p.stop()}},o,this,[[9,24]])}));function i(o){return n.apply(this,arguments)}return i}()},{key:"_onInvalidFormat",value:function(i){var o=this;ue(this,10,function(){NotifyUi.notify("warning",o._getMessage("invalidFormatErrorText"),3e3)})}},{key:"_importHandler",value:function(i){var o=this,a,s=i.detail,l=!1;s.forEach(function(p){p.id=H.generate(),o._isImage(p)&&(p.thumbURL=URL.createObjectURL(p)),o._isTooBig(p)&&(l=!0)});var u=s.filter(function(p){return!o._isTooBig(p)});if(this.maxFiles&&u.length+this._validFiles.length>this.maxFiles){NotifyUi.notify("warning",this._getMessage("maxFilesErrorText"),3e3);var c=[],f=0;s.find(function(p){return f>=o.maxFiles-o._validFiles.length?!0:(o._isTooBig(p)||f++,c.push(p),!1)}),s=c}this._upload(u),l&&NotifyUi.notify("warning",this._getMessage("maxSizeErrorText"),3e3),(a=this.files).push.apply(a,soe(s)),this.files=this.files.slice(),this._checkMinFiles()}}]),r}(sr(O));M0(tl,"is","file-upload-ui");M0(tl,"template",g([ID]));M0(tl,"properties",{maxSize:{type:Number},minFiles:{type:Number},maxFiles:{type:Number},dropzoneText:{type:String},minFilesErrorText:{type:String},maxFilesErrorText:{type:String},maxSizeErrorText:{type:String},invalidFormatErrorText:{type:String},uploadFailedErrorText:{type:String},case:{type:String},variable:{type:String},accept:{type:String},theme:{type:String,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},noPreview:{type:Boolean,value:!1},files:{type:Array,value:function(){return[]}},_validFiles:{type:Array,computed:"_getValidFiles(files)"},_multiple:{computed:"_getMultiple(maxFiles)"},maxFilesSelected:{computed:"_getMaxFilesSelected(maxFiles, _validFiles)",reflectToAttribute:!0}});w.inited.then(function(){customElements.define(tl.is,tl)});var MD='<style>\n	:host {\n		position: relative;\n\n		display: flex;\n		flex-direction: column;\n		align-items: center;\n		justify-content: center;\n\n		overflow: hidden;\n\n		color: rgba(33, 37, 43, 1);\n		border: 2px dashed #a8bac3;\n		border-radius: 4px;\n		background-color: #eee;\n		cursor: pointer;\n\n		transition: 0.2s;\n		opacity: 0;\n		pointer-events: none;\n		max-height: 0;\n	}\n\n	:host([disabled]) {\n		cursor: default;\n		border-style: solid;\n	}\n\n	:host(:not([theme=survey])) {\n		color: #607d8b;\n		border-color: #607d8b;\n	}\n\n	:host([drag-over]) {\n		border-style: solid;\n		color: rgba(33, 37, 43, 1);\n		background: rgba(255, 255, 255, 1);\n		border-color: #607d8b;\n	}\n\n	:host([active]:not([always-active])) {\n		max-height: 100vh;\n	}\n\n	:host([active]), :host([always-active]) {\n		opacity: 1;\n		pointer-events: auto;\n		padding-bottom: 16px;\n		padding-top: 8px;\n		margin-top: 8px;\n		margin-bottom: 8px;\n	}\n\n	:host(:not([active]):not([always-active])) .click-text,\n	:host(:not([active]):not([always-active])) .content {\n		display: none;\n	}\n\n	:host([drag]) {\n		opacity: 1;\n		pointer-events: auto;\n		max-height: 100vh;\n		position: fixed;\n		top: 16px;\n		left: 16px;\n		right: 16px;\n		bottom: 16px;\n		margin-top: 0 !important;\n		margin-bottom: 0 !important;\n		z-index: 100000;\n	}\n\n	:host(:not([compact])[active]),\n	:host(:not([compact])[always-active]) {\n		min-height: 200px;\n	}\n\n	:host([compact]) {\n		height: 60px;\n		max-height: 60px;\n		min-height: 30px;\n		padding: 0;\n	}\n\n	:host([compact]) .icon {\n		display: none;\n	}\n\n	:host([compact]) .info {\n		margin-top: 0;\n	}\n\n	:host([compact]) .formats {\n		display: none;\n	}\n	/* :host(:not([implicit])[active]) {\n		opacity: .9;\n	} */\n	/* :host([implicit]) ::slotted(*) {\n		display: none;\n	} */\n	/* :host([disabled]) {\n		opacity: 0.6;\n		pointer-events: none;\n	} */\n	/* :host([implicit]:not([active])) .container {\n		pointer-events: none;\n		opacity: 0;\n	} */\n\n	.icon {\n		opacity: 0.6;\n		font-size: 60px;\n	}\n\n	.info {\n		font-size: 16px;\n		margin: 0 16px;\n	}\n\n	.formats {\n		font-size: 13px;\n		padding-top: 2px;\n	}\n\n	.content {\n		text-align: center;\n	}\n\n	:host([drag]) .content {\n		display: none;\n	}\n</style>\n\n<slot name="icon-content">\n	<div class="icon">\n		<icon-ui icon="package-variant"></icon-ui>\n	</div>\n</slot>\n\n<template is="dom-if" if="[[!disabled]]">\n	<div class="info" hidden="[[!infoText]]">[[infoText]]</div>\n	<div class="info" hidden="[[infoText]]">\n		[[l10n.import-dropzone-ui.drop-files-here-text]]\n		<span class="click-text">[[l10n.import-dropzone-ui.or-click-text]]\n			<icon-ui icon="cursor-pointer"></icon-ui>\n			[[l10n.import-dropzone-ui.to-select-files-text]]\n		</span>\n	</div>\n	<div class="formats">[[_extensions]]</div>\n	<div class="content">\n		<slot></slot>\n	</div>\n</template>\n\n<import-meta\n	id="importMeta"\n	multiple="[[multiple]]"\n	accept="[[accept]]"\n	max-size="[[maxSize]]"\n	max-files="[[maxFiles]]"\n	errors="{{errors}}"\n	on-invalid-format="_onInvalidFormat"\n	on-import="_importHandler"\n></import-meta>';function L0(t){return L0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L0(t)}function N0(t){return xoe(t)||Foe(t)||woe(t)||_oe()}function _oe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function woe(t,e){if(!!t){if(typeof t=="string")return q0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return q0(t,e)}}function Foe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xoe(t){if(Array.isArray(t))return q0(t)}function q0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ooe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Poe(t,e,r){return e&&LD(t.prototype,e),r&&LD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ro(){return typeof Reflect!="undefined"&&Reflect.get?Ro=Reflect.get:Ro=function(e,r,n){var i=Soe(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ro.apply(this,arguments)}function Soe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=br(t),t!==null););return t}function koe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&z0(t,e)}function z0(t,e){return z0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},z0(t,e)}function Eoe(t){var e=Roe();return function(){var n=br(t),i;if(e){var o=br(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Toe(this,i)}}function Toe(t,e){if(e&&(L0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aoe(t)}function Aoe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Roe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function br(t){return br=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},br(t)}function H0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Do=function(t){koe(r,t);var e=Eoe(r);function r(){var n;return Ooe(this,r),n=e.call(this),n.addEventListener("click",function(i){n.disabled||!n.shadowRoot.contains(i.target)&&i.target.matches("input-ui, button-ui")||n.openSystemDialog()}),n}return Poe(r,[{key:"openSystemDialog",value:function(){this.$.importMeta.openSystemDialog()}},{key:"_onInvalidFormat",value:function(i){this.dispatchEvent(new CustomEvent("invalid-format",{detail:i.detail}))}},{key:"_getExtensions",value:function(i){return i?i.split(",").map(function(o){return"*"+o}).join(", "):""}},{key:"_activeObserver",value:function(i){var o=this;i?(this._transitionHandler=function(a){window.addEventListener("click",o._outsideClickHandler),o.removeEventListener("transitionend",o._transitionHandler)},this.addEventListener("transitionend",this._transitionHandler)):(window.removeEventListener("click",this._outsideClickHandler),this.removeAttribute("drag"))}},{key:"_catchOusideDragObserver",value:function(i){i?document.addEventListener("dragenter",this._outsideDragHandler):document.removeEventListener("dragenter",this._outsideDragHandler)}},{key:"ready",value:function(){var i=this;Ro(br(r.prototype),"ready",this).call(this),this.addEventListener("dragleave",function(){i.removeAttribute("drag"),i.removeAttribute("drag-over")}),this.addEventListener("dragover",function(a){if(a.preventDefault(),i.disabled){a.dataTransfer.dropEffect="none";return}a.dataTransfer.dropEffect="move",i.setAttribute("drag-over",""),i.catchOutsideDrag&&i.setAttribute("drag","")});var o=function a(s){!s||(s.isFile?s.file(function(l){i.$.importMeta.import([l])}):s.isDirectory&&s.createReader().readEntries(function(l){l.forEach(a)}))};this.addEventListener("drop",function(a){a.stopPropagation(),a.preventDefault();var s=!1;a.dataTransfer.items&&N0(a.dataTransfer.items).forEach(function(l){l.webkitGetAsEntry&&(s=!0,o(l.webkitGetAsEntry()))}),s||i.$.importMeta.import(N0(a.dataTransfer.files)),i.active=!1,i.removeAttribute("drag"),i.removeAttribute("drag-over")})}},{key:"connectedCallback",value:function(){var i=this;Ro(br(r.prototype),"connectedCallback",this).call(this),r.instances.add(this),this._outsideClickHandler=function(o){var a=!o.composedPath().filter(function(s){return s===i&&s}).length;a&&(i.active=!1)},this._outsideDragHandler=function(o){!i.catchOutsideDrag||i.disabled||(o.preventDefault(),N0(o.dataTransfer.types).includes("Files")&&i.setAttribute("drag",""))}}},{key:"disconnectedCallback",value:function(){Ro(br(r.prototype),"disconnectedCallback",this).call(this),r.instances.delete(this),window.removeEventListener("click",this._outsideClickHandler),document.removeEventListener("dragenter",this._outsideDragHandler)}},{key:"_importHandler",value:function(i){this.dispatchEvent(new CustomEvent("import",{detail:i.detail}))}}]),r}(O);H0(Do,"is","import-dropzone-ui");H0(Do,"template",g([MD]));H0(Do,"properties",{theme:{type:String,reflectToAttribute:!0},active:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_activeObserver"},alwaysActive:{type:Boolean,value:!1,reflectToAttribute:!0},catchOutsideDrag:{type:Boolean,value:!1,observer:"_catchOusideDragObserver"},multiple:{type:Boolean},maxSize:{type:Number},maxFiles:{type:Number},infoText:{type:String},accept:{type:String},errors:{type:Array,notify:!0},implicit:{type:Boolean,value:!1,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},shadeMid:{type:Boolean,value:!1,reflectToAttribute:!0},shadeMax:{type:Boolean,value:!1,reflectToAttribute:!0},compact:{type:Boolean,value:!1,reflectToAttribute:!0},_extensions:{computed:"_getExtensions(accept)"}});Do.instances=new Set;customElements.define(Do.is,Do);var ND="<style>\n	:host {\n		display: block;\n	}\n</style>\n\n<slot></slot>";var qD="<style>\n	:host {\n		position: fixed;\n		transform: translate(0, calc(-100% - 4px));\n\n		display: block;\n		font-size: 14px;\n		padding: 6px;\n\n		background-color: rgba(33, 37, 43, 1);\n		color: rgba(255, 255, 255, 1);\n\n		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n		border-radius: 4px;\n		z-index: 100000;\n		pointer-events: none;\n	}\n\n	:host([theme=warning]) {\n		background-color: #d8252b;\n		color: rgba(255, 255, 255, 1);\n	}\n</style>\n\n<slot></slot>";function U0(t){return U0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U0(t)}function Ioe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function joe(t,e,r){return e&&zD(t.prototype,e),r&&zD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Boe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&V0(t,e)}function V0(t,e){return V0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},V0(t,e)}function Moe(t){var e=qoe();return function(){var n=cp(t),i;if(e){var o=cp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Loe(this,i)}}function Loe(t,e){if(e&&(U0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Noe(t)}function Noe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qoe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function cp(t){return cp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},cp(t)}function HD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fp=function(t){Boe(r,t);var e=Moe(r);function r(){return Ioe(this,r),e.apply(this,arguments)}return joe(r,[{key:"open",value:function(i,o,a){var s=this;document.body.append(this);var l=i.getBoundingClientRect(),u=this.getBoundingClientRect();o==="bottom"?this.style.top="".concat(l.bottom+u.height,"px"):this.style.top="".concat(l.top,"px"),a==="right"?(this.style.right="".concat(window.innerWidth-l.right,"px"),this.style.marginLeft="var(--side-padding)"):(this.style.left="".concat(l.left,"px"),this.style.marginRight="var(--side-padding)"),this._onScroll=function(){s.close()},document.addEventListener("content-scroll",this._onScroll),document.body.addEventListener("scroll",this._onScroll)}},{key:"close",value:function(){this.remove(),document.removeEventListener("content-scroll",this._onScroll),document.body.removeEventListener("scroll",this._onScroll)}}]),r}(M);HD(fp,"template",g([qD]));HD(fp,"is","tooltip-content-ui");customElements.define(fp.is,fp);function W0(t){return W0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W0(t)}function zoe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hoe(t,e,r){return e&&UD(t.prototype,e),r&&UD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function pp(){return typeof Reflect!="undefined"&&Reflect.get?pp=Reflect.get:pp=function(e,r,n){var i=Uoe(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},pp.apply(this,arguments)}function Uoe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Co(t),t!==null););return t}function Voe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G0(t,e)}function G0(t,e){return G0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},G0(t,e)}function Woe(t){var e=$oe();return function(){var n=Co(t),i;if(e){var o=Co(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Goe(this,i)}}function Goe(t,e){if(e&&(W0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VD(t)}function VD(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $oe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Co(t){return Co=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Co(t)}function $0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rl=function(t){Voe(r,t);var e=Woe(r);function r(){var n;return zoe(this,r),n=e.call(this),n._tooltipContent=document.createElement("tooltip-content-ui"),n.addEventListener("mouseenter",function(){n.disabled||(n.marginTop&&(n._tooltipContent.style.marginTop=n.marginTop),n.marginLeft&&(n._tooltipContent.style.marginLeft=n.marginLeft),n.getTooltip&&(n._tooltipContent.innerHTML=n.getTooltip()),n._tooltipContent.setAttribute("theme",n.theme),n._tooltipContent.open(VD(n),n.vAlign,n.fromRight?"right":"left"))}),n.addEventListener("mouseleave",function(){n._tooltipContent.close()}),n}return Hoe(r,[{key:"_disabledObserver",value:function(){this.disabled&&this._tooltipContent&&this._tooltipContent.close()}},{key:"disconnectedCallback",value:function(){pp(Co(r.prototype),"disconnectedCallback",this).call(this),this._tooltipContent.close()}},{key:"_tooltipObserver",value:function(){this._tooltipContent.innerHTML=this.tooltip}}]),r}(M);$0(rl,"is","tooltip-ui");$0(rl,"template",g([ND]));$0(rl,"properties",{tooltip:{type:String,observer:"_tooltipObserver"},getTooltip:{type:Function},theme:{type:String},marginTop:{type:String},marginLeft:{type:String},disabled:{type:Boolean,observer:"_disabledObserver"},fromRight:{type:Boolean,value:!1},vAlign:{type:String,value:"top"}});customElements.define(rl.is,rl);var WD='<style>\n	:host {\n		position: absolute;\n		display: block;\n		pointer-events: auto;\n		padding-left: 8px;\n		padding-right: 8px;\n		margin-bottom: 16px;\n		transition: transform 0.4s;\n	}\n\n	:host([is-ie]) {\n		bottom: 0;\n	}\n\n	.container {\n		display: flex;\n		align-items: center;\n		padding: 8px;\n		max-width: 960px;\n		box-sizing: border-box;\n		border-radius: 6px;\n		border: 1px solid rgba(255, 255, 255, 1);\n	}\n\n	:host(:not([close-btn])) .close {\n		display: none;\n	}\n\n	.close {\n		vertical-align: middle;\n		margin-left: 8px;\n		cursor: pointer;\n	}\n\n	:host([theme=warning]) .container {\n		background-color: #d8252b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme=success]) .container {\n		color: rgba(255, 255, 255, 1);\n		background-color: hsl(122, 69%, 42%);\n	}\n\n	:host([position=top]) {\n		top: 50px;\n	}\n\n	:host([intro]) .container {\n		animation: intro 0.4s;\n	}\n\n	:host([outro]) .container {\n		animation: outro 0.4s;\n	}\n\n	@keyframes in {\n		from {\n			transform: translateY(-100%);\n			opacity: 0;\n		}\n\n		to {\n			transform: translateY(0);\n			opacity: 1;\n		}\n	}\n\n	@keyframes outro {\n		from {\n			transform: translateY(0);\n			opacity: 1;\n		}\n\n		to {\n			transform: translateY(100%);\n			opacity: 0;\n		}\n	}\n</style>\n<style include="survey-style"></style>\n\n<div id="container" class="container">\n	<slot></slot>\n	<icon-ui class="close" icon="close" on-click="close"></icon-ui>\n</div>';function K0(t){return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K0(t)}function GD(t){return Joe(t)||Qoe(t)||Xoe(t)||Yoe()}function Yoe(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Xoe(t,e){if(!!t){if(typeof t=="string")return Y0(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y0(t,e)}}function Qoe(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Joe(t){if(Array.isArray(t))return Y0(t)}function Y0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zoe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $D(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function eae(t,e,r){return e&&$D(t.prototype,e),r&&$D(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dp(){return typeof Reflect!="undefined"&&Reflect.get?dp=Reflect.get:dp=function(e,r,n){var i=tae(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},dp.apply(this,arguments)}function tae(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Io(t),t!==null););return t}function rae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&X0(t,e)}function X0(t,e){return X0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},X0(t,e)}function nae(t){var e=aae();return function(){var n=Io(t),i;if(e){var o=Io(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return iae(this,i)}}function iae(t,e){if(e&&(K0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oae(t)}function oae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function aae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Io(t){return Io=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Io(t)}function hp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Bn=function(t){rae(r,t);var e=nae(r);function r(){return Zoe(this,r),e.apply(this,arguments)}return eae(r,[{key:"close",value:function(i){var o=this;i&&i.stopPropagation(),this.setAttribute("outro",""),this.$.container.addEventListener("animationend",function(){o.remove()}),r.repositionAll()}},{key:"ready",value:function(){var i=this;dp(Io(r.prototype),"ready",this).call(this),this.$.container.addEventListener("animationend",function(){i.removeAttribute("intro"),i.removeAttribute("outro")})}}],[{key:"getContainer",value:function(){var i=document.body.querySelector("#notify-container");return i||(i=document.createElement("div"),i.id="notify-container",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.right="0",i.style.bottom="0",i.style.zIndex="1000000",i.style.display="flex",i.style.flexDirection="column",i.style.alignItems="center",i.style.justifyContent="flex-end",i.style.overflow="hidden",i.style.pointerEvents="none",document.body.append(i),i)}},{key:"notify",value:function(i,o){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2e3,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,u=this.getContainer(),c=GD(u.children).find(function(p){return p.innerHTML===o&&p.theme===i});if(c)return c;var f=document.createElement("notify-ui");return f.transformEnabled=l,f.theme=i,f.closeBtn=a>3e3&&a!==1/0,f.innerHTML=o,typeof s=="number"?f.style.top=s+"px":f.position=s,u.insertAdjacentElement("afterBegin",f),requestAnimationFrame(function(){f.setAttribute("intro",""),r.repositionAll()}),a!==1/0&&setTimeout(function(){f.close()},a),f}},{key:"repositionAll",value:function(){var i=this.getContainer();if(!!i.childElementCount){var o=parseFloat(getComputedStyle(i.children[0]).marginBottom),a=o;GD(i.querySelectorAll("notify-ui:not([outro])")).reverse().forEach(function(s){if(!!s.transformEnabled){var l=s.getBoundingClientRect().height;s.hasAttribute("intro")&&(s.style.transition="none"),s.style.transform="translateY(-".concat(a,"px)"),s.hasAttribute("intro")&&requestAnimationFrame(function(){s.style.transition=""}),a+=l+o}})}}}]),r}(ce(Q(M)));hp(Bn,"is","notify-ui");hp(Bn,"template",g([WD]));hp(Bn,"sharedStyles",["survey"]);hp(Bn,"properties",{theme:{type:String,reflectToAttribute:!0},position:{type:String,reflectToAttribute:!0},closeBtn:{type:Boolean,value:!1,reflectToAttribute:!0},transformEnabled:{type:Boolean,value:!0}});window.NotifyUi=Bn;customElements.define(Bn.is,Bn);var KD='<style>\n	:host {\n		width: 80%;\n		margin: 10px auto;\n		text-align: center;\n		overflow: hidden;\n		background: rgba(255, 255, 255, .9);\n	}\n\n	.container {\n		overflow: hidden;\n	}\n\n	.qs-csb-shadow-bottom {\n		border-radius: 50%;\n		width: 100%;\n		height: 40px;\n		box-shadow: 0 0 100px #e02550;\n		position: relative;\n		top: -40px;\n	}\n\n	.qs-csb-logo {\n		position: relative;\n		display: block;\n		left: 50%;\n		top: -40px;\n		padding-top: 30px;\n		transform: translateX(-50%);\n		width: 118px;\n		height: 168px;\n		background: linear-gradient(to bottom, #e9206c, #e02550);\n	}\n\n	.qs-csb-message {\n		text-align: center;\n		font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;\n		font-size: x-small;\n		color: #888;\n	}\n\n	.qs-csb-message span {\n		color: #e9206c;\n	}\n\n	:host a, :host a:hover {\n		text-decoration: none;\n	}\n\n	.qs-csb-button {\n		position: relative;\n		color: #fff !important;\n\n		box-shadow: 0 2px 5px #666;\n\n		display: inline-block;\n		font-weight: 700;\n		text-align: center;\n		white-space: nowrap;\n		vertical-align: middle;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n		border: 1px solid transparent;\n		padding: 1em 1.5em .8em;\n		font-size: 12px;\n		line-height: 1.5;\n		border-radius: 9px;\n		transition-property: color, background, border-color;\n		transition-duration: .25s;\n		transition-timing-function: ease-in-out;\n		min-height: 20px;\n		margin-top: 1rem;\n		font-family: "Lucida Sans Unicode", Arial, Helvetica, sans-serif;\n		text-transform: uppercase;\n		letter-spacing: .1em;\n		text-decoration: none;\n		cursor: pointer;\n	}\n\n	.qs-csb-button::before {\n		content: \'\';\n		position: absolute;\n		display: block;\n		width: calc(100% + 2px);\n		height: calc(100% + 2px);\n		top: -1px;\n		left: -1px;\n		border-radius: 9px;\n		background: linear-gradient(to right, #e9206c 1%, #ff2640);\n	}\n\n	.qs-csb-button:hover {\n		transform: translateY(-2px);\n	}\n\n	.qs-csb-btn-bg {\n		display: block;\n	}\n\n	.qs-csb-btn-text {\n		position: relative;\n		z-index: 1;\n		display: block;\n		margin-top: 1px;\n	}\n\n	.qs-csb-text {\n		margin-top: -21px;\n	}\n\n	.qs-csb-text-inner {\n		padding: 2.5rem 32px 2rem;\n		border-radius: 9px;\n		border: 1px solid rgba(163, 163, 163, .2);\n		color: rgba(121, 121, 121, .7);\n		text-transform: uppercase;\n		font-size: 12px;\n		font-weight: 300;\n		max-width: 390px;\n		margin: 0 auto;\n	}\n</style>\n\n<div class="container">\n	<div class="qs-csb-shadow-bottom"></div>\n\n	<div class="qs-csb-logo">\n		<a href="[[site]]" title="[[l10n.survey-marketing-message.link-title]]">\n			<img src="[[_imagePath]]" alt="QuestionStar">\n		</a>\n	</div>\n\n	<p class="qs-csb-message">\n		[[l10n.survey-marketing-message.description-part1]]\n		<a href="[[site]]" title="[[l10n.survey-marketing-message.link-title]]"><span>QUESTIONSTAR</span></a>\u2122 [[l10n.survey-marketing-message.description-part2]].\n		<br>\n		[[l10n.survey-marketing-message.description-part3]]\n	</p>\n\n	<a class="qs-csb-button" href="[[site]]">\n		<span class="qs-csb-btn-bg"></span>\n		<span class="qs-csb-btn-text">[[l10n.survey-marketing-message.button]]</span>\n	</a>\n\n	<div class="qs-csb-text">\n		<div class="qs-csb-text-inner">[[l10n.survey-marketing-message.text]]</div>\n	</div>\n</div>\n';function Q0(t){return Q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q0(t)}function YD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function lae(t,e,r){return e&&YD(t.prototype,e),r&&YD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function uae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&J0(t,e)}function J0(t,e){return J0=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},J0(t,e)}function fae(t){var e=hae();return function(){var n=mp(t),i;if(e){var o=mp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return pae(this,i)}}function pae(t,e){if(e&&(Q0(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dae(t)}function dae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function mp(t){return mp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},mp(t)}function Z0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nl=function(t){cae(r,t);var e=fae(r);function r(){return uae(this,r),e.apply(this,arguments)}return lae(r)}(O);Z0(nl,"is","survey-marketing-message-ui");Z0(nl,"template",g([KD]));Z0(nl,"properties",{site:{type:String,value:APP.siteUrl},_imagePath:{type:String,value:"".concat(window.ROOT_PATH||"/","images/logo.svg")}});customElements.define(nl.is,nl);var XD='<style>\n	.view {\n		position: fixed;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n		z-index: 100000;\n\n		box-sizing: border-box;\n		background-color: rgba(33, 37, 43, 1);\n		display: flex;\n		align-items: center;\n		justify-content: center;\n	}\n\n	.toolbar {\n		position: absolute;\n		top: 16px;\n		right: 16px;\n		z-index: 10000;\n	}\n\n	.image {\n		max-width: 100vw;\n		max-height: calc(100vh - 50px);\n		object-fit: contain;\n	}\n\n</style>\n\n<div class="view" on-click="_close">\n	<image-ui class="image" src="[[thumbURL]]"></image-ui>\n	<flex-mkp space-min class="toolbar">\n		<button-ui round theme="warning" icon="close" on-click="_close"></button-ui>\n	</flex-mkp>\n</div>';function ew(t){return ew=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ew(t)}function yae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QD(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function vae(t,e,r){return e&&QD(t.prototype,e),r&&QD(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tw(t,e)}function tw(t,e){return tw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},tw(t,e)}function bae(t){var e=Fae();return function(){var n=yp(t),i;if(e){var o=yp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return _ae(this,i)}}function _ae(t,e){if(e&&(ew(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wae(t)}function wae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function yp(t){return yp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},yp(t)}function rw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var il=function(t){gae(r,t);var e=bae(r);function r(){return yae(this,r),e.apply(this,arguments)}return vae(r,[{key:"open",value:function(i){this.thumbURL=i,document.body.append(this),document.body.style.overflow="hidden"}},{key:"_close",value:function(){this.remove(),document.body.style.overflow="auto"}}]),r}(O);rw(il,"is","image-modal-ui");rw(il,"template",g([XD]));rw(il,"properties",{thumbURL:{type:String}});customElements.define(il.is,il);var JD='<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		align-items: flex-start;\n		-webkit-user-select: none;\n		   -moz-user-select: none;\n		    -ms-user-select: none;\n		        user-select: none;\n	}\n\n	:host([disabled]) {\n		opacity: .8;\n	}\n\n	[hidden] {\n		display: none !important;\n	}\n\n	.wrapper-canvas {\n		position: relative;\n		border: 2px solid #a8bac3;\n		border-radius: 4px;\n		width: 100%;\n		overflow: hidden;\n		background-color: #fff;\n	}\n\n	.clear-btn {\n		position: absolute;\n		right: 10px;\n		top: 10px;\n	}\n\n	.signature-pad {\n		display: flex;\n		width: 100%;\n	}\n\n	.his-control {\n		display: flex;\n		position: absolute;\n		left: 10px;\n		top: 10px;\n	}\n\n	.undo-btn {\n		margin-right: 10px;\n	}\n</style>\n<style include="survey-style"></style>\n\n<div id="wrapper\u0421anvas" class="wrapper-canvas">\n	<canvas id="signaturePad" class="signature-pad"></canvas>\n	<button-ui class="clear-btn" theme="warning" icon="close" round hidden="[[_hideReset]]" on-click="_onResetClick"></button-ui>\n	<div class="his-control" hidden="[[disabled]]">\n		<button-ui class="undo-btn" theme="bg1" icon="undo-variant" on-click="_onUndoClick" round disabled="[[_disabledUndo]]"></button-ui>\n		<button-ui class="redo-btn" theme="bg1" icon="redo-variant" on-click="_onRedoClick" round disabled="[[_disabledRedo]]"></button-ui>\n	</div>\n</div>\n\n\n';function nw(t){return nw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nw(t)}function ZD(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function vp(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){ZD(o,n,i,a,s,"next",l)}function s(l){ZD(o,n,i,a,s,"throw",l)}a(void 0)})}}function Oae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Pae(t,e,r){return e&&eC(t.prototype,e),r&&eC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function gp(){return typeof Reflect!="undefined"&&Reflect.get?gp=Reflect.get:gp=function(e,r,n){var i=Sae(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},gp.apply(this,arguments)}function Sae(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Bo(t),t!==null););return t}function kae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&iw(t,e)}function iw(t,e){return iw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},iw(t,e)}function Eae(t){var e=Aae();return function(){var n=Bo(t),i;if(e){var o=Bo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Tae(this,i)}}function Tae(t,e){if(e&&(nw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jo(t)}function jo(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Aae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Bo(t){return Bo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bo(t)}function Lt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Mo=function(t){kae(r,t);var e=Eae(r);function r(){var n;return Oae(this,r),n=e.call(this),Lt(jo(n),"_handlerImageOnLoad",function(){n._drawImage(),n._loader.close(),n.image.id==="history"?n._hisStep===0&&!n._tempVariableFileIdImg?n._reset():n.saveImage():n.image.id==="variableFile"&&(n._tempVariableFileIdImg=n.canvas.toDataURL())}),Lt(jo(n),"_onMousedown",function(i){if(!n.disabled){n._signStatesArray.length!==n._hisStep&&n._addUndoState(n._hisStep),n._drawing=!0,n.context.fillStyle="#fff",n.context.strokeStyle=n.signColor&&nb(rb(n.signColor))||"rgba(33, 37, 43, 1)",n.context.lineWidth=1.5*devicePixelRatio,n.context.lineCap="round";var o=n._getPosition(i),a=o.x,s=o.y;n.context.moveTo(a,s),n.hideReset=!1,n._drawn=!0}}),Lt(jo(n),"_onMousemove",function(i){if(i.preventDefault(),i.stopPropagation(),n._drawing){var o=n._getPosition(i),a=o.x,s=o.y;n.context.lineTo(a,s),n.context.stroke()}}),Lt(jo(n),"_onMouseup",function(i){if(i.preventDefault(),i.stopPropagation(),n._drawing){var o=n._getPosition(i),a=o.x,s=o.y;n.context.lineTo(a,s),n.context.stroke(),n.saveImage(),n._addUndoState(),n._drawing=!1}}),Lt(jo(n),"_onMouseout",function(i){i.preventDefault(),i.stopPropagation(),n._drawing&&n.saveImage(),n._drawing&&n._addUndoState(),n._drawing=!1}),n._loader=document.createElement("loader-ui"),n}return Pae(r,[{key:"_signStatesArrayObserver",value:function(){this._hisStep=this._signStatesArray.length}},{key:"connectedCallback",value:function(){gp(Bo(r.prototype),"connectedCallback",this).call(this),this._init()}},{key:"_computedHideReset",value:function(i,o,a,s){return a?!0:!o&&s===0}},{key:"_computedDisabledUndo",value:function(i,o){return!i.length||o===0}},{key:"_computedDisabledRedo",value:function(i,o){return!i.length||o===i.length}},{key:"_init",value:function(){var i=this;if(!this.canvas)if(this.canvas=this.$.signaturePad,this.context=this.canvas.getContext("2d"),this.canvas.addEventListener(OO(),this._onMousedown),this.canvas.addEventListener(PO(),this._onMousemove,{passive:!1}),this.canvas.addEventListener(SO(),this._onMouseup),this.canvas.addEventListener("mouseout",this._onMouseout),this.image=new Image,this.image.crossOrigin="Anonymous",this.image.onload=this._handlerImageOnLoad,this.image.onerror=function(){i._loader.close()},this._loader&&this._loader.open(this.$.wrapper\u0421anvas),this.variableFileId&&this.case)this.image.id="variableFile",this.image.src="".concat(window.ROOT_PATH||"/","VariableFile/Preview/").concat(this.case,"/").concat(this.variableFileId),this._drawn=!0;else{if(!this.backgroundPath){this._loader.close();return}this.image.src=this.backgroundPath}}},{key:"_drawImage",value:function(){this._setCanvasSize(this.image.width,this.image.height),this.context.drawImage(this.image,0,0,this.canvas.width,this.canvas.height)}},{key:"_backgroundPathObserver",value:function(){this._init(),this._setBackground(),this._signStatesArray.length=0,this._signStatesArray=this._signStatesArray}},{key:"_setCanvasSize",value:function(i,o){var a=i/o,s=Math.max(Math.min(i,1e3),700);this.canvas.width=s,this.canvas.height=s/a}},{key:"_setDefaultCanvasSize",value:function(){this.canvas.width=1e3,this.canvas.height=500}},{key:"_setBackground",value:function(){if(this.variableFileId)return!1;this.image.id=null,this.backgroundPath?(this._loader&&this._loader.open(this.$.wrapper\u0421anvas),this.image.src=this.backgroundPath):(this.image.src="",this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this._setDefaultCanvasSize())}},{key:"_getPosition",value:function(i){var o=i.type.includes("touch")&&i.touches[0]?i.touches[0]:i,a=this.canvas.getBoundingClientRect();return{x:(o.clientX-a.left)/a.width*this.canvas.width,y:(o.clientY-a.top)/a.height*this.canvas.height}}},{key:"_reset",value:function(){var n=vp(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this._drawn=!1,s.next=4,this._delete();case 4:this.variableFileId="",this._setBackground(),this._signStatesArray.length=0,this._signStatesArray=this._signStatesArray;case 8:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"_onResetClick",value:function(){this._reset()}},{key:"_onUndoClick",value:function(){if(this._hisStep>1)this.image.id="history",this.image.src=this._signStatesArray[this._hisStep-2];else{if(this._tempVariableFileIdImg){this.image.src=this._tempVariableFileIdImg,this._hisStep-=1;return}this._delete(),this.variableFileId="",this.backgroundPath?this._setBackground():this.context.clearRect(0,0,this.canvas.width,this.canvas.height)}this._hisStep-=1}},{key:"_onRedoClick",value:function(){this._signStatesArray.length>this._hisStep&&(this.image.id="history",this.image.src=this._signStatesArray[this._hisStep],this._hisStep+=1,this.saveImage())}},{key:"_addUndoState",value:function(i){i>=0?this._signStatesArray=this._signStatesArray.splice(0,i):this._signStatesArray.push(this.canvas.toDataURL()),this._signStatesArray=this._signStatesArray}},{key:"_upload",value:function(){var n=vp(regeneratorRuntime.mark(function o(a){var s=this;return regeneratorRuntime.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(this.dispatchEvent(new CustomEvent("upload-start")),!(!this.case||!this.variable)){u.next=3;break}return u.abrupt("return");case 3:this._debounce=ue(this._debounce,500,vp(regeneratorRuntime.mark(function c(){var f,p;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return f=new FormData,p=H.generate(),f.append("files",a,"".concat(Date.now(),".png")),f.append("variable",s.variable),f.append("ids",JSON.stringify([p])),m.next=7,fetch("".concat(window.ROOT_PATH||"/","VariableFile/Uploads/").concat(s.case),{method:"POST",body:f,timeout:1e3});case 7:s.variableFileId=p,s.dispatchEvent(new CustomEvent("upload-finish"));case 9:case"end":return m.stop()}},c)})));case 4:case"end":return u.stop()}},o,this)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"_delete",value:function(){var n=vp(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(this.case&&this.variableFileId)){s.next=5;break}return this.dispatchEvent(new CustomEvent("upload-start")),s.next=4,fetch("".concat(window.ROOT_PATH||"/","VariableFile/Delete/").concat(this.case,"/").concat(this.variableFileId),{method:"POST"});case 4:this.dispatchEvent(new CustomEvent("upload-finish"));case 5:case"end":return s.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"saveImage",value:function(){var i=this;if(this.backgroundPath)this.canvas.toBlob(function(s){i._upload(s)},"image/png");else{var o;o=this.context.getImageData(0,0,this.canvas.width,this.canvas.height);var a=this.context.globalCompositeOperation;this.context.globalCompositeOperation="destination-over",this.context.fillStyle="#fff",this.context.fillRect(0,0,this.canvas.width,this.canvas.height),this.canvas.toBlob(function(s){i._upload(s)},"image/png"),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.context.putImageData(o,0,0),this.context.globalCompositeOperation=a}}}]),r}(O);Lt(Mo,"is","signature-ui");Lt(Mo,"template",g([JD]));Lt(Mo,"sharedStyles",["survey"]);Lt(Mo,"properties",{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},backgroundPath:{type:String,observer:"_backgroundPathObserver"},signColor:{type:String},case:{type:String},variable:{type:String},variableFileId:{type:String,reflectToAttribute:!0},_hideReset:{type:Boolean,value:!0,computed:"_computedHideReset(variableFileId, _drawn, disabled, _hisStep)"},_disabledUndo:{type:Boolean,value:!0,computed:"_computedDisabledUndo(_signStatesArray, _hisStep)"},_disabledRedo:{type:Boolean,value:!0,computed:"_computedDisabledRedo(_signStatesArray, _hisStep)"},_drawing:{type:Boolean,value:!1},_tempVariableFileIdImg:{type:String},_drawn:{type:Boolean,value:!1},_signStatesArray:{type:Array,value:[],observer:"_signStatesArrayObserver"},_hisStep:{type:Number,value:1}});customElements.define(Mo.is,Mo);var tC='<style>\n	:host {\n		display: contents;\n	}\n\n	.text {\n		text-align: center;\n		margin-bottom: 8px;\n	}\n\n	.overflow {\n		color: #f00;\n		background: rgba(0, 0, 0, 0);\n	}\n\n	.remaining,\n	.overflow {\n		margin-bottom: 8px;\n	}\n\n	.total {\n		margin-top: 8px;\n	}\n\n	@media (max-width: 700px) {\n		:host([form]) .text {\n			width: auto !important;\n		}\n	}\n\n	@media (max-width: 800px) {\n		:host(:not([form])) .text {\n			width: auto !important;\n		}\n	}\n</style>\n\n<template is="dom-if" if="[[constantSum]]" restamp>\n	<div class="text remaining" style="width: [[_width]]px;" hidden="[[constantSum.overflowTextPatched]]">\n		<html-raw-ui html="[[constantSum.remainingTextPatched]]"></html-raw-ui>\n	</div>\n	<div class="text overflow" style="width: [[_width]]px;" hidden="[[!constantSum.overflowTextPatched]]">\n		<html-raw-ui html="[[constantSum.overflowTextPatched]]"></html-raw-ui>\n	</div>\n</template>\n\n<slot></slot>\n\n<template is="dom-if" if="[[constantSum]]" restamp>\n	<div class="text total" style="width: [[_width]]px;"><html-raw-ui html="[[constantSum.totalTextPatched]]"></html-raw-ui></div>\n</template>';function ow(t){return ow=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ow(t)}function Dae(t){return Bae(t)||jae(t)||Iae(t)||Cae()}function Cae(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Iae(t,e){if(!!t){if(typeof t=="string")return aw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aw(t,e)}}function jae(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bae(t){if(Array.isArray(t))return aw(t)}function aw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Lae(t,e,r){return e&&rC(t.prototype,e),r&&rC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&sw(t,e)}function sw(t,e){return sw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},sw(t,e)}function qae(t){var e=Hae();return function(){var n=bp(t),i;if(e){var o=bp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return zae(this,i)}}function zae(t,e){if(e&&(ow(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dt(t)}function dt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function bp(t){return bp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},bp(t)}function Nt(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var nC=function(t){Nae(r,t);var e=qae(r);function r(n){var i;return Mae(this,r),i=e.call(this),Nt(dt(i),"values",new Map),Nt(dt(i),"mode",void 0),Nt(dt(i),"overflowValidation",void 0),Nt(dt(i),"exact",void 0),Nt(dt(i),"rangeMin",void 0),Nt(dt(i),"rangeMax",void 0),Nt(dt(i),"remainingText",void 0),Nt(dt(i),"overflowText",void 0),Nt(dt(i),"totalText",void 0),i.metaType="constantSum",i.merge(n),i.register(),i}return Lae(r,[{key:"setValue",value:function(i,o){this.values.set(i,o),this.notify()}},{key:"minPoints",get:function(){return this.mode==="exact"?this.exact:this.rangeMin}},{key:"maxPoints",get:function(){return this.mode==="exact"?this.exact:this.rangeMax}},{key:"totalPoints",get:function(){return Dae(this.values.values()).reduce(function(i,o){return i+o},0)}},{key:"remainingPoints",get:function(){return this.maxPoints-this.totalPoints}},{key:"overflowPoints",get:function(){return this.totalPoints-this.maxPoints}},{key:"remainingTextPatched",get:function(){return this.remainingText.replace("{points}",Math.round(this.remainingPoints))}},{key:"overflowTextPatched",get:function(){return this.overflowPoints>0&&this.overflowValidation==="show-error"?this.overflowText.replace("{points}",Math.round(this.overflowPoints)):""}},{key:"totalTextPatched",get:function(){return this.totalText.replace("{points}",this.totalPoints)}}]),r}(DataObject);function lw(t){return lw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lw(t)}function Uae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Vae(t,e,r){return e&&iC(t.prototype,e),r&&iC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _p(){return typeof Reflect!="undefined"&&Reflect.get?_p=Reflect.get:_p=function(e,r,n){var i=Wae(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},_p.apply(this,arguments)}function Wae(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Lo(t),t!==null););return t}function Gae(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uw(t,e)}function uw(t,e){return uw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},uw(t,e)}function $ae(t){var e=Xae();return function(){var n=Lo(t),i;if(e){var o=Lo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Kae(this,i)}}function Kae(t,e){if(e&&(lw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yae(t)}function Yae(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xae(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Lo(t){return Lo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Lo(t)}function cw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ol=function(t){Gae(r,t);var e=$ae(r);function r(){var n;return Uae(this,r),n=e.call(this),n.addEventListener("constant-sum-width",function(i){n._width=i.detail}),n}return Vae(r,[{key:"_settingsObserver",value:function(){var i;if(!((i=this.settings)!==null&&i!==void 0&&i.enabled)){this.constantSum=null;return}var o=new nC(this.settings);this.constantSum&&(o.values=this.constantSum.values),this.constantSum=o}},{key:"ready",value:function(){_p(Lo(r.prototype),"ready",this).call(this),this.form=!!this.querySelector("simple-list-ui")}}]),r}(O);cw(ol,"is","constant-sum-ui");cw(ol,"template",g([tC]));cw(ol,"properties",{constantSum:{type:Object,subscribe:!0,notify:!0,provide:"constantSum"},settings:{type:Object,observer:"_settingsObserver"},form:{type:Boolean,reflectToAttribute:!0},_width:{type:Number}});customElements.define(ol.is,ol);var oC='<style>\n	:host {\n		display: block;\n		color: rgba(33, 37, 43, 1);\n		position: fixed;\n		height: 100%;\n		width: 100%;\n		top: 0;\n		left: 0;\n		z-index: 20000;\n		pointer-events: none;\n	}\n\n	.header > * {\n		background: rgba(255, 255, 255, 1);\n		color: #607d8b;\n	}\n\n	:host([theme="accent"]) .header > * {\n		background: #607d8b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme="warning"]) .header > * {\n		background: #d8252b;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme="success"]) .header > * {\n		background: hsl(122, 69%, 42%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme="alt"]) .header > * {\n		background: hsl(263, 37%, 55%);\n		color: rgba(255, 255, 255, 1);\n	}\n\n	:host([theme="accent5"]) .header > * {\n		background: #949494;\n		color: rgba(255, 255, 255, 1);\n	}\n\n	/* size */\n	:host([size=auto]) .window {\n		max-width: 320px;\n		/* max-width: 960px; */\n	}\n\n	:host([size=min]) .window {\n		width: 340px;\n	}\n\n	:host([size=mid]) .window {\n		width: 650px;\n	}\n\n	:host([size=max]) .window {\n		width: 1000px;\n	}\n\n	:host([size=super-max]) .window {\n		width: 1300px;\n	}\n\n	:host([position=top]) .container {\n		align-items: flex-start;\n	}\n\n	:host([position=top]) .window {\n		margin-top: calc(16px * 2);\n	}\n\n	.container {\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		overflow: auto;\n		-webkit-overflow-scrolling: touch;\n\n		position: fixed;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n		z-index: 9000;\n\n		background-color: rgba(96, 125, 139, 0.5);\n		transition: opacity 0.2s;\n		opacity: 0;\n		pointer-events: none;\n		/* will-change: opacity; */\n	}\n\n	:host([active]) .container {\n		opacity: 1;\n		pointer-events: auto;\n	}\n\n	.window {\n		margin: 8px;\n		padding: 8px;\n		background-color: rgba(255, 255, 255, 1);\n		border-radius: 6px;\n		box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);\n		box-sizing: border-box;\n		max-height: calc(100vh - 50px);\n		max-width: calc(100vw - 16px);\n		display: flex;\n		flex-direction: column;\n	}\n\n	.header {\n		display: flex;\n		justify-content: space-between;\n		align-items: center;\n		flex-shrink: 0;\n	}\n\n	.header-icon {\n		display: none;\n	}\n\n	:host([icon]) .header-icon {\n		flex-shrink: 0;\n		height: 34px;\n		width: 34px;\n		display: flex;\n		align-items: center;\n		justify-content: center;\n		border-radius: 4px;\n		border-top-right-radius: 2px;\n		border-bottom-right-radius: 2px;\n	}\n\n	.header-caption {\n		height: 34px;\n		display: flex;\n		align-items: center;\n		padding-left: 9px;\n		padding-right: 9px;\n		font-size: 16px;\n		flex-grow: 1;\n		border-radius: 2px;\n		overflow: hidden;\n	}\n\n	:host([icon]) .header-caption {\n		margin-left: 2px;\n	}\n\n	.caption {\n		white-space: nowrap;\n		overflow: hidden;\n		text-overflow: ellipsis;\n	}\n\n	.header-close {\n		flex-shrink: 0;\n		margin-left: 2px;\n		border-radius: 4px;\n		border-top-left-radius: 2px;\n		border-bottom-left-radius: 2px;\n	}\n\n	.content {\n		display: flex;\n		flex-direction: column;\n		height: 100%;\n		overflow: auto;\n		-webkit-overflow-scrolling: touch;\n		background-color: rgba(255, 255, 255, 1);\n		margin-top: 8px;\n		position: relative;\n	}\n</style>\n\n<style include="survey-style"></style>\n\n<div class="container">\n	<div class="window">\n\n		<div class="header">\n			<div class="header-icon">\n				<icon-ui icon="[[icon]]"></icon-ui>\n			</div>\n			<div class="header-caption">\n				<div class="caption">[[caption]]<slot name="caption"></slot></div>\n			</div>\n			<div class="header-close">\n				<button-ui round icon="close" on-click="closeClicked"></button-ui>\n			</div>\n		</div>\n\n		<div class="content">\n			<slot></slot>\n		</div>\n\n	</div>\n</div>';function fw(t){return fw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fw(t)}function Jae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function aC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Zae(t,e,r){return e&&aC(t.prototype,e),r&&aC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ese(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pw(t,e)}function pw(t,e){return pw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},pw(t,e)}function tse(t){var e=ise();return function(){var n=wp(t),i;if(e){var o=wp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return rse(this,i)}}function rse(t,e){if(e&&(fw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nse(t)}function nse(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ise(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function wp(t){return wp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},wp(t)}function Fp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var No=function(t){ese(r,t);var e=tse(r);function r(){return Jae(this,r),e.apply(this,arguments)}return Zae(r,[{key:"_activeObserver",value:function(){this.active?(this.dispatchEvent(new CustomEvent("open")),this.dispatchEvent(new CustomEvent("disable-content-scroll",{composed:!0,bubbles:!0}))):(this.dispatchEvent(new CustomEvent("close")),this.dispatchEvent(new CustomEvent("enable-content-scroll",{composed:!0,bubbles:!0})))}},{key:"closeClicked",value:function(){this.active=!1}}]),r}(O);Fp(No,"is","popup-ui");Fp(No,"template",g([oC]));Fp(No,"sharedStyles",["survey"]);Fp(No,"properties",{caption:{type:String,value:""},icon:{type:String,value:"star-circle"},size:{type:String,value:"auto",reflectToAttribute:!0},position:{type:String,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,observer:"_activeObserver"}});customElements.define(No.is,No);var sC='<style>\n	:host {\n		position: absolute;\n		opacity: 0;\n		pointer-events: none;\n	}\n</style>\n\n<input id="input" value="[[value]]">';function dw(t){return dw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dw(t)}function ase(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function sse(t,e,r){return e&&lC(t.prototype,e),r&&lC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function lse(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hw(t,e)}function hw(t,e){return hw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},hw(t,e)}function use(t){var e=pse();return function(){var n=xp(t),i;if(e){var o=xp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return cse(this,i)}}function cse(t,e){if(e&&(dw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fse(t)}function fse(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pse(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function xp(t){return xp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},xp(t)}function mw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var al=function(t){lse(r,t);var e=use(r);function r(){return ase(this,r),e.apply(this,arguments)}return sse(r,[{key:"copy",value:function(){this.$.input.select(),document.execCommand("copy"),getSelection().removeAllRanges()}}]),r}(O);mw(al,"is","copy-meta");mw(al,"template",g([sC]));mw(al,"properties",{value:{type:String}});customElements.define(al.is,al);var uC='<style>\n	:host {\n		position: absolute;\n		opacity: 0;\n		pointer-events: none;\n	}\n</style>\n\n<input\n	id="fileInput"\n	type="file"\n	accept="[[accept]]"\n	multiple="[[multiple]]"\n	hidden\n>';function yw(t){return yw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yw(t)}function cC(t){return vse(t)||yse(t)||mse(t)||hse()}function hse(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mse(t,e){if(!!t){if(typeof t=="string")return vw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vw(t,e)}}function yse(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vse(t){if(Array.isArray(t))return vw(t)}function vw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function gse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function bse(t,e,r){return e&&fC(t.prototype,e),r&&fC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function _se(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gw(t,e)}function gw(t,e){return gw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},gw(t,e)}function wse(t){var e=Ose();return function(){var n=Op(t),i;if(e){var o=Op(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Fse(this,i)}}function Fse(t,e){if(e&&(yw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xse(t)}function xse(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ose(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Op(t){return Op=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Op(t)}function bw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var sl=function(t){_se(r,t);var e=wse(r);function r(){return gse(this,r),e.apply(this,arguments)}return bse(r,[{key:"openSystemDialog",value:function(){var i=this,o=new MouseEvent("click"),a=function s(l){i.import(cC(l.target.files)),i.$.fileInput.removeEventListener("change",s),i.$.fileInput.value=""};this.$.fileInput.addEventListener("change",a),this.$.fileInput.dispatchEvent(o)}},{key:"silentImport",value:function(){this.import(cC(this.$.fileInput.files)),this.$.fileInput.value=""}},{key:"filterFiles",value:function(i){var o=this;this.accept&&(i=i.filter(function(s){var l=o.accept.split(/\s*,\s*/).find(function(u){return s.name.toLowerCase().endsWith(u)});return l||(o.errors.push(w.get("import.file-has-wrong-extension-import-meta-error-text",{"file-name":s.name})),o.dispatchEvent(new CustomEvent("invalid-format",{detail:s}))),l})),this.maxSize&&(i=i.filter(function(s){var l=s.size/1024/1024<=o.maxSize;return l||o.errors.push(w.get("import.file-is-too-large-import-meta-error-text",{"file-name":s.name,"max-size":o.maxSize})),l}));var a=this.multiple?this.maxFiles:1;return a&&(i=i.slice(0,a)),this.errors.length&&this.notifyPath("errors"),i}},{key:"import",value:function(i){this.errors=[],i=this.filterFiles(i),i.length&&this.dispatchEvent(new CustomEvent("import",{detail:i}))}}]),r}(O);bw(sl,"is","import-meta");bw(sl,"template",g([uC]));bw(sl,"properties",{multiple:{type:Boolean},maxSize:{type:Number},maxFiles:{type:Number},accept:{type:String},errors:{type:Array,notify:!0}});customElements.define(sl.is,sl);var pC="<style>\n	:host {\n		display: flex;\n		flex-direction: column;\n		flex-grow: 1;\n		min-width: 0;\n	}\n</style>\n\n<slot></slot>";function _w(t){return _w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_w(t)}function dC(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(u){r(u);return}s.done?e(l):Promise.resolve(l).then(n,i)}function qt(t){return function(){var e=this,r=arguments;return new Promise(function(n,i){var o=t.apply(e,r);function a(l){dC(o,n,i,a,s,"next",l)}function s(l){dC(o,n,i,a,s,"throw",l)}a(void 0)})}}function ww(t){return Tse(t)||Ese(t)||kse(t)||Sse()}function Sse(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kse(t,e){if(!!t){if(typeof t=="string")return Fw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fw(t,e)}}function Ese(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Tse(t){if(Array.isArray(t))return Fw(t)}function Fw(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ase(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Rse(t,e,r){return e&&hC(t.prototype,e),r&&hC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pp(){return typeof Reflect!="undefined"&&Reflect.get?Pp=Reflect.get:Pp=function(e,r,n){var i=Dse(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Pp.apply(this,arguments)}function Dse(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=qo(t),t!==null););return t}function Cse(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xw(t,e)}function xw(t,e){return xw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},xw(t,e)}function Ise(t){var e=Bse();return function(){var n=qo(t),i;if(e){var o=qo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jse(this,i)}}function jse(t,e){if(e&&(_w(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mC(t)}function mC(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bse(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function qo(t){return qo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qo(t)}function Mse(t,e,r){Lse(t,e),e.set(t,r)}function Lse(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ow(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yC(t,e,r){var n=gC(t,e,"set");return Nse(t,n,r),r}function Nse(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function vC(t,e){var r=gC(t,e,"get");return qse(t,r)}function gC(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function qse(t,e){return e.get?e.get.call(t):e.value}var ll=new WeakMap,ul=function(t){Cse(r,t);var e=Ise(r);function r(){var n;Ase(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=e.call.apply(e,[this].concat(o)),Mse(mC(n),ll,{writable:!0,value:void 0}),n}return Rse(r,[{key:"_toggleAllWarningMessage",value:function(i){var o=this.querySelectorAll("alert-ui");o&&o.forEach(function(a){a.style.display=i?"none":"block"})}},{key:"_renderWarningMessage",value:function(i){var o=document.createElement("alert-ui");o.message=w.get("core.horizontal-scroll-warning-message"),o.icon="alert",o.theme="warning",i.parentNode.querySelector("alert-ui")||i.parentNode.append(o)}},{key:"_removeWarningMessage",value:function(i){var o=i.parentNode.querySelector("alert-ui");o&&o.remove()}},{key:"_toWarningMessageUp",value:function(){this._scrollToWarningMessageElement()}},{key:"_toWarningMessageDown",value:function(){this._scrollToWarningMessageElement(!1)}},{key:"_toAnchorScroll",value:function(i){var o=document.querySelector('[name="'.concat(i,'"]'));o.scrollIntoView({block:"start",behavior:"smooth"})}},{key:"_scrollToWarningMessageElement",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=this.parentNode.scrollTop,a=this.querySelectorAll("alert-ui"),s=[],l=null,u={behavior:"smooth",block:"start"};if(i){var c;s=ww(a).filter(function(f){var p=f.previousElementSibling.offsetTop;return o>p}),l=(c=s[s.length-1])===null||c===void 0?void 0:c.previousElementSibling}else s=ww(a).find(function(f){var p=f.previousElementSibling.offsetTop;return o<p}),l=s&&s.previousElementSibling;l&&l.scrollIntoView(u)}},{key:"_initWarningMessage",value:function(){var i=this;!window.location.search.includes("preview")||(window.addEventListener("message",function(o){var a=o.data,s=a.type,l=a.detail;s==="showWarningMessage"&&i._toggleAllWarningMessage(!l),s==="toWarningMessageUp"&&i._toWarningMessageUp(),s==="toWarningMessageDown"&&i._toWarningMessageDown(),s==="toAnchorHash"&&i._toAnchorScroll(l),s==="toRestartPreview"&&location.reload()}),setTimeout(function(){var o=0;i.querySelectorAll("matrix-ui").forEach(function(a){a.scrollWidth>a.clientWidth?(o++,i._renderWarningMessage(a)):i._removeWarningMessage(a)}),window.parent.postMessage({type:"warningMessageQuantity",detail:o},"*")},100))}},{key:"ready",value:function(){var n=qt(regeneratorRuntime.mark(function o(){var a=this;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(Pp(qo(r.prototype),"ready",this).call(this),!this.lang){l.next=4;break}return l.next=4,w.setLanguage(this.lang);case 4:return l.next=6,w.inited;case 6:me(function(){requestAnimationFrame(function(){var u;a.append(document.importNode(a.querySelector("template").content,!0)),a.notifyReady();var c=function(){var h=a.querySelector(".column-content")||a.querySelector(".column");window.parent.postMessage({type:"size",height:h.offsetHeight},"*")};requestAnimationFrame(c),setTimeout(c,700),setTimeout(c,1500);var f=a.querySelector("form");f&&(f.addEventListener("submit",function(){var m=qt(regeneratorRuntime.mark(function h(v){var y;return regeneratorRuntime.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return v.preventDefault(),v.stopPropagation(),_.next=4,a._continueSave();case 4:if(y=_.sent,y){_.next=7;break}return _.abrupt("return",!1);case 7:return document.body.setAttribute("loading",""),document.querySelectorAll("[save]").length!==0?setTimeout(function(){f.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))},a.timeOutSubmit):window.noSubmit||f.submit(),_.abrupt("return",!1);case 10:case"end":return _.stop()}},h)}));return function(h){return m.apply(this,arguments)}}()),a._initWarningMessage(),window.addEventListener("resize",function(m){a._initWarningMessage()}),a.querySelectorAll("button-nav-ui").forEach(function(m){m.addEventListener("navigate",function(h){if(!m.hasAttribute("no-submit")){var v=document.querySelector("#Action");v.value=h.detail,h.detail==="authorized"?a.querySelector("#Password").value=a.querySelector("#passwordBox").getAttribute("input-value"):h.detail==="end"&&window.parent.postMessage({type:"survey-end"},"*"),m.disabled=!0,fetch("".concat(window.ROOT_PATH||"/","version.txt")).then(qt(regeneratorRuntime.mark(function y(){var b;return regeneratorRuntime.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,a._continueSave();case 2:if(b=x.sent,b){x.next=6;break}return m.disabled=!1,x.abrupt("return");case 6:f.dispatchEvent(new CustomEvent("submit",{cancelable:!0})),setTimeout(function(){m.disabled=!1},3e3);case 8:case"end":return x.stop()}},y)}))).catch(function(){a._saveError(),m.disabled=!1})}})}),a.querySelectorAll("survey-auto-restart-ui").forEach(function(m){m.addEventListener("navigate",function(h){document.body.setAttribute("loading","");var v=document.querySelector("#Action");v.value=h.detail,f.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))})}),a.querySelectorAll("options-ui.language").forEach(function(m){m.addEventListener("selected",function(h){var v=document.querySelector("#Language");if(v.value!==h.detail){document.body.setAttribute("loading",""),v.value=h.detail;var y=document.querySelector("#Action");y.value="language",f.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))}})}),a.querySelectorAll("survey-language-item-ui").forEach(function(m){m.addEventListener("click",function(h){var v=document.querySelector("#Language");v.value=h.target.getAttribute("code"),f.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))})}),a.querySelectorAll("survey-auto-end-ui").forEach(function(m){m.addEventListener("end",function(){document.body.setAttribute("loading","");var h=document.querySelector("#Action");h.value="end",f.dispatchEvent(new CustomEvent("submit",{cancelable:!0}))})}),a.querySelectorAll("radio-button-ui.qs-restore").forEach(function(m){m.addEventListener("radio-checked",function(h){var v=document.querySelector("#Restore");v.value=h.target.value})}),a.case&&(a.querySelectorAll("checkbox-ui.qs-variable").forEach(function(m){m.addEventListener("checked-changed",function(h){a._sendAndSync(h.target,h.detail.value)})}),a.querySelectorAll("radio-button-ui.qs-variable").forEach(function(m){m.addEventListener("radio-checked",function(h){h.target.checked?a._sendAndSync(h.target,h.target.value):a._sendAndSync(h.target,"")})}),a.querySelectorAll("input-ui.qs-variable, time-input-ui.qs-variable").forEach(function(m){m.addEventListener("input-value-changed",function(h){h.target.setAttribute("save",""),h.target._saveDebouncer=ue(h.target._saveDebouncer,a.timeOutText,function(){a._sendAndSync(h.target,h.detail.value)})})}),a.querySelectorAll("textarea-ui.qs-variable").forEach(function(m){m.addEventListener("value-changed",function(h){h.target.setAttribute("save",""),h.target._saveDebouncer=ue(h.target._saveDebouncer,a.timeOutText,function(){a._sendAndSync(h.target,h.detail.value)})})}),a.querySelectorAll("date-input-ui.qs-variable").forEach(function(m){m.addEventListener("value-changed",function(h){a._sendAndSync(h.target,h.detail.value)})}),a.querySelectorAll("range-input-ui.qs-variable").forEach(function(m){m.addEventListener("range-changed",function(h){h.target.setAttribute("save",""),h.target._saveDebouncer=ue(h.target._saveDebouncer,a.timeOutText,function(){a._sendAndSync(h.target,h.detail)})})}),a.querySelectorAll("g-scale-ui.qs-variable").forEach(function(m){m.addEventListener("value-changed",function(h){h.detail.value>0?a._sendAndSync(h.target,h.detail.value):a._sendAndSync(h.target,"")})}),a.querySelectorAll("select-ui.qs-variable").forEach(function(m){m.addEventListener("change",function(h){a._sendAndSync(h.target,h.detail)})}),a.querySelectorAll("autocomplete-ui.qs-variable").forEach(function(m){var h=function(){m.setAttribute("save",""),m._saveDebouncer=ue(m._saveDebouncer,a.timeOutText,function(){a._sendAndSync(m,JSON.stringify(m.getFinalValues()))})};m.addEventListener("text-change",function(v){v.target.customsAllowed&&h()}),m.addEventListener("change",function(v){h()}),m.addEventListener("clear",function(v){a._sendAndSync(v.target,"")})}),a.querySelectorAll("heatmap-ui.qs-variable").forEach(function(m){m.addEventListener("points-changed",function(h){if(h.detail){var v=h.detail.value;v.length>0?a._sendAndSync(h.target,JSON.stringify(v)):a._sendAndSync(h.target,"")}})}),a.querySelectorAll("input[type=hidden].qs-variable").forEach(function(m){m.addEventListener("change",function(h){a._sendAndSync(h.target,h.target.value)},!0)}),a.querySelectorAll("file-upload-ui.qs-variable, signature-ui.qs-variable").forEach(function(m){m.addEventListener("upload-start",function(h){h.target.setAttribute("save","")}),m.addEventListener("upload-finish",function(h){h.target.removeAttribute("save")})}),a.querySelectorAll("not-applicable-el.qs-variable-group").forEach(function(m){m.addEventListener("checked-changed",function(h){a._sendGroupAndSync(h.target,h.target.getAttribute("name"),h.detail.value)})}),a.querySelectorAll("rank-order-ui.qs-variable-group").forEach(function(m){m.addEventListener("not-applicable-changed",function(h){a._sendGroupAndSync(h.target,h.detail.notApplicableID,h.detail.notApplicable)}),m.addEventListener("order-changed",function(h){a._sendRankAndSync(h.target,h.detail)}),m.addEventListener("custom-field-value-changed",function(h){h.target.setAttribute("save",""),h.target._saveDebouncer=ue(h.target._saveDebouncer,a.timeOutText,function(){a._sendAndSync(h.target,h.detail.value,h.detail.input.name)})})}))),a.readonly&&a.querySelectorAll(".qs-variable, .qs-variable-group").forEach(function(m){m.matches("input-ui, textarea-ui, range-input-ui, heatmap-ui, rank-order-ui, date-input-ui, time-input-ui")?m.setAttribute("readonly",""):m.setAttribute("disabled","")}),a.checkHideQuestion();var p=document.querySelector("#Action"),d=a.querySelectorAll(".qs-question-box[state=visible]");p&&(p.value==="next"||p.value==="back")&&d.length===0&&f.submit(),a.print&&a.printFunction(),(u=document.querySelector("#passwordBox"))===null||u===void 0||u.addEventListener("keyup",function(m){if(m.key==="Enter"){m.preventDefault();var h=m.target.getAttribute("input-value");h&&(document.querySelector("#Password").setAttribute("value",h),f.submit())}})})});case 7:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"_sendAndSync",value:function(){var n=qt(regeneratorRuntime.mark(function o(a,s,l){var u=this,c,f,p,d;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l=l||a.getAttribute("name"),this._unsavedState.delete(l),c=H.generate(),a.setAttribute("fetchId",c),a.setAttribute("save",""),h.prev=5,f=new FormData,f.append("VariableID",l),f.append("Weight",s),this._fetchSave=function(){return fetch("".concat(window.ROOT_PATH||"/","Questionnaire/SaveVariable/").concat(u.case),{method:"POST",body:f,timeout:1e3})},h.next=12,Qr(this.case,this._fetchSave);case 12:if(p=h.sent,!p.ok){h.next=18;break}return h.next=16,p.json();case 16:d=h.sent,this.processing(d,a);case 18:h.next=24;break;case 20:h.prev=20,h.t0=h.catch(5),this._unsavedState.set(l,function(){return u._sendAndSync(a,s)}),this._saveError();case 24:a.getAttribute("fetchId")===c&&a.removeAttribute("save");case 25:case"end":return h.stop()}},o,this,[[5,20]])}));function i(o,a,s){return n.apply(this,arguments)}return i}()},{key:"_sendGroupAndSync",value:function(){var n=qt(regeneratorRuntime.mark(function o(a,s,l){var u=this,c,f,p,d;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return this._unsavedState.delete(a.getAttribute("name")),c=H.generate(),a.setAttribute("fetchId",c),a.setAttribute("save",""),h.prev=4,f=new FormData,f.append("VariableGroupID",s),f.append("NotApplicable",l),this._fetchSaveGroup=function(){return fetch("".concat(window.ROOT_PATH||"/","Questionnaire/SaveVariableGroup/").concat(u.case),{method:"POST",body:f,timeout:1e3})},h.next=11,Qr(this.case,this._fetchSaveGroup);case 11:if(p=h.sent,!p.ok){h.next=17;break}return h.next=15,p.json();case 15:d=h.sent,this.processing(d,a);case 17:h.next=23;break;case 19:h.prev=19,h.t0=h.catch(4),this._unsavedState.set(a.getAttribute("name"),function(){return u._sendGroupAndSync(a,s,l)}),this._saveError();case 23:a.getAttribute("fetchId")===c&&a.removeAttribute("save");case 24:case"end":return h.stop()}},o,this,[[4,19]])}));function i(o,a,s){return n.apply(this,arguments)}return i}()},{key:"_sendRankAndSync",value:function(){var n=qt(regeneratorRuntime.mark(function o(a,s){var l=this,u,c,f,p,d;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:this._unsavedState.delete(a.getAttribute("name")),u=H.generate(),a.setAttribute("fetchId",u),a.setAttribute("save",""),h.prev=4,c=new FormData,c.append("ScaleID",a.getAttribute("name"));for(f in s)c.append("Options[".concat(f,"][id]"),s[f].id),c.append("Options[".concat(f,"][position]"),s[f].position);return this._fetchSaveRank=function(){return fetch("".concat(window.ROOT_PATH||"/","Questionnaire/SaveRankVariable/").concat(l.case),{method:"POST",body:c,timeout:1e3})},h.next=11,Qr(this.case,this._fetchSaveRank);case 11:if(p=h.sent,!p.ok){h.next=17;break}return h.next=15,p.json();case 15:d=h.sent,this.processing(d,a);case 17:h.next=23;break;case 19:h.prev=19,h.t0=h.catch(4),this._unsavedState.set(a.getAttribute("name"),function(){return l._sendRankAndSync(a,s)}),this._saveError();case 23:a.getAttribute("fetchId")===u&&a.removeAttribute("save");case 24:case"end":return h.stop()}},o,this,[[4,19]])}));function i(o,a){return n.apply(this,arguments)}return i}()},{key:"_saveError",value:function(){this._savingNotification&&this._savingNotification.close(),this._errorNotification=NotifyUi.notify("warning",w.get("core.survey-save-answers-error-notification-text"),1/0),this._checkConnectionByInterval()}},{key:"_continueSave",value:function(){var i=this;return this._savePromise?this._savePromise:(this._savePromise=this._saveUnsavedState(),this._savePromise.then(function(){i._savePromise=null}).catch(function(){i._savePromise=null}),this._savePromise)}},{key:"_checkConnectionByInterval",value:function(){var i=this;vC(this,ll)||yC(this,ll,setInterval(function(){fetch("".concat(window.ROOT_PATH||"/","version.txt")).then(qt(regeneratorRuntime.mark(function o(){return regeneratorRuntime.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:i._clearCheckConnectionInterval(),i._continueSave();case 2:case"end":return s.stop()}},o)}))).catch(function(){i._checkConnectionByInterval()})},7e3))}},{key:"_clearCheckConnectionInterval",value:function(){clearInterval(vC(this,ll)),yC(this,ll,null)}},{key:"_saveUnsavedState",value:function(){var n=qt(regeneratorRuntime.mark(function o(){var a=this,s,l;return regeneratorRuntime.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(this._clearCheckConnectionInterval(),this._errorNotification&&this._errorNotification.close(),!this._unsavedState.size){c.next=10;break}return s=Date.now(),this._savingNotification=NotifyUi.notify("success",w.get("core.survey-saving-unsaved-answers-notification-text"),1/0),l=new Map(this._unsavedState),this._unsavedState.clear(),c.next=9,Promise.all(ww(l.values()).map(function(f){return f()}));case 9:setTimeout(function(){a._savingNotification.close()},2e3-(Date.now()-s));case 10:return c.abrupt("return",!this._unsavedState.size);case 11:case"end":return c.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"processing",value:function(i,o){this._unsavedState.delete(o.getAttribute("name")),this._continueSave(),i.Questions.forEach(function(l){var u=document.querySelector("#qs-question-box-".concat(l.QuestionID));u&&(l.IsHidden?u.setAttribute("state","hidden"):(u.setAttribute("state","visible"),u.querySelectorAll("matrix-ui, simple-list-ui").forEach(function(c){c.renderElement()})))});var a=[];i.Options.forEach(function(l){var u=document.querySelector("#qs-option-".concat(l.OptionID));u&&(l.IsHidden?u.hasAttribute("hidden")||(u.setAttribute("hidden",""),a.includes(u.parentElement)||a.push(u.parentElement)):u.hasAttribute("hidden")&&(u.removeAttribute("hidden"),a.includes(u.parentElement)||a.push(u.parentElement)))}),a.forEach(function(l){l.renderElement()});var s=[];i.Statments.forEach(function(l){var u=document.querySelector("#qs-statment-row-".concat(l.QuestionRowID));u&&(l.IsHidden?u.hasAttribute("hidden")||(u.setAttribute("hidden",""),s.includes(u.parentElement)||s.push(u.parentElement)):u.hasAttribute("hidden")&&(u.removeAttribute("hidden"),s.includes(u.parentElement)||s.push(u.parentElement)))}),s.forEach(function(l){l.renderElement()}),document.querySelectorAll("rank-order-ui").forEach(function(l){var u=!1;l.items.forEach(function(c){var f=i.Statments.find(function(p){return p.QuestionRowID===c.statmentID});f&&(f.IsHidden?c.hidden||(c.hidden=!0,u=!0):c.hidden&&(c.hidden=!1,u=!0))}),u&&(l.updateTrigger=!l.updateTrigger,l._updateAnswers())}),this.checkHideQuestion()}},{key:"notifyReady",value:function(){var n=qt(regeneratorRuntime.mark(function o(){var a=this;return regeneratorRuntime.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,0;case 2:requestAnimationFrame(function(){setTimeout(function(){document.body.hasAttribute("loading")&&!a.leaveLoader&&document.body.removeAttribute("loading"),document.dispatchEvent(new CustomEvent("page-ready",{bubbles:!0}))})});case 3:case"end":return l.stop()}},o)}));function i(){return n.apply(this,arguments)}return i}()},{key:"checkHideQuestion",value:function(){document.querySelectorAll("matrix-ui").forEach(function(i){var o=i.composedClosest(".qs-question-box");(o==null?void 0:o.getAttribute("state"))!=="hidden"&&(i.querySelectorAll("matrix-row-el:not([header]):not([hidden])").length?o.removeAttribute("hidden"):o.setAttribute("hidden",""))})}},{key:"printFunction",value:function(){var i=this;getComputedStyle(document.querySelector("#app-splash")).getPropertyValue("opacity")!=="0"?setTimeout(function(){i.printFunction()},this.timeOutSubmit):print()}}]),r}(O);Ow(ul,"is","app-mdl");Ow(ul,"template",g([pC]));Ow(ul,"properties",{lang:{type:String,reflectToAttribute:!0},case:{type:String},timeOutText:{type:Number,value:500},timeOutSubmit:{type:Number,value:500},readonly:{type:Boolean},print:{type:Boolean},leaveLoader:{type:Boolean},_unsavedState:{type:Object,value:function(){return new Map}},preview:{type:Boolean,value:!1}});customElements.define(ul.is,ul);var bC='<style>\n	:host {\n		display: block;\n		position: -webkit-sticky;\n		position: sticky;\n		z-index: 1000;\n		top: 0;\n	}\n\n	.preview-panel {\n		border: 2px solid #d8252b;\n		color: #d8252b;\n	}\n\n	.alert-icon {\n		color: #d8252b;\n	}\n\n	:host([hidden]) {\n		display: none !important;\n	}\n</style>\n\n<card-mkp class="preview-panel" theme="brightest" compact>\n	<flex-mkp class="header-content" wrap h-justify v-center>\n		<flex-mkp grow h-justify v-center space-mid>\n			<icon-ui class="icon alert-icon hide-on-mobile" icon="alert-circle-outline"></icon-ui>\n			<spacer-mkp class="hide-on-mobile" mid></spacer-mkp>\n			<div>\n				<template is="dom-if" if="[[is(mode, \'survey\')]]" restamp>\n					<l10n-ui link="[[distributionLink]]" key="preview-panel-ui.preview-survey-description"></l10n-ui>\n				</template>\n				<template is="dom-if" if="[[is(mode, \'unsubscribe\')]]" restamp>\n					<l10n-ui key="preview-panel-ui.preview-unsubscribe-description"></l10n-ui>\n				</template>\n			</div>\n			<spacer-mkp mid></spacer-mkp>\n			<button-ui icon="close" theme="bg1" on-click="_closePanel" round></button-ui>\n		</flex-mkp>\n	</flex-mkp>\n</card-mkp>';function Pw(t){return Pw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pw(t)}function Hse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _C(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Use(t,e,r){return e&&_C(t.prototype,e),r&&_C(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sp(){return typeof Reflect!="undefined"&&Reflect.get?Sp=Reflect.get:Sp=function(e,r,n){var i=Vse(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Sp.apply(this,arguments)}function Vse(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=zo(t),t!==null););return t}function Wse(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sw(t,e)}function Sw(t,e){return Sw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Sw(t,e)}function Gse(t){var e=Yse();return function(){var n=zo(t),i;if(e){var o=zo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return $se(this,i)}}function $se(t,e){if(e&&(Pw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kse(t)}function Kse(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yse(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function zo(t){return zo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zo(t)}function kw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var cl=function(t){Wse(r,t);var e=Gse(r);function r(){return Hse(this,r),e.apply(this,arguments)}return Use(r,[{key:"_getDistributionLink",value:function(i){return"".concat(APP.appUrl,"distribution/").concat(i,"/link")}},{key:"_closePanel",value:function(){sessionStorage.setItem("preview-panel-ui:preview","disabled"),this.hidden=!0}},{key:"connectedCallback",value:function(){Sp(zo(r.prototype),"connectedCallback",this).call(this),(window.location!==window.parent.location||sessionStorage.getItem("preview-panel-ui:preview"))&&(this.hidden=!0)}}]),r}(O);kw(cl,"is","preview-panel-ui");kw(cl,"template",g([bC]));kw(cl,"properties",{survey:{type:String,value:""},mode:{type:String,value:"survey"},distributionLink:{computed:"_getDistributionLink(survey)"}});customElements.define(cl.is,cl);var wC='<style>\n	:host {\n		display: flex;\n		position: relative;\n	}\n\n	:host(:not([is-event-catcher])) #eventCatcher {\n		display: none;\n	}\n\n	#eventCatcher {\n		position: absolute;\n		left: 0;\n		right: 0;\n		top: 0;\n		bottom: 0;\n		z-index: 99;\n	}\n</style>\n\n<iframe\n	id="iframe"\n	width="320"\n	height="240"\n	marginwidth="0"\n	marginheight="0"\n	frameborder="0"\n	allowfullscreen\n></iframe>\n<div id="eventCatcher"></div>';function Ew(t){return Ew=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ew(t)}function Qse(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Jse(t,e,r){return e&&FC(t.prototype,e),r&&FC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zse(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tw(t,e)}function Tw(t,e){return Tw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Tw(t,e)}function ele(t){var e=nle();return function(){var n=kp(t),i;if(e){var o=kp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tle(this,i)}}function tle(t,e){if(e&&(Ew(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rle(t)}function rle(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nle(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function kp(t){return kp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},kp(t)}function Aw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fl=function(t){Zse(r,t);var e=ele(r);function r(){var n;return Qse(this,r),n=e.call(this),setTimeout(function(){n.isEventCatcher=!window.IS_SURVEY_APP}),n}return Jse(r,[{key:"_render",value:function(){this.$.iframe.srcdoc="<style>iframe {max-width: 100%;}</style>"+this.code}},{key:"_updateSize",value:function(){this.$.iframe.width=this.width,this.$.iframe.height=this.height}}]),r}(O);Aw(fl,"is","wysiwyg-embed-mdl");Aw(fl,"template",g([wC]));Aw(fl,"properties",{code:{type:String,reflectToAttribute:!0,observer:"_render"},width:{type:Number,value:320,reflectToAttribute:!0,observer:"_updateSize"},height:{type:Number,value:240,reflectToAttribute:!0,observer:"_updateSize"},isEventCatcher:{type:Boolean,value:!window.IS_SURVEY_APP,reflectToAttribute:!0}});customElements.define(fl.is,fl);var xC='<style>\n	:host {\n		display: inline-flex;\n		position: relative;\n	}\n\n	:host(:not([zoom-on-click])) .zoom-overlay,\n	:host(:not([is-event-catcher])) #eventCatcher {\n		display: none;\n	}\n\n	#eventCatcher {\n		position: absolute;\n		left: 0;\n		right: 0;\n		top: 0;\n		bottom: 0;\n		z-index: 99;\n	}\n\n	.zoom-overlay {\n		position: absolute;\n		top: 0;\n		left: 0;\n		right: 0;\n		bottom: 0;\n\n		display: flex;\n		align-items: center;\n		justify-content: center;\n\n		background: rgba(255, 255, 255, 0.7);\n		cursor: pointer;\n		font-size: 50px;\n		transition: opacity 0.2s;\n	}\n\n	.zoom-overlay icon-ui {\n		opacity: 0.9;\n	}\n\n	.zoom-overlay:not(:hover) {\n		opacity: 0;\n	}\n\n	img {\n		object-fit: contain;\n	}\n</style>\n\n<slot></slot>\n<div id="zoomOverlay" class="zoom-overlay" on-click="zoom">\n	<icon-ui icon="magnify-plus-outline"></icon-ui>\n</div>\n<div id="eventCatcher"></div>';function Rw(t){return Rw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rw(t)}function ole(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function ale(t,e,r){return e&&OC(t.prototype,e),r&&OC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ep(){return typeof Reflect!="undefined"&&Reflect.get?Ep=Reflect.get:Ep=function(e,r,n){var i=sle(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ep.apply(this,arguments)}function sle(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ho(t),t!==null););return t}function lle(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Dw(t,e)}function Dw(t,e){return Dw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Dw(t,e)}function ule(t){var e=ple();return function(){var n=Ho(t),i;if(e){var o=Ho(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return cle(this,i)}}function cle(t,e){if(e&&(Rw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fle(t)}function fle(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ple(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Ho(t){return Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Ho(t)}function Cw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pl=function(t){lle(r,t);var e=ule(r);function r(){var n;return ole(this,r),n=e.call(this),setTimeout(function(){n.isEventCatcher=!window.IS_SURVEY_APP}),n}return ale(r,[{key:"zoom",value:function(){var i=document.createElement("image-modal-ui");i.open(this.querySelector("img").src)}},{key:"connectedCallback",value:function(){Ep(Ho(r.prototype),"connectedCallback",this).call(this);var i=this.querySelector("img");i&&i.src.endsWith(".svg")&&!i.hasAttribute("width")&&i.addEventListener("load",function(){i.width=i.naturalWidth})}}]),r}(O);Cw(pl,"is","wysiwyg-image-mdl");Cw(pl,"template",g([xC]));Cw(pl,"properties",{zoomOnClick:{type:Boolean,reflectToAttribute:!0},isEventCatcher:{type:Boolean,reflectToAttribute:!0}});customElements.define(pl.is,pl);"use strict";var Mn=!(window.ShadyDOM&&window.ShadyDOM.inUse),Tp;function PC(t){t&&t.shimcssproperties?Tp=!1:Tp=Mn||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)"))}var _r;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(_r=window.ShadyCSS.cssBuild);var Ap=Boolean(window.ShadyCSS&&window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Tp=window.ShadyCSS.nativeCss:window.ShadyCSS?(PC(window.ShadyCSS),window.ShadyCSS=void 0):PC(window.WebComponents&&window.WebComponents.flags);var Uo=Tp;"use strict";function SC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function dle(t,e,r){return e&&SC(t.prototype,e),r&&SC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function hle(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kC=dle(function t(){hle(this,t),this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""});function Iw(t){return t=mle(t),EC(yle(t),t)}function mle(t){return t.replace(Ht.comments,"").replace(Ht.port,"")}function yle(t){var e=new kC;e.start=0,e.end=t.length;for(var r=e,n=0,i=t.length;n<i;n++)if(t[n]===TC){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;r=new kC,r.start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else t[n]===AC&&(r.end=n+1,r=r.parent||e);return e}function EC(t,e){var r=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=r.trim(),t.parent){var n=t.previous?t.previous.end:t.parent.start;r=e.substring(n,t.start-1),r=vle(r),r=r.replace(Ht.multipleSpaces," "),r=r.substring(r.lastIndexOf(";")+1);var i=t.parsedSelector=t.selector=r.trim();t.atRule=i.indexOf(xle)===0,t.atRule?i.indexOf(Fle)===0?t.type=zt.MEDIA_RULE:i.match(Ht.keyframesRule)&&(t.type=zt.KEYFRAMES_RULE,t.keyframesName=t.selector.split(Ht.multipleSpaces).pop()):i.indexOf(RC)===0?t.type=zt.MIXIN_RULE:t.type=zt.STYLE_RULE}var o=t.rules;if(o)for(var a=0,s=o.length,l;a<s&&(l=o[a]);a++)EC(l,e);return t}function vle(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var e=arguments[1],r=6-e.length;r--;)e="0"+e;return"\\"+e})}function jw(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",n="";if(t.cssText||t.rules){var i=t.rules;if(i&&!gle(i))for(var o=0,a=i.length,s;o<a&&(s=i[o]);o++)n=jw(s,e,n);else n=e?t.cssText:ble(t.cssText),n=n.trim(),n&&(n="  "+n+"\n")}return n&&(t.selector&&(r+=t.selector+" "+TC+"\n"),r+=n,t.selector&&(r+=AC+"\n\n")),r}function gle(t){var e=t[0];return Boolean(e)&&Boolean(e.selector)&&e.selector.indexOf(RC)===0}function ble(t){return t=_le(t),wle(t)}function _le(t){return t.replace(Ht.customProp,"").replace(Ht.mixinProp,"")}function wle(t){return t.replace(Ht.mixinApply,"").replace(Ht.varApply,"")}var zt={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},TC="{",AC="}",Ht={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},RC="--",Fle="@media",xle="@";var dl=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Vo=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi;var DC=/@media\s(.*)/;"use strict";var CC=new Set,Ole="shady-unscoped";function IC(t){var e=t.textContent;if(!CC.has(e)){CC.add(e);var r=document.createElement("style");r.setAttribute("shady-unscoped",""),r.textContent=e,document.head.appendChild(r)}}function jC(t){return t.hasAttribute(Ole)}"use strict";function hl(t,e){return t?(typeof t=="string"&&(t=Iw(t)),e&&Wo(t,e),jw(t,Uo)):""}function Bw(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=Iw(t.textContent)),t.__cssRules||null}function Wo(t,e,r,n){if(!!t){var i=!1,o=t.type;if(n&&o===zt.MEDIA_RULE){var a=t.selector.match(DC);a&&(window.matchMedia(a[1]).matches||(i=!0))}o===zt.STYLE_RULE?e(t):r&&o===zt.KEYFRAMES_RULE?r(t):o===zt.MIXIN_RULE&&(i=!0);var s=t.rules;if(s&&!i)for(var l=0,u=s.length,c;l<u&&(c=s[l]);l++)Wo(c,e,r,n)}}function Ple(t,e){for(var r=0,n=e,i=t.length;n<i;n++)if(t[n]==="(")r++;else if(t[n]===")"&&--r==0)return n;return-1}function Mw(t,e){var r=t.indexOf("var(");if(r===-1)return e(t,"","","");var n=Ple(t,r+3),i=t.substring(r+4,n),o=t.substring(0,r),a=Mw(t.substring(n+1),e),s=i.indexOf(",");if(s===-1)return e(o,i.trim(),"",a);var l=i.substring(0,s).trim(),u=i.substring(s+1).trim();return e(o,l,u,a)}var ECe=window.ShadyDOM&&window.ShadyDOM.wrap||function(t){return t};function BC(t){var e=t.localName,r="",n="";return e?e.indexOf("-")>-1?r=e:(n=e,r=t.getAttribute&&t.getAttribute("is")||""):(r=t.is,n=t.extends),{is:r,typeExtension:n}}function MC(t){for(var e=[],r=t.querySelectorAll("style"),n=0;n<r.length;n++){var i=r[n];jC(i)?Mn||(IC(i),i.parentNode.removeChild(i)):(e.push(i.textContent),i.parentNode.removeChild(i))}return e.join("").trim()}var LC="css-build";function Sle(t){if(_r!==void 0)return _r;if(t.__cssBuild===void 0){var e=t.getAttribute(LC);if(e)t.__cssBuild=e;else{var r=kle(t);r!==""&&Ele(t),t.__cssBuild=r}}return t.__cssBuild||""}function Lw(t){return Sle(t)!==""}function kle(t){var e=t.localName==="template"?t.content.firstChild:t.firstChild;if(e instanceof Comment){var r=e.textContent.trim().split(":");if(r[0]===LC)return r[1]}return""}function Ele(t){var e=t.localName==="template"?t.content.firstChild:t.firstChild;e.parentNode.removeChild(e)}"use strict";function ml(t,e){for(var r in e)r===null?t.style.removeProperty(r):t.style.setProperty(r,e[r])}function Rp(t,e){var r=window.getComputedStyle(t).getPropertyValue(e);return r?r.trim():""}function NC(t){var e=Vo.test(t)||dl.test(t);return Vo.lastIndex=0,dl.lastIndex=0,e}"use strict";function qC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function HC(t,e,r){return e&&zC(t.prototype,e),r&&zC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Tle=/;\s*/m,Ale=/^\s*(initial)|(inherit)\s*$/,UC=/\s*!important/,Nw="_-_";var Rle=function(){function t(){qC(this,t),this._map={}}return HC(t,[{key:"set",value:function(r,n){r=r.trim(),this._map[r]={properties:n,dependants:{}}}},{key:"get",value:function(r){return r=r.trim(),this._map[r]||null}}]),t}(),Dp=null,ke=function(){function t(){qC(this,t),this._currentElement=null,this._measureElement=null,this._map=new Rle}return HC(t,[{key:"detectMixin",value:function(r){return NC(r)}},{key:"gatherStyles",value:function(r){var n=MC(r.content);if(n){var i=document.createElement("style");return i.textContent=n,r.content.insertBefore(i,r.content.firstChild),i}return null}},{key:"transformTemplate",value:function(r,n){r._gatheredStyle===void 0&&(r._gatheredStyle=this.gatherStyles(r));var i=r._gatheredStyle;return i?this.transformStyle(i,n):null}},{key:"transformStyle",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=Bw(r);return this.transformRules(i,n),r.textContent=hl(i),i}},{key:"transformCustomStyle",value:function(r){var n=this,i=Bw(r);return Wo(i,function(o){o.selector===":root"&&(o.selector="html"),n.transformRule(o)}),r.textContent=hl(i),i}},{key:"transformRules",value:function(r,n){var i=this;this._currentElement=n,Wo(r,function(o){i.transformRule(o)}),this._currentElement=null}},{key:"transformRule",value:function(r){r.cssText=this.transformCssText(r.parsedCssText,r),r.selector===":root"&&(r.selector=":host > *")}},{key:"transformCssText",value:function(r,n){var i=this;return r=r.replace(dl,function(o,a,s,l){return i._produceCssProperties(o,a,s,l,n)}),this._consumeCssProperties(r,n)}},{key:"_getInitialValueForProperty",value:function(r){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(r)}},{key:"_fallbacksFromPreviousRules",value:function(r){for(var n=this,i=r;i.parent;)i=i.parent;var o={},a=!1;return Wo(i,function(s){a=a||s===r,!a&&s.selector===r.selector&&Object.assign(o,n._cssTextToMap(s.parsedCssText))}),o}},{key:"_consumeCssProperties",value:function(r,n){for(var i=null;i=Vo.exec(r);){var o=i[0],a=i[1],s=i.index,l=s+o.indexOf("@apply"),u=s+o.length,c=r.slice(0,l),f=r.slice(u),p=n?this._fallbacksFromPreviousRules(n):{};Object.assign(p,this._cssTextToMap(c));var d=this._atApplyToCssProperties(a,p);r="".concat(c).concat(d).concat(f),Vo.lastIndex=s+d.length}return r}},{key:"_atApplyToCssProperties",value:function(r,n){r=r.replace(Tle,"");var i=[],o=this._map.get(r);if(o||(this._map.set(r,{}),o=this._map.get(r)),o){this._currentElement&&(o.dependants[this._currentElement]=!0);var a,s,l,u=o.properties;for(a in u)l=n&&n[a],s=[a,": var(",r,Nw,a],l&&s.push(",",l.replace(UC,"")),s.push(")"),UC.test(u[a])&&s.push(" !important"),i.push(s.join(""))}return i.join("; ")}},{key:"_replaceInitialOrInherit",value:function(r,n){var i=Ale.exec(n);return i&&(i[1]?n=this._getInitialValueForProperty(r):n="apply-shim-inherit"),n}},{key:"_cssTextToMap",value:function(r){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=r.split(";"),o,a,s={},l=0,u,c;l<i.length;l++)u=i[l],u&&(c=u.split(":"),c.length>1&&(o=c[0].trim(),a=c.slice(1).join(":"),n&&(a=this._replaceInitialOrInherit(o,a)),s[o]=a));return s}},{key:"_invalidateMixinEntry",value:function(r){if(!!Dp)for(var n in r.dependants)n!==this._currentElement&&Dp(n)}},{key:"_produceCssProperties",value:function(r,n,i,o,a){var s=this;if(i&&Mw(i,function(b,_){_&&s._map.get(_)&&(o="@apply ".concat(_,";"))}),!o)return r;var l=this._consumeCssProperties(""+o,a),u=r.slice(0,r.indexOf("--")),c=this._cssTextToMap(l,!0),f=c,p=this._map.get(n),d=p&&p.properties;d?f=Object.assign(Object.create(d),c):this._map.set(n,f);var m=[],h,v,y=!1;for(h in f)v=c[h],v===void 0&&(v="initial"),d&&!(h in d)&&(y=!0),m.push("".concat(n).concat(Nw).concat(h,": ").concat(v));return y&&this._invalidateMixinEntry(p),p&&(p.properties=f),i&&(u="".concat(r,";").concat(u)),"".concat(u).concat(m.join("; "),";")}}]),t}();ke.prototype.detectMixin=ke.prototype.detectMixin;ke.prototype.transformStyle=ke.prototype.transformStyle;ke.prototype.transformCustomStyle=ke.prototype.transformCustomStyle;ke.prototype.transformRules=ke.prototype.transformRules;ke.prototype.transformRule=ke.prototype.transformRule;ke.prototype.transformTemplate=ke.prototype.transformTemplate;ke.prototype._separator=Nw;Object.defineProperty(ke.prototype,"invalidCallback",{get:function(){return Dp},set:function(e){Dp=e}});var VC=ke;"use strict";var Dle={},yl=Dle;"use strict";var Cp="_applyShimCurrentVersion",Go="_applyShimNextVersion",Ip="_applyShimValidatingVersion",Cle=Promise.resolve();function WC(t){var e=yl[t];e&&Ile(e)}function Ile(t){t[Cp]=t[Cp]||0,t[Ip]=t[Ip]||0,t[Go]=(t[Go]||0)+1}function qw(t){return t[Cp]===t[Go]}function GC(t){return!qw(t)&&t[Ip]===t[Go]}function $C(t){t[Ip]=t[Go],t._validating||(t._validating=!0,Cle.then(function(){t[Cp]=t[Go],t._validating=!1}))}"use strict";var zw=null,KC=window.HTMLImports&&window.HTMLImports.whenReady||null,Hw;function jp(t){requestAnimationFrame(function(){KC?KC(t):(zw||(zw=new Promise(function(e){Hw=e}),document.readyState==="complete"?Hw():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Hw()})),zw.then(function(){t&&t()}))})}"use strict";function jle(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Ble(t,e,r){return e&&YC(t.prototype,e),r&&YC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var XC="__seenByShadyCSS",Bp="__shadyCSSCachedStyle",Mp=null,vl=null,Ut=function(){function t(){jle(this,t),this.customStyles=[],this.enqueued=!1,jp(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})}return Ble(t,[{key:"enqueueDocumentValidation",value:function(){this.enqueued||!vl||(this.enqueued=!0,jp(vl))}},{key:"addCustomStyle",value:function(r){r[XC]||(r[XC]=!0,this.customStyles.push(r),this.enqueueDocumentValidation())}},{key:"getStyleForCustomStyle",value:function(r){if(r[Bp])return r[Bp];var n;return r.getStyle?n=r.getStyle():n=r,n}},{key:"processStyles",value:function(){for(var r=this.customStyles,n=0;n<r.length;n++){var i=r[n];if(!i[Bp]){var o=this.getStyleForCustomStyle(i);if(o){var a=o.__appliedElement||o;Mp&&Mp(a),i[Bp]=a}}}return r}}]),t}();Ut.prototype.addCustomStyle=Ut.prototype.addCustomStyle;Ut.prototype.getStyleForCustomStyle=Ut.prototype.getStyleForCustomStyle;Ut.prototype.processStyles=Ut.prototype.processStyles;Object.defineProperties(Ut.prototype,{transformCallback:{get:function(){return Mp},set:function(e){Mp=e}},validateCallback:{get:function(){return vl},set:function(e){var r=!1;vl||(r=!0),vl=e,r&&this.enqueueDocumentValidation()}}});"use strict";function Mle(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Lle(t,e,r){return e&&QC(t.prototype,e),r&&QC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var gl=new VC,Nle=function(){function t(){Mle(this,t),this.customStyleInterface=null,gl.invalidCallback=WC}return Lle(t,[{key:"ensure",value:function(){var r=this;this.customStyleInterface||window.ShadyCSS.CustomStyleInterface&&(this.customStyleInterface=window.ShadyCSS.CustomStyleInterface,this.customStyleInterface.transformCallback=function(n){gl.transformCustomStyle(n)},this.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){r.customStyleInterface.enqueued&&r.flushCustomStyles()})})}},{key:"prepareTemplate",value:function(r,n){if(this.ensure(),!Lw(r)){yl[n]=r;var i=gl.transformTemplate(r,n);r._styleAst=i}}},{key:"flushCustomStyles",value:function(){if(this.ensure(),!!this.customStyleInterface){var r=this.customStyleInterface.processStyles();if(!!this.customStyleInterface.enqueued){for(var n=0;n<r.length;n++){var i=r[n],o=this.customStyleInterface.getStyleForCustomStyle(i);o&&gl.transformCustomStyle(o)}this.customStyleInterface.enqueued=!1}}}},{key:"styleSubtree",value:function(r,n){if(this.ensure(),n&&ml(r,n),r.shadowRoot){this.styleElement(r);for(var i=r.shadowRoot.children||r.shadowRoot.childNodes,o=0;o<i.length;o++)this.styleSubtree(i[o])}else for(var a=r.children||r.childNodes,s=0;s<a.length;s++)this.styleSubtree(a[s])}},{key:"styleElement",value:function(r){this.ensure();var n=BC(r),i=n.is,o=yl[i];if(!(o&&Lw(o))&&o&&!qw(o)){GC(o)||(this.prepareTemplate(o,i),$C(o));var a=r.shadowRoot;if(a){var s=a.querySelector("style");s&&(s.__cssRules=o._styleAst,s.textContent=hl(o._styleAst))}}}},{key:"styleDocument",value:function(r){this.ensure(),this.styleSubtree(document.body,r)}}]),t}();(!window.ShadyCSS||!window.ShadyCSS.ScopingShim)&&(ht=new Nle,Uw=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface,window.ShadyCSS={prepareTemplate:function(e,r,n){ht.flushCustomStyles(),ht.prepareTemplate(e,r)},prepareTemplateStyles:function(e,r,n){window.ShadyCSS.prepareTemplate(e,r,n)},prepareTemplateDom:function(e,r){},styleSubtree:function(e,r){ht.flushCustomStyles(),ht.styleSubtree(e,r)},styleElement:function(e){ht.flushCustomStyles(),ht.styleElement(e)},styleDocument:function(e){ht.flushCustomStyles(),ht.styleDocument(e)},getComputedStyleValue:function(e,r){return Rp(e,r)},flushCustomStyles:function(){ht.flushCustomStyles()},nativeCss:Uo,nativeShadow:Mn,cssBuild:_r,disableRuntime:Ap},Uw&&(window.ShadyCSS.CustomStyleInterface=Uw));var ht,Uw;window.ShadyCSS.ApplyShim=gl;function qle(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JC(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function zle(t,e,r){return e&&JC(t.prototype,e),r&&JC(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var mt=function(){function t(){qle(this,t),this._asyncModule=null,this._callback=null,this._timer=null}return zle(t,[{key:"setConfig",value:function(r,n){var i=this;this._asyncModule=r,this._callback=n,this._timer=this._asyncModule.run(function(){i._timer=null,bl.delete(i),i._callback()})}},{key:"cancel",value:function(){this.isActive()&&(this._cancelAsync(),bl.delete(this))}},{key:"_cancelAsync",value:function(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}},{key:"flush",value:function(){this.isActive()&&(this.cancel(),this._callback())}},{key:"isActive",value:function(){return this._timer!=null}}],[{key:"debounce",value:function(r,n,i){return r instanceof t?r._cancelAsync():r=new t,r.setConfig(n,i),r}}]),t}(),bl=new Set,wr=function(e){bl.add(e)},ZC=function(){var e=Boolean(bl.size);return bl.forEach(function(r){try{r.flush()}catch(n){setTimeout(function(){throw n})}}),e};var Vw=typeof document.head.style.touchAction=="string",Lp="__polymerGestures",Np="__polymerGesturesHandled",Ww="__polymerGesturesTouchAction",eI=25,tI=5,Hle=2,Ule=2500,rI=["mousedown","mousemove","mouseup","click"],Vle=[0,1,4,2],Wle=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return!1}}();function Gw(t){return rI.indexOf(t)>-1}var $w=!1;(function(){try{var t=Object.defineProperty({},"passive",{get:function(){$w=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}})();function nI(t){if(!(Gw(t)||t==="touchend")&&Vw&&$w&&_E)return{passive:!0}}var iI=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Kw=[],Gle={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},$le={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Kle(t){return Gle[t.localName]||!1}function Yle(t){var e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];var r=t.getRootNode();if(t.id)for(var n=r.querySelectorAll("label[for = ".concat(t.id,"]")),i=0;i<n.length;i++)e.push(n[i])}return e}var oI=function(e){var r=e.sourceCapabilities;if(!(r&&!r.firesTouchEvents)&&(e[Np]={skip:!0},e.type==="click")){for(var n=!1,i=qp(e),o=0;o<i.length;o++){if(i[o].nodeType===Node.ELEMENT_NODE){if(i[o].localName==="label")Kw.push(i[o]);else if(Kle(i[o]))for(var a=Yle(i[o]),s=0;s<a.length;s++)n=n||Kw.indexOf(a[s])>-1}if(i[o]===we.mouse.target)return}if(n)return;e.preventDefault(),e.stopPropagation()}};function aI(t){for(var e=iI?["click"]:rI,r=0,n;r<e.length;r++)n=e[r],t?(Kw.length=0,document.addEventListener(n,oI,!0)):document.removeEventListener(n,oI,!0)}function Xle(t){if(!!mv){we.mouse.mouseIgnoreJob||aI(!0);var e=function(){aI(),we.mouse.target=null,we.mouse.mouseIgnoreJob=null};we.mouse.target=qp(t)[0],we.mouse.mouseIgnoreJob=mt.debounce(we.mouse.mouseIgnoreJob,lr.after(Ule),e)}}function Ln(t){var e=t.type;if(!Gw(e))return!1;if(e==="mousemove"){var r=t.buttons===void 0?1:t.buttons;return t instanceof window.MouseEvent&&!Wle&&(r=Vle[t.which]||0),Boolean(r&1)}else{var n=t.button===void 0?0:t.button;return n===0}}function Qle(t){if(t.type==="click"){if(t.detail===0)return!0;var e=Fr(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;var r=e.getBoundingClientRect(),n=t.pageX,i=t.pageY;return!(n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom)}return!1}var we={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jle(t){for(var e="auto",r=qp(t),n=0,i;n<r.length;n++)if(i=r[n],i[Ww]){e=i[Ww];break}return e}function sI(t,e,r){t.movefn=e,t.upfn=r,document.addEventListener("mousemove",e),document.addEventListener("mouseup",r)}function $o(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}mv&&document.addEventListener("touchend",Xle,$w?{passive:!0}:!1);var qp=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(t){return t.composedPath&&t.composedPath()||[]},_l={},Nn=[];function Zle(t,e){for(var r=document.elementFromPoint(t,e),n=r;n&&n.shadowRoot&&!window.ShadyDOM;){var i=n;if(n=n.shadowRoot.elementFromPoint(t,e),i===n)break;n&&(r=n)}return r}function Fr(t){var e=qp(t);return e.length>0?e[0]:t.target}function lI(t){var e,r=t.type,n=t.currentTarget,i=n[Lp];if(!!i){var o=i[r];if(!!o){if(!t[Np]&&(t[Np]={},r.slice(0,5)==="touch")){t=t;var a=t.changedTouches[0];if(r==="touchstart"&&t.touches.length===1&&(we.touch.id=a.identifier),we.touch.id!==a.identifier)return;Vw||(r==="touchstart"||r==="touchmove")&&eue(t)}if(e=t[Np],!e.skip){for(var s=0,l;s<Nn.length;s++)l=Nn[s],o[l.name]&&!e[l.name]&&l.flow&&l.flow.start.indexOf(t.type)>-1&&l.reset&&l.reset();for(var u=0,c;u<Nn.length;u++)c=Nn[u],o[c.name]&&!e[c.name]&&(e[c.name]=!0,c[r](t))}}}}function eue(t){var e=t.changedTouches[0],r=t.type;if(r==="touchstart")we.touch.x=e.clientX,we.touch.y=e.clientY,we.touch.scrollDecided=!1;else if(r==="touchmove"){if(we.touch.scrollDecided)return;we.touch.scrollDecided=!0;var n=Jle(t),i=!1,o=Math.abs(we.touch.x-e.clientX),a=Math.abs(we.touch.y-e.clientY);t.cancelable&&(n==="none"?i=!0:n==="pan-x"?i=a>o:n==="pan-y"&&(i=o>a)),i?t.preventDefault():zp("track")}}function uI(t,e,r){return _l[e]?(tue(t,e,r),!0):!1}function cI(t,e,r){return _l[e]?(rue(t,e,r),!0):!1}function tue(t,e,r){var n=_l[e],i=n.deps,o=n.name,a=t[Lp];a||(t[Lp]=a={});for(var s=0,l,u;s<i.length;s++)l=i[s],!(iI&&Gw(l)&&l!=="click")&&(u=a[l],u||(a[l]=u={_count:0}),u._count===0&&t.addEventListener(l,lI,nI(l)),u[o]=(u[o]||0)+1,u._count=(u._count||0)+1);t.addEventListener(e,r),n.touchAction&&Xw(t,n.touchAction)}function rue(t,e,r){var n=_l[e],i=n.deps,o=n.name,a=t[Lp];if(a)for(var s=0,l,u;s<i.length;s++)l=i[s],u=a[l],u&&u[o]&&(u[o]=(u[o]||1)-1,u._count=(u._count||1)-1,u._count===0&&t.removeEventListener(l,lI,nI(l)));t.removeEventListener(e,r)}function Yw(t){Nn.push(t);for(var e=0;e<t.emits.length;e++)_l[t.emits[e]]=t}function nue(t){for(var e=0,r;e<Nn.length;e++){r=Nn[e];for(var n=0,i;n<r.emits.length;n++)if(i=r.emits[n],i===t)return r}return null}function Xw(t,e){Vw&&t instanceof HTMLElement&&pe.run(function(){t.style.touchAction=e}),t[Ww]=e}function Qw(t,e,r){var n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=r,T(t).dispatchEvent(n),n.defaultPrevented){var i=r.preventer||r.sourceEvent;i&&i.preventDefault&&i.preventDefault()}}function zp(t){var e=nue(t);e.info&&(e.info.prevent=!0)}Yw({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){$o(this.info)},mousedown:function(e){if(!!Ln(e)){var r=Fr(e),n=this,i=function(s){Ln(s)||(wl("up",r,s),$o(n.info))},o=function(s){Ln(s)&&wl("up",r,s),$o(n.info)};sI(this.info,i,o),wl("down",r,e)}},touchstart:function(e){wl("down",Fr(e),e.changedTouches[0],e)},touchend:function(e){wl("up",Fr(e),e.changedTouches[0],e)}});function wl(t,e,r,n){!e||Qw(e,t,{x:r.clientX,y:r.clientY,sourceEvent:r,preventer:n,prevent:function(o){return zp(o)}})}Yw({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(e){this.moves.length>Hle&&this.moves.shift(),this.moves.push(e)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,$o(this.info)},mousedown:function(e){if(!!Ln(e)){var r=Fr(e),n=this,i=function(s){var l=s.clientX,u=s.clientY;fI(n.info,l,u)&&(n.info.state=n.info.started?s.type==="mouseup"?"end":"track":"start",n.info.state==="start"&&zp("tap"),n.info.addMove({x:l,y:u}),Ln(s)||(n.info.state="end",$o(n.info)),r&&Jw(n.info,r,s),n.info.started=!0)},o=function(s){n.info.started&&i(s),$o(n.info)};sI(this.info,i,o),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var r=e.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchmove:function(e){var r=Fr(e),n=e.changedTouches[0],i=n.clientX,o=n.clientY;fI(this.info,i,o)&&(this.info.state==="start"&&zp("tap"),this.info.addMove({x:i,y:o}),Jw(this.info,r,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var r=Fr(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),Jw(this.info,r,n))}});function fI(t,e,r){if(t.prevent)return!1;if(t.started)return!0;var n=Math.abs(t.x-e),i=Math.abs(t.y-r);return n>=tI||i>=tI}function Jw(t,e,r){if(!!e){var n=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],o=i.x-t.x,a=i.y-t.y,s,l=0;n&&(s=i.x-n.x,l=i.y-n.y),Qw(e,"track",{state:t.state,x:r.clientX,y:r.clientY,dx:o,dy:a,ddx:s,ddy:l,sourceEvent:r,hover:function(){return Zle(r.clientX,r.clientY)}})}}Yw({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(e){Ln(e)&&(this.info.x=e.clientX,this.info.y=e.clientY)},click:function(e){Ln(e)&&pI(this.info,e)},touchstart:function(e){var r=e.changedTouches[0];this.info.x=r.clientX,this.info.y=r.clientY},touchend:function(e){pI(this.info,e.changedTouches[0],e)}});function pI(t,e,r){var n=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),o=Fr(r||e);!o||$le[o.localName]&&o.hasAttribute("disabled")||(isNaN(n)||isNaN(i)||n<=eI&&i<=eI||Qle(e))&&(t.prevent||Qw(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r}))}function Zw(t){return Zw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zw(t)}function iue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function oue(t,e,r){return e&&dI(t.prototype,e),r&&dI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fl(){return typeof Reflect!="undefined"&&Reflect.get?Fl=Reflect.get:Fl=function(e,r,n){var i=aue(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Fl.apply(this,arguments)}function aue(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=qn(t),t!==null););return t}function sue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eF(t,e)}function eF(t,e){return eF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},eF(t,e)}function lue(t){var e=fue();return function(){var n=qn(t),i;if(e){var o=qn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return uue(this,i)}}function uue(t,e){if(e&&(Zw(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cue(t)}function cue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function qn(t){return qn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},qn(t)}var Hp=ne(function(t){var e=function(r){sue(i,r);var n=lue(i);function i(){return iue(this,i),n.apply(this,arguments)}return oue(i,[{key:"_addEventListenerToNode",value:function(a,s,l){uI(a,s,l)||Fl(qn(i.prototype),"_addEventListenerToNode",this).call(this,a,s,l)}},{key:"_removeEventListenerFromNode",value:function(a,s,l){cI(a,s,l)||Fl(qn(i.prototype),"_removeEventListenerFromNode",this).call(this,a,s,l)}}]),i}(t);return e});function tF(t){return tF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tF(t)}function pue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function due(t,e,r){return e&&hI(t.prototype,e),r&&hI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ko(){return typeof Reflect!="undefined"&&Reflect.get?Ko=Reflect.get:Ko=function(e,r,n){var i=hue(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Ko.apply(this,arguments)}function hue(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=xr(t),t!==null););return t}function mue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rF(t,e)}function rF(t,e){return rF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},rF(t,e)}function yue(t){var e=bue();return function(){var n=xr(t),i;if(e){var o=xr(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return vue(this,i)}}function vue(t,e){if(e&&(tF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gue(t)}function gue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function xr(t){return xr=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},xr(t)}var _ue=/:host\(:dir\((ltr|rtl)\)\)/g,wue=':host([dir="$1"])',Fue=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,xue=':host([dir="$2"]) $1',Oue=/:dir\((?:ltr|rtl)\)/,mI=Boolean(window.ShadyDOM&&window.ShadyDOM.inUse),xl=[],Ol=null,nF="";function yI(){nF=document.documentElement.getAttribute("dir")}function vI(t){if(!t.__autoDirOptOut){var e=t;e.setAttribute("dir",nF)}}function gI(){yI(),nF=document.documentElement.getAttribute("dir");for(var t=0;t<xl.length;t++)vI(xl[t])}function Pue(){Ol&&Ol.takeRecords().length&&gI()}var bI=ne(function(t){mI||Ol||(yI(),Ol=new MutationObserver(gI),Ol.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var e=wc(t),r=function(n){mue(o,n);var i=yue(o);function o(){var a;return pue(this,o),a=i.call(this),a.__autoDirOptOut=!1,a}return due(o,[{key:"ready",value:function(){Ko(xr(o.prototype),"ready",this).call(this),this.__autoDirOptOut=this.hasAttribute("dir")}},{key:"connectedCallback",value:function(){e.prototype.connectedCallback&&Ko(xr(o.prototype),"connectedCallback",this).call(this),this.constructor.__activateDir&&(Pue(),xl.push(this),vI(this))}},{key:"disconnectedCallback",value:function(){if(e.prototype.disconnectedCallback&&Ko(xr(o.prototype),"disconnectedCallback",this).call(this),this.constructor.__activateDir){var s=xl.indexOf(this);s>-1&&xl.splice(s,1)}}}],[{key:"_processStyleText",value:function(s,l){return s=e._processStyleText.call(this,s,l),!mI&&Oue.test(s)&&(s=this._replaceDirInCssText(s),this.__activateDir=!0),s}},{key:"_replaceDirInCssText",value:function(s){var l=s;return l=l.replace(_ue,wue),l=l.replace(Fue,xue),l}}]),o}(e);return r.__activateDir=!1,r});function _I(){document.body.removeAttribute("unresolved")}document.readyState==="interactive"||document.readyState==="complete"?_I():window.addEventListener("DOMContentLoaded",_I);function Pl(t,e,r){return{index:t,removed:e,addedCount:r}}var wI=0,FI=1,iF=2,oF=3;function Sue(t,e,r,n,i,o){for(var a=o-i+1,s=r-e+1,l=new Array(a),u=0;u<a;u++)l[u]=new Array(s),l[u][0]=u;for(var c=0;c<s;c++)l[0][c]=c;for(var f=1;f<a;f++)for(var p=1;p<s;p++)if(aF(t[e+p-1],n[i+f-1]))l[f][p]=l[f-1][p-1];else{var d=l[f-1][p]+1,m=l[f][p-1]+1;l[f][p]=d<m?d:m}return l}function kue(t){for(var e=t.length-1,r=t[0].length-1,n=t[e][r],i=[];e>0||r>0;){if(e==0){i.push(iF),r--;continue}if(r==0){i.push(oF),e--;continue}var o=t[e-1][r-1],a=t[e-1][r],s=t[e][r-1],l=void 0;a<s?l=a<o?a:o:l=s<o?s:o,l==o?(o==n?i.push(wI):(i.push(FI),n=o),e--,r--):l==a?(i.push(oF),e--,n=a):(i.push(iF),r--,n=s)}return i.reverse(),i}function Eue(t,e,r,n,i,o){var a=0,s=0,l,u=Math.min(r-e,o-i);if(e==0&&i==0&&(a=Tue(t,n,u)),r==t.length&&o==n.length&&(s=Aue(t,n,u-a)),e+=a,i+=a,r-=s,o-=s,r-e==0&&o-i==0)return[];if(e==r){for(l=Pl(e,[],0);i<o;)l.removed.push(n[i++]);return[l]}else if(i==o)return[Pl(e,[],r-e)];var c=kue(Sue(t,e,r,n,i,o));l=void 0;for(var f=[],p=e,d=i,m=0;m<c.length;m++)switch(c[m]){case wI:l&&(f.push(l),l=void 0),p++,d++;break;case FI:l||(l=Pl(p,[],0)),l.addedCount++,p++,l.removed.push(n[d]),d++;break;case iF:l||(l=Pl(p,[],0)),l.addedCount++,p++;break;case oF:l||(l=Pl(p,[],0)),l.removed.push(n[d]),d++;break}return l&&f.push(l),f}function Tue(t,e,r){for(var n=0;n<r;n++)if(!aF(t[n],e[n]))return n;return r}function Aue(t,e,r){for(var n=t.length,i=e.length,o=0;o<r&&aF(t[--n],e[--i]);)o++;return o}function Up(t,e){return Eue(t,0,t.length,e,0,e.length)}function aF(t,e){return t===e}function Rue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Due(t,e,r){return e&&xI(t.prototype,e),r&&xI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Yo(t){return t.localName==="slot"}var sF=function(){function t(e,r){var n=this;Rue(this,t),this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=e,this.callback=r,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=function(){n._schedule()},this.connect(),this._schedule()}return Due(t,[{key:"connect",value:function(){var r=this;Yo(this._target)?this._listenSlots([this._target]):T(this._target).children&&(this._listenSlots(T(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(n){r._processMutations(n)}):(this._nativeChildrenObserver=new MutationObserver(function(n){r._processMutations(n)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}},{key:"disconnect",value:function(){Yo(this._target)?this._unlistenSlots([this._target]):T(this._target).children&&(this._unlistenSlots(T(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}},{key:"_schedule",value:function(){var r=this;this._scheduled||(this._scheduled=!0,pe.run(function(){return r.flush()}))}},{key:"_processMutations",value:function(r){this._processSlotMutations(r),this.flush()}},{key:"_processSlotMutations",value:function(r){if(r)for(var n=0;n<r.length;n++){var i=r[n];i.addedNodes&&this._listenSlots(i.addedNodes),i.removedNodes&&this._unlistenSlots(i.removedNodes)}}},{key:"flush",value:function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;for(var r={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=Up(n,this._effectiveNodes),o=0,a;o<i.length&&(a=i[o]);o++)for(var s=0,l;s<a.removed.length&&(l=a.removed[s]);s++)r.removedNodes.push(l);for(var u=0,c;u<i.length&&(c=i[u]);u++)for(var f=c.index;f<c.index+c.addedCount;f++)r.addedNodes.push(n[f]);this._effectiveNodes=n;var p=!1;return(r.addedNodes.length||r.removedNodes.length)&&(p=!0,this.callback.call(this._target,r)),p}},{key:"_listenSlots",value:function(r){for(var n=0;n<r.length;n++){var i=r[n];Yo(i)&&i.addEventListener("slotchange",this._boundSchedule)}}},{key:"_unlistenSlots",value:function(r){for(var n=0;n<r.length;n++){var i=r[n];Yo(i)&&i.removeEventListener("slotchange",this._boundSchedule)}}}],[{key:"getFlattenedNodes",value:function(r){var n=T(r);return Yo(r)?(r=r,n.assignedNodes({flatten:!0})):Array.from(n.childNodes).map(function(i){return Yo(i)?(i=i,T(i).assignedNodes({flatten:!0})):[i]}).reduce(function(i,o){return i.concat(o)},[])}}]),t}();var Vt=function(){var e,r;do e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),r=ZC();while(e||r)};function lF(t){return lF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lF(t)}function Cue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uF(t,e)}function uF(t,e){return uF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},uF(t,e)}function Iue(t){var e=Mue();return function(){var n=Vp(t),i;if(e){var o=Vp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return jue(this,i)}}function jue(t,e){if(e&&(lF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bue(t)}function Bue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Vp(t){return Vp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vp(t)}function cF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function OI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function fF(t,e,r){return e&&OI(t.prototype,e),r&&OI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Xo=Element.prototype,Lue=Xo.matches||Xo.matchesSelector||Xo.mozMatchesSelector||Xo.msMatchesSelector||Xo.oMatchesSelector||Xo.webkitMatchesSelector,pF=function(e,r){return Lue.call(e,r)},X=function(){function t(e){cF(this,t),window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(e),this.node=e}return fF(t,[{key:"observeNodes",value:function(r){return new sF(this.node,r)}},{key:"unobserveNodes",value:function(r){r.disconnect()}},{key:"notifyObserver",value:function(){}},{key:"deepContains",value:function(r){if(T(this.node).contains(r))return!0;for(var n=r,i=r.ownerDocument;n&&n!==i&&n!==this.node;)n=T(n).parentNode||T(n).host;return n===this.node}},{key:"getOwnerRoot",value:function(){return T(this.node).getRootNode()}},{key:"getDistributedNodes",value:function(){return this.node.localName==="slot"?T(this.node).assignedNodes({flatten:!0}):[]}},{key:"getDestinationInsertionPoints",value:function(){for(var r=[],n=T(this.node).assignedSlot;n;)r.push(n),n=T(n).assignedSlot;return r}},{key:"importNode",value:function(r,n){var i=this.node instanceof Document?this.node:this.node.ownerDocument;return T(i).importNode(r,n)}},{key:"getEffectiveChildNodes",value:function(){return sF.getFlattenedNodes(this.node)}},{key:"queryDistributedElements",value:function(r){for(var n=this.getEffectiveChildNodes(),i=[],o=0,a=n.length,s;o<a&&(s=n[o]);o++)s.nodeType===Node.ELEMENT_NODE&&pF(s,r)&&i.push(s);return i}},{key:"activeElement",get:function(){var r=this.node;return r._activeElement!==void 0?r._activeElement:r.activeElement}}]),t}();function Nue(t,e){for(var r=function(o){var a=e[o];t[a]=function(){return this.node[a].apply(this.node,arguments)}},n=0;n<e.length;n++)r(n)}function PI(t,e){for(var r=function(o){var a=e[o];Object.defineProperty(t,a,{get:function(){var l=this;return l.node[a]},configurable:!0})},n=0;n<e.length;n++)r(n)}function que(t,e){for(var r=function(o){var a=e[o];Object.defineProperty(t,a,{get:function(){return this.node[a]},set:function(l){this.node[a]=l},configurable:!0})},n=0;n<e.length;n++)r(n)}var dF=function(){function t(e){cF(this,t),this.event=e}return fF(t,[{key:"rootTarget",get:function(){return this.path[0]}},{key:"localTarget",get:function(){return this.event.target}},{key:"path",get:function(){return this.event.composedPath()}}]),t}();X.prototype.cloneNode;X.prototype.appendChild;X.prototype.insertBefore;X.prototype.removeChild;X.prototype.replaceChild;X.prototype.setAttribute;X.prototype.removeAttribute;X.prototype.querySelector;X.prototype.querySelectorAll;X.prototype.parentNode;X.prototype.firstChild;X.prototype.lastChild;X.prototype.nextSibling;X.prototype.previousSibling;X.prototype.firstElementChild;X.prototype.lastElementChild;X.prototype.nextElementSibling;X.prototype.previousElementSibling;X.prototype.childNodes;X.prototype.children;X.prototype.classList;X.prototype.textContent;X.prototype.innerHTML;var hF=X;window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper?(Wp=function(t){Cue(r,t);var e=Iue(r);function r(){return cF(this,r),e.apply(this,arguments)}return fF(r)}(window.ShadyDOM.Wrapper),Object.getOwnPropertyNames(X.prototype).forEach(function(t){t!="activeElement"&&(Wp.prototype[t]=X.prototype[t])}),PI(Wp.prototype,["classList"]),hF=Wp,Object.defineProperties(dF.prototype,{localTarget:{get:function(){for(var e=this.event.currentTarget,r=e&&J(e).getOwnerRoot(),n=this.path,i=0;i<n.length;i++){var o=n[i];if(J(o).getOwnerRoot()===r)return o}},configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},configurable:!0}})):(Nue(X.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),PI(X.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),que(X.prototype,["textContent","innerHTML","className"]));var Wp;var J=function(e){if(e=e||document,e instanceof hF||e instanceof dF)return e;var r=e.__domApi;return r||(e instanceof Event?r=new dF(e):r=new hF(e),e.__domApi=r),r};var mF=window.ShadyDOM,SI=window.ShadyCSS;function kI(t,e){return T(t).getRootNode()===e}function EI(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!mF||!SI||!mF.handlesDynamicScoping)return null;var r=SI.ScopingShim;if(!r)return null;var n=r.scopeForNode(t),i=T(t).getRootNode(),o=function(l){if(!!kI(l,i)){var u=Array.from(mF.nativeMethods.querySelectorAll.call(l,"*"));u.push(l);for(var c=0;c<u.length;c++){var f=u[c];if(!!kI(f,i)){var p=r.currentScopeForNode(f);p!==n&&(p!==""&&r.unscopeNode(f,p),r.scopeNode(f,n))}}}};if(o(t),e){var a=new MutationObserver(function(s){for(var l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.addedNodes.length;c++){var f=u.addedNodes[c];f.nodeType===Node.ELEMENT_NODE&&o(f)}});return a.observe(t,{childList:!0,subtree:!0}),a}else return null}function yF(t){return yF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yF(t)}function zue(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function TI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Hue(t,e,r){return e&&TI(t.prototype,e),r&&TI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tt(){return typeof Reflect!="undefined"&&Reflect.get?tt=Reflect.get:tt=function(e,r,n){var i=Uue(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},tt.apply(this,arguments)}function Uue(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Be(t),t!==null););return t}function Vue(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vF(t,e)}function vF(t,e){return vF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},vF(t,e)}function Wue(t){var e=Kue();return function(){var n=Be(t),i;if(e){var o=Be(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Gue(this,i)}}function Gue(t,e){if(e&&(yF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $ue(t)}function $ue(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kue(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Be(t){return Be=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Be(t)}var gF="disable-upgrade",bF=function(e){for(;e;){var r=Object.getOwnPropertyDescriptor(e,"observedAttributes");if(r)return r.get;e=Object.getPrototypeOf(e.prototype).constructor}return function(){return[]}},UIe=ne(function(t){var e=fr(t),r=bF(e),n=function(i){Vue(a,i);var o=Wue(a);function a(){var s;return zue(this,a),s=o.call(this),s.__isUpgradeDisabled,s}return Hue(a,[{key:"_initializeProperties",value:function(){this.hasAttribute(gF)?this.__isUpgradeDisabled=!0:tt(Be(a.prototype),"_initializeProperties",this).call(this)}},{key:"_enableProperties",value:function(){this.__isUpgradeDisabled||tt(Be(a.prototype),"_enableProperties",this).call(this)}},{key:"_canApplyPropertyDefault",value:function(l){return tt(Be(a.prototype),"_canApplyPropertyDefault",this).call(this,l)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(l))}},{key:"attributeChangedCallback",value:function(l,u,c,f){l==gF?this.__isUpgradeDisabled&&c==null&&(tt(Be(a.prototype),"_initializeProperties",this).call(this),this.__isUpgradeDisabled=!1,T(this).isConnected&&tt(Be(a.prototype),"connectedCallback",this).call(this)):tt(Be(a.prototype),"attributeChangedCallback",this).call(this,l,u,c,f)}},{key:"connectedCallback",value:function(){this.__isUpgradeDisabled||tt(Be(a.prototype),"connectedCallback",this).call(this)}},{key:"disconnectedCallback",value:function(){this.__isUpgradeDisabled||tt(Be(a.prototype),"disconnectedCallback",this).call(this)}}],[{key:"observedAttributes",get:function(){return r.call(this).concat(gF)}}]),a}(e);return n});function _F(t){return _F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_F(t)}function Yue(t){return Zue(t)||Jue(t)||Que(t)||Xue()}function Xue(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Que(t,e){if(!!t){if(typeof t=="string")return wF(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wF(t,e)}}function Jue(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zue(t){if(Array.isArray(t))return wF(t)}function wF(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ece(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function tce(t,e,r){return e&&AI(t.prototype,e),r&&AI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Re(){return typeof Reflect!="undefined"&&Reflect.get?Re=Reflect.get:Re=function(e,r,n){var i=rce(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Re.apply(this,arguments)}function rce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Fe(t),t!==null););return t}function nce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&FF(t,e)}function FF(t,e){return FF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},FF(t,e)}function ice(t){var e=sce();return function(){var n=Fe(t),i;if(e){var o=Fe(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return oce(this,i)}}function oce(t,e){if(e&&(_F(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ace(t)}function ace(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Fe(t){return Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Fe(t)}var Gp="disable-upgrade",lce=window.ShadyCSS,$p=ne(function(t){var e=Hp(fr(t)),r=Oc?e:bI(e),n=bF(r),i={x:"pan-x",y:"pan-y",none:"none",all:"auto"},o=function(a){nce(l,a);var s=ice(l);function l(){var u;return ece(this,l),u=s.call(this),u.isAttached,u.__boundListeners,u._debouncers,u.__isUpgradeDisabled,u.__needsAttributesAtConnected,u._legacyForceObservedAttributes,u}return tce(l,[{key:"created",value:function(){}},{key:"__attributeReaction",value:function(c,f,p){(this.__dataAttributes&&this.__dataAttributes[c]||c===Gp)&&this.attributeChangedCallback(c,f,p,null)}},{key:"setAttribute",value:function(c,f){if(Ga&&!this._legacyForceObservedAttributes){var p=this.getAttribute(c);Re(Fe(l.prototype),"setAttribute",this).call(this,c,f),this.__attributeReaction(c,p,String(f))}else Re(Fe(l.prototype),"setAttribute",this).call(this,c,f)}},{key:"removeAttribute",value:function(c){if(Ga&&!this._legacyForceObservedAttributes){var f=this.getAttribute(c);Re(Fe(l.prototype),"removeAttribute",this).call(this,c),this.__attributeReaction(c,f,null)}else Re(Fe(l.prototype),"removeAttribute",this).call(this,c)}},{key:"_enableProperties",value:function(){this.__isUpgradeDisabled||Re(Fe(l.prototype),"_enableProperties",this).call(this)}},{key:"_canApplyPropertyDefault",value:function(c){return Re(Fe(l.prototype),"_canApplyPropertyDefault",this).call(this,c)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(c))}},{key:"connectedCallback",value:function(){this.__needsAttributesAtConnected&&this._takeAttributes(),this.__isUpgradeDisabled||(Re(Fe(l.prototype),"connectedCallback",this).call(this),this.isAttached=!0,this.attached())}},{key:"attached",value:function(){}},{key:"disconnectedCallback",value:function(){this.__isUpgradeDisabled||(Re(Fe(l.prototype),"disconnectedCallback",this).call(this),this.isAttached=!1,this.detached())}},{key:"detached",value:function(){}},{key:"attributeChangedCallback",value:function(c,f,p,d){f!==p&&(c==Gp?this.__isUpgradeDisabled&&p==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,T(this).isConnected&&this.connectedCallback()):(Re(Fe(l.prototype),"attributeChangedCallback",this).call(this,c,f,p,d),this.attributeChanged(c,f,p)))}},{key:"attributeChanged",value:function(c,f,p){}},{key:"_initializeProperties",value:function(){if(Ct&&this.hasAttribute(Gp))this.__isUpgradeDisabled=!0;else{var c=Object.getPrototypeOf(this);c.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",c))||(this._registered(),c.__hasRegisterFinished=!0),Re(Fe(l.prototype),"_initializeProperties",this).call(this),this.root=this,this.created(),Ga&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0)),this._applyListeners()}}},{key:"_takeAttributes",value:function(){for(var c=this.attributes,f=0,p=c.length;f<p;f++){var d=c[f];this.__attributeReaction(d.name,null,d.value)}}},{key:"_registered",value:function(){}},{key:"ready",value:function(){this._ensureAttributes(),Re(Fe(l.prototype),"ready",this).call(this)}},{key:"_ensureAttributes",value:function(){}},{key:"_applyListeners",value:function(){}},{key:"serialize",value:function(c){return this._serializeValue(c)}},{key:"deserialize",value:function(c,f){return this._deserializeValue(c,f)}},{key:"reflectPropertyToAttribute",value:function(c,f,p){this._propertyToAttribute(c,f,p)}},{key:"serializeValueToAttribute",value:function(c,f,p){this._valueToNodeAttribute(p||this,c,f)}},{key:"extend",value:function(c,f){if(!(c&&f))return c||f;for(var p=Object.getOwnPropertyNames(f),d=0,m;d<p.length&&(m=p[d]);d++){var h=Object.getOwnPropertyDescriptor(f,m);h&&Object.defineProperty(c,m,h)}return c}},{key:"mixin",value:function(c,f){for(var p in f)c[p]=f[p];return c}},{key:"chainObject",value:function(c,f){return c&&f&&c!==f&&(c.__proto__=f),c}},{key:"instanceTemplate",value:function(c){var f=this.constructor._contentForTemplate(c),p=document.importNode(f,!0);return p}},{key:"fire",value:function(c,f,p){p=p||{},f=f==null?{}:f;var d=new Event(c,{bubbles:p.bubbles===void 0?!0:p.bubbles,cancelable:Boolean(p.cancelable),composed:p.composed===void 0?!0:p.composed});d.detail=f;var m=p.node||this;return T(m).dispatchEvent(d),d}},{key:"listen",value:function(c,f,p){c=c||this;var d=this.__boundListeners||(this.__boundListeners=new WeakMap),m=d.get(c);m||(m={},d.set(c,m));var h=f+p;m[h]||(m[h]=this._addMethodEventListenerToNode(c,f,p,this))}},{key:"unlisten",value:function(c,f,p){c=c||this;var d=this.__boundListeners&&this.__boundListeners.get(c),m=f+p,h=d&&d[m];h&&(this._removeEventListenerFromNode(c,f,h),d[m]=null)}},{key:"setScrollDirection",value:function(c,f){Xw(f||this,i[c]||"auto")}},{key:"$$",value:function(c){return this.root.querySelector(c)}},{key:"domHost",get:function(){var c=T(this).getRootNode();return c instanceof DocumentFragment?c.host:c}},{key:"distributeContent",value:function(){var c=this,f=J(c);window.ShadyDOM&&f.shadowRoot&&ShadyDOM.flush()}},{key:"getEffectiveChildNodes",value:function(){var c=this,f=J(c);return f.getEffectiveChildNodes()}},{key:"queryDistributedElements",value:function(c){var f=this,p=J(f);return p.queryDistributedElements(c)}},{key:"getEffectiveChildren",value:function(){var c=this.getEffectiveChildNodes();return c.filter(function(f){return f.nodeType===Node.ELEMENT_NODE})}},{key:"getEffectiveTextContent",value:function(){for(var c=this.getEffectiveChildNodes(),f=[],p=0,d;d=c[p];p++)d.nodeType!==Node.COMMENT_NODE&&f.push(d.textContent);return f.join("")}},{key:"queryEffectiveChildren",value:function(c){var f=this.queryDistributedElements(c);return f&&f[0]}},{key:"queryAllEffectiveChildren",value:function(c){return this.queryDistributedElements(c)}},{key:"getContentChildNodes",value:function(c){var f=this.root.querySelector(c||"slot");return f?J(f).getDistributedNodes():[]}},{key:"getContentChildren",value:function(c){var f=this.getContentChildNodes(c).filter(function(p){return p.nodeType===Node.ELEMENT_NODE});return f}},{key:"isLightDescendant",value:function(c){var f=this;return f!==c&&T(f).contains(c)&&T(f).getRootNode()===T(c).getRootNode()}},{key:"isLocalDescendant",value:function(c){return this.root===T(c).getRootNode()}},{key:"scopeSubtree",value:function(c){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return EI(c,f)}},{key:"getComputedStyleValue",value:function(c){return lce.getComputedStyleValue(this,c)}},{key:"debounce",value:function(c,f,p){return this._debouncers=this._debouncers||{},this._debouncers[c]=mt.debounce(this._debouncers[c],p>0?lr.after(p):pe,f.bind(this))}},{key:"isDebouncerActive",value:function(c){this._debouncers=this._debouncers||{};var f=this._debouncers[c];return!!(f&&f.isActive())}},{key:"flushDebouncer",value:function(c){this._debouncers=this._debouncers||{};var f=this._debouncers[c];f&&f.flush()}},{key:"cancelDebouncer",value:function(c){this._debouncers=this._debouncers||{};var f=this._debouncers[c];f&&f.cancel()}},{key:"async",value:function(c,f){return f>0?lr.run(c.bind(this),f):~pe.run(c.bind(this))}},{key:"cancelAsync",value:function(c){c<0?pe.cancel(~c):lr.cancel(c)}},{key:"create",value:function(c,f){var p=document.createElement(c);if(f)if(p.setProperties)p.setProperties(f);else for(var d in f)p[d]=f[d];return p}},{key:"elementMatches",value:function(c,f){return pF(f||this,c)}},{key:"toggleAttribute",value:function(c,f){var p=this;return arguments.length===3&&(p=arguments[2]),arguments.length==1&&(f=!p.hasAttribute(c)),f?(T(p).setAttribute(c,""),!0):(T(p).removeAttribute(c),!1)}},{key:"toggleClass",value:function(c,f,p){p=p||this,arguments.length==1&&(f=!p.classList.contains(c)),f?p.classList.add(c):p.classList.remove(c)}},{key:"transform",value:function(c,f){f=f||this,f.style.webkitTransform=c,f.style.transform=c}},{key:"translate3d",value:function(c,f,p,d){d=d||this,this.transform("translate3d("+c+","+f+","+p+")",d)}},{key:"arrayDelete",value:function(c,f){var p;if(Array.isArray(c)){if(p=c.indexOf(f),p>=0)return c.splice(p,1)}else{var d=be(this,c);if(p=d.indexOf(f),p>=0)return this.splice(c,p,1)}return null}},{key:"_logger",value:function(c,f){var p;switch(Array.isArray(f)&&f.length===1&&Array.isArray(f[0])&&(f=f[0]),c){case"log":case"warn":case"error":(p=console)[c].apply(p,Yue(f))}}},{key:"_log",value:function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];this._logger("log",f)}},{key:"_warn",value:function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];this._logger("warn",f)}},{key:"_error",value:function(){for(var c=arguments.length,f=new Array(c),p=0;p<c;p++)f[p]=arguments[p];this._logger("error",f)}},{key:"_logf",value:function(c){for(var f=arguments.length,p=new Array(f>1?f-1:0),d=1;d<f;d++)p[d-1]=arguments[d];return["[%s::%s]",this.is,c].concat(p)}}],[{key:"importMeta",get:function(){return this.prototype.importMeta}},{key:"observedAttributes",get:function(){return Ga&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))||(this.__observedAttributes=[],xc(this.prototype)),this.__observedAttributes):n.call(this).concat(Gp)}}]),l}(r);return o.prototype.is="",o});function xF(t){return xF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xF(t)}function uce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function cce(t,e,r){return e&&RI(t.prototype,e),r&&RI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function rt(){return typeof Reflect!="undefined"&&Reflect.get?rt=Reflect.get:rt=function(e,r,n){var i=fce(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},rt.apply(this,arguments)}function fce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Me(t),t!==null););return t}function pce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OF(t,e)}function OF(t,e){return OF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},OF(t,e)}function dce(t){var e=yce();return function(){var n=Me(t),i;if(e){var o=Me(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return hce(this,i)}}function hce(t,e){if(e&&(xF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mce(t)}function mce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Me(t){return Me=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Me(t)}var vce={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},DI={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},gce=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},DI);function bce(t,e,r){for(var n=t._noAccessors,i=Object.getOwnPropertyNames(t),o=0;o<i.length;o++){var a=i[o];if(!(a in r))if(n)e[a]=t[a];else{var s=Object.getOwnPropertyDescriptor(t,a);s&&(s.configurable=!0,Object.defineProperty(e,a,s))}}}function _ce(t,e,r){for(var n=0;n<e.length;n++)CI(t,e[n],r,gce)}function CI(t,e,r,n){bce(e,t,n);for(var i in vce)e[i]&&(r[i]=r[i]||[],r[i].push(e[i]))}function II(t,e,r){e=e||[];for(var n=t.length-1;n>=0;n--){var i=t[n];i?Array.isArray(i)?II(i,e):e.indexOf(i)<0&&(!r||r.indexOf(i)<0)&&e.unshift(i):console.warn("behavior is null, check for missing or 404 import")}return e}function jI(t,e){for(var r in e){var n=t[r],i=e[r];!("value"in i)&&n&&"value"in n?t[r]=Object.assign({value:n.value},i):t[r]=i}}var BI=$p(HTMLElement);function wce(t,e,r){var n,i={},o=function(l){pce(c,l);var u=dce(c);function c(){return uce(this,c),u.apply(this,arguments)}return cce(c,[{key:"created",value:function(){rt(Me(c.prototype),"created",this).call(this);var p=i.created;if(p)for(var d=0;d<p.length;d++)p[d].call(this)}},{key:"_registered",value:function(){var p=c.prototype;if(!p.hasOwnProperty(JSCompiler_renameProperty("__hasRegisterFinished",p))){p.__hasRegisterFinished=!0,rt(Me(c.prototype),"_registered",this).call(this),Ct&&s(p);var d=Object.getPrototypeOf(this),m=i.beforeRegister;if(m)for(var h=0;h<m.length;h++)m[h].call(d);if(m=i.registered,m)for(var v=0;v<m.length;v++)m[v].call(d)}}},{key:"_applyListeners",value:function(){rt(Me(c.prototype),"_applyListeners",this).call(this);var p=i.listeners;if(p)for(var d=0;d<p.length;d++){var m=p[d];if(m)for(var h in m)this._addMethodEventListenerToNode(this,h,m[h])}}},{key:"_ensureAttributes",value:function(){var p=i.hostAttributes;if(p)for(var d=p.length-1;d>=0;d--){var m=p[d];for(var h in m)this._ensureAttribute(h,m[h])}rt(Me(c.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){rt(Me(c.prototype),"ready",this).call(this);var p=i.ready;if(p)for(var d=0;d<p.length;d++)p[d].call(this)}},{key:"attached",value:function(){rt(Me(c.prototype),"attached",this).call(this);var p=i.attached;if(p)for(var d=0;d<p.length;d++)p[d].call(this)}},{key:"detached",value:function(){rt(Me(c.prototype),"detached",this).call(this);var p=i.detached;if(p)for(var d=0;d<p.length;d++)p[d].call(this)}},{key:"attributeChanged",value:function(p,d,m){rt(Me(c.prototype),"attributeChanged",this).call(this);var h=i.attributeChanged;if(h)for(var v=0;v<h.length;v++)h[v].call(this,p,d,m)}}],[{key:"_finalizeClass",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("generatedFrom",this)))e._finalizeClass.call(this);else{if(n)for(var p=0,d;p<n.length;p++)d=n[p],d.properties&&this.createProperties(d.properties),d.observers&&this.createObservers(d.observers,d.properties);t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties),this._prepareTemplate()}}},{key:"properties",get:function(){var p={};if(n)for(var d=0;d<n.length;d++)jI(p,n[d].properties);return jI(p,t.properties),p}},{key:"observers",get:function(){var p=[];if(n)for(var d=0,m;d<n.length;d++)m=n[d],m.observers&&(p=p.concat(m.observers));return t.observers&&(p=p.concat(t.observers)),p}}]),c}(e);if(r){Array.isArray(r)||(r=[r]);var a=e.prototype.behaviors;n=II(r,null,a),o.prototype.behaviors=a?a.concat(r):n}var s=function(u){n&&_ce(u,n,i),CI(u,t,i,DI)};return Ct||s(o.prototype),o.generatedFrom=t,o}var MI=function(e,r){e||console.warn("Polymer.Class requires `info` argument");var n=r?r(BI):BI;return n=wce(e,n,e.behaviors),n.is=n.prototype.is=e.is,n};var We=function t(e){var r;return typeof e=="function"?r=e:r=t.Class(e),e._legacyForceObservedAttributes&&(r.prototype._legacyForceObservedAttributes=e._legacyForceObservedAttributes),customElements.define(r.is,r),r};We.Class=MI;function PF(t){return PF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},PF(t)}function Kp(){return typeof Reflect!="undefined"&&Reflect.get?Kp=Reflect.get:Kp=function(e,r,n){var i=Fce(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Kp.apply(this,arguments)}function Fce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Qo(t),t!==null););return t}function Sl(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&SF(t,e)}function SF(t,e){return SF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},SF(t,e)}function kl(t){var e=Oce();return function(){var n=Qo(t),i;if(e){var o=Qo(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return xce(this,i)}}function xce(t,e){if(e&&(PF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LI(t)}function LI(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Qo(t){return Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qo(t)}function NI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Jo(t,e,r){return e&&NI(t.prototype,e),r&&NI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var kF=null;function EF(){return kF}EF.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:EF,writable:!0}});var qI=mn(EF),Pce=Dt(qI);function Sce(t,e){kF=t,Object.setPrototypeOf(t,e.prototype),new e,kF=null}var kce=mn(function(){function t(){Zo(this,t)}return Jo(t)}());function TF(t,e){for(var r=0;r<e.length;r++){var n=e[r];if(Boolean(t)!=Boolean(n.__hideTemplateChildren__))if(n.nodeType===Node.TEXT_NODE)t?(n.__polymerTextContent__=n.textContent,n.textContent=""):n.textContent=n.__polymerTextContent__;else if(n.localName==="slot")if(t)n.__polymerReplaced__=document.createComment("hidden-slot"),T(T(n).parentNode).replaceChild(n.__polymerReplaced__,n);else{var i=n.__polymerReplaced__;i&&T(T(i).parentNode).replaceChild(n,i)}else n.style&&(t?(n.__polymerDisplay__=n.style.display,n.style.display="none"):n.style.display=n.__polymerDisplay__);n.__hideTemplateChildren__=t,n._showHideChildren&&n._showHideChildren(t)}}var Or=function(t){Sl(r,t);var e=kl(r);function r(n){var i;Zo(this,r),i=e.call(this),i._configureProperties(n),i.root=i._stampTemplate(i.__dataHost);var o=[];i.children=o;for(var a=i.root.firstChild;a;a=a.nextSibling)o.push(a),a.__templatizeInstance=LI(i);i.__templatizeOwner&&i.__templatizeOwner.__hideTemplateChildren__&&i._showHideChildren(!0);var s=i.__templatizeOptions;return(n&&s.instanceProps||!s.instanceProps)&&i._enableProperties(),i}return Jo(r,[{key:"_configureProperties",value:function(i){var o=this.__templatizeOptions;if(o.forwardHostProp)for(var a in this.__hostProps)this._setPendingProperty(a,this.__dataHost["_host_"+a]);for(var s in i)this._setPendingProperty(s,i[s])}},{key:"forwardHostProp",value:function(i,o){this._setPendingPropertyOrPath(i,o,!1,!0)&&this.__dataHost._enqueueClient(this)}},{key:"_addEventListenerToNode",value:function(i,o,a){var s=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(i,o,function(u){u.model=s,a(u)});else{var l=this.__dataHost.__dataHost;l&&l._addEventListenerToNode(i,o,a)}}},{key:"_showHideChildren",value:function(i){TF(i,this.children)}},{key:"_setUnmanagedPropertyToNode",value:function(i,o,a){i.__hideTemplateChildren__&&i.nodeType==Node.TEXT_NODE&&o=="textContent"?i.__polymerTextContent__=a:Kp(Qo(r.prototype),"_setUnmanagedPropertyToNode",this).call(this,i,o,a)}},{key:"parentModel",get:function(){var i=this.__parentModel;if(!i){var o;i=this;do i=i.__dataHost.__dataHost;while((o=i.__templatizeOptions)&&!o.parentModel);this.__parentModel=i}return i}},{key:"dispatchEvent",value:function(i){return!0}}]),r}(kce);Or.prototype.__dataHost;Or.prototype.__templatizeOptions;Or.prototype._methodHost;Or.prototype.__templatizeOwner;Or.prototype.__hostProps;var Ece=Dt(Or);function zI(t){var e=t.__dataHost;return e&&e._methodHost||e}function Tce(t,e,r){var n=r.mutableData?Ece:Or;Pr.mixin&&(n=Pr.mixin(n));var i=function(o){Sl(s,o);var a=kl(s);function s(){return Zo(this,s),a.apply(this,arguments)}return Jo(s)}(n);return i.prototype.__templatizeOptions=r,i.prototype._bindTemplate(t),Dce(i,t,e,r),i}function Ace(t,e,r,n){var i=r.forwardHostProp;if(i&&e.hasHostProps){var o=t.localName=="template",a=e.templatizeTemplateClass;if(!a){if(o){var s=r.mutableData?Pce:qI,l=function(v){Sl(b,v);var y=kl(b);function b(){return Zo(this,b),y.apply(this,arguments)}return Jo(b)}(s);a=e.templatizeTemplateClass=l}else{var u=t.constructor,c=function(v){Sl(b,v);var y=kl(b);function b(){return Zo(this,b),y.apply(this,arguments)}return Jo(b)}(u);a=e.templatizeTemplateClass=c}var f=e.hostProps;for(var p in f)a.prototype._addPropertyEffect("_host_"+p,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Rce(p,i)}),a.prototype._createNotifyingProperty("_host_"+p);sc&&n&&jce(e,r,n)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),o)Sce(t,a),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,a.prototype);var d=e.hostProps;for(var m in d)if(m="_host_"+m,m in t){var h=t[m];delete t[m],t.__data[m]=h}}}}function Rce(t,e){return function(n,i,o){e.call(n.__templatizeOwner,i.substring("_host_".length),o[i])}}function Dce(t,e,r,n){var i=r.hostProps||{};for(var o in n.instanceProps){delete i[o];var a=n.notifyInstanceProp;a&&t.prototype._addPropertyEffect(o,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cce(o,a)})}if(n.forwardHostProp&&e.__dataHost)for(var s in i)r.hasHostProps||(r.hasHostProps=!0),t.prototype._addPropertyEffect(s,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ice()})}function Cce(t,e){return function(n,i,o){e.call(n.__templatizeOwner,n,i,o[i])}}function Ice(){return function(e,r,n){e.__dataHost._setPendingPropertyOrPath("_host_"+r,n[r],!0,!0)}}function Pr(t,e,r){if(Je&&!zI(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(r=r||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;var n=e?e.constructor:Or,i=n._parseTemplate(t),o=i.templatizeInstanceClass;o||(o=Tce(t,i,r),i.templatizeInstanceClass=o);var a=zI(t);Ace(t,i,r,a);var s=function(l){Sl(c,l);var u=kl(c);function c(){return Zo(this,c),u.apply(this,arguments)}return Jo(c)}(o);return s.prototype._methodHost=a,s.prototype.__dataHost=t,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=i.hostProps,s=s,s}function jce(t,e,r){var n=r.constructor._properties,i=t.propertyEffects,o=e.instanceProps;for(var a in i)if(!n[a]&&!(o&&o[a]))for(var s=i[a],l=0;l<s.length;l++){var u=s[l].info.part;if(!(u.signature&&u.signature.static)){console.warn("Property '".concat(a,"' used in template but not ")+"declared in 'properties'; attribute will not be observed.");break}}}function Yp(t,e){for(var r;e;)if(r=e.__dataHost?e:e.__templatizeInstance)if(r.__dataHost!=t)e=r.__dataHost;else return r;else e=T(e).parentNode;return null}var HI={templatize:function(e,r){this._templatizerTemplate=e,this.ctor=Pr(e,this,{mutableData:Boolean(r),parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},stamp:function(e){return new this.ctor(e)},modelForElement:function(e){return Yp(this._templatizerTemplate,e)}};var UI=!1;function ea(){if(Ct&&!Ua){if(!UI){UI=!0;var t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}function AF(t){return AF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AF(t)}function Bce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Mce(t,e,r){return e&&VI(t.prototype,e),r&&VI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Lce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&RF(t,e)}function RF(t,e){return RF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},RF(t,e)}function Nce(t){var e=Hce();return function(){var n=Xp(t),i;if(e){var o=Xp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return qce(this,i)}}function qce(t,e){if(e&&(AF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zce(t)}function zce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Xp(t){return Xp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xp(t)}var Uce=Hp(oc(mn(HTMLElement))),Vce=function(t){Lce(r,t);var e=Nce(r);function r(){var n;if(Bce(this,r),n=e.call(this),Je)throw new Error("strictTemplatePolicy: dom-bind not allowed");return n.root=null,n.$=null,n.__children=null,n}return Mce(r,[{key:"attributeChangedCallback",value:function(i,o,a,s){this.mutableData=!0}},{key:"connectedCallback",value:function(){ea()||(this.style.display="none"),this.render()}},{key:"disconnectedCallback",value:function(){this.__removeChildren()}},{key:"__insertChildren",value:function(){T(T(this).parentNode).insertBefore(this.root,this)}},{key:"__removeChildren",value:function(){if(this.__children)for(var i=0;i<this.__children.length;i++)this.root.appendChild(this.__children[i])}},{key:"render",value:function(){var i=this,o;if(!this.__children){if(o=o||this.querySelector("template"),!o){var a=new MutationObserver(function(){if(o=i.querySelector("template"),o)a.disconnect(),i.render();else throw new Error("dom-bind requires a <template> child")});a.observe(this,{childList:!0});return}this.root=this._stampTemplate(o),this.$=this.root.$,this.__children=[];for(var s=this.root.firstChild;s;s=s.nextSibling)this.__children[this.__children.length]=s;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}],[{key:"observedAttributes",get:function(){return["mutable-data"]}}]),r}(Uce);customElements.define("dom-bind",Vce);function DF(t){return DF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DF(t)}function Wce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Gce(t,e,r){return e&&WI(t.prototype,e),r&&WI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function El(){return typeof Reflect!="undefined"&&Reflect.get?El=Reflect.get:El=function(e,r,n){var i=$ce(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},El.apply(this,arguments)}function $ce(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=zn(t),t!==null););return t}function Kce(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&CF(t,e)}function CF(t,e){return CF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},CF(t,e)}function Yce(t){var e=Jce();return function(){var n=zn(t),i;if(e){var o=zn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return Xce(this,i)}}function Xce(t,e){if(e&&(DF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qce(t)}function Qce(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jce(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function zn(t){return zn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zn(t)}var Zce=oc(Mt),GI=function(t){Kce(r,t);var e=Yce(r);function r(){var n;return Wce(this,r),n=e.call(this),n.__instances=[],n.__renderDebouncer=null,n.__itemsIdxToInstIdx={},n.__chunkCount=null,n.__renderStartTime=null,n.__itemsArrayChanged=!1,n.__shouldMeasureChunk=!1,n.__shouldContinueChunking=!1,n.__chunkingId=0,n.__sortFn=null,n.__filterFn=null,n.__observePaths=null,n.__ctor=null,n.__isDetached=!0,n.template=null,n._templateInfo,n}return Gce(r,[{key:"disconnectedCallback",value:function(){El(zn(r.prototype),"disconnectedCallback",this).call(this),this.__isDetached=!0;for(var i=0;i<this.__instances.length;i++)this.__detachInstance(i)}},{key:"connectedCallback",value:function(){if(El(zn(r.prototype),"connectedCallback",this).call(this),ea()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;for(var i=T(T(this).parentNode),o=0;o<this.__instances.length;o++)this.__attachInstance(o,i)}}},{key:"__ensureTemplatized",value:function(){var i=this;if(!this.__ctor){var o=this,a=this.template=o._templateInfo?o:this.querySelector("template");if(!a){var s=new MutationObserver(function(){if(i.querySelector("template"))s.disconnect(),i.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}var l={};l[this.as]=!0,l[this.indexAs]=!0,l[this.itemsIndexAs]=!0,this.__ctor=Pr(a,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:l,forwardHostProp:function(c,f){for(var p=this.__instances,d=0,m;d<p.length&&(m=p[d]);d++)m.forwardHostProp(c,f)},notifyInstanceProp:function(c,f,p){if(hc(this.as,f)){var d=c[this.itemsIndexAs];f==this.as&&(this.items[d]=p);var m=It(this.as,"".concat(JSCompiler_renameProperty("items",this),".").concat(d),f);this.notifyPath(m,p)}}})}return!0}},{key:"__getMethodHost",value:function(){return this.__dataHost._methodHost||this.__dataHost}},{key:"__functionFromPropertyValue",value:function(i){if(typeof i=="string"){var o=i,a=this.__getMethodHost();return function(){return a[o].apply(a,arguments)}}return i}},{key:"__sortChanged",value:function(i){this.__sortFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}},{key:"__filterChanged",value:function(i){this.__filterFn=this.__functionFromPropertyValue(i),this.items&&this.__debounceRender(this.__render)}},{key:"__computeFrameTime",value:function(i){return Math.ceil(1e3/i)}},{key:"__observeChanged",value:function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}},{key:"__handleObservedPaths",value:function(i){if(this.__sortFn||this.__filterFn){if(!i)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var o=this.__observePaths,a=0;a<o.length;a++)i.indexOf(o[a])===0&&this.__debounceRender(this.__render,this.delay)}}},{key:"__itemsChanged",value:function(i){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(i.path,i.value)||(i.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}},{key:"__debounceRender",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.__renderDebouncer=mt.debounce(this.__renderDebouncer,o>0?lr.after(o):pe,i.bind(this)),wr(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),Vt()}},{key:"__render",value:function(){var i=this;if(!!this.__ensureTemplatized()){var o=this.items||[],a=this.__sortAndFilterItems(o),s=this.__calculateLimit(a.length);this.__updateInstances(o,s,a),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){return i.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Wa||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}},{key:"__sortAndFilterItems",value:function(i){for(var o=this,a=new Array(i.length),s=0;s<i.length;s++)a[s]=s;return this.__filterFn&&(a=a.filter(function(l,u,c){return o.__filterFn(i[l],u,c)})),this.__sortFn&&a.sort(function(l,u){return o.__sortFn(i[l],i[u])}),a}},{key:"__calculateLimit",value:function(i){var o=i,a=this.__instances.length;if(this.initialCount){var s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(o=Math.min(i,this.initialCount),s=Math.max(o-a,0),this.__chunkCount=s||1):(s=Math.min(Math.max(i-a,0),this.__chunkCount),o=Math.min(a+s,i)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=o<i,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,o}},{key:"__continueChunking",value:function(){if(this.__shouldMeasureChunk){var i=performance.now()-this.__renderStartTime,o=this._targetFrameTime/i;this.__chunkCount=Math.round(this.__chunkCount*o)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}},{key:"__updateInstances",value:function(i,o,a){var s=this.__itemsIdxToInstIdx={},l;for(l=0;l<o;l++){var u=this.__instances[l],c=a[l],f=i[c];s[c]=l,u?(u._setPendingProperty(this.as,f),u._setPendingProperty(this.indexAs,l),u._setPendingProperty(this.itemsIndexAs,c),u._flushProperties()):this.__insertInstance(f,l,c)}for(var p=this.__instances.length-1;p>=l;p--)this.__detachAndRemoveInstance(p)}},{key:"__detachInstance",value:function(i){for(var o=this.__instances[i],a=T(o.root),s=0;s<o.children.length;s++){var l=o.children[s];a.appendChild(l)}return o}},{key:"__attachInstance",value:function(i,o){var a=this.__instances[i];o.insertBefore(a.root,this)}},{key:"__detachAndRemoveInstance",value:function(i){this.__detachInstance(i),this.__instances.splice(i,1)}},{key:"__stampInstance",value:function(i,o,a){var s={};return s[this.as]=i,s[this.indexAs]=o,s[this.itemsIndexAs]=a,new this.__ctor(s)}},{key:"__insertInstance",value:function(i,o,a){var s=this.__stampInstance(i,o,a),l=this.__instances[o+1],u=l?l.children[0]:this;return T(T(this).parentNode).insertBefore(s.root,u),this.__instances[o]=s,s}},{key:"_showHideChildren",value:function(i){for(var o=0;o<this.__instances.length;o++)this.__instances[o]._showHideChildren(i)}},{key:"__handleItemPath",value:function(i,o){var a=i.slice(6),s=a.indexOf("."),l=s<0?a:a.substring(0,s);if(l==parseInt(l,10)){var u=s<0?"":a.substring(s+1);this.__handleObservedPaths(u);var c=this.__itemsIdxToInstIdx[l],f=this.__instances[c];if(f){var p=this.as+(u?"."+u:"");f._setPendingPropertyOrPath(p,o,!1,!0),f._flushProperties()}return!0}}},{key:"itemForElement",value:function(i){var o=this.modelForElement(i);return o&&o[this.as]}},{key:"indexForElement",value:function(i){var o=this.modelForElement(i);return o&&o[this.indexAs]}},{key:"modelForElement",value:function(i){return Yp(this.template,i)}}],[{key:"is",get:function(){return"dom-repeat"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Wa,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}},{key:"observers",get:function(){return["__itemsChanged(items.*)"]}}]),r}(Zce);customElements.define(GI.is,GI);function IF(t){return IF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IF(t)}function jF(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $I(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function BF(t,e,r){return e&&$I(t.prototype,e),r&&$I(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Tl(){return typeof Reflect!="undefined"&&Reflect.get?Tl=Reflect.get:Tl=function(e,r,n){var i=efe(e,r);if(!!i){var o=Object.getOwnPropertyDescriptor(i,r);return o.get?o.get.call(arguments.length<3?e:n):o.value}},Tl.apply(this,arguments)}function efe(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Hn(t),t!==null););return t}function MF(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LF(t,e)}function LF(t,e){return LF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},LF(t,e)}function NF(t){var e=nfe();return function(){var n=Hn(t),i;if(e){var o=Hn(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return tfe(this,i)}}function tfe(t,e){if(e&&(IF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rfe(t)}function rfe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Hn(t){return Hn=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Hn(t)}var KI=function(t){MF(r,t);var e=NF(r);function r(){var n;return jF(this,r),n=e.call(this),n.__renderDebouncer=null,n._lastIf=!1,n.__hideTemplateChildren__=!1,n.__template,n._templateInfo,n}return BF(r,[{key:"__debounceRender",value:function(){var i=this;this.__renderDebouncer=mt.debounce(this.__renderDebouncer,pe,function(){return i.__render()}),wr(this.__renderDebouncer)}},{key:"disconnectedCallback",value:function(){Tl(Hn(r.prototype),"disconnectedCallback",this).call(this);var i=T(this).parentNode;(!i||i.nodeType==Node.DOCUMENT_FRAGMENT_NODE&&!T(i).host)&&this.__teardownInstance()}},{key:"connectedCallback",value:function(){Tl(Hn(r.prototype),"connectedCallback",this).call(this),ea()||(this.style.display="none"),this.if&&this.__debounceRender()}},{key:"__ensureTemplate",value:function(){var i=this;if(!this.__template){var o=this,a=o._templateInfo?o:T(o).querySelector("template");if(!a){var s=new MutationObserver(function(){if(T(i).querySelector("template"))s.disconnect(),i.__render();else throw new Error("dom-if requires a <template> child")});return s.observe(this,{childList:!0}),!1}this.__template=a}return!0}},{key:"__ensureInstance",value:function(){var i=T(this).parentNode;if(this.__hasInstance()){var o=this.__getInstanceNodes();if(o&&o.length){var a=T(this).previousSibling;if(a!==o[o.length-1])for(var s=0,l;s<o.length&&(l=o[s]);s++)T(i).insertBefore(l,this)}}else{if(!i||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(i)}return!0}},{key:"render",value:function(){Vt()}},{key:"__render",value:function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren(),(!Wa||this.notifyDomChange)&&this.if!=this._lastIf&&(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}},{key:"__hasInstance",value:function(){}},{key:"__getInstanceNodes",value:function(){}},{key:"__createAndInsertInstance",value:function(i){}},{key:"__teardownInstance",value:function(){}},{key:"_showHideChildren",value:function(){}}],[{key:"is",get:function(){return"dom-if"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"},notifyDomChange:{type:Boolean}}}}]),r}(Mt),ife=function(t){MF(r,t);var e=NF(r);function r(){var n;return jF(this,r),n=e.call(this),n.__instance=null,n.__syncInfo=null,n}return BF(r,[{key:"__hasInstance",value:function(){return Boolean(this.__instance)}},{key:"__getInstanceNodes",value:function(){return this.__instance.templateInfo.childNodes}},{key:"__createAndInsertInstance",value:function(i){var o=this,a=this.__dataHost||this;if(Je&&!this.__dataHost)throw new Error("strictTemplatePolicy: template owner not trusted");var s=a._bindTemplate(this.__template,!0);s.runEffects=function(l,u,c){var f=o.__syncInfo;if(o.if)f&&(o.__syncInfo=null,o._showHideChildren(),u=Object.assign(f.changedProps,u)),l(u,c);else if(o.__instance)if(f||(f=o.__syncInfo={runEffects:l,changedProps:{}}),c)for(var p in u){var d=Ze(p);f.changedProps[d]=o.__dataHost[d]}else Object.assign(f.changedProps,u)},this.__instance=a._stampTemplate(this.__template,s),T(i).insertBefore(this.__instance,this)}},{key:"__syncHostProperties",value:function(){var i=this.__syncInfo;i&&(this.__syncInfo=null,i.runEffects(i.changedProps,!1))}},{key:"__teardownInstance",value:function(){var i=this.__dataHost||this;this.__instance&&(i._removeBoundDom(this.__instance),this.__instance=null,this.__syncInfo=null)}},{key:"_showHideChildren",value:function(){var i=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==i&&(this.__instance.__hidden=i,TF(i,this.__instance.templateInfo.childNodes)),i||this.__syncHostProperties()}}]),r}(KI),ofe=function(t){MF(r,t);var e=NF(r);function r(){var n;return jF(this,r),n=e.call(this),n.__ctor=null,n.__instance=null,n.__invalidProps=null,n}return BF(r,[{key:"__hasInstance",value:function(){return Boolean(this.__instance)}},{key:"__getInstanceNodes",value:function(){return this.__instance.children}},{key:"__createAndInsertInstance",value:function(i){this.__ctor||(this.__ctor=Pr(this.__template,this,{mutableData:!0,forwardHostProp:function(a,s){this.__instance&&(this.if?this.__instance.forwardHostProp(a,s):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Ze(a)]=!0))}})),this.__instance=new this.__ctor,T(i).insertBefore(this.__instance.root,this)}},{key:"__teardownInstance",value:function(){if(this.__instance){var i=this.__instance.children;if(i&&i.length){var o=T(i[0]).parentNode;if(o){o=T(o);for(var a=0,s;a<i.length&&(s=i[a]);a++)o.removeChild(s)}}this.__invalidProps=null,this.__instance=null}}},{key:"__syncHostProperties",value:function(){var i=this.__invalidProps;if(i){this.__invalidProps=null;for(var o in i)this.__instance._setPendingProperty(o,this.__dataHost[o]);this.__instance._flushProperties()}}},{key:"_showHideChildren",value:function(){var i=this.__hideTemplateChildren__||!this.if;this.__instance&&Boolean(this.__instance.__hidden)!==i&&(this.__instance.__hidden=i,this.__instance._showHideChildren(i)),i||this.__syncHostProperties()}}]),r}(KI),YI=uc?ife:ofe;customElements.define(YI.is,YI);function qF(t){return qF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qF(t)}function XI(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function QI(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function JI(t,e,r){return e&&QI(t.prototype,e),r&&QI(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZI(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zF(t,e)}function zF(t,e){return zF=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},zF(t,e)}function e2(t){var e=lfe();return function(){var n=Qp(t),i;if(e){var o=Qp(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return afe(this,i)}}function afe(t,e){if(e&&(qF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sfe(t)}function sfe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lfe(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function Qp(t){return Qp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Qp(t)}var ufe=ne(function(t){var e=fr(t),r=function(n){ZI(o,n);var i=e2(o);function o(){var a;return XI(this,o),a=i.call(this),a.__lastItems=null,a.__lastMulti=null,a.__selectedMap=null,a}return JI(o,[{key:"__updateSelection",value:function(s,l){var u=l.path;if(u==JSCompiler_renameProperty("items",this)){var c=l.base||[],f=this.__lastItems,p=this.__lastMulti;if(s!==p&&this.clearSelection(),f){var d=Up(c,f);this.__applySplices(d)}this.__lastItems=c,this.__lastMulti=s}else if(l.path=="".concat(JSCompiler_renameProperty("items",this),".splices"))this.__applySplices(l.value.indexSplices);else{var m=u.slice("".concat(JSCompiler_renameProperty("items",this),".").length),h=parseInt(m,10);m.indexOf(".")<0&&m==h&&this.__deselectChangedIdx(h)}}},{key:"__applySplices",value:function(s){for(var l=this,u=this.__selectedMap,c=function(m){var h=s[m];u.forEach(function(b,_){b<h.index||(b>=h.index+h.removed.length?u.set(_,b+h.addedCount-h.removed.length):u.set(_,-1))});for(var v=0;v<h.addedCount;v++){var y=h.index+v;u.has(l.items[y])&&u.set(l.items[y],y)}},f=0;f<s.length;f++)c(f);this.__updateLinks();var p=0;u.forEach(function(d,m){d<0?(l.multi?l.splice(JSCompiler_renameProperty("selected",l),p,1):l.selected=l.selectedItem=null,u.delete(m)):p++})}},{key:"__updateLinks",value:function(){var s=this;if(this.__dataLinkedPaths={},this.multi){var l=0;this.__selectedMap.forEach(function(u){u>=0&&s.linkPaths("".concat(JSCompiler_renameProperty("items",s),".").concat(u),"".concat(JSCompiler_renameProperty("selected",s),".").concat(l++))})}else this.__selectedMap.forEach(function(u){s.linkPaths(JSCompiler_renameProperty("selected",s),"".concat(JSCompiler_renameProperty("items",s),".").concat(u)),s.linkPaths(JSCompiler_renameProperty("selectedItem",s),"".concat(JSCompiler_renameProperty("items",s),".").concat(u))})}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(s){return this.__selectedMap.has(s)}},{key:"isIndexSelected",value:function(s){return this.isSelected(this.items[s])}},{key:"__deselectChangedIdx",value:function(s){var l=this,u=this.__selectedIndexForItemIndex(s);if(u>=0){var c=0;this.__selectedMap.forEach(function(f,p){u==c++&&l.deselect(p)})}}},{key:"__selectedIndexForItemIndex",value:function(s){var l=this.__dataLinkedPaths["".concat(JSCompiler_renameProperty("items",this),".").concat(s)];if(l)return parseInt(l.slice("".concat(JSCompiler_renameProperty("selected",this),".").length),10)}},{key:"deselect",value:function(s){var l=this.__selectedMap.get(s);if(l>=0){this.__selectedMap.delete(s);var u;this.multi&&(u=this.__selectedIndexForItemIndex(l)),this.__updateLinks(),this.multi?this.splice(JSCompiler_renameProperty("selected",this),u,1):this.selected=this.selectedItem=null}}},{key:"deselectIndex",value:function(s){this.deselect(this.items[s])}},{key:"select",value:function(s){this.selectIndex(this.items.indexOf(s))}},{key:"selectIndex",value:function(s){var l=this.items[s];this.isSelected(l)?this.toggle&&this.deselectIndex(s):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(l,s),this.__updateLinks(),this.multi?this.push(JSCompiler_renameProperty("selected",this),l):this.selected=this.selectedItem=l)}}],[{key:"properties",get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__updateSelection(multi, items.*)"]}}]),o}(e);return r});var cfe=ufe(Mt),t2=function(t){ZI(r,t);var e=e2(r);function r(){return XI(this,r),e.apply(this,arguments)}return JI(r,null,[{key:"is",get:function(){return"array-selector"}},{key:"template",get:function(){return null}}]),r}(cfe);customElements.define(t2.is,t2);"use strict";var Jp=new Ut;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(e,r,n){},prepareTemplateDom:function(e,r){},prepareTemplateStyles:function(e,r,n){},styleSubtree:function(e,r){Jp.processStyles(),ml(e,r)},styleElement:function(e){Jp.processStyles()},styleDocument:function(e){Jp.processStyles(),ml(document.body,e)},getComputedStyleValue:function(e,r){return Rp(e,r)},flushCustomStyles:function(){},nativeCss:Uo,nativeShadow:Mn,cssBuild:_r,disableRuntime:Ap});window.ShadyCSS.CustomStyleInterface=Jp;function HF(t){return HF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HF(t)}function ffe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function pfe(t,e,r){return e&&r2(t.prototype,e),r&&r2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function dfe(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Al(t,e)}function hfe(t){var e=i2();return function(){var n=Rl(t),i;if(e){var o=Rl(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return mfe(this,i)}}function mfe(t,e){if(e&&(HF(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n2(t)}function n2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function UF(t){var e=typeof Map=="function"?new Map:void 0;return UF=function(n){if(n===null||!yfe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e!="undefined"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Zp(n,arguments,Rl(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Al(i,n)},UF(t)}function Zp(t,e,r){return i2()?Zp=Reflect.construct:Zp=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&Al(u,a.prototype),u},Zp.apply(null,arguments)}function i2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function yfe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Al(t,e){return Al=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Al(t,e)}function Rl(t){return Rl=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(t)}var o2="include",vfe=window.ShadyCSS.CustomStyleInterface,gfe=function(t){dfe(r,t);var e=hfe(r);function r(){var n;return ffe(this,r),n=e.call(this),n._style=null,vfe.addCustomStyle(n2(n)),n}return pfe(r,[{key:"getStyle",value:function(){if(this._style)return this._style;var i=this.querySelector("style");if(!i)return null;this._style=i;var o=i.getAttribute(o2);return o&&(i.removeAttribute(o2),i.textContent=CE(o)+i.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}]),r}(UF(HTMLElement));window.customElements.define("custom-style",gfe);var a2;(function(){a2=Dt._mutablePropertyChange})();var s2={properties:{mutableData:Boolean},_shouldPropertyChange:function(e,r,n){return a2(this,e,r,n,this.mutableData)}};var Oje=$p(HTMLElement).prototype;var l2={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},bfe={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},u2={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},_fe=/[a-z0-9*]/,wfe=/U\+/,Ffe=/^arrow/,xfe=/^space(bar)?/,Ofe=/^escape$/;function c2(t,e){var r="";if(t){var n=t.toLowerCase();n===" "||xfe.test(n)?r="space":Ofe.test(n)?r="esc":n.length==1?(!e||_fe.test(n))&&(r=n):Ffe.test(n)?r=n.replace("arrow",""):n=="multiply"?r="*":r=n}return r}function Pfe(t){var e="";return t&&(t in l2?e=l2[t]:wfe.test(t)?(t=parseInt(t.replace("U+","0x"),16),e=String.fromCharCode(t).toLowerCase()):e=t.toLowerCase()),e}function Sfe(t){var e="";return Number(t)&&(t>=65&&t<=90?e=String.fromCharCode(32+t):t>=112&&t<=123?e="f"+(t-112+1):t>=48&&t<=57?e=String(t-48):t>=96&&t<=105?e=String(t-96):e=bfe[t]),e}function kfe(t,e){return t.key?c2(t.key,e):t.detail&&t.detail.key?c2(t.detail.key,e):Pfe(t.keyIdentifier)||Sfe(t.keyCode)||""}function f2(t,e){var r=kfe(e,t.hasModifiers);return r===t.key&&(!t.hasModifiers||!!e.shiftKey==!!t.shiftKey&&!!e.ctrlKey==!!t.ctrlKey&&!!e.altKey==!!t.altKey&&!!e.metaKey==!!t.metaKey)}function Efe(t){return t.length===1?{combo:t,key:t,event:"keydown"}:t.split("+").reduce(function(e,r){var n=r.split(":"),i=n[0],o=n[1];return i in u2?(e[u2[i]]=!0,e.hasModifiers=!0):(e.key=i,e.event=o||"keydown"),e},{combo:t.split(":").shift()})}function p2(t){return t.trim().split(" ").map(function(e){return Efe(e)})}var d2={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,r){this._imperativeKeyBindings[e]=r,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,r){for(var n=p2(r),i=0;i<n.length;++i)if(f2(n[i],e))return!0;return!1},_collectKeyBindings:function(){var e=this.behaviors.map(function(r){return r.keyBindings});return e.indexOf(this.keyBindings)===-1&&e.push(this.keyBindings),e},_prepKeyBindings:function(){this._keyBindings={},this._collectKeyBindings().forEach(function(n){for(var i in n)this._addKeyBinding(i,n[i])},this);for(var e in this._imperativeKeyBindings)this._addKeyBinding(e,this._imperativeKeyBindings[e]);for(var r in this._keyBindings)this._keyBindings[r].sort(function(n,i){var o=n[0].hasModifiers,a=i[0].hasModifiers;return o===a?0:o?-1:1})},_addKeyBinding:function(e,r){p2(e).forEach(function(n){this._keyBindings[n.event]=this._keyBindings[n.event]||[],this._keyBindings[n.event].push([n,r])},this)},_resetKeyEventListeners:function(){this._unlistenKeyEventListeners(),this.isAttached&&this._listenKeyEventListeners()},_listenKeyEventListeners:function(){!this.keyEventTarget||Object.keys(this._keyBindings).forEach(function(e){var r=this._keyBindings[e],n=this._onKeyBindingEvent.bind(this,r);this._boundKeyHandlers.push([this.keyEventTarget,e,n]),this.keyEventTarget.addEventListener(e,n)},this)},_unlistenKeyEventListeners:function(){for(var e,r,n,i;this._boundKeyHandlers.length;)e=this._boundKeyHandlers.pop(),r=e[0],n=e[1],i=e[2],r.removeEventListener(n,i)},_onKeyBindingEvent:function(e,r){if(this.stopKeyboardEventPropagation&&r.stopPropagation(),!r.defaultPrevented)for(var n=0;n<e.length;n++){var i=e[n][0],o=e[n][1];if(f2(i,r)&&(this._triggerKeyHandler(i,o,r),r.defaultPrevented))return}},_triggerKeyHandler:function(e,r,n){var i=Object.create(e);i.keyboardEvent=n;var o=new CustomEvent(e.event,{detail:i,cancelable:!0});this[r].call(this,o),o.defaultPrevented&&n.preventDefault()}};var ed=new Set,h2={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[],this._boundNotifyResize=this.notifyResize.bind(this),this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},attached:function(){this._requestResizeNotifications()},detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(ed.delete(this),window.removeEventListener("resize",this._boundNotifyResize)),this._parentResizable=null},notifyResize:function(){!this.isAttached||(this._interestedResizables.forEach(function(e){this.resizerShouldNotify(e)&&this._notifyDescendant(e)},this),this._fireResize())},assignParentResizable:function(e){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this),this._parentResizable=e,e&&e._interestedResizables.indexOf(this)===-1&&(e._interestedResizables.push(this),e._subscribeIronResize(this))},stopResizeNotificationsFor:function(e){var r=this._interestedResizables.indexOf(e);r>-1&&(this._interestedResizables.splice(r,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){if(this._notifyingDescendant){e.stopPropagation();return}Ua||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var r=J(e).rootTarget;r!==this&&(r.assignParentResizable(this),this._notifyDescendant(r),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){!this.isAttached||(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(!!this.isAttached)if(document.readyState==="loading"){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function r(){document.removeEventListener("readystatechange",r),e()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(r){r!==this&&r._findParent()},this):(ed.forEach(function(r){r!==this&&r._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?ed.delete(this):ed.add(this)}};function VF(t){return VF=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VF(t)}var m2={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(e,r){var n;if(this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null),!!r)if(e==="document")this.scrollTarget=this._doc;else if(typeof e=="string"){var i=this.domHost;this.scrollTarget=i&&i.$?i.$[e]:J(this.ownerDocument).querySelector("#"+e)}else this._isValidScrollTarget()&&(this._oldScrollTarget=e,this._toggleScrollListener(this._shouldHaveListener,e))},_scrollHandler:function(){},get _defaultScrollTarget(){return this._doc},get _doc(){return this.ownerDocument.documentElement},get _scrollTop(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageYOffset:this.scrollTarget.scrollTop:0},get _scrollLeft(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.pageXOffset:this.scrollTarget.scrollLeft:0},set _scrollTop(t){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=t)},set _scrollLeft(t){this.scrollTarget===this._doc?window.scrollTo(t,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=t)},scroll:function(e,r){var n;VF(e)==="object"?(n=e.left,r=e.top):n=e,n=n||0,r=r||0,this.scrollTarget===this._doc?window.scrollTo(n,r):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=n,this.scrollTarget.scrollTop=r)},get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},_toggleScrollListener:function(e,r){var n=r===this._doc?window:r;e?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),n.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(n.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},toggleScrollListener:function(e){this._shouldHaveListener=e,this._toggleScrollListener(e,this.scrollTarget)}};var y2;function Tfe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var v2=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Afe=v2&&v2[1]>=8,g2=3,b2="-10000px",Dl=-100;We({_template:g(y2||(y2=Tfe(['\n    <style>\n      :host {\n        display: block;\n      }\n\n      @media only screen and (-webkit-max-device-pixel-ratio: 1) {\n        :host {\n          will-change: transform;\n        }\n      }\n\n      #items {\n        @apply --iron-list-items-container;\n        position: relative;\n      }\n\n      :host(:not([grid])) #items > ::slotted(*) {\n        width: 100%;\n      }\n\n      #items > ::slotted(*) {\n        box-sizing: border-box;\n        margin: 0;\n        position: absolute;\n        top: 0;\n        will-change: transform;\n      }\n    </style>\n\n    <array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}"></array-selector>\n\n    <div id="items">\n      <slot></slot>\n    </div>\n']))),is:"iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)","_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[HI,h2,m2,s2],_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_focusedItem:null,_focusedVirtualIndex:-1,_focusedPhysicalIndex:-1,_offscreenFocusedItem:null,_focusBackfillItem:null,_itemsPerRow:1,_itemWidth:0,_rowHeight:0,_templateCost:0,_parentModel:!0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){var t=this.grid?this._physicalRows*this._rowHeight:this._physicalSize;return t-this._viewportHeight},get _itemsParent(){return J(J(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var t=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,t-this._physicalCount)},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this.grid&&(t=t-t%this._itemsPerRow),this._virtualStartVal=t},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(t){t=t%this._physicalCount,t<0&&(t=this._physicalCount+t),this.grid&&(t=t-t%this._itemsPerRow),this._physicalStartVal=t},get _physicalStart(){return this._physicalStartVal||0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(t){this._physicalCountVal=t},get _physicalCount(){return this._physicalCountVal||0},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){var t=this._firstVisibleIndexVal;if(t==null){var e=this._physicalTop+this._scrollOffset;t=this._iterateItems(function(r,n){if(e+=this._getPhysicalSizeIncrement(r),e>this._scrollPosition)return this.grid?n-n%this._itemsPerRow:n;if(this.grid&&this._virtualCount-1===n)return n-n%this._itemsPerRow})||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){var t=this._lastVisibleIndexVal;if(t==null){if(this.grid)t=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var e=this._physicalTop+this._scrollOffset;this._iterateItems(function(r,n){e<this._scrollBottom&&(t=n),e+=this._getPhysicalSizeIncrement(r)})}this._lastVisibleIndexVal=t}return t},get _defaultScrollTarget(){return this},get _virtualRowCount(){return Math.ceil(this._virtualCount/this._itemsPerRow)},get _estRowsInView(){return Math.ceil(this._viewportHeight/this._rowHeight)},get _physicalRows(){return Math.ceil(this._physicalCount/this._itemsPerRow)},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},ready:function(){this.addEventListener("focus",this._didFocus.bind(this),!0)},attached:function(){this._debounce("_render",this._render,Oi),this.listen(this,"iron-resize","_resizeHandler"),this.listen(this,"keydown","_keydownHandler")},detached:function(){this.unlisten(this,"iron-resize","_resizeHandler"),this.unlisten(this,"keydown","_keydownHandler")},_setOverflow:function(e){this.style.webkitOverflowScrolling=e===this?"touch":"",this.style.overflowY=e===this?"auto":"",this._lastVisibleIndexVal=null,this._firstVisibleIndexVal=null,this._debounce("_render",this._render,Oi)},updateViewportBoundaries:function(){var e=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean(e.direction==="rtl"),this._viewportWidth=this.$.items.offsetWidth,this._viewportHeight=this._scrollTargetHeight,this.grid&&this._updateGridMetrics()},_scrollHandler:function(){var e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),r=e-this._scrollPosition,n=r>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(r)>this._physicalSize&&this._physicalSize>0){r=r-this._scrollOffset;var i=Math.round(r/this._physicalAverage)*this._itemsPerRow;this._virtualStart=this._virtualStart+i,this._physicalStart=this._physicalStart+i,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){var o=this._getReusables(n);n?(this._physicalTop=o.physicalTop,this._virtualStart=this._virtualStart+o.indexes.length,this._physicalStart=this._physicalStart+o.indexes.length):(this._virtualStart=this._virtualStart-o.indexes.length,this._physicalStart=this._physicalStart-o.indexes.length),this._update(o.indexes,n?null:o.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),pe)}},_getReusables:function(e){var r,n,i,o,a=[],s=this._hiddenContentSize*this._ratio,l=this._virtualStart,u=this._virtualEnd,c=this._physicalCount,f=this._physicalTop+this._scrollOffset,p=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,m=this._scrollBottom;for(e?(r=this._physicalStart,n=this._physicalEnd,i=d-f):(r=this._physicalEnd,n=this._physicalStart,i=p-m);o=this._getPhysicalSizeIncrement(r),i=i-o,!(a.length>=c||i<=s);)if(e){if(u+a.length+1>=this._virtualCount||f+o>=d-this._scrollOffset)break;a.push(r),f=f+o,r=(r+1)%c}else{if(l-a.length<=0||f+this._physicalSize-o<=m)break;a.push(r),f=f-o,r=r===0?c-1:r-1}return{indexes:a,physicalTop:f-this._scrollOffset}},_update:function(e,r){if(!(e&&e.length===0||this._physicalCount===0)){if(this._manageFocus(),this._assignModels(e),this._updateMetrics(e),r)for(;r.length;){var n=r.pop();this._physicalTop-=this._getPhysicalSizeIncrement(n)}this._positionItems(),this._updateScrollerSize()}},_createPool:function(e){this._ensureTemplatized();var r,n,i=new Array(e);for(r=0;r<e;r++)n=this.stamp(null),i[r]=n.root.querySelector("*"),this._itemsParent.appendChild(n.root);return i},_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded:function(e){var r=this._clamp(this._physicalCount+e,g2,this._virtualCount-this._virtualStart);if(r=this._convertIndexToCompleteRow(r),this.grid){var n=r%this._itemsPerRow;n&&r-n<=this._physicalCount&&(r+=this._itemsPerRow),r-=n}var i=r-this._physicalCount,o=Math.round(this._physicalCount*.5);if(!(i<0)){if(i>0){var a=window.performance.now();[].push.apply(this._physicalItems,this._createPool(i));for(var s=0;s<i;s++)this._physicalSizes.push(0);this._physicalCount=this._physicalCount+i,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart=this._physicalStart+i),this._update(),this._templateCost=(window.performance.now()-a)/i,o=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||o===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,o)),ME):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,o),pe))}},_render:function(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){var e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart=this._virtualStart+e.indexes.length,this._physicalStart=this._physicalStart+e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(g2))},_ensureTemplatized:function(){if(!this.ctor){this._userTemplate=this.queryEffectiveChildren("template"),this._userTemplate||console.warn("iron-list requires a template to be provided in light-dom");var e={};e.__key__=!0,e[this.as]=!0,e[this.indexAs]=!0,e[this.selectedAs]=!0,e.tabIndex=!0,this._instanceProps=e,this.templatize(this._userTemplate,this.mutableData)}},_gridChanged:function(e,r){typeof r!="undefined"&&(this.notifyResize(),Vt(),e&&this._updateGridMetrics())},_itemsChanged:function(e){if(e.path==="items")this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._removeFocusedItem(),this._debounce("_render",this._render,Oi);else if(e.path==="items.splices"){this._adjustVirtualIndex(e.value.indexSplices),this._virtualCount=this.items?this.items.length:0;var r=e.value.indexSplices.some(function(o){return o.addedCount>0||o.removed.length>0});if(r){var n=this._getActiveElement();this.contains(n)&&n.blur()}var i=e.value.indexSplices.some(function(o){return o.index+o.addedCount>=this._virtualStart&&o.index<=this._virtualEnd},this);(!this._isClientFull()||i)&&this._debounce("_render",this._render,Oi)}else e.path!=="items.length"&&this._forwardItemPath(e.path,e.value)},_forwardItemPath:function(e,r){e=e.slice(6);var n=e.indexOf(".");n===-1&&(n=e.length);var i,o,a,s=this.modelForElement(this._offscreenFocusedItem),l=parseInt(e.substring(0,n),10);i=this._isIndexRendered(l),i?(o=this._getPhysicalIndex(l),a=this.modelForElement(this._physicalItems[o])):s&&(a=s),!(!a||a[this.indexAs]!==l)&&(e=e.substring(n+1),e=this.as+(e?"."+e:""),a._setPendingPropertyOrPath(e,r,!1,!0),a._flushProperties&&a._flushProperties(),i&&(this._updateMetrics([o]),this._positionItems(),this._updateScrollerSize()))},_adjustVirtualIndex:function(e){e.forEach(function(r){if(r.removed.forEach(this._removeItem,this),r.index<this._virtualStart){var n=Math.max(r.addedCount-r.removed.length,r.index-this._virtualStart);this._virtualStart=this._virtualStart+n,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex=this._focusedVirtualIndex+n)}},this)},_removeItem:function(e){this.$.selector.deselect(e),this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===e&&this._removeFocusedItem()},_iterateItems:function(e,r){var n,i,o,a;if(arguments.length===2&&r){for(a=0;a<r.length;a++)if(n=r[a],i=this._computeVidx(n),(o=e.call(this,n,i))!=null)return o}else{for(n=this._physicalStart,i=this._virtualStart;n<this._physicalCount;n++,i++)if((o=e.call(this,n,i))!=null)return o;for(n=0;n<this._physicalStart;n++,i++)if((o=e.call(this,n,i))!=null)return o}},_computeVidx:function(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_assignModels:function(e){this._iterateItems(function(r,n){var i=this._physicalItems[r],o=this.items&&this.items[n];if(o!=null){var a=this.modelForElement(i);a.__key__=null,this._forwardProperty(a,this.as,o),this._forwardProperty(a,this.selectedAs,this.$.selector.isSelected(o)),this._forwardProperty(a,this.indexAs,n),this._forwardProperty(a,"tabIndex",this._focusedVirtualIndex===n?0:-1),this._physicalIndexForKey[a.__key__]=r,a._flushProperties&&a._flushProperties(!0),i.removeAttribute("hidden")}else i.setAttribute("hidden","")},e)},_updateMetrics:function(e){Vt();var r=0,n=0,i=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems(function(a,s){n+=this._physicalSizes[a],this._physicalSizes[a]=this._physicalItems[a].offsetHeight,r+=this._physicalSizes[a],this._physicalAverageCount+=this._physicalSizes[a]?1:0},e),this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(n=this._itemsPerRow===1?n:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+r-n,this._itemsPerRow=1),this._physicalAverageCount!==i&&(this._physicalAverage=Math.round((o*i+r)/this._physicalAverageCount))},_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200,this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200,this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},_positionItems:function(){this._adjustScrollPosition();var e=this._physicalTop;if(this.grid){var r=this._itemsPerRow*this._itemWidth,n=(this._viewportWidth-r)/2;this._iterateItems(function(o,a){var s=a%this._itemsPerRow,l=Math.floor(s*this._itemWidth+n);this._isRTL&&(l=l*-1),this.translate3d(l+"px",e+"px",0,this._physicalItems[o]),this._shouldRenderNextRow(a)&&(e+=this._rowHeight)})}else{var i=[];this._iterateItems(function(o,a){var s=this._physicalItems[o];this.translate3d(0,e+"px",0,s),e+=this._physicalSizes[o];var l=s.id;l&&i.push(l)}),i.length&&this.setAttribute("aria-owns",i.join(" "))}},_getPhysicalSizeIncrement:function(e){return this.grid?this._computeVidx(e)%this._itemsPerRow!=this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[e]},_shouldRenderNextRow:function(e){return e%this._itemsPerRow==this._itemsPerRow-1},_adjustScrollPosition:function(){var e=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(e!==0){this._physicalTop=this._physicalTop-e;var r=this._scrollPosition;!Afe&&r>0&&this._resetScrollPosition(r-e)}},_resetScrollPosition:function(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize:function(e){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage,e=e||this._scrollHeight===0,e=e||this._scrollPosition>=this._estScrollHeight-this._physicalSize,e=e||this.grid&&this.$.items.style.height<this._estScrollHeight,(e||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=this._estScrollHeight+"px",this._scrollHeight=this._estScrollHeight)},scrollToItem:function(e){return this.scrollToIndex(this.items.indexOf(e))},scrollToIndex:function(e){if(!(typeof e!="number"||e<0||e>this.items.length-1)&&(Vt(),this._physicalCount!==0)){e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=this.grid?e-this._itemsPerRow*2:e-1),this._manageFocus(),this._assignModels(),this._updateMetrics(),this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var r=this._physicalStart,n=this._virtualStart,i=0,o=this._hiddenContentSize;n<e&&i<=o;)i=i+this._getPhysicalSizeIncrement(r),r=(r+1)%this._physicalCount,n++;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null}},_resetAverage:function(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler:function(){this._debounce("_render",function(){this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Oi)},selectItem:function(e){return this.selectIndex(this.items.indexOf(e))},selectIndex:function(e){if(!(e<0||e>=this._virtualCount)){if(!this.multiSelection&&this.selectedItem&&this.clearSelection(),this._isIndexRendered(e)){var r=this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)]);r&&(r[this.selectedAs]=!0),this.updateSizeForIndex(e)}this.$.selector.selectIndex(e)}},deselectItem:function(e){return this.deselectIndex(this.items.indexOf(e))},deselectIndex:function(e){if(!(e<0||e>=this._virtualCount)){if(this._isIndexRendered(e)){var r=this.modelForElement(this._physicalItems[this._getPhysicalIndex(e)]);r[this.selectedAs]=!1,this.updateSizeForIndex(e)}this.$.selector.deselectIndex(e)}},toggleSelectionForItem:function(e){return this.toggleSelectionForIndex(this.items.indexOf(e))},toggleSelectionForIndex:function(e){var r=this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(e):this.$.selector.isSelected(this.items[e]);r?this.deselectIndex(e):this.selectIndex(e)},clearSelection:function(){this._iterateItems(function(e,r){this.modelForElement(this._physicalItems[e])[this.selectedAs]=!1}),this.$.selector.clearSelection()},_selectionEnabledChanged:function(e){var r=e?this.listen:this.unlisten;r.call(this,this,"tap","_selectionHandler")},_selectionHandler:function(e){var r=this.modelForElement(e.target);if(!!r){var n,i,o=J(e).path[0],a=this._getActiveElement(),s=this._physicalItems[this._getPhysicalIndex(r[this.indexAs])];o.localName==="input"||o.localName==="button"||o.localName==="select"||(n=r.tabIndex,r.tabIndex=Dl,i=a?a.tabIndex:-1,r.tabIndex=n,!(a&&s!==a&&s.contains(a)&&i!==Dl)&&this.toggleSelectionForItem(r[this.as]))}},_multiSelectionChanged:function(e){this.clearSelection(),this.$.selector.multi=e},updateSizeForItem:function(e){return this.updateSizeForIndex(this.items.indexOf(e))},updateSizeForIndex:function(e){return this._isIndexRendered(e)&&(this._updateMetrics([this._getPhysicalIndex(e)]),this._positionItems()),null},_manageFocus:function(){var e=this._focusedVirtualIndex;e>=0&&e<this._virtualCount?this._isIndexRendered(e)?this._restoreFocusedItem():this._createFocusBackfillItem():this._virtualCount>0&&this._physicalCount>0&&(this._focusedPhysicalIndex=this._physicalStart,this._focusedVirtualIndex=this._virtualStart,this._focusedItem=this._physicalItems[this._physicalStart])},_convertIndexToCompleteRow:function(e){return this._itemsPerRow=this._itemsPerRow||1,this.grid?Math.ceil(e/this._itemsPerRow)*this._itemsPerRow:e},_isIndexRendered:function(e){return e>=this._virtualStart&&e<=this._virtualEnd},_isIndexVisible:function(e){return e>=this.firstVisibleIndex&&e<=this.lastVisibleIndex},_getPhysicalIndex:function(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},focusItem:function(e){this._focusPhysicalItem(e)},_focusPhysicalItem:function(e){if(!(e<0||e>=this._virtualCount)){this._restoreFocusedItem(),this._isIndexRendered(e)||this.scrollToIndex(e);var r=this._physicalItems[this._getPhysicalIndex(e)],n=this.modelForElement(r),i;n.tabIndex=Dl,r.tabIndex===Dl&&(i=r),i||(i=J(r).querySelector('[tabindex="'+Dl+'"]')),n.tabIndex=0,this._focusedVirtualIndex=e,i&&i.focus()}},_removeFocusedItem:function(){this._offscreenFocusedItem&&this._itemsParent.removeChild(this._offscreenFocusedItem),this._offscreenFocusedItem=null,this._focusBackfillItem=null,this._focusedItem=null,this._focusedVirtualIndex=-1,this._focusedPhysicalIndex=-1},_createFocusBackfillItem:function(){var e=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var r=this.stamp(null);this._focusBackfillItem=r.root.querySelector("*"),this._itemsParent.appendChild(r.root)}this._offscreenFocusedItem=this._physicalItems[e],this.modelForElement(this._offscreenFocusedItem).tabIndex=0,this._physicalItems[e]=this._focusBackfillItem,this._focusedPhysicalIndex=e,this.translate3d(0,b2,0,this._offscreenFocusedItem)}},_restoreFocusedItem:function(){if(!(!this._offscreenFocusedItem||this._focusedVirtualIndex<0)){this._assignModels();var e=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),r=this._physicalItems[e];if(!!r){var n=this.modelForElement(r),i=this.modelForElement(this._offscreenFocusedItem);n[this.as]===i[this.as]?(this._focusBackfillItem=r,n.tabIndex=-1,this._physicalItems[e]=this._offscreenFocusedItem,this.translate3d(0,b2,0,this._focusBackfillItem)):(this._removeFocusedItem(),this._focusBackfillItem=null),this._offscreenFocusedItem=null}}},_didFocus:function(e){var r=this.modelForElement(e.target),n=this.modelForElement(this._focusedItem),i=this._offscreenFocusedItem!==null,o=this._focusedVirtualIndex;!r||(n===r?this._isIndexVisible(o)||this.scrollToIndex(o):(this._restoreFocusedItem(),n&&(n.tabIndex=-1),r.tabIndex=0,o=r[this.indexAs],this._focusedVirtualIndex=o,this._focusedPhysicalIndex=this._getPhysicalIndex(o),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],i&&!this._offscreenFocusedItem&&this._update()))},_keydownHandler:function(e){switch(e.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&e.preventDefault(),this._focusPhysicalItem(this._focusedVirtualIndex+(this.grid?this._itemsPerRow:1));break;case 39:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?-1:1));break;case 38:this._focusedVirtualIndex>0&&e.preventDefault(),this._focusPhysicalItem(this._focusedVirtualIndex-(this.grid?this._itemsPerRow:1));break;case 37:this.grid&&this._focusPhysicalItem(this._focusedVirtualIndex+(this._isRTL?1:-1));break;case 13:this._focusPhysicalItem(this._focusedVirtualIndex),this.selectionEnabled&&this._selectionHandler(e);break}},_clamp:function(e,r,n){return Math.min(n,Math.max(r,e))},_debounce:function(e,r,n){this._debouncers=this._debouncers||{},this._debouncers[e]=mt.debounce(this._debouncers[e],n,r.bind(this)),wr(this._debouncers[e])},_forwardProperty:function(e,r,n){e._setPendingProperty(r,n)},_forwardHostPropV2:function(e,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&this.modelForElement(n).forwardHostProp(e,r)},this)},_notifyInstancePropV2:function(e,r,n){if(hc(this.as,r)){var i=e[this.indexAs];r==this.as&&(this.items[i]=n),this.notifyPath(It(this.as,"items."+i,r),n)}},_getStampedChildren:function(){return this._physicalItems},_forwardInstancePath:function(e,r,n){r.indexOf(this.as+".")===0&&this.notifyPath("items."+e.__key__+"."+r.slice(this.as.length+1),n)},_forwardParentPath:function(e,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&this.modelForElement(n).notifyPath(e,r)},this)},_forwardParentProp:function(e,r){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(n){n&&(this.modelForElement(n)[e]=r)},this)},_getActiveElement:function(){var e=this._itemsParent.node.domHost;return J(e?e.root:document).activeElement}});var _2;function Rfe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var yt=We({_template:g(_2||(_2=Rfe(['\n    <style>\n      :host {\n        display: inline-block;\n        position: fixed;\n        clip: rect(0px,0px,0px,0px);\n      }\n    </style>\n    <div aria-live$="[[mode]]">[[_text]]</div>\n']))),is:"iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){yt.instance||(yt.instance=this),document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},announce:function(e){this._text="",this.async(function(){this._text=e},this.timeout)},_onIronAnnounce:function(e){e.detail&&e.detail.text&&this.announce(e.detail.text)}});yt.instance=null;yt.requestAvailability=function(){yt.instance||(yt.instance=document.createElement("iron-a11y-announcer")),document.body?document.body.appendChild(yt.instance):document.addEventListener("load",function(){document.body.appendChild(yt.instance)})};function Dfe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w2(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function Cfe(t,e,r){return e&&w2(t.prototype,e),r&&w2(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Un=function(){function t(e){Dfe(this,t),t[" "](e),this.type=e&&e.type||"default",this.key=e&&e.key,e&&"value"in e&&(this.value=e.value)}return Cfe(t,[{key:"value",get:function(){var r=this.type,n=this.key;if(r&&n)return t.types[r]&&t.types[r][n]},set:function(r){var n=this.type,i=this.key;n&&i&&(n=t.types[n]=t.types[n]||{},r==null?delete n[i]:n[i]=r)}},{key:"list",get:function(){var r=this.type;if(r){var n=t.types[this.type];return n?Object.keys(n).map(function(i){return Ife[this.type][i]},this):[]}}},{key:"byKey",value:function(r){return this.key=r,this.value}}]),t}();Un[" "]=function(){};Un.types={};var Ife=Un.types;We({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,r,n){var i=new Un({type:e,key:r});return n!==void 0&&n!==i.value?i.value=n:this.value!==i.value&&(this.value=i.value),i},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new Un({type:this.type,key:e}).value}});var WF=null,GF={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){WF=new Un({type:"validator"})},_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},get _validator(){return WF&&WF.byKey(this.validator)},hasValidator:function(){return this._validator!=null},validate:function(e){return e===void 0&&this.value!==void 0?this.invalid=!this._getValidity(this.value):this.invalid=!this._getValidity(e),!this.invalid},_getValidity:function(e){return this.hasValidator()?this._validator.validate(e):!0}};var F2;function jfe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}We({_template:g(F2||(F2=jfe(['\n    <style>\n      :host {\n        display: inline-block;\n      }\n    </style>\n    <slot id="content"></slot>\n']))),is:"iron-input",behaviors:[GF],properties:{bindValue:{type:String,value:""},value:{type:String,computed:"_computeValue(bindValue)"},allowedPattern:{type:String},autoValidate:{type:Boolean,value:!1},_inputElement:Object},observers:["_bindValueChanged(bindValue, _inputElement)"],listeners:{input:"_onInput",keypress:"_onKeypress"},created:function(){yt.requestAvailability(),this._previousValidInput="",this._patternAlreadyChecked=!1},attached:function(){this._observer=J(this).observeNodes(function(e){this._initSlottedInput()}.bind(this))},detached:function(){this._observer&&(J(this).unobserveNodes(this._observer),this._observer=null)},get inputElement(){return this._inputElement},_initSlottedInput:function(){this._inputElement=this.getEffectiveChildren()[0],this.inputElement&&this.inputElement.value&&(this.bindValue=this.inputElement.value),this.fire("iron-input-ready")},get _patternRegExp(){var t;if(this.allowedPattern)t=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case"number":t=/[0-9.,e-]/;break}return t},_bindValueChanged:function(e,r){!r||(e===void 0?r.value=null:e!==r.value&&(this.inputElement.value=e),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:e}))},_onInput:function(){if(this.allowedPattern&&!this._patternAlreadyChecked){var e=this._checkPatternValidity();e||(this._announceInvalidCharacter("Invalid string of characters not entered."),this.inputElement.value=this._previousValidInput)}this.bindValue=this._previousValidInput=this.inputElement.value,this._patternAlreadyChecked=!1},_isPrintable:function(e){var r=e.keyCode==8||e.keyCode==9||e.keyCode==13||e.keyCode==27,n=e.keyCode==19||e.keyCode==20||e.keyCode==45||e.keyCode==46||e.keyCode==144||e.keyCode==145||e.keyCode>32&&e.keyCode<41||e.keyCode>111&&e.keyCode<124;return!r&&!(e.charCode==0&&n)},_onKeypress:function(e){if(!(!this.allowedPattern&&this.inputElement.type!=="number")){var r=this._patternRegExp;if(!!r&&!(e.metaKey||e.ctrlKey||e.altKey)){this._patternAlreadyChecked=!0;var n=String.fromCharCode(e.charCode);this._isPrintable(e)&&!r.test(n)&&(e.preventDefault(),this._announceInvalidCharacter("Invalid character "+n+" not entered."))}}},_checkPatternValidity:function(){var e=this._patternRegExp;if(!e)return!0;for(var r=0;r<this.inputElement.value.length;r++)if(!e.test(this.inputElement.value[r]))return!1;return!0},validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var e=this.inputElement.checkValidity();return e&&(this.required&&this.bindValue===""?e=!1:this.hasValidator()&&(e=GF.validate.call(this,this.bindValue))),this.invalid=!e,this.fire("iron-input-validate"),e},_announceInvalidCharacter:function(e){this.fire("iron-announce",{text:e})},_computeValue:function(e){return e}});var x2;function Bfe(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var vt={distance:function(e,r,n,i){var o=e-n,a=r-i;return Math.sqrt(o*o+a*a)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function O2(t){this.element=t,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}O2.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,r){var n=vt.distance(e,r,0,0),i=vt.distance(e,r,this.width,0),o=vt.distance(e,r,0,this.height),a=vt.distance(e,r,this.width,this.height);return Math.max(n,i,o,a)}};function Vn(t){this.element=t,this.color=window.getComputedStyle(t).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),J(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}Vn.MAX_RADIUS=300;Vn.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var t;return this.mouseDownStart?(t=vt.now()-this.mouseDownStart,this.mouseUpStart&&(t-=this.mouseUpElapsed),t):0},get mouseUpElapsed(){return this.mouseUpStart?vt.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var t=this.containerMetrics.width*this.containerMetrics.width,e=this.containerMetrics.height*this.containerMetrics.height,r=Math.min(Math.sqrt(t+e),Vn.MAX_RADIUS)*1.1+5,n=1.1-.2*(r/Vn.MAX_RADIUS),i=this.mouseInteractionSeconds/n,o=r*(1-Math.pow(80,-i));return Math.abs(o)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var t=this.mouseUpElapsedSeconds*.3,e=this.opacity;return Math.max(0,Math.min(t,e))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,Vn.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,Vn.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new O2(this.element)},draw:function(){var e,r,n;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),r=this.xNow-this.containerMetrics.width/2,n=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+r+"px, "+n+"px)",this.waveContainer.style.transform="translate3d("+r+"px, "+n+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var r=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=vt.now(),this.center?(this.xStart=r,this.yStart=n,this.slideDistance=vt.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=r,this.yEnd=n,this.slideDistance=vt.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){!this.isMouseDown||(this.mouseUpStart=vt.now())},remove:function(){J(J(this.waveContainer).parentNode).removeChild(this.waveContainer)}};We({_template:g(x2||(x2=Bfe(['\n    <style>\n      :host {\n        display: block;\n        position: absolute;\n        border-radius: inherit;\n        overflow: hidden;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n\n        /* See PolymerElements/paper-behaviors/issues/34. On non-Chrome browsers,\n         * creating a node (with a position:absolute) in the middle of an event\n         * handler "interrupts" that event handler (which happens when the\n         * ripple is created on demand) */\n        pointer-events: none;\n      }\n\n      :host([animating]) {\n        /* This resolves a rendering issue in Chrome (as of 40) where the\n           ripple is not properly clipped by its parent (which may have\n           rounded corners). See: http://jsbin.com/temexa/4\n\n           Note: We only apply this style conditionally. Otherwise, the browser\n           will create a new compositing layer for every ripple element on the\n           page, and that would be bad. */\n        -webkit-transform: translate(0, 0);\n        transform: translate3d(0, 0, 0);\n      }\n\n      #background,\n      #waves,\n      .wave-container,\n      .wave {\n        pointer-events: none;\n        position: absolute;\n        top: 0;\n        left: 0;\n        width: 100%;\n        height: 100%;\n      }\n\n      #background,\n      .wave {\n        opacity: 0;\n      }\n\n      #waves,\n      .wave {\n        overflow: hidden;\n      }\n\n      .wave-container,\n      .wave {\n        border-radius: 50%;\n      }\n\n      :host(.circle) #background,\n      :host(.circle) #waves {\n        border-radius: 50%;\n      }\n\n      :host(.circle) .wave-container {\n        overflow: hidden;\n      }\n    </style>\n\n    <div id="background"></div>\n    <div id="waves"></div>\n']))),is:"paper-ripple",behaviors:[d2],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){J(this).parentNode.nodeType==11?this.keyEventTarget=J(this).getOwnerRoot().host:this.keyEventTarget=J(this).parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var t=0;t<this.ripples.length;++t)if(!this.ripples[t].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null),this.async(function(){this.upAction()},1)},uiDownAction:function(e){this.noink||this.downAction(e)},downAction:function(e){if(!(this.holdDown&&this.ripples.length>0)){var r=this.addRipple();r.downAction(e),this._animating||(this._animating=!0,this.animate())}},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach(function(r){r.upAction(e)}),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor="",this.fire("transitionend")},addRipple:function(){var e=new Vn(this);return J(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var r=this.ripples.indexOf(e);r<0||(this.ripples.splice(r,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(!!this._animating){var e,r;for(e=0;e<this.ripples.length;++e)r=this.ripples[e],r.draw(),this.$.background.style.opacity=r.outerOpacity,r.isOpacityFullyDecayed&&!r.isRestingAtMaxRadius&&this.removeRipple(r);!this.shouldKeepAnimating&&this.ripples.length===0?this.onAnimationComplete():window.requestAnimationFrame(this._boundAnimate)}},animateRipple:function(){return this.animate()},_onEnterKeydown:function(){this.uiDownAction(),this.async(this.uiUpAction,1)},_onSpaceKeydown:function(){this.uiDownAction()},_onSpaceKeyup:function(){this.uiUpAction()},_holdDownChanged:function(e,r){r!==void 0&&(e?this.downAction():this.upAction())}});})();
/*! @source http://purl.eligrey.com/github/canvas-toBlob.js/blob/master/canvas-toBlob.js */
/**
 * @fileoverview
 * @suppress {checkPrototypalTypes}
 * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
 * This code may only be used under the BSD style license found at
 * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
 * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
 * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
 * Google as part of the polymer project is also subject to an additional IP
 * rights grant found at http://polymer.github.io/PATENTS.txt
 */
/**
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/**
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/**
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
/**
@license
Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/

