PageSourceSearch

https://int.diasorin.com/sites/default/files/js/js_GVHb5JhDkTTLOmD…-kb-fNBP5YHcwQoSB3W1YRGaRxafcMXC_TTsB-q-DmA

js diasorin.com collected 2026-10-02 05:28:32 UTC 257,149 bytes, 49 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($,Drupal,cookies,once){'use strict';var $window=$(window);var renewConsentTriggerEventName='cookiebotConsentRenew';var capitalizeFirstCharacter=function(string){return string[0].toUpperCase()+string.substring(1);};$window.on('CookiebotOnAccept',function(){Drupal.cookiebot.updateCookies();});$window.on('CookiebotOnDecline',function(){Drupal.cookiebot.updateCookies();});$window.on(renewConsentTriggerEventName,function(){if(typeof Cookiebot==='undefined')return;Cookiebot.renew();});Drupal.behaviors.cookiebot={attach:function attach(context){Drupal.cookiebot.updateCookies();$('.cookiebot-renew',context).on('click',(event)=>{event.preventDefault();$window.trigger(renewConsentTriggerEventName);});}};Drupal.cookiebot={updateCookies:function updateCookies(){var cookieNames=['necessary','preferences','statistics','marketing'];if(typeof Cookiebot==='undefined'||Cookiebot.consent===void (0))return;$.each(cookieNames,function(index,cookieName){if(Cookiebot.consent[cookieName]===true&&cookies.get('cookiebot-consent--'+cookieName)!=='1'){cookies.set('cookiebot-consent--'+cookieName,'1',JSON.stringify({path:'/'}));$window.trigger('cookiebotConsentAccept'+capitalizeFirstCharacter(cookieName));return;}if(Cookiebot.consent[cookieName]===false&&cookies.get('cookiebot-consent--'+cookieName)!=='0'){cookies.set('cookiebot-consent--'+cookieName,'0',JSON.stringify({path:'/'}));$window.trigger('cookiebotConsentDecline'+capitalizeFirstCharacter(cookieName));}});if(drupalSettings.cookiebot.message_placeholder_cookieconsent_optout_marketing_show&&drupalSettings.cookiebot.message_placeholder_cookieconsent_optout_marketing.length>0){var message_placeholder_cookieconsent_optout_marketing=drupalSettings.cookiebot.message_placeholder_cookieconsent_optout_marketing.replace('!cookiebot_renew','javascript:Cookiebot.renew()');$('[data-cookieconsent="marketing"][data-src]').each(function(){var cookiebot_from_src_url='';if($(this).attr('data-src').length)cookiebot_from_src_url=$(this).attr('data-src');$(once('cb-message-placeholder-cookieconsent-optout-marketing',this)).after(message_placeholder_cookieconsent_optout_marketing.replace(new RegExp('!cookiebot_from_src_url','g'),cookiebot_from_src_url));});}}};})(jQuery,Drupal,window.Cookies,once);;
3(function($,Drupal,drupalSettings){if(typeof $.fn.slick!=='function')$.fn.slick=function(){return this;};$(document).ready(function(){function isElementInViewport(el){var rect=el.getBoundingClientRect();return (rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&rect.right<=(window.innerWidth||document.documentElement.clientWidth));}function handleScrollAnimation(){if($(window).width()>=1200)$(".animate").each(function(){if(isElementInViewport(this))$(this).addClass("animated");});}$(document).ready(handleScrollAnimation);$(window).scroll(handleScrollAnimation);if($('.diasorin-homepage-slider').length)$(".diasorin-homepage-slider .slide__media video").attr("playsinline",true);var url=window.location.pathname.split('/');var secondElement=url[2];$('.diasorin-top-menu .nav .nav-item').each(function(){var href=$(this).find('a').attr('href');if(href.indexOf(secondElement)!==-1)$(this).addClass('active-menu-item');});$('.menu-trigger').click(function(){$('.menu-item').toggleClass('menu-open');});$(document).on('click',function(event){if(!$(event.target).closest('.menu-item, .menu-trigger').length){$('.menu-item').removeClass('menu-open');$('body').removeClass('menu-open');}});$('.toggle-body').click(function(){$('.slick-slide.slick-current .single-history-wrapper').toggleClass('active');});if($('.sidebar aside .diasorin-sidebar-menu').length){var $menu=$('.sidebar aside .diasorin-sidebar-menu');var $container=$('#sidebar_first .section');function checkPosition(){var menuBottom=$menu.offset().top+$menu.outerHeight();var containerBottom=$container.offset().top+$container.outerHeight();var marginOfError=1;if(menuBottom+marginOfError>=containerBottom&&!$container.hasClass('sidebar-bottom'))$container.addClass('sidebar-bottom');else{if(menuBottom<containerBottom-marginOfError&&$container.hasClass('sidebar-bottom'))$container.removeClass('sidebar-bottom');}}checkPosition();$(window).on('resize scroll',checkPosition);var lastScrollTop=0;var $sidebar=$('.sidebar aside');var $sidebarMenu=$('.sidebar aside .diasorin-sidebar-menu');$(window).scroll(function(){var currentScrollTop=$(this).scrollTop();var sidebarMenuTop=$sidebarMenu.offset().top;var scrollUp=currentScrollTop<lastScrollTop;if(scrollUp&&currentScrollTop<(sidebarMenuTop-168))$sidebar.addClass('sidebar-scroll-up');else $sidebar.removeClass('sidebar-scroll-up');lastScrollTop=currentScrollTop;});}$('.slider').slick({dots:true,infinite:true,speed:300,slidesToScroll:1});
3$('.csrd-slider-projects').slick({dots:true,infinite:true,speed:300,slidesToShow:1,slidesToScroll:1,adaptiveHeight:true,arrows:false});$('.memed-slider').slick({dots:true,infinite:true,speed:300,autoplay:true,autoplaySpeed:3000,slidesToShow:1,slidesToScroll:1,responsive:[{breakpoint:991.98,settings:{adaptiveHeight:true}}]});$('.image-gallery-wrapper').slick({dots:true,infinite:false,speed:900,slidesToScroll:1});if($('.multi-card-slider').not('.business-model-slider').length){var arrows=false;var $multiCardSlider=$('.multi-card-slider .slider-wrapper');var controlsContainer=$multiCardSlider;var isGlobalEventsSlide=$multiCardSlider.parents('.global-events-highlighted').length;if(isGlobalEventsSlide){arrows=true;controlsContainer=$multiCardSlider.parents('.global-events-highlighted').find('.global-events-highlighted__controls');}$multiCardSlider.slick({slidesToShow:4,slidesToScroll:1,arrows,infinite:false,variableWidth:false,appendArrows:controlsContainer,appendDots:controlsContainer,dots:true,responsive:[{breakpoint:1366,settings:{slidesToShow:3}},{breakpoint:1024,settings:{slidesToShow:2}},{breakpoint:480,settings:{slidesToShow:1}}]});}if($('.multi-card-slider.business-model-slider').length){var arrows=false;var $multiCardSlider=$('.multi-card-slider.business-model-slider .slider-wrapper');var controlsContainer=$multiCardSlider;var isGlobalEventsSlide=$multiCardSlider.parents('.global-events-highlighted').length;if(isGlobalEventsSlide){arrows=true;controlsContainer=$multiCardSlider.parents('.global-events-highlighted').find('.global-events-highlighted__controls');}$multiCardSlider.slick({slidesToShow:3,slidesToScroll:1,arrows,infinite:false,variableWidth:false,dots:true,responsive:[{breakpoint:1780,settings:{slidesToShow:2}},{breakpoint:768,settings:{slidesToShow:1,centerMode:true}}]});}if($('.view-related-projects').length){var $slider=$('.view-related-projects .view-content');$slider.slick({slidesToShow:4,speed:400,arrows:true,dots:true,infinite:true,responsive:[{breakpoint:1280,settings:{slidesToShow:2,centerMode:true}},{breakpoint:768,settings:{slidesToShow:1,centerMode:true,infinite:true}}]});}if($('.nes-resources-wrapper-slider').length){var $slider=$('.nes-resources-wrapper-slider .view-content');$slider.slick({slidesToShow:4,speed:400,arrows:false,dots:true,infinite:true,responsive:[{breakpoint:1280,settings:{slidesToShow:2,centerMode:true,variableWidth:true}},{breakpoint:768,settings:{slidesToShow:1,centerMode:true,infinite:true,variableWidth:true}}]});}if($('.page-view-immuno-find-your-solution').length){var productCount={};$('.single-product').each(function(){var productId=$(this).attr('class').match(/product-card-(\d+)/)[1];if(productId in productCount)productCount[productId]++;else productCount[productId]=1;});$('.related-product').each(function(){var productId=$(this).attr('class').match(/product-card-(\d+)/)[1];
3if(productId in productCount&&productCount[productId]>1)$(this).addClass('related-repeated');});$('.related-repeated').remove();var $relatedProducts=$('.view-immuno-search-related-products .view-content .related-product');var $newRelatedProductsDiv=$('<div class="related-products-container"></div>');$newRelatedProductsDiv.append($relatedProducts);$('.view-immuno-search-related-products .view-content').empty().append($newRelatedProductsDiv);$newRelatedProductsDiv.find('.related-product').hide();$newRelatedProductsDiv.find('.related-product').slice(0,4).show();if($newRelatedProductsDiv.find('.related-product').length>4){$('.view-immuno-search-related-products .view-content').after($('.load-more'));$('.load-more a').click(function(e){e.preventDefault();var $hiddenRelatedProducts=$newRelatedProductsDiv.find('.related-product:hidden');$hiddenRelatedProducts.slice(0,4).show();if($hiddenRelatedProducts.length<=4)$('.load-more').hide();});if($newRelatedProductsDiv.find('.related-product:hidden').length<=4)$('.load-more').hide();}var activeClientType=$('.facets-control-client-type a.is-active').text().trim();var hrefValue='#'+activeClientType;$('.single-product .btn').attr('href',function(index,oldHref){return oldHref+hrefValue;});if($newRelatedProductsDiv.is(':empty'))$('.view-immuno-search-related-products').addClass('hidden');}if($('.node--type-product').length){var hashValue=window.location.hash.substr(1);if(hashValue==='a-lab-manager'){$('#pills-laboratorist-tab').addClass('active');$('#pills-laboratorist').addClass('active');}else{if(hashValue==='a-clinician'){$('#pills-clinician-tab').addClass('active');$('#pills-clinician').addClass('active');}}}$(".diasorin-fly-menu .diasorin-fly-opener").on("click",function(){$(".diasorin-fly-menu").toggleClass("fly-open");});$('#scroll-top-btn').click(function(){$('html, body').animate({scrollTop:0});return false;});$(window).on('scroll',function(){if($('.general-anchor-menu').length){var scrollPosition=$(window).scrollTop();$('.general-anchor-menu').each(function(){var elementOffset=$(this).offset().top;if(elementOffset<=scrollPosition)$(this).addClass('anchor-fixed');else $(this).removeClass('anchor-fixed');});}if($('.memed-anchor-menu').length){var scrollPosition=$(window).scrollTop();$('.memed-anchor-menu').each(function(){var elementOffset=$(this).offset().top;if(elementOffset<=scrollPosition)$(this).addClass('anchor-fixed');else $(this).removeClass('anchor-fixed');});$('.node--type-landing-page .tabs-wrapper #pills-tab.nav-pills .nav-item .nav-link').on('click',function(){$('.memed-anchor-menu').removeClass('anchor-fixed');});}});if($('.product-client-selection').length){$('.section-clinical .anchor-menu .anchor-menu-inner a').each(function(){var hrefVal=$(this).attr('href');$(this).attr('href',hrefVal+'clinical');});$('.section-laboratorist .anchor-menu .anchor-menu-inner a').each(function(){var hrefVal=$(this).attr('href');$(this).attr('href',hrefVal+'laboratorist');});$('.section-clinical .anchor-wrapper-item .anchor-item').each(function(){var idVal=$(this).attr('id');$(this).attr('id',idVal+'clinical');});$('.section-laboratorist .anchor-wrapper-item .anchor-item').each(function(){var idVal=$(this).attr('id');$(this).attr('id',idVal+'laboratorist');});$('.client-type-selection .nav-link.btn').click(function(){$('.anchor-menu').removeClass('anchor-fixed');});}if($('.view-test-our-history').length)$('.view-test-our-history .view-content').slick({centerMode:true,centerPadding:'20px',slidesToShow:3,arrows:false,variableWidth:true,focusOnSelect:true,responsive:[{breakpoint:1024,settings:{centerMode:true,centerPadding:'40px',slidesToShow:1,infinite:true}}]});function updateAdjacentSlides(){var $slickCurrent=$('.view-test-our-history .slick-current.slick-active.slick-center');var $prevSlide=$slickCurrent.prev();var $nextSlide=$slickCurrent.next();$('.slide-active-prev').removeClass('slide-active-prev');$('.slide-active-next').removeClass('slide-active-next');if($prevSlide.length)$prevSlide.addClass('slide-active-prev');if($nextSlide.length)$nextSlide.addClass('slide-active-next');}$('.view-test-our-history').on('afterChange',function(event,slick,currentSlide){updateAdjacentSlides();});updateAdjacentSlides();$(window).on("load",function(){$(".view-molecular-diagnostics-systems-instruments.view-display-id-block_2 .views-table tbody, .view-id-ltg_microspheres.view-display-id-block_2 .views-table tbody, .view-ltg-systems-instruments.view-display-id-block_2 .views-table tbody").mCustomScrollbar({axis:"x",theme:"dark",scrollInertia:0,alwaysShowScrollbar:2,mouseWheel:false});$(".scrollable-disclaimer").mCustomScrollbar({axis:"y",theme:"dark",scrollInertia:0,alwaysShowScrollbar:2,mouseWheel:{scrollAmount:1000}});});if(window.performance.navigation.type==1)return;if($('#fys-search').length>0){var scrollPos=sessionStorage.getItem('scrollPos');if(scrollPos!==null){$(window).scrollTop(scrollPos);sessionStorage.removeItem('scrollPos');}$(window).on('beforeunload',function(){var scrollPos=$(window).scrollTop();sessionStorage.setItem('scrollPos',scrollPos);});}if($('.read-more-wrapper').length)$('.readmore-btn').click(function(){$('.more-text').slideToggle();$('.readmore-btn').toggleClass('open');});var breadcrumbs=$('.breadcrumb-item').find('a');
3if($(window).width()<400)breadcrumbs.each(function(index){if(index!==0){var text=$(this).text();if(text.length>3){var truncatedText=text.substr(0,3)+'...';$(this).text(truncatedText);}}});else breadcrumbs.each(function(index){if(index!==0){var originalText=$(this).data('original-text');$(this).text(originalText);}});breadcrumbs.each(function(){var text=$(this).text();$(this).data('original-text',text);});});if($('.pr-redirect-value').length){var redirectValue=$('.pr-redirect-value').text().trim();if(redirectValue==='Investors'){var currentUrl=window.location.href;var baseUrl=currentUrl.split('/').slice(0,3).join('/');var language=currentUrl.split('/')[3];var newUrl=baseUrl+'/'+language+'/node/68';window.location.href=newUrl;}else{var currentUrl=window.location.href;var baseUrl=currentUrl.split('/').slice(0,3).join('/');var language=currentUrl.split('/')[3];var newUrl=baseUrl+'/'+language+'/node/118';window.location.href=newUrl;}}$(window).on("load",function(){if($('.section-filters-year-cat').length){var yearFacet=$('.section-filters-year-cat ul');var facetItems=yearFacet.find('.facet-item');if(facetItems.length>10)yearFacet.addClass('scrollable');}if($('.colored-table').length)$(".table-module-wrapper .colored-table table tbody").each(function(){var tableColor=$(this).data("number-color");$(this).find("tr td *").css("border-color",tableColor);});;$(".view-diasorin-facilites .views-exposed-form .form-item-facility-type:nth-child(2) input").click();$('.diasorin-main-menu li.menu-item--expanded > span').on('click',function(event){var clickedMenuItem=$(this).parent();var subMenu=clickedMenuItem.find('ul.sub-menu');if(subMenu.length>0)subMenu.slideToggle();else{$('.diasorin-main-menu li.menu-item--expanded > ul.sub-menu').not(subMenu).slideUp();clickedMenuItem.siblings().removeClass('menu-open');clickedMenuItem.toggleClass('menu-open');if(clickedMenuItem.hasClass('menu-open'))$('body').addClass('menu-open');else{if($('.diasorin-main-menu li.menu-item--expanded.menu-open').length===0)$('body').removeClass('menu-open');}}event.stopPropagation();});$('.diasorin-main-menu > .menu > .menu-item--expanded > span').on('click',function(){$('.diasorin-main-menu > .menu > .menu-item--expanded .menu-item--expanded').removeClass('menu-open');});$('.diasorin-megamenu.diasorin-main-menu .menu-item--expanded>.menu-dropdown .menu.menu-level-1>.menu-item > span').on('click',function(){console.log('click');$('.diasorin-megamenu.diasorin-main-menu .menu-item--expanded>.menu-dropdown .menu.menu-level-1>.menu-item.menu-open>.menu-dropdown .menu-item--expanded').removeClass('menu-open');});$(document).on('scroll',function(){$('.diasorin-main-menu:not(.diasorin-megamenu) .menu-item--expanded').removeClass('menu-open');});$(document).on('click','.diasorin-megamenu-close',function(){$('.diasorin-main-menu .menu-item--expanded').removeClass('menu-open');$('body').removeClass('menu-open');});$(document).on('click','.diasorin-main-menu .menu-item--expanded>.menu-dropdown .menu.menu-level-1>.menu-item>span',function(){console.log('click');});$('body:not(.page-view-global-search) div#page-wrapper .featured-top .diasorin-global-search-bar').append('<button class="search-close"><i class="icon-diasorin-close"></i></button>');$('body:not(.page-view-memed-global-search) div#page-wrapper .featured-top .diasorin-memed-global-search-bar').append('<button class="search-close"><i class="icon-diasorin-close"></i></button>');$('body:not(.page-view-nes-resources) div#page-wrapper .featured-top .diasorin-liaison-global-search-bar').append('<button class="search-close"><i class="icon-diasorin-close"></i></button>');$('body:not(.page-view-global-search) .diasorin-search .search').on('click',function(){$('div#page-wrapper .featured-top .diasorin-global-search-bar').addClass('visible');$('body').addClass('search-bar-visible');});$('body:not(.page-view-memed-global-search) .memed-global-search-toggle .memed-global-search-icon').on('click',function(){$('div#page-wrapper .featured-top .diasorin-memed-global-search-bar').addClass('visible');$('body').addClass('search-bar-visible');});$('body:not(.page-view-memed-global-search) .diasorin-main-menu-liaison .memed-global-search-icon, body:not(.page-view-nes-resources) .liaison-global-search-toggle').on('click',function(){$('div#page-wrapper .featured-top .diasorin-liaison-global-search-bar').addClass('visible');$('body').addClass('search-bar-visible');});$('body:not(.page-view-global-search) div#page-wrapper .featured-top .diasorin-global-search-bar .search-close').on('click',function(){$('div#page-wrapper .featured-top .diasorin-global-search-bar').removeClass('visible');$('body').removeClass('search-bar-visible');});$('body:not(.page-view-memed-global-search) div#page-wrapper .featured-top .diasorin-memed-global-search-bar .search-close').on('click',function(){$('div#page-wrapper .featured-top .diasorin-memed-global-search-bar').removeClass('visible');$('body').removeClass('search-bar-visible');});$('body:not(.page-view-nes-resources) div#page-wrapper .featured-top .diasorin-liaison-global-search-bar .search-close').on('click',function(){$('div#page-wrapper .featured-top .diasorin-liaison-global-search-bar').removeClass('visible');$('body').removeClass('search-bar-visible');});$('.client-type-selection ul li button').on('click',function(e){e.preventDefault();var currentTab=$(this).data('href');$('html, body').animate({scrollTop:$(currentTab).offset().top},500);});function ContainerSliderNavigation(containerSelector){var container=$(containerSelector);if(container.find(".slick-slider").length>0){var arrowsAndDots=container.find(".slick-slider .slick-arrow, .slick-slider .slick-dots");var sliderNavigation=$("<div class='slider-navigation'></div>");arrowsAndDots.appendTo(sliderNavigation);container.find(".slick-slider").append(sliderNavigation);}}ContainerSliderNavigation(".node--type-mdx-instrument");ContainerSliderNavigation(".node--type-systems");ContainerSliderNavigation(".node--type-ltg-instruments");const filterYear=$(".section-filters-module ul[data-drupal-facet-alias='year'] .facet-item:first-child a");if(!filterYear.hasClass('is-active'))filterYear.click();$(".single-anchor").on('click',function(e){e.preventDefault();var target=$(this).attr('href');$('html, body').animate({scrollTop:$(target).offset().top});});if(!$(".tabs-wrapper").length)$(".single-anchor-label").on('click',function(e){$(this).addClass('active').siblings('.single-anchor-label').removeClass('active');});if($(".tabs-wrapper").length){$(".tabs-wrapper .tab-content .tab-pane.show.active .single-anchor-label").on('click',function(e){$(this).addClass('active').siblings('.single-anchor-label').removeClass('active');});if($('.anchor-menu').length){var offset=10;var activeAnchor=null;$(window).scroll(function(){var position=$(this).scrollTop()+offset;$('.tabs-wrapper .tab-content .tab-pane.show.active .single-anchor-label[href^="#"]').each(function(){var anchorId=$(this).attr('href');var target=$(anchorId).offset();if(target&&target.top!==undefined&&position>=target.top)activeAnchor=anchorId;});$('.tabs-wrapper .tab-content .tab-pane.show.active .single-anchor-label[href^="#"]').removeClass("active");if(activeAnchor)$('.tabs-wrapper .tab-content .tab-pane.show.active .single-anchor-label[href="'+activeAnchor+'"]').addClass('active');});$(function(){$(window).scroll();});}}if($(window).width()>991){$(".facets-view-wrapper .js-facets-widget .facet-item a, .system-assay-facets .js-facets-links .facet-item a").on('click',function(e){e.preventDefault();if(!$(this).hasClass("is-active")){$(".facets-view-wrapper .js-facets-widget .facet-item a, .system-assay-facets .js-facets-links .facet-item a").removeClass("is-active");$(".facets-view-wrapper .js-facets-widget .facet-item a.is-active, .system-assay-facets .js-facets-links .facet-item a.is-active").click();$(this).addClass("is-active");}});if($('.facets-view-wrapper, .system-assay-facets').length>0)if(window.location.search.length>0)window.location.href=window.location.origin+window.location.pathname;else{var $firstFacetLink=$('.block-facets-ajax .js-facets-widget .facet-item:first-child a');if(!$firstFacetLink.hasClass('is-active'))$firstFacetLink.trigger('click');}};if(window.performance&&window.performance.navigation.type===2)if(window.location.search){var baseUrl=window.location.href.split('?')[0];window.location.href=baseUrl;}});if($('.system-main-features-slide').length){var $firstHotspot=$(".hotspot").eq(0);var sharedHotspotClass=$firstHotspot.data("shared-class");var $firstMedia=$(".single-media."+sharedHotspotClass).eq(0);$(".media-item-1").addClass("active");$firstHotspot.addClass("active");$firstMedia.addClass("active");$(".hotspot").click(function(){var sharedHotspotClass=$(this).data("shared-class");$(".slick-active .hotspot.active").removeClass("active");$(this).addClass("active");$(".slick-active .single-media.active").removeClass("active");$(".slick-active .single-media."+sharedHotspotClass).addClass("active");});}$(document).on('click','.immuno-search',function(){var dataHref=$(this).data('href');var language=window.location.pathname.split("/").filter((fragment)=>!!fragment).shift();var currentQuery=window.location.search;var combinedUrl="/"+language+dataHref+currentQuery;window.location.href=combinedUrl;});$(document).on('click','.drop-opener',function(){var $parent=$(this).parent();if(!$parent.hasClass('drop-open')){$('.drop-open').removeClass('drop-open');$parent.addClass('drop-open');}else $parent.removeClass('drop-open');});$(document).on('click','.reset-filters',function(){$('.diasorin-fys-search .facet-active').each(function(){$(this).find('.facets-reset a').click();});});
3if($(window).width()<1441)$(document).ready(function(){$('.spacer').each(function(){var originalHeight=$(this).height();var newHeight=originalHeight/1.5;$(this).height(newHeight);});if($('.multi-responsive-slider').length)$('.multi-responsive-slider .slider-wrapper').slick({slidesToShow:2,speed:400,arrows:true,infinite:false,variableWidth:true,dots:true,responsive:[{breakpoint:768,settings:{slidesToShow:1,centerMode:true,infinite:true}}]});});;if($(window).width()<992)$(document).ready(function(){if($('.system-hero').length){var systemBackgroundVideo=$('.system-hero .col-img.col-video .hero-back-media').detach();$('.system-hero .single-row .col-text').append(systemBackgroundVideo);}if($('.custom-facets-block.system-assay-facets, .facets-wrapper').length){var $facetItems=$('.js-facets-links .facet-item a');var $firstFacetItem=$facetItems.first();$facetItems.on('click',function(){var $clickedItem=$(this);var $clickedContainer=$clickedItem.closest('.facet-item');if(!$clickedContainer.hasClass('is-active')){$facetItems.closest('.facet-item').removeClass('is-active');$clickedContainer.addClass('is-active');}});if(window.location.search.length>0)window.location.href=window.location.origin+window.location.pathname;else{var $firstFacetLink=$('.block-facets-ajax .js-facets-widget .facet-item:first-child a');if(!$firstFacetLink.hasClass('is-active'))$firstFacetLink.trigger('click');}$(document).on('click','.facets-widget-links',function(){$(this).toggleClass('is-open');});}if($('.section-immuno-devices-product').length){$(document).on('click','.section-immuno-devices-product .view-filters .form-radios',function(e){var $radios=$(this);var $target=$(e.target);var $item=$target.closest('.js-form-type-radio');if(!$radios.hasClass('is-open')){$radios.addClass('is-open');return;}if($item.length&&$item.find('input:checked').length){$radios.removeClass('is-open');return;}if(!$item.length){$radios.removeClass('is-open');return;}if($item.length&&!$item.find('input:checked').length){$item.find('input[type="radio"]').first().prop('checked',true).trigger('change');$radios.removeClass('is-open');}});$(document).on('click',function(e){if(!$(e.target).closest('.section-immuno-devices-product .view-filters .form-radios').length)$('.section-immuno-devices-product .view-filters .form-radios').removeClass('is-open');});}$(".site-footer__top .region nav.block-menu").click(function(){if($(this).hasClass("is-open"))$(this).removeClass("is-open");else{$(".site-footer__top .region nav.block-menu").removeClass("is-open");$(this).addClass("is-open");}});$(".section-hero .multi-grid-4col-wrapper").slick({slidesToShow:1,slidesToScroll:1,dots:true,centerMode:true,variableWidth:true});$(".memed-video-webinars-card-container .view-content.row").slick({slidesToShow:1,slidesToScroll:1,dots:true,centerMode:false,variableWidth:true,infinite:false});});;$(window).on('resize',function(){if($(window).width()<991)$(".memed-video-webinars-card-container .view-content.row").slick({slidesToShow:1,slidesToScroll:1,dots:true,centerMode:false,variableWidth:true,infinite:true});else $(".memed-video-webinars-card-container .view-content.row").slick('unslick');});if($('.copy-clipboard').length){$(document).on('click','.copy-btn',function(){var $btn=$(this);var id=$btn.attr('id');var text=$('#'+id.replace('btn','code')).text();copyToClipboard(text);$btn.addClass('tooltip-clicked');setTimeout(function(){$btn.removeClass('tooltip-clicked');},2000);});function copyToClipboard(text){var inputTemp=$('<input>');$('body').append(inputTemp);inputTemp.val(text).select();document.execCommand('copy');inputTemp.remove();}}var bondAcceptCookie=getCookie('bondAccept');if(bondAcceptCookie==='true')$('body').addClass('bond-accepted');$('.bond-disclaimer-btn .full-btn.agree-btn').click(function(){document.cookie='bondAccept=true; path=/';$('body').addClass('bond-accepted');location.reload();});var domainSelectCookie=getCookie('domainSelect');if(domainSelectCookie==='true')$('body').addClass('domain-selected');$('.diasorin-product-domain-disclaimer .list-group-item a, .diasorin-memed-domain-redirect-wrapper .diasorin-memed-domain-redirect').click(function(){document.cookie='domainSelect=true; path=/';$('body').addClass('domain-selected');location.reload();});function getCookie(name){var cookieArr=document.cookie.split(';');for(var i=0;i<cookieArr.length;i++){var cookiePair=cookieArr[i].split('=');var cookieName=cookiePair[0].trim();if(cookieName===name)return decodeURIComponent(cookiePair[1]);}return null;}Drupal.behaviors.mybehavior={attach:function(context,settings){if($('.facets-year-filter').length){var list=$(".section-filters-module .facets-year-filter .facets-year-scroll ul[data-drupal-facet-alias='year'], .view-header .facets-year-filter .result-years-append");var leftArrow=$("#left-arrow");var rightArrow=$("#right-arrow");var baseScrollAmount=35;var additionalScrollAmount=37;var screenWidthThreshold=1440;leftArrow.on("click",function(){var scrollAmount=$(window).width()>screenWidthThreshold?additionalScrollAmount:baseScrollAmount;list.scrollLeft(list.scrollLeft()-scrollAmount);});rightArrow.on("click",function(){var scrollAmount=$(window).width()>screenWidthThreshold?additionalScrollAmount:baseScrollAmount;list.scrollLeft(list.scrollLeft()+scrollAmount);});}var yearFacet=$(".section-filters-module ul[data-drupal-facet-alias='year'] .facet-item.facets-reset");yearFacet.on("click",function(){var categoryFacet=$(".section-filters-module ul[data-drupal-facet-alias='year'] .facet-item.facets-reset a");if(!categoryFacet.hasClass("is-active"))categoryFacet.click();});$('.diasorin-ltg-fys .content .block-facets-ajax:nth-child(4), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(5), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(7), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(8), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(9), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(12), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(13), .diasorin-ltg-fys .content .block-facets-ajax:nth-child(14)').each(function(){if($(this).hasClass('facet-active'))$(".view-ltg-fys-search").addClass("ltg-fys-results-visible");});$('.reload-page').click(function(){console.log('reload-page clicked');if($('.reload-page').length>0){var url=window.location.href.split('?')[0];window.location.href=url;}});$(document).on('click','.view-diasorin-facilites .views-exposed-form .form-item-facility-type:nth-child(3) input, .view-diasorin-facilites .views-exposed-form .form-item-facility-type:nth-child(4) input',function(){$(document).ajaxComplete(function(){$(".view-diasorin-facilites .views-exposed-form .form-type-select").removeClass("visible");$(".view-diasorin-facilites .views-exposed-form .form-type-select.form-item-facility-region").addClass("visible");});});$(document).on('click','.view-diasorin-facilites .views-exposed-form .form-item-facility-type:nth-child(5) input',function(){$(document).ajaxComplete(function(){$(".view-diasorin-facilites .views-exposed-form .form-type-select").addClass("visible");});});$(document).on('click','.view-diasorin-facilites .views-exposed-form .form-item-facility-type:nth-child(2) input',function(){$(document).ajaxComplete(function(){$(".view-diasorin-facilites .views-exposed-form .form-type-select").removeClass("visible");});});$(document).on('click','.view-diasorin-facilites .views-exposed-form .form-item-facility-type input',function(){$('.view-diasorin-facilites select').val(null).trigger('change');});var $view=$('.view-mdx-kitsreagents-instruments-card, .view-system-product-cards, .view-ltg-microsphere-instruments-card');var numberOfChildren=$view.find('.single-system').length;if(numberOfChildren>1)$view.addClass('card-two-column');$('.hp-latest-solution-slider .view-content').slick({centerMode:true,slidesToShow:3,slidesToScroll:1,dots:true,arrows:false,infinite:true,variableWidth:true,focusOnSelect:true,responsive:[{breakpoint:991,settings:{centerMode:true,centerPadding:'40px',slidesToShow:1}}]});$('.video-webinar-slider .view-content').slick({centerMode:true,slidesToShow:3,slidesToScroll:1,dots:true,arrows:false,infinite:true,variableWidth:true,focusOnSelect:true,responsive:[{breakpoint:991,settings:{centerMode:true,centerPadding:'40px',slidesToShow:1}}]});
3if($('.anchor-menu').length===1){console.log("anchor-menu once");var offset=10;var activeAnchor=null;$(document).on('click','.anchor-menu .anchor-menu-inner a[href^="#"]',function(e){var targetId=$(this).attr('href');var $target=$(targetId);if(!$target.length)return;e.preventDefault();var $allLinks=$('.anchor-menu .anchor-menu-inner a[href^="#"]');var isFirst=$allLinks.first().is($(this));var headerHeight=isFirst?($('header#header').outerHeight(true)||0):0;var anchorMenuHeight=isFirst?($('.anchor-menu').outerHeight(true)||0):0;var scrollTo=$target.offset().top-headerHeight-anchorMenuHeight;$('html, body').animate({scrollTop:scrollTo},400);});$(window).scroll(function(){var position=$(this).scrollTop()+offset;$('.anchor-menu .anchor-menu-inner a[href^="#"]').each(function(){var anchorId=$(this).attr('href');var target=$(anchorId).offset();if(target&&target.top!==undefined&&position>=target.top)activeAnchor=anchorId;});$('.anchor-menu .anchor-menu-inner a[href^="#"]').removeClass("active");if(activeAnchor)$('.anchor-menu .anchor-menu-inner a[href="'+activeAnchor+'"]').addClass('active');});$(function(){$(window).scroll();});}$(".file-weight").each(function(){var text=$(this).text().replace(/(\.\d+)\s(\w+)/,'\$2');$(this).text(text);});}};$(document).ready(function(){$('#spb-block-japanese-and-chinese-popup .btn').click(function(e){e.preventDefault();$('.block-japanese-and-chinese-popup-modal').hide();$('body').css({'overflow':''});});if($('body').hasClass('node--type-landing-page')){$('[data-target-title]').on('click',function(e){e.preventDefault();const target=$(this).data('target-title');const url=new URL(window.location.href);url.search='?'+target;window.history.pushState({},'',url);activateTab(target);const $targetElement=$('[data-target-title="'+target+'"]');if($targetElement.length)$('html, body').animate({scrollTop:$targetElement.offset().top-100},500);});const queryString=window.location.search;if(queryString.startsWith('?')){const targetFromUrl=queryString.substring(1).replace(/=$/,'');activateTab(targetFromUrl);const $targetElement=$('[data-target-title="'+targetFromUrl+'"]');if($targetElement.length)setTimeout(()=>{$('html, body').animate({scrollTop:$targetElement.offset().top-100},500);},100);}function activateTab(targetValue){$('[data-target-title]').removeClass('active').attr('aria-selected','false');$('.tab-pane').removeClass('active show');const $tabToActivate=$('[data-target-title="'+targetValue+'"]');if($tabToActivate.length){$tabToActivate.addClass('active').attr('aria-selected','true');const targetPaneId=$tabToActivate.attr('data-bs-target');if(targetPaneId)$(targetPaneId).addClass('active show');}if(targetValue==='liaison-brahms-pct'){$('#pills-2').trigger('click');const url=new URL(window.location.href);url.hash='';url.search='?liaison-brahms-pct=';window.history.pushState({},'',url);}else{if(targetValue==='liaison-memed-bv'){$('#pills-1').trigger('click');const url=new URL(window.location.href);url.hash='';url.search='?liaison-memed-bv=';window.history.pushState({},'',url);}}}$('#braham-pct-path-image').on('click',function(e){e.preventDefault();const $targetTab=$('[data-target-title="liaison-brahms-pct"]');$targetTab.trigger('click');const url=new URL(window.location.href);url.hash='';url.search='?liaison-brahms-pct=';window.history.pushState({},'',url);if($targetTab.length)$('html, body').animate({scrollTop:$targetTab.offset().top-100},500);});$('#liaison-memed-bv-path-image').on('click',function(e){e.preventDefault();const $targetTab=$('[data-target-title="liaison-memed-bv"]');$targetTab.trigger('click');const url=new URL(window.location.href);url.hash='';url.search='?liaison-memed-bv=';window.history.pushState({},'',url);if($targetTab.length)$('html, body').animate({scrollTop:$targetTab.offset().top-100},500);});}$(document).on('click','#memed-viral-score-container .bin',function(){if(!$(this).hasClass('active')){$('#memed-viral-score-container .bin').removeClass('active');$(this).addClass('active');}});});$(document).ready(function(){let eventMenuItem=$('.turn-off-main-navigation-highlight');if(!($(eventMenuItem).hasClass('is-active')||$(eventMenuItem).hasClass('active')))return;$('.diasorin-main-menu .menu-item--active-trail').removeClass('menu-item--active-trail');});function removeQuery(url){var index=url.indexOf('?');return index!==-1?url.substring(0,index):url;}$(document).ready(function(){if($('.webform-submission-form').length>0){$('.interested-label').css('display','none');var checkVisibility=function(){var visibleCount=0;$('div.interested-control-field').each(function(){if($(this).css('display')!='none')visibleCount++;});if(visibleCount===0)$('.interested-label').css('display','none');else $('.interested-label').css('display','block');};var observer=new MutationObserver(function(mutations){mutations.forEach(function(mutation){checkVisibility();});});var config={attributes:true,childList:true,subtree:true};$('div.interested-control-field').each(function(){observer.observe(this,config);});checkVisibility();}});$(document).ready(function(){$(document).on('click','.listing-partners .view-header .mobile-main-filter-collapse',function(){$('.listing-partners .view-header #block-diasorin-theme-exposed-filter-partners').slideToggle();});});Drupal.behaviors.fixAjaxLoader={attach:function(context,settings){$(document).ajaxComplete(function(){$('.ajax-progress-fullscreen').fadeOut(300);});}};Drupal.behaviors.immunoDevicesProductFilterToggle={attach:function(context){once('immuno-devices-filter-toggle','body',context).forEach(function(){$('.
3section-immuno-devices-product .view-filters .form-radios').each(function(){var $second=$(this).find('.js-form-type-radio:nth-child(2) input[type="radio"]').first();if($second.length&&!$second.prop('checked'))$second.prop('checked',true).trigger('change').trigger('click');});$(document).on('mousedown','.section-immuno-devices-product .view-filters .form-radios .js-form-type-radio',function(){if($(window).width()<992)return;var $radio=$(this).find('input[type="radio"]').first();$(this).data('was-checked',$radio.prop('checked'));});$(document).on('click','.section-immuno-devices-product .view-filters .form-radios .js-form-type-radio',function(e){if($(window).width()<992)return;var $item=$(this);var $radio=$item.find('input[type="radio"]').first();if(!$radio.length||$radio.val()==='All')return;if(!$item.data('was-checked'))return;e.preventDefault();e.stopPropagation();var name=$radio.attr('name');var $all=$item.closest('.form-radios').find('input[type="radio"][name="'+name+'"][value="All"]').first();if($all.length)$all.prop('checked',true).trigger('change').trigger('click');});});}};$(document).ready(function(){$(document).on('click','.white-papers-list-container #btn-download-wptn-file',function(){let fileUrl=$(this).attr('url-file');localStorage.setItem('downloadUrl',fileUrl);});});$(document).on('click','.whitepapers-webform-modal [id^="edit-wptn-form-close-button"]',function(){$('.whitepapers-webform-modal').hide();$('.ui-widget-overlay.ui-front').show();$('.ui-dialog.single-video-popup.single-document-popup').show();});$(document).on('click','#download-now-first-modal',function(e){e.preventDefault();$('.wptn-pdf-modal .view-header .wptn-modal-pdf-title').css('display','none');$('.wptn-pdf-modal .view-content.row .views-field.views-field-wptn-file').css('display','none');$('.wptn-pdf-modal .view-footer').css('display','none');$('.wptn-pdf-modal .wptn-second-modal-pdf-header').css('display','block');$('.wptn-pdf-modal .view-content.row .views-field.views-field-nothing-1').css('display','block');$('.ui-dialog.single-video-popup.single-document-popup').addClass('diasorin-hubspot-form');});$(document).on('submit','#hubspot-form-container form',function(event){$('#hubspot-form-container form').css('visibility','hidden');setTimeout(function(){if($('#hubspot-form-container .hs-error-msgs:visible').length===0){$('#hubspot-form-container form').css('display','none');$('.ui-dialog.single-video-popup.single-document-popup').addClass('diasorin-hubspot-confirmation');$('.wptn-pdf-modal .wptn-second-modal-pdf-header').css('display','none');}else $('#hubspot-form-container form').css('visibility','visible');},500);});$(document).ready(function(){if($('.protected-pages-enter-password').length){var $input=$('.protected-pages-enter-password #edit-protected-page-enter-password #edit-submit');var inputValue=$input.val();var newHtml='<div class="protected-pages-submit-btn btn full-btn">'+'<input data-drupal-selector="edit-submit" type="submit" id="edit-submit" name="op"></input>'+'<span>'+inputValue+'</span>'+'<i class="icon-diasorin-arrow"></i>'+'</div>';$input.replaceWith(newHtml);}});if($('body').hasClass('bacterialviral'))$(document).on('click','[data-target-title="liaison-brahms-pct"], [data-target-title="liaison-memed-bv"]',function(){var $slider=$('.slider');if($slider.hasClass('slick-initialized'))$slider.slick('unslick');$slider.slick({dots:true,infinite:true,speed:300,slidesToScroll:1});});$(document).ready(function(){if($('body').hasClass('bacterialviral'))if(window.innerWidth<=991.98)$('.slider-mobile').slick({dots:true,slidesToScroll:1,slidesToShow:1,touchThreshold:100,draggable:true,focusOnSelect:true});});if($('.single-blog-post').length&&window.innerWidth>=1441){function setFixedWidth(){var $sidebar=$('.single-blog-header-right');var $scrollableContainer=$('.scrollable-container');if($sidebar.length&&$scrollableContainer.length){var sidebarOffset=$sidebar.offset();var sidebarWidth=$sidebar.outerWidth();var sidebarPadding=parseInt($sidebar.css('padding-left'))+parseInt($sidebar.css('padding-right'));var sidebarInnerWidth=sidebarWidth-sidebarPadding;$scrollableContainer.css({width:sidebarInnerWidth+'px',left:(sidebarOffset.left+parseInt($sidebar.css('padding-left')))+'px'});}}$(window).on('load resize',setFixedWidth);$(window).on('scroll',function(){var currentScrollTop=$(this).scrollTop();
3var viewportHeight=$(window).height();var viewportBottom=currentScrollTop+viewportHeight;var $sidebar=$('.single-blog-header-right');var $scrollableContainer=$('.scrollable-container');var sidebarBottom=$sidebar.offset().top+$sidebar.outerHeight();var scrollableContainerBottom=$scrollableContainer.offset().top+$scrollableContainer.outerHeight();var sidebarTop=$sidebar.offset().top;var scrollableContainerTop=$scrollableContainer.offset().top;var scrollUp=currentScrollTop<(window.lastScrollTop||0);window.lastScrollTop=currentScrollTop;if(scrollUp&&scrollableContainerTop>sidebarTop&&!$scrollableContainer.hasClass('sidebar-scrollup'))$scrollableContainer.addClass('sidebar-scrollup');else{if(!scrollUp||scrollableContainerTop<=sidebarTop)$scrollableContainer.removeClass('sidebar-scrollup');}if(scrollableContainerBottom>=sidebarBottom&&!$scrollableContainer.hasClass('sidebar-bottom'))$scrollableContainer.addClass('sidebar-bottom');if(scrollUp&&(scrollableContainerTop-270)>=currentScrollTop&&scrollableContainerBottom<=viewportBottom&&$scrollableContainer.hasClass('sidebar-bottom'))$scrollableContainer.removeClass('sidebar-bottom');});$(window).trigger('scroll');}$(document).ready(function(){if($('body').hasClass('bacterialviral'))$(".diasorin-mmenu-container .diasorin-mm-main-menu ul > .menu-item--expanded .menu-dropdown-0 .menu > .menu-item a:not(.diasorin-mmenu-back)").on("click",function(){$(".diasorin-mmenu-button").trigger("click");});if($('.bacterialviral-confirmation').length>0)$('body').addClass('bacterialviral');$(document).on('click','.html-table-wrapper .btn-html-closer',function(){$(this).closest('.html-table-wrapper').removeClass('html-table-closed');});$('.breadcrumb .breadcrumb-item').each(function(){var $item=$(this);var text=$item.html();if(text&&text.indexOf('®')!==-1){text=text.replace(/®(?!<\/sup>)/g,'<sup>®</sup>');$item.html(text);}});if($('.our-blog-cards-container').length>0)$('.our-blog-cards-container .bef-links li a').each(function(){var $this=$(this);var html=$this.html();if(html&&html.indexOf('®')!==-1){html=html.replace(/®(?!<\/sup>)/g,'<sup>®</sup>');$this.html(html);}});if($('.accordion-item').length>0){var urlHash=window.location.hash;if(urlHash){var $domainDisclaimer=$('.diasorin-product-domain-disclaimer');if($domainDisclaimer.length>0)$domainDisclaimer.find('li.list-group-item a[href]').each(function(){var $link=$(this);var href=$link.attr('href');if(!href)return;try{var parsedUrl=new URL(href,window.location.origin);parsedUrl.hash=urlHash;$link.attr('href',parsedUrl.toString());}catch(e){$link.attr('href',href.split('#')[0]+urlHash);}});var anchorId=decodeURIComponent(urlHash.substring(1));var $accordionItem=$('.accordion-item[data-heading-id="'+anchorId+'"]');if($accordionItem.length>0){var $collapse=$accordionItem.find('.accordion-collapse');if($collapse.length>0&&!$collapse.hasClass('show')){$collapse.addClass('show');$accordionItem.find('.accordion-header .accordion-heading').attr('aria-expanded','true');}var accordionTop=$accordionItem.offset().top;$('html, body').animate({scrollTop:Math.max(0,accordionTop-112)});}}}if(window.innerWidth<992){$('.feature-highlight-wrapper .tab-content').slick({centerMode:true,slidesToShow:1,slidesToScroll:1,dots:true,arrows:false,infinite:false,variableWidth:true,focusOnSelect:true,centerPadding:'40px'});if($('.nes-section-handson .row .col-sm-4').length>0){var $handsonRow=$('.nes-section-handson .row');if($handsonRow.find('.nes-section-handson-slider').length===0){var $cols=$handsonRow.find('.col-sm-4');var $detachedCols=$cols.detach();var $sliderDiv=$('<div class="nes-section-handson-slider"></div>');$sliderDiv.append($detachedCols);var $regionTop=$handsonRow.find('.region--top').first();if($regionTop.length>0)$regionTop.after($sliderDiv);else $handsonRow.append($sliderDiv);}}if($('.nes-section-handson-slider').length>0)$('.nes-section-handson-slider').slick({centerMode:true,slidesToShow:1,slidesToScroll:1,dots:false,arrows:false,infinite:false,variableWidth:true,focusOnSelect:true,centerPadding:'40px'});}if($('#edit-privacy-statement--description').length>0){var htmlLang=$('html').attr('lang');if(htmlLang==='it')$('#edit-privacy-statement--description').html('<a href="/it/diasorin-global-privacy-policy" target="_blank">Informativa sulla privacy</a>*<br>'+'Il sottoscritto conferma che l’informativa fornita ai sensi del D.lgs. 196/2003 è stata letta e accettata.');else{var privacyHref='/diasorin-global-privacy-policy';if(htmlLang==='en')privacyHref='/en/diasorin-global-privacy-policy';else if(htmlLang==='zh-hans')privacyHref='/zh/diasorin-global-privacy-policy';else{if(htmlLang==='ja')privacyHref='/jp/diasorin-global-privacy-policy';}$('#edit-privacy-statement--description').html('<a href="'+privacyHref+'" target="_blank">Privacy Statement</a>*<br>'+'The Undersigned Confirms That The Information. Provided Pursuant To Leg. Decree No. 196/2003 Has Been Read And Accepted.');}}});if($('.diasorin-global-search-results').length>0){console.log('view-empty:visible');if($('.diasorin-global-search-results .view-empty:visible').length>0){console.log('gs-results-none');$('body').addClass('gs-results-none');}}$(document).ready(function(){$('#scamAlertContent').on('show.bs.collapse',function(){$(this).closest('.scam-alert-card').addClass('card-expanded');}).on('hide.bs.collapse',function(){$(this).closest('.scam-alert-card').removeClass('card-expanded');});});Drupal.behaviors.textTooltipPosition={attach:function(context){once('text-tooltip-position-inner','.simple-text.has-title-tooltip',context).forEach(function(el){var $wrapper=$(el);var $tooltip=$wrapper.children('.card-title-tooltip');var $lastTextBlock=$wrapper.children('p, h1, h2, h3, h4, h5, h6').last();if($tooltip.length&&$lastTextBlock.length){$lastTextBlock.find('> br:last-child').remove();$lastTextBlock.append($tooltip);}});}};})(jQuery,Drupal,drupalSettings);;
4(function(Drupal,once){'use strict';function normalizeAddToCalendarHref(link){if(!link||!link.getAttribute)return;var href=link.getAttribute('href');if(!href||href.indexOf('addtocalendar.com/atc/')===-1)return;try{var url=new URL(href,window.location.origin);if(url.hostname==='addtocalendar.com'){url.protocol='https:';url.hostname='addtocalendar.com';url.pathname=url.pathname.replace(/\/?$/,'/');link.setAttribute('href',url.toString());}}catch(e){}}Drupal.behaviors.diasorinAddToCalendarFix={attach:function(context){once('diasorin-addtocalendar-fix','.addtocalendar',context).forEach(function(widget){var links=widget.querySelectorAll('.atcb-item-link[href*="addtocalendar.com/atc/"]');links.forEach(function(link){normalizeAddToCalendarHref(link);});});once('diasorin-addtocalendar-fix-delegate','body',context).forEach(function(body){body.addEventListener('click',function(event){var link=event.target&&event.target.closest?event.target.closest('.atcb-item-link[href*="addtocalendar.com/atc/"]'):null;if(link)normalizeAddToCalendarHref(link);},true);});}};})(Drupal,once);;
5(function($,Drupal,drupalSettings){$(document).ready(function(){$("[class*='result-grouped-container']").addClass('active');var viewRows=$(".result-grouped-container.active .views-row");viewRows.addClass('active-filter');var buttonsToMove=$(".view-results .date-selector");var detachedButtons=buttonsToMove.detach();detachedButtons.appendTo(".view-results .facets-year-scroll .result-years-append");detachedButtons.on('click',function(){detachedButtons.removeClass('active-filters');$(this).addClass('active-filters');var year=$(this).text().trim();$("[class*='datecontainer']").removeClass('active');$(".datecontainer-selector-"+year).addClass('active');var competenceButtonsToMove=$(".active .pcompetence-selector");var clonedCompetenceButtons=competenceButtonsToMove.clone();clonedCompetenceButtons.wrapAll('<div class="filter"></div>');$(".facets-pcompetence-filters").empty().append(clonedCompetenceButtons.parent());$(".facets-pcompetence-filters .filter .pcompetence-selector").on('click',function(){$(".facets-pcompetence-filters .filter .pcompetence-selector").removeClass('active-filter');viewRows.removeClass('active-filter');var sharedClass=$(this).attr('pcompetence-shared-class');var correspondingElement=$(".views-row[pcompetence-shared-class='"+sharedClass+"']");$(".facets-pcompetence-filters .filter .pcompetence-selector"+"."+sharedClass).addClass('active-filter');correspondingElement.addClass('active-filter');});$(".facets-pcompetence-filters .filter .pcompetence-selector:first").click();});detachedButtons.first().click();});})(jQuery,Drupal,drupalSettings);;
6(function($,Drupal,drupalSettings){$(document).ready(function(){$(".diasorin-mmenu-button").on('click',function(){$("body").toggleClass('mmenu-open');});$(".liaison-nes .diasorin-mmenu-container .diasorin-mm-main-menu ul[data-region='secondary_menu'] .menu-item a").on("click",function(){$(".navbar-toggler").click();});var body=$("body");if(body.hasClass("landing_page"))$(".navbar-toggler").detach().appendTo(".second-header-inner-wrapper > #navbar-main");var subMmenuOpener=".diasorin-mmenu-container .diasorin-mm-main-menu ul[data-region='secondary_menu'] .menu-item--expanded > span";$(subMmenuOpener).on("click",function(){$(this).parent(".menu-item--expanded").toggleClass("mmenu-submenu-open");});if(window.innerWidth<1199.98)$(".diasorin-mmenu-container .diasorin-mm-main-menu ul[data-region='secondary_menu'] .menu-item--expanded > a").on("click",function(e){e.preventDefault();$(this).parent(".menu-item--expanded").toggleClass("mmenu-submenu-open");});$(".diasorin-mmenu-button").on("click",function(){var elements=$(".diasorin-mmenu-container .mmenu-submenu-open");if(elements.length>0)elements.removeClass("mmenu-submenu-open");});$(".diasorin-mmenu-container .diasorin-mmenu-back").on("click",function(){var parent=$(this).closest(".menu-item--expanded.mmenu-submenu-open");parent.removeClass("mmenu-submenu-open");});$(".diasorin-mobile-menu.diasorin-mm-corporate-wrapper .nav .nav-item a").on('click',function(e){let mobileMenuTarget=$(this).data('target');if(mobileMenuTarget){e.preventDefault();$(".diasorin-mobile-menu."+mobileMenuTarget).addClass('mmenu-submenu-open');}});$(".diasorin-mobile-menu.diasorin-mm-corporate ul.nav > .diasorin-mmenu-back.corporate-mmenu-back, .diasorin-mobile-menu.diasorin-mm-corporate > .diasorin-mmenu-back.corporate-mmenu-back").on('click',function(){$(".diasorin-mobile-menu.diasorin-mm-corporate").removeClass('mmenu-submenu-open');});$(".diasorin-mobile-menu.diasorin-mm-corporate .nav .nav-item.menu-item--expanded > .nav-link:first-child").removeAttr("href");var subCorporateMmenuOpener=".diasorin-mobile-menu.diasorin-mm-corporate .nav .nav-item.menu-item--expanded > .nav-link";$(subCorporateMmenuOpener).on("click",function(){$(this).parent(".menu-item--expanded").toggleClass("mmenu-submenu-open");});$("#DiasorinMmenuWrapper .block-language, #DiasorinMmenuWrapper .diasorin-mm-domain").click(function(){if($(this).hasClass("mmenu-open-popup"))$(this).removeClass("mmenu-open-popup");else{$("#DiasorinMmenuWrapper .block-language, #DiasorinMmenuWrapper .diasorin-mm-domain").removeClass("mmenu-open-popup");$(this).addClass("mmenu-open-popup");}});});})(jQuery,Drupal,drupalSettings);;
7(function($,Drupal,drupalSettings){$(document).ready(function(){if($('.view-total-shareholders-basis').length){$('.graph-single').each(function(){var width=$(this).data('width');$(this).css('max-width',width+'%');});var currentLang=$("html").attr("lang");var allItemsSharesHeld=$(".table-responsive .views-field-field-no-shares-held .list-group .list-group-item");var allItemsPercShareholder=$(".table-responsive .views-field-field-percentage-shareholding .list-group .list-group-item");var allItemsPercVoting=$(".table-responsive .views-field-field-percentage-voting-rights- .list-group .list-group-item");function switchDotsAndCommas(s){function switcher(match){return (match==',')?'.':',';}return s.replaceAll(/\.|\,/g,switcher);}if(currentLang==="it"){allItemsSharesHeld.each(function(){var currentValue=$(this).text();var newValue=switchDotsAndCommas(currentValue);$(this).text(newValue);});allItemsPercShareholder.each(function(){var currentValue=$(this).text();var newValue=switchDotsAndCommas(currentValue);$(this).text(newValue);});allItemsPercVoting.each(function(){var currentValue=$(this).text();var newValue=switchDotsAndCommas(currentValue);$(this).text(newValue);});}var $tableResponsives=$(".table-responsive");$tableResponsives.each(function(index){var className="graph-tab-"+(index+1);$(this).addClass(className).attr("data-shared-class",className);});var $firstGraph=$(".graph-single").eq(0);var sharedClass=$firstGraph.data("shared-class");var $firstTable=$(".table-responsive."+sharedClass).eq(0);$firstGraph.addClass("active");$firstTable.addClass("active");$(".graph-single,.view-total-shareholders-legend__item").click(function(){var sharedClass=$(this).data("shared-class");$(".graph-single.active").removeClass("active");$(".graph-single."+sharedClass).addClass("active");$(".view-total-shareholders-legend__item.active").removeClass("active");$(".view-total-shareholders-legend__item."+sharedClass).addClass("active");$(".table-responsive.active").removeClass("active");$(".table-responsive."+sharedClass).addClass("active");});if($(window).width()>992){$(this).find('.tsb-graph-single-value').children().unwrap();function calculateTotal(){var itemsSharesHeld=$(".table-responsive.active .views-field-field-no-shares-held .list-group .list-group-item");var itemsPercShareholder=$(".table-responsive.active .views-field-field-percentage-shareholding .list-group .list-group-item");var itemsPercVoting=$(".table-responsive.active .views-field-field-percentage-voting-rights- .list-group .list-group-item");var itemsSharesHeld=$(".table-responsive.active .views-field-field-no-shares-held .list-group .list-group-item");var itemsPercShareholder=$(".table-responsive.active .views-field-field-percentage-shareholding .list-group .list-group-item");var itemsPercVoting=$(".table-responsive.active .views-field-field-percentage-voting-rights- .list-group .list-group-item");var totalSharesHeld=0;var totalPercShareholder=0;var totalPercVoting=0;if(currentLang!=="it"){itemsSharesHeld.each(function(){var value=$(this).text().replace(/,/g,"");totalSharesHeld+=parseFloat(value);});itemsPercShareholder.each(function(){var value=$(this).text().replace(/,/g,"");totalPercShareholder+=parseFloat(value);});itemsPercVoting.each(function(){var value=$(this).text().replace(/,/g,"");totalPercVoting+=parseFloat(value);});
7var formattedTotalSharesHeld=totalSharesHeld.toLocaleString(currentLang);var formattedPercShareholder=totalPercShareholder.toLocaleString(currentLang);var formattedPercVoting=totalPercVoting.toLocaleString(currentLang);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #shares-held').text(formattedTotalSharesHeld);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #perc-shareholding').text(formattedPercShareholder);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #perc-voting').text(formattedPercVoting);}else{if(currentLang==="it"){itemsSharesHeld.each(function(){var value=$(this).text().replace(/\./g,"").replace(/,/g,".");totalSharesHeld+=parseFloat(value);});itemsPercShareholder.each(function(){var value=$(this).text().replace(/\./g,"").replace(/,/g,".");totalPercShareholder+=parseFloat(value);});itemsPercVoting.each(function(){var value=$(this).text().replace(/\./g,"").replace(/,/g,".");totalPercVoting+=parseFloat(value);});var formattedTotalSharesHeld=totalSharesHeld.toLocaleString(currentLang);var formattedPercShareholder=totalPercShareholder.toLocaleString(currentLang);var formattedPercVoting=totalPercVoting.toLocaleString(currentLang);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #shares-held').text(formattedTotalSharesHeld);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #perc-shareholding').text(formattedPercShareholder);$('.view-total-shareholders-basis.view-display-id-block_1 .view-footer #shareholders-total-table #perc-voting').text(formattedPercVoting);}}}calculateTotal();$(document).on('click','.graph-single',function(){calculateTotal();});}if($(window).width()<993){function calculateTotal(){$(".view-total-shareholders-basis.view-display-id-block_1 > .view-content .table-responsive").each(function(){var table=$(this);var caption=table.find('caption');var shareholdersTotalTable=caption.find('table#shareholders-total-table');var itemsSharesHeld=table.find('.views-field-field-no-shares-held .list-group .list-group-item');var itemsPercShareholder=table.find('.views-field-field-percentage-shareholding .list-group .list-group-item');var itemsPercVoting=table.find('.views-field-field-percentage-voting-rights- .list-group .list-group-item');var totalSharesHeld=0;var totalPercShareholder=0;var totalPercVoting=0;itemsSharesHeld.each(function(){var value=$(this).text().replace(/,/g,"");totalSharesHeld+=parseFloat(value);});itemsPercShareholder.each(function(){var value=$(this).text().replace(/,/g,"");totalPercShareholder+=parseFloat(value);});itemsPercVoting.each(function(){var value=$(this).text().replace(/,/g,"");totalPercVoting+=parseFloat(value);});var formattedTotalSharesHeld=totalSharesHeld.toLocaleString(currentLang);var formattedPercShareholder=totalPercShareholder.toLocaleString(currentLang);var formattedPercVoting=totalPercVoting.toLocaleString(currentLang);table.find('#shares-held').text(formattedTotalSharesHeld);table.find('#perc-shareholding').text(formattedPercShareholder);table.find('#perc-voting').text(formattedPercVoting);var lastTableRow=table.find('.table tbody tr:last');shareholdersTotalTable.find('tr').detach().appendTo(lastTableRow);});}calculateTotal();}}});})(jQuery,Drupal,drupalSettings);;
8(function($,Drupal,drupalSettings){var CTA_SELECTORS=['.diasorin-memed-domain-redirect-wrapper a[href]','.diasorin-liaison-nes-domain-redirect-wrapper a[href]','.diasorin-product-domain-disclaimer a[href]','#spb-block-product-domain-disclaimer-navigation a[href]'].join(', ');function getCurrentSearch(){var search=window.location.search;return search&&search!=='?'?search:'';}function appendCurrentQuery(url){var search=getCurrentSearch();if(!search)return url;try{var target=new URL(url,window.location.origin);var current=new URLSearchParams(search);current.forEach(function(value,key){if(!target.searchParams.has(key))target.searchParams.set(key,value);});return target.toString();}catch(e){return url;}}function isCrossDomainLink(href){try{var linkUrl=new URL(href,window.location.origin);return ((linkUrl.protocol==='http:'||linkUrl.protocol==='https:')&&linkUrl.hostname!==window.location.hostname);}catch(e){return false;}}function patchLink($link,force){if(!force&&$link.attr('data-diasorin-query-patched')==='true')return;var href=$link.attr('href');if(!href||!isCrossDomainLink(href))return;var patchedHref=appendCurrentQuery(href);if(patchedHref!==href)$link.attr('href',patchedHref);$link.attr('data-diasorin-query-patched','true');}function patchCrossDomainCtaLinks(context,force){if(!getCurrentSearch())return;$(CTA_SELECTORS,context).each(function(){patchLink($(this),force);});}window.DiasorinQuery={appendCurrentQuery,patchCrossDomainCtaLinks};Drupal.behaviors.diasorinQueryParameters={attach:function(context){patchCrossDomainCtaLinks(context);setTimeout(function(){patchCrossDomainCtaLinks(context,true);},0);}};document.addEventListener('click',function(event){if(!getCurrentSearch())return;var link=event.target.closest(CTA_SELECTORS);if(!link)return;patchLink($(link),true);},true);})(jQuery,Drupal,drupalSettings);;
9(function($,Drupal,drupalSettings){$(document).ready(function(){$(function(){if(!window.location.hostname.match(/[int|us]\.diasorin\.com/))return;var botPattern="(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)";var re=new RegExp(botPattern,'i');var userAgent=navigator.userAgent;if(re.test(userAgent))return;var hasVisitedCookie=document.cookie.indexOf('visited=true')!==-1;if(hasVisitedCookie)return;if(document.body.classList.contains("geolocation--disabled"))return;document.cookie='visited=true; domain=diasorin.com';if(document.body.classList.contains("geolocation--disabled"))return;if(document.body.classList.contains("path-bacterialviral"))return;$.get("https://ipapi.co/country_code",function(data){var targetDomain="int.diasorin.com";if(data==="US")targetDomain="us.diasorin.com";if(window.location.hostname===targetDomain)return;var targetPath=window.location.pathname;if(window.location.hostname==="int.diasorin.com"&&(data==="JP"||data==="CN")){targetPath=targetPath.substring(1);targetPath=targetPath.substring(targetPath.indexOf("/"));switch(data){case 'JP':targetPath="/jp"+targetPath;break;
9case 'CN':targetPath="/zh"+targetPath;break;}}var redirectUrl='https://'+targetDomain+targetPath;if(window.DiasorinQuery&&window.DiasorinQuery.appendCurrentQuery)redirectUrl=window.DiasorinQuery.appendCurrentQuery(redirectUrl);window.location=redirectUrl;}).fail(function(xhr,status,error){});});});})(jQuery,Drupal,drupalSettings);;
10!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery);}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail" in g&&(m=-1*g.detail),"wheelDelta" in g&&(m=g.wheelDelta),"wheelDeltaY" in g&&(m=g.wheelDeltaY),"wheelDeltaX" in g&&(l=-1*g.wheelDeltaX),"axis" in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY" in g&&(m=-1*g.deltaY,j=m),"deltaX" in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q;}else{if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r;}}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top;}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h);}}function c(){f=null;}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0;}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel" in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this));},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height");},getLineHeight:function(b){var c=a(b),d=c["offsetParent" in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16;},getPageHeight:function(b){return a(b).height();},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel");},unmousewheel:function(a){return this.unbind("mousewheel",a);}});});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery);}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail" in g&&(m=-1*g.detail),"wheelDelta" in g&&(m=g.wheelDelta),"wheelDeltaY" in g&&(m=g.wheelDeltaY),"wheelDeltaX" in g&&(l=-1*g.wheelDeltaX),"axis" in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY" in g&&(m=-1*g.deltaY,j=m),"deltaX" in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q;}else{if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r;}}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top;}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h);}}function c(){f=null;}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0;}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel" in document||document.documentMode>
vendor: 23,435 bytes, line 10
10=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this));},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height");},getLineHeight:function(b){var c=a(b),d=c["offsetParent" in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16;},getPageHeight:function(b){return a(b).height();},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel");},unmousewheel:function(a){return this.unbind("mousewheel",a);}});});!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document);}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t();}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s);},500);}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o);}});},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this);}});},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s));},s.timeout);}});}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t);});},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3]);}});},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4]);}});}},f=function(){return "object"!=typeof e(this)||e(this).length<1?n:this;},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition;},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e));},p=function(e){return "yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y";},g=function(e){return "stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless";},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width());},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0);}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%";},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap();}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3]);},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10});},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]};},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])));},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()];},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX");}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t();},100);}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t();}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0;}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i);}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1);},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5]);},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case "pointerdown":case "MSPointerDown":case "pointermove":case "MSPointerMove":case "pointerup":case "MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case "touchstart":case "touchmove":case "touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1];}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0});}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault();}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return !1;}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar);}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l);}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l);}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0);});},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void (t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]];}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0);}}function i(e){if(!te(e)||c||O(e)[2])return void (t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[];}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1);}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3];}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i});}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e);}).bind(H[1],function(e){n(e);}),M.bind(H[0],function(e){i(e);}).bind(H[2],function(e){r(e);}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e);}).bind(H[1],function(e){n(e);}).bind(H[2],function(e){r(e);});});});},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0;}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null);}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0);}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)));}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1);});},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>
10=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}));}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o);});});}),l.bind("mousewheel."+r,function(e,o){t(e,o);});}},R=new Object(),A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML;}catch(r){}o=null!==n;}else{try{var i=top.document;n=i.body.innerHTML;}catch(r){}o=null!==n;}return a!==!1&&(R[a]=o),o;},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o);}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"));},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1);}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1;}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width());}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height());}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"});}});},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i});},t[0]._focusTimer));});},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden");});},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault();}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o);}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case "mousedown":case "touchstart":case "pointerdown":case "MSPointerDown":if("stepped"===i.t
vendor: 12,567 bytes, line 10
10ype)return;c=!0,o.tweenRunning=!1,r("on",l);break;case "mouseup":case "touchend":case "pointerup":case "MSPointerUp":case "mouseout":case "pointerout":case "MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case "click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l);}}});},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t);}switch(t.type){case "blur":n.tweenRunning&&r.dir&&a("off",null);break;case "keydown":case "keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l));}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"});}}else{if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"});}}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e);});});}),s.attr("tabindex","0").bind(h[0],function(e){t(e);});},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void (f.dir=!1):(clearTimeout(f.step),void (f.step=setTimeout(function(){l();},a)));}function s(){clearTimeout(f.step),$(f,"step"),Q(t);}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case "on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case "off":s(),(m||c.tweenRunning&&f.dir)&&l(!0);}},Y=function(t){var o=e(this).data(a).opt,n=[];return "function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n;},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case "function":return t();case "object":var m=t.jquery?t:e(t);if(!m.length)return;return "x"===o?ae(m)[1]:ae(m)[0];case "string":case "number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p);}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return "x"===o?ae(m)[1]:ae(m)[0];}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]));}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void (l=null):void (f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void ((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this);}));},c.advanced.autoUpdateTimeout));}function n(t){function o(e,t){return function(){return t.apply(e,arguments);};}function a(){this.onload=null,e(t).addClass(d[2]),r(2);}if(e(t).hasClass(d[2]))return void r();var n=new Image();n.onload=o(n,a),n.src=t.src;}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth;}),e;}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e);}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o();},V=function(e,t,o){return Math.round(e/t)*t-o;},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this);});},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e];}function r(){return [c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w];}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir};}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset);}switch(n.dir){case "x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case "y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0;}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r());},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]));},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide");},e);}}});}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call());}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call();}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01);},S.id=h(l);}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null);}function u(e,t,o,a,n){switch(n){case "linear":case "mcsLinear":return o*e/a+t;case "mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case "easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case "easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case "easeInOut":case "mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case "easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case "easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case "easeOut":case "mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e);}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c();},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date()).getTime();},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1);}},$=function(e,t){try{delete e[t];}catch(o){e[t]=null;}},ee=function(e){return !(e.which&&1!==e.which);},te=function(e){var t=e.originalEvent.pointerType;return !(t&&"touch"!==t&&2!==t);},oe=function(e){return !isNaN(parseFloat(e))&&isFinite(e);},ae=function(e){var t=e.parents(".mCSB_container");return [e.offset().top-t.offset().top,e.offset().left-t.offset().left];},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden" in document)return "hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden" in document)return e[t]+"Hidden";return null;}var t=e();return t?document[t]:!1;};
10e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments);},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments);},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1);},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0;},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1];}});});});});;
11(function($,Drupal,drupalSettings){$(document).ready(function(){"use strict";function myCountdown(){var ending=$("#countdown-container").attr("data-endtime");var endTime=new Date(ending);endTime=Date.parse(endTime)/1000;var now=$("#countdown-container").attr("data-starttime")!==undefined?$("#countdown-container").attr("data-starttime"):new Date();now=Date.parse(now)/1000;var timeLeft=endTime-now;var days=Math.floor(timeLeft/86400);var hours=Math.floor((timeLeft-days*86400)/3600);var minutes=Math.floor((timeLeft-days*86400-hours*3600)/60);var seconds=Math.floor(timeLeft-days*86400-hours*3600-minutes*60);days=String(days).padStart(2,'0');hours=String(hours).padStart(2,'0');minutes=String(minutes).padStart(2,'0');seconds=String(seconds).padStart(2,'0');var labelDays=$(".label-days").text();var labelHours=$(".label-hours").text();var labelMinutes=$(".label-minutes").text();var labelSeconds=$(".label-seconds").text();$("#countdown-container").html("<span id='days' class='countdown-number'>"+days+"<span>"+labelDays+"</span></span> <span class='date-dots'>:</span>"+"<span id='hours' class='countdown-number'>"+hours+"<span>"+labelHours+"</span></span> <span class='date-dots'>:</span>"+"<span id='minutes' class='countdown-number'>
11"+minutes+"<span>"+labelMinutes+"</span></span> <span class='date-dots'>:</span>"+"<span id='seconds' class='countdown-number'>"+seconds+"<span>"+labelSeconds+"</span></span></span>");}setInterval(function(){myCountdown();},1000);});})(jQuery,Drupal,drupalSettings);;
12(function($,Drupal,drupalSettings){$(document).ready(function(){"use strict";let startPercentage,countdownDate,currentDate,stopCount=false,progressBar,days,hrs,min,sec,percentage;function timeToCountdown(){currentDate+=1000;let calcDiff=(currentDate-countdownDate)/1000;let diff=Math.abs(Math.floor(calcDiff));percentage=Math.round((currentDate-startPercentage)/(+countdownDate-+startPercentage)*100)/100;if(calcDiff<0){days=Math.floor(diff/(24*60*60));sec=diff-days*24*60*60;hrs=Math.floor(sec/(60*60));sec=sec-hrs*60*60;min=Math.floor(sec/(60));sec=sec-min*60;}else{days=0;hrs=0;min=0;sec=0;percentage=1;stopCount=true;}}function countDownTimer(){timeToCountdown();$("#js-countdown-days .countdown__number").text(days>9?days:'0'+days);$("#js-countdown-hours .countdown__number").text(hrs>9?hrs:'0'+hrs);$("#js-countdown-minutes .countdown__number").text(min>9?min:'0'+min);progressBar.css("stroke-dashoffset",100-(percentage*100));if(!stopCount)setTimeout(countDownTimer,1000);}function startCountdown(){if($("#js-countdown").length>0){startPercentage=Date.parse($("#js-countdown").attr("data-startpercentage"));countdownDate=Date.parse($("#js-countdown").attr("data-countdowndate"));currentDate=Date.parse($("#js-countdown").attr("data-currentdate"));progressBar=$("#js-countdown-progress");countDownTimer();}}startCountdown();});})(jQuery,Drupal,drupalSettings);;
13(function($,Drupal,drupalSettings){$(document).ready(function(){"use strict";let pageUrl;$('.js-linkedin-share').on('click',function(){pageUrl=window.location.href;let linkedinUrl='https://www.linkedin.com/sharing/share-offsite/?url='+encodeURIComponent(pageUrl);window.open(linkedinUrl,'_blank','noopener,noreferrer');});});})(jQuery,Drupal,drupalSettings);;
14(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label">&nbsp;</div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description">&nbsp;</div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);;
15/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */
16loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
16function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();;
17/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
18(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);;
19((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);;
20((Drupal)=>{Drupal.theme.message=({text},{type,id})=>
20{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messagesBootstrapTypes={status:'success',warning:'warning',error:'danger',info:'info'};const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.innerHTML=`
21    <div class="messages__content container alert alert-${messagesBootstrapTypes[type]} alert-dismissible fade show" role="alert">
22      <h2 class="visually-hidden">
23        ${messagesTypes[type]}
24      </h2>
25      <span class="messages__item">
26        ${text}
27      </span>
28      <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
29    </div>
30  `;return messageWrapper;};})(Drupal);;
31(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl.hasOwnProperty(originalUrl))drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url))if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;
31$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl.hasOwnProperty(ajax.url)&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber">&nbsp;</div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
31d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
31$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);;
32(function(Drupal){Drupal.AjaxCommands.prototype.gtagEvent=function(ajax,response){gtag('event',response.event_name,response.data);};})(Drupal);;
33(function($,Drupal,once){'use strict';Drupal.behaviors.nesMicrositeIntegration={attach:function(context,settings){once('nes-assay-tc-modal-back','.nes-assay-tc-modal-back',context).forEach(function(el){el.addEventListener('click',function(e){e.preventDefault();window.history.back();});});once('nes-mobile-menu-anchor-close','body',context).forEach(function(){document.addEventListener('click',function(e){var link=e.target.closest('.diasorin-liaison-nes-mobile-menu a[href^="#"]');if(!link)return;var btn=document.querySelector('.diasorin-mmenu-button');if(btn)btn.click();});});once('nes-newsroom-events-slider','.nes-newsroom-events .view-content',context).forEach(function(el){var $el=$(el);function equalizeNesEventsSlideHeights(){if(!$el.hasClass('slick-initialized'))return;var $slides=$el.find('.slick-slide:not(.slick-cloned)');$slides.css('height','');var maxHeight=0;$slides.each(function(){maxHeight=Math.max(maxHeight,$(this).outerHeight());});if(maxHeight>0)$el.find('.slick-slide').css('height',maxHeight);}
33function initNesEventsSlider(){if($(window).width()<1200)if(!$el.hasClass('slick-initialized')){$el.on('init reInit setPosition',equalizeNesEventsSlideHeights);$el.slick({slidesToShow:2,slidesToScroll:1,arrows:true,dots:true,infinite:true,adaptiveHeight:false,centerPadding:'0px',responsive:[{breakpoint:768,settings:{slidesToShow:1}}]});equalizeNesEventsSlideHeights();}else equalizeNesEventsSlideHeights();else{if($el.hasClass('slick-initialized')){$el.off('init reInit setPosition',equalizeNesEventsSlideHeights);$el.find('.slick-slide').css('height','');$el.slick('unslick');}}}initNesEventsSlider();var resizeTimer;$(window).on('resize.nesNewsroomEventsSlider',function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(initNesEventsSlider,150);});});}};$(document).ready(function(){if($('.path-liaison-nes').length>0||$('.liaison-nes').length>0)if($('div.anchor-item#get-in-touch').length===0)$('.diasorin-main-menu-liaison .nav-item.memed-menu-btn .btn').attr('href','/liaison-nes#get-in-touch');});})(jQuery,Drupal,once);;
34(function($,Drupal){Drupal.behaviors.recaptcha={attach(context){$('.g-recaptcha',context).each(function(){if(typeof grecaptcha==='undefined'||typeof grecaptcha.render!=='function')return;if($(this).closest('body').length>0)if($(this).hasClass('recaptcha-processed'))grecaptcha.reset();else{grecaptcha.render(this,$(this).data());$(this).addClass('recaptcha-processed');}});}};window.drupalRecaptchaOnload=function(){$('.g-recaptcha').each(function(){if(!$(this).hasClass('recaptcha-processed')){grecaptcha.render(this,$(this).data());$(this).addClass('recaptcha-processed');}});};})(jQuery,Drupal);;
35(function($,Drupal,once){'use strict';Drupal.behaviors.simplePopupBlocks={attach:function(context,settings){var popup_settings=drupalSettings.simple_popup_blocks.settings,_html=document.documentElement,windowWidth=$(window).width();$.each(popup_settings,function(index,values){if(windowWidth<values.trigger_width)return null;;var modal_class='',block_id=values.identifier,visit_counts_arr=values.visit_counts.split(','),allow_cookie=true,read_cookie='',cookie_val=1,cookie_days=(values.cookie_expiry!==undefined&&values.cookie_expiry!==null)?values.cookie_expiry:100,match=0,css_identity='',spb_popup_id='',modal_close_class='',modal_minimize_class='',modal_minimized_class='',layout_class='',class_exists=false,delays='',browser_close_trigger=true,use_time_frequency=values.use_time_frequency,time_frequency=values.time_frequency,time_frequency_cookie=0,next_popup=0,current_timestamp=0,show_minimized_button=values.show_minimized_button,show_model=true;if(visit_counts_arr.length==1&&visit_counts_arr[0]==0&&use_time_frequency==0)allow_cookie=false;var element=document.getElementById(block_id);if(typeof (element)!='undefined'&&element!=null)if(allow_cookie==true)if(use_time_frequency==0){read_cookie=readCookie('spb_'+block_id);if(read_cookie){cookie_val=+read_cookie+1;createCookie('spb_'+block_id,cookie_val,cookie_days);}else createCookie('spb_'+block_id,cookie_val,cookie_days);cookie_val=cookie_val.toString();match=$.inArray(cookie_val,visit_counts_arr);if(match===-1)show_model=false;}else{time_frequency_cookie=readCookie('spb_time'+block_id);current_timestamp=Math.floor(Date.now()/1000);next_popup=current_timestamp+parseInt(time_frequency,10);if(time_frequency_cookie){if(current_timestamp>=time_frequency_cookie)match=1;else if(next_popup<=time_frequency_cookie)match=1;else{match=-1;show_model=false;}if(match===1)createCookie('spb_time'+block_id,next_popup,cookie_days);}else createCookie('spb_time'+block_id,next_popup,cookie_days);}css_identity='.';if(values.css_selector==1)css_identity='#';spb_popup_id='spb-'+block_id;modal_class=block_id+'-modal';modal_close_class=block_id+'-modal-close';modal_minimize_class=block_id+'-modal-minimize';modal_minimized_class=block_id+'-modal-minimized';layout_class='.'+modal_class+' .spb-popup-main-wrapper';once('wrap-arround',css_identity+block_id).forEach(function(elem){$(elem).wrap($('<div class="'+modal_class+'"></div>'));});once('hide-popup','.'+modal_class).forEach(function(elem){$(elem).hide();});if($(css_identity+block_id).closest('.spb-popup-main-wrapper').length)return;$(css_identity+block_id).wrap($('<div class="spb-popup-main-wrapper"></div>'));$('.'+modal_class).wrap('<div id="'+spb_popup_id+'" class="simple-popup-blocks-global"></div>');
35$(css_identity+block_id).before($('<div class="spb-controls"></div>'));class_exists=$('#'+spb_popup_id).hasClass('simple-popup-blocks-global');if(!class_exists)return true;if(values.minimize==="1"){$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Dismiss modal" class="'+modal_minimize_class+' spb_minimize">&minus;</button>'));$('.'+modal_class).before($('<button type="button" aria-label="Open modal" class="'+modal_minimized_class+' spb_minimized">&plus;</button>'));}if(values.close==1)$("#"+spb_popup_id+" .spb-controls").prepend($('<button type="button" aria-label="Close modal" class="'+modal_close_class+' spb_close">&times;</button>'));if(values.overlay==1)$('.'+modal_class).addClass('spb_overlay');switch(values.layout){case 0:$(layout_class).addClass('spb_top_left');$(layout_class).css({'width':values.width});break;case '1':$(layout_class).addClass('spb_top_right');$(layout_class).css({'width':values.width});break;case '2':$(layout_class).addClass('spb_bottom_left');$(layout_class).css({'width':values.width});break;case '3':$(layout_class).addClass('spb_bottom_right');$(layout_class).css({'width':values.width});break;case '4':$(layout_class).addClass('spb_center');$(layout_class).css({'width':values.width,'margin-left':-values.width/2});break;case '5':$(layout_class).addClass('spb_top_center');$(layout_class).css({'width':values.width});break;case '6':$(layout_class).addClass('spb_top_bar');$(layout_class).css({});break;case '7':$(layout_class).addClass('spb_bottom_bar');$(layout_class).css({});break;case '8':$(layout_class).addClass('spb_left_bar');$(layout_class).css({'width':values.width});break;case '9':$(layout_class).addClass('spb_right_bar');$(layout_class).css({'width':values.width});break;}if(show_model===true)if(values.trigger_method==0&&values.delay>0){delays=values.delay*1000;$(css_identity+block_id).show();$('.'+modal_class).delay(delays).fadeIn('slow');if(values.overlay==1)setTimeout(stopTheScroll,delays);}else if(values.trigger_method==0){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();}else if(values.trigger_method==1)$(document).on('click',values.trigger_selector,function(e){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();return false;});else{if(values.trigger_method==2)$(_html).mouseleave(function(e){if(e.clientY>20)return;if(!browser_close_trigger)return;browser_close_trigger=false;$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();});}$('.'+modal_close_class).click(function(){$('.'+modal_class).hide();startTheScroll();});$('.'+modal_minimize_class).click(function(){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();});$('.'+modal_minimized_class).click(function(){$('.'+modal_class).show();$(css_identity+block_id).show();if(values.overlay==1)stopTheScroll();if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});if(values.enable_escape==1)$(document).keyup(function(e){if(e.keyCode==27){$('.'+modal_class).hide();startTheScroll();$('.'+modal_minimized_class).show();}});if(show_minimized_button==0)$('.'+modal_minimized_class).hide();});}};function stopTheScroll(){$('body').css({'overflow':'hidden'});$('.simple-popup-blocks-global input:text').focus();}function startTheScroll(){$('body').css({'overflow':''});}function createCookie(name,value,days){if(days>0){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires='; expires='+date.toGMTString();}else var expires='';document.cookie=name+'='+value+expires+'; path=/';}function readCookie(name){var nameEQ=name+'=';var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return c.substring(nameEQ.length,c.length);}return null;}})(jQuery,Drupal,once);;
36(function($,Drupal,once){var hasLocalStorage=(function(){try{localStorage.setItem('webform','webform');localStorage.removeItem('webform');return true;}catch(e){return false;}}());Drupal.behaviors.webformDetailsSave={attach(context){if(!hasLocalStorage)return;$(once('webform-details-summary-save','details > summary',context)).on('click',function(){var $details=$(this).parent();if($details[0].hasAttribute('data-webform-details-nosave'))return;var name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=($details.attr('open')!=='open')?'1':'0';localStorage.setItem(name,open);});$(once('webform-details-save','details',context)).each(function(){var $details=$(this);var name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=localStorage.getItem(name);if(open===null)return;if(open==='1')$details.attr('open','open');else $details.removeAttr('open');});}};Drupal.webformDetailsSaveGetName=function($details){if(!hasLocalStorage)return '';if($details.hasClass('vertical-tabs__pane'))return '';var webformId=$details.attr('data-webform-element-id');if(webformId)return 'Drupal.webform.'+webformId.replace('--','.');var detailsId=$details.attr('id');
36if(!detailsId)return '';var $form=$details.parents('form');if(!$form.length||!$form.attr('id'))return '';var formId=$form.attr('id');if(!formId)return '';formId=formId.replace(/--.+?$/,'').replace(/-/g,'_');detailsId=detailsId.replace(/--.+?$/,'').replace(/-/g,'_');return 'Drupal.webform.'+formId+'.'+detailsId;};})(jQuery,Drupal,once);;
37(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.detailsToggle=Drupal.webform.detailsToggle||{};Drupal.webform.detailsToggle.options=Drupal.webform.detailsToggle.options||{};Drupal.behaviors.webformDetailsToggle={attach(context){$(once('webform-details-toggle','.js-webform-details-toggle',context)).each(function(){var $form=$(this);var $tabs=$form.find('.webform-tabs');var selector=($tabs.length)?'.webform-tab':'.js-webform-details-toggle, .webform-elements';var $details=$form.find('details').filter(function(){var $parents=$(this).parentsUntil(selector);return ($parents.find('details').length===0);});if($details.length<2)return;var options=$.extend({button:'<button type="button" class="webform-details-toggle-state"></button>'},Drupal.webform.detailsToggle.options);var $toggle=$(options.button).attr('title',Drupal.t('Toggle details widget state.')).on('click',function(e){var $details=$form.find('details:not(.vertical-tabs__pane)');var $summary=$details.find('summary');var open;if(Drupal.webform.detailsToggle.isFormDetailsOpen($form)){$details.removeAttr('open');$summary.attr('aria-expanded','false');open=0;}else{$details.attr('open','open');$summary.attr('aria-expanded','true');open=1;}Drupal.webform.detailsToggle.setDetailsToggleLabel($form);if(Drupal.webformDetailsSaveGetName)$details.each(function(){var name=Drupal.webformDetailsSaveGetName($(this));if(name)localStorage.setItem(name,open);});}).wrap('<div class="webform-details-toggle-state-wrapper"></div>').parent();if($tabs.length)$tabs.find('.item-list:first-child').eq(0).before($toggle);else $details.eq(0).before($toggle);Drupal.webform.detailsToggle.setDetailsToggleLabel($form);});}};Drupal.webform.detailsToggle.isFormDetailsOpen=function($form){return ($form.find('details[open]').length===$form.find('details').length);};Drupal.webform.detailsToggle.setDetailsToggleLabel=function($form){var isOpen=Drupal.webform.detailsToggle.isFormDetailsOpen($form);var label=(isOpen)?Drupal.t('Collapse all'):Drupal.t('Expand all');$form.find('.webform-details-toggle-state').html(label);var text=(isOpen)?Drupal.t('All details have been expanded.'):Drupal.t('All details have been collapsed.');Drupal.announce(text);};})(jQuery,Drupal,once);;
38(function($,Drupal,once){var hasLocalStorage=(function(){try{localStorage.setItem('webform','webform');localStorage.removeItem('webform');return true;}catch(e){return false;}}());var hasSessionStorage=(function(){try{sessionStorage.setItem('webform','webform');sessionStorage.removeItem('webform');return true;}catch(e){return false;}}());Drupal.behaviors.webformMessageClose={attach(context){$(once('webform-message--close','.js-webform-message--close',context)).each(function(){var $element=$(this);var id=$element.attr('data-message-id');var storage=$element.attr('data-message-storage');var effect=$element.attr('data-message-close-effect')||'hide';switch(effect){case 'slide':effect='slideUp';break;case 'fade':effect='fadeOut';break;}if(isClosed($element,storage,id))return;if($element.attr('style')!=='display: none;'&&!$element.hasClass('js-webform-states-hidden'))$element.show();$element.find('.js-webform-message__link').on('click',function(event){$element[effect]();setClosed($element,storage,id);$element.trigger('close');event.preventDefault();});});}};function isClosed($element,storage,id){if(!id||!storage)return false;switch(storage){case 'local':if(hasLocalStorage)return localStorage.getItem('Drupal.webform.message.'+id)||false;return false;case 'session':if(hasSessionStorage)return sessionStorage.getItem('Drupal.webform.message.'+id)||false;return false;default:return false;}}function setClosed($element,storage,id){if(!id||!storage)return;switch(storage){case 'local':if(hasLocalStorage)localStorage.setItem('Drupal.webform.message.'+id,true);break;case 'session':if(hasSessionStorage)sessionStorage.setItem('Drupal.webform.message.'+id,true);break;case 'user':case 'state':case 'custom':$.get($element.find('.js-webform-message__link').attr('href'));return true;}}})(jQuery,Drupal,once);;
39(function($,Drupal,once){Drupal.behaviors.webformSelectOptionsDisabled={attach(context){$(once('webform-select-options-disabled','select[data-webform-select-options-disabled]',context)).each(function(){var $select=$(this);var disabled=$select.attr('data-webform-select-options-disabled').split(/\s*,\s*/);$select.find('option').filter(function isDisabled(){return ($.inArray(this.value,disabled)!==-1);}).attr('disabled','disabled');});}};})(jQuery,Drupal,once);;
40/* @license MIT http://opensource.org/licenses/mit-license.php */
vendor: 74,294 bytes, lines 41-42
41/*! Select2 4.1.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
42(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(t){(e=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:e)&&e.requirejs||(e?n=e:e={},g={},m={},y={},v={},i=Object.prototype.hasOwnProperty,s=[].slice,b=/\.js$/,h=function(e,t){var n,i,s=c(e),o=s[0],t=t[1];return e=s[1],o&&(n=A(o=a(o,t))),o?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return a(e,i)})):a(e,t):(o=(s=c(e=a(e,t)))[0],e=s[1],o&&(n=A(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,i){var s,o,r,l,a,c=[],u=typeof n,d=x(i=i||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(r=h(t[l],d)).f))c[l]=f.require(e);else if("exports"===o)c[l]=f.exports(e),a=!0;else if("module"===o)s=c[l]=f.module(e);else if(_(g,o)||_(m,o)||_(v,o))c[l]=A(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(i,!0),(t=>function(e){g[t]=e})(o),{}),c[l]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(s&&s.exports!==p&&s.exports!==g[e]?g[e]=s.exports:u===p&&a||(g[e]=u))}else e&&(g[e]=n)},l=n=r=function(e,t,n,i,s){if("string"==typeof e)return f[e]?f[e](t):A(h(e,x(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=i,i=s),i?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},l._defined=g,(u=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),_(g,e)||_(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=l,e.require=n,e.define=u),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&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."),e}),e.define("select2/utils",[],function(){var s={};function c(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}s.Extend=function(e,t){var n,i={}.hasOwnProperty;function s(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,e},s.Decorate=function(i,s){var e=c(s),t=c(i);function o(){var e=Array.prototype.unshift,t=s.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=s.prototype.constructor),n.apply(this,arguments)}s.displayName=i.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=i.prototype[r]}for(var l=0;l<e.length;l++){var a=e[l];o.prototype[a]=(e=>{var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),s.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}})(a)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var s=0;s<n.length;s++){var o=n[s];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),s==n.length-1&&(i[o]=e[t]),i=i[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=t.style.overflowX,i=t.style.overflowY;return(n!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===n||"scroll"===i||(n=window.getComputedStyle(t),parseFloat(n.height)<t.scrollHeight)||parseFloat(n.width)<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n,i=s.GetUniqueElementId(e);return t?(n=t.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()}),s.__cache[i]&&null!=s.__cache[i][t]?s.__cache[i][t]:e.dataset[n]):s.__cache[i]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),e.define("select2/results",["jquery","./utils"],function(u,d){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return d.Extend(i,d.Observable),i.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e[0].setAttribute("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var i=e.results[n],i=this.option(i);t.push(i)}this.$results.append(t)}},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<i.indexOf(n)?(this.classList.add("select2-results__option--selected"),e[0].setAttribute("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e[0].setAttribute("aria-selected","false"))})})},i.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t,n=document.createElement("li"),i=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&s.call(e.element,":disabled")||null==e.element&&e.disabled)&&(i["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(i.role="group",i["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),i)n.setAttribute(t,i[t]);if(e.children){for(var s=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),l=0;l<e.children.length;l++){var a=e.children[l],a=this.option(a);r.push(a)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),s.append(o),s.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},i.prototype.bind=function(t,e){var s=this,n=t.id+"-results";this.$results[0].setAttribute("id",n),t.on("results:all",function(e){s.clear(),s.append(e.data),t.isOpen()&&(s.setClasses(),s.highlightFirstItem())}),t.on("results:append",function(e){s.append(e.data),t.isOpen()&&s.setClasses()}),t.on("query",function(e){s.hideMessages(),s.showLoading(e)}),t.on("select",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(s.setClasses(),s.options.get("scrollAfterSelect"))&&s.highlightFirstItem()}),t.on("open",function(){s.$results[0].setAttribute("aria-expanded","true"),s.$results[0].setAttribute("aria-hidden","false"),s.setClasses(),s.ensureHighlightVisible()}),t.on("close",function(){s.$results[0].setAttribute("aria-expanded","false"),s.$results[0].setAttribute("aria-hidden","true"),s.$results[0].removeAttribute("aria-activedescendant")}),t.on("results:toggle",function(){var e=s.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=s.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?s.trigger("close",{}):s.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=s.getHighlightedResults(),n=s.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(i=i-1,0===t.length&&(i=0),(t=n.eq(i)).trigger("mouseenter"),n=s.$results.offset().top,t=t.offset().top,e=s.$results.scrollTop()+(t-n),0===i?s.$results.scrollTop(0):t-n<0&&s.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=s.getHighlightedResults(),i=s.$results.find(".select2-results__option--selectable"),n=i.index(n)+1;n>=i.length||((i=i.eq(n)).trigger("mouseenter"),e=s.$results.offset().top+s.$results.outerHeight(!1),i=i.offset().top+i.outerHeight(!1),t=s.$results.scrollTop()+i-e,0===n?s.$results.scrollTop(0):e<i&&s.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){s.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=s.$results.scrollTop(),n=s.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=s.$results.height();t?(s.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(s.$results.scrollTop(s.$results.get(0).scrollHeight-s.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?s.options.get("multiple")?s.trigger("unselect",{originalEvent:e,data:n}):s.trigger("close",{originalEvent:e,data:n}):s.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data"),n=s.getHighlightedResults();n.removeClass("select2-results__option--highlighted"),n.each(function(){this.setAttribute("aria-selected","false")}),s.trigger("results:focus",{data:t,element:u(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 e,t,n,i,s=this.getHighlightedResults();0!==s.length&&(e=this.$results.find(".select2-results__option--selectable").index(s),t=this.$results.offset().top,i=s.offset().top,n=this.$results.scrollTop()+(i-t),i=i-t,n-=2*s.outerHeight(!1),e<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):u(t).append(n)},i}),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,i,s){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return i.Extend(o,i.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=i.GetData(this.$element[0],"old-tabindex")?this._tabindex=i.GetData(this.$element[0],"old-tabindex"):null!=this.$element[0].getAttribute("tabindex")&&(this._tabindex=this.$element[0].getAttribute("tabindex")),this.$element[0].getAttribute("title")&&e[0].setAttribute("title",this.$element[0].getAttribute("title")),e[0].setAttribute("tabindex",this._tabindex),e[0].setAttribute("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,i=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===s.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection[0].setAttribute("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection[0].setAttribute("aria-expanded","true"),n.$selection[0].setAttribute("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection[0].setAttribute("aria-expanded","false"),n.$selection[0].removeAttribute("aria-activedescendant"),n.$selection[0].removeAttribute("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection[0].setAttribute("tabindex",n._tabindex),n.$selection[0].setAttribute("aria-disabled","false")}),e.on("disable",function(){n.$selection[0].setAttribute("tabindex","-1"),n.$selection[0].setAttribute("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]&&i.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,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this,i=(o.__super__.bind.apply(this,arguments),t.id+"-container"),s=this.$selection.find(".select2-selection__rendered")[0];null!=s&&(s.setAttribute("id",i),s.setAttribute("role","textbox"),s.setAttribute("aria-readonly","true")),this.$selection[0].setAttribute("aria-labelledby",i),this.$selection[0].setAttribute("aria-controls",i),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")})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return e("<span></span>")},o.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t[0].setAttribute("title",n):t[0].removeAttribute("title"))},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(s,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,e=(o.__super__.bind.apply(this,arguments),e.id+"-container"),i=this.$selection.find(".select2-selection__rendered")[0];null!=i&&i.setAttribute("id",e),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=s(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e[0].removeAttribute("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return s('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered")[0].getAttribute("id")+"-choice-",i=0;i<e.length;i++){var s=e[i],o=this.selectionContainer(),r=this.display(s,o),l=n+c.generateChars(4)+"-",r=(s.id?l+=s.id:l+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r)[0].setAttribute("id",l),s.title||s.text),r=(r&&o[0].setAttribute("title",r),this.options.get("translations").get("removeItem")),a=o.find(".select2-selection__choice__remove")[0];a.setAttribute("title",r()),a.setAttribute("aria-label",r()),a.setAttribute("aria-describedby",l),c.StoreData(o[0],"data",s),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),e.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="object"!=typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered")[0].setAttribute("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(s,i,l){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&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(e){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var i=l.GetData(n[0],"data"),s=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:i});if(this.trigger("clear",o),o.prevented)this.$element.val(s);else{for(var r=0;r<i.length;r++)if(o={data:i[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,i;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||((e=null)!=(n=this.$selection.find(".select2-selection__rendered")[0])&&(e=n.getAttribute("id")),n=this.options.get("translations").get("removeAllItems"),(i=s('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>'))[0].setAttribute("title",n()),i[0].setAttribute("aria-label",n()),i[0].setAttribute("aria-describedby",e),l.StoreData(i[0],"data",t),this.$selection.prepend(i),this.$selection[0].classList.add("select2-selection--clearable"))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(i,l,a){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=i('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var i=this,s=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),i.$search[0].setAttribute("aria-describedby",o),t.on("open",function(){i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.resizeSearch(),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search[0].disabled=!1,i._transferTabIndex()}),t.on("disable",function(){i.$search[0].disabled=!0}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===a.BACKSPACE&&""===i.$search.val()&&0<(t=i.$selection.find(".select2-selection__choice").last()).length&&(t=l.GetData(t[0],"data"),i.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){i.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=a.SHIFT&&t!=a.CTRL&&t!=a.ALT&&t!=a.TAB&&i.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search[0].setAttribute("tabindex",this.$selection[0].getAttribute("tabindex")),this.$selection[0].setAttribute("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search[0].setAttribute("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search[0].setAttribute("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search[0].getAttribute("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),e.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("selectionCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==s.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),e.define("select2/translation",["require"],function(n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=Object.assign({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),e.define("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","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","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","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"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","Ꝼ":"F","Ⓖ":"G","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","Ⓘ":"I","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","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","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","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","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","Ꝣ":"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","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","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","ꝺ":"d","dz":"dz","dž":"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","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","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","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","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","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"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","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","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","ẛ":"s","ⓣ":"t","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","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","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","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(n){function i(e,t){i.__super__.constructor.call(this)}return n.Extend(i,n.Observable),i.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(e,t){},i.prototype.destroy=function(){},i.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},i}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,l,a){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return l.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(a(e))}))},n.prototype.select=function(s){var e,o=this;s.selected=!0,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element[0].multiple?this.current(function(e){var t=[];(s=[s]).push.apply(s,e);for(var n=0;n<s.length;n++){var i=s[n].id;-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=s.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(s){var o=this;this.$element[0].multiple&&(s.selected=!1,null!=s.element&&"option"===s.element.tagName.toLowerCase()?(s.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==s.id&&-1===t.indexOf(i)&&t.push(i)}o.$element.val(t),o.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){l.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],i=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=a(this),e=i.item(e),null!==(e=i.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,e=this._normalizeItem(e);return e.element=t,l.StoreData(t,"data",e),a(t)},n.prototype.item=function(e){var t={};if(null==(t=l.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e[0].disabled,selected:e[0].selected,title:e[0].title};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e[0].label,children:[],title:e[0].title},i=e.children("option"),s=[],o=0;o<i.length;o++){var r=a(i[o]),r=this.item(r);s.push(r)}t.children=s}(t=this._normalizeItem(t)).element=e[0],l.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=a.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),e.children&&(e.children=e.children.map(n.prototype._normalizeItem)),a.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function i(e,t){this._dataToConvert=t.get("data")||[],i.__super__.constructor.call(this,e,t)}return t.Extend(i,e),i.prototype.bind=function(e,t){i.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(c(this)).id}).get(),s=[];for(var o=0;o<e.length;o++){var r,l,a=this._normalizeItem(e[o]);0<=i.indexOf(a.id)?(r=n.filter((e=>function(){return c(this).val()==e.id})(a)),l=this.item(r),l=c.extend(!0,{},a,l),l=this.option(l),r.replaceWith(l)):(r=this.option(a),a.children&&(l=this.convertToOptions(a.children),r.append(l)),s.push(r))}return s},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(t,n){var i=this,s=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=s.transport(s,function(e){e=i.processResults(e,t);e&&e.results&&Array.isArray(e.results)?e.results=e.results.map(r.prototype._normalizeItem):i.options.get("debug")&&window.console&&console.error&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof s.url&&(s.url=s.url.call(this.$element,t)),"function"==typeof s.data&&(s.data=s.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var i=n.get("tags"),s=n.get("createTag"),s=(void 0!==s&&(this.createTag=s),n.get("insertTag"));if(void 0!==s&&(this.insertTag=s),e.call(this,t,n),Array.isArray(i))for(var o=0;o<i.length;o++){var r=i[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var i=t.results,s=0;s<i.length;s++){var o=i[s],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=i,void u(t))}if(n)return!0;var l,a=d.createTag(c);null!=a&&((l=d.option(a))[0].setAttribute("data-select2-tag","true"),d.addOptions([l]),d.insertTag(i,a)),t.results=i,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var s=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);i.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=i.option(t))[0].setAttribute("data-select2-tag",!0),i._removeOldTags(),i.addOptions([e])),i.trigger("select",{data:t})});s.term!==t.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),t.term=s.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var s=n.get("tokenSeparators")||[],o=t.term,r=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var a=o[r];-1===s.indexOf(a)?r++:(a=o.substr(0,r),null==(a=l(c.extend({},t,{term:a})))?r++:(i(a),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.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 i=this;e.call(this,t,n),t.on("select",function(){i._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected(function(){e.call(i,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},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('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e[0].setAttribute("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"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search[0].autocomplete=this.options.get("autocomplete"),this.$search[0].setAttribute("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var i=this,s=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search[0].setAttribute("tabindex",0),i.$search[0].setAttribute("aria-controls",s),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),t.on("close",function(){i.$search[0].setAttribute("tabindex",-1),i.$search[0].removeAttribute("aria-controls"),i.$search[0].removeAttribute("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||i.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?i.$search[0].setAttribute("aria-activedescendant",e.data._resultId):i.$search[0].removeAttribute("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="object"!=typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var s=t[i];this.placeholder.id===s.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),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 i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+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('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)}),t.on("close",function(){i._hideDropdown(),i._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[0].setAttribute("class",n[0].getAttribute("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(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,i="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(i,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(i+" "+s+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,s=this.$container.offset(),o=(s.bottom=s.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=s.top,o.bottom=s.top+o.height;var r=this.$dropdown.outerHeight(!1),l=e.scrollTop(),e=e.scrollTop()+e.height(),l=l<s.top-r,e=e>s.bottom+r,s={left:s.left,top:o.bottom},a=this.$dropdownParent,c=("static"===a.css("position")&&(a=a.offsetParent()),{top:0,left:0});(u.contains(document.body,a[0])||a[0].isConnected)&&(c=a.offset()),s.top-=c.top,s.left-=c.left,t||n||(i="below"),e||!l||t?!l&&e&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(s.top=o.top-c.top-r),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(s)},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,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var s=t[i];s.children?n+=e(s.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var t=e.call(this),e=this.options.get("dropdownCssClass")||"";return-1!==e.indexOf(":all:")&&(e=e.replace(":all:",""),n.copyNonInternalCssClasses(t[0],this.$element[0])),e.trim().split(" ").forEach(function(e){0<e.length&&t[0].classList.add(e)}),t},e}),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(i){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=i.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./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","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(a,o,r,l,c,u,d,p,h,f,g,t,m,y,v,b,_,$,w,A,x,D,S,E,O,C,L,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=a.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,A)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,b)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,_))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,E)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,L)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=x:(t=f.Decorate(x,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,C)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,O)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=l:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],i=0;i<e.language.length;i++){var s=e.language[i];-1===n.indexOf(s)&&n.push(s)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function l(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var i=a.extend(!0,{},n),s=n.children.length-1;0<=s;s--)null==e(t,n.children[s])&&i.children.splice(s,1);return 0<i.children.length?i:e(t,i)}var o=l(n.text).toUpperCase(),r=l(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,i=this.defaults.language,s=t[0].lang,t=t.closest("[lang]"),t=t[0]?t[0].lang:null,s=Array.prototype.concat.call(this._resolveLanguage(s),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(t));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(a.isEmptyObject(e))return[];if(a.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],i=[],s=0;s<n.length;s++)i.push(n[s]),"string"==typeof n[s]&&0<n[s].indexOf("-")&&(t=n[s].split("-")[0],i.push(t));return i},n.prototype._processTranslations=function(e,t){for(var n=new g,i=0;i<e.length;i++){var s=new g,o=e[i];if("string"==typeof o)try{s=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,s=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else s=a.isPlainObject(o)?new g(o):o;n.extend(s)}return n},n.prototype.set=function(e,t){var n={},e=(n[e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})]=t,f._convertData(n));a.extend(!0,this.defaults,e)},new n}),e.define("select2/options",["jquery","./defaults","./utils"],function(u,n,d){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t,n=["select2"],i=(null==this.options.multiple&&(this.options.multiple=e[0].multiple),null==this.options.disabled&&(this.options.disabled=e[0].disabled),null==this.options.autocomplete&&e[0].autocomplete&&(this.options.autocomplete=e[0].autocomplete),null===this.options.dir&&((t=e[0].getAttribute("dir"))?this.options.dir=t:(t=e.closest("[dir]").getAttribute("dir"),this.options.dir=t||"ltr")),e[0].disabled=this.options.disabled,e[0].multiple=this.options.multiple,d.GetData(e[0],"select2Tags")&&(this.options.debug&&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.'),d.StoreData(e[0],"data",d.GetData(e[0],"select2Tags")),d.StoreData(e[0],"tags",!0)),d.GetData(e[0],"ajaxUrl")&&(this.options.debug&&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."),e[0].setAttribute("ajax--url",d.GetData(e[0],"ajaxUrl")),d.StoreData(e[0],"ajax-Url",d.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var r=e[0].attributes[o].name,l="data-";r.substr(0,l.length)==l&&(r=r.substring(l.length),l=d.GetData(e[0],r),i[r.replace(/-([a-z])/g,s)]=l)}u.fn.jquery&&"1."==u.fn.jquery.substr(0,2)&&e[0].dataset&&(i=u.extend(!0,{},e[0].dataset,i));var a,c=u.extend(!0,{},d.GetData(e[0]),i);for(a in c=d._convertData(c))-1<n.indexOf(a)||(u.isPlainObject(this.options[a])?u.extend(this.options[a],c[a]):this.options[a]=c[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,s,o,i){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new s(t=t||{},e),r.__super__.constructor.call(this);var t=e[0].getAttribute("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e[0].setAttribute("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),i=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e[0].setAttribute("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){e=e[0];return"select2-"+(null!=e&&null!=e.getAttribute("id")?e.getAttribute("id"):null!=e&&null!=e.getAttribute("name")?e.getAttribute("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(i=this._resolveWidth(e,"style"))?i:this._resolveWidth(e,"element");if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var i=e[0].getAttribute("style");if("string"==typeof i)for(var s=i.split(";"),o=0,r=s.length;o<r;o+=1){var l=s[o].replace(/\s/g,"").match(n);if(null!==l&&1<=l.length)return l[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,i=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===i.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===i.ESC||t===i.UP&&e.altKey?(n.close(e),e.preventDefault()):t===i.ENTER||t===i.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element[0].disabled),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in i){var s={prevented:!1,name:e,args:t};if(n.call(this,i[e],s),s.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element[0].disabled instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element[0].disabled=e},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&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 t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&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.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element[0].setAttribute("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element[0].setAttribute("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e[0].setAttribute("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(s,e,o,t,r){var l;return null==s.fn.select2&&(l=["open","close","destroy"],s.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=s.extend(!0,{},t);new o(s(this),e)}),this;var n,i;if("string"==typeof t)return i=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.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,i)}),-1<l.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==s.fn.select2.defaults&&(s.fn.select2.defaults=t),o});var e,n,p,o,r,h,f,g,m,y,v,i,s,b,l={define:e.define,require:e.require};function _(e,t){return i.call(e,t)}function a(e,t){var n,i,s,o,r,l,a,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[t])&&(e[t]=e[t].replace(b,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(s=(s=h[p.slice(0,u).join("/")])&&s[i]){o=s,r=c;break}if(o)break;!l&&f&&f[i]&&(l=f[i],a=c)}!o&&l&&(o=l,r=a),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(p,e.concat([t,n]))}}function A(e){var t;if(_(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(p,t)),_(g,e)||_(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function x(e){return e?c(e):[]}var u=l.require("jquery.select2");return t.fn.select2.amd=l,u});
42;
43/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
44if(!jQuery.isArray)jQuery.isArray=Array.isArray||function(value){return Object.prototype.toString.call(value)==='[object Array]';};if(!jQuery.trim)jQuery.trim=function(text){return text==null?"":text.trim();};(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.select2=Drupal.webform.select2||{};Drupal.webform.select2.options=Drupal.webform.select2.options||{};Drupal.webform.select2.options.width=Drupal.webform.select2.options.width||'100%';Drupal.webform.select2.options.widthInline=Drupal.webform.select2.options.widthInline||'50%';Drupal.behaviors.webformSelect2={attach(context){if(!$.fn.select2)return;$(once('webform-select2','select.js-webform-select2, .js-webform-select2 select',context)).each(function(){var $select=$(this);var options={};if($select.parents('.webform-element--title-inline').length)options.width=Drupal.webform.select2.options.widthInline;options=$.extend(options,Drupal.webform.select2.options);if($select.data('placeholder')){options.placeholder=$select.data('placeholder');if(!$select.prop('multiple'))options.allowClear=true;}if($select.data('limit'))options.maximumSelectionLength=$select.data('limit');if($select.attr('data-options'))options=$.extend(true,options,JSON.parse($select.attr('data-options')));$select.select2(options);});}};$(function(){if($.fn.select2)$(document).on('state:visible state:visible-slide',function(e){$('select.select2-hidden-accessible').select2('close');});if($.ui&&$.ui.dialog&&$.ui.dialog.prototype._allowInteraction){var ui_dialog_interaction=$.ui.dialog.prototype._allowInteraction;$.ui.dialog.prototype._allowInteraction=function(e){if($(e.target).closest('.select2-dropdown').length)return true;return ui_dialog_interaction.apply(this,arguments);};}});})(jQuery,Drupal,once);;
45(function($,Drupal,debounce){$.fn.drupalGetSummary=function(){const callback=this.data('summaryCallback');if(!this[0]||!callback)return '';const result=callback(this[0]);return result?result.trim():'';};$.fn.drupalSetSummary=function(callback){const self=this;if(typeof callback!=='function'){const val=callback;callback=function(){return val;};}return (this.data('summaryCallback',callback).off('formUpdated.summary').on('formUpdated.summary',()=>{self.trigger('summaryUpdated');}).trigger('summaryUpdated'));};Drupal.behaviors.formSingleSubmit={attach(){function onFormSubmit(e){const $form=$(e.currentTarget);const formValues=new URLSearchParams(new FormData(e.target)).toString();const previousValues=$form.attr('data-drupal-form-submit-last');if(previousValues===formValues)e.preventDefault();else $form.attr('data-drupal-form-submit-last',formValues);}$(once('form-single-submit','body')).on('submit.singleSubmit','form:not([method~="GET"])',onFormSubmit);}};function triggerFormUpdated(element){$(element).trigger('formUpdated');}function fieldsList(form){return [].map.call(form.querySelectorAll('[name][id]'),(el)=>el.id);}Drupal.behaviors.formUpdated={attach(context){const $context=$(context);const contextIsForm=context.tagName==='FORM';const $forms=$(once('form-updated',contextIsForm?$context:$context.find('form')));let formFields;if($forms.length)$.makeArray($forms).forEach((form)=>{const events='change.formUpdated input.formUpdated ';const eventHandler=debounce((event)=>{triggerFormUpdated(event.target);},300);formFields=fieldsList(form).join(',');form.setAttribute('data-drupal-form-fields',formFields);$(form).on(events,eventHandler);});if(contextIsForm){formFields=fieldsList(context).join(',');const currentFields=$(context).attr('data-drupal-form-fields');if(formFields!==currentFields)triggerFormUpdated(context);}},detach(context,settings,trigger){const $context=$(context);const contextIsForm=context.tagName==='FORM';if(trigger==='unload')once.remove('form-updated',contextIsForm?$context:$context.find('form')).forEac
45h((form)=>{form.removeAttribute('data-drupal-form-fields');$(form).off('.formUpdated');});}};Drupal.behaviors.fillUserInfoFromBrowser={attach(context,settings){const userInfo=['name','mail','homepage'];const $forms=$(once('user-info-from-browser','[data-user-info-from-browser]'));if($forms.length)userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);const browserData=localStorage.getItem(`Drupal.visitor.${info}`);if(!$element.length)return;const emptyValue=$element[0].value==='';const defaultValue=$element.attr('data-drupal-default-value')===$element[0].value;if(browserData&&(emptyValue||defaultValue))$element.each(function(index,item){item.value=browserData;});});$forms.on('submit',()=>{userInfo.forEach((info)=>{const $element=$forms.find(`[name=${info}]`);if($element.length)localStorage.setItem(`Drupal.visitor.${info}`,$element[0].value);});});}};const handleFragmentLinkClickOrHashChange=(e)=>{let url;if(e.type==='click')url=e.currentTarget.location?e.currentTarget.location:e.currentTarget;else url=window.location;const hash=url.hash.substring(1);if(hash){const $target=$(`#${hash}`);$('body').trigger('formFragmentLinkClickOrHashChange',[$target]);setTimeout(()=>$target.trigger('focus'),300);}};const debouncedHandleFragmentLinkClickOrHashChange=debounce(handleFragmentLinkClickOrHashChange,300,true);$(window).on('hashchange.form-fragment',debouncedHandleFragmentLinkClickOrHashChange);
45$(document).on('click.form-fragment','a[href*="#"]',debouncedHandleFragmentLinkClickOrHashChange);})(jQuery,Drupal,Drupal.debounce);;
46(function($,Drupal){var isChrome=(/chrom(e|ium)/.test(window.navigator.userAgent.toLowerCase()));if(isChrome){var backButton=false;if(window.performance){var navEntries=window.performance.getEntriesByType('navigation');if(navEntries.length>0&&navEntries[0].type==='back_forward')backButton=true;else{if(window.performance.navigation&&window.performance.navigation.type===window.performance.navigation.TYPE_BACK_FORWARD)backButton=true;}}if(backButton){var attachBehaviors=Drupal.attachBehaviors;Drupal.attachBehaviors=function(context,settings){setTimeout(function(){attachBehaviors(context,settings);},300);};}}})(jQuery,Drupal);;
47(function($,Drupal){const states={postponed:[]};Drupal.states=states;function invert(a,invertState){return invertState&&typeof a!=='undefined'?!a:a;}function compare(a,b){if(a===b)return typeof a==='undefined'?a:true;return typeof a==='undefined'||typeof b==='undefined';}function ternary(a,b){if(typeof a==='undefined')return b;if(typeof b==='undefined')return a;return a&&b;}Drupal.behaviors.states={attach(context,settings){const elements=once('states','[data-drupal-states]',context);const il=elements.length;for(let i=0;i<il;i++){const config=JSON.parse(elements[i].getAttribute('data-drupal-states'));Object.keys(config||{}).forEach((state)=>{new states.Dependent({element:$(elements[i]),state:states.State.sanitize(state),constraints:config[state]});});}while(states.postponed.length)states.postponed.shift()();}};states.Dependent=function(args){$.extend(this,{values:{},oldValue:null},args);this.dependees=this.getDependees();Object.keys(this.dependees||{}).forEach((selector)=>{this.initializeDependee(selector,this.dependees[selector]);});};states.Dependent.comparisons={RegExp(reference,value){return reference.test(value);},Function(reference,value){return reference(value);},Array(reference,value){if(!Array.isArray(value))return false;return JSON.stringify(reference.sort())===JSON.stringify(value.sort());},Number(reference,value){return typeof value==='string'?compare(reference.toString(),value):compare(reference,value);}};states.Dependent.prototype={initializeDependee(selector,dependeeStates){this.values[selector]={};Object.keys(dependeeStates).forEach((i)=>{let state=dependeeStates[i];if($.inArray(state,dependeeStates)===-1)return;state=states.State.sanitize(state);this.values[selector][state.name]=null;$(selector).on(`state:${state}`,{selector,state},(e)=>{this.update(e.data.selector,e.data.state,e.value);});new states.Trigger({selector,state});});},compare(reference,selector,state){const value=this.values[selector][state.name];if(reference.constructor.name in states.Dependent.comparisons)return states.Dependent.comparisons[reference.constructor.name](reference,value);return compare(reference,value);},update(selector,state,value){if(value!==this.values[selector][state.name]){this.values[selector][state.name]=value;this.reevaluate();}},reevaluate(){let value=this.verifyConstraints(this.constraints);if(value!==this.oldValue){this.oldValue=value;value=invert(value,this.state.invert);this.element.trigger({type:`state:${this.state}`,value,trigger:true});}},verifyConstraints(constraints,selector){let result;if(Array.isArray(constraints)){const hasXor=$.inArray('xor',constraints)===-1;const len=constraints.length;for(let i=0;i<len;i++)if(constraints[i]!=='xor'){const constraint=this.checkConstraints(constraints[i],selector,i);if(constraint&&(hasXor||result))return hasXor;result=result||constraint;}}else{if($.isPlainObject(constraints)){for(const n in constraints)if(constraints.hasOwnProperty(n)){result=ternary(result,this.checkConstraints(constraints[n],selector,n));if(result===false)return false;}}}return result;},checkConstraints(value,selector,state){if(typeof state!=='string'||/[0-9]/.test(state[0]))state=null;else{if(typeof selector==='undefined'){selector=state;state=null;}}if(state!==null){state=states.State.sanitize(state);return invert(this.compare(value,selector,state),state.invert);}return this.verifyConstraints(value,selector);},getDependees(){const cache={};const _compare=this.compare;
47this.compare=function(reference,selector,state){(cache[selector]||(cache[selector]=[])).push(state.name);};this.verifyConstraints(this.constraints);this.compare=_compare;return cache;}};states.Trigger=function(args){$.extend(this,args);if(this.state in states.Trigger.states){this.element=$(this.selector);if(!this.element.data(`trigger:${this.state}`))this.initialize();}};states.Trigger.prototype={initialize(){const trigger=states.Trigger.states[this.state];if(typeof trigger==='function')trigger.call(window,this.element);else Object.keys(trigger||{}).forEach((event)=>{this.defaultTrigger(event,trigger[event]);});this.element.data(`trigger:${this.state}`,true);},defaultTrigger(event,valueFn){let oldValue=valueFn.call(this.element);this.element.on(event,function(e){const value=valueFn.call(this.element,e);if(oldValue!==value){this.element.trigger({type:`state:${this.state}`,value,oldValue});oldValue=value;}}.bind(this));states.postponed.push(function(){this.element.trigger({type:`state:${this.state}`,value:oldValue,oldValue:null});}.bind(this));}};states.Trigger.states={empty:{keyup(){return this.val()==='';},change(){return this.val()==='';}},checked:{change(){let checked=false;this.each(function(){checked=$(this).prop('checked');return !checked;});return checked;}},value:{keyup(){if(this.length>1)return this.filter(':checked').val()||false;return this.val();},change(){if(this.length>1)return this.filter(':checked').val()||false;return this.val();}},collapsed:{collapsed(e){return typeof e!=='undefined'&&'value' in e?e.value:!this[0].hasAttribute('open');}}};states.State=function(state){this.pristine=state;this.name=state;let process=true;do{while(this.name.charAt(0)==='!'){this.name=this.name.substring(1);this.invert=!this.invert;}if(this.name in states.State.aliases)this.name=states.State.aliases[this.name];else process=false;}while(process);};states.State.sanitize=function(state){if(state instanceof states.State)return state;return new states.State(state);};states.State.aliases={enabled:'!disabled',invisible:'!visible',invalid:'!valid',untouched:'!touched',optional:'!required',filled:'!empty',unchecked:'!checked',irrelevant:'!relevant',expanded:'!collapsed',open:'!collapsed',closed:'collapsed',readwrite:'!readonly'};states.State.prototype={invert:false,toString(){return this.name;}};const $document=$(document);$document.on('state:disabled',(e)=>{const tagsSupportDisable='button, fieldset, optgroup, option, select, textarea, input';if(e.trigger)$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-disabled',e.value).find(tagsSupportDisable).addBack(tagsSupportDisable).prop('disabled',e.value);});$document.on('state:readonly',(e)=>{if(e.trigger)$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-readonly',e.value).find('input, textarea').prop('readonly',e.value);});$document.on('state:required',(e)=>{if(e.trigger)if(e.value){const label=`label${e.target.id?`[for=${e.target.id}]`:''}`;const $label=$(e.target).attr({required:'required'}).closest('.js-form-item, .js-form-wrapper').find(label);if(!$label.hasClass('js-form-required').length)$label.addClass('js-form-required form-required');}else $(e.target).removeAttr('required').closest('.js-form-item, .js-form-wrapper').find('label.js-form-required').removeClass('js-form-required form-required');});$document.on('state:visible',(e)=>{if(e.trigger){let $element=$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper');if(e.target.tagName==='A')$element=$(e.target);$element.toggle(e.value);}});$document.on('state:checked',(e)=>{if(e.trigger)$(e.target).closest('.js-form-item, .js-form-wrapper').find('input').prop('checked',e.value).trigger('change');});$document.on('state:collapsed',(e)=>{if(e.trigger)if(e.target.hasAttribute('open')===e.value)$(e.target).find('> summary').trigger('click');});})(jQuery,Drupal);;
48(function($,Drupal,once){Drupal.webform=Drupal.webform||{};Drupal.webform.states=Drupal.webform.states||{};Drupal.webform.states.slideDown=Drupal.webform.states.slideDown||{};Drupal.webform.states.slideDown.duration='slow';Drupal.webform.states.slideUp=Drupal.webform.states.slideUp||{};Drupal.webform.states.slideUp.duration='fast';$.fn.hasData=function(data){return (typeof this.data(data)!=='undefined');};$.fn.isWebform=function(){return $(this).closest('form.webform-submission-form, form[id^="webform"], form[data-is-webform]').length?true:false;};$.fn.isWebformElement=function(){return ($(this).isWebform()||$(this).closest('[data-is-webform-element]').length)?true:false;};Drupal.states.Trigger.states.empty.change=function change(){return this.val()==='';};Drupal.states.Dependent.comparisons.Object=function(reference,value){if('pattern' in reference)return (new RegExp(reference['pattern'])).test(value);else if('!pattern' in reference)return !((new RegExp(reference['!pattern'])).test(value));else if('less' in reference)return (value!==''&&parseFloat(reference['less'])>parseFloat(value));else if('less_equal' in reference)return (value!==''&&parseFloat(reference['less_equal'])>=parseFloat(value));else if('greater' in reference)return (value!==''&&parseFloat(reference['greater'])<parseFloat(value));else if('greater_equal' in reference)return (value!==''&&parseFloat(reference['greater_equal'])<=parseFloat(value));else if('between' in reference||'!between' in reference){if(value==='')return false;var between=reference['between']||reference['!between'];var betweenParts=between.split(':');var greater=betweenParts[0];var less=(typeof betweenParts[1]!=='undefined')?betweenParts[1]:null;var isGreaterThan=(greater===null||greater===''||parseFloat(value)>=parseFloat(greater));var isLessThan=(less===null||less===''||parseFloat(value)<=parseFloat(less));var result=(isGreaterThan&&isLessThan);return (reference['!between'])?!result:result;}else return reference.indexOf(value)!==false;};var $document=$(document);$document.on('state:required',function(e){if(e.trigger&&$(e.target).isWebformElement()){var $target=$(e.target);toggleRequired($target.find('input[type="file"]'),e.value);if($target.is('.js-form-type-radios, .js-form-type-webform-radios-other, .js-webform-type-radios, .js-webform-type-webform-radios-other, .js-webform-type-webform-entity-radios, .webform-likert-table')){$target.toggleClass('required',e.value);toggleRequired($target.find('input[type="radio"]'),e.value);}if($target.is('.js-form-type-checkboxes, .js-form-type-webform-checkboxes-other, .js-webform-type-checkboxes, .js-webform-type-webform-checkboxes-other')){$target.toggleClass('required',e.value);var $checkboxes=$target.find('input[type="checkbox"]');if(e.value){$checkboxes.on('click',statesCheckboxesRequiredEventHandler);checkboxesRequired($target);}else{$checkboxes.off('click',statesCheckboxesRequiredEventHandler);toggleRequired($checkboxes,false);}}if($target.is('.js-webform-tableselect')){$target.toggleClass('required',e.value);var isMultiple=$target.is('[multiple]');if(isMultiple){var $tbody=$target.find('tbody');var $checkboxes=$tbody.find('input[type="checkbox"]');copyRequireMessage($target,$checkboxes);if(e.value){$checkboxes.on('click change',statesCheckboxesRequiredEventHandler);checkboxesRequired($tbody);}else{$checkboxes.off('click change ',statesCheckboxesRequiredEventHandler);toggleRequired($tbody,false);}}else{var $radios=$target.find('input[type="radio"]');copyRequireMessage($target,$radios);toggleRequired($radios,e.value);}}if($target.is('.js-form-type-webform-select-other, .js-webform-type-webform-select-other')){var $select=$target.find('select');toggleRequired($select,e.value);copyRequireMessage($target,$select);}if($target.find('> label:not([for])').length)$target.find('> label').toggleClass('js-form-required form-required',e.value);if($target.is('.js-webform-type-radios, .js-webform-type-checkboxes, fieldset'))$target.find('legend span.fieldset-legend:not(.visually-hidden),legend span.fieldset__label:not(.visually-hidden)').toggleClass('js-form-required form-required',e.value);if($target.is('fieldset'))$target.removeAttr('required aria-required');}});$document.on('state:checked',function(e){if(e.trigger)$(e.target).trigger('change');});$document.on('state:readonly',function(e){if(e.trigger&&$(e.target).isWebformElement()){$(e.target).prop('readonly',e.value).closest('.js-form-item, .js-form-wrapper').toggleClass('webform-readonly',e.value).find('input, textarea').prop('readonly',e.value);$(e.target).trigger('webform:readonly').find('select, input, textarea, button').trigger('webform:readonly');}});$document.on('state:visible state:visible-slide',function(e){if(e.trigger&&$(e.target).isWebformElement())if(e.value)$(':input',e.target).addBack().each(function(){restoreValueAndRequired(this);triggerEventHandlers(this);});else $(':input',e.target).addBack().each(function(){backupValueAndRequired(this);clearValueAndRequired(this);triggerEventHandlers(this);});});$document.on('state:visible-slide',function(e){if(e.trigger&&$(e.target).isWebformElement()){var effect=e.value?'slideDown':'slide
48Up';var duration=Drupal.webform.states[effect].duration;$(e.target).closest('.js-form-item, .js-form-submit, .js-form-wrapper')[effect](duration);}});Drupal.states.State.aliases['invisible-slide']='!visible-slide';$document.on('state:disabled',function(e){if(e.trigger&&$(e.target).isWebformElement()){$(e.target).prop('disabled',e.value).closest('.js-form-item, .js-form-submit, .js-form-wrapper').toggleClass('form-disabled',e.value).find('select, input, textarea, button').prop('disabled',e.value);var fileElements=$(e.target).find(':input[type="hidden"][name$="[fids]"]');if(fileElements.length){if($(e.target).is('fieldset'))$(e.target).prop('disabled',false);fileElements.removeAttr('disabled');}$(e.target).trigger('webform:disabled').find('select, input, textarea, button').trigger('webform:disabled');}});Drupal.behaviors.webformCheckboxesRequired={attach(context){$(once('webform-checkboxes-required','.js-form-type-checkboxes.required, .webform-term-checkboxes.required, .js-form-type-webform-checkboxes-other.required, .js-webform-type-checkboxes.required, .js-webform-type-webform-checkboxes-other.required, .js-webform-type-webform-radios-other.checkboxes',context)).each(function(){var $element=$(this);$element.find('input[type="checkbox"]').on('click',statesCheckboxesRequiredEventHandler);setTimeout(function(){checkboxesRequired($element);});});}};Drupal.behaviors.webformRadiosRequired={attach(context){$(once('webform-radios-required','.js-form-type-radios, .js-form-type-webform-radios-other, .js-webform-type-radios, .js-webform-type-webform-radios-other, .js-webform-type-webform-entity-radios, .js-webform-type-webform-scale',context)).each(function(){var $element=$(this);setTimeout(function(){radiosRequired($element);});});}};Drupal.behaviors.webformTableSelectRequired={attach(context){$(once('webform-tableselect-required','.js-webform-tableselect.required',context)).each(function(){var $element=$(this);var $tbody=$element.find('tbody');var isMultiple=$element.is('[multiple]');if(isMultiple)$tbody.find('input[type="checkbox"]').on('click change',function(){checkboxesRequired($tbody);});setTimeout(function(){isMultiple?checkboxesRequired($tbody):radiosRequired($element);});});}};function checkboxesRequired($element){var $firstCheckbox=$element.find('input[type="checkbox"]').first();var isChecked=$element.find('input[type="checkbox"]').is(':checked');toggleRequired($firstCheckbox,!isChecked);copyRequireMessage($element,$firstCheckbox);}function radiosRequired($element){var $radios=$element.find('input[type="radio"]');var isRequired=$element.hasClass('required');toggleRequired($radios,isRequired);copyRequireMessage($element,$radios);}function statesCheckboxesRequiredEventHandler(){var $element=$(this).closest('.js-webform-type-checkboxes, .js-webform-type-webform-checkboxes-other, .js-webform-type-webform-term-checkboxes, .js-webform-tableselect tbody');checkboxesRequired($element);}function triggerEventHandlers(input){var $input=$(input);var type=input.type;var tag=input.tagName.toLowerCase();var extraParameters=['webform.states'];if(type==='checkbox'||type==='radio')$input.trigger('change',extraParameters).trigger('blur',extraParameters);else if(tag==='select'){if($input.closest('.webform-type-address').length){if(!$input.data('webform-states-address-initialized')&&$input.attr('autocomplete')==='country'&&$input.val()===$input.find("option[selected]").attr('value'))return;$input.data('webform-states-address-initialized',true);}$input.trigger('change',extraParameters).trigger('blur',extraParameters);}else{if(type!=='submit'&&type!=='button'&&type!=='file'){var hasInputMask=($.fn.inputmask&&$input.hasClass('js-webform-input-mask'));hasInputMask&&$input.inputmask('remove');$input.trigger('input',extraParameters).trigger('change',extraParameters).trigger('keydown',extraParameters).trigger('keyup',extraParameters).trigger('blur',extraParameters);hasInputMask&&$input.inputmask();}}}function backupValueAndRequired(input){var $input=$(input);var type=input.type;var tag=input.tagName.toLowerCase();if($input.prop('required')&&!$input.hasData('webform-required'))$input.data('webform-required',true);if(!$input.hasData('webform-value'))if(type==='checkbox'||type==='radio')$input.data('webform-value',$input.prop('checked'));else if(tag==='select'){var values=[];$input.find('option:selected').each(function(i,option){values[i]=option.value;});$input.data('webform-value',values);}else{if(type!=='submit'&&type!=='button')$input.data('webform-value',input.value);}}function restoreValueAndRequired(input){var $input=$(input);var value=$input.data('webform-value');
48if(typeof value!=='undefined'){var type=input.type;var tag=input.tagName.toLowerCase();if(type==='checkbox'||type==='radio')$input.prop('checked',value);else if(tag==='select')$.each(value,function(i,option_value){option_value=option_value.replace(/'/g,"\\\'");$input.find("option[value='"+option_value+"']").prop('selected',true);});else{if(type!=='submit'&&type!=='button')input.value=value;}$input.removeData('webform-value');}var required=$input.data('webform-required');if(typeof required!=='undefined'){if(required)$input.prop('required',true);$input.removeData('webform-required');}}function clearValueAndRequired(input){var $input=$(input);if($input.closest('[data-webform-states-no-clear]').length)return;var type=input.type;var tag=input.tagName.toLowerCase();if(type==='checkbox'||type==='radio')$input.prop('checked',false);else if(tag==='select')if($input.find('option[value=""]').length)$input.val('');else input.selectedIndex=-1;else{if(type!=='submit'&&type!=='button')input.value=(type==='color')?'#000000':'';}$input.prop('required',false);}function toggleRequired($input,required){var isCheckboxOrRadio=($input.attr('type')==='radio'||$input.attr('type')==='checkbox');if(required)if(isCheckboxOrRadio)$input.attr({'required':'required'});else $input.attr({'required':'required','aria-required':'true'});else{if(isCheckboxOrRadio)$input.removeAttr('required');else $input.removeAttr('required aria-required');$input.each(function(){this.setCustomValidity&&this.setCustomValidity('');});}}function copyRequireMessage($source,$destination){if($source.attr('data-msg-required'))$destination.attr('data-msg-required',$source.attr('data-msg-required'));}})(jQuery,Drupal,once);;
49(function($,Drupal,once){Drupal.behaviors.webformRemoveFormSingleSubmit={attach:function attach(){function onFormSubmit(e){var $form=$(e.currentTarget);$form.removeAttr('data-drupal-form-submit-last');}$(once('webform-single-submit','body')).on('submit.singleSubmit','form.webform-remove-single-submit',onFormSubmit);}};Drupal.behaviors.webformDisableAutoSubmit={attach(context){$(once('webform-disable-autosubmit',$('.js-webform-disable-autosubmit input').not(':button, :submit, :reset, :image, :file'))).on('keyup keypress',function(e){if(e.which===13){e.preventDefault();return false;}});}};Drupal.behaviors.webformRequiredError={attach(context){$(once('webform-required-error',$(context).find(':input[data-webform-required-error], :input[data-webform-pattern-error]'))).on('invalid',function(){this.setCustomValidity('');if(this.valid)return;if(this.validity.patternMismatch&&$(this).attr('data-webform-pattern-error'))this.setCustomValidity($(this).attr('data-webform-pattern-error'));else{if(this.validity.valueMissing&&$(this).attr('data-webform-required-error'))this.setCustomValidity($(this).attr('data-webform-required-error'));}}).on('input change',function(){var name=$(this).attr('name');$(this.form).find(':input[name="'+name+'"]').each(function(){this.setCustomValidity('');});});}};$(document).on('state:required',function(e){$(e.target).filter(':input[data-webform-required-error]').each(function(){this.setCustomValidity('');});});})(jQuery,Drupal,once);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.