/*! For license information please see interactive.min.js.LICENSE.txt */ !function(){"use strict";if(function(e){var t,n,c,r=e.$LAB,i="UseLocalXHR",o="AlwaysPreserveOrder",s="AllowDuplicates",l="CacheBust",a="BasePath",u=/^[^?#]*\//.exec(location.href)[0],d=/^\w+\:\/\/\/?[^\/]+/.exec(u)[0],f=document.head||document.getElementsByTagName("head"),h=e.opera&&"[object Opera]"==Object.prototype.toString.call(e.opera)||"MozAppearance"in document.documentElement.style,p=document.createElement("script"),y="boolean"==typeof p.preload,m=y||p.readyState&&"uninitialized"==p.readyState,g=!m&&!0===p.async,v=!m&&!g&&!h;function S(e){return"[object Function]"==Object.prototype.toString.call(e)}function b(e){return"[object Array]"==Object.prototype.toString.call(e)}function A(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function _(e){for(var t=!1,n=0;n0){for(var n=0;n=0;)t=t[(e=p.shift()).type].apply(null,e.args);return t},noConflict:function(){return e.$LAB=r,n},sandbox:function(){return t()}},n}(),t="addEventListener",n="DOMContentLoaded",null==document.readyState&&document[t]&&(document.readyState="loading",document[t](n,c=function(){document.removeEventListener(n,c,!1),document.readyState="complete"},!1))}(window),window.$LAB.setGlobalDefaults({AllowDuplicates:!1}),function(e,t){var n=void 0;if(">"===t[0]){var c="qa-"+Date.now();e.classList.add(c),n=document.querySelectorAll("."+c+" "+t),e.classList.remove(c)}else n=e.querySelectorAll(t);return Array.prototype.slice.call(n)}(document,"[data-highchart]").length>0){var e=document.querySelector("[data-highchart-bundle]");e.src=e.dataset.src,e.removeAttribute("data-src")}var t=document.querySelectorAll("[data-multi-select]");Array.prototype.forEach.call(t,function(e){var t=e.querySelector(".c-multi-select__toggle"),n=e.querySelector(".c-multi-select__selection"),c=e.getAttribute("data-choice-template")||" selected",r=e.getAttribute("data-choice-empty")||t.textContent,i=e.getAttribute("data-max-options");function o(){var o="";e.multiSelect.choices.length&&(o=e.multiSelect.choices.length>1?c.replace("",e.multiSelect.choices.length):e.multiSelect.choices[0].nextElementSibling.textContent),t.textContent=o||r,i&&e.multiSelect.choices.length>=i?(n.classList.add("is-disabled"),Array.prototype.forEach.call(e.querySelectorAll("input[type=checkbox]:not(:checked)"),function(e){e.disabled=!0})):n.classList.contains("is-disabled")&&(n.classList.remove("is-disabled"),Array.prototype.forEach.call(e.querySelectorAll("input[type=checkbox]:disabled"),function(e){e.disabled=!1}))}function s(t){var c=t.checked;"checkbox"===t.getAttribute("type")?(e.multiSelect.choices=[],Array.prototype.forEach.call(e.querySelectorAll("input[type=checkbox]:checked"),function(t){e.multiSelect.choices.push(t)})):(e.multiSelect.choices=[],e.multiSelect.choices[0]=t,n.classList.remove("is-open")),c&&!n.classList.contains("has-selection")?n.classList.add("has-selection"):e.multiSelect.choices.length||n.classList.remove("has-selection"),o()}t.addEventListener("click",function(){n.classList.toggle("is-open")}),window.addEventListener("click",function(e){n.contains(e.target)?e.stopPropagation():n.classList.remove("is-open")}),Array.prototype.forEach.call(e.querySelectorAll(".c-multi-select__clear"),function(t){t.addEventListener("click",function(){e.multiSelect.choices=[],Array.prototype.forEach.call(e.querySelectorAll("input[type=checkbox]:checked"),function(e){e.checked=!1}),o()})}),e.multiSelect={choices:[]},Array.prototype.forEach.call(e.querySelectorAll("input[type=checkbox],input[type=radio]"),function(e){e.addEventListener("change",function(){s(e)})}),o(),e.updateSelection=function(){o()},e.makeSelection=function(e){s(e)}})}();;