function initSlider(){function v(){t[0]&&(c.style.display="",l.style.display="none",u.classList.add("open"));t[0]&&r[0]&&u.classList.remove("open")}var n=document.getElementsByTagName("html"),r=document.getElementsByClassName("mobile"),t=document.getElementsByClassName("perfBar"),u=document.getElementById("toggle-infos-panel"),c=document.getElementById("infos-boursier"),l=document.getElementById("indexes-compact"),e=document.getElementsByClassName("scrolly-table"),a=window.pageYOffset||document.documentElement.scrollTop,o=103,s=n[0].offsetWidth<=1097,f,h,i;if($("#infos-boursier_panel").removeClass("init"),!r[0]&&!s&&a<o?n[0].classList.add("perfBar"):n[0].classList.remove("perfBar"),v(),u.addEventListener("click",function(i){i.preventDefault();i.stopPropagation();var r=window.pageYOffset||document.documentElement.scrollTop;t[0]?(n[0].classList.add("noPerfBar"),n[0].classList.remove("perfBar")):(n[0].classList.add("perfBar"),n[0].classList.remove("noPerfBar"))}),f=0,window.addEventListener("scroll",function(){var i=window.pageYOffset||document.documentElement.scrollTop;r[0]||s||(i>o?n[0].classList.remove("perfBar"):!t[0]&&i<80&&i<f&&(n[0].classList.add("perfBar"),n[0].classList.remove("noPerfBar")));f=i<=0?0:i}),typeof Storage!="undefined"&&(h=localStorage.getItem("scrollyTable"),h==="on"))for(i=0;i<e.length;i++)e[i].classList.add("on");if(!$("html").hasClass("mobile"))$("#indexes-full .name").not("span").parent().parent().on("mouseenter",function(n){n.preventDefault();var t=$(this).parent().parent(),i=$(this).find("a").attr("href"),r=$(this).find("a").attr("data-tooltip-img");$(".tooltips img").attr("src",r);$(".tooltips a").attr("href",i);$("#indexes-full table").removeClass("active");t.addClass("active")});BC.AJAX.InitOnglets.call(document.getElementById("infos-boursier_panel"))}function makeELementVisible(n){var i,r,t;if(n&&(i=n.getBoundingClientRect(),r=window.innerWidth+window.pageXOffset,i.right>r)){for(t=n;t=t.parentNode;)if(t.dataset.scroll==="true")break;t&&(t.scrollLeft=i.right-(window.innerWidth+i.width)/2)}}function nativeHasClass(n,t){return n.classList?n.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(n.className)}function doSomething(n,t){scrollDirectionValue=n>t?"down":"up"}function headerSharingScroll(){var t;const o=document.querySelector(".header-sharing"),i=document.querySelector(".main-article__body");if(i){var r=i.getBoundingClientRect(),n=r.top,u=r.bottom,f=window.innerHeight,e=u-n-f;const o=headerSharing.querySelector(".progress-bar"),s=o.getElementsByTagName("SPAN")[0];t=0;n<=-140?(n<=0&&(t=100*Math.abs(n)/e),scrollDirectionValue==="up"?nativeHasClass(headerSharing,"visible")&&headerSharing.classList.remove("visible"):nativeHasClass(headerSharing,"visible")||headerSharing.classList.add("visible")):(nativeHasClass(headerSharing,"visible")&&headerSharing.classList.remove("visible"),t=0);s.style.width=t+"%"}}function toggleOnScroll(){_.forEach(toggleOnScrollElements,function(n){var i=n.getAttribute("data-toggle-element"),t=n.getAttribute("data-toggle-class");_.forEach(i.split(" "),function(n){var i=document.querySelectorAll(n)[0];i.classList.contains(t)&&i.classList.remove(t)})})}function scrollToElement(n){n.preventDefault();var t=this,i=t.getAttribute("data-target"),r=document.querySelector(i);window.scroll({top:r.getBoundingClientRect().top+window.pageYOffset-100,left:0,behavior:"smooth"})}function onScroll(){headerSharing!=="undefined"&&headerSharing!==null&&headerSharingScroll();toggleOnScroll()}function imageReloader(n,t){if(typeof atob=="function"){var i=document.createElement("iframe"),r=n.src,u=function(){i.onload=i.onerror=null;document.body.removeChild(i)},f=function(){n.onerror=function(){t&&t.count++};n.src=r;u()};i.width=i.height=0;i.style.position="absolute";document.body.insertBefore(i,document.body.firstChild);i.onload=f;i.onerror=u;i.src="/Content/helpers/reload.html#"+btoa(r)}}var $target,observer,scrollDirectionValue,last_known_scroll_position,ticking,share;(function(){function t(item){var obj,opt,func;return item=JSON.parse(item),opt=this.options,$.each(item,function(n,t){opt._target?opt._target.indexOf(n)!=-1&&setValue($("#"+opt._target),t):(obj=$("#"+n),obj&&setValue(obj,t))}),opt._trigger&&(func=window[opt._trigger],func||opt._trigger.match(/[^a-zA-Z0-9_\.\-]/)||(func=eval(opt._trigger)),func&&func(item,this)),item.Set||""}function i(t){t=JSON.parse(t);for(var r=t[this.options._prop||"Show"],u=n(r.toLowerCase()),f=n(this.query.toLowerCase()),i=u.indexOf(f,0);i!=-1;)u=r.substr(0,i)+"<strong>"+r.substr(i,this.query.length)+"<\/strong>"+r.substr(i+this.query.length),i=u.indexOf(f,i+9);return u}function r(t){var i=n(t[this.options._prop||"Show"]),r=n(this.query);return~i.toLowerCase().indexOf(r.toLowerCase())}function n(n){var i,t;if(!n)return"";for(i="",t=0;t<n.length;t++)i+=u[n.charAt(t)]||n.charAt(t);return i}function f(n){for(var i=[],r,t=0;t<n.length;t++)i.push(JSON.stringify(n[t]));return r=$.fn.typeahead.Constructor.prototype.sorter,r.call(this,i)}function e(n,t){var e=this.options,u=e._if,o,f,s,h,r,i;if(u!==undefined)for(o=u.split(";"),u=!1,i=0;i<o.length;i++)f=o[i].split("="),s=$("#"+f[0]),s.length&&(f[1]===undefined||s.val()==f[1])||(u=!0);if(!u){if(h={q:n},r=e._include,r)for(r=r.split(";"),i=0;i<r.length;i++)h[r[i]]=$("#"+r[i]).val();$.ajax(e._source.data("url"),{type:"POST",data:h}).done(t)}}setValue=function(n,t){n.is("input")||n.is("textarea")?(n.val(t),n.valid&&n.valid()):n.text(t)};var u={"é":"e","è":"e","ê":"e","ë":"e","á":"a","à":"a","â":"a","ä":"a","ì":"i","í":"i","î":"i","ï":"i","ù":"u","û":"u","ü":"u","ô":"o","ö":"o","ç":"c","ñ":"n","æ":"ae","œ":"oe"};BC.initTypeahead=function(){$(".typeahead").removeClass("typeahead").each(function(n,u){u=$(u);u.typeahead({source:e,items:u.data("items")||5,minLength:u.data("minlength")||3,updater:t,highlighter:i,matcher:r,sorter:f,_source:u,_prop:u.data("text"),_if:u.data("if"),_include:u.data("include"),_trigger:u.data("trigger"),_target:u.data("target")})})}})();window.BUI=window.BUI||{};BUI.Tag=function(){var t=function(n){this.element=n;n.classList.add("bui-tag")},n=t.prototype;return n.init=function(){var t=this.element,f=Array.from(t.querySelectorAll('input[type="hidden"]')),i,r,n,u;for(f.forEach(function(n){this.insert_(n);n.parentNode.removeChild(n)}.bind(this)),i=this.input=document.createElement("input"),i.type="text",r=i.dataset,n=t.dataset,n.source&&(r.source=n.source),n.select&&(r.select=n.select),n.include&&(r.include=n.include),n.placeholder&&(i.placeholder=n.placeholder),delete n.source,delete n.select,delete n.include,delete n.placeholder,t.insertBefore(i,t.firstChild);t&&t.nodeName!=="FORM";)t=t.parentNode;return t&&t.addEventListener("reset",this.clearTags_.bind(this),!1),u=n.initial,u&&u.split("|").forEach(function(n){if(n){var t=n.split("[");t.length===2&&i.setAttribute("data-value",t[1].slice(0,-1));i.value=t[0];this.addValue_()}}.bind(this)),delete n.initial,this.initEvents_(),this},n.initEvents_=function(){var t=this,n=this.input;this.element.addEventListener("click",function(t){t.target===this&&(t.preventDefault(),n.focus())},!0);n.addEventListener("keydown",function(n){(n.key==="Enter"||n.key==="Tab")&&(n.preventDefault(),this.value&&t.addValue_())},!0)},n.insert_=function(n){var f=n.value.replace(/^\s+|\s+$/g,""),r=this.element,t=document.createElement("span"),i,u;t.className="bui-tag__tag";t.innerHTML=`<b>${f}</b>`;t.addEventListener("click",function(){this.parentNode.removeChild(this);r.classList.remove("bui-hidden");n.focus()},!0);i=document.createElement("input");i.type="hidden";i.name=r.dataset.name;u=n.dataset;i.value=u.hasOwnProperty("value")?u.value:f;t.appendChild(i);r.appendChild(t)},n.clearTags_=function(){var n=this.element;n.querySelectorAll(".bui-tag__tag").forEach(function(n){n.parentNode.removeChild(n)});n.classList.remove("bui-hidden")},n.addValue_=function(){var n=this.input,t=this.element,i=t.dataset;i.type==="single"&&(this.clearTags_(),i.hide==="true"&&t.classList.add("bui-hidden"));this.insert_(n);n.value=""},t}();window.BUI=window.BUI||{};BUI.Typeahead=function(){function u(n){var t=n.target,i=n.value;t.value=i.title;t.dataset.value=i.value}function f(n,t){if(t.key==="Enter"||t.key==="Tab"){t.preventDefault();var i=this.querySelector("li.active");i&&(this.onselect||u)({target:n,value:JSON.parse(i.dataset.payload)},u)}else(t.key==="ArrowUp"||t.key==="ArrowDown")&&(t.preventDefault(),this.classList.contains("hover")||e(this,t.key==="ArrowUp"?-1:1))}function e(n,t){var r=n.children,u=n.querySelector("li.active"),f=u?Number(u.dataset.index):-1,e=t===1?1:r.length*2-1;i(n,(f+e)%r.length)}function i(n,t){var i=n.querySelector("li.active");i&&i.classList.remove("active");t!==-1&&n.children[t].classList.add("active")}function o(n){return/^(https?:\/)?\/.+$/.test(n)?n:null}function s(n,t,i){var u=Object.keys(t).map(function(n){return n+"="+encodeURIComponent(t[n])}).join("&");const r=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");return r.onload=function(){if(this.status>=400)this.onerror();else if(this.status===200)try{var n=this.responseText;i(JSON.parse(n))}catch(t){this.onerror(t)}},r.onerror=function(){i(null)},r.open("POST",n,!0),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.send(u),{cancel:function(){r.abort()}}}var r=function(n){var t,i;this.element=n;t=n.dataset;this.onselect=this.getFunction_(t.select);this.source=this.getSource_(t.source);this.message=null;this.throttling=!1;this.timing=250;n.autocomplete="off";i=n.dataset.include;i&&(this.include=i.split(",").map(function(n){return n.replace(/^\s+|\s+$/g,"")}))},n=r.prototype,t;return n.init=function(){return this.initEvents_(),this},n.getSource_=function(n){if(!n)return null;var t=o(n);return t?s.bind(this,t):this.getFunction_(n)},n.getFunction_=function(n){if(!n)return null;for(var i,r=n.split("."),t=self;i=r.shift();)t=t[i];return t},n.initEvents_=function(){var r=this.element,t=this,i,n,u=function(r){i=undefined;clearTimeout(n);setTimeout(function(){t.typeahead_(!1)},r.type==="blur"?250:0)},f=function(r){if(r.key==="Enter"||r.key==="Tab")u(r);else if(!(r.key==="ArrowUp"||r.key==="ArrowDown")){if(t.throttling){if(n!==undefined)return}else clearTimeout(n);n=setTimeout(function(){n=undefined;i!==this.value&&(i=this.value,t.typeahead_(!!i))}.bind(this),Number(t.timing)||250)}};r.addEventListener("keydown",f,!0);r.addEventListener("focus",f,!0);r.addEventListener("blur",u,!0)},n.typeahead_=function(n){var i=this.getListElement_(),u,r,e,o;if(!n){i&&(u=-1,t.forEach(function(n,t){n.target===i&&(u=t)}),t.splice(u,1),i.parentNode.removeChild(i));return}r=this.element;e=r.parentNode;i||(i=document.createElement("ul"),i.className="bui-typeahead",i.dataset.target=r.name,i.style.display="none",e.appendChild(i),i.addEventListener("mouseover",function(){i.classList.add("hover")}),i.addEventListener("mouseout",function(){i.classList.remove("hover")}),t.push({target:i,handler:f.bind(i,r)}));this.running_&&this.running_.cancel();o=this.getValues_();this.running_=this.source(o,function(n){var t=this.getListElement_(),i,u;(this.running_=null,t&&n)&&(t.style.display="",t.innerHTML="",this.createEntries_(t,n),i=r.getBoundingClientRect(),u=e.getBoundingClientRect(),t.style.top=i.bottom-u.top+"px",t.style.left=i.left-u.left+"px")}.bind(this))},n.getValues_=function(){var t={},i=this.element,r=i.name||i.id||"__value",n;if(t[r]=i.value,!this.include)return t;for(n=i.parentNode;n&&n.nodeName!=="FORM";)n=n.parentNode;return n&&this.include.forEach(function(i){t[i]=n.elements[i].value}),t},n.getListElement_=function(){var n=this.element;return n.parentNode.querySelector('ul[data-target="'+n.name+'"]')},n.createEntries_=function(n,t){var r=this;!t.length&&this.message&&(t=[{title:this.message,disabled:!0}]);t.forEach(function(t,u){var f=document.createElement("li");if(f.innerHTML=t.title,f.dataset.title=t.title,f.dataset.value=t.value,f.dataset.payload=JSON.stringify(t),f.dataset.index=u,n.appendChild(f),t.disabled){f.className="disabled";return}f.className=u===0?"active":"";f.addEventListener("mouseover",function(){i(n,u)});f.addEventListener("click",function(){i(n,u);r.element.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter"}))})})},t=[],document.addEventListener("keydown",function(n){t.forEach(function(t){t.handler(n)})},!0),r}(),function(n,t,i){var r=newswebGlobal=function(){var t="loading",f=function(n){return String(n).search(/^\s*\d+\s*$/)!=-1},u=function(n){return parseInt(n,10)},n;return{tools:{startLoading:function(i){n=setTimeout(function(){clearTimeout(n);n!="stop"&&i.addClass(t)},50)},stopLoading:function(i){n="stop";i.removeClass(t)},log:function(n){typeof console!="undefined"&&console.log(n)},paramToObj:function(n,t){var r;if(typeof n!="string")return!1;var s={},c=t||";",e=n.split(c),l=e.length,h,i,o;for(r=0;r<l;r++)o=e[r].indexOf("="),h=e[r].substring(0,o),i=e[r].substring(o+1),i=f(i)?u(i):i,s[h]=i;return s},objToParam:function(n,t){if(typeof n!="object")return!1;var i="",r=t||";";for(name in n)i+=name+"="+n[name]+r;return i.substr(0,i.length-1)},editGet:function(n,t,i){var u=r.tools.paramToObj(n.get,"&");if(i)u[t]=i,n.get=r.tools.objToParam(u,"&");else return u[t]},urlIncrement:function(n,t){var f=!1,n=n.split("?"),i=n[0],e=n[1]?"?"+n[1]:"",r=u(i.substring(i.lastIndexOf("/")+1,i.length));return r!==t&&(r++,f=i.substr(0,i.length-1)+r+e),f},IsNumeric:function(n){return+n==n&&n.length>0},applyRefresh:function(n){Boursier.html.applyRefresh(n)},disableRefresh:function(n){Boursier.html.disableRefresh(n)},placeholderFallback:function(){"placeholder"in document.createElement("input")||(i("*[placeholder]").each(function(){var n=i(this),t=n.attr("placeholder");n.val()===""&&n.val(t);n.bind("focus",function(){n.val()===t&&i(this).val("")});n.bind("blur",function(){(n.val()===""||n.val()===t)&&n.val(t)})}),i("form").bind("submit",function(){i(this).find("*[placeholder]").each(function(){var n=i(this);n.val()===n.attr("placeholder")&&n.val("")})}))}},cb:{updateNews:function(n){var t=i(this),u=r.tools.urlIncrement(n.url,4);u?(n.url=u,t.data("data-script",n)):t.remove()},addList:function(){this.removeData("data-script").removeAttr("data-script").removeClass("async")}}}}();n.newswebGlobal=n.nw=r=newswebGlobal;i.expr[":"].hasData=function(n,t,u){var e=r.tools.paramToObj(i(n).attr("data-script")),s=u[3].split(","),h=s.length,o,f;if(e)for(f=0;f<h;f++)for(o in e)if(e.hasOwnProperty(o)&&o===s[f])return!0;return!1};i(t.getElementById("overall")).delegate(':hasData("link")',"click",function(){var u=i(this),t=r.tools.paramToObj(u.attr("data-script"));return t.target==="_blank"?n.open(t.link):n.location.href=t.link,!1});i(".form-radio").each(function(){var t=i(this),r=i("label",t),n=i("input[type=radio]",t),f=n.closest("form"),e=i("input[name="+n.attr("name")+"] ~ label .ico",f),u=function(){e.filter(".i-checked").removeClass("i-checked").addClass("i-default");i(".ico",r).removeClass("i-default").addClass("i-checked")};n.is(":checked")&&u();r.click(function(){n.attr("checked")||u()})});BC.AJAX.InitOnglets.call(document.body);i("form .pagine a").click(function(n){var r=i(this),u=r.parents("form:eq(0)"),t=r.attr("href"),f=t.substring(t.indexOf("?")+1,t.length).split("=");return n.preventDefault(),i("input[name="+f[0]+"]",u).val(f[1]),u.submit(),!1});BC.Pager.pagine=function(){i(".pagine[data-script] a:not(.data--set)").click(function(n){var o=i(this),s=r.tools.paramToObj(o.parents(".pagine:eq(0)").attr("data-script")).idForm,e=i(t.getElementById(s)),h=i('input[name="page"]',e),f=this.href,u=f.substring(f.lastIndexOf("/")+1,f.length);u.indexOf(".html")&&(u=u.split(".html").shift().split("-").pop());h.val(parseInt(u,10)||1);n.preventDefault();e.submit()}).addClass("data--set")};BC.Pager.pagine();i("tr[data-script] th a").click(function(){var u=i(this),f=r.tools.paramToObj(u.parents("tr:eq(0)").attr("data-script")).idForm,n=i(t.getElementById(f)),e=i('input[name="tri"]',n),o=i('input[name="page"]',n),s=this.href;return e.val(s.match(/.*?tri=(.+)/)[1].split("&")[0]),o.val(1),n.submit(),!1});i.fn.async=function(){return this.each(function(){i(this).click(function(){if(i(this).hasClass("on"))return!1;var t=i(this),n=t.data("data-script")||r.tools.paramToObj(t.attr("data-script")),o=n.url||!1,c=n.get||"",u=n.cible||!1,f=!1,s=n.mode||"add",e=t.parents("div.metas:eq(0)").length?t.parents("div.metas:eq(0)"):!1,h=t.parents("dl.select:eq(0)").length?t.parents("dl.select:eq(0)"):!1;return u&&(f=typeof u!="string"?n.cible:i.trim(u.match(/^(>|~|\+)/))?i(u,t):i(u)),o&&f&&(t.data("data-script",n),e&&e.addClass("metas-loading"),i.ajax({url:o+"?"+c,cache:!1,success:function(i){s==="add"?f.append(i):s==="upd"&&f.html(i);n.callback&&(r.cb[n.callback]?(n.cible=f,r.cb[n.callback].apply(t,[n])):alert('La fonction de callback "'+n.callback+"\" n'a pas été définie!"));e&&e.removeClass("metas-loading");h&&h.removeClass("open")}})),!1})})};i(".async").async();i('a[href^="#"]',t.getElementById("content")).filter(function(){return this.href.match(/#\w+$/)}).click(function(){var n=i(this).attr("href").substring(1,i(this).attr("href").length),f=t.getElementById(n)||i("[name="+n+"]")[0],r=i(f),u;if(r.length)return u=r.offset().top-90,i("html, body").animate({scrollTop:u},1e3),!1});i(document).on("click","a.popup",function(){var n={width:600,height:550,name:"popup",scrollbars:"yes"},t=r.tools.paramToObj(i(this).attr("data-script"))||{};i.extend(n,t);var u=screen.width/2-n.width/2,f=screen.height/2-n.height/2,e=window.open(this.href,n.name,"menubar=no, status=no, scrollbars="+n.scrollbars+", menubar=no, resizable=yes, width="+n.width+", height="+n.height+", screenX="+u+", screenY="+f);return e.focus(),!1});i.fn.cotation=function(){return this.each(function(){var n=i(this),r=n.attr("rel"),t;n.css("position","relative");t=i("#bulles");t.size()&&t.remove();n.hover(function(){var n=i("#bulles");n.size()&&n.remove();i(this).removeAttr("title");n='<div id="bulles" class="tooltip" style="display:none;"><\/div>';i(this).append(n);i.ajax({type:"GET",url:r,success:function(n){i("#bulles #cotationPopup").remove();i("#bulles").prepend(n).show()}})},function(){var n=i("#bulles");n.remove()})})};i(function(){i(".cluetip").cotation()}),function(){var n=i(t.getElementById("com_message")),r=i(t.getElementById("counter"));n.keyup(function(){var i=500,t=i-n.val().length;t<0&&(n.val(n.val().substring(0,i)),t=0);r.text(t)})}();i(t.getElementById("calculPrice")).click(function(){var s=i(this),o=s.parents("form:eq(0)"),t=i("input[name=PurchasePrice]",o).val(),u=i("input[name=Quantity]",o).val(),f=i("input[name=Fee]",o).val()||"0",e=i("input[name=mode]",o).val(),n=0;return t===""||u===""?alert('Les champs "Prix d\'achat" et "Quantité" sont obligatoires.'):(t=t.replace(",","."),u=u.replace(",","."),f=f.replace(",","."),r.tools.IsNumeric(t)&&r.tools.IsNumeric(u)?f===""||r.tools.IsNumeric(f)?(e=="achat"?(n=(Math.round(t*u*100)/100+Math.round(f)).toString(),e="l'achat"):(n=(Math.round(t*u*100)/100-Math.round(f)).toString(),e=="vente"&&(e="la vente")),n.indexOf(".")!==-1&&(n=n.replace(".",",")),e?swal("Coût total de "+e+" :\n"+n+" EUR"):swal("Montant total :\n"+n+" EUR")):alert('Le champs "Frais" contient une mauvaise valeur.'):alert("Tous les champs ne contiennent pas de valeurs numériques.")),!1});t.getElementById("documentation")&&i('label[for="courtiers-all"]').click(function(){var n=i("#courtiers-all");n.is(":checked")?i(this).parents("form:eq(0)").find(":checkbox").attr("checked","checked"):i(this).parents("form:eq(0)").find(":checkbox").attr("checked","")});i('select, input[type="text"], textarea').focus(function(){r.tools.disableRefresh(!0)});i(document).ready(r.tools.placeholderFallback);i(".message b").click(function(n){var t=n.target.parentNode;t.parentNode.removeChild(t);i.cookie("fpb","hide")})}(window,document,jQuery),function(){function f(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}function le(n,t,i,r){for(var f,u=-1,e=null==n?0:n.length;++u<e;)f=n[u],t(r,f,i(f),n);return r}function o(n,t){for(var i=-1,r=null==n?0:n.length;++i<r&&t(n[i],i,n)!==!1;);return n}function ae(n,t){for(var i=null==n?0:n.length;i--&&t(n[i],i,n)!==!1;);return n}function eu(n,t){for(var i=-1,r=null==n?0:n.length;++i<r;)if(!t(n[i],i,n))return!1;return!0}function d(n,t){for(var r,i=-1,f=null==n?0:n.length,e=0,u=[];++i<f;)r=n[i],t(r,i,n)&&(u[e++]=r);return u}function fi(n,t){return!!(null==n?0:n.length)&&ot(n,t,0)>-1}function ki(n,t,i){for(var r=-1,u=null==n?0:n.length;++r<u;)if(i(t,n[r]))return!0;return!1}function r(n,t){for(var i=-1,r=null==n?0:n.length,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}function g(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}function di(n,t,i,r){var u=-1,f=null==n?0:n.length;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}function ve(n,t,i,r){var u=null==n?0:n.length;for(r&&u&&(i=n[--u]);u--;)i=t(i,n[u],u,n);return i}function gi(n,t){for(var i=-1,r=null==n?0:n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}function ou(n){return n.split("")}function ye(n){return n.match(ih)||[]}function su(n,t,i){var r;return i(n,function(n,i,u){if(t(n,i,u))return r=i,!1}),r}function ei(n,t,i,r){for(var f=n.length,u=i+(r?1:-1);r?u--:++u<f;)if(t(n[u],u,n))return u;return-1}function ot(n,t,i){return t===t?ro(n,t,i):ei(n,hu,i)}function pe(n,t,i,r){for(var u=i-1,f=n.length;++u<f;)if(r(n[u],t))return u;return-1}function hu(n){return n!==n}function cu(n,t){var i=null==n?0:n.length;return i?ir(n,t)/i:ci}function nr(t){return function(i){return null==i?n:i[t]}}function tr(t){return function(i){return null==t?n:t[i]}}function lu(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}function we(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}function ir(t,i){for(var r,u,f=-1,e=t.length;++f<e;)u=i(t[f]),u!==n&&(r=r===n?u:r+u);return r}function rr(n,t){for(var i=-1,r=Array(n);++i<n;)r[i]=t(i);return r}function be(n,t){return r(t,function(t){return[t,n[t]]})}function au(n){return n?n.slice(0,wu(n)+1).replace(dr,""):n}function e(n){return function(t){return n(t)}}function ur(n,t){return r(t,function(t){return n[t]})}function bt(n,t){return n.has(t)}function vu(n,t){for(var i=-1,r=n.length;++i<r&&ot(t,n[i],0)>-1;);return i}function yu(n,t){for(var i=n.length;i--&&ot(t,n[i],0)>-1;);return i}function ke(n,t){for(var i=n.length,r=0;i--;)n[i]===t&&++r;return r}function de(n){return"\\"+ec[n]}function ge(t,i){return null==t?n:t[i]}function st(n){return ic.test(n)}function no(n){return rc.test(n)}function to(n){for(var t,i=[];!(t=n.next()).done;)i.push(t.value);return i}function fr(n){var i=-1,t=Array(n.size);return n.forEach(function(n,r){t[++i]=[r,n]}),t}function pu(n,t){return function(i){return n(t(i))}}function nt(n,t){for(var r,i=-1,f=n.length,e=0,u=[];++i<f;)r=n[i],r!==t&&r!==si||(n[i]=si,u[e++]=i);return u}function oi(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=n}),t}function io(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=[n,n]}),t}function ro(n,t,i){for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function uo(n,t,i){for(var r=i+1;r--;)if(n[r]===t)return r;return r}function ht(n){return st(n)?fo(n):cc(n)}function l(n){return st(n)?eo(n):ou(n)}function wu(n){for(var t=n.length;t--&&ds.test(n.charAt(t)););return t}function fo(n){for(var t=ru.lastIndex=0;ru.test(n);)++t;return t}function eo(n){return n.match(ru)||[]}function oo(n){return n.match(tc)||[]}var n,so="4.17.21",er=200,ho="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",co="Invalid `variable` option passed into `_.template`",or="__lodash_hash_undefined__",lo=500,si="__lodash_placeholder__",tt=1,bu=2,ct=4,lt=1,hi=2,h=1,ut=2,ku=4,y=8,at=16,p=32,vt=64,b=128,kt=256,sr=512,ao=30,vo="...",yo=800,po=16,du=1,wo=2,bo=3,ft=1/0,it=9007199254740991,ko=17976931348623157e292,ci=NaN,w=4294967295,go=w-1,ns=w>>>1,ts=[["ary",b],["bind",h],["bindKey",ut],["curry",y],["curryRight",at],["flip",sr],["partial",p],["partialRight",vt],["rearg",kt]],yt="[object Arguments]",li="[object Array]",is="[object AsyncFunction]",dt="[object Boolean]",gt="[object Date]",rs="[object DOMException]",ai="[object Error]",vi="[object Function]",gu="[object GeneratorFunction]",a="[object Map]",ni="[object Number]",us="[object Null]",k="[object Object]",nf="[object Promise]",fs="[object Proxy]",ti="[object RegExp]",v="[object Set]",ii="[object String]",yi="[object Symbol]",es="[object Undefined]",ri="[object WeakMap]",os="[object WeakSet]",ui="[object ArrayBuffer]",pt="[object DataView]",hr="[object Float32Array]",cr="[object Float64Array]",lr="[object Int8Array]",ar="[object Int16Array]",vr="[object Int32Array]",yr="[object Uint8Array]",pr="[object Uint8ClampedArray]",wr="[object Uint16Array]",br="[object Uint32Array]",ss=/\b__p \+= '';/g,hs=/\b(__p \+=) '' \+/g,cs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tf=/&(?:amp|lt|gt|quot|#39);/g,rf=/[&<>"']/g,ls=RegExp(tf.source),as=RegExp(rf.source),vs=/<%-([\s\S]+?)%>/g,ys=/<%([\s\S]+?)%>/g,uf=/<%=([\s\S]+?)%>/g,ps=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ws=/^\w*$/,bs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,ks=RegExp(kr.source),dr=/^\s+/,ds=/\s/,gs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nh=/\{\n\/\* \[wrapped with (.+)\] \*/,th=/,? & /,ih=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rh=/[()=,{}\[\]\/\s]/,uh=/\\(\\)?/g,fh=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ff=/\w*$/,eh=/^[-+]0x[0-9a-f]+$/i,oh=/^0b[01]+$/i,sh=/^\[object .+?Constructor\]$/,hh=/^0o[0-7]+$/i,ch=/^(?:0|[1-9]\d*)$/,lh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pi=/($^)/,ah=/['\n\r\u2028\u2029\\]/g,wi="\\ud800-\\udfff",ef="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",of="\\u2700-\\u27bf",sf="a-z\\xdf-\\xf6\\xf8-\\xff",hf="A-Z\\xc0-\\xd6\\xd8-\\xde",cf="\\ufe0e\\ufe0f",lf="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gr="['’]",vh="["+wi+"]",af="["+lf+"]",bi="["+ef+"]",vf="\\d+",yh="["+of+"]",yf="["+sf+"]",pf="[^"+wi+lf+vf+of+sf+hf+"]",nu="\\ud83c[\\udffb-\\udfff]",ph="(?:"+bi+"|"+nu+")",wf="[^"+wi+"]",tu="(?:\\ud83c[\\udde6-\\uddff]){2}",iu="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+hf+"]",bf="\\u200d",kf="(?:"+yf+"|"+pf+")",wh="(?:"+wt+"|"+pf+")",df="(?:"+gr+"(?:d|ll|m|re|s|t|ve))?",gf="(?:"+gr+"(?:D|LL|M|RE|S|T|VE))?",ne=ph+"?",te="["+cf+"]?",bh="(?:"+bf+"(?:"+[wf,tu,iu].join("|")+")"+te+ne+")*",ie=te+ne+bh,kh="(?:"+[yh,tu,iu].join("|")+")"+ie,dh="(?:"+[wf+bi+"?",bi,tu,iu,vh].join("|")+")",gh=RegExp(gr,"g"),nc=RegExp(bi,"g"),ru=RegExp(nu+"(?="+nu+")|"+dh+ie,"g"),tc=RegExp([wt+"?"+yf+"+"+df+"(?="+[af,wt,"$"].join("|")+")",wh+"+"+gf+"(?="+[af,wt+kf,"$"].join("|")+")",wt+"?"+kf+"+"+df,wt+"+"+gf,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vf,kh].join("|"),"g"),ic=RegExp("["+bf+wi+ef+cf+"]"),rc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uc=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],fc=-1,i={},t;i[hr]=i[cr]=i[lr]=i[ar]=i[vr]=i[yr]=i[pr]=i[wr]=i[br]=!0;i[yt]=i[li]=i[ui]=i[dt]=i[pt]=i[gt]=i[ai]=i[vi]=i[a]=i[ni]=i[k]=i[ti]=i[v]=i[ii]=i[ri]=!1;t={};t[yt]=t[li]=t[ui]=t[pt]=t[dt]=t[gt]=t[hr]=t[cr]=t[lr]=t[ar]=t[vr]=t[a]=t[ni]=t[k]=t[ti]=t[v]=t[ii]=t[yi]=t[yr]=t[pr]=t[wr]=t[br]=!0;t[ai]=t[vi]=t[ri]=!1;var ec={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},oc=parseFloat,sc=parseInt,re="object"==typeof global&&global&&global.Object===Object&&global,hc="object"==typeof self&&self&&self.Object===Object&&self,u=re||hc||Function("return this")(),uu="object"==typeof exports&&exports&&!exports.nodeType&&exports,et=uu&&"object"==typeof module&&module&&!module.nodeType&&module,ue=et&&et.exports===uu,fu=ue&&re.process,c=function(){try{var n=et&&et.require&&et.require("util").types;return n?n:fu&&fu.binding&&fu.binding("util")}catch(n){}}(),fe=c&&c.isArrayBuffer,ee=c&&c.isDate,oe=c&&c.isMap,se=c&&c.isRegExp,he=c&&c.isSet,ce=c&&c.isTypedArray,cc=nr("length"),lc=tr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),ac=tr({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),vc=tr({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),yc=function ou(c){function et(n){if(uu(n)&&!wi(n)&&!(n instanceof gr)){if(n instanceof gf)return n;if(tu.call(n,"__wrapped__"))return vk(n)}return new gf(n)}function ea(){}function gf(t,i){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!i;this.__index__=0;this.__values__=n}function gr(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=w;this.__views__=[]}function nn(){var n=new gr(this.__wrapped__);return n.__actions__=yf(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=yf(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=yf(this.__views__),n}function tn(){if(this.__filtered__){var n=new gr(this);n.__dir__=-1;n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function rn(){var n=this.__wrapped__.value(),f=this.__dir__,e=wi(n),o=f<0,s=e?n.length:0,h=rrt(0,s,this.__views__),c=h.start,l=h.end,t=l-c,a=o?l:c-1,v=this.__iteratees__,d=v.length,y=0,p=cf(t,this.__takeCount__),r,u,i;if(!e||!o&&s==t&&p==t)return ob(n,this.__actions__);r=[];n:for(;t--&&y<p;){for(a+=f,u=-1,i=n[a];++u<d;){var w=v[u],g=w.iteratee,b=w.type,k=g(i);if(b==wo)i=k;else if(!k){if(b==du)continue n;break n}}r[y++]=i}return r}function wc(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function un(){this.__data__=ra?ra(null):{};this.size=0}function fn(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function en(t){var i=this.__data__,r;return ra?(r=i[t],r===or?n:r):tu.call(i,t)?i[t]:n}function on(t){var i=this.__data__;return ra?i[t]!==n:tu.call(i,t)}function sn(t,i){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=ra&&i===n?or:i,this}function yh(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function hn(){this.__data__=[];this.size=0}function cn(n){var t=this.__data__,i=oa(t,n);return!(i<0)&&(i==t.length-1?t.pop():yv.call(t,i,1),--this.size,!0)}function ln(t){var i=this.__data__,r=oa(i,t);return r<0?n:i[r][1]}function an(n){return oa(this.__data__,n)>-1}function vn(n,t){var i=this.__data__,r=oa(i,n);return r<0?(++this.size,i.push([n,t])):i[r][1]=t,this}function ph(n){var i=-1,r=null==n?0:n.length,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function yn(){this.size=0;this.__data__={hash:new wc,map:new(ta||yh),string:new wc}}function pn(n){var t=da(this,n).delete(n);return this.size-=t?1:0,t}function wn(n){return da(this,n).get(n)}function bn(n){return da(this,n).has(n)}function kn(n,t){var i=da(this,n),r=i.size;return i.set(n,t),this.size+=i.size==r?0:1,this}function bc(n){var t=-1,i=null==n?0:n.length;for(this.__data__=new ph;++t<i;)this.add(n[t])}function dn(n){return this.__data__.set(n,or),this}function gn(n){return this.__data__.has(n)}function fo(n){this.size=(this.__data__=new yh(n)).size}function ntt(){this.__data__=new yh;this.size=0}function ttt(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}function itt(n){return this.__data__.get(n)}function rtt(n){return this.__data__.has(n)}function utt(n,t){var i=this.__data__,r;if(i instanceof yh){if(r=i.__data__,!ta||r.length<er-1)return r.push([n,t]),this.size=++i.size,this;i=this.__data__=new ph(r)}return i.set(n,t),this.size=i.size,this}function sw(n,t){var r=wi(n),u=!r&&il(n),f=!r&&!u&&pc(n),o=!r&&!u&&!f&&al(n),s=r||u||f||o,e=s?rr(n.length,olt):[],h=e.length;for(var i in n)!t&&!tu.call(n,i)||s&&("length"==i||f&&("offset"==i||"parent"==i)||o&&("buffer"==i||"byteLength"==i||"byteOffset"==i)||dh(i,h))||e.push(i);return e}function hw(t){var i=t.length;return i?t[cy(0,i-1)]:n}function ftt(n,t){return ga(yf(n),kc(t,0,n.length))}function ett(n){return ga(yf(n))}function ty(t,i,r){(r===n||eo(t[i],r))&&(r!==n||i in t)||wh(t,i,r)}function vl(t,i,r){var u=t[i];tu.call(t,i)&&eo(u,r)&&(r!==n||i in t)||wh(t,i,r)}function oa(n,t){for(var i=n.length;i--;)if(eo(n[i][0],t))return i;return-1}function ott(n,t,i,r){return yc(n,function(n,u,f){t(r,n,i(n),f)}),r}function cw(n,t){return n&&ih(t,sf(t),n)}function stt(n,t){return n&&ih(t,wf(t),n)}function wh(n,t,i){"__proto__"==t&&pv?pv(n,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[t]=i}function iy(t,i){for(var r=-1,u=i.length,f=ef(u),e=null==t;++r<u;)f[r]=e?n:sp(t,i[r]);return f}function kc(t,i,r){return t===t&&(r!==n&&(t=t<=r?t:r),i!==n&&(t=t>=i?t:i)),t}function ne(i,r,u,f,e,s){var h,l=r&tt,a=r&bu,d=r&ct,v,c,y,p,b,w;if(u&&(h=e?u(i,f,e,s):u(i)),h!==n)return h;if(!ru(i))return i;if(v=wi(i),v){if(h=frt(i),!l)return yf(i,h)}else{if(c=lf(i),y=c==vi||c==gu,pc(i))return hb(i,l);if(c==k||c==yt||y&&!e){if(h=a||y?{}:ek(i),!l)return a?wit(i,stt(h,i)):pit(i,cw(h,i))}else{if(!t[c])return e?i:{};h=ert(i,c,l)}}return(s||(s=new fo),p=s.get(i),p)?p:(s.set(i,h),pg(i)?i.forEach(function(n){h.add(ne(n,r,u,n,i,s))}):yg(i)&&i.forEach(function(n,t){h.set(t,ne(n,r,u,t,i,s))}),b=d?a?np:gy:a?wf:sf,w=v?n:b(i),o(w||i,function(n,t){w&&(t=n,n=i[t]);vl(h,t,ne(n,r,u,t,i,s))}),h)}function htt(n){var t=sf(n);return function(i){return lw(i,n,t)}}function lw(t,i,r){var u=r.length;if(null==t)return!u;for(t=iu(t);u--;){var f=r[u],o=i[f],e=t[f];if(e===n&&!(f in t)||!o(e))return!1}return!0}function aw(t,i,r){if("function"!=typeof t)throw new ro(s);return fa(function(){t.apply(n,r)},i)}function yl(n,t,i,u){var a=-1,h=fi,c=!0,v=n.length,s=[],y=t.length,f,o,l;if(!v)return s;i&&(t=r(t,e(i)));u?(h=ki,c=!1):t.length>=er&&(h=bt,c=!1,t=new bc(t));n:for(;++a<v;)if(f=n[a],o=null==i?f:i(f),f=u||0!==f?f:0,c&&o===o){for(l=y;l--;)if(t[l]===o)continue n;s.push(f)}else h(t,o,u)||s.push(f);return s}function ctt(n,t){var i=!0;return yc(n,function(n,r,u){return i=!!t(n,r,u)}),i}function sa(t,i,r){for(var e,u,o,h,f=-1,s=t.length;++f<s;)e=t[f],u=i(e),null!=u&&(o===n?u===u&&!df(u):r(u,o))&&(o=u,h=e);return h}function ltt(t,i,r,u){var f=t.length;for(r=bi(r),r<0&&(r=-r>f?0:f+r),u=u===n||u>f?f:bi(u),u<0&&(u+=f),u=r>u?0:cd(u);r<u;)t[r++]=i;return t}function vw(n,t){var i=[];return yc(n,function(n,r,u){t(n,r,u)&&i.push(n)}),i}function hf(n,t,i,r,u){var e=-1,o=n.length,f;for(i||(i=srt),u||(u=[]);++e<o;)f=n[e],t>0&&i(f)?t>1?hf(f,t-1,i,r,u):g(u,f):r||(u[u.length]=f);return u}function ds(n,t){return n&&nw(n,t,sf)}function ry(n,t){return n&&eg(n,t,sf)}function ha(n,t){return d(t,function(t){return tc(n[t])})}function dc(t,i){i=ec(i,t);for(var r=0,u=i.length;null!=t&&r<u;)t=t[vh(i[r++])];return r&&r==u?t:n}function yw(n,t,i){var r=t(n);return wi(n)?r:g(r,i(n))}function af(t){return null==t?t===n?es:us:tl&&tl in iu(t)?irt(t):yrt(t)}function uy(n,t){return n>t}function att(n,t){return null!=n&&tu.call(n,t)}function vtt(n,t){return null!=n&&t in iu(n)}function ytt(n,t,i){return n>=cf(t,i)&&n<of(t,i)}function fy(t,i,u){for(var o,p,c,s,h,w,b=u?ki:fi,k=t[0].length,a=t.length,f=a,v=ef(a),y=1/0,l=[];f--;)o=t[f],f&&i&&(o=r(o,e(i))),y=cf(o.length,y),v[f]=!u&&(i||k>=120&&o.length>=120)?new bc(f&&o):n;o=t[0];p=-1;c=v[0];n:for(;++p<k&&l.length<y;)if(s=o[p],h=i?i(s):s,s=u||0!==s?s:0,!(c?bt(c,h):b(l,h,u))){for(f=a;--f;)if(w=v[f],!(w?bt(w,h):b(t[f],h,u)))continue n;c&&c.push(h);l.push(s)}return l}function ptt(n,t,i,r){return ds(n,function(n,u,f){t(r,i(n),u,f)}),r}function pl(t,i,r){i=ec(i,t);t=ck(t,i);var u=null==t?t:t[vh(ie(i))];return null==u?n:f(u,t,r)}function pw(n){return uu(n)&&af(n)==yt}function wtt(n){return uu(n)&&af(n)==ui}function btt(n){return uu(n)&&af(n)==gt}function wl(n,t,i,r,u){return n===t||(null==n||null==t||!uu(n)&&!uu(t)?n!==n&&t!==t:ktt(n,t,i,r,wl,u))}function ktt(n,t,i,r,u,f){var s=wi(n),p=wi(t),e=s?li:lf(n),o=p?li:lf(t),l,a,v,y;e=e==yt?k:e;o=o==yt?k:o;var h=e==k,w=o==k,c=e==o;if(c&&pc(n)){if(!pc(t))return!1;s=!0;h=!1}return c&&!h?(f||(f=new fo),s||al(n)?uk(n,t,i,r,u,f):nrt(n,t,e,i,r,u,f)):!(i&lt)&&(l=h&&tu.call(n,"__wrapped__"),a=w&&tu.call(t,"__wrapped__"),l||a)?(v=l?n.value():n,y=a?t.value():t,f||(f=new fo),u(v,y,i,r,f)):!!c&&(f||(f=new fo),trt(n,t,i,r,u,f))}function dtt(n){return uu(n)&&lf(n)==a}function ey(t,i,r,u){var e=r.length,l=e,a=!u,f,h,c;if(null==t)return!l;for(t=iu(t);e--;)if(f=r[e],a&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1;for(;++e<l;){f=r[e];var o=f[0],s=t[o],v=f[1];if(a&&f[2]){if(s===n&&!(o in t))return!1}else if(h=new fo,u&&(c=u(s,v,o,t,i,h)),!(c===n?wl(v,s,lt|hi,u,h):c))return!1}return!0}function ww(n){return!(!ru(n)||crt(n))&&(tc(n)?alt:sh).test(nl(n))}function gtt(n){return uu(n)&&af(n)==ti}function nit(n){return uu(n)&&lf(n)==v}function tit(n){return uu(n)&&uv(n.length)&&!!i[af(n)]}function bw(n){return"function"==typeof n?n:null==n?bf:"object"==typeof n?wi(n)?gw(n[0],n[1]):dw(n):wd(n)}function oy(n){var i,t;if(!dl(n))return klt(n);i=[];for(t in iu(n))tu.call(n,t)&&"constructor"!=t&&i.push(t);return i}function iit(n){var r,i,t;if(!ru(n))return vrt(n);r=dl(n);i=[];for(t in n)("constructor"!=t||!r&&tu.call(n,t))&&i.push(t);return i}function sy(n,t){return n<t}function kw(n,t){var r=-1,i=pf(n)?ef(n.length):[];return yc(n,function(n,u,f){i[++r]=t(n,u,f)}),i}function dw(n){var t=tp(n);return 1==t.length&&t[0][2]?sk(t[0][0],t[0][1]):function(i){return i===n||ey(i,n,t)}}function gw(t,i){return ip(t)&&ok(i)?sk(vh(t),i):function(r){var u=sp(r,t);return u===n&&u===i?hp(r,t):wl(i,u,lt|hi)}}function ca(t,i,r,u,f){t!==i&&nw(i,function(e,o){if(f||(f=new fo),ru(e))rit(t,i,o,r,ca,u,f);else{var s=u?u(up(t,o),e,o+"",t,i,f):n;s===n&&(s=e);ty(t,o,s)}},wf)}function rit(t,i,r,u,f,e,o){var c=up(t,r),s=up(i,r),y=o.get(s),h,l;if(y)return ty(t,r,y),n;if(h=e?e(c,s,r+"",t,i,o):n,l=h===n,l){var a=wi(s),v=!a&&pc(s),p=!a&&!v&&al(s);h=s;a||v||p?wi(c)?h=c:fu(c)?h=yf(c):v?(l=!1,h=hb(s,!0)):p?(l=!1,h=cb(s,!0)):h=[]:gl(s)||il(s)?(h=c,il(c)?h=ld(c):ru(c)&&!tc(c)||(h=ek(s))):l=!1}l&&(o.set(s,h),f(h,s,u,e,o),o.delete(s));ty(t,r,h)}function nb(t,i){var r=t.length;if(r)return i+=i<0?r:0,dh(i,r)?t[i]:n}function tb(n,t,i){t=t.length?r(t,function(n){return wi(n)?function(t){return dc(t,1===n.length?n[0]:n)}:n}):[bf];var u=-1;return t=r(t,e(wt())),we(kw(n,function(n){return{criteria:r(t,function(t){return t(n)}),index:++u,value:n}}),function(n,t){return yit(n,t,i)})}function uit(n,t){return ib(n,t,function(t,i){return hp(n,i)})}function ib(n,t,i){for(var r,u,f=-1,o=t.length,e={};++f<o;)r=t[f],u=dc(n,r),i(u,r)&&bl(e,ec(r,n),u);return e}function fit(n){return function(t){return dc(t,n)}}function hy(n,t,i,u){var c=u?pe:ot,s=-1,l=t.length,f=n;for(n===t&&(t=yf(t)),i&&(f=r(n,e(i)));++s<l;)for(var o=0,h=t[s],a=i?i(h):h;(o=c(f,a,o,u))>-1;)f!==n&&yv.call(f,o,1),yv.call(n,o,1);return n}function rb(n,t){for(var i,f,r=n?t.length:0,u=r-1;r--;)i=t[r],(r==u||i!==f)&&(f=i,dh(i)?yv.call(n,i,1):vy(n,i));return n}function cy(n,t){return n+bv(rg()*(t-n+1))}function eit(n,t,i,r){for(var e=-1,u=of(wv((t-n)/(i||1)),0),f=ef(u);u--;)f[r?u:++e]=n,n+=i;return f}function ly(n,t){var i="";if(!n||t<1||t>it)return i;do t%2&&(i+=n),t=bv(t/2),t&&(n+=n);while(t);return i}function tr(n,t){return rw(hk(n,t,bf),n+"")}function oit(n){return hw(el(n))}function sit(n,t){var i=el(n);return ga(i,kc(t,0,i.length))}function bl(t,i,r,u){var f,o,h;if(!ru(t))return t;i=ec(i,t);for(var s=-1,c=i.length,l=c-1,e=t;null!=e&&++s<c;){if(f=vh(i[s]),o=r,"__proto__"===f||"constructor"===f||"prototype"===f)return t;s!=l&&(h=e[f],o=u?u(h,f,e):n,o===n&&(o=ru(h)?h:dh(i[s+1])?[]:{}));vl(e,f,o);e=e[f]}return t}function hit(n){return ga(el(n))}function te(n,t,i){var u=-1,r=n.length,f;for(t<0&&(t=-t>r?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0,f=ef(r);++u<r;)f[u]=n[u+t];return f}function cit(n,t){var i;return yc(n,function(n,r,u){return i=t(n,r,u),!i}),!!i}function la(n,t,i){var f=0,r=null==n?f:n.length,e,u;if("number"==typeof t&&t===t&&r<=ns){for(;f<r;)e=f+r>>>1,u=n[e],null!==u&&!df(u)&&(i?u<=t:u<t)?f=e+1:r=e;return r}return ay(n,t,bf,i)}function ay(t,i,r,u){var s=0,e=null==t?0:t.length,v;if(0===e)return 0;i=r(i);for(var y=i!==i,p=null===i,w=df(i),b=i===n;s<e;){var h=bv((s+e)/2),f=r(t[h]),c=f!==n,l=null===f,o=f===f,a=df(f);v=y?u||o:b?o&&(u||c):p?o&&c&&(u||!l):w?o&&c&&!l&&(u||!a):!l&&!a&&(u?f<=i:f<i);v?s=h+1:e=h}return cf(e,go)}function ub(n,t){for(var i,u,e,r=-1,o=n.length,s=0,f=[];++r<o;)i=n[r],u=t?t(i):i,r&&eo(u,e)||(e=u,f[s++]=0===i?0:i);return f}function fb(n){return"number"==typeof n?n:df(n)?ci:+n}function kf(n){if("string"==typeof n)return n;if(wi(n))return r(n,kf)+"";if(df(n))return ug?ug.call(n):"";var t=n+"";return"0"==t&&1/n==-ft?"-0":t}function rc(n,t,i){var l=-1,o=fi,a=n.length,s=!0,e=[],r=e,h,u,f,c;if(i)s=!1,o=ki;else if(a>=er){if(h=t?null:sat(n),h)return oi(h);s=!1;o=bt;r=new bc}else r=t?[]:e;n:for(;++l<a;)if(u=n[l],f=t?t(u):u,u=i||0!==u?u:0,s&&f===f){for(c=r.length;c--;)if(r[c]===f)continue n;t&&r.push(f);e.push(u)}else o(r,f,i)||(r!==e&&r.push(f),e.push(u));return e}function vy(n,t){return t=ec(t,n),n=ck(n,t),null==n||delete n[vh(ie(t))]}function eb(n,t,i,r){return bl(n,t,i(dc(n,t)),r)}function aa(n,t,i,r){for(var f=n.length,u=r?f:-1;(r?u--:++u<f)&&t(n[u],u,n););return i?te(n,r?0:u,r?u+1:f):te(n,r?u+1:0,r?f:u)}function ob(n,t){var i=n;return i instanceof gr&&(i=i.value()),di(t,function(n,t){return t.func.apply(t.thisArg,g([n],t.args))},i)}function yy(n,t,i){var u=n.length,r,f,o,e;if(u<2)return u?rc(n[0]):[];for(r=-1,f=ef(u);++r<u;)for(o=n[r],e=-1;++e<u;)e!=r&&(f[r]=yl(f[r]||o,n[e],t,i));return rc(hf(f,1),t,i)}function sb(t,i,r){for(var u=-1,e=t.length,o=i.length,f={};++u<e;)r(f,t[u],u<o?i[u]:n);return f}function py(n){return fu(n)?n:[]}function wy(n){return"function"==typeof n?n:bf}function ec(n,t){return wi(n)?n:ip(n,t)?[n]:lg(nu(n))}function hc(t,i,r){var u=t.length;return r=r===n?u:r,!i&&r>=u?t:te(t,i,r)}function hb(n,t){if(t)return n.slice();var i=n.length,r=dd?dd(i):new n.constructor(i);return n.copy(r),r}function by(n){var t=new n.constructor(n.byteLength);return new av(t).set(new av(n)),t}function lit(n,t){return new n.constructor(t?by(n.buffer):n.buffer,n.byteOffset,n.byteLength)}function ait(n){var t=new n.constructor(n.source,ff.exec(n));return t.lastIndex=n.lastIndex,t}function vit(n){return ua?iu(ua.call(n)):{}}function cb(n,t){return new n.constructor(t?by(n.buffer):n.buffer,n.byteOffset,n.length)}function lb(t,i){if(t!==i){var o=t!==n,s=null===t,r=t===t,u=df(t),h=i!==n,c=null===i,f=i===i,e=df(i);if(!c&&!e&&!u&&t>i||u&&h&&f&&!c&&!e||s&&h&&f||!o&&f||!r)return 1;if(!s&&!u&&!e&&t<i||e&&o&&r&&!s&&!u||c&&o&&r||!h&&r||!f)return-1}return 0}function yit(n,t,i){for(var u,r=-1,f=n.criteria,e=t.criteria,o=f.length,s=i.length;++r<o;)if(u=lb(f[r],e[r]),u)return r>=s?u:u*("desc"==i[r]?-1:1);return n.index-t.index}function ab(n,t,i,r){for(var u=-1,o=n.length,s=i.length,f=-1,h=t.length,c=of(o-s,0),e=ef(h+c),l=!r;++f<h;)e[f]=t[f];for(;++u<s;)(l||u<o)&&(e[i[u]]=n[u]);for(;c--;)e[f++]=n[u++];return e}function vb(n,t,i,r){for(var o,u=-1,s=n.length,h=-1,c=i.length,e=-1,l=t.length,a=of(s-c,0),f=ef(a+l),v=!r;++u<a;)f[u]=n[u];for(o=u;++e<l;)f[o+e]=t[e];for(;++h<c;)(v||u<s)&&(f[o+i[h]]=n[u++]);return f}function yf(n,t){var i=-1,r=n.length;for(t||(t=ef(r));++i<r;)t[i]=n[i];return t}function ih(t,i,r,u){var h=!r,o,s,f,e;for(r||(r={}),o=-1,s=i.length;++o<s;)f=i[o],e=u?u(r[f],t[f],f,r,t):n,e===n&&(e=t[f]),h?wh(r,f,e):vl(r,f,e);return r}function pit(n,t){return ih(n,iw(n),t)}function wit(n,t){return ih(n,hg(n),t)}function va(n,t){return function(i,r){var u=wi(i)?le:ott,f=t?t():{};return u(i,n,wt(r,2),f)}}function rl(t){return tr(function(i,r){var e=-1,u=r.length,f=u>1?r[u-1]:n,s=u>2?r[2]:n,o;for(f=t.length>3&&"function"==typeof f?(u--,f):n,s&&vf(r[0],r[1],s)&&(f=u<3?n:f,u=1),i=iu(i);++e<u;)o=r[e],o&&t(i,o,e,f);return i})}function yb(n,t){return function(i,r){if(null==i)return i;if(!pf(i))return n(i,r);for(var f=i.length,u=t?f:-1,e=iu(i);(t?u--:++u<f)&&r(e[u],u,e)!==!1;);return i}}function pb(n){return function(t,i,r){for(var u,s=-1,f=iu(t),e=r(t),o=e.length;o--;)if(u=e[n?o:++s],i(f[u],u,f)===!1)break;return t}}function bit(n,t,i){function r(){return(this&&this!==u&&this instanceof r?e:n).apply(f?i:this,arguments)}var f=t&h,e=kl(n);return r}function wb(t){return function(i){i=nu(i);var r=st(i)?l(i):n,u=r?r[0]:i.charAt(0),f=r?hc(r,1).join(""):i.slice(1);return u[t]()+f}}function ul(n){return function(t){return di(pd(yd(t).replace(gh,"")),n,"")}}function kl(n){return function(){var t=arguments,i,r;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}return i=ll(n.prototype),r=n.apply(i,t),ru(r)?r:i}}function kit(t,i,r){function e(){for(var a,s=arguments.length,h=ef(s),c=s,l=fl(e);c--;)h[c]=arguments[c];return a=s<3&&h[0]!==l&&h[s-1]!==l?[]:nt(h,l),s-=a.length,s<r?nk(t,i,ya,e.placeholder,n,h,a,n,n,r-s):f(this&&this!==u&&this instanceof e?o:t,this,h)}var o=kl(t);return e}function bb(t){return function(i,r,u){var e=iu(i),o,f;return pf(i)||(o=wt(r,3),i=sf(i),r=function(n){return o(e[n],n,e)}),f=t(i,r,u),f>-1?e[o?i[f]:f]:n}}function kb(t){return kh(function(i){var o=i.length,e=o,c=gf.prototype.thru,u,r,h,f;for(t&&i.reverse();e--;){if(u=i[e],"function"!=typeof u)throw new ro(s);c&&!r&&"wrapper"==ka(u)&&(r=new gf([],!0))}for(e=r?e:o;++e<o;)u=i[e],h=ka(u),f="wrapper"==h?tw(u):n,r=f&&rp(f[0])&&f[1]==(b|y|p|kt)&&!f[4].length&&1==f[9]?r[ka(f[0])].apply(r,f[3]):1==u.length&&rp(u)?r[h]():r.thru(u);return function(){var u=arguments,f=u[0],n,t;if(r&&1==u.length&&wi(f))return r.plant(f).value();for(n=0,t=o?i[n].apply(this,u):f;++n<o;)t=i[n].call(this,t);return t}})}function ya(t,i,r,f,e,o,s,c,l,a){function v(){for(var it,ut,rt,y,h=arguments.length,n=ef(h),b=h;b--;)n[b]=arguments[b];return(p&&(it=fl(v),ut=ke(n,it)),f&&(n=ab(n,f,e,p)),o&&(n=vb(n,o,s,p)),h-=ut,p&&h<a)?nk(t,i,ya,v.placeholder,r,n,nt(n,it),c,l,a-h):(rt=d?r:this,y=w?rt[t]:t,h=n.length,c?n=prt(n,c):g&&h>1&&n.reverse(),k&&l<h&&(n.length=l),this&&this!==u&&this instanceof v&&(y=tt||kl(y)),y.apply(rt,n))}var k=i&b,d=i&h,w=i&ut,p=i&(y|at),g=i&sr,tt=w?n:kl(t);return v}function db(n,t){return function(i,r){return ptt(i,n,t(r),{})}}function pa(t,i){return function(r,u){var f;if(r===n&&u===n)return i;if(r!==n&&(f=r),u!==n){if(f===n)return u;"string"==typeof r||"string"==typeof u?(r=kf(r),u=kf(u)):(r=fb(r),u=fb(u));f=t(r,u)}return f}}function ky(n){return kh(function(t){return t=r(t,e(wt())),tr(function(i){var r=this;return n(t,function(n){return f(n,r,i)})})})}function wa(t,i){var r,u;return(i=i===n?" ":kf(i),r=i.length,r<2)?r?ly(i,t):i:(u=ly(i,wv(t/ht(i))),st(i)?hc(l(u),0,t).join(""):u.slice(0,t))}function dit(n,t,i,r){function e(){for(var a=-1,c=arguments.length,t=-1,l=r.length,h=ef(l+c),v=this&&this!==u&&this instanceof e?s:n;++t<l;)h[t]=r[t];for(;c--;)h[t++]=arguments[++a];return f(v,o?i:this,h)}var o=t&h,s=kl(n);return e}function gb(t){return function(i,r,u){return u&&"number"!=typeof u&&vf(i,r,u)&&(r=u=n),i=ic(i),r===n?(r=i,i=0):r=ic(r),u=u===n?i<r?1:-1:ic(u),eit(i,r,u,t)}}function ba(n){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=re(t),i=re(i)),n(t,i)}}function nk(t,i,r,u,f,e,o,s,c,l){var a=i&y,b=a?o:n,k=a?n:o,d=a?e:n,g=a?n:e,w,v;return i|=a?p:vt,i&=~(a?vt:p),i&ku||(i&=~(h|ut)),w=[t,i,f,d,b,g,k,s,c,l],v=r.apply(n,w),rp(t)&&cg(v,w),v.placeholder=u,lk(v,t,i)}function dy(n){var t=ol[n];return function(n,i){if(n=re(n),i=null==i?0:cf(bi(i),292),i&&ig(n)){var r=(nu(n)+"e").split("e");return r=(nu(t(r[0]+"e"+(+r[1]+i)))+"e").split("e"),+(r[0]+"e"+(+r[1]-i))}return t(n)}}function tk(n){return function(t){var i=lf(t);return i==a?fr(t):i==v?io(t):be(t,n(t))}}function bh(t,i,r,u,f,e,o,c){var w=i&ut,a,b,k,v,l,d;if(!w&&"function"!=typeof t)throw new ro(s);return a=u?u.length:0,(a||(i&=~(p|vt),u=f=n),o=o===n?o:of(bi(o),0),c=c===n?c:bi(c),a-=f?f.length:0,i&vt)&&(b=u,k=f,u=f=n),v=w?n:tw(t),l=[t,i,r,u,f,b,k,e,o,c],d=(v&&art(l,v),t=l[0],i=l[1],r=l[2],u=l[3],f=l[4],c=l[9]=l[9]===n?w?0:t.length:of(l[9]-a,0),!c&&i&(y|at)&&(i&=~(y|at)),i&&i!=h)?i==y||i==at?kit(t,i,c):i!=p&&i!=(h|p)||f.length?ya.apply(n,l):dit(t,i,r,u):bit(t,i,r),lk((v?og:cg)(d,l),t,i)}function ik(t,i,r,u){return t===n||eo(t,sl[r])&&!tu.call(u,r)?i:t}function rk(t,i,r,u,f,e){return ru(t)&&ru(i)&&(e.set(i,t),ca(t,i,n,rk,e),e.delete(i)),t}function git(t){return gl(t)?n:t}function uk(t,i,r,u,f,e){var w=r&lt,l=t.length,b=i.length,a,v,o,h,p;if(l!=b&&!(w&&b>l))return!1;if(a=e.get(t),v=e.get(i),a&&v)return a==i&&v==t;var s=-1,c=!0,y=r&hi?new bc:n;for(e.set(t,i),e.set(i,t);++s<l;){if(o=t[s],h=i[s],u&&(p=w?u(h,o,s,i,t,e):u(o,h,s,t,i,e)),p!==n){if(p)continue;c=!1;break}if(y){if(!gi(i,function(n,t){if(!bt(y,t)&&(o===n||f(o,n,r,u,e)))return y.push(t)})){c=!1;break}}else if(o!==h&&!f(o,h,r,u,e)){c=!1;break}}return e.delete(t),e.delete(i),c}function nrt(n,t,i,r,u,f,e){var o,h,s,c;switch(i){case pt:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer;t=t.buffer;case ui:return!(n.byteLength!=t.byteLength||!f(new av(n),new av(t)));case dt:case gt:case ni:return eo(+n,+t);case ai:return n.name==t.name&&n.message==t.message;case ti:case ii:return n==t+"";case a:o=fr;case v:return(h=r&lt,o||(o=oi),n.size!=t.size&&!h)?!1:(s=e.get(n),s)?s==t:(r|=hi,e.set(n,t),c=uk(o(n),o(t),r,u,f,e),e.delete(n),c);case yi:if(ua)return ua.call(n)==ua.call(t)}return!1}function trt(t,i,r,u,f,e){var y=r&lt,w=gy(t),b=w.length,s,o,k,d,h,p,c,l,g,a,v;if(b!=gy(i).length&&!y)return!1;for(s=b;s--;)if(o=w[s],!(y?o in i:tu.call(i,o)))return!1;if(k=e.get(t),d=e.get(i),k&&d)return k==i&&d==t;for(h=!0,e.set(t,i),e.set(i,t),p=y;++s<b;){if(o=w[s],c=t[o],l=i[o],u&&(g=y?u(l,c,o,i,t,e):u(c,l,o,t,i,e)),!(g===n?c===l||f(c,l,r,u,e):g)){h=!1;break}p||(p="constructor"==o)}return h&&!p&&(a=t.constructor,v=i.constructor,a!=v&&"constructor"in t&&"constructor"in i&&!("function"==typeof a&&a instanceof a&&"function"==typeof v&&v instanceof v)&&(h=!1)),e.delete(t),e.delete(i),h}function kh(t){return rw(hk(t,n,wk),t+"")}function gy(n){return yw(n,sf,iw)}function np(n){return yw(n,wf,hg)}function ka(n){for(var i,r,t=n.name+"",u=cl[t],f=tu.call(cl,t)?u.length:0;f--;)if(i=u[f],r=i.func,null==r||r==n)return i.name;return t}function fl(n){return(tu.call(et,"placeholder")?et:n).placeholder}function wt(){var n=et.iteratee||lp;return n=n===lp?bw:n,arguments.length?n(arguments[0],arguments[1]):n}function da(n,t){var i=n.__data__;return hrt(t)?i["string"==typeof t?"string":"hash"]:i.map}function tp(n){for(var r,u,t=sf(n),i=t.length;i--;)r=t[i],u=n[r],t[i]=[r,u,ok(u)];return t}function gc(t,i){var r=ge(t,i);return ww(r)?r:n}function irt(t){var u=tu.call(t,tl),f=t[tl],i,r;try{t[tl]=n;i=!0}catch(t){}return r=cv.call(t),i&&(u?t[tl]=f:delete t[tl]),r}function rrt(n,t,i){for(var f,r,u=-1,e=i.length;++u<e;){f=i[u];r=f.size;switch(f.type){case"drop":n+=r;break;case"dropRight":t-=r;break;case"take":t=cf(t,n+r);break;case"takeRight":n=of(n,t-r)}}return{start:n,end:t}}function urt(n){var t=n.match(nh);return t?t[1].split(th):[]}function fk(n,t,i){var u;t=ec(t,n);for(var f=-1,r=t.length,e=!1;++f<r;){if(u=vh(t[f]),!(e=null!=n&&i(n,u)))break;n=n[u]}return e||++f!=r?e:(r=null==n?0:n.length,!!r&&uv(r)&&dh(u,r)&&(wi(n)||il(n)))}function frt(n){var i=n.length,t=new n.constructor(i);return i&&"string"==typeof n[0]&&tu.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function ek(n){return"function"!=typeof n.constructor||dl(n)?{}:ll(vv(n))}function ert(n,t,i){var r=n.constructor;switch(t){case ui:return by(n);case dt:case gt:return new r(+n);case pt:return lit(n,i);case hr:case cr:case lr:case ar:case vr:case yr:case pr:case wr:case br:return cb(n,i);case a:return new r;case ni:case ii:return new r(n);case ti:return ait(n);case v:return new r;case yi:return vit(n)}}function ort(n,t){var i=t.length,r;return i?(r=i-1,t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),n.replace(gs,"{\n/* [wrapped with "+t+"] */\n")):n}function srt(n){return wi(n)||il(n)||!!(tg&&n&&n[tg])}function dh(n,t){var i=typeof n;return t=null==t?it:t,!!t&&("number"==i||"symbol"!=i&&ch.test(n))&&n>-1&&n%1==0&&n<t}function vf(n,t,i){if(!ru(i))return!1;var r=typeof t;return!!("number"==r?pf(i)&&dh(t,i.length):"string"==r&&t in i)&&eo(i[t],n)}function ip(n,t){if(wi(n))return!1;var i=typeof n;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=n&&!df(n))||ws.test(n)||!ps.test(n)||null!=t&&n in iu(t)}function hrt(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}function rp(n){var r=ka(n),t=et[r],i;return"function"!=typeof t||!(r in gr.prototype)?!1:n===t?!0:(i=tw(t),!!i&&n===i[0])}function crt(n){return!!kd&&kd in n}function dl(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||sl)}function ok(n){return n===n&&!ru(n)}function sk(t,i){return function(r){return null!=r&&r[t]===i&&(i!==n||t in iu(r))}}function lrt(n){var t=iv(n,function(n){return i.size===lo&&i.clear(),n}),i=t.cache;return t}function art(n,t){var f=n[1],u=t[1],e=f|u,o=e<(h|ut|b),s=u==b&&f==y||u==b&&f==kt&&n[7].length<=t[8]||u==(b|kt)&&t[7].length<=t[8]&&f==y,i,r;return!o&&!s?n:(u&h&&(n[2]=t[2],e|=f&h?0:ku),i=t[3],i&&(r=n[3],n[3]=r?ab(r,i,t[4]):i,n[4]=r?nt(n[3],si):t[4]),i=t[5],i&&(r=n[5],n[5]=r?vb(r,i,t[6]):i,n[6]=r?nt(n[5],si):t[6]),i=t[7],i&&(n[7]=i),u&b&&(n[8]=null==n[8]?t[8]:cf(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=e,n)}function vrt(n){var t=[],i;if(null!=n)for(i in iu(n))t.push(i);return t}function yrt(n){return cv.call(n)}function hk(t,i,r){return i=of(i===n?t.length-1:i,0),function(){for(var u,e=arguments,n=-1,o=of(e.length-i,0),s=ef(o);++n<o;)s[n]=e[i+n];for(n=-1,u=ef(i+1);++n<i;)u[n]=e[n];return u[i]=r(s),f(t,this,u)}}function ck(n,t){return t.length<2?n:dc(n,te(t,0,-1))}function prt(t,i){for(var u,f=t.length,r=cf(i.length,f),e=yf(t);r--;)u=i[r],t[r]=dh(u,f)?e[u]:n;return t}function up(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}function lk(n,t,i){var r=t+"";return rw(n,ort(r,wrt(urt(r),i)))}function ak(t){var i=0,r=0;return function(){var u=dlt(),f=po-(u-r);if(r=u,f>0){if(++i>=yo)return arguments[0]}else i=0;return t.apply(n,arguments)}}function ga(t,i){var r=-1,f=t.length,o=f-1,u,e;for(i=i===n?f:i;++r<i;)u=cy(r,o),e=t[u],t[u]=t[r],t[r]=e;return t.length=i,t}function vh(n){if("string"==typeof n||df(n))return n;var t=n+"";return"0"==t&&1/n==-ft?"-0":t}function nl(n){if(null!=n){try{return hv.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function wrt(n,t){return o(ts,function(i){var r="_."+i[0];t&i[1]&&!fi(n,r)&&n.push(r)}),n.sort()}function vk(n){if(n instanceof gr)return n.clone();var t=new gf(n.__wrapped__,n.__chain__);return t.__actions__=yf(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function brt(t,i,r){var u;if(i=(r?vf(t,i,r):i===n)?1:of(bi(i),0),u=null==t?0:t.length,!u||i<1)return[];for(var f=0,o=0,e=ef(wv(u/i));f<u;)e[o++]=te(t,f,f+=i);return e}function krt(n){for(var t,i=-1,u=null==n?0:n.length,f=0,r=[];++i<u;)t=n[i],t&&(r[f++]=t);return r}function drt(){var n=arguments.length;if(!n)return[];for(var r=ef(n-1),t=arguments[0],i=n;i--;)r[i-1]=arguments[i];return g(wi(t)?yf(t):[t],hf(r,1))}function grt(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),te(t,i<0?0:i,u)):[]}function nut(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,te(t,0,i<0?0:i)):[]}function tut(n,t){return n&&n.length?aa(n,wt(t,3),!0,!0):[]}function iut(n,t){return n&&n.length?aa(n,wt(t,3),!0):[]}function rut(n,t,i,r){var u=null==n?0:n.length;return u?(i&&"number"!=typeof i&&vf(n,t,i)&&(i=0,r=u),ltt(n,t,i,r)):[]}function yk(n,t,i){var u=null==n?0:n.length,r;return u?(r=null==i?0:bi(i),r<0&&(r=of(u+r,0)),ei(n,wt(t,3),r)):-1}function pk(t,i,r){var f=null==t?0:t.length,u;return f?(u=f-1,r!==n&&(u=bi(r),u=r<0?of(f+u,0):cf(u,f-1)),ei(t,wt(i,3),u,!0)):-1}function wk(n){return(null==n?0:n.length)?hf(n,1):[]}function uut(n){return(null==n?0:n.length)?hf(n,ft):[]}function fut(t,i){return(null==t?0:t.length)?(i=i===n?1:bi(i),hf(t,i)):[]}function eut(n){for(var t,i=-1,u=null==n?0:n.length,r={};++i<u;)t=n[i],r[t[0]]=t[1];return r}function bk(t){return t&&t.length?t[0]:n}function out(n,t,i){var u=null==n?0:n.length,r;return u?(r=null==i?0:bi(i),r<0&&(r=of(u+r,0)),ot(n,t,r)):-1}function sut(n){return(null==n?0:n.length)?te(n,0,-1):[]}function hut(n,t){return null==n?"":blt.call(n,t)}function ie(t){var i=null==t?0:t.length;return i?t[i-1]:n}function cut(t,i,r){var f=null==t?0:t.length,u;return f?(u=f,r!==n&&(u=bi(r),u=u<0?of(f+u,0):cf(u,f-1)),i===i?uo(t,i,u):ei(t,hu,u,!0)):-1}function lut(t,i){return t&&t.length?nb(t,bi(i)):n}function kk(n,t){return n&&n.length&&t&&t.length?hy(n,t):n}function aut(n,t,i){return n&&n.length&&t&&t.length?hy(n,t,wt(i,2)):n}function vut(t,i,r){return t&&t.length&&i&&i.length?hy(t,i,n,r):t}function yut(n,t){var r=[],u;if(!n||!n.length)return r;var i=-1,f=[],e=n.length;for(t=wt(t,3);++i<e;)u=n[i],t(u,i,n)&&(r.push(u),f.push(i));return rb(n,f),r}function fp(n){return null==n?n:nat.call(n)}function put(t,i,r){var u=null==t?0:t.length;return u?(r&&"number"!=typeof r&&vf(t,i,r)?(i=0,r=u):(i=null==i?0:bi(i),r=r===n?u:bi(r)),te(t,i,r)):[]}function wut(n,t){return la(n,t)}function but(n,t,i){return ay(n,t,wt(i,2))}function kut(n,t){var r=null==n?0:n.length,i;return r&&(i=la(n,t),i<r&&eo(n[i],t))?i:-1}function dut(n,t){return la(n,t,!0)}function gut(n,t,i){return ay(n,t,wt(i,2),!0)}function nft(n,t){if(null==n?0:n.length){var i=la(n,t,!0)-1;if(eo(n[i],t))return i}return-1}function tft(n){return n&&n.length?ub(n):[]}function ift(n,t){return n&&n.length?ub(n,wt(t,2)):[]}function rft(n){var t=null==n?0:n.length;return t?te(n,1,t):[]}function uft(t,i,r){return t&&t.length?(i=r||i===n?1:bi(i),te(t,0,i<0?0:i)):[]}function fft(t,i,r){var u=null==t?0:t.length;return u?(i=r||i===n?1:bi(i),i=u-i,te(t,i<0?0:i,u)):[]}function eft(n,t){return n&&n.length?aa(n,wt(t,3),!1,!0):[]}function oft(n,t){return n&&n.length?aa(n,wt(t,3)):[]}function sft(n){return n&&n.length?rc(n):[]}function hft(n,t){return n&&n.length?rc(n,wt(t,2)):[]}function cft(t,i){return i="function"==typeof i?i:n,t&&t.length?rc(t,n,i):[]}function ep(n){if(!n||!n.length)return[];var t=0;return n=d(n,function(n){if(fu(n))return t=of(n.length,t),!0}),rr(t,function(t){return r(n,nr(t))})}function dk(t,i){if(!t||!t.length)return[];var u=ep(t);return null==i?u:r(u,function(t){return f(i,n,t)})}function lft(n,t){return sb(n||[],t||[],vl)}function aft(n,t){return sb(n||[],t||[],bl)}function gk(n){var t=et(n);return t.__chain__=!0,t}function vft(n,t){return t(n),n}function nv(n,t){return t(n)}function yft(){return gk(this)}function pft(){return new gf(this.value(),this.__chain__)}function wft(){this.__values__===n&&(this.__values__=hd(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?n:this.__values__[this.__index__++]}}function bft(){return this}function kft(t){for(var u,i,f,r=this;r instanceof ea;)i=vk(r),i.__index__=0,i.__values__=n,u?f.__wrapped__=i:u=i,f=i,r=r.__wrapped__;return f.__wrapped__=t,u}function dft(){var i=this.__wrapped__,t;return i instanceof gr?(t=i,this.__actions__.length&&(t=new gr(this)),t=t.reverse(),t.__actions__.push({func:nv,args:[fp],thisArg:n}),new gf(t,this.__chain__)):this.thru(fp)}function gft(){return ob(this.__wrapped__,this.__actions__)}function net(t,i,r){var u=wi(t)?eu:ctt;return r&&vf(t,i,r)&&(i=n),u(t,wt(i,3))}function tet(n,t){return(wi(n)?d:vw)(n,wt(t,3))}function iet(n,t){return hf(tv(n,t),1)}function ret(n,t){return hf(tv(n,t),ft)}function uet(t,i,r){return r=r===n?1:bi(r),hf(tv(t,i),r)}function nd(n,t){return(wi(n)?o:yc)(n,wt(t,3))}function td(n,t){return(wi(n)?ae:fg)(n,wt(t,3))}function fet(n,t,i,r){n=pf(n)?n:el(n);i=i&&!r?bi(i):0;var u=n.length;return i<0&&(i=of(u+i,0)),fv(n)?i<=u&&n.indexOf(t,i)>-1:!!u&&ot(n,t,i)>-1}function tv(n,t){return(wi(n)?r:kw)(n,wt(t,3))}function eet(t,i,r,u){return null==t?[]:(wi(i)||(i=null==i?[]:[i]),r=u?n:r,wi(r)||(r=null==r?[]:[r]),tb(t,i,r))}function oet(n,t,i){var r=wi(n)?di:lu,u=arguments.length<3;return r(n,wt(t,4),i,u,yc)}function set(n,t,i){var r=wi(n)?ve:lu,u=arguments.length<3;return r(n,wt(t,4),i,u,fg)}function het(n,t){return(wi(n)?d:vw)(n,rv(wt(t,3)))}function cet(n){return(wi(n)?hw:oit)(n)}function aet(t,i,r){return i=(r?vf(t,i,r):i===n)?1:bi(i),(wi(t)?ftt:sit)(t,i)}function vet(n){return(wi(n)?ett:hit)(n)}function yet(n){if(null==n)return 0;if(pf(n))return fv(n)?ht(n):n.length;var t=lf(n);return t==a||t==v?n.size:oy(n).length}function pet(t,i,r){var u=wi(t)?gi:cit;return r&&vf(t,i,r)&&(i=n),u(t,wt(i,3))}function wet(n,t){if("function"!=typeof t)throw new ro(s);return n=bi(n),function(){if(--n<1)return t.apply(this,arguments)}}function id(t,i,r){return i=r?n:i,i=t&&null==i?t.length:i,bh(t,b,n,n,n,n,i)}function rd(t,i){var r;if("function"!=typeof i)throw new ro(s);return t=bi(t),function(){return--t>0&&(r=i.apply(this,arguments)),t<=1&&(i=n),r}}function ud(t,i,r){i=r?n:i;var u=bh(t,y,n,n,n,n,n,i);return u.placeholder=ud.placeholder,u}function fd(t,i,r){i=r?n:i;var u=bh(t,at,n,n,n,n,n,i);return u.placeholder=fd.placeholder,u}function ed(t,i,r){function y(i){var r=e,u=o;return e=o=n,c=i,h=t.apply(u,r)}function g(n){return c=n,u=fa(a,i),d?y(n):h}function nt(n){var r=n-f,u=n-c,t=i-r;return l?cf(t,v-u):t}function b(t){var r=t-f,u=t-c;return f===n||r>=i||r<0||l&&u>=v}function a(){var t=gv();return b(t)?k(t):(u=fa(a,nt(t)),n)}function k(t){return u=n,w&&e?y(t):(e=o=n,h)}function tt(){u!==n&&sg(u);c=0;e=f=o=u=n}function it(){return u===n?h:k(gv())}function p(){var t=gv(),r=b(t);if(e=arguments,o=this,f=t,r){if(u===n)return g(f);if(l)return sg(u),u=fa(a,i),y(f)}return u===n&&(u=fa(a,i)),h}var e,o,v,h,u,f,c=0,d=!1,l=!1,w=!0;if("function"!=typeof t)throw new ro(s);return i=re(i)||0,ru(r)&&(d=!!r.leading,l="maxWait"in r,v=l?of(re(r.maxWait)||0,i):v,w="trailing"in r?!!r.trailing:w),p.cancel=tt,p.flush=it,p}function bet(n){return bh(n,sr)}function iv(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new ro(s);var i=function(){var u=arguments,f=t?t.apply(this,u):u[0],r=i.cache,e;return r.has(f)?r.get(f):(e=n.apply(this,u),i.cache=r.set(f,e)||r,e)};return i.cache=new(iv.Cache||ph),i}function rv(n){if("function"!=typeof n)throw new ro(s);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function ket(n){return rd(2,n)}function det(t,i){if("function"!=typeof t)throw new ro(s);return i=i===n?i:bi(i),tr(t,i)}function get(n,t){if("function"!=typeof n)throw new ro(s);return t=null==t?0:of(bi(t),0),tr(function(i){var r=i[t],u=hc(i,0,t);return r&&g(u,r),f(n,this,u)})}function not(n,t,i){var r=!0,u=!0;if("function"!=typeof n)throw new ro(s);return ru(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),ed(n,t,{leading:r,maxWait:t,trailing:u})}function tot(n){return id(n,1)}function iot(n,t){return fw(wy(t),n)}function rot(){if(!arguments.length)return[];var n=arguments[0];return wi(n)?n:[n]}function uot(n){return ne(n,ct)}function fot(t,i){return i="function"==typeof i?i:n,ne(t,ct,i)}function eot(n){return ne(n,tt|ct)}function oot(t,i){return i="function"==typeof i?i:n,ne(t,tt|ct,i)}function sot(n,t){return null==t||lw(n,t,sf(t))}function eo(n,t){return n===t||n!==n&&t!==t}function pf(n){return null!=n&&uv(n.length)&&!tc(n)}function fu(n){return uu(n)&&pf(n)}function hot(n){return n===!0||n===!1||uu(n)&&af(n)==dt}function cot(n){return uu(n)&&1===n.nodeType&&!gl(n)}function lot(n){var t,i;if(null==n)return!0;if(pf(n)&&(wi(n)||"string"==typeof n||"function"==typeof n.splice||pc(n)||al(n)||il(n)))return!n.length;if(t=lf(n),t==a||t==v)return!n.size;if(dl(n))return!oy(n).length;for(i in n)if(tu.call(n,i))return!1;return!0}function aot(n,t){return wl(n,t)}function vot(t,i,r){r="function"==typeof r?r:n;var u=r?r(t,i):n;return u===n?wl(t,i,n,r):!!u}function op(n){if(!uu(n))return!1;var t=af(n);return t==ai||t==rs||"string"==typeof n.message&&"string"==typeof n.name&&!gl(n)}function yot(n){return"number"==typeof n&&ig(n)}function tc(n){if(!ru(n))return!1;var t=af(n);return t==vi||t==gu||t==is||t==fs}function od(n){return"number"==typeof n&&n==bi(n)}function uv(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=it}function ru(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function uu(n){return null!=n&&"object"==typeof n}function pot(n,t){return n===t||ey(n,t,tp(t))}function wot(t,i,r){return r="function"==typeof r?r:n,ey(t,i,tp(i),r)}function bot(n){return sd(n)&&n!=+n}function kot(n){if(hat(n))throw new wp(ho);return ww(n)}function dot(n){return null===n}function got(n){return null==n}function sd(n){return"number"==typeof n||uu(n)&&af(n)==ni}function gl(n){var i,t;return!uu(n)||af(n)!=k?!1:(i=vv(n),null===i)?!0:(t=tu.call(i,"constructor")&&i.constructor,"function"==typeof t&&t instanceof t&&hv.call(t)==clt)}function nst(n){return od(n)&&n>=-it&&n<=it}function fv(n){return"string"==typeof n||!wi(n)&&uu(n)&&af(n)==ii}function df(n){return"symbol"==typeof n||uu(n)&&af(n)==yi}function tst(t){return t===n}function ist(n){return uu(n)&&lf(n)==ri}function rst(n){return uu(n)&&af(n)==os}function hd(n){if(!n)return[];if(pf(n))return fv(n)?l(n):yf(n);if(na&&n[na])return to(n[na]());var t=lf(n);return(t==a?fr:t==v?oi:el)(n)}function ic(n){return n?(n=re(n),n===ft||n===-ft)?(n<0?-1:1)*ko:n===n?n:0:0===n?n:0}function bi(n){var t=ic(n),i=t%1;return t===t?i?t-i:t:0}function cd(n){return n?kc(bi(n),0,w):0}function re(n){var t,i;return"number"==typeof n?n:df(n)?ci:(ru(n)&&(t="function"==typeof n.valueOf?n.valueOf():n,n=ru(t)?t+"":t),"string"!=typeof n)?0===n?n:+n:(n=au(n),i=oh.test(n),i||hh.test(n)?sc(n.slice(2),i?2:8):eh.test(n)?ci:+n)}function ld(n){return ih(n,wf(n))}function ust(n){return n?kc(bi(n),-it,it):0===n?n:0}function nu(n){return null==n?"":kf(n)}function fst(n,t){var i=ll(n);return null==t?i:cw(i,t)}function est(n,t){return su(n,wt(t,3),ds)}function ost(n,t){return su(n,wt(t,3),ry)}function sst(n,t){return null==n?n:nw(n,wt(t,3),wf)}function hst(n,t){return null==n?n:eg(n,wt(t,3),wf)}function cst(n,t){return n&&ds(n,wt(t,3))}function lst(n,t){return n&&ry(n,wt(t,3))}function ast(n){return null==n?[]:ha(n,sf(n))}function vst(n){return null==n?[]:ha(n,wf(n))}function sp(t,i,r){var u=null==t?n:dc(t,i);return u===n?r:u}function yst(n,t){return null!=n&&fk(n,t,att)}function hp(n,t){return null!=n&&fk(n,t,vtt)}function sf(n){return pf(n)?sw(n):oy(n)}function wf(n){return pf(n)?sw(n,!0):iit(n)}function pst(n,t){var i={};return t=wt(t,3),ds(n,function(n,r,u){wh(i,t(n,r,u),n)}),i}function wst(n,t){var i={};return t=wt(t,3),ds(n,function(n,r,u){wh(i,r,t(n,r,u))}),i}function bst(n,t){return ad(n,rv(wt(t)))}function ad(n,t){if(null==n)return{};var i=r(np(n),function(n){return[n]});return t=wt(t),ib(n,i,function(n,i){return t(n,i[0])})}function kst(t,i,r){var e,f,u;for(i=ec(i,t),e=-1,f=i.length,f||(f=1,t=n);++e<f;)u=null==t?n:t[vh(i[e])],u===n&&(e=f,u=r),t=tc(u)?u.call(t):u;return t}function dst(n,t,i){return null==n?n:bl(n,t,i)}function gst(t,i,r,u){return u="function"==typeof u?u:n,null==t?t:bl(t,i,r,u)}function nht(n,t,i){var u=wi(n),f=u||pc(n)||al(n),r;return(t=wt(t,4),null==i)&&(r=n&&n.constructor,i=f?u?new r:[]:ru(n)&&tc(r)?ll(vv(n)):{}),(f?o:ds)(n,function(n,r,u){return t(i,n,r,u)}),i}function tht(n,t){return null==n||vy(n,t)}function iht(n,t,i){return null==n?n:eb(n,t,wy(i))}function rht(t,i,r,u){return u="function"==typeof u?u:n,null==t?t:eb(t,i,wy(r),u)}function el(n){return null==n?[]:ur(n,sf(n))}function uht(n){return null==n?[]:ur(n,wf(n))}function fht(t,i,r){return r===n&&(r=i,i=n),r!==n&&(r=re(r),r=r===r?r:0),i!==n&&(i=re(i),i=i===i?i:0),kc(re(t),i,r)}function eht(t,i,r){return i=ic(i),r===n?(r=i,i=0):r=ic(r),t=re(t),ytt(t,i,r)}function oht(t,i,r){var f,u;return((r&&"boolean"!=typeof r&&vf(t,i,r)&&(i=r=n),r===n&&("boolean"==typeof i?(r=i,i=n):"boolean"==typeof t&&(r=t,t=n)),t===n&&i===n?(t=0,i=1):(t=ic(t),i===n?(i=t,t=0):i=ic(i)),t>i)&&(f=t,t=i,i=f),r||t%1||i%1)?(u=rg(),cf(t+u*(i-t+oc("1e-"+((u+"").length-1))),i)):cy(t,i)}function vd(n){return ow(nu(n).toLowerCase())}function yd(n){return n=nu(n),n&&n.replace(lh,lc).replace(nc,"")}function sht(t,i,r){var u,f;return t=nu(t),i=kf(i),u=t.length,r=r===n?u:kc(bi(r),0,u),f=r,r-=i.length,r>=0&&t.slice(r,f)==i}function hht(n){return n=nu(n),n&&as.test(n)?n.replace(rf,ac):n}function cht(n){return n=nu(n),n&&ks.test(n)?n.replace(kr,"\\$&"):n}function lht(n,t,i){var r,u;return(n=nu(n),t=bi(t),r=t?ht(n):0,!t||r>=t)?n:(u=(t-r)/2,wa(bv(u),i)+n+wa(wv(u),i))}function aht(n,t,i){n=nu(n);t=bi(t);var r=t?ht(n):0;return t&&r<t?n+wa(t-r,i):n}function vht(n,t,i){n=nu(n);t=bi(t);var r=t?ht(n):0;return t&&r<t?wa(t-r,i)+n:n}function yht(n,t,i){return i||null==t?t=0:t&&(t=+t),glt(nu(n).replace(dr,""),t||0)}function pht(t,i,r){return i=(r?vf(t,i,r):i===n)?1:bi(i),ly(nu(t),i)}function wht(){var n=arguments,t=nu(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function bht(t,i,r){return r&&"number"!=typeof r&&vf(t,i,r)&&(i=r=n),(r=r===n?w:r>>>0)?(t=nu(t),t&&("string"==typeof i||null!=i&&!ew(i))&&(i=kf(i),!i&&st(t))?hc(l(t),0,r):t.split(i,r)):[]}function kht(n,t,i){return n=nu(n),i=null==i?0:kc(bi(i),0,n.length),t=kf(t),n.slice(i,i+t.length)==t}function dht(t,i,r){var s=et.templateSettings,f,e;r&&vf(t,i,r)&&(i=n);t=nu(t);i=ny({},i,s,ik);var h,o,c=ny({},i.imports,s.imports,ik),l=sf(c),y=ur(c,l),a=0,v=i.interpolate||pi,u="__p += '",p=bp((i.escape||pi).source+"|"+v.source+"|"+(v===uf?fh:pi).source+"|"+(i.evaluate||pi).source+"|$","g"),w="//# sourceURL="+(tu.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++fc+"]")+"\n";if(t.replace(p,function(n,i,r,f,e,s){return r||(r=f),u+=t.slice(a,s).replace(ah,de),i&&(h=!0,u+="' +\n__e("+i+") +\n'"),e&&(o=!0,u+="';\n"+e+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),a=s+n.length,n}),u+="';\n",f=tu.call(i,"variable")&&i.variable,f){if(rh.test(f))throw new wp(co);}else u="with (obj) {\n"+u+"\n}\n";if(u=(o?u.replace(ss,""):u).replace(hs,"$1").replace(cs,"$1;"),u="function("+(f||"obj")+") {\n"+(f?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(h?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",e=gg(function(){return bd(l,w+"return "+u).apply(n,y)}),e.source=u,op(e))throw e;return e}function ght(n){return nu(n).toLowerCase()}function nct(n){return nu(n).toUpperCase()}function tct(t,i,r){if(t=nu(t),t&&(r||i===n))return au(t);if(!t||!(i=kf(i)))return t;var u=l(t),f=l(i);return hc(u,vu(u,f),yu(u,f)+1).join("")}function ict(t,i,r){if(t=nu(t),t&&(r||i===n))return t.slice(0,wu(t)+1);if(!t||!(i=kf(i)))return t;var u=l(t);return hc(u,0,yu(u,l(i))+1).join("")}function rct(t,i,r){if(t=nu(t),t&&(r||i===n))return t.replace(dr,"");if(!t||!(i=kf(i)))return t;var u=l(t);return hc(u,vu(u,l(i))).join("")}function uct(t,i){var s=ao,e=vo,r,h,o,u,f,v,y,c,a;if(ru(i)&&(r="separator"in i?i.separator:r,s="length"in i?bi(i.length):s,e="omission"in i?kf(i.omission):e),t=nu(t),h=t.length,st(t)&&(o=l(t),h=o.length),s>=h)return t;if(u=s-ht(e),u<1)return e;if(f=o?hc(o,0,u).join(""):t.slice(0,u),r===n)return f+e;if(o&&(u+=f.length-u),ew(r)){if(t.slice(u).search(r)){for(y=f,r.global||(r=bp(r.source,nu(ff.exec(r))+"g")),r.lastIndex=0;v=r.exec(y);)c=v.index;f=f.slice(0,c===n?u:c)}}else t.indexOf(kf(r),u)!=u&&(a=f.lastIndexOf(r),a>-1&&(f=f.slice(0,a)));return f+e}function fct(n){return n=nu(n),n&&ls.test(n)?n.replace(tf,vc):n}function pd(t,i,r){return t=nu(t),i=r?n:i,i===n?no(t)?oo(t):ye(t):t.match(i)||[]}function ect(n){var t=null==n?0:n.length,i=wt();return n=t?r(n,function(n){if("function"!=typeof n[1])throw new ro(s);return[i(n[0]),n[1]]}):[],tr(function(i){for(var u,r=-1;++r<t;)if(u=n[r],f(u[0],this,i))return f(u[1],this,i)})}function oct(n){return htt(ne(n,tt))}function cp(n){return function(){return n}}function sct(n,t){return null==n||n!==n?t:n}function bf(n){return n}function lp(n){return bw("function"==typeof n?n:ne(n,tt))}function hct(n){return dw(ne(n,tt))}function cct(n,t){return gw(n,ne(t,tt))}function ap(n,t,i){var u=sf(t),r=ha(t,u),f,e;return null!=i||ru(t)&&(r.length||!u.length)||(i=t,t=n,n=this,r=ha(t,sf(t))),f=!(ru(i)&&"chain"in i&&!i.chain),e=tc(n),o(r,function(i){var r=t[i];n[i]=r;e&&(n.prototype[i]=function(){var i=this.__chain__,t;return f||i?(t=n(this.__wrapped__),(t.__actions__=yf(this.__actions__)).push({func:r,args:arguments,thisArg:n}),t.__chain__=i,t):r.apply(n,g([this.value()],arguments))})}),n}function lct(){return u._===this&&(u._=llt),this}function vp(){}function act(n){return n=bi(n),tr(function(t){return nb(t,n)})}function wd(n){return ip(n)?nr(vh(n)):fit(n)}function vct(t){return function(i){return null==t?n:dc(t,i)}}function yp(){return[]}function pp(){return!1}function yct(){return{}}function pct(){return""}function wct(){return!0}function bct(n,t){var i,r,u;if(n=bi(n),n<1||n>it)return[];for(i=w,r=cf(n,w),t=wt(t),n-=w,u=rr(r,t);++i<n;)t(i);return u}function kct(n){return wi(n)?r(n,vh):df(n)?[n]:yf(lg(nu(n)))}function dct(n){var t=++hlt;return nu(n)+t}function gct(t){return t&&t.length?sa(t,bf,uy):n}function nlt(t,i){return t&&t.length?sa(t,wt(i,2),uy):n}function tlt(n){return cu(n,bf)}function ilt(n,t){return cu(n,wt(t,2))}function rlt(t){return t&&t.length?sa(t,bf,sy):n}function ult(t,i){return t&&t.length?sa(t,wt(i,2),sy):n}function flt(n){return n&&n.length?ir(n,bf):0}function elt(n,t){return n&&n.length?ir(n,wt(t,2)):0}c=null==c?u:rt.defaults(u.Object(),c,rt.pick(u,uc));var ef=c.Array,ev=c.Date,wp=c.Error,bd=c.Function,ol=c.Math,iu=c.Object,bp=c.RegExp,olt=c.String,ro=c.TypeError,ov=ef.prototype,slt=bd.prototype,sl=iu.prototype,sv=c["__core-js_shared__"],hv=slt.toString,tu=sl.hasOwnProperty,hlt=0,kd=function(){var n=/[^.]+$/.exec(sv&&sv.keys&&sv.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),cv=sl.toString,clt=hv.call(iu),llt=u._,alt=bp("^"+hv.call(tu).replace(kr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lv=ue?c.Buffer:n,cc=c.Symbol,av=c.Uint8Array,dd=lv?lv.allocUnsafe:n,vv=pu(iu.getPrototypeOf,iu),gd=iu.create,ng=sl.propertyIsEnumerable,yv=ov.splice,tg=cc?cc.isConcatSpreadable:n,na=cc?cc.iterator:n,tl=cc?cc.toStringTag:n,pv=function(){try{var n=gc(iu,"defineProperty");return n({},"",{}),n}catch(n){}}(),vlt=c.clearTimeout!==u.clearTimeout&&c.clearTimeout,ylt=ev&&ev.now!==u.Date.now&&ev.now,plt=c.setTimeout!==u.setTimeout&&c.setTimeout,wv=ol.ceil,bv=ol.floor,kp=iu.getOwnPropertySymbols,wlt=lv?lv.isBuffer:n,ig=c.isFinite,blt=ov.join,klt=pu(iu.keys,iu),of=ol.max,cf=ol.min,dlt=ev.now,glt=c.parseInt,rg=ol.random,nat=ov.reverse,dp=gc(c,"DataView"),ta=gc(c,"Map"),gp=gc(c,"Promise"),hl=gc(c,"Set"),ia=gc(c,"WeakMap"),ra=gc(iu,"create"),kv=ia&&new ia,cl={},tat=nl(dp),iat=nl(ta),rat=nl(gp),uat=nl(hl),fat=nl(ia),dv=cc?cc.prototype:n,ua=dv?dv.valueOf:n,ug=dv?dv.toString:n,ll=function(){function t(){}return function(i){if(!ru(i))return{};if(gd)return gd(i);t.prototype=i;var r=new t;return t.prototype=n,r}}();et.templateSettings={escape:vs,evaluate:ys,interpolate:uf,variable:"",imports:{_:et}};et.prototype=ea.prototype;et.prototype.constructor=et;gf.prototype=ll(ea.prototype);gf.prototype.constructor=gf;gr.prototype=ll(ea.prototype);gr.prototype.constructor=gr;wc.prototype.clear=un;wc.prototype.delete=fn;wc.prototype.get=en;wc.prototype.has=on;wc.prototype.set=sn;yh.prototype.clear=hn;yh.prototype.delete=cn;yh.prototype.get=ln;yh.prototype.has=an;yh.prototype.set=vn;ph.prototype.clear=yn;ph.prototype.delete=pn;ph.prototype.get=wn;ph.prototype.has=bn;ph.prototype.set=kn;bc.prototype.add=bc.prototype.push=dn;bc.prototype.has=gn;fo.prototype.clear=ntt;fo.prototype.delete=ttt;fo.prototype.get=itt;fo.prototype.has=rtt;fo.prototype.set=utt;var yc=yb(ds),fg=yb(ry,!0),nw=pb(),eg=pb(!0),og=kv?function(n,t){return kv.set(n,t),n}:bf,eat=pv?function(n,t){return pv(n,"toString",{configurable:!0,enumerable:!1,value:cp(t),writable:!0})}:bf,oat=tr,sg=vlt||function(n){return u.clearTimeout(n)},sat=hl&&1/oi(new hl([,-0]))[1]==ft?function(n){return new hl(n)}:vp,tw=kv?function(n){return kv.get(n)}:vp,iw=kp?function(n){return null==n?[]:(n=iu(n),d(kp(n),function(t){return ng.call(n,t)}))}:yp,hg=kp?function(n){for(var t=[];n;)g(t,iw(n)),n=vv(n);return t}:yp,lf=af;(dp&&lf(new dp(new ArrayBuffer(1)))!=pt||ta&&lf(new ta)!=a||gp&&lf(gp.resolve())!=nf||hl&&lf(new hl)!=v||ia&&lf(new ia)!=ri)&&(lf=function(t){var i=af(t),r=i==k?t.constructor:n,u=r?nl(r):"";if(u)switch(u){case tat:return pt;case iat:return a;case rat:return nf;case uat:return v;case fat:return ri}return i});var hat=sv?tc:pp,cg=ak(og),fa=plt||function(n,t){return u.setTimeout(n,t)},rw=ak(eat),lg=lrt(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(bs,function(n,i,r,u){t.push(r?u.replace(uh,"$1"):i||n)}),t}),cat=tr(function(n,t){return fu(n)?yl(n,hf(t,1,fu,!0)):[]}),lat=tr(function(t,i){var r=ie(i);return fu(r)&&(r=n),fu(t)?yl(t,hf(i,1,fu,!0),wt(r,2)):[]}),aat=tr(function(t,i){var r=ie(i);return fu(r)&&(r=n),fu(t)?yl(t,hf(i,1,fu,!0),n,r):[]}),vat=tr(function(n){var t=r(n,py);return t.length&&t[0]===n[0]?fy(t):[]}),yat=tr(function(t){var u=ie(t),i=r(t,py);return u===ie(i)?u=n:i.pop(),i.length&&i[0]===t[0]?fy(i,wt(u,2)):[]}),pat=tr(function(t){var i=ie(t),u=r(t,py);return i="function"==typeof i?i:n,i&&u.pop(),u.length&&u[0]===t[0]?fy(u,n,i):[]}),wat=tr(kk),bat=kh(function(n,t){var i=null==n?0:n.length,u=iy(n,t);return rb(n,r(t,function(n){return dh(n,i)?+n:n}).sort(lb)),u}),kat=tr(function(n){return rc(hf(n,1,fu,!0))}),dat=tr(function(t){var i=ie(t);return fu(i)&&(i=n),rc(hf(t,1,fu,!0),wt(i,2))}),gat=tr(function(t){var i=ie(t);return i="function"==typeof i?i:n,rc(hf(t,1,fu,!0),n,i)}),nvt=tr(function(n,t){return fu(n)?yl(n,t):[]}),tvt=tr(function(n){return yy(d(n,fu))}),ivt=tr(function(t){var i=ie(t);return fu(i)&&(i=n),yy(d(t,fu),wt(i,2))}),rvt=tr(function(t){var i=ie(t);return i="function"==typeof i?i:n,yy(d(t,fu),n,i)}),uvt=tr(ep),fvt=tr(function(t){var r=t.length,i=r>1?t[r-1]:n;return i="function"==typeof i?(t.pop(),i):n,dk(t,i)}),evt=kh(function(t){var r=t.length,u=r?t[0]:0,i=this.__wrapped__,f=function(n){return iy(n,t)};return!(r>1||this.__actions__.length)&&i instanceof gr&&dh(u)?(i=i.slice(u,+u+(r?1:0)),i.__actions__.push({func:nv,args:[f],thisArg:n}),new gf(i,this.__chain__).thru(function(t){return r&&!t.length&&t.push(n),t})):this.thru(f)}),ovt=va(function(n,t,i){tu.call(n,i)?++n[i]:wh(n,i,1)}),svt=bb(yk),hvt=bb(pk),cvt=va(function(n,t,i){tu.call(n,i)?n[i].push(t):wh(n,i,[t])}),lvt=tr(function(n,t,i){var u=-1,e="function"==typeof t,r=pf(n)?ef(n.length):[];return yc(n,function(n){r[++u]=e?f(t,n,i):pl(n,t,i)}),r}),avt=va(function(n,t,i){wh(n,i,t)}),vvt=va(function(n,t,i){n[i?0:1].push(t)},function(){return[[],[]]}),yvt=tr(function(n,t){if(null==n)return[];var i=t.length;return i>1&&vf(n,t[0],t[1])?t=[]:i>2&&vf(t[0],t[1],t[2])&&(t=[t[0]]),tb(n,hf(t,1),[])}),gv=ylt||function(){return u.Date.now()},uw=tr(function(n,t,i){var r=h,u;return i.length&&(u=nt(i,fl(uw)),r|=p),bh(n,r,t,i,u)}),ag=tr(function(n,t,i){var r=h|ut,u;return i.length&&(u=nt(i,fl(ag)),r|=p),bh(t,r,n,i,u)}),pvt=tr(function(n,t){return aw(n,1,t)}),wvt=tr(function(n,t,i){return aw(n,re(t)||0,i)});iv.Cache=ph;var bvt=oat(function(n,t){t=1==t.length&&wi(t[0])?r(t[0],e(wt())):r(hf(t,1),e(wt()));var i=t.length;return tr(function(r){for(var u=-1,e=cf(r.length,i);++u<e;)r[u]=t[u].call(this,r[u]);return f(n,this,r)})}),fw=tr(function(t,i){return bh(t,p,n,i,nt(i,fl(fw)))}),vg=tr(function(t,i){return bh(t,vt,n,i,nt(i,fl(vg)))}),kvt=kh(function(t,i){return bh(t,kt,n,n,n,i)}),dvt=ba(uy),gvt=ba(function(n,t){return n>=t}),il=pw(function(){return arguments}())?pw:function(n){return uu(n)&&tu.call(n,"callee")&&!ng.call(n,"callee")},wi=ef.isArray,nyt=fe?e(fe):wtt,pc=wlt||pp,tyt=ee?e(ee):btt,yg=oe?e(oe):dtt,ew=se?e(se):gtt,pg=he?e(he):nit,al=ce?e(ce):tit,iyt=ba(sy),ryt=ba(function(n,t){return n<=t}),uyt=rl(function(t,i){if(dl(i)||pf(i))return ih(i,sf(i),t),n;for(var r in i)tu.call(i,r)&&vl(t,r,i[r])}),wg=rl(function(n,t){ih(t,wf(t),n)}),ny=rl(function(n,t,i,r){ih(t,wf(t),n,r)}),fyt=rl(function(n,t,i,r){ih(t,sf(t),n,r)}),eyt=kh(iy),oyt=tr(function(t,i){var r,f;t=iu(t);var e=-1,u=i.length,o=u>2?i[2]:n;for(o&&vf(i[0],i[1],o)&&(u=1);++e<u;)for(var s=i[e],h=wf(s),c=-1,l=h.length;++c<l;)r=h[c],f=t[r],(f===n||eo(f,sl[r])&&!tu.call(t,r))&&(t[r]=s[r]);return t}),syt=tr(function(t){return t.push(n,rk),f(bg,n,t)}),hyt=db(function(n,t,i){null!=t&&"function"!=typeof t.toString&&(t=cv.call(t));n[t]=i},cp(bf)),cyt=db(function(n,t,i){null!=t&&"function"!=typeof t.toString&&(t=cv.call(t));tu.call(n,t)?n[t].push(i):n[t]=[i]},wt),lyt=tr(pl),ayt=rl(function(n,t,i){ca(n,t,i)}),bg=rl(function(n,t,i,r){ca(n,t,i,r)}),vyt=kh(function(n,t){var i={},u,f;if(null==n)return i;for(u=!1,t=r(t,function(t){return t=ec(t,n),u||(u=t.length>1),t}),ih(n,np(n),i),u&&(i=ne(i,tt|bu|ct,git)),f=t.length;f--;)vy(i,t[f]);return i}),yyt=kh(function(n,t){return null==n?{}:uit(n,t)}),kg=tk(sf),dg=tk(wf),pyt=ul(function(n,t,i){return t=t.toLowerCase(),n+(i?vd(t):t)}),wyt=ul(function(n,t,i){return n+(i?"-":"")+t.toLowerCase()}),byt=ul(function(n,t,i){return n+(i?" ":"")+t.toLowerCase()}),kyt=wb("toLowerCase"),dyt=ul(function(n,t,i){return n+(i?"_":"")+t.toLowerCase()}),gyt=ul(function(n,t,i){return n+(i?" ":"")+ow(t)}),npt=ul(function(n,t,i){return n+(i?" ":"")+t.toUpperCase()}),ow=wb("toUpperCase"),gg=tr(function(t,i){try{return f(t,n,i)}catch(f){return op(f)?f:new wp(f)}}),tpt=kh(function(n,t){return o(t,function(t){t=vh(t);wh(n,t,uw(n[t],n))}),n}),ipt=kb(),rpt=kb(!0),upt=tr(function(n,t){return function(i){return pl(i,n,t)}}),fpt=tr(function(n,t){return function(i){return pl(n,i,t)}}),ept=ky(r),opt=ky(eu),spt=ky(gi),hpt=gb(),cpt=gb(!0),lpt=pa(function(n,t){return n+t},0),apt=dy("ceil"),vpt=pa(function(n,t){return n/t},1),ypt=dy("floor"),ppt=pa(function(n,t){return n*t},1),wpt=dy("round"),bpt=pa(function(n,t){return n-t},0);return et.after=wet,et.ary=id,et.assign=uyt,et.assignIn=wg,et.assignInWith=ny,et.assignWith=fyt,et.at=eyt,et.before=rd,et.bind=uw,et.bindAll=tpt,et.bindKey=ag,et.castArray=rot,et.chain=gk,et.chunk=brt,et.compact=krt,et.concat=drt,et.cond=ect,et.conforms=oct,et.constant=cp,et.countBy=ovt,et.create=fst,et.curry=ud,et.curryRight=fd,et.debounce=ed,et.defaults=oyt,et.defaultsDeep=syt,et.defer=pvt,et.delay=wvt,et.difference=cat,et.differenceBy=lat,et.differenceWith=aat,et.drop=grt,et.dropRight=nut,et.dropRightWhile=tut,et.dropWhile=iut,et.fill=rut,et.filter=tet,et.flatMap=iet,et.flatMapDeep=ret,et.flatMapDepth=uet,et.flatten=wk,et.flattenDeep=uut,et.flattenDepth=fut,et.flip=bet,et.flow=ipt,et.flowRight=rpt,et.fromPairs=eut,et.functions=ast,et.functionsIn=vst,et.groupBy=cvt,et.initial=sut,et.intersection=vat,et.intersectionBy=yat,et.intersectionWith=pat,et.invert=hyt,et.invertBy=cyt,et.invokeMap=lvt,et.iteratee=lp,et.keyBy=avt,et.keys=sf,et.keysIn=wf,et.map=tv,et.mapKeys=pst,et.mapValues=wst,et.matches=hct,et.matchesProperty=cct,et.memoize=iv,et.merge=ayt,et.mergeWith=bg,et.method=upt,et.methodOf=fpt,et.mixin=ap,et.negate=rv,et.nthArg=act,et.omit=vyt,et.omitBy=bst,et.once=ket,et.orderBy=eet,et.over=ept,et.overArgs=bvt,et.overEvery=opt,et.overSome=spt,et.partial=fw,et.partialRight=vg,et.partition=vvt,et.pick=yyt,et.pickBy=ad,et.property=wd,et.propertyOf=vct,et.pull=wat,et.pullAll=kk,et.pullAllBy=aut,et.pullAllWith=vut,et.pullAt=bat,et.range=hpt,et.rangeRight=cpt,et.rearg=kvt,et.reject=het,et.remove=yut,et.rest=det,et.reverse=fp,et.sampleSize=aet,et.set=dst,et.setWith=gst,et.shuffle=vet,et.slice=put,et.sortBy=yvt,et.sortedUniq=tft,et.sortedUniqBy=ift,et.split=bht,et.spread=get,et.tail=rft,et.take=uft,et.takeRight=fft,et.takeRightWhile=eft,et.takeWhile=oft,et.tap=vft,et.throttle=not,et.thru=nv,et.toArray=hd,et.toPairs=kg,et.toPairsIn=dg,et.toPath=kct,et.toPlainObject=ld,et.transform=nht,et.unary=tot,et.union=kat,et.unionBy=dat,et.unionWith=gat,et.uniq=sft,et.uniqBy=hft,et.uniqWith=cft,et.unset=tht,et.unzip=ep,et.unzipWith=dk,et.update=iht,et.updateWith=rht,et.values=el,et.valuesIn=uht,et.without=nvt,et.words=pd,et.wrap=iot,et.xor=tvt,et.xorBy=ivt,et.xorWith=rvt,et.zip=uvt,et.zipObject=lft,et.zipObjectDeep=aft,et.zipWith=fvt,et.entries=kg,et.entriesIn=dg,et.extend=wg,et.extendWith=ny,ap(et,et),et.add=lpt,et.attempt=gg,et.camelCase=pyt,et.capitalize=vd,et.ceil=apt,et.clamp=fht,et.clone=uot,et.cloneDeep=eot,et.cloneDeepWith=oot,et.cloneWith=fot,et.conformsTo=sot,et.deburr=yd,et.defaultTo=sct,et.divide=vpt,et.endsWith=sht,et.eq=eo,et.escape=hht,et.escapeRegExp=cht,et.every=net,et.find=svt,et.findIndex=yk,et.findKey=est,et.findLast=hvt,et.findLastIndex=pk,et.findLastKey=ost,et.floor=ypt,et.forEach=nd,et.forEachRight=td,et.forIn=sst,et.forInRight=hst,et.forOwn=cst,et.forOwnRight=lst,et.get=sp,et.gt=dvt,et.gte=gvt,et.has=yst,et.hasIn=hp,et.head=bk,et.identity=bf,et.includes=fet,et.indexOf=out,et.inRange=eht,et.invoke=lyt,et.isArguments=il,et.isArray=wi,et.isArrayBuffer=nyt,et.isArrayLike=pf,et.isArrayLikeObject=fu,et.isBoolean=hot,et.isBuffer=pc,et.isDate=tyt,et.isElement=cot,et.isEmpty=lot,et.isEqual=aot,et.isEqualWith=vot,et.isError=op,et.isFinite=yot,et.isFunction=tc,et.isInteger=od,et.isLength=uv,et.isMap=yg,et.isMatch=pot,et.isMatchWith=wot,et.isNaN=bot,et.isNative=kot,et.isNil=got,et.isNull=dot,et.isNumber=sd,et.isObject=ru,et.isObjectLike=uu,et.isPlainObject=gl,et.isRegExp=ew,et.isSafeInteger=nst,et.isSet=pg,et.isString=fv,et.isSymbol=df,et.isTypedArray=al,et.isUndefined=tst,et.isWeakMap=ist,et.isWeakSet=rst,et.join=hut,et.kebabCase=wyt,et.last=ie,et.lastIndexOf=cut,et.lowerCase=byt,et.lowerFirst=kyt,et.lt=iyt,et.lte=ryt,et.max=gct,et.maxBy=nlt,et.mean=tlt,et.meanBy=ilt,et.min=rlt,et.minBy=ult,et.stubArray=yp,et.stubFalse=pp,et.stubObject=yct,et.stubString=pct,et.stubTrue=wct,et.multiply=ppt,et.nth=lut,et.noConflict=lct,et.noop=vp,et.now=gv,et.pad=lht,et.padEnd=aht,et.padStart=vht,et.parseInt=yht,et.random=oht,et.reduce=oet,et.reduceRight=set,et.repeat=pht,et.replace=wht,et.result=kst,et.round=wpt,et.runInContext=ou,et.sample=cet,et.size=yet,et.snakeCase=dyt,et.some=pet,et.sortedIndex=wut,et.sortedIndexBy=but,et.sortedIndexOf=kut,et.sortedLastIndex=dut,et.sortedLastIndexBy=gut,et.sortedLastIndexOf=nft,et.startCase=gyt,et.startsWith=kht,et.subtract=bpt,et.sum=flt,et.sumBy=elt,et.template=dht,et.times=bct,et.toFinite=ic,et.toInteger=bi,et.toLength=cd,et.toLower=ght,et.toNumber=re,et.toSafeInteger=ust,et.toString=nu,et.toUpper=nct,et.trim=tct,et.trimEnd=ict,et.trimStart=rct,et.truncate=uct,et.unescape=fct,et.uniqueId=dct,et.upperCase=npt,et.upperFirst=ow,et.each=nd,et.eachRight=td,et.first=bk,ap(et,function(){var n={};return ds(et,function(t,i){tu.call(et.prototype,i)||(n[i]=t)}),n}(),{chain:!1}),et.VERSION=so,o(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){et[n].placeholder=et}),o(["drop","take"],function(t,i){gr.prototype[t]=function(r){r=r===n?1:of(bi(r),0);var u=this.__filtered__&&!i?new gr(this):this.clone();return u.__filtered__?u.__takeCount__=cf(r,u.__takeCount__):u.__views__.push({size:cf(r,w),type:t+(u.__dir__<0?"Right":"")}),u};gr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),o(["filter","map","takeWhile"],function(n,t){var i=t+1,r=i==du||i==bo;gr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:wt(n,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),o(["head","last"],function(n,t){var i="take"+(t?"Right":"");gr.prototype[n]=function(){return this[i](1).value()[0]}}),o(["initial","tail"],function(n,t){var i="drop"+(t?"":"Right");gr.prototype[n]=function(){return this.__filtered__?new gr(this):this[i](1)}}),gr.prototype.compact=function(){return this.filter(bf)},gr.prototype.find=function(n){return this.filter(n).head()},gr.prototype.findLast=function(n){return this.reverse().find(n)},gr.prototype.invokeMap=tr(function(n,t){return"function"==typeof n?new gr(this):this.map(function(i){return pl(i,n,t)})}),gr.prototype.reject=function(n){return this.filter(rv(wt(n)))},gr.prototype.slice=function(t,i){t=bi(t);var r=this;return r.__filtered__&&(t>0||i<0)?new gr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),i!==n&&(i=bi(i),r=i<0?r.dropRight(-i):r.take(i-t)),r)},gr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},gr.prototype.toArray=function(){return this.take(w)},ds(gr.prototype,function(t,i){var e=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),u=et[r?"take"+("last"==i?"Right":""):i],f=r||/^find/.test(i);u&&(et.prototype[i]=function(){var o=this.__wrapped__,s=r?[1]:arguments,h=o instanceof gr,a=s[0],c=h||wi(o),v=function(n){var t=u.apply(et,g([n],s));return r&&l?t[0]:t},i;c&&e&&"function"==typeof a&&1!=a.length&&(h=c=!1);var l=this.__chain__,w=!!this.__actions__.length,y=f&&!l,p=h&&!w;return!f&&c?(o=p?o:new gr(this),i=t.apply(o,s),i.__actions__.push({func:nv,args:[v],thisArg:n}),new gf(i,l)):y&&p?t.apply(this,s):(i=this.thru(v),y?r?i.value()[0]:i.value():i)})}),o(["pop","push","shift","sort","splice","unshift"],function(n){var t=ov[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);et.prototype[n]=function(){var u=arguments,n;return r&&!this.__chain__?(n=this.value(),t.apply(wi(n)?n:[],u)):this[i](function(n){return t.apply(wi(n)?n:[],u)})}}),ds(gr.prototype,function(n,t){var r=et[t],i;r&&(i=r.name+"",tu.call(cl,i)||(cl[i]=[]),cl[i].push({name:t,func:r}))}),cl[ya(n,ut).name]=[{name:"wrapper",func:n}],gr.prototype.clone=nn,gr.prototype.reverse=tn,gr.prototype.value=rn,et.prototype.at=evt,et.prototype.chain=yft,et.prototype.commit=pft,et.prototype.next=wft,et.prototype.plant=kft,et.prototype.reverse=dft,et.prototype.toJSON=et.prototype.valueOf=et.prototype.value=gft,et.prototype.first=et.prototype.head,na&&(et.prototype[na]=bft),et},rt=yc();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(u._=rt,define(function(){return rt})):et?((et.exports=rt)._=rt,uu._=rt):u._=rt}.call(this);!function(n,t){function r(n){n.hasOwnProperty("data-simple-scrollbar")||Object.defineProperty(n,"data-simple-scrollbar",new SimpleScrollbar(n))}function e(n,i){function u(n){var t=n.pageY-r;r=n.pageY;f(function(){i.el.scrollTop+=t/i.scrollRatio})}function e(){n.classList.remove("ss-grabbed");t.body.classList.remove("ss-grabbed");t.removeEventListener("mousemove",u);t.removeEventListener("mouseup",e)}var r;n.addEventListener("mousedown",function(i){return r=i.pageY,n.classList.add("ss-grabbed"),t.body.classList.add("ss-grabbed"),t.addEventListener("mousemove",u),t.addEventListener("mouseup",e),!1})}function i(n){for(this.target=n,this.bar='<div class="ss-scroll">',this.wrapper=t.createElement("div"),this.wrapper.setAttribute("class","ss-wrapper"),this.el=t.createElement("div"),this.el.setAttribute("class","ss-content"),this.wrapper.appendChild(this.el);this.target.firstChild;)this.el.appendChild(this.target.firstChild);this.target.appendChild(this.wrapper);this.target.insertAdjacentHTML("beforeend",this.bar);this.bar=this.target.lastChild;e(this.bar,this);this.moveBar();this.el.addEventListener("scroll",this.moveBar.bind(this));this.el.addEventListener("mouseenter",this.moveBar.bind(this));this.target.classList.add("ss-container");var i=window.getComputedStyle(n);"0px"===i.height&&"0px"!==i["max-height"]&&(n.style.height=i["max-height"])}function u(){for(var i=t.querySelectorAll("*[ss-container]"),n=0;n<i.length;n++)r(i[n])}var f=n.requestAnimationFrame||n.setImmediate||function(n){return setTimeout(n,0)};i.prototype={moveBar:function(){var t=this.el.scrollHeight,i=this.el.clientHeight,n=this;this.scrollRatio=i/t;f(function(){n.scrollRatio>=1?n.bar.classList.add("ss-hidden"):(n.bar.classList.remove("ss-hidden"),n.bar.style.cssText="height:"+100*n.scrollRatio+"%; top:"+n.el.scrollTop/t*100+"%;right:-"+(n.target.clientWidth-n.bar.clientWidth)+"px;")})}};t.addEventListener("DOMContentLoaded",u);i.initEl=r;i.initAll=u;n.SimpleScrollbar=i}(window,document),function(n,t,i,r){var u=n(t);n.fn.lazyload=function(i){function o(){var t=0;e.each(function(){var i=n(this);if((!f.skip_invisible||i.is(":visible"))&&!n.abovethetop(this,f)&&!n.leftofbegin(this,f))if(n.belowthefold(this,f)||n.rightoffold(this,f)){if(++t>f.failure_limit)return!1}else i.trigger("appear"),t=0})}var e=this,s,f={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:t,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return i&&(r!==i.failurelimit&&(i.failure_limit=i.failurelimit,delete i.failurelimit),r!==i.effectspeed&&(i.effect_speed=i.effectspeed,delete i.effectspeed),n.extend(f,i)),s=f.container===r||f.container===t?u:n(f.container),0===f.event.indexOf("scroll")&&s.bind(f.event,function(){return o()}),this.each(function(){var t=this,i=n(t);t.loaded=!1;i.one("appear",function(){if(!this.loaded){if(f.appear){var r=e.length;f.appear.call(t,r,f)}n("<img />").bind("load",function(){var r,u;i.hide().attr("src",i.data(f.data_attribute))[f.effect](f.effect_speed);t.loaded=!0;r=n.grep(e,function(n){return!n.loaded});e=n(r);f.load&&(u=e.length,f.load.call(t,u,f))}).attr("src",i.data(f.data_attribute))}});0!==f.event.indexOf("scroll")&&i.bind(f.event,function(){t.loaded||i.trigger("appear")})}),u.bind("resize",function(){o()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&u.bind("pageshow",function(t){t.originalEvent.persisted&&e.each(function(){n(this).trigger("appear")})}),n(t).load(function(){o()}),this};n.belowthefold=function(i,f){var e;return e=f.container===r||f.container===t?u.height()+u.scrollTop():n(f.container).offset().top+n(f.container).height(),e<=n(i).offset().top-f.threshold};n.rightoffold=function(i,f){var e;return e=f.container===r||f.container===t?u.width()+u.scrollLeft():n(f.container).offset().left+n(f.container).width(),e<=n(i).offset().left-f.threshold};n.abovethetop=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollTop():n(f.container).offset().top,e>=n(i).offset().top+f.threshold+n(i).height()};n.leftofbegin=function(i,f){var e;return e=f.container===r||f.container===t?u.scrollLeft():n(f.container).offset().left,e>=n(i).offset().left+f.threshold+n(i).width()};n.inviewport=function(t,i){return!n.rightoffold(t,i)&&!n.leftofbegin(t,i)&&!n.belowthefold(t,i)&&!n.abovethetop(t,i)};n.extend(n.expr[":"],{"below-the-fold":function(t){return n.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return n.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!n.rightoffold(t,{threshold:0})},"in-viewport":function(t){return n.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!n.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return n.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!n.rightoffold(t,{threshold:0})}})}(jQuery,window,document),function(){function e(n){var t=n.getBoundingClientRect(),i=Math.max(document.documentElement.clientHeight,window.innerHeight);n=$(n);const r=n.closest(".tabs-content"),u=r.length?n.closest(".tabs-item")[0].style.visibility==="visible":!0;return!(t.bottom<0||t.top-i>=0)&&u}function n(){Object.values(r).forEach(function(n,t){!n.classList.contains("ajax-success")&&e(n,"visible")&&(BC.AJAX.load(t,n),n.classList.add("ajax-success"))})}function o(t){var i=document.querySelector(t.target.dataset.target);i.classList.remove("ajax-success");i.dataset.ajaxHref=t.target.value;n()}function u(n,t){return n=="last"?t.find("a:last"):t.find("a:eq("+n+")")}function h(n){n.on("click",function(t){var i=$(this),r=$("input.tCheck",i),e=i.parents(".check:eq(0)"),h=t.target.tagName,c=r.attr("type"),u,o,s,f;if(h==="A")event&&(t.preventDefault(),event.returnValue=!1,t.target.target==="_blank"?window.open(t.target.href):self.location=t.target.href);else{if(t.preventDefault(),$("span.radio",i).hasClass("checked"))return;c==="radio"?($("span.radio",e).removeClass("checked"),$("input.tCheck",e).removeAttr("checked"),$("span.radio",i).toggleClass("checked"),r.prop("checked","checked")):(u=n.find(".tCheck")[0],u.checked?(u.checked=!1,n[0].getElementsByClassName("select-text__change").length>0&&(n[0].getElementsByClassName("select-text__change")[0].textContent="Selectionner",n[0].classList.remove("allchecked"))):(u.checked=!0,n[0].getElementsByClassName("select-text__change").length>0&&(n[0].getElementsByClassName("select-text__change")[0].textContent="Selectionnée",n[0].classList.add("allchecked"))),o=document.getElementsByClassName("selectall"),o.length>0&&(s=$(".tCheck").length,f=0,$(".button.btn-all").remove(),$(".tCheck").each(function(){var n=$(this)[0].checked;n&&(f=f+1)}),$(".selectall").removeClass("allchecked").find("label").text("Tout sélectionner"),f===s?($(".selectall").find("label").text("Sélectionnées"),$(".selectall input")[0].checked=!0):$(".selectall input")[0].checked=!1));r.valid&&r.valid()}})}function c(){var h=document.querySelector('[data-refresh="true"]'),e=!0,o=function(){var t,n,i;e||(e=!0,t=document.createElement("div"),n=document.createElement("button"),n.onclick=function(){self.location.reload()},n.innerHTML='<soan class="bt-label">Nouvelles actualités disponibles <b>&#8634;<\/b><\/span>',n.className="btn-more refresh-button",t.className="refresh-zone",t.appendChild(n),i=document.body,i.parentNode.insertBefore(t,i))},r=location.pathname,c=r==="/"||r.indexOf("/actualites/")!==-1&&r.substr(-5)!==".html",t,f;if(c&&setTimeout(o,(h?60:15)*6e4),t=document.querySelector("#date-breadcrumb time"),t){var l=["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],a=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=t.getAttribute("datetime").split(/[-T:]/).map(function(n,t){return Number(n)-(t===1?1:0)}),i=new Date(n[0],n[1],n[2],n[3],n[4],n[5]).getTime(),u=Date.now(),s=new Date(i).getDate();Number(sessionStorage.currentDate)!==i?(sessionStorage.currentDate=i,sessionStorage.currentDateStart=u):u=sessionStorage.currentDateStart;f=function(){var n=new Date(Date.now()-u+i),f=n.getDay(),r=n.getDate(),e=n.getMonth(),h=n.getFullYear(),c=n.getHours(),v=n.getMinutes(),y=l[f]+" "+r+(r===1?"er":"")+" "+a[e]+" "+h+", "+c+"h"+("0"+v).substr(-2)+" |";t.textContent=y;s!==r&&(s=r,o())};setInterval(f,15e3);f()}}var t,i,r,s,f;Globalize.culture("fr-FR");BC.initHeader();c();BC.adjustResponsiveCharts(500);BC.initLazyLoad=function(){$("img.lazy").each(function(){this.src="/UI/img/blank.gif";this.style.visibility="visible"}).removeClass("lazy").lazyload({failure_limit:100,load:function(){var n,t;$(this).removeAttr("data-original");n=document.querySelectorAll("[ss-container]");n.length&&(t=n[0].firstChild.firstChild,window.dispatchEvent&&typeof CustomEvent!="undefined"&&t.addEventListener("scroll",_.throttle(function(){window.dispatchEvent(new CustomEvent("scroll"))},500),!1))}})};setTimeout(BC.initLazyLoad,0);t=$(".main-article__body");$('.main-article__body a[href*="/download/documents/"]').each(function(){var n=this.getAttribute("href");(n.indexOf("https://cdn-static.boursier.com/")===0||n.indexOf("/")===0)&&n.match(/\.PDF$/i)&&t.append('<iframe class="content" src="/Content/Modules/pdf/web/viewer.html?file='+n+'" allowfullscreen webkitallowfullscreen width="640" height="480"><\/iframe>')});$("iframe.video,iframe.content").each(function(){var t=this.offsetWidth,n=this.width/this.height;isNaN(n)||(this.style.height=(t/n|0)+"px")});$(".crypt").click(function(){var n=atob($(this).data("link")),t=$(this).data("target"),i=location.hostname;n=(i.indexOf(".boursier.com")==-1&&i!="localhost"?location.protocol+"//www.boursier.com":"")+n;t=="self"?self.location=n:window.open(n,t)});i=$(".aside-menu span");i.click(function(){$(".aside-menu").find("ul").toggleClass("aside-list--open").slideToggle("fast");$(this).toggleClass("switch-off")});BC.AJAX.load=function(n,t){var i,r=t.dataset.ajaxSuccess,u;if(r=r?r.split("."):[],r.length)for(i=window,u=0;u<r.length;u++)i=i[r[u]];i=i?i.bind(t):i;$(t).load(t.dataset.ajaxHref,{},function(){i&&i();window.__initPrivacy&&__initPrivacy()})};r=document.querySelectorAll("[data-ajax-href]");n();window.addEventListener("scroll",_.throttle(n,100),!1);s=document.querySelectorAll("select.updater").forEach(function(n){n.addEventListener("change",o,!1)});$("[data-href]").each(function(n,t){var i,e,o,r=$(t),f=r.data("href").split(":"),s=r.data("anchor");if(f[1]=f[1]||0,f[0]=="child")i=u(f[1],r);else if(f[0]=="parent")for(o=t;(!i||i.length==0)&&!!(o=o.parentNode);)i=u(f[1],$(o));i&&(e=i.attr("href"));e&&(r.addClass("clickable"),r.click(function(n){e=i.attr("href");s=$(n.target).data("anchor")||s;i.prop("href",s?e.split("#")[0]+"#"+s:e);i[0].click();n.stopPropagation()}),r.find("a").click(function(n){n.stopPropagation()}))});BC.Forms.forumSearchTrigger=function(n,t){var i=t.$element.parent("form");i.value=n.Set;i.submit()};BC.initSelect=function(){var n=function(n){var t=n.parent().scrollTop(),i=n.parent().outerHeight(),r=n.position().top+3,u=n.outerHeight();r+u>i-t&&n.parent().scrollTop(r+u-(i-t))};$("select.styled").each(function(){var t=$(this),e=$(this).children("option").length,h=t,i,u,f;for(t.removeClass("styled"),t.addClass("s-hidden"),t.wrap('<div class="select"><\/div>'),t.after('<div class="styledSelect"><\/div>'),i=t.next("div.styledSelect"),i.attr("tabindex","0"),i.text(t.find(":selected").text()),u=$("<ul />",{"class":"options"}).insertAfter(i),f=0;f<e;f++)t.children("option").eq(f).html()=="---"?$('<li class="separator" />').appendTo(u):$("<li />",{text:t.children("option").eq(f).text(),rel:t.children("option").eq(f).val()}).appendTo(u);var o=u.children("li"),r=o.parent().find("li"),c=this.selectedIndex,l=t.data("select"),a=t.data("ignore"),s=i.next("ul.options").find("li[rel="+l+"]").index();u.focus(function(){u.focus()});i.click(function(t){var v=function(n){if(n.keyCode===40||n.keyCode===38)return n.preventDefault(),!1},l,u,i,f,c;$(window).on("keydown",v);for(l=$(this).html(),u=0,i=0;i<e;i++)if(f=o[i].childNodes[0],f&&l==f.data){u=i;break}t.stopPropagation();$("div.styledSelect.active").each(function(){$(this).removeClass("active").next("ul.options").hide()});$(this).toggleClass("active").next("ul.options").toggle();$(this).next("ul.options").find("li").eq(u).addClass("active");c=h.val();s===-1||c&&c!=a?n(r.eq(u)):n(r.eq(s))});i.keydown(function(t){var u=$(this).next("ul.options").find("li.active").index(),f=i.next("ul.options").css("display")=="block";f||t.keyCode!=38&&t.keyCode!=40||(t.keyCode=13);t.keyCode==38&&($(this).next("ul.options").find("li.active").prev().hasClass("separator")?u=u-2:u--,u<0&&(u=0),r.removeClass("active"),r.eq(u).addClass("active"),n(r.eq(u)));t.keyCode==40&&($(this).next("ul.options").find("li.active").next().hasClass("separator")?u=u+2:u++,u>=e&&(u=e-1),r.removeClass("active"),r.eq(u).addClass("active"),n(r.eq(u)));t.keyCode==13&&(t.preventDefault(),f?(c=u,r.eq(u).trigger("click")):i.trigger("click"))});o.click(function(n){n.stopPropagation();i.text($(this).text()).removeClass("active");r.removeClass("active");t.val($(this).attr("rel")).change();t.valid&&t.valid();u.hide()});$(document).click(function(){i.removeClass("active");u.hide()})})};BC.initCheckbox=function(){$('.check input[type="checkbox"], .check input[type="radio"]').each(function(){var t=$(this),n=t.parent();n.hasClass("typeLabel")||(n.addClass("typeLabel"),t.addClass("hidden"),h(n))})};BC.initFlip=function(){setTimeout(function(){$(".flipper").hasClass("connect")||$("#connexion-form").hide()},500);$(".btFlip").on("click",function(){var n=$(this).data("callback");$("#flip").toggleClass("flipped");n&&BC.Callbacks[n](this)})};BC.initFlip();BC.locateUser=function(n){var t=navigator.geolocation;t?t.getCurrentPosition(n,function(n){n.code==n.PERMISSION_DENIED&&alert("Pour utiliser ce service, vous devez autoriser l'accès\naux données de localisation à Boursier.com.\n\nRendez-vous dans les paramètres de confidentialités de votre navigateur et modifiez l'autorisation pour notre site.")}):alert("Votre navigateur ne supporte par la géolocalisation.")};BC.AJAX.spinner=function(n,t){$(n)[t?"addClass":"removeClass"]("loading").attr("disabled","disabled")};BC.initForms=function(){BC.initSelect();BC.initTypeahead();BC.initCheckbox()};BC.initForms();f=$.validator.methods.range;$.validator.methods.range=function(n,t,i){return t.type==="checkbox"?t.checked:f.call(this,n,t,i)};$.fn.clearValidation=function(){var t=$(this),n=t.validate();$("[name]",t).each(function(){n.successList.push(this);n.showErrors()});n.resetForm();n.reset()};$.extend(jQuery.validator.messages,{email:"Veuillez saisir un email valide"});$.validator.setDefaults({highlight:function(n){$(n).addClass("input-validation-error");n.id&&($("label[for="+n.id+"]").addClass("input-validation-error"),$(n).next(".styledSelect").addClass("input-validation-error"),$(n).next(".b-select").addClass("input-validation-error"))},unhighlight:function(n){$(n).removeClass("input-validation-error");n.id&&($("label[for="+n.id+"]").removeClass("input-validation-error"),$(n).next(".styledSelect").removeClass("input-validation-error"),$(n).next(".b-select").removeClass("input-validation-error"))},ignore:[]});$("input[type=checkbox].input-validation-error").each(function(){this.id&&$("label[for="+this.id+"]").addClass("input-validation-error")}),function(){for(var r=document.querySelectorAll('span[data-addr="true"]'),i=0;i<r.length;i++){var n=r[i],u=n.parentNode,f=n.getAttribute("data-name")+"@"+(n.getAttribute("data-dom")||"boursier.com"),t=document.createElement("a");t.innerHTML=n.innerHTML||f;t.className=n.className;t.id=n.id;t.href="mailto:"+f;u.insertBefore(t,n);u.removeChild(n)}}()}();!function(){var i,t,n;window.define&&(n=window.define);window.require&&(t=window.require);window.jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd&&(n=jQuery.fn.select2.amd.define,t=jQuery.fn.select2.amd.require);!function(r){function e(n,t){return nt.call(n,t)}function c(n,t){var e,s,o,u,h,y,c,w,i,l,p,r=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&"."===n.charAt(0))if(t){for(r=r.slice(0,r.length-1),n=n.split("/"),h=n.length-1,f.nodeIdCompat&&b.test(n[h])&&(n[h]=n[h].replace(b,"")),n=r.concat(n),i=0;i<n.length;i+=1)if(p=n[i],"."===p)n.splice(i,1),i-=1;else if(".."===p){if(1===i&&(".."===n[2]||".."===n[0]))break;i>0&&(n.splice(i-1,2),i-=2)}n=n.join("/")}else 0===n.indexOf("./")&&(n=n.substring(2));if((r||v)&&a){for(e=n.split("/"),i=e.length;i>0;i-=1){if(s=e.slice(0,i).join("/"),r)for(l=r.length;l>0;l-=1)if(o=a[r.slice(0,l).join("/")],o&&(o=o[s])){u=o;y=i;break}if(u)break;!c&&v&&v[s]&&(c=v[s],w=i)}!u&&c&&(u=c,y=w);u&&(e.splice(0,y,u),n=e.join("/"))}return n}function p(n,t){return function(){return o.apply(r,tt.call(arguments,0).concat([n,t]))}}function k(n){return function(t){return c(t,n)}}function d(n){return function(t){u[n]=t}}function l(n){if(e(h,n)){var t=h[n];delete h[n];y[n]=!0;a.apply(r,t)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function w(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function g(n){return function(){return f&&f.config&&f.config[n]||{}}}var a,o,v,s,u={},h={},f={},y={},nt=Object.prototype.hasOwnProperty,tt=[].slice,b=/\.js$/;v=function(n,t){var r,u=w(n),i=u[0];return n=u[1],i&&(i=c(i,t),r=l(i)),i?n=r&&r.normalize?r.normalize(n,k(t)):c(n,t):(n=c(n,t),u=w(n),i=u[0],n=u[1],i&&(r=l(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return p(n)},exports:function(n){var t=u[n];return"undefined"!=typeof t?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:g(n)}}};a=function(n,t,i,f){var w,o,k,b,c,g,a=[],nt=typeof i;if(f=f||n,"undefined"===nt||"function"===nt){for(t=!t.length&&i.length?["require","exports","module"]:t,c=0;c<t.length;c+=1)if(b=v(t[c],f),o=b.f,"require"===o)a[c]=s.require(n);else if("exports"===o)a[c]=s.exports(n),g=!0;else if("module"===o)w=a[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))a[c]=l(o);else{if(!b.p)throw new Error(n+" missing "+o);b.p.load(b.n,p(f,!0),d(o),{});a[c]=u[o]}k=i?i.apply(u[n],a):void 0;n&&(w&&w.exports!==r&&w.exports!==u[n]?u[n]=w.exports:k===r&&g||(u[n]=k))}else n&&(u[n]=i)};i=t=o=function(n,t,i,u,e){if("string"==typeof n)return s[n]?s[n](t):l(v(n,t).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!t)return;t.splice?(n=t,t=i,i=null):n=r}return t=t||function(){},"function"==typeof i&&(i=u,u=e),u?a(r,n,t,i):setTimeout(function(){a(r,n,t,i)},4),o};o.config=function(n){return o(n)};i._defined=u;n=function(n,t,i){t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};n.amd={jQuery:!0}}();n("almond",function(){});n("jquery",[],function(){var n=jQuery||$;return null==n&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),n});n("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)u=i[t],"function"==typeof u&&"constructor"!==t&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty;for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var t=Array.prototype.slice;this.listeners=this.listeners||{};n in this.listeners&&this.invoke(this.listeners[n],t.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;r>i;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var r,t="",i=0;n>i;i++)r=Math.floor(36*Math.random()),t+=r.toString(36);return t},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,1!==r.length){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f!==r||"hidden"!==r&&"visible"!==r?"scroll"===f||"scroll"===r?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth:!1},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof n?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t});n("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n;this.data=r;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear();this.hideLoading();i=n('<li role="treeitem" class="select2-results__option"><\/li>');r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));this.$results.append(i)},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],null==n.results||0===n.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var f=n.map(i,function(n){return n.id.toString()}),r=t.$results.find(".select2-results__option[aria-selected]"),u;r.each(function(){var t=n(this),i=n.data(this,"data");n.inArray(i.id,f)>-1?t.attr("aria-selected","true"):t.attr("aria-selected","false")});u=r.filter("[aria-selected=true]");u.length>0?u.first().trigger("mouseenter"):r.first().trigger("mouseenter")})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results";this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,s,f,l,a,h;r.className="select2-results__option";i={role:"treeitem","aria-selected":"false"};t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true");null==t.id&&delete i["aria-selected"];null!=t._resultId&&(r.id=t._resultId);t.title&&(r.title=t.title);t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"});h.append(s);o.append(u);o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear();i.append(n.data);t.isOpen()&&i.setClasses()});t.on("results:append",function(n){i.append(n.data);t.isOpen()&&i.setClasses()});t.on("query",function(n){i.showLoading(n)});t.on("select",function(){t.isOpen()&&i.setClasses()});t.on("unselect",function(){t.isOpen()&&i.setClasses()});t.on("open",function(){i.$results.attr("aria-expanded","true");i.$results.attr("aria-hidden","false");i.setClasses();i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false");i.$results.attr("aria-hidden","true");i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();0!==n.length&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;0!==n.length&&(t=n.data("data"),"true"==n.attr("aria-selected")?i.trigger("close"):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(0!==f){n=f-1;0===r.length&&(n=0);t=u.eq(n);t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);0===n?i.$results.scrollTop(0):0>o-e&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r);n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;0===r?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});n.fn.mousewheel&&this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-i.$results.scrollTop()+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");return"true"===r.attr("aria-selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close")):void i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted");i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(0!==n.length){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=2*n.outerHeight(!1);2>=e?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=f(r):n(i).append(r)},i});n("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}});n("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,r=(n.id+"-container",n.id+"-results");this.container=n;this.$selection.attr("aria-owns",r);this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t.trigger("blur",n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true");t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false");t.$selection.removeAttr("aria-activedescendant");t.$selection.focus();t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._attachCloseHandler=function(t){n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r});n("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var i=this,t;r.__super__.bind.apply(this,arguments);t=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",t);this.$selection.attr("aria-labelledby",t);this.$selection.on("mousedown",function(n){1===n.which&&i.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("selection:update",function(n){i.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(n))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(0===n.length)return void this.clear();var t=n[0],r=this.display(t),i=this.$selection.find(".select2-selection__rendered");i.empty().append(r);i.prop("title",t.title||t.text)},r});n("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(n))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var u,t;if(this.clear(),0!==n.length){for(u=[],t=0;t<n.length;t++){var i=n[t],f=this.display(i),r=this.selectionContainer();r.append(f);r.prop("title",i.title||i.text);r.data("data",i);u.push(r)}this.$selection.find(".select2-selection__rendered").append(u)}},r});n("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=1==t.length&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n});n("select2/selection/allowClear",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);null==u.placeholder&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(t){var r,i,f;if(!u.options.get("disabled")){for(t.stopPropagation(),r=n(this).data("data"),i=0;i<r.length;i++)if(f={data:r[i]},u.trigger("unselect",f),f.prevented)return;u.$element.val(u.placeholder.id).trigger("change");u.trigger("toggle")}})},t.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i);this.$selection.find(".select2-selection__rendered").append(r)}},t});n("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/li>');return this.$searchContainer=i,this.$search=i.find("input"),t.call(this)},r.prototype.bind=function(n,t,r){var u=this;n.call(this,t,r);t.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus()});t.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("");u.$search.focus()});t.on("enable",function(){u.$search.prop("disabled",!1)});t.on("disable",function(){u.$search.prop("disabled",!0)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u.trigger("blur",n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation();u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented();r=n.which;r===i.BACKSPACE&&""===u.$search.val()&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f)))});this.$selection.on("input",".select2-search--inline",function(){u.$selection.off("keyup.search")});this.$selection.on("keyup.search input",".select2-search--inline",function(n){u.handleSearch(n)})},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.trigger("open");this.$search.val(t.text+" ")},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";""!==this.$search.attr("placeholder")?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=.75*t+"em");this.$search.css("width",n)},r});n("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(-1!==n.inArray(t,f)){i=i||{};var r=n.Event("select2:"+t,{params:i});u.$element.trigger(r);-1!==n.inArray(t,e)&&(i.prevented=r.isDefaultPrevented())}})},t});n("select2/translation",["jquery"],function(n){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i});n("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}});n("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(null!=i.id?"-"+i.id.toString():"-"+n.generateChars(4))},t});n("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(i(n.element).is("option"))return n.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,-1===i.inArray(e,f)&&f.push(e);t.$element.val(f);t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple"))return i(n.element).is("option")?(n.element.selected=!1,void this.$element.trigger("change")):void this.current(function(r){for(var e,u=[],f=0;f<r.length;f++)e=r[f].id,e!==n.id&&-1===i.inArray(e,u)&&u.push(e);t.$element.val(u);t.$element.trigger("change")})},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),null!==f&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){this.$element.append(n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),void 0!==t.textContent?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},e,o;if(t=i.data(n[0],"data"),null!=t)return t;if(n.is("option"))t={id:n.val(),text:n.html(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){t={text:n.prop("label"),children:[],title:n.prop("title")};for(var u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n});n=i.extend({},{text:""},n);return null!=n.id&&(n.id=n.id.toString()),null!=n.text&&(n.text=n.text.toString()),null==n._resultId&&n.id&&null!=this.container&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r});n("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t);this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find('option[value="'+n.id+'"]');0===t.length&&(t=this.option(n),this.addOptions([t]));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function c(n){return function(){return i(this).val()==n.id}}for(var t,u,h,l=this,f=this.$element.find("option"),a=f.map(function(){return l.item(i(this)).id}).get(),e=[],r=0;r<n.length;r++)if(t=this._normalizeItem(n[r]),i.inArray(t.id,a)>=0){var o=f.filter(c(t)),s=this.item(o),v=(i.extend(!0,{},s,t),this.option(s));o.replaceWith(v)}else u=this.option(t),t.children&&(h=this.convertToOptions(t.children),u.append(h)),e.push(u);return e},r});n("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(t,i){this.ajaxOptions=this._applyDefaults(i.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);n.__super__.constructor.call(this,t,i)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return{q:n.term}},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function u(){var u=r.transport(r,function(r){var u=f.processResults(r,n);window.console&&console.error&&(u&&u.results&&i.isArray(u.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(u)},function(){});f._request=u}var f=this,r;this._request&&(this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url(n));"function"==typeof r.data&&(r.data=r.data(n));this.ajaxOptions.delay&&""!==n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(u,this.ajaxOptions.delay)):u()},r});n("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),e=r.get("createTag"),u;if(void 0!==e&&(this.createTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var o=f[u],s=this._normalizeItem(o),h=this.option(s);this.$element.append(h)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var s,c,e=n.results,o=0;o<e.length;o++){var h=e[o],l=null!=h.children&&!u({results:h.children},!0),a=h.text===t.term;if(a||l)return f?!1:(n.data=e,void i(n))}if(f)return!0;s=r.createTag(t);null!=s&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,s));n.results=e;i(n)}var r=this;return this._removeOldTags(),null==t.term||""===t.term||null!=t.page?void n.call(this,t,i):void n.call(this,t,u)},t.prototype.createTag=function(n,t){return{id:t.term,text:t.term}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=(this._lastTag,this.$element.find("option[data-select2-tag]"));t.each(function(){this.selected||n(this).remove()})},t});n("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");void 0!==r&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(n,t,i){function u(n){f.select(n)}var f=this,r;t.term=t.term||"";r=this.tokenizer(t,this.options,u);r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.focus()),t.term=r.term);n.call(this,t,i)},t.prototype.tokenizer=function(t,i,r,u){for(var o,s=r.get("tokenSeparators")||[],f=i.term,e=0,h=this.createTag||function(n){return{id:n.term,text:n.term}};e<f.length;)if(o=f[e],-1!==n.inArray(o,s)){var c=f.substr(0,e),l=n.extend({},i,{term:c}),a=h(l);u(a);f=f.substr(e+1)||"";e=0}else e++;return{term:f}},t});n("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n});n("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void n.call(this,t,i)},n});n("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=null!=u?u.length:0;return r.maximumSelectionLength>0&&f>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void n.call(r,t,i)})},n});n("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i});n("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.focus();window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.val("")});i.on("results:all",function(n){if(null==n.query.term||""===n.query.term){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t});n("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return"string"==typeof t&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var u,r=t.slice(0),i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n});n("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n;u.loading=!0});i.on("query:append",function(n){u.lastParams=n;u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="option load-more" role="treeitem"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t});n("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(n,t,i){this.$dropdownParent=i.get("dropdownParent")||document.body;n.call(this,t,i)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);u||(u=!0,t.on("results:all",function(){r._positionDropdown();r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown();r._resizeDropdown()}))});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i){var r=this,u="scroll.select2."+i.id,e="resize.select2."+i.id,o="orientationchange.select2."+i.id,f=this.$container.parents().filter(t.hasScroll);f.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});f.on(u,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(u+" "+e+" "+o,function(){r._positionDropdown();r._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i){var r="scroll.select2."+i.id,u="resize.select2."+i.id,f="orientationchange.select2."+i.id,e=this.$container.parents().filter(t.hasScroll);e.off(r);n(window).off(r+" "+u+" "+f)},i.prototype._positionDropdown=function(){var f=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),l=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=(this.$container.position(),this.$container.offset()),r;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var e={height:this.$dropdown.outerHeight(!1)},o={top:f.scrollTop(),bottom:f.scrollTop()+f.height()},s=o.top<i.top-e.height,h=o.bottom>i.bottom+e.height,c={left:i.left,top:r.bottom};u||l||(t="below");h||!s||u?!s&&h&&u&&(t="below"):t="above";("above"==t||u&&"below"!==t)&&(c.top=r.top-e.height);null!=t&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(c)},i.prototype._resizeDropdown=function(){this.$dropdownContainer.width();this.$dropdown.css({width:this.$container.outerWidth(!1)+"px"})},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i});n("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var u,i=0,r=0;r<t.length;r++)u=t[r],u.children?i+=n(u.children):i++;return i}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t});n("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(){r._handleSelectOnClose()})},n.prototype._handleSelectOnClose=function(){var n=this.getHighlightedResults();n.length<1||n.trigger("mouseup")},n});n("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close")},n});n("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return 1!=t&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return 1!=n.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}});n("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var at,vt,yt,pt,wt,ct,lt,st,ot,ht;if((l=n.extend({},this.defaults,l),null==l.dataAdapter)&&((l.dataAdapter=null!=l.ajax?y:null!=l.data?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),null!=l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),null!=l.query)&&(at=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,at)),null!=l.initSelection&&(vt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,vt))),(null==l.resultsAdapter&&(l.resultsAdapter=i,null!=l.ajax&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),null!=l.placeholder&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),null==l.dropdownAdapter)&&(l.multiple?l.dropdownAdapter=g:(yt=h.Decorate(g,nt),l.dropdownAdapter=yt),0!==l.minimumResultsForSearch&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),(null==l.selectionAdapter&&(l.selectionAdapter=l.multiple?u:r,null!=l.placeholder&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),"string"==typeof l.language)&&(l.language.indexOf("-")>0?(pt=l.language.split("-"),wt=pt[0],l.language=[l.language,wt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st];ht={};try{ht=c.loadPath(ot)}catch(bt){try{ot=this.defaults.amdLanguageBase+ot;ht=c.loadPath(ot)}catch(kt){window.console&&console.warn&&console.warn('Select2: The lanugage file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else l.translations=new c(l.language);return l};st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(""===n.trim(r.term))return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),null==s&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1?u:null}this.defaults={amdBase:"select2/",amdLanguageBase:"select2/i18n/",closeOnSelect:!0,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(this.defaults,u)};return new st});n("select2/options",["jquery","./defaults","./utils"],function(n,i,r){function u(n,u){if(this.options=n,null!=u&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(t){var e=["select2"],f,u,i;null==this.options.multiple&&(this.options.multiple=t.prop("multiple"));null==this.options.disabled&&(this.options.disabled=t.prop("disabled"));null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang")));null==this.options.dir&&(this.options.dir=t.prop("dir")?t.prop("dir"):t.closest("[dir]").prop("dir")?t.closest("[dir]").prop("dir"):"ltr");t.prop("disabled",this.options.disabled);t.prop("multiple",this.options.multiple);t.data("select2Tags")&&(window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0));t.data("ajaxUrl")&&(window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.data("ajax-Url",t.data("ajaxUrl")));f={};f=n.fn.jquery&&"1."==n.fn.jquery.substr(0,2)&&t[0].dataset?n.extend(!0,{},t[0].dataset,t.data()):t.data();u=n.extend(!0,{},f);u=r._convertData(u);for(i in u)n.inArray(i,e)>-1||(n.isPlainObject(this.options[i])?n.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u});n("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;null!=n.data("select2")&&n.data("select2").destroy();this.$element=n;this.id=this._generateId(n);i=i||{};this.options=new t(i,n);u.__super__.constructor.call(this);f=n.attr("tabindex")||0;n.data("old-tabindex",f);n.attr("tabindex","-1");e=this.options.get("dataAdapter");this.data=new e(n,this.options);r=this.render();this._placeContainer(r);o=this.options.get("selectionAdapter");this.selection=new o(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,r);s=this.options.get("dropdownAdapter");this.dropdown=new s(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,r);h=this.options.get("resultsAdapter");this.results=new h(n,this.options,this.data);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);c=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.data.current(function(n){c.trigger("selection:update",{data:n})});n.hide();this._syncAttributes();n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=null!=n.attr("id")?n.attr("id"):null!=n.attr("name")?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t="select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var r,u,f,s,i;if("resolve"==t)return r=this._resolveWidth(n,"style"),null!=r?r:this._resolveWidth(n,"element");if("element"==t)return u=n.outerWidth(!1),0>=u?"auto":u+"px";if("style"==t){if(f=n.attr("style"),"string"!=typeof f)return null;for(var o=f.split(";"),e=0,h=o.length;h>e;e+=1)if(s=o[e].replace(/\s/g,""),i=s.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==i&&i.length>=1)return i[1];return null}return t},u.prototype._bindAdapters=function(){this.data.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.data.current(function(n){t.trigger("selection:update",{data:n})})});this._sync=i.bind(this._syncAttributes,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(i){n.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},u.prototype._registerDataEvents=function(){var n=this;this.data.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("*",function(r,u){-1===n.inArray(r,i)&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("focus",function(){n.$container.addClass("select2-container--focus")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open");this.data.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.data.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ENTER?(n.trigger("results:select"),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle"),t.preventDefault()):i===r.UP?(n.trigger("results:previous"),t.preventDefault()):i===r.DOWN?(n.trigger("results:next"),t.preventDefault()):(i===r.ESC||i===r.TAB)&&(n.close(),t.preventDefault()):(i===r.ENTER||i===r.SPACE||(i===r.DOWN||i===r.UP)&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if(n in f&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented))return void(t.prevented=!0);r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},u.prototype.close=function(){this.isOpen()&&this.trigger("close")},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.enable=function(n){window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');0===n.length&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdpater.current(function(t){n=t}),n},u.prototype.val=function(t){if(window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),0===t.length)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1);this._sync=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.show();this.$element.removeData("select2");this.data.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.data=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u});n("jquery.select2",["jquery","./select2/core","./select2/defaults"],function(n,i,r){try{t("jquery.mousewheel")}catch(u){}return null==n.fn.select2&&(n.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var r=n.extend({},t,!0);new i(n(this),r)}),this;if("string"==typeof t){var r=this.data("select2"),u=Array.prototype.slice.call(arguments,1);return r[t](u)}throw new Error("Invalid arguments for Select2: "+t);}),null==n.fn.select2.defaults&&(n.fn.select2.defaults=r),i});t("jquery.select2");jQuery.fn.select2.amd={define:n,require:t}}();$(document).ready(function(){function i(n){var t=n,i;if(location.pathname==="/"&&(i=$("#overall [data-target]").not("a, .crypt"),$(i).hide()),$(".quick-menu [data-target]").removeClass("active"),$(".quick-menu [data-target ="+t+" ]").addClass("active"),$("#overall [data-target ="+t+" ]").show(),$("#overall .palmares_bourse--letter_filter [data-target = self ]").show(),t==="privileges"?$("#actus").hide():$("#actus").show(),t==="highlight"){const n=$("#actionnaires .slider");n.length&&n.slick("setPosition")}}function s(){$("[data-toggle]").each(function(){$(this).find("span").on("click",function(n){n.preventDefault();var t=$(this).parent().attr("data-toggle"),i=$(this);i.parent().hasClass("toggled")?(i.parent().removeClass("toggled"),$(".header-sticky").removeClass("header-sticky--mobile"),$("#infos-boursier_panel").css("z-index",10),$(".page-head").css("z-index",1),$("html").removeAttr("style")):(i.parent().addClass("toggled"),t==="#burger-menu"&&($("#infos-boursier_panel").css("z-index",0),$(".header-sticky").addClass("header-sticky--mobile"),$("html").css({overflow:"hidden"})));$(t).toggle("500");$(".toggleit").not(t).hide("550")})})}function e(){var n=$(window).width();if(BC.adjustResponsiveCharts(),n<641){$("html").addClass("mobile");const n=$(".quick-menu .active").data("target");i(n);$(document).on("click",".search-toggle",function(){$("#form-search.visible .form-text").focus()})}else $("#overall [data-target]").show(),$("#overall #actus").show(),$("html").removeClass("mobile"),$("body").removeClass("fixed-height")}function o(n){if(!n.id)return n.text;return $('<div class="currency-item"><img src="/ui/img/drapeaux/'+n.element.value.split("-")[0]+'.png" class="state-flag" /><span class="state-name">'+n.text+"<\/span><\/div>")}var r,u,f,t;const n=document.getElementsByClassName("scrolly-table");$("ul.selectdropdown").each(function(){var t=$(this),n=$(document.createElement("select")).insertBefore($(this).hide()).change(function(){window.location=$(this).val()});$(">li a",this).each(function(){var t=$(document.createElement("option")).appendTo(n).val(this.href).html($(this).html());$(this).attr("class")==="selected"&&t.attr("selected","selected")});$("#menu-agenda_news .styled").html(n);t.remove()});$(document).on("click","#mConnection.in .modal_overlay",function(n){n.preventDefault();$(this).parent().removeClass("in")});$("#listing-home .item--type-conseils").prev().addClass("item--no-sep");$(".quick-menu a").on("touchend",function(n){n.preventDefault();var t=$(this).data("target");i(t);window.dispatchEvent&&typeof CustomEvent!="undefined"&&window.dispatchEvent(new CustomEvent("scroll"))});if(r=$(window).width(),r<641)for($("html").addClass("mobile"),u=$(".quick-menu .active").data("target"),i(u),f=Boursier.supportPassive?{passive:!0}:!1,t=0;t<n.length;t++)n[t].addEventListener("touchstart",function(){for(var t=0;t<n.length;t++)n[t].classList.add("on"),typeof Storage!="undefined"&&localStorage.setItem("scrollyTable","on")},f);else $("html").removeClass("mobile"),$("#overall [data-target]").show();makeELementVisible(document.querySelector(".filter-tabs ul li.tab.on"));makeELementVisible(document.querySelector(".pagenav .select-content li.active"));makeELementVisible(document.querySelector(".grp-prms-form.top nav .tab.on"));$(".lexique a").on("click",function(n){n.preventDefault();const t=$(this).attr("href"),i=t.split("#")[1];$("html, body").animate({scrollTop:$("#"+i).offset().top-80},500)});$(".bourse--page").length&&BC.adjustResponsiveCharts(500);s();e();$(window).resize(function(){e()}),function(){var n=document.getElementsByClassName("consensus_value-rating");if(n.length>0){var t=$(n).data("reco-note"),i=t===0?0:t-1,r=20*i;n&&setTimeout(function(){n[0].style.right=r+"%"},0)}}();$(".select-currency").select2({templateSelection:o,templateResult:o});$("body").on("change",".select-ajax",function(){var r=this.value,u=$(this).data("parent"),f=$("."+u+".box-listes"),t,n=r,i;if(n=n?n.split("."):[],n.length)for(t=window,i=0;i<n.length;i++)t=t[n[i]];f.load(r,t||null)})});window.addEventListener("DOMContentLoaded",function(){function t(n){var t,i=typeof n=="boolean";i?(t=n,$('.change-status input[type="checkbox"]').prop("checked",t)):(t=$(this).is(":checked"),$('.documentation input[type="checkbox"]').prop("checked",t));t?$('input[type="checkbox"] ~ .bt-label').text("Sélectionnées"):$('input[type="checkbox"] ~ .bt-label').text("Tout sélectionner")}var n=$('.items input[type="checkbox"]');n.on("click",function(){t(n.is(":checked"))});$('input[name="all"],input[name="alls"]').on("click",t);return}),function(){function f(n){var u,r,f,e;this.href||(n.preventDefault(),u=document.querySelector(".sub-menu--connected__wrapper"),u.classList.remove("visible"),r=this.parentNode.classList,f=r.contains("active"),i(),f||(r.add("visible","active"),t(this.parentNode.querySelector(".ssmenus-secondary")),e=document.querySelector(".btn-close"),e.classList.add("active","visible")))}function e(n){n.preventDefault();var i=this.classList;i.add("active");t(this.nextElementSibling,this)}function t(n,t){if(!n.querySelector(".button-back")){var r=document.createElement("li"),i=document.createElement("a");r.className="button-back";i.name="_back";i.setAttribute("aria-label","Retour au menu précédent");i.addEventListener("click",function(){(t||n.parentNode).classList.remove("active","visible")},!1);r.appendChild(i);n.insertBefore(r,n.firstChild)}}function i(){var n=document.querySelector(".burger-menu__item.active");n&&n.classList.remove("active","visible")}var u=Array.from(document.querySelectorAll(".main-menu")),n,r;u.forEach(function(n){n.addEventListener("click",f,!1)});n=Array.from(document.querySelectorAll(".secondary-link"));n.forEach(function(n){n.addEventListener("click",e,!1)});r=document.querySelector(".btn-close");r.addEventListener("click",function(){i();this.classList.remove("active","visible")},!1)}();$target=jQuery("html");observer=new MutationObserver(function(n){n.forEach(function(n){if(n.attributeName==="class"){var t=jQuery(n.target).prop(n.attributeName);t.indexOf("perfBar")>=0?($("#infos-boursier").show(),$("#indexes-compact").hide(),$("#toggle-infos-panel").addClass("open")):($("#infos-boursier").hide(),$("#indexes-compact").show(),$("#toggle-infos-panel").removeClass("open"))}})});observer.observe($target[0],{attributes:!0}),function(){var u=document.querySelector("body.home")!==null,i,n,t,r;if(!u){if(i=document.querySelector("#date-breadcrumb").parentElement.lastElementChild,i.offsetWidth<1e3)return;if(n=document.getElementsByClassName("aside--block")[0],!n)return;if(t=n.getElementsByClassName("sticky-container")[0],!t)return;r=n.previousElementSibling.offsetHeight-360;t.style.height=Math.max(r*.8,600)+"px"}}();const anchors=Array.from(document.querySelectorAll(".anchor")),headerSharing=document.getElementById("header-sharing"),toggleOnScrollElements=Array.from(document.querySelectorAll(".toggle-on-scroll"));scrollDirectionValue="";last_known_scroll_position=window.pageYOffset||document.documentElement.scrollTop||window.scrollY;ticking=!1;window.addEventListener("scroll",function(){var n=window.pageYOffset||document.documentElement.scrollTop||window.scrollY;ticking||window.requestAnimationFrame(function(){doSomething(n,last_known_scroll_position);last_known_scroll_position=n;ticking=!1});ticking=!0});headerSharing!=="undefined"&&headerSharing!==null&&headerSharingScroll();Array.prototype.forEach.call(anchors,function(n){n.addEventListener("click",scrollToElement,!1)});window.addEventListener("scroll",onScroll,!1);const shareButtonElements=Array.from(document.querySelectorAll(".share-button"));shareButtonElements.length>0&&(share=function(){function s(n){FB.ui({method:"send",link:n})}var u;const h=this,r=document.querySelectorAll(".header-sharing__list")[0].getAttribute("data-url"),i=document.getElementsByTagName("TITLE")[0].innerText,e=h.getElementsByTagName("SPAN")[0].classList[1].split("icon2016-")[1],o=document.querySelector(".responsive-img, .media-primary img");u="";o&&(u=o.getAttribute("src"));var n="",f="",t="_self";switch(e){case"twitter":n="https://twitter.com/intent/tweet?url=";f="&text="+encodeURIComponent(i)+"&via=Boursier_com&lang=fr";t="_blank";break;case"facebook":n="https://www.facebook.com/sharer/sharer.php?u=";t="_blank";break;case"linkedin":n="https://www.linkedin.com/shareArticle?mini=true&url=";f="&title="+encodeURIComponent(i)+"&summary="+encodeURIComponent(u)+"&source="+encodeURIComponent(i);t="_blank";break;case"mail":n="mailto:?subject=Boursier.com - "+encodeURIComponent(i)+"&body=";break;case"whatsapp":n="https://api.whatsapp.com/send?text=";t="_blank"}if(e!=="messenger"){window.open(n+encodeURIComponent(r)+f,t);return}typeof FB!="undefined"?s(r):(function(n,t,i){var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.src="//connect.facebook.net/fr_FR/sdk.js",u.parentNode.insertBefore(r,u))}(document,"script","facebook-jssdk"),window.fbAsyncInit=function(){FB.init({appId:"966242223397117",xfbml:!0,version:"v2.7"});s(r)})},shareButtonElements.forEach(function(n){n.addEventListener("click",share,!1)}));(document.body||{}).dataset!==undefined&&function(){function a(){i||((~location.host.indexOf("localhost")||~location.host.indexOf("boursier.com"))&&(i=setInterval(p,h)),setTimeout(function(){c=6e4/h},18e5))}function y(){clearInterval(i);i=undefined}function p(){var i,r,n,u;if(!t){for(i=document.querySelectorAll("[data-dyn]"),r=[],n=0;n<i.length;n++)u=nt(i[n]),u&&r.push(u);_.uniqBy(r,function(n){return n}).map(w)}}function w(n){l++<c||s.count>=3||(t++,l=0,$.ajax({url:n,success:k,error:b,method:"POST"}))}function b(){s.count++;t--}function k(n){var i=n.results;i.forEach(function(n){for(var e,i,o,u,t=n.data,s=n.mode||"charts",f=document.querySelectorAll('[data-dyn="'+n.target+'"]'),r=0;r<f.length;r++){if(e=f[r].dataset.dynKey,i=Array.prototype.slice.call(f[r].childNodes).filter(function(n){return n.nodeType===n.ELEMENT_NODE}),t===null||t.length!==i.length)for(o=(t||[]).length,u=i.length-1;u>=o;--u)i[u].style.visibility="hidden";t!==null&&(s==="charts"?d(e,i,t):v(e,i,t))}});t--}function d(t,i,r){var f=[],e=[],s,h,o;r.forEach(function(r,o){i[o].style.visibility="";e.push(i[o]);i.forEach(function(s,h){var l=s.querySelector("[data-dyn-attr="+t+"]"),a=u(l),v=n(a.textContent),y=n(r[t]),c;v===y&&(e[o]=i[h],c=o-h,f.push({index:h,diff:c}))})});s=f.map(function(n){return n.index});h=f.map(function(n){return n.index+n.diff});f.forEach(function(n){var u=n.index,t=u+n.diff,r;if(s.indexOf(t)===-1){while((r=h.indexOf(n.index))!==-1)n=f[r];f.push({index:t,diff:n.index-t});e[n.index]=i[t]}});o=!1;f.forEach(function(n){if(n.diff){var t=i[n.index].offsetHeight,r=n.diff*t;i[n.index].style.transform="translate3d(0,"+r+"px, 0)";o=!0}});setTimeout(function(){e.forEach(function(n){n.style.transform="";i[0].parentNode.appendChild(n)});v(t,e,r)},o?350:0)}function v(t,i,f){f.forEach(function(f,e){if(!(e>=i.length)){var o=i[e],s=o.parentNode.dataset.dyn,c=Array.prototype.slice.call(o.querySelectorAll("[data-dyn-attr]")),l=o.querySelector("[data-dyn-attr="+t+"]"),h=o.dataset.dynTrigger||o.parentNode.dataset.dynTrigger,a=u(l),v=n(a.textContent),y=n(f[t]),p=v!==y;c.forEach(function(t){var i=t.dataset.dynAttr,c=u(t),a=tt(i,f[i],s,c),e=n(c.textContent),l=n(a);i==="href"?t.href=f[i]:(c.textContent=a,e!==l&&(isNaN(parseFloat(e))?r(t,"dyn-changed"):p||(e<l?r(t,"dyn-hi-up"):e>l&&r(t,"dyn-hi-down")),h&&g(h)(i,f[i],s,o)))})}})}function g(n){var t,r=n?n.split("."):[],i;if(r.length)for(t=e,i=0;i<r.length;i++)t=t[r[i]];return t}function r(n,t){n.classList.add(t);setTimeout(function(){n.classList.remove(t)},1500)}function u(n){var i,t=n,r;do if((i=t.firstChild)&&i.nodeType!==t.ELEMENT_NODE&&(r=i.nodeValue.replace(/\s+/g,""),r!==""))return t;while(t=t.firstElementChild);return n}function n(n){var t=parseFloat(n.replace(",",".").replace(String.fromCharCode(160),"").replace("&nbsp;",""));return isNaN(t)?n:t}function nt(n){do if(n.dataset&&n.dataset.dynHref)return n.dataset.dynHref;while(n=n.parentNode)}function tt(t,i,r,u){switch(t){case"variation":if(r==="header-indices"){var f=n(i);u.classList.remove("up");u.classList.remove("eq");u.classList.remove("down");u.classList.add(f>0?"up":f===0?"eq":"down")}break;case"last":r==="header-indices"&&(u.parentNode.parentNode.classList.contains("keep")||(i=i.split(",")[0]))}return i}function f(n){n?a():y()}var t=0,i,e={},o={count:0},s={count:0},h=5e3,c=0,l=0;window.addEventListener("load",a,!1);typeof document.visibilityState!="undefined"?window.addEventListener("visibilitychange",function(){f(document.visibilityState==="visible")},!1):(window.addEventListener("blur",function(){f(!1)},!1),window.addEventListener("focus",function(){f(!0)},!1));e.headerChart=_.throttle(function(n,t,i){if((n==="last"||n==="variation")&&i==="header-indices"&&o.count<3){var r=document.querySelector("#indexes-full .tooltips a img");imageReloader(r,o)}},6e4)}(),function(){function e(){c();try{const n=document.querySelectorAll("[data-refresh]");for(let t=0;t<n.length;t++){const i=n[t];o(i)}}catch(n){console.log("Exception in content refresher:",n)}}function o(n){let v=0,c=!1;const e=n.dataset,y=e.refreshHref,p=e.refreshAfter,g=e.refreshImmediate==="true",nt=e.refresh==="true",a=e.refreshAnim==="true",tt=e.refreshMode,it=e.refreshForm,w=t(e.refreshIf),b=t(e.refreshPreload),k=t(e.refreshPrerender),d=t(e.refreshSuccess);for(let n in e)n.indexOf("refresh")===0&&delete e[n];if(nt&&y&&p&&window.atob){let l=null;if(it){const n=document.getElementById("pal-prms"),t=n.querySelectorAll("input, select, textarea"),i=Array.prototype.slice.call(t);l=i.map(function(n){return n.name+"="+encodeURIComponent(n.value)}).join("&")+"&_refresh=1"}const rt=function(){if((!w||w.bind(n)())&&!c){c=!0;let t=b&&b.bind(n)()||{};const i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");i.onload=function(){if(this.status>=400){this.onerror();return}this.status===200&&(a&&n.classList.add("refresh-run"),setTimeout(function(){if(t.content=this.responseText,t=k&&k.bind(n)(t)||t,tt!=="inner")n.innerHTML=t.content;else{const i=document.createElement("div");i.innerHTML=t.content;n.innerHTML=i.firstElementChild.innerHTML}f.bind(n)();d&&d.bind(n)(t);a&&n.classList.remove("refresh-run");n.parentNode.classList.remove("loading-preview");o.lastUpdated=Date.now();c=!1;h()}.bind(this),a?350:0))};i.onerror=function(){(v++===u&&setTimeout(function(){self.location.reload()},6e5),v>u)||(o.lastUpdated=Date.now(),c=!1,h())};i.open("POST",atob(y),!0);i.setRequestHeader("X-Requested-With","XMLHttpRequest");l&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.send(l)}},h=function(){if(!r){if(!s(n)){o.timerID=setTimeout(h,500);return}const t=Date.now()-o.lastUpdated,i=Math.max(0,p*6e4-t);o.timerID=setTimeout(rt,i)}};let o={handler:h,lastUpdated:g?0:Date.now()};n.classList.add("refresh-init");i.push(o);h()}}function s(n){var t=n.getBoundingClientRect(),i={top:0,left:0,right:window.innerWidth||document.documentElement.clientWidth,bottom:window.innerHeight||document.documentElement.clientHeight};return!(t.left>i.right||t.right<i.left||t.top>i.bottom||t.bottom<i.top)}function t(t){const r=t?t.split("."):[],i=r.reduce(function(n,t){return n[t]},n);return i!==n?i:undefined}function h(n){return Array.prototype.indexOf.call(n.parentNode.children,n)}function c(){const n=function(n){n?(r=!1,i.forEach(function(n){n.handler()})):(r=!0,i.forEach(function(n){clearTimeout(n.timerID)}))};typeof document.visibilityState!="undefined"?window.addEventListener("visibilitychange",function(){n(document.visibilityState==="visible")},!1):(window.addEventListener("blur",function(){n(!1)},!1),window.addEventListener("focus",function(){n(!0)},!1))}const u=3,n={},i=[];let r=!1;var f=function(){BC.initLazyLoad();window.dispatchEvent&&typeof CustomEvent!="undefined"&&window.dispatchEvent(new CustomEvent("scroll"))};window.addEventListener("load",function(){setTimeout(e,0)},!1);n.prerenderHomeNewsFeed=function(n){const t=this.querySelectorAll('[id^="div-gpt-ad-"]'),i=[];for(let n=0;n<t.length;n++){const r=t[n];i.push({node:r,index:h(r)})}return n.natives=i,n};n.prerenderQuotePage=function(n){var i=document.createElement("div"),t,r;i.innerHTML=n.content;t=i.firstElementChild;r=t.removeChild(t.firstElementChild);document.getElementById("quote-header").innerHTML=r.innerHTML;n.content=t.innerHTML};n.handleHomeNewsFeed=function(n){$("#listing-home .item--type-conseils").prev().addClass("item--no-sep");SimpleScrollbar.initEl(this.querySelector("[ss-container]"));const t=this.getElementsByClassName("ss-content")[0];n.natives.forEach(function(n){t.insertBefore(n.node,t.children[n.index])})};n.handleSmallTabs=function(){BC.AJAX.initTradingPage.call(this)};n.handleHistoryTabs=function(){BC.AJAX.InitOnglets.call(this)};n.handleQuoteHeader=function(){var n=document.getElementById("chartBig");n&&n.tagName==="ING"&&imageReloader(n)};n.handleNewsFeedDate=function(){const n=this.dataset.today,t=document.querySelector(".agenda-news p strong"),i=document.querySelector("h1");t.textContent=n;i.textContent="Actualités du "+n};n.handleHomeTrading=function(){for(var t=document.querySelector(".introduction + .w-background .tabs-content").children,n=0;n<t.length;n++)if(t[n].style.visibility!=="hidden"){BC.AJAX.load(null,t[n]);break}};n.handlePagine=function(){BC.Pager.pagine()};n.ifPageOne=function(){const n=/.+?-\d+\.html/.test(location.pathname);return!n}}(),function(){function h(){var n=document.querySelector("#quote-header .h1").firstChild.textContent,t=n.indexOf("(");return n=t===-1?n:n.substring(0,t),n.replace(/(^\s+|\s+$)/g,"")}function c(t){t.forEach(function(t){try{var i=t(n);typeof i=="function"&&r.push(i)}catch(u){}})}function l(n){var t=r.slice();t.forEach(function(t){try{t(n)}catch(i){}})}function a(){n.page.instrument||tc_vars.custom3==="Instrument"&&(n.page.instrument={isin:tc_vars.custom1,country:tc_vars.custom2,name:h()});n.page.accessLevel=Number(tc_vars.newspaid==="yes"||tc_vars.custom3==="Privileges");n.pending=--f>0}function v(){var n=new XMLHttpRequest;n.open("POST","/user/shared");n.onreadystatechange=function(){if(this.readyState===n.DONE){var t={};f--;try{t=JSON.parse(this.responseText);t.type=["visitor","member","subscriber"][t.type||0];__dataLayer.extend("user",t)}catch(i){n.onerror()}__dataLayer.extend("user",t)}};n.onerror=function(){f&&f--;__dataLayer.extend("user",{type:"visitor"})};n.send(null)}function o(i,r){var u,e;if(!n.gdpr)return"undefined";e=r.indexOf(":")!==-1;switch(i){case"purpose":u="didomiPurposesConsent";break;case"iab":case"vendor":u="didomiVendorsConsent"}if(i==="purpose")return t(u,r);if(i==="iab")return t(u,(e?"":"iab:")+r);if(i==="vendor"){if(e)return t(u,r);var o=t(u,"didomi:"+r),s=t(u,"c:"+r),h=t(u,"iab:"+r),f=0;return(o!=="undefined"&&f++,s!=="undefined"&&f++,h!=="undefined"&&f++,f>1)?"ambigous":o!=="undefined"?o:s!=="undefined"?s:h}}function t(n,t){return s(n,"",t)?"consent":s(n,"Denied",t)?"deny":s(n,"Unknown",t)?"unknown":"undefined"}function s(t,i,r){return(n.gdpr[t+i]||"").indexOf(r+",")!==-1}var n=function(){var r=location.pathname,u,t,s,c,l;r.substr(-1)==="/"&&(r=r.slice(0,-1)||"/accueil");var f=r.substr(1).split("/"),i=r.substr(-5)===".html"?f.pop():undefined,n={levels:f.length};for(u=0;u<f.length;u++)n["level"+(u+1)]=f[u];if(i){var a=/([a-z0-9-]+?)i?(\d+)(-\d+)?\.html/.exec(i)||"",e=a[1],v=a[2],o=((/[a-z0-9-]+([A-Z0-9]{12},[A-Z]{2})\.html/.exec(i)||"")[1]||"").split(",");e&&(n.slug=e.substr(0,e.length-1));v&&(n.id=Number(v));o[0]&&(n.instrument={isin:o[0],country:o[1],name:h()})}return t=[],["actions","indices","matieres-premieres","opcvm","produits-de-bourse"].indexOf(n.level1)!==-1&&i&&t.push("instrument"),["palmares","devises","secteurs"].indexOf(n.level1)===-1&&["cours","marches"].indexOf(n.level2)===-1&&(["actions","indices","produits-de-bourse"].indexOf(n.level1)===-1||i)||t.push("cotations"),([n.level1,n.level2].indexOf("actualites")!==-1||["videos","dossiers","introductions"].indexOf(n.level1)!==-1)&&t.push("actualites"),[n.level1,n.level2].indexOf("forum")!==-1&&t.push("forum"),["accueil","secteurs","introductions","membres","privileges"].indexOf(n.level1)!==-1&&t.push(n.level1),n.level1==="guide"&&t.push("guides"),t.length===0&&t.push("autres"),t.indexOf("actualites")!==-1&&t.indexOf("cotations")===-1&&t.indexOf("instrument")===-1&&t.push("generales"),t.indexOf("actualites")!==-1&&i&&(n.level1==="videos"||n.level2==="galeries"?t.push("medias"):t.push("articles")),s=(document.querySelector(".author")||"").textContent,s&&(c=[s.replace(/(^\s+|\s+$)/g,"").replace(/(Publié |Propos recueillis )?par /i,"")],c[0]&&(n.authors=c)),l=(document.querySelector("article h1")||"").textContent,l&&(n.title=l.replace(/^\s+|\s+$/g,"")),n.domain=self.location.hostname,n.groups=t,{pending:!0,page:n}}(),i={cmd:{push:function(n){c([n])}},extend:function(t,i){if(t==="tc_vars"){a();l(n);return}var r=n&&!n[t];return r&&(n[t]=i,l(n)),r},remove:function(n){var t=r.indexOf(n);t!==-1&&r.splice(t,1)}},f=1,r,e,u;Object.defineProperty(i,"state",{value:n});Object.freeze(i.cmd);Object.freeze(i.extend);r=[];e={purpose:function(n){return o("purpose",n)},iab:function(n){return o("iab",n)},vendor:function(n){return o("vendor",n)}};Object.defineProperty(e,"iabString",{get:function(){return n.gdpr&&n.gdpr.didomiIABConsent||""}});Object.defineProperty(e,"gdprApplies",{get:function(){return n.gdpr?n.gdpr.didomiGDPRApplies||0:-1}});i.extend("consent",e);u=window.__dataLayer;window.__dataLayer=i;u&&Array.isArray(u.cmd)&&c(u.cmd);v();u=null}()