/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h(''),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):ithis.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('
    '),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('
  • ×
  • ')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n×');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('
  • '),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f(""),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=ai.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-11){field=fieldPhoneNumber.first()};storagePatternPhone=field.attr('pattern');localStorage.setItem('pattern-phone-default',storagePatternPhone)};e('[name$="_residencecountry"]',n).once('sb_form').on('change',function(){let _this=e(this),country=_this.val(),$form=_this.closest('form'),$phoneNumber=$form.find('[name$="_phonenumber"]');if(country=='ES'){$phoneNumber.attr('pattern','^[6789]{1}\\d{2}(?!.*(.)\\1{4})\\d{6}$')} else{$phoneNumber.attr('pattern',storagePatternPhone)}});let forms=e('[name$="_residencecountry"]',n);e.fn.select2.defaults.set('language','es');for(let i=0;i0&&(r-1)in e};t.isPlainObject=function(e){var i;if(!e||t.type(e)!=='object'||e.nodeType||t.isWindow(e)){return!1};try{if(e.constructor&&!o.call(e,'constructor')&&!o.call(e.constructor.prototype,'isPrototypeOf')){return!1}}catch(r){return!1};for(i in e){};return i===undefined||o.call(e,i)};t.each=function(e,t,r){var a,i=0,n=e.length,o=s(e);if(r){if(o){for(;i4;e--){var t=l.createElement('div');t.innerHTML='';if(t.getElementsByTagName('span').length){t=null;return e}}};return n})(),x=(function(){var e=0;return r.webkitRequestAnimationFrame||r.mozRequestAnimationFrame||function(t){var i=(new Date()).getTime(),r;r=Math.max(0,16-(i-e));e=i+r;return setTimeout(function(){t(i+r)},r)}})(),T=(function(){var e=r.performance||{};if(typeof e.now!=='function'){var t=e.timing&&e.timing.navigationStart?e.timing.navigationStart:(new Date()).getTime();e.now=function(){return(new Date()).getTime()-t}};return e})();function V(e){var r=-1,a=e?e.length:0,i=[];while(++r=0)?e:Math.max(0,o+e),l=r<0?o+r:Math.min(r,o),n=l-s;if(n>0){a=new Array(n);if(this.charAt){for(i=0;i=0}};return function(e,t){for(var r=0;r0.0){a=n} else{r=n}} while(Math.abs(o)>b&&++s=x){return S(t,o)} else if(u===0.0){return o} else{return k(t,a,a+l)}};var c=!1;function T(){c=!0;if(e!==t||i!==a){P()}};var f=function(r){if(!c){T()};if(e===t&&i===a){return r};if(r===0){return 0};if(r===1){return 1};return u(V(r),t,a)};f.getControlPoints=function(){return[{x:e,y:t},{x:i,y:a}]};var y='generateBezier('+[e,t,i,a]+')';f.toString=function(){return y};return f};var A=(function(){function t(e){return(-e.tension*e.x)-(e.friction*e.v)};function e(e,r,i){var a={x:e.x+i.dx*r,v:e.v+i.dv*r,tension:e.tension,friction:e.friction};return{dx:a.v,dv:t(a)}};function r(r,i){var a={dx:r.v,dv:t(r)},n=e(r,i*0.5,a),o=e(r,i*0.5,n),s=e(r,i,o),l=1.0/6.0*(a.dx+2.0*(n.dx+o.dx)+s.dx),u=1.0/6.0*(a.dv+2.0*(n.dv+o.dv)+s.dv);r.x=r.x+l*i;r.v=r.v+u*i;return r};return function i(e,t,a){var s={x:-1,v:0,tension:null,friction:null},l=[0],o=0,c=1/10000,p=16/1000,u,f,n;e=parseFloat(e)||500;t=parseFloat(t)||20;a=a||null;s.tension=e;s.friction=t;u=a!==null;if(u){o=i(e,t);f=o/a*p} else{f=p} while(!0){n=r(n||s,f);l.push(1+n.x);o+=16;if(!(Math.abs(n.x)>c&&Math.abs(n.v)>c)){break}};return!u?o:function(e){return l[(e*(l.length-1))|0]}}}());i.Easings={linear:function(e){return e},swing:function(e){return 0.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-(Math.cos(e*4.5*Math.PI)*Math.exp(-e*6))}};a.each([['ease',[0.25,0.1,0.25,1.0]],['ease-in',[0.42,0.0,1.00,1.0]],['ease-out',[0.00,0.0,0.58,1.0]],['ease-in-out',[0.42,0.0,0.58,1.0]],['easeInSine',[0.47,0,0.745,0.715]],['easeOutSine',[0.39,0.575,0.565,1]],['easeInOutSine',[0.445,0.05,0.55,0.95]],['easeInQuad',[0.55,0.085,0.68,0.53]],['easeOutQuad',[0.25,0.46,0.45,0.94]],['easeInOutQuad',[0.455,0.03,0.515,0.955]],['easeInCubic',[0.55,0.055,0.675,0.19]],['easeOutCubic',[0.215,0.61,0.355,1]],['easeInOutCubic',[0.645,0.045,0.355,1]],['easeInQuart',[0.895,0.03,0.685,0.22]],['easeOutQuart',[0.165,0.84,0.44,1]],['easeInOutQuart',[0.77,0,0.175,1]],['easeInQuint',[0.755,0.05,0.855,0.06]],['easeOutQuint',[0.23,1,0.32,1]],['easeInOutQuint',[0.86,0,0.07,1]],['easeInExpo',[0.95,0.05,0.795,0.035]],['easeOutExpo',[0.19,1,0.22,1]],['easeInOutExpo',[1,0,0,1]],['easeInCirc',[0.6,0.04,0.98,0.335]],['easeOutCirc',[0.075,0.82,0.165,1]],['easeInOutCirc',[0.785,0.135,0.15,0.86]]],function(e,t){i.Easings[t[0]]=h.apply(null,t[1])});function g(e,t){var r=e;if(o.isString(e)){if(!i.Easings[e]){r=!1}} else if(o.isArray(e)&&e.length===1){r=C.apply(null,e)} else if(o.isArray(e)&&e.length===2){r=A.apply(null,e.concat([t]))} else if(o.isArray(e)&&e.length===4){r=h.apply(null,e)} else{r=!1};if(r===!1){if(i.Easings[i.defaults.easing]){r=i.defaults.easing} else{r=P}};return r};var t=i.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:['fill','stroke','stopColor','color','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','outlineColor'],transformsBase:['translateX','translateY','scale','scaleX','scaleY','skewX','skewY','rotateZ'],transforms3D:['transformPerspective','translateZ','scaleZ','rotateX','rotateY'],units:['%','em','ex','ch','rem','vw','vh','vmin','vmax','cm','mm','Q','in','pc','pt','px','deg','grad','rad','turn','s','ms'],colorNames:{'aliceblue':'240,248,255','antiquewhite':'250,235,215','aquamarine':'127,255,212','aqua':'0,255,255','azure':'240,255,255','beige':'245,245,220','bisque':'255,228,196','black':'0,0,0','blanchedalmond':'255,235,205','blueviolet':'138,43,226','blue':'0,0,255','brown':'165,42,42','burlywood':'222,184,135','cadetblue':'95,158,160','chartreuse':'127,255,0','chocolate':'210,105,30','coral':'255,127,80','cornflowerblue':'100,149,237','cornsilk':'255,248,220','crimson':'220,20,60','cyan':'0,255,255','darkblue':'0,0,139','darkcyan':'0,139,139','darkgoldenrod':'184,134,11','darkgray':'169,169,169','darkgrey':'169,169,169','darkgreen':'0,100,0','darkkhaki':'189,183,107','darkmagenta':'139,0,139','darkolivegreen':'85,107,47','darkorange':'255,140,0','darkorchid':'153,50,204','darkred':'139,0,0','darksalmon':'233,150,122','darkseagreen':'143,188,143','darkslateblue':'72,61,139','darkslategray':'47,79,79','darkturquoise':'0,206,209','darkviolet':'148,0,211','deeppink':'255,20,147','deepskyblue':'0,191,255','dimgray':'105,105,105','dimgrey':'105,105,105','dodgerblue':'30,144,255','firebrick':'178,34,34','floralwhite':'255,250,240','forestgreen':'34,139,34','fuchsia':'255,0,255','gainsboro':'220,220,220','ghostwhite':'248,248,255','gold':'255,215,0','goldenrod':'218,165,32','gray':'128,128,128','grey':'128,128,128','greenyellow':'173,255,47','green':'0,128,0','honeydew':'240,255,240','hotpink':'255,105,180','indianred':'205,92,92','indigo':'75,0,130','ivory':'255,255,240','khaki':'240,230,140','lavenderblush':'255,240,245','lavender':'230,230,250','lawngreen':'124,252,0','lemonchiffon':'255,250,205','lightblue':'173,216,230','lightcoral':'240,128,128','lightcyan':'224,255,255','lightgoldenrodyellow':'250,250,210','lightgray':'211,211,211','lightgrey':'211,211,211','lightgreen':'144,238,144','lightpink':'255,182,193','lightsalmon':'255,160,122','lightseagreen':'32,178,170','lightskyblue':'135,206,250','lightslategray':'119,136,153','lightsteelblue':'176,196,222','lightyellow':'255,255,224','limegreen':'50,205,50','lime':'0,255,0','linen':'250,240,230','magenta':'255,0,255','maroon':'128,0,0','mediumaquamarine':'102,205,170','mediumblue':'0,0,205','mediumorchid':'186,85,211','mediumpurple':'147,112,219','mediumseagreen':'60,179,113','mediumslateblue':'123,104,238','mediumspringgreen':'0,250,154','mediumturquoise':'72,209,204','mediumvioletred':'199,21,133','midnightblue':'25,25,112','mintcream':'245,255,250','mistyrose':'255,228,225','moccasin':'255,228,181','navajowhite':'255,222,173','navy':'0,0,128','oldlace':'253,245,230','olivedrab':'107,142,35','olive':'128,128,0','orangered':'255,69,0','orange':'255,165,0','orchid':'218,112,214','palegoldenrod':'238,232,170','palegreen':'152,251,152','paleturquoise':'175,238,238','palevioletred':'219,112,147','papayawhip':'255,239,213','peachpuff':'255,218,185','peru':'205,133,63','pink':'255,192,203','plum':'221,160,221','powderblue':'176,224,230','purple':'128,0,128','red':'255,0,0','rosybrown':'188,143,143','royalblue':'65,105,225','saddlebrown':'139,69,19','salmon':'250,128,114','sandybrown':'244,164,96','seagreen':'46,139,87','seashell':'255,245,238','sienna':'160,82,45','silver':'192,192,192','skyblue':'135,206,235','slateblue':'106,90,205','slategray':'112,128,144','snow':'255,250,250','springgreen':'0,255,127','steelblue':'70,130,180','tan':'210,180,140','teal':'0,128,128','thistle':'216,191,216','tomato':'255,99,71','turquoise':'64,224,208','violet':'238,130,238','wheat':'245,222,179','whitesmoke':'245,245,245','white':'255,255,255','yellowgreen':'154,205,50','yellow':'255,255,0'}},Hooks:{templates:{'textShadow':['Color X Y Blur','black 0px 0px 0px'],'boxShadow':['Color X Y Blur Spread','black 0px 0px 0px 0px'],'clip':['Top Right Bottom Left','0px 0px 0px 0px'],'backgroundPosition':['X Y','0% 0%'],'transformOrigin':['X Y Z','50% 50% 0px'],'perspectiveOrigin':['X Y','50% 50%']},registered:{},register:function(){for(var a=0;a=1){return''} else{return'alpha(opacity='+parseInt(parseFloat(r)*100,10)+')'}}} else{switch(e){case'name':return'opacity';case'extract':return r;case'inject':return r}}}},register:function(){if((!u||u>9)&&!i.State.isGingerbread){t.Lists.transformsBase=t.Lists.transformsBase.concat(t.Lists.transforms3D)};for(var a=0;a8)&&s.split(' ').length===3){s+=' 1'};return s;case'inject':if(/^rgb/.test(a)){return a};if(u<=8){if(a.split(' ').length===4){a=a.split(/\s+/).slice(0,3).join(' ')}} else if(a.split(' ').length===3){a+=' 1'};return(u<=8?'rgb':'rgba')+'('+a.replace(/\s+/g,',').replace(/\.(\d)+(?=,)/g,'')+')'}}})()};function o(e,r,i){var u=t.getPropertyValue(r,'boxSizing').toString().toLowerCase()==='border-box';if(u===(i||!1)){var a,o,s=0,n=e==='width'?['Left','Right']:['Top','Bottom'],l=['padding'+n[0],'padding'+n[1],'border'+n[0]+'Width','border'+n[1]+'Width'];for(a=0;a=2){console.log('Get '+o+': '+f)};return f},setPropertyValue:function(e,a,n,o,l){var f=a;if(a==='scroll'){if(l.container){l.container['scroll'+l.direction]=n} else{if(l.direction==='Left'){r.scrollTo(n,l.alternateValue)} else{r.scrollTo(l.alternateValue,n)}}} else{if(t.Normalizations.registered[a]&&t.Normalizations.registered[a]('name',e)==='transform'){t.Normalizations.registered[a]('inject',e,n);f='transform';n=s(e).transformCache[a]} else{if(t.Hooks.registered[a]){var g=a,d=t.Hooks.getRoot(a);o=o||t.getPropertyValue(e,d);n=t.Hooks.injectValue(g,n,o);a=d};if(t.Normalizations.registered[a]){n=t.Normalizations.registered[a]('inject',e,n);a=t.Normalizations.registered[a]('name',e)};f=t.Names.prefixCheck(a)[0];if(u<=8){try{e.style[f]=n}catch(c){if(i.debug){console.log('Browser does not support ['+n+'] for ['+f+']')}}} else{var p=s(e);if(p&&p.isSVG&&t.Names.SVGAttribute(a)){e.setAttribute(a,n)} else{e.style[f]=n}};if(i.debug>=2){console.log('Set '+a+' ('+f+'): '+n)}}};return[f,n]},flushTransformCache:function(e){var n='',c=s(e);if((u||(i.State.isAndroid&&!i.State.isChrome))&&c&&c.isSVG){var r=function(r){return parseFloat(t.getPropertyValue(e,r))},f={translate:[r('translateX'),r('translateY')],skewX:[r('skewX')],skewY:[r('skewY')],scale:r('scale')!==1?[r('scale'),r('scale')]:[r('scaleX'),r('scaleY')],rotate:[r('rotateZ'),0,0]};a.each(s(e).transformCache,function(e){if(/^translate/i.test(e)){e='translate'} else if(/^scale/i.test(e)){e='scale'} else if(/^rotate/i.test(e)){e='rotate'};if(f[e]){n+=e+'('+f[e].join(' ')+') ';delete f[e]}})} else{var o,l;a.each(s(e).transformCache,function(t){o=s(e).transformCache[t];if(t==='transformPerspective'){l=o;return!0};if(u===9&&t==='rotateZ'){t='rotate'};n+=t+o+' '});if(l){n='perspective'+l+' '+n}};t.setPropertyValue(e,'transform',n)}};t.Hooks.register();t.Normalizations.register();i.hook=function(e,r,o){var l;e=m(e);a.each(e,function(e,a){if(s(a)===n){i.init(a)};if(o===n){if(l===n){l=t.getPropertyValue(a,r)}} else{var u=t.setPropertyValue(a,r,o);if(u[0]==='transform'){i.CSS.flushTransformCache(a)};l=u}});return l};var f=function(){var u;function V(){if(A){return S.promise||null} else{return j}};var H=(arguments[0]&&(arguments[0].p||((a.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names)||o.isString(arguments[0].properties)))),A,j,C,c,x,e;if(o.isWrapped(this)){A=!1;C=0;c=this;j=this} else{A=!0;C=1;c=H?(arguments[0].elements||arguments[0].e):arguments[0]};var S={promise:null,resolver:null,rejecter:null};if(A&&i.Promise){S.promise=new i.Promise(function(e,t){S.resolver=e;S.rejecter=t})};if(H){x=arguments[0].properties||arguments[0].p;e=arguments[0].options||arguments[0].o} else{x=arguments[C];e=arguments[C+1]};c=m(c);if(!c){if(S.promise){if(!x||!e||e.promiseRejectEmpty!==!1){S.rejecter()} else{S.resolver()}};return};var k=c.length,N=0;if(!/^(stop|finish|finishAll|pause|resume)$/i.test(x)&&!a.isPlainObject(e)){var W=C+1;e={};for(var P=W;P=4&&p==='('){g++} else if((g&&g<5)||g>=4&&p===')'&&--g<5){g=0};if(d===0&&p==='r'||d===1&&p==='g'||d===2&&p==='b'||d===3&&p==='a'||d>=3&&p==='('){if(d===3&&p==='a'){k=1};d++} else if(k&&p===','){if(++k>3){d=k=0}} else if((k&&d<(k?5:4))||d>=(k?4:3)&&p===')'&&--d<(k?5:4)){d=k=0}} else{g=0;break}};if(V!==f.length||T!==c.length){if(i.debug){console.error('Trying to pattern match mis-matched strings ["'+c+'", "'+f+'"]')};w=n};if(w){if(S.length){if(i.debug){console.log('Pattern found "'+w+'" -> ',S,O,'['+f+','+c+']')};f=S;c=O;x=F=''} else{w=n}}};if(!w){E=B(e,f);f=E[0];F=E[1];E=B(e,c);c=E[0].replace(/^([+-\/*])=/,function(e,t){z=t;return''});x=E[1];f=parseFloat(f)||0;c=parseFloat(c)||0;if(x==='%'){if(/^(fontSize|lineHeight)$/.test(e)){c=c/100;x='em'} else if(/^scale/.test(e)){c=c/100;x=''} else if(/(Red|Green|Blue)$/i.test(e)){c=(c/100)*255;x=''}}};var G=function(){var o={myParent:u.parentNode||l.body,position:t.getPropertyValue(u,'position'),fontSize:t.getPropertyValue(u,'fontSize')},f=((o.position===h.lastPosition)&&(o.myParent===h.lastParent)),c=(o.fontSize===h.lastFontSize);h.lastParent=o.myParent;h.lastPosition=o.position;h.lastFontSize=o.fontSize;var s=100,n={};if(!c||!f){var e=b&&b.isSVG?l.createElementNS('http://www.w3.org/2000/svg','rect'):l.createElement('div');i.init(e);o.myParent.appendChild(e);a.each(['overflow','overflowX','overflowY'],function(t,r){i.CSS.setPropertyValue(e,r,'hidden')});i.CSS.setPropertyValue(e,'position',o.position);i.CSS.setPropertyValue(e,'fontSize',o.fontSize);i.CSS.setPropertyValue(e,'boxSizing','content-box');a.each(['minWidth','maxWidth','width','minHeight','maxHeight','height'],function(t,r){i.CSS.setPropertyValue(e,r,s+'%')});i.CSS.setPropertyValue(e,'paddingLeft',s+'em');n.percentToPxWidth=h.lastPercentToPxWidth=(parseFloat(t.getPropertyValue(e,'width',null,!0))||1)/s;n.percentToPxHeight=h.lastPercentToPxHeight=(parseFloat(t.getPropertyValue(e,'height',null,!0))||1)/s;n.emToPx=h.lastEmToPx=(parseFloat(t.getPropertyValue(e,'paddingLeft'))||1)/s;o.myParent.removeChild(e)} else{n.emToPx=h.lastEmToPx;n.percentToPxWidth=h.lastPercentToPxWidth;n.percentToPxHeight=h.lastPercentToPxHeight};if(h.remToPx===null){h.remToPx=parseFloat(t.getPropertyValue(l.body,'fontSize'))||16};if(h.vwToPx===null){h.vwToPx=parseFloat(r.innerWidth)/100;h.vhToPx=parseFloat(r.innerHeight)/100};n.remToPx=h.remToPx;n.vwToPx=h.vwToPx;n.vhToPx=h.vhToPx;if(i.debug>=1){console.log('Unit ratios: '+JSON.stringify(n),u)};return n};if(/[\/*]/.test(z)){x=F} else if((F!==x)&&f!==0){if(c===0){x=F} else{v=v||G();var I=(/margin|padding|left|right|width|text|word|letter/i.test(e)||/X$/.test(e)||e==='x')?'x':'y';switch(F){case'%':f*=(I==='x'?v.percentToPxWidth:v.percentToPxHeight);break;case'px':break;default:f*=v[F+'ToPx']};switch(x){case'%':f*=1/(I==='x'?v.percentToPxWidth:v.percentToPxHeight);break;case'px':break;default:f*=1/v[x+'ToPx']}}};switch(z){case'+':c=f+c;break;case'-':c=f-c;break;case'*':c=f*c;break;case'/':c=f/c;break};y[e]={rootPropertyValue:H,startValue:f,currentValue:f,endValue:c,unitType:x,easing:X};if(w){y[e].pattern=w};if(i.debug){console.log('tweensContainer ('+e+'): '+JSON.stringify(y[e]),u)}};for(var j in x){if(!x.hasOwnProperty(j)){continue};var O=t.Names.camelCase(j),H=U(x[j]);if(w(t.Lists.colors,O)){var z=H[0],D=H[1],X=H[2];if(t.RegEx.isHex.test(z)){var M=['Red','Green','Blue'],Q=t.Values.hexToRgb(z),B=X?t.Values.hexToRgb(X):n;for(var E=0;E10000){i.State.calls=V(i.State.calls);F=i.State.calls.length};for(var g=0;gparseFloat(e[1]))};if(u(c,l)){var o='Velocity UI Pack: You need to update Velocity (velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.';alert(o);throw new Error(o)};t.RegisterEffect=t.RegisterUI=function(e,a){function n(a,e,i,n){var s=0,o;r.each(a.nodeType?[a]:a,function(a,e){if(n){i+=a*n};o=e.parentNode;var l=['height','paddingTop','paddingBottom','marginTop','marginBottom'];if(t.CSS.getPropertyValue(e,'boxSizing').toString().toLowerCase()==='border-box'){l=['height']};r.each(l,function(a,r){s+=parseFloat(t.CSS.getPropertyValue(e,r))})});t.animate(o,{height:(e==='In'?'+':'-')+'='+s},{queue:!1,easing:'ease-in-out',duration:i*(e==='In'?0.6:1)})};t.Redirects[e]=function(o,s,f,y,l,O,p){var I=(f===y-1),Y=0;p=p||a.loop;if(typeof a.defaultDuration==='function'){a.defaultDuration=a.defaultDuration.call(l,l)} else{a.defaultDuration=parseFloat(a.defaultDuration)};for(var u=0;u=1?0:a.calls.length?(1-Y)/a.calls.length:1;for(u=0;u1){r.each(e.reverse(),function(a,i){var n=e[a+1];if(n){var l=i.o||i.options,s=n.o||n.options,c=(l&&l.sequenceQueue===!1)?'begin':'complete',u=s&&s[c],o={};o[c]=function(){var a=n.e||n.elements,e=a.nodeType?[a]:a;if(u){u.call(e,e)};t(i)};if(n.o){n.o=r.extend({},s,o)} else{n.options=r.extend({},s,o)}}});e.reverse()};t(e[0])}}((window.jQuery||window.Zepto||window),window,(window?window.document:undefined))}));; /*! js-cookie v3.0.0-rc.0 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self,function(){var r=e.Cookies,n=e.Cookies=t();n.noConflict=function(){return e.Cookies=r,n}}())}(this,function(){"use strict";function e(e){for(var t=1;t1&&arguments[1]!==undefined?arguments[1]:undefined,d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;t=t&&!e.cookie.raw?encodeURIComponent(t):t;if(o!==undefined&&!r(o)){var u=Object.assign({},e.cookie.defaults,d);if(typeof u.expires==='string'&&u.expires!==''){u.expires=new Date(u.expires)};var s=n.withConverter({write:function(e){return encodeURIComponent(e)}});o=e.cookie.json&&!e.cookie.raw?JSON.stringify(o):String(o);return s.set(t,o,u)};var f=o,a=n.withConverter({read:function(n,t){return i(n,t,f,e.cookie.raw,e.cookie.json)}});if(t!==undefined){return a.get(t)};var c=a.get();Object.keys(c).forEach(function(e){if(c[e]===undefined){delete c[e]}});return c};e.cookie.defaults=Object.assign({path:''},n.defaults);e.cookie.json=!1;e.cookie.raw=!1;e.removeCookie=function(t,r){n.remove(t,Object.assign({},e.cookie.defaults,r));return!n.get(t)}})(jQuery,Drupal,window.Cookies);; (function(t,e,a){e.behaviors.viuAnalytics={attach:function(a,l){a.viuAnalytics={};e.PlanetaAnalytics=e.PlanetaAnalytics||{};e.PlanetaAnalytics.filterDistro=function(a,l){a.on("submit",function(a){let label=undefined,args,cds,textSearch,categorySelected,categoryText,areaSelected,areaText,category=undefined;let $this=t(this);if(e.PlanetaAnalytics.debug){a.preventDefault();console.log(event);console.log($this)};if(event["stopPropagation"]){a.stopPropagation()};switch(l){case"news":textSearch=$this[0].getElementsByClassName("form-autocomplete")[0].value;if(textSearch!==""){label=textSearch};category="article_list";categorySelected=$this[0].getElementsByClassName("form-item-field-shared-tag-target-id")[0].children[0];categoryText=categorySelected.options[categorySelected.selectedIndex].text;areaSelected=$this[0].getElementsByClassName("form-item-field-shared-category-target-id")[0].children[0];areaText=areaSelected.options[areaSelected.selectedIndex].text;break;case"article":textSearch=$this[0].getElementsByClassName("form-autocomplete")[0].value;if(textSearch!==""){label=textSearch};category="blog";categorySelected=$this[0].getElementsByClassName("form-item-field-shared-tag-target-id")[0].children[0];categoryText=categorySelected.options[categorySelected.selectedIndex].text;if(categoryText=="- Categoría -"){categoryText=undefined};areaSelected=$this[0].getElementsByClassName("form-item-field-shared-categories-target-id")[0].children[0];areaText=areaSelected.options[areaSelected.selectedIndex].text;if(areaText=="- Tag -"){areaText=undefined};break};args={category:e.PlanetaAnalytics.sanitize(category),action:e.PlanetaAnalytics.sanitize("search"),label:e.PlanetaAnalytics.sanitize(label),ecommerce:undefined};console.log("args->",args);cds={product:{name:undefined,category:e.PlanetaAnalytics.sanitize(categoryText),area:e.PlanetaAnalytics.sanitize(areaText)}};e.PlanetaAnalytics.imAnalyticsEvent(args,cds)})};e.PlanetaAnalytics.languageSwitcher=function(a){for(let i=0;i",action);label=e.PlanetaAnalytics.functionOrFallback($this,"Drupal.PlanetaAnalytics.getLabel","",labelSelector);console.log("label->",label);category="header";args={category:e.PlanetaAnalytics.sanitize(category),action:e.PlanetaAnalytics.sanitize(action),label:e.PlanetaAnalytics.sanitize(label),ecommerce:undefined};console.log("args->",args);e.PlanetaAnalytics.imAnalyticsEvent(args,cds)})}};let newsDistro=t("section.sb-component-distribution div.view-display-id-block_distribution_news_viu form",a);e.PlanetaAnalytics.filterDistro(newsDistro,"news");let blogDistro=t("section.sb-component-distribution div.view-display-id-block_distribution_article_viu form",a);e.PlanetaAnalytics.filterDistro(blogDistro,"article");let blockLanguageSwitcher=t("div[id|='block-languageswitcher-viu'] li.language-selector__lang a",a);e.PlanetaAnalytics.languageSwitcher(blockLanguageSwitcher)}}})(jQuery,Drupal,drupalSettings);; (function(e,t,o){t.behaviors.general={attach:function(o,n){o.SbGeneral={};e(".node--type-articlee .bookmark",o).once("myCustomBehavior").on("click",function(){let items=d(),object=e(this),nodeId=object.attr("data-content");if(e(".block-content-type-wishlist",o).length){let index=items.indexOf(nodeId);items.splice(index,1);object.removeClass("active");window.location.reload()} else{if(items.length===0){items.push(nodeId);object.addClass("active")} else{let index=items.indexOf(nodeId);if(index!=-1){items.splice(index,1);object.removeClass("active")} else{items.push(nodeId);object.addClass("active")}}};f(items)});let bookmarks=e(".bookmark",o);bookmarks.once("mySecondCustomBehavior");for(let i=0;i0){_distro.find("[data-drupal-views-infinite-scroll-pager]").remove()};if(_distro.find("div.view-empty").length>0){_distro.find("nav.pager").remove()}};let bodySelector=e("body");if(n.is_no_link_page&&bodySelector.data("no_link")===undefined){let links=bodySelector.find("a");for(let i=0;i