function getPasteEvent(){var n=document.createElement("input"),t="onpaste";return n.setAttribute(t,""),typeof n[t]=="function"?"paste":"input"}function initHighlight(){var t=getParameterByName("H"),f=getParameterByName("h"),i=t==null||t==undefined||t.length==0?f:t;if(i!=null&&i!=undefined&&i.length>0)for(var r=i.split(","),u=[],e=r.length,n=0;n<e;n++)u[r[n]]||(u[r[n]]=!0,$("body").highlight(r[n]))}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function refreshPage(){overwriteAjaxReturnUrlToCustomeFunctionParam1!=undefined&&overwriteAjaxReturnUrlToCustomeFunctionParam1!=null?window.location.href=window.location.href+overwriteAjaxReturnUrlToCustomeFunctionParam1:location.reload()}function articleAuthComplete(n){$("[data-article-auth]").hide();$("[data-article-media]").show();$(".close-reveal-modal").click();$(".articleDocumentLinkContainer a").attr("href",$('[data-article-media="'+n+'"]').attr("href"));setTimeout(function(){openModal("successfulllogin_article","")},250)}function reqAuthComplete(n){$("[data-article-auth]").hide();$("[data-article-media]").show();$(".close-reveal-modal").click();var t=$('[data-article-media="'+n+'"]');t!=undefined&&t.attr("data-reqauth-modal-confirm-link")!=undefined&&($("#reqauth_confim_module").find('[data-text="title"]').html(t.attr("data-reqauth-modal-confirm-title")),$("#reqauth_confim_module").find('[data-text="text"]').html(t.attr("data-reqauth-modal-confirm-text")),$("#reqauth_confim_module").find('[data-text="link"]').html(t.attr("data-reqauth-modal-confirm-link")),$("#reqauth_confim_module").find('[data-text="link"]').attr("href",t.attr("href")),setTimeout(function(){openModal("reqauth_confim_module","")},250))}function initMask(){$("[data-mask]").each(function(){$(this).maskMe($(this).attr("data-mask"))})}function initJobAndApplicationList(){}function initFocus(){var t=getUrlParameter("focus"),n;t!=null&&(n=$("[name='"+t+"']").not(":hidden").first(),n.length>0&&(scrollSiteTo(n,130),n.focus()))}function initJobApplicationSourceLogic(){var n=$('[name="ja_Source"]');n!=undefined&&n.change(function(){$(this).val().toLowerCase().trim()=="other"?$("#SourceOther_div").show():$("#SourceOther_div").hide()})}function initProfileIndustryLogic(){var n=$('[name="Industry"]');n!=undefined&&n.change(function(){$(this).val().toLowerCase().trim()=="other"?$('[name="OtherIndustry"]').show():($('[name="OtherIndustry"]').hide(),$('[name="OtherIndustry"]').val(""))})}function initDatePicker(){$("input.dateinput").each(function(){var t=$(this),n=t.val();n=stringToDate(n);t.datepicker({dateFormat:"M d, yy"});n!=undefined&&n!=null&&n!=""&&t.datepicker("setDate",n)})}function initProfileCountryPrivinceLogic(){var n=$('[data-id="profileForm"]');n!=undefined&&n.length>0&&(n.find('[name="Country"]').change(function(){var n=$('[data-id="profileForm"]').find('[name="Province"]'),t=$('[data-id="profileForm"]').find('[name="ProvinceSub"]');($(this).val()=="1"&&n.is("input")||$(this).val()!="1"&&n.is("select"))&&(t.attr("name","Province").show(),n.attr("name","ProvinceSub").hide())}),n.find('[name="Country"]').trigger("change"))}function initDataPatternValidation(n){n==undefined&&(n=$("body"));var t=n.find("[data-pattern]").not(":disabled");$(t).change(function(){validatePattern($(this))})}function validatePattern(n){var i=new RegExp("^"+n.attr("pattern")+"$"),t;return i.test(n.val())?(n.removeClass("error-state"),t=n.next(),t!=undefined&&t.is("p")&&t.remove(),!0):(n.addClass("error-state").after('<p class="error-text" data-id="'+n.attr("name")+'validationP">'+n.attr("data-patternerrormsg")+"<\/p>"),!1)}function isValidNuSil(n){var t=n.find("[data-pattern]").not(":disabled");return invalidCount=0,t.each(function(){invalidCount=invalidCount+(validatePattern($(this))?0:1)}),invalidCount==0}function initRememberMe(){$('[data-id="loginForm"]').find("#remember-me").change(function(){$('[data-id="loginForm"]').find('[data-name="RememberMe"]').val($(this).is(":checked")?"true":"false")})}function initAjaxFormEnterSubmit(){$('[data-ajaxform="true"]').each(function(){$(this).find("select,input,radio").keydown(function(n){if(n.keyCode==13)return n.preventDefault(),$(this).parents('[data-ajaxform="true"]').find('[data-ajaxformsubmit="true"]').trigger("click"),!1})})}function initOrder(){var n,t,i;orderRequest&&orderRequest.abort();n=$("#order.content");n.length>0&&(t=n.find("input#productId").val(),i=n.find("input#uri").val()+t,orderRequest=$.ajax({type:"GET",url:i,cache:!1,success:function(n){replaceProductResults(n,$(".db-order-result"))},error:function(){$(".db-order-result").empty()}}))}function setPagination(n,t,i){var r=$(".pagination"),u,f;if(r.length>0){for(r.empty(),u=t==1?"unavailable":"",r.append("<li class='arrow "+u+"' data-page='1'><a href='#'>&laquo;<\/a><\/li>"),f=1;f<=n;f++)u=f==t?"current":"",r.append("<li class='"+u+"' data-page='"+f+"'><a href='#'>"+f+"<\/a><\/li>");u=t==n?"unavailable":"";r.append("<li class='arrow "+u+"'  data-page='"+n+"'><a href='#'>&raquo;<\/a><\/li>");r.find("li").click(function(){var r=$(this),n=r.attr("data-page"),t=$(".pagination").find("li");t.removeClass("current").removeClass("unavailable");t.not(".arrow").filter("[data-page='"+n+"']").addClass("current");t.filter(".arrow").filter("[data-page='"+n+"']").addClass("unavailable");i(n)})}}function deleteProductFromProductList(n){var t,r,i;confirm("Are you sure?")&&(t=n.attr("data-deleteProductParam"),n.attr("disabled","disabled"),r=$("#CurrentPage").val(),i=$("#deleteUri").val()+t,$.ajax({type:"GET",url:i,cache:!1,success:function(){n.removeAttr("disabled");initProductsPanel($("#CurrentPage").val())},error:function(){}}))}function initProductsPanel(n){var u,t,i,r,f,e;productPanelRequest&&productPanelRequest.abort();u=$("#mynusil.content");t=$(".db-product-panel-result");u.length>0&&t.length>0&&(i=$("#productlistname").val(),i=i==undefined?"":i,r=t.find("[data-sort]").attr("data-sort"),r=r==undefined?"":r,f=u.find("input#uri").val()+n+"&name="+i+"&sort="+r,e=$("<div class='ajax-loader'><\/div>"),t.empty().append(e),productPanelRequest=$.ajax({type:"GET",url:f,cache:!1,success:function(n){var i=$(n),r=i.find("#NoOfPages").val(),u=i.find("#CurrentPage").val();replaceProductsResults(n,t);setPagination(r,u,initProductsPanel);$("#ProductListSearchFormSubmit").click(function(){initProductsPanel(1)});$("[data-deleteProductParam]").click(function(){return deleteMSDSFile($(this),$(this).attr("data-msdsproductcode")),deleteProductFromProductList($(this)),!1});$("#productlistname").keyup(function(n){n.keyCode==13&&$("#ProductListSearchFormSubmit").trigger("click")})},error:function(){t.empty().append(errorMessage)}}))}function initProductForm(){var t,n;if(productFormRequest&&productFormRequest.abort(),t=$("#mynusil.content"),n=$("#db-product-result"),t.length>0&&n.length>0){var r=t.find("input#productId").val(),i=t.find("input#uri").val()+r,u=$('<div class="ajax-loader-button"><\/div>');productFormRequest=$.ajax({type:"GET",url:i,cache:!1,success:function(r){n.empty().html(r);n.find("#productFormSubmit").unbind().click(function(){$(this).replaceWith(u);productFormSubmit(t,n,i)})},error:function(){n.empty().append(errorMessage)}})}}function initProductMSDS(){var n=$("#db-product-result-files");n.length>0}function deleteMSDSFile(n,t,i,r){if(confirm("Are you sure?")){var u={};u.deletemsds_prodcutcode=t;u.deletemsds_countrycode=i;u.deletemsds_filename=r;$.ajax({type:"POST",data:JSON.stringify({formData:u}),dataType:"JSON",contentType:"application/json; charset=utf-8",url:"/Services/FormsService.asmx/RemoveMSDS",success:function(){n.parents(".product-row").remove()},error:function(){alert("Error occured while processing your request. We are sorry. Please try again later.")}})}}function productFormSubmit(n,t,i){var r=$('<div class="ajax-loader-button"><\/div>'),u=n.find("select, textarea, input").serialize();$.ajax({type:"POST",url:i,data:u,cache:!1,success:function(u){var e=$("<div>"+u+"<\/div>"),s=e.find("#iscreate").val()=="true",h=e.find("#issuccess").val()=="true",f,o;s&&h?(f=window.location.pathname,o=e.find("#Name_StringElement").val(),f=f.replace("create","edit"),f+="?id="+o,window.location.href=f):(t.empty().html(u),t.find("#productFormSubmit").unbind().click(function(){$(this).replaceWith(r);productFormSubmit(n,t,i)}),initValidateProductForm())},error:function(){t.empty().append(errorMessage)}})}function initValidateProductForm(){var i=$('[data-id="productValidationErrors"]').val(),r,t,n;if(i!=undefined&&i.length>0)for($("[data-id='productForm']").find(".error-text").remove(),r=i.split("||"),t=0;t<r.length;t++)n=r[t].split("::"),n.length>1&&n[0]!=undefined&&n[0].length>0&&$("[data-id='productForm']").find("#"+n[0]).addClass("error-state").after('<p class="error-text">'+n[1]+"<\/p>"),$("[data-id='productForm']").addClass("error-state")}function moveHiddenPlaceholderContent(){var n=$(".sitecoreEditMode");n.length==0?$("[data-placeholderdestination]").each(function(){$("#"+$(this).attr("data-placeholderdestination")).replaceWith($(this).html())}):$("[data-placeholderdestination]").each(function(){$("#"+$(this).attr("data-placeholderdestination")).replaceWith($(this))})}function initProduct(){var n,t,i,f;if(productRequest&&productRequest.abort(),n=$("#product.content"),t=$(".db-product-result"),n.length>0)if(t.find(".loaderbox").length>0){var e=n.find("input#productId").val(),o=n.find("input#metric").val(),s=n.find("input#uri").val()+e+"&metric="+o;productRequest=$.ajax({type:"GET",url:s,cache:!1,success:function(n){replaceProductResults(n,t);setTimeout(function(){var n=$("#buttonsReplaceWith"),t=$("#buttonsReplace"),i=$("#htmlclass").val();n.find("[data-headerlink]").addClass(i);t.replaceWith(n.html());moveHiddenPlaceholderContent();$(".unitchangebutton").click(function(){var n=$(this);return $(".properties-table").hide(),n.attr("data-unit")=="metric"?(n.text(n.attr("data-label-metric")),n.attr("data-unit","standard"),$('[data-units="standard"]').show()):(n.text(n.attr("data-label-standard")),n.attr("data-unit","metric"),$('[data-units="metric"]').show()),!1});initSelectCountrySDS()},200)},error:function(){t.empty().append(errorMessage)}})}else{var r=$("#buttonsReplaceWith"),h=$("#buttonsReplace"),u=$("#htmlclass").val();r.find("[data-headerlink]").addClass(u);h.replaceWith(r.html());i=$("#statAreaReplaceWith");f=$("#statAreaReplace");i.find(".statsmall").addClass(u);f.replaceWith(i.html());moveHiddenPlaceholderContent();$(".unitchangebutton").click(function(){var n=$(this);return $(".properties-table").hide(),n.attr("data-unit")=="metric"?(n.text(n.attr("data-label-metric")),n.attr("data-unit","standard"),$('[data-units="standard"]').show()):(n.text(n.attr("data-label-standard")),n.attr("data-unit","metric"),$('[data-units="metric"]').show()),!1});initSelectCountrySDS();t.find("[data-href]").click(function(){var n=$(this),t="Save to favorites",r="Remove from favorites",i=n.html()==t,u=n.attr("data-href").replace("&add=","&add="+i+"&"),f=n.attr("data-processing"),e;return n.html("Processing..."),f!="true"&&(n.attr("data-processing","true"),e=$.ajax({type:"GET",url:u,cache:!1,success:function(){n.attr("data-processing","false");n.html(i?r:t)},error:function(){location.reload()}})),!1})}}function replaceProductResults(n,t){var i=$("input#orderUri").val();n=replaceAll("orderUri",i,n);t.empty().html(n);t.find("[data-href]").click(function(){var n=$(this).attr("data-href"),i=$.ajax({type:"GET",url:n,cache:!1,success:function(n){replaceProductResults(n,t);setTimeout(function(){var t=$("#buttonsReplaceWith"),u=$("#buttonsReplace"),i=$("#htmlclass").val(),n,r;t.find("[data-headerlink]").addClass(i);u.replaceWith(t.html());n=$("#statAreaReplaceWith");r=$("#statAreaReplace");n.find(".statsmall").addClass(i);r.replaceWith(n.html());initSelectCountrySDS(!0)},200)},error:function(){t.empty()}})})}function initSelectCountrySDS(n){$(".msds-link").click(function(){$(".select-country").slideDown(300)});$(".select-country").unbind().on("change",function(){var u=$(this).val(),r=$("#msdsContainer"),s,f,e,t,o,h,c,i;if(u=="default")r.slideUp(200),n&&$(".msdsdescription").slideUp(200);else{if(r.is('[data-lang!="'+u+'"]')){for(r.attr("data-lang",u).empty(),s="",f=null,e=0;e<sdsJson.length;e++){if(t=sdsJson[e],t.country==u&&t.files.length>0){for(i=0;i<t.files.length;i++)o=t.files[i].text,h=o.substr(o.lastIndexOf("_")-2),f!=h&&(f!=null&&r.append("<div class='row'><\/div>"),f=h),c="<div class='columns small-12 medium-6 large-4 sdsBlock'><i class='pdffileicon'><\/i><a target='_blank' href='"+t.files[i].href+"' class='msdsfile' data-headerlink=''>"+o+"<\/a><\/div>",r.append(c);break}if(t.default=="true"&&t.files.length>0)for(i=0;i<t.files.length;i++)s+="<div class='columns small-12 medium-6 large-4 sdsBlock'><i class='pdffileicon'><\/i><a target='_blank' href='"+t.files[i].href+"' class='msdsfile' data-headerlink=''>"+t.files[i].text+"<\/a><\/div>"}r.is(":empty")&&r.append(s)}r.slideDown(200);n&&$(".msdsdescription").slideDown(200)}})}function initSearch(){var n,t;searchRequest&&searchRequest.abort();n=$("#searchresults.content");n.length>0&&(t=n.find("input#searchUri").val(),searchRequest=$.ajax({type:"GET",url:t,cache:!1,success:function(n){replaceProductsResults(n,$(".resultinput"))},error:function(){$(".resultinput").empty()}}))}function initSearchInput(){$('[data-fieldID="searchValueTextbox"]').keyup(function(n){n.keyCode==13&&goToSearchPage($(this))})}function goToSearchPage(n){var r=n.attr("data-uri"),t=n.val(),i;t=t==null||t==undefined?"":t;i=r+t.replace(/;/g,"+").replace(/ /g,"+")+"&returnurl="+window.location.pathname+window.location.search+window.location.hash;window.location=i}function initValidateJobApplication(){var i=$('[data-id="applyValidationErrors"]').val(),r,t,n;if(i!=undefined&&i.length>0)for($("[data-id='applyForm']").find(".error-text").remove(),r=i.split("||"),t=0;t<r.length;t++)n=r[t].split("::"),n.length>1&&n[0]!=undefined&&n[0].length>0&&$("[data-id='applyForm']").find('[data-name="'+n[0]+'"]').addClass("error-state").after('<p class="error-text">'+n[1]+"<\/p>"),$("[data-id='applyForm']").addClass("error-state")}function initValidateJob(){var i=$('[data-id="jobValidationErrors"]').val(),r,t,n;if(i!=undefined&&i.length>0)for($("[data-id='jobForm']").find(".error-text").remove(),r=i.split("||"),t=0;t<r.length;t++)n=r[t].split("::"),n.length>1&&n[0]!=undefined&&n[0].length>0&&$("[data-id='jobForm']").find('[data-name="'+n[0]+'"]').addClass("error-state").after('<p class="error-text">'+n[1]+"<\/p>"),$("[data-id='jobForm']").addClass("error-state")}function initValidateContactForm(){var i=$('[data-id="contactFormErrors"]').val(),r,t,n;if(i!=undefined&&i.length>0)for($("[data-id='contactForm']").find(".error-text").remove(),r=i.split("||"),t=0;t<r.length;t++)n=r[t].split("::"),n.length>1&&n[0]!=undefined&&n[0].length>0&&$("[data-id='contactForm']").find('[data-name="'+n[0]+'"]').addClass("error-state").after('<p class="error-text">'+n[1]+"<\/p>"),$("[data-id='contactForm']").addClass("error-state")}function initValidateOrderForm(){var i=$('[data-id="orderFormErrors"]').val(),r,t,n;if(i!=undefined&&i.length>0)for($("[data-id='orderForm']").find(".error-text").remove(),r=i.split("||"),t=0;t<r.length;t++)n=r[t].split("::"),n.length>1&&n[0]!=undefined&&n[0].length>0&&$("[data-id='orderForm']").find('[data-name="'+n[0]+'"]').addClass("error-state").after('<p class="error-text">'+n[1]+"<\/p>"),$("[data-id='orderForm']").addClass("error-state")}function initFavorities(){var n,t;favoritiesRequest&&favoritiesRequest.abort();n=$("input#uriFavorities");n.length>0&&(t=n.val(),favoritiesRequest=$.ajax({type:"GET",url:t,cache:!1,success:function(n){replaceProductsResults(n,$(".resultinput"))},error:function(){$(".favorites-table").empty()}}))}function initCategoryBannerNavigation(){var i=$(".category-link").parent(),u=$(".category-overview");if(i.length>0){var r=i.filter(".current"),n=r.prev("li"),t=r.next("li");t=t.length==0?i.first():t;n=n.length==0?i.last():n;t.length>0&&createNavigation(t,$(".category-illustration-hover"),!0);n.length>0&&createNavigation(n,$(".category-illustration-hover"),!1)}}function createNavigation(n,t,i){var f=n.find(".category-link").attr("href"),e=n.find(".category-link").attr("name"),r=i?"category-next":"category-prev",u;t.siblings("."+r).remove();u=$("<a class='"+r+"' href='"+f+"' name='"+e+"'><\/a>");t.after(u)}function initCurrentInSidebarMenu(){var n=$("#sidebar"),t=window.location.pathname.toLowerCase(),r=t+window.location.hash.toLowerCase(),i=n.find("a").removeClass("active").filter(function(){var n=$(this).attr("href").toLowerCase();return n===r});i.length>0?i.addClass("active"):n.find("a").filter(function(){var n=$(this).attr("href").toLowerCase();return n===t}).addClass("active")}function initDateFormat(n){$(".parsedate").each(function(){var t=$(this),u=t.text(),i=new Date(u.replace(/-/g,"/")),r;Object.prototype.toString.call(i)==="[object Date]"&&(isNaN(i.getTime())||(n=n!=undefined&&n!=""?n:"MMM d, yyyy",r=$.format.date(i,n),t.after(r)));t.remove()})}function initEditModePlaceholders(){var n=$(".sitecoreEditMode");n.length>0&&$(".scEmptyPlaceholder").each(function(){var t=$(this).attr("sc-placeholder-id"),i=$("#"+t),n=i.attr("key");n.indexOf("/")!=-1&&(n=n.substring(n.lastIndexOf("/")+1,n.length-1));n.indexOf("{")!=-1&&(n=n.substring(0,n.lastIndexOf("{")));n!="hiddenblock"&&($(this).attr("data-hintname",n),$(this).addClass("placeholderHintName"))})}function initPopUpModal(){var i=$(".popUpModal"),r=$(".sitecoreEditMode"),n,t,u;if(i.length>0&&r.length>0)n="popUpModal",t=$(".reveal-modal."+n),t.show();else if(i.length>0&&r.length==0){var n="popUpModal",t=$(".reveal-modal."+n),f=t.height();$(".reveal-modal").not("."+n).stop(!0,!1).animate({top:"-380px",marginTop:"0",opacity:"0"},200,function(){$(this).hide()});u="-190px";t.fadeIn(200).stop(!0,!1).animate({top:"50%",marginTop:u,opacity:"1"},200);$(".reveal-modal-bg").stop(!0,!1).fadeIn(200)}return!1}function initWelcome(){var n=$("#thirdModal"),t;(n.attr("data-ln")==undefined||n.attr("data-ln").indexOf("en")==-1)&&(t=$.cookie("nusil_welcome"),t==undefined&&(n.find("input.welcome").click(function(){var n=$(this),t=n.is(":checked")?7300:1;$.cookie("nusil_welcome",10,{expires:t,path:"/"})}),n.find(".modal-link").click()),$.cookie("nusil_welcome",10,{expires:1,path:"/"}))}function openModal(n,t,i){n=="firstModal"&&((i==undefined||i==null)&&(i="",$("#"+n+" .modal-additionalText").hide()),$("#"+n+" .modal-additionalText").html(i),$("#"+n+" .modal-additionalText").show());var r=$("#"+n);t!=undefined&&t!=""&&r.find('[data-name="ReturnUrl"]').val(t);r.find(".modal-link.hide").click()}function closeModal(n){var t=$("#"+n);t.find(".close-reveal-modal").click()}function initCareers(){var u=$("#corporate"),n,i,r;if(u.length>0&&(n=getUrlHashParameter("job"),n!=null&&n!="undefined")){var f=n.split("_")[0],e=n.split("_")[1],t=$(".careers-row").eq(f);t.length>0&&(i=t.find(".location-column").children(".position-toggle"),r=t.find(".row").eq(e).find(".position-column").children(".position-toggle"),setTimeout(function(){var n=function(n){var t=n.children(".description");t.stop(!0,!1).slideToggle(300)},t=n(i.closest(".position"));i.parent(".location-column").addClass("toggled");scrollSiteTo(r,130);t=n(r.closest(".position"))},1e3))}}function initAllProducts(){var container=$("#products"),grade,app,urlAnchorArray,urlAnchor,gradebox;container.length>0&&(grade=getUrlHashParameter("grade"),app=getUrlHashParameter("application"),window.location.hash!==""&&(urlAnchorArray=window.location.hash.split("&&"),urlAnchorArray.length>1&&urlAnchorArray[1]!=""&&(urlAnchor=window.location.hash.split("&&")[0],$('.product-category[title="'+urlAnchor+'"]').css("display","block"),$('.products-toggle[name="'+urlAnchor+'"]').addClass("product-category-selected"),$(".products-toggle").not(".product-category-selected").addClass("product-category-not-selected"),grade!=null&&grade!="undefined"&&(gradebox=$(".grade").filter("[data-uri='"+grade+"']"),gradebox.length>0&&!gradebox.is(":hidden")&&($(".grade").removeClass("selected-grade").removeClass("non-selected-grade"),gradebox.closest(".grade").addClass("selected-grade"),$(".grade").not(".selected-grade").addClass("non-selected-grade"),app!=null?$("."+urlAnchor.replace("#","")+"-options").fadeIn(0,function(){var appbox=$(".appbox").filter("[data-app='"+app+"']").not(":hidden"),parentCategory;appbox.length>0&&!appbox.is(":hidden")&&(parentCategory=appbox.closest(".product-category").attr("title"),parentCategory=="#engineering"?($(".search").addClass("engineering-results"),$(".search").removeClass("life-sciences-results")):($(".search").addClass("life-sciences-results"),$(".search").removeClass("engineering-results")),$("#results").show(),eval(appbox.find(".appbutton").attr("onclick")))}):eval(gradebox.find(".gradebutton").attr("onclick").replace("$(this)",'gradebox.find(".gradebutton")')))),setTimeout(function(){$("#results").is(":visible")?$(window).scrollTop($("#results").offset().top):$(".engineering-options").is(":visible")?$(window).scrollTop($(".engineering-options").offset().top):$(".life-sciences-options").is(":visible")&&$(window).scrollTop($(".life-sciences-options").offset().top)},1e3))))}function openByButton(n){$(n).parent().parent().find(".button").click()}function showByCategory(n){$(".grade").removeClass("selected-grade").removeClass("non-selected-grade");setSelectedGradesAndApplications(n);clearProductsResult()}function showByGrade(n,t,i){var u=$("[data-grade]"),r,f,e;u.hide();gradeToggle(t);r=u.filter("[data-grade*='"+n+"']");r.length>0?(clearProductsResult(!0),r.each(function(n){var t=$(this),i=convert_roman(parseInt(n)+1);t.find(".roman").empty().text(i+".")}),$(".apptitle").show(),r.show(),setSelectedGradesAndApplications(!0,i,null,!0)):($(".apptitle").hide(),clearProductsResult(),f=$("input#startUri").val(),e=$("input#prefixUri").val(),setSelectedGradesAndApplications(!0,i),getProductsByUri("",f,e),resultsToggle())}function scrollSiteTo(n,t){var i=n.offset();t=isNaN(t)?0:t;$("body, html").animate({scrollTop:i.top-t},600)}function allProductsRetoggle(n){var t=n.not(":hidden");t.length>0&&scrollSiteTo(t,130)}function getProductsByUri(n,t,i,r){productRequest&&productRequest.abort();clearProductsResult();resultsToggle();var e=$(".product-category-selected").attr("data-uri"),f=$(".grade").not(":hidden").filter(".selected-grade").attr("data-uri"),u=t+"?";n!=""&&n!=undefined&&(u+="functionUri="+i+n+"&",$(".appbox").filter("[data-app*="+n+"]").addClass("selected-grade"),$(".appbox").not(".selected-grade").addClass("non-selected-grade"));setSelectedGradesAndApplications(!0,!0,r,!0);u+="industryUri="+i+e;f!=""&&f!=undefined&&(u+="&marketUri="+i+f);productRequest=$.ajax({type:"GET",url:u,cache:!1,success:function(n){replaceProductsResults(n,$(".db-products-result"));initAllProductFilters();initTriggerPostForAllProductPostFilters()},error:function(){$(".db-products-result").empty()}})}function AllProductPost(){var n=$("#products").find("#startUri").val(),t=$("#products .db-products-result").find("select, textarea, input").serialize(),i=$("<div class='ajax-loader'><\/div>");$(".db-products-result-table").empty().append(i);$.ajax({type:"POST",url:n,data:t,cache:!1,success:function(n){responseElement=$("<div>"+n+"<\/div>");replaceProductsResults(responseElement.find(".db-products-result-table").html(),$(".db-products-result-table"))},error:function(){$(".db-products-result-table").empty()}})}function initTriggerPostForAllProductPostFilters(){var t=$("#products"),n=t.find(".db-products-result .filtration"),i=n.find('[data-onchange="true"]').not('[type="hidden"]'),r=n.find('[data-onchange="true"]').filter('[type="hidden"]');i.change(function(){AllProductPost()});r.each(function(){if(blockRangeSliderPost!=!0){var n=$(this);n.focus(function(){var t=n.val();clearTimeout(alls_timer);alls_timer=setTimeout(function(){n.val()!=t&&AllProductPost()},5e3)})}})}function setSelectedGradesAndApplications(n,t,i,r){var u=$(".sga"),f=u.find(".scategory"),s=u.find(".sapplication"),h=u.find(".sgrade"),e="",c=window.location.href,o="";u.hide();n==null||n==undefined?f.empty():(n!=!0?f.text(n):f.text()==""&&f.text($(".products-toggle.product-category-selected").find("h6").text()),e=", ");o=$(".products-toggle.product-category-selected").attr("name")+"&&";t==null||t==undefined?h.empty():(t!=!0&&h.text(e+t),e=", ",o+="grade="+$(".grade.selected-grade").not(":hidden").attr("data-uri")+"&&");i==null||i==undefined?s.empty():(s.text(e+i),o+="application="+$(".appbox.selected-grade").not(":hidden").attr("data-app"));r==!0&&u.show();location.hash=o}function replaceProductsResults(n,t){var u=$("input#productUri").val(),i,r;n=replaceAll("productUri",u,n);i=$("input#orderUri").val();n=replaceAll("orderUri",i,n);r=$("input#editUri").val();n=replaceAll("editUri",r,n);t.empty().html(n);initProductNameCell();resizeProductTable(t)}function resizeHeaderSearchTable(n){var t=18,i=28;n.find(".product-table").each(function(){var r=$(this),u=r.find(".header-cell"),n=!0;$(".sort-select").css("width",i+"%");u.each(function(){n?(n=!1,$(this).css("width",t+"%")):$(this).css("width",$(this).parents(".product-table").find("."+$(this).attr("data-relatedspanclass")).first().width()+"px")})})}function resizeSpanSearchTable(n){var t="cellspanfill-";n.find(".product-table").each(function(){for(var r=$(this),i,n=0;n<10;n++)r.find("."+t+n).length>0&&(i="",r.find("."+t+n).each(function(){i=i+" "+$(this).text()}),r.find("."+t+n).text(i))});resizeHeaderSearchTable(n)}function resizeAdvSearchTable(n){var t=18,i=28,r=54;n.find(".product-table").each(function(){var e=$(this),n=e.find(".header-cell"),u=n.length,f=parseInt(r/(u-1)),o=f+(r-f*(u-1)),s=parseInt(100/(u-1)),h=s+(100-s*(u-1));$(".sort-select").css("width",i+"%");n.css("width",f+"%");n.first().css("width",t+"%");n.last().css("width",o+"%");e.find(".product-row").each(function(){var n=$(this).find(".product-cells").find(".product-cell"),r=n.length;$(this).children(".product-name-cell").css("width",t+"%");$(this).children(".details").css("width",i+"%");n.css("width",f+"%");n.last().css("width",o+"%")})})}function resizeProductTable(n){n.find(".product-table").each(function(){var t=$(this),n=t.find(".header-cell");t.find(".product-row").each(function(){for(var u=$(this),i=u.find(".product-cells").find(".product-cell"),r=u.children().not(":hidden").not(".product-cells"),f=u.children().not(":hidden").index(i.parent()),o=0,e,a,t=0;t<r.length;t++)$(r[t]).attr("style","");for(t=0;t<i.length;t++)$(i[t]).attr("style",""),$(n[f+t]).attr("style","");for(t=0;t<f;t++)$(n[t]).attr("style","");for(t=0;t<r.length;t++)o+=$(r[t]).outerWidth(!0),$(r[t]).css("width",$(r[t]).width(),"important");var v=i.parents(".product-row").first(),c=v.innerWidth(),y=c-o,s=i.length,l=i.length==0?0:$(i[0]).outerWidth(!0)-$(i[0]).width(),h=Math.floor((y-l*s)/s),p=c-((h+l)*s+o);for(t=0;t<i.length;t++)e=h,t==i.length-1&&(e=h+p),$(i[t]).css("width",e,"important"),$(n[f+t]).css("width",e,"important");for(t=0;t<f;t++)a=$(u.children()[t]).width(),$(n[t]).css("width",a,"important")})})}function replaceAll(n,t,i){return i.replace(new RegExp(n,"g"),t)}function clearProductsResult(n){$(".appbox").removeClass("selected-grade").removeClass("non-selected-grade");var t=$("<div class='ajax-loader'><\/div>");n!=!0?$(".db-products-result").empty().append(t):$("#results").fadeOut(400,function(){$(".db-products-result").empty().append(t)})}function initHomePage(){$(".homepage-section").each(function(){var n=$(this),t=n.attr("data-category");n.find("button").addClass(t+"-accent")})}function initGlossary(){var n=$(".content#glossary");n!=null&&setTimeout(function(){var i=n.find("#terms-row").css("opacity",0).css("height","1px"),r=getUrlParameter("term"),u,t;if(r!=null&&(u=$(".term-title"),t=u.filter(function(){return parseTermKey($(this).text().toLowerCase(),!0)==r.toLowerCase()}).first(),t.length>0)){setTimeout(function(){for(var o=t.parent(".term").attr("class"),u=o.split(" "),f=n.find(".term-filter").first(),r=0;r<u.length;r++)if(u[r].indexOf("-term")>-1){var s=u[r].lastIndexOf("-term"),h=u[r].slice(0,s),e=n.find(".term-filter[name="+h+"]");e.length>0&&(f=e);break}f.click();setTimeout(function(){i.css("opacity",1).css("height","auto");setTimeout(function(){scrollSiteTo($(t),90)},100)},200)},100);return}n.find(".term-filter").first().click();setTimeout(function(){i.css("opacity",1).css("height","auto")},200)},100);$("[data-glossary-key]").click(function(n){n.preventDefault();var t=$(this).attr("data-glossary-key"),i=$("input.glossary-uri").val();window.location.href=i+"?term="+t})}function parseTermKey(n,t){var r=t==!0?"/[^a-z0-9s]/gi":"/[^a-z0-9 s]/gi",i=n.toString().toLowerCase().split("(")[0].replace(/[^a-z0-9 \s]/gi,"");return t&&(i=i.replace(/[ \s]/gi,"-")),i}function reparseTermKey(n){return n.toString().toLowerCase().split("(")[0].replace(/[^a-z0-9 \s]/gi,"")}function getUrlParameter(n){for(var u=window.location.search.substring(1),r=u.split("&"),i,t=0;t<r.length;t++)if(i=r[t].split("="),i[0]==n)return i[1];return null}function getUrlHashParameter(n){var t=window.location.hash,i=t.indexOf(n+"=");return i>-1?(t=t.substring(i),t.split("&&")[0].replace(n+"=","")):null}function GetContactCountryOption(n){if(n.indexOf("'")!=-1||n.indexOf("]")!=-1||n.indexOf("\\")!=-1)$(".select-country option").each(function(){if(this.value==n)return this});else return $(".select-country option[value='"+n+"']").length==1?$(".select-country option[value='"+n+"']"):undefined;return undefined}function GetContactsWithCountry(n){if(n.indexOf("'")!=-1||n.indexOf("]")!=-1||n.indexOf("\\")!=-1){$(".contacts-row").find(".contactbox").each(function(){$(this).attr("data-countries").indexOf(n)!=-1&&$(this).addClass("leaveMe")});var t=$(".contacts-row").find(".contactbox").filter(".leaveMe");return t.removeClass(".leaveMe"),t}return $(".contacts-row").find(".contactbox").filter("[data-countries*='"+n+"']")}function initContacts(){if($("#contact").length>0){var n=$(".select-country").attr("data-startCountry");(n==undefined||n==null||n=="")&&$(".select-country").val("");$(".select-product-line").val("");$("[class*='select-state']").val("");setContacts();$(".contacts-row").find(".contactbox").hide();$(".select-country").on("change",function(){var r=$(".contacts-row").find(".contactbox.main"),n=$(this).val(),t,i;$(".second-level-contacts").find(".contactbox").hide();$(".select-product-line").val("");$("[class*='select-state']").val("").hide();r.hide();setContacts();n!==""?(t=$(this).find(".default").val(),i=$(this).find(".canada").val(),n==t?($(".select-product-line").attr("disabled","disabled"),$(".select-state").show()):n==i?($(".select-product-line").attr("disabled","disabled"),$(".select-state-canada").show()):$(".select-product-line").removeAttr("disabled")):($(window).width()>=768&&mapObj.selectObject(null),$(".select-product-line").attr("disabled","disabled"))});$("[class*='select-state']").on("change",function(){var n=$(".contacts-row").find(".contactbox"),t=$(this).val();$(".select-product-line").val("");n.hide();setContacts();t!==""?$(".select-product-line").removeAttr("disabled"):$(".select-product-line").attr("disabled",!0)});$(".select-product-line").on("change",function(){setContacts();var t=$(".contacts-row").find(".contactbox"),u=t.filter(".main").filter(".iscountry"),n=$(".second-level-contacts"),i=n.find(".contactbox").filter(".iscountry"),r=$(this).val();r!==""?n.fadeOut(500,function(){i.hide().filter("[data-line*='"+r+"'], [data-line='']").show();n.fadeIn(500);u.fadeIn(500)}):(t.fadeOut(500),n.fadeOut(500,function(){i.hide()}))})}}function setContacts(){var n=$(".select-country").val(),i=$(".select-state").val(),r=$(".select-state-canada").val(),t=$(".contacts-row").find(".contactbox"),u;t.removeClass("iscountry");try{u=mapCountry!=null?mapCountry:n;$(window).width()>=768&&clickMap(u);mapCountry=null}catch(f){}GetContactsWithCountry(n).filter(".main").length>0?GetContactsWithCountry(n).addClass("iscountry"):GetContactsWithCountry(n).not(".main").length>0?(t.filter(".main").filter("[data-countries='United States']").addClass("iscountry"),GetContactsWithCountry(n).addClass("iscountry")):t.filter("[data-countries*='United States']").filter(".main").addClass("iscountry");i!==""&&t.filter(".iscountry").not(".main").not("[data-states*='"+i+"']").removeClass("iscountry");r!==""&&t.filter(".iscountry").not(".main").not("[data-states*='"+r+"']").removeClass("iscountry")}function clearMapIE(){mapObj.rollOverMapObject(mapObj.selectedObject)}function initMap(n){mapObj=n;AmCharts.getIEVersion()>0&&$("#map").mouseleave(function(){$(window).width()>=768&&clearMapIE()});mapObj.addListener("clickMapObject",function(n){n.mapObject.id!=undefined&&mouseClickMap(n,!0)});setContacts()}function mouseClickMap(n){var t=n.mapObject.title,i;$(".select-country").val()!=t&&(t.indexOf("'")!=-1||t.indexOf("]")!=-1||t.indexOf("\\")!=-1?(i=!1,$(".select-country option").each(function(){if(this.value==t)return i=!0,!1}),i||(mapCountry=t,t=$(".select-country").find(".default").val())):$(".select-country option[value='"+t+"']").length==0&&(mapCountry=t,t=$(".select-country").find(".default").val()),$(".select-country").val(t).change())}function clickMap(n){for(var r=!1,i=mapObj.dataProvider.areas,u,t=0;t<i.length;t++)if(i[t].title==n){u=i[t].id;mapObj.selectObject(mapObj.getObjectById(u));r=!0;break}r==!1&&mapObj.selectObject(null)}function openContactFormPage(n,t){var r=$(".select-product-line").val(),i=$(".select-country").val(),u=$(".select-state-canada").val(),e=GetContactCountryOption(i),f=e!=undefined?e.attr("data-lang"):"en";r=r!=""&&r!=undefined?"&category="+r.toLowerCase():"";i=i!=""&&i!=undefined?"&country="+i.toLowerCase():"";f=f!=""&&f!=undefined?f.toLowerCase():"";u=u!=""&&u!=undefined?"&state="+u.toLowerCase():"";window.location.href=n+"?contactid="+t+"&lang="+f+r+i+u}function validateReq(n){var t=n.val();return t.length<=0||t=="null"||t.trim().length<=0?fieldNotValidOperations(n,"data-val-required"):!0}function validateReqIfChecked(n){if($("#"+n.attr("data-required-ifchecked")).is(":checked")){var t=n.val();if(t.length<=0||t=="null"||t.trim().length<=0)return fieldNotValidOperations(n,"data-required-ifchecked-message")}return!0}function validateReqIfHasValue(n){return $(n.attr("data-ifhasvalue")).each(function(){if($(this).val()!=undefined&&$(this).val().length>0){var t=n.val();if(t.length<=0||t=="null"||t.trim().length<=0)return fieldNotValidOperations(n,"data-val-required-ifhasvalue")}}),!0}function validateNum(n){var t=n.val(),i=numRegex;return i.test(t)?!0:fieldNotValidOperations(n,null)}function validateNumberGraterThen(n){var t=parseFloat(n.val()),i=parseFloat(n.attr("data-val-range-min"));return isNaN(t)||t<i?fieldNotValidOperations(n,"data-val-range"):!0}function validateNumberLessThen(n){var t=parseFloat(n.val()),i=parseFloat(n.attr("data-val-range-max"));return isNaN(t)||t>i?fieldNotValidOperations(n,"data-val-range"):!0}function validateDateLessThen(n){try{var t=Date.parse(n.val()),i=Date.parse(n.attr("data-val-daterange-max"));if(t>i)return fieldNotValidOperations(n,"data-val-daterange-max-message")}catch(r){return!1}return!0}function validateDateGraterThen(n){try{var t=Date.parse(n.val()),i=Date.parse(n.attr("data-val-daterange-min"));if(t<i)return fieldNotValidOperations(n,"data-val-daterange-min-message")}catch(r){return!1}return!0}function validateLength(n){var t=n.val(),i=parseInt(n.attr("data-val-length-max"));return t.length>i?fieldNotValidOperations(n,"data-val-length"):!0}function validateLengthLessThan(n){var t=n.val(),i=parseInt(n.attr("data-val-length-min"));return t.length<i?fieldNotValidOperations(n,"data-val-length"):!0}function validateRegex(n){var t=n.val(),i=new RegExp(n.attr("data-val-regex-pattern"));return i.test(t)?!0:fieldNotValidOperations(n,"data-val-regex")}function validatemustBeEqualTo(n){var t=n.val(),i=$("#"+n.attr("data-mustBeEqualTo")).val();return t===i?fieldNotValidOperations(n,"data-mustBeEqualToMessage"):!0}function fieldNotValidOperations(n){return n.addClass("error"),!1}function fieldNotValidAddWarningSign(n,t){var i=n.parent().find('[data-error-id="'+n.attr("id")+'"]'),r;i.length>0?i.attr("data-original-title",i.attr("data-original-title")+"; "+t):(r='<span data-error-id="'+n.attr("id")+'" class="add-on" data-toggle="tooltip" data-placement="top" data-original-title="'+t+'"><i class="icon-warning-sign"><\/i><\/span>',n.after(r),n.next().tooltip())}function validate(n){var i=n.find("input.req, input.num, input.pos, input.regex, textarea.req, textarea.num, textarea.pos, textarea.regex, select.req, select.num, select.pos, [data-val-regex-pattern], [data-val-required], [data-required-ifchecked], [data-val-required-ifhasvalue], [data-val-length-max], [data-val-range-max], [data-val-range-min], [data-val-daterange-max], [data-val-daterange-min], [data-personalcode-validation-url], [data-mustBeEqualTo]").not(":disabled"),t=0;return $(i).each(function(){t=validateSingleField($(this))?t:t+1}),t>0?!1:!0}function validateSingleField(n){var t=0;return n.removeClass("error"),n.attr("title",""),n.parent().find('[data-error-id="'+n.attr("id")+'"]').remove(),(n.hasClass("num")||n.attr("data-val-number")!=undefined)&&(t=validateNum(n)?t:t+1),n.attr("data-val-range-max")==undefined||n.attr("data-val-range-max")==""||isNaN(parseFloat(n.attr("data-val-range-max")))||(t=validateNumberLessThen(n)?t:t+1),n.attr("data-val-range-min")==undefined||n.attr("data-val-range-min")==""||isNaN(parseFloat(n.attr("data-val-range-min")))||(t=validateNumberGraterThen(n)?t:t+1),n.attr("data-val-daterange-max")!=undefined&&n.attr("data-val-daterange-max")!=""&&(t=validateDateLessThen(n)?t:t+1),n.attr("data-val-daterange-min")!=undefined&&n.attr("data-val-daterange-min")!=""&&(t=validateDateGraterThen(n)?t:t+1),n.attr("data-val-regex-pattern")!=undefined&&n.attr("data-val-regex-pattern")!=""&&(t=validateRegex(n)?t:t+1),n.attr("data-val-length-min")==undefined||n.attr("data-val-length-min")==""||isNaN(parseInt(n.attr("data-val-length-min")))||(t=validateLengthLessThan(n)?t:t+1),n.attr("data-val-length-max")==undefined||n.attr("data-val-length-max")==""||isNaN(parseInt(n.attr("data-val-length-max")))||(t=validateLength(n)?t:t+1),n.attr("data-mustBeEqualTo")!=undefined&&n.attr("data-mustBeEqualTo")!=""&&(t=validatemustBeEqualTo(n)?t:t+1),(n.hasClass("req")||n.attr("data-val-required")!=undefined)&&(t=validateReq(n)?t:t+1),n.attr("data-required-ifchecked")!=undefined&&n.attr("data-required-ifchecked")!=""&&(t=validateReqIfChecked(n)?t:t+1),n.attr("data-val-required-ifhasvalue")!=undefined&&n.attr("data-val-required-ifhasvalue")!=""&&(t=validateReqIfHasValue(n)?t:t+1),t>0?!1:!0}function submitForm(n,t){$("#"+n).attr("action",t);$("#"+n).removeAttr("runat");$("#"+n).submit()}function getQueryParams(n){n=n.split("+").join(" ");for(var i={},t,r=/[?&]?([^=]+)=([^&]*)/g;t=r.exec(n);)i[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return i}function submitForm(n,t,i){var r,u;try{r=window.location.pathname;r.indexOf("contactform",r.length-11)!==-1&&(u=getQueryParams(document.location.search),(enableGoogleAnalitics!=undefined&&enableGoogleAnalitics||window.location.hostname=="nusil.com")&&_gaq.push(["_trackEvent","Contact Form","Send Contact Form","Send Contact Form To "+u.country+", "+u.category]))}catch(f){}$("#"+n).attr("action",t);$("#"+n).removeAttr("runat");(i="1")?$("#"+n).attr("enctype","multipart/form-data"):$("#"+n).removeAttr("runat");$("#"+n).submit()}function disableForm(n,t){n.find("input, select, textarea").prop("disabled",!0);t==!0&&n.hide()}function enableForm(n,t){n.find("input, select, textarea").prop("disabled",!1);t==!0&&n.show()}function serializeFormToJSON(n){var t={};return $.each(n.find("select, textarea, input").not(":disabled"),function(){t[this.name]=this.value}),t}function isNullOrEmpty(n){return n==NaN||n==undefined||n==""||n==null}function convert_roman(n){for(var i=["1000000","900000","500000","400000","100000","90000","50000","40000","10000","9000","5000","4000","1000","900","500","400","100","90","50","40","10","9","5","4","1"],f=["<span style='text-decoration: overline'>M<\/span>","<span style='text-decoration: overline'>CM<\/span>","<span style='text-decoration: overline'>D<\/span>","<span style='text-decoration: overline'>CD<\/span>","<span style='text-decoration: overline'>C<\/span>","<span style='text-decoration: overline'>XC<\/span>","<span style='text-decoration: overline'>L<\/span>","<span style='text-decoration: overline'>XL<\/span>","<span style='text-decoration: overline'>X<\/span>","<span style='text-decoration: overline'>IX<\/span>","<span style='text-decoration: overline'>V<\/span>","<span style='text-decoration: overline'>IV<\/span>","M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],u="",r=n,t;r>0;)for(t=0;t<i.length;t++)if(r>=i[t]){u+=f[t];r-=i[t];break}return u}function updateURLParameter(n,t,r){var o=null,l="",f=n.split("?"),h=f[0],s=f[1],c="",u,e,a;if(s)for(u=s.split("#"),e=u[0],o=u[1],o&&(s=e),f=s.split("&"),i=0;i<f.length;i++)f[i].split("=")[0]!=t&&(l+=c+f[i],c="&");else u=h.split("#"),e=u[0],o=u[1],e&&(h=e);return o&&(r+="#"+o),a=c+""+t+"="+r,h+"?"+l+a}function advancedSearch_setColors(){$(".products-toggle").each(function(){var n=$(this).attr("name");$("#content-row").removeClass(n)});$("#content-row").addClass($(".products-toggle.selected").attr("name"))}function initAdvancedSearch(){initAdvSearch_click();var n=$("#advanced-search");n.length>0&&(n.find(".products-toggle").click(function(){advancedSearch_setColors()}),n.find(".adv-search-findproduct").click(function(){var t=n.find("#filtration-column").length==0||n.find("#filtration-column").attr("data-reload")=="true";return advancedSearch(t,!t),advancedSearch_setColors(),!1}),initAdvancedSearchFromHash())}function advancedSearch_sort(n){var t=n.find(".product-table");t.each(function(){var n=$(this),i=n.find(".header-row"),t=n.find(".product-row"),r=n.find("select.sort-select");r.change(function(){var c=r.find("option:selected").val(),u=[],e,f,h;if(t.length>0){var o=!0,s=i.find(".header-cell"),n=s.filter("[data-header='"+c+"']");for(n=s.index(n),t.each(function(){var i=null,t;i=n>0?$(this).find(".product-cells").children(".product-cell").eq(n-1):$(this).children(".product-cell").eq(n);t=i.attr("data-sort");(typeof t==typeof undefined||t==!1)&&(t=i.data("value")===""?i.text():i.data("value"));isNaN(t)&&(o=!1);u.push(t)}),o?u.sort(function(n,t){return n-t}):u.sort(),e=$("<div><\/div>"),f=0;f<u.length;f++)h=t.filter(function(){var t=null,i;return t=n>0?$(this).find(".product-cells").children(".product-cell").eq(n-1):$(this).children(".product-cell").eq(n),i=t.attr("data-sort"),(typeof i==typeof undefined||i==!1)&&(i=t.data("value")==""?t.text():t.data("value")),i===u[f]}),e.append(h.remove());i.after(e.children().remove())}})})}function advancedSearch_filtersRefreash(n){var t=n.find("#filtration-column"),i=t.find('[data-onchange="true"]').not('[type="hidden"]'),r=t.find('[data-onchange="true"]').filter('[type="hidden"]');i.change(function(){advancedSearch_findProduct()});r.each(function(){var n=$(this);n.focus(function(){var t=n.val();clearTimeout(advs_timer);advs_timer=setTimeout(function(){n.val()!=t&&advancedSearch_findProduct()},5e3)})})}function advancedSearch_findProduct(){clearTimeout(advs_timer);$("#advanced-search").find(".adv-search-findproduct").click()}function initAdvancedSearchFromHash(){var r=window.location.hash;if(r.length){var n=r.split("?"),t=n[0].replace("#",""),i=n.length>1?n[1].replace("segment=",""):"",u=n.length>2?n[2].replace("subcat=",""):"";$(".products-toggle").not('.products-toggle[name="'+t+'"]').addClass("grayed");$('.products-toggle[name="'+t+'"]').addClass("selected");$(".search-submit").addClass(t+"-accent");$("."+t+"-select").addClass("visible");advancedSearch_setColors();i!=""&&i!=undefined&&($("."+t+"-select").val(i).change(),setTimeout(function(){disableUrlWrite=!0;$(".search-submit").addClass("visible").click();disableUrlWrite=!1;var n=$("html").hasClass("lt-ie9");n&&$(".search-submit").show()},1e3))}}function advancedSearch(n,t){var o=$('<div class="loaderbox advsearch"><div class="ajax-loader"><\/div><\/div>'),i=$("#advanced-search"),u;if(i.length>0){t?i.find("#results-column").empty().addClass("visible").append(o):$(".firstLoadLoaderBox").show();i.find("#results-column").css("border-left","none");var r=i.find("#advancedSearchUri").val(),f=i.find(".adv-search-category.selected").attr("data-uri"),e=i.find(".adv-search-subcategory.visible").val();r=r+"?cat="+f+"&subCat="+e+"&loadFilter="+n;u=null;t&&(u=i.find("select, textarea, input").serialize());$.ajax({type:t?"POST":"GET",url:r,data:u,cache:!1,success:function(t){var u,r,h,c,o,s;try{u="";r="";$("[data-filterLabel]:visible").each(function(){var n;u=u!=""?u+"-":u;r=r!=""?r+"-":r;u=u+$(this).attr("data-filterLabel");$(this).attr("data-type")=="FilterRangeSlider"?(n=$(this).find("select").val(),n=n==undefined||n==null||n==""?"":n+"_",r=n+r+$(this).find("[data-minvalue]").val()+"_"+$(this).find("[data-maxvalue]").val()):$(this).attr("data-type")=="FilterSingleSelectRadio"?r=r+$(this).find('[type="radio"]:checked').val():$(this).attr("data-type")=="FilterRangeText"?(n=$(this).find("select").val(),n=n==undefined||n==null||n==""?"":n+"_",r=n+r+$(this).find('[type="text"]:eq(0)').val()+"_"+$(this).find('[type="text"]:eq(1)').val()):$(this).attr("data-type")=="FilterMultiSelectCheckbox"&&$(this).find('[type="checkbox"]:checked').each(function(){r=r+$(this).parent().find('[type="hidden"]').val()+"_"})});u=u!=""?u:"default";r=r!=""?r:"default";(enableGoogleAnalitics!=undefined&&enableGoogleAnalitics||window.location.hostname=="nusil.com")&&(_gaq.push(["_setCustomVar",1,u,r,3]),_gaq.push(["_trackPageview","productsearch/?cat="+f+"&subCat="+e+"&filter="+u+"&value="+r]))}catch(l){}h=$("input#productUri").val();t=replaceAll("productUri",h,t);c=$("input#orderUri").val();t=replaceAll("orderUri",c,t);t=$("<div>"+t+"<\/div>");lfilter=t.find("#filtration-column");lresult=t.find("#results-column");$(".firstLoadLoaderBox").hide();n==!0&&(o=i.find("#filtration-column"),o.length>0?o.replaceWith(lfilter):i.find("#content-row").append(lfilter));s=i.find("#results-column");s.length>0?s.replaceWith(lresult):i.find("#content-row").append(lresult);n==!0&&(i.find("#filtration-column").attr("data-reload","false"),o.find(".loaderbox").remove(),i.find("#results-column").css("border-left","1px solid #eee"),initAdvSearch_filter(i),advancedSearch_filtersRefreash(i));initAdvSearch_results(i);resizeSpanSearchTable(i);i.find(".category-wrap .checkbox:checked").change();advancedSearch_sort(i);window.scrollTo(0,0)},error:function(){}})}}function stringToDate(n){var t,i;return(t=n.match(/^(\d{4,4})-(\d{2,2})-(\d{2,2}) (\d{2,2}):(\d{2,2}).*$/))?new Date(t[1],t[2]-1,t[3],t[4],t[5]):(t=n.match(/^(\d{4,4})-(\d{2,2})-(\d{2,2})$/))?new Date(t[1],t[2]-1,t[3]):(t=n.match(/^(\d{2,2})-(\d{2,2})-(\d{4,4}) (\d{2,2}):(\d{2,2}).*$/))?new Date(t[3],t[2]-1,t[1],t[4],t[5]):(t=n.match(/^(\d{2,2})-(\d{2,2})-(\d{4,4})$/))?new Date(t[3],t[2]-1,t[1]):(t=n.match(/^(\d{2,2})\/(\d{2,2})\/(\d{4,4}) (\d{2,2}):(\d{2,2}).*$/))?new Date(t[3],t[1]-1,t[2],t[4],t[5]):(t=n.match(/^(\d{2,2})\/(\d{2,2})\/(\d{4,4})$/))?new Date(t[3],t[1]-1,t[2]):(t=n.match(/^(\d{4,4})\/(\d{2,2})\/(\d{2,2}) (\d{2,2}):(\d{2,2}).*$/))?new Date(t[2],t[1]-1,t[3],t[4],t[5]):(t=n.match(/^(\d{4,4})\/(\d{2,2})\/(\d{2,2})$/))?new Date(t[2],t[1]-1,t[3]):(t=n.match(/^(\d{2,2}):(\d{2,2}).*$/))?(i=new Date,i.setHours(t[1]),i.setMinutes(t[2]),i):null}function getImageBrightness(n,t){var i=document.createElement("img"),r;i.src=n;i.style.display="none";document.body.appendChild(i);r=0;i.onload=function(){var u=document.createElement("canvas"),f,e,i,o,s,h,c,n,l,a;for(u.width=this.width,u.height=this.height,f=u.getContext("2d"),f.drawImage(this,0,0),e=f.getImageData(u.width-400,0,400,80),i=e.data,n=0,l=i.length;n<l;n+=4)o=i[n],s=i[n+1],h=i[n+2],c=Math.floor((o+s+h)/3),r+=c;a=Math.floor(r/32e3);t(a)}}function colorToggle(){var n=$(".wide-head, .slim-head, .content-library-page__hero-image, .content-library-page__hero-vimeo-video");try{n.length>0&&$("#navToggle").length>0&&($(document).scrollTop()+30<=n.first().outerHeight(!0)?($("#nav #navToggle").addClass(menuColor),$("#nav .search-bar .search").addClass(menuColor),$("#nav #home").addClass(logoColor),$("#nav #avantorLogo").addClass(logoColor),$("#nav .avantor-modal-trigger-icon").addClass(logoColor)):($("#nav #navToggle").removeClass(menuColor),$("#nav .search-bar .search").removeClass(menuColor),$("#nav #home").removeClass(logoColor),$("#nav #avantorLogo").removeClass(logoColor),$("#nav .avantor-modal-trigger-icon").removeClass(logoColor)))}catch(t){}}function initAdvSearch_click(){$(".search-submit").click(function(){$("#results-column").removeClass("visible");disableUrlWrite!=!0&&(window.location.hash=$(".products-toggle.selected").attr("name")+"?segment="+$("select.visible").val())})}function initAdvSearch_filter(n){var r,u,t,i;setTimeout(function(){var t,n,i;$(".header-container").addClass("fixed");$("html, body").animate({scrollTop:0},300);t=$(".header-container").height();$("#content-row").removeClass("engineering").removeClass("life-sciences").addClass($(".products-toggle.selected").attr("name")).css("margin-top",t);n=0;i=setInterval(function(){n++;var r=$(".header-container").height();t!=r&&($("#content-row").css("margin-top",r),n=30);n>=30&&clearInterval(i)},25);$("#filtration-column").addClass("visible")},500);n.find(".slider").each(function(){var t=parseFloat($(this).attr("data-min")),i=parseFloat($(this).attr("data-max")),r=parseFloat($(this).attr("data-step")),u={animate:"fast",disabled:$(this).closest(".range").hasClass("draggable-options"),range:!0,rangeDrag:!0,min:t,max:i,values:[t,i],step:r,slide:function(n,t){var i=t.values[0],r=t.values[1],u,f;$(this).attr("data-max").indexOf(".")!=-1&&(u=$(this).attr("data-max").length-($(this).attr("data-max").indexOf(".")+1),r=r.toFixed(u));$(this).attr("data-min").indexOf(".")!=-1&&(f=$(this).attr("data-min").length-($(this).attr("data-min").indexOf(".")+1),i=i.toFixed(f));$(this).closest(".range").find(".values").text(i+" - "+r+" "+$(this).attr("data-unit"));$(this).closest(".range").find("[data-minvalue]").val(t.values[0]).trigger("change");$(this).closest(".range").find("[data-maxvalue]").val(t.values[1]).trigger("change")},change:function(){blockRangeSliderPost!=!0&&advancedSearch_findProduct()}},n=$(this).dragslider(u);n.dragslider("option","slide").call(n,null,{values:n.dragslider("values")});$(this).closest(".range").find("select").on("change",function(){$(this).val()=="default"||$(this).val()==""||$(this).val()==undefined?(blockRangeSliderPost=!0,n.dragslider("values",0,0),n.dragslider("values",1,parseFloat(n.attr("data-max"))),n.prev(".values").text(n.attr("data-min")+" - "+n.attr("data-max")+" "+n.attr("data-unit")),n.dragslider("option","disabled",!0),$(this).parents(".range").find("[data-edited]").val(""),$(this).parents(".range").find("[data-minvalue]").val(n.attr("data-min")),$(this).parents(".range").find("[data-maxvalue]").val(n.attr("data-max")),blockRangeSliderPost=!1):n.dragslider("option","disabled",!1)})});n.find('[data-onchange="true"]').change(function(){($(this).val()=="default"||$(this).val()==""||$(this).val()==undefined)&&$(this).closest(".range").hasClass("draggable-options")&&$(this).prop("type")=="select-one"||$(this).closest(".range").find("[data-edited]").val("true")});$(window).width()>768&&$("#multi-filter-select").select2();$("#multi-filter-select").on("change",function(){$.each($("#multi-filter-select").select2("val"),function(n,t){$('.range[name="'+t+'"]').slideDown(400)})});$("#multi-filter-select").on("select2-removed",function(n){$('.range[name="'+n.val+'"]').slideUp(400)});$("#s2id_autogen1").attr("placeholder","Add Filter");$(".range .close-button").on("click",function(){var r=!1,n,u,t,i;$(this).closest(".range").find("[data-edited]").val()=="true"&&(r=!0);$(this).closest(".range").slideUp(400);$(this).closest(".range").find("[data-edited]").val("");$(this).closest(".range").find('input[type="text"]').val("");$(this).closest(".range").find("select").val("");$(this).closest(".range").find("#multi-filter-select").select2("val","");$(this).closest(".range").find('.checkbox, input[type="radio"]').removeAttr("checked");n=$(this).closest(".range").find(".ui-slider");n&&(blockRangeSliderPost=!0,n.dragslider("values",0,0),n.dragslider("values",1,parseFloat(n.attr("data-max"))),n.prev(".values").text(n.attr("data-min")+" - "+n.attr("data-max")+" "+n.attr("data-unit")),blockRangeSliderPost=!1);u=$(this).closest(".range").attr("name");$(".select2-container").length!=0&&(t=$("#multi-filter-select").select2("val"),i=t.indexOf(u),i>-1&&t.splice(i,1),$("#multi-filter-select").select2("val",t));r&&advancedSearch_findProduct()});if($("#filtration-column .reset").unbind("click").click(function(){var n=$(this).closest(".range"),t,i;$(this).hasClass("srotReset")?($("#filtration-column").find(".range.category-wrap").find('.checkbox, input[type="radio"]').not(".category-default").removeAttr("checked"),n.find(".category-default").length!==0&&(n.find(".category-default").prop("checked",!0),$(".product-category").slideDown(500).promise().done(function(){$(this).css("height","auto")}))):(t=!1,$("#filtration-column").find("[data-edited]").each(function(){$(this).val()=="true"&&(t=!0)}),$("#filtration-column").find("[data-edited]").val(""),$("#filtration-column").find('input[type="text"]').val(""),$("#filtration-column").find("select").val(""),$("#filtration-column").find("#multi-filter-select").select2("val",""),$("#filtration-column").find(".range.checkbox").find('.checkbox, input[type="radio"]').removeAttr("checked"),i=$("#filtration-column").find(".ui-slider").each(function(){blockRangeSliderPost=!0;$(this).dragslider("values",0,0);$(this).dragslider("values",1,parseFloat($(this).attr("data-max")));$(this).prev(".values").text($(this).attr("data-min")+" - "+$(this).attr("data-max")+" "+$(this).attr("data-unit"));blockRangeSliderPost=!1}),n.find("#multi-filter-select").length!==0&&$(".range").not(".category-wrap").not(".filter-selection").slideUp(),t&&advancedSearch_findProduct())}),n.find('.category-wrap .checkbox[value="default"]').change(function(){n.find(".category-wrap .checkbox").not('.checkbox[value="default"]').removeAttr("checked");n.find(".product-category").slideDown(500).promise().done(function(){$(this).css("height","auto")});var t=$(".range.category-wrap").find('[data-setHidden="false"]').length>0;t?$(".product-category").length!=0&&$(".advSearchEmptyResult").hide():$(".advSearchEmptyResult").show();disableUrlWrite!=!0&&(window.location.hash=$(".products-toggle.selected").attr("name")+"?segment="+$("select.visible").val())}),n.find(".category-wrap h5").click(function(){$(window).width()<=768&&n.find(".category-wrap .checkboxes-wrap, .category-wrap h5 .reset, .category-wrap h5 .expand").slideToggle()}),n.find(".category-wrap .checkbox").not('.checkbox[value="default"]').change(function(){var u=!1,i=[],r,f,t;if(n.find(".category-wrap .checkbox").not('.checkbox[value="default"]').each(function(){$(this).prop("checked")==!0&&(u=!0,i.push($(this).val()))}),u?$('.category-wrap .checkbox[value="default"]').removeAttr("checked"):$('.category-wrap .checkbox[value="default"]').prop("checked",!0),i=="")$(".product-category").slideDown(500).promise().done(function(){$(this).css("height","auto")});else for($(".product-category").slideUp(500),r=0;r<i.length;r++)$('.product-category[name="'+i[r]+'"]').stop(!0,!1).slideDown(500).promise().done(function(){$(this).css("height","auto")});f=$(".range.category-wrap").find('[data-setHidden="false"]').find(".checkbox:checked").length>0;f?$(".product-category").length!=0&&$(".advSearchEmptyResult").hide():$(".advSearchEmptyResult").show();t="";n.find(".category-wrap .checkbox").not('.checkbox[value="default"]').each(function(){$(this).is(":checked")&&(t===""?t="?subcat=":t+=",",t+=$(this).attr("id"))});disableUrlWrite!=!0&&(window.location.hash=$(".products-toggle.selected").attr("name")+"?segment="+$("select.visible").val()+t)}),n.find('.checkbox[value="default"]').change(function(){$(this).prop("checked")==!0?$(".category-wrap .checkbox").not('.checkbox[value="default"]').removeAttr("checked"):$(this).prop("checked",!0)}),r=window.location.hash,r.length&&(u=r.split("?"),t=u.length>2?u[2].replace("subcat=",""):"",t!=""&&t!=undefined))for(n.find(".category-wrap .checkbox").removeAttr("checked"),t=t.split(","),i=0;i<t.length;i++)$("#filtration-column .category-wrap").find("#"+t[i]).click()}function initAdvSearch_results(n){var t=200,i;setTimeout(function(){n.find("#results-column").find(".loaderbox").slideUp(500);n.find("#results-column").addClass("visible")},t);$(window).width()>768&&$(".row-special .details").unbind("click").click(function(n){n.preventDefault();$(this).toggleClass("toggled").closest(".row-special").next(".product-special").slideToggle(200)});$(window).width()<=768&&$(".details a").each(function(){$(this).attr("href",$(this).attr("data-href"))});$('.product-category[name="foams"] .sort-select').on("change",function(){alert("sort logic TODO")});$(".product-name-cell").on("click",function(n){$(window).width()<=768&&(n.preventDefault(),$(this).find("h6").toggleClass("toggled").closest(".product-row").find(".product-cells, .mobile-labels, .shaded-cell").not(".product-name-cell").slideToggle(),$("html, body").animate({scrollTop:$(this).closest(".product-row").offset().top-59},500))});if($(".mobile-status-bar").click(function(){$(this).toggleClass("toggled");$("#header-column").toggleClass("toggled");$("body").toggleClass("modal-open").animate({scrollTop:0},400)}),$("body").removeClass("modal-open"),$(".search-header, .search-intro").slideUp(t),$("#header-row").addClass("mobile-hidden").animate({paddingTop:"78px"},t).find("#header-column").removeClass("toggled"),$(".mobile-status-bar").removeClass("toggled"),$("#category-column").addClass("right-aligned"),$(".mobile-status-bar .sector").html($(".products-toggle.selected").html()),$(".mobile-status-bar .category").html($("#header-column select.visible option:selected").text()),$(".filter-toggle").click(function(){$("#filtration-column").addClass("toggled")}),$(".mobile-filter-header").click(function(){$("body").scrollTop(0);$("#filtration-column").removeClass("toggled")}),$(window).width()<=768&&$(".select2-container").length==0){$("#multi-filter-select").val("default");$('#multi-filter-select option[value="default"]').prop("disabled",!1);$("#multi-filter-select").removeAttr("multiple").on("change",function(){var n=$("#multi-filter-select").val();$('.range[name="'+n+'"]').slideDown(400);$("#filtration-column").animate({scrollTop:$('.range[name="'+n+'"]').offset().top},600);$("#multi-filter-select").val("default")})}$(".range.category-wrap").find(".checkbox-item").attr("data-setHidden","true").hide();$(".range.category-wrap").find("#default-ls").attr("data-setHidden","null").parents(".checkbox-item").show();n.find(".product-category").each(function(){var n=$(this).attr("name");name!=undefined&&$(".range.category-wrap").find("#"+n).parents(".checkbox-item").attr("data-setHidden","false").show()});i=$(".range.category-wrap").find('[data-setHidden="false"]').find(".checkbox:checked").length>0;i?$(".product-category").length!=0&&$(".advSearchEmptyResult").hide():$(".advSearchEmptyResult").show()}function initProductNameCell(){$(".product-name-cell").on("click",function(n){n.preventDefault();$(window).width()<=768&&($(this).find("h6").toggleClass("toggled").closest(".product-row").find(".product-cells, .mobile-labels, .shaded-cell").not(".product-name-cell").slideToggle(),$("html, body").animate({scrollTop:$(this).closest(".product-row").offset().top-59},500))})}function resultsToggle(){$("#results").fadeIn(400);var n=$(".product-category-selected").attr("title");n=="engineering"?($(".search").addClass("engineering-results"),$(".search").removeClass("life-sciences-results")):($(".search").addClass("life-sciences-results"),$(".search").removeClass("engineering-results"))}function gradeToggle(n){tt=n;$(".grade").removeClass("selected-grade").removeClass("non-selected-grade");n.parents(".grade").addClass("selected-grade");$(".grade").not(".selected-grade").addClass("non-selected-grade");n.hasClass("life-sciences-accent")&&$(".life-sciences-options").fadeIn(300,function(){$(window).width()>767?$("html, body").animate({scrollTop:$(".life-sciences-options").offset().top-90},600):$("html, body").animate({scrollTop:$(".life-sciences-options h4").offset().top-84},600)})}function resetAllProductFilter(n){try{n.find("[data-edited]").val("");n.find('input[type="text"]').val("");n.find("select").val("");n.find("#multi-filter-select").select2("val","");n.find('.checkbox, input[type="radio"]').removeAttr("checked");var t=n.find(".ui-slider");t&&(blockRangeSliderPost=!0,t.dragslider("values",0,0),t.dragslider("values",1,parseInt(t.attr("data-max"))),t.prev(".values").text("0 - "+parseInt(t.attr("data-max"))),blockRangeSliderPost=!1)}catch(i){}}function initAllProductFilters(){$(".property").on("click",function(){var n,t;$(this).hasClass("property-selected")?($(this).removeClass("property-selected"),n=$(this).attr("name"),$('.range[name="'+n+'"]').fadeOut(250),t=!1,$('.range[name="'+n+'"]').find("[data-edited]").val()=="true"&&(t=!0),resetAllProductFilter($('.range[name="'+n+'"]')),t&&AllProductPost()):($(this).addClass("property-selected"),n=$(this).attr("name"),$('.range[name="'+n+'"]').fadeIn(250))});$("#filtration-column .reset").unbind("click").click(function(){var n=$(this).closest(".range");n.find("[data-edited]").val("")});try{$(".slider").each(function(){var t=parseFloat($(this).attr("data-min")),i=parseFloat($(this).attr("data-max")),r=parseFloat($(this).attr("data-step")),u={animate:"fast",range:!0,rangeDrag:!0,min:t,max:i,values:[t,i],step:r,slide:function(n,t){$(this).closest(".range").find(".values").text(t.values[0]+" - "+t.values[1]);$(this).closest(".range").find("[data-minvalue]").val(t.values[0]).trigger("change");$(this).closest(".range").find("[data-maxvalue]").val(t.values[1]).trigger("change")},change:function(){blockRangeSliderPost!=!0&&AllProductPost()}},n=$(this).dragslider(u);n.dragslider("option","slide").call(n,null,{values:n.dragslider("values")})});$('[data-onchange="true"]').change(function(){$(this).closest(".range").find("[data-edited]").val("true")})}catch(n){}$(".range .close-button").on("click",function(){var n=!1;$(this).closest(".range").find("[data-edited]").val()=="true"&&(n=!0);resetAllProductFilter($(this).closest(".range"));$(this).closest(".range").fadeOut(250);$('.button.property[name="'+$(this).closest(".range").attr("name")+'"]').removeClass("property-selected");n&&AllProductPost()})}var DateFormat={},overlaps,alls_timer,mapCountry,advs_timer,disableUrlWrite,AmCharts,tt,blockRangeSliderPost;(function(n){var t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],u=["January","February","March","April","May","June","July","August","September","October","November","December"],f={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"},e=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.?\d{0,3}[Z\-+]?(\d{2}:?\d{2})?/;n.format=function(){function h(n){return t[parseInt(n,10)]||n}function c(n){return i[parseInt(n,10)]||n}function l(n){var t=parseInt(n,10)-1;return r[t]||n}function a(n){var t=parseInt(n,10)-1;return u[t]||n}function s(n){return f[n]||n}function n(n){var t=n,u,f,e,o="",r,i;return(t.indexOf(".")!==-1&&(r=t.split("."),t=r[0],o=r[1]),i=t.split(":"),i.length===3)?(u=i[0],f=i[1],e=i[2].replace(/\s.+/,"").replace(/[a-z]/gi,""),t=t.replace(/\s.+/,"").replace(/[a-z]/gi,""),{time:t,hour:u,minute:f,second:e,millis:o}):{time:"",hour:"",minute:"",second:"",millis:""}}function o(n,t){for(var r=t-String(n).length,i=0;i<r;i++)n="0"+n;return n}return{parseDate:function(t){var i={date:null,year:null,month:null,dayOfMonth:null,dayOfWeek:null,time:null};if(typeof t=="number")return this.parseDate(new Date(t));if(typeof t.getFullYear=="function")i.year=String(t.getFullYear()),i.month=String(t.getMonth()+1),i.dayOfMonth=String(t.getDate()),i.time=n(t.toTimeString());else if(t.search(e)!=-1)values=t.split(/[T\+-]/),i.year=values[0],i.month=values[1],i.dayOfMonth=values[2],i.time=n(values[3].split(".")[0]);else{values=t.split(" ");values.length===6&&isNaN(values[5])&&(values[values.length]="()");switch(values.length){case 6:i.year=values[5];i.month=s(values[1]);i.dayOfMonth=values[2];i.time=n(values[3]);break;case 2:subValues=values[0].split("-");i.year=subValues[0];i.month=subValues[1];i.dayOfMonth=subValues[2];i.time=n(values[1]);break;case 7:case 9:case 10:i.year=values[3];i.month=s(values[1]);i.dayOfMonth=values[2];i.time=n(values[4]);break;case 1:subValues=values[0].split("");i.year=subValues[0]+subValues[1]+subValues[2]+subValues[3];i.month=subValues[5]+subValues[6];i.dayOfMonth=subValues[8]+subValues[9];i.time=n(subValues[13]+subValues[14]+subValues[15]+subValues[16]+subValues[17]+subValues[18]+subValues[19]+subValues[20]);break;default:return null}}return i.date=new Date(i.year,i.month-1,i.dayOfMonth),i.dayOfWeek=String(i.date.getDay()),i},date:function(n,t){var s,v,y,e;try{if(s=this.parseDate(n),s===null)return n;var g=s.date,b=s.year,p=s.month,f=s.dayOfMonth,k=s.dayOfWeek,u=s.time,i="",r="",d="",w=!1;for(v=0;v<t.length;v++){if(y=t.charAt(v),e=t.charAt(v+1),w){y=="'"?(r+=i===""?"'":i,i="",w=!1):i+=y;continue}i+=y;d="";switch(i){case"ddd":r+=h(k);i="";break;case"dd":if(e==="d")break;r+=o(f,2);i="";break;case"d":if(e==="d")break;r+=parseInt(f,10);i="";break;case"D":f=f==1||f==21||f==31?parseInt(f,10)+"st":f==2||f==22?parseInt(f,10)+"nd":f==3||f==23?parseInt(f,10)+"rd":parseInt(f,10)+"th";r+=f;i="";break;case"MMMM":r+=a(p);i="";break;case"MMM":if(e==="M")break;r+=l(p);i="";break;case"MM":if(e==="M")break;r+=o(p,2);i="";break;case"M":if(e==="M")break;r+=parseInt(p,10);i="";break;case"y":case"yyy":if(e==="y")break;r+=i;i="";break;case"yy":if(e==="y")break;r+=String(b).slice(-2);i="";break;case"yyyy":r+=b;i="";break;case"HH":r+=o(u.hour,2);i="";break;case"H":if(e==="H")break;r+=parseInt(u.hour,10);i="";break;case"hh":hour=parseInt(u.hour,10)===0?12:u.hour<13?u.hour:u.hour-12;r+=o(hour,2);i="";break;case"h":if(e==="h")break;hour=parseInt(u.hour,10)===0?12:u.hour<13?u.hour:u.hour-12;r+=parseInt(hour,10);i="";break;case"mm":r+=o(u.minute,2);i="";break;case"m":if(e==="m")break;r+=u.minute;i="";break;case"ss":r+=o(u.second.substring(0,2),2);i="";break;case"s":if(e==="s")break;r+=u.second;i="";break;case"S":case"SS":if(e==="S")break;r+=i;i="";break;case"SSS":r+=u.millis.substring(0,3);i="";break;case"a":r+=u.hour>=12?"PM":"AM";i="";break;case"p":r+=u.hour>=12?"p.m.":"a.m.";i="";break;case"E":r+=c(k);i="";break;case"'":i="";w=!0;break;default:r+=y;i=""}}return r+d}catch(nt){return n}},prettyDate:function(n){var r,t,i;if((typeof n=="string"||typeof n=="number")&&(r=new Date(n)),typeof n=="object"&&(r=new Date(n.toString())),t=((new Date).getTime()-r.getTime())/1e3,i=Math.floor(t/86400),!isNaN(i)&&!(i<0))return t<60?"just now":t<120?"1 minute ago":t<3600?Math.floor(t/60)+" minutes ago":t<7200?"1 hour ago":t<86400?Math.floor(t/3600)+" hours ago":i===1?"Yesterday":i<7?i+" days ago":i<31?Math.ceil(i/7)+" weeks ago":i>=31?"more than 5 weeks ago":void 0},toBrowserTimeZone:function(n,t){return this.date(new Date(n),t||"MM/dd/yyyy HH:mm:ss")}}}()})(DateFormat),function(n){n.format=DateFormat.format}(jQuery),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function h(t,i){var r,u,f,e=t.nodeName.toLowerCase();return"area"===e?(r=t.parentNode,u=r.name,t.href&&u&&"map"===r.nodeName.toLowerCase()?(f=n("img[usemap='#"+u+"']")[0],!!f&&c(f)):!1):(/input|select|textarea|button|object/.test(e)?!t.disabled:"a"===e?t.href||i:i)&&c(t)}function c(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return"hidden"===n.css(this,"visibility")}).length}function k(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}function l(){this._curInst=null;this._keyEvent=!1;this._disabledInputs=[];this._datepickerShowing=!1;this._inDialog=!1;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1};n.extend(this._defaults,this.regional[""]);this.regional.en=n.extend(!0,{},this.regional[""]);this.regional["en-US"]=n.extend(!0,{},this.regional.en);this.dpDiv=a(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function a(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.delegate(i,"mouseout",function(){n(this).removeClass("ui-state-hover");-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).removeClass("ui-datepicker-prev-hover");-1!==this.className.indexOf("ui-datepicker-next")&&n(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",v)}function v(){n.datepicker._isDisabledDatepicker(u.inline?u.dpDiv.parent()[0]:u.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&n(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&n(this).addClass("ui-datepicker-next-hover"))}function r(t,i){n.extend(t,i);for(var r in i)null==i[r]&&(t[r]=i[r]);return t}function t(n){return function(){var t=this.element.val();n.apply(this,arguments);this._refresh();t!==this.element.val()&&this._trigger("change")}}var y,f,i,u,o,s;n.ui=n.ui||{};n.extend(n.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});n.fn.extend({scrollParent:function(t){var i=this.css("position"),u="absolute"===i,f=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=n(this);return u&&"static"===t.css("position")?!1:f.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:n(this[0].ownerDocument||document)},uniqueId:function(){var n=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&n(this).removeAttr("id")})}});n.extend(n.expr[":"],{data:n.expr.createPseudo?n.expr.createPseudo(function(t){return function(i){return!!n.data(i,t)}}):function(t,i,r){return!!n.data(t,r[3])},focusable:function(t){return h(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),r=isNaN(i);return(r||i>=0)&&h(t,!r)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(t,i){function r(t,i,r,u){return n.each(e,function(){i-=parseFloat(n.css(t,"padding"+this))||0;r&&(i-=parseFloat(n.css(t,"border"+this+"Width"))||0);u&&(i-=parseFloat(n.css(t,"margin"+this))||0)}),i}var e="Width"===i?["Left","Right"]:["Top","Bottom"],u=i.toLowerCase(),f={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return void 0===t?f["inner"+i].call(this):this.each(function(){n(this).css(u,r(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return"number"!=typeof t?f["outer"+i].call(this,t):this.each(function(){n(this).css(u,r(this,t,!0,e)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(n.fn.removeData=function(t){return function(i){return arguments.length?t.call(this,n.camelCase(i)):t.call(this)}}(n.fn.removeData));n.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());n.fn.extend({focus:function(t){return function(i,r){return"number"==typeof i?this.each(function(){var t=this;setTimeout(function(){n(t).focus();r&&r.call(t)},i)}):t.apply(this,arguments)}}(n.fn.focus),disableSelection:function(){var n="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.bind(n+".ui-disableSelection",function(n){n.preventDefault()})}}(),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(t){if(void 0!==t)return this.css("zIndex",t);if(this.length)for(var r,u,i=n(this[0]);i.length&&i[0]!==document;){if(r=i.css("position"),("absolute"===r||"relative"===r||"fixed"===r)&&(u=parseInt(i.css("zIndex"),10),!isNaN(u)&&0!==u))return u;i=i.parent()}return 0}});n.ui.plugin={add:function(t,i,r){var u,f=n.ui[t].prototype;for(u in r)f.plugins[u]=f.plugins[u]||[],f.plugins[u].push([i,r[u]])},call:function(n,t,i,r){var u,f=n.plugins[t];if(f&&(r||n.element[0].parentNode&&11!==n.element[0].parentNode.nodeType))for(u=0;f.length>u;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}};y=0;f=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r,u,f=0;null!=(u=i[f]);f++)try{r=n._data(u,"events");r&&r.remove&&n(u).triggerHandler("remove")}catch(e){}t(i)}}(n.cleanData);n.widget=function(t,i,r){var s,f,u,o,h={},e=t.split(".")[0];return t=t.split(".")[1],s=e+"-"+t,r||(r=i,i=n.Widget),n.expr[":"][s.toLowerCase()]=function(t){return!!n.data(t,s)},n[e]=n[e]||{},f=n[e][t],u=n[e][t]=function(n,t){return this._createWidget?(arguments.length&&this._createWidget(n,t),void 0):new u(n,t)},n.extend(u,f,{version:r.version,_proto:n.extend({},r),_childConstructors:[]}),o=new i,o.options=n.widget.extend({},o.options),n.each(r,function(t,r){return n.isFunction(r)?(h[t]=function(){var n=function(){return i.prototype[t].apply(this,arguments)},u=function(n){return i.prototype[t].apply(this,n)};return function(){var t,i=this._super,f=this._superApply;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}(),void 0):(h[t]=r,void 0)}),u.prototype=n.widget.extend(o,{widgetEventPrefix:f?o.widgetEventPrefix||t:t},h,{constructor:u,namespace:e,widgetName:t,widgetFullName:s}),f?(n.each(f._childConstructors,function(t,i){var r=i.prototype;n.widget(r.namespace+"."+r.widgetName,u,i._proto)}),delete f._childConstructors):i._childConstructors.push(u),n.widget.bridge(t,u),u};n.widget.extend=function(t){for(var i,r,e=f.call(arguments,1),u=0,o=e.length;o>u;u++)for(i in e[u])r=e[u][i],e[u].hasOwnProperty(i)&&void 0!==r&&(t[i]=n.isPlainObject(r)?n.isPlainObject(t[i])?n.widget.extend({},t[i],r):n.widget.extend({},r):r);return t};n.widget.bridge=function(t,i){var r=i.prototype.widgetFullName||t;n.fn[t]=function(u){var s="string"==typeof u,o=f.call(arguments,1),e=this;return u=!s&&o.length?n.widget.extend.apply(null,[u].concat(o)):u,s?this.each(function(){var i,f=n.data(this,r);return"instance"===u?(e=f,!1):f?n.isFunction(f[u])&&"_"!==u.charAt(0)?(i=f[u].apply(f,o),i!==f&&void 0!==i?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0):n.error("no such method '"+u+"' for "+t+" widget instance"):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+u+"'")}):this.each(function(){var t=n.data(this,r);t?(t.option(u||{}),t._init&&t._init()):n.data(this,r,new i(u,this))}),e}};n.Widget=function(){};n.Widget._childConstructors=[];n.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=n(i||this.defaultElement||this)[0];this.element=n(i);this.uuid=y++;this.eventNamespace="."+this.widgetName+this.uuid;this.options=n.widget.extend({},this.options,this._getCreateOptions(),t);this.bindings=n();this.hoverable=n();this.focusable=n();i!==this&&(n.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=n(i.style?i.ownerDocument:i.document||i),this.window=n(this.document[0].defaultView||this.document[0].parentWindow));this._create();this._trigger("create",null,this._getCreateEventData());this._init()},_getCreateOptions:n.noop,_getCreateEventData:n.noop,_create:n.noop,_init:n.noop,destroy:function(){this._destroy();this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(n.camelCase(this.widgetFullName));this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled");this.bindings.unbind(this.eventNamespace);this.hoverable.removeClass("ui-state-hover");this.focusable.removeClass("ui-state-focus")},_destroy:n.noop,widget:function(){return this.element},option:function(t,i){var r,u,f,e=t;if(0===arguments.length)return n.widget.extend({},this.options);if("string"==typeof t)if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;r.length-1>f;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),1===arguments.length)return void 0===u[t]?null:u[t];u[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){var t;for(t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,"disabled"===n&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,r){var f,u=this;"boolean"!=typeof t&&(r=i,i=t,t=!1);r?(i=f=n(i),this.bindings=this.bindings.add(i)):(r=i,i=this.element,f=this.widget());n.each(r,function(r,e){function o(){if(t||u.options.disabled!==!0&&!n(this).hasClass("ui-state-disabled"))return("string"==typeof e?u[e]:e).apply(u,arguments)}"string"!=typeof e&&(o.guid=e.guid=e.guid||o.guid||n.guid++);var s=r.match(/^([\w:-]*)\s*(.*)$/),h=s[1]+u.eventNamespace,c=s[2];c?f.delegate(c,h,o):i.bind(h,o)})},_off:function(n,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace;n.unbind(t).undelegate(t)},_delay:function(n,t){function r(){return("string"==typeof n?i[n]:n).apply(i,arguments)}var i=this;return setTimeout(r,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t);this._on(t,{mouseenter:function(t){n(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){n(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t);this._on(t,{focusin:function(t){n(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){n(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,r){var u,f,e=this.options[t];if(r=r||{},i=n.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],f=i.originalEvent)for(u in f)u in i||(i[u]=f[u]);return this.element.trigger(i,r),!(n.isFunction(e)&&e.apply(this.element[0],[i].concat(r))===!1||i.isDefaultPrevented())}};n.each({show:"fadeIn",hide:"fadeOut"},function(t,i){n.Widget.prototype["_"+t]=function(r,u,f){"string"==typeof u&&(u={effect:u});var o,e=u?u===!0||"number"==typeof u?i:u.effect||i:t;u=u||{};"number"==typeof u&&(u={duration:u});o=!n.isEmptyObject(u);u.complete=f;u.delay&&r.delay(u.delay);o&&n.effects&&n.effects.effect[e]?r[t](u):e!==t&&r[e]?r[e](u.duration,u.easing,f):r.queue(function(i){n(this)[t]();f&&f.call(r[0]);i()})}});n.widget;i=!1;n(document).mouseup(function(){i=!1});n.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(n){return t._mouseDown(n)}).bind("click."+this.widgetName,function(i){if(!0===n.data(i.target,t.widgetName+".preventClickEvent"))return(n.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1)});this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!i){this._mouseStarted&&this._mouseUp(t);this._mouseDownEvent=t;var r=this,u=1===t.which,f="string"==typeof this.options.cancel&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;return u&&!f&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===n.data(t.target,this.widgetName+".preventClickEvent")&&n.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(n){return r._mouseMove(n)},this._mouseUpDelegate=function(n){return r._mouseUp(n)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),i=!0,!0)):!0}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||9>document.documentMode)&&!t.button?this._mouseUp(t):t.which?this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted):this._mouseUp(t)},_mouseUp:function(t){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&n.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),i=!1,!1},_mouseDistanceMet:function(n){return Math.max(Math.abs(this._mouseDownEvent.pageX-n.pageX),Math.abs(this._mouseDownEvent.pageY-n.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function f(n,t,i){return[parseFloat(n[0])*(a.test(n[0])?t/100:1),parseFloat(n[1])*(a.test(n[1])?i/100:1)]}function i(t,i){return parseInt(n.css(t,i),10)||0}function v(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:n.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}n.ui=n.ui||{};var u,e,r=Math.max,t=Math.abs,o=Math.round,s=/left|center|right/,h=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,a=/%$/,y=n.fn.position;n.position={scrollbarWidth:function(){if(void 0!==u)return u;var r,i,t=n("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'><\/div><\/div>"),f=t.children()[0];return n("body").append(t),r=f.offsetWidth,t.css("overflow","scroll"),i=f.offsetWidth,r===i&&(i=t[0].clientWidth),t.remove(),u=r-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),u="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth,f="scroll"===r||"auto"===r&&t.height<t.element[0].scrollHeight;return{width:f?n.position.scrollbarWidth():0,height:u?n.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=n(t||window),r=n.isWindow(i[0]),u=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:r,isDocument:u,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r||u?i.width():i.outerWidth(),height:r||u?i.height():i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return y.apply(this,arguments);u=n.extend({},u);var k,a,p,b,w,g,nt=n(u.of),it=n.position.getWithinInfo(u.within),rt=n.position.getScrollInfo(it),d=(u.collision||"flip").split(" "),tt={};return g=v(nt),nt[0].preventDefault&&(u.at="left top"),a=g.width,p=g.height,b=g.offset,w=n.extend({},b),n.each(["my","at"],function(){var t,i,n=(u[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]);n[0]=s.test(n[0])?n[0]:"center";n[1]=h.test(n[1])?n[1]:"center";t=c.exec(n[0]);i=c.exec(n[1]);tt[this]=[t?t[0]:0,i?i[0]:0];u[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]}),1===d.length&&(d[1]=d[0]),"right"===u.at[0]?w.left+=a:"center"===u.at[0]&&(w.left+=a/2),"bottom"===u.at[1]?w.top+=p:"center"===u.at[1]&&(w.top+=p/2),k=f(tt.at,a,p),w.left+=k[0],w.top+=k[1],this.each(function(){var y,g,h=n(this),c=h.outerWidth(),l=h.outerHeight(),ut=i(this,"marginLeft"),ft=i(this,"marginTop"),et=c+ut+i(this,"marginRight")+rt.width,ot=l+ft+i(this,"marginBottom")+rt.height,s=n.extend({},w),v=f(tt.my,h.outerWidth(),h.outerHeight());"right"===u.my[0]?s.left-=c:"center"===u.my[0]&&(s.left-=c/2);"bottom"===u.my[1]?s.top-=l:"center"===u.my[1]&&(s.top-=l/2);s.left+=v[0];s.top+=v[1];e||(s.left=o(s.left),s.top=o(s.top));y={marginLeft:ut,marginTop:ft};n.each(["left","top"],function(t,i){n.ui.position[d[t]]&&n.ui.position[d[t]][i](s,{targetWidth:a,targetHeight:p,elemWidth:c,elemHeight:l,collisionPosition:y,collisionWidth:et,collisionHeight:ot,offset:[k[0]+v[0],k[1]+v[1]],my:u.my,at:u.at,within:it,elem:h})});u.using&&(g=function(n){var i=b.left-s.left,o=i+a-c,f=b.top-s.top,v=f+p-l,e={target:{element:nt,left:b.left,top:b.top,width:a,height:p},element:{element:h,left:s.left,top:s.top,width:c,height:l},horizontal:0>o?"left":i>0?"right":"center",vertical:0>v?"top":f>0?"bottom":"middle"};c>a&&a>t(i+o)&&(e.horizontal="center");l>p&&p>t(f+v)&&(e.vertical="middle");e.important=r(t(i),t(o))>r(t(f),t(v))?"horizontal":"vertical";u.using.call(this,n,e)});h.offset(n.extend(s,{using:g}))})};n.ui.position={fit:{left:function(n,t){var h,e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,i=u-s,f=s+t.collisionWidth-o-u;t.collisionWidth>o?i>0&&0>=f?(h=n.left+i+t.collisionWidth-o-u,n.left+=i-h):n.left=f>0&&0>=i?u:i>f?u+o-t.collisionWidth:u:i>0?n.left+=i:f>0?n.left-=f:n.left=r(n.left-s,n.left)},top:function(n,t){var h,o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,i=u-s,f=s+t.collisionHeight-e-u;t.collisionHeight>e?i>0&&0>=f?(h=n.top+i+t.collisionHeight-e-u,n.top+=i-h):n.top=f>0&&0>=i?u:i>f?u+e-t.collisionHeight:u:i>0?n.top+=i:f>0?n.top-=f:n.top=r(n.top-s,n.top)}},flip:{left:function(n,i){var o,s,r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,h=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-h,v=l+i.collisionWidth-c-h,u="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,f="left"===i.at[0]?i.targetWidth:"right"===i.at[0]?-i.targetWidth:0,e=-2*i.offset[0];0>a?(o=n.left+u+f+e+i.collisionWidth-c-y,(0>o||t(a)>o)&&(n.left+=u+f+e)):v>0&&(s=n.left-i.collisionPosition.marginLeft+u+f+e-h,(s>0||v>t(s))&&(n.left+=u+f+e))},top:function(n,i){var o,s,r=i.within,y=r.offset.top+r.scrollTop,a=r.height,h=r.isWindow?r.scrollTop:r.offset.top,v=n.top-i.collisionPosition.marginTop,c=v-h,l=v+i.collisionHeight-a-h,p="top"===i.my[1],u=p?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,f="top"===i.at[1]?i.targetHeight:"bottom"===i.at[1]?-i.targetHeight:0,e=-2*i.offset[1];0>c?(s=n.top+u+f+e+i.collisionHeight-a-y,n.top+u+f+e>c&&(0>s||t(c)>s)&&(n.top+=u+f+e)):l>0&&(o=n.top-i.collisionPosition.marginTop+u+f+e-h,n.top+u+f+e>l&&(o>0||l>t(o))&&(n.top+=u+f+e))}},flipfit:{left:function(){n.ui.position.flip.left.apply(this,arguments);n.ui.position.fit.left.apply(this,arguments)},top:function(){n.ui.position.flip.top.apply(this,arguments);n.ui.position.fit.top.apply(this,arguments)}}},function(){var t,i,r,u,f,o=document.getElementsByTagName("body")[0],s=document.createElement("div");t=document.createElement(o?"div":"body");r={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};o&&n.extend(r,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in r)t.style[f]=r[f];t.appendChild(s);i=o||document.documentElement;i.insertBefore(t,i.firstChild);s.style.cssText="position: absolute; left: 10.7432222px;";u=n(s).offset().left;e=u>10&&11>u;t.innerHTML="";i.removeChild(t)}()}();n.ui.position;n.widget("ui.accordion",{version:"1.11.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=n();this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist");t.collapsible||t.active!==!1&&null!=t.active||(t.active=0);this._processPanels();0>t.active&&(t.active+=this.headers.length);this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():n()}},_createIcons:function(){var t=this.options.icons;t&&(n("<span>").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var n;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId();this._destroyIcons();n=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId();"content"!==this.options.heightStyle&&n.css("height","")},_setOption:function(n,t){return"active"===n?(this._activate(t),void 0):("event"===n&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(n,t),"collapsible"!==n||t||this.options.active!==!1||this._activate(0),"icons"===n&&(this._destroyIcons(),t&&this._createIcons()),"disabled"===n&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)),void 0)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=n.ui.keyCode,u=this.headers.length,f=this.headers.index(t.target),r=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(f+1)%u];break;case i.LEFT:case i.UP:r=this.headers[(f-1+u)%u];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[u-1]}r&&(n(t.target).attr("tabIndex",-1),n(r).attr("tabIndex",0),r.focus(),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===n.ui.keyCode.UP&&t.ctrlKey&&n(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels();t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=n()):t.active===!1?this._activate(0):this.active.length&&!n.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=n()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active);this._destroyIcons();this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all");this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var t,i=this.options,r=i.heightStyle,u=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all");this.active.next().addClass("ui-accordion-content-active").show();this.headers.attr("role","tab").each(function(){var t=n(this),r=t.uniqueId().attr("id"),i=t.next(),u=i.uniqueId().attr("id");t.attr("aria-controls",u);i.attr("aria-labelledby",r)}).next().attr("role","tabpanel");this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide();this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0);this._createIcons();this._setupEvents(i.event);"fill"===r?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");"absolute"!==r&&"fixed"!==r&&(t-=i.outerHeight(!0))}),this.headers.each(function(){t-=n(this).outerHeight(!0)}),this.headers.next().each(function(){n(this).height(Math.max(0,t-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===r&&(t=0,this.headers.next().each(function(){t=Math.max(t,n(this).css("height","").height())}).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:n.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):n()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.headers.add(this.headers.next()));this._on(this.headers,i);this._on(this.headers.next(),{keydown:"_panelKeyDown"});this._hoverable(this.headers);this._focusable(this.headers)},_eventHandler:function(t){var i=this.options,u=this.active,r=n(t.currentTarget),f=r[0]===u[0],e=f&&i.collapsible,s=e?n():r.next(),h=u.next(),o={oldHeader:u,oldPanel:h,newHeader:e?n():r,newPanel:s};t.preventDefault();f&&!i.collapsible||this._trigger("beforeActivate",t,o)===!1||(i.active=e?!1:this.headers.index(r),this.active=f?n():r,this._toggle(o),u.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&u.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),f||(r.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&r.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),r.next().addClass("ui-accordion-content-active")))},_toggle:function(t){var r=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0);this.prevShow=r;this.prevHide=i;this.options.animate?this._animate(r,i,t):(i.hide(),r.show(),this._toggleComplete(t));i.attr({"aria-hidden":"true"});i.prev().attr("aria-selected","false");r.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):r.length&&this.headers.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1);r.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(n,t,i){var h,r,u,c=this,o=0,l=n.length&&(!t.length||n.index()<t.index()),e=this.options.animate||{},f=l&&e.down||e,s=function(){c._toggleComplete(i)};return"number"==typeof f&&(u=f),"string"==typeof f&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,t.length?n.length?(h=n.show().outerHeight(),t.animate(this.hideProps,{duration:u,easing:r,step:function(n,t){t.now=Math.round(n)}}),n.hide().animate(this.showProps,{duration:u,easing:r,complete:s,step:function(n,i){i.now=Math.round(n);"height"!==i.prop?o+=i.now:"content"!==c.options.heightStyle&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}}),void 0):t.animate(this.hideProps,u,r,s):n.animate(this.showProps,u,r,s)},_toggleComplete:function(n){var t=n.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all");t.length&&(t.parent()[0].className=t.parent()[0].className);this._trigger("activate",null,n)}});n.widget("ui.menu",{version:"1.11.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element;this.mouseHandled=!1;this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0});this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true");this._on({"mousedown .ui-menu-item":function(n){n.preventDefault()},"click .ui-menu-item":function(t){var i=n(t.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var i=n(t.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active");this.focus(t,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(n,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(n,i)},blur:function(t){this._delay(function(){n.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"});this.refresh();this._on(this.document,{click:function(n){this._closeOnDocumentClick(n)&&this.collapseAll(n);this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show();this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=n(this);t.data("ui-menu-submenu-carat")&&t.remove()});this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function o(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,f,r,e,u,s=!0;switch(t.keyCode){case n.ui.keyCode.PAGE_UP:this.previousPage(t);break;case n.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case n.ui.keyCode.HOME:this._move("first","first",t);break;case n.ui.keyCode.END:this._move("last","last",t);break;case n.ui.keyCode.UP:this.previous(t);break;case n.ui.keyCode.DOWN:this.next(t);break;case n.ui.keyCode.LEFT:this.collapse(t);break;case n.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case n.ui.keyCode.ENTER:case n.ui.keyCode.SPACE:this._activate(t);break;case n.ui.keyCode.ESCAPE:this.collapse(t);break;default:s=!1;f=this.previousFilter||"";r=String.fromCharCode(t.keyCode);e=!1;clearTimeout(this.filterTimer);r===f?e=!0:r=f+r;u=RegExp("^"+o(r),"i");i=this.activeMenu.find(this.options.items).filter(function(){return u.test(n(this).text())});i=e&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),u=RegExp("^"+o(r),"i"),i=this.activeMenu.find(this.options.items).filter(function(){return u.test(n(this).text())}));i.length?(this.focus(t,i),i.length>1?(this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}s&&t.preventDefault()},_activate:function(n){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(n):this.select(n))},refresh:function(){var i,t,u=this,f=this.options.icons.submenu,r=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length);r.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=n(this),i=t.parent(),r=n("<span>").addClass("ui-menu-icon ui-icon "+f).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(r);t.attr("aria-labelledby",i.attr("id"))});i=r.add(this.element);t=i.find(this.options.items);t.not(".ui-menu-item").each(function(){var t=n(this);u._isDivider(t)&&t.addClass("ui-widget-content ui-menu-divider")});t.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()});t.filter(".ui-state-disabled").attr("aria-disabled","true");this.active&&!n.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(n,t){"icons"===n&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu);"disabled"===n&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t);this._super(n,t)},focus:function(n,t){var i,r;this.blur(n,n&&"focus"===n.type);this._scrollIntoView(t);this.active=t.first();r=this.active.addClass("ui-state-focus").removeClass("ui-state-active");this.options.role&&this.element.attr("aria-activedescendant",r.attr("id"));this.active.parent().closest(".ui-menu-item").addClass("ui-state-active");n&&"keydown"===n.type?this._close():this.timer=this._delay(function(){this._close()},this.delay);i=t.children(".ui-menu");i.length&&n&&/^mouse/.test(n.type)&&this._startOpening(i);this.activeMenu=t.parent();this._trigger("focus",n,{item:t})},_scrollIntoView:function(t){var e,o,i,r,u,f;this._hasScroll()&&(e=parseFloat(n.css(this.activeMenu[0],"borderTopWidth"))||0,o=parseFloat(n.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-e-o,r=this.activeMenu.scrollTop(),u=this.activeMenu.height(),f=t.outerHeight(),0>i?this.activeMenu.scrollTop(r+i):i+f>u&&this.activeMenu.scrollTop(r+i-u+f))},blur:function(n,t){t||clearTimeout(this.timer);this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",n,{item:this.active}))},_startOpening:function(n){clearTimeout(this.timer);"true"===n.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close();this._open(n)},this.delay))},_open:function(t){var i=n.extend({of:this.active},this.options.position);clearTimeout(this.timer);this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true");t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer);this.timer=this._delay(function(){var r=i?this.element:n(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element);this._close(r);this.blur(t);this.activeMenu=r},this.delay)},_close:function(n){n||(n=this.active?this.active.parent():this.element);n.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(t){return!n(t.target).closest(".ui-menu").length},_isDivider:function(n){return!/[^\-\u2014\u2013\s]/.test(n.text())},collapse:function(n){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(n,t))},expand:function(n){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(n,t)}))},next:function(n){this._move("next","first",n)},previous:function(n){this._move("prev","last",n)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(n,t,i){var r;this.active&&(r="first"===n||"last"===n?this.active["first"===n?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[n+"All"](".ui-menu-item").eq(0));r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[t]());this.focus(i,r)},nextPage:function(t){var i,r,u;return this.active?(this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=n(this),0>i.offset().top-r-u}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(t),void 0)},previousPage:function(t){var i,r,u;return this.active?(this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,u=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=n(this),i.offset().top-r+u>0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items).first())),void 0):(this.next(t),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||n(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0);this._trigger("select",t,i)}});n.widget("ui.autocomplete",{version:"1.11.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,r,u=this.element[0].nodeName.toLowerCase(),f="textarea"===u,e="input"===u;this.isMultiLine=f?!0:e?!1:this.element.prop("isContentEditable");this.valueMethod=this.element[f||e?"val":"text"];this.isNewMenu=!0;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off");this._on(this.element,{keydown:function(u){if(this.element.prop("readOnly"))return t=!0,r=!0,i=!0,void 0;t=!1;r=!1;i=!1;var f=n.ui.keyCode;switch(u.keyCode){case f.PAGE_UP:t=!0;this._move("previousPage",u);break;case f.PAGE_DOWN:t=!0;this._move("nextPage",u);break;case f.UP:t=!0;this._keyEvent("previous",u);break;case f.DOWN:t=!0;this._keyEvent("next",u);break;case f.ENTER:this.menu.active&&(t=!0,u.preventDefault(),this.menu.select(u));break;case f.TAB:this.menu.active&&this.menu.select(u);break;case f.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t)return t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault(),void 0;if(!i){var u=n.ui.keyCode;switch(r.keyCode){case u.PAGE_UP:this._move("previousPage",r);break;case u.PAGE_DOWN:this._move("nextPage",r);break;case u.UP:this._keyEvent("previous",r);break;case u.DOWN:this._keyEvent("next",r)}}},input:function(n){return r?(r=!1,n.preventDefault(),void 0):(this._searchTimeout(n),void 0)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(n),this._change(n),void 0)}});this._initSource();this.menu=n("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance");this._on(this.menu.element,{mousedown:function(t){t.preventDefault();this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];n(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(r){r.target===t.element[0]||r.target===i||n.contains(i,r.target)||t.close()})})},menufocus:function(t,i){var r,u;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){n(t.target).trigger(t.originalEvent)}),void 0):(u=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:u})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(u.value),r=i.item.attr("aria-label")||u.value,r&&n.trim(r).length&&(this.liveRegion.children().hide(),n("<div>").text(r).appendTo(this.liveRegion)),void 0)},menuselect:function(n,t){var i=t.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r;this.selectedItem=i}));!1!==this._trigger("select",n,{item:i})&&this._value(i.value);this.term=this._value();this.close(n);this.selectedItem=i}});this.liveRegion=n("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body);this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching);this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete");this.menu.element.remove();this.liveRegion.remove()},_setOption:function(n,t){this._super(n,t);"source"===n&&this._initSource();"appendTo"===n&&this.menu.element.appendTo(this._appendTo());"disabled"===n&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var i,r,t=this;n.isArray(this.options.source)?(i=this.options.source,this.source=function(t,r){r(n.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(r=this.options.source,this.source=function(i,u){t.xhr&&t.xhr.abort();t.xhr=n.ajax({url:r,data:i,dataType:"json",success:function(n){u(n)},error:function(){u([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching);this.searching=this._delay(function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),r=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;t&&(!t||i||r)||(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(n,t){return n=null!=n?n:this._value(),this.term=this._value(),n.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(n):void 0},_search:function(n){this.pending++;this.element.addClass("ui-autocomplete-loading");this.cancelSearch=!1;this.source({term:n},this._response())},_response:function(){var t=++this.requestIndex;return n.proxy(function(n){t===this.requestIndex&&this.__response(n);this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(n){n&&(n=this._normalize(n));this._trigger("response",null,{content:n});!this.options.disabled&&n&&n.length&&!this.cancelSearch?(this._suggest(n),this._trigger("open")):this._close()},close:function(n){this.cancelSearch=!0;this._close(n)},_close:function(n){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",n))},_change:function(n){this.previous!==this._value()&&this._trigger("change",n,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:n.map(t,function(t){return"string"==typeof t?{label:t,value:t}:n.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t);this.isNewMenu=!0;this.menu.refresh();i.show();this._resizeMenu();i.position(n.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var n=this.menu.element;n.outerWidth(Math.max(n.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var r=this;n.each(i,function(n,i){r._renderItemData(t,i)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return n("<li>").text(i.label).appendTo(t)},_move:function(n,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[n](t),void 0):(this.search(null,t),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(n,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(n,t),t.preventDefault())}});n.extend(n.ui.autocomplete,{escapeRegex:function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var r=RegExp(n.ui.autocomplete.escapeRegex(i),"i");return n.grep(t,function(n){return r.test(n.label||n.value||n)})}});n.widget("ui.autocomplete",n.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(n){return n+(n>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments);this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),n("<div>").text(i).appendTo(this.liveRegion))}});n.ui.autocomplete;var e,p="ui-button ui-widget ui-state-default ui-corner-all",w="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",d=function(){var t=n(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},b=function(t){var i=t.name,r=t.form,u=n([]);return i&&(i=i.replace(/'/g,"\\'"),u=r?n(r).find("[name='"+i+"'][type=radio]"):n("[name='"+i+"'][type=radio]",t.ownerDocument).filter(function(){return!this.form})),u};n.widget("ui.button",{version:"1.11.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,d);"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled);this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var i=this,t=this.options,r="checkbox"===this.type||"radio"===this.type,u=r?"":"ui-state-active";null===t.label&&(t.label="input"===this.type?this.buttonElement.val():this.buttonElement.html());this._hoverable(this.buttonElement);this.buttonElement.addClass(p).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){t.disabled||this===e&&n(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){t.disabled||n(this).removeClass(u)}).bind("click"+this.eventNamespace,function(n){t.disabled&&(n.preventDefault(),n.stopImmediatePropagation())});this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}});r&&this.element.bind("change"+this.eventNamespace,function(){i.refresh()});"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(t.disabled)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(t.disabled)return!1;n(this).addClass("ui-state-active");i.buttonElement.attr("aria-pressed","true");var r=i.element[0];b(r).not(r).map(function(){return n(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return t.disabled?!1:(n(this).addClass("ui-state-active"),e=this,i.document.one("mouseup",function(){e=null}),void 0)}).bind("mouseup"+this.eventNamespace,function(){return t.disabled?!1:(n(this).removeClass("ui-state-active"),void 0)}).bind("keydown"+this.eventNamespace,function(i){return t.disabled?!1:((i.keyCode===n.ui.keyCode.SPACE||i.keyCode===n.ui.keyCode.ENTER)&&n(this).addClass("ui-state-active"),void 0)}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){n(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(t){t.keyCode===n.ui.keyCode.SPACE&&n(this).click()}));this._setOption("disabled",t.disabled);this._resetButton()},_determineButtonType:function(){var n,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button";"checkbox"===this.type||"radio"===this.type?(n=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=n.find(t),this.buttonElement.length||(n=n.length?n.siblings():this.element.siblings(),this.buttonElement=n.filter(t),this.buttonElement.length||(this.buttonElement=n.find(t))),this.element.addClass("ui-helper-hidden-accessible"),i=this.element.is(":checked"),i&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(p+" ui-state-active "+w).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(n,t){return this._super(n,t),"disabled"===n?(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),t&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")),void 0):(this._resetButton(),void 0)},refresh:function(){var t=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOption("disabled",t);"radio"===this.type?b(this.element[0]).each(function(){n(this).is(":checked")?n(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):n(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"===this.type)return this.options.label&&this.element.val(this.options.label),void 0;var i=this.buttonElement.removeClass(w),f=n("<span><\/span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(i.empty()).text(),t=this.options.icons,u=t.primary&&t.secondary,r=[];t.primary||t.secondary?(this.options.text&&r.push("ui-button-text-icon"+(u?"s":t.primary?"-primary":"-secondary")),t.primary&&i.prepend("<span class='ui-button-icon-primary ui-icon "+t.primary+"'><\/span>"),t.secondary&&i.append("<span class='ui-button-icon-secondary ui-icon "+t.secondary+"'><\/span>"),this.options.text||(r.push(u?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||i.attr("title",n.trim(f)))):r.push("ui-button-text-only");i.addClass(r.join(" "))}});n.widget("ui.buttonset",{version:"1.11.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(n,t){"disabled"===n&&this.buttons.button("option",n,t);this._super(n,t)},refresh:function(){var i="rtl"===this.element.css("direction"),t=this.element.find(this.options.items),r=t.filter(":ui-button");t.not(":ui-button").button();r.button("refresh");this.buttons=t.map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(i?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(i?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return n(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}});n.ui.button;n.extend(n.ui,{datepicker:{version:"1.11.1"}});n.extend(l.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(n){return r(this._defaults,n||{}),this},_attachDatepicker:function(t,i){var r,f,u;r=t.nodeName.toLowerCase();f="div"===r||"span"===r;t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});"input"===r?this._connectDatepicker(t,u):f&&this._inlineDatepicker(t,u)},_newInst:function(t,i){var r=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:r,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?a(n("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>")):this.dpDiv}},_connectDatepicker:function(t,i){var r=n(t);i.append=n([]);i.trigger=n([]);r.hasClass(this.markerClassName)||(this._attachments(r,i),r.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),n.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var u,r,f,e=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove();e&&(i.append=n("<span class='"+this._appendClass+"'>"+e+"<\/span>"),t[o?"before":"after"](i.append));t.unbind("focus",this._showDatepicker);i.trigger&&i.trigger.remove();u=this._get(i,"showOn");("focus"===u||"both"===u)&&t.focus(this._showDatepicker);("button"===u||"both"===u)&&(r=this._get(i,"buttonText"),f=this._get(i,"buttonImage"),i.trigger=n(this._get(i,"buttonImageOnly")?n("<img/>").addClass(this._triggerClass).attr({src:f,alt:r,title:r}):n("<button type='button'><\/button>").addClass(this._triggerClass).html(f?n("<img/>").attr({src:f,alt:r,title:r}):r)),t[o?"before":"after"](i.trigger),i.trigger.click(function(){return n.datepicker._datepickerShowing&&n.datepicker._lastInput===t[0]?n.datepicker._hideDatepicker():n.datepicker._datepickerShowing&&n.datepicker._lastInput!==t[0]?(n.datepicker._hideDatepicker(),n.datepicker._showDatepicker(t[0])):n.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(n){if(this._get(n,"autoSize")&&!n.inline){var r,u,f,t,i=new Date(2009,11,20),e=this._get(n,"dateFormat");e.match(/[DM]/)&&(r=function(n){for(u=0,f=0,t=0;n.length>t;t++)n[t].length>u&&(u=n[t].length,f=t);return f},i.setMonth(r(this._get(n,e.match(/MM/)?"monthNames":"monthNamesShort"))),i.setDate(r(this._get(n,e.match(/DD/)?"dayNames":"dayNamesShort"))+20-i.getDay()));n.input.attr("size",this._formatDate(n,i).length)}},_inlineDatepicker:function(t,i){var r=n(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(i.dpDiv),n.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,u,f,e){var s,h,c,l,a,o=this._dialogInst;return o||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=n("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),n("body").append(this._dialogInput),o=this._dialogInst=this._newInst(this._dialogInput,!1),o.settings={},n.data(this._dialogInput[0],"datepicker",o)),r(o.settings,f||{}),i=i&&i.constructor===Date?this._formatDate(o,i):i,this._dialogInput.val(i),this._pos=e?e.length?e:[e.pageX,e.pageY]:null,this._pos||(h=document.documentElement.clientWidth,c=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+l,c/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=u,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),n.blockUI&&n.blockUI(this.dpDiv),n.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(t){var i,r=n(t),u=n.data(t,"datepicker");r.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),n.removeData(t,"datepicker"),"input"===i?(u.append.remove(),u.trigger.remove(),r.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===i||"span"===i)&&r.removeClass(this.markerClassName).empty())},_enableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(r=u.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}))},_disableDatepicker:function(t){var i,r,u=n(t),f=n.data(t,"datepicker");u.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(r=u.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=n.map(this._disabledInputs,function(n){return n===t?null:n}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(n){if(!n)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===n)return!0;return!1},_getInst:function(t){try{return n.data(t,"datepicker")}catch(i){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(t,i,u){var e,h,o,s,f=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?n.extend({},n.datepicker._defaults):f?"all"===i?n.extend({},f.settings):this._get(f,i):null:(e=i||{},"string"==typeof i&&(e={},e[i]=u),f&&(this._curInst===f&&this._hideDatepicker(),h=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(f,"min"),s=this._getMinMaxDate(f,"max"),r(f.settings,e),null!==o&&void 0!==e.dateFormat&&void 0===e.minDate&&(f.settings.minDate=this._formatDate(f,o)),null!==s&&void 0!==e.dateFormat&&void 0===e.maxDate&&(f.settings.maxDate=this._formatDate(f,s)),"disabled"in e&&(e.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(n(t),f),this._autoSize(f),this._setDate(f,h),this._updateAlternate(f),this._updateDatepicker(f)),void 0)},_changeDatepicker:function(n,t,i){this._optionDatepicker(n,t,i)},_refreshDatepicker:function(n){var t=this._getInst(n);t&&this._updateDatepicker(t)},_setDateDatepicker:function(n,t){var i=this._getInst(n);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(n,t){var i=this._getInst(n);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var u,e,f,i=n.datepicker._getInst(t.target),r=!0,o=i.dpDiv.is(".ui-datepicker-rtl");if(i._keyEvent=!0,n.datepicker._datepickerShowing)switch(t.keyCode){case 9:n.datepicker._hideDatepicker();r=!1;break;case 13:return f=n("td."+n.datepicker._dayOverClass+":not(."+n.datepicker._currentClass+")",i.dpDiv),f[0]&&n.datepicker._selectDay(t.target,i.selectedMonth,i.selectedYear,f[0]),u=n.datepicker._get(i,"onSelect"),u?(e=n.datepicker._formatDate(i),u.apply(i.input?i.input[0]:null,[e,i])):n.datepicker._hideDatepicker(),!1;case 27:n.datepicker._hideDatepicker();break;case 33:n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 34:n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&n.datepicker._clearDate(t.target);r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&n.datepicker._gotoToday(t.target);r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?1:-1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?-n.datepicker._get(i,"stepBigMonths"):-n.datepicker._get(i,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,-7,"D");r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,o?-1:1,"D");r=t.ctrlKey||t.metaKey;t.originalEvent.altKey&&n.datepicker._adjustDate(t.target,t.ctrlKey?+n.datepicker._get(i,"stepBigMonths"):+n.datepicker._get(i,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&n.datepicker._adjustDate(t.target,7,"D");r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?n.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,r,u=n.datepicker._getInst(t.target);if(n.datepicker._get(u,"constrainInput"))return(i=n.datepicker._possibleChars(n.datepicker._get(u,"dateFormat")),r=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">r||!i||i.indexOf(r)>-1)},_doKeyUp:function(t){var r,i=n.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{r=n.datepicker.parseDate(n.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,n.datepicker._getFormatConfig(i));r&&(n.datepicker._setDateFromField(i),n.datepicker._updateAlternate(i),n.datepicker._updateDatepicker(i))}catch(u){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=n("input",t.parentNode)[0]),!n.datepicker._isDisabledDatepicker(t)&&n.datepicker._lastInput!==t){var i,o,s,u,f,e,h;i=n.datepicker._getInst(t);n.datepicker._curInst&&n.datepicker._curInst!==i&&(n.datepicker._curInst.dpDiv.stop(!0,!0),i&&n.datepicker._datepickerShowing&&n.datepicker._hideDatepicker(n.datepicker._curInst.input[0]));o=n.datepicker._get(i,"beforeShow");s=o?o.apply(t,[t,i]):{};s!==!1&&(r(i.settings,s),i.lastVal=null,n.datepicker._lastInput=t,n.datepicker._setDateFromField(i),n.datepicker._inDialog&&(t.value=""),n.datepicker._pos||(n.datepicker._pos=n.datepicker._findPos(t),n.datepicker._pos[1]+=t.offsetHeight),u=!1,n(t).parents().each(function(){return u|="fixed"===n(this).css("position"),!u}),f={left:n.datepicker._pos[0],top:n.datepicker._pos[1]},n.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),n.datepicker._updateDatepicker(i),f=n.datepicker._checkOffset(i,f,u),i.dpDiv.css({position:n.datepicker._inDialog&&n.blockUI?"static":u?"fixed":"absolute",display:"none",left:f.left+"px",top:f.top+"px"}),i.inline||(e=n.datepicker._get(i,"showAnim"),h=n.datepicker._get(i,"duration"),i.dpDiv.css("z-index",k(n(t))+1),n.datepicker._datepickerShowing=!0,n.effects&&n.effects.effect[e]?i.dpDiv.show(e,n.datepicker._get(i,"showOptions"),h):i.dpDiv[e||"show"](e?h:null),n.datepicker._shouldFocusInput(i)&&i.input.focus(),n.datepicker._curInst=i))}},_updateDatepicker:function(t){this.maxRows=4;u=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);var i,r=this._getNumberOfMonths(t),f=r[1],e=t.dpDiv.find("."+this._dayOverClass+" a");e.length>0&&v.apply(e.get(0));t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");f>1&&t.dpDiv.addClass("ui-datepicker-multi-"+f).css("width",17*f+"em");t.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi");t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");t===n.datepicker._curInst&&n.datepicker._datepickerShowing&&n.datepicker._shouldFocusInput(t)&&t.input.focus();t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml);i=t.yearshtml=null},0))},_shouldFocusInput:function(n){return n.input&&n.input.is(":visible")&&!n.input.is(":disabled")&&!n.input.is(":focus")},_checkOffset:function(t,i,r){var u=t.dpDiv.outerWidth(),f=t.dpDiv.outerHeight(),h=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,e=document.documentElement.clientWidth+(r?0:n(document).scrollLeft()),s=document.documentElement.clientHeight+(r?0:n(document).scrollTop());return i.left-=this._get(t,"isRTL")?u-h:0,i.left-=r&&i.left===t.input.offset().left?n(document).scrollLeft():0,i.top-=r&&i.top===t.input.offset().top+o?n(document).scrollTop():0,i.left-=Math.min(i.left,i.left+u>e&&e>u?Math.abs(i.left+u-e):0),i.top-=Math.min(i.top,i.top+f>s&&s>f?Math.abs(f+o):0),i},_findPos:function(t){for(var i,r=this._getInst(t),u=this._get(r,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||n.expr.filters.hidden(t));)t=t[u?"previousSibling":"nextSibling"];return i=n(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var r,f,u,e,i=this._curInst;!i||t&&i!==n.data(t,"datepicker")||this._datepickerShowing&&(r=this._get(i,"showAnim"),f=this._get(i,"duration"),u=function(){n.datepicker._tidyDialog(i)},n.effects&&(n.effects.effect[r]||n.effects[r])?i.dpDiv.hide(r,n.datepicker._get(i,"showOptions"),f,u):i.dpDiv["slideDown"===r?"slideUp":"fadeIn"===r?"fadeOut":"hide"](r?f:null,u),r||u(),this._datepickerShowing=!1,e=this._get(i,"onClose"),e&&e.apply(i.input?i.input[0]:null,[i.input?i.input.val():"",i]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),n.blockUI&&(n.unblockUI(),n("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(n){n.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(n.datepicker._curInst){var i=n(t.target),r=n.datepicker._getInst(i[0]);(i[0].id===n.datepicker._mainDivId||0!==i.parents("#"+n.datepicker._mainDivId).length||i.hasClass(n.datepicker.markerClassName)||i.closest("."+n.datepicker._triggerClass).length||!n.datepicker._datepickerShowing||n.datepicker._inDialog&&n.blockUI)&&(!i.hasClass(n.datepicker.markerClassName)||n.datepicker._curInst===r)||n.datepicker._hideDatepicker()}},_adjustDate:function(t,i,r){var f=n(t),u=this._getInst(f[0]);this._isDisabledDatepicker(f[0])||(this._adjustInstDate(u,i+("M"===r?this._get(u,"showCurrentAtPos"):0),r),this._updateDatepicker(u))},_gotoToday:function(t){var r,u=n(t),i=this._getInst(u[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(r=new Date,i.selectedDay=r.getDate(),i.drawMonth=i.selectedMonth=r.getMonth(),i.drawYear=i.selectedYear=r.getFullYear());this._notifyChange(i);this._adjustDate(u)},_selectMonthYear:function(t,i,r){var f=n(t),u=this._getInst(f[0]);u["selected"+("M"===r?"Month":"Year")]=u["draw"+("M"===r?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10);this._notifyChange(u);this._adjustDate(f)},_selectDay:function(t,i,r,u){var f,e=n(t);n(u).hasClass(this._unselectableClass)||this._isDisabledDatepicker(e[0])||(f=this._getInst(e[0]),f.selectedDay=f.currentDay=n("a",u).html(),f.selectedMonth=f.currentMonth=i,f.selectedYear=f.currentYear=r,this._selectDate(t,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(t){var i=n(t);this._selectDate(i,"")},_selectDate:function(t,i){var u,f=n(t),r=this._getInst(f[0]);i=null!=i?i:this._formatDate(r);r.input&&r.input.val(i);this._updateAlternate(r);u=this._get(r,"onSelect");u?u.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change");r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var i,r,u,f=this._get(t,"altField");f&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),u=this.formatDate(i,r,this._getFormatConfig(t)),n(f).each(function(){n(this).val(u)}))},noWeekends:function(n){var t=n.getDay();return[t>0&&6>t,""]},iso8601Week:function(n){var i,t=new Date(n.getTime());return t.setDate(t.getDate()+4-(t.getDay()||7)),i=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((i-t)/864e5)/7)+1},parseDate:function(t,i,r){if(null==t||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;for(var a,v,u,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof y?y:(new Date).getFullYear()%100+parseInt(y,10),g=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,nt=(r?r.dayNames:null)||this._defaults.dayNames,tt=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,it=(r?r.monthNames:null)||this._defaults.monthNames,e=-1,s=-1,h=-1,p=-1,w=!1,l=function(n){var i=t.length>o+1&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var u=l(n),r="@"===n?14:"!"===n?20:"y"===n&&u?4:"o"===n?3:2,e="y"===n?r:1,o=RegExp("^\\d{"+e+","+r+"}"),t=i.substring(f).match(o);if(!t)throw"Missing number at position "+f;return f+=t[0].length,parseInt(t[0],10)},k=function(t,r,u){var e=-1,o=n.map(l(t)?u:r,function(n,t){return[[t,n]]}).sort(function(n,t){return-(n[1].length-t[1].length)});if(n.each(o,function(n,t){var r=t[1];if(i.substr(f,r.length).toLowerCase()===r.toLowerCase())return(e=t[0],f+=r.length,!1)}),-1!==e)return e+1;throw"Unknown name at position "+f;},b=function(){if(i.charAt(f)!==t.charAt(o))throw"Unexpected literal at position "+f;f++},o=0;t.length>o;o++)if(w)"'"!==t.charAt(o)||l("'")?b():w=!1;else switch(t.charAt(o)){case"d":h=c("d");break;case"D":k("D",g,nt);break;case"o":p=c("o");break;case"m":s=c("m");break;case"M":s=k("M",tt,it);break;case"y":e=c("y");break;case"@":u=new Date(c("@"));e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"!":u=new Date((c("!")-this._ticksTo1970)/1e4);e=u.getFullYear();s=u.getMonth()+1;h=u.getDate();break;case"'":l("'")?b():w=!0;break;default:b()}if(i.length>f&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(-1===e?e=(new Date).getFullYear():100>e&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=e?0:-100)),p>-1)for(s=1,h=p;;){if(a=this._getDaysInMonth(e,s-1),a>=h)break;s++;h-=a}if(u=this._daylightSavingAdjust(new Date(e,s-1,h)),u.getFullYear()!==e||u.getMonth()+1!==s||u.getDate()!==h)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(n,t,i){if(!t)return"";var u,h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,c=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,f=function(t){var i=n.length>u+1&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))for(;i>r.length;)r="0"+r;return r},s=function(n,t,i,r){return f(n)?r[t]:i[t]},r="",o=!1;if(t)for(u=0;n.length>u;u++)if(o)"'"!==n.charAt(u)||f("'")?r+=n.charAt(u):o=!1;else switch(n.charAt(u)){case"d":r+=e("d",t.getDate(),2);break;case"D":r+=s("D",t.getDay(),h,c);break;case"o":r+=e("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":r+=e("m",t.getMonth()+1,2);break;case"M":r+=s("M",t.getMonth(),l,a);break;case"y":r+=f("y")?t.getFullYear():(10>t.getYear()%100?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=1e4*t.getTime()+this._ticksTo1970;break;case"'":f("'")?r+="'":o=!0;break;default:r+=n.charAt(u)}return r},_possibleChars:function(n){for(var i="",r=!1,u=function(i){var r=n.length>t+1&&n.charAt(t+1)===i;return r&&t++,r},t=0;n.length>t;t++)if(r)"'"!==n.charAt(t)||u("'")?i+=n.charAt(t):r=!1;else switch(n.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":u("'")?i+="'":r=!0;break;default:i+=n.charAt(t)}return i},_get:function(n,t){return void 0!==n.settings[t]?n.settings[t]:this._defaults[t]},_setDateFromField:function(n,t){if(n.input.val()!==n.lastVal){var f=this._get(n,"dateFormat"),r=n.lastVal=n.input?n.input.val():null,u=this._getDefaultDate(n),i=u,e=this._getFormatConfig(n);try{i=this.parseDate(f,r,e)||u}catch(o){r=t?"":r}n.selectedDay=i.getDate();n.drawMonth=n.selectedMonth=i.getMonth();n.drawYear=n.selectedYear=i.getFullYear();n.currentDay=r?i.getDate():0;n.currentMonth=r?i.getMonth():0;n.currentYear=r?i.getFullYear():0;this._adjustInstDate(n)}},_getDefaultDate:function(n){return this._restrictMinMax(n,this._determineDate(n,this._get(n,"defaultDate"),new Date))},_determineDate:function(t,i,r){var f=function(n){var t=new Date;return t.setDate(t.getDate()+n),t},e=function(i){try{return n.datepicker.parseDate(n.datepicker._get(t,"dateFormat"),i,n.datepicker._getFormatConfig(t))}catch(h){}for(var o=(i.toLowerCase().match(/^c/)?n.datepicker._getDate(t):null)||new Date,f=o.getFullYear(),e=o.getMonth(),r=o.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(i);u;){switch(u[2]||"d"){case"d":case"D":r+=parseInt(u[1],10);break;case"w":case"W":r+=7*parseInt(u[1],10);break;case"m":case"M":e+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e));break;case"y":case"Y":f+=parseInt(u[1],10);r=Math.min(r,n.datepicker._getDaysInMonth(f,e))}u=s.exec(i)}return new Date(f,e,r)},u=null==i||""===i?r:"string"==typeof i?e(i):"number"==typeof i?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&"Invalid Date"==""+u?r:u,u&&(u.setHours(0),u.setMinutes(0),u.setSeconds(0),u.setMilliseconds(0)),this._daylightSavingAdjust(u)},_daylightSavingAdjust:function(n){return n?(n.setHours(n.getHours()>12?n.getHours()+2:0),n):null},_setDate:function(n,t,i){var u=!t,f=n.selectedMonth,e=n.selectedYear,r=this._restrictMinMax(n,this._determineDate(n,t,new Date));n.selectedDay=n.currentDay=r.getDate();n.drawMonth=n.selectedMonth=n.currentMonth=r.getMonth();n.drawYear=n.selectedYear=n.currentYear=r.getFullYear();f===n.selectedMonth&&e===n.selectedYear||i||this._notifyChange(n);this._adjustInstDate(n);n.input&&n.input.val(u?"":this._formatDate(n))},_getDate:function(n){return!n.currentYear||n.input&&""===n.input.val()?null:this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay))},_attachHandlers:function(t){var r=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){n.datepicker._adjustDate(i,-r,"M")},next:function(){n.datepicker._adjustDate(i,+r,"M")},hide:function(){n.datepicker._hideDatepicker()},today:function(){n.datepicker._gotoToday(i)},selectDay:function(){return n.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return n.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return n.datepicker._selectMonthYear(i,this,"Y"),!1}};n(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(n){var b,s,rt,h,ut,k,ft,et,ri,c,ot,ui,fi,ei,oi,st,g,si,ht,nt,o,y,ct,p,lt,l,u,at,vt,yt,pt,tt,wt,i,bt,kt,d,a,it,dt=new Date,gt=this._daylightSavingAdjust(new Date(dt.getFullYear(),dt.getMonth(),dt.getDate())),f=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),e=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=1!==e[0]||1!==e[1],ii=this._daylightSavingAdjust(n.currentDay?new Date(n.currentYear,n.currentMonth,n.currentDay):new Date(9999,9,9)),w=this._getMinMaxDate(n,"min"),v=this._getMinMaxDate(n,"max"),t=n.drawMonth-ai,r=n.drawYear;if(0>t&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-e[0]*e[1]+1,v.getDate())),b=w&&w>b?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,0>t&&(t=11,r--);for(n.drawMonth=t,n.drawYear=r,s=this._get(n,"prevText"),s=ni?this.formatDate(s,this._daylightSavingAdjust(new Date(r,t-ci,1)),this._getFormatConfig(n)):s,rt=this._canAdjustMonth(n,-1,r,t)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"e":"w")+"'>"+s+"<\/span><\/a>",h=this._get(n,"nextText"),h=ni?this.formatDate(h,this._daylightSavingAdjust(new Date(r,t+ci,1)),this._getFormatConfig(n)):h,ut=this._canAdjustMonth(n,1,r,t)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>":hi?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+h+"'><span class='ui-icon ui-icon-circle-triangle-"+(f?"w":"e")+"'>"+h+"<\/span><\/a>",k=this._get(n,"currentText"),ft=this._get(n,"gotoCurrent")&&n.currentDay?ii:gt,k=ni?this.formatDate(k,ft,this._getFormatConfig(n)):k,et=n.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(n,"closeText")+"<\/button>",ri=li?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(f?et:"")+(this._isInRange(n,ft)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+k+"<\/button>":"")+(f?"":et)+"<\/div>":"",c=parseInt(this._get(n,"firstDay"),10),c=isNaN(c)?0:c,ot=this._get(n,"showWeek"),ui=this._get(n,"dayNames"),fi=this._get(n,"dayNamesMin"),ei=this._get(n,"monthNames"),oi=this._get(n,"monthNamesShort"),st=this._get(n,"beforeShowDay"),g=this._get(n,"showOtherMonths"),si=this._get(n,"selectOtherMonths"),ht=this._getDefaultDate(n),nt="",y=0;e[0]>y;y++){for(ct="",this.maxRows=4,p=0;e[1]>p;p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",e[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(f?"right":"left");break;case e[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(f?"left":"right");break;default:u+=" ui-datepicker-group-middle";l=""}u+="'>"}for(u+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+l+"'>"+(/all|left/.test(l)&&0===y?f?ut:rt:"")+(/all|right/.test(l)&&0===y?f?rt:ut:"")+this._generateMonthYearHeader(n,t,r,w,v,y>0||p>0,ei,oi)+"<\/div><table class='ui-datepicker-calendar'><thead><tr>",at=ot?"<th class='ui-datepicker-week-col'>"+this._get(n,"weekHeader")+"<\/th>":"",o=0;7>o;o++)vt=(o+c)%7,at+="<th scope='col'"+((o+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+ui[vt]+"'>"+fi[vt]+"<\/span><\/th>";for(u+=at+"<\/tr><\/thead><tbody>",yt=this._getDaysInMonth(r,t),r===n.selectedYear&&t===n.selectedMonth&&(n.selectedDay=Math.min(n.selectedDay,yt)),pt=(this._getFirstDayOfMonth(r,t)-c+7)%7,tt=Math.ceil((pt+yt)/7),wt=ti?this.maxRows>tt?this.maxRows:tt:tt,this.maxRows=wt,i=this._daylightSavingAdjust(new Date(r,t,1-pt)),bt=0;wt>bt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",o=0;7>o;o++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&w>i||v&&i>v,kt+="<td class='"+((o+c+6)%7>=5?" ui-datepicker-week-end":"")+(a?" ui-datepicker-other-month":"")+(i.getTime()===lt.getTime()&&t===n.selectedMonth&&n._keyEvent||ht.getTime()===i.getTime()&&ht.getTime()===lt.getTime()?" "+this._dayOverClass:"")+(it?" "+this._unselectableClass+" ui-state-disabled":"")+(a&&!g?"":" "+d[1]+(i.getTime()===ii.getTime()?" "+this._currentClass:"")+(i.getTime()===gt.getTime()?" ui-datepicker-today":""))+"'"+(a&&!g||!d[2]?"":" title='"+d[2].replace(/'/g,"&#39;")+"'")+(it?"":" data-handler='selectDay' data-event='click' data-month='"+i.getMonth()+"' data-year='"+i.getFullYear()+"'")+">"+(a&&!g?"&#xa0;":it?"<span class='ui-state-default'>"+i.getDate()+"<\/span>":"<a class='ui-state-default"+(i.getTime()===gt.getTime()?" ui-state-highlight":"")+(i.getTime()===ii.getTime()?" ui-state-active":"")+(a?" ui-priority-secondary":"")+"' href='#'>"+i.getDate()+"<\/a>")+"<\/td>",i.setDate(i.getDate()+1),i=this._daylightSavingAdjust(i);u+=kt+"<\/tr>"}t++;t>11&&(t=0,r++);u+="<\/tbody><\/table>"+(ti?"<\/div>"+(e[0]>0&&p===e[1]-1?"<div class='ui-datepicker-row-break'><\/div>":""):"");ct+=u}nt+=ct}return nt+=ri,n._keyEvent=!1,nt},_generateMonthYearHeader:function(n,t,i,r,u,f,e,o){var k,d,h,v,y,p,s,a,w=this._get(n,"changeMonth"),b=this._get(n,"changeYear"),g=this._get(n,"showMonthAfterYear"),c="<div class='ui-datepicker-title'>",l="";if(f||!w)l+="<span class='ui-datepicker-month'>"+e[t]+"<\/span>";else{for(k=r&&r.getFullYear()===i,d=u&&u.getFullYear()===i,l+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;12>h;h++)(!k||h>=r.getMonth())&&(!d||u.getMonth()>=h)&&(l+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"<\/option>");l+="<\/select>"}if(g||(c+=l+(!f&&w&&b?"":"&#xa0;")),!n.yearshtml)if(n.yearshtml="",f||!b)c+="<span class='ui-datepicker-year'>"+i+"<\/span>";else{for(v=this._get(n,"yearRange").split(":"),y=(new Date).getFullYear(),p=function(n){var t=n.match(/c[+\-].*/)?i+parseInt(n.substring(1),10):n.match(/[+\-].*/)?y+parseInt(n,10):parseInt(n,10);return isNaN(t)?y:t},s=p(v[0]),a=Math.max(s,p(v[1]||"")),s=r?Math.max(s,r.getFullYear()):s,a=u?Math.min(a,u.getFullYear()):a,n.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";a>=s;s++)n.yearshtml+="<option value='"+s+"'"+(s===i?" selected='selected'":"")+">"+s+"<\/option>";n.yearshtml+="<\/select>";c+=n.yearshtml;n.yearshtml=null}return c+=this._get(n,"yearSuffix"),g&&(c+=(!f&&w&&b?"":"&#xa0;")+l),c+"<\/div>"},_adjustInstDate:function(n,t,i){var u=n.drawYear+("Y"===i?t:0),f=n.drawMonth+("M"===i?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+("D"===i?t:0),r=this._restrictMinMax(n,this._daylightSavingAdjust(new Date(u,f,e)));n.selectedDay=r.getDate();n.drawMonth=n.selectedMonth=r.getMonth();n.drawYear=n.selectedYear=r.getFullYear();("M"===i||"Y"===i)&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&i>t?i:t;return r&&u>r?r:u},_notifyChange:function(n){var t=this._get(n,"onChangeMonthYear");t&&t.apply(n.input?n.input[0]:null,[n.selectedYear,n.selectedMonth+1,n])},_getNumberOfMonths:function(n){var t=this._get(n,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(n,t){return this._determineDate(n,this._get(n,t+"Date"),null)},_getDaysInMonth:function(n,t){return 32-this._daylightSavingAdjust(new Date(n,t,32)).getDate()},_getFirstDayOfMonth:function(n,t){return new Date(n,t,1).getDay()},_canAdjustMonth:function(n,t,i,r){var f=this._getNumberOfMonths(n),u=this._daylightSavingAdjust(new Date(i,r+(0>t?t:f[0]*f[1]),1));return 0>t&&u.setDate(this._getDaysInMonth(u.getFullYear(),u.getMonth())),this._isInRange(n,u)},_isInRange:function(n,t){var i,f,e=this._getMinMaxDate(n,"min"),o=this._getMinMaxDate(n,"max"),r=null,u=null,s=this._get(n,"yearRange");return s&&(i=s.split(":"),f=(new Date).getFullYear(),r=parseInt(i[0],10),u=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=f),i[1].match(/[+\-].*/)&&(u+=f)),(!e||t.getTime()>=e.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!u||u>=t.getFullYear())},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(n,"dayNamesShort"),dayNames:this._get(n,"dayNames"),monthNamesShort:this._get(n,"monthNamesShort"),monthNames:this._get(n,"monthNames")}},_formatDate:function(n,t,i,r){t||(n.currentDay=n.selectedDay,n.currentMonth=n.selectedMonth,n.currentYear=n.selectedYear);var u=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,i,t)):this._daylightSavingAdjust(new Date(n.currentYear,n.currentMonth,n.currentDay));return this.formatDate(this._get(n,"dateFormat"),u,this._getFormatConfig(n))}});n.fn.datepicker=function(t){if(!this.length)return this;n.datepicker.initialized||(n(document).mousedown(n.datepicker._checkExternalClick),n.datepicker.initialized=!0);0===n("#"+n.datepicker._mainDivId).length&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)}):n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i))};n.datepicker=new l;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.11.1";n.datepicker;n.widget("ui.draggable",n.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative");this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._setHandleClassName();this._mouseInit()},_setOption:function(n,t){this._super(n,t);"handle"===n&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(t){var i=this.document[0],r=this.options;try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&n(i.activeElement).blur()}catch(u){}return this.helper||r.disabled||n(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(n(r.iframeFix===!0?"iframe":r.iframeFix).each(function(){n("<div class='ui-draggable-iframeFix' style='background: #fff;'><\/div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(n(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),n.ui.ddmanager&&(n.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),n.ui.ddmanager&&n.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var r=this,i=!1;return n.ui.ddmanager&&!this.options.dropBehaviour&&(i=n.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||this.options.revert===!0||n.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?n(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return n("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),n.ui.ddmanager&&n.ui.ddmanager.dragStop(this,t),this.element.focus(),n.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){return this.options.handle?!!n(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element;this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):"clone"===r.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===r.appendTo?this.element[0].parentNode:r.appendTo),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(n){return/(html|body)/i.test(n.tagName)||n===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var n=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:n.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f,t,i,r=this.options,u=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?(this.containment=[n(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,n(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,n(window).scrollLeft()+n(window).width()-this.helperProportions.width-this.margins.left,n(window).scrollTop()+(n(window).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===r.containment?(this.containment=[0,0,n(u).width()-this.helperProportions.width-this.margins.left,(n(u).height()||u.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):r.containment.constructor===Array?(this.containment=r.containment,void 0):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i&&(f="hidden"!==t.css("overflow"),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(f?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t),void 0):(this.containment=null,void 0)},_convertPositionTo:function(n,t){t||(t=this.position);var i="absolute"===n?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*i}},_generatePosition:function(n,t){var i,s,u,f,r=this.options,h=this._isRootNode(this.scrollParent[0]),e=n.pageX,o=n.pageY;return h&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,n.pageX-this.offset.click.left<i[0]&&(e=i[0]+this.offset.click.left),n.pageY-this.offset.click.top<i[1]&&(o=i[1]+this.offset.click.top),n.pageX-this.offset.click.left>i[2]&&(e=i[2]+this.offset.click.left),n.pageY-this.offset.click.top>i[3]&&(o=i[3]+this.offset.click.top)),r.grid&&(u=r.grid[1]?this.originalPageY+Math.round((o-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,o=i?u-this.offset.click.top>=i[1]||u-this.offset.click.top>i[3]?u:u-this.offset.click.top>=i[1]?u-r.grid[1]:u+r.grid[1]:u,f=r.grid[0]?this.originalPageX+Math.round((e-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,e=i?f-this.offset.click.left>=i[0]||f-this.offset.click.left>i[2]?f:f-this.offset.click.left>=i[0]?f-r.grid[0]:f+r.grid[0]:f),"y"===r.axis&&(e=this.originalPageX),"x"===r.axis&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:h?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove();this.helper=null;this.cancelHelperRemoval=!1;this.destroyOnClear&&this.destroy()},_trigger:function(t,i,r){return r=r||this._uiHash(),n.ui.plugin.call(this,t,[i,r,this],!0),"drag"===t&&(this.positionAbs=this._convertPositionTo("absolute")),n.Widget.prototype._trigger.call(this,t,i,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});n.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,r){var u=r.options,f=n.extend({},i,{item:r.element});r.sortables=[];n(u.connectToSortable).each(function(){var i=n(this).sortable("instance");i&&!i.options.disabled&&(r.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",t,f))})},stop:function(t,i,r){var u=n.extend({},i,{item:r.element});n.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,"original"===r.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,u))})},drag:function(t,i,r){var u=this;n.each(r.sortables,function(){var f=!1,e=this;this.instance.positionAbs=r.positionAbs;this.instance.helperProportions=r.helperProportions;this.instance.offset.click=r.offset.click;this.instance._intersectsWith(this.instance.containerCache)&&(f=!0,n.each(r.sortables,function(){return this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this!==e&&this.instance._intersectsWith(this.instance.containerCache)&&n.contains(e.instance.element[0],this.instance.element[0])&&(f=!1),f}));f?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=n(u).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}});n.ui.plugin.add("draggable","cursor",{start:function(t,i,r){var u=n("body"),f=r.options;u.css("cursor")&&(f._cursor=u.css("cursor"));u.css("cursor",f.cursor)},stop:function(t,i,r){var u=r.options;u._cursor&&n("body").css("cursor",u._cursor)}});n.ui.plugin.add("draggable","opacity",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("opacity")&&(f._opacity=u.css("opacity"));u.css("opacity",f.opacity)},stop:function(t,i,r){var u=r.options;u._opacity&&n(i.helper).css("opacity",u._opacity)}});n.ui.plugin.add("draggable","scroll",{start:function(n,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1));i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,r){var u=r.options,o=!1,e=r.scrollParentNotHidden[0],f=r.document[0];e!==f&&"HTML"!==e.tagName?(u.axis&&"x"===u.axis||(r.overflowOffset.top+e.offsetHeight-t.pageY<u.scrollSensitivity?e.scrollTop=o=e.scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(e.scrollTop=o=e.scrollTop-u.scrollSpeed)),u.axis&&"y"===u.axis||(r.overflowOffset.left+e.offsetWidth-t.pageX<u.scrollSensitivity?e.scrollLeft=o=e.scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(e.scrollLeft=o=e.scrollLeft-u.scrollSpeed))):(u.axis&&"x"===u.axis||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?o=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(o=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&"y"===u.axis||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?o=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(o=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));o!==!1&&n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(r,t)}});n.ui.plugin.add("draggable","snap",{start:function(t,i,r){var u=r.options;r.snapElements=[];n(u.snap.constructor!==String?u.snap.items||":data(ui-draggable)":u.snap).each(function(){var t=n(this),i=t.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,r){for(var e,o,s,h,c,a,l,v,w,b=r.options,f=b.snapTolerance,y=i.offset.left,k=y+r.helperProportions.width,p=i.offset.top,d=p+r.helperProportions.height,u=r.snapElements.length-1;u>=0;u--)c=r.snapElements[u].left,a=c+r.snapElements[u].width,l=r.snapElements[u].top,v=l+r.snapElements[u].height,c-f>k||y>a+f||l-f>d||p>v+f||!n.contains(r.snapElements[u].item.ownerDocument,r.snapElements[u].item)?(r.snapElements[u].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=!1):("inner"!==b.snapMode&&(e=f>=Math.abs(l-d),o=f>=Math.abs(v-p),s=f>=Math.abs(c-k),h=f>=Math.abs(a-y),e&&(i.position.top=r._convertPositionTo("relative",{top:l-r.helperProportions.height,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c-r.helperProportions.width}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a}).left-r.margins.left)),w=e||o||s||h,"outer"!==b.snapMode&&(e=f>=Math.abs(l-p),o=f>=Math.abs(v-d),s=f>=Math.abs(c-y),h=f>=Math.abs(a-k),e&&(i.position.top=r._convertPositionTo("relative",{top:l,left:0}).top-r.margins.top),o&&(i.position.top=r._convertPositionTo("relative",{top:v-r.helperProportions.height,left:0}).top-r.margins.top),s&&(i.position.left=r._convertPositionTo("relative",{top:0,left:c}).left-r.margins.left),h&&(i.position.left=r._convertPositionTo("relative",{top:0,left:a-r.helperProportions.width}).left-r.margins.left)),!r.snapElements[u].snapping&&(e||o||s||h||w)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,t,n.extend(r._uiHash(),{snapItem:r.snapElements[u].item})),r.snapElements[u].snapping=e||o||s||h||w)}});n.ui.plugin.add("draggable","stack",{start:function(t,i,r){var f,e=r.options,u=n.makeArray(n(e.stack)).sort(function(t,i){return(parseInt(n(t).css("zIndex"),10)||0)-(parseInt(n(i).css("zIndex"),10)||0)});u.length&&(f=parseInt(n(u[0]).css("zIndex"),10)||0,n(u).each(function(t){n(this).css("zIndex",f+t)}),this.css("zIndex",f+u.length))}});n.ui.plugin.add("draggable","zIndex",{start:function(t,i,r){var u=n(i.helper),f=r.options;u.css("zIndex")&&(f._zIndex=u.css("zIndex"));u.css("zIndex",f.zIndex)},stop:function(t,i,r){var u=r.options;u._zIndex&&n(i.helper).css("zIndex",u._zIndex)}});n.ui.draggable;n.widget("ui.resizable",n.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(n){return parseInt(n,10)||0},_isNumber:function(n){return!isNaN(parseInt(n,10))},_hasScroll:function(t,i){if("hidden"===n(t).css("overflow"))return!1;var r=i&&"left"===i?"scrollLeft":"scrollTop",u=!1;return t[r]>0?!0:(t[r]=1,u=t[r]>0,t[r]=0,u)},_create:function(){var e,f,r,i,o,u=this,t=this.options;if(this.element.addClass("ui-resizable"),n.extend(this,{_aspectRatio:!!t.aspectRatio,aspectRatio:t.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:t.helper||t.ghost||t.animate?t.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(n("<div class='ui-wrapper' style='overflow: hidden;'><\/div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=t.handles||(n(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},f=0;e.length>f;f++)r=n.trim(e[f]),o="ui-resizable-"+r,i=n("<div class='ui-resizable-handle "+o+"'><\/div>"),i.css({zIndex:t.zIndex}),"se"===r&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[r]=".ui-resizable-"+r,this.element.append(i);this._renderAxis=function(t){var i,r,u,f;t=t||this.element;for(i in this.handles)this.handles[i].constructor===String&&(this.handles[i]=this.element.children(this.handles[i]).first().show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(r=n(this.handles[i],this.element),f=/sw|ne|nw|se|n|s/.test(i)?r.outerHeight():r.outerWidth(),u=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(u,f),this._proportionallyResize()),n(this.handles[i]).length};this._renderAxis(this.element);this._handles=n(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){u.resizing||(this.className&&(i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),u.axis=i&&i[1]?i[1]:"se")});t.autoHide&&(this._handles.hide(),n(this.element).addClass("ui-resizable-autohide").mouseenter(function(){t.disabled||(n(this).removeClass("ui-resizable-autohide"),u._handles.show())}).mouseleave(function(){t.disabled||u.resizing||(n(this).addClass("ui-resizable-autohide"),u._handles.hide())}));this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,i=function(t){n(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(t){var r,i,u=!1;for(r in this.handles)i=n(this.handles[r])[0],(i===t.target||n.contains(i,t.target))&&(u=!0);return!this.options.disabled&&u},_mouseStart:function(t){var u,f,e,r=this.options,i=this.element;return this.resizing=!0,this._renderProxy(),u=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),r.containment&&(u+=n(r.containment).scrollLeft()||0,f+=n(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:u,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:i.width(),height:i.height()},this.originalSize=this._helper?{width:i.outerWidth(),height:i.outerHeight()}:{width:i.width(),height:i.height()},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalPosition={left:u,top:f},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor","auto"===e?this.axis+"-resize":e),i.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,r,u=this.originalMousePosition,e=this.axis,o=t.pageX-u.left||0,s=t.pageY-u.top||0,f=this._change[e];return this._updatePrevProperties(),f?(i=f.apply(this,[t,o,s]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(t){this.resizing=!1;var r,u,f,e,o,s,h,c=this.options,i=this;return this._helper&&(r=this._proportionallyResizeElements,u=r.length&&/textarea/i.test(r[0].nodeName),f=u&&this._hasScroll(r[0],"left")?0:i.sizeDiff.height,e=u?0:i.sizeDiff.width,o={width:i.helper.width()-e,height:i.helper.height()-f},s=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null,c.animate||this.element.css(n.extend(o,{top:h,left:s})),i.helper.height(i.size.height),i.helper.width(i.size.width),this._helper&&!c.animate&&this._proportionallyResize()),n("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left};this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var n={};return this.position.top!==this.prevPosition.top&&(n.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(n.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(n.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(n.height=this.size.height+"px"),this.helper.css(n),n},_updateVirtualBoundaries:function(n){var r,u,f,e,t,i=this.options;t={minWidth:this._isNumber(i.minWidth)?i.minWidth:0,maxWidth:this._isNumber(i.maxWidth)?i.maxWidth:1/0,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:1/0};(this._aspectRatio||n)&&(r=t.minHeight*this.aspectRatio,f=t.minWidth/this.aspectRatio,u=t.maxHeight*this.aspectRatio,e=t.maxWidth/this.aspectRatio,r>t.minWidth&&(t.minWidth=r),f>t.minHeight&&(t.minHeight=f),t.maxWidth>u&&(t.maxWidth=u),t.maxHeight>e&&(t.maxHeight=e));this._vBoundaries=t},_updateCache:function(n){this.offset=this.helper.offset();this._isNumber(n.left)&&(this.position.left=n.left);this._isNumber(n.top)&&(this.position.top=n.top);this._isNumber(n.height)&&(this.size.height=n.height);this._isNumber(n.width)&&(this.size.width=n.width)},_updateRatio:function(n){var t=this.position,i=this.size,r=this.axis;return this._isNumber(n.height)?n.width=n.height*this.aspectRatio:this._isNumber(n.width)&&(n.height=n.width/this.aspectRatio),"sw"===r&&(n.left=t.left+(i.width-n.width),n.top=null),"nw"===r&&(n.top=t.top+(i.height-n.height),n.left=t.left+(i.width-n.width)),n},_respectSize:function(n){var t=this._vBoundaries,i=this.axis,r=this._isNumber(n.width)&&t.maxWidth&&t.maxWidth<n.width,u=this._isNumber(n.height)&&t.maxHeight&&t.maxHeight<n.height,f=this._isNumber(n.width)&&t.minWidth&&t.minWidth>n.width,e=this._isNumber(n.height)&&t.minHeight&&t.minHeight>n.height,o=this.originalPosition.left+this.originalSize.width,s=this.position.top+this.size.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return f&&(n.width=t.minWidth),e&&(n.height=t.minHeight),r&&(n.width=t.maxWidth),u&&(n.height=t.maxHeight),f&&h&&(n.left=o-t.minWidth),r&&h&&(n.left=o-t.maxWidth),e&&c&&(n.top=s-t.minHeight),u&&c&&(n.top=s-t.maxHeight),n.width||n.height||n.left||!n.top?n.width||n.height||n.top||!n.left||(n.left=null):n.top=null,n},_getPaddingPlusBorderDimensions:function(n){for(var t=0,i=[],r=[n.css("borderTopWidth"),n.css("borderRightWidth"),n.css("borderBottomWidth"),n.css("borderLeftWidth")],u=[n.css("paddingTop"),n.css("paddingRight"),n.css("paddingBottom"),n.css("paddingLeft")];4>t;t++)i[t]=parseInt(r[t],10)||0,i[t]+=parseInt(u[t],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var n,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)n=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(n)),n.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset();this._helper?(this.helper=this.helper||n("<div style='overflow:hidden;'><\/div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(n,t){return{width:this.originalSize.width+t}},w:function(n,t){var i=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:i.width-t}},n:function(n,t,i){var r=this.originalSize,u=this.originalPosition;return{top:u.top+i,height:r.height-i}},s:function(n,t,i){return{height:this.originalSize.height+i}},se:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},sw:function(t,i,r){return n.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,r]))},ne:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,r]))},nw:function(t,i,r){return n.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,r]))}},_propagate:function(t,i){n.ui.plugin.call(this,t,[i,this.ui()]);"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});n.ui.plugin.add("resizable","animate",{stop:function(t){var i=n(this).resizable("instance"),u=i.options,r=i._proportionallyResizeElements,f=r.length&&/textarea/i.test(r[0].nodeName),s=f&&i._hasScroll(r[0],"left")?0:i.sizeDiff.height,h=f?0:i.sizeDiff.width,c={width:i.size.width-h,height:i.size.height-s},e=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,o=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(n.extend(c,o&&e?{top:o,left:e}:{}),{duration:u.animateDuration,easing:u.animateEasing,step:function(){var u={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};r&&r.length&&n(r[0]).css({width:u.width,height:u.height});i._updateCache(u);i._propagate("resize",t)}})}});n.ui.plugin.add("resizable","containment",{start:function(){var r,f,e,o,s,h,c,t=n(this).resizable("instance"),l=t.options,a=t.element,u=l.containment,i=u instanceof n?u.get(0):/parent/.test(u)?a.parent().get(0):u;i&&(t.containerElement=n(i),/document/.test(u)||u===document?(t.containerOffset={left:0,top:0},t.containerPosition={left:0,top:0},t.parentData={element:n(document),left:0,top:0,width:n(document).width(),height:n(document).height()||document.body.parentNode.scrollHeight}):(r=n(i),f=[],n(["Top","Right","Left","Bottom"]).each(function(n,i){f[n]=t._num(r.css("padding"+i))}),t.containerOffset=r.offset(),t.containerPosition=r.position(),t.containerSize={height:r.innerHeight()-f[3],width:r.innerWidth()-f[1]},e=t.containerOffset,o=t.containerSize.height,s=t.containerSize.width,h=t._hasScroll(i,"left")?i.scrollWidth:s,c=t._hasScroll(i)?i.scrollHeight:o,t.parentData={element:i,left:e.left,top:e.top,width:h,height:c}))},resize:function(t){var o,s,h,c,i=n(this).resizable("instance"),v=i.options,r=i.containerOffset,l=i.position,f=i._aspectRatio||t.shiftKey,e={top:0,left:0},a=i.containerElement,u=!0;a[0]!==document&&/static/.test(a.css("position"))&&(e=r);l.left<(i._helper?r.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-r.left:i.position.left-e.left),f&&(i.size.height=i.size.width/i.aspectRatio,u=!1),i.position.left=v.helper?r.left:0);l.top<(i._helper?r.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-r.top:i.position.top),f&&(i.size.width=i.size.height*i.aspectRatio,u=!1),i.position.top=i._helper?r.top:0);h=i.containerElement.get(0)===i.element.parent().get(0);c=/relative|absolute/.test(i.containerElement.css("position"));h&&c?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top);o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-e.left:i.offset.left-r.left));s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-e.top:i.offset.top-r.top));o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,f&&(i.size.height=i.size.width/i.aspectRatio,u=!1));s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,f&&(i.size.width=i.size.height*i.aspectRatio,u=!1));u||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=n(this).resizable("instance"),r=t.options,u=t.containerOffset,f=t.containerPosition,e=t.containerElement,i=n(t.helper),o=i.offset(),s=i.outerWidth()-t.sizeDiff.width,h=i.outerHeight()-t.sizeDiff.height;t._helper&&!r.animate&&/relative/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h});t._helper&&!r.animate&&/static/.test(e.css("position"))&&n(this).css({left:o.left-f.left-u.left,width:s,height:h})}});n.ui.plugin.add("resizable","alsoResize",{start:function(){var r=n(this).resizable("instance"),t=r.options,i=function(t){n(t).each(function(){var t=n(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};"object"!=typeof t.alsoResize||t.alsoResize.parentNode?i(t.alsoResize):t.alsoResize.length?(t.alsoResize=t.alsoResize[0],i(t.alsoResize)):n.each(t.alsoResize,function(n){i(n)})},resize:function(t,i){var r=n(this).resizable("instance"),u=r.options,f=r.originalSize,e=r.originalPosition,s={height:r.size.height-f.height||0,width:r.size.width-f.width||0,top:r.position.top-e.top||0,left:r.position.left-e.left||0},o=function(t,r){n(t).each(function(){var t=n(this),f=n(this).data("ui-resizable-alsoresize"),u={},e=r&&r.length?r:t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];n.each(e,function(n,t){var i=(f[t]||0)+(s[t]||0);i&&i>=0&&(u[t]=i||null)});t.css(u)})};"object"!=typeof u.alsoResize||u.alsoResize.nodeType?o(u.alsoResize):n.each(u.alsoResize,function(n,t){o(n,t)})},stop:function(){n(this).removeData("resizable-alsoresize")}});n.ui.plugin.add("resizable","ghost",{start:function(){var t=n(this).resizable("instance"),i=t.options,r=t.size;t.ghost=t.originalElement.clone();t.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:"");t.ghost.appendTo(t.helper)},resize:function(){var t=n(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=n(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}});n.ui.plugin.add("resizable","grid",{resize:function(){var h,t=n(this).resizable("instance"),i=t.options,y=t.size,e=t.originalSize,o=t.originalPosition,c=t.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,s=l[0]||1,f=l[1]||1,a=Math.round((y.width-e.width)/s)*s,v=Math.round((y.height-e.height)/f)*f,r=e.width+a,u=e.height+v,p=i.maxWidth&&r>i.maxWidth,w=i.maxHeight&&u>i.maxHeight,b=i.minWidth&&i.minWidth>r,k=i.minHeight&&i.minHeight>u;i.grid=l;b&&(r+=s);k&&(u+=f);p&&(r-=s);w&&(u-=f);/^(se|s|e)$/.test(c)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.top=o.top-v):/^(sw)$/.test(c)?(t.size.width=r,t.size.height=u,t.position.left=o.left-a):((0>=u-f||0>=r-s)&&(h=t._getPaddingPlusBorderDimensions(this)),u-f>0?(t.size.height=u,t.position.top=o.top-v):(u=f-h.height,t.size.height=u,t.position.top=o.top+e.height-u),r-s>0?(t.size.width=r,t.position.left=o.left-a):(r=f-h.height,t.size.width=r,t.position.left=o.left+e.width-r))}});n.ui.resizable;n.widget("ui.dialog",{version:"1.11.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=n(this).css(t).offset().top;0>i&&n(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height};this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)};this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;this._createWrapper();this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog);this._createTitlebar();this._createButtonPane();this.options.draggable&&n.fn.draggable&&this._makeDraggable();this.options.resizable&&n.fn.resizable&&this._makeResizable();this._isOpen=!1;this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?n(t):this.document.find(t||"body").eq(0)},_destroy:function(){var n,t=this.originalPosition;this._destroyOverlay();this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach();this.uiDialog.stop(!0,!0).remove();this.originalTitle&&this.element.attr("title",this.originalTitle);n=t.parent.children().eq(t.index);n.length&&n[0]!==this.element[0]?n.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:n.noop,enable:n.noop,close:function(t){var i,r=this;if(this._isOpen&&this._trigger("beforeClose",t)!==!1){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{i=this.document[0].activeElement;i&&"body"!==i.nodeName.toLowerCase()&&n(i).blur()}catch(u){}this._hide(this.uiDialog,this.options.hide,function(){r._trigger("close",t)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var r=!1,f=this.uiDialog.siblings(".ui-front:visible").map(function(){return+n(this).css("z-index")}).get(),u=Math.max.apply(null,f);return u>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",u+1),r=!0),r&&!i&&this._trigger("focus",t),r},open:function(){var t=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=n(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var n=this._focusedElement;n||(n=this.element.find("[autofocus]"));n.length||(n=this.element.find(":tabbable"));n.length||(n=this.uiDialogButtonPane.find(":tabbable"));n.length||(n=this.uiDialogTitlebarClose.filter(":tabbable"));n.length||(n=this.uiDialog);n.eq(0).focus()},_keepFocus:function(t){function i(){var t=this.document[0].activeElement,i=this.uiDialog[0]===t||n.contains(this.uiDialog[0],t);i||this._focusTabbable()}t.preventDefault();i.call(this);this._delay(i)},_createWrapper:function(){this.uiDialog=n("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo());this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===n.ui.keyCode.ESCAPE)return t.preventDefault(),this.close(t),void 0;if(t.keyCode===n.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),r=i.filter(":first"),u=i.filter(":last");t.target!==u[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==r[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){u.focus()}),t.preventDefault()):(this._delay(function(){r.focus()}),t.preventDefault())}},mousedown:function(n){this._moveToTop(n)&&this._focusTabbable()}});this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=n("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog);this._on(this.uiDialogTitlebar,{mousedown:function(t){n(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}});this.uiDialogTitlebarClose=n("<button type='button'><\/button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar);this._on(this.uiDialogTitlebarClose,{click:function(n){n.preventDefault();this.close(n)}});t=n("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar);this._title(t);this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(n){this.options.title||n.html("&#160;");n.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=n("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiButtonSet=n("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane);this._createButtons()},_createButtons:function(){var i=this,t=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length?(this.uiDialog.removeClass("ui-dialog-buttons"),void 0):(n.each(t,function(t,r){var u,f;r=n.isFunction(r)?{click:r,text:t}:r;r=n.extend({type:"button"},r);u=r.click;r.click=function(){u.apply(i.element[0],arguments)};f={icons:r.icons,text:r.showText};delete r.icons;delete r.showText;n("<button><\/button>",r).button(f).appendTo(i.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function i(n){return{position:n.position,offset:n.offset}}var t=this,r=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,u){n(this).addClass("ui-dialog-dragging");t._blockFrames();t._trigger("dragStart",r,i(u))},drag:function(n,r){t._trigger("drag",n,i(r))},stop:function(u,f){var e=f.offset.left-t.document.scrollLeft(),o=f.offset.top-t.document.scrollTop();r.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(o>=0?"+":"")+o,of:t.window};n(this).removeClass("ui-dialog-dragging");t._unblockFrames();t._trigger("dragStop",u,i(f))}})},_makeResizable:function(){function r(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size}}var t=this,i=this.options,u=i.resizable,f=this.uiDialog.css("position"),e="string"==typeof u?u:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:e,start:function(i,u){n(this).addClass("ui-dialog-resizing");t._blockFrames();t._trigger("resizeStart",i,r(u))},resize:function(n,i){t._trigger("resize",n,r(i))},stop:function(u,f){var e=t.uiDialog.offset(),o=e.left-t.document.scrollLeft(),s=e.top-t.document.scrollTop();i.height=t.uiDialog.height();i.width=t.uiDialog.width();i.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(s>=0?"+":"")+s,of:t.window};n(this).removeClass("ui-dialog-resizing");t._unblockFrames();t._trigger("resizeStop",u,r(f))}}).css("position",f)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget();this._focusedElement=n(t.target)}})},_makeFocusTarget:function(){this._untrackInstance();this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var n=this.document.data("ui-dialog-instances");return n||(n=[],this.document.data("ui-dialog-instances",n)),n},_minHeight:function(){var n=this.options;return"auto"===n.height?n.minHeight:Math.min(n.minHeight,n.height)},_position:function(){var n=this.uiDialog.is(":visible");n||this.uiDialog.show();this.uiDialog.position(this.options.position);n||this.uiDialog.hide()},_setOptions:function(t){var i=this,r=!1,u={};n.each(t,function(n,t){i._setOption(n,t);n in i.sizeRelatedOptions&&(r=!0);n in i.resizableRelatedOptions&&(u[n]=t)});r&&(this._size(),this._position());this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",u)},_setOption:function(n,t){var u,r,i=this.uiDialog;"dialogClass"===n&&i.removeClass(this.options.dialogClass).addClass(t);"disabled"!==n&&(this._super(n,t),"appendTo"===n&&this.uiDialog.appendTo(this._appendTo()),"buttons"===n&&this._createButtons(),"closeText"===n&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===n&&(u=i.is(":data(ui-draggable)"),u&&!t&&i.draggable("destroy"),!u&&t&&this._makeDraggable()),"position"===n&&this._position(),"resizable"===n&&(r=i.is(":data(ui-resizable)"),r&&!t&&i.resizable("destroy"),r&&"string"==typeof t&&i.resizable("option","handles",t),r||t===!1||this._makeResizable()),"title"===n&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,i,r,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0});n.minWidth>n.width&&(n.width=n.minWidth);t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight();i=Math.max(0,n.minHeight-t);r="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none";"auto"===n.height?this.element.css({minHeight:i,maxHeight:r,height:"auto"}):this.element.height(Math.max(0,n.height-t));this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=n(this);return n("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return n(t.target).closest(".ui-dialog").length?!0:!!n(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1});this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(n){t||this._allowInteraction(n)||(n.preventDefault(),this._trackingInstances()[0]._focusTabbable())}});this.overlay=n("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo());this._on(this.overlay,{mousedown:"_keepFocus"});this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var n=this.document.data("ui-dialog-overlays")-1;n?this.document.data("ui-dialog-overlays",n):this.document.unbind("focusin").removeData("ui-dialog-overlays");this.overlay.remove();this.overlay=null}}});n.widget("ui.droppable",{version:"1.11.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,i=this.options,r=i.accept;this.isover=!1;this.isout=!0;this.accept=n.isFunction(r)?r:function(n){return n.is(r)};this.proportions=function(){return arguments.length?(t=arguments[0],void 0):t?t:t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}};this._addToManager(i.scope);i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(t){n.ui.ddmanager.droppables[t]=n.ui.ddmanager.droppables[t]||[];n.ui.ddmanager.droppables[t].push(this)},_splice:function(n){for(var t=0;n.length>t;t++)n[t]===this&&n.splice(t,1)},_destroy:function(){var t=n.ui.ddmanager.droppables[this.options.scope];this._splice(t);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(t,i){if("accept"===t)this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if("scope"===t){var r=n.ui.ddmanager.droppables[this.options.scope];this._splice(r);this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=n.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=n.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var r=i||n.ui.ddmanager.current,u=!1;return r&&(r.currentItem||r.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=n(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===r.options.scope&&i.accept.call(i.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return(u=!0,!1)}),u?!1:this.accept.call(this.element[0],r.currentItem||r.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(r)),this.element):!1):!1},ui:function(n){return{draggable:n.currentItem||n.element,helper:n.helper,position:n.position,offset:n.positionAbs}}});n.ui.intersect=function(){function n(n,t,i){return n>=t&&t+i>n}return function(t,i,r,u){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left,s=(t.positionAbs||t.position.absolute).top,h=o+t.helperProportions.width,c=s+t.helperProportions.height,f=i.offset.left,e=i.offset.top,l=f+i.proportions().width,a=e+i.proportions().height;switch(r){case"fit":return o>=f&&l>=h&&s>=e&&a>=c;case"intersect":return o+t.helperProportions.width/2>f&&l>h-t.helperProportions.width/2&&s+t.helperProportions.height/2>e&&a>c-t.helperProportions.height/2;case"pointer":return n(u.pageY,e,i.proportions().height)&&n(u.pageX,f,i.proportions().width);case"touch":return(s>=e&&a>=s||c>=e&&a>=c||e>s&&c>a)&&(o>=f&&l>=o||h>=f&&l>=h||f>o&&h>l);default:return!1}}}();n.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,i){var r,f,u=n.ui.ddmanager.droppables[t.options.scope]||[],o=i?i.type:null,e=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();n:for(r=0;u.length>r;r++)if(!(u[r].options.disabled||t&&!u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;e.length>f;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}u[r].visible="none"!==u[r].element.css("display");u[r].visible&&("mousedown"===o&&u[r]._activate.call(u[r],i),u[r].offset=u[r].element.offset(),u[r].proportions({width:u[r].element[0].offsetWidth,height:u[r].element[0].offsetHeight}))}},drop:function(t,i){var r=!1;return n.each((n.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&n.ui.intersect(t,this,this.options.tolerance,i)&&(r=this._drop.call(this,i)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),r},dragStart:function(t,i){t.element.parentsUntil("body").bind("scroll.droppable",function(){t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&n.ui.ddmanager.prepareOffsets(t,i);n.each(n.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,e,f,o=n.ui.intersect(t,this,this.options.tolerance,i),u=!o&&this.isover?"isout":o&&!this.isover?"isover":null;u&&(this.options.greedy&&(e=this.options.scope,f=this.element.parents(":data(ui-droppable)").filter(function(){return n(this).droppable("instance").options.scope===e}),f.length&&(r=n(f[0]).droppable("instance"),r.greedyChild="isover"===u)),r&&"isover"===u&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this["isout"===u?"isover":"isout"]=!1,this["isover"===u?"_over":"_out"].call(this,i),r&&"isout"===u&&(r.isout=!1,r.isover=!0,r._over.call(r,i)))}})},dragStop:function(t,i){t.element.parentsUntil("body").unbind("scroll.droppable");t.options.refreshPositions||n.ui.ddmanager.prepareOffsets(t,i)}};n.ui.droppable;o="ui-effects-";s=n;n.effects={effect:{}},function(n,t){function f(n,t,i){var r=h[t.type]||{};return null==n?i||!t.def?null:t.def:(n=r.floor?~~n:parseFloat(n),isNaN(n)?t.def:r.mod?(n+r.mod)%r.mod:0>n?0:n>r.max?r.max:n)}function s(f){var o=i(),s=o._rgba=[];return f=f.toLowerCase(),r(v,function(n,i){var r,h=i.re.exec(f),c=h&&i.parse(h),e=i.space||"rgba";return c?(r=o[e](c),o[u[e].cache]=r[u[e].cache],s=o._rgba=r._rgba,!1):t}),s.length?("0,0,0,0"===s.join()&&n.extend(s,e.transparent),o):e[f]}function o(n,t,i){return i=(i+1)%1,1>6*i?n+6*(t-n)*i:1>2*i?t:2>3*i?n+6*(t-n)*(2/3-i):n}var e,a=/^([\-+])=\s*(\d+\.?\d*)/,v=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[n[1],n[2],n[3],n[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(n){return[2.55*n[1],2.55*n[2],2.55*n[3],n[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(n){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(n){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(n){return[n[1],n[2]/100,n[3]/100,n[4]]}}],i=n.Color=function(t,i,r,u){return new n.Color.fn.parse(t,i,r,u)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},h={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=i.support={},l=n("<p>")[0],r=n.each;l.style.cssText="background-color:rgba(1,1,1,.5)";c.rgba=l.style.backgroundColor.indexOf("rgba")>-1;r(u,function(n,t){t.cache="_"+n;t.props.alpha={idx:3,type:"percent",def:1}});i.fn=n.extend(i.prototype,{parse:function(o,h,c,l){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(h),h=t);var a=this,v=n.type(o),y=this._rgba=[];return h!==t&&(o=[o,h,c,l],v="array"),"string"===v?this.parse(s(o)||e._default):"array"===v?(r(u.rgba.props,function(n,t){y[t.idx]=f(o[t.idx],t)}),this):"object"===v?(o instanceof i?r(u,function(n,t){o[t.cache]&&(a[t.cache]=o[t.cache].slice())}):r(u,function(t,i){var u=i.cache;r(i.props,function(n,t){if(!a[u]&&i.to){if("alpha"===n||null==o[n])return;a[u]=i.to(a._rgba)}a[u][t.idx]=f(o[n],t,!0)});a[u]&&0>n.inArray(null,a[u].slice(0,3))&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):t},is:function(n){var o=i(n),f=!0,e=this;return r(u,function(n,i){var s,u=o[i.cache];return u&&(s=e[i.cache]||i.to&&i.to(e._rgba)||[],r(i.props,function(n,i){return null!=u[i.idx]?f=u[i.idx]===s[i.idx]:t})),f}),f},_space:function(){var n=[],t=this;return r(u,function(i,r){t[r.cache]&&n.push(i)}),n.pop()},transition:function(n,t){var e=i(n),c=e._space(),o=u[c],l=0===this.alpha()?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),s=a.slice();return e=e[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=e[c],o=h[i.type]||{};null!==u&&(null===r?s[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),s[c]=f((u-r)*t+r,i)))}),this[c](s)},blend:function(t){if(1===this._rgba[3])return this;var r=this._rgba.slice(),u=r.pop(),f=i(t)._rgba;return i(n.map(r,function(n,t){return(1-u)*f[t]+u*n}))},toRgbaString:function(){var i="rgba(",t=n.map(this._rgba,function(n,t){return null==n?t>2?1:0:n});return 1===t[3]&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return null==n&&(n=t>2?1:0),t&&3>t&&(n=Math.round(100*n)+"%"),n});return 1===t[3]&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(255*r)),"#"+n.map(i,function(n){return n=(n||0).toString(16),1===n.length?"0"+n:n}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var s,h,i=n[0]/255,r=n[1]/255,f=n[2]/255,c=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,l=.5*o;return s=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,h=0===t?0:.5>=l?t/o:t/(2-o),[Math.round(s)%360,h,l,null==c?1:c]};u.hsla.from=function(n){if(null==n[0]||null==n[1]||null==n[2])return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=.5>=t?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(255*o(f,i,r+1/3)),Math.round(255*o(f,i,r)),Math.round(255*o(f,i,r-1/3)),e]};r(u,function(u,e){var s=e.props,o=e.cache,h=e.to,c=e.from;i.fn[u]=function(u){if(h&&!this[o]&&(this[o]=h(this._rgba)),u===t)return this[o].slice();var l,a=n.type(u),v="array"===a||"object"===a?u:arguments,e=this[o].slice();return r(s,function(n,t){var i=v["object"===a?n:t.idx];null==i&&(i=e[t.idx]);e[t.idx]=f(i,t)}),c?(l=i(c(e)),l[o]=e,l):i(e)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f,e=n.type(i),h="alpha"===t?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx];return"undefined"===e?s:("function"===e&&(i=i.call(this,s),e=n.type(i)),null==i&&r.empty?this:("string"===e&&(f=a.exec(i),f&&(i=s+parseFloat(f[2])*("+"===f[1]?1:-1))),o[r.idx]=i,this[h](o)))})})});i.hook=function(t){var u=t.split(" ");r(u,function(t,r){n.cssHooks[r]={set:function(t,u){var o,f,e="";if("transparent"!==u&&("string"!==n.type(u)||(o=s(u)))){if(u=i(o||u),!c.rgba&&1!==u._rgba[3]){for(f="backgroundColor"===r?t.parentNode:t;(""===e||"transparent"===e)&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(h){}u=u.blend(e&&"transparent"!==e?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(h){}}};n.fx.step[r]=function(t){t.colorInit||(t.start=i(t.elem,r),t.end=i(t.end),t.colorInit=!0);n.cssHooks[r].set(t.elem,t.start.transition(t.end,t.pos))}})};i.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor");n.cssHooks.borderColor={expand:function(n){var t={};return r(["Top","Right","Bottom","Left"],function(i,r){t["border"+r+"Color"]=n}),t}};e=n.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(s),function(){function t(t){var r,u,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,f={};if(i&&i.length&&i[0]&&i[i[0]])for(u=i.length;u--;)r=i[u],"string"==typeof i[r]&&(f[n.camelCase(r)]=i[r]);else for(r in i)"string"==typeof i[r]&&(f[r]=i[r]);return f}function i(t,i){var r,f,e={};for(r in i)f=i[r],t[r]!==f&&(u[r]||(n.fx.step[r]||!isNaN(parseFloat(f)))&&(e[r]=f));return e}var r=["add","remove","toggle"],u={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};n.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){n.fx.step[i]=function(n){("none"===n.end||n.setAttr)&&(1!==n.pos||n.setAttr)||(s.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(u,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var o,e=n(this),h=e.attr("class")||"",f=s.children?e.find("*").addBack():e;f=f.map(function(){var i=n(this);return{el:i,start:t(this)}});o=function(){n.each(r,function(n,t){u[t]&&e[t+"Class"](u[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this});e.attr("class",h);f=f.map(function(){var i=this,t=n.Deferred(),r=n.extend({},s,{queue:!1,complete:function(){t.resolve(i)}});return this.el.animate(this.diff,r),t.promise()});n.when.apply(n,f.get()).done(function(){o();n.each(arguments,function(){var t=this.el;n.each(this.diff,function(n){t.css(n,"")})});s.complete.call(e[0])})})};n.fn.extend({addClass:function(t){return function(i,r,u,f){return r?n.effects.animateClass.call(this,{add:i},r,u,f):t.apply(this,arguments)}}(n.fn.addClass),removeClass:function(t){return function(i,r,u,f){return arguments.length>1?n.effects.animateClass.call(this,{remove:i},r,u,f):t.apply(this,arguments)}}(n.fn.removeClass),toggleClass:function(t){return function(i,r,u,f,e){return"boolean"==typeof r||void 0===r?u?n.effects.animateClass.call(this,r?{add:i}:{remove:i},u,f,e):t.apply(this,arguments):n.effects.animateClass.call(this,{toggle:i},r,u,f)}}(n.fn.toggleClass),switchClass:function(t,i,r,u,f){return n.effects.animateClass.call(this,{add:i,remove:t},r,u,f)}})}(),function(){function t(t,i,r,u){return n.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),("number"==typeof i||n.fx.speeds[i])&&(u=r,r=i,i={}),n.isFunction(r)&&(u=r,r=null),i&&n.extend(t,i),r=r||i.duration,t.duration=n.fx.off?0:"number"==typeof r?r:r in n.fx.speeds?n.fx.speeds[r]:n.fx.speeds._default,t.complete=u||i.complete,t}function i(t){return!t||"number"==typeof t||n.fx.speeds[t]?!0:"string"!=typeof t||n.effects.effect[t]?n.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}n.extend(n.effects,{version:"1.11.1",save:function(n,t){for(var i=0;t.length>i;i++)null!==t[i]&&n.data(o+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0;t.length>i;i++)null!==t[i]&&(r=n.data(o+t[i]),void 0===r&&(r=""),n.css(t[i],r))},setMode:function(n,t){return"toggle"===t&&(t=n.is(":hidden")?"show":"hide"),t},getBaseline:function(n,t){var i,r;switch(n[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=n[0]/t.height}switch(n[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=n[1]/t.width}return{x:r,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},u=n("<div><\/div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),f={width:t.width(),height:t.height()},r=document.activeElement;try{r.id}catch(e){r=document.body}return t.wrap(u),(t[0]===r||n.contains(t[0],r))&&n(r).focus(),u=t.parent(),"static"===t.css("position")?(u.css({position:"relative"}),t.css({position:"relative"})):(n.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),n.each(["top","left","bottom","right"],function(n,r){i[r]=t.css(r);isNaN(parseInt(i[r],10))&&(i[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(f),u.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||n.contains(t[0],i))&&n(i).focus()),t},setTransition:function(t,i,r,u){return u=u||{},n.each(i,function(n,i){var f=t.cssUnit(i);f[0]>0&&(u[i]=f[0]*r+f[1])}),u}});n.fn.extend({effect:function(){function r(t){function f(){n.isFunction(o)&&o.call(r[0]);n.isFunction(t)&&t()}var r=n(this),o=i.complete,u=i.mode;(r.is(":hidden")?"hide"===u:"show"===u)?(r[u](),f()):e.call(r[0],i,f)}var i=t.apply(this,arguments),u=i.mode,f=i.queue,e=n.effects.effect[i.effect];return n.fx.off||!e?u?this[u](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):f===!1?this.each(r):this.queue(f||"fx",r)},show:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="show",this.effect.call(this,u)}}(n.fn.show),hide:function(n){return function(r){if(i(r))return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="hide",this.effect.call(this,u)}}(n.fn.hide),toggle:function(n){return function(r){if(i(r)||"boolean"==typeof r)return n.apply(this,arguments);var u=t.apply(this,arguments);return u.mode="toggle",this.effect.call(this,u)}}(n.fn.toggle),cssUnit:function(t){var i=this.css(t),r=[];return n.each(["em","px","%","pt"],function(n,t){i.indexOf(t)>0&&(r=[parseFloat(i),t])}),r}})}(),function(){var t={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(n,i){t[i]=function(t){return Math.pow(t,n+2)}});n.extend(t,{Sine:function(n){return 1-Math.cos(n*Math.PI/2)},Circ:function(n){return 1-Math.sqrt(1-n*n)},Elastic:function(n){return 0===n||1===n?n:-Math.pow(2,8*(n-1))*Math.sin((80*(n-1)-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>n;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-n,2)}});n.each(t,function(t,i){n.easing["easeIn"+t]=i;n.easing["easeOut"+t]=function(n){return 1-i(1-n)};n.easing["easeInOut"+t]=function(n){return.5>n?i(2*n)/2:1-i(-2*n+2)/2}})}();n.effects;n.effects.effect.blind=function(t,i){var u,f,e,r=n(this),s=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),y=t.direction||"up",o=/up|down|vertical/.test(y),h=o?"height":"width",c=o?"top":"left",p=/up|left|vertical|horizontal/.test(y),l={},a="show"===v;r.parent().is(".ui-effects-wrapper")?n.effects.save(r.parent(),s):n.effects.save(r,s);r.show();u=n.effects.createWrapper(r).css({overflow:"hidden"});f=u[h]();e=parseFloat(u.css(c))||0;l[h]=a?f:0;p||(r.css(o?"bottom":"right",0).css(o?"top":"left","auto").css({position:"absolute"}),l[c]=a?e:f+e);a&&(u.css(h,0),p||u.css(c,e+f));u.animate(l,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===v&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()}})};n.effects.effect.bounce=function(t,i){var v,f,e,r=n(this),y=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),o="hide"===k,p="show"===k,h=t.direction||"up",u=t.distance,w=t.times||5,d=2*w+(p||o?1:0),c=t.duration/d,l=t.easing,s="up"===h||"down"===h?"top":"left",b="up"===h||"left"===h,a=r.queue(),g=a.length;for((p||o)&&y.push("opacity"),n.effects.save(r,y),r.show(),n.effects.createWrapper(r),u||(u=r["top"===s?"outerHeight":"outerWidth"]()/3),p&&(e={opacity:1},e[s]=0,r.css("opacity",0).css(s,b?2*-u:2*u).animate(e,c,l)),o&&(u/=Math.pow(2,w-1)),e={},e[s]=0,v=0;w>v;v++)f={},f[s]=(b?"-=":"+=")+u,r.animate(f,c,l).animate(e,c,l),u=o?2*u:u/2;o&&(f={opacity:0},f[s]=(b?"-=":"+=")+u,r.animate(f,c,l));r.queue(function(){o&&r.hide();n.effects.restore(r,y);n.effects.removeWrapper(r);i()});g>1&&a.splice.apply(a,[1,0].concat(a.splice(g,d+1)));r.dequeue()};n.effects.effect.clip=function(t,i){var h,u,f,r=n(this),c=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),e="show"===v,y=t.direction||"vertical",l="vertical"===y,o=l?"height":"width",a=l?"top":"left",s={};n.effects.save(r,c);r.show();h=n.effects.createWrapper(r).css({overflow:"hidden"});u="IMG"===r[0].tagName?h:r;f=u[o]();e&&(u.css(o,0),u.css(a,f/2));s[o]=e?f:0;s[a]=e?0:f/2;u.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){e||r.hide();n.effects.restore(r,c);n.effects.removeWrapper(r);i()}})};n.effects.effect.drop=function(t,i){var u,r=n(this),h=["position","top","bottom","left","right","opacity","height","width"],c=n.effects.setMode(r,t.mode||"hide"),e="show"===c,f=t.direction||"left",o="up"===f||"down"===f?"top":"left",s="up"===f||"left"===f?"pos":"neg",l={opacity:e?1:0};n.effects.save(r,h);r.show();n.effects.createWrapper(r);u=t.distance||r["top"===o?"outerHeight":"outerWidth"](!0)/2;e&&r.css("opacity",0).css(o,"pos"===s?-u:u);l[o]=(e?"pos"===s?"+=":"-=":"pos"===s?"-=":"+=")+u;r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===c&&r.hide();n.effects.restore(r,h);n.effects.removeWrapper(r);i()}})};n.effects.effect.explode=function(t,i){function b(){p.push(this);p.length===o*c&&k()}function k(){r.css({visibility:"visible"});n(p).remove();u||r.hide();i()}for(var e,l,a,v,y,o=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=o,r=n(this),d=n.effects.setMode(r,t.mode||"hide"),u="show"===d,w=r.show().css("visibility","hidden").offset(),s=Math.ceil(r.outerWidth()/c),h=Math.ceil(r.outerHeight()/o),p=[],f=0;o>f;f++)for(a=w.top+f*h,y=f-(o-1)/2,e=0;c>e;e++)l=w.left+e*s,v=e-(c-1)/2,r.clone().appendTo("body").wrap("<div><\/div>").css({position:"absolute",visibility:"visible",left:-e*s,top:-f*h}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:s,height:h,left:l+(u?v*s:0),top:a+(u?y*h:0),opacity:u?0:1}).animate({left:l+(u?0:v*s),top:a+(u?0:y*h),opacity:u?1:0},t.duration||500,t.easing,b)};n.effects.effect.fade=function(t,i){var r=n(this),u=n.effects.setMode(r,t.mode||"toggle");r.animate({opacity:u},{queue:!1,duration:t.duration,easing:t.easing,complete:i})};n.effects.effect.fold=function(t,i){var r,e,u=n(this),s=["position","top","bottom","left","right","height","width"],h=n.effects.setMode(u,t.mode||"hide"),o="show"===h,c="hide"===h,f=t.size||15,l=/([0-9]+)%/.exec(f),a=!!t.horizFirst,v=o!==a,y=v?["width","height"]:["height","width"],p=t.duration/2,w={},b={};n.effects.save(u,s);u.show();r=n.effects.createWrapper(u).css({overflow:"hidden"});e=v?[r.width(),r.height()]:[r.height(),r.width()];l&&(f=parseInt(l[1],10)/100*e[c?0:1]);o&&r.css(a?{height:0,width:f}:{height:f,width:0});w[y[0]]=o?e[0]:f;b[y[1]]=o?e[1]:0;r.animate(w,p,t.easing).animate(b,p,t.easing,function(){c&&u.hide();n.effects.restore(u,s);n.effects.removeWrapper(u);i()})};n.effects.effect.highlight=function(t,i){var r=n(this),u=["backgroundImage","backgroundColor","opacity"],f=n.effects.setMode(r,t.mode||"show"),e={backgroundColor:r.css("backgroundColor")};"hide"===f&&(e.opacity=0);n.effects.save(r,u);r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(e,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===f&&r.hide();n.effects.restore(r,u);i()}})};n.effects.effect.size=function(t,i){var f,l,u,r=n(this),w=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["width","height","overflow"],v=["fontSize"],e=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],o=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=n.effects.setMode(r,t.mode||"effect"),y=t.restore||"effect"!==h,c=t.scale||"both",b=t.origin||["middle","center"],k=r.css("position"),s=y?w:["position","top","bottom","left","right","overflow","opacity"],p={height:0,width:0,outerHeight:0,outerWidth:0};"show"===h&&r.show();f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};"toggle"===t.mode&&"show"===h?(r.from=t.to||p,r.to=t.from||f):(r.from=t.from||("show"===h?p:f),r.to=t.to||("hide"===h?p:f));u={from:{y:r.from.height/f.height,x:r.from.width/f.width},to:{y:r.to.height/f.height,x:r.to.width/f.width}};("box"===c||"both"===c)&&(u.from.y!==u.to.y&&(s=s.concat(e),r.from=n.effects.setTransition(r,e,u.from.y,r.from),r.to=n.effects.setTransition(r,e,u.to.y,r.to)),u.from.x!==u.to.x&&(s=s.concat(o),r.from=n.effects.setTransition(r,o,u.from.x,r.from),r.to=n.effects.setTransition(r,o,u.to.x,r.to)));("content"===c||"both"===c)&&u.from.y!==u.to.y&&(s=s.concat(v).concat(a),r.from=n.effects.setTransition(r,v,u.from.y,r.from),r.to=n.effects.setTransition(r,v,u.to.y,r.to));n.effects.save(r,s);r.show();n.effects.createWrapper(r);r.css("overflow","hidden").css(r.from);b&&(l=n.effects.getBaseline(b,f),r.from.top=(f.outerHeight-r.outerHeight())*l.y,r.from.left=(f.outerWidth-r.outerWidth())*l.x,r.to.top=(f.outerHeight-r.to.outerHeight)*l.y,r.to.left=(f.outerWidth-r.to.outerWidth)*l.x);r.css(r.from);("content"===c||"both"===c)&&(e=e.concat(["marginTop","marginBottom"]).concat(v),o=o.concat(["marginLeft","marginRight"]),a=w.concat(e).concat(o),r.find("*[width]").each(function(){var i=n(this),r={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};y&&n.effects.save(i,a);i.from={height:r.height*u.from.y,width:r.width*u.from.x,outerHeight:r.outerHeight*u.from.y,outerWidth:r.outerWidth*u.from.x};i.to={height:r.height*u.to.y,width:r.width*u.to.x,outerHeight:r.height*u.to.y,outerWidth:r.width*u.to.x};u.from.y!==u.to.y&&(i.from=n.effects.setTransition(i,e,u.from.y,i.from),i.to=n.effects.setTransition(i,e,u.to.y,i.to));u.from.x!==u.to.x&&(i.from=n.effects.setTransition(i,o,u.from.x,i.from),i.to=n.effects.setTransition(i,o,u.to.x,i.to));i.css(i.from);i.animate(i.to,t.duration,t.easing,function(){y&&n.effects.restore(i,a)})}));r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity);"hide"===h&&r.hide();n.effects.restore(r,s);y||("static"===k?r.css({position:"relative",top:r.to.top,left:r.to.left}):n.each(["top","left"],function(n,t){r.css(t,function(t,i){var f=parseInt(i,10),u=n?r.to.left:r.to.top;return"auto"===i?u+"px":f+u+"px"})}));n.effects.removeWrapper(r);i()}})};n.effects.effect.scale=function(t,i){var u=n(this),r=n.extend(!0,{},t),f=n.effects.setMode(u,t.mode||"effect"),s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===f?0:100),h=t.direction||"both",c=t.origin,e={height:u.height(),width:u.width(),outerHeight:u.outerHeight(),outerWidth:u.outerWidth()},o={y:"horizontal"!==h?s/100:1,x:"vertical"!==h?s/100:1};r.effect="size";r.queue=!1;r.complete=i;"effect"!==f&&(r.origin=c||["middle","center"],r.restore=!0);r.from=t.from||("show"===f?{height:0,width:0,outerHeight:0,outerWidth:0}:e);r.to={height:e.height*o.y,width:e.width*o.x,outerHeight:e.outerHeight*o.y,outerWidth:e.outerWidth*o.x};r.fade&&("show"===f&&(r.from.opacity=0,r.to.opacity=1),"hide"===f&&(r.from.opacity=1,r.to.opacity=0));u.effect(r)};n.effects.effect.puff=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"hide"),o="hide"===e,s=parseInt(t.percent,10)||150,f=s/100,u={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};n.extend(t,{effect:"scale",queue:!1,fade:!0,mode:e,complete:i,percent:o?s:100,from:o?u:{height:u.height*f,width:u.width*f,outerHeight:u.outerHeight*f,outerWidth:u.outerWidth*f}});r.effect(t)};n.effects.effect.pulsate=function(t,i){var e,r=n(this),o=n.effects.setMode(r,t.mode||"show"),h="show"===o,a="hide"===o,v=h||"hide"===o,s=2*(t.times||5)+(v?1:0),c=t.duration/s,u=0,f=r.queue(),l=f.length;for((h||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1),e=1;s>e;e++)r.animate({opacity:u},c,t.easing),u=1-u;r.animate({opacity:u},c,t.easing);r.queue(function(){a&&r.hide();i()});l>1&&f.splice.apply(f,[1,0].concat(f.splice(l,s+1)));r.dequeue()};n.effects.effect.shake=function(t,i){var o,r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=t.direction||"left",s=t.distance||20,y=t.times||3,p=2*y+1,u=Math.round(t.duration/p),h="up"===f||"down"===f?"top":"left",c="up"===f||"left"===f,l={},a={},w={},e=r.queue(),b=e.length;for(n.effects.save(r,v),r.show(),n.effects.createWrapper(r),l[h]=(c?"-=":"+=")+s,a[h]=(c?"+=":"-=")+2*s,w[h]=(c?"-=":"+=")+2*s,r.animate(l,u,t.easing),o=1;y>o;o++)r.animate(a,u,t.easing).animate(w,u,t.easing);r.animate(a,u,t.easing).animate(l,u/2,t.easing).queue(function(){"hide"===k&&r.hide();n.effects.restore(r,v);n.effects.removeWrapper(r);i()});b>1&&e.splice.apply(e,[1,0].concat(e.splice(b,p+1)));r.dequeue()};n.effects.effect.slide=function(t,i){var u,r=n(this),s=["position","top","bottom","left","right","width","height"],h=n.effects.setMode(r,t.mode||"show"),c="show"===h,f=t.direction||"left",e="up"===f||"down"===f?"top":"left",o="up"===f||"left"===f,l={};n.effects.save(r,s);r.show();u=t.distance||r["top"===e?"outerHeight":"outerWidth"](!0);n.effects.createWrapper(r).css({overflow:"hidden"});c&&r.css(e,o?isNaN(u)?"-"+u:-u:u);l[e]=(c?o?"+=":"-=":o?"-=":"+=")+u;r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===h&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()}})};n.effects.effect.transfer=function(t,i){var u=n(this),r=n(t.to),f="fixed"===r.css("position"),e=n("body"),o=f?e.scrollTop():0,s=f?e.scrollLeft():0,h=r.offset(),l={top:h.top-o,left:h.left-s,height:r.innerHeight(),width:r.innerWidth()},c=u.offset(),a=n("<div class='ui-effects-transfer'><\/div>").appendTo(document.body).addClass(t.className).css({top:c.top-o,left:c.left-s,height:u.innerHeight(),width:u.innerWidth(),position:f?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){a.remove();i()})};n.widget("ui.progressbar",{version:"1.11.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue();this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min});this.valueDiv=n("<div class='ui-progressbar-value ui-widget-header ui-corner-left'><\/div>").appendTo(this.element);this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove()},value:function(n){return void 0===n?this.options.value:(this.options.value=this._constrainedValue(n),this._refreshValue(),void 0)},_constrainedValue:function(n){return void 0===n&&(n=this.options.value),this.indeterminate=n===!1,"number"!=typeof n&&(n=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,n))},_setOptions:function(n){var t=n.value;delete n.value;this._super(n);this.options.value=this._constrainedValue(t);this._refreshValue()},_setOption:function(n,t){"max"===n&&(t=Math.max(this.min,t));"disabled"===n&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t);this._super(n,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(i.toFixed(0)+"%");this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate);this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=n("<div class='ui-progressbar-overlay'><\/div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null));this.oldValue!==t&&(this.oldValue=t,this._trigger("change"));t===this.options.max&&this._trigger("complete")}});n.widget("ui.selectable",n.ui.mouse,{version:"1.11.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,i=this;this.element.addClass("ui-selectable");this.dragged=!1;this.refresh=function(){t=n(i.options.filter,i.element[0]);t.addClass("ui-selectee");t.each(function(){var t=n(this),i=t.offset();n.data(this,"selectable-item",{element:this,$element:t,left:i.left,top:i.top,right:i.left+t.outerWidth(),bottom:i.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})};this.refresh();this.selectees=t.addClass("ui-selectee");this._mouseInit();this.helper=n("<div class='ui-selectable-helper'><\/div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled");this._mouseDestroy()},_mouseStart:function(t){var i=this,r=this.options;this.opos=[t.pageX,t.pageY];this.options.disabled||(this.selectees=n(r.filter,this.element[0]),this._trigger("start",t),n(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=n.data(this,"selectable-item");r.startselected=!0;t.metaKey||t.ctrlKey||(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,i._trigger("unselecting",t,{unselecting:r.element}))}),n(t.target).parents().addBack().each(function(){var u,r=n.data(this,"selectable-item");if(r)return(u=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),r.$element.removeClass(u?"ui-unselecting":"ui-selected").addClass(u?"ui-selecting":"ui-unselecting"),r.unselecting=!u,r.selecting=u,r.selected=u,u?i._trigger("selecting",t,{selecting:r.element}):i._trigger("unselecting",t,{unselecting:r.element}),!1)}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var e,o=this,s=this.options,i=this.opos[0],r=this.opos[1],u=t.pageX,f=t.pageY;return i>u&&(e=u,u=i,i=e),r>f&&(e=f,f=r,r=e),this.helper.css({left:i,top:r,width:u-i,height:f-r}),this.selectees.each(function(){var e=n.data(this,"selectable-item"),h=!1;e&&e.element!==o.element[0]&&("touch"===s.tolerance?h=!(e.left>u||i>e.right||e.top>f||r>e.bottom):"fit"===s.tolerance&&(h=e.left>i&&u>e.right&&e.top>r&&f>e.bottom),h?(e.selected&&(e.$element.removeClass("ui-selected"),e.selected=!1),e.unselecting&&(e.$element.removeClass("ui-unselecting"),e.unselecting=!1),e.selecting||(e.$element.addClass("ui-selecting"),e.selecting=!0,o._trigger("selecting",t,{selecting:e.element}))):(e.selecting&&((t.metaKey||t.ctrlKey)&&e.startselected?(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.$element.addClass("ui-selected"),e.selected=!0):(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.startselected&&(e.$element.addClass("ui-unselecting"),e.unselecting=!0),o._trigger("unselecting",t,{unselecting:e.element}))),e.selected&&(t.metaKey||t.ctrlKey||e.startselected||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,o._trigger("unselecting",t,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,n(".ui-unselecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-unselecting");r.unselecting=!1;r.startselected=!1;i._trigger("unselected",t,{unselected:r.element})}),n(".ui-selecting",this.element[0]).each(function(){var r=n.data(this,"selectable-item");r.$element.removeClass("ui-selecting").addClass("ui-selected");r.selecting=!1;r.selected=!0;r.startselected=!0;i._trigger("selected",t,{selected:r.element})}),this._trigger("stop",t),this.helper.remove(),!1}});n.widget("ui.selectmenu",{version:"1.11.1",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var n=this.element.uniqueId().attr("id");this.ids={element:n,button:n+"-button",menu:n+"-menu"};this._drawButton();this._drawMenu();this.options.disabled&&this.disable()},_drawButton:function(){var t=this,i=this.element.attr("tabindex");this.label=n("label[for='"+this.ids.element+"']").attr("for",this.ids.button);this._on(this.label,{click:function(n){this.button.focus();n.preventDefault()}});this.element.hide();this.button=n("<span>",{"class":"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:i||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element);n("<span>",{"class":"ui-icon "+this.options.icons.button}).prependTo(this.button);this.buttonText=n("<span>",{"class":"ui-selectmenu-text"}).appendTo(this.button);this._setText(this.buttonText,this.element.find("option:selected").text());this._resizeButton();this._on(this.button,this._buttonEvents);this.button.one("focusin",function(){t.menuItems||t._refreshMenu()});this._hoverable(this.button);this._focusable(this.button)},_drawMenu:function(){var t=this;this.menu=n("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu});this.menuWrap=n("<div>",{"class":"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo());this.menuInstance=this.menu.menu({role:"listbox",select:function(n,i){n.preventDefault();t._select(i.item.data("ui-selectmenu-item"),n)},focus:function(n,i){var r=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&r.index!==t.focusIndex&&(t._trigger("focus",n,{item:r}),t.isOpen||t._select(r,n));t.focusIndex=r.index;t.button.attr("aria-activedescendant",t.menuItems.eq(r.index).attr("id"))}}).menu("instance");this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all");this.menuInstance._off(this.menu,"mouseleave");this.menuInstance._closeOnDocumentClick=function(){return!1};this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu();this._setText(this.buttonText,this._getSelectedItem().text());this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var n,t=this.element.find("option");t.length&&(this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),n=this._getSelectedItem(),this.menuInstance.focus(null,n),this._setAria(n.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(n){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",n))},_position:function(){this.menuWrap.position(n.extend({of:this.button},this.options.position))},close:function(n){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this._off(this.document),this._trigger("close",n))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(t,i){var u=this,r="";n.each(i,function(i,f){f.optgroup!==r&&(n("<li>",{"class":"ui-selectmenu-optgroup ui-menu-divider"+(f.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:f.optgroup}).appendTo(t),r=f.optgroup);u._renderItemData(t,f)})},_renderItemData:function(n,t){return this._renderItem(n,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var r=n("<li>");return i.disabled&&r.addClass("ui-state-disabled"),this._setText(r,i.label),r.appendTo(t)},_setText:function(n,t){t?n.text(t):n.html("&#160;")},_move:function(n,t){var i,r,u=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),u+=":not(.ui-state-disabled)");r="first"===n||"last"===n?i["first"===n?"prevAll":"nextAll"](u).eq(-1):i[n+"All"](u).eq(0);r.length&&this.menuInstance.focus(t,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(n){this[this.isOpen?"close":"open"](n)},_documentClick:{mousedown:function(t){this.isOpen&&(n(t.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(t))}},_buttonEvents:{mousedown:function(n){n.preventDefault()},click:"_toggle",keydown:function(t){var i=!0;switch(t.keyCode){case n.ui.keyCode.TAB:case n.ui.keyCode.ESCAPE:this.close(t);i=!1;break;case n.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case n.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case n.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case n.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case n.ui.keyCode.LEFT:this._move("prev",t);break;case n.ui.keyCode.RIGHT:this._move("next",t);break;case n.ui.keyCode.HOME:case n.ui.keyCode.PAGE_UP:this._move("first",t);break;case n.ui.keyCode.END:case n.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t);i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(n){var t=this.menuItems.eq(this.focusIndex);t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),n)},_select:function(n,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=n.index;this._setText(this.buttonText,n.label);this._setAria(n);this._trigger("select",t,{item:n});n.index!==i&&this._trigger("change",t,{item:n});this.close(t)},_setAria:function(n){var t=this.menuItems.eq(n.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t});this.menu.attr("aria-activedescendant",t)},_setOption:function(n,t){"icons"===n&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button);this._super(n,t);"appendTo"===n&&this.menuWrap.appendTo(this._appendTo());"disabled"===n&&(this.menuInstance.option("disabled",t),this.button.toggleClass("ui-state-disabled",t).attr("aria-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0));"width"===n&&this._resizeButton()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?n(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen);this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen);this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var n=this.options.width;n||(n=this.element.show().outerWidth(),this.element.hide());this.button.outerWidth(n)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(t){var i=[];t.each(function(t,r){var u=n(r),f=u.parent("optgroup");i.push({element:u,index:t,value:u.attr("value"),label:u.text(),optgroup:f.attr("label")||"",disabled:f.prop("disabled")||u.prop("disabled")})});this.items=i},_destroy:function(){this.menuWrap.remove();this.button.remove();this.element.show();this.element.removeUniqueId();this.label.attr("for",this.ids.element)}});n.widget("ui.slider",n.ui.mouse,{version:"1.11.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1;this._mouseSliding=!1;this._animateOff=!0;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this._refresh();this._setOption("disabled",this.options.disabled);this._animateOff=!1},_refresh:function(){this._createRange();this._createHandles();this._setupEvents();this._refreshValue()},_createHandles:function(){var r,i,u=this.options,t=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),f=[];for(i=u.values&&u.values.length||1,t.length>i&&(t.slice(i).remove(),t=t.slice(0,i)),r=t.length;i>r;r++)f.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'><\/span>");this.handles=t.add(n(f.join("")).appendTo(this.element));this.handle=this.handles.eq(0);this.handles.each(function(t){n(this).data("ui-slider-handle-index",t)})},_createRange:function(){var t=this.options,i="";t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:n.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=n("<div><\/div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===t.range||"max"===t.range?" ui-slider-range-"+t.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles);this._on(this.handles,this._handleEvents);this._hoverable(this.handles);this._focusable(this.handles)},_destroy:function(){this.handles.remove();this.range&&this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all");this._mouseDestroy()},_mouseCapture:function(t){var s,f,r,i,u,h,e,c,o=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),s={x:t.pageX,y:t.pageY},f=this._normValueFromMouse(s),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(f-o.values(t));(r>e||r===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(r=e,i=n(this),u=t)}),h=this._start(t,u),h===!1?!1:(this._mouseSliding=!0,this._handleIndex=u,i.addClass("ui-state-active").focus(),e=i.offset(),c=!n(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=c?{left:0,top:0}:{left:t.pageX-e.left-i.width()/2,top:t.pageY-e.top-i.height()/2-(parseInt(i.css("borderTopWidth"),10)||0)-(parseInt(i.css("borderBottomWidth"),10)||0)+(parseInt(i.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,u,f),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(n){var t={x:n.pageX,y:n.pageY},i=this._normValueFromMouse(t);return this._slide(n,this._handleIndex,i),!1},_mouseStop:function(n){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(n,this._handleIndex),this._change(n,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return"horizontal"===this.orientation?(i=this.elementSize.width,r=n.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(i=this.elementSize.height,r=n.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),t=r/i,t>1&&(t=1),0>t&&(t=0),"vertical"===this.orientation&&(t=1-t),u=this._valueMax()-this._valueMin(),f=this._valueMin()+t*u,this._trimAlignValue(f)},_start:function(n,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",n,i)},_slide:function(n,t,i){var r,f,u;this.options.values&&this.options.values.length?(r=this.values(t?0:1),2===this.options.values.length&&this.options.range===!0&&(0===t&&i>r||1===t&&r>i)&&(i=r),i!==this.values(t)&&(f=this.values(),f[t]=i,u=this._trigger("slide",n,{handle:this.handles[t],value:i,values:f}),r=this.values(t?0:1),u!==!1&&this.values(t,i))):i!==this.value()&&(u=this._trigger("slide",n,{handle:this.handles[t],value:i}),u!==!1&&this.value(i))},_stop:function(n,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._trigger("stop",n,i)},_change:function(n,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values());this._lastChangedValue=t;this._trigger("change",n,i)}},value:function(n){return arguments.length?(this.options.value=this._trimAlignValue(n),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(t,i){var u,f,r;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(i),this._refreshValue(),this._change(null,t),void 0;if(!arguments.length)return this._values();if(!n.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();for(u=this.options.values,f=arguments[0],r=0;u.length>r;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()},_setOption:function(t,i){var r,u=0;switch("range"===t&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),n.isArray(this.options.values)&&(u=this.options.values.length),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!i),this._super(t,i),t){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0;this._refreshValue();this._change(null,0);this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=0;u>r;r+=1)this._change(null,r);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0;this._refreshValue();this._animateOff=!1;break;case"range":this._animateOff=!0;this._refresh();this._animateOff=!1}},_value:function(){var n=this.options.value;return this._trimAlignValue(n)},_values:function(n){var r,t,i;if(arguments.length)return r=this.options.values[n],r=this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;t.length>i;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(this._valueMin()>=n)return this._valueMin();if(n>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(n-this._valueMin())%t,r=n-i;return 2*Math.abs(i)>=t&&(r+=i>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var s,t,c,f,h,e=this.options.range,i=this.options,r=this,u=this._animateOff?!1:i.animate,o={};this.options.values&&this.options.values.length?this.handles.each(function(f){t=100*((r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin()));o["horizontal"===r.orientation?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&("horizontal"===r.orientation?(0===f&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(0===f&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),1===f&&r.range[u?"animate":"css"]({height:t-s+"%"},{queue:!1,duration:i.animate})));s=t}):(c=this.value(),f=this._valueMin(),h=this._valueMax(),t=h!==f?100*((c-f)/(h-f)):0,o["horizontal"===this.orientation?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),"min"===e&&"horizontal"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),"max"===e&&"horizontal"===this.orientation&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),"min"===e&&"vertical"===this.orientation&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),"max"===e&&"vertical"===this.orientation&&this.range[u?"animate":"css"]({height:100-t+"%"},{queue:!1,duration:i.animate}))},_handleEvents:{keydown:function(t){var e,r,i,u,f=n(t.target).data("ui-slider-handle-index");switch(t.keyCode){case n.ui.keyCode.HOME:case n.ui.keyCode.END:case n.ui.keyCode.PAGE_UP:case n.ui.keyCode.PAGE_DOWN:case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,n(t.target).addClass("ui-state-active"),e=this._start(t,f),e===!1))return}switch(u=this.options.step,r=i=this.options.values&&this.options.values.length?this.values(f):this.value(),t.keyCode){case n.ui.keyCode.HOME:i=this._valueMin();break;case n.ui.keyCode.END:i=this._valueMax();break;case n.ui.keyCode.PAGE_UP:i=this._trimAlignValue(r+(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(r-(this._valueMax()-this._valueMin())/this.numPages);break;case n.ui.keyCode.UP:case n.ui.keyCode.RIGHT:if(r===this._valueMax())return;i=this._trimAlignValue(r+u);break;case n.ui.keyCode.DOWN:case n.ui.keyCode.LEFT:if(r===this._valueMin())return;i=this._trimAlignValue(r-u)}this._slide(t,f,i)},keyup:function(t){var i=n(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),n(t.target).removeClass("ui-state-active"))}}});n.widget("ui.sortable",n.ui.mouse,{version:"1.11.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(n,t,i){return n>=t&&t+i>n},_isFloating:function(n){return/left|right/.test(n.css("float"))||/inline|table-cell/.test(n.css("display"))},_create:function(){var n=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?"x"===n.axis||this._isFloating(this.items[0].item):!1;this.offset=this.element.offset();this._mouseInit();this._setHandleClassName();this.ready=!0},_setOption:function(n,t){this._super(n,t);"handle"===n&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle");n.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle");this._mouseDestroy();for(var n=this.items.length-1;n>=0;n--)this.items[n].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var r=null,f=!1,u=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),n(t.target).parents().each(function(){if(n.data(this,u.widgetName+"-item")===u)return(r=n(this),!1)}),n.data(t.target,u.widgetName+"-item")===u&&(r=n(t.target)),r?!this.options.handle||i||(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),f)?(this.currentItem=r,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(t,i,r){var f,e,u=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},n.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,u.cursorAt&&this._adjustOffsetFromHelper(u.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),u.containment&&this._setContainment(),u.cursor&&"auto"!==u.cursor&&(e=this.document.find("body"),this.storedCursor=e.css("cursor"),e.css("cursor",u.cursor),this.storedStylesheet=n("<style>*{ cursor: "+u.cursor+" !important; }<\/style>").appendTo(e)),u.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",u.opacity)),u.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",u.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",t,this._uiHash(this));return n.ui.ddmanager&&(n.ui.ddmanager.current=this),n.ui.ddmanager&&!u.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var e,u,f,o,i=this.options,r=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<i.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+i.scrollSpeed:t.pageY-this.overflowOffset.top<i.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-i.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<i.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+i.scrollSpeed:t.pageX-this.overflowOffset.left<i.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-i.scrollSpeed)):(t.pageY-n(document).scrollTop()<i.scrollSensitivity?r=n(document).scrollTop(n(document).scrollTop()-i.scrollSpeed):n(window).height()-(t.pageY-n(document).scrollTop())<i.scrollSensitivity&&(r=n(document).scrollTop(n(document).scrollTop()+i.scrollSpeed)),t.pageX-n(document).scrollLeft()<i.scrollSensitivity?r=n(document).scrollLeft(n(document).scrollLeft()-i.scrollSpeed):n(window).width()-(t.pageX-n(document).scrollLeft())<i.scrollSensitivity&&(r=n(document).scrollLeft(n(document).scrollLeft()+i.scrollSpeed))),r!==!1&&n.ui.ddmanager&&!i.dropBehaviour&&n.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),e=this.items.length-1;e>=0;e--)if(u=this.items[e],f=u.item[0],o=this._intersectsWithPointer(u),o&&u.instance===this.currentContainer&&f!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&("semi-dynamic"===this.options.type?!n.contains(this.element[0],f):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(u))break;this._rearrange(t,u);this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),n.ui.ddmanager&&n.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(n.ui.ddmanager&&!this.options.dropBehaviour&&n.ui.ddmanager.drop(this,t),this.options.revert){var e=this,f=this.placeholder.offset(),r=this.options.axis,u={};r&&"x"!==r||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft));r&&"y"!==r||(u.top=f.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop));this.reverting=!0;n(this.helper).animate(u,parseInt(this.options.revert,10)||500,function(){e._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null});"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),n.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?n(this.domPosition.prev).after(this.currentItem):n(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n(r).each(function(){var r=(n(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);r&&i.push((t.key||r[1]+"[]")+"="+(t.key&&t.expression?r[1]:r[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var r=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},r.each(function(){i.push(n(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(n){var t=this.positionAbs.left,h=t+this.helperProportions.width,i=this.positionAbs.top,c=i+this.helperProportions.height,r=n.left,f=r+n.width,u=n.top,e=u+n.height,o=this.offset.click.top,s=this.offset.click.left,l="x"===this.options.axis||i+o>u&&e>i+o,a="y"===this.options.axis||t+s>r&&f>t+s,v=l&&a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:t+this.helperProportions.width/2>r&&f>h-this.helperProportions.width/2&&i+this.helperProportions.height/2>u&&e>c-this.helperProportions.height/2},_intersectsWithPointer:function(n){var r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left,n.width),f=r&&u,t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return f?this.floating?i&&"right"===i||"down"===t?2:1:t&&("down"===t?2:1):!1},_intersectsWithSides:function(n){var r=this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top+n.height/2,n.height),u=this._isOverAxis(this.positionAbs.left+this.offset.click.left,n.left+n.width/2,n.width),t=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&u||"left"===i&&!u:t&&("down"===t&&r||"up"===t&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return 0!==n&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return 0!==n&&(n>0?"right":"left")},refresh:function(n){return this._refreshItems(n),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var n=this.options;return n.connectWith.constructor===String?[n.connectWith]:n.connectWith},_getItemsAsjQuery:function(t){function h(){s.push(this)}var r,u,e,i,s=[],f=[],o=this._connectWith();if(o&&t)for(r=o.length-1;r>=0;r--)for(e=n(o[r]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&f.push([n.isFunction(i.options.items)?i.options.items.call(i.element):n(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i]);for(f.push([n.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):n(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),r=f.length-1;r>=0;r--)f[r][0].each(h);return n(s)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=n.grep(this.items,function(n){for(var i=0;t.length>i;i++)if(t[i]===n.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[];this.containers=[this];var r,u,e,i,o,s,h,l,a=this.items,f=[[n.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):n(this.options.items,this.element),this]],c=this._connectWith();if(c&&this.ready)for(r=c.length-1;r>=0;r--)for(e=n(c[r]),u=e.length-1;u>=0;u--)i=n.data(e[u],this.widgetFullName),i&&i!==this&&!i.options.disabled&&(f.push([n.isFunction(i.options.items)?i.options.items.call(i.element[0],t,{item:this.currentItem}):n(i.options.items,i.element),i]),this.containers.push(i));for(r=f.length-1;r>=0;r--)for(o=f[r][1],s=f[r][0],u=0,l=s.length;l>u;u++)h=n(s[u]),h.data(this.widgetName+"-item",o),a.push({item:h,instance:o,width:0,height:0,left:0,top:0})},refreshPositions:function(t){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var r,f,u,i=this.items.length-1;i>=0;i--)r=this.items[i],r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(f=this.options.toleranceElement?n(this.options.toleranceElement,r.item):r.item,t||(r.width=f.outerWidth(),r.height=f.outerHeight()),u=f.offset(),r.left=u.left,r.top=u.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)u=this.containers[i].element.offset(),this.containers[i].containerCache.left=u.left,this.containers[i].containerCache.top=u.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var r,i=t.options;i.placeholder&&i.placeholder.constructor!==String||(r=i.placeholder,i.placeholder={element:function(){var u=t.currentItem[0].nodeName.toLowerCase(),i=n("<"+u+">",t.document[0]).addClass(r||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===u?t.currentItem.children().each(function(){n("<td>&#160;<\/td>",t.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)}):"img"===u&&i.attr("src",t.currentItem.attr("src")),r||i.css("visibility","hidden"),i},update:function(n,u){(!r||i.forcePlaceholderSize)&&(u.height()||u.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),u.width()||u.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}});t.placeholder=n(i.placeholder.element.call(t.element,t.currentItem));t.currentItem.after(t.placeholder);i.placeholder.update(t,t.placeholder)},_contactContainers:function(t){for(var u,c,f,a,v,o,l,s,h,e=null,r=null,i=this.containers.length-1;i>=0;i--)if(!n.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(e&&n.contains(this.containers[i].element[0],e.element[0]))continue;e=this.containers[i];r=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(e)if(1===this.containers.length)this.containers[r].containerCache.over||(this.containers[r]._trigger("over",t,this._uiHash(this)),this.containers[r].containerCache.over=1);else{for(c=1e4,f=null,s=e.floating||this._isFloating(this.currentItem),a=s?"left":"top",v=s?"width":"height",h=s?"clientX":"clientY",u=this.items.length-1;u>=0;u--)n.contains(this.containers[r].element[0],this.items[u].item[0])&&this.items[u].item[0]!==this.currentItem[0]&&(o=this.items[u].item.offset()[a],l=!1,t[h]-o>this.items[u][v]/2&&(l=!0),c>Math.abs(t[h]-o)&&(c=Math.abs(t[h]-o),f=this.items[u],this.direction=l?"up":"down"));if(!f&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[r])return;f?this._rearrange(t,f,null,!0):this._rearrange(t,null,this.containers[r].element,!0);this._trigger("change",t,this._uiHash());this.containers[r]._trigger("change",t,this._uiHash(this));this.currentContainer=this.containers[r];this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[r]._trigger("over",t,this._uiHash(this));this.containers[r].containerCache.over=1}},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t,this.currentItem])):"clone"===r.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||n("parent"!==r.appendTo?r.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||r.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||r.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" "));n.isArray(t)&&(t={left:+t[0],top:+t[1]||0});"left"in t&&(this.offset.click.left=t.left+this.margins.left);"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left);"top"in t&&(this.offset.click.top=t.top+this.margins.top);"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&n.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var n=this.currentItem.position();return{top:n.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:n.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,r,u,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode);("document"===i.containment||"window"===i.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n("document"===i.containment?document:window).width()-this.helperProportions.width-this.margins.left,(n("document"===i.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]);/^(document|window|parent)$/.test(i.containment)||(t=n(i.containment)[0],r=n(i.containment).offset(),u="hidden"!==n(t).css("overflow"),this.containment=[r.left+(parseInt(n(t).css("borderLeftWidth"),10)||0)+(parseInt(n(t).css("paddingLeft"),10)||0)-this.margins.left,r.top+(parseInt(n(t).css("borderTopWidth"),10)||0)+(parseInt(n(t).css("paddingTop"),10)||0)-this.margins.top,r.left+(u?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(n(t).css("borderLeftWidth"),10)||0)-(parseInt(n(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,r.top+(u?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(n(t).css("borderTopWidth"),10)||0)-(parseInt(n(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var r="absolute"===t?1:-1,u="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(e=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(e=this.containment[3]+this.offset.click.top)),i.grid&&(r=this.originalPageY+Math.round((e-this.originalPageY)/i.grid[1])*i.grid[1],e=this.containment?r-this.offset.click.top>=this.containment[1]&&r-this.offset.click.top<=this.containment[3]?r:r-this.offset.click.top>=this.containment[1]?r-i.grid[1]:r+i.grid[1]:r,u=this.originalPageX+Math.round((f-this.originalPageX)/i.grid[0])*i.grid[0],f=this.containment?u-this.offset.click.left>=this.containment[0]&&u-this.offset.click.left<=this.containment[2]?u:u-this.offset.click.left>=this.containment[0]?u-i.grid[0]:u+i.grid[0]:u)),{top:e-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())}},_rearrange:function(n,t,i,r){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var u=this.counter;this._delay(function(){u===this.counter&&this.refreshPositions(!r)})},_clear:function(n,t){function u(n,t,i){return function(r){i._trigger(n,r,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(n){this._trigger("receive",n,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push(function(n){this._trigger("update",n,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(n){this._trigger("remove",n,this._uiHash())}),r.push(function(n){return function(t){n._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(n){return function(t){n._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(u("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(u("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",n,this._uiHash()),i=0;r.length>i;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!1}if(t||this._trigger("beforeStop",n,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!t){for(i=0;r.length>i;i++)r[i].call(this,n);this._trigger("stop",n,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){n.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||n([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}});n.widget("ui.spinner",{version:"1.11.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max);this._setOption("min",this.options.min);this._setOption("step",this.options.step);""!==this.value()&&this._value(this.element.val(),!0);this._draw();this._on(this._events);this._refresh();this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},i=this.element;return n.each(["min","max","step"],function(n,r){var u=i.attr(r);void 0!==u&&u.length&&(t[r]=u)}),t},_events:{keydown:function(n){this._start(n)&&this._keydown(n)&&n.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(n){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",n),void 0)},mousewheel:function(n,t){if(t){if(!this.spinning&&!this._start(n))return!1;this._spin((t>0?1:-1)*this.options.step,n);clearTimeout(this.mousewheelTimer);this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(n)},100);n.preventDefault()}},"mousedown .ui-spinner-button":function(t){function r(){var n=this.element[0]===this.document[0].activeElement;n||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();t.preventDefault();r.call(this);this.cancelBlur=!0;this._delay(function(){delete this.cancelBlur;r.call(this)});this._start(t)!==!1&&this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(n(t.currentTarget).hasClass("ui-state-active"))return this._start(t)===!1?!1:(this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t),void 0)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var n=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton");this.buttons=n.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all");this.buttons.height()>Math.ceil(.5*n.height())&&n.height()>0&&n.height(n.height());this.options.disabled&&this.disable()},_keydown:function(t){var r=this.options,i=n.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,r.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-r.page,t),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'><\/span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;<\/span><\/a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;<\/span><\/a>"},_start:function(n){return this.spinning||this._trigger("start",n)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(n,t,i){n=n||500;clearTimeout(this.timer);this.timer=this._delay(function(){this._repeat(40,t,i)},n);this._spin(t*this.options.step,i)},_spin:function(n,t){var i=this.value()||0;this.counter||(this.counter=1);i=this._adjustValue(i+n*this._increment(this.counter));this.spinning&&this._trigger("spin",t,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(t){var i=this.options.incremental;return i?n.isFunction(i)?i(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var n=this._precisionOf(this.options.step);return null!==this.options.min&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=""+n,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return r=null!==t.min?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),null!==t.max&&n>t.max?t.max:null!==t.min&&t.min>n?t.min:n},_stop:function(n){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",n))},_setOption:function(n,t){if("culture"===n||"numberFormat"===n){var i=this._parse(this.element.val());return this.options[n]=t,this.element.val(this._format(i)),void 0}("max"===n||"min"===n||"step"===n)&&"string"==typeof t&&(t=this._parse(t));"icons"===n&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down));this._super(n,t);"disabled"===n&&(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable"))},_setOptions:t(function(n){this._super(n)}),_parse:function(n){return"string"==typeof n&&""!==n&&(n=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(n,10,this.options.culture):+n),""===n||isNaN(n)?null:n},_format:function(n){return""===n?"":window.Globalize&&this.options.numberFormat?Globalize.format(n,this.options.numberFormat,this.options.culture):n},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var n=this.value();return null===n?!1:n===this._adjustValue(n)},_value:function(n,t){var i;""!==n&&(i=this._parse(n),null!==i&&(t||(i=this._adjustValue(i)),n=this._format(i)));this.element.val(n);this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.uiSpinner.replaceWith(this.element)},stepUp:t(function(n){this._stepUp(n)}),_stepUp:function(n){this._start()&&(this._spin((n||1)*this.options.step),this._stop())},stepDown:t(function(n){this._stepDown(n)}),_stepDown:function(n){this._start()&&(this._spin((n||1)*-this.options.step),this._stop())},pageUp:t(function(n){this._stepUp((n||1)*this.options.page)}),pageDown:t(function(n){this._stepDown((n||1)*this.options.page)}),value:function(n){return arguments.length?(t(this._value).call(this,n),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}});n.widget("ui.tabs",{version:"1.11.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var n=/#.*$/;return function(t){var i,r;t=t.cloneNode(!1);i=t.href.replace(n,"");r=location.href.replace(n,"");try{i=decodeURIComponent(i)}catch(u){}try{r=decodeURIComponent(r)}catch(u){}return t.hash.length>1&&i===r}}(),_create:function(){var i=this,t=this.options;this.running=!1;this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",t.collapsible);this._processTabs();t.active=this._initialActive();n.isArray(t.disabled)&&(t.disabled=n.unique(t.disabled.concat(n.map(this.tabs.filter(".ui-state-disabled"),function(n){return i.tabs.index(n)}))).sort());this.active=this.options.active!==!1&&this.anchors.length?this._findActive(t.active):n();this._refresh();this.active.length&&this.load(t.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,r=location.hash.substring(1);return null===t&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return(t=i,!1)}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=i?!1:0)),!i&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):n()}},_tabKeydown:function(t){var r=n(this.document[0].activeElement).closest("li"),i=this.tabs.index(r),u=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case n.ui.keyCode.RIGHT:case n.ui.keyCode.DOWN:i++;break;case n.ui.keyCode.UP:case n.ui.keyCode.LEFT:u=!1;i--;break;case n.ui.keyCode.END:i=this.anchors.length-1;break;case n.ui.keyCode.HOME:i=0;break;case n.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),this._activate(i),void 0;case n.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),this._activate(i===this.options.active?!1:i),void 0;default:return}t.preventDefault();clearTimeout(this.activating);i=this._focusNextTab(i,u);t.ctrlKey||(r.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===n.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){return t.altKey&&t.keyCode===n.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===n.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function u(){return t>r&&(t=0),0>t&&(t=r),t}for(var r=this.tabs.length-1;-1!==n.inArray(u(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(n,t){return n=this._findNextTab(n,t),this.tabs.eq(n).focus(),n},_setOption:function(n,t){return"active"===n?(this._activate(t),void 0):"disabled"===n?(this._setupDisabled(t),void 0):(this._super(n,t),"collapsible"===n&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0)),"event"===n&&this._setupEvents(t),"heightStyle"===n&&this._setupHeightStyle(t),void 0)},_sanitizeSelector:function(n){return n?n.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=n.map(i.filter(".ui-state-disabled"),function(n){return i.index(n)});this._processTabs();t.active!==!1&&this.anchors.length?this.active.length&&!n.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=n()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=n());this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled);this._setupEvents(this.options.event);this._setupHeightStyle(this.options.heightStyle);this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1});this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"});this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(t){n(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){n(this).closest("li").is(".ui-state-disabled")&&this.blur()});this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1});this.anchors=this.tabs.map(function(){return n("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1});this.panels=n();this.anchors.each(function(i,r){var f,u,e,s=n(r).uniqueId().attr("id"),o=n(r).closest("li"),h=o.attr("aria-controls");t._isLocal(r)?(f=r.hash,e=f.substring(1),u=t.element.find(t._sanitizeSelector(f))):(e=o.attr("aria-controls")||n({}).uniqueId()[0].id,f="#"+e,u=t.element.find(f),u.length||(u=t._createPanel(e),u.insertAfter(t.panels[i-1]||t.tablist)),u.attr("aria-live","polite"));u.length&&(t.panels=t.panels.add(u));h&&o.data("ui-tabs-aria-controls",h);o.attr({"aria-controls":e,"aria-labelledby":s});u.attr("aria-labelledby",s)});this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return n("<div>").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){n.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var i,r=0;i=this.tabs[r];r++)t===!0||-1!==n.inArray(r,t)?n(i).addClass("ui-state-disabled").attr("aria-disabled","true"):n(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={};t&&n.each(t.split(" "),function(n,t){i[t]="_eventHandler"});this._off(this.anchors.add(this.tabs).add(this.panels));this._on(!0,this.anchors,{click:function(n){n.preventDefault()}});this._on(this.anchors,i);this._on(this.tabs,{keydown:"_tabKeydown"});this._on(this.panels,{keydown:"_panelKeydown"});this._focusable(this.tabs);this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,r=this.element.parent();"fill"===t?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");"absolute"!==r&&"fixed"!==r&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=n(this).outerHeight(!0)}),this.panels.each(function(){n(this).height(Math.max(0,i-n(this).innerHeight()+n(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,n(this).height("").height())}).height(i))},_eventHandler:function(t){var u=this.options,r=this.active,c=n(t.currentTarget),i=c.closest("li"),f=i[0]===r[0],e=f&&u.collapsible,o=e?n():this._getPanelForTab(i),s=r.length?this._getPanelForTab(r):n(),h={oldTab:r,oldPanel:s,newTab:e?n():i,newPanel:o};t.preventDefault();i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||f&&!u.collapsible||this._trigger("beforeActivate",t,h)===!1||(u.active=e?!1:this.tabs.index(i),this.active=f?n():i,this.xhr&&this.xhr.abort(),s.length||o.length||n.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(i),t),this._toggle(t,h))},_toggle:function(t,i){function e(){u.running=!1;u._trigger("activate",t,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active");r.length&&u.options.show?u._show(r,u.options.show,e):(r.show(),e())}var u=this,r=i.newPanel,f=i.oldPanel;this.running=!0;f.length&&this.options.hide?this._hide(f,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active");o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),f.hide(),o());f.attr("aria-hidden","true");i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"});r.length&&f.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===n(this).attr("tabIndex")}).attr("tabIndex",-1);r.attr("aria-hidden","false");i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var r,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),r=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:r,currentTarget:r,preventDefault:n.noop}))},_findActive:function(t){return t===!1?n():this.tabs.eq(t)},_getIndex:function(n){return"string"==typeof n&&(n=this.anchors.index(this.anchors.filter("[href$='"+n+"']"))),n},_destroy:function(){this.xhr&&this.xhr.abort();this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible");this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role");this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId();this.tablist.unbind(this.eventNamespace);this.tabs.add(this.panels).each(function(){n.data(this,"ui-tabs-destroy")?n(this).remove():n(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")});this.tabs.each(function(){var t=n(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")});this.panels.show();"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(void 0===t?i=!1:(t=this._getIndex(t),i=n.isArray(i)?n.map(i,function(n){return n!==t?n:null}):n.map(this.tabs,function(n,i){return i!==t?i:null})),this._setupDisabled(i))},disable:function(t){var i=this.options.disabled;if(i!==!0){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==n.inArray(t,i))return;i=n.isArray(i)?n.merge([t],i).sort():[t]}this._setupDisabled(i)}},load:function(t,i){t=this._getIndex(t);var u=this,r=this.tabs.eq(t),e=r.find(".ui-tabs-anchor"),f=this._getPanelForTab(r),o={tab:r,panel:f};this._isLocal(e[0])||(this.xhr=n.ajax(this._ajaxSettings(e,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(r.addClass("ui-tabs-loading"),f.attr("aria-busy","true"),this.xhr.success(function(n){setTimeout(function(){f.html(n);u._trigger("load",i,o)},1)}).complete(function(n,t){setTimeout(function(){"abort"===t&&u.panels.stop(!1,!0);r.removeClass("ui-tabs-loading");f.removeAttr("aria-busy");n===u.xhr&&delete u.xhr},1)})))},_ajaxSettings:function(t,i,r){var u=this;return{url:t.attr("href"),beforeSend:function(t,f){return u._trigger("beforeLoad",i,n.extend({jqXHR:t,ajaxSettings:f},r))}}},_getPanelForTab:function(t){var i=n(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}});n.widget("ui.tooltip",{version:"1.11.1",options:{content:function(){var t=n(this).attr("title")||"";return n("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(t,i){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(i);t.data("ui-tooltip-id",i).attr("aria-describedby",n.trim(r.join(" ")))},_removeDescribedBy:function(t){var u=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=n.inArray(u,i);-1!==r&&i.splice(r,1);t.removeData("ui-tooltip-id");i=n.trim(i.join(" "));i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"});this.tooltips={};this.parents={};this.options.disabled&&this._disable();this.liveRegion=n("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(t,i){var r=this;return"disabled"===t?(this[i?"_disable":"_enable"](),this.options[t]=i,void 0):(this._super(t,i),"content"===t&&n.each(this.tooltips,function(n,t){r._updateContent(t)}),void 0)},_disable:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r[0];t.close(u,!0)});this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=n(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var r=this,i=n(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var i,t=n(this);t.data("ui-tooltip-open")&&(i=n.Event("blur"),i.target=i.currentTarget=this,r.close(i,!0));t.attr("title")&&(t.uniqueId(),r.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._updateContent(i,t))},_updateContent:function(n,t){var i,r=this.options.content,u=this,f=t?t.type:null;return"string"==typeof r?this._open(t,n,r):(i=r.call(n[0],function(i){n.data("ui-tooltip-open")&&u._delay(function(){t&&(t.type=f);this._open(t,n,i)})}),i&&this._open(t,n,i),void 0)},_open:function(t,i,r){function o(n){s.of=n;u.is(":hidden")||u.position(s)}var u,f,h,e,s=n.extend({},this.options.position);if(r){if(u=this._find(i),u.length)return u.find(".ui-tooltip-content").html(r),void 0;i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title"));u=this._tooltip(i);this._addDescribedBy(i,u.attr("id"));u.find(".ui-tooltip-content").html(r);this.liveRegion.children().hide();r.clone?(e=r.clone(),e.removeAttr("id").find("[id]").removeAttr("id")):e=r;n("<div>").html(e).appendTo(this.liveRegion);this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):u.position(n.extend({of:i},this.options.position));this.hiding=!1;this.closing=!1;u.hide();this._show(u,this.options.show);this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(o(s.of),clearInterval(h))},n.fx.interval));this._trigger("open",t,{tooltip:u});f={keyup:function(t){if(t.keyCode===n.ui.keyCode.ESCAPE){var r=n.Event(t);r.currentTarget=i[0];this.close(r,!0)}}};i[0]!==this.element[0]&&(f.remove=function(){this._removeTooltip(u)});t&&"mouseover"!==t.type||(f.mouseleave="close");t&&"focusin"!==t.type||(f.focusout="close");this._on(!0,i,f)}},close:function(t){var u=this,i=n(t?t.currentTarget:this.element),r=this._find(i);this.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),this.hiding=!0,r.stop(!0),this._hide(r,this.options.hide,function(){u._removeTooltip(n(this));this.hiding=!1;this.closing=!1}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&n.each(this.parents,function(t,i){n(i.element).attr("title",i.title);delete u.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:r}),this.hiding||(this.closing=!1))},_tooltip:function(t){var i=n("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),r=i.uniqueId().attr("id");return n("<div>").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[r]=t,i},_find:function(t){var i=t.data("ui-tooltip-id");return i?n("#"+i):n()},_removeTooltip:function(n){n.remove();delete this.tooltips[n.attr("id")]},_destroy:function(){var t=this;n.each(this.tooltips,function(i,r){var u=n.Event("blur");u.target=u.currentTarget=r[0];t.close(u,!0);n("#"+i).remove();r.data("ui-tooltip-title")&&(r.attr("title")||r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))});this.liveRegion.remove()}})});var pasteEventName=getPasteEvent()+".mask",ua=navigator.userAgent,iPhone=/iphone/i.test(ua),android=/android/i.test(ua),caretTimeoutId;$.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"};$.fn.extend({caret:function(n,t){var i;if(this.length!==0&&!this.is(":hidden"))return typeof n=="number"?(t=typeof t=="number"?t:n,this.each(function(){this.setSelectionRange?this.setSelectionRange(n,t):this.createTextRange&&(i=this.createTextRange(),i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",n),i.select())})):(this[0].setSelectionRange?(n=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),n=0-i.duplicate().moveStart("character",-1e5),t=n+i.text.length),{begin:n,end:t})},unmask:function(){return this.trigger("unmask")},maskMe:function(n,t){var o,e,i,u,f,r;return!n&&this.length>0?(o=$(this[0]),o.data($.mask.dataName)()):(t=$.extend({placeholder:$.mask.placeholder,completed:null},t),e=$.mask.definitions,i=[],u=r=n.length,f=null,$.each(n.split(""),function(n,t){t=="?"?(r--,u=n):e[t]?(i.push(new RegExp(e[t])),f===null&&(f=i.length-1)):i.push(null)}),this.trigger("unmask").each(function(){function h(n){while(++n<r&&!i[n]);return n}function p(n){while(--n>=0&&!i[n]);return n}function y(n,u){var l,e;if(!(n<0)){for(l=n,e=h(u);l<r;l++)if(i[l]){if(e<r&&i[l].test(s[e]))s[l]=s[e],s[e]=t.placeholder;else break;e=h(e)}c();o.caret(Math.max(f,n))}}function w(n){for(var e,o,u=n,f=t.placeholder;u<r;u++)if(i[u])if(e=h(u),o=s[u],s[u]=f,e<r&&i[e].test(o))f=o;else break}function b(n){var r=n.which,u,i,t;r===8||r===46||iPhone&&r===127?(u=o.caret(),i=u.begin,t=u.end,t-i==0&&(i=r!==46?p(i):t=h(i-1),t=r===46?h(t):t),v(i,t),y(i,t-1),n.preventDefault()):r==27&&(o.val(a),o.caret(0,l()),n.preventDefault())}function k(n){var l=n.which,u=o.caret(),f,a,e;n.ctrlKey||n.altKey||n.metaKey||l<32||l&&(u.end-u.begin!=0&&(v(u.begin,u.end),y(u.begin,u.end-1)),f=h(u.begin-1),f<r&&(a=String.fromCharCode(l),i[f].test(a)&&(w(f),s[f]=a,c(),e=h(f),android?setTimeout($.proxy($.fn.caret,o,e),0):o.caret(e),t.completed&&e>=r&&t.completed.call(o))),n.preventDefault())}function v(n,u){for(var f=n;f<u&&f<r;f++)i[f]&&(s[f]=t.placeholder)}function c(){o.val(s.join(""))}function l(n){var h=o.val(),l=-1,e,a;for(e=0,pos=0;e<r;e++)if(i[e]){for(s[e]=t.placeholder;pos++<h.length;)if(a=h.charAt(pos-1),i[e].test(a)){s[e]=a;l=e;break}if(pos>h.length)break}else s[e]===h.charAt(pos)&&e!==u&&(pos++,l=e);return n?c():l+1<u?(o.val(""),v(0,r)):(c(),o.val(o.val().substring(0,l+1))),u?e:f}var o=$(this),s=$.map(n.split(""),function(n){if(n!="?")return e[n]?t.placeholder:n}),a=o.val();o.data($.mask.dataName,function(){return $.map(s,function(n,r){return i[r]&&n!=t.placeholder?n:null}).join("")});o.attr("readonly")||o.one("unmask",function(){o.unbind(".mask").removeData($.mask.dataName)}).bind("focus.mask",function(){clearTimeout(caretTimeoutId);var t;a=o.val();t=l();caretTimeoutId=setTimeout(function(){c();t==n.length?o.caret(0,t):o.caret(t)},10)}).bind("blur.mask",function(){l();o.val()!=a&&o.change()}).bind("keydown.mask",b).bind("keypress.mask",k).bind(pasteEventName,function(){setTimeout(function(){var n=l(!0);o.caret(n);t.completed&&n==o.val().length&&t.completed.call(o)},0)});l()}))}});var productRequest=null,productFormRequest=null,productMSDSRequest=null,productPanelRequest=null,orderRequest=null,searchRequest=null,favoritiesRequest=null,mapObj=null,advSearchLoadedAsMedia=!1,resizinginprocess=!1,resulthtml=null,lastwindowwidth=null,lastwindowheight=null,overwriteAjaxReturnUrlToCustomeFunction=undefined,overwriteAjaxReturnUrlToCustomeFunctionParam1=undefined,errorMessage=$("<div class='error' id='error404' style='min-height: 100%;'><img class='error404-image' src='/Content/images/nusil-logo.png' /><h3>Error<\/h3><p>We are sorry, our service is currently unavailable.<\/p><\/div>"),wideheadheight=0;$(document).ajaxComplete(function(){initCategoryBannerNavigation();initCurrentInSidebarMenu();initDateFormat();initDatePicker()});$(window).on("resize",function(){if($(window).width()!=lastwindowwidth)if($(window).width()<768?$("#footerdiv").attr("style","position:relative"):($("#footerdiv").attr("style",""),$(".product-cells").css("display",""),$(".product-cell").css("display",""),$(".mobile-labels").css("display","none"),$("h6.toggled").removeClass("toggled")),$("#advanced-search").length>0){if($(window).width()>750)setTimeout(function(){resizeHeaderSearchTable($("#advanced-search"))},400)}else resizeProductTable($(".content"));lastwindowwidth=$(window).width();lastwindowheight=$(window).height()});$(document).ready(function(){lastwindowwidth=$(window).width();lastwindowheight=$(window).height();lastwindowwidth<768&&$("#footerdiv").attr("style","position:relative");initProductsPanel(1);initProductForm();initProductMSDS();initProduct();initOrder();initHomePage();initAllProducts();initGlossary();initCareers();initDateFormat();initDatePicker();initCategoryBannerNavigation();initCurrentInSidebarMenu();initSearch();initSearchInput();initFavorities();initValidateJobApplication();initValidateJob();initValidateOrderForm();initContacts();initAjaxFormEnterSubmit();initValidateContactForm();initRememberMe();initProfileCountryPrivinceLogic();initJobApplicationSourceLogic();initProfileIndustryLogic();initAdvancedSearch();initJobAndApplicationList();window.addEventListener?window.addEventListener("hashchange",initCurrentInSidebarMenu,!1):window.attachEvent("hashchange",initCurrentInSidebarMenu);initFocus();initMask();initPopUpModal();initEditModePlaceholders();initHighlight();var n=lastwindowwidth>1006?4e3:0});overlaps=function(){function n(n){var t,i,r,u;return t=$(n).offset().left,i=$(n).offset().top,r=$(n).outerWidth(!0),u=$(n).outerHeight(!0),[[t,t+r],[i,i+u]]}function t(n,t){var i,r;return i=n[0]<t[0]?n:t,r=n[0]<t[0]?t:n,i[1]>r[0]||i[0]===r[0]}return function(i,r){var u=n(i),f=n(r);return t(u[0],f[0])&&t(u[1],f[1])}}();alls_timer=null;mapCountry=null;advs_timer=null;disableUrlWrite=!1;var menuColor=$("body").attr("data-menu"),logoColor=$("body").attr("data-logo"),basicLogoColor=$("body").attr("data-logo-basic");$("#nav #home").addClass(basicLogoColor);$("#nav #avantorLogo").addClass(basicLogoColor);$("#nav .avantor-modal-trigger-icon").addClass(basicLogoColor);setTimeout(colorToggle,4e3);$(document).scroll(function(){colorToggle()});$(document).ready(function(){$("#isPostBackCategoryCommandBtn").length&&$(window).width()<=480&&$("#isPostBackCategoryCommandBtn").val()=="1"&&scrollSiteTo($(".content-library__content"),50)}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)}(function(n){function i(n){return t.raw?n:encodeURIComponent(n)}function f(n){return t.raw?n:decodeURIComponent(n)}function e(n){return i(t.json?JSON.stringify(n):String(n))}function o(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return n=decodeURIComponent(n.replace(u," ")),t.json?JSON.parse(n):n}catch(i){}}function r(i,r){var u=t.raw?i:o(i);return n.isFunction(r)?r(u):u}var u=/\+/g,t=n.cookie=function(u,o,s){var y,a,h,v,c,p;if(o!==undefined&&!n.isFunction(o))return s=n.extend({},t.defaults,s),typeof s.expires=="number"&&(y=s.expires,a=s.expires=new Date,a.setTime(+a+y*864e5)),document.cookie=[i(u),"=",e(o),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("");for(h=u?undefined:{},v=document.cookie?document.cookie.split("; "):[],c=0,p=v.length;c<p;c++){var w=v[c].split("="),b=f(w.shift()),l=w.join("=");if(u&&u===b){h=r(l,o);break}u||(l=r(l))===undefined||(h[b]=l)}return h};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)===undefined?!1:(n.cookie(t,"",n.extend({},i,{expires:-1})),!n.cookie(t))}}),function(n,t,i){typeof define=="function"&&define.amd?define(["jquery"],function(r){return i(r,n,t),r.mobile}):i(n.jQuery,n,t)}(this,document,function(n,t,i){(function(n,t,i,r){function h(n){while(n&&typeof n.originalEvent!="undefined")n=n.originalEvent;return n}function vt(t,i){var u=t.type,e,o,l,f,s,a,v,c,y;if(t=n.Event(t),t.type=i,e=t.originalEvent,o=n.event.props,u.search(/^(mouse|click)/)>-1&&(o=gt),e)for(v=o.length,f;v;)f=o[--v],t[f]=e[f];if(u.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),u.search(/^touch/)!==-1&&(l=h(e),u=l.touches,s=l.changedTouches,a=u&&u.length?u[0]:s&&s.length?s[0]:r,a))for(c=0,y=ct.length;c<y;c++)f=ct[c],t[f]=a[f];return t}function v(t){for(var i={},r,u;t;){r=n.data(t,o);for(u in r)r[u]&&(i[u]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function yt(t,i){for(var r;t;){if(r=n.data(t,o),r&&(!i||r[i]))return t;t=t.parentNode}return null}function pt(){l=!1}function tt(){l=!0}function wt(){s=0;y.length=0;d=!1;tt()}function bt(){pt()}function w(){it();c=setTimeout(function(){c=0;wt()},n.vmouse.resetTimerDuration)}function it(){c&&(clearTimeout(c),c=0)}function f(t,i,r){var u;return(r&&r[t]||!r&&yt(i.target,t))&&(u=vt(i,t),n(i.target).trigger(u)),u}function rt(t){var r=n.data(t.target,b),i;d||s&&s===r||(i=f("v"+t.type,t),i&&(i.isDefaultPrevented()&&t.preventDefault(),i.isPropagationStopped()&&t.stopPropagation(),i.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function ut(t){var o=h(t).touches,r,i,u;o&&o.length===1&&(r=t.target,i=v(r),i.hasVirtualBinding&&(s=ni++,n.data(r,b,s),it(),bt(),e=!1,u=h(t).touches[0],lt=u.pageX,at=u.pageY,f("vmouseover",t,i),f("vmousedown",t,i)))}function ft(n){l||(e||f("vmousecancel",n,v(n.target)),e=!0,w())}function et(t){if(!l){var i=h(t).touches[0],o=e,r=n.vmouse.moveDistanceThreshold,u=v(t.target);e=e||Math.abs(i.pageX-lt)>r||Math.abs(i.pageY-at)>r;e&&!o&&f("vmousecancel",t,u);f("vmousemove",t,u);w()}}function ot(n){if(!l){tt();var t=v(n.target),i,r;f("vmouseup",n,t);e||(i=f("vclick",n,t),i&&i.isDefaultPrevented()&&(r=h(n).changedTouches[0],y.push({touchID:s,x:r.clientX,y:r.clientY}),d=!0));f("vmouseout",n,t);e=!1;w()}}function st(t){var i=n.data(t,o),r;if(i)for(r in i)if(i[r])return!0;return!1}function ht(){}function kt(t){var i=t.substr(1);return{setup:function(){st(this)||n.data(this,o,{});var r=n.data(this,o);r[t]=!0;u[t]=(u[t]||0)+1;u[t]===1&&p.bind(i,rt);n(this).bind(i,ht);g&&(u.touchstart=(u.touchstart||0)+1,u.touchstart===1&&p.bind("touchstart",ut).bind("touchend",ot).bind("touchmove",et).bind("scroll",ft))},teardown:function(){--u[t];u[t]||p.unbind(i,rt);g&&(--u.touchstart,u.touchstart||p.unbind("touchstart",ut).unbind("touchmove",et).unbind("touchend",ot).unbind("scroll",ft));var r=n(this),f=n.data(this,o);f&&(f[t]=!1);r.unbind(i,ht);st(this)||r.removeData(o)}}}var o="virtualMouseBindings",b="virtualTouchID",k="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),ct="clientX clientY pageX pageY screenX screenY".split(" "),dt=n.event.mouseHooks?n.event.mouseHooks.props:[],gt=n.event.props.concat(dt),u={},c=0,lt=0,at=0,e=!1,y=[],d=!1,l=!1,g="addEventListener"in i,p=n(i),ni=1,s=0,nt,a;for(n.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},a=0;a<k.length;a++)n.event.special[k[a]]=kt(k[a]);g&&i.addEventListener("click",function(t){var f=y.length,e=t.target,o,s,i,r,u,h;if(f)for(o=t.clientX,s=t.clientY,nt=n.vmouse.clickDistanceThreshold,i=e;i;){for(r=0;r<f;r++)if(u=y[r],h=0,i===e&&Math.abs(u.x-o)<nt&&Math.abs(u.y-s)<nt||n.data(i,b)===u.touchID){t.preventDefault();t.stopPropagation();return}i=i.parentNode}},!0)})(n,t,i),function(n){n.mobile={}}(n),function(n){var t={touch:"ontouchend"in i};n.mobile.support=n.mobile.support||{};n.extend(n.support,t);n.extend(n.mobile.support,t)}(n),function(n,t,r){function f(t,i,u,f){var e=u.type;u.type=i;f?n.event.trigger(u,r,t):n.event.dispatch.call(t,u);u.type=e}var u=n(i),e=n.mobile.support.touch,s="touchmove scroll",h=e?"touchstart":"mousedown",c=e?"touchend":"mouseup",o=e?"touchmove":"mousemove";n.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){n.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};n.attrFn&&(n.attrFn[i]=!0)});n.event.special.scrollstart={enabled:!0,setup:function(){function i(n,i){t=i;f(r,t?"scrollstart":"scrollstop",n)}var r=this,e=n(r),t,u;e.bind(s,function(r){n.event.special.scrollstart.enabled&&(t||i(r,!0),clearTimeout(u),u=setTimeout(function(){i(r,!1)},50))})},teardown:function(){n(this).unbind(s)}};n.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var i=this,r=n(i),t=!1;r.bind("vmousedown",function(e){function o(){clearTimeout(l)}function s(){o();r.unbind("vclick",h).unbind("vmouseup",o);u.unbind("vmousecancel",s)}function h(n){s();!t&&c===n.target?f(i,"tap",n):t&&n.stopPropagation()}if(t=!1,e.which&&e.which!==1)return!1;var c=e.target,l;r.bind("vmouseup",o).bind("vclick",h);u.bind("vmousecancel",s);l=setTimeout(function(){n.event.special.tap.emitTapOnTaphold||(t=!0);f(i,"taphold",n.Event("taphold",{target:c}))},n.event.special.tap.tapholdThreshold)})},teardown:function(){n(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup");u.unbind("vmousecancel")}};n.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(n){var u=t.pageXOffset,f=t.pageYOffset,i=n.clientX,r=n.clientY;return n.pageY===0&&Math.floor(r)>Math.floor(n.pageY)||n.pageX===0&&Math.floor(i)>Math.floor(n.pageX)?(i-=u,r-=f):(r<n.pageY-f||i<n.pageX-u)&&(i=n.pageX-u,r=n.pageY-f),{x:i,y:r}},start:function(t){var r=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y],origin:n(t.target)}},stop:function(t){var r=t.originalEvent.touches?t.originalEvent.touches[0]:t,i=n.event.special.swipe.getLocation(r);return{time:(new Date).getTime(),coords:[i.x,i.y]}},handleSwipe:function(t,i,r,u){if(i.time-t.time<n.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-i.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])<n.event.special.swipe.verticalDistanceThreshold){var e=t.coords[0]>i.coords[0]?"swipeleft":"swiperight";return f(r,"swipe",n.Event("swipe",{target:u,swipestart:t,swipestop:i}),!0),f(r,e,n.Event(e,{target:u,swipestart:t,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var i,r=this,f=n(r),t={};i=n.data(this,"mobile-events");i||(i={length:0},n.data(this,"mobile-events",i));i.length++;i.swipe=t;t.start=function(i){if(!n.event.special.swipe.eventInProgress){n.event.special.swipe.eventInProgress=!0;var e,s=n.event.special.swipe.start(i),h=i.target,f=!1;t.move=function(t){s&&(e=n.event.special.swipe.stop(t),f||(f=n.event.special.swipe.handleSwipe(s,e,r,h),f&&(n.event.special.swipe.eventInProgress=!1)),Math.abs(s.coords[0]-e.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())};t.stop=function(){f=!0;n.event.special.swipe.eventInProgress=!1;u.off(o,t.move);t.move=null};u.on(o,t.move).one(c,t.stop)}};f.on(h,t.start)},teardown:function(){var i,t;i=n.data(this,"mobile-events");i&&(t=i.swipe,delete i.swipe,i.length--,i.length===0&&n.removeData(this,"mobile-events"));t&&(t.start&&n(this).off(h,t.start),t.move&&u.off(o,t.move),t.stop&&u.off(c,t.stop))}};n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,i){n.event.special[t]={setup:function(){n(this).bind(i,n.noop)},teardown:function(){n(this).unbind(i)}}})}(n,this)}),function(n,t,i,r){"use strict";function f(n){return(typeof n=="string"||n instanceof String)&&(n=n.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"")),n}var e=function(t){for(var i=t.length,r=n("head");i--;)n("head").has("."+t[i]).length===0&&n("head").append('<meta class="'+t[i]+'" />')};e(["foundation-mq-small","foundation-mq-medium","foundation-mq-large","foundation-mq-xlarge","foundation-mq-xxlarge","foundation-data-attribute-namespace"]);n(function(){typeof FastClick!="undefined"&&typeof i.body!="undefined"&&FastClick.attach(i.body)});var u=function(t,r){if(typeof t=="string"){if(r){var u;if(r.jquery){if(u=r[0],!u)return r}else u=r;return n(u.querySelectorAll(t))}return n(i.querySelectorAll(t))}return n(t,r)},o=function(n){var t=[];return n||t.push("data"),this.namespace.length>0&&t.push(this.namespace),t.push(this.name),t.join("-")},s=function(n){for(var i=n.split("-"),t=i.length,r=[];t--;)t!==0?r.push(i[t]):this.namespace.length>0?r.push(this.namespace,i[t]):r.push(i[t]);return r.reverse().join("-")},h=function(t,i){var r=this,f=!u(this).data(this.attr_name(!0));if(typeof t=="string")return this[t].call(this,i);u(this.scope).is("["+this.attr_name()+"]")?(u(this.scope).data(this.attr_name(!0)+"-init",n.extend({},this.settings,i||t,this.data_options(u(this.scope)))),f&&this.events(this.scope)):u("["+this.attr_name()+"]",this.scope).each(function(){var f=!u(this).data(r.attr_name(!0)+"-init");u(this).data(r.attr_name(!0)+"-init",n.extend({},r.settings,i||t,r.data_options(u(this))));f&&r.events(this)})},c=function(n,t){function i(){t(n[0])}function r(){this.one("load",i);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var n=this.attr("src"),t=n.match(/\?/)?"&":"?";t+="random="+(new Date).getTime();this.attr("src",n+t)}}if(!n.attr("src")){i();return}n[0].complete||n[0].readyState===4?i():r.call(n)};t.matchMedia=t.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(i),function(){function e(){r&&(i(e),o&&jQuery.fx.tick())}for(var r,n=0,u=["webkit","moz"],i=t.requestAnimationFrame,f=t.cancelAnimationFrame,o="undefined"!=typeof jQuery.fx;n<u.length&&!i;n++)i=t[u[n]+"RequestAnimationFrame"],f=f||t[u[n]+"CancelAnimationFrame"]||t[u[n]+"CancelRequestAnimationFrame"];i?(t.requestAnimationFrame=i,t.cancelAnimationFrame=f,o&&(jQuery.fx.timer=function(n){n()&&jQuery.timers.push(n)&&!r&&(r=!0,e())},jQuery.fx.stop=function(){r=!1})):(t.requestAnimationFrame=function(i){var r=(new Date).getTime(),u=Math.max(0,16-(r-n)),f=t.setTimeout(function(){i(r+u)},u);return n=r+u,f},t.cancelAnimationFrame=function(n){clearTimeout(n)})}(jQuery);t.Foundation={name:"Foundation",version:"5.2.1",media_queries:{small:u(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:u(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:u(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:u(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:u(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:n("<style><\/style>").appendTo("head")[0].sheet,global:{namespace:""},init:function(n,t,i,r,f){var s=[n,i,r,f],e=[],o;if(this.rtl=/rtl/i.test(u("html").attr("dir")),this.scope=n||this.scope,this.set_namespace(),t&&typeof t=="string"&&!/reflow/i.test(t))this.libs.hasOwnProperty(t)&&e.push(this.init_lib(t,s));else for(o in this.libs)e.push(this.init_lib(o,t));return n},init_lib:function(t,i){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),i&&i.hasOwnProperty(t)?(typeof this.libs[t].settings!="undefined"?n.extend(!0,this.libs[t].settings,i[t]):typeof this.libs[t].defaults!="undefined"&&n.extend(!0,this.libs[t].defaults,i[t]),this.libs[t].init.apply(this.libs[t],[this.scope,i[t]])):(i=i instanceof Array?i:Array(i),this.libs[t].init.apply(this.libs[t],i))):function(){}},patch:function(n){n.scope=this.scope;n.namespace=this.global.namespace;n.rtl=this.rtl;n.data_options=this.utils.data_options;n.attr_name=o;n.add_namespace=s;n.bindings=h;n.S=this.utils.S},inherit:function(n,t){for(var i=t.split(" "),r=i.length;r--;)this.utils.hasOwnProperty(i[r])&&(n[i[r]]=this.utils[i[r]])},set_namespace:function(){var t=this.global.namespace||n(".foundation-data-attribute-namespace").css("font-family");/false/i.test(t)||(this.global.namespace=t)},libs:{},utils:{S:u,throttle:function(n,t){var i=null;return function(){var r=this,u=arguments;clearTimeout(i);i=setTimeout(function(){n.apply(r,u)},t)}},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r;return clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},data_options:function(t){function s(n){return!isNaN(+n)&&n!==null&&n!==""&&n!==!1&&n!==!0}function e(t){return typeof t=="string"?n.trim(t):t}var o={},r,i,u,h=function(n){var t=Foundation.global.namespace;return t.length>0?n.data(t+"-options"):n.data("options")},f=h(t);if(typeof f=="object")return f;for(u=(f||":").split(";"),r=u.length;r--;)i=u[r].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),s(i[1])&&(i[1]=i[1].indexOf(".")===-1?parseInt(i[1],10):parseFloat(i[1],10)),i.length===2&&i[0].length>0&&(o[e(i[0])]=e(i[1]));return o},register_media:function(t,i){Foundation.media_queries[t]===r&&(n("head").append('<meta class="'+i+'">'),Foundation.media_queries[t]=f(n("."+i).css("font-family")))},add_custom_rule:function(n,t){if(t===r)Foundation.stylesheet.insertRule(n,Foundation.stylesheet.cssRules.length);else{var i=Foundation.media_queries[t];i!==r&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[t]+"{ "+n+" }")}},image_loaded:function(n,t){var r=this,i=n.length;i===0&&t(n);n.each(function(){c(r.S(this),function(){i-=1;i===0&&t(n)})})},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+new Date).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)}}};n.fn.foundation=function(){var n=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(n)),this})}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.slider={name:"slider",version:"5.2.1",settings:{start:0,end:100,step:1,initial:null,display_selector:"",on_change:function(){}},cache:{},init:function(n,t,i){Foundation.inherit(this,"throttle");this.bindings(t,i);this.reflow()},events:function(){var i=this;n(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+i.attr_name()+"] .range-slider-handle",function(t){i.cache.active||i.set_active_slider(n(t.target))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(n){i.cache.active&&(n.preventDefault(),i.calculate_position(i.cache.active,n.pageX||n.originalEvent.touches[0].clientX||n.currentPoint.x))}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(){i.remove_active_slider()}).on("change.fndtn.slider",function(){i.settings.on_change});i.S(t).on("resize.fndtn.slider",i.throttle(function(){i.reflow()},300))},set_active_slider:function(n){this.cache.active=n},remove_active_slider:function(){this.cache.active=null},calculate_position:function(t,i){var r=this,u=n.extend({},r.settings,r.data_options(t.parent())),o=n.data(t[0],"handle_w"),s=n.data(t[0],"handle_o"),f=n.data(t[0],"bar_w"),e=n.data(t[0],"bar_o");requestAnimationFrame(function(){var n=r.limit_to((i-e)/f,0,1),o=r.normalized_value(n,u.start,u.end,u.step);r.set_ui(t,o)})},set_ui:function(t,i){var r=n.extend({},this.settings,this.data_options(t.parent())),f=n.data(t[0],"handle_w"),e=n.data(t[0],"bar_w"),u=this.normalized_percentage(i,r.start,r.end),o=u*(e-f)-1,s=u*100;this.set_translate(t,o);t.siblings(".range-slider-active-segment").css("width",s+"%");t.parent().attr(this.attr_name(),i);t.parent().trigger("change");t.parent().children("input[type=hidden]").val(i);r.input_id!=""&&n(r.display_selector).each(function(){this.hasOwnProperty("value")?n(this).val(i):n(this).text(i)})},normalized_percentage:function(n,t,i){return n/(i-t)},normalized_value:function(n,t,i,r){var f=i-t,r=r,u=n*f,e=(u-u%r)/r,o=u%r,s=o>=r*.5?r:0;return e*r+s},set_translate:function(t,i,r){r?n(t).css("-webkit-transform","translateY("+i+"px)").css("-moz-transform","translateY("+i+"px)").css("-ms-transform","translateY("+i+"px)").css("-o-transform","translateY("+i+"px)").css("transform","translateY("+i+"px)"):n(t).css("-webkit-transform","translateX("+i+"px)").css("-moz-transform","translateX("+i+"px)").css("-ms-transform","translateX("+i+"px)").css("-o-transform","translateX("+i+"px)").css("transform","translateX("+i+"px)")},limit_to:function(n,t,i){return Math.min(Math.max(n,t),i)},initialize_settings:function(t){n.data(t,"bar",n(t).parent());n.data(t,"bar_o",n(t).parent().offset().left);n.data(t,"bar_w",n(t).parent().outerWidth());n.data(t,"handle_o",n(t).offset().left);n.data(t,"handle_w",n(t).outerWidth());n.data(t,"settings",n.extend({},this.settings,this.data_options(n(t).parent())))},set_initial_position:function(t){var i=n.data(t.children(".range-slider-handle")[0],"settings"),r=i.initial?i.initial:Math.floor((i.end-i.start)*.5/i.step)*i.step,u=t.children(".range-slider-handle");this.set_ui(u,r)},set_value:function(t){var i=this;n("["+i.attr_name()+"]",this.scope).each(function(){n(this).attr(i.attr_name(),t)});!n(this.scope).attr(i.attr_name())||n(this.scope).attr(i.attr_name(),t);i.reflow()},reflow:function(){var t=this;t.S("["+this.attr_name()+"]").each(function(){var i=n(this).children(".range-slider-handle")[0],r=n(this).attr(t.attr_name());t.initialize_settings(i);r?t.set_ui(n(i),parseInt(r)):t.set_initial_position(n(this))})}}}(jQuery,this,this.document),function(n,t,i,r){"use strict";var u=u||!1;Foundation.libs.joyride={name:"joyride",version:"5.2.1",defaults:{expose:!1,modal:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;<\/a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"><\/span><\/div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"><\/span><\/div>',wrapper:'<div class="joyride-content-wrapper"><\/div>',button:'<a href="#" class="small button joyride-next-tip"><\/a>',modal:'<div class="joyride-modal-bg"><\/div>',expose:'<div class="joyride-expose-wrapper"><\/div>',expose_cover:'<div class="joyride-expose-cover"><\/div>'},expose_add_class:""},init:function(t,i,r){Foundation.inherit(this,"throttle random_str");this.settings=this.settings||n.extend({},this.defaults,r||i);this.bindings(i,r)},events:function(){var i=this;n(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(n){n.preventDefault();this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(n){n.preventDefault();this.end()}.bind(this));n(t).off(".joyride").on("resize.fndtn.joyride",i.throttle(function(){if(n("["+i.attr_name()+"]").length>0&&i.settings.$next_tip){if(i.settings.exposed.length>0){var t=n(i.settings.exposed);t.each(function(){var t=n(this);i.un_expose(t);i.expose(t)})}i.is_phone()?i.pos_phone():i.pos_default(!1,!0)}},100))},start:function(){var t=this,i=n("["+this.attr_name()+"]",this.scope),r=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],u=r.length;!i.length>0||(this.settings.init||this.events(),this.settings=i.data(this.attr_name(!0)+"-init"),this.settings.$content_el=i,this.settings.$body=n(this.settings.tip_container),this.settings.body_offset=n(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,typeof n.cookie!="function"&&(this.settings.cookie_monster=!1),this.settings.cookie_monster&&(!this.settings.cookie_monster||n.cookie(this.settings.cookie_name))||(this.settings.$tip_content.each(function(i){var e=n(this),f;for(this.settings=n.extend({},t.defaults,t.data_options(e)),f=u;f--;)t.settings[r[f]]=parseInt(t.settings[r[f]],10);t.create({$li:e,index:i})}),!this.settings.start_timer_on_click&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")))},resume:function(){this.set_li();this.show()},tip_template:function(t){var i,r;return t.tip_class=t.tip_class||"",i=n(this.settings.template.tip).addClass(t.tip_class),r=n.trim(n(t.li).html())+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),i.append(n(this.settings.template.wrapper)),i.first().attr(this.add_namespace("data-index"),t.index),n(".joyride-content-wrapper",i).append(r),i[0]},timer_instance:function(t){var i;return i=t===0&&this.settings.start_timer_on_click&&this.settings.timer>0||this.settings.timer===0?"":n(this.settings.template.timer)[0].outerHTML,i},button_text:function(t){return this.settings.next_button?(t=n.trim(t)||"Next",t=n(this.settings.template.button).append(t)[0].outerHTML):t="",t},create:function(t){var i=t.$li.attr(this.add_namespace("data-button"))||t.$li.attr(this.add_namespace("data-text")),r=t.$li.attr("class"),u=n(this.tip_template({tip_class:r,index:t.index,button_text:i,li:t.$li}));n(this.settings.tip_container).append(u)},show:function(t){var i=null;this.settings.$li===r||n.inArray(this.settings.$li.index(),this.settings.pause_after)===-1?(this.settings.paused?this.settings.paused=!1:this.set_li(t),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(t&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=n.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),i=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(i.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),setTimeout(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(i.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),setTimeout(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose();this.settings.modal||n(".joyride-modal-bg").hide();this.settings.$current_tip.css("visibility","hidden");setTimeout(n.proxy(function(){this.hide();this.css("visibility","visible")},this.settings.$current_tip),0);this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(n){n?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip());this.set_target()},set_next_tip:function(){this.settings.$next_tip=n(".joyride-tip-guide").eq(this.settings.$li.index());this.settings.$next_tip.data("closed","")},set_target:function(){var t=this.settings.$li.attr(this.add_namespace("data-class")),r=this.settings.$li.attr(this.add_namespace("data-id")),u=function(){return r?n(i.getElementById(r)):t?n("."+t).first():n("body")};this.settings.$target=u()},scroll_to:function(){var r,i;r=n(t).height()/2;i=Math.ceil(this.settings.$target.offset().top-r+this.settings.$next_tip.outerHeight());i!=0&&n("html, body").animate({scrollTop:i},this.settings.scroll_speed,"swing")},paused:function(){return n.inArray(this.settings.$li.index()+1,this.settings.pause_after)===-1},restart:function(){this.hide();this.settings.$li=r;this.show("init")},pos_default:function(i,r){var s=Math.ceil(n(t).height()/2),h=this.settings.$next_tip.offset(),u=this.settings.$next_tip.find(".joyride-nub"),e=Math.ceil(u.outerWidth()/2),f=Math.ceil(u.outerHeight()/2),o=i||!1;o&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show());typeof r=="undefined"&&(r=!1);/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(u):(this.bottom()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top+f+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top+f+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left}),this.nub_position(u,this.settings.tip_settings.nub_position,"top")):this.top()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-f,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-f,left:this.settings.$target.offset().left}),this.nub_position(u,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.outerWidth()+this.settings.$target.offset().left+e}),this.nub_position(u,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.settings.$next_tip.outerWidth()-e}),this.nub_position(u,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(u.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default()));o&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(t){var f=this.settings.$next_tip.outerHeight(),o=this.settings.$next_tip.offset(),e=this.settings.$target.outerHeight(),i=n(".joyride-nub",this.settings.$next_tip),r=Math.ceil(i.outerHeight()/2),u=t||!1;i.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left");u&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show());/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(i):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-f-r}),i.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+e+r}),i.addClass("top"));u&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(n){this.center();n.hide();this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var t=n(".joyride-modal-bg");t.length<1&&n("body").append(this.settings.template.modal).show();/pop/i.test(this.settings.tip_animation)?t.show():t.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var r,u,i,f,e,o="expose-"+this.random_str(6);if(arguments.length>0&&arguments[0]instanceof n)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return t.console&&console.error("element not valid",i),!1;r=n(this.settings.template.expose);this.settings.$body.append(r);r.css({top:i.offset().top,left:i.offset().left,width:i.outerWidth(!0),height:i.outerHeight(!0)});u=n(this.settings.template.expose_cover);f={zIndex:i.css("z-index"),position:i.css("position")};e=i.attr("class")==null?"":i.attr("class");i.css("z-index",parseInt(r.css("z-index"))+1);f.position=="static"&&i.css("position","relative");i.data("expose-css",f);i.data("orig-class",e);i.attr("class",e+" "+this.settings.expose_add_class);u.css({top:i.offset().top,left:i.offset().left,width:i.outerWidth(!0),height:i.outerHeight(!0)});this.settings.modal&&this.show_modal();this.settings.$body.append(u);r.addClass(o);u.addClass(o);i.data("expose",o);this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,i);this.add_exposed(i)},un_expose:function(){var u,i,f,r,e,o=!1;if(arguments.length>0&&arguments[0]instanceof n)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return t.console&&console.error("element not valid",i),!1;u=i.data("expose");f=n("."+u);arguments.length>1&&(o=arguments[1]);o===!0?n(".joyride-expose-wrapper,.joyride-expose-cover").remove():f.remove();r=i.data("expose-css");r.zIndex=="auto"?i.css("z-index",""):i.css("z-index",r.zIndex);r.position!=i.css("position")&&(r.position=="static"?i.css("position",""):i.css("position",r.position));e=i.data("orig-class");i.attr("class",e);i.removeData("orig-classes");i.removeData("expose");i.removeData("expose-z-index");this.remove_exposed(i)},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[];t instanceof n||typeof t=="object"?this.settings.exposed.push(t[0]):typeof t=="string"&&this.settings.exposed.push(t)},remove_exposed:function(t){var r,i;for(t instanceof n?r=t[0]:typeof t=="string"&&(r=t),this.settings.exposed=this.settings.exposed||[],i=this.settings.exposed.length;i--;)if(this.settings.exposed[i]==r){this.settings.exposed.splice(i,1);return}},center:function(){var i=n(t);return this.settings.$next_tip.css({top:(i.height()-this.settings.$next_tip.outerHeight())/2+i.scrollTop(),left:(i.width()-this.settings.$next_tip.outerWidth())/2+i.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(i){var r=n(t),s=r.height()/2,u=Math.ceil(this.settings.$target.offset().top-s+this.settings.$next_tip.outerHeight()),h=r.width()+r.scrollLeft(),o=r.height()+u,f=r.height()+r.scrollTop(),e=r.scrollTop();return u<e&&(e=u<0?0:u),o>f&&(f=o),[i.offset().top<e,h<i.offset().left+i.outerWidth(),f<i.offset().top+i.outerHeight(),r.scrollLeft()>i.offset().left]},visible:function(n){for(var t=n.length;t--;)if(n[t])return!1;return!0},nub_position:function(n,t,i){t==="auto"?n.addClass(i):n.addClass(t)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide();this.show();this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookie_monster&&n.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain});this.settings.timer>0&&clearTimeout(this.settings.automate);this.settings.modal&&this.settings.expose&&this.un_expose();this.settings.$next_tip.data("closed",!0);n(".joyride-modal-bg").hide();this.settings.$current_tip.hide();this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip);this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip);n(".joyride-tip-guide").remove()},off:function(){n(this.scope).off(".joyride");n(t).off(".joyride");n(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride");n(".joyride-tip-guide, .joyride-modal-bg").remove();clearTimeout(this.settings.automate);this.settings={}},reflow:function(){}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.2.1",settings:{use_tallest:!0,before_height_change:n.noop,after_height_change:n.noop},init:function(n,t,i){this.bindings(t,i);this.reflow()},events:function(){this.S(t).off(".equalizer").on("resize.fndtn.equalizer",function(){this.reflow()}.bind(this))},equalize:function(t){var f=!1,i=t.find("["+this.attr_name()+"-watch]"),s=i.first().offset().top,r=t.data(this.attr_name(!0)+"-init"),u,e,o;i.length!==0&&((r.before_height_change(),t.trigger("before-height-change"),i.height("inherit"),i.each(function(){var t=n(this);t.offset().top!==s&&(f=!0)}),f)||(u=i.map(function(){return n(this).outerHeight()}).get(),r.use_tallest?(e=Math.max.apply(null,u),i.css("height",e)):(o=Math.min.apply(null,u),i.css("height",o)),r.after_height_change(),t.trigger("after-height-change")))},reflow:function(){var t=this;this.S("["+this.attr_name()+"]",this.scope).each(function(){t.equalize(n(this))})}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.2.1",settings:{active_class:"open",align:"bottom",is_hover:!1,opened:function(){},closed:function(){}},init:function(n,t,i){Foundation.inherit(this,"throttle");this.bindings(t,i)},events:function(){var i=this,r=i.S;r(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(n){var t=r(this).data(i.attr_name(!0)+"-init")||i.settings;n.preventDefault();(!t.is_hover||Modernizr.touch)&&i.toggle(r(this))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(n){var u=r(this),f,t,e;clearTimeout(i.timeout);u.data(i.data_attr())?(t=r("#"+u.data(i.data_attr())),f=u):(t=u,f=r("["+i.attr_name()+"='"+t.attr("id")+"']"));e=f.data(i.attr_name(!0)+"-init")||i.settings;r(n.target).data(i.data_attr())&&e.is_hover&&i.closeall.call(i);e.is_hover&&i.open.apply(i,[t,f])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(){var n=r(this);i.timeout=setTimeout(function(){var u,t;n.data(i.data_attr())?(t=n.data(i.data_attr(!0)+"-init")||i.settings,t.is_hover&&i.close.call(i,r("#"+n.data(i.data_attr())))):(u=r("["+i.attr_name()+'="'+r(this).attr("id")+'"]'),t=u.data(i.attr_name(!0)+"-init")||i.settings,t.is_hover&&i.close.call(i,n))}.bind(this),150)}).on("click.fndtn.dropdown",function(t){var u=r(t.target).closest("["+i.attr_name()+"-content]");if(!r(t.target).data(i.data_attr())&&!r(t.target).parent().data(i.data_attr())){if(!r(t.target).data("revealId")&&u.length>0&&(r(t.target).is("["+i.attr_name()+"-content]")||n.contains(u.first()[0],t.target))){t.stopPropagation();return}i.close.call(i,r("["+i.attr_name()+"-content]"))}}).on("opened.fndtn.dropdown","["+i.attr_name()+"-content]",function(){i.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+i.attr_name()+"-content]",function(){i.settings.closed.call(this)});r(t).off(".dropdown").on("resize.fndtn.dropdown",i.throttle(function(){i.resize.call(i)},50));this.resize()},close:function(n){var t=this;n.each(function(){t.S(this).hasClass(t.settings.active_class)&&(t.S(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(t.settings.active_class),t.S(this).trigger("closed",[n]))})},closeall:function(){var t=this;n.each(t.S("["+this.attr_name()+"-content]"),function(){t.close.call(t,t.S(this))})},open:function(n,t){this.css(n.addClass(this.settings.active_class),t);n.trigger("opened",[n,t])},data_attr:function(){return this.namespace.length>0?this.namespace+"-"+this.name:this.name},toggle:function(n){var t=this.S("#"+n.data(this.data_attr()));t.length!==0&&(this.close.call(this,this.S("["+this.attr_name()+"-content]").not(t)),t.hasClass(this.settings.active_class)?this.close.call(this,t):(this.close.call(this,this.S("["+this.attr_name()+"-content]")),this.open.call(this,t,n)))},resize:function(){var n=this.S("["+this.attr_name()+"-content].open"),t=this.S("["+this.attr_name()+"='"+n.attr("id")+"']");n.length&&t.length&&this.css(n,t)},css:function(n,t){var i,r;return this.clear_idx(),this.small()?(i=this.dirs.bottom.call(n,t),n.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:i.top}),n.css(Foundation.rtl?"right":"left","2.5%")):(r=t.data(this.attr_name(!0)+"-init")||this.settings,this.style(n,t,r)),n},style:function(t,i,r){var u=n.extend({position:"absolute"},this.dirs[r.align].call(t,i,r));t.attr("style","").css(u)},dirs:{_base:function(n){var r=this.offsetParent(),i=r.offset(),t=n.offset();return t.top-=i.top,t.left-=i.left,t},top:function(n){var i=Foundation.libs.dropdown,t=i.dirs._base.call(this,n),r=n.outerWidth()/2-8;return this.addClass("drop-top"),(n.outerWidth()<this.outerWidth()||i.small())&&i.adjust_pip(r,t),Foundation.rtl?{left:t.left-this.outerWidth()+n.outerWidth(),top:t.top-this.outerHeight()}:{left:t.left,top:t.top-this.outerHeight()}},bottom:function(n){var i=Foundation.libs.dropdown,t=i.dirs._base.call(this,n),r=n.outerWidth()/2-8;return(n.outerWidth()<this.outerWidth()||i.small())&&i.adjust_pip(r,t),i.rtl?{left:t.left-this.outerWidth()+n.outerWidth(),top:t.top+n.outerHeight()}:{left:t.left,top:t.top+n.outerHeight()}},left:function(n){var t=Foundation.libs.dropdown.dirs._base.call(this,n);return this.addClass("drop-left"),{left:t.left-this.outerWidth(),top:t.top}},right:function(n){var t=Foundation.libs.dropdown.dirs._base.call(this,n);return this.addClass("drop-right"),{left:t.left+n.outerWidth(),top:t.top}}},adjust_pip:function(n,t){var i=Foundation.stylesheet;this.small()&&(n+=t.left-8);this.rule_idx=i.cssRules.length;var r=".f-dropdown.open:before",u=".f-dropdown.open:after",f="left: "+n+"px;",e="left: "+(n-1)+"px;";i.insertRule?(i.insertRule([r,"{",f,"}"].join(" "),this.rule_idx),i.insertRule([u,"{",e,"}"].join(" "),this.rule_idx+1)):(i.addRule(r,f,this.rule_idx),i.addRule(u,e,this.rule_idx+1))},clear_idx:function(){var n=Foundation.stylesheet;this.rule_idx&&(n.deleteRule(this.rule_idx),n.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown");this.S("html, body").off(".fndtn.dropdown");this.S(t).off(".fndtn.dropdown");this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i,r){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.2.1",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;<\/a><div class="visible-img" style="display: none"><div class="clearing-touch-label"><\/div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"><\/p><a href="#" class="clearing-main-prev"><span><\/span><\/a><a href="#" class="clearing-main-next"><span><\/span><\/a><\/div>'},close_selectors:".clearing-close",touch_label:"&larr;&nbsp;Swipe to Advance&nbsp;&rarr;",init:!1,locked:!1},init:function(n,t,i){var r=this;Foundation.inherit(this,"throttle image_loaded");this.bindings(t,i);r.S(this.scope).is("["+this.attr_name()+"]")?this.assemble(r.S("li",this.scope)):r.S("["+this.attr_name()+"]",this.scope).each(function(){r.assemble(r.S("li",this))})},events:function(r){var u=this,f=u.S;n(".scroll-container").length>0&&(this.scope=n(".scroll-container"));f(this.scope).off(".clearing").on("click.fndtn.clearing","ul["+this.attr_name()+"] li",function(n,t,i){var t=t||f(this),i=i||t,r=t.next("li"),e=t.closest("["+u.attr_name()+"]").data(u.attr_name(!0)+"-init"),o=f(n.target);n.preventDefault();e||(u.init(),e=t.closest("["+u.attr_name()+"]").data(u.attr_name(!0)+"-init"));i.hasClass("visible")&&t[0]===i[0]&&r.length>0&&u.is_open(t)&&(i=r,o=f("img",i));u.open(o,t,i);u.update_paddles(i)}).on("click.fndtn.clearing",".clearing-main-next",function(n){u.nav(n,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(n){u.nav(n,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(n){Foundation.libs.clearing.close(n,this)});n(i).on("keydown.fndtn.clearing",function(n){u.keydown(n)});f(t).off(".clearing").on("resize.fndtn.clearing",function(){u.resize()});this.swipe_events(r)},swipe_events:function(){var t=this,n=t.S;n(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var i={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};n(this).data("swipe-transition",i);t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(i){var r,u;(i.touches||(i=i.originalEvent),i.touches.length>1||i.scale&&i.scale!==1)||(r=n(this).data("swipe-transition"),typeof r=="undefined"&&(r={}),r.delta_x=i.touches[0].pageX-r.start_page_x,typeof r.is_scrolling=="undefined"&&(r.is_scrolling=!!(r.is_scrolling||Math.abs(r.delta_x)<Math.abs(i.touches[0].pageY-r.start_page_y))),r.is_scrolling||r.active||(i.preventDefault(),u=r.delta_x<0?"next":"prev",r.active=!0,t.nav(i,u)))}).on("touchend.fndtn.clearing",".visible-img",function(t){n(this).data("swipe-transition",{});t.stopPropagation()})},assemble:function(t){var i=t.parent();if(!i.parent().hasClass("carousel")){i.after('<div id="foundationClearingHolder"><\/div>');var f=this.S("#foundationClearingHolder"),e=i.data(this.attr_name(!0)+"-init"),o=i.detach(),u={grid:'<div class="carousel">'+o[0].outerHTML+"<\/div>",viewing:e.templates.viewing},r='<div class="clearing-assembled"><div>'+u.viewing+u.grid+"<\/div><\/div>",s=this.settings.touch_label;Modernizr.touch&&(r=n(r).find(".clearing-touch-label").html(s).end());f.after(r).remove()}},open:function(t,r,u){function o(){setTimeout(function(){this.image_loaded(f,function(){f.outerWidth()===1&&!l?o.call(this):a.call(this,f)}.bind(this))}.bind(this),50)}function a(t){var i=n(t);t.css("visibility","visible");v.css("overflow","hidden");h.addClass("clearing-blackout");c.addClass("clearing-container");e.show();this.fix_height(u).caption(s.S(".clearing-caption",e),s.S("img",u)).center_and_label(t,y).shift(r,u,function(){u.siblings().removeClass("visible");u.addClass("visible")})}var s=this,v=n(i.body),h=u.closest(".clearing-assembled"),c=n("div",h).first(),e=n(".visible-img",c),f=n("img",e).not(t),y=n(".clearing-touch-label",".clearing-blackout"),l=!1;f.error(function(){l=!0});this.locked()||(f.attr("src",this.load(t)).css("visibility","hidden"),o.call(this))},close:function(t,r){t.preventDefault();var u=function(n){return/blackout/.test(n.selector)?n:n.closest(".clearing-blackout")}(n(r)),o=n(i.body),f,e;return r===t.target&&u&&(o.css("overflow",""),f=n("div",u).first(),e=n(".visible-img",f),this.settings.prev_index=0,n("ul["+this.attr_name()+"]",u).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),f.removeClass("clearing-container"),e.hide()),!1},is_open:function(n){return n.parent().prop("style").length>0},keydown:function(t){var i=n(".clearing-blackout ul["+this.attr_name()+"]"),r=this.rtl?37:39,u=this.rtl?39:37;t.which===r&&this.go(i,"next");t.which===u&&this.go(i,"prev");t.which===27&&this.S("a.clearing-close").trigger("click")},nav:function(t,i){var r=n("ul["+this.attr_name()+"]",".clearing-blackout");t.preventDefault();this.go(r,i)},resize:function(){var t=n("img",".clearing-blackout .visible-img"),i=n(".clearing-touch-label",".clearing-blackout");t.length&&this.center_and_label(t,i)},fix_height:function(n){var t=n.parent().children(),i=this;return t.each(function(){var n=i.S(this),t=n.find("img");n.height()>t.outerHeight()&&n.addClass("fix-height")}).closest("ul").width(t.length*100+"%"),this},update_paddles:function(n){var t=n.closest(".carousel").siblings(".visible-img");n.next().length>0?this.S(".clearing-main-next",t).removeClass("disabled"):this.S(".clearing-main-next",t).addClass("disabled");n.prev().length>0?this.S(".clearing-main-prev",t).removeClass("disabled"):this.S(".clearing-main-prev",t).addClass("disabled")},center_and_label:function(n,t){return this.rtl?(n.css({marginRight:-(n.outerWidth()/2),marginTop:-(n.outerHeight()/2),left:"auto",right:"50%"}),t.length>0&&t.css({marginRight:-(t.outerWidth()/2),marginTop:-(n.outerHeight()/2)-t.outerHeight()-10,left:"auto",right:"50%"})):(n.css({marginLeft:-(n.outerWidth()/2),marginTop:-(n.outerHeight()/2)}),t.length>0&&t.css({marginLeft:-(t.outerWidth()/2),marginTop:-(n.outerHeight()/2)-t.outerHeight()-10})),this},load:function(n){var t;return t=n[0].nodeName==="A"?n.attr("href"):n.parent().attr("href"),this.preload(n),t?t:n.attr("src")},preload:function(n){this.img(n.closest("li").next()).img(n.closest("li").prev())},img:function(n){if(n.length){var i=new Image,t=this.S("a",n);i.src=t.length?t.attr("href"):this.S("img",n).attr("src")}return this},caption:function(n,t){var i=t.attr("data-caption");return i?n.html(i).show():n.text("").hide(),this},go:function(n,t){var r=this.S(".visible",n),i=r[t]();i.length&&this.S("img",i).trigger("click",[r,i])},shift:function(n,t,i){var u=t.parent(),c=this.settings.prev_index||t.index(),f=this.direction(u,n,t),e=this.rtl?"right":"left",h=parseInt(u.css("left"),10),o=t.outerWidth(),s,r={};t.index()!==c&&!/skip/.test(f)?/left/.test(f)?(this.lock(),r[e]=h+o,u.animate(r,300,this.unlock())):/right/.test(f)&&(this.lock(),r[e]=h-o,u.animate(r,300,this.unlock())):/skip/.test(f)&&(s=t.index()-this.settings.up_count,this.lock(),s>0?(r[e]=-(s*o),u.animate(r,300,this.unlock())):(r[e]=0,u.animate(r,300,this.unlock())));i()},direction:function(n,t,i){var u=this.S("li",n),o=u.outerWidth()+u.outerWidth()/4,f=Math.floor(this.S(".clearing-container").outerWidth()/o)-1,r=u.index(i),e;return this.settings.up_count=f,e=this.adjacent(this.settings.prev_index,r)?r>f&&r>this.settings.prev_index?"right":r>f-1&&r<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=r,e},adjacent:function(n,t){for(var i=t+1;i>=t-1;i--)if(i===n)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){this.S(this.scope).off(".fndtn.clearing");this.S(t).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,this,this.document),function(n,t,i){"use strict";var r=function(){},u=function(r,u){if(r.hasClass(u.slides_container_class))return this;var o=this,s,h=r,a,l,v,c=0,y;o.cache={};o.slides=function(){return h.children(u.slide_selector)};o.slides().first().addClass(u.active_slide_class);o.update_slide_number=function(t){u.slide_number&&(a.find("span:first").text(parseInt(t)+1),a.find("span:last").text(o.slides().length));u.bullets&&(l.children().removeClass(u.bullets_active_class),n(l.children().get(t)).addClass(u.bullets_active_class))};o.update_active_link=function(t){var i=n('[data-orbit-link="'+o.slides().eq(t).attr("data-orbit-slide")+'"]');i.siblings().removeClass(u.bullets_active_class);i.addClass(u.bullets_active_class)};o.build_markup=function(){h.wrap('<div class="'+u.container_class+'"><\/div>');s=h.parent();h.addClass(u.slides_container_class);u.navigation_arrows&&(s.append(n('<a href="#"><span><\/span><\/a>').addClass(u.prev_class)),s.append(n('<a href="#"><span><\/span><\/a>').addClass(u.next_class)));u.timer&&(v=n("<div>").addClass(u.timer_container_class),v.append("<span>"),v.append(n("<div>").addClass(u.timer_progress_class)),v.addClass(u.timer_paused_class),s.append(v));u.slide_number&&(a=n("<div>").addClass(u.slide_number_class),a.append("<span><\/span> "+u.slide_number_text+" <span><\/span>"),s.append(a));u.bullets&&(l=n("<ol>").addClass(u.bullets_container_class),s.append(l),l.wrap('<div class="orbit-bullets-container"><\/div>'),o.slides().each(function(t){var i=n("<li>").attr("data-orbit-slide",t);l.append(i)}));u.stack_on_small&&s.addClass(u.stack_on_small_class)};o._prepare_direction=function(t){var r="next",i,f,e;if(t<=c&&(r="prev"),u.animation==="slide"&&setTimeout(function(){h.removeClass("swipe-prev swipe-next");r==="next"?h.addClass("swipe-next"):r==="prev"&&h.addClass("swipe-prev")},0),i=o.slides(),t>=i.length){if(!u.circular)return!1;t=0}else if(t<0){if(!u.circular)return!1;t=i.length-1}return f=n(i.get(c)),e=n(i.get(t)),[r,f,e,t]};o._goto=function(n,t){var r,e,l;if(n===null||o.cache.animating||n===c)return!1;typeof o.cache.timer=="object"&&o.cache.timer.restart();r=o.slides();o.cache.animating=!0;var f=o._prepare_direction(n),a=f[0],s=f[1],i=f[2],n=f[3];if(h.trigger("before-slide-change.fndtn.orbit"),u.before_slide_change(),c=n,s.css("transitionDuration",u.animation_speed+"ms"),i.css("transitionDuration",u.animation_speed+"ms"),e=function(){var f=function(){t===!0&&o.cache.timer.restart();o.update_slide_number(c);i.addClass(u.active_slide_class);o.update_active_link(n);h.trigger("after-slide-change.fndtn.orbit",[{slide_number:c,total_slides:r.length}]);u.after_slide_change(c,r.length);setTimeout(function(){o.cache.animating=!1},100)};h.height()!=i.height()&&u.variable_height?h.animate({height:i.height()},250,"linear",f):f()},r.length===1)return e(),!1;l=function(){a==="next"&&y.next(s,i,e);a==="prev"&&y.prev(s,i,e)};i.height()>h.height()&&u.variable_height?h.animate({height:i.height()},250,"linear",l):l()};o.next=function(n){n.stopImmediatePropagation();n.preventDefault();o._prepare_direction(c+1);setTimeout(function(){o._goto(c+1)},100)};o.prev=function(n){n.stopImmediatePropagation();n.preventDefault();o._prepare_direction(c-1);setTimeout(function(){o._goto(c-1)},100)};o.link_custom=function(t){var i,r;t.preventDefault();i=n(this).attr("data-orbit-link");typeof i=="string"&&(i=n.trim(i))!=""&&(r=s.find("[data-orbit-slide="+i+"]"),r.index()!=-1&&setTimeout(function(){o._goto(r.index())},100))};o.link_bullet=function(){var t=n(this).attr("data-orbit-slide"),i;typeof t=="string"&&(t=n.trim(t))!=""&&(isNaN(parseInt(t))?(i=s.find("[data-orbit-slide="+t+"]"),i.index()!=-1&&setTimeout(function(){o._goto(i.index()+1)},100)):setTimeout(function(){o._goto(parseInt(t))},100))};o.timer_callback=function(){o._goto(c+1,!0)};o.compute_dimensions=function(){var i=n(o.slides().get(c)),t=i.height();u.variable_height||o.slides().each(function(){n(this).height()>t&&(t=n(this).height())});h.height(t)};o.create_timer=function(){return new f(s.find("."+u.timer_container_class),u,o.timer_callback)};o.stop_timer=function(){typeof o.cache.timer=="object"&&o.cache.timer.stop()};o.toggle_timer=function(){var n=s.find("."+u.timer_container_class);n.hasClass(u.timer_paused_class)?(typeof o.cache.timer=="undefined"&&(o.cache.timer=o.create_timer()),o.cache.timer.start()):typeof o.cache.timer=="object"&&o.cache.timer.stop()};o.init=function(){o.build_markup();u.timer&&(o.cache.timer=o.create_timer(),Foundation.utils.image_loaded(this.slides().children("img"),o.cache.timer.start));u.animation==="fade"&&h.addClass("fade");y=new e(u,h);s.on("click","."+u.next_class,o.next);s.on("click","."+u.prev_class,o.prev);s.on("click","[data-orbit-slide]",o.link_bullet);s.on("click",o.toggle_timer);u.swipe&&h.on("touchstart.fndtn.orbit",function(n){o.cache.animating||(n.touches||(n=n.originalEvent),o.cache.start_page_x=n.touches[0].pageX,o.cache.start_page_y=n.touches[0].pageY,o.cache.start_time=(new Date).getTime(),o.cache.delta_x=0,o.cache.is_scrolling=null,o.cache.direction=null,o.stop_timer())}).on("touchmove.fndtn.orbit",function(n){(Math.abs(o.cache.delta_x)>5&&(n.preventDefault(),n.stopPropagation()),o.cache.animating)||requestAnimationFrame(function(){var i,r,t,f;(n.touches||(n=n.originalEvent),n.touches.length>1||n.scale&&n.scale!==1)||(o.cache.delta_x=n.touches[0].pageX-o.cache.start_page_x,o.cache.is_scrolling===null&&(o.cache.is_scrolling=!!(o.cache.is_scrolling||Math.abs(o.cache.delta_x)<Math.abs(n.touches[0].pageY-o.cache.start_page_y))),o.cache.is_scrolling)||(i=o.cache.delta_x<0?c+1:c-1,o.cache.direction!==i&&(r=o._prepare_direction(i),o.cache.direction=i,o.cache.dir=r[0],o.cache.current=r[1],o.cache.next=r[2]),u.animation==="slide"&&(t=o.cache.delta_x/s.width()*100,f=t>=0?-(100-t):100+t,o.cache.current.css("transform","translate3d("+t+"%,0,0)"),o.cache.next.css("transform","translate3d("+f+"%,0,0)")))})}).on("touchend.fndtn.orbit",function(n){o.cache.animating||(n.preventDefault(),n.stopPropagation(),setTimeout(function(){o._goto(o.cache.direction)},50))});s.on("mouseenter.fndtn.orbit",function(){u.timer&&u.pause_on_hover&&o.stop_timer()}).on("mouseleave.fndtn.orbit",function(){u.timer&&u.resume_on_mouseout&&o.cache.timer.start()});n(i).on("click","[data-orbit-link]",o.link_custom);n(t).on("resize",o.compute_dimensions);Foundation.utils.image_loaded(this.slides().children("img"),o.compute_dimensions);Foundation.utils.image_loaded(this.slides().children("img"),function(){s.prev(".preloader").css("display","none");o.update_slide_number(0);o.update_active_link(0);h.trigger("ready.fndtn.orbit")})};o.init()},f=function(n,t,i){var u=this,o=t.timer_speed,f=n.find("."+t.timer_progress_class),s,e,r=-1;this.update_progress=function(n){var t=f.clone();t.attr("style","");t.css("width",n+"%");f.replaceWith(t);f=t};this.restart=function(){clearTimeout(e);n.addClass(t.timer_paused_class);r=-1;u.update_progress(0);u.start()};this.start=function(){if(!n.hasClass(t.timer_paused_class))return!0;r=r===-1?o:r;n.removeClass(t.timer_paused_class);s=(new Date).getTime();f.animate({width:"100%"},r,"linear");e=setTimeout(function(){u.restart();i()},r);n.trigger("timer-started.fndtn.orbit")};this.stop=function(){var i,f;if(n.hasClass(t.timer_paused_class))return!0;clearTimeout(e);n.addClass(t.timer_paused_class);i=(new Date).getTime();r-=i-s;f=100-r/o*100;u.update_progress(f);n.trigger("timer-stopped.fndtn.orbit")}},e=function(n,t){var i="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend";this.next=function(n,r,u){r.on(i,function(){r.unbind(i);n.removeClass("active animate-out");r.removeClass("animate-in");u()});t.children().css({transform:"",transitionDuration:""});n.addClass("animate-out");r.addClass("animate-in")};this.prev=function(n,t,r){t.on(i,function(){t.unbind(i);n.removeClass("active animate-out");t.removeClass("animate-in");r()});n.css({transform:"",transitionDuration:""}).addClass("animate-out");t.css({transform:"",transitionDuration:""}).addClass("animate-in")}};Foundation.libs=Foundation.libs||{};Foundation.libs.orbit={name:"orbit",version:"5.2.1",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",slide_selector:"*",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:r,after_slide_change:r},init:function(n,t,i){var r=this;this.bindings(t,i)},events:function(n){var t=new u(this.S(n),this.S(n).data("orbit-init"));this.S(n).data(self.name+"-instance",t)},reflow:function(){var n=this,t,i;n.S(n.scope).is("[data-orbit]")?(t=n.S(n.scope),i=t.data(n.name+"-instance"),i.compute_dimensions()):n.S("[data-orbit]",n.scope).each(function(t,i){var r=n.S(i),f=n.data_options(r),u=r.data(n.name+"-instance");u.compute_dimensions()})}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.2.1",settings:{},init:function(){this.events()},events:function(){var i=this.S;i(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(n){n.preventDefault();i(this).closest(".off-canvas-wrap").toggleClass("move-right")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(n){n.preventDefault();i(".off-canvas-wrap").removeClass("move-right")}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(r){r.preventDefault();var u=n(this).attr("href");i(".off-canvas-wrap").on("transitionend webkitTransitionEnd oTransitionEnd",function(){t.location=u;i(".off-canvas-wrap").off("transitionend webkitTransitionEnd oTransitionEnd")});i(".off-canvas-wrap").removeClass("move-right")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(n){n.preventDefault();i(this).closest(".off-canvas-wrap").toggleClass("move-left")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(n){n.preventDefault();i(".off-canvas-wrap").removeClass("move-left")}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(r){r.preventDefault();var u=n(this).attr("href");i(".off-canvas-wrap").on("transitionend webkitTransitionEnd oTransitionEnd",function(){t.location=u;i(".off-canvas-wrap").off("transitionend webkitTransitionEnd oTransitionEnd")});i(".off-canvas-wrap").removeClass("move-left")})},reflow:function(){}}}(jQuery,this,this.document),function(n){"use strict";Foundation.libs.alert={name:"alert",version:"5.2.1",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(n,t,i){this.bindings(t,i)},events:function(){var t=this,i=this.S;n(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] a.close",function(n){var u=i(this).closest("["+t.attr_name()+"]"),r=u.data(t.attr_name(!0)+"-init")||t.settings;n.preventDefault();u[r.animation](r.speed,function(){i(this).trigger("close").remove();r.callback()})})},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i,r){"use strict";function u(n){var t=/fade/i.test(n),i=/pop/i.test(n);return{animate:t||i,pop:i,fade:t}}Foundation.libs.reveal={name:"reveal",version:"5.2.1",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:n(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,i,r){n.extend(!0,this.settings,i,r);this.bindings(i,r)},events:function(){var n=this,t=n.S;return t(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]",function(i){var r,u,f;i.preventDefault();n.locked||(r=t(this),u=r.data(n.data_attr("reveal-ajax")),n.locked=!0,typeof u=="undefined"?n.open.call(n,r):(f=u===!0?r.attr("href"):u,n.open.call(n,r,{url:f})))}),t(i).on("touchend.fndtn.reveal click.fndtn.reveal",this.close_targets(),function(i){if(i.preventDefault(),!n.locked){var r=t("["+n.attr_name()+"].open").data(n.attr_name(!0)+"-init"),u=t(i.target)[0]===t("."+r.bg_class)[0];if(u){if(!r.close_on_background_click)return;i.stopPropagation()}n.locked=!0;n.close.call(n,u?t("["+n.attr_name()+"].open"):t(this).closest("["+n.attr_name()+"]"))}}),t("["+n.attr_name()+"]",this.scope).length>0?t(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):t(this.scope).on("open.fndtn.reveal","["+n.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+n.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+n.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+n.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+n.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+n.attr_name()+"]",this.close_video),!0},key_up_on:function(){var n=this;return n.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(t){var i=n.S("["+n.attr_name()+"].open"),r=i.data(n.attr_name(!0)+"-init");r&&t.which===27&&r.close_on_esc&&!n.locked&&n.close.call(n,i)}),!0},key_up_off:function(){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(t,i){var u=this,r,e,f,o;t?typeof t.selector!="undefined"?r=u.S("#"+t.data(u.data_attr("reveal-id"))):(r=u.S(this.scope),i=t):r=u.S(this.scope);e=r.data(u.attr_name(!0)+"-init");r.hasClass("open")||(f=u.S("["+u.attr_name()+"].open"),typeof r.data("css-top")=="undefined"&&r.data("css-top",parseInt(r.css("top"),10)).data("offset",this.cache_offset(r)),this.key_up_on(r),r.trigger("open"),f.length<1&&this.toggle_bg(r),typeof i=="string"&&(i={url:i}),typeof i!="undefined"&&i.url?(o=typeof i.success!="undefined"?i.success:null,n.extend(i,{success:function(t,i,s){n.isFunction(o)&&o(t,i,s);r.html(t);u.S(r).foundation("section","reflow");f.length>0&&u.hide(f,e.css.close);u.show(r,e.css.open)}}),n.ajax(i)):(f.length>0&&this.hide(f,e.css.close),this.show(r,e.css.open)))},close:function(n){var n=n&&n.length?n:this.S(this.scope),t=this.S("["+this.attr_name()+"].open"),i=n.data(this.attr_name(!0)+"-init");t.length>0&&(this.locked=!0,this.key_up_off(n),n.trigger("close"),this.toggle_bg(n),this.hide(t,i.css.close,i))},close_targets:function(){var n="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?n+", ."+this.settings.bg_class:n},toggle_bg:function(t){var i=t.data(this.attr_name(!0));this.S("."+this.settings.bg_class).length===0&&(this.settings.bg=n("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(i,r){var s,h,o,e,f;return r?(f=i.data(this.attr_name(!0)+"-init"),i.parent("body").length===0&&(s=i.wrap('<div style="display: none;" />').parent(),h=this.settings.rootElement||"body",i.on("closed.fndtn.reveal.wrapped",function(){i.detach().appendTo(s);i.unwrap().unbind("closed.fndtn.reveal.wrapped")}),i.detach().appendTo(h)),o=u(f.animation),o.animate||(this.locked=!1),o.pop)?(r.top=n(t).scrollTop()-i.data("offset")+"px",e={top:n(t).scrollTop()+i.data("css-top")+"px",opacity:1},setTimeout(function(){return i.css(r).animate(e,f.animation_speed,"linear",function(){this.locked=!1;i.trigger("opened")}.bind(this)).addClass("open")}.bind(this),f.animation_speed/2)):o.fade?(r.top=n(t).scrollTop()+i.data("css-top")+"px",e={opacity:1},setTimeout(function(){return i.css(r).animate(e,f.animation_speed,"linear",function(){this.locked=!1;i.trigger("opened")}.bind(this)).addClass("open")}.bind(this),f.animation_speed/2)):i.css(r).show().css({opacity:1}).addClass("open").trigger("opened"):(f=this.settings,u(f.animation).fade?i.fadeIn(f.animation_speed/2):(this.locked=!1,i.show()))},hide:function(i,r){var o,e,f;return r?(f=i.data(this.attr_name(!0)+"-init"),o=u(f.animation),o.animate||(this.locked=!1),o.pop)?(e={top:-n(t).scrollTop()-i.data("offset")+"px",opacity:0},setTimeout(function(){return i.animate(e,f.animation_speed,"linear",function(){this.locked=!1;i.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),f.animation_speed/2)):o.fade?(e={opacity:0},setTimeout(function(){return i.animate(e,f.animation_speed,"linear",function(){this.locked=!1;i.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),f.animation_speed/2)):i.hide().css(r).removeClass("open").trigger("closed"):(f=this.settings,u(f.animation).fade?i.fadeOut(f.animation_speed/2):i.hide())},close_video:function(t){var r=n(".flex-video",t.target),i=n("iframe",r);i.length>0&&(i.attr("data-src",i[0].src),i.attr("src","about:blank"),r.hide())},open_video:function(t){var u=n(".flex-video",t.target),i=u.find("iframe"),f,e;i.length>0&&(f=i.attr("data-src"),typeof f=="string"?i[0].src=i.attr("data-src"):(e=i[0].src,i[0].src=r,i[0].src=e),u.show())},data_attr:function(n){return this.namespace.length>0?this.namespace+"-"+n:n},cache_offset:function(n){var t=n.show().height()+parseInt(n.css("top"),10);return n.hide(),t},off:function(){n(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.2.1",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,medium:Foundation.media_queries.medium,large:Foundation.media_queries.large,xlarge:Foundation.media_queries.xlarge,xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(t,i,r){var u,f,e;return/IMG/.test(t[0].nodeName)?(u=t[0].src,new RegExp(i,"i").test(u))?void 0:(t[0].src=i,r(t[0].src)):(f=t.data(this.data_attr+"-last-path"),f==i)?void 0:(e="/^.(.jpg|.jpeg|.png|.gif|.tiff|.bmp)??|#?./",new RegExp(e,"i").test(i)?(n(t).css("background-image","url("+i+")"),t.data("interchange-last-path",i),r(i)):n.get(i,function(n){t.html(n);t.data(this.data_attr+"-last-path",i);r()}))}}},init:function(t,i,r){Foundation.inherit(this,"throttle random_str");this.data_attr=this.set_data_attr();n.extend(!0,this.settings,i,r);this.bindings(i,r);this.load("images");this.load("nodes")},get_media_hash:function(){var n="",t;for(t in this.settings.named_queries)n+=matchMedia(this.settings.named_queries[t]).matches.toString();return n},events:function(){var i=this,r;return n(t).off(".interchange").on("resize.fndtn.interchange",i.throttle(function(){var n=i.get_media_hash();n!==r&&i.resize();r=n},50)),this},resize:function(){var r=this.cache,i,t;if(!this.images_loaded||!this.nodes_loaded){setTimeout(n.proxy(this.resize,this),50);return}for(i in r)r.hasOwnProperty(i)&&(t=this.results(i,r[i]),t&&this.settings.directives[t.scenario[1]].call(this,t.el,t.scenario[0],function(){var n;n=arguments[0]instanceof Array?arguments[0]:Array.prototype.slice.call(arguments,0);t.el.trigger(t.scenario[1],n)}))},results:function(n,t){var i=t.length,u,f,r;if(i>0)for(u=this.S("["+this.add_namespace("data-uuid")+'="'+n+'"]');i--;)if(r=t[i][2],f=this.settings.named_queries.hasOwnProperty(r)?matchMedia(this.settings.named_queries[r]):matchMedia(r),f.matches)return{el:u,scenario:t[i]};return!1},load:function(n,t){return(typeof this["cached_"+n]=="undefined"||t)&&this["update_"+n](),this["cached_"+n]},update_images:function(){var n=this.S("img["+this.data_attr+"]"),i=n.length,t=i,r=0,f=this.data_attr,u;for(this.cache={},this.cached_images=[],this.images_loaded=i===0;t--;)r++,n[t]&&(u=n[t].getAttribute(f)||"",u.length>0&&this.cached_images.push(n[t])),r===i&&(this.images_loaded=!0,this.enhance("images"));return this},update_nodes:function(){var n=this.S("["+this.data_attr+"]").not("img"),t=n.length,i=t,r=0,f=this.data_attr,u;for(this.cached_nodes=[],this.nodes_loaded=t===0;i--;)r++,u=n[i].getAttribute(f)||"",u.length>0&&this.cached_nodes.push(n[i]),r===t&&(this.nodes_loaded=!0,this.enhance("nodes"));return this},enhance:function(i){for(var r=this["cached_"+i].length;r--;)this.object(n(this["cached_"+i][r]));return n(t).trigger("resize")},parse_params:function(n,t,i){return[this.trim(n),this.convert_directive(t),this.trim(i)]},convert_directive:function(n){var t=this.trim(n);return t.length>0?t:"replace"},object:function(n){var u=this.parse_data_attr(n),f=[],i=u.length,t,r,e;if(i>0)while(i--)t=u[i].split(/\((.*?)(\))$/),t.length>1&&(r=t[0].split(","),e=this.parse_params(r[0],r[1],t[1]),f.push(e));return this.store(n,f)},store:function(n,t){var i=this.random_str(),r=n.data(this.add_namespace("uuid",!0));return this.cache[r]?this.cache[r]:(n.attr(this.add_namespace("data-uuid"),i),this.cache[i]=t)},trim:function(t){return typeof t=="string"?n.trim(t):t},set_data_attr:function(n){return n?this.namespace.length>0?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:this.namespace.length>0?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(n){for(var t=n.attr(this.attr_name()).split(/\[(.*?)\]/),i=t.length,r=[];i--;)t[i].replace(/[\W\d]+/,"").length>4&&r.push(t[i]);return r},reflow:function(){this.load("images",!0);this.load("nodes",!0)}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs["magellan-expedition"]={name:"magellan-expedition",version:"5.2.1",settings:{active_class:"active",threshold:0,destination_threshold:20,throttle_delay:30},init:function(n,t,i){Foundation.inherit(this,"throttle");this.bindings(t,i)},events:function(){var i=this,u=i.S,r=i.settings;i.set_expedition_position();u(i.scope).off(".magellan").on("click.fndtn.magellan","["+i.add_namespace("data-magellan-arrival")+'] a[href^="#"]',function(r){var o;r.preventDefault();var u=n(this).closest("["+i.attr_name()+"]"),s=u.data("magellan-expedition-init"),f=this.hash.split("#").join(""),e=n("a[name="+f+"]");e.length===0&&(e=n("#"+f));o=e.offset().top;u.css("position")==="fixed"&&(o-=u.outerHeight());n("html, body").stop().animate({scrollTop:o},700,"swing",function(){t.location.hash="#"+f})}).on("scroll.fndtn.magellan",i.throttle(this.check_for_arrivals.bind(this),r.throttle_delay));n(t).on("resize.fndtn.magellan",i.throttle(this.set_expedition_position.bind(this),r.throttle_delay))},check_for_arrivals:function(){var n=this;n.update_arrivals();n.update_expedition_positions()},set_expedition_position:function(){var t=this;n("["+this.attr_name()+"=fixed]",t.scope).each(function(){var i=n(this),u=i.attr("styles"),r;i.attr("style","");r=i.offset().top;i.data(t.data_attr("magellan-top-offset"),r);i.attr("style",u)})},update_expedition_positions:function(){var i=this,r=n(t).scrollTop();n("["+this.attr_name()+"=fixed]",i.scope).each(function(){var t=n(this),f=t.data("magellan-top-offset"),u;r>=f?(u=t.prev("["+i.add_namespace("data-magellan-expedition-clone")+"]"),u.length===0&&(u=t.clone(),u.removeAttr(i.attr_name()),u.attr(i.add_namespace("data-magellan-expedition-clone"),""),t.before(u)),t.css({position:"fixed",top:0})):(t.prev("["+i.add_namespace("data-magellan-expedition-clone")+"]").remove(),t.attr("style",""))})},update_arrivals:function(){var i=this,r=n(t).scrollTop();n("["+this.attr_name()+"]",i.scope).each(function(){var t=n(this),u=u=t.data(i.attr_name(!0)+"-init"),e=i.offsets(t,r),o=t.find("["+i.add_namespace("data-magellan-arrival")+"]"),f=!1;e.each(function(n,r){if(r.viewport_offset>=r.top_offset){var e=t.find("["+i.add_namespace("data-magellan-arrival")+"]");return e.not(r.arrival).removeClass(u.active_class),r.arrival.addClass(u.active_class),f=!0,!0}});f||o.removeClass(u.active_class)})},offsets:function(t,i){var r=this,u=t.data(r.attr_name(!0)+"-init"),f=i+u.destination_threshold;return t.find("["+r.add_namespace("data-magellan-arrival")+"]").map(function(){var u=n(this).data(r.data_attr("magellan-arrival")),t=n("["+r.add_namespace("data-magellan-destination")+"="+u+"]"),i;if(t.length>0)return i=t.offset().top,{destination:t,arrival:n(this),top_offset:i,viewport_offset:f}}).sort(function(n,t){return n.top_offset<t.top_offset?-1:n.top_offset>t.top_offset?1:0})},data_attr:function(n){return this.namespace.length>0?this.namespace+"-"+n:n},off:function(){this.S(this.scope).off(".magellan");this.S(t).off(".magellan")},reflow:function(){var t=this;n("["+t.add_namespace("data-magellan-expedition-clone")+"]",t.scope).remove()}}}(jQuery,this,this.document),function(n){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.2.1",settings:{active_class:"active",toggleable:!0},init:function(n,t,i){this.bindings(t,i)},events:function(){var i=this,t=this.S;t(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] dd > a",function(r){var f=t(this).closest("["+i.attr_name()+"]"),e=t("#"+this.href.split("#")[1]),o=t("dd > .content",f),s=n("> dd",f),u=f.data(i.attr_name(!0)+"-init"),h=t("dd > .content."+u.active_class,f),c=t("dd."+u.active_class,f);if(r.preventDefault(),t(this).closest("dl").is(f)){if(h[0]==e[0]&&u.toggleable)return c.toggleClass(u.active_class,!1),e.toggleClass(u.active_class,!1);o.removeClass(u.active_class);s.removeClass(u.active_class);e.addClass(u.active_class).parent().addClass(u.active_class)}})},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.2.1",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0,sticky_on:"all"},init:function(t,i,r){Foundation.inherit(this,"add_custom_rule register_media throttle");var u=this;u.register_media("topbar","foundation-mq-topbar");this.bindings(i,r);u.S("["+this.attr_name()+"]",this.scope).each(function(){var t=n(this),r=t.data(u.attr_name(!0)+"-init"),f=u.S("section",this),e=t.children().filter("ul").first(),i;t.data("index",0);i=t.parent();i.hasClass("fixed")||u.is_sticky(t,i,r)?(u.settings.sticky_class=r.sticky_class,u.settings.sticky_topbar=t,t.data("height",i.outerHeight()),t.data("stickyoffset",i.offset().top)):t.data("height",t.outerHeight());r.assembled||u.assemble(t);r.is_hover?u.S(".has-dropdown",t).addClass("not-click"):u.S(".has-dropdown",t).removeClass("not-click");u.add_custom_rule(".f-topbar-fixed { padding-top: "+t.data("height")+"px }");i.hasClass("fixed")&&u.S("body").addClass("f-topbar-fixed")})},is_sticky:function(n,t,i){var r=t.hasClass(i.sticky_class);return r&&i.sticky_on==="all"?!0:r&&this.small()&&i.sticky_on==="small"?!0:r&&this.medium()&&i.sticky_on==="medium"?!0:r&&this.large()&&i.sticky_on==="large"?!0:!1},toggle:function(i){var u=this,r,e,f;r=i?u.S(i).closest("["+this.attr_name()+"]"):u.S("["+this.attr_name()+"]");e=r.data(this.attr_name(!0)+"-init");f=u.S("section, .section",r);u.breakpoint()&&(u.rtl?(f.css({right:"0%"}),n(">.name",f).css({right:"100%"})):(f.css({left:"0%"}),n(">.name",f).css({left:"100%"})),u.S("li.moved",f).removeClass("moved"),r.data("index",0),r.toggleClass("expanded").css("height",""));e.scrolltop?r.hasClass("expanded")?r.parent().hasClass("fixed")&&(e.scrolltop?(r.parent().removeClass("fixed"),r.addClass("fixed"),u.S("body").removeClass("f-topbar-fixed"),t.scrollTo(0,0)):r.parent().removeClass("expanded")):r.hasClass("fixed")&&(r.parent().addClass("fixed"),r.removeClass("fixed"),u.S("body").addClass("f-topbar-fixed")):(u.is_sticky(r,r.parent(),e)&&r.parent().addClass("fixed"),r.parent().hasClass("fixed")&&(r.hasClass("expanded")?(r.addClass("fixed"),r.parent().addClass("expanded"),u.S("body").addClass("f-topbar-fixed")):(r.removeClass("fixed"),r.parent().removeClass("expanded"),u.update_sticky_positioning())))},timer:null,events:function(){var i=this,r=this.S;r(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(n){n.preventDefault();i.toggle(this)}).on("click.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(){var t=n(this).closest("li");!i.breakpoint()||t.hasClass("back")||t.hasClass("has-dropdown")||i.toggle()}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(n){var t=r(this),u=r(n.target),f=t.closest("["+i.attr_name()+"]"),e=f.data(i.attr_name(!0)+"-init");if(u.data("revealId")){i.toggle();return}i.breakpoint()||(!e.is_hover||Modernizr.touch)&&(n.stopImmediatePropagation(),t.hasClass("hover")?(t.removeClass("hover").find("li").removeClass("hover"),t.parents("li.hover").removeClass("hover")):(t.addClass("hover"),u[0].nodeName==="A"&&u.parent().hasClass("has-dropdown")&&n.preventDefault()))}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(n){if(i.breakpoint()){n.preventDefault();var u=r(this),t=u.closest("["+i.attr_name()+"]"),f=t.find("section, .section"),o=u.next(".dropdown").outerHeight(),e=u.closest("li");t.data("index",t.data("index")+1);e.addClass("moved");i.rtl?(f.css({right:-(100*t.data("index"))+"%"}),f.find(">.name").css({right:100*t.data("index")+"%"})):(f.css({left:-(100*t.data("index"))+"%"}),f.find(">.name").css({left:100*t.data("index")+"%"}));t.css("height",u.siblings("ul").outerHeight(!0)+t.data("height"))}});r(t).off(".topbar").on("resize.fndtn.topbar",i.throttle(function(){i.resize.call(i)},50)).trigger("resize");r("body").off(".topbar").on("click.fndtn.topbar touchstart.fndtn.topbar",function(n){var t=r(n.target).closest("li").closest("li.hover");t.length>0||r("["+i.attr_name()+"] li").removeClass("hover")});r(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(n){n.preventDefault();var f=r(this),t=f.closest("["+i.attr_name()+"]"),u=t.find("section, .section"),s=t.data(i.attr_name(!0)+"-init"),e=f.closest("li.moved"),o=e.parent();t.data("index",t.data("index")-1);i.rtl?(u.css({right:-(100*t.data("index"))+"%"}),u.find(">.name").css({right:100*t.data("index")+"%"})):(u.css({left:-(100*t.data("index"))+"%"}),u.find(">.name").css({left:100*t.data("index")+"%"}));t.data("index")===0?t.css("height",""):t.css("height",o.outerHeight(!0)+t.data("height"));setTimeout(function(){e.removeClass("moved")},300)})},resize:function(){var n=this;n.S("["+this.attr_name()+"]").each(function(){var t=n.S(this),e=t.data(n.attr_name(!0)+"-init"),r=t.parent("."+n.settings.sticky_class),u,f;n.breakpoint()||(f=t.hasClass("expanded"),t.css("height","").removeClass("expanded").find("li").removeClass("hover"),f&&n.toggle(t));n.is_sticky(t,r,e)&&(r.hasClass("fixed")?(r.removeClass("fixed"),u=r.offset().top,n.S(i.body).hasClass("f-topbar-fixed")&&(u-=t.data("height")),t.data("stickyoffset",u),r.addClass("fixed")):(u=r.offset().top,t.data("stickyoffset",u)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(t){var i=this,r=t.data(this.attr_name(!0)+"-init"),u=i.S("section",t),f=n(this).children().filter("ul").first();u.detach();i.S(".has-dropdown>a",u).each(function(){var u=i.S(this),e=u.siblings(".dropdown"),f=u.attr("href"),t;e.find(".title.back").length||(t=r.mobile_show_parent_link&&f&&f.length>1?n('<li class="title back js-generated"><h5><a href="javascript:void(0)"><\/a><\/h5><\/li><li><a class="parent-link js-generated" href="'+f+'">'+u.text()+"<\/a><\/li>"):n('<li class="title back js-generated"><h5><a href="javascript:void(0)"><\/a><\/h5><\/li>'),r.custom_back_text==1?n("h5>a",t).html(r.back_text):n("h5>a",t).html("&laquo; "+u.html()),e.prepend(t))});u.appendTo(t);this.sticky();this.assembled(t)},assembled:function(t){t.data(this.attr_name(!0),n.extend({},t.data(this.attr_name(!0)),{assembled:!0}))},height:function(t){var i=0,r=this;return n("> li",t).each(function(){i+=r.S(this).outerHeight(!0)}),i},sticky:function(){var i=this.S(t),n=this;this.S(t).on("scroll",function(){n.update_sticky_positioning()})},update_sticky_positioning:function(){var i="."+this.settings.sticky_class,u=this.S(t),n=this,r;n.settings.sticky_topbar&&n.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)&&(r=this.settings.sticky_topbar.data("stickyoffset"),n.S(i).hasClass("expanded")||(u.scrollTop()>r?n.S(i).hasClass("fixed")||(n.S(i).addClass("fixed"),n.S("body").addClass("f-topbar-fixed")):u.scrollTop()<=r&&n.S(i).hasClass("fixed")&&(n.S(i).removeClass("fixed"),n.S("body").removeClass("f-topbar-fixed"))))},off:function(){this.S(this.scope).off(".fndtn.topbar");this.S(t).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i,r){"use strict";Foundation.libs.tab={name:"tab",version:"5.2.1",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0},default_tab_hashes:[],init:function(n,t,i){var r=this,u=this.S;this.bindings(t,i);this.handle_location_hash_change();u("["+this.attr_name()+"] > dd.active > a",this.scope).each(function(){r.default_tab_hashes.push(this.hash)})},events:function(){var i=this,n=this.S;n(this.scope).off(".tab").on("click.fndtn.tab","["+this.attr_name()+"] > dd > a",function(t){t.preventDefault();t.stopPropagation();i.toggle_active_tab(n(this).parent())});n(t).on("hashchange.fndtn.tab",function(n){n.preventDefault();i.handle_location_hash_change()})},handle_location_hash_change:function(){var t=this,i=this.S;i("["+this.attr_name()+"]",this.scope).each(function(){var s=i(this).data(t.attr_name(!0)+"-init"),u,f,e,o;if(s.deep_linking)if(u=t.scope.location.hash,u!="")f=i(u),f.hasClass("content")&&f.parent().hasClass("tab-content")?t.toggle_active_tab(n("["+t.attr_name()+"] > dd > a[href="+u+"]").parent()):(e=f.closest(".content").attr("id"),e!=r&&t.toggle_active_tab(n("["+t.attr_name()+"] > dd > a[href=#"+e+"]").parent(),u));else for(o in t.default_tab_hashes)t.toggle_active_tab(n("["+t.attr_name()+"] > dd > a[href="+t.default_tab_hashes[o]+"]").parent())})},toggle_active_tab:function(i,u){var o=this.S,h=i.closest("["+this.attr_name()+"]"),l=i.children("a").first(),f="#"+l.attr("href").split("#")[1],s=o(f),a=i.siblings(),e=h.data(this.attr_name(!0)+"-init"),c;o(this).data(this.data_attr("tab-content"))&&(f="#"+o(this).data(this.data_attr("tab-content")).split("#")[1],s=o(f));e.deep_linking&&(c=n("body,html").scrollTop(),t.location.hash=u!=r?u:f,e.scroll_to_content?u==r||u==f?i.parent()[0].scrollIntoView():o(f)[0].scrollIntoView():(u==r||u==f)&&n("body,html").scrollTop(c));i.addClass(e.active_class).triggerHandler("opened");a.removeClass(e.active_class);s.siblings().removeClass(e.active_class).end().addClass(e.active_class);e.callback(i);s.triggerHandler("toggled",[i]);h.triggerHandler("toggled",[s])},data_attr:function(n){return this.namespace.length>0?this.namespace+"-"+n:n},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(n,t,i){"use strict";Foundation.libs.abide={name:"abide",version:"5.2.1",settings:{live_validate:!0,focus_on_invalid:!0,error_labels:!0,timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^\d+$/,number:/-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,time:/(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,dateISO:/\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,month_day_year:/(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(n){var t=i.getElementById(n.getAttribute(this.add_namespace("data-equalto"))).value,r=n.value;return t===r}}},timer:null,init:function(n,t,i){this.bindings(t,i)},events:function(t){var i=this,r=i.S(t).attr("novalidate","novalidate"),u=r.data(this.attr_name(!0)+"-init");this.invalid_attr=this.add_namespace("data-invalid");r.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(n){var t=/ajax/i.test(i.S(this).attr(i.attr_name()));return i.validate(i.S(this).find("input, textarea, select").get(),n,t)}).on("reset",function(){return i.reset(n(this))}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(n){i.validate([this],n)}).on("keydown.fndtn.abide",function(t){var r=n(this).closest("form").data(i.attr_name(!0)+"-init");r.live_validate===!0&&(clearTimeout(i.timer),i.timer=setTimeout(function(){i.validate([this],t)}.bind(this),r.timeout))})},reset:function(t){t.removeAttr(this.invalid_attr);n(this.invalid_attr,t).removeAttr(this.invalid_attr);n(".error",t).not("small").removeClass("error")},validate:function(n,t,i){for(var f=this.parse_patterns(n),o=f.length,u=this.S(n[0]).closest("form"),e=/submit/.test(t.type),r=0;r<o;r++)if(!f[r]&&(e||i))return this.settings.focus_on_invalid&&n[r].focus(),u.trigger("invalid"),this.S(n[r]).closest("form").attr(this.invalid_attr,""),!1;return(e||i)&&u.trigger("valid"),u.removeAttr(this.invalid_attr),i?!1:!0},parse_patterns:function(n){for(var t=n.length,i=[];t--;)i.push(this.pattern(n[t]));return this.check_validation_and_apply_styles(i)},pattern:function(n){var r=n.getAttribute("type"),i=typeof n.getAttribute("required")=="string",t=n.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(t)&&t.length>0?[n,this.settings.patterns[t],i]:t.length>0?[n,new RegExp(t),i]:this.settings.patterns.hasOwnProperty(r)?[n,this.settings.patterns[r],i]:(t=/.*/,[n,t,i])},check_validation_and_apply_styles:function(t){for(var e=t.length,u=[];e--;){var i=t[e][0],r=t[e][2],l=i.value,s=this.S(i).parent(),h=i.getAttribute(this.add_namespace("data-abide-validator")),a=i.type==="radio",v=i.type==="checkbox",o=this.S('label[for="'+i.getAttribute("id")+'"]'),y=r?i.value.length>0:!0,f,c;i.getAttribute(this.add_namespace("data-equalto"))&&(h="equalTo");f=s.is("label")?s.parent():s;a&&r?u.push(this.valid_radio(i,r)):v&&r?u.push(this.valid_checkbox(i,r)):h?(c=this.settings.validators[h].apply(this,[i,r,f]),u.push(c),c?(this.S(i).removeAttr(this.invalid_attr),f.removeClass("error")):(this.S(i).attr(this.invalid_attr,""),f.addClass("error"))):t[e][1].test(l)&&y||!r&&i.value.length<1||n(i).attr("disabled")?(this.S(i).removeAttr(this.invalid_attr),f.removeClass("error"),o.length>0&&this.settings.error_labels&&o.removeClass("error"),u.push(!0),n(i).triggerHandler("valid")):(this.S(i).attr(this.invalid_attr,""),f.addClass("error"),o.length>0&&this.settings.error_labels&&o.addClass("error"),u.push(!1),n(i).triggerHandler("invalid"))}return u},valid_checkbox:function(n,t){var n=this.S(n),i=n.is(":checked")||!t;return i?n.removeAttr(this.invalid_attr).parent().removeClass("error"):n.attr(this.invalid_attr,"").parent().addClass("error"),i},valid_radio:function(n){for(var e=n.getAttribute("name"),r=i.getElementsByName(e),f=r.length,u=!1,t=0;t<f;t++)r[t].checked&&(u=!0);for(t=0;t<f;t++)u?this.S(r[t]).removeAttr(this.invalid_attr).parent().removeClass("error"):this.S(r[t]).attr(this.invalid_attr,"").parent().addClass("error");return u}}}(jQuery,this,this.document),function(n,t){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.2.1",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,tip_template:function(n,t){return'<span data-selector="'+n+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'">'+t+'<span class="nub"><\/span><\/span>'}},cache:{},init:function(n,t,i){Foundation.inherit(this,"random_str");this.bindings(t,i)},events:function(t){var i=this,r=i.S;i.create(this.S(t));n(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]:not(a)",function(t){var u=r(this),f=n.extend({},i.settings,i.data_options(u)),e=!1;if(/mouse/i.test(t.type)&&i.ie_touch(t))return!1;if(u.hasClass("open"))Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&t.preventDefault(),i.hide(u);else{if(f.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type))return;!f.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&(t.preventDefault(),r(f.tooltip_class+".open").hide(),e=!0);/enter|over/i.test(t.type)?this.timer=setTimeout(function(){var n=i.showTip(u)}.bind(this),i.settings.hover_delay):t.type==="mouseout"||t.type==="mouseleave"?(clearTimeout(this.timer),i.hide(u)):i.showTip(u)}}).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",function(t){if(/mouse/i.test(t.type)&&i.ie_touch(t))return!1;(n(this).data("tooltip-open-event-type")!="touch"||t.type!="mouseleave")&&(n(this).data("tooltip-open-event-type")=="mouse"&&/MSPointerDown|touchstart/i.test(t.type)?i.convert_to_touch(n(this)):i.hide(n(this)))}).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",function(){i.hide(r(this))})},ie_touch:function(){return!1},showTip:function(n){var t=this.getTip(n);return this.show(n)},getTip:function(t){var r=this.selector(t),u=n.extend({},this.settings,this.data_options(t)),i=null;return r&&(i=this.S('span[data-selector="'+r+'"]'+u.tooltip_class)),typeof i=="object"?i:!1},selector:function(n){var t=n.attr("id"),i=n.attr(this.attr_name())||n.attr("data-selector");return(t&&t.length<1||!t)&&typeof i!="string"&&(i=this.random_str(6),n.attr("data-selector",i)),t&&t.length>0?t:i},create:function(i){var o=this,r=n.extend({},this.settings,this.data_options(i)),f=this.settings.tip_template,u,e;typeof r.tip_template=="string"&&t.hasOwnProperty(r.tip_template)&&(f=t[r.tip_template]);u=n(f(this.selector(i),n("<div><\/div>").html(i.attr("title")).html()));e=this.inheritable_classes(i);u.addClass(e).appendTo(r.append_to);Modernizr.touch&&(u.append('<span class="tap-to-close">'+r.touch_close_text+"<\/span>"),u.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",function(){o.hide(i)}));i.removeAttr("title").attr("title","")},reposition:function(t,i,r){var s,u,e,h,f,o;i.css("visibility","hidden").show();s=t.data("width");u=i.children(".nub");e=u.outerHeight();h=u.outerHeight();this.small()?i.css({width:"100%"}):i.css({width:s?s:"auto"});f=function(n,t,i,r,u){return n.css({top:t?t:"auto",bottom:r?r:"auto",left:u?u:"auto",right:i?i:"auto"}).end()};f(i,t.offset().top+t.outerHeight()+10,"auto","auto",t.offset().left);this.small()?(f(i,t.offset().top+t.outerHeight()+10,"auto","auto",12.5,n(this.scope).width()),i.addClass("tip-override"),f(u,-e,"auto","auto",t.offset().left)):(o=t.offset().left,Foundation.rtl&&(u.addClass("rtl"),o=t.offset().left+t.outerWidth()-i.outerWidth()),f(i,t.offset().top+t.outerHeight()+10,"auto","auto",o),i.removeClass("tip-override"),r&&r.indexOf("tip-top")>-1?(Foundation.rtl&&u.addClass("rtl"),f(i,t.offset().top-i.outerHeight(),"auto","auto",o).removeClass("tip-override")):r&&r.indexOf("tip-left")>-1?(f(i,t.offset().top+t.outerHeight()/2-i.outerHeight()/2,"auto","auto",t.offset().left-i.outerWidth()-e).removeClass("tip-override"),u.removeClass("rtl")):r&&r.indexOf("tip-right")>-1&&(f(i,t.offset().top+t.outerHeight()/2-i.outerHeight()/2,"auto","auto",t.offset().left+t.outerWidth()+e).removeClass("tip-override"),u.removeClass("rtl")));i.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches},inheritable_classes:function(t){var r=n.extend({},this.settings,this.data_options(t)),u=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(r.additional_inheritable_classes),i=t.attr("class"),f=i?n.map(i.split(" "),function(t){if(n.inArray(t,u)!==-1)return t}).join(" "):"";return n.trim(f)},convert_to_touch:function(t){var i=this,r=i.getTip(t),u=n.extend({},i.settings,i.data_options(t));r.find(".tap-to-close").length===0&&(r.append('<span class="tap-to-close">'+u.touch_close_text+"<\/span>"),r.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",function(){i.hide(t)}));t.data("tooltip-open-event-type","touch")},show:function(n){var t=this.getTip(n);n.data("tooltip-open-event-type")=="touch"&&this.convert_to_touch(n);this.reposition(n,t,n.attr("class"));n.addClass("open");t.fadeIn(150)},hide:function(n){var t=this.getTip(n);t.fadeOut(150,function(){t.find(".tap-to-close").remove();t.off("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose");n.removeClass("open")})},off:function(){var t=this;this.S(this.scope).off(".fndtn.tooltip");this.S(this.settings.tooltip_class).each(function(i){n("["+t.attr_name()+"]").get(i).attr("title",n(this).text())}).remove()},reflow:function(){}}}(jQuery,this,this.document);!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function t(t,i){var u,f,r=this;if(r.defaults={accessibility:!0,autoplay:!1,autoplaySpeed:3e3,cssEase:"ease",dots:!1,draggable:!0,fade:!1,easing:"linear",arrows:!0,infinite:!0,onBeforeChange:null,onAfterChange:null,pauseOnHover:!0,placeholders:!0,responsive:null,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,vertical:!1},r.initials={animating:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,dots:null,listWidth:null,listHeight:null,loadIndex:0,nextArrow:null,prevArrow:null,slideCount:null,slideWidth:null,slideTrack:null,slides:null,sliding:!1,slideOffset:0,placeholderOffset:0,swipeLeft:null,list:null,touchObject:{},transformsEnabled:!1},n.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.paused=!1,r.positionProp=null,r.slider=n(t),r.slidesCache=null,r.cssTransitions=!1,r.windowWidth=0,r.windowTimer=null,r.options=n.extend({},r.defaults,i),r.originalSettings=r.options,u=r.options.responsive||null,u&&u.length>-1){for(f in u)u.hasOwnProperty(f)&&(r.breakpoints.push(u[f].breakpoint),r.breakpointSettings[u[f].breakpoint]=u[f].settings);r.breakpoints.sort(function(n,t){return t-n})}r.autoPlay=n.proxy(r.autoPlay,r);r.autoPlayClear=n.proxy(r.autoPlayClear,r);r.changeSlide=n.proxy(r.changeSlide,r);r.setPosition=n.proxy(r.setPosition,r);r.swipeHandler=n.proxy(r.swipeHandler,r);r.dragHandler=n.proxy(r.dragHandler,r);r.keyHandler=n.proxy(r.keyHandler,r);r.autoPlayIterator=n.proxy(r.autoPlayIterator,r);r.init()}return t}();t.prototype.addSlide=function(t){var i=this;i.unload();n(t).appendTo(i.slideTrack);i.slides=i.slideTrack.children(this.options.slide);i.slideTrack.children(this.options.slide).remove();i.slideTrack.append(i.slides);i.reinit()};t.prototype.animateSlide=function(t,i){var u={},r=this;r.transformsEnabled===!1?r.options.vertical===!1?r.slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px,0px)",r.slideTrack.css(u))},complete:function(){i&&i.call()}}):(r.applyTransition(),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.applyTransition=function(t){var r,u,i=this;r="all "+i.options.speed+"ms "+i.options.cssEase;u=i.options.vertical===!1?i.listWidth/2+" 50%":"";i.options.fade===!1?i.slideTrack.css({transition:r,transformOrigin:u}):n(i.slides.get(t)).css({transition:r})};t.prototype.autoPlay=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer);n.slideCount>n.options.slidesToShow&&n.paused!==!0&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this;n.options.infinite===!1?1===n.direction?(n.currentSlide+1===n.slideCount-1&&(n.direction=0),n.slideHandler(n.currentSlide+n.options.slidesToScroll)):(0==n.currentSlide-1&&(n.direction=1),n.slideHandler(n.currentSlide-n.options.slidesToScroll)):n.slideHandler(n.currentSlide+n.options.slidesToScroll)};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.prevArrow=n('<button type="button" tabIndex="-1">Previous<\/button>').appendTo(t.slider).addClass("slick-prev"),t.nextArrow=n('<button type="button" tabIndex="-1">Next<\/button>').appendTo(t.slider).addClass("slick-next"),t.options.infinite!==!0&&t.prevArrow.addClass("slick-disabled"))};t.prototype.buildDots=function(){var i,r,t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(r='<ul class="slick-dots">',i=1;i<=t.slideCount&&(r+='<li><a href="javascript:void(0)" tabIndex="-1">'+i+"<\/a><\/li>",!(t.options.placeholders===!1&&i+t.options.slidesToShow-(t.options.slidesToScroll-1)>t.slideCount));i+=1);if(r+="<\/ul>",t.dots=n(r).appendTo(t.slider),t.options.slidesToScroll>1)for(t.dots.find("li").hide(),i=0;i<t.slideCount;)n(t.dots.find("li").get(i)).show(),i+=t.options.slidesToScroll;t.dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.slides=n(t.options.slide+":not(.slick-cloned)",t.slider).addClass("slick-slide");t.slideCount=t.slides.length;t.slidesCache=t.slides;t.slider.addClass("slick-slider");t.slideTrack=0===t.slideCount?n('<div class="slick-track"/>').appendTo(t.slider):t.slides.wrapAll('<div class="slick-track"/>').parent();t.list=t.slideTrack.wrap('<div class="slick-list"/>').parent();t.slideTrack.css("opacity",0);t.options.accessibility===!0&&t.list.prop("tabIndex",0);t.setupPlaceholders();t.setupInfinite();t.buildArrows();t.buildDots();t.setSlideClasses(0);t.options.draggable===!0&&t.list.addClass("draggable")};t.prototype.checkResponsive=function(){var r,i,t=this;if(t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&null!==t.originalSettings.responsive){i=null;for(r in t.breakpoints)t.breakpoints.hasOwnProperty(r)&&n(window).width()<t.breakpoints[r]&&(i=t.breakpoints[r]);null!==i?null!==t.activeBreakpoint?i!==t.activeBreakpoint&&(t.activeBreakpoint=i,t.options=n.extend({},t.defaults,t.breakpointSettings[i]),t.refresh()):(t.activeBreakpoint=i,t.options=n.extend({},t.defaults,t.breakpointSettings[i]),t.refresh()):null!==t.activeBreakpoint&&(t.activeBreakpoint=null,t.options=n.extend({},t.defaults,t.originalSettings),t.refresh())}};t.prototype.changeSlide=function(t){var i=this;switch(t.data.message){case"previous":i.slideHandler(i.currentSlide-i.options.slidesToScroll);break;case"next":i.slideHandler(i.currentSlide+i.options.slidesToScroll);break;case"index":i.slideHandler(n(t.target).parent().index());break;default:return!1}};t.prototype.destroy=function(){var t=this;t.autoPlayClear();t.touchObject={};n(".slick-cloned",t.slider).remove();n(".slick-placeholder",t.slider).remove();t.dots&&t.dots.remove();t.prevArrow&&(t.prevArrow.remove(),t.nextArrow.remove());t.slides.unwrap().unwrap();t.slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style");t.slider.removeClass("slick-slider");t.slider.removeClass("slick-initialized")};t.prototype.disableTransition=function(t){var i=this;i.options.fade===!1?i.slideTrack.css({transition:"",transformOrigin:""}):n(i.slides.get(t)).css({transition:""})};t.prototype.fadeSlide=function(t,i){var r=this;r.cssTransitions===!1?(n(r.slides.get(t)).css({zIndex:1e3}),n(r.slides.get(t)).animate({opacity:1},r.options.speed,r.options.easing,i)):(r.applyTransition(t),n(r.slides.get(t)).css({opacity:1,zIndex:1e3}),i&&setTimeout(function(){r.disableTransition(t);i.call()},r.options.speed))};t.prototype.filterSlides=function(n){var t=this;null!==n&&(t.unload(),t.slideTrack.children(this.options.slide).remove(),t.slidesCache.filter(n).appendTo(t.slideTrack),t.reinit())};t.prototype.init=function(){var t=this;n(t.slider).hasClass("slick-initialized")||(n(t.slider).addClass("slick-initialized"),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.checkResponsive())};t.prototype.initArrowEvents=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.prevArrow.on("click.slick",{message:"previous"},n.changeSlide),n.nextArrow.on("click.slick",{message:"next"},n.changeSlide))};t.prototype.initDotEvents=function(){var t=this;t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&n("li a",t.dots).on("click.slick",{message:"index"},t.changeSlide)};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.options.swipe===!0&&(t.list.on("touchstart.slick",{action:"start",kind:"touch"},t.swipeHandler),t.list.on("touchmove.slick",{action:"move",kind:"touch"},t.swipeHandler),t.list.on("touchend.slick",{action:"end",kind:"touch"},t.swipeHandler),t.list.on("touchcancel.slick",{action:"end",kind:"touch"},t.swipeHandler));t.options.draggable===!0&&(t.list.on("mousedown.slick",{action:"start",kind:"drag"},t.swipeHandler),t.list.on("mousemove.slick",{action:"move",kind:"drag"},t.swipeHandler),t.list.on("mouseup.slick",{action:"end",kind:"drag"},t.swipeHandler),t.list.on("mouseleave.slick",{action:"end",kind:"drag"},t.swipeHandler));t.options.pauseOnHover===!0&&t.options.autoplay===!0&&(t.list.on("mouseenter.slick",t.autoPlayClear),t.list.on("mouseleave.slick",t.autoPlay));t.list.on("keydown.slick",t.keyHandler);n(window).on("orientationchange.slick",function(){t.checkResponsive();t.setPosition()});n(window).resize(function(){n(window).width!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.setPosition()},50))});n(window).on("load.slick",t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.prevArrow.show(),n.nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.dots.show();n.options.autoplay===!0&&n.autoPlay()};t.prototype.keyHandler=function(n){var t=this;37===n.keyCode?t.changeSlide({data:{message:"previous"}}):39===n.keyCode&&t.changeSlide({data:{message:"next"}})};t.prototype.loadSlider=function(){var t=this;t.setPosition();t.slideTrack.css({opacity:1});"complete"!==document.readyState?n(window).load(function(){t.slider.removeClass("slick-loading");t.initUI()}):(t.slider.removeClass("slick-loading"),t.initUI())};t.prototype.postSlide=function(n){var t=this;null!==t.options.onAfterChange&&n!==t.currentSlide&&t.options.onAfterChange.call(this,t,n);t.animating=!1;t.currentSlide=n;t.setPosition();t.swipeLeft=null;t.updateDots();t.updateArrows();t.options.autoplay===!0&&t.paused===!1&&t.autoPlay();t.setSlideClasses(t.currentSlide)};t.prototype.refresh=function(){var t=this;t.destroy();n.extend(t,t.initials);t.init()};t.prototype.reinit=function(){var t=this;t.slides=n(t.options.slide+":not(.slick-cloned)",t.slideTrack).addClass("slick-slide");t.slideCount=t.slides.length;t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll);t.setProps();t.setupPlaceholders();t.setupInfinite();t.buildArrows();t.updateArrows();t.initArrowEvents();t.buildDots();t.updateDots();t.initDotEvents();t.setSlideClasses(0);t.setPosition()};t.prototype.removeSlide=function(t){var i=this;return i.unload(),i.slideCount<1?!1:(n(i.slideTrack.children(this.options.slide).get(t)).remove(),i.slides=i.slideTrack.children(this.options.slide),i.slideTrack.children(this.options.slide).remove(),i.slideTrack.append(i.slides),i.reinit(),void 0)};t.prototype.setCSS=function(n){var r,u,t=this,i={};r="left"==t.positionProp?n+"px":"0px";u="top"==t.positionProp?n+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this;n.list.find(".slick-slide").width(n.slideWidth);n.options.vertical===!1?n.slideTrack.width(Math.ceil(n.slideWidth*n.slider.find(".slick-slide").length)):(n.list.height(n.slides.first().outerHeight()),n.slideTrack.height(Math.ceil(n.listHeight*n.slider.find(".slick-slide").length)))};t.prototype.setFade=function(){var i,t=this;t.slides.each(function(r,u){i=-1*t.slideWidth*r;n(u).css({position:"relative",left:i,top:0,zIndex:800,opacity:0})});n(t.slides.get(t.currentSlide)).css({zIndex:900,opacity:1})};t.prototype.setPosition=function(){var i,t,n=this;t=n.currentSlide;n.setValues();n.setDimensions();n.slideOffset=0;n.options.infinite===!0&&n.slideCount>n.options.slidesToShow&&(n.slideOffset=-1*n.slideWidth*n.options.slidesToShow);n.options.placeholders===!1&&n.currentSlide+n.options.slidesToScroll>=n.slideCount-n.options.slidesToScroll&&(n.slideOffset=n.slideOffset- -1*n.slideWidth*n.placeholderOffset);n.options.fade===!1?(i=n.options.vertical===!1?-1*t*n.slideWidth+n.slideOffset:-1*t*n.listHeight-n.listHeight,n.setCSS(i)):n.setFade()};t.prototype.setProps=function(){var n=this;n.positionProp=n.options.vertical===!0?"top":"left";"top"===n.positionProp?n.slider.addClass("slick-vertical"):n.slider.removeClass("slick-vertical");(void 0!==document.body.style.WebkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition)&&(n.cssTransitions=!0);void 0!==document.body.style.MozTransform&&(n.animType="MozTransform");void 0!==document.body.style.webkitTransform&&(n.animType="webkitTransform");void 0!==document.body.style.msTransform&&(n.animType="msTransform");n.transformsEnabled=null!==n.animType};t.prototype.setValues=function(){var n=this;n.listWidth=n.list.width();n.listHeight=n.list.height();n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow)};t.prototype.setSlideClasses=function(t){var i=this;i.slides.removeClass("slick-active");n(i.slides.get(t)).addClass("slick-active")};t.prototype.setupInfinite=function(){var i,r,t=this;if(t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(i=t.slideCount;i>t.slideCount-t.options.slidesToShow;i-=1)r=i-1,n(t.slides[r]).clone().prependTo(t.slideTrack).addClass("slick-cloned");for(i=0;i<t.options.slidesToShow;i+=1)r=i,n(t.slides[r]).clone().appendTo(t.slideTrack).addClass("slick-cloned")}};t.prototype.setupPlaceholders=function(){var i,r,t=this;if((t.options.fade===!0||t.options.vertical===!0)&&(t.options.slidesToShow=1,t.options.slidesToScroll=1),t.options.placeholders===!1)return t.options.infinite=!1,t.placeholderOffset=t.slideCount%t.options.slidesToScroll,!1;if(0!=t.slideCount%t.options.slidesToScroll&&t.slideCount>t.options.slidesToShow){for(r=Math.abs(t.options.slidesToScroll-t.slideCount%t.options.slidesToScroll),i=0;r>i;i+=1)n("<div/>").appendTo(t.slideTrack).addClass("slick-slide slick-placeholder");t.slides=n(".slick-slide:not(.slick-cloned)",t.slider);t.slideCount=t.slides.length}};t.prototype.slideHandler=function(n){var i,u,f,r,e=null,t=this;return t.animating===!0?!1:(i=n,r=t.slideOffset,t.options.placeholders===!1&&(t.currentSlide>=t.slideCount-t.options.slidesToShow?i>=t.slideCount-t.options.slidesToShow?i=t.currentSlide:r=0:i+t.options.slidesToScroll>=t.slideCount-t.options.slidesToScroll&&(r=t.placeholderOffset*t.slideWidth)),t.options.vertical===!1?(e=-1*i*t.slideWidth+r,f=-1*t.currentSlide*t.slideWidth+r):(e=-1*i*t.listHeight-t.listHeight,f=-1*t.currentSlide*t.listHeight-t.listHeight),t.options.infinite===!1&&(0>n||n>t.slideCount-1)?(i=t.currentSlide,t.animateSlide(f,function(){t.postSlide(i)}),!1):(t.options.autoplay===!0&&clearInterval(t.autoPlayTimer),t.currentLeft=null===t.swipeLeft?f:t.swipeLeft,u=0>i?t.slideCount-t.options.slidesToScroll:i>t.slideCount-1?0:i,t.animating=!0,null!==t.options.onBeforeChange&&n!==t.currentSlide&&t.options.onBeforeChange.call(this,t,t.currentSlide),t.options.fade===!0?(t.fadeSlide(u,function(){t.postSlide(u)}),!1):(t.animateSlide(e,function(){t.postSlide(u)}),void 0)))};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.prevArrow.hide(),n.nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.dots.hide();n.slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(180*u/Math.PI),0>n&&(n=360-Math.abs(n)),45>=n&&n>=0?"left":360>=n&&n>=315?"left":n>=135&&225>=n?"right":"vertical"};t.prototype.swipeEnd=function(t){var i=this;if(i.list.removeClass("dragging"),void 0===i.touchObject.curX)return!1;if(0!==i.touchObject.fingerCount&&"drag"!==t.data.kind)return i.touchObject={},!1;if(i.touchObject.swipeLength>=i.touchObject.minSwipe)switch(n(t.target).on("click.slick",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();n(t.target).off("click.slick")}),i.swipeDirection()){case"left":i.slideHandler(i.currentSlide+i.options.slidesToScroll);i.touchObject={};break;case"right":i.slideHandler(i.currentSlide-i.options.slidesToScroll);i.touchObject={}}else i.slideHandler(i.currentSlide),i.touchObject={}};t.prototype.swipeHandler=function(n){var t=this;switch(void 0!==n.originalEvent&&(t.touchObject.fingerCount=void 0!==n.originalEvent.touches?n.originalEvent.touches.length:1),t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}};t.prototype.swipeMove=function(n){var r,f,u,i,t=this;return i=void 0!==n.originalEvent?n.originalEvent.touches:null,r=t.options.vertical===!1?-1*t.currentSlide*t.slideWidth+t.slideOffset:-1*t.currentSlide*t.listHeight-t.listHeight,t.options.placeholders===!1&&t.currentSlide+t.options.slidesToShow>=t.slideCount&&(r=-1*t.currentSlide*t.slideWidth+t.slideOffset),!t.list.hasClass("dragging")&&"drag"===n.data.kind||i&&1!==i.length?!1:(t.touchObject.curX=void 0!==i?i[0].pageX:n.clientX,t.touchObject.curY=void 0!==i?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),f=t.swipeDirection(),"vertical"===f?!1:(void 0!==n.originalEvent&&n.preventDefault(),u=t.touchObject.curX>t.touchObject.startX?1:-1,t.swipeLeft=t.options.vertical===!1?r+t.touchObject.swipeLength*u:r+t.touchObject.swipeLength*(t.listHeight/t.listWidth)*u,t.options.fade===!0||t.options.touchMove===!1?!1:t.animating===!0?(t.swipeLeft=null,!1):(t.setCSS(t.swipeLeft),void 0)))};t.prototype.swipeStart=function(n){var i,t=this;return 1!==t.touchObject.fingerCount||t.slideCount<=t.options.slidesToShow?(t.touchObject={},!1):(void 0!==n.originalEvent&&void 0!==n.originalEvent.touches&&(i=n.originalEvent.touches[0]),t.touchObject.startX=t.touchObject.curX=void 0!==i?i.pageX:n.clientX,t.touchObject.startY=t.touchObject.curY=void 0!==i?i.pageY:n.clientY,t.list.addClass("dragging"),void 0)};t.prototype.unfilterSlides=function(){var n=this;null!==n.slidesCache&&(n.unload(),n.slideTrack.children(this.options.slide).remove(),n.slidesCache.appendTo(n.slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.slider).remove();n(".slick-placeholder",t.slider).remove();t.dots&&t.dots.remove();t.prevArrow&&(t.prevArrow.remove(),t.nextArrow.remove());t.slides.removeClass("slick-slide slick-active slick-visible").removeAttr("style")};t.prototype.updateArrows=function(){var n=this;n.options.arrows===!0&&n.options.infinite!==!0&&n.slideCount>n.options.slidesToShow&&(0===n.currentSlide?(n.prevArrow.addClass("slick-disabled"),n.nextArrow.removeClass("slick-disabled")):n.currentSlide>=n.slideCount/n.options.slidesToScroll*n.options.slidesToShow-n.options.slidesToScroll?(n.nextArrow.addClass("slick-disabled"),n.prevArrow.removeClass("slick-disabled")):n.options.placeholders===!1&&n.currentSlide+n.options.slidesToShow>=n.slideCount?(n.nextArrow.addClass("slick-disabled"),n.prevArrow.removeClass("slick-disabled")):(n.prevArrow.removeClass("slick-disabled"),n.nextArrow.removeClass("slick-disabled")))};t.prototype.updateDots=function(){var t=this;null!==t.dots&&(t.dots.find("li").removeClass("slick-active"),n(t.dots.find("li").get(t.currentSlide)).addClass("slick-active"))};n.fn.slick=function(n){var i=this;return i.each(function(i,r){r.slick=new t(r,n)})};n.fn.slickAdd=function(n){var t=this;return t.each(function(t,i){i.slick.addSlide(n)})};n.fn.slickFilter=function(n){var t=this;return t.each(function(t,i){i.slick.filterSlides(n)})};n.fn.slickGoTo=function(n){var t=this;return t.each(function(t,i){i.slick.slideHandler(n)})};n.fn.slickNext=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"next"}})})};n.fn.slickPause=function(){var n=this;return n.each(function(n,t){t.slick.autoPlayClear();t.slick.paused=!0})};n.fn.slickPlay=function(){var n=this;return n.each(function(n,t){t.slick.paused=!1;t.slick.autoPlay()})};n.fn.slickPrev=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"previous"}})})};n.fn.slickRemove=function(n){var t=this;return t.each(function(t,i){i.slick.removeSlide(n)})};n.fn.slickSetOption=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.options[n]=t;i===!0&&(u.slick.unload(),u.slick.reinit())})};n.fn.slickUnfilter=function(){var n=this;return n.each(function(n,t){t.slick.unfilterSlides()})};n.fn.unslick=function(){var n=this;return n.each(function(n,t){t.slick.destroy()})}}),function(n){"use strict";var t,i=[],r=/@-skrollr-keyframes\s+([\w-]+)/g,f=/\s*\{\s*((?:[^{]+\{[^}]*\}\s*)+?)\s*\}/g,e=/([\w\-]+)\s*\{([^}]+)\}/g,u=/-skrollr-animation-name\s*:\s*([\w-]+)/g,o=function(t){var i=new XMLHttpRequest;try{i.open("GET",t,!1);i.send(null)}catch(r){n.XDomainRequest&&(i=new XDomainRequest,i.open("GET",t,!1),i.send(null))}return i.responseText},s=function(r){for(var u,s,a,v,e,f=0;f<r.length;f++){if(u=r[f],u.tagName==="LINK"){if(u.getAttribute("data-skrollr-stylesheet")===null)continue;if(n.matchMedia&&(s=u.getAttribute("media"),s&&!matchMedia(s).matches))continue;t=o(u.href)}else t=u.textContent||u.innerText||u.innerHTML;t&&i.push(t)}for(i.reverse(),a={},v=[],e=0;e<i.length;e++)t=i[e],h(t,a),c(t,v);l(a,v)},h=function(n,t){r.lastIndex=0;for(var u,o,i,s;(u=r.exec(n))!==null;)for(f.lastIndex=r.lastIndex,o=f.exec(n),e.lastIndex=0,s=t[u[1]]={};(i=e.exec(o[1]))!==null;)s[i[1]]=i[2].replace(/[\n\r\t]/g,"")},c=function(n,t){u.lastIndex=0;for(var f,r,i;(f=u.exec(n))!==null;){for(i=u.lastIndex;i--&&n.charAt(i)!=="{";);for(r=i;r--&&n.charAt(r-1)!=="}";);t.push([n.substring(r,i).replace(/[\n\r\t]/g,""),f[1]])}},l=function(n,t){for(var i,e,o,r,f,s,h,u=0;u<t.length;u++)if(i=$(t[u][0]),i){e=n[t[u][1]];for(o in e)for(r=0;r<i.length;r++)h=i[r],f="data-"+o,s=e[o],h.hasAttribute(f)&&(s+=h.getAttribute(f)),i[r].setAttribute(f,s)}};s($("link, style"))}(window,document),function(n,t,i){"use strict";function c(i){var u,e;if(f=t.documentElement,y=t.body,dr(),r=this,i=i||{},ct=i.constants||{},i.easing)for(u in i.easing)ot[u]=i.easing[u];return oi=i.edgeStrategy||"set",w={beforerender:i.beforerender,render:i.render},tt=i.forceHeight!==!1,tt&&(ti=i.scale||1),lt=i.mobileDeceleration||cr,fi=i.smoothScrolling!==!1,yt=i.smoothScrollingDuration||lr,k={targetTop:r.getScrollTop()},a=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||n.opera)})(),a?(l=t.getElementById("skrollr-body"),l&&hu(),tu(),p(f,[d,yi],[gt])):p(f,[d,vi],[gt]),r.refresh(),fr(n,"resize orientationchange",function(){var n=f.clientWidth,t=f.clientHeight;(t!==ui||n!==ri)&&(ui=t,ri=n,vt=!0)}),e=gr(),function o(){uu();hr=e(o)}(),r}var v={get:function(){return r},init:function(n){return r||new c(n)},VERSION:"0.6.22"},wt=Object.prototype.hasOwnProperty,e=n.Math,bt=n.getComputedStyle,f,y,si="touchstart",hi="touchmove",ci="touchcancel",li="touchend",rt="skrollable",kt=rt+"-before",ai=rt+"-between",dt=rt+"-after",d="skrollr",gt="no-"+d,vi=d+"-desktop",yi=d+"-mobile",pi="linear",wi=1e3,cr=.004,lr=200,ar="start",bi="end",ki="center",di="bottom",ut="___skrollable_id",ni=/^(?:input|textarea|button|select)$/i,vr=/^\s+|\s+$/g,yr=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,pr=/\s*([\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,wr=/^([a-z\-]+)\[(\w+)\]$/,br=/-([a-z])/g,kr=function(n,t){return t.toUpperCase()},gi=/[\-+]?[\d]*\.?[\d]+/g,nr=/\{\?\}/g,tr=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,ir=/[a-z\-]+-gradient/g,o="",g="",dr=function(){var i=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/,t,n;if(bt){t=bt(y,null);for(n in t)if(o=n.match(i)||+n==n&&t[n].match(i),o)break;if(!o){o=g="";return}o=o[0];o.slice(0,1)==="-"?(g=o,o={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[o]):g="-"+o.toLowerCase()+"-"}},gr=function(){var t=n.requestAnimationFrame||n[o.toLowerCase()+"RequestAnimationFrame"],i=nt();return(a||!t)&&(t=function(t){var r=nt()-i,u=e.max(0,1e3/60-r);return n.setTimeout(function(){i=nt();t()},u)}),t},nu=function(){var t=n.cancelAnimationFrame||n[o.toLowerCase()+"CancelAnimationFrame"];return(a||!t)&&(t=function(t){return n.clearTimeout(t)}),t},ot={begin:function(){return 0},end:function(){return 1},linear:function(n){return n},quadratic:function(n){return n*n},cubic:function(n){return n*n*n},swing:function(n){return-e.cos(n*e.PI)/2+.5},sqrt:function(n){return e.sqrt(n)},outCubic:function(n){return e.pow(n-1,3)+1},bounce:function(n){var t;if(n<=.5083)t=3;else if(n<=.8489)t=9;else if(n<=.96208)t=27;else if(n<=.99981)t=91;else return 1;return 1-e.abs(3*e.cos(n*t*1.028)/t)}};c.prototype.refresh=function(n){var o,a,tt=!1,v,ot,e,c,u,d,y,s,st,g,nt,l,w;for(n===i?(tt=!0,h=[],ei=0,n=t.getElementsByTagName("*")):n.length===i&&(n=[n]),o=0,a=n.length;o<a;o++){var f=n[o],b=f,k=[],it=fi,ft=oi,et=!1;if(f.attributes){for(v=0,ot=f.attributes.length;v<ot;v++){if(e=f.attributes[v],e.name==="data-anchor-target"){if(b=t.querySelector(e.value),b===null)throw'Unable to find anchor target "'+e.value+'"';continue}if(e.name==="data-smooth-scrolling"){it=e.value!=="off";continue}if(e.name==="data-edge-strategy"){ft=e.value;continue}if(e.name==="data-interpolation-rounding"){et=!0;continue}(c=e.name.match(yr),c!==null)&&(u={props:e.value,element:f},k.push(u),d=c[1],d&&(u.constant=d.substr(1)),y=c[2],/p$/.test(y)?(u.isPercentage=!0,u.offset=(y.slice(0,-1)|0)/100):u.offset=y|0,s=c[3],st=c[4]||s,s&&s!==ar&&s!==bi?(u.mode="relative",u.anchors=[s,st]):(u.mode="absolute",s===bi?u.isEnd=!0:u.isPercentage||(u.offset=u.offset*ti)))}k.length&&(!tt&&ut in f?(l=f[ut],g=h[l].styleAttr,nt=h[l].classAttr):(l=f[ut]=ei++,g=f.style.cssText,nt=or(f)),h[l]={element:f,styleAttr:g,classAttr:nt,anchorTarget:b,keyFrames:k,smoothScrolling:it,edgeStrategy:ft,interpolationRounding:et},p(f,[rt],[]))}}for(er(),o=0,a=n.length;o<a;o++)(w=h[n[o][ut]],w!==i)&&(fu(w),ou(w));return r};c.prototype.relativeToAbsolute=function(n,t,i){var o=f.clientHeight,e=n.getBoundingClientRect(),u=e.top,s=e.bottom-e.top;return t===di?u-=o:t===ki&&(u-=o/2),i===di?u+=s:i===ki&&(u+=s/2),u+=r.getScrollTop(),u+.5|0};c.prototype.animateTo=function(n,t){t=t||{};var f=nt(),e=r.getScrollTop();return u={startTop:e,topDiff:n-e,targetTop:n,duration:t.duration||wi,startTime:f,endTime:f+(t.duration||wi),easing:ot[t.easing||pi],done:t.done},u.topDiff||(u.done&&u.done.call(r,!1),u=i),r};c.prototype.stopAnimateTo=function(){u&&u.done&&u.done.call(r,!0);u=i};c.prototype.isAnimatingTo=function(){return!!u};c.prototype.setScrollTop=function(t,i){return it=i===!0,a?ft=e.min(e.max(t,0),s):n.scrollTo(0,t),r};c.prototype.getScrollTop=function(){return a?ft:n.pageYOffset||f.scrollTop||y.scrollTop||0};c.prototype.getMaxScrollTop=function(){return s};c.prototype.on=function(n,t){return w[n]=t,r};c.prototype.off=function(n){return delete w[n],r};c.prototype.destroy=function(){var e=nu(),n,t;for(e(hr),lu(),p(f,[gt],[d,vi,yi]),n=0,t=h.length;n<t;n++)st(h[n].element);f.style.overflow=y.style.overflow="auto";f.style.height=y.style.height="auto";l&&v.setStyle(l,"transform","none");r=i;l=i;w=i;tt=i;s=0;ti=1;ct=i;lt=i;at="down";b=-1;ri=0;ui=0;vt=!1;u=i;fi=i;yt=i;k=i;it=i;ei=0;oi=i;a=!1;ft=0;et=i};var tu=function(){var o,p,w,u,h,l,a,v,d,c,b,k;fr(f,[si,hi,ci,li].join(" "),function(n){var y=n.changedTouches[0],tt,nt;for(u=n.target;u.nodeType===3;)u=u.parentNode;h=y.clientY;l=y.clientX;c=n.timeStamp;ni.test(u.tagName)||n.preventDefault();switch(n.type){case si:o&&o.blur();r.stopAnimateTo();o=u;p=a=h;w=l;d=c;break;case hi:ni.test(u.tagName)&&t.activeElement!==u&&n.preventDefault();v=h-a;k=c-b;r.setScrollTop(ft-v,!0);a=h;b=c;break;default:case ci:case li:var ut=p-h,et=w-l,ot=et*et+ut*ut;if(ot<49){ni.test(o.tagName)||(o.focus(),tt=t.createEvent("MouseEvents"),tt.initMouseEvent("click",!0,!0,n.view,1,y.screenX,y.screenY,y.clientX,y.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,0,null),o.dispatchEvent(tt));return}o=i;nt=v/k;nt=e.max(e.min(nt,3),-3);var g=e.abs(nt/lt),it=nt*g+.5*lt*g*g,f=r.getScrollTop()-it,rt=0;f>s?(rt=(s-f)/it,f=s):f<0&&(rt=-f/it,f=0);g=g*(1-rt);r.animateTo(f+.5|0,{easing:"outCubic",duration:g})}});n.scrollTo(0,0);f.style.overflow=y.style.overflow="hidden"},iu=function(){for(var b=f.clientHeight,p=au(),u,y,w,o,t,l,n,c,v,i=0,a=h.length;i<a;i++)for(u=h[i],y=u.element,w=u.anchorTarget,o=u.keyFrames,t=0,l=o.length;t<l;t++)n=o[t],c=n.offset,v=p[n.constant]||0,n.frame=c,n.isPercentage&&(c=c*b,n.frame=c),n.mode==="relative"&&(st(y),n.frame=r.relativeToAbsolute(w,n.anchors[0],n.anchors[1])-c,st(y,!0)),n.frame+=v,tt&&!n.isEnd&&n.frame>s&&(s=n.frame);for(s=e.max(s,vu()),i=0,a=h.length;i<a;i++){for(u=h[i],o=u.keyFrames,t=0,l=o.length;t<l;t++)n=o[t],v=p[n.constant]||0,n.isEnd&&(n.frame=s-n.offset+v);u.keyFrames.sort(yu)}},ru=function(n,t){for(var w=0,nt=h.length,a,f,g,e,b,y;w<nt;w++){var i=h[w],c=i.element,o=i.smoothScrolling?n:t,r=i.keyFrames,tt=r[0].frame,it=r[r.length-1].frame,l=o<tt,k=o>it,d=r[l?0:r.length-1],u,s,ut=i.interpolationRounding;if(l||k){if(l&&i.edge===-1||k&&i.edge===1)continue;p(c,[l?kt:dt],[kt,ai,dt]);i.edge=l?-1:1;switch(i.edgeStrategy){case"reset":st(c);continue;case"ease":o=d.frame;break;default:case"set":a=d.props;for(u in a)wt.call(a,u)&&(s=ur(a[u].value),v.setStyle(c,u,s));continue}}else i.edge!==0&&(p(c,[rt,ai],[kt,dt]),i.edge=0);for(f=0,g=r.length-1;f<g;f++)if(o>=r[f].frame&&o<=r[f+1].frame){e=r[f];b=r[f+1];for(u in e.props)wt.call(e.props,u)&&(y=(o-e.frame)/(b.frame-e.frame),y=e.props[u].easing(y),s=su(e.props[u].value,b.props[u].value,y,ut),s=ur(s),v.setStyle(c,u,s));break}}},uu=function(){var n,e,t,f,h,o,c;vt&&(vt=!1,er());n=r.getScrollTop();t=nt();u?(t>=u.endTime?(n=u.targetTop,e=u.done,u=i):(f=u.easing((t-u.startTime)/u.duration),n=u.startTop+f*u.topDiff|0),r.setScrollTop(n,!0)):it||(h=k.targetTop-n,h&&(k={startTop:b,topDiff:n-b,targetTop:n,startTime:ii,endTime:ii+yt}),t<=k.endTime&&(f=ot.sqrt((t-k.startTime)/yt),n=k.startTop+f*k.topDiff|0));a&&l&&v.setStyle(l,"transform","translate(0, "+-ft+"px) "+et);(it||b!==n)&&(at=n>b?"down":n<b?"up":at,it=!1,o={curTop:n,lastTop:b,maxTop:s,direction:at},c=w.beforerender&&w.beforerender.call(r,o),c!==!1&&(ru(n,r.getScrollTop()),b=n,w.render&&w.render.call(r,o)),e&&e.call(r,!1));ii=t},fu=function(n){for(var u=0,s=n.keyFrames.length,f,t,i,r,e,o;u<s;u++){for(f=n.keyFrames[u],e={};(o=pr.exec(f.props))!==null;)r=o[1],i=o[2],t=r.match(wr),t!==null?(r=t[1],t=t[2]):t=pi,i=i.indexOf("!")?eu(i):[i.slice(1)],e[r]={value:i,easing:ot[t]};f.props=e}},eu=function(n){var t=[];return tr.lastIndex=0,n=n.replace(tr,function(n){return n.replace(gi,function(n){return n/255*100+"%"})}),g&&(ir.lastIndex=0,n=n.replace(ir,function(n){return g+n})),n=n.replace(gi,function(n){return t.push(+n),"{?}"}),t.unshift(n),t},ou=function(n){for(var i={},t=0,r=n.keyFrames.length;t<r;t++)rr(n.keyFrames[t],i);for(i={},t=n.keyFrames.length-1;t>=0;t--)rr(n.keyFrames[t],i)},rr=function(n,t){var i;for(i in t)wt.call(n.props,i)||(n.props[i]=t[i]);for(i in n.props)t[i]=n.props[i]},su=function(n,t,i,r){var u,o=n.length,f;if(o!==t.length)throw"Can't interpolate between \""+n[0]+'" and "'+t[0]+'"';for(f=[n[0]],u=1;u<o;u++)f[u]=r==!0?e.round(n[u]+(t[u]-n[u])*i):n[u]+(t[u]-n[u])*i;return f},ur=function(n){var t=1;return nr.lastIndex=0,n[0].replace(nr,function(){return n[t++]})},st=function(n,t){n=[].concat(n);for(var i,r,u=0,f=n.length;u<f;u++)(r=n[u],i=h[r[ut]],i)&&(t?(r.style.cssText=i.dirtyStyleAttr,p(r,i.dirtyClassAttr)):(i.dirtyStyleAttr=r.style.cssText,i.dirtyClassAttr=or(r),r.style.cssText=i.styleAttr,p(r,i.classAttr)))},hu=function(){et="translateZ(0)";v.setStyle(l,"transform",et);var n=bt(l),t=n.getPropertyValue("transform"),i=n.getPropertyValue(g+"transform"),r=t&&t!=="none"||i&&i!=="none";r||(et="")};v.setStyle=function(n,t,i){var r=n.style;if(t=t.replace(br,kr).replace("-",""),t==="zIndex")r[t]=isNaN(i)?i:""+(i|0);else if(t==="float")r.styleFloat=r.cssFloat=i;else try{o&&(r[o+t.slice(0,1).toUpperCase()+t.slice(1)]=i);r[t]=i}catch(u){}};var fr=v.addEvent=function(t,i,r){var o=function(t){return t=t||n.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1;t.defaultPrevented=!0}),r.call(this,t)},u,f,e;for(i=i.split(" "),f=0,e=i.length;f<e;f++)u=i[f],t.addEventListener?t.addEventListener(u,r,!1):t.attachEvent("on"+u,o),pt.push({element:t,name:u,listener:r})},cu=v.removeEvent=function(n,t,i){t=t.split(" ");for(var r=0,u=t.length;r<u;r++)n.removeEventListener?n.removeEventListener(t[r],i,!1):n.detachEvent("on"+t[r],i)},lu=function(){for(var n,t=0,i=pt.length;t<i;t++)n=pt[t],cu(n.element,n.name,n.listener);pt=[]},er=function(){var n=r.getScrollTop();s=0;tt&&!a&&(y.style.height="auto");iu();tt&&!a&&(y.style.height=s+f.clientHeight+"px");a?r.setScrollTop(e.min(r.getScrollTop(),s)):r.setScrollTop(n,!0);it=!0},au=function(){var u=f.clientHeight,i={},t,n;for(t in ct)n=ct[t],typeof n=="function"?n=n.call(r):/p$/.test(n)&&(n=n.slice(0,-1)/100*u),i[t]=n;return i},vu=function(){var n=l&&l.offsetHeight||0,t=e.max(n,y.scrollHeight,y.offsetHeight,f.scrollHeight,f.offsetHeight,f.clientHeight);return t-f.clientHeight},or=function(t){var i="className";return n.SVGElement&&t instanceof n.SVGElement&&(t=t[i],i="baseVal"),t[i]},p=function(t,r,u){var e="className",o,h;if(n.SVGElement&&t instanceof n.SVGElement&&(t=t[e],e="baseVal"),u===i){t[e]=r;return}for(var f=t[e],s=0,c=u.length;s<c;s++)f=ht(f).replace(ht(u[s])," ");for(f=sr(f),o=0,h=r.length;o<h;o++)ht(f).indexOf(ht(r[o]))===-1&&(f+=" "+r[o]);t[e]=sr(f)},sr=function(n){return n.replace(vr,"")},ht=function(n){return" "+n+" "},nt=Date.now||function(){return+new Date},yu=function(n,t){return n.frame-t.frame},r,h,l,w,tt,s=0,ti=1,ct,lt,at="down",b=-1,ii=nt(),ri=0,ui=0,vt=!1,u,fi,yt,k,it,ei=0,oi,a=!1,ft=0,et,pt=[],hr;typeof define=="function"&&define.amd?define("skrollr",function(){return v}):n.skrollr=v}(window,document);"undefined"!=typeof jQuery&&function(n){"use strict";n.imgpreload=function(t,i){i=n.extend({},n.fn.imgpreload.defaults,i instanceof Function?{all:i}:i);"string"==typeof t&&(t=[t]);var r=[];n.each(t,function(u,f){var o=new Image,s=f,e=o;"string"!=typeof f&&(s=n(f).attr("src")||n(f).css("background-image").replace(/^url\((?:"|')?(.*)(?:'|")?\)$/mg,"$1").replace(/"*$/g,""),e=f);n(o).bind("load error",function(u){r.push(e);n.data(e,"loaded","error"==u.type?!1:!0);i.each instanceof Function&&i.each.call(e,r.slice(0));r.length>=t.length&&i.all instanceof Function&&i.all.call(r);n(this).unbind("load error")});o.src=s})};n.fn.imgpreload=function(t){return n.imgpreload(this,t),this};n.fn.imgpreload.defaults={each:null,all:null}}(jQuery);AmCharts||(AmCharts={themes:{},maps:{},inheriting:{},charts:[],onReadyArray:[],useUTC:!1,updateRate:40,uid:0});AmCharts.Class=function(n){var t=function(){arguments[0]!==AmCharts.inheriting&&(this.events={},this.construct.apply(this,arguments))},i;n.inherits?(t.prototype=new n.inherits(AmCharts.inheriting),t.base=n.inherits.prototype,delete n.inherits):(t.prototype.createEvents=function(){for(var n=0,t=arguments.length;n<t;n++)this.events[arguments[n]]=[]},t.prototype.listenTo=function(n,t,i){this.removeListener(n,t,i);n.events[t].push({handler:i,scope:this})},t.prototype.addListener=function(n,t,i){this.removeListener(this,n,t);this.events[n].push({handler:t,scope:i})},t.prototype.removeListener=function(n,t,i){if(n&&n.events)for(n=n.events[t],t=n.length-1;0<=t;t--)n[t].handler===i&&n.splice(t,1)},t.prototype.fire=function(n,t){for(var r,u=this.events[n],i=0,f=u.length;i<f;i++)r=u[i],r.handler.call(r.scope,t)});for(i in n)t.prototype[i]=n[i];return t};AmCharts.addChart=function(n){AmCharts.charts.push(n)};AmCharts.removeChart=function(n){for(var i=AmCharts.charts,t=i.length-1;0<=t;t--)i[t]==n&&i.splice(t,1)};AmCharts.isModern=!0;AmCharts.getIEVersion=function(){var i=0,n,t;return"Microsoft Internet Explorer"==navigator.appName?(n=navigator.userAgent,t=/MSIE ([0-9]{1,}[.0-9]{0,})/,null!=t.exec(n)&&(i=parseFloat(RegExp.$1))):"Netscape"==navigator.appName&&(n=navigator.userAgent,t=/Trident\/.*rv:([0-9]{1,}[.0-9]{0,})/,null!=t.exec(n)&&(i=parseFloat(RegExp.$1))),i};AmCharts.IEversion=AmCharts.getIEVersion();9>AmCharts.IEversion&&0<AmCharts.IEversion&&(AmCharts.isModern=!1,AmCharts.isIE=!0);AmCharts.dx=0;AmCharts.dy=0;(document.addEventListener||window.opera)&&(AmCharts.isNN=!0,AmCharts.isIE=!1,AmCharts.dx=.5,AmCharts.dy=.5);document.attachEvent&&(AmCharts.isNN=!1,AmCharts.isIE=!0,AmCharts.isModern||(AmCharts.dx=0,AmCharts.dy=0));window.chrome&&(AmCharts.chrome=!0);AmCharts.handleResize=function(){for(var t,i=AmCharts.charts,n=0;n<i.length;n++)t=i[n],t&&t.div&&t.handleResize()};AmCharts.handleMouseUp=function(n){for(var r,i=AmCharts.charts,t=0;t<i.length;t++)r=i[t],r&&r.handleReleaseOutside(n)};AmCharts.handleMouseMove=function(n){for(var r,i=AmCharts.charts,t=0;t<i.length;t++)r=i[t],r&&r.handleMouseMove(n)};AmCharts.resetMouseOver=function(){for(var i,t=AmCharts.charts,n=0;n<t.length;n++)i=t[n],i&&(i.mouseIsOver=!1)};AmCharts.ready=function(n){AmCharts.onReadyArray.push(n)};AmCharts.handleLoad=function(){var t,n,i;for(AmCharts.isReady=!0,t=AmCharts.onReadyArray,n=0;n<t.length;n++)i=t[n],isNaN(AmCharts.processDelay)?i():setTimeout(i,AmCharts.processDelay*n)};AmCharts.getUniqueId=function(){return AmCharts.uid++,"AmChartsEl-"+AmCharts.uid};AmCharts.isNN&&(document.addEventListener("mousemove",AmCharts.handleMouseMove,!0),window.addEventListener("resize",AmCharts.handleResize,!0),document.addEventListener("mouseup",AmCharts.handleMouseUp,!0),window.addEventListener("load",AmCharts.handleLoad,!0));AmCharts.isIE&&(document.attachEvent("onmousemove",AmCharts.handleMouseMove),window.attachEvent("onresize",AmCharts.handleResize),document.attachEvent("onmouseup",AmCharts.handleMouseUp),window.attachEvent("onload",AmCharts.handleLoad));AmCharts.clear=function(){var t=AmCharts.charts,n;if(t)for(n=0;n<t.length;n++)t[n].clear();AmCharts.charts=null;AmCharts.isNN&&(document.removeEventListener("mousemove",AmCharts.handleMouseMove,!0),window.removeEventListener("resize",AmCharts.handleResize,!0),document.removeEventListener("mouseup",AmCharts.handleMouseUp,!0),window.removeEventListener("load",AmCharts.handleLoad,!0));AmCharts.isIE&&(document.detachEvent("onmousemove",AmCharts.handleMouseMove),window.detachEvent("onresize",AmCharts.handleResize),document.detachEvent("onmouseup",AmCharts.handleMouseUp),window.detachEvent("onload",AmCharts.handleLoad))};AmCharts.makeChart=function(n,t,i){var f=t.type,u=t.theme,r;AmCharts.isString(u)&&(u=AmCharts.themes[u],t.theme=u);switch(f){case"serial":r=new AmCharts.AmSerialChart(u);break;case"xy":r=new AmCharts.AmXYChart(u);break;case"pie":r=new AmCharts.AmPieChart(u);break;case"radar":r=new AmCharts.AmRadarChart(u);break;case"gauge":r=new AmCharts.AmAngularGauge(u);break;case"funnel":r=new AmCharts.AmFunnelChart(u);break;case"map":r=new AmCharts.AmMap(u);break;case"stock":r=new AmCharts.AmStockChart(u)}return AmCharts.extend(r,t),AmCharts.isReady?isNaN(i)?r.write(n):setTimeout(function(){AmCharts.realWrite(r,n)},i):AmCharts.ready(function(){isNaN(i)?r.write(n):setTimeout(function(){AmCharts.realWrite(r,n)},i)}),r};AmCharts.realWrite=function(n,t){n.write(t)};AmCharts.toBoolean=function(n,t){if(void 0===n)return t;switch(String(n).toLowerCase()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case null:return!1;default:return Boolean(n)}};AmCharts.removeFromArray=function(n,t){for(var i=n.length-1;0<=i;i--)n[i]==t&&n.splice(i,1)};AmCharts.getDecimals=function(n){var t=0;return isNaN(n)||(n=String(n),-1!=n.indexOf("e-")?t=Number(n.split("-")[1]):-1!=n.indexOf(".")&&(t=n.split(".")[1].length)),t};AmCharts.wrappedText=function(n,t,i,r,u,f,e,o,s){var c=AmCharts.text(n,t,i,r,u,f,e),a="\n",v,h,y;if(AmCharts.isModern||(a="<br>"),10<s)return c;if(c){if(v=c.getBBox(),v.width>o){for(c.remove(),c=[],h=0;-1<(index=t.indexOf(" ",h));)c.push(index),h=index+1;for(var w=Math.round(t.length/2),p=1e3,l,h=0;h<c.length;h++)y=Math.abs(c[h]-w),y<p&&(l=c[h],p=y);if(isNaN(l)){for(o=Math.ceil(v.width/o),h=1;h<o;h++)l=Math.round(t.length/o*h),t=t.substr(0,l)+a+t.substr(l);return AmCharts.text(n,t,i,r,u,f,e)}return t=t.substr(0,l)+a+t.substr(l+1),AmCharts.wrappedText(n,t,i,r,u,f,e,o,s+1)}return c}};AmCharts.getStyle=function(n,t){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(n,"").getPropertyValue(t):n.currentStyle&&(t=t.replace(/\-(\w)/g,function(n,t){return t.toUpperCase()}),i=n.currentStyle[t]),i};AmCharts.removePx=function(n){if(void 0!=n)return Number(n.substring(0,n.length-2))};AmCharts.getURL=function(n,t){if(n)if("_self"!=t&&t)if("_top"==t&&window.top)window.top.location.href=n;else if("_parent"==t&&window.parent)window.parent.location.href=n;else{var i=document.getElementsByName(t)[0];i?i.src=n:window.open(n)}else window.location.href=n};AmCharts.ifArray=function(n){return n&&0<n.length?!0:!1};AmCharts.callMethod=function(n,t){for(var i,e,u,f,r=0;r<t.length;r++)if(i=t[r],i&&(i[n]&&i[n](),e=i.length,0<e))for(u=0;u<e;u++)f=i[u],f&&f[n]&&f[n]()};AmCharts.toNumber=function(n){return"number"==typeof n?n:Number(String(n).replace(/[^0-9\-.]+/g,""))};AmCharts.toColor=function(n){var t,i;if(""!==n&&void 0!==n)if(-1!=n.indexOf(","))for(n=n.split(","),t=0;t<n.length;t++)i=n[t].substring(n[t].length-6,n[t].length),n[t]="#"+i;else n=n.substring(n.length-6,n.length),n="#"+n;return n};AmCharts.toCoordinate=function(n,t,i){var r;return void 0!==n&&(n=String(n),i&&i<t&&(t=i),r=Number(n),-1!=n.indexOf("!")&&(r=t-Number(n.substr(1))),-1!=n.indexOf("%")&&(r=t*Number(n.substr(0,n.length-1))/100)),r};AmCharts.fitToBounds=function(n,t,i){return n<t&&(n=t),n>i&&(n=i),n};AmCharts.isDefined=function(n){return void 0===n?!1:!0};AmCharts.stripNumbers=function(n){return n.replace(/[0-9]+/g,"")};AmCharts.roundTo=function(n,t){if(0>t)return n;var i=Math.pow(10,t);return Math.round(n*i)/i};AmCharts.toFixed=function(n,t){var i=String(Math.round(n*Math.pow(10,t))),r,u;if(0<t){if(r=i.length,r<t)for(u=0;u<t-r;u++)i="0"+i;return r=i.substring(0,i.length-t),""===r&&(r=0),r+"."+i.substring(i.length-t,i.length)}return String(i)};AmCharts.formatDuration=function(n,t,i,r,u,f){var e=AmCharts.intervals,s=f.decimalSeparator,o;if(n>=e[t].contains)return o=n-Math.floor(n/e[t].contains)*e[t].contains,"ss"==t&&(o=AmCharts.formatNumber(o,f),1==o.split(s)[0].length&&(o="0"+o)),("mm"==t||"hh"==t)&&10>o&&(o="0"+o),i=o+""+r[t]+""+i,n=Math.floor(n/e[t].contains),t=e[t].nextInterval,AmCharts.formatDuration(n,t,i,r,u,f);if("ss"==t&&(n=AmCharts.formatNumber(n,f),1==n.split(s)[0].length&&(n="0"+n)),("mm"==t||"hh"==t)&&10>n&&(n="0"+n),i=n+""+r[t]+""+i,e[u].count>e[t].count)for(n=e[t].count;n<e[u].count;n++)t=e[t].nextInterval,"ss"==t||"mm"==t||"hh"==t?i="00"+r[t]+""+i:"DD"==t&&(i="0"+r[t]+""+i);return":"==i.charAt(i.length-1)&&(i=i.substring(0,i.length-1)),i};AmCharts.formatNumber=function(n,t,i,r,u){var h,c,f,s,e,o;if(n=AmCharts.roundTo(n,t.precision),isNaN(i)&&(i=t.precision),h=t.decimalSeparator,t=t.thousandsSeparator,c=0>n?"-":"",n=Math.abs(n),s=String(n),e=!1,-1!=s.indexOf("e")&&(e=!0),0<=i&&!e&&(s=AmCharts.toFixed(n,i)),f="",e)f=s;else{for(s=s.split("."),e=String(s[0]),o=e.length;0<=o;o-=3)f=o!=e.length?0!==o?e.substring(o-3,o)+t+f:e.substring(o-3,o)+f:e.substring(o-3,o);void 0!==s[1]&&(f=f+h+s[1]);void 0!==i&&0<i&&"0"!=f&&(f=AmCharts.addZeroes(f,h,i))}return f=c+f,""===c&&!0===r&&0!==n&&(f="+"+f),!0===u&&(f+="%"),f};AmCharts.addZeroes=function(n,t,i){return n=n.split(t),void 0===n[1]&&0<i&&(n[1]="0"),n[1].length<i?(n[1]+="0",AmCharts.addZeroes(n[0]+t+n[1],t,i)):void 0!==n[1]?n[0]+t+n[1]:n[0]};AmCharts.scientificToNormal=function(n){var t,i,r;if(n=String(n).split("e"),"-"==n[1].substr(0,1)){for(t="0.",i=0;i<Math.abs(Number(n[1]))-1;i++)t+="0";t+=n[0].split(".").join("")}else for(r=0,t=n[0].split("."),t[1]&&(r=t[1].length),t=n[0].split(".").join(""),i=0;i<Math.abs(Number(n[1]))-r;i++)t+="0";return t};AmCharts.toScientific=function(n,t){if(0===n)return"0";var i=Math.floor(Math.log(Math.abs(n))*Math.LOG10E);return Math.pow(10,i),mantissa=String(mantissa).split(".").join(t),String(mantissa)+"e"+i};AmCharts.randomColor=function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).substr(-6)};AmCharts.hitTest=function(n,t,i){var r=!1,f=n.x,e=n.x+n.width,o=n.y,s=n.y+n.height,u=AmCharts.isInRectangle;return r||(r=u(f,o,t)),r||(r=u(f,s,t)),r||(r=u(e,o,t)),r||(r=u(e,s,t)),r||!0===i||(r=AmCharts.hitTest(t,n,!0)),r};AmCharts.isInRectangle=function(n,t,i){return n>=i.x-5&&n<=i.x+i.width+5&&t>=i.y-5&&t<=i.y+i.height+5?!0:!1};AmCharts.isPercents=function(n){if(-1!=String(n).indexOf("%"))return!0};AmCharts.findPosX=function(n){var t=n,i=n.offsetLeft;if(n.offsetParent){for(;n=n.offsetParent;)i+=n.offsetLeft;for(;(t=t.parentNode)&&t!=document.body;)i-=t.scrollLeft||0}return i};AmCharts.findPosY=function(n){var t=n,i=n.offsetTop;if(n.offsetParent){for(;n=n.offsetParent;)i+=n.offsetTop;for(;(t=t.parentNode)&&t!=document.body;)i-=t.scrollTop||0}return i};AmCharts.findIfFixed=function(n){if(n.offsetParent)for(;n=n.offsetParent;)if("fixed"==AmCharts.getStyle(n,"position"))return!0;return!1};AmCharts.findIfAuto=function(n){return n.style&&"auto"==AmCharts.getStyle(n,"overflow")?!0:n.parentNode?AmCharts.findIfAuto(n.parentNode):!1};AmCharts.findScrollLeft=function(n,t){return n.scrollLeft&&(t+=n.scrollLeft),n.parentNode?AmCharts.findScrollLeft(n.parentNode,t):t};AmCharts.findScrollTop=function(n,t){return n.scrollTop&&(t+=n.scrollTop),n.parentNode?AmCharts.findScrollTop(n.parentNode,t):t};AmCharts.formatValue=function(n,t,i,r,u,f,e,o){var h,c,s;if(t)for(void 0===u&&(u=""),h=0;h<i.length;h++)c=i[h],s=t[c],void 0!==s&&(s=f?AmCharts.addPrefix(s,o,e,r):AmCharts.formatNumber(s,r),n=n.replace(RegExp("\\[\\["+u+""+c+"\\]\\]","g"),s));return n};AmCharts.formatDataContextValue=function(n,t){var u,r,i;if(n)for(u=n.match(/\[\[.*?\]\]/g),r=0;r<u.length;r++)i=u[r],i=i.substr(2,i.length-4),void 0!==t[i]&&(n=n.replace(RegExp("\\[\\["+i+"\\]\\]","g"),t[i]));return n};AmCharts.massReplace=function(n,t){var i,r;for(i in t)t.hasOwnProperty(i)&&(r=t[i],void 0===r&&(r=""),n=n.replace(i,r));return n};AmCharts.cleanFromEmpty=function(n){return n.replace(/\[\[[^\]]*\]\]/g,"")};AmCharts.addPrefix=function(n,t,i,r,u){var s=AmCharts.formatNumber(n,r),h="",f,e,o;if(0===n)return"0";if(0>n&&(h="-"),n=Math.abs(n),1<n){for(f=t.length-1;-1<f;f--)if(n>=t[f].number&&(e=n/t[f].number,o=Number(r.precision),1>o&&(o=1),i=AmCharts.roundTo(e,o),o=AmCharts.formatNumber(i,{precision:-1,decimalSeparator:r.decimalSeparator,thousandsSeparator:r.thousandsSeparator}),!u||e==i)){s=h+""+o+""+t[f].prefix;break}}else for(f=0;f<i.length;f++)if(n<=i[f].number){e=n/i[f].number;o=Math.abs(Math.round(Math.log(e)*Math.LOG10E));e=AmCharts.roundTo(e,o);s=h+""+e+""+i[f].prefix;break}return s};AmCharts.remove=function(n){n&&n.remove()};AmCharts.recommended=function(){var n="js";return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")||swfobject&&swfobject.hasFlashPlayerVersion("8")&&(n="flash"),n};AmCharts.getEffect=function(n){return">"==n&&(n="easeOutSine"),"<"==n&&(n="easeInSine"),"elastic"==n&&(n="easeOutElastic"),n};AmCharts.getObjById=function(n,t){for(var u,r,i=0;i<n.length;i++)r=n[i],r.id==t&&(u=r);return u};AmCharts.applyTheme=function(n,t,i){t||(t=AmCharts.theme);t&&t[i]&&AmCharts.extend(n,t[i])};AmCharts.isString=function(n){return"string"==typeof n?!0:!1};AmCharts.extend=function(n,t,i){for(var r in t)i?n.hasOwnProperty(r)||(n[r]=t[r]):n[r]=t[r];return n};AmCharts.copyProperties=function(n,t){for(var i in n)n.hasOwnProperty(i)&&"events"!=i&&void 0!==n[i]&&"function"!=typeof n[i]&&"cname"!=i&&(t[i]=n[i])};AmCharts.processObject=function(n,t,i){return!1==n instanceof t&&(n=AmCharts.extend(new t(i),n)),n};AmCharts.fixNewLines=function(n){var t=RegExp("\\n","g");return n&&(n=n.replace(t,"<br />")),n};AmCharts.fixBrakes=function(n){if(AmCharts.isModern){var t=RegExp("<br>","g");n&&(n=n.replace(t,"\n"))}else n=AmCharts.fixNewLines(n);return n};AmCharts.deleteObject=function(n,t){if(n&&((void 0===t||null===t)&&(t=20),0!==t))if("[object Array]"===Object.prototype.toString.call(n))for(var i=0;i<n.length;i++)AmCharts.deleteObject(n[i],t-1),n[i]=null;else if(n&&!n.tagName)try{for(i in n)n[i]&&("object"==typeof n[i]&&AmCharts.deleteObject(n[i],t-1),"function"!=typeof n[i]&&(n[i]=null))}catch(r){}};AmCharts.bounce=function(n,t,i,r,u){return(t/=u)<1/2.75?7.5625*r*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i};AmCharts.easeInSine=function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i};AmCharts.easeOutSine=function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i};AmCharts.easeOutElastic=function(n,t,i,r,u){n=1.70158;var f=0,e=r;return 0===t?i:1==(t/=u)?i+r:(f||(f=.3*u),e<Math.abs(r)?(e=r,n=f/4):n=f/(2*Math.PI)*Math.asin(r/e),e*Math.pow(2,-10*t)*Math.sin(2*(t*u-n)*Math.PI/f)+r+i)};AmCharts.AmDraw=AmCharts.Class({construct:function(n,t,i,r){if(AmCharts.SVG_NS="http://www.w3.org/2000/svg",AmCharts.SVG_XLINK="http://www.w3.org/1999/xlink",AmCharts.hasSVG=!!document.createElementNS&&!!document.createElementNS(AmCharts.SVG_NS,"svg").createSVGRect,1>t&&(t=10),1>i&&(i=10),this.div=n,this.width=t,this.height=i,this.rBin=document.createElement("div"),AmCharts.hasSVG){AmCharts.SVG=!0;var u=this.createSvgElement("svg");u.style.position="absolute";u.style.width=t+"px";u.style.height=i+"px";t=this.createSvgElement("desc");t.appendChild(document.createTextNode("JavaScript chart by amCharts "+r.version));u.appendChild(t);AmCharts.rtl&&(u.setAttribute("direction","rtl"),u.style.left="auto",u.style.right="0px");u.setAttribute("version","1.1");n.appendChild(u);this.container=u;this.R=new AmCharts.SVGRenderer(this)}else AmCharts.isIE&&AmCharts.VMLRenderer&&(AmCharts.VML=!0,AmCharts.vmlStyleSheet||(document.namespaces.add("amvml","urn:schemas-microsoft-com:vml"),31>document.styleSheets.length?(u=document.createStyleSheet(),u.addRule(".amvml","behavior:url(#default#VML); display:inline-block; antialias:true"),AmCharts.vmlStyleSheet=u):document.styleSheets[0].addRule(".amvml","behavior:url(#default#VML); display:inline-block; antialias:true")),this.container=n,this.R=new AmCharts.VMLRenderer(this,r),this.R.disableSelection(n))},createSvgElement:function(n){return document.createElementNS(AmCharts.SVG_NS,n)},circle:function(n,t,i,r){var u=new AmCharts.AmDObject("circle",this);return u.attr({r:i,cx:n,cy:t}),this.addToContainer(u.node,r),u},setSize:function(n,t){0<n&&0<t&&(this.container.style.width=n+"px",this.container.style.height=t+"px")},rect:function(n,t,i,r,u,f,e){var o=new AmCharts.AmDObject("rect",this);return AmCharts.VML&&(u=100*u/Math.min(i,r),i+=2*f,r+=2*f,o.bw=f,o.node.style.marginLeft=-f,o.node.style.marginTop=-f),1>i&&(i=1),1>r&&(r=1),o.attr({x:n,y:t,width:i,height:r,rx:u,ry:u,"stroke-width":f}),this.addToContainer(o.node,e),o},image:function(n,t,i,r,u,f){var e=new AmCharts.AmDObject("image",this);return e.attr({x:t,y:i,width:r,height:u}),this.R.path(e,n),this.addToContainer(e.node,f),e},addToContainer:function(n,t){t||(t=this.container);t.appendChild(n)},text:function(n,t,i){return this.R.text(n,t,i)},path:function(n,t,i,r){var u=new AmCharts.AmDObject("path",this);return r||(r="100,100"),u.attr({cs:r}),i?u.attr({dd:n}):u.attr({d:n}),this.addToContainer(u.node,t),u},set:function(n){return this.R.set(n)},remove:function(n){if(n){var t=this.rBin;t.appendChild(n);t.innerHTML=""}},renderFix:function(){var n=this.container,i=n.style,t;try{t=n.getScreenCTM()||n.createSVGMatrix()}catch(r){t=n.createSVGMatrix()}n=1-t.e%1;t=1-t.f%1;.5<n&&(n-=1);.5<t&&(t-=1);n&&(i.left=n+"px");t&&(i.top=t+"px")},update:function(){this.R.update()}});AmCharts.AmDObject=AmCharts.Class({construct:function(n,t){this.D=t;this.R=t.R;this.node=this.R.create(this,n);this.y=this.x=0;this.scale=1},attr:function(n){return this.R.attr(this,n),this},getAttr:function(n){return this.node.getAttribute(n)},setAttr:function(n,t){return this.R.setAttr(this,n,t),this},clipRect:function(n,t,i,r){this.R.clipRect(this,n,t,i,r)},translate:function(n,t,i,r){r||(n=Math.round(n),t=Math.round(t));this.R.move(this,n,t,i);this.x=n;this.y=t;this.scale=i;this.angle&&this.rotate(this.angle)},rotate:function(n,t){this.R.rotate(this,n,t);this.angle=n},animate:function(n,t,i){var r,u,f;for(r in n)n.hasOwnProperty(r)&&(u=r,f=n[r],i=AmCharts.getEffect(i),this.R.animate(this,u,f,t,i))},push:function(n){var t,i;n&&(t=this.node,t.appendChild(n.node),i=n.clipPath,i&&t.appendChild(i),(n=n.grad)&&t.appendChild(n))},text:function(n){this.R.setText(this,n)},remove:function(){this.R.remove(this)},clear:function(){var n=this.node;if(n.hasChildNodes())for(;1<=n.childNodes.length;)n.removeChild(n.firstChild)},hide:function(){this.setAttr("visibility","hidden")},show:function(){this.setAttr("visibility","visible")},getBBox:function(){return this.R.getBBox(this)},toFront:function(){var n=this.node,t;n&&(this.prevNextNode=n.nextSibling,t=n.parentNode,t&&t.appendChild(n))},toPrevious:function(){var n=this.node;n&&this.prevNextNode&&(n=n.parentNode)&&n.insertBefore(this.prevNextNode,null)},toBack:function(){var n=this.node,t,i;n&&(this.prevNextNode=n.nextSibling,t=n.parentNode,t&&(i=t.firstChild,i&&t.insertBefore(n,i)))},mouseover:function(n){return this.R.addListener(this,"mouseover",n),this},mouseout:function(n){return this.R.addListener(this,"mouseout",n),this},click:function(n){return this.R.addListener(this,"click",n),this},dblclick:function(n){return this.R.addListener(this,"dblclick",n),this},mousedown:function(n){return this.R.addListener(this,"mousedown",n),this},mouseup:function(n){return this.R.addListener(this,"mouseup",n),this},touchstart:function(n){return this.R.addListener(this,"touchstart",n),this},touchend:function(n){return this.R.addListener(this,"touchend",n),this},contextmenu:function(n){return this.node.addEventListener?this.node.addEventListener("contextmenu",n,!0):this.R.addListener(this,"contextmenu",n),this},stop:function(n){(n=this.animationX)&&AmCharts.removeFromArray(this.R.animations,n);(n=this.animationY)&&AmCharts.removeFromArray(this.R.animations,n)},length:function(){return this.node.childNodes.length},gradient:function(n,t,i){this.R.gradient(this,n,t,i)},pattern:function(n,t){n&&this.R.pattern(this,n,t)}});AmCharts.SVGRenderer=AmCharts.Class({construct:function(n){this.D=n;this.animations=[]},create:function(n,t){return document.createElementNS(AmCharts.SVG_NS,t)},attr:function(n,t){for(var i in t)t.hasOwnProperty(i)&&this.setAttr(n,i,t[i])},setAttr:function(n,t,i){void 0!==i&&n.node.setAttribute(t,i)},animate:function(n,t,i,r,u){var f=n.node;n["an_"+t]&&AmCharts.removeFromArray(this.animations,n["an_"+t]);"translate"==t?(f=(f=f.getAttribute("transform"))?String(f).substring(10,f.length-1):"0,0",f=f.split(", ").join(" "),f=f.split(" ").join(","),0===f&&(f="0,0")):f=Number(f.getAttribute(t));i={obj:n,frame:0,attribute:t,from:f,to:i,time:r,effect:u};this.animations.push(i);n["an_"+t]=i},update:function(){for(var h=this.animations,f=h.length-1;0<=f;f--){var n=h[f],e=1e3*n.time/AmCharts.updateRate,o=n.frame+1,s=n.obj,u=n.attribute,i,t,r;o<=e?(n.frame++,"translate"==u?(i=n.from.split(","),u=Number(i[0]),i=Number(i[1]),isNaN(i)&&(i=0),t=n.to.split(","),r=Number(t[0]),t=Number(t[1]),r=0==r-u?r:Math.round(AmCharts[n.effect](0,o,u,r-u,e)),n=0==t-i?t:Math.round(AmCharts[n.effect](0,o,i,t-i,e)),u="transform",n="translate("+r+","+n+")"):(t=Number(n.from),i=Number(n.to),r=i-t,n=AmCharts[n.effect](0,o,t,r,e),isNaN(n)&&(n=i),0===r&&this.animations.splice(f,1)),this.setAttr(s,u,n)):("translate"==u?(t=n.to.split(","),r=Number(t[0]),t=Number(t[1]),s.translate(r,t)):(i=Number(n.to),this.setAttr(s,u,i)),this.animations.splice(f,1))}},getBBox:function(n){if(n=n.node)try{return n.getBBox()}catch(t){}return{width:0,height:0,x:0,y:0}},path:function(n,t){n.node.setAttributeNS(AmCharts.SVG_XLINK,"xlink:href",t)},clipRect:function(n,t,i,r,u){var f=n.node,e=n.clipPath,o;e&&this.D.remove(e);o=f.parentNode;o&&(f=document.createElementNS(AmCharts.SVG_NS,"clipPath"),e=AmCharts.getUniqueId(),f.setAttribute("id",e),this.D.rect(t,i,r,u,0,0,f),o.appendChild(f),t="#",AmCharts.baseHref&&!AmCharts.isIE&&(t=window.location.href+t),this.setAttr(n,"clip-path","url("+t+e+")"),this.clipPathC++,n.clipPath=f)},text:function(n,t,i){var r=new AmCharts.AmDObject("text",this.D),e,u,f;for(n=String(n).split("\n"),e=t["font-size"],u=0;u<n.length;u++)f=this.create(null,"tspan"),f.appendChild(document.createTextNode(n[u])),f.setAttribute("y",(e+2)*u+Math.round(e/2)),f.setAttribute("x",0),r.node.appendChild(f);return r.node.setAttribute("y",Math.round(e/2)),this.attr(r,t),this.D.addToContainer(r.node,i),r},setText:function(n,t){var i=n.node;i&&(i.removeChild(i.firstChild),i.appendChild(document.createTextNode(t)))},move:function(n,t,i,r){t="translate("+t+","+i+")";r&&(t=t+" scale("+r+")");this.setAttr(n,"transform",t)},rotate:function(n,t){var r=n.node.getAttribute("transform"),i="rotate("+t+")";r&&(i=r+" "+i);this.setAttr(n,"transform",i)},set:function(n){var i=new AmCharts.AmDObject("g",this.D),t;if(this.D.container.appendChild(i.node),n)for(t=0;t<n.length;t++)i.push(n[t]);return i},addListener:function(n,t,i){n.node["on"+t]=i},gradient:function(n,t,i,r){var o=n.node,f=n.grad;if(f&&this.D.remove(f),t=document.createElementNS(AmCharts.SVG_NS,t),f=AmCharts.getUniqueId(),t.setAttribute("id",f),!isNaN(r)){var u=0,e=0,s=0,h=0;90==r?s=100:270==r?h=100:180==r?u=100:0===r&&(e=100);t.setAttribute("x1",u+"%");t.setAttribute("x2",e+"%");t.setAttribute("y1",s+"%");t.setAttribute("y2",h+"%")}for(r=0;r<i.length;r++)u=document.createElementNS(AmCharts.SVG_NS,"stop"),e=100*r/(i.length-1),0===r&&(e=0),u.setAttribute("offset",e+"%"),u.setAttribute("stop-color",i[r]),t.appendChild(u);o.parentNode.appendChild(t);i="#";AmCharts.baseHref&&!AmCharts.isIE&&(i=window.location.href+i);o.setAttribute("fill","url("+i+f+")");n.grad=t},pattern:function(n,t,i){var s=n.node,r,e,o,u;isNaN(i)&&(i=1);r=n.patternNode;r&&this.D.remove(r);var r=document.createElementNS(AmCharts.SVG_NS,"pattern"),h=AmCharts.getUniqueId(),f=t;t.url&&(f=t.url);e=Number(t.width);isNaN(e)&&(e=4);o=Number(t.height);isNaN(o)&&(o=4);e/=i;o/=i;i=t.x;isNaN(i)&&(i=0);u=-Math.random()*Number(t.randomX);isNaN(u)||(i=u);u=t.y;isNaN(u)&&(u=0);t=-Math.random()*Number(t.randomY);isNaN(t)||(u=t);r.setAttribute("id",h);r.setAttribute("width",e);r.setAttribute("height",o);r.setAttribute("patternUnits","userSpaceOnUse");r.setAttribute("xlink:href",f);this.D.image(f,0,0,e,o,r).translate(i,u);f="#";AmCharts.baseHref&&!AmCharts.isIE&&(f=window.location.href+f);s.setAttribute("fill","url("+f+h+")");n.patternNode=r;s.parentNode.appendChild(r)},remove:function(n){n.clipPath&&this.D.remove(n.clipPath);n.grad&&this.D.remove(n.grad);n.patternNode&&this.D.remove(n.patternNode);this.D.remove(n.node)}});AmCharts.AmChart=AmCharts.Class({construct:function(n){this.theme=n;this.version="3.4.10";AmCharts.addChart(this);this.createEvents("dataUpdated","init","rendered","drawn");this.height=this.width="100%";this.dataChanged=!0;this.chartCreated=!1;this.previousWidth=this.previousHeight=0;this.backgroundColor="#FFFFFF";this.borderAlpha=this.backgroundAlpha=0;this.color=this.borderColor="#000000";this.fontFamily="Verdana";this.fontSize=11;this.usePrefixes=!1;this.precision=-1;this.percentPrecision=2;this.decimalSeparator=".";this.thousandsSeparator=",";this.labels=[];this.allLabels=[];this.titles=[];this.marginRight=this.marginLeft=this.autoMarginOffset=0;this.timeOuts=[];this.creditsPosition="top-left";var i=document.createElement("div"),t=i.style;t.overflow="hidden";t.position="relative";t.textAlign="left";this.chartDiv=i;i=document.createElement("div");t=i.style;t.overflow="hidden";t.position="relative";t.textAlign="left";this.legendDiv=i;this.titleHeight=0;this.hideBalloonTime=150;this.handDrawScatter=2;this.handDrawThickness=1;this.prefixesOfBigNumbers=[{number:1e3,prefix:"k"},{number:1e6,prefix:"M"},{number:1e9,prefix:"G"},{number:1e12,prefix:"T"},{number:1e15,prefix:"P"},{number:1e18,prefix:"E"},{number:1e21,prefix:"Z"},{number:1e24,prefix:"Y"}];this.prefixesOfSmallNumbers=[{number:1e-24,prefix:"y"},{number:1e-21,prefix:"z"},{number:1e-18,prefix:"a"},{number:1e-15,prefix:"f"},{number:1e-12,prefix:"p"},{number:1e-9,prefix:"n"},{number:1e-6,prefix:"μ"},{number:.001,prefix:"m"}];this.panEventsEnabled=!0;AmCharts.bezierX=3;AmCharts.bezierY=6;this.product="amcharts";this.animations=[];this.balloon=new AmCharts.AmBalloon(this.theme);this.balloon.chart=this;AmCharts.applyTheme(this,n,"AmChart")},drawChart:function(){this.drawBackground();this.redrawLabels();this.drawTitles();this.brr()},drawBackground:function(){var t,i;AmCharts.remove(this.background);var r=this.container,n=this.backgroundColor,u=this.backgroundAlpha,f=this.set;AmCharts.isModern||0!==u||(u=.001);t=this.updateWidth();this.realWidth=t;i=this.updateHeight();this.realHeight=i;this.background=n=AmCharts.polygon(r,[0,t-1,t-1,0],[0,0,i-1,i-1],n,u,1,this.borderColor,this.borderAlpha);f.push(n);(n=this.backgroundImage)&&(this.path&&(n=this.path+n),this.bgImg=r=r.image(n,0,0,t,i),f.push(r))},drawTitles:function(){var f=this.titles,e,u,t,r,i,n;if(AmCharts.ifArray(f))for(e=20,u=0;u<f.length;u++)t=f[u],n=t.color,void 0===n&&(n=this.color),r=t.size,isNaN(r)&&(r=this.fontSize+2),isNaN(t.alpha),i=this.marginLeft,n=AmCharts.text(this.container,t.text,n,this.fontFamily,r),n.translate(i+(this.realWidth-this.marginRight-i)/2,e),i=!0,void 0!==t.bold&&(i=t.bold),i&&n.attr({"font-weight":"bold"}),n.attr({opacity:t.alpha}),e+=r+6,this.freeLabelsSet.push(n)},write:function(n){var u,t,s;n="object"!=typeof n?document.getElementById(n):n;n.innerHTML="";this.div=n;n.style.overflow="hidden";n.style.textAlign="left";var r=this.chartDiv,e=this.legendDiv,i=this.legend,f=e.style,o=r.style;if(this.measure(),t=document.createElement("div"),u=t.style,u.position="relative",this.containerDiv=t,n.appendChild(t),s=this.exportConfig,s&&AmCharts.AmExport&&!this.AmExport&&(this.AmExport=new AmCharts.AmExport(this,s)),this.amExport&&(this.AmExport=AmCharts.extend(this.amExport,new AmCharts.AmExport(this),!0)),this.AmExport&&this.AmExport.init(),i)switch(i=this.addLegend(i,i.divId),i.position){case"bottom":t.appendChild(r);t.appendChild(e);break;case"top":t.appendChild(e);t.appendChild(r);break;case"absolute":u.width=n.style.width;u.height=n.style.height;f.position="absolute";o.position="absolute";void 0!==i.left&&(f.left=i.left+"px");void 0!==i.right&&(f.right=i.right+"px");void 0!==i.top&&(f.top=i.top+"px");void 0!==i.bottom&&(f.bottom=i.bottom+"px");i.marginLeft=0;i.marginRight=0;t.appendChild(r);t.appendChild(e);break;case"right":u.width=n.style.width;u.height=n.style.height;f.position="relative";o.position="absolute";t.appendChild(r);t.appendChild(e);break;case"left":u.width=n.style.width;u.height=n.style.height;f.position="absolute";o.position="relative";t.appendChild(r);t.appendChild(e);break;case"outside":t.appendChild(r)}else t.appendChild(r);this.listenersAdded||(this.addListeners(),this.listenersAdded=!0);this.initChart()},createLabelsSet:function(){AmCharts.remove(this.labelsSet);this.labelsSet=this.container.set();this.freeLabelsSet.push(this.labelsSet)},initChart:function(){var n=this.numberFormatter,t;n&&(isNaN(n.precision)||(this.precision=n.precision),void 0!==n.thousandsSeparator&&(this.thousandsSeparator=n.thousandsSeparator),void 0!==n.decimalSeparator&&(this.decimalSeparator=n.decimalSeparator));(n=this.percentFormatter)&&!isNaN(n.precision)&&(this.percentPrecision=n.precision);this.nf={precision:this.precision,thousandsSeparator:this.thousandsSeparator,decimalSeparator:this.decimalSeparator};this.pf={precision:this.percentPrecision,thousandsSeparator:this.thousandsSeparator,decimalSeparator:this.decimalSeparator};this.divIsFixed=AmCharts.findIfFixed(this.chartDiv);this.previousHeight=this.divRealHeight;this.previousWidth=this.divRealWidth;this.destroy();this.startInterval();n=0;document.attachEvent&&!window.opera&&(n=1);this.dmouseX=this.dmouseY=0;t=document.getElementsByTagName("html")[0];t&&window.getComputedStyle&&(t=window.getComputedStyle(t,null))&&(this.dmouseY=AmCharts.removePx(t.getPropertyValue("margin-top")),this.dmouseX=AmCharts.removePx(t.getPropertyValue("margin-left")));this.mouseMode=n;n=new AmCharts.AmDraw(this.chartDiv,this.realWidth,this.realHeight,this);n.handDrawn=this.handDrawn;n.handDrawScatter=this.handDrawScatter;n.handDrawThickness=this.handDrawThickness;this.container=n;(AmCharts.VML||AmCharts.SVG)&&(n=this.container,this.set=n.set(),this.gridSet=n.set(),this.cursorLineSet=n.set(),this.graphsBehindSet=n.set(),this.bulletBehindSet=n.set(),this.columnSet=n.set(),this.graphsSet=n.set(),this.trendLinesSet=n.set(),this.axesLabelsSet=n.set(),this.axesSet=n.set(),this.cursorSet=n.set(),this.scrollbarsSet=n.set(),this.bulletSet=n.set(),this.freeLabelsSet=n.set(),this.balloonsSet=n.set(),this.balloonsSet.setAttr("id","balloons"),this.zoomButtonSet=n.set(),this.linkSet=n.set(),this.renderFix())},measure:function(){var n=this.div;if(n){var u=this.chartDiv,i=n.offsetWidth,r=n.offsetHeight,f=this.container;n.clientHeight&&(i=n.clientWidth,r=n.clientHeight);var t=AmCharts.removePx(AmCharts.getStyle(n,"padding-left")),e=AmCharts.removePx(AmCharts.getStyle(n,"padding-right")),o=AmCharts.removePx(AmCharts.getStyle(n,"padding-top")),s=AmCharts.removePx(AmCharts.getStyle(n,"padding-bottom"));isNaN(t)||(i-=t);isNaN(e)||(i-=e);isNaN(o)||(r-=o);isNaN(s)||(r-=s);t=n.style;n=t.width;t=t.height;-1!=n.indexOf("px")&&(i=AmCharts.removePx(n));-1!=t.indexOf("px")&&(r=AmCharts.removePx(t));n=AmCharts.toCoordinate(this.width,i);t=AmCharts.toCoordinate(this.height,r);this.balloon=AmCharts.processObject(this.balloon,AmCharts.AmBalloon,this.theme);this.balloon.chart=this;(n!=this.previousWidth||t!=this.previousHeight)&&(u.style.width=n+"px",u.style.height=t+"px",f&&f.setSize(n,t));this.balloon.setBounds(2,2,n-2,t);this.realWidth=n;this.realHeight=t;this.divRealWidth=i;this.divRealHeight=r}},destroy:function(){this.chartDiv.innerHTML="";this.clearTimeOuts();this.interval&&clearInterval(this.interval);this.interval=NaN},clearTimeOuts:function(){var t=this.timeOuts,n;if(t)for(n=0;n<t.length;n++)clearTimeout(t[n]);this.timeOuts=[]},clear:function(n){AmCharts.callMethod("clear",[this.chartScrollbar,this.scrollbarV,this.scrollbarH,this.chartCursor]);this.chartCursor=this.scrollbarH=this.scrollbarV=this.chartScrollbar=null;this.clearTimeOuts();this.interval&&clearInterval(this.interval);this.container&&(this.container.remove(this.chartDiv),this.container.remove(this.legendDiv));n||AmCharts.removeChart(this)},setMouseCursor:function(n){"auto"==n&&AmCharts.isNN&&(n="default");this.chartDiv.style.cursor=n;this.legendDiv.style.cursor=n},redrawLabels:function(){var t,n;for(this.labels=[],t=this.allLabels,this.createLabelsSet(),n=0;n<t.length;n++)this.drawLabel(t[n])},drawLabel:function(n){if(this.container){var t=n.y,r=n.text,i=n.align,e=n.size,o=n.color,u=n.rotation,s=n.alpha,h=n.bold,f=AmCharts.toCoordinate(n.x,this.realWidth),t=AmCharts.toCoordinate(t,this.realHeight);f||(f=0);t||(t=0);void 0===o&&(o=this.color);isNaN(e)&&(e=this.fontSize);i||(i="start");"left"==i&&(i="start");"right"==i&&(i="end");"center"==i&&(i="middle",u?t=this.realHeight-t+t/2:f=this.realWidth/2-f);void 0===s&&(s=1);void 0===u&&(u=0);t+=e/2;r=AmCharts.text(this.container,r,o,this.fontFamily,e,i,h,s);r.translate(f,t);0!==u&&r.rotate(u);n.url&&(r.setAttr("cursor","pointer"),r.click(function(){AmCharts.getURL(n.url)}));this.labelsSet.push(r);this.labels.push(r)}},addLabel:function(n,t,i,r,u,f,e,o,s,h){n={x:n,y:t,text:i,align:r,size:u,color:f,alpha:o,rotation:e,bold:s,url:h};this.container&&this.drawLabel(n);this.allLabels.push(n)},clearLabels:function(){for(var t=this.labels,n=t.length-1;0<=n;n--)t[n].remove();this.labels=[];this.allLabels=[]},updateHeight:function(){var n=this.divRealHeight,t=this.legend,i;return t&&(i=this.legendDiv.offsetHeight,t=t.position,("top"==t||"bottom"==t)&&(n-=i,(0>n||isNaN(n))&&(n=0),this.chartDiv.style.height=n+"px")),n},updateWidth:function(){var t=this.divRealWidth,f=this.divRealHeight,n=this.legend,i,r;if(n){i=this.legendDiv;r=i.offsetWidth;isNaN(n.width)||(r=n.width);var e=i.offsetHeight,i=i.style,u=this.chartDiv.style,n=n.position;("right"==n||"left"==n)&&(t-=r,(0>t||isNaN(t))&&(t=0),u.width=t+"px","left"==n?u.left=r+"px":i.left=t+"px",i.top=(f-e)/2+"px")}return t},getTitleHeight:function(){var n=0,r=this.titles,t,i;if(0<r.length)for(n=15,t=0;t<r.length;t++)i=r[t].size,isNaN(i)&&(i=this.fontSize+2),n+=i+6;return n},addTitle:function(n,t,i,r,u){return isNaN(t)&&(t=this.fontSize+2),n={text:n,size:t,color:i,alpha:r,bold:u},this.titles.push(n),n},addMouseWheel:function(){var n=this;window.addEventListener&&(window.addEventListener("DOMMouseScroll",function(t){n.handleWheel.call(n,t)},!1),document.addEventListener("mousewheel",function(t){n.handleWheel.call(n,t)},!1))},handleWheel:function(n){if(this.mouseIsOver){var t=0;n||(n=window.event);n.wheelDelta?t=n.wheelDelta/120:n.detail&&(t=-n.detail/3);t&&this.handleWheelReal(t,n.shiftKey);n.preventDefault&&n.preventDefault()}},handleWheelReal:function(){},addListeners:function(){var n=this,t=n.chartDiv;document.addEventListener?(n.panEventsEnabled&&"ontouchstart"in document.documentElement&&(t.addEventListener("touchstart",function(t){n.handleTouchMove.call(n,t);n.handleTouchStart.call(n,t)},!0),t.addEventListener("touchmove",function(t){n.handleTouchMove.call(n,t)},!0),t.addEventListener("touchend",function(t){n.handleTouchEnd.call(n,t)},!0)),t.addEventListener("mousedown",function(t){n.handleMouseDown.call(n,t)},!0),t.addEventListener("mouseover",function(t){n.handleMouseOver.call(n,t)},!0),t.addEventListener("mouseout",function(t){n.handleMouseOut.call(n,t)},!0)):(t.attachEvent("onmousedown",function(t){n.handleMouseDown.call(n,t)}),t.attachEvent("onmouseover",function(t){n.handleMouseOver.call(n,t)}),t.attachEvent("onmouseout",function(t){n.handleMouseOut.call(n,t)}))},dispDUpd:function(){var n;this.dispatchDataUpdated&&(this.dispatchDataUpdated=!1,n="dataUpdated",this.fire(n,{type:n,chart:this}));this.chartCreated||(n="init",this.fire(n,{type:n,chart:this}));this.chartRendered||(n="rendered",this.fire(n,{type:n,chart:this}),this.chartRendered=!0);n="drawn";this.fire(n,{type:n,chart:this})},validateSize:function(){var n=this,i,t;n.measure();i=n.legend;(n.realWidth!=n.previousWidth||n.realHeight!=n.previousHeight)&&0<n.realWidth&&0<n.realHeight&&(n.sizeChanged=!0,i&&(clearTimeout(n.legendInitTO),t=setTimeout(function(){i.invalidateSize()},100),n.timeOuts.push(t),n.legendInitTO=t),n.marginsUpdated="xy"!=n.type?!1:!0,clearTimeout(n.initTO),t=setTimeout(function(){n.initChart()},150),n.timeOuts.push(t),n.initTO=t);n.renderFix();i&&i.renderFix()},invalidateSize:function(){this.previousHeight=this.previousWidth=NaN;this.invalidateSizeReal()},invalidateSizeReal:function(){var n=this,t;n.marginsUpdated=!1;clearTimeout(n.validateTO);t=setTimeout(function(){n.validateSize()},5);n.timeOuts.push(t);n.validateTO=t},validateData:function(n){this.chartCreated&&(this.dataChanged=!0,this.marginsUpdated="xy"!=this.type?!1:!0,this.initChart(n))},validateNow:function(){this.chartRendered=this.listenersAdded=!1;this.write(this.div)},showItem:function(n){n.hidden=!1;this.initChart()},hideItem:function(n){n.hidden=!0;this.initChart()},hideBalloon:function(){var n=this;clearInterval(n.hoverInt);clearTimeout(n.balloonTO);n.hoverInt=setTimeout(function(){n.hideBalloonReal.call(n)},n.hideBalloonTime)},cleanChart:function(){},hideBalloonReal:function(){var n=this.balloon;n&&n.hide()},showBalloon:function(n,t,i,r,u){var f=this;clearTimeout(f.balloonTO);clearInterval(f.hoverInt);f.balloonTO=setTimeout(function(){f.showBalloonReal.call(f,n,t,i,r,u)},1)},showBalloonReal:function(n,t,i,r,u){this.handleMouseMove();var f=this.balloon;f.enabled&&(f.followCursor(!1),f.changeColor(t),!i||f.fixedPosition?(f.setPosition(r,u),f.followCursor(!1)):f.followCursor(!0),n&&f.showBalloon(n))},handleTouchMove:function(n){this.hideBalloon();var t=this.chartDiv;n.touches&&(n=n.touches.item(0),this.mouseX=n.pageX-AmCharts.findPosX(t),this.mouseY=n.pageY-AmCharts.findPosY(t))},handleMouseOver:function(){AmCharts.resetMouseOver();this.mouseIsOver=!0},handleMouseOut:function(){AmCharts.resetMouseOver();this.mouseIsOver=!1},handleMouseMove:function(n){var i,r,t,u,f;if(this.mouseIsOver&&(t=this.chartDiv,n||(n=window.event),n)){this.posX=AmCharts.findPosX(t);this.posY=AmCharts.findPosY(t);switch(this.mouseMode){case 1:i=n.clientX-this.posX;r=n.clientY-this.posY;this.divIsFixed||(t=document.body,t&&(u=t.scrollLeft,y1=t.scrollTop),(t=document.documentElement)&&(f=t.scrollLeft,y2=t.scrollTop),u=Math.max(u,f),f=Math.max(y1,y2),i+=u,r+=f);break;case 0:this.divIsFixed?(i=n.clientX-this.posX,r=n.clientY-this.posY):(i=n.pageX-this.posX,r=n.pageY-this.posY)}n.touches&&(n=n.touches.item(0),i=n.pageX-this.posX,r=n.pageY-this.posY);this.mouseX=i-this.dmouseX;this.mouseY=r-this.dmouseY}},handleTouchStart:function(n){this.handleMouseDown(n)},handleTouchEnd:function(n){AmCharts.resetMouseOver();this.handleReleaseOutside(n)},handleReleaseOutside:function(){},handleMouseDown:function(n){AmCharts.resetMouseOver();this.mouseIsOver=!0;n&&n.preventDefault&&n.preventDefault()},addLegend:function(n,t){n=AmCharts.processObject(n,AmCharts.AmLegend,this.theme);n.divId=t;var i;return i="object"!=typeof t&&t?document.getElementById(t):t,this.legend=n,n.chart=this,i?(n.div=i,n.position="outside",n.autoMargins=!1):n.div=this.legendDiv,i=this.handleLegendEvent,this.listenTo(n,"showItem",i),this.listenTo(n,"hideItem",i),this.listenTo(n,"clickMarker",i),this.listenTo(n,"rollOverItem",i),this.listenTo(n,"rollOutItem",i),this.listenTo(n,"rollOverMarker",i),this.listenTo(n,"rollOutMarker",i),this.listenTo(n,"clickLabel",i),n},removeLegend:function(){this.legend=void 0;this.legendDiv.innerHTML=""},handleResize:function(){(AmCharts.isPercents(this.width)||AmCharts.isPercents(this.height))&&this.invalidateSizeReal();this.renderFix()},renderFix:function(){if(!AmCharts.VML){var n=this.container;n&&n.renderFix()}},getSVG:function(){if(AmCharts.hasSVG)return this.container},animate:function(n,t,i,r,u,f,e){return n["an_"+t]&&AmCharts.removeFromArray(this.animations,n["an_"+t]),i={obj:n,frame:0,attribute:t,from:i,to:r,time:u,effect:f,suffix:e},n["an_"+t]=i,this.animations.push(i),i},setLegendData:function(n){var t=this.legend;t&&t.setData(n)},startInterval:function(){var n=this;clearInterval(n.interval);n.interval=setInterval(function(){n.updateAnimations.call(n)},AmCharts.updateRate)},stopAnim:function(n){AmCharts.removeFromArray(this.animations,n)},updateAnimations:function(){var t;for(this.container&&this.container.update(),t=this.animations.length-1;0<=t;t--){var n=this.animations[t],i=1e3*n.time/AmCharts.updateRate,r=n.frame+1,u=n.obj,f=n.attribute;if(r<=i){n.frame++;var e=Number(n.from),o=Number(n.to)-e,i=AmCharts[n.effect](0,r,e,o,i);0===o?this.animations.splice(t,1):u.node.style[f]=i+n.suffix}else u.node.style[f]=Number(n.to)+n.suffix,this.animations.splice(t,1)}},inIframe:function(){try{return window.self!==window.top}catch(n){return!0}},brr:function(){var i=window.location.hostname.split("."),u,t,r;if(2<=i.length&&(u=i[i.length-2]+"."+i[i.length-1]),this.amLink&&(i=this.amLink.parentNode)&&i.removeChild(this.amLink),i=this.creditsPosition,"amcharts.com"!=u||!0===this.inIframe()){var e=u=0,s=this.realWidth,h=this.realHeight;("serial"==this.type||"xy"==this.type)&&(u=this.marginLeftReal,e=this.marginTopReal,s=u+this.plotAreaWidth,h=e+this.plotAreaHeight);var n="http://www.amcharts.com/javascript-charts/",f="JavaScript charts",r="JS chart by amCharts";"ammap"==this.product&&(n="http://www.ammap.com/javascript-maps/",f="Interactive JavaScript maps",r="JS map by amCharts");t=document.createElement("a");r=document.createTextNode(r);t.setAttribute("href",n);t.setAttribute("title",f);t.appendChild(r);this.chartDiv.appendChild(t);this.amLink=t;n=t.style;n.position="absolute";n.textDecoration="none";n.color=this.color;n.fontFamily=this.fontFamily;n.fontSize=this.fontSize+"px";n.opacity=.7;n.display="block";var f=t.offsetWidth,t=t.offsetHeight,r=5+u,o=e+5;"bottom-left"==i&&(r=5+u,o=h-t-3);"bottom-right"==i&&(r=s-f-5,o=h-t-3);"top-right"==i&&(r=s-f-5,o=e+5);n.left=r+"px";n.top=o+"px"}}});AmCharts.Slice=AmCharts.Class({construct:function(){}});AmCharts.SerialDataItem=AmCharts.Class({construct:function(){}});AmCharts.GraphDataItem=AmCharts.Class({construct:function(){}});AmCharts.Guide=AmCharts.Class({construct:function(n){this.cname="Guide";AmCharts.applyTheme(this,n,this.cname)}});AmCharts.AmBalloon=AmCharts.Class({construct:function(n){this.cname="AmBalloon";this.enabled=!0;this.fillColor="#FFFFFF";this.fillAlpha=.8;this.borderThickness=2;this.borderColor="#FFFFFF";this.borderAlpha=1;this.cornerRadius=0;this.maximumWidth=220;this.horizontalPadding=8;this.verticalPadding=4;this.pointerWidth=6;this.pointerOrientation="V";this.color="#000000";this.adjustBorderColor=!0;this.show=this.follow=this.showBullet=!1;this.bulletSize=3;this.shadowAlpha=.4;this.shadowColor="#000000";this.fadeOutDuration=this.animationDuration=.3;this.fixedPosition=!1;this.offsetY=6;this.offsetX=1;this.textAlign="center";AmCharts.isModern||(this.offsetY*=1.5);AmCharts.applyTheme(this,n,this.cname)},draw:function(){var u=this.pointToX,o=this.pointToY,l,e,d,r,i,ut,n;if(this.deltaSignX=this.deltaSignY=1,l=this.chart,AmCharts.VML&&(this.fadeOutDuration=0),this.xAnim&&l.stopAnim(this.xAnim),this.yAnim&&l.stopAnim(this.yAnim),!isNaN(u)){var tt=this.follow,a=l.container,v=this.set;if(AmCharts.remove(v),this.removeDiv(),this.set=v=a.set(),l.balloonsSet.push(v),this.show){var c=this.l,p=this.t,g=this.r,b=this.b,e=this.balloonColor,s=this.fillColor,it=this.borderColor,h=s;void 0!=e&&(this.adjustBorderColor?h=it=e:s=e);var y=this.horizontalPadding,w=this.verticalPadding,f=this.pointerWidth,rt=this.pointerOrientation,k=this.cornerRadius,t=l.fontFamily,n=this.fontSize;void 0==n&&(n=l.fontSize);e=document.createElement("div");d=e.style;d.position="absolute";r=this.minWidth;i="";isNaN(r)||(i="min-width:"+(r-2*y)+"px; ");e.innerHTML='<div style="text-align:'+this.textAlign+"; "+i+"max-width:"+this.maxWidth+"px; font-size:"+n+"px; color:"+this.color+"; font-family:"+t+'">'+this.text+"<\/div>";l.chartDiv.appendChild(e);this.textDiv=e;n=e.offsetWidth;t=e.offsetHeight;e.clientHeight&&(n=e.clientWidth,t=e.clientHeight);t+=2*w;i=n+2*y;!isNaN(r)&&i<r&&(i=r);window.opera&&(t+=2);ut=!1;n=this.offsetY;l.handDrawn&&(n+=l.handDrawScatter+2);"H"!=rt?(r=u-i/2,o<p+t+10&&"down"!=rt?(ut=!0,tt&&(o+=n),n=o+f,this.deltaSignY=-1):(tt&&(o-=n),n=o-t-f,this.deltaSignY=1)):(2*f>t&&(f=t/2),n=o-t/2,u<c+(g-c)/2?(r=u+f,this.deltaSignX=-1):(r=u-i-f,this.deltaSignX=1));n+t>=b&&(n=b-t);n<p&&(n=p);r<c&&(r=c);r+i>g&&(r=g-i);var p=n+w,b=r+y,w=this.shadowAlpha,ft=this.shadowColor,y=this.borderThickness,et=this.bulletSize,nt;0<k||0===f?(0<w&&(u=AmCharts.rect(a,i,t,s,0,y+1,ft,w,this.cornerRadius),AmCharts.isModern?u.translate(1,1):u.translate(4,4),v.push(u)),s=AmCharts.rect(a,i,t,s,this.fillAlpha,y,it,this.borderAlpha,this.cornerRadius),this.showBullet&&(nt=AmCharts.circle(a,et,h,this.fillAlpha),v.push(nt))):(h=[],k=[],"H"!=rt?(c=u-r,c>i-f&&(c=i-f),c<f&&(c=f),h=[0,c-f,u-r,c+f,i,i,0,0],k=ut?[0,0,o-n,0,0,t,t,0]:[t,t,o-n,t,t,0,0,t]):(h=o-n,h>t-f&&(h=t-f),h<f&&(h=f),k=[0,h-f,o-n,h+f,t,t,0,0],h=u<c+(g-c)/2?[0,0,r<u?0:u-r,0,0,i,i,0]:[i,i,r+i>u?i:u-r,i,i,0,0,i]),0<w&&(u=AmCharts.polygon(a,h,k,s,0,y,ft,w),u.translate(1,1),v.push(u)),s=AmCharts.polygon(a,h,k,s,this.fillAlpha,y,it,this.borderAlpha));this.bg=s;v.push(s);s.toFront();a=1*this.deltaSignX;d.left=b+"px";d.top=p+"px";v.translate(r-a,n);s=s.getBBox();this.bottom=n+t+1;this.yPos=s.y+n;nt&&nt.translate(this.pointToX-r+a,o-n);o=this.animationDuration;0<this.animationDuration&&!tt&&!isNaN(this.prevX)&&(v.translate(this.prevX,this.prevY),v.animate({translate:r-a+","+n},o,"easeOutSine"),e&&(d.left=this.prevTX+"px",d.top=this.prevTY+"px",this.xAnim=l.animate({node:e},"left",this.prevTX,b,o,"easeOutSine","px"),this.yAnim=l.animate({node:e},"top",this.prevTY,p,o,"easeOutSine","px")));this.prevX=r-a;this.prevY=n;this.prevTX=b;this.prevTY=p}}},followMouse:function(){var n,t,i;if(this.follow&&this.show&&(n=this.chart.mouseX-this.offsetX*this.deltaSignX,t=this.chart.mouseY,this.pointToX=n,this.pointToY=t,n!=this.previousX||t!=this.previousY))if(this.previousX=n,this.previousY=t,0===this.cornerRadius)this.draw();else if(i=this.set,i){var r=i.getBBox(),n=n-r.width/2,u=t-r.height-10;n<this.l&&(n=this.l);n>this.r-r.width&&(n=this.r-r.width);u<this.t&&(u=t+10);i.translate(n,u);t=this.textDiv.style;t.left=n+this.horizontalPadding+"px";t.top=u+this.verticalPadding+"px"}},changeColor:function(n){this.balloonColor=n},setBounds:function(n,t,i,r){this.l=n;this.t=t;this.r=i;this.b=r;this.destroyTO&&clearTimeout(this.destroyTO)},showBalloon:function(n){this.text=n;this.show=!0;this.destroyTO&&clearTimeout(this.destroyTO);n=this.chart;this.fadeAnim1&&n.stopAnim(this.fadeAnim1);this.fadeAnim2&&n.stopAnim(this.fadeAnim2);this.draw()},hide:function(){var n=this,t=n.fadeOutDuration,r=n.chart,i;0<t?(n.destroyTO=setTimeout(function(){n.destroy.call(n)},1e3*t),n.follow=!1,n.show=!1,i=n.set,i&&(i.setAttr("opacity",n.fillAlpha),n.fadeAnim1=i.animate({opacity:0},t,"easeInSine")),n.textDiv&&(n.fadeAnim2=r.animate({node:n.textDiv},"opacity",1,0,t,"easeInSine",""))):(n.show=!1,n.follow=!1,n.destroy())},setPosition:function(n,t,i){this.pointToX=n;this.pointToY=t;i&&(n==this.previousX&&t==this.previousY||this.draw());this.previousX=n;this.previousY=t},followCursor:function(n){var t=this,i,r;(t.follow=n)?(t.pShowBullet=t.showBullet,t.showBullet=!1):void 0!==t.pShowBullet&&(t.showBullet=t.pShowBullet);clearInterval(t.interval);i=t.chart.mouseX;r=t.chart.mouseY;!isNaN(i)&&n&&(t.pointToX=i-t.offsetX*t.deltaSignX,t.pointToY=r,t.followMouse(),t.interval=setInterval(function(){t.followMouse.call(t)},40))},removeDiv:function(){if(this.textDiv){var n=this.textDiv.parentNode;n&&n.removeChild(this.textDiv)}},destroy:function(){clearInterval(this.interval);AmCharts.remove(this.set);this.removeDiv();this.set=null}});AmCharts.circle=function(n,t,i,r,u,f,e,o){return(void 0==u||0===u)&&(u=.01),void 0===f&&(f="#000000"),void 0===e&&(e=0),r={fill:i,stroke:f,"fill-opacity":r,"stroke-width":u,"stroke-opacity":e},n=n.circle(0,0,t).attr(r),o&&n.gradient("radialGradient",[i,AmCharts.adjustLuminosity(i,-.6)]),n};AmCharts.text=function(n,t,i,r,u,f,e,o){return f||(f="middle"),"right"==f&&(f="end"),isNaN(o)&&(o=1),void 0!==t&&(t=String(t),AmCharts.isIE&&!AmCharts.isModern&&(t=t.replace("&amp;","&"),t=t.replace("&","&amp;"))),i={fill:i,"font-family":r,"font-size":u,opacity:o},!0===e&&(i["font-weight"]="bold"),i["text-anchor"]=f,n.text(t,i)};AmCharts.polygon=function(n,t,i,r,u,f,e,o,s,h,c){isNaN(f)&&(f=.01);isNaN(o)&&(o=u);var l=r,a=!1;for("object"==typeof l&&1<l.length&&(a=!0,l=l[0]),void 0===e&&(e=l),u={fill:l,stroke:e,"fill-opacity":u,"stroke-width":f,"stroke-opacity":o},void 0!==c&&0<c&&(u["stroke-dasharray"]=c),c=AmCharts.dx,f=AmCharts.dy,n.handDrawn&&(i=AmCharts.makeHD(t,i,n.handDrawScatter),t=i[0],i=i[1]),e=Math.round,h&&(e=AmCharts.doNothing),h="M"+(e(t[0])+c)+","+(e(i[0])+f),o=1;o<t.length;o++)h+=" L"+(e(t[o])+c)+","+(e(i[o])+f);return n=n.path(h+" Z").attr(u),a&&n.gradient("linearGradient",r,s),n};AmCharts.rect=function(n,t,i,r,u,f,e,o,s,h,c){var l,y,a,v;return isNaN(f)&&(f=0),void 0===s&&(s=0),void 0===h&&(h=270),isNaN(u)&&(u=0),l=r,y=!1,"object"==typeof l&&(l=l[0],y=!0),void 0===e&&(e=l),void 0===o&&(o=u),t=Math.round(t),i=Math.round(i),a=0,v=0,0>t&&(t=Math.abs(t),a=-t),0>i&&(i=Math.abs(i),v=-i),a+=AmCharts.dx,v+=AmCharts.dy,u={fill:l,stroke:e,"fill-opacity":u,"stroke-opacity":o},void 0!==c&&0<c&&(u["stroke-dasharray"]=c),n=n.rect(a,v,t,i,s,f).attr(u),y&&n.gradient("linearGradient",r,h),n};AmCharts.bullet=function(n,t,i,r,u,f,e,o,s,h,c){var l;"circle"==t&&(t="round");switch(t){case"round":l=AmCharts.circle(n,i/2,r,u,f,e,o);break;case"square":l=AmCharts.polygon(n,[-i/2,i/2,i/2,-i/2],[i/2,i/2,-i/2,-i/2],r,u,f,e,o,h-180);break;case"rectangle":l=AmCharts.polygon(n,[-i,i,i,-i],[i/2,i/2,-i/2,-i/2],r,u,f,e,o,h-180);break;case"diamond":l=AmCharts.polygon(n,[-i/2,0,i/2,0],[0,-i/2,0,i/2],r,u,f,e,o);break;case"triangleUp":l=AmCharts.triangle(n,i,0,r,u,f,e,o);break;case"triangleDown":l=AmCharts.triangle(n,i,180,r,u,f,e,o);break;case"triangleLeft":l=AmCharts.triangle(n,i,270,r,u,f,e,o);break;case"triangleRight":l=AmCharts.triangle(n,i,90,r,u,f,e,o);break;case"bubble":l=AmCharts.circle(n,i/2,r,u,f,e,o,!0);break;case"line":l=AmCharts.line(n,[-i/2,i/2],[0,0],r,u,f,e,o);break;case"yError":l=n.set();l.push(AmCharts.line(n,[0,0],[-i/2,i/2],r,u,f));l.push(AmCharts.line(n,[-s,s],[-i/2,-i/2],r,u,f));l.push(AmCharts.line(n,[-s,s],[i/2,i/2],r,u,f));break;case"xError":l=n.set();l.push(AmCharts.line(n,[-i/2,i/2],[0,0],r,u,f));l.push(AmCharts.line(n,[-i/2,-i/2],[-s,s],r,u,f));l.push(AmCharts.line(n,[i/2,i/2],[-s,s],r,u,f))}return l&&l.pattern(c),l};AmCharts.triangle=function(n,t,i,r,u,f,e,o){(void 0===f||0===f)&&(f=1);void 0===e&&(e="#000");void 0===o&&(o=0);r={fill:r,stroke:e,"fill-opacity":u,"stroke-width":f,"stroke-opacity":o};t/=2;var s;return 0===i&&(s=" M"+-t+","+t+" L0,"+-t+" L"+t+","+t+" Z"),180==i&&(s=" M"+-t+","+-t+" L0,"+t+" L"+t+","+-t+" Z"),90==i&&(s=" M"+-t+","+-t+" L"+t+",0 L"+-t+","+t+" Z"),270==i&&(s=" M"+-t+",0 L"+t+","+t+" L"+t+","+-t+" Z"),n.path(s).attr(r)};AmCharts.line=function(n,t,i,r,u,f,e,o,s,h,c){if(n.handDrawn&&!c)return AmCharts.handDrawnLine(n,t,i,r,u,f,e,o,s,h,c);for(f={fill:"none","stroke-width":f},void 0!==e&&0<e&&(f["stroke-dasharray"]=e),isNaN(u)||(f["stroke-opacity"]=u),r&&(f.stroke=r),r=Math.round,h&&(r=AmCharts.doNothing),h=AmCharts.dx,u=AmCharts.dy,e="M"+(r(t[0])+h)+","+(r(i[0])+u),o=1;o<t.length;o++)e+=" L"+(r(t[o])+h)+","+(r(i[o])+u);return AmCharts.VML?n.path(e,void 0,!0).attr(f):(s&&(e+=" M0,0 L0,0"),n.path(e).attr(f))};AmCharts.makeHD=function(n,t,i){for(var a,v,c=[],l=[],r=1;r<n.length;r++)for(var s=Number(n[r-1]),h=Number(t[r-1]),f=Number(n[r]),e=Number(t[r]),u=Math.sqrt(Math.pow(f-s,2)+Math.pow(e-h,2)),u=Math.round(u/50)+1,f=(f-s)/u,e=(e-h)/u,o=0;o<=u;o++)a=s+o*f+Math.random()*i,v=h+o*e+Math.random()*i,c.push(a),l.push(v);return[c,l]};AmCharts.handDrawnLine=function(n,t,i,r,u,f,e,o,s,h,c){var y=n.set();for(c=1;c<t.length;c++)for(var v=[t[c-1],t[c]],l=[i[c-1],i[c]],l=AmCharts.makeHD(v,l,n.handDrawScatter),v=l[0],l=l[1],a=1;a<v.length;a++)y.push(AmCharts.line(n,[v[a-1],v[a]],[l[a-1],l[a]],r,u,f+Math.random()*n.handDrawThickness-n.handDrawThickness/2,e,o,s,h,!0));return y};AmCharts.doNothing=function(n){return n};AmCharts.wedge=function(n,t,i,r,u,f,e,o,s,h,c,l){var a=Math.round,ut,k;f=a(f);e=a(e);o=a(o);var tt=a(e/f*o),ft=AmCharts.VML,v=359.5+f/100;359.94<v&&(v=359.94);u>=v&&(u=v);var y=1/180*Math.PI,v=t+Math.sin(r*y)*o,p=i-Math.cos(r*y)*tt,w=t+Math.sin(r*y)*f,b=i-Math.cos(r*y)*e,d=t+Math.sin((r+u)*y)*f,g=i-Math.cos((r+u)*y)*e,nt=t+Math.sin((r+u)*y)*o,y=i-Math.cos((r+u)*y)*tt,it={fill:AmCharts.adjustLuminosity(h.fill,-.2),"stroke-opacity":0,"fill-opacity":h["fill-opacity"]},rt=0;if(180<Math.abs(u)&&(rt=1),r=n.set(),ft&&(v=a(10*v),w=a(10*w),d=a(10*d),nt=a(10*nt),p=a(10*p),b=a(10*b),g=a(10*g),y=a(10*y),t=a(10*t),s=a(10*s),i=a(10*i),f*=10,e*=10,o*=10,tt*=10,1>Math.abs(u)&&1>=Math.abs(d-w)&&1>=Math.abs(g-b)&&(ut=!0)),u="",l&&(it["fill-opacity"]=0,it["stroke-opacity"]=h["stroke-opacity"]/2,it.stroke=h.stroke),0<s&&(ft?(k=" M"+v+","+(p+s)+" L"+w+","+(b+s),ut||(k+=" A"+(t-f)+","+(s+i-e)+","+(t+f)+","+(s+i+e)+","+w+","+(b+s)+","+d+","+(g+s)),k+=" L"+nt+","+(y+s),0<o&&(ut||(k+=" B"+(t-o)+","+(s+i-tt)+","+(t+o)+","+(s+i+tt)+","+nt+","+(s+y)+","+v+","+(s+p)))):(k=" M"+v+","+(p+s)+" L"+w+","+(b+s)+(" A"+f+","+e+",0,"+rt+",1,"+d+","+(g+s)+" L"+nt+","+(y+s)),0<o&&(k+=" A"+o+","+tt+",0,"+rt+",0,"+v+","+(p+s))),k+=" Z",k=n.path(k,void 0,void 0,"1000,1000").attr(it),r.push(k),k=n.path(" M"+v+","+p+" L"+v+","+(p+s)+" L"+w+","+(b+s)+" L"+w+","+b+" L"+v+","+p+" Z",void 0,void 0,"1000,1000").attr(it),s=n.path(" M"+d+","+g+" L"+d+","+(g+s)+" L"+nt+","+(y+s)+" L"+nt+","+y+" L"+d+","+g+" Z",void 0,void 0,"1000,1000").attr(it),r.push(k),r.push(s)),ft?(ut||(u=" A"+a(t-f)+","+a(i-e)+","+a(t+f)+","+a(i+e)+","+a(w)+","+a(b)+","+a(d)+","+a(g)),f=" M"+a(v)+","+a(p)+" L"+a(w)+","+a(b)+u+" L"+a(nt)+","+a(y)):f=" M"+v+","+p+" L"+w+","+b+(" A"+f+","+e+",0,"+rt+",1,"+d+","+g)+" L"+nt+","+y,0<o&&(ft?ut||(f+=" B"+(t-o)+","+(i-tt)+","+(t+o)+","+(i+tt)+","+nt+","+y+","+v+","+p):f+=" A"+o+","+tt+",0,"+rt+",0,"+v+","+p),n.handDrawn&&(t=AmCharts.line(n,[v,w],[p,b],h.stroke,h.thickness*Math.random()*n.handDrawThickness,h["stroke-opacity"]),r.push(t)),n=n.path(f+" Z",void 0,void 0,"1000,1000").attr(h),c){for(t=[],i=0;i<c.length;i++)t.push(AmCharts.adjustLuminosity(h.fill,c[i]));0<t.length&&n.gradient("linearGradient",t)}return n.pattern(l),r.push(n),r};AmCharts.adjustLuminosity=function(n,t){n=String(n).replace(/[^0-9a-f]/gi,"");6>n.length&&(n=String(n[0])+String(n[0])+String(n[1])+String(n[1])+String(n[2])+String(n[2]));t=t||0;for(var u="#",i,r=0;3>r;r++)i=parseInt(n.substr(2*r,2),16),i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16),u+=("00"+i).substr(i.length);return u};AmCharts.AmLegend=AmCharts.Class({construct:function(n){this.cname="AmLegend";this.createEvents("rollOverMarker","rollOverItem","rollOutMarker","rollOutItem","showItem","hideItem","clickMarker","rollOverItem","rollOutItem","clickLabel");this.position="bottom";this.borderColor=this.color="#000000";this.borderAlpha=0;this.markerLabelGap=5;this.verticalGap=10;this.align="left";this.horizontalGap=0;this.spacing=10;this.markerDisabledColor="#AAB3B3";this.markerType="square";this.markerSize=16;this.markerBorderThickness=this.markerBorderAlpha=1;this.marginBottom=this.marginTop=0;this.marginLeft=this.marginRight=20;this.autoMargins=!0;this.valueWidth=50;this.switchable=!0;this.switchType="x";this.switchColor="#FFFFFF";this.rollOverColor="#CC0000";this.reversedOrder=!1;this.labelText="[[title]]";this.valueText="[[value]]";this.useMarkerColorForLabels=!1;this.rollOverGraphAlpha=1;this.textClickEnabled=!1;this.equalWidths=!0;this.dateFormat="DD-MM-YYYY";this.backgroundColor="#FFFFFF";this.backgroundAlpha=0;this.useGraphSettings=!1;this.showEntries=!0;AmCharts.applyTheme(this,n,this.cname)},setData:function(n){this.legendData=n;this.invalidateSize()},invalidateSize:function(){this.destroy();this.entries=[];this.valueLabels=[];(AmCharts.ifArray(this.legendData)||AmCharts.ifArray(this.data))&&this.drawLegend()},drawLegend:function(){var n=this.chart,t=this.position,o=this.width,s=n.divRealWidth,f=n.divRealHeight,i=this.div,u=this.legendData,e,r;if(this.data&&(u=this.data),isNaN(this.fontSize)&&(this.fontSize=n.fontSize),"right"==t||"left"==t?(this.maxColumns=1,this.autoMargins&&(this.marginLeft=this.marginRight=10)):this.autoMargins&&(this.marginRight=n.marginRight,this.marginLeft=n.marginLeft,e=n.autoMarginOffset,"bottom"==t?(this.marginBottom=e,this.marginTop=0):(this.marginTop=e,this.marginBottom=0)),void 0!==o?r=AmCharts.toCoordinate(o,s):"right"!=t&&"left"!=t&&(r=n.realWidth),"outside"==t?(r=i.offsetWidth,f=i.offsetHeight,i.clientHeight&&(r=i.clientWidth,f=i.clientHeight)):(isNaN(r)||(i.style.width=r+"px"),i.className="amChartsLegend"),this.divWidth=r,this.container=new AmCharts.AmDraw(i,r,f,n),this.lx=0,this.ly=8,t=this.markerSize,t>this.fontSize&&(this.ly=t/2-1),0<t&&(this.lx+=t+this.markerLabelGap),this.titleWidth=0,(t=this.title)&&(n=AmCharts.text(this.container,t,this.color,n.fontFamily,this.fontSize,"start",!0),n.translate(this.marginLeft,this.marginTop+this.verticalGap+this.ly+1),n=n.getBBox(),this.titleWidth=n.width+15,this.titleHeight=n.height+6),this.index=this.maxLabelWidth=0,this.showEntries){for(n=0;n<u.length;n++)this.createEntry(u[n]);for(n=this.index=0;n<u.length;n++)this.createValue(u[n])}this.arrangeEntries();this.updateValues()},arrangeEntries:function(){var t=this.position,f=this.marginLeft+this.titleWidth,l=this.marginRight,g=this.marginTop,tt=this.marginBottom,r=this.horizontalGap,nt=this.div,u=this.divWidth,e=this.maxColumns,w=this.verticalGap,b=this.spacing,it=u-l-f,k=0,d=0,o=this.container,p=o.set(),s,n,i,h,c,v,y,a;for(this.set=p,o=o.set(),p.push(o),s=this.entries,i=0;i<s.length;i++)n=s[i].getBBox(),h=n.width,h>k&&(k=h),n=n.height,n>d&&(d=n);for(c=h=0,v=r,i=0;i<s.length;i++)y=s[i],this.reversedOrder&&(y=s[s.length-i-1]),n=y.getBBox(),this.equalWidths?a=r+c*(k+b+this.markerLabelGap):(a=v,v=v+n.width+r+b),a+n.width>it&&0<i&&0!==c&&(h++,c=0,a=r,v=a+n.width+r+b),y.translate(a,(d+w)*h),c++,!isNaN(e)&&c>=e&&(c=0,h++),o.push(y);n=o.getBBox();e=n.height+2*w-1;"left"==t||"right"==t?(u=n.width+2*r,nt.style.width=u+f+l+"px"):u=u-f-l-1;l=AmCharts.polygon(this.container,[0,u,u,0],[0,0,e,e],this.backgroundColor,this.backgroundAlpha,1,this.borderColor,this.borderAlpha);p.push(l);p.translate(f,g);l.toBack();f=r;("top"==t||"bottom"==t||"absolute"==t||"outside"==t)&&("center"==this.align?f=r+(u-n.width)/2:"right"==this.align&&(f=r+u-n.width));o.translate(f,w+1);this.titleHeight>e&&(e=this.titleHeight);t=e+g+tt+1;0>t&&(t=0);nt.style.height=Math.round(t)+"px"},createEntry:function(n){var s,a,r,y,f,u,h,i,l;if(!1!==n.visibleInLegend){s=this.chart;a=n.markerType;a||(a=this.markerType);r=n.color;y=n.alpha;n.legendKeyColor&&(r=n.legendKeyColor());n.legendKeyAlpha&&(y=n.legendKeyAlpha());!0===n.hidden&&(f=r=this.markerDisabledColor);u=n.pattern;h=n.customMarker;h||(h=this.customMarker);var o=this.container,t=this.markerSize,e=0,c=0,v=t/2;this.useGraphSettings?(e=n.type,this.switchType=void 0,"line"==e||"step"==e||"smoothedLine"==e||"ohlc"==e)?(u=o.set(),n.hidden||(r=n.lineColorR,f=n.bulletBorderColorR),c=AmCharts.line(o,[0,2*t],[t/2,t/2],r,n.lineAlpha,n.lineThickness,n.dashLength),u.push(c),n.bullet&&(n.hidden||(r=n.bulletColorR),c=AmCharts.bullet(o,n.bullet,n.bulletSize,r,n.bulletAlpha,n.bulletBorderThickness,f,n.bulletBorderAlpha))&&(c.translate(t+1,t/2),u.push(c)),v=0,e=t,c=t/3):(n.getGradRotation&&(i=n.getGradRotation()),e=n.fillColorsR,!0===n.hidden&&(e=r),(u=this.createMarker("rectangle",e,n.fillAlphas,n.lineThickness,r,n.lineAlpha,i,u))&&(v=t,u.translate(v,t/2)),e=t):h?(s.path&&(h=s.path+h),u=o.image(h,0,0,t,t)):(u=this.createMarker(a,r,y,void 0,void 0,void 0,void 0,u))&&u.translate(t/2,t/2);this.addListeners(u,n);o=o.set([u]);this.switchable&&o.setAttr("cursor","pointer");(f=this.switchType)&&"none"!=f&&("x"==f?(i=this.createX(),i.translate(t/2,t/2)):i=this.createV(),i.dItem=n,!0!==n.hidden?"x"==f?i.hide():i.show():"x"!=f&&i.hide(),this.switchable||i.hide(),this.addListeners(i,n),n.legendSwitch=i,o.push(i));f=this.color;n.showBalloon&&this.textClickEnabled&&void 0!==this.selectedColor&&(f=this.selectedColor);this.useMarkerColorForLabels&&(f=r);!0===n.hidden&&(f=this.markerDisabledColor);r=AmCharts.massReplace(this.labelText,{"[[title]]":n.title});i=this.fontSize;u&&t<=i&&u.translate(v,t/2+this.ly-i/2+(i+2-t)/2-c);r&&(r=AmCharts.fixBrakes(r),n.legendTextReal=r,l=AmCharts.text(this.container,r,f,s.fontFamily,i,"start"),l.translate(this.lx+e,this.ly),o.push(l),s=l.getBBox().width,this.maxLabelWidth<s&&(this.maxLabelWidth=s));this.entries[this.index]=o;n.legendEntry=this.entries[this.index];n.legendLabel=l;this.index++}},addListeners:function(n,t){var i=this;n&&n.mouseover(function(){i.rollOverMarker(t)}).mouseout(function(){i.rollOutMarker(t)}).click(function(){i.clickMarker(t)})},rollOverMarker:function(n){this.switchable&&this.dispatch("rollOverMarker",n);this.dispatch("rollOverItem",n)},rollOutMarker:function(n){this.switchable&&this.dispatch("rollOutMarker",n);this.dispatch("rollOutItem",n)},clickMarker:function(n){this.switchable&&(!0===n.hidden?this.dispatch("showItem",n):this.dispatch("hideItem",n));this.dispatch("clickMarker",n)},rollOverLabel:function(n){n.hidden||(this.textClickEnabled&&n.legendLabel&&n.legendLabel.attr({fill:this.rollOverColor}),this.dispatch("rollOverItem",n))},rollOutLabel:function(n){if(!n.hidden){if(this.textClickEnabled&&n.legendLabel){var t=this.color;void 0!==this.selectedColor&&n.showBalloon&&(t=this.selectedColor);this.useMarkerColorForLabels&&(t=n.lineColor,void 0===t&&(t=n.color));n.legendLabel.attr({fill:t})}this.dispatch("rollOutItem",n)}},clickLabel:function(n){this.textClickEnabled?n.hidden||this.dispatch("clickLabel",n):this.switchable&&(!0===n.hidden?this.dispatch("showItem",n):this.dispatch("hideItem",n))},dispatch:function(n,t){this.fire(n,{type:n,dataItem:t,target:this,chart:this.chart})},createValue:function(n){var t=this,r=t.fontSize,u,f,i;if(!1!==n.visibleInLegend){if(u=t.maxLabelWidth,t.equalWidths||(t.valueAlign="left"),"left"==t.valueAlign&&(u=n.legendEntry.getBBox().width),f=u,t.valueText&&0<t.valueWidth){i=t.color;t.useMarkerColorForValues&&(i=n.color,n.legendKeyColor&&(i=n.legendKeyColor()));!0===n.hidden&&(i=t.markerDisabledColor);var o=t.valueText,u=u+t.lx+t.markerLabelGap+t.valueWidth,e="end";"left"==t.valueAlign&&(u-=t.valueWidth,e="start");i=AmCharts.text(t.container,o,i,t.chart.fontFamily,r,e);i.translate(u,t.ly);t.entries[t.index].push(i);f+=t.valueWidth+2*t.markerLabelGap;i.dItem=n;t.valueLabels.push(i)}t.index++;i=t.markerSize;i<r+7&&(i=r+7,AmCharts.VML&&(i+=3));r=t.container.rect(t.markerSize,0,f,i,0,0).attr({stroke:"none",fill:"#ffffff","fill-opacity":.005});r.dItem=n;t.entries[t.index-1].push(r);r.mouseover(function(){t.rollOverLabel(n)}).mouseout(function(){t.rollOutLabel(n)}).click(function(){t.clickLabel(n)})}},createV:function(){var n=this.markerSize;return AmCharts.polygon(this.container,[n/5,n/2,n-n/5,n/2],[n/3,n-n/5,n/5,n/1.7],this.switchColor)},createX:function(){var n=(this.markerSize-4)/2,t={stroke:this.switchColor,"stroke-width":3},i=this.container,r=AmCharts.line(i,[-n,n],[-n,n]).attr(t),n=AmCharts.line(i,[-n,n],[n,-n]).attr(t);return this.container.set([r,n])},createMarker:function(n,t,i,r,u,f,e,o){var s=this.markerSize,h=this.container;return u||(u=this.markerBorderColor),u||(u=t),isNaN(r)&&(r=this.markerBorderThickness),isNaN(f)&&(f=this.markerBorderAlpha),AmCharts.bullet(h,n,s,t,i,r,u,f,s,e,o)},validateNow:function(){this.invalidateSize()},updateValues:function(){for(var o=this.valueLabels,e=this.chart,s=this.data,i,f,r=0;r<o.length;r++){var u=o[r],n=u.dItem,t=" ";s?n.value?u.text(n.value):u.text(""):(void 0!==n.type?(i=n.currentDataItem,f=this.periodValueText,n.legendPeriodValueText&&(f=n.legendPeriodValueText),i?(t=this.valueText,n.legendValueText&&(t=n.legendValueText),t=e.formatString(t,i)):f&&(t=e.formatPeriodString(f,n))):t=e.formatString(this.valueText,n),(i=n.legendLabel)&&i.text(n.legendTextReal),u.text(t))}},renderFix:function(){if(!AmCharts.VML){var n=this.container;n&&n.renderFix()}},destroy:function(){this.div.innerHTML="";AmCharts.remove(this.set)}});AmCharts.AmMap=AmCharts.Class({inherits:AmCharts.AmChart,construct:function(n){this.cname="AmMap";this.type="map";this.theme=n;this.version="3.8.15";this.svgNotSupported="This browser doesn't support SVG. Use Chrome, Firefox, Internet Explorer 9 or later.";this.createEvents("rollOverMapObject","rollOutMapObject","clickMapObject","selectedObjectChanged","homeButtonClicked","zoomCompleted","dragCompleted","positionChanged","writeDevInfo","click");this.zoomDuration=1;this.zoomControl=new AmCharts.ZoomControl(n);this.fitMapToContainer=!0;this.mouseWheelZoomEnabled=this.backgroundZoomsToTop=!1;this.allowClickOnSelectedObject=this.useHandCursorOnClickableOjects=this.showBalloonOnSelectedObject=!0;this.showObjectsAfterZoom=this.wheelBusy=!1;this.zoomOnDoubleClick=this.useObjectColorForBalloon=!0;this.allowMultipleDescriptionWindows=!1;this.dragMap=this.centerMap=this.linesAboveImages=!0;this.colorSteps=5;this.showAreasInList=!0;this.showLinesInList=this.showImagesInList=!1;this.areasProcessor=new AmCharts.AreasProcessor(this);this.areasSettings=new AmCharts.AreasSettings(n);this.imagesProcessor=new AmCharts.ImagesProcessor(this);this.imagesSettings=new AmCharts.ImagesSettings(n);this.linesProcessor=new AmCharts.LinesProcessor(this);this.linesSettings=new AmCharts.LinesSettings(n);this.showDescriptionOnHover=!1;AmCharts.AmMap.base.construct.call(this,n);this.creditsPosition="bottom-left";this.product="ammap";this.areasClasses={};AmCharts.applyTheme(this,n,this.cname)},initChart:function(){var n,t;this.zoomInstantly=!0;this.sizeChanged&&AmCharts.hasSVG&&this.chartCreated?(this.container.setSize(this.realWidth,this.realHeight),this.resizeMap(),this.drawBackground(),this.redrawLabels(),this.drawTitles(),this.processObjects(),this.rescaleObjects(),n=this.container,this.zoomControl.init(this,n),this.drawBg(),t=this.smallMap,t&&t.init(this,n),(t=this.valueLegend)&&t.init(this,n),this.sizeChanged=!1,this.zoomToLongLat(this.zLevelTemp,this.zLongTemp,this.zLatTemp,!0),this.previousWidth=this.realWidth,this.previousHeight=this.realHeight,this.updateSmallMap(),this.linkSet.toFront()):(AmCharts.AmMap.base.initChart.call(this),AmCharts.hasSVG)?(this.dataChanged&&(this.parseData(),this.dispatchDataUpdated=!0,this.dataChanged=!1,n=this.legend)&&(n.position="absolute",n.invalidateSize()),this.mouseWheelZoomEnabled&&this.addMouseWheel(),this.createDescriptionsDiv(),this.svgAreas=[],this.svgAreasById={},this.drawChart()):(document.createTextNode(this.svgNotSupported),this.chartDiv.style.textAlign="",this.chartDiv.setAttribute("class","ammapAlert"),this.chartDiv.innerHTML=this.svgNotSupported,clearInterval(this.interval))},invalidateSize:function(){var n=this.zoomLongitude();isNaN(n)||(this.zLongTemp=n);n=this.zoomLatitude();isNaN(n)||(this.zLatTemp=n);n=this.zoomLevel();isNaN(n)||(this.zLevelTemp=n);AmCharts.AmMap.base.invalidateSize.call(this)},handleWheelReal:function(n){if(!this.wheelBusy){this.stopAnimation();var i=this.zoomLevel(),r=this.zoomControl,t=r.zoomFactor;this.wheelBusy=!0;n=AmCharts.fitToBounds(0<n?i*t:i/t,r.minZoomLevel,r.maxZoomLevel);t=this.mouseX/this.mapWidth;r=this.mouseY/this.mapHeight;t=(this.zoomX()-t)*(n/i)+t;i=(this.zoomY()-r)*(n/i)+r;this.zoomTo(n,t,i)}},addLegend:function(n,t){return n.position="absolute",n.autoMargins=!1,n.valueWidth=0,n.switchable=!1,AmCharts.AmMap.base.addLegend.call(this,n,t),n},handleLegendEvent:function(){},createDescriptionsDiv:function(){if(!this.descriptionsDiv){var n=document.createElement("div");n.style.position="absolute";n.style.left=AmCharts.findPosX(this.div)+"px";n.style.top=AmCharts.findPosY(this.div)+"px";this.descriptionsDiv=n}this.div.appendChild(this.descriptionsDiv)},drawChart:function(){var n,t;AmCharts.AmMap.base.drawChart.call(this);n=this.dataProvider;this.dataProvider=n=AmCharts.extend(n,new AmCharts.MapData,!0);this.areasSettings=AmCharts.processObject(this.areasSettings,AmCharts.AreasSettings,this.theme);this.imagesSettings=AmCharts.processObject(this.imagesSettings,AmCharts.ImagesSettings,this.theme);this.linesSettings=AmCharts.processObject(this.linesSettings,AmCharts.LinesSettings,this.theme);this.mapContainer=this.container.set();this.graphsSet.push(this.mapContainer);n.map&&(t=AmCharts.maps[n.map]);n.mapVar&&(t=n.mapVar);t?(this.svgData=t.svg,this.getBounds(),this.buildEverything()):(n=n.mapURL)&&this.loadXml(n);this.balloonsSet.toFront()},drawBg:function(){var n=this,t;AmCharts.remove(n.bgSet);t=AmCharts.rect(n.container,n.realWidth,n.realHeight,"#000",.001);t.click(function(){n.handleBackgroundClick()});n.bgSet=t;n.set.push(t)},buildEverything:function(){var n=this,i,t;0<n.realWidth&&0<n.realHeight?(i=n.container,n.zoomControl=AmCharts.processObject(n.zoomControl,AmCharts.ZoomControl,n.theme),n.zoomControl.init(this,i),n.drawBg(),n.buildSVGMap(),t=n.smallMap,t&&(n.smallMap=AmCharts.processObject(n.smallMap,AmCharts.SmallMap,n.theme),t=n.smallMap,t.init(n,i)),t=n.dataProvider,isNaN(t.zoomX)&&isNaN(t.zoomY)&&isNaN(t.zoomLatitude)&&isNaN(t.zoomLongitude)&&(n.centerMap?(t.zoomLatitude=n.coordinateToLatitude(n.mapHeight/2),t.zoomLongitude=n.coordinateToLongitude(n.mapWidth/2)):(t.zoomX=0,t.zoomY=0),n.zoomInstantly=!0),n.selectObject(n.dataProvider),n.processAreas(),(t=n.valueLegend)&&(t=AmCharts.processObject(t,AmCharts.ValueLegend,n.theme),n.valueLegend=t,t.init(n,i)),n.objectList&&(n.objectList=AmCharts.processObject(n.objectList,AmCharts.ObjectList),i=n.objectList)&&(n.clearObjectList(),i.init(n)),clearInterval(n.mapInterval),n.mapInterval=setInterval(function(){n.update.call(n)},AmCharts.updateRate),n.dispDUpd(),n.linkSet.toFront(),n.chartCreated=!0):n.cleanChart()},hideGroup:function(n){this.showHideGroup(n,!1)},showGroup:function(n){this.showHideGroup(n,!0)},showHideGroup:function(n,t){this.showHideReal(this.imagesProcessor.allObjects,n,t);this.showHideReal(this.areasProcessor.allObjects,n,t);this.showHideReal(this.linesProcessor.allObjects,n,t)},showHideReal:function(n,t,i){for(var u,r=0;r<n.length;r++)u=n[r],u.groupId==t&&(i?u.displayObject.show():u.displayObject.hide())},update:function(){this.zoomControl.update()},animateMap:function(){var n=this;n.totalFrames=1e3*n.zoomDuration/AmCharts.updateRate;n.totalFrames+=1;n.frame=0;n.tweenPercent=0;setTimeout(function(){n.updateSize.call(n)},AmCharts.updateRate)},updateSize:function(){var n=this,t=n.totalFrames;n.preventHover=!0;n.frame<=t?(n.frame++,t=AmCharts.easeOutSine(0,n.frame,0,1,t),1<=t?(t=1,n.preventHover=!1,n.wheelBusy=!1):setTimeout(function(){n.updateSize.call(n)},AmCharts.updateRate),.8<t&&(n.preventHover=!1)):(t=1,n.preventHover=!1,n.wheelBusy=!1);n.tweenPercent=t;n.rescaleMapAndObjects()},rescaleMapAndObjects:function(){var i=this.initialScale,r=this.initialX,t=this.initialY,n=this.tweenPercent,i=i+(this.finalScale-i)*n,u,f;if(this.mapContainer.translate(r+(this.finalX-r)*n,t+(this.finalY-t)*n,i),this.areasSettings.adjustOutlineThickness)for(r=this.dataProvider.areas,t=0;t<r.length;t++)u=r[t],f=u.displayObject,f&&f.setAttr("stroke-width",u.outlineThicknessReal/i);this.rescaleObjects();this.positionChanged();this.updateSmallMap();1==n&&(n={type:"zoomCompleted",chart:this},this.fire(n.type,n))},updateSmallMap:function(){this.smallMap&&this.smallMap.update()},rescaleObjects:function(){for(var r=this.mapContainer.scale,i=this.imagesProcessor.objectsToResize,t,u,n=0;n<i.length;n++)t=i[n].image,t.translate(t.x,t.y,i[n].scale/r,!0);if(i=this.linesProcessor,t=i.linesToResize)for(n=0;n<t.length;n++)u=t[n],u.line.setAttr("stroke-width",u.thickness/r);for(i=i.objectsToResize,n=0;n<i.length;n++)t=i[n],t.translate(t.x,t.y,1/r)},handleTouchStart:function(n){this.handleMouseMove(n);this.handleMouseDown(n)},handleTouchEnd:function(n){this.previousDistance=NaN;this.handleReleaseOutside(n)},handleMouseDown:function(n){if(AmCharts.resetMouseOver(),this.mouseIsOver=!0,this.chartCreated&&!this.preventHover&&(this.dragMap&&(this.stopAnimation(),this.isDragging=!0,this.mapContainerClickX=this.mapContainer.x,this.mapContainerClickY=this.mapContainer.y,this.panEventsEnabled||n&&n.preventDefault&&n.preventDefault()),n||(n=window.event),n.shiftKey&&!0===this.developerMode&&this.getDevInfo(),n&&n.touches)){var i=this.mouseX,r=this.mouseY,t=n.touches.item(1);t&&(n=t.pageX-AmCharts.findPosX(this.div),t=t.pageY-AmCharts.findPosY(this.div),this.middleXP=(i+(n-i)/2)/this.realWidth,this.middleYP=(r+(t-r)/2)/this.realHeight)}},stopDrag:function(){this.isDragging&&(this.isDragging=!1)},handleReleaseOutside:function(){if(AmCharts.isModern&&!this.preventHover){this.stopDrag();this.zoomControl&&this.zoomControl.draggerUp();this.mapWasDragged=!1;var n=this.mapContainer,t=this.mapContainerClickX,i=this.mapContainerClickY;!isNaN(t)&&!isNaN(i)&&(2<Math.abs(n.x-t)||Math.abs(n.y-i))&&(this.mapWasDragged=!0,n={type:"dragCompleted",zoomX:this.zoomX(),zoomY:this.zoomY(),zoomLevel:this.zoomLevel(),chart:this},this.fire(n.type,n));!this.mouseIsOver||this.mapWasDragged||this.skipClick||(n={type:"click",x:this.mouseX,y:this.mouseY,chart:this},this.fire(n.type,n),this.skipClick=!1);this.mapContainerClickY=this.mapContainerClickX=NaN;this.objectWasClicked=!1;this.zoomOnDoubleClick&&this.mouseIsOver&&(n=(new Date).getTime(),200>n-this.previousClickTime&&20<n-this.previousClickTime&&this.doDoubleClickZoom(),this.previousClickTime=n)}},handleTouchMove:function(n){this.handleMouseMove(n)},resetPinch:function(){this.mapWasPinched=!1},handleMouseMove:function(n){var t=this,r;AmCharts.AmMap.base.handleMouseMove.call(t,n);var l=t.previuosMouseX,a=t.previuosMouseY,s=t.mouseX,h=t.mouseY,e=t.zoomControl;isNaN(l)&&(l=s);isNaN(a)&&(a=h);t.mouse2X=NaN;t.mouse2Y=NaN;n&&n.touches&&(r=n.touches.item(1),r&&(t.mouse2X=r.pageX-AmCharts.findPosX(t.div),t.mouse2Y=r.pageY-AmCharts.findPosY(t.div)));var r=t.mapContainer,f=t.mouse2X,i=t.mouse2Y;if(t.pinchTO&&clearTimeout(t.pinchTO),t.pinchTO=setTimeout(function(){t.resetPinch.call(t)},1e3),!isNaN(f)){t.stopDrag();n.preventDefault&&n.preventDefault();var f=Math.sqrt(Math.pow(f-s,2)+Math.pow(i-h,2)),u=t.previousDistance,i=Math.max(t.realWidth,t.realHeight);if(5>Math.abs(u-f)&&(t.isDragging=!0),!isNaN(u)){var o=5*Math.abs(u-f)/i,i=r.scale,i=AmCharts.fitToBounds(u<f?i+i*o:i-i*o,e.minZoomLevel,e.maxZoomLevel),e=t.zoomLevel(),c=t.middleXP,u=t.middleYP,o=t.realHeight/t.mapHeight,v=t.realWidth/t.mapWidth,c=(t.zoomX()-c*v)*(i/e)+c*v,u=(t.zoomY()-u*o)*(i/e)+u*o;.1<Math.abs(i-e)&&(t.zoomTo(i,c,u,!0),t.mapWasPinched=!0,clearTimeout(t.pinchTO))}t.previousDistance=f}t.isDragging&&(t.hideBalloon(),t.positionChanged(),r.translate(r.x+(s-l),r.y+(h-a),r.scale),t.updateSmallMap(),n&&n.preventDefault&&n.preventDefault());t.previuosMouseX=s;t.previuosMouseY=h},selectObject:function(n){var t=this,i,h,r,s,f,e,u,o;if(n||(n=t.dataProvider),n.isOver=!1,i=n.linkToObject,"string"==typeof i&&(i=t.getObjectById(i)),n.useTargetsZoomValues&&i&&(n.zoomX=i.zoomX,n.zoomY=i.zoomY,n.zoomLatitude=i.zoomLatitude,n.zoomLongitude=i.zoomLongitude,n.zoomLevel=i.zoomLevel),h=t.selectedObject,h&&t.returnInitialColor(h),t.selectedObject=n,r=!1,"MapArea"==n.objectType&&(n.autoZoomReal&&(r=!0),s=t.areasSettings.selectedOutlineColor),i&&!r&&("string"==typeof i&&(i=t.getObjectById(i)),isNaN(n.zoomLevel)&&isNaN(n.zoomX)&&isNaN(n.zoomY))){if(t.extendMapData(i))return;t.selectObject(i);return}if(t.allowMultipleDescriptionWindows||t.closeAllDescriptions(),clearTimeout(t.selectedObjectTimeOut),clearTimeout(t.processObjectsTimeOut),i=t.zoomDuration,!r&&isNaN(n.zoomLevel)&&isNaN(n.zoomX)&&isNaN(n.zoomY)?(t.showDescriptionAndGetUrl(),t.processObjects()):(t.selectedObjectTimeOut=setTimeout(function(){t.showDescriptionAndGetUrl.call(t)},1e3*i+200),t.showObjectsAfterZoom?t.processObjectsTimeOut=setTimeout(function(){t.processObjects.call(t)},1e3*i+200):t.processObjects()),(r=n.displayObject)?(r.toFront(),r.setAttr("stroke",n.outlineColorReal),f=n.selectedColorReal,void 0!==f&&r.setAttr("fill",f),void 0!==s&&r.setAttr("stroke",s),"MapLine"==n.objectType&&(e=n.lineSvg,e&&e.setAttr("stroke",f),u=n.arrowSvg,u&&(u.setAttr("fill",f),u.setAttr("stroke",f))),(i=n.imageLabel)&&(o=n.selectedLabelColorReal,void 0!==o&&i.setAttr("fill",o)),n.selectable||(r.setAttr("cursor","default"),i&&i.setAttr("cursor","default"))):t.returnInitialColorReal(n),r=n.groupId)for(i=t.getGroupById(r),o=0;o<i.length;o++)(u=i[o],u.isOver=!1,r=u.displayObject)&&(e=u.selectedColorReal,void 0!==s&&r.setAttr("stroke",s),void 0!==e?r.setAttr("fill",e):t.returnInitialColor(u),"MapLine"==u.objectType&&((e=u.lineSvg)&&e.setAttr("stroke",f),u=u.arrowSvg))&&(u.setAttr("fill",f),u.setAttr("stroke",f));t.zoomToSelectedObject();h!=n&&(n={type:"selectedObjectChanged",chart:t},t.fire(n.type,n))},returnInitialColor:function(n,t){var i,r;if(this.returnInitialColorReal(n),t&&(n.isFirst=!1),i=n.groupId,i)for(i=this.getGroupById(i),r=0;r<i.length;r++)this.returnInitialColorReal(i[r]),t&&(i[r].isFirst=!1)},closeAllDescriptions:function(){this.descriptionsDiv.innerHTML=""},returnInitialColorReal:function(n){var i,t,r;n.isOver=!1;i=n.displayObject;i&&(i.toPrevious(),"MapImage"==n.objectType&&(t=n.tempScale,isNaN(t)||i.translate(i.x,i.y,t,!0),n.tempScale=NaN),t=n.colorReal,"MapLine"==n.objectType&&(r=n.lineSvg,r&&r.setAttr("stroke",t),(r=n.arrowSvg)&&(r.setAttr("fill",t),r.setAttr("stroke",t))),n.showAsSelected&&(t=n.selectedColorReal),"bubble"==n.type&&(t=void 0),void 0!==t&&i.setAttr("fill",t),(r=n.image)&&r.setAttr("fill",t),i.setAttr("stroke",n.outlineColorReal),"MapArea"==n.objectType&&(t=1,this.areasSettings.adjustOutlineThickness&&(t=this.zoomLevel()),i.setAttr("fill-opacity",n.alphaReal),i.setAttr("stroke-opacity",n.outlineAlphaReal),i.setAttr("stroke-width",n.outlineThicknessReal/t)),(t=n.pattern)&&i.pattern(t,this.mapScale),(i=n.imageLabel)&&!n.labelInactive&&i.setAttr("fill",n.labelColorReal))},zoomToRectangle:function(n,t,i,r){var u=this.realWidth,e=this.realHeight,f=this.mapSet.scale,o=this.zoomControl,u=AmCharts.fitToBounds(i/u>r/e?.8*u/(i*f):.8*e/(r*f),o.minZoomLevel,o.maxZoomLevel);this.zoomToMapXY(u,(n+i/2)*f,(t+r/2)*f)},zoomToLatLongRectangle:function(n,t,i,r){var u=this.dataProvider,f=this.zoomControl,e=Math.abs(i-n),o=Math.abs(t-r),s=Math.abs(u.rightLongitude-u.leftLongitude),u=Math.abs(u.topLatitude-u.bottomLatitude),f=AmCharts.fitToBounds(e/s>o/u?.8*s/e:.8*u/o,f.minZoomLevel,f.maxZoomLevel);this.zoomToLongLat(f,n+(i-n)/2,r+(t-r)/2)},getGroupById:function(n){var t=[];return this.getGroup(this.imagesProcessor.allObjects,n,t),this.getGroup(this.linesProcessor.allObjects,n,t),this.getGroup(this.areasProcessor.allObjects,n,t),t},zoomToGroup:function(n){var i,r,u,f,e;for(n="object"==typeof n?n:this.getGroupById(n),e=0;e<n.length;e++){var t=n[e].displayObject.getBBox(),o=t.y,s=t.y+t.height,h=t.x,t=t.x+t.width;(o<i||isNaN(i))&&(i=o);(s>f||isNaN(f))&&(f=s);(h<r||isNaN(r))&&(r=h);(t>u||isNaN(u))&&(u=t)}n=this.mapSet.getBBox();r-=n.x;u-=n.x;f-=n.y;i-=n.y;this.zoomToRectangle(r,i,u-r,f-i)},getGroup:function(n,t,i){var r,u;if(n)for(r=0;r<n.length;r++)u=n[r],u.groupId==t&&i.push(u)},zoomToStageXY:function(n,t,i,r){if(!this.objectWasClicked){var u=this.zoomControl;n=AmCharts.fitToBounds(n,u.minZoomLevel,u.maxZoomLevel);u=this.zoomLevel();i=this.coordinateToLatitude((i-this.mapContainer.y)/u);t=this.coordinateToLongitude((t-this.mapContainer.x)/u);this.zoomToLongLat(n,t,i,r)}},zoomToLongLat:function(n,t,i,r){t=this.longitudeToCoordinate(t);i=this.latitudeToCoordinate(i);this.zoomToMapXY(n,t,i,r)},zoomToMapXY:function(n,t,i,r){var u=this.mapWidth,f=this.mapHeight;this.zoomTo(n,-(t/u)*n+this.realWidth/u/2,-(i/f)*n+this.realHeight/f/2,r)},zoomToObject:function(n){var i=n.zoomLatitude,o=n.zoomLongitude,f=n.zoomLevel,r=this.zoomInstantly,t=n.zoomX,s=n.zoomY,u=this.realWidth,e=this.realHeight;isNaN(f)||(isNaN(i)||isNaN(o)?this.zoomTo(f,t,s,r):this.zoomToLongLat(f,o,i,r));this.zoomInstantly=!1;"MapImage"==n.objectType&&isNaN(n.zoomX)&&isNaN(n.zoomY)&&isNaN(n.zoomLatitude)&&isNaN(n.zoomLongitude)&&!isNaN(n.latitude)&&!isNaN(n.longitude)&&this.zoomToLongLat(n.zoomLevel,n.longitude,n.latitude);"MapArea"==n.objectType&&(t=n.displayObject.getBBox(),i=this.mapScale,o=t.x*i,f=t.y*i,r=t.width*i,t=t.height*i,u=n.autoZoomReal&&isNaN(n.zoomLevel)?r/u>t/e?.8*u/r:.8*e/t:n.zoomLevel,e=this.zoomControl,u=AmCharts.fitToBounds(u,e.minZoomLevel,e.maxZoomLevel),isNaN(n.zoomX)&&isNaN(n.zoomY)&&isNaN(n.zoomLatitude)&&isNaN(n.zoomLongitude)&&(n=this.mapSet.getBBox(),this.zoomToMapXY(u,-n.x*i+o+r/2,-n.y*i+f+t/2)))},zoomToSelectedObject:function(){this.zoomToObject(this.selectedObject)},zoomTo:function(n,t,i,r){var u=this.zoomControl;n=AmCharts.fitToBounds(n,u.minZoomLevel,u.maxZoomLevel);u=this.zoomLevel();isNaN(t)&&(t=this.realWidth/this.mapWidth,t=(this.zoomX()-.5*t)*(n/u)+.5*t);isNaN(i)&&(i=this.realHeight/this.mapHeight,i=(this.zoomY()-.5*i)*(n/u)+.5*i);this.stopAnimation();isNaN(n)||(u=this.mapContainer,this.initialX=u.x,this.initialY=u.y,this.initialScale=u.scale,this.finalX=this.mapWidth*t,this.finalY=this.mapHeight*i,this.finalScale=n,this.finalX!=this.initialX||this.finalY!=this.initialY||this.finalScale!=this.initialScale?r?(this.tweenPercent=1,this.rescaleMapAndObjects(),this.wheelBusy=!1):this.animateMap():this.wheelBusy=!1)},loadXml:function(n){var t;t=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.overrideMimeType&&t.overrideMimeType("text/xml");t.open("GET",n,!1);t.send();this.parseXMLObject(t.responseXML);this.svgData&&this.buildEverything()},stopAnimation:function(){this.frame=this.totalFrames},processObjects:function(){var n=this.container,u=this.stageImagesContainer,t,i,r;u&&u.remove();this.stageImagesContainer=u=n.set();this.trendLinesSet.push(u);t=this.stageLinesContainer;t&&t.remove();this.stageLinesContainer=t=n.set();this.trendLinesSet.push(t);i=this.mapImagesContainer;i&&i.remove();this.mapImagesContainer=i=n.set();this.mapContainer.push(i);r=this.mapLinesContainer;r&&r.remove();this.mapLinesContainer=r=n.set();this.mapContainer.push(r);this.linesAboveImages?(i.toFront(),u.toFront(),r.toFront(),t.toFront()):(r.toFront(),t.toFront(),i.toFront(),u.toFront());(n=this.selectedObject)&&(this.imagesProcessor.reset(),this.linesProcessor.reset(),this.linesAboveImages?(this.imagesProcessor.process(n),this.linesProcessor.process(n)):(this.linesProcessor.process(n),this.imagesProcessor.process(n)));this.rescaleObjects()},processAreas:function(){this.areasProcessor.process(this.dataProvider)},buildSVGMap:function(){var n=this.svgData.g.path,f=this.container,u=f.set(),i;for(void 0===n.length&&(n=[n]),i=0;i<n.length;i++){var t=n[i],e=t.title,r=f.path(t.d);r.id=t.id;this.svgAreasById[t.id]={area:r,title:e,className:t["class"]};this.svgAreas.push(r);u.push(r)}this.mapSet=u;this.mapContainer.push(u);this.resizeMap()},addObjectEventListeners:function(n,t){var i=this;n.mouseup(function(n){i.clickMapObject(t,n)}).mouseover(function(n){i.rollOverMapObject(t,!0,n)}).mouseout(function(n){i.rollOutMapObject(t,n)}).touchend(function(n){i.clickMapObject(t,n)}).touchstart(function(n){i.rollOverMapObject(t,!0,n)})},checkIfSelected:function(n){var t=this.selectedObject,i;if(t==n)return!0;if(t=t.groupId)for(t=this.getGroupById(t),i=0;i<t.length;i++)if(t[i]==n)return!0;return!1},clearMap:function(){this.chartDiv.innerHTML="";this.clearObjectList()},clearObjectList:function(){var n=this.objectList;n&&n.div&&(n.div.innerHTML="")},checkIfLast:function(n){if(n){var t=n.parentNode;if(t&&t.lastChild==n)return!0}return!1},showAsRolledOver:function(n){var r=n.displayObject,t,i,u;n.showAsSelected||!r||n.isOver||(r.node.onmouseout=function(){},r.node.onmouseover=function(){},r.node.onclick=function(){},n.isFirst||(r.toFront(),n.isFirst=!0),t=n.rollOverColorReal,void 0!=t&&("MapImage"==n.objectType?(i=n.image)&&i.setAttr("fill",t):"MapLine"==n.objectType?((i=n.lineSvg)&&i.setAttr("stroke",t),i=n.arrowSvg)&&(i.setAttr("fill",t),i.setAttr("stroke",t)):r.setAttr("fill",t)),(t=n.imageLabel)&&!n.labelInactive&&(i=n.labelRollOverColorReal,void 0!=i&&t.setAttr("fill",i)),t=n.rollOverOutlineColorReal,void 0!=t&&("MapImage"==n.objectType?(i=n.image)&&i.setAttr("stroke",t):r.setAttr("stroke",t)),"MapArea"==n.objectType&&(t=this.areasSettings,i=n.rollOverAlphaReal,isNaN(i)||r.setAttr("fill-opacity",i),i=t.rollOverOutlineAlpha,isNaN(i)||r.setAttr("stroke-opacity",i),i=1,this.areasSettings.adjustOutlineThickness&&(i=this.zoomLevel()),u=t.rollOverOutlineThickness,isNaN(u)||r.setAttr("stroke-width",u/i),(t=t.rollOverPattern)&&r.pattern(t,this.mapScale)),"MapImage"==n.objectType&&(t=n.rollOverScaleReal,isNaN(t)||1==t||(n.tempScale=r.scale,r.translate(r.x,r.y,r.scale*t,!0))),this.useHandCursorOnClickableOjects&&this.checkIfClickable(n)&&r.setAttr("cursor","pointer"),this.addObjectEventListeners(r,n),n.isOver=!0)},rollOverMapObject:function(n,t,i){var r,u,f,e;if(this.chartCreated&&(this.handleMouseMove(),r=this.previouslyHovered,r&&r!=n?(!1===this.checkIfSelected(r)&&(this.returnInitialColor(r,!0),this.previouslyHovered=null),this.hideBalloon()):clearTimeout(this.hoverInt),!this.preventHover)){if(!1===this.checkIfSelected(n)){if(r=n.groupId)for(r=this.getGroupById(r),u=0;u<r.length;u++)r[u]!=n&&this.showAsRolledOver(r[u]);this.showAsRolledOver(n)}else(r=n.displayObject)&&(this.allowClickOnSelectedObject?r.setAttr("cursor","pointer"):r.setAttr("cursor","default"));this.showDescriptionOnHover?this.showDescription(n):(this.showBalloonOnSelectedObject||!this.checkIfSelected(n))&&!1!==t&&(u=this.balloon,t=n.colorReal,r="",void 0!==t&&this.useObjectColorForBalloon||(t=u.fillColor),(u=n.balloonTextReal)&&(r=this.formatString(u,n)),this.balloonLabelFunction&&(r=this.balloonLabelFunction(n,this)),r&&""!==r)&&("MapArea"==n.objectType&&(e=this.getAreaCenterLatitude(n),f=this.getAreaCenterLongitude(n),e=this.latitudeToY(e),f=this.longitudeToX(f)),this.showBalloon(r,t,this.mouseIsOver,f,e));i={type:"rollOverMapObject",mapObject:n,chart:this,event:i};this.fire(i.type,i);this.previouslyHovered=n}},longitudeToX:function(n){return this.longitudeToCoordinate(n)*this.zoomLevel()+this.mapContainer.x},latitudeToY:function(n){return this.latitudeToCoordinate(n)*this.zoomLevel()+this.mapContainer.y},rollOutMapObject:function(n,t){if(this.hideBalloon(),this.chartCreated&&n.isOver){this.checkIfSelected(n)||this.returnInitialColor(n);var i={type:"rollOutMapObject",mapObject:n,chart:this,event:t};this.fire(i.type,i)}},formatString:function(n,t){var i=this.nf,r=this.pf,e=t.title,f;void 0==e&&(e="");var u=t.value,u=isNaN(u)?"":AmCharts.formatNumber(u,i),i=t.percents,i=isNaN(i)?"":AmCharts.formatNumber(i,r),r=t.description;return void 0==r&&(r=""),f=t.customData,void 0==f&&(f=""),AmCharts.massReplace(n,{"[[title]]":e,"[[value]]":u,"[[percent]]":i,"[[description]]":r,"[[customData]]":f})},clickMapObject:function(n,t){if(this.hideBalloon(),this.chartCreated&&!this.preventHover&&!this.mapWasDragged&&this.checkIfClickable(n)&&!this.mapWasPinched){this.selectObject(n);var i={type:"clickMapObject",mapObject:n,chart:this,event:t};this.fire(i.type,i);this.objectWasClicked=!0}},checkIfClickable:function(n){var t=this.allowClickOnSelectedObject;return this.selectedObject==n&&t?!0:this.selectedObject!=n||t?!0===n.selectable||"MapArea"==n.objectType&&n.autoZoomReal||n.url||n.linkToObject||0<n.images.length||0<n.lines.length||!isNaN(n.zoomLevel)||!isNaN(n.zoomX)||!isNaN(n.zoomY)||n.description?!0:!1:!1},handleResize:function(){(AmCharts.isPercents(this.width)||AmCharts.isPercents(this.height))&&this.invalidateSize();this.renderFix()},resizeMap:function(){var i=this.mapSet;if(i)if(this.fitMapToContainer){var t=i.getBBox(),n=this.realWidth,f=this.realHeight,r=t.width,u=t.height,n=r/n>u/f?n/r:f/u;i.translate(-t.x*n,-t.y*n,n);this.mapScale=n;this.mapHeight=u*n;this.mapWidth=r*n}else t=group.transform.match(/([\-]?[\d.]+)/g),i.translate(t[0],t[1],t[2])},zoomIn:function(){this.skipClick=!0;var n=this.zoomLevel()*this.zoomControl.zoomFactor;this.zoomTo(n)},zoomOut:function(){this.skipClick=!0;var n=this.zoomLevel()/this.zoomControl.zoomFactor;this.zoomTo(n)},moveLeft:function(){this.skipClick=!0;var n=this.zoomX()+this.zoomControl.panStepSize;this.zoomTo(this.zoomLevel(),n,this.zoomY())},moveRight:function(){this.skipClick=!0;var n=this.zoomX()-this.zoomControl.panStepSize;this.zoomTo(this.zoomLevel(),n,this.zoomY())},moveUp:function(){this.skipClick=!0;var n=this.zoomY()+this.zoomControl.panStepSize;this.zoomTo(this.zoomLevel(),this.zoomX(),n)},moveDown:function(){this.skipClick=!0;var n=this.zoomY()-this.zoomControl.panStepSize;this.zoomTo(this.zoomLevel(),this.zoomX(),n)},zoomX:function(){return this.mapSet?Math.round(1e4*this.mapContainer.x/this.mapWidth)/1e4:NaN},zoomY:function(){return this.mapSet?Math.round(1e4*this.mapContainer.y/this.mapHeight)/1e4:NaN},goHome:function(){this.selectObject(this.dataProvider);var n={type:"homeButtonClicked",chart:this};this.fire(n.type,n)},zoomLevel:function(){return Math.round(1e5*this.mapContainer.scale)/1e5},showDescriptionAndGetUrl:function(){var t=this.selectedObject,n,i;if(t)if(this.showDescription(),n=t.url,n)AmCharts.getURL(n,t.urlTarget);else if(n=t.linkToObject){if("string"==typeof n&&(i=this.getObjectById(n),i)){this.selectObject(i);return}n&&t.passZoomValuesToTarget&&(n.zoomLatitude=this.zoomLatitude(),n.zoomLongitude=this.zoomLongitude(),n.zoomLevel=this.zoomLevel());this.extendMapData(n)||this.selectObject(n)}},extendMapData:function(n){var t=n.objectType;if("MapImage"!=t&&"MapArea"!=t&&"MapLine"!=t)return AmCharts.extend(n,new AmCharts.MapData,!0),this.dataProvider=n,this.zoomInstantly=!0,this.validateData(),!0},showDescription:function(n){var t;if(n||(n=this.selectedObject),this.allowMultipleDescriptionWindows||this.closeAllDescriptions(),n.description){t=n.descriptionWindow;t&&t.close();t=new AmCharts.DescriptionWindow;n.descriptionWindow=t;var u=n.descriptionWindowWidth,f=n.descriptionWindowHeight,i=n.descriptionWindowX,r=n.descriptionWindowY;isNaN(i)&&(i=this.mouseX,i=i>this.realWidth/2?i-u-20:i+20);isNaN(r)&&(r=this.mouseY);t.maxHeight=f;t.show(this,this.descriptionsDiv,n.description,n.title);n=t.div.style;n.width=u+"px";n.maxHeight=f+"px";n.left=i+"px";n.top=r+"px"}},parseXMLObject:function(n){var t={root:{}};this.parseXMLNode(t,"root",n);this.svgData=t.root.svg;this.getBounds()},getBounds:function(){var t=this.dataProvider,n;try{n=this.svgData.defs["amcharts:ammap"];t.leftLongitude=Number(n.leftLongitude);t.rightLongitude=Number(n.rightLongitude);t.topLatitude=Number(n.topLatitude);t.bottomLatitude=Number(n.bottomLatitude);t.projection=n.projection}catch(i){}},latitudeToCoordinate:function(n){var t,r=this.dataProvider,i;return this.mapSet&&(t=r.topLatitude,i=r.bottomLatitude,"mercator"==r.projection&&(n=this.mercatorLatitudeToCoordinate(n),t=this.mercatorLatitudeToCoordinate(t),i=this.mercatorLatitudeToCoordinate(i)),t=(n-t)/(i-t)*this.mapHeight),t},longitudeToCoordinate:function(n){var t,i=this.dataProvider;return this.mapSet&&(t=i.leftLongitude,t=(n-t)/(i.rightLongitude-t)*this.mapWidth),t},mercatorLatitudeToCoordinate:function(n){return 89.5<n&&(n=89.5),-89.5>n&&(n=-89.5),n=AmCharts.degreesToRadians(n),n=.5*Math.log((1+Math.sin(n))/(1-Math.sin(n))),AmCharts.radiansToDegrees(n/2)},zoomLatitude:function(){return this.coordinateToLatitude((-this.mapContainer.y+this.previousHeight/2)/this.zoomLevel())},zoomLongitude:function(){return this.coordinateToLongitude((-this.mapContainer.x+this.previousWidth/2)/this.zoomLevel())},getAreaCenterLatitude:function(n){n=n.displayObject.getBBox();var t=this.mapScale;return n=-this.mapSet.getBBox().y*t+(n.y+n.height/2)*t,this.coordinateToLatitude(n)},getAreaCenterLongitude:function(n){n=n.displayObject.getBBox();var t=this.mapScale;return n=-this.mapSet.getBBox().x*t+(n.x+n.width/2)*t,this.coordinateToLongitude(n)},coordinateToLatitude:function(n){var t;if(this.mapSet){var r=this.dataProvider,u=r.bottomLatitude,i=r.topLatitude;t=this.mapHeight;"mercator"==r.projection?(r=this.mercatorLatitudeToCoordinate(u),i=this.mercatorLatitudeToCoordinate(i),n=2*Math.atan(Math.exp(2*(n*(r-i)/t+i)*Math.PI/180))-.5*Math.PI,t=AmCharts.radiansToDegrees(n)):t=n/t*(u-i)+i}return Math.round(1e6*t)/1e6},coordinateToLongitude:function(n){var i,t=this.dataProvider;return this.mapSet&&(i=n/this.mapWidth*(t.rightLongitude-t.leftLongitude)+t.leftLongitude),Math.round(1e6*i)/1e6},milesToPixels:function(n){var t=this.dataProvider;return this.mapWidth/(t.rightLongitude-t.leftLongitude)*n/69.172},kilometersToPixels:function(n){var t=this.dataProvider;return this.mapWidth/(t.rightLongitude-t.leftLongitude)*n/111.325},handleBackgroundClick:function(n){var t;if(this.backgroundZoomsToTop&&!this.mapWasDragged)if(t=this.dataProvider,this.checkIfClickable(t))this.clickMapObject(t);else{n=t.zoomX;var i=t.zoomY,r=t.zoomLongitude,u=t.zoomLatitude,t=t.zoomLevel;isNaN(n)||isNaN(i)||this.zoomTo(t,n,i);isNaN(r)||isNaN(u)||this.zoomToLongLat(t,r,u,!0)}},parseXMLNode:function(n,t,i,r){var h,u,s,c,o;if(void 0===r&&(r=""),i){for(c=i.childNodes.length,h=0;h<c;h++){u=i.childNodes[h];var f=u.nodeName,e=u.nodeValue?this.trim(u.nodeValue):"",l=!1;if(u.attributes&&0<u.attributes.length&&(l=!0),0!==u.childNodes.length||""!==e||!1!==l)if(3==u.nodeType||4==u.nodeType){if(""!==e){u=0;for(s in n[t])n[t].hasOwnProperty(s)&&u++;u?n[t]["#text"]=e:n[t]=e}}else if(1==u.nodeType){if(void 0!==n[t][f]?void 0===n[t][f].length?(o=n[t][f],n[t][f]=[],n[t][f].push(o),n[t][f].push({}),o=n[t][f][1]):"object"==typeof n[t][f]&&(n[t][f].push({}),o=n[t][f][n[t][f].length-1]):(n[t][f]={},o=n[t][f]),u.attributes&&u.attributes.length)for(e=0;e<u.attributes.length;e++)o[u.attributes[e].name]=u.attributes[e].value;void 0!==n[t][f].length?this.parseXMLNode(n[t][f],n[t][f].length-1,u,r+"  "):this.parseXMLNode(n[t],f,u,r+"  ")}}u=0;i="";for(s in n[t])"#text"==s?i=n[t][s]:u++;0===u&&void 0===n[t].length&&(n[t]=i)}},doDoubleClickZoom:function(){if(!this.mapWasDragged){var n=this.zoomLevel()*this.zoomControl.zoomFactor;this.zoomToStageXY(n,this.mouseX,this.mouseY)}},getDevInfo:function(){var n=this.zoomLevel(),n={chart:this,type:"writeDevInfo",zoomLevel:n,zoomX:this.zoomX(),zoomY:this.zoomY(),zoomLatitude:this.zoomLatitude(),zoomLongitude:this.zoomLongitude(),latitude:this.coordinateToLatitude((this.mouseY-this.mapContainer.y)/n),longitude:this.coordinateToLongitude((this.mouseX-this.mapContainer.x)/n),left:this.mouseX,top:this.mouseY,right:this.realWidth-this.mouseX,bottom:this.realHeight-this.mouseY,percentLeft:Math.round(this.mouseX/this.realWidth*100)+"%",percentTop:Math.round(this.mouseY/this.realHeight*100)+"%",percentRight:Math.round((this.realWidth-this.mouseX)/this.realWidth*100)+"%",percentBottom:Math.round((this.realHeight-this.mouseY)/this.realHeight*100)+"%"},t="zoomLevel:"+n.zoomLevel+", zoomLongitude:"+n.zoomLongitude+", zoomLatitude:"+n.zoomLatitude+"\n",t=t+("zoomX:"+n.zoomX+", zoomY:"+n.zoomY+"\n"),t=t+("latitude:"+n.latitude+", longitude:"+n.longitude+"\n"),t=t+("left:"+n.left+", top:"+n.top+"\n"),t=t+("right:"+n.right+", bottom:"+n.bottom+"\n"),t=t+('left:"'+n.percentLeft+'", top:"'+n.percentTop+'"\n'),t=t+('right:"'+n.percentRight+'", bottom:"'+n.percentBottom+'"\n');return n.str=t,this.fire(n.type,n),n},getXY:function(n,t,i){return void 0!==n&&(-1!=String(n).indexOf("%")?(n=Number(n.split("%").join("")),i&&(n=100-n),n=Number(n)*t/100):i&&(n=t-n)),n},getObjectById:function(n){var i=this.dataProvider,t;return i.areas&&(t=this.getObject(n,i.areas),t)?t:(t=this.getObject(n,i.images))?t:(n=this.getObject(n,i.lines))?n:void 0},getObject:function(n,t){var r,i,u;if(t)for(r=0;r<t.length;r++){if(i=t[r],i.id==n)return i;if(i.areas&&(u=this.getObject(n,i.areas),u)||(u=this.getObject(n,i.images)))return u;if(i=this.getObject(n,i.lines))return i}},parseData:function(){var n=this.dataProvider;this.processObject(n.areas,n,"area");this.processObject(n.images,n,"image");this.processObject(n.lines,n,"line")},processObject:function(n,t,i){var u,r;if(n)for(u=0;u<n.length;u++)r=n[u],r.parentObject=t,"area"==i&&AmCharts.extend(r,new AmCharts.MapArea(this.theme),!0),"image"==i&&(r=AmCharts.extend(r,new AmCharts.MapImage(this.theme),!0)),"line"==i&&(r=AmCharts.extend(r,new AmCharts.MapLine(this.theme),!0)),n[u]=r,r.areas&&this.processObject(r.areas,r,"area"),r.images&&this.processObject(r.images,r,"image"),r.lines&&this.processObject(r.lines,r,"line")},positionChanged:function(){var n={type:"positionChanged",zoomX:this.zoomX(),zoomY:this.zoomY(),zoomLevel:this.zoomLevel(),chart:this};this.fire(n.type,n)},getX:function(n,t){return this.getXY(n,this.realWidth,t)},getY:function(n,t){return this.getXY(n,this.realHeight,t)},trim:function(n){if(n){for(var t=0;t<n.length;t++)if(-1===" \n\r\t\f\x0b            ​\u2028\u2029　".indexOf(n.charAt(t))){n=n.substring(t);break}for(t=n.length-1;0<=t;t--)if(-1===" \n\r\t\f\x0b            ​\u2028\u2029　".indexOf(n.charAt(t))){n=n.substring(0,t+1);break}return-1===" \n\r\t\f\x0b            ​\u2028\u2029　".indexOf(n.charAt(0))?n:""}}});AmCharts.ZoomControl=AmCharts.Class({construct:function(n){this.cname="ZoomControl";this.panStepSize=.1;this.zoomFactor=2;this.maxZoomLevel=64;this.minZoomLevel=1;this.zoomControlEnabled=this.panControlEnabled=!0;this.buttonRollOverColor="#CC0000";this.buttonFillColor="#990000";this.buttonFillAlpha=1;this.buttonBorderColor="#FFFFFF";this.buttonIconAlpha=this.buttonBorderThickness=this.buttonBorderAlpha=1;this.gridColor="#FFFFFF";this.homeIconFile="homeIcon.gif";this.gridBackgroundColor="#000000";this.gridBackgroundAlpha=.15;this.gridAlpha=1;this.buttonSize=18;this.iconSize=11;this.buttonCornerRadius=0;this.gridHeight=150;this.top=this.left=10;AmCharts.applyTheme(this,n,this.cname)},init:function(n,t){var i=this,w,r,s,f,g,k;i.chart=n;AmCharts.remove(i.set);w=t.set();w.translate(n.getX(i.left),n.getY(i.top));var u=i.buttonSize,h=i.buttonFillColor,o=i.buttonFillAlpha,v=i.buttonBorderThickness,c=i.buttonBorderColor,y=i.buttonBorderAlpha,l=i.buttonCornerRadius,a=i.buttonRollOverColor,b=i.gridHeight,e=i.zoomFactor,d=i.minZoomLevel,nt=i.maxZoomLevel,p=i.buttonIconAlpha;if(i.previousDY=NaN,i.zoomControlEnabled){for(r=t.set(),w.push(r),i.set=w,i.zoomSet=r,f=AmCharts.rect(t,u+6,b+2*u+6,i.gridBackgroundColor,i.gridBackgroundAlpha,0,0,0,4),f.translate(-3,-3),f.mouseup(function(){i.handleBgUp()}),r.push(f),f=new AmCharts.SimpleButton,f.setIcon(n.pathToImages+"plus.gif",i.iconSize),f.setClickHandler(n.zoomIn,n),f.init(t,u,u,h,o,v,c,y,l,a,p),r.push(f.set),f=new AmCharts.SimpleButton,f.setIcon(n.pathToImages+"minus.gif",i.iconSize),f.setClickHandler(n.zoomOut,n),f.init(t,u,u,h,o,v,c,y,l,a,p),f.set.translate(0,b+u),r.push(f.set),s=Math.log(nt/d)/Math.log(e)+1,f=b/s,g=1;g<s;g++)k=u+g*f,k=AmCharts.line(t,[1,u-2],[k,k],i.gridColor,i.gridAlpha,1),r.push(k);s=new AmCharts.SimpleButton;s.setDownHandler(i.draggerDown,i);s.setClickHandler(i.draggerUp,i);s.init(t,u,f,h,o,v,c,y,l,a);r.push(s.set);i.dragger=s.set;i.previousY=NaN;b-=f;d=Math.log(d/100)/Math.log(e);e=Math.log(nt/100)/Math.log(e);i.realStepSize=b/(e-d);i.realGridHeight=b;i.stepMax=e}i.panControlEnabled&&(e=t.set(),w.push(e),r&&r.translate(u,4*u),r=new AmCharts.SimpleButton,r.setIcon(n.pathToImages+"panLeft.gif",i.iconSize),r.setClickHandler(n.moveLeft,n),r.init(t,u,u,h,o,v,c,y,l,a,p),r.set.translate(0,u),e.push(r.set),r=new AmCharts.SimpleButton,r.setIcon(n.pathToImages+"panRight.gif",i.iconSize),r.setClickHandler(n.moveRight,n),r.init(t,u,u,h,o,v,c,y,l,a,p),r.set.translate(2*u,u),e.push(r.set),r=new AmCharts.SimpleButton,r.setIcon(n.pathToImages+"panUp.gif",i.iconSize),r.setClickHandler(n.moveUp,n),r.init(t,u,u,h,o,v,c,y,l,a,p),r.set.translate(u,0),e.push(r.set),r=new AmCharts.SimpleButton,r.setIcon(n.pathToImages+"panDown.gif",i.iconSize),r.setClickHandler(n.moveDown,n),r.init(t,u,u,h,o,v,c,y,l,a,p),r.set.translate(u,2*u),e.push(r.set),o=new AmCharts.SimpleButton,o.setIcon(n.pathToImages+i.homeIconFile,i.iconSize),o.setClickHandler(n.goHome,n),o.init(t,u,u,h,0,0,c,0,l,a,p),o.set.translate(u,u),e.push(o.set),w.push(e))},draggerDown:function(){this.chart.stopDrag();this.isDragging=!0},draggerUp:function(){this.isDragging=!1},handleBgUp:function(){var n=this.chart,t=100*Math.pow(this.zoomFactor,this.stepMax-(n.mouseY-this.zoomSet.y-this.set.y-this.buttonSize-this.realStepSize/2)/this.realStepSize);n.zoomTo(t)},update:function(){var n,f=this.zoomFactor,i=this.realStepSize,e=this.stepMax,u=this.dragger,r=this.buttonSize,t=this.chart;this.isDragging?(t.stopDrag(),n=u.y+(t.mouseY-this.previousY),n=AmCharts.fitToBounds(n,r,this.realGridHeight+r),i=100*Math.pow(f,e-(n-r)/i),t.zoomTo(i,NaN,NaN,!0)):(n=Math.log(t.zoomLevel()/100)/Math.log(f),n=(e-n)*i+r);this.previousY=t.mouseY;this.previousDY!=n&&u&&(u.translate(0,n),this.previousDY=n)}});AmCharts.SimpleButton=AmCharts.Class({construct:function(){},init:function(n,t,i,r,u,f,e,o,s,h,c){var l=this;l.rollOverColor=h;l.color=r;h=n.set();l.set=h;r=AmCharts.rect(n,t,i,r,u,f,e,o,s);h.push(r);(u=l.iconPath)&&(f=l.iconSize,n=n.image(u,(t-f)/2,(i-f)/2,f,f),h.push(n),n.setAttr("opacity",c),n.mousedown(function(){l.handleDown()}).mouseup(function(){l.handleUp()}).mouseover(function(){l.handleOver()}).mouseout(function(){l.handleOut()}));r.mousedown(function(){l.handleDown()}).mouseup(function(){l.handleUp()}).mouseover(function(){l.handleOver()}).mouseout(function(){l.handleOut()});l.bg=r},setIcon:function(n,t){this.iconPath=n;this.iconSize=t},setClickHandler:function(n,t){this.clickHandler=n;this.scope=t},setDownHandler:function(n,t){this.downHandler=n;this.scope=t},handleUp:function(){var n=this.clickHandler;n&&n.call(this.scope)},handleDown:function(){var n=this.downHandler;n&&n.call(this.scope)},handleOver:function(){this.bg.setAttr("fill",this.rollOverColor)},handleOut:function(){this.bg.setAttr("fill",this.color)}});AmCharts.SmallMap=AmCharts.Class({construct:function(n){this.cname="SmallMap";this.mapColor="#e6e6e6";this.rectangleColor="#FFFFFF";this.top=this.right=10;this.minimizeButtonWidth=16;this.backgroundColor="#9A9A9A";this.backgroundAlpha=1;this.borderColor="#FFFFFF";this.borderThickness=3;this.borderAlpha=1;this.size=.2;AmCharts.applyTheme(this,n,this.cname)},init:function(n,t){var i=this,o,s,a,v,u,e,h,c,l;i.chart=n;i.container=t;i.width=n.realWidth*i.size;i.height=n.realHeight*i.size;AmCharts.remove(i.set);o=t.set();i.set=o;s=t.set();i.allSet=s;o.push(s);i.buildSVGMap();var r=i.borderThickness,f=i.borderColor,u=AmCharts.rect(t,i.width+r,i.height+r,i.backgroundColor,i.backgroundAlpha,r,f,i.borderAlpha);u.translate(-r/2,-r/2);s.push(u);u.toBack();u=i.minimizeButtonWidth;e=new AmCharts.SimpleButton;e.setIcon(n.pathToImages+"arrowDown.gif",u);e.setClickHandler(i.minimize,i);e.init(t,u,u,f,1,1,f,1);e=e.set;i.downButtonSet=e;o.push(e);h=new AmCharts.SimpleButton;h.setIcon(n.pathToImages+"arrowUp.gif",u);h.setClickHandler(i.maximize,i);h.init(t,u,u,f,1,1,f,1);f=h.set;i.upButtonSet=f;f.hide();o.push(f);isNaN(i.top)||(a=n.getY(i.top)+r,l=0);isNaN(i.bottom)||(a=n.getY(i.bottom,!0)-i.height-r,l=i.height-u+r/2);isNaN(i.left)||(v=n.getX(i.left)+r,c=-r/2);isNaN(i.right)||(v=n.getX(i.right,!0)-i.width-r,c=i.width-u+r/2);r=t.set();r.clipRect(1,1,i.width,i.height);s.push(r);i.rectangleC=r;o.translate(v,a);e.translate(c,l);f.translate(c,l);s.mouseup(function(){i.handleMouseUp()});i.drawRectangle()},minimize:function(){this.downButtonSet.hide();this.upButtonSet.show();this.allSet.hide()},maximize:function(){this.downButtonSet.show();this.upButtonSet.hide();this.allSet.show()},buildSVGMap:function(){for(var o=this.chart,t={fill:this.mapColor,stroke:this.mapColor,"stroke-opacity":1},n=o.svgData.g.path,u=this.container,f=u.set(),r,e,i=0;i<n.length;i++)r=u.path(n[i].d).attr(t),f.push(r);this.allSet.push(f);t=f.getBBox();n=this.size*o.mapScale;u=-t.x*n;i=-t.y*n;e=r=0;o.centerMap&&(r=(this.width-t.width*n)/2,e=(this.height-t.height*n)/2);this.mapWidth=t.width*n;this.mapHeight=t.height*n;this.dx=r;this.dy=e;f.translate(u+r,i+e,n)},update:function(){var t=this.chart,n=t.zoomLevel(),i=this.width,u=t.mapContainer,t=i/(t.realWidth*n),i=i/n,n=this.height/n,r=this.rectangle;r.translate(-u.x*t+this.dx,-u.y*t+this.dy);0<i&&0<n&&(r.setAttr("width",i),r.setAttr("height",n));this.rWidth=i;this.rHeight=n},drawRectangle:function(){var n=this.rectangle;AmCharts.remove(n);n=AmCharts.rect(this.container,10,10,"#000",0,1,this.rectangleColor,1);this.rectangleC.push(n);this.rectangle=n},handleMouseUp:function(){var n=this.chart,t=n.zoomLevel();n.zoomTo(t,-((n.mouseX-this.set.x-this.dx-this.rWidth/2)/this.mapWidth)*t,-((n.mouseY-this.set.y-this.dy-this.rHeight/2)/this.mapHeight)*t)}});AmCharts.AreasProcessor=AmCharts.Class({construct:function(n){this.chart=n},process:function(n){var e,v,nt;this.updateAllAreas();this.allObjects=[];n=n.areas;for(var r=this.chart,i,g=n.length,t,f=0,tt=r.svgAreasById,y=0,o=0,u=0;u<g;u++)t=n[u],t=t.value,y<t&&(y=t),o>t&&(o=t),isNaN(t)||(f+=Math.abs(t));for(isNaN(r.minValue)||(o=r.minValue),isNaN(r.maxValue)||(y=r.maxValue),r.maxValueReal=y,r.minValueReal=o,u=0;u<g;u++)t=n[u],t.percents=isNaN(t.value)?void 0:(t.value-o)/f*100;for(u=0;u<g;u++){t=n[u];f=tt[t.id];i=r.areasSettings;f&&f.className&&(e=r.areasClasses[f.className],e&&(i=e,i=AmCharts.processObject(i,AmCharts.AreasSettings,r.theme)));var s=i.color,h=i.alpha,p=i.outlineThickness,c=i.rollOverColor,d=i.selectedColor,w=i.rollOverAlpha,l=i.outlineColor,a=i.outlineAlpha,b=i.balloonText,it=i.selectable,k=i.pattern,rt=i.rollOverOutlineColor;this.allObjects.push(t);t.chart=r;t.baseSettings=i;t.autoZoomReal=void 0==t.autoZoom?i.autoZoom:t.autoZoom;e=t.color;void 0==e&&(e=s);v=t.alpha;isNaN(v)&&(v=h);h=t.rollOverAlpha;isNaN(h)&&(h=w);isNaN(h)&&(h=v);w=t.rollOverColor;void 0==w&&(w=c);c=t.pattern;void 0==c&&(c=k);k=t.selectedColor;void 0==k&&(k=d);(d=t.balloonText)||(d=b);void 0==i.colorSolid||isNaN(t.value)||(b=Math.floor((t.value-o)/((y-o)/r.colorSteps)),b==r.colorSteps&&b--,colorPercent=1/(r.colorSteps-1)*b,t.colorReal=AmCharts.getColorFade(e,i.colorSolid,colorPercent));void 0!=t.color&&(t.colorReal=t.color);void 0==t.selectable&&(t.selectable=it);void 0==t.colorReal&&(t.colorReal=s);s=t.outlineColor;void 0==s&&(s=l);l=t.outlineAlpha;isNaN(l)&&(l=a);a=t.outlineThickness;isNaN(a)&&(a=p);p=t.rollOverOutlineColor;void 0==p&&(p=rt);t.alphaReal=v;t.rollOverColorReal=w;t.rollOverAlphaReal=h;t.balloonTextReal=d;t.selectedColorReal=k;t.outlineColorReal=s;t.outlineAlphaReal=l;t.rollOverOutlineColorReal=p;t.outlineThicknessReal=a;t.patternReal=c;AmCharts.processDescriptionWindow(i,t);f&&(i=f.area,(f=f.title)&&!t.title&&(t.title=f),i)&&(t.displayObject=i,t.mouseEnabled&&r.addObjectEventListeners(i,t),void 0!=e&&(nt=e),void 0!=t.colorReal&&(nt=t.showAsSelected||r.selectedObject==t?t.selectedColorReal:t.colorReal),i.setAttr("fill",nt),i.setAttr("stroke",s),i.setAttr("stroke-opacity",l),i.setAttr("stroke-width",a),i.setAttr("fill-opacity",v),c&&i.pattern(c,r.mapScale))}},updateAllAreas:function(){for(var r=this.chart,i=r.areasSettings,e=i.unlistedAreasColor,o=i.unlistedAreasAlpha,s=i.unlistedAreasOutlineColor,h=i.unlistedAreasOutlineAlpha,c=r.svgAreas,u=r.dataProvider,n=u.areas,l={},f,t=0;t<n.length;t++)l[n[t].id]=n[t];for(t=0;t<c.length;t++)(n=c[t],void 0!=e&&n.setAttr("fill",e),isNaN(o)||n.setAttr("fill-opacity",o),void 0!=s&&n.setAttr("stroke",s),isNaN(h)||n.setAttr("stroke-opacity",h),n.setAttr("stroke-width",i.outlineThickness),u.getAreasFromMap&&!l[n.id])&&(f=new AmCharts.MapArea(r.theme),f.parentObject=u,f.id=n.id,u.areas.push(f))}});AmCharts.AreasSettings=AmCharts.Class({construct:function(n){this.cname="AreasSettings";this.alpha=1;this.autoZoom=!1;this.balloonText="[[title]]";this.color="#FFCC00";this.colorSolid="#990000";this.unlistedAreasAlpha=1;this.unlistedAreasColor="#DDDDDD";this.outlineColor="#FFFFFF";this.outlineAlpha=1;this.outlineThickness=.5;this.selectedColor=this.rollOverOutlineColor="#CC0000";this.unlistedAreasOutlineColor="#FFFFFF";this.unlistedAreasOutlineAlpha=1;this.descriptionWindowWidth=250;this.adjustOutlineThickness=!1;AmCharts.applyTheme(this,n,this.cname)}});AmCharts.ImagesProcessor=AmCharts.Class({construct:function(n){this.chart=n;this.reset()},process:function(n){for(var i=n.images,t=0;t<i.length;t++)this.createImage(i[t],t);n.parentObject&&n.remainVisible&&this.process(n.parentObject)},createImage:function(n,t){var o=this.chart,b=o.container,tt=o.mapImagesContainer,it=o.stageImagesContainer,i=o.imagesSettings,v,h,r;n.remove&&n.remove();var a=i.color,k=i.alpha,f=i.rollOverColor,g=i.selectedColor,c=i.balloonText,d=i.outlineColor,y=i.outlineAlpha,nt=i.outlineThickness,s=i.selectedScale,e=i.labelPosition,u=i.labelColor,p=i.labelFontSize,w=i.labelRollOverColor,l=i.selectedLabelColor;n.index=t;n.chart=o;n.baseSettings=o.imagesSettings;v=b.set();n.displayObject=v;h=n.color;void 0==h&&(h=a);a=n.alpha;isNaN(a)&&(a=k);k=n.outlineAlpha;isNaN(k)&&(k=y);y=n.rollOverColor;void 0==y&&(y=f);f=n.selectedColor;void 0==f&&(f=g);(g=n.balloonText)||(g=c);c=n.outlineColor;void 0==c&&(c=d);void 0==c&&(c=h);d=n.outlineThickness;isNaN(d)&&(d=nt);(nt=n.labelPosition)||(nt=e);e=n.labelColor;void 0==e&&(e=u);u=n.labelRollOverColor;void 0==u&&(u=w);w=n.selectedLabelColor;void 0==w&&(w=l);l=n.labelFontSize;isNaN(l)&&(l=p);p=n.selectedScale;isNaN(p)&&(p=s);isNaN(n.rollOverScale);n.colorReal=h;n.alphaReal=a;n.rollOverColorReal=y;n.balloonTextReal=g;n.selectedColorReal=f;n.labelColorReal=e;n.labelRollOverColorReal=u;n.selectedLabelColorReal=w;n.labelFontSizeReal=l;n.labelPositionReal=nt;n.selectedScaleReal=p;n.rollOverScaleReal=p;AmCharts.processDescriptionWindow(i,n);n.centeredReal=void 0==n.centered?i.centered:n.centered;l=n.type;w=n.imageURL;y=n.svgPath;u=n.width;f=n.height;i=n.scale;isNaN(n.percentWidth)||(u=n.percentWidth/100*o.realWidth);isNaN(n.percentHeight)||(f=n.percentHeight/100*o.realHeight);w||l||y||(l="circle",u=1,k=a=0);e=s=0;p=n.selectedColorReal;l?(isNaN(u)&&(u=10),isNaN(f)&&(f=10),"kilometers"==n.widthAndHeightUnits&&(u=o.kilometersToPixels(n.width),f=o.kilometersToPixels(n.height)),"miles"==n.widthAndHeightUnits&&(u=o.milesToPixels(n.width),f=o.milesToPixels(n.height)),("circle"==l||"bubble"==l)&&(f=u),r=this.createPredefinedImage(h,c,d,l,u,f),e=s=0,n.centeredReal?(isNaN(n.right)||(s=u*i),isNaN(n.bottom)||(e=f*i)):(s=u*i/2,e=f*i/2),r.translate(s,e,i)):w?(isNaN(u)&&(u=10),isNaN(f)&&(f=10),r=b.image(w,0,0,u,f),r.node.setAttribute("preserveAspectRatio","none"),r.setAttr("opacity",a),n.centeredReal&&(s=isNaN(n.right)?-u/2:u/2,e=isNaN(n.bottom)?-f/2:f/2,r.translate(s,e))):y&&(r=b.path(y),c=r.getBBox(),n.centeredReal?(s=-c.x*i-c.width*i/2,isNaN(n.right)||(s=-s),e=-c.y*i-c.height*i/2,isNaN(n.bottom)||(e=-e)):s=e=0,r.translate(s,e,i),r.x=s,r.y=e);r&&(v.push(r),n.image=r,r.setAttr("stroke-opacity",k),r.setAttr("fill-opacity",a),r.setAttr("fill",h));(n.showAsSelected||o.selectedObject==n)&&void 0!=p&&r.setAttr("fill",p);h=null;void 0!==n.label&&(h=AmCharts.text(b,n.label,n.labelColorReal,o.fontFamily,n.labelFontSizeReal,n.labelAlign),a=n.labelBackgroundAlpha,(k=n.labelBackgroundColor)&&0<a&&(r=h.getBBox(),b=AmCharts.rect(b,r.width+16,r.height+10,k,a),b.translate(-3,-r.height/2-5),v.push(b)),n.imageLabel=h,!n.labelInactive&&n.mouseEnabled&&o.addObjectEventListeners(h,n),v.push(h));isNaN(n.latitude)||isNaN(n.longitude)?it.push(v):tt.push(v);v&&(v.rotation=n.rotation);this.updateSizeAndPosition(n);n.mouseEnabled&&o.addObjectEventListeners(v,n)},updateSizeAndPosition:function(n){var i=this.chart,u=n.displayObject,t=i.getX(n.left),r=i.getY(n.top),f=n.image.getBBox(),s;isNaN(n.right)||(t=i.getX(n.right,!0)-f.width*n.scale);isNaN(n.bottom)||(r=i.getY(n.bottom,!0)-f.height*n.scale);var e=n.longitude,o=n.latitude,f=this.objectsToResize;this.allSvgObjects.push(u);this.allObjects.push(n);s=n.imageLabel;isNaN(t)||isNaN(r)?isNaN(o)||isNaN(e)||(t=i.longitudeToCoordinate(e),r=i.latitudeToCoordinate(o),u.translate(t,r,NaN,!0),!n.fixedSize)||(t=1,(n.showAsSelected||i.selectedObject==n)&&(t=n.selectedScaleReal),f.push({image:u,scale:t})):u.translate(t,r);this.positionLabel(s,n,n.labelPositionReal)},positionLabel:function(n,t,i){if(n){var u=t.image,f=0,e=0,o=0,r=0;u&&(r=u.getBBox(),e=u.y,f=u.x,o=r.width,r=r.height,t.svgPath&&(o*=t.scale,r*=t.scale));var s=n.getBBox(),u=s.width,s=s.height;"right"==i&&(f+=o+u/2+5,e+=r/2-2);"left"==i&&(f+=-u/2-5,e+=r/2-2);"top"==i&&(e-=s/2+3,f+=o/2);"bottom"==i&&(e+=r+s/2,f+=o/2);"middle"==i&&(f+=o/2,e+=r/2);n.translate(f+t.labelShiftX,e+t.labelShiftY)}},createPredefinedImage:function(n,t,i,r,u,f){var o=this.chart.container,e;switch(r){case"circle":e=AmCharts.circle(o,u/2,n,1,i,t,1);break;case"rectangle":e=AmCharts.polygon(o,[-u/2,u/2,u/2,-u/2],[f/2,f/2,-f/2,-f/2],n,1,i,t,1);break;case"bubble":e=AmCharts.circle(o,u/2,n,1,i,t,1,!0)}return e},reset:function(){this.objectsToResize=[];this.allSvgObjects=[];this.allObjects=[];this.allLabels=[]}});AmCharts.ImagesSettings=AmCharts.Class({construct:function(n){this.cname="ImagesSettings";this.balloonText="[[title]]";this.alpha=1;this.borderAlpha=0;this.borderThickness=1;this.labelPosition="right";this.labelColor="#000000";this.labelFontSize=11;this.color="#000000";this.labelRollOverColor="#00CC00";this.centered=!0;this.rollOverScale=this.selectedScale=1;this.descriptionWindowWidth=250;AmCharts.applyTheme(this,n,this.cname)}});AmCharts.LinesProcessor=AmCharts.Class({construct:function(n){this.chart=n;this.reset()},process:function(n){for(var ut=n.lines,h=this.chart,s=h.linesSettings,ft=this.objectsToResize,ot=h.mapLinesContainer,st=h.stageLinesContainer,ht=s.thickness,ct=s.dashLength,et=s.arrow,lt=s.arrowSize,at=s.arrowColor,vt=s.arrowAlpha,yt=s.color,pt=s.alpha,wt=s.rollOverColor,bt=s.selectedColor,kt=s.rollOverAlpha,dt=s.balloonText,it=h.container,t,c,nt,p,f,i,r,e,tt,w,l,v,y,a,u,d,g,rt=0;rt<ut.length;rt++)if(t=ut[rt],t.chart=h,t.baseSettings=s,c=it.set(),t.displayObject=c,this.allSvgObjects.push(c),this.allObjects.push(t),t.mouseEnabled&&h.addObjectEventListeners(c,t),t.remainVisible||h.selectedObject==t.parentObject){nt=t.thickness;isNaN(nt)&&(nt=ht);p=t.dashLength;isNaN(p)&&(p=ct);f=t.color;void 0==f&&(f=yt);i=t.alpha;isNaN(i)&&(i=pt);r=t.rollOverAlpha;isNaN(r)&&(r=kt);isNaN(r)&&(r=i);e=t.rollOverColor;void 0==e&&(e=wt);tt=t.selectedColor;void 0==tt&&(tt=bt);w=t.balloonText;w||(w=dt);l=t.arrow;l&&("none"!=l||"none"==et)||(l=et);v=t.arrowColor;void 0==v&&(v=at);void 0==v&&(v=f);y=t.arrowAlpha;isNaN(y)&&(y=vt);isNaN(y)&&(y=i);a=t.arrowSize;isNaN(a)&&(a=lt);t.alphaReal=i;t.colorReal=f;t.rollOverColorReal=e;t.rollOverAlphaReal=r;t.balloonTextReal=w;t.selectedColorReal=tt;t.thicknessReal=nt;AmCharts.processDescriptionWindow(s,t);var r=this.processCoordinates(t.x,h.realWidth),e=this.processCoordinates(t.y,h.realHeight),b=t.longitudes,w=t.latitudes,o=b.length,k;if(0<o)for(r=[],k=0;k<o;k++)r.push(h.longitudeToCoordinate(b[k]));if(o=w.length,0<o)for(e=[],k=0;k<o;k++)e.push(h.latitudeToCoordinate(w[k]));0<r.length&&(AmCharts.dx=0,AmCharts.dy=0,b=AmCharts.line(it,r,e,f,1,nt,p,!1,!1,!0),p=AmCharts.line(it,r,e,f,.001,3,p,!1,!1,!0),AmCharts.dx=.5,AmCharts.dy=.5,c.push(b),c.push(p),c.setAttr("opacity",i),"none"!=l&&(("end"==l||"both"==l)&&(i=r[r.length-1],f=e[e.length-1],1<r.length?(o=r[r.length-2],u=e[e.length-2]):(o=i,u=f),u=180*Math.atan((f-u)/(i-o))/Math.PI,d=i,g=f,u=0>i-o?u-90:u+90),"both"==l&&(i=AmCharts.polygon(it,[-a/2,0,a/2],[1.5*a,0,1.5*a],v,y,1,v,y),c.push(i),i.translate(d,g),i.rotate(u),t.fixedSize&&ft.push(i)),("start"==l||"both"==l)&&(i=r[0],g=e[0],1<r.length?(f=r[1],d=e[1]):(f=i,d=g),u=180*Math.atan((g-d)/(i-f))/Math.PI,d=i,u=0>i-f?u-90:u+90),"middle"==l&&(i=r[r.length-1],f=e[e.length-1],1<r.length?(o=r[r.length-2],u=e[e.length-2]):(o=i,u=f),d=o+(i-o)/2,g=u+(f-u)/2,u=180*Math.atan((f-u)/(i-o))/Math.PI,u=0>i-o?u-90:u+90),i=AmCharts.polygon(it,[-a/2,0,a/2],[1.5*a,0,1.5*a],v,y,1,v,y),c.push(i),i.translate(d,g),i.rotate(u),t.fixedSize&&ft.push(i),t.arrowSvg=i),t.fixedSize&&b&&(this.linesToResize.push({line:b,thickness:nt}),this.linesToResize.push({line:p,thickness:3})),t.lineSvg=b,t.showAsSelected&&!isNaN(tt)&&b.setAttr("stroke",tt),0<w.length?ot.push(c):st.push(c))}n.parentObject&&n.remainVisible&&this.process(n.parentObject)},processCoordinates:function(n,t){for(var f=[],u,i,r=0;r<n.length;r++)u=n[r],i=Number(u),isNaN(i)&&(i=Number(u.replace("%",""))*t/100),isNaN(i)||f.push(i);return f},reset:function(){this.objectsToResize=[];this.allSvgObjects=[];this.allObjects=[];this.linesToResize=[]}});AmCharts.LinesSettings=AmCharts.Class({construct:function(n){this.cname="LinesSettings";this.balloonText="[[title]]";this.thickness=1;this.dashLength=0;this.arrowSize=10;this.arrowAlpha=1;this.arrow="none";this.color="#990000";this.descriptionWindowWidth=250;AmCharts.applyTheme(this,n,this.cname)}});AmCharts.MapObject=AmCharts.Class({construct:function(n){this.fixedSize=this.mouseEnabled=!0;this.images=[];this.lines=[];this.areas=[];this.remainVisible=!0;this.passZoomValuesToTarget=!1;this.objectType=this.cname;AmCharts.applyTheme(this,n,"MapObject")}});AmCharts.MapArea=AmCharts.Class({inherits:AmCharts.MapObject,construct:function(n){this.cname="MapArea";AmCharts.MapArea.base.construct.call(this,n);AmCharts.applyTheme(this,n,this.cname)}});AmCharts.MapLine=AmCharts.Class({inherits:AmCharts.MapObject,construct:function(n){this.cname="MapLine";this.longitudes=[];this.latitudes=[];this.x=[];this.y=[];this.arrow="none";AmCharts.MapLine.base.construct.call(this,n);AmCharts.applyTheme(this,n,this.cname)}});AmCharts.MapImage=AmCharts.Class({inherits:AmCharts.MapObject,construct:function(n){this.cname="MapImage";this.scale=1;this.widthAndHeightUnits="pixels";this.labelShiftY=this.labelShiftX=0;AmCharts.MapImage.base.construct.call(this,n);AmCharts.applyTheme(this,n,this.cname)},remove:function(){var n=this.displayObject;n&&n.remove();(n=this.imageLabel)&&n.remove()}});AmCharts.degreesToRadians=function(n){return n/180*Math.PI};AmCharts.radiansToDegrees=function(n){return n/Math.PI*180};AmCharts.getColorFade=function(n,t,i){var u=AmCharts.hex2RGB(t),f,r;t=u[0];var e=u[1],u=u[2],r=AmCharts.hex2RGB(n);return n=r[0],f=r[1],r=r[2],n+=Math.round((t-n)*i),f+=Math.round((e-f)*i),r+=Math.round((u-r)*i),"rgb("+n+","+f+","+r+")"};AmCharts.hex2RGB=function(n){return[parseInt(n.substring(1,3),16),parseInt(n.substring(3,5),16),parseInt(n.substring(5,7),16)]};AmCharts.processDescriptionWindow=function(n,t){var i=n.descriptionWindowX,r=n.descriptionWindowY,u=n.descriptionWindowWidth,e=n.descriptionWindowHeight,f=t.descriptionWindowX;isNaN(f)&&(f=i);i=t.descriptionWindowY;isNaN(i)&&(i=r);r=t.descriptionWindowWidth;isNaN(r)&&(r=u);u=t.descriptionWindowHeight;isNaN(u)&&(u=e);t.descriptionWindowX=f;t.descriptionWindowY=i;t.descriptionWindowWidth=r;t.descriptionWindowHeight=u};AmCharts.MapData=AmCharts.Class({inherits:AmCharts.MapObject,construct:function(){this.cname="MapData";AmCharts.MapData.base.construct.call(this);this.projection="mercator";this.topLatitude=90;this.bottomLatitude=-90;this.leftLongitude=-180;this.rightLongitude=180;this.zoomLevel=1;this.getAreasFromMap=!1}});AmCharts.DescriptionWindow=AmCharts.Class({construct:function(){},show:function(n,t,i,r){var e=this,f=document.createElement("div"),u;f.style.position="absolute";f.className="ammapDescriptionWindow";e.div=f;t.appendChild(f);u=document.createElement("img");u.className="ammapDescriptionWindowCloseButton";u.src=n.pathToImages+"xIcon.gif";u.style.cssFloat="right";u.onclick=function(){e.close()};u.onmouseover=function(){u.src=n.pathToImages+"xIconH.gif"};u.onmouseout=function(){u.src=n.pathToImages+"xIcon.gif"};f.appendChild(u);t=document.createElement("div");t.className="ammapDescriptionTitle";t.onmousedown=function(){e.div.style.zIndex=1e3};f.appendChild(t);r=document.createTextNode(r);t.appendChild(r);r=t.offsetHeight;t=document.createElement("div");t.className="ammapDescriptionText";t.style.maxHeight=e.maxHeight-r-20+"px";f.appendChild(t);t.innerHTML=i},close:function(){try{this.div.parentNode.removeChild(this.div)}catch(n){}}});AmCharts.ValueLegend=AmCharts.Class({construct:function(n){this.cname="ValueLegend";this.showAsGradient=!1;this.minValue=0;this.height=12;this.width=200;this.bottom=this.left=10;this.borderColor="#FFFFFF";this.borderAlpha=this.borderThickness=1;this.color="#000000";this.fontSize=11;AmCharts.applyTheme(this,n,this.cname)},init:function(n,t){var e=n.areasSettings.color,h=n.areasSettings.colorSolid,c=n.colorSteps,s;AmCharts.remove(this.set);s=t.set();this.set=s;var i=0,o=this.minValue,r=this.fontSize,u=n.fontFamily,f=this.color;if(void 0==o&&(o=n.minValueReal),void 0!==o&&(i=AmCharts.text(t,o,f,u,r,"left"),i.translate(0,r/2-1),s.push(i),i=i.getBBox().height),o=this.maxValue,void 0===o&&(o=n.maxValueReal),void 0!==o&&(i=AmCharts.text(t,o,f,u,r,"right"),i.translate(this.width,r/2-1),s.push(i),i=i.getBBox().height),this.showAsGradient)e=AmCharts.rect(t,this.width,this.height,[e,h],1,this.borderThickness,this.borderColor,1,0,0),e.translate(0,i),s.push(e);else for(r=this.width/c,u=0;u<c;u++)f=AmCharts.getColorFade(e,h,1*u/(c-1)),f=AmCharts.rect(t,r,this.height,f,1,this.borderThickness,this.borderColor,1),f.translate(r*u,i),s.push(f);h=e=0;c=s.getBBox();i=n.getY(this.bottom,!0);r=n.getY(this.top);u=n.getX(this.right,!0);f=n.getX(this.left);isNaN(r)||(e=r);isNaN(i)||(e=i-c.height);isNaN(f)||(h=f);isNaN(u)||(h=u-c.width);s.translate(h,e)}});AmCharts.ObjectList=AmCharts.Class({construct:function(n){this.divId=n},init:function(n){this.chart=n;var t;t=this.divId;this.container&&(t=this.container);this.div=t="object"!=typeof t?document.getElementById(t):t;t=document.createElement("div");t.className="ammapObjectList";this.div.appendChild(t);this.addObjects(n.dataProvider,t)},addObjects:function(n,t){var f=this.chart,u=document.createElement("ul"),i,r;if(n.areas)for(i=0;i<n.areas.length;i++)r=n.areas[i],void 0===r.showInList&&(r.showInList=f.showAreasInList),this.addObject(r,u);if(n.images)for(i=0;i<n.images.length;i++)r=n.images[i],void 0===r.showInList&&(r.showInList=f.showImagesInList),this.addObject(r,u);if(n.lines)for(i=0;i<n.lines.length;i++)r=n.lines[i],void 0===r.showInList&&(r.showInList=f.showLinesInList),this.addObject(r,u);0<u.childNodes.length&&t.appendChild(u)},addObject:function(n,t){var r=this;if(n.showInList&&void 0!==n.title){var u=document.createElement("li"),f=document.createTextNode(n.title),i=document.createElement("a");i.appendChild(f);u.appendChild(i);t.appendChild(u);this.addObjects(n,u);i.onmouseover=function(){r.chart.rollOverMapObject(n,!1)};i.onmouseout=function(){r.chart.rollOutMapObject(n)};i.onclick=function(){r.chart.clickMapObject(n)}}}});AmCharts.maps.worldLow={svg:{defs:{"amcharts:ammap":{projection:"mercator",leftLongitude:"-169.522279",topLatitude:"83.646363",rightLongitude:"190.122401",bottomLatitude:"-55.621433"}},g:{path:[{id:"AE",title:"United Arab Emirates",d:"M619.87,393.72L620.37,393.57L620.48,394.41L622.67,393.93L624.99,394.01L626.68,394.1L628.6,392.03L630.7,390.05L632.47,388.15L633,389.2L633.38,391.64L631.95,391.65L631.72,393.65L632.22,394.07L630.95,394.67L630.94,395.92L630.12,397.18L630.05,398.39L629.48,399.03L621.06,397.51L619.98,394.43z"},{id:"AF",title:"Afghanistan",d:"M646.88,356.9L649.74,358.2L651.85,357.74L652.44,356.19L654.65,355.67L656.23,354.62L656.79,351.83L659.15,351.15L659.59,349.9L660.92,350.84L661.76,350.95L663.32,350.98L665.44,351.72L666.29,352.14L668.32,351.02L669.27,351.69L670.17,350.09L671.85,350.16L672.28,349.64L672.58,348.21L673.79,346.98L675.3,347.78L675,348.87L675.85,349.04L675.58,351.99L676.69,353.14L677.67,352.4L678.92,352.06L680.66,350.49L682.59,350.75L685.49,350.75L685.99,351.76L684.35,352.15L682.93,352.8L679.71,353.2L676.7,353.93L675.06,355.44L675.72,356.9L676.05,358.6L674.65,360.03L674.77,361.33L674,362.55L671.33,362.44L672.43,364.66L670.65,365.51L669.46,367.51L669.61,369.49L668.51,370.41L667.48,370.11L665.33,370.54L665.03,371.45L662.94,371.45L661.38,373.29L661.28,376.04L657.63,377.37L655.68,377.09L655.11,377.79L653.44,377.39L650.63,377.87L645.94,376.23L648.48,373.3L648.25,371.2L646.13,370.65L645.91,368.56L644.99,365.92L646.19,364.09L644.97,363.6L645.74,361.15z"},{id:"AL",title:"Albania",d:"M532.98,334.66L532.63,335.93L533.03,337.52L534.19,338.42L534.13,339.39L533.22,339.93L533.05,341.12L531.75,342.88L531.27,342.63L531.22,341.83L529.66,340.6L529.42,338.85L529.66,336.32L530.04,335.16L529.57,334.57L529.38,333.38L530.6,331.51L530.77,332.23L531.53,331.89L532.13,332.91L532.8,333.29z"},{id:"AM",title:"Armenia",d:"M597.45,337.5L601.35,336.92L601.93,337.9L603,338.54L602.43,339.46L603.93,340.72L603.14,341.88L604.33,342.87L605.59,343.46L605.65,345.96L604.63,346.06L603.49,343.98L603.5,343.43L602.26,343.44L601.43,342.46L600.85,342.56L599.74,341.5L597.66,340.59L597.93,338.8z"},{id:"AO",title:"Angola",d:"M521.03,479.78l0.69,2.09l0.8,1.68l0.64,0.91l1.07,1.47l1.85,-0.23l0.93,-0.4l1.55,0.4l0.42,-0.7l0.7,-1.64l1.74,-0.11l0.15,-0.49l1.43,-0.01l-0.24,1.01l3.4,-0.02l0.05,1.77l0.57,1.09l-0.41,1.7l0.21,1.74l0.94,1.05l-0.15,3.37l0.69,-0.26l1.22,0.07l1.74,-0.42l1.28,0.17l0.3,0.88l-0.32,1.38l0.49,1.34l-0.42,1.07l0.24,0.99l-5.84,-0.04l-0.13,9.16l1.89,2.38l1.83,1.82l-5.15,1.19l-6.79,-0.41l-1.94,-1.4l-11.37,0.13l-0.42,0.21l-1.67,-1.32l-1.82,-0.09l-1.68,0.5l-1.35,0.56l-0.26,-1.83l0.39,-2.55l0.97,-2.65l0.15,-1.24l0.91,-2.59l0.67,-1.17l1.61,-1.87l0.9,-1.27l0.29,-2.11l-0.15,-1.61l-0.84,-1.01l-0.75,-1.72l-0.69,-1.69l0.15,-0.59l0.86,-1.12l-0.85,-2.72l-0.57,-1.88l-1.4,-1.77l0.27,-0.54l1.16,-0.38l0.81,0.05l0.98,-0.34L521.03,479.78zM510.12,479.24l-0.71,0.3l-0.75,-2.1l1.13,-1.21l0.85,-0.47l1.05,0.96l-1.02,0.59l-0.46,0.72L510.12,479.24z"},{id:"AR",title:"Argentina",d:"M291.6,648.91l-2.66,0.25l-1.43,-1.73l-1.69,-0.13l-3,0l0,-10.57l1.08,2.15l1.4,3.53l3.65,2.87l3.93,1.21L291.6,648.91zM293.1,526.47l1.65,2.18l1.09,-2.43l3.2,0.12l0.45,0.64l5.15,4.94l2.29,0.46l3.43,2.26l2.89,1.2l0.4,1.36l-2.76,4.73l2.83,0.85l3.15,0.48l2.22,-0.5l2.54,-2.4l0.46,-2.74l1.39,-0.59l1.41,1.79l-0.06,2.49l-2.36,1.73l-1.88,1.28l-3.16,3.08l-3.74,4.37l-0.7,2.59l-0.75,3.37l0.03,3.3l-0.61,0.74l-0.22,2.17l-0.19,1.76l3.56,2.91l-0.38,2.37l1.75,1.51l-0.14,1.7l-2.69,4.52l-4.16,1.91l-5.62,0.75l-3.08,-0.36l0.59,2.15l-0.57,2.72l0.52,1.85l-1.68,1.3l-2.87,0.51l-2.7,-1.35l-1.08,0.97l0.39,3.71l1.89,1.14l1.54,-1.19l0.84,1.96l-2.58,1.18l-2.25,2.38l-0.41,3.91l-0.66,2.11l-2.65,0.01l-2.2,2.04l-0.8,3.01l2.76,2.98l2.68,0.83l-0.96,3.73l-3.31,2.38l-1.82,5.03l-2.56,1.72l-1.15,2.06l0.91,4.64l1.87,2.63l-1.18,-0.23l-2.6,-0.71l-6.78,-0.61l-1.16,-2.63l0.05,-3.33l-1.87,0.28l-0.99,-1.6l-0.25,-4.6l2.15,-1.88l0.89,-2.68l-0.33,-2.11l1.49,-3.52l1.02,-5.35l-0.3,-2.33l1.22,-0.75l-0.3,-1.48l-1.3,-0.78l0.92,-1.63l-1.27,-1.46l-0.65,-4.4l1.13,-0.77l-0.47,-4.54l0.66,-3.75l0.75,-3.22l1.68,-1.3l-0.85,-3.46l-0.01,-3.22l2.12,-2.26l-0.06,-2.87l1.6,-3.31l0.01,-3.09l-0.73,-0.61l-1.29,-5.69l1.73,-3.34l-0.27,-3.11l1,-2.9l1.84,-2.96l1.98,-1.95l-0.84,-1.23l0.59,-1l-0.09,-5.14l3.05,-1.51l0.96,-3.16l-0.34,-0.76l2.34,-2.72L293.1,526.47z"},{id:"AT",title:"Austria",d:"M522.86,309.85L522.65,311.56L521.07,311.57L521.61,312.46L520.68,315.11L520.15,315.8L517.7,315.9L516.28,316.82L513.96,316.51L509.95,315.46L509.33,314.03L506.56,314.75L506.23,315.52L504.53,314.94L503.1,314.83L501.83,314.09L502.26,313.08L502.15,312.34L503,312.12L504.42,313.26L504.82,312.17L507.29,312.35L509.3,311.61L510.64,311.73L511.51,312.58L511.78,311.88L511.38,309.16L512.39,308.62L513.37,306.67L515.46,308.04L517.03,306.3L518.02,305.98L520.2,307.28L521.51,307.06L522.81,307.86L522.58,308.4z"},{id:"AU",title:"Australia",d:"M882.93,588.16l2.71,1.28l1.53,-0.51l2.19,-0.71l1.68,0.25l0.2,4.43l-0.96,1.3l-0.29,3.06l-0.98,-1.05l-1.95,2.67l-0.58,-0.21l-1.72,-0.12l-1.73,-3.28l-0.38,-2.5l-1.62,-3.25l0.07,-1.7L882.93,588.16zM877.78,502.1l1.01,2.25l1.8,-1.08l0.93,1.22l1.35,1.13l-0.29,1.28l0.6,2.48l0.43,1.45l0.71,0.35l0.76,2.5l-0.27,1.52l0.91,1.99l3.04,1.54l1.98,1.41l1.88,1.29l-0.37,0.72l1.6,1.87l1.09,3.25l1.12,-0.66l1.14,1.31l0.69,-0.46l0.48,3.21l1.99,1.87l1.3,1.17l2.19,2.49l0.79,2.49l0.07,1.77l-0.19,1.94l1.34,2.68l-0.16,2.81l-0.49,1.48l-0.76,2.87l0.06,1.86l-0.55,2.34l-1.24,3l-2.08,1.63l-1.02,2.59l-0.94,1.67l-0.83,2.93l-1.08,1.71l-0.71,2.58l-0.36,2.4l0.14,1.11l-1.61,1.22l-3.14,0.13l-2.59,1.45l-1.29,1.38l-1.69,1.54l-2.32,-1.58l-1.72,-0.63l0.44,-1.85l-1.53,0.67l-2.46,2.58l-2.42,-0.97l-1.59,-0.56l-1.6,-0.25l-2.71,-1.03l-1.81,-2.18l-0.52,-2.66l-0.65,-1.75l-1.38,-1.4l-2.7,-0.41l0.92,-1.66l-0.68,-2.52l-1.37,2.35l-2.5,0.63l1.47,-1.88l0.42,-1.95l1.08,-1.65l-0.22,-2.47l-2.28,2.85l-1.75,1.15l-1.07,2.69l-2.19,-1.4l0.09,-1.79l-1.75,-2.43l-1.48,-1.25l0.53,-0.77l-3.6,-2l-1.97,-0.09l-2.7,-1.6l-5.02,0.31l-3.63,1.18l-3.19,1.1l-2.68,-0.22l-2.97,1.7l-2.43,0.77l-0.54,1.75l-1.04,1.36l-2.38,0.08l-1.76,0.3l-2.48,-0.61l-2.02,0.37l-1.92,0.15l-1.67,1.8l-0.82,-0.15l-1.41,0.96l-1.35,1.08l-2.05,-0.13l-1.88,0l-2.97,-2.17l-1.51,-0.64l0.06,-1.93l1.39,-0.46l0.48,-0.76l-0.1,-1.2l0.34,-2.3l-0.31,-1.95l-1.48,-3.29l-0.46,-1.85l0.12,-1.83l-1.12,-2.08l-0.07,-0.93l-1.24,-1.26l-0.35,-2.47l-1.6,-2.48l-0.39,-1.33l1.23,1.35l-0.95,-2.88l1.39,0.9l0.83,1.2l-0.05,-1.59l-1.39,-2.43l-0.27,-0.97l-0.65,-0.92l0.3,-1.77l0.57,-0.75l0.38,-1.52l-0.3,-1.77l1.16,-2.17l0.21,2.29l1.18,-2.07l2.28,-1l1.37,-1.28l2.14,-1.1l1.27,-0.23l0.77,0.37l2.21,-1.11l1.7,-0.33l0.42,-0.65l0.74,-0.27l1.55,0.07l2.95,-0.87l1.52,-1.31l0.72,-1.58l1.64,-1.49l0.13,-1.17l0.07,-1.59l1.96,-2.47l1.18,2.51l1.19,-0.58l-1,-1.38l0.88,-1.41l1.24,0.63l0.34,-2.21l1.53,-1.42l0.68,-1.14l1.41,-0.49l0.04,-0.8l1.23,0.34l0.05,-0.72l1.23,-0.41l1.36,-0.39l2.07,1.32l1.56,1.71l1.75,0.02l1.78,0.27l-0.59,-1.58l1.34,-2.3l1.26,-0.75l-0.44,-0.71l1.22,-1.63l1.7,-1.01l1.43,0.34l2.36,-0.54l-0.05,-1.45l-2.05,-0.94l1.49,-0.41l1.86,0.7l1.49,1.17l2.36,0.73l0.8,-0.29l1.74,0.88l1.64,-0.82l1.05,0.25l0.66,-0.55l1.29,1.41l-0.75,1.53l-1.06,1.16l-0.96,0.1l0.33,1.15l-0.82,1.43l-1,1.41l0.2,0.81l2.23,1.6l2.16,0.93l1.44,1l2.03,1.72l0.79,0l1.47,0.75l0.43,0.9l2.68,0.99l1.85,-1l0.55,-1.57l0.57,-1.29l0.35,-1.59l0.85,-2.3l-0.39,-1.39l0.2,-0.84l-0.32,-1.64l0.37,-2.16l0.54,-0.58l-0.44,-0.95l0.68,-1.51l0.53,-1.56l0.07,-0.81l1.04,-1.06l0.79,1.39l0.19,1.78l0.7,0.34l0.12,1.2l1.02,1.45l0.21,1.62L877.78,502.1z"},{id:"AZ",title:"Azerbaijan",d:"M601.43,342.46l0.83,0.97l1.24,-0.01l-0.01,0.56l1.14,2.08l-1.92,-0.48l-1.42,-1.66l-0.44,-1.37L601.43,342.46zM608.08,337.03l1.24,0.25l0.48,-0.95l1.67,-1.51l1.47,1.97l1.43,2.62l1.31,0.17l0.86,0.99l-2.31,0.29l-0.49,2.82l-0.48,1.26l-1.03,0.84l0.08,1.77l-0.7,0.18l-1.75,-1.87l0.97,-1.78l-0.83,-1.06l-1.05,0.27l-3.31,2.66l-0.06,-2.5l-1.26,-0.59l-1.19,-0.99l0.79,-1.16l-1.49,-1.26l0.56,-0.92l-1.07,-0.64l-0.58,-0.97l0.69,-0.61l2.09,1.07l1.51,0.22l0.38,-0.43l-1.38,-2.02l0.73,-0.52l0.79,0.13L608.08,337.03z"},{id:"BA",title:"Bosnia and Herzegovina",d:"M528.54,323.11L529.56,323.1L528.86,324.82L530.21,326.32L529.8,328.14L529.14,328.31L528.61,328.67L527.7,329.56L527.29,331.66L524.81,330.22L523.75,328.61L522.68,327.76L521.39,326.31L520.79,325.1L519.41,323.27L520,321.63L521.01,322.54L521.61,321.72L522.92,321.63L525.33,322.29L527.27,322.23z"},{id:"BD",title:"Bangladesh",d:"M735.09,400.41L735.04,402.56L734.06,402.1L734.24,404.51L733.44,402.95L733.28,401.43L732.74,399.98L731.57,398.22L728.99,398.1L729.25,399.35L728.37,401.02L727.17,400.41L726.76,400.96L725.97,400.63L724.89,400.36L724.45,397.88L723.48,395.6L723.95,393.76L722.23,392.94L722.85,391.82L724.6,390.67L722.58,389.04L723.57,386.93L725.79,388.27L727.13,388.43L727.38,390.58L730.04,391L732.65,390.95L734.26,391.48L732.97,394.07L731.71,394.25L730.85,395.98L732.38,397.56L732.84,395.62L733.62,395.61z"},{id:"BE",title:"Belgium",d:"M484.55,295.91L486.6,296.26L489.2,295.33L490.97,297.28L492.52,298.32L492.2,301.29L491.47,301.45L491.16,303.88L488.71,301.91L487.27,302.25L485.31,300.19L484.01,298.42L482.71,298.35L482.3,296.79z"},{id:"BF",title:"Burkina Faso",d:"M467.33,436.4L465.41,435.67L464.09,435.78L463.11,436.49L461.85,435.89L461.36,434.96L460.1,434.34L459.91,432.7L460.68,431.49L460.61,430.53L462.84,428.17L463.25,426.21L464.02,425.51L465.38,425.89L466.55,425.31L466.93,424.57L469.11,423.29L469.64,422.39L472.26,421.19L473.81,420.78L474.51,421.33L476.3,421.32L476.08,422.72L476.46,424.03L478.04,425.9L478.12,427.28L481.36,427.93L481.29,429.88L480.68,430.74L479.31,431L478.74,432.24L477.78,432.56L475.32,432.5L474.02,432.28L473.12,432.74L471.88,432.53L467.01,432.66L466.94,434.27z"},{id:"BG",title:"Bulgaria",d:"M538.78,325.56L539.59,327.16L540.67,326.87L542.83,327.48L546.95,327.68L548.34,326.69L551.64,325.79L553.68,327.2L555.33,327.61L553.87,329.2L552.85,331.93L553.75,334.09L551.34,333.58L548.48,334.76L548.45,336.62L545.9,336.97L543.93,335.67L541.68,336.7L539.61,336.59L539.41,334.12L538,332.91L538.47,332.37L538.16,331.92L538.63,330.71L539.7,329.52L538.34,327.86L538.09,326.44z"},{id:"BI",title:"Burundi",d:"M557.52,475.93L557.34,472.56L556.63,471.3L558.34,471.52L559.2,469.93L560.69,470.11L560.85,471.21L561.45,471.84L561.48,472.75L560.79,473.33L559.69,474.79L558.68,475.8z"},{id:"BJ",title:"Benin",d:"M482.8,445.92L480.48,446.25L479.79,444.31L479.92,437.85L479.35,437.27L479.25,435.88L478.27,434.89L477.42,434.06L477.78,432.56L478.74,432.24L479.31,431L480.68,430.74L481.29,429.88L482.23,429.05L483.24,429.04L485.38,430.68L485.27,431.63L485.9,433.31L485.35,434.45L485.64,435.21L484.28,436.96L483.42,437.83L482.89,439.6L482.96,441.39z"},{id:"BN",title:"Brunei Darussalam",d:"M795.46,450.77L796.57,449.72L798.96,448.19L798.83,449.57L798.67,451.35L797.33,451.26L796.74,452.21z"},{id:"BO",title:"Bolivia",d:"M299.04,526.35L295.84,526.22L294.75,528.65L293.1,526.47L289.43,525.74L287.1,528.46L285.07,528.87L283.97,524.72L282.47,521.38L283.35,518.51L281.88,517.26L281.51,515.14L280.13,513.14L281.9,510L280.69,507.56L281.34,506.59L280.83,505.52L281.93,504.08L281.99,501.64L282.12,499.62L282.73,498.66L280.3,494.08L282.39,494.32L283.83,494.25L284.46,493.4L286.91,492.25L288.38,491.19L292.05,490.71L291.76,492.83L292.1,493.92L291.87,495.82L294.92,498.37L298.06,498.84L299.16,499.91L301.06,500.48L302.22,501.31L303.98,501.28L305.61,502.13L305.73,503.79L306.28,504.63L306.32,505.88L305.5,505.92L306.58,509.29L311.95,509.41L311.54,511.09L311.84,512.24L313.37,513.06L314.04,514.88L313.54,517.2L312.77,518.49L313.04,520.18L312.16,520.79L312.12,519.88L309.5,518.37L306.9,518.32L302.01,519.18L300.67,521.8L300.6,523.4L299.49,526.99z"},{id:"BR",title:"Brazil",d:"M313.68,551.79L317.42,547.42L320.59,544.34L322.47,543.06L324.83,541.33L324.89,538.84L323.48,537.05L322.09,537.64L322.64,535.86L323.02,534.04L323.02,532.36L322.01,531.81L320.96,532.3L319.92,532.17L319.59,530.99L319.33,528.22L318.8,527.32L316.91,526.5L315.77,527.09L312.81,526.51L312.99,522.45L312.16,520.79L313.04,520.18L312.77,518.49L313.54,517.2L314.04,514.88L313.37,513.06L311.84,512.24L311.54,511.09L311.95,509.41L306.58,509.29L305.5,505.92L306.32,505.88L306.28,504.63L305.73,503.79L305.61,502.13L303.98,501.28L302.22,501.31L301.06,500.48L299.16,499.91L298.06,498.84L294.92,498.37L291.87,495.82L292.1,493.92L291.76,492.83L292.05,490.71L288.38,491.19L286.91,492.25L284.46,493.4L283.83,494.25L282.39,494.32L280.3,494.08L278.72,494.57L277.44,494.24L277.63,489.94L275.33,491.6L272.86,491.53L271.8,490.02L269.94,489.86L270.53,488.65L268.97,486.93L267.8,484.4L268.54,483.89L268.54,482.7L270.24,481.89L269.96,480.38L270.67,479.4L270.88,478.1L274.08,476.19L276.38,475.66L276.75,475.24L279.28,475.37L280.54,467.72L280.61,466.51L280.17,464.92L278.93,463.9L278.94,461.88L280.52,461.42L281.08,461.71L281.17,460.64L279.53,460.35L279.5,458.61L284.96,458.67L285.89,457.71L286.67,458.59L287.21,460.24L287.74,459.89L289.29,461.37L291.47,461.19L292.01,460.33L294.09,459.68L295.25,459.23L295.57,458.05L297.58,457.25L297.42,456.67L295.05,456.43L294.66,454.67L294.77,452.8L293.52,452.08L294.04,451.82L296.12,452.18L298.35,452.88L299.16,452.22L301.17,451.78L304.31,450.74L305.34,449.67L304.96,448.88L306.42,448.76L307.08,449.4L306.71,450.63L307.67,451.05L308.32,452.35L307.54,453.33L307.09,455.71L307.81,457.12L308.01,458.41L309.74,459.71L311.12,459.85L311.43,459.31L312.31,459.19L313.58,458.7L314.49,457.96L316.04,458.19L316.72,458.09L318.25,458.32L318.5,457.75L318.03,457.2L318.31,456.39L319.44,456.64L320.77,456.35L322.37,456.94L323.6,457.52L324.47,456.76L325.09,456.88L325.48,457.67L326.82,457.47L327.89,456.41L328.75,454.35L330.41,451.8L331.37,451.67L332.06,453.21L333.63,458.09L335.13,458.55L335.21,460.47L333.1,462.76L333.97,463.6L338.93,464.04L339.03,466.83L341.16,465L344.69,466.01L349.34,467.71L350.71,469.34L350.25,470.88L353.51,470.02L358.97,471.5L363.16,471.39L367.3,473.7L370.88,476.83L373.04,477.63L375.44,477.75L376.46,478.63L377.41,482.2L377.88,483.89L376.76,488.55L375.33,490.39L371.38,494.33L369.59,497.54L367.52,500.02L366.82,500.08L366.03,502.18L366.23,507.58L365.45,512.06L365.15,513.99L364.27,515.14L363.77,519.08L360.93,522.96L360.45,526.05L358.18,527.36L357.52,529.17L354.48,529.16L350.07,530.33L348.09,531.68L344.95,532.57L341.65,535.01L339.28,538.07L338.87,540.39L339.34,542.12L338.81,545.3L338.18,546.85L336.22,548.6L333.11,554.28L330.64,556.87L328.73,558.41L327.46,561.57L325.6,563.48L324.82,561.58L326.06,560.01L324.44,557.76L322.24,555.94L319.35,553.86L318.31,553.95L315.5,551.45z"},{id:"BS",title:"Bahamas",d:"M257.86,395.2l-0.69,0.15l-0.71,-1.76l-1.05,-0.89l0.61,-1.95l0.84,0.12l0.98,2.55L257.86,395.2zM257.06,386.51l-3.06,0.5l-0.2,-1.15l1.32,-0.25l1.85,0.09L257.06,386.51zM259.36,386.48l-0.48,2.21l-0.52,-0.4l0.05,-1.63l-1.26,-1.23l-0.01,-0.36L259.36,386.48z"},{id:"BT",title:"Bhutan",d:"M732.36,382.78L733.5,383.78L733.3,385.71L731.01,385.8L728.65,385.59L726.88,386.08L724.33,384.89L724.28,384.26L726.13,381.92L727.64,381.12L729.65,381.85L731.13,381.93z"},{id:"BW",title:"Botswana",d:"M547.17,515.95L547.73,516.47L548.62,518.18L551.79,521.43L552.99,521.75L553,522.8L553.82,524.7L555.99,525.16L557.78,526.52L553.81,528.74L551.29,531L550.36,533.03L549.52,534.18L547.99,534.43L547.5,535.9L547.21,536.86L545.42,537.58L543.14,537.43L541.8,536.57L540.62,536.19L539.25,536.91L538.56,538.39L537.23,539.32L535.83,540.71L533.82,541.03L533.2,539.94L533.46,538.04L531.79,535.11L531.04,534.65L531.04,525.79L533.8,525.68L533.88,515.11L535.97,515.02L540.29,513.99L541.37,515.2L543.15,514.05L544.01,514.04L545.59,513.38L546.09,513.6z"},{id:"BY",title:"Belarus",d:"M541.1,284.07L543.81,284.11L546.85,282.31L547.5,279.59L549.8,278.02L549.54,275.82L551.24,274.98L554.26,273.05L557.21,274.31L557.61,275.54L559.08,274.95L561.82,276.13L562.09,278.44L561.49,279.76L563.25,282.91L564.39,283.78L564.22,284.64L566.11,285.47L566.92,286.72L565.83,287.74L563.57,287.58L563.03,288.02L563.69,289.56L564.38,292.49L561.97,292.76L561.11,293.76L560.92,296.02L559.81,295.59L557.28,295.81L556.54,294.76L555.49,295.54L554.44,294.89L552.23,294.8L549.1,293.72L546.27,293.36L544.1,293.46L542.56,294.69L541.22,294.86L541.17,292.85L540.3,290.73L541.98,289.79L542,287.94L541.22,286.16z"},{id:"BZ",title:"Belize",d:"M225.31,412.96L225.29,412.53L225.63,412.39L226.14,412.74L227.14,410.97L227.67,410.93L227.68,411.36L228.21,411.37L228.17,412.17L227.71,413.44L227.96,413.89L227.67,414.94L227.84,415.21L227.52,416.68L226.97,417.46L226.46,417.55L225.9,418.55L225.07,418.55L225.29,415.27z"},{id:"CA",title:"Canada",d:"M198.93,96.23l-0.22,-5.9l3.63,0.58l1.63,0.96l3.35,4.92l-0.76,4.97l-4.15,2.77l-2.28,-3.12L198.93,96.23zM212.14,108.88l0.33,-1.49l-1.97,-2.45l-5.65,-0.19l0.75,3.68l5.25,0.83L212.14,108.88zM248.49,155.83l3.08,5.1l0.81,0.57l3.07,-1.27l3.02,0.2l2.98,0.28l-0.25,-2.64l-4.84,-5.38l-6.42,-1.08l-1.35,0.67L248.49,155.83zM183.06,93.13l-2.71,4.19l6.24,0.52l4.61,4.44l4.58,1.5l-1.09,-5.68l-2.14,-6.73l-7.58,-5.35l-5.5,-2.04l0.2,5.69L183.06,93.13zM208.96,82.89l5.13,-0.12l-2.22,4l-0.04,5.3l3.01,5.76l5.81,1.77l4.96,-0.99l5.18,-10.73l3.85,-4.45l-3.38,-4.97l-2.21,-10.65l-4.6,-3.19l-4.72,-3.68l-3.58,-9.56l-6.52,0.94l1.23,4.15l-2.87,1.25l-1.94,5.32l-1.94,7.46l1.78,7.26L208.96,82.89zM145.21,136.27l3.92,1.95l12.67,-1.3l-5.82,4.77l0.36,3.43l4.26,-0.24l7.07,-4.58l9.5,-1.67l1.71,-5.22l-0.49,-5.57l-2.94,-0.5l-2.5,1.93l-1.1,-4.13l-0.95,-5.7l-2.9,-1.42l-2.57,4.41l4.01,11.05l-4.9,-0.85l-4.98,-6.79l-7.89,-4l-2.64,3.32L145.21,136.27zM167.77,94.21l-3.65,-2.9l-1.5,-0.66l-2.88,4.28l-0.05,2l4.66,0.01L167.77,94.21zM166.31,106.56l0.93,-3.99l-3.95,-2.12l-4.09,1.39l-2.27,4.26l4.16,4.21L166.31,106.56zM195.4,139.8l4.62,-1.11l1.28,-8.25l-0.09,-5.95l-2.14,-5.56l-0.22,1.6l-3.94,-0.7l-4.22,4.09l-3.02,-0.37l0.18,8.92l4.6,-0.87l-0.06,6.47L195.4,139.8zM192.12,185.41l-5.06,-3.93l-4.71,-4.21l-0.87,-6.18l-1.76,-8.92l-3.14,-3.84l-2.79,-1.55l-2.47,1.42l1.99,9.59l-1.41,3.73l-2.29,-8.98l-2.56,-3.11l-3.17,4.81l-3.9,-4.76l-6.24,2.87l1.4,-4.46l-2.87,-1.87l-7.51,5.84l-1.95,3.71l-2.35,6.77l4.9,2.32l4.33,-0.12l-6.5,3.46l1.48,3.13l3.98,0.17l5.99,-0.67l5.42,1.96l-3.66,1.44l-3.95,-0.37l-4.33,1.41l-1.87,0.87l3.45,6.35l2.49,-0.88l3.83,2.15l1.52,3.65l4.99,-0.73l7.1,-1.16l5.26,-2.65l3.26,-0.48l4.82,2.12l5.07,1.22l0.94,-2.86l-1.79,-3.05l4.6,-0.64L192.12,185.41zM199.86,184.43l-1.96,3.54l-2.47,2.49l3.83,3.54l2.28,-0.85l3.78,2.36l1.74,-2.73l-1.71,-3.03l-0.84,-1.53l-1.68,-1.46L199.86,184.43zM182.25,154.98l-2.13,-2.17l-3.76,0.4l-0.95,1.38l4.37,6.75L182.25,154.98zM210.94,168.15l3.01,-6.93l3.34,-1.85l4.19,-8.74l-5.36,-2.47l-5.84,-0.36l-2.78,2.77l-1.47,4.23l-0.04,4.82l1.75,8.19L210.94,168.15zM228.09,145.15l5.76,-0.18l8.04,-1.61l3.59,1.28l4.18,-2.26l1.75,-2.84l-0.63,-4.52l-3,-4.23l-4.56,-0.8l-5.71,0.97l-4.46,2.44l-4.09,-0.94l-3.78,-0.5l-1.78,-2.7l-3.22,-2.61l0.64,-4.43l-2.42,-3.98l-5.52,0.03l-3.11,-3.99l-5.78,-0.8l-1.06,5.1l3.25,3.74l5.8,1.45l2.81,5.09l0.34,5.6l0.97,5.99l7.45,3.42L228.09,145.15zM139.07,126.88l5.21,-5.05l2.62,-0.59l2.16,-4.23l0.38,-9.77l-3.85,1.91l-4.3,-0.18l-5.76,8.19l-4.76,8.98l3.8,2.51L139.07,126.88zM211.25,143.05l1.53,-4.14l-1.02,-3.46l-2.45,-3.92l-4.03,3.02l-1.49,4.92l3.4,2.79L211.25,143.05zM202.94,154.49l-0.73,-2.88l-5,1.26l-3.34,-2.11l-3.32,4.8l3.09,6.28l-5.72,-1.17l-0.06,3.01l6.97,7.05l1.94,3.38l2.7,0.73l4.6,-3.41l0.5,-8.21l-4.24,-4.07L202.94,154.49zM128.95,308.23l-1.16,-2.34l-2.8,-1.77l-1.39,-2.05l-0.95,-1.5l-2.64,-0.46l-1.72,-0.67l-2.94,-0.96l-0.24,1.02l1.08,2.38l2.89,0.78l0.5,1.23l2.51,1.5l0.84,1.51l4.6,1.92L128.95,308.23zM250.65,230.6l-2,-2.11l-2.06,0.5l-0.25,-3.06l-3.21,-2.04l-3.07,-2.27l-1.63,-1.75l-1.43,1.03l-0.52,-2.96l-2.03,-0.55l-0.96,6.13l-0.36,5.11l-2.44,3.14l3.8,-0.6l0.96,3.65l3.99,-3.23l2.78,-3.38l1.57,2.86l4.36,1.51L250.65,230.6zM130.12,178.05l7.38,-4.18V170l3.48,-6.41l6.88,-6.69l3.52,-2.47l-3.01,-4.2l-2.72,-2.95l-7.16,-0.57l-4,-2.16l-9.48,1.63l2.74,6.23l-2.43,6.43l-1.94,6.87l-1.2,3.86l6.47,4.69L130.12,178.05zM264.36,205.36l0.32,-1.01l-0.03,-3.17l-2.19,-2.08l-2.57,1.05l-1.19,4.17l0.7,3.56l3.14,-0.36L264.36,205.36zM288.18,212.9l4.41,6.6l3.45,2.85l4.92,-7.87l0.87,-4.93l-4.41,-0.47l-4.03,-6.7l-4.45,-1.64l-6.6,-4.97l5.15,-3.63l-2.65,-7.54l-2.44,-3.35l-6.77,-3.35l-2.92,-5.55l-5.21,1.99l-0.36,-3.86l-3.86,-4.32l-6.22,-4.71l-2.65,3.71l-5.55,2.66l0.42,-6.06l-4.81,-10.05l-7.11,4.06l-2.59,7.7l-2.21,-5.92l2.06,-6.37l-7.24,2.65l-2.88,3.99l-2.15,8.42l0.89,9.05l3.98,0.04l-2.93,3.92l2.33,2.96l4.55,1.25l5.93,2.42l10.2,1.82l5.08,-1.04l1.5,-2.42l2.21,2.79l2.47,0.46l2.97,4.96l-1.8,1.98l5.68,2.63l4.29,3.68l1.08,2.55l0.77,3.24l-3.63,6.93l-0.98,3.44l0.94,2.42l-5.77,0.86l-5.27,0.12l-1.85,4.87l2.37,2.23l8.11,-1.03l-0.04,-1.89l4.08,3.15l4.18,3.28l-0.98,1.77l3.4,3.02l6.02,3.53l7.6,2.39l-0.46,-2.09l-2.92,-3.67l-3.96,-5.37l7.03,5l3.54,1.66l0.97,-4.44l-1.82,-6.3l-1.16,-1.73l-3.81,-3.03l-2.95,-3.91l0.35,-3.94L288.18,212.9zM222.35,51.34l2.34,7.29l4.96,5.88l9.81,-1.09l6.31,1.97l-4.38,6.05l-2.21,-1.78l-7.66,-0.71l1.19,8.31l3.96,6.04l-0.8,5.2l-4.97,3.46l-2.27,5.47l4.55,2.65l3.82,8.55l-7.5,-5.7l-1.71,0.94l1.38,9.38l-5.18,2.83l0.35,5.85l5.3,0.63l4.17,1.44l8.24,-1.84l7.33,3.27l7.49,-7.19l-0.06,-3.02l-4.79,0.48l-0.39,-2.84l3.92,-3.83l1.33,-5.15l4.33,-3.83l2.66,-4.76l-2.32,-7.1l1.94,-2.65l-3.86,-1.89l8.49,-1.63l1.79,-3.15l5.78,-2.6l4.8,-13.47l4.57,-4.94l6.62,-11.12l-6.1,0.1l2.54,-4.3l6.78,-3.99l6.84,-8.9l0.12,-5.73l-5.13,-6.04l-6.02,-2.93l-7.49,-1.82l-6.07,-1.49l-6.07,-1.5l-8.1,3.98l-1.49,-2.53l-8.57,0.98l-5.03,2.57l-3.7,3.65l-2.13,11.74L239,24.52l-3.48,-1.14l-4.12,7.97l-5.5,3.35l-3.27,0.66l-4.17,3.84l0.61,6.65L222.35,51.34zM296.75,316.34l-0.98,-1.98l-1.06,1.26l0.7,1.36l3.56,1.71l1.04,-0.26l1.38,-1.66l-2.6,0.11L296.75,316.34zM239.75,238.48l0.61,1.63l1.98,0.14l3.28,-3.34l0.06,-1.19l-3.85,-0.06L239.75,238.48zM301.88,304.92l-2.87,-1.8l-3.69,-1.09l-0.97,0.37l2.61,2.04l3.63,1.34l1.36,-0.08L301.88,304.92zM326.76,309.71l-0.36,-2.24l-1.96,0.72l0.87,-3.11l-2.8,-1.32l-1.29,1.05l-2.49,-1.18l0.98,-1.51l-1.88,-0.93l-1.83,1.47l1.86,-3.82l1.5,-2.8l0.54,-1.22l-1.3,-0.2l-2.43,1.55l-1.74,2.53l-2.9,6.92l-2.35,2.56l1.22,1.14l-1.75,1.47l0.43,1.23l5.44,0.13l3.01,-0.25l2.69,1.01l-1.98,1.93l1.67,0.14l3.25,-3.58l0.78,0.53l-0.61,3.37l1.84,0.77l1.27,-0.15l1.18,-3.61L326.76,309.71zM305.57,314.47l-2.81,4.56l-4.63,0.58l-3.64,-2.01l-0.92,-3.07l-0.89,-4.46l2.65,-2.83l-2.48,-2.09l-4.19,0.43l-5.88,3.53l-4.5,5.45l-2.38,0.67l3.23,-3.8l4.04,-5.57l3.57,-1.9l2.35,-3.11l2.9,-0.3l4.21,0.03l6,0.92l4.74,-0.71l3.53,-3.62l4.62,-1.59l2.01,-1.58l2.04,-1.71l-0.2,-5.19l-1.13,-1.77l-2.18,-0.63l-1.11,-4.05l-1.8,-1.55l-4.47,-1.26l-2.52,-2.82l-3.73,-2.83l1.13,-3.2l-3.1,-6.26l-3.65,-6.89l-2.18,-4.98l-1.86,2.61l-2.68,6.05l-4.06,2.97l-2.03,-3.16l-2.56,-0.85l-0.93,-6.99l0.08,-4.8l-5,-0.44l-0.85,-2.27l-3.45,-3.44l-2.61,-2.04l-2.32,1.58l-2.88,-0.58l-4.81,-1.65l-1.95,1.4l0.94,9.18l1.22,5.12l-3.31,5.75l3.41,4.02l1.9,4.44l0.23,3.42l-1.55,3.5l-3.18,3.46l-4.49,2.28l1.98,2.53l1.46,7.4l-1.52,4.68l-2.16,1.46l-4.17,-4.28l-2.03,-5.17l-0.87,-4.76l0.46,-4.19l-3.05,-0.47l-4.63,-0.28l-2.97,-2.08l-3.51,-1.37l-2.01,-2.38l-2.8,-1.94l-5.21,-2.23l-3.92,1.02l-1.31,-3.95l-1.26,-4.99l-4.12,-0.9l0.15,-6.41l1.09,-4.48l3.04,-6.6l3.43,-4.9l3.26,-0.77l0.19,-4.05l2.21,-2.68l4.01,-0.42l3.25,-4.39l0.82,-2.9l2.7,-5.73l0.84,-3.5l2.9,2.11l3.9,-1.08l5.49,-4.96l0.36,-3.54l-1.98,-3.98l2.09,-4.06l-0.17,-3.87l-3.76,-3.95l-4.14,-1.19l-3.98,-0.62l-0.15,8.71l-2.04,6.56l-2.93,5.3l-2.71,-4.95l0.84,-5.61l-3.35,-5.02l-3.75,6.09l0.01,-7.99l-5.21,-1.63l2.49,-4.01l-3.81,-9.59l-2.84,-3.91l-3.7,-1.44l-3.32,6.43l-0.22,9.34l3.27,3.29l3,4.91l-1.27,7.71l-2.26,-0.2l-1.78,5.88l0.02,-7l-4.34,-2.58l-2.49,1.33l0.32,4.67l-4.09,-0.18l-4.35,1.17l-4.95,-3.35l-3.13,0.6l-2.82,-4.11l-2.26,-1.84l-2.24,0.77l-3.41,0.35l-1.81,2.61l2.86,3.19l-3.05,3.72l-2.99,-4.42l-2.39,1.3l-7.57,0.87l-5.07,-1.59l3.94,-3.74l-3.78,-3.9l-2.75,0.5l-3.86,-1.32l-6.56,-2.89l-4.29,-3.37l-3.4,-0.47l-1.06,2.36l-3.44,1.31l-0.38,-6.15l-3.73,5.5l-4.74,-7.32l-1.94,-0.89l-0.63,3.91l-2.09,1.9l-1.93,-3.39l-4.59,2.05l-4.2,3.55l-4.17,-0.98l-3.4,2.5l-2.46,3.28l-2.92,-0.72l-4.41,-3.8l-5.23,-1.94l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12l-1.56,2.35l0.06,2.48l3.39,3.45l0.49,3.76l3.59,1.96l-0.4,2.79l1.56,3.96l5.08,1.82l2,1.89l5.43,4.23l0.38,0.01h7.96h8.32h2.76h8.55h8.27h8.41l8.42,0l9.53,0l9.59,0l5.8,0l0.01,-1.64l0.95,-0.02l0.5,2.35l0.87,0.72l1.96,0.26l2.86,0.67l2.72,1.3l2.27,-0.55l3.45,1.09l1.14,-1.66l1.59,-0.66l0.62,-1.03l0.63,-0.55l2.61,0.86l1.93,0.1l0.67,0.57l0.94,2.38l3.15,0.63l-0.49,1.18l1.11,1.21l-0.48,1.56l1.18,0.51l-0.59,1.37l0.75,0.13l0.53,-0.6l0.55,0.9l2.1,0.5l2.13,0.04l2.27,0.41l2.51,0.78l0.91,1.26l1.82,3.04l-0.9,1.3l-2.28,-0.54l-1.42,-2.44l0.36,2.49l-1.34,2.17l0.15,1.84l-0.23,1.07l-1.81,1.27l-1.32,2.09l-0.62,1.32l1.54,0.24l2.08,-1.2l1.23,-1.06l0.83,-0.17l1.54,0.38l0.75,-0.59l1.37,-0.48l2.44,-0.47v0l0,0l-0.25,-1.15l-0.13,0.04l-0.86,0.2l-1.12,-0.36l0.84,-1.32l0.85,-0.46l1.98,-0.56l2.37,-0.53l1.24,0.73l0.78,-0.85l0.89,-0.54l0.6,0.29l0.03,0.06l2.87,-2.73l1.27,-0.73l4.26,-0.03l5.17,0l0.28,-0.98l0.9,-0.2l1.19,-0.62l1,-1.82l0.86,-3.15l2.14,-3.1l0.93,1.08l1.88,-0.7l1.25,1.19l0,5.52l1.83,2.25l3.12,-0.48l4.49,-0.13l-4.87,3.26l0.11,3.29l2.13,0.28l3.13,-2.79l2.78,-1.58l6.21,-2.35l3.47,-2.62l-1.81,-1.46L305.57,314.47zM251.91,243.37l1.1,-3.12l-0.71,-1.23l-1.15,-0.13l-1.08,1.8l-0.13,0.41l0.74,1.77L251.91,243.37zM109.25,279.8L109.25,279.8l1.56,-2.35L109.25,279.8zM105.85,283.09l-2.69,0.38l-1.32,-0.62l-0.17,1.52l0.52,2.07l1.42,1.46l1.04,2.13l1.69,2.1l1.12,0.01l-2.44,-3.7L105.85,283.09z"},{id:"CD",title:"The Democratic Republic of the Congo",d:"M561.71,453.61L561.54,456.87L562.66,457.24L561.76,458.23L560.68,458.97L559.61,460.43L559.02,461.72L558.86,463.96L558.21,465.02L558.19,467.12L557.38,467.9L557.28,469.56L556.89,469.77L556.63,471.3L557.34,472.56L557.52,475.93L558.02,478.5L557.74,479.96L558.3,481.58L559.93,483.15L561.44,486.7L560.34,486.41L556.57,486.89L555.82,487.22L555.02,489.02L555.65,490.27L555.15,493.62L554.8,496.47L555.56,496.98L557.52,498.08L558.29,497.57L558.53,500.65L556.38,500.62L555.23,499.05L554.2,497.83L552.05,497.43L551.42,495.94L549.7,496.84L547.46,496.44L546.52,495.15L544.74,494.89L543.43,494.96L543.27,494.08L542.3,494.01L541.02,493.84L539.29,494.26L538.07,494.19L537.37,494.45L537.52,491.08L536.59,490.03L536.38,488.3L536.79,486.6L536.23,485.51L536.18,483.75L532.77,483.77L533.02,482.76L531.59,482.77L531.44,483.26L529.7,483.37L528.99,485L528.57,485.71L527.02,485.31L526.1,485.71L524.24,485.93L523.17,484.46L522.53,483.55L521.72,481.87L521.03,479.78L512.76,479.75L511.77,480.08L510.96,480.03L509.8,480.41L509.41,479.54L510.12,479.24L510.21,478.02L510.67,477.3L511.69,476.72L512.43,477L513.39,475.93L514.91,475.96L515.09,476.75L516.14,477.25L517.79,475.49L519.42,474.13L520.13,473.24L520.04,470.94L521.26,468.23L522.54,466.8L524.39,465.46L524.71,464.57L524.78,463.55L525.24,462.58L525.09,461L525.44,458.53L525.99,456.79L526.83,455.3L526.99,453.62L527.24,451.67L528.34,450.25L529.84,449.35L532.15,450.3L533.93,451.33L535.98,451.61L538.07,452.15L538.91,450.47L539.3,450.25L540.57,450.53L543.7,449.14L544.8,449.73L545.71,449.65L546.13,448.97L547.17,448.73L549.28,449.02L551.08,449.08L552.01,448.79L553.7,451.1L554.96,451.43L555.71,450.96L557.01,451.15L558.57,450.56L559.24,451.75z"},{id:"CF",title:"Central African Republic",d:"M518.09,442.66L520.41,442.44L520.93,441.72L521.39,441.78L522.09,442.41L525.62,441.34L526.81,440.24L528.28,439.25L528,438.26L528.79,438L531.5,438.18L534.14,436.87L536.16,433.78L537.59,432.64L539.36,432.15L539.68,433.37L541.3,435.14L541.3,436.29L540.85,437.47L541.03,438.34L542,439.15L544.14,440.39L545.67,441.52L545.7,442.44L547.58,443.9L548.75,445.11L549.46,446.79L551.56,447.9L552.01,448.79L551.08,449.08L549.28,449.02L547.17,448.73L546.13,448.97L545.71,449.65L544.8,449.73L543.7,449.14L540.57,450.53L539.3,450.25L538.91,450.47L538.07,452.15L535.98,451.61L533.93,451.33L532.15,450.3L529.84,449.35L528.34,450.25L527.24,451.67L526.99,453.62L525.19,453.46L523.29,452.99L521.62,454.47L520.15,457.07L519.85,456.26L519.73,454.99L518.45,454.09L517.41,452.65L517.17,451.65L515.85,450.19L516.07,449.36L515.79,448.18L516.01,446.01L516.68,445.5z"},{id:"CG",title:"Republic of Congo",d:"M511.69,476.72L510.64,475.76L509.79,476.23L508.66,477.43L506.36,474.48L508.49,472.94L507.44,471.09L508.4,470.39L510.29,470.05L510.51,468.81L512.01,470.15L514.49,470.27L515.35,468.95L515.7,467.1L515.39,464.92L514.07,463.28L515.28,460.05L514.58,459.5L512.5,459.72L511.71,458.29L511.92,457.07L515.45,457.18L517.72,457.91L519.95,458.57L520.15,457.07L521.62,454.47L523.29,452.99L525.19,453.46L526.99,453.62L526.83,455.3L525.99,456.79L525.44,458.53L525.09,461L525.24,462.58L524.78,463.55L524.71,464.57L524.39,465.46L522.54,466.8L521.26,468.23L520.04,470.94L520.13,473.24L519.42,474.13L517.79,475.49L516.14,477.25L515.09,476.75L514.91,475.96L513.39,475.93L512.43,477z"},{id:"CH",title:"Switzerland",d:"M502.15,312.34L502.26,313.08L501.83,314.09L503.1,314.83L504.53,314.94L504.31,316.61L503.08,317.3L501,316.79L500.39,318.42L499.06,318.55L498.57,317.91L497,319.27L495.65,319.46L494.44,318.6L493.48,316.83L492.14,317.47L492.18,315.63L494.23,313.32L494.14,312.27L495.42,312.66L496.19,311.95L498.57,311.98L499.15,311.08z"},{id:"CI",title:"Cote D'ivoire",d:"M467.24,449.46L465.97,449.49L464.01,448.94L462.22,448.97L458.89,449.46L456.95,450.27L454.17,451.29L453.63,451.22L453.84,448.92L454.11,448.57L454.03,447.46L452.84,446.29L451.95,446.1L451.13,445.33L451.74,444.09L451.46,442.73L451.59,441.91L452.04,441.91L452.2,440.68L451.98,440.14L452.25,439.75L453.29,439.41L452.6,437.15L451.95,435.99L452.18,435.02L452.74,434.81L453.1,434.55L453.88,434.97L456.04,435L456.56,434.17L457.04,434.23L457.85,433.91L458.29,435.12L458.94,434.76L460.1,434.34L461.36,434.96L461.85,435.89L463.11,436.49L464.09,435.78L465.41,435.67L467.33,436.4L468.07,440.41L466.89,442.77L466.16,445.94L467.37,448.35z"},{id:"CL",title:"Chile",d:"M282.81,636.73l0,10.57l3,0l1.69,0.13l-0.93,1.98l-2.4,1.53l-1.38,-0.16l-1.66,-0.4l-2.04,-1.48l-2.94,-0.71l-3.53,-2.71l-2.86,-2.57l-3.86,-5.25l2.31,0.97l3.94,3.13l3.72,1.7l1.45,-2.17l0.91,-3.2l2.58,-1.91L282.81,636.73zM283.97,524.72l1.1,4.15l2.02,-0.41l0.34,0.76l-0.96,3.16l-3.05,1.51l0.09,5.14l-0.59,1l0.84,1.23l-1.98,1.95l-1.84,2.96l-1,2.9l0.27,3.11l-1.73,3.34l1.29,5.69l0.73,0.61l-0.01,3.09l-1.6,3.31l0.06,2.87l-2.12,2.26l0.01,3.22l0.85,3.46l-1.68,1.3l-0.75,3.22l-0.66,3.75l0.47,4.54l-1.13,0.77l0.65,4.4l1.27,1.46l-0.92,1.63l1.3,0.78l0.3,1.48l-1.22,0.75l0.3,2.33l-1.02,5.35l-1.49,3.52l0.33,2.11l-0.89,2.68l-2.15,1.88l0.25,4.6l0.99,1.6l1.87,-0.28l-0.05,3.33l1.16,2.63l6.78,0.61l2.6,0.71l-2.49,-0.03l-1.35,1.13l-2.53,1.67l-0.45,4.38l-1.19,0.11l-3.16,-1.54l-3.21,-3.25l0,0l-3.49,-2.63l-0.88,-2.87l0.79,-2.62l-1.41,-2.94l-0.36,-7.34l1.19,-4.03l2.96,-3.19l-4.26,-1.19l2.67,-3.57l0.95,-6.56l3.12,1.37l1.46,-7.97l-1.88,-1l-0.88,4.75l-1.77,-0.54l0.88,-5.42l0.96,-6.84l1.29,-2.48l-0.81,-3.5l-0.23,-3.98l1.18,-0.11l1.72,-5.6l1.94,-5.43l1.19,-4.97l-0.65,-4.91l0.84,-2.67l-0.34,-3.96l1.64,-3.87l0.51,-6.04l0.9,-6.37l0.88,-6.75l-0.21,-4.87l-0.58,-4.15l1.44,-0.75l0.75,-1.5l1.37,1.99l0.37,2.12l1.47,1.25l-0.88,2.87L283.97,524.72z"},{id:"CM",title:"Cameroon",d:"M511.92,457.07L511.57,456.92L509.91,457.28L508.2,456.9L506.87,457.09L502.31,457.02L502.72,454.82L501.62,452.98L500.34,452.5L499.77,451.25L499.05,450.85L499.09,450.08L499.81,448.1L501.14,445.4L501.95,445.37L503.62,443.73L504.69,443.69L506.26,444.84L508.19,443.89L508.45,442.73L509.08,441.59L509.51,440.17L511.01,439.01L511.58,437.04L512.17,436.41L512.57,434.94L513.31,433.13L515.67,430.93L515.82,429.98L516.13,429.47L515.02,428.33L515.11,427.43L515.9,427.26L517.01,429.09L517.2,430.98L517.1,432.87L518.62,435.44L517.06,435.41L516.27,435.61L514.99,435.33L514.38,436.66L516.03,438.31L517.25,438.79L517.65,439.96L518.53,441.89L518.09,442.66L516.68,445.5L516.01,446.01L515.79,448.18L516.07,449.36L515.85,450.19L517.17,451.65L517.41,452.65L518.45,454.09L519.73,454.99L519.85,456.26L520.15,457.07L519.95,458.57L517.72,457.91L515.45,457.18z"},{id:"CN",title:"China",d:"M784.63,410.41l-2.42,1.41l-2.3,-0.91l-0.08,-2.53l1.38,-1.34l3.06,-0.83l1.61,0.07l0.63,1.13l-1.23,1.3L784.63,410.41zM833.19,302.89l4.88,1.38l3.32,3.03l1.13,3.95l4.26,0l2.43,-1.65l4.63,-1.24l-1.47,3.76l-1.09,1.51l-0.96,4.46l-1.89,3.89l-3.4,-0.7l-2.41,1.4l0.74,3.36l-0.4,4.55l-1.43,0.1l0.02,1.93l-1.81,-2.24l-1.11,2.13l-4.33,1.62l0.44,1.97l-2.42,-0.14l-1.33,-1.17l-1.93,2.64l-3.09,1.98l-2.28,2.35l-3.92,1.06l-2.06,1.69l-3.02,0.98l1.49,-1.67l-0.59,-1.41l2.22,-2.45l-1.48,-1.93l-2.44,1.3l-3.17,2.54l-1.73,2.34l-2.75,0.17l-1.43,1.68l1.48,2.41l2.29,0.58l0.09,1.58l2.22,1.02l3.14,-2.51l2.49,1.37l1.81,0.09l0.46,1.84l-3.97,0.97l-1.31,1.87l-2.73,1.73l-1.44,2.39l3.02,1.86l1.1,3.31l1.71,3.05l1.9,2.53l-0.05,2.43l-1.76,0.89l0.67,1.73l1.65,1l-0.43,2.61l-0.71,2.52l-1.57,0.28l-2.05,3.41l-2.27,4.09l-2.6,3.68l-3.86,2.82l-3.9,2.55l-3.16,0.35l-1.71,1.34l-0.97,-0.98l-1.59,1.5l-3.92,1.5l-2.97,0.46l-0.96,3.15l-1.55,0.17l-0.74,-2.16l0.66,-1.16l-3.76,-0.96l-1.33,0.49l-2.82,-0.78l-1.33,-1.22l0.44,-1.74l-2.56,-0.55l-1.35,-1.14l-2.39,1.62l-2.73,0.35l-2.24,-0.02l-1.5,0.74l-1.45,0.44l0.42,3.43l-1.5,-0.08l-0.25,-0.7l-0.08,-1.24l-2.06,0.87l-1.21,-0.55l-2.08,-1.13l0.82,-2.51l-1.78,-0.59l-0.67,-2.8l-2.96,0.51l0.34,-3.63l2.66,-2.58l0.11,-2.57l-0.08,-2.4l-1.22,-0.75l-0.94,-1.86l-1.64,0.24l-3.02,-0.47l0.95,-1.33l-1.31,-1.99l-2,1.35L740.4,378l-3.23,2.03l-2.55,2.36l-2.26,0.39l-1.23,-0.85l-1.48,-0.08l-2,-0.73l-1.51,0.8l-1.85,2.34l-0.24,-2.48l-1.71,0.66l-3.27,-0.31l-3.17,-0.73l-2.28,-1.39l-2.18,-0.63l-0.94,-1.53l-1.58,-0.46l-2.83,-2.09l-2.25,-0.99l-1.16,0.77l-3.9,-2.26l-2.75,-2.07l-0.79,-3.63l2.01,0.44l0.09,-1.69l-1.12,-1.71l0.28,-2.74l-3.01,-3.99l-4.61,-1.39l-0.83,-2.66l-2.07,-1.63l-0.5,-1.01l-0.42,-2.01l0.1,-1.38l-1.7,-0.81l-0.92,0.36l-0.71,-3.32l0.8,-0.83l-0.39,-0.85l2.68,-1.73l1.94,-0.72l2.97,0.49l1.06,-2.35l3.6,-0.44l1,-1.48l4.42,-2.03l0.39,-0.85l-0.22,-2.17l1.92,-1l-2.52,-6.75l5.55,-1.58l1.44,-0.89l2.02,-7.26l5.56,1.35l1.56,-1.86l0.13,-4.19l2.33,-0.39l2.13,-2.83l1.1,-0.35l0.74,2.97l2.36,2.23l4,1.57l1.93,3.32l-1.08,4.73l1.01,1.73l3.33,0.68l3.78,0.55l3.39,2.45l1.73,0.43l1.28,3.57l1.65,2.27l3.09,-0.09l5.79,0.85l3.73,-0.53l2.77,0.57l4.15,2.29l3.39,0l1.24,1.16l3.26,-2.01l4.53,-1.31l4.2,-0.14l3.28,-1.34l2.01,-2.05l1.96,-1.3l-0.45,-1.28l-0.9,-1.5l1.47,-2.54l1.58,0.36l2.88,0.8l2.79,-2.1l4.28,-1.55l2.05,-2.66l1.97,-1.16l4.07,-0.54l2.21,0.46l0.31,-1.45l-2.54,-2.89l-2.25,-1.33l-2.16,1.54l-2.77,-0.65l-1.59,0.53l-0.72,-1.71l1.98,-4.23l1.37,-3.25l3.37,1.63l3.95,-2.74l-0.03,-1.93l2.53,-4.73l1.56,-1.45l-0.04,-2.52l-1.54,-1.1l2.32,-2.31l3.48,-0.84l3.72,-0.13l4.2,1.39l2.46,1.71l1.73,4.61l1.05,1.94l0.98,2.73L833.19,302.89z"},{id:"CO",title:"Colombia",d:"M263.92,463.81L262.72,463.15L261.34,462.23L260.54,462.67L258.16,462.28L257.48,461.08L256.96,461.13L254.15,459.54L253.77,458.67L254.82,458.46L254.7,457.07L255.35,456.06L256.74,455.87L257.93,454.12L259,452.66L257.96,451.99L258.49,450.37L257.86,447.81L258.46,447.08L258.02,444.71L256.88,443.21L257.24,441.85L258.15,442.05L258.68,441.21L258.03,439.56L258.37,439.14L259.81,439.23L261.92,437.26L263.07,436.96L263.1,436.03L263.62,433.64L265.23,432.32L266.99,432.27L267.21,431.68L269.41,431.91L271.62,430.48L272.71,429.84L274.06,428.47L275.06,428.64L275.79,429.39L275.25,430.35L273.45,430.83L272.74,432.25L271.65,433.06L270.84,434.12L270.49,436.13L269.72,437.79L271.16,437.97L271.52,439.27L272.14,439.89L272.36,441.02L272.03,442.06L272.13,442.65L272.82,442.88L273.49,443.86L277.09,443.59L278.72,443.95L280.7,446.36L281.83,446.06L283.85,446.21L285.45,445.89L286.44,446.38L285.93,447.88L285.31,448.82L285.09,450.83L285.65,452.68L286.45,453.51L286.54,454.14L285.12,455.53L286.14,456.14L286.89,457.12L287.74,459.89L287.21,460.24L286.67,458.59L285.89,457.71L284.96,458.67L279.5,458.61L279.53,460.35L281.17,460.64L281.08,461.71L280.52,461.42L278.94,461.88L278.93,463.9L280.17,464.92L280.61,466.51L280.54,467.72L279.28,475.37L277.88,473.88L277.04,473.82L278.85,470.98L276.7,469.67L275.02,469.91L274.01,469.43L272.46,470.17L270.37,469.82L268.72,466.9L267.42,466.18L266.53,464.86L264.67,463.54z"},{id:"CR",title:"Costa Rica",d:"M242.63,440.4L241.11,439.77L240.54,439.18L240.86,438.69L240.76,438.07L239.98,437.39L238.88,436.84L237.91,436.48L237.73,435.65L236.99,435.14L237.17,435.97L236.61,436.64L235.97,435.86L235.07,435.58L234.69,435.01L234.71,434.15L235.08,433.25L234.29,432.85L234.93,432.31L235.35,431.94L237.2,432.69L237.84,432.32L238.73,432.56L239.2,433.14L240.02,433.33L240.69,432.73L241.41,434.27L242.49,435.41L243.81,436.62L242.72,436.87L242.74,438L243.32,438.42L242.9,438.76L243.01,439.27L242.78,439.84z"},{id:"CU",title:"Cuba",d:"M244.58,396.94L247.01,397.16L249.21,397.19L251.84,398.22L252.96,399.33L255.58,398.99L256.57,399.69L258.95,401.56L260.69,402.91L261.61,402.87L263.29,403.48L263.08,404.32L265.15,404.44L267.27,405.66L266.94,406.35L265.07,406.73L263.18,406.88L261.25,406.64L257.24,406.93L259.12,405.27L257.98,404.5L256.17,404.3L255.2,403.44L254.53,401.74L252.95,401.85L250.33,401.05L249.49,400.42L245.84,399.95L244.86,399.36L245.91,398.61L243.16,398.46L241.15,400.02L239.98,400.06L239.58,400.8L238.2,401.13L237,400.84L238.48,399.91L239.08,398.82L240.35,398.15L241.78,397.56L243.91,397.27z"},{id:"CY",title:"Cyprus",d:"M570.31,358.29L572.2,356.83L569.65,357.85L567.63,357.8L567.23,358.63L567.03,358.65L565.7,358.77L566.35,360.14L567.72,360.58L570.6,359.2L570.51,358.93z"},{id:"CZ",title:"Czech Republic",d:"M522.81,307.86L521.51,307.06L520.2,307.28L518.02,305.98L517.03,306.3L515.46,308.04L513.37,306.67L511.79,304.84L510.36,303.8L510.06,301.98L509.57,300.68L511.61,299.73L512.65,298.63L514.66,297.77L515.37,296.93L516.11,297.44L517.36,296.97L518.69,298.4L520.78,298.79L520.61,300L522.13,300.9L522.55,299.77L524.47,300.26L524.74,301.63L526.82,301.89L528.11,304.02L527.28,304.03L526.84,304.8L526.2,304.99L526.02,305.96L525.48,306.17L525.4,306.56L524.45,307L523.2,306.93z"},{id:"DE",title:"Germany",d:"M503.07,278.92L503.12,280.8L505.96,281.92L505.93,283.62L508.78,282.72L510.35,281.41L513.52,283.3L514.84,284.81L515.5,287.2L514.72,288.45L515.73,290.1L516.43,292.55L516.21,294.11L517.36,296.97L516.11,297.44L515.37,296.93L514.66,297.77L512.65,298.63L511.61,299.73L509.57,300.68L510.06,301.98L510.36,303.8L511.79,304.84L513.37,306.67L512.39,308.62L511.38,309.16L511.78,311.88L511.51,312.58L510.64,311.73L509.3,311.61L507.29,312.35L504.82,312.17L504.42,313.26L503,312.12L502.15,312.34L499.15,311.08L498.57,311.98L496.19,311.95L496.54,308.97L497.96,306.07L493.92,305.29L492.6,304.16L492.76,302.27L492.2,301.29L492.52,298.32L492.04,293.63L493.73,293.63L494.44,291.92L495.14,287.69L494.61,286.11L495.16,285.11L497.5,284.85L498.02,285.89L499.93,283.56L499.29,281.77L499.16,279.02L501.28,279.66z"},{id:"DJ",title:"Djibouti",d:"M596.05,427.72L596.71,428.6L596.62,429.79L595.02,430.47L596.23,431.24L595.19,432.76L594.57,432.26L593.9,432.46L592.33,432.41L592.28,431.55L592.07,430.76L593.01,429.43L594,428.17L595.2,428.42z"},{id:"DK",title:"Denmark",d:"M510.83,275.84l-1.68,3.97l-2.93,-2.76l-0.39,-2.05l4.11,-1.66L510.83,275.84zM505.85,271.59l-0.69,1.9l-0.83,-0.55l-2.02,3.59l0.76,2.39l-1.79,0.74l-2.12,-0.64l-1.14,-2.72l-0.08,-5.12l0.47,-1.38l0.8,-1.54l2.47,-0.32l0.98,-1.43l2.26,-1.47l-0.1,2.68l-0.83,1.68l0.34,1.43L505.85,271.59z"},{id:"DO",title:"Dominican Republic",d:"M274.18,407.35L274.53,406.84L276.72,406.86L278.38,407.62L279.12,407.54L279.63,408.59L281.16,408.53L281.07,409.41L282.32,409.52L283.7,410.6L282.66,411.8L281.32,411.16L280.04,411.28L279.12,411.14L278.61,411.68L277.53,411.86L277.11,411.14L276.18,411.57L275.06,413.57L274.34,413.11L274.19,412.27L274.25,411.47L273.53,410.59L274.21,410.09L274.43,408.96z"},{id:"DZ",title:"Algeria",d:"M508.9,396.08L499.29,401.83L491.17,407.68L487.22,409L484.11,409.29L484.08,407.41L482.78,406.93L481.03,406.08L480.37,404.69L470.91,398.14L461.45,391.49L450.9,383.96L450.96,383.35L450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02L471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L471.86,356.68L474.9,356.08L476.67,354.65L479.37,353.6L484.12,352.98L488.76,352.69L490.17,353.21L492.81,351.84L495.81,351.81L496.95,352.62L498.86,352.41L498.29,354.2L498.74,357.48L498.08,360.3L496.35,362.18L496.6,364.71L498.89,366.69L498.92,367.5L500.64,368.83L501.84,374.69L502.75,377.53L502.9,379.01L502.41,381.6L502.61,383.04L502.25,384.76L502.5,386.73L501.38,388.02L503.04,390.28L503.15,391.6L504.14,393.31L505.45,392.75L507.67,394.17z"},{id:"EC",title:"Ecuador",d:"M250.1,472.87L251.59,470.79L250.98,469.57L249.91,470.87L248.23,469.64L248.8,468.86L248.33,466.33L249.31,465.91L249.83,464.18L250.89,462.38L250.69,461.25L252.23,460.65L254.15,459.54L256.96,461.13L257.48,461.08L258.16,462.28L260.54,462.67L261.34,462.23L262.72,463.15L263.92,463.81L264.31,465.92L263.44,467.73L260.38,470.65L257.01,471.75L255.29,474.18L254.76,476.06L253.17,477.21L252,475.8L250.86,475.5L249.7,475.72L249.63,474.7L250.43,474.04z"},{id:"EE",title:"Estonia",d:"M543.42,264.71L543.75,261.59L542.72,262.26L540.94,260.36L540.69,257.25L544.24,255.72L547.77,254.91L550.81,255.83L553.71,255.66L554.13,256.62L552.14,259.76L552.97,264.72L551.77,266.38L549.45,266.37L547.04,264.43L545.81,263.78z"},{id:"EG",title:"Egypt",d:"M573.17,377.28L572.38,378.57L571.78,380.97L571.02,382.61L570.36,383.17L569.43,382.15L568.16,380.73L566.16,376.16L565.88,376.45L567.04,379.82L568.76,383L570.88,387.88L571.91,389.56L572.81,391.3L575.33,394.7L574.77,395.23L574.86,397.2L578.13,399.91L578.62,400.53L567.5,400.53L556.62,400.53L545.35,400.53L545.35,389.3L545.35,378.12L544.51,375.54L545.23,373.54L544.8,372.15L545.81,370.58L549.54,370.53L552.24,371.39L555.02,372.36L556.32,372.86L558.48,371.83L559.63,370.9L562.11,370.63L564.1,371.04L564.87,372.66L565.52,371.59L567.76,372.36L569.95,372.55L571.33,371.73z"},{id:"EH",title:"Western Sahara",d:"M438.57,383.06L442.19,383.07L450.94,383.1L450.94,383.1L450.94,383.1L442.19,383.07L438.57,383.06L438.46,383.15L438.41,383.19L436.63,386.39L434.77,387.53L433.75,389.44L433.69,391.09L432.94,392.88L432,393.37L430.44,395.31L429.48,397.46L429.66,398.48L428.74,400.05L427.66,400.87L427.53,402.26L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L450.96,383.35L450.96,383.14z"},{id:"ER",title:"Eritrea",d:"M594,428.17L593.04,427.24L591.89,425.57L590.65,424.65L589.92,423.65L587.48,422.5L585.56,422.47L584.88,421.86L583.24,422.54L581.54,421.23L580.66,423.38L577.4,422.78L577.1,421.63L578.31,417.38L578.58,415.45L579.46,414.55L581.53,414.07L582.95,412.4L584.58,415.78L585.35,418.45L586.89,419.86L590.71,422.58L592.27,424.22L593.79,425.88L594.67,426.86L596.05,427.72L595.2,428.42z"},{id:"ES",title:"Spain",d:"M449.92,334.56L450.06,331.88L448.92,330.22L452.88,327.45L456.31,328.15L460.08,328.12L463.06,328.78L465.39,328.58L469.92,328.7L471.04,330.19L476.2,331.92L477.22,331.1L480.38,332.82L483.63,332.33L483.78,334.52L481.12,337.01L477.53,337.79L477.28,339.03L475.55,341.06L474.47,344.02L475.56,346.07L473.94,347.67L473.34,349.97L471.22,350.67L469.23,353.36L465.68,353.41L463,353.35L461.25,354.57L460.18,355.88L458.8,355.59L457.77,354.42L456.97,352.42L454.35,351.88L454.12,350.72L455.16,349.4L455.54,348.44L454.58,347.38L455.35,345.03L454.23,342.86L455.44,342.56L455.55,340.84L456.01,340.31L456.04,337.43L457.34,336.43L456.56,334.55L454.92,334.42L454.44,334.89L452.79,334.9L452.08,333.06L450.94,333.61z"},{id:"ET",title:"Ethiopia",d:"M581.54,421.23L583.24,422.54L584.88,421.86L585.56,422.47L587.48,422.5L589.92,423.65L590.65,424.65L591.89,425.57L593.04,427.24L594,428.17L593.01,429.43L592.07,430.76L592.28,431.55L592.33,432.41L593.9,432.46L594.57,432.26L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.69,452.46L589.56,451.52L587,452.69L586.17,453.85L584.3,453.63L583.68,453.31L583.02,453.38L582.14,453.36L578.59,450.98L576.64,450.98L575.68,450.07L575.68,448.5L574.22,448.03L572.57,444.98L571.29,444.33L570.79,443.21L569.37,441.84L567.65,441.64L568.61,440.03L570.09,439.96L570.51,439.1L570.48,436.57L571.31,433.61L572.63,432.81L572.92,431.65L574.12,429.48L575.81,428.06L576.95,425.25L577.4,422.78L580.66,423.38z"},{id:"FK",title:"Falkland Islands",d:"M303.66,633.13L307.02,630.44L309.41,631.56L311.09,629.77L313.33,631.78L312.49,633.36L308.7,634.72L307.44,633.13L305.06,635.18z"},{id:"FI",title:"Finland",d:"M555.42,193.1L555.01,198.5L559.31,203.49L556.72,208.97L559.98,216.93L558.09,222.69L560.62,227.55L559.47,231.69L563.62,235.95L562.56,239.05L559.96,242.5L553.96,249.91L548.87,250.36L543.94,252.43L539.38,253.61L537.75,250.54L535.04,248.67L535.66,242.95L534.3,237.54L535.64,233.96L538.18,230.02L544.59,223L546.47,221.61L546.17,218.77L542.27,215.55L541.33,212.85L541.25,201.73L536.88,196.58L533.14,192.77L534.82,190.69L537.94,194.84L541.6,194.45L544.61,196.32L547.28,192.88L548.66,187.03L553.01,184.25L556.61,187.51z"},{id:"FJ",title:"Fiji",d:"M980.53,508.61l-0.35,1.4l-0.23,0.16l-1.78,0.72l-1.79,0.61l-0.36,-1.09l1.4,-0.6l0.89,-0.16l1.64,-0.91L980.53,508.61zM974.69,512.92l-1.27,-0.36l-1.08,1l0.27,1.29l1.55,0.36l1.74,-0.4l0.46,-1.53l-0.96,-0.84L974.69,512.92z"},{id:"FR",title:"France",d:"M502.06,333.54l-0.93,2.89l-1.27,-0.76l-0.65,-2.53l0.57,-1.41l1.81,-1.45L502.06,333.54zM485.31,300.19l1.96,2.06l1.44,-0.34l2.45,1.97l0.63,0.37l0.81,-0.09l1.32,1.12l4.04,0.79l-1.42,2.9l-0.36,2.98l-0.77,0.71l-1.28,-0.38l0.09,1.05l-2.05,2.3l-0.04,1.84l1.34,-0.63l0.96,1.77l-0.12,1.13l0.83,1.5l-0.97,1.21l0.72,3.04l1.52,0.49l-0.32,1.68l-2.54,2.17l-5.53,-1.04l-4.08,1.24l-0.32,2.29l-3.25,0.49l-3.15,-1.72l-1.02,0.82l-5.16,-1.73l-1.12,-1.49l1.45,-2.32l0.53,-7.88l-2.89,-4.26l-2.07,-2.09l-4.29,-1.6l-0.28,-3.07l3.64,-0.92l4.71,1.09l-0.89,-4.84l2.65,1.85l6.53,-3.37l0.84,-3.61l2.45,-0.9l0.41,1.56l1.3,0.07L485.31,300.19z"},{id:"GA",title:"Gabon",d:"M506.36,474.48L503.48,471.66L501.62,469.36L499.92,466.48L500.01,465.56L500.62,464.66L501.3,462.64L501.87,460.57L502.82,460.41L506.89,460.44L506.87,457.09L508.2,456.9L509.91,457.28L511.57,456.92L511.92,457.07L511.71,458.29L512.5,459.72L514.58,459.5L515.28,460.05L514.07,463.28L515.39,464.92L515.7,467.1L515.35,468.95L514.49,470.27L512.01,470.15L510.51,468.81L510.29,470.05L508.4,470.39L507.44,471.09L508.49,472.94z"},{id:"GB",title:"United Kingdom",d:"M459.38,281l-1.5,3.29l-2.12,-0.98l-1.73,0.07l0.58,-2.57l-0.58,-2.6l2.35,-0.2L459.38,281zM466.83,260.24l-3,5.73l2.86,-0.72l3.07,0.03l-0.73,4.22l-2.52,4.53l2.9,0.32l0.22,0.52l2.5,5.79l1.92,0.77l1.73,5.41l0.8,1.84l3.4,0.88l-0.34,2.93l-1.43,1.33l1.12,2.33l-2.52,2.33l-3.75,-0.04l-4.77,1.21l-1.31,-0.87l-1.85,2.06l-2.59,-0.5l-1.97,1.67l-1.49,-0.87l4.11,-4.64l2.51,-0.97l-0.02,0l-4.38,-0.75l-0.79,-1.8l2.93,-1.41l-1.54,-2.48l0.53,-3.06l4.17,0.42l0,0l0.41,-2.74l-1.88,-2.95l-0.04,-0.07l-3.4,-0.85l-0.67,-1.32l1.02,-2.2l-0.92,-1.37l-1.51,2.34l-0.16,-4.8l-1.42,-2.59l1.02,-5.36l2.18,-4.31l2.24,0.42L466.83,260.24z"},{id:"GE",title:"Georgia",d:"M591.76,335.85L592.18,334.25L591.48,331.68L589.86,330.27L588.31,329.83L587.28,328.66L587.62,328.2L589.99,328.86L594.12,329.48L597.94,331.31L598.43,332.02L600.13,331.42L602.75,332.22L603.6,333.77L605.37,334.64L604.64,335.15L606.02,337.17L605.64,337.6L604.13,337.38L602.04,336.32L601.35,336.92L597.45,337.5L594.75,335.68z"},{id:"GF",title:"French Guiana",d:"M327.89,456.41l-1.07,1.06l-1.34,0.2l-0.38,-0.78l-0.63,-0.12l-0.87,0.76l-1.22,-0.57l0.71,-1.19l0.24,-1.27l0.48,-1.2l-1.09,-1.65l-0.22,-1.91l1.46,-2.41l0.95,0.31l2.06,0.66l2.97,2.36l0.46,1.14l-1.66,2.55L327.89,456.41z"},{id:"GH",title:"Ghana",d:"M478.23,446.84L473.83,448.48L472.27,449.44L469.74,450.25L467.24,449.46L467.37,448.35L466.16,445.94L466.89,442.77L468.07,440.41L467.33,436.4L466.94,434.27L467.01,432.66L471.88,432.53L473.12,432.74L474.02,432.28L475.32,432.5L475.11,433.39L476.28,434.85L476.28,436.9L476.55,439.12L477.25,440.15L476.63,442.68L476.85,444.08L477.6,445.86z"},{id:"GL",title:"Greenland",d:"M344.13,23.91L353.55,10.3L363.39,11.37L366.96,2.42L376.87,0L399.27,3.15L416.81,21.74L411.63,30.04L400.9,30.97L385.81,33L387.22,36.64L397.15,34.4L405.59,41.31L411.04,35.19L413.37,42.34L410.29,53.31L417.43,46.38L431.04,38.83L439.45,42.64L441.02,50.76L429.59,63.42L428.01,67.32L419.05,70.18L425.54,70.97L422.26,82.48L420,92.07L420.09,107.33L423.46,115.67L419.08,116.18L414.47,120.06L419.64,126.36L420.3,135.98L417.3,137L420.93,146.15L414.71,146.9L417.96,151.04L417.04,154.55L413.09,156.06L409.18,156.09L412.69,162.57L412.73,166.7L407.18,162.87L405.74,165.36L409.52,167.65L413.2,173.13L414.26,180.08L409.26,181.7L407.1,178.44L403.63,173.46L404.59,179.33L401.34,183.74L408.72,184.09L412.59,184.54L405.07,191.57L397.45,197.7L389.25,200.31L386.16,200.35L383.26,203.22L379.36,210.85L373.33,215.74L371.39,216.03L367.65,217.7L363.63,219.29L361.22,223.41L361.18,227.97L359.77,232.13L355.19,237.08L356.32,241.79L355.06,246.64L353.63,252.2L349.68,252.54L345.54,247.91L339.93,247.88L337.21,244.7L335.34,238.9L330.48,231.22L329.06,227.07L328.68,221.18L324.79,214.91L325.8,209.74L323.93,207.21L326.7,198.56L330.92,195.71L332.03,192.45L332.62,186.19L329.41,189.05L327.89,190.24L325.37,191.38L321.93,188.77L321.74,183.22L322.84,178.74L325.44,178.62L331.16,180.87L326.34,175.44L323.83,172.43L321.04,173.67L318.7,171.48L321.83,162.98L320.13,159.45L317.9,152.71L314.53,141.8L310.96,137.63L310.99,133L303.46,126.31L297.51,125.46L290.02,125.93L283.18,126.79L279.92,123.04L275.05,115.38L282.41,111.41L288.06,110.73L276.06,107.37L269.74,101.93L270.13,96.59L280.74,89.72L291.01,82.56L292.09,76.92L284.53,71.16L286.97,64.52L296.68,52.19L300.76,50.21L299.59,41.64L306.23,36.4L314.85,33.19L323.47,33.01L326.53,39.31L333.97,27.99L340.66,35.77L344.59,37.36L350.42,43.77L343.75,33z"},{id:"GM",title:"The Gambia",d:"M428.03,426.43L428.39,425.16L431.44,425.07L432.08,424.4L432.97,424.35L434.07,425.06L434.94,425.07L435.87,424.59L436.43,425.41L435.22,426.06L434,426.01L432.8,425.4L431.76,426.06L431.26,426.09L430.58,426.49z"},{id:"GN",title:"Guinea",d:"M451.59,441.91L450.8,441.84L450.23,442.97L449.43,442.96L448.89,442.36L449.07,441.23L447.9,439.51L447.17,439.82L446.57,439.89L445.8,440.05L445.83,439.02L445.38,438.28L445.47,437.46L444.86,436.27L444.08,435.26L441.84,435.26L441.19,435.79L440.41,435.85L439.93,436.46L439.61,437.25L438.11,438.49L436.88,436.82L435.79,435.71L435.07,435.35L434.37,434.78L434.06,433.53L433.65,432.91L432.83,432.44L434.08,431.06L434.93,431.11L435.66,430.63L436.28,430.63L436.72,430.25L436.48,429.31L436.79,429.01L436.84,428.04L438.19,428.07L440.21,428.77L440.83,428.7L441.04,428.39L442.56,428.61L442.97,428.45L443.13,429.5L443.58,429.49L444.31,429.11L444.77,429.21L445.55,429.93L446.75,430.16L447.52,429.54L448.43,429.16L449.1,428.76L449.66,428.84L450.28,429.46L450.62,430.25L451.77,431.44L451.19,432.17L451.08,433.09L451.68,432.81L452.03,433.15L451.88,433.99L452.74,434.81L452.18,435.02L451.95,435.99L452.6,437.15L453.29,439.41L452.25,439.75L451.98,440.14L452.2,440.68L452.04,441.91z"},{id:"GQ",title:"Equatorial Guinea",d:"M501.87,460.57L501.34,460.15L502.31,457.02L506.87,457.09L506.89,460.44L502.82,460.41z"},{id:"GR",title:"Greece",d:"M541.7,356.71l1.53,1.16l2.18,-0.2l2.09,0.24l-0.07,0.59l1.53,-0.41l-0.35,1.01l-4.04,0.29l0.03,-0.56l-3.42,-0.67L541.7,356.71zM549.85,335.75l-0.87,2.33l-0.67,0.41l-1.71,-0.1l-1.46,-0.35l-3.4,0.96l1.94,2.06l-1.42,0.59l-1.56,0l-1.48,-1.88l-0.53,0.8l0.63,2.18l1.4,1.7l-1.06,0.79l1.56,1.65l1.39,1.03l0.04,2l-2.59,-0.94l0.83,1.8l-1.78,0.37l1.06,3.08l-1.86,0.04l-2.3,-1.51l-1.05,-2.81l-0.49,-2.36l-1.09,-1.64l-1.44,-2.05l-0.19,-1.03l1.3,-1.76l0.17,-1.19l0.91,-0.53l0.06,-0.97l1.83,-0.33l1.07,-0.81l1.52,0.07l0.46,-0.65l0.53,-0.12l2.07,0.11l2.24,-1.02l1.98,1.3l2.55,-0.35l0.03,-1.86L549.85,335.75z"},{id:"GT",title:"Guatemala",d:"M222.64,424.75L221.2,424.25L219.45,424.2L218.17,423.63L216.66,422.45L216.73,421.61L217.05,420.93L216.66,420.39L218.01,418.03L221.6,418.02L221.68,417.04L221.22,416.86L220.91,416.23L219.87,415.56L218.83,414.58L220.1,414.58L220.1,412.93L222.72,412.93L225.31,412.96L225.29,415.27L225.07,418.55L225.9,418.55L226.82,419.08L227.06,418.64L227.88,419.01L226.61,420.12L225.28,420.93L225.08,421.48L225.3,422.04L224.72,422.78L224.06,422.95L224.21,423.29L223.69,423.61L222.73,424.33z"},{id:"GW",title:"Guinea-Bissau",d:"M432.83,432.44L431.33,431.25L430.15,431.07L429.51,430.26L429.52,429.83L428.67,429.23L428.49,428.62L429.98,428.15L430.91,428.24L431.66,427.92L436.84,428.04L436.79,429.01L436.48,429.31L436.72,430.25L436.28,430.63L435.66,430.63L434.93,431.11L434.08,431.06z"},{id:"GY",title:"Guyana",d:"M307.7,440L309.54,441.03L311.28,442.86L311.35,444.31L312.41,444.38L313.91,445.74L315.02,446.72L314.57,449.24L312.87,449.97L313.02,450.62L312.5,452.07L313.75,454.09L314.64,454.1L315.01,455.67L316.72,458.09L316.04,458.19L314.49,457.96L313.58,458.7L312.31,459.19L311.43,459.31L311.12,459.85L309.74,459.71L308.01,458.41L307.81,457.12L307.09,455.71L307.54,453.33L308.32,452.35L307.67,451.05L306.71,450.63L307.08,449.4L306.42,448.76L304.96,448.88L303.07,446.76L303.83,445.99L303.77,444.69L305.5,444.24L306.19,443.72L305.23,442.68L305.48,441.65z"},{id:"HN",title:"Honduras",d:"M230.43,426.9L229.95,426.01L229.09,425.76L229.29,424.61L228.91,424.3L228.33,424.1L227.1,424.44L227,424.05L226.15,423.59L225.55,423.02L224.72,422.78L225.3,422.04L225.08,421.48L225.28,420.93L226.61,420.12L227.88,419.01L228.17,419.13L228.79,418.62L229.59,418.58L229.85,418.81L230.29,418.67L231.59,418.93L232.89,418.85L233.79,418.53L234.12,418.21L235.01,418.36L235.68,418.56L236.41,418.49L236.97,418.24L238.25,418.64L238.7,418.7L239.55,419.24L240.36,419.89L241.38,420.33L242.12,421.13L241.16,421.07L240.77,421.46L239.8,421.84L239.09,421.84L238.47,422.21L237.91,422.08L237.43,421.64L237.14,421.72L236.78,422.41L236.51,422.38L236.46,422.98L235.48,423.77L234.97,424.11L234.68,424.47L233.85,423.89L233.25,424.65L232.66,424.63L232,424.7L232.06,426.11L231.65,426.13L231.3,426.79z"},{id:"HR",title:"Croatia",d:"M528.05,318.93L528.73,320.48L529.62,321.62L528.54,323.11L527.27,322.23L525.33,322.29L522.92,321.63L521.61,321.72L521.01,322.54L520,321.63L519.41,323.27L520.79,325.1L521.39,326.31L522.68,327.76L523.75,328.61L524.81,330.22L527.29,331.66L526.98,332.3L524.35,330.9L522.72,329.52L520.16,328.38L517.8,325.53L518.37,325.23L517.09,323.59L517.03,322.25L515.23,321.63L514.37,323.34L513.54,322.01L513.61,320.63L513.71,320.57L515.66,320.71L516.18,320.03L517.13,320.68L518.23,320.76L518.22,319.64L519.19,319.23L519.47,317.61L521.7,316.53L522.59,317.03L524.69,318.76L527,319.53z"},{id:"HT",title:"Haiti",d:"M270.04,406.75L271.75,406.88L274.18,407.35L274.43,408.96L274.21,410.09L273.53,410.59L274.25,411.47L274.19,412.27L272.33,411.77L271.01,411.97L269.3,411.76L267.99,412.31L266.48,411.39L266.73,410.44L269.31,410.85L271.43,411.09L272.44,410.43L271.16,409.16L271.18,408.03L269.41,407.57z"},{id:"HU",title:"Hungary",d:"M520.68,315.11L521.61,312.46L521.07,311.57L522.65,311.56L522.86,309.85L524.29,310.92L525.32,311.38L527.68,310.87L527.9,310.03L529.02,309.9L530.38,309.25L530.68,309.52L532,309L532.66,308L533.58,307.75L536.58,309.03L537.18,308.6L538.73,309.74L538.93,310.86L537.22,311.73L535.89,314.53L534.2,317.29L531.95,318.05L530.2,317.88L528.05,318.93L527,319.53L524.69,318.76L522.59,317.03L521.7,316.53L521.15,315.16z"},{id:"ID",title:"Indonesia",d:"M813.72,492.06l-1.18,0.05l-3.72,-1.98l2.61,-0.56l1.47,0.86l0.98,0.86L813.72,492.06zM824.15,491.78l-2.4,0.62l-0.34,-0.34l0.25,-0.96l1.21,-1.72l2.77,-1.12l0.28,0.56l0.05,0.86L824.15,491.78zM805.83,486.01l1.01,0.75l1.73,-0.23l0.7,1.2l-3.24,0.57l-1.94,0.38l-1.51,-0.02l0.96,-1.62l1.54,-0.02L805.83,486.01zM819.86,486l-0.41,1.56l-4.21,0.8l-3.73,-0.35l-0.01,-1.03l2.23,-0.59l1.76,0.84l1.87,-0.21L819.86,486zM779.82,482.31l5.37,0.28l0.62,-1.16l5.2,1.35l1.02,1.82l4.21,0.51l3.44,1.67l-3.2,1.07l-3.08,-1.13l-2.54,0.08l-2.91,-0.21l-2.62,-0.51l-3.25,-1.07l-2.06,-0.28l-1.17,0.35l-5.11,-1.16l-0.49,-1.21l-2.57,-0.21l1.92,-2.68l3.4,0.17l2.26,1.09l1.16,0.21L779.82,482.31zM853,480.73l-1.44,1.91l-0.27,-2.11l0.5,-1.01l0.59,-0.95l0.64,0.82L853,480.73zM832.04,473.02l-1.05,0.93l-1.94,-0.51l-0.55,-1.2l2.84,-0.13L832.04,473.02zM841.08,472.01l1.02,2.13l-2.37,-1.15l-2.34,-0.23l-1.58,0.18l-1.94,-0.1l0.67,-1.53l3.46,-0.12L841.08,472.01zM851.37,466.59l0.78,4.51l2.9,1.67l2.34,-2.96l3.22,-1.68l2.49,0l2.4,0.97l2.08,1l3.01,0.53l0.05,9.1l0.05,9.16l-2.5,-2.31l-2.85,-0.57l-0.69,0.8l-3.55,0.09l1.19,-2.29l1.77,-0.78l-0.73,-3.05l-1.35,-2.35l-5.44,-2.37l-2.31,-0.23l-4.21,-2.58l-0.83,1.36l-1.08,0.25l-0.64,-1.02l-0.01,-1.21l-2.14,-1.37l3.02,-1l2,0.05l-0.24,-0.74l-4.1,-0.01l-1.11,-1.66l-2.5,-0.51l-1.19,-1.38l3.78,-0.67l1.44,-0.91l4.5,1.14L851.37,466.59zM826.41,459.43l-2.25,2.76l-2.11,0.54l-2.7,-0.54l-4.67,0.14l-2.45,0.4l-0.4,2.11l2.51,2.48l1.51,-1.26l5.23,-0.95l-0.23,1.28l-1.22,-0.4l-1.22,1.63l-2.47,1.08l2.65,3.57l-0.51,0.96l2.52,3.22l-0.02,1.84l-1.5,0.82l-1.1,-0.98l1.36,-2.29l-2.75,1.08l-0.7,-0.77l0.36,-1.08l-2.02,-1.64l0.21,-2.72l-1.87,0.85l0.24,3.25l0.11,4l-1.78,0.41l-1.2,-0.82l0.8,-2.57l-0.43,-2.69l-1.18,-0.02l-0.87,-1.91l1.16,-1.83l0.4,-2.21l1.41,-4.2l0.59,-1.15l2.38,-2.07l2.19,0.82l3.54,0.39l3.22,-0.12l2.77,-2.02L826.41,459.43zM836.08,460.23l-0.15,2.43l-1.45,-0.27l-0.43,1.69l1.16,1.47l-0.79,0.33l-1.13,-1.76l-0.83,-3.56l0.56,-2.23l0.93,-1.01l0.2,1.52l1.66,0.24L836.08,460.23zM805.76,458.29l3.14,2.58l-3.32,0.33l-0.94,1.9l0.12,2.52l-2.7,1.91L802,470.3l-1.08,4.27l-0.41,-0.99l-3.19,1.26l-1.11,-1.71l-2,-0.16l-1.4,-0.89l-3.33,1l-1.02,-1.35l-1.84,0.15l-2.31,-0.32l-0.43,-3.74l-1.4,-0.77l-1.35,-2.38l-0.39,-2.44l0.33,-2.58l1.67,-1.85l0.47,1.86l1.92,1.57l1.81,-0.57l1.79,0.2l1.63,-1.41l1.34,-0.24l2.65,0.78l2.29,-0.59l1.44,-3.88l1.08,-0.97l0.97,-3.17l3.22,0l2.43,0.47l-1.59,2.52l2.06,2.64L805.76,458.29zM771.95,479.71l-3.1,0.06l-2.36,-2.34l-3.6,-2.28l-1.2,-1.69l-2.12,-2.27l-1.39,-2.09l-2.13,-3.9l-2.46,-2.32l-0.82,-2.39l-1.03,-2.17l-2.53,-1.75l-1.47,-2.39l-2.11,-1.56l-2.92,-3.08l-0.25,-1.42l1.81,0.11l4.34,0.54l2.48,2.73l2.17,1.89l1.55,1.16l2.66,3l2.85,0.04l2.36,1.91l1.62,2.33l2.13,1.27l-1.12,2.27l1.61,0.97l1.01,0.07l0.48,1.94l0.98,1.56l2.06,0.25l1.36,1.76l-0.7,3.47L771.95,479.71z"},{id:"IE",title:"Ireland",d:"M457.88,284.29L458.34,287.65L456.22,291.77L451.25,294.45L447.28,293.77L449.55,288.99L448.09,284.22L451.9,280.47L454.02,278.2L454.6,280.8L454.02,283.37L455.76,283.31z"},{id:"IL",title:"Israel",d:"M575.41,366.82L574.92,367.87L573.9,367.41L573.32,369.61L574.02,369.97L573.31,370.43L573.18,371.29L574.5,370.84L574.57,372.11L573.17,377.28L571.33,371.73L572.14,370.65L571.95,370.46L572.69,368.93L573.26,366.43L573.66,365.59L573.74,365.56L574.68,365.56L574.94,364.98L575.69,364.93L575.73,366.3L575.35,366.8z"},{id:"IN",title:"India",d:"M693.5,357.44L696.51,361.43L696.23,364.17L697.34,365.88L697.25,367.57L695.24,367.13L696.03,370.76L698.78,372.82L702.68,375.09L700.9,376.55L699.81,379.54L702.53,380.74L705.17,382.29L708.83,384.06L712.67,384.47L714.29,386.06L716.45,386.35L719.83,387.08L722.16,387.03L722.48,385.79L722.11,383.8L722.33,382.45L724.04,381.78L724.28,384.26L724.33,384.89L726.88,386.08L728.65,385.59L731.01,385.8L733.3,385.71L733.5,383.78L732.36,382.78L734.62,382.38L737.17,380.03L740.4,378L742.75,378.78L744.75,377.44L746.07,379.42L745.12,380.76L748.14,381.23L748.36,382.43L747.37,383.01L747.6,384.94L745.6,384.37L741.97,386.53L742.05,388.31L740.51,390.91L740.36,392.41L739.11,394.93L736.92,394.23L736.81,397.38L736.18,398.41L736.48,399.69L735.09,400.41L733.62,395.61L732.84,395.62L732.38,397.56L730.85,395.98L731.71,394.25L732.97,394.07L734.26,391.48L732.65,390.95L730.04,391L727.38,390.58L727.13,388.43L725.79,388.27L723.57,386.93L722.58,389.04L724.6,390.67L722.85,391.82L722.23,392.94L723.95,393.76L723.48,395.6L724.45,397.88L724.89,400.36L724.48,401.46L722.58,401.42L719.12,402.04L719.28,404.29L717.78,406.05L713.75,408.05L710.61,411.51L708.5,413.36L705.71,415.27L705.71,416.61L704.31,417.33L701.78,418.36L700.47,418.52L699.63,420.72L700.21,424.47L700.36,426.84L699.18,429.55L699.16,434.38L697.71,434.52L696.44,436.67L697.29,437.6L694.73,438.4L693.79,440.32L692.66,441.13L690.01,438.5L688.71,434.54L687.63,431.68L686.65,430.34L685.16,427.6L684.47,424.02L683.98,422.22L681.43,418.25L680.27,412.61L679.43,408.84L679.44,405.26L678.9,402.46L674.82,404.25L672.84,403.89L669.18,400.26L670.53,399.17L669.7,397.99L666.41,395.41L668.28,393.37L674.45,393.38L673.89,390.74L672.32,389.18L672,386.79L670.16,385.39L673.25,382.09L676.51,382.33L679.44,379.01L681.2,375.75L683.92,372.51L683.88,370.18L686.27,368.27L684,366.64L683.03,364.39L682.04,361.44L683.41,359.98L687.67,360.81L690.79,360.3z"},{id:"IQ",title:"Iraq",d:"M602.61,355.77L604.44,356.81L604.66,358.81L603.24,359.98L602.59,362.62L604.54,365.8L607.97,367.62L609.42,370.12L608.96,372.49L609.85,372.49L609.88,374.22L611.43,375.91L609.77,375.76L607.88,375.49L605.82,378.57L600.61,378.31L592.71,371.82L588.53,369.53L585.15,368.64L584.02,364.6L590.23,361.1L591.29,356.98L591.02,354.46L592.56,353.6L594,351.42L595.2,350.87L598.46,351.33L599.45,352.22L600.79,351.63z"},{id:"IR",title:"Iran",d:"M626.44,351.53L628.91,350.85L630.9,348.83L632.77,348.93L634,348.27L636,348.6L639.1,350.39L641.34,350.78L644.54,353.87L646.63,353.99L646.88,356.9L645.74,361.15L644.97,363.6L646.19,364.09L644.99,365.92L645.91,368.56L646.13,370.65L648.25,371.2L648.48,373.3L645.94,376.23L647.32,377.91L648.45,379.84L651.13,381.24L651.21,384.01L652.55,384.52L652.78,385.96L648.74,387.57L647.68,391.17L642.41,390.24L639.35,389.53L636.19,389.12L634.99,385.31L633.65,384.75L631.49,385.31L628.67,386.82L625.24,385.79L622.41,383.38L619.71,382.48L617.84,379.47L615.77,375.2L614.26,375.72L612.48,374.65L611.43,375.91L609.88,374.22L609.85,372.49L608.96,372.49L609.42,370.12L607.97,367.62L604.54,365.8L602.59,362.62L603.24,359.98L604.66,358.81L604.44,356.81L602.61,355.77L600.79,351.63L599.26,348.8L599.8,347.71L598.93,343.59L600.85,342.56L601.29,343.93L602.71,345.59L604.63,346.06L605.65,345.96L608.96,343.3L610.01,343.03L610.83,344.1L609.87,345.88L611.62,347.74L612.31,347.57L613.2,350.18L615.86,350.91L617.81,352.67L621.79,353.27L626.17,352.35z"},{id:"IS",title:"Iceland",d:"M434.57,212.43L433.93,216.91L437.09,221.51L433.45,226.52L425.36,230.9L422.94,232.05L419.25,231.12L411.43,229.11L414.19,226.27L408.09,223.07L413.05,221.79L412.93,219.82L407.05,218.25L408.94,213.78L413.19,212.75L417.56,217.43L421.82,213.68L425.35,215.64L429.92,211.93z"},{id:"IT",title:"Italy",d:"M518.77,347.88l-1.01,2.78l0.42,1.09l-0.59,1.79l-2.14,-1.31l-1.43,-0.38l-3.91,-1.79l0.39,-1.82l3.28,0.32l2.86,-0.39L518.77,347.88zM501.08,337.06l1.68,2.62l-0.39,4.81l-1.27,-0.23l-1.14,1.2l-1.06,-0.95l-0.11,-4.38l-0.64,-2.1l1.54,0.19L501.08,337.06zM509.95,315.46l4.01,1.05l-0.3,1.99l0.67,1.71l-2.23,-0.58l-2.28,1.42l0.16,1.97l-0.34,1.12l0.92,1.99l2.63,1.95l1.41,3.17l3.12,3.05l2.2,-0.02l0.68,0.83l-0.79,0.74l2.51,1.35l2.06,1.12l2.4,1.92l0.29,0.68l-0.52,1.31l-1.56,-1.7l-2.44,-0.6l-1.18,2.36l2.03,1.34l-0.33,1.88l-1.17,0.21l-1.5,3.06l-1.17,0.27l0.01,-1.08l0.57,-1.91l0.61,-0.77l-1.09,-2.09l-0.86,-1.83l-1.16,-0.46l-0.83,-1.58l-1.8,-0.67l-1.21,-1.49l-2.07,-0.24l-2.19,-1.68l-2.56,-2.45l-1.91,-2.19l-0.87,-3.8l-1.4,-0.45l-2.28,-1.29l-1.29,0.53l-1.62,1.8l-1.17,0.28l0.32,-1.68l-1.52,-0.49l-0.72,-3.04l0.97,-1.21l-0.83,-1.5l0.12,-1.13l1.21,0.86l1.35,-0.19l1.57,-1.36l0.49,0.64l1.34,-0.13l0.61,-1.63l2.07,0.51l1.24,-0.68l0.22,-1.67l1.7,0.58l0.33,-0.78l2.77,-0.71L509.95,315.46z"},{id:"JM",title:"Jamaica",d:"M257.76,410.96L259.65,411.22L261.14,411.93L261.6,412.73L259.63,412.78L258.78,413.27L257.21,412.8L255.61,411.73L255.94,411.06L257.12,410.86z"},{id:"JO",title:"Jordan",d:"M574.92,367.87L575.41,366.82L578.53,368.14L584.02,364.6L585.15,368.64L584.62,369.13L579,370.78L581.8,374.04L580.87,374.58L580.41,375.67L578.27,376.11L577.6,377.27L576.38,378.25L573.26,377.74L573.17,377.28L574.57,372.11L574.5,370.84L574.92,369.88z"},{id:"JP",title:"Japan",d:"M852.76,362.01l0.36,1.15l-1.58,2.03l-1.15,-1.07l-1.44,0.78l-0.74,1.95l-1.83,-0.95l0.02,-1.58l1.55,-2l1.59,0.39l1.15,-1.42L852.76,362.01zM870.53,351.73l-1.06,2.78l0.49,1.73l-1.46,2.42l-3.58,1.6l-4.93,0.21l-4,3.84l-1.88,-1.29L854,360.5l-4.88,0.75l-3.32,1.59l-3.28,0.06l2.84,2.46l-1.87,5.61l-1.81,1.37l-1.36,-1.27l0.69,-2.96l-1.77,-0.96l-1.14,-2.28l2.65,-1.03l1.47,-2.11l2.82,-1.75l2.06,-2.33l5.58,-1.02l3,0.7l2.93,-6.17l1.87,1.67l4.11,-3.51l1.59,-1.38l1.76,-4.38l-0.48,-4.1l1.18,-2.33l2.98,-0.68l1.53,5.11l-0.08,2.94l-2.59,3.6L870.53,351.73zM878.76,325.8l1.97,0.83l1.98,-1.65l0.62,4.35l-4.16,1.05l-2.46,3.76l-4.41,-2.58l-1.53,4.12l-3.12,0.06l-0.39,-3.74l1.39,-2.94l3,-0.21l0.82,-5.38l0.83,-3.09l3.29,4.12L878.76,325.8z"},{id:"KE",title:"Kenya",d:"M590.19,465.78L591.85,468.07L589.89,469.19L589.2,470.35L588.14,470.55L587.75,472.52L586.85,473.64L586.3,475.5L585.17,476.42L581.15,473.63L580.95,472.01L570.79,466.34L570.31,466.03L570.29,463.08L571.09,461.95L572.47,460.11L573.49,458.08L572.26,454.88L571.93,453.48L570.6,451.54L572.32,449.87L574.22,448.03L575.68,448.5L575.68,450.07L576.64,450.98L578.59,450.98L582.14,453.36L583.02,453.38L583.68,453.31L584.3,453.63L586.17,453.85L587,452.69L589.56,451.52L590.69,452.46L592.61,452.46L590.16,455.63z"},{id:"KG",title:"Kyrgyzstan",d:"M674.22,333.11L674.85,331.45L676.69,330.91L681.31,332.22L681.74,329.98L683.33,329.18L687.33,330.79L688.35,330.37L693,330.47L697.16,330.87L698.56,332.24L700.29,332.79L699.9,333.65L695.48,335.68L694.48,337.16L690.88,337.6L689.82,339.95L686.85,339.46L684.92,340.18L682.24,341.9L682.63,342.75L681.83,343.58L676.53,344.13L673.06,342.96L670.02,343.24L670.29,341.14L673.34,341.75L674.37,340.62L676.5,340.98L680.09,338.34L676.77,336.38L674.77,337.31L672.7,335.91L675.05,333.48z"},{id:"KH",title:"Cambodia",d:"M765.44,433.6L764.3,432.12L762.89,429.18L762.22,425.73L764.02,423.35L767.64,422.8L770.27,423.21L772.58,424.34L773.85,422.35L776.34,423.41L776.99,425.33L776.64,428.75L771.93,430.94L773.16,432.67L770.22,432.87L767.79,434.01z"},{id:"KP",title:"North Korea",d:"M841.55,332.62L841.94,333.29L840.88,333.06L839.66,334.33L838.82,335.61L838.93,338.28L837.48,339.09L836.98,339.74L835.92,340.82L834.05,341.42L832.84,342.4L832.75,343.97L832.42,344.37L833.54,344.95L835.13,346.53L834.72,347.39L833.53,347.62L831.55,347.79L830.46,349.39L829.2,349.27L829.03,349.59L827.67,348.92L827.33,349.58L826.51,349.87L826.41,349.21L825.68,348.89L824.93,348.32L825.7,346.75L826.36,346.33L826.11,345.68L826.82,343.74L826.63,343.15L825,342.75L823.68,341.78L825.96,339.43L829.05,337.45L830.98,334.8L832.31,335.97L834.73,336.11L834.29,334.14L838.62,332.51L839.74,330.38z"},{id:"KR",title:"South Korea",d:"M835.13,346.53L837.55,350.71L838.24,352.98L838.26,356.96L837.21,358.84L834.67,359.5L832.43,360.91L829.9,361.2L829.59,359.35L830.11,356.78L828.87,353.18L830.95,352.59L829.03,349.59L829.2,349.27L830.46,349.39L831.55,347.79L833.53,347.62L834.72,347.39z"},{id:"XK",title:"Kosovo",d:"M533.47,333.92L533.34,334.69L532.98,334.66L532.8,333.29L532.13,332.91L531.53,331.89L532.05,331.04L532.72,330.76L533.11,329.5L533.61,329.28L534.01,329.82L534.54,330.06L534.9,330.67L535.36,330.85L535.91,331.55L536.31,331.53L535.99,332.46L535.66,332.91L535.75,333.19L535.12,333.33z"},{id:"KW",title:"Kuwait",d:"M609.77,375.76L610.35,377.17L610.1,377.9L611,380.31L609.02,380.39L608.32,378.88L605.82,378.57L607.88,375.49z"},{id:"KZ",title:"Kazakhstan",d:"M674.22,333.11L672.61,333.81L668.92,336.42L667.69,339.07L666.64,339.09L665.88,337.34L662.31,337.22L661.74,334.16L660.37,334.13L660.58,330.33L657.23,327.53L652.42,327.83L649.13,328.39L646.45,324.89L644.16,323.41L639.81,320.57L639.29,320.22L632.07,322.57L632.18,336.7L630.74,336.88L628.78,333.95L626.88,332.89L623.7,333.68L622.46,334.93L622.3,334.01L622.99,332.44L622.46,331.12L619.21,329.82L617.94,326.35L616.4,325.37L616.3,324.09L619.03,324.46L619.14,321.58L621.52,320.94L623.97,321.53L624.48,317.62L623.98,315.11L621.17,315.31L618.79,314.31L615.54,316.1L612.93,316.96L611.5,316.3L611.79,314.2L610,311.44L607.92,311.55L605.54,308.72L607.16,305.5L606.34,304.63L608.57,299.86L611.46,302.39L611.81,299.2L617.59,294.35L621.97,294.23L628.16,297.33L631.47,299.12L634.45,297.25L638.89,297.17L642.48,299.46L643.3,298.15L647.23,298.34L647.94,296.23L643.39,293.14L646.08,290.91L645.56,289.66L648.25,288.45L646.23,285.25L647.51,283.63L658,281.97L659.37,280.78L666.39,278.99L668.91,276.95L673.95,278.01L674.83,283.02L677.76,281.86L681.36,283.49L681.13,286.07L683.82,285.8L690.84,281.31L689.82,282.81L693.4,286.47L699.66,298.05L701.16,295.72L705.02,298.28L709.05,297.14L710.59,297.94L711.94,300.49L713.9,301.33L715.1,303.18L718.71,302.6L720.2,305.23L718.06,308.06L715.73,308.46L715.6,312.64L714.04,314.5L708.48,313.15L706.46,320.41L705.02,321.3L699.47,322.88L701.99,329.63L700.07,330.63L700.29,332.79L698.56,332.24L697.16,330.87L693,330.47L688.35,330.37L687.33,330.79L683.33,329.18L681.74,329.98L681.31,332.22L676.69,330.91L674.85,331.45z"},{id:"LA",title:"Lao People's Democratic Republic",d:"M770.27,423.21L771.18,421.91L771.31,419.47L769.04,416.94L768.86,414.07L766.73,411.69L764.61,411.49L764.05,412.51L762.4,412.59L761.56,412.08L758.61,413.82L758.54,411.2L759.23,408.09L757.34,407.96L757.18,406.18L755.96,405.26L756.56,404.16L758.95,402.22L759.2,402.92L760.69,403L760.27,399.57L761.72,399.13L763.36,401.5L764.62,404.22L768.07,404.25L769.16,406.84L767.37,407.61L766.56,408.68L769.92,410.44L772.25,413.9L774.02,416.47L776.14,418.49L776.85,420.53L776.34,423.41L773.85,422.35L772.58,424.34z"},{id:"LB",title:"Lebanon",d:"M575.69,364.93L574.94,364.98L574.68,365.56L573.74,365.56L574.74,362.83L576.13,360.45L576.19,360.33L577.45,360.51L577.91,361.83L576.38,363.1z"},{id:"LK",title:"Sri Lanka",d:"M704.57,442.37L704.15,445.29L702.98,446.09L700.54,446.73L699.2,444.5L698.71,440.47L699.98,435.89L701.91,437.46L703.22,439.44z"},{id:"LR",title:"Liberia",d:"M453.63,451.22L452.89,451.24L450,449.91L447.46,447.78L445.07,446.25L443.18,444.44L443.85,443.54L444,442.73L445.26,441.2L446.57,439.89L447.17,439.82L447.9,439.51L449.07,441.23L448.89,442.36L449.43,442.96L450.23,442.97L450.8,441.84L451.59,441.91L451.46,442.73L451.74,444.09L451.13,445.33L451.95,446.1L452.84,446.29L454.03,447.46L454.11,448.57L453.84,448.92z"},{id:"LS",title:"Lesotho",d:"M556.5,547.75L557.48,548.71L556.62,550.27L556.14,551.32L554.58,551.82L554.06,552.86L553.06,553.18L550.96,550.69L552.45,548.66L553.97,547.41L555.28,546.77z"},{id:"LT",title:"Lithuania",d:"M538.99,282.09L538.76,280.87L539.06,279.54L537.82,278.77L534.89,277.91L534.29,273.75L537.5,272.2L542.2,272.53L544.96,272.03L545.35,273.08L546.84,273.4L549.54,275.82L549.8,278.02L547.5,279.59L546.85,282.31L543.81,284.11L541.1,284.07L540.43,282.61z"},{id:"LU",title:"Luxembourg",d:"M492.2,301.29L492.76,302.27L492.6,304.16L491.79,304.26L491.16,303.88L491.47,301.45z"},{id:"LV",title:"Latvia",d:"M534.29,273.75L534.39,269.94L535.77,266.7L538.41,264.92L540.63,268.8L542.88,268.7L543.42,264.71L545.81,263.78L547.04,264.43L549.45,266.37L551.77,266.38L553.12,267.57L553.35,270.06L554.26,273.05L551.24,274.98L549.54,275.82L546.84,273.4L545.35,273.08L544.96,272.03L542.2,272.53L537.5,272.2z"},{id:"LY",title:"Libya",d:"M516.89,397.93L514.91,399.05L513.33,397.39L508.9,396.08L507.67,394.17L505.45,392.75L504.14,393.31L503.15,391.6L503.04,390.28L501.38,388.02L502.5,386.73L502.25,384.76L502.61,383.04L502.41,381.6L502.9,379.01L502.75,377.53L501.84,374.69L503.21,373.94L503.45,372.56L503.15,371.21L505.08,369.95L505.94,368.9L507.31,367.95L507.47,365.4L510.76,366.55L511.94,366.26L514.28,366.82L518,368.29L519.31,371.21L521.83,371.85L525.78,373.21L528.77,374.82L530.14,373.98L531.48,372.49L530.83,369.98L531.71,368.38L533.73,366.83L535.66,366.38L539.45,367.06L540.41,368.54L541.45,368.55L542.34,369.11L545.13,369.5L545.81,370.58L544.8,372.15L545.23,373.54L544.51,375.54L545.35,378.12L545.35,389.3L545.35,400.53L545.35,406.49L542.13,406.5L542.09,407.74L530.91,402.04L519.72,396.27z"},{id:"MA",title:"Morocco",d:"M450.96,383.14L450.93,379.39L455.46,377.03L458.26,376.54L460.55,375.68L461.63,374.06L464.91,372.77L465.03,370.36L466.65,370.07L467.92,368.86L471.59,368.3L472.1,367.02L471.36,366.31L470.39,362.78L470.23,360.73L469.17,358.55L467.95,358.51L465.05,357.76L462.38,358L460.69,356.54L458.63,356.52L457.74,358.63L455.87,362.14L453.79,363.53L450.98,365.06L449.18,367.3L448.8,369.04L447.73,371.86L448.43,375.89L446.09,378.57L444.69,379.42L442.48,381.59L439.87,381.94L438.57,383.06L442.19,383.07L450.94,383.1L450.94,383.1L450.94,383.1L442.19,383.07L438.57,383.06z"},{id:"MD",title:"Moldova",d:"M549.89,309.45L550.56,308.83L552.42,308.41L554.49,309.72L555.64,309.88L556.91,311L556.71,312.41L557.73,313.08L558.13,314.8L559.11,315.84L558.92,316.44L559.44,316.86L558.7,317.15L557.04,317.04L556.77,316.47L556.18,316.8L556.38,317.52L555.61,318.81L555.12,320.18L554.42,320.62L553.91,318.79L554.21,317.07L554.12,315.28L552.5,312.84L551.61,311.09L550.74,309.85z"},{id:"ME",title:"Montenegro",d:"M530.77,332.23L530.6,331.51L529.38,333.38L529.57,334.57L528.98,334.28L528.2,333.05L526.98,332.3L527.29,331.66L527.7,329.56L528.61,328.67L529.14,328.31L529.88,328.97L530.29,329.51L531.21,329.92L532.28,330.71L532.05,331.04L531.53,331.89z"},{id:"MG",title:"Madagascar",d:"M614.17,498.4L614.91,499.61L615.6,501.5L616.06,504.96L616.78,506.31L616.5,507.69L616.01,508.55L615.05,506.85L614.53,507.71L615.06,509.85L614.81,511.09L614.04,511.76L613.86,514.24L612.76,517.66L611.38,521.75L609.64,527.42L608.57,531.63L607.3,535.18L605.02,535.91L602.57,537.22L600.96,536.43L598.73,535.33L597.96,533.71L597.77,531L596.79,528.58L596.53,526.41L597.03,524.25L598.32,523.73L598.33,522.74L599.67,520.48L599.92,518.6L599.27,517.2L598.74,515.35L598.52,512.65L599.5,511.02L599.87,509.17L601.27,509.07L602.84,508.47L603.87,507.95L605.11,507.91L606.7,506.26L609.01,504.48L609.85,503.04L609.47,501.81L610.66,502.16L612.21,500.17L612.26,498.45L613.19,497.17z"},{id:"MK",title:"Macedonia",d:"M532.98,334.66L533.34,334.69L533.47,333.92L535.12,333.33L535.75,333.19L536.71,332.97L538,332.91L539.41,334.12L539.61,336.59L539.07,336.71L538.61,337.36L537.09,337.29L536.02,338.1L534.19,338.42L533.03,337.52L532.63,335.93z"},{id:"ML",title:"Mali",d:"M441.13,422.22L442.07,421.7L442.54,420L443.43,419.93L445.39,420.73L446.97,420.16L448.05,420.35L448.48,419.71L459.73,419.67L460.35,417.64L459.86,417.28L458.51,404.6L457.16,391.54L461.45,391.49L470.91,398.14L480.37,404.69L481.03,406.08L482.78,406.93L484.08,407.41L484.11,409.29L487.22,409L487.23,415.75L485.69,417.69L485.45,419.48L482.96,419.93L479.14,420.18L478.1,421.21L476.3,421.32L474.51,421.33L473.81,420.78L472.26,421.19L469.64,422.39L469.11,423.29L466.93,424.57L466.55,425.31L465.38,425.89L464.02,425.51L463.25,426.21L462.84,428.17L460.61,430.53L460.68,431.49L459.91,432.7L460.1,434.34L458.94,434.76L458.29,435.12L457.85,433.91L457.04,434.23L456.56,434.17L456.04,435L453.88,434.97L453.1,434.55L452.74,434.81L451.88,433.99L452.03,433.15L451.68,432.81L451.08,433.09L451.19,432.17L451.77,431.44L450.62,430.25L450.28,429.46L449.66,428.84L449.1,428.76L448.43,429.16L447.52,429.54L446.75,430.16L445.55,429.93L444.77,429.21L444.31,429.11L443.58,429.49L443.13,429.5L442.97,428.45L443.1,427.56L442.86,426.46L441.81,425.65L441.26,424.01z"},{id:"MM",title:"Myanmar",d:"M754.36,405.95L752.72,407.23L750.74,407.37L749.46,410.56L748.28,411.09L749.64,413.66L751.42,415.79L752.56,417.71L751.54,420.23L750.57,420.76L751.24,422.21L753.11,424.49L753.43,426.09L753.38,427.42L754.48,430.02L752.94,432.67L751.58,435.58L751.31,433.48L752.17,431.3L751.23,429.62L751.46,426.51L750.32,425.03L749.41,421.59L748.9,417.93L747.69,415.53L745.84,416.99L742.65,419.05L741.08,418.79L739.34,418.12L740.31,414.51L739.73,411.77L737.53,408.38L737.87,407.31L736.23,406.93L734.24,404.51L734.06,402.1L735.04,402.56L735.09,400.41L736.48,399.69L736.18,398.41L736.81,397.38L736.92,394.23L739.11,394.93L740.36,392.41L740.51,390.91L742.05,388.31L741.97,386.53L745.6,384.37L747.6,384.94L747.37,383.01L748.36,382.43L748.14,381.23L749.78,380.99L750.72,382.85L751.94,383.6L752.03,386L751.91,388.57L749.26,391.15L748.92,394.78L751.88,394.28L752.55,397.08L754.33,397.67L753.51,400.17L755.59,401.3L756.81,401.85L758.86,400.98L758.95,402.22L756.56,404.16L755.96,405.26z"},{id:"MN",title:"Mongolia",d:"M721.29,304.88L724.25,304.14L729.6,300.4L733.87,298.33L736.3,299.68L739.23,299.74L741.1,301.79L743.9,301.94L747.96,303.03L750.68,300L749.54,297.4L752.45,292.74L755.59,294.61L758.13,295.14L761.43,296.29L761.96,299.61L765.95,301.45L768.6,300.64L772.14,300.07L774.95,300.65L777.7,302.74L779.4,304.94L782,304.9L785.53,305.59L788.11,304.53L791.8,303.82L795.91,300.76L797.59,301.23L799.06,302.69L802.4,302.33L801.04,305.58L799.06,309.8L799.78,311.51L801.37,310.98L804.13,311.63L806.29,310.09L808.54,311.42L811.08,314.31L810.77,315.76L808.56,315.3L804.49,315.84L802.51,317L800.46,319.66L796.18,321.21L793.39,323.31L790.51,322.51L788.93,322.15L787.46,324.69L788.35,326.19L788.81,327.47L786.84,328.77L784.83,330.82L781.56,332.15L777.35,332.3L772.82,333.61L769.56,335.62L768.32,334.46L764.93,334.46L760.78,332.17L758.01,331.6L754.28,332.13L748.49,331.28L745.4,331.37L743.76,329.1L742.48,325.53L740.75,325.1L737.36,322.65L733.58,322.1L730.25,321.42L729.24,319.69L730.32,314.96L728.39,311.65L724.39,310.08L722.03,307.85z"},{id:"MR",title:"Mauritania",d:"M441.13,422.22L439.28,420.24L437.58,418.11L435.72,417.34L434.38,416.49L432.81,416.52L431.45,417.15L430.05,416.9L429.09,417.83L428.85,416.27L429.63,414.83L429.98,412.08L429.67,409.17L429.33,407.7L429.61,406.23L428.89,404.81L427.41,403.53L428.02,402.53L439,402.55L438.47,398.2L439.16,396.65L441.78,396.38L441.69,388.52L450.9,388.69L450.9,383.96L461.45,391.49L457.16,391.54L458.51,404.6L459.86,417.28L460.35,417.64L459.73,419.67L448.48,419.71L448.05,420.35L446.97,420.16L445.39,420.73L443.43,419.93L442.54,420L442.07,421.7z"},{id:"MW",title:"Malawi",d:"M572.15,495.69L571.37,497.85L572.15,501.57L573.13,501.53L574.14,502.45L575.31,504.53L575.55,508.25L574.34,508.86L573.48,510.87L571.65,509.08L571.45,507.04L572.04,505.69L571.87,504.54L570.77,503.81L569.99,504.07L568.38,502.69L566.91,501.95L567.76,499.29L568.64,498.3L568.1,495.94L568.66,493.64L569.14,492.87L568.43,490.47L567.11,489.21L569.85,489.73L570.42,490.51L571.37,491.83z"},{id:"MX",title:"Mexico",d:"M202.89,388.72L201.8,391.43L201.31,393.64L201.1,397.72L200.83,399.19L201.32,400.83L202.19,402.3L202.75,404.61L204.61,406.82L205.26,408.51L206.36,409.96L209.34,410.75L210.5,411.97L212.96,411.15L215.09,410.86L217.19,410.33L218.96,409.82L220.74,408.62L221.41,406.89L221.64,404.4L222.13,403.53L224.02,402.74L226.99,402.05L229.47,402.15L231.17,401.9L231.84,402.53L231.75,403.97L230.24,405.74L229.58,407.55L230.09,408.06L229.67,409.34L228.97,411.63L228.26,410.88L227.67,410.93L227.14,410.97L226.14,412.74L225.63,412.39L225.29,412.53L225.31,412.96L222.72,412.93L220.1,412.93L220.1,414.58L218.83,414.58L219.87,415.56L220.91,416.23L221.22,416.86L221.68,417.04L221.6,418.02L218.01,418.03L216.66,420.39L217.05,420.93L216.73,421.61L216.66,422.45L213.49,419.34L212.04,418.4L209.75,417.64L208.19,417.85L205.93,418.94L204.52,419.23L202.54,418.47L200.44,417.91L197.82,416.58L195.72,416.17L192.54,414.82L190.2,413.42L189.49,412.64L187.92,412.47L185.05,411.54L183.88,410.2L180.87,408.53L179.47,406.66L178.8,405.21L179.73,404.92L179.44,404.07L180.09,403.3L180.1,402.26L179.16,400.92L178.9,399.72L177.96,398.2L175.49,395.18L172.67,392.79L171.31,390.88L168.9,389.62L168.39,388.86L168.82,386.94L167.39,386.21L165.73,384.69L165.03,382.5L163.52,382.24L161.9,380.58L160.58,379.03L160.46,378.03L158.95,375.61L157.96,373.13L158,371.88L155.97,370.59L155.04,370.73L153.44,369.83L152.99,371.16L153.45,372.72L153.72,375.15L154.69,376.48L156.77,378.69L157.23,379.44L157.66,379.66L158.02,380.76L158.52,380.71L159.09,382.75L159.94,383.55L160.53,384.66L162.3,386.26L163.23,389.15L164.06,390.5L164.84,391.94L164.99,393.56L166.34,393.66L167.47,395.05L168.49,396.41L168.42,396.95L167.24,398.06L166.74,398.05L166,396.2L164.17,394.47L162.15,392.99L160.71,392.21L160.8,389.96L160.38,388.28L159.04,387.32L157.11,385.93L156.74,386.33L156.04,385.51L154.31,384.76L152.66,382.93L152.86,382.69L154.01,382.87L155.05,381.69L155.16,380.26L153,377.99L151.36,377.1L150.32,375.09L149.28,372.97L147.98,370.36L146.84,367.4L150.03,367.15L153.59,366.79L153.33,367.43L157.56,369.04L163.96,371.35L169.54,371.32L171.76,371.32L171.76,369.97L176.62,369.97L177.64,371.14L179.08,372.17L180.74,373.6L181.67,375.29L182.37,377.05L183.82,378.02L186.15,378.98L187.91,376.45L190.21,376.39L192.18,377.67L193.59,379.85L194.56,381.71L196.21,383.51L196.83,385.7L197.62,387.17L199.8,388.13L201.79,388.81z"},{id:"MY",title:"Malaysia",d:"M758.65,446.07l0.22,1.44l1.85,-0.33l0.92,-1.15l0.64,0.26l1.66,1.69l1.18,1.87l0.16,1.88l-0.3,1.27l0.27,0.96l0.21,1.65l0.99,0.77l1.1,2.46l-0.05,0.94l-1.99,0.19l-2.65,-2.06l-3.32,-2.21l-0.33,-1.42l-1.62,-1.87l-0.39,-2.31l-1.01,-1.52l0.31,-2.04l-0.62,-1.19l0.49,-0.5L758.65,446.07zM807.84,450.9l-2.06,0.95l-2.43,-0.47l-3.22,0l-0.97,3.17l-1.08,0.97l-1.44,3.88l-2.29,0.59l-2.65,-0.78l-1.34,0.24l-1.63,1.41l-1.79,-0.2l-1.81,0.57l-1.92,-1.57l-0.47,-1.86l2.05,0.96l2.17,-0.52l0.56,-2.36l1.2,-0.53l3.36,-0.6l2.01,-2.21l1.38,-1.77l1.28,1.45l0.59,-0.95l1.34,0.09l0.16,-1.78l0.13,-1.38l2.16,-1.95l1.41,-2.19l1.13,-0.01l1.44,1.42l0.13,1.22l1.85,0.78l2.34,0.84l-0.2,1.1l-1.88,0.14L807.84,450.9z"},{id:"MZ",title:"Mozambique",d:"M572.15,495.69L574.26,495.46L577.63,496.26L578.37,495.9L580.32,495.83L581.32,494.98L583,495.02L586.06,493.92L588.29,492.28L588.75,493.55L588.63,496.38L588.98,498.88L589.09,503.36L589.58,504.76L588.75,506.83L587.66,508.84L585.87,510.64L583.31,511.75L580.15,513.16L576.98,516.31L575.9,516.85L573.94,518.94L572.79,519.63L572.55,521.75L573.88,524L574.43,525.76L574.47,526.66L574.96,526.51L574.88,529.47L574.43,530.88L575.09,531.4L574.67,532.67L573.5,533.76L571.19,534.8L567.82,536.46L566.59,537.61L566.83,538.91L567.54,539.12L567.3,540.76L565.18,540.74L564.94,539.36L564.52,537.97L564.28,536.86L564.78,533.43L564.05,531.26L562.71,527L565.66,523.59L566.4,521.44L566.83,521.17L567.14,519.43L566.69,518.55L566.81,516.35L567.36,514.31L567.35,510.62L565.9,509.68L564.56,509.47L563.96,508.75L562.66,508.14L560.32,508.2L560.14,507.12L559.87,505.07L568.38,502.69L569.99,504.07L570.77,503.81L571.87,504.54L572.04,505.69L571.45,507.04L571.65,509.08L573.48,510.87L574.34,508.86L575.55,508.25L575.31,504.53L574.14,502.45L573.13,501.53L572.15,501.57L571.37,497.85z"},{id:"NA",title:"Namibia",d:"M521.08,546.54L519,544.15L517.9,541.85L517.28,538.82L516.59,536.57L515.65,531.85L515.59,528.22L515.23,526.58L514.14,525.34L512.69,522.87L511.22,519.3L510.61,517.45L508.32,514.58L508.15,512.33L509.5,511.78L511.18,511.28L513,511.37L514.67,512.69L515.09,512.48L526.46,512.36L528.4,513.76L535.19,514.17L540.34,512.98L542.64,512.31L544.46,512.48L545.56,513.14L545.59,513.38L544.01,514.04L543.15,514.05L541.37,515.2L540.29,513.99L535.97,515.02L533.88,515.11L533.8,525.68L531.04,525.79L531.04,534.65L531.03,546.17L528.53,547.8L527.03,548.03L525.26,547.43L524,547.2L523.53,545.84L522.42,544.97z"},{id:"NC",title:"New Caledonia",d:"M940.08,523.48L942.38,525.34L943.83,526.72L942.77,527.45L941.22,526.63L939.22,525.28L937.41,523.69L935.56,521.59L935.17,520.58L936.37,520.63L937.95,521.64L939.18,522.65z"},{id:"NE",title:"Niger",d:"M481.29,429.88L481.36,427.93L478.12,427.28L478.04,425.9L476.46,424.03L476.08,422.72L476.3,421.32L478.1,421.21L479.14,420.18L482.96,419.93L485.45,419.48L485.69,417.69L487.23,415.75L487.22,409L491.17,407.68L499.29,401.83L508.9,396.08L513.33,397.39L514.91,399.05L516.89,397.93L517.58,402.6L518.63,403.38L518.68,404.33L519.84,405.35L519.23,406.63L518.15,412.61L518.01,416.4L514.43,419.14L513.22,422.94L514.39,424L514.38,425.85L516.18,425.92L515.9,427.26L515.11,427.43L515.02,428.33L514.49,428.4L512.6,425.27L511.94,425.15L509.75,426.75L507.58,425.92L506.07,425.75L505.26,426.15L503.61,426.07L501.96,427.29L500.53,427.36L497.14,425.88L495.81,426.58L494.38,426.53L493.33,425.45L490.51,424.38L487.5,424.72L486.77,425.34L486.38,426.99L485.57,428.14L485.38,430.68L483.24,429.04L482.23,429.05z"},{id:"NG",title:"Nigeria",d:"M499.09,450.08L496.18,451.08L495.11,450.94L494.03,451.56L491.79,451.5L490.29,449.75L489.37,447.73L487.38,445.89L485.27,445.92L482.8,445.92L482.96,441.39L482.89,439.6L483.42,437.83L484.28,436.96L485.64,435.21L485.35,434.45L485.9,433.31L485.27,431.63L485.38,430.68L485.57,428.14L486.38,426.99L486.77,425.34L487.5,424.72L490.51,424.38L493.33,425.45L494.38,426.53L495.81,426.58L497.14,425.88L500.53,427.36L501.96,427.29L503.61,426.07L505.26,426.15L506.07,425.75L507.58,425.92L509.75,426.75L511.94,425.15L512.6,425.27L514.49,428.4L515.02,428.33L516.13,429.47L515.82,429.98L515.67,430.93L513.31,433.13L512.57,434.94L512.17,436.41L511.58,437.04L511.01,439.01L509.51,440.17L509.08,441.59L508.45,442.73L508.19,443.89L506.26,444.84L504.69,443.69L503.62,443.73L501.95,445.37L501.14,445.4L499.81,448.1z"},{id:"NI",title:"Nicaragua",d:"M234.93,432.31L233.96,431.41L232.65,430.26L232.03,429.3L230.85,428.41L229.44,427.12L229.75,426.68L230.22,427.11L230.43,426.9L231.3,426.79L231.65,426.13L232.06,426.11L232,424.7L232.66,424.63L233.25,424.65L233.85,423.89L234.68,424.47L234.97,424.11L235.48,423.77L236.46,422.98L236.51,422.38L236.78,422.41L237.14,421.72L237.43,421.64L237.91,422.08L238.47,422.21L239.09,421.84L239.8,421.84L240.77,421.46L241.16,421.07L242.12,421.13L241.88,421.41L241.74,422.05L242.02,423.1L241.38,424.08L241.08,425.23L240.98,426.5L241.14,427.23L241.21,428.52L240.78,428.8L240.52,430.02L240.71,430.77L240.13,431.5L240.27,432.26L240.69,432.73L240.02,433.33L239.2,433.14L238.73,432.56L237.84,432.32L237.2,432.69L235.35,431.94z"},{id:"NL",title:"Netherlands",d:"M492.28,285.98L494.61,286.11L495.14,287.69L494.44,291.92L493.73,293.63L492.04,293.63L492.52,298.32L490.97,297.28L489.2,295.33L486.6,296.26L484.55,295.91L485.99,294.67L488.45,287.93z"},{id:"NO",title:"Norway",d:"M554.23,175.61l8.77,6.24l-3.61,2.23l3.07,5.11l-4.77,3.19l-2.26,0.72l1.19,-5.59l-3.6,-3.25l-4.35,2.78l-1.38,5.85l-2.67,3.44l-3.01,-1.87l-3.66,0.38l-3.12,-4.15l-1.68,2.09l-1.74,0.32l-0.41,5.08l-5.28,-1.22l-0.74,4.22l-2.69,-0.03l-1.85,5.24l-2.8,7.87l-4.35,9.5l1.02,2.23l-0.98,2.55l-2.78,-0.11l-1.82,5.91l0.17,8.04l1.79,2.98l-0.93,6.73l-2.33,3.81l-1.24,3.15l-1.88,-3.35l-5.54,6.27l-3.74,1.24l-3.88,-2.71l-1,-5.86l-0.89,-13.26l2.58,-3.88l7.4,-5.18l5.54,-6.59l5.13,-9.3l6.74,-13.76l4.7,-5.67l7.71,-9.89l6.15,-3.59l4.61,0.44l4.27,-6.99l5.11,0.38L554.23,175.61z"},{id:"NP",title:"Nepal",d:"M722.33,382.45L722.11,383.8L722.48,385.79L722.16,387.03L719.83,387.08L716.45,386.35L714.29,386.06L712.67,384.47L708.83,384.06L705.17,382.29L702.53,380.74L699.81,379.54L700.9,376.55L702.68,375.09L703.84,374.31L706.09,375.31L708.92,377.4L710.49,377.86L711.43,379.39L713.61,380.02L715.89,381.41L719.06,382.14z"},{id:"NZ",title:"New Zealand",d:"M960.38,588.63l0.64,1.53l1.99,-1.5l0.81,1.57l0,1.57l-1.04,1.74l-1.83,2.8l-1.43,1.54l1.03,1.86l-2.16,0.05l-2.4,1.46l-0.75,2.57l-1.59,4.03l-2.2,1.8l-1.4,1.16l-2.58,-0.09l-1.82,-1.34l-3.05,-0.28l-0.47,-1.48l1.51,-2.96l3.53,-3.87l1.81,-0.73l2.01,-1.47l2.4,-2.01l1.68,-1.98l1.25,-2.81l1.06,-0.95l0.42,-2.07l1.97,-1.7L960.38,588.63zM964.84,571.61l2.03,3.67l0.06,-2.38l1.27,0.95l0.42,2.65l2.26,1.15l1.89,0.28l1.6,-1.35l1.42,0.41l-0.68,3.15l-0.85,2.09l-2.14,-0.07l-0.75,1.1l0.26,1.56l-0.41,0.68l-1.06,1.97l-1.39,2.53l-2.17,1.49l-0.48,-0.98l-1.17,-0.54l1.62,-3.04l-0.92,-2.01l-3.02,-1.45l0.08,-1.31l2.03,-1.25l0.47,-2.74l-0.13,-2.28l-1.14,-2.34l0.08,-0.61l-1.34,-1.43l-2.21,-3.04l-1.17,-2.41l1.04,-0.27l1.53,1.89l2.18,0.89L964.84,571.61z"},{id:"OM",title:"Oman",d:"M640.29,403.18l-1.05,2.04l-1.27,-0.16l-0.58,0.71l-0.45,1.5l0.34,1.98l-0.26,0.36l-1.29,-0.01l-1.75,1.1l-0.27,1.43l-0.64,0.62l-1.74,-0.02l-1.1,0.74l0.01,1.18l-1.36,0.81l-1.55,-0.27l-1.88,0.98l-1.3,0.16l-0.92,-2.04l-2.19,-4.84l8.41,-2.96l1.87,-5.97l-1.29,-2.14l0.07,-1.22l0.82,-1.26l0.01,-1.25l1.27,-0.6l-0.5,-0.42l0.23,-2l1.43,-0.01l1.26,2.09l1.57,1.11l2.06,0.4l1.66,0.55l1.27,1.74l0.76,1l1,0.38l-0.01,0.67l-1.02,1.79l-0.45,0.84L640.29,403.18zM633.37,388.64L633,389.2l-0.53,-1.06l0.82,-1.06l0.35,0.27L633.37,388.64z"},{id:"PA",title:"Panama",d:"M256.88,443.21L255.95,442.4L255.35,440.88L256.04,440.13L255.33,439.94L254.81,439.01L253.41,438.23L252.18,438.41L251.62,439.39L250.48,440.09L249.87,440.19L249.6,440.78L250.93,442.3L250.17,442.66L249.76,443.08L248.46,443.22L247.97,441.54L247.61,442.02L246.68,441.86L246.12,440.72L244.97,440.54L244.24,440.21L243.04,440.21L242.95,440.82L242.63,440.4L242.78,439.84L243.01,439.27L242.9,438.76L243.32,438.42L242.74,438L242.72,436.87L243.81,436.62L244.81,437.63L244.75,438.23L245.87,438.35L246.14,438.12L246.91,438.82L248.29,438.61L249.48,437.9L251.18,437.33L252.14,436.49L253.69,436.65L253.58,436.93L255.15,437.03L256.4,437.52L257.31,438.36L258.37,439.14L258.03,439.56L258.68,441.21L258.15,442.05L257.24,441.85z"},{id:"PE",title:"Peru",d:"M280.13,513.14L279.38,514.65L277.94,515.39L275.13,513.71L274.88,512.51L269.33,509.59L264.3,506.42L262.13,504.64L260.97,502.27L261.43,501.44L259.06,497.69L256.29,492.45L253.65,486.83L252.5,485.54L251.62,483.48L249.44,481.64L247.44,480.51L248.35,479.26L246.99,476.59L247.86,474.64L250.1,472.87L250.43,474.04L249.63,474.7L249.7,475.72L250.86,475.5L252,475.8L253.17,477.21L254.76,476.06L255.29,474.18L257.01,471.75L260.38,470.65L263.44,467.73L264.31,465.92L263.92,463.81L264.67,463.54L266.53,464.86L267.42,466.18L268.72,466.9L270.37,469.82L272.46,470.17L274.01,469.43L275.02,469.91L276.7,469.67L278.85,470.98L277.04,473.82L277.88,473.88L279.28,475.37L276.75,475.24L276.38,475.66L274.08,476.19L270.88,478.1L270.67,479.4L269.96,480.38L270.24,481.89L268.54,482.7L268.54,483.89L267.8,484.4L268.97,486.93L270.53,488.65L269.94,489.86L271.8,490.02L272.86,491.53L275.33,491.6L277.63,489.94L277.44,494.24L278.72,494.57L280.3,494.08L282.73,498.66L282.12,499.62L281.99,501.64L281.93,504.08L280.83,505.52L281.34,506.59L280.69,507.56L281.9,510z"},{id:"PG",title:"Papua New Guinea",d:"M912.32,482.42l-0.79,0.28l-1.21,-1.08l-1.23,-1.78l-0.6,-2.13l0.39,-0.27l0.3,0.83l0.85,0.63l1.36,1.77l1.32,0.95L912.32,482.42zM901.39,478.67l-1.47,0.23l-0.44,0.79l-1.53,0.68l-1.44,0.66l-1.49,0l-2.3,-0.81l-1.6,-0.78l0.23,-0.87l2.51,0.41l1.53,-0.22l0.42,-1.34l0.4,-0.07l0.27,1.49l1.6,-0.21l0.79,-0.96l1.57,-1l-0.31,-1.65l1.68,-0.05l0.57,0.46l-0.06,1.55L901.39,478.67zM887.96,484.02l2.5,1.84l1.82,2.99l1.61,-0.09l-0.11,1.25l2.17,0.48l-0.84,0.53l2.98,1.19l-0.31,0.82l-1.86,0.2l-0.69,-0.73l-2.41,-0.32l-2.83,-0.43l-2.18,-1.8l-1.59,-1.55l-1.46,-2.46l-3.66,-1.23l-2.38,0.8l-1.71,0.93l0.36,2.08l-2.2,0.97l-1.57,-0.47l-2.9,-0.12l-0.05,-9.16l-0.05,-9.1l4.87,1.92l5.18,1.6l1.93,1.43l1.56,1.41l0.43,1.65l4.67,1.73l0.68,1.49l-2.58,0.3L887.96,484.02zM904.63,475.93l-0.88,0.74l-0.53,-1.65l-0.65,-1.08l-1.27,-0.91l-1.6,-1.19l-2.02,-0.82l0.78,-0.67l1.51,0.78l0.95,0.61l1.18,0.67l1.12,1.17l1.07,0.89L904.63,475.93z"},{id:"PH",title:"Philippines",d:"M829.59,439.86l0.29,1.87l0.17,1.58l-0.96,2.57l-1.02,-2.86l-1.31,1.42l0.9,2.06l-0.8,1.31l-3.3,-1.63l-0.79,-2.03l0.86,-1.33l-1.78,-1.33l-0.88,1.17l-1.32,-0.11l-2.08,1.57l-0.46,-0.82l1.1,-2.37l1.77,-0.79l1.53,-1.06l0.99,1.27l2.13,-0.77l0.46,-1.26l1.98,-0.08l-0.17,-2.18l2.27,1.34l0.24,1.42L829.59,439.86zM822.88,434.6l-1.01,0.93l-0.88,1.79l-0.88,0.84l-1.73,-1.95l0.58,-0.76l0.7,-0.79l0.31,-1.76l1.55,-0.17l-0.45,1.91l2.08,-2.74L822.88,434.6zM807.52,437.32l-3.73,2.67l1.38,-1.97l2.03,-1.74l1.68,-1.96l1.47,-2.82l0.5,2.31l-1.85,1.56L807.52,437.32zM817,430.02l1.68,0.88l1.78,0l-0.05,1.19l-1.3,1.2l-1.78,0.85l-0.1,-1.32l0.2,-1.45L817,430.02zM827.14,429.25l0.79,3.18l-2.16,-0.75l0.06,0.95l0.69,1.75l-1.33,0.63l-0.12,-1.99l-0.84,-0.15l-0.44,-1.72l1.65,0.23l-0.04,-1.08l-1.71,-2.18l2.69,0.06L827.14,429.25zM816,426.66l-0.74,2.47l-1.2,-1.42l-1.43,-2.18l2.4,0.1L816,426.66zM815.42,410.92l1.73,0.84l0.86,-0.76l0.25,0.75l-0.46,1.22l0.96,2.09l-0.74,2.42l-1.65,0.96l-0.44,2.33l0.63,2.29l1.49,0.32l1.24,-0.34l3.5,1.59l-0.27,1.56l0.92,0.69l-0.29,1.32l-2.18,-1.4l-1.04,-1.5l-0.72,1.05l-1.79,-1.72l-2.55,0.42l-1.4,-0.63l0.14,-1.19l0.88,-0.73l-0.84,-0.67l-0.36,1.04l-1.38,-1.65l-0.42,-1.26l-0.1,-2.77l1.13,0.96l0.29,-4.55l0.91,-2.66L815.42,410.92z"},{id:"PL",title:"Poland",d:"M517.36,296.97L516.21,294.11L516.43,292.55L515.73,290.1L514.72,288.45L515.5,287.2L514.84,284.81L516.76,283.42L521.13,281.2L524.67,279.56L527.46,280.38L527.67,281.56L530.38,281.62L533.83,282.17L538.99,282.09L540.43,282.61L541.1,284.07L541.22,286.16L542,287.94L541.98,289.79L540.3,290.73L541.17,292.85L541.22,294.86L542.63,298.75L542.33,299.99L540.94,300.5L538.39,304.11L539.11,306.03L538.5,305.78L535.84,304.14L533.82,304.74L532.5,304.3L530.84,305.22L529.43,303.7L528.27,304.28L528.11,304.02L526.82,301.89L524.74,301.63L524.47,300.26L522.55,299.77L522.13,300.9L520.61,300L520.78,298.79L518.69,298.4z"},{id:"PK",title:"Pakistan",d:"M685.99,351.76L688.06,353.39L688.89,356.05L693.5,357.44L690.79,360.3L687.67,360.81L683.41,359.98L682.04,361.44L683.03,364.39L684,366.64L686.27,368.27L683.88,370.18L683.92,372.51L681.2,375.75L679.44,379.01L676.51,382.33L673.25,382.09L670.16,385.39L672,386.79L672.32,389.18L673.89,390.74L674.45,393.38L668.28,393.37L666.41,395.41L664.36,394.64L663.52,392.44L661.35,390.1L656.19,390.68L651.63,390.73L647.68,391.17L648.74,387.57L652.78,385.96L652.55,384.52L651.21,384.01L651.13,381.24L648.45,379.84L647.32,377.91L645.94,376.23L650.63,377.87L653.44,377.39L655.11,377.79L655.68,377.09L657.63,377.37L661.28,376.04L661.38,373.29L662.94,371.45L665.03,371.45L665.33,370.54L667.48,370.11L668.51,370.41L669.61,369.49L669.46,367.51L670.65,365.51L672.43,364.66L671.33,362.44L674,362.55L674.77,361.33L674.65,360.03L676.05,358.6L675.72,356.9L675.06,355.44L676.7,353.93L679.71,353.2L682.93,352.8L684.35,352.15z"},{id:"PR",title:"Puerto Rico",d:"M289.41,410.89L290.84,411.15L291.35,411.73L290.63,412.47L288.52,412.45L286.88,412.55L286.72,411.3L287.11,410.87z"},{id:"PS",title:"Palestinian Territories",d:"M574.92,367.87L574.92,369.88L574.5,370.84L573.18,371.29L573.31,370.43L574.02,369.97L573.32,369.61L573.9,367.41z"},{id:"PT",title:"Portugal",d:"M449.92,334.56L450.94,333.61L452.08,333.06L452.79,334.9L454.44,334.89L454.92,334.42L456.56,334.55L457.34,336.43L456.04,337.43L456.01,340.31L455.55,340.84L455.44,342.56L454.23,342.86L455.35,345.03L454.58,347.38L455.54,348.44L455.16,349.4L454.12,350.72L454.35,351.88L453.23,352.79L451.75,352.3L450.3,352.68L450.73,349.94L450.47,347.76L449.21,347.43L448.54,346.08L448.77,343.72L449.88,342.41L450.08,340.94L450.67,338.73L450.6,337.16L450.04,335.82z"},{id:"PY",title:"Paraguay",d:"M299.49,526.99L300.6,523.4L300.67,521.8L302.01,519.18L306.9,518.32L309.5,518.37L312.12,519.88L312.16,520.79L312.99,522.45L312.81,526.51L315.77,527.09L316.91,526.5L318.8,527.32L319.33,528.22L319.59,530.99L319.92,532.17L320.96,532.3L322.01,531.81L323.02,532.36L323.02,534.04L322.64,535.86L322.09,537.64L321.63,540.39L319.09,542.79L316.87,543.29L313.72,542.81L310.9,541.96L313.66,537.23L313.25,535.86L310.37,534.66L306.94,532.4L304.65,531.94z"},{id:"QA",title:"Qatar",d:"M617.72,392.16L617.53,389.92L618.29,388.3L619.05,387.96L619.9,388.93L619.95,390.74L619.34,392.55L618.56,392.77z"},{id:"RO",title:"Romania",d:"M538.93,310.86L540.14,309.97L541.88,310.43L543.67,310.45L544.97,311.46L545.93,310.82L548,310.42L548.71,309.44L549.89,309.45L550.74,309.85L551.61,311.09L552.5,312.84L554.12,315.28L554.21,317.07L553.91,318.79L554.42,320.62L555.67,321.35L556.98,320.71L558.26,321.39L558.32,322.42L556.96,323.26L556.11,322.9L555.33,327.61L553.68,327.2L551.64,325.79L548.34,326.69L546.95,327.68L542.83,327.48L540.67,326.87L539.59,327.16L538.78,325.56L538.27,324.88L538.92,324.22L538.22,323.73L537.34,324.61L535.71,323.47L535.49,321.84L533.78,320.9L533.47,319.63L531.95,318.05L534.2,317.29L535.89,314.53L537.22,311.73z"},{id:"RS",title:"Serbia",d:"M533.78,320.9L535.49,321.84L535.71,323.47L537.34,324.61L538.22,323.73L538.92,324.22L538.27,324.88L538.78,325.56L538.09,326.44L538.34,327.86L539.7,329.52L538.63,330.71L538.16,331.92L538.47,332.37L538,332.91L536.71,332.97L535.75,333.19L535.66,332.91L535.99,332.46L536.31,331.53L535.91,331.55L535.36,330.85L534.9,330.67L534.54,330.06L534.01,329.82L533.61,329.28L533.11,329.5L532.72,330.76L532.05,331.04L532.28,330.71L531.21,329.92L530.29,329.51L529.88,328.97L529.14,328.31L529.8,328.14L530.21,326.32L528.86,324.82L529.56,323.1L528.54,323.11L529.62,321.62L528.73,320.48L528.05,318.93L530.2,317.88L531.95,318.05L533.47,319.63z"},{id:"RU",title:"Russian Federation",d:"M1008.27,215.75l-2.78,2.97l-4.6,0.7l-0.07,6.46l-1.12,1.35l-2.63,-0.19l-2.14,-2.26l-3.73,-1.92l-0.63,-2.89l-2.85,-1.1l-3.19,0.87l-1.52,-2.37l0.61,-2.55l-3.36,1.64l1.26,3.19l-1.59,2.83l-0.02,0.04l-3.6,2.89l-3.63,-0.48l2.53,3.44l1.67,5.2l1.29,1.67l0.33,2.53l-0.72,1.6l-5.23,-1.32l-7.84,4.51l-2.49,0.69l-4.29,4.1l-4.07,3.5l-1.03,2.55l-4.01,-3.9l-7.31,4.42l-1.28,-2.08l-2.7,2.39l-3.75,-0.76l-0.9,3.63l-3.36,5.22l0.1,2.14l3.19,1.17l-0.38,7.46l-2.6,0.19l-1.2,4.15l1.17,2.1l-4.9,2.47l-0.97,5.4l-4.18,1.14l-0.84,4.66l-4.04,4.18l-1.04,-3.08l-1.2,-6.69l-1.56,-10.65l1.35,-6.95l2.37,-3.07l0.15,-2.44l4.36,-1.18l5.01,-6.78l4.83,-5.73l5.04,-4.57l2.25,-8.37l-3.41,0.51l-1.68,4.92l-7.11,6.36l-2.3,-7.14l-7.24,2l-7.02,9.56l2.32,3.38l-6.26,1.42l-4.33,0.56l0.2,-3.95l-4.36,-0.84l-3.47,2.7l-8.57,-0.94l-9.22,1.62l-9.08,10.33l-10.75,11.78l4.42,0.61l1.38,3l2.72,1.05l1.79,-2.38l3.08,0.31l4.05,5.19l0.09,3.92l-2.19,4.51l-0.24,5.27l-1.26,6.85l-4.23,6.01l-0.94,2.82l-3.81,4.66l-3.78,4.53l-1.81,2.28l-3.74,2.25l-1.77,0.05l-1.76,-1.86l-3.76,2.79l-0.44,1.26l-0.39,-0.66l-0.02,-1.93l1.43,-0.1l0.4,-4.55l-0.74,-3.36l2.41,-1.4l3.4,0.7l1.89,-3.89l0.96,-4.46l1.09,-1.51l1.47,-3.76l-4.63,1.24l-2.43,1.65l-4.26,0l-1.13,-3.95l-3.32,-3.03l-4.88,-1.38l-1.04,-4.28l-0.98,-2.73l-1.05,-1.94l-1.73,-4.61l-2.46,-1.71l-4.2,-1.39l-3.72,0.13l-3.48,0.84l-2.32,2.31l1.54,1.1l0.04,2.52l-1.56,1.45l-2.53,4.72l0.03,1.93l-3.95,2.74l-3.37,-1.63l-3.35,0.36l-1.47,-1.46l-1.68,-0.47l-4.11,3.06l-3.69,0.71l-2.58,1.06l-3.53,-0.7l-2.6,0.04l-1.7,-2.2l-2.75,-2.09l-2.81,-0.58l-3.55,0.57l-2.65,0.81l-3.98,-1.84l-0.53,-3.32l-3.3,-1.15l-2.54,-0.53l-3.14,-1.87l-2.9,4.66l1.14,2.6l-2.73,3.03l-4.05,-1.09l-2.8,-0.16l-1.87,-2.04l-2.92,-0.06l-2.44,-1.35l-4.26,2.07l-5.35,3.74l-2.96,0.74l-1.1,0.35l-1.49,-2.63l-3.61,0.58l-1.19,-1.84l-1.96,-0.85l-1.35,-2.55l-1.55,-0.8l-4.03,1.14l-3.86,-2.57l-1.49,2.33l-6.27,-11.58l-3.58,-3.66l1.03,-1.5l-7.03,4.49l-2.69,0.27l0.23,-2.58l-3.6,-1.63l-2.93,1.17l-0.88,-5.01l-5.04,-1.06l-2.52,2.03l-7.02,1.79l-1.37,1.19l-10.49,1.66l-1.29,1.62l2.02,3.21l-2.69,1.2l0.53,1.25l-2.69,2.22l4.54,3.1l-0.7,2.11l-3.94,-0.19l-0.81,1.31l-3.59,-2.29l-4.45,0.09l-2.98,1.87l-3.32,-1.79l-6.18,-3.1l-4.38,0.12l-5.79,4.85l-0.35,3.19l-2.88,-2.53l-2.24,4.77l0.82,0.87l-1.62,3.21l2.38,2.84l2.08,-0.12l1.79,2.76l-0.28,2.1l1.42,0.66l-1.28,2.39l-2.72,0.66l-2.79,4.09l2.55,3.7l-0.28,2.59l3.06,4.46l-1.67,1.51l-0.48,0.95l-1.24,-0.25l-1.93,-2.27l-0.79,-0.13l-1.76,-0.87l-0.86,-1.55l-2.62,-0.79l-1.7,0.6l-0.49,-0.71l-3.82,-1.83l-4.13,-0.62l-2.37,-0.66l-0.34,0.45l-3.57,-3.27l-3.2,-1.48l-2.42,-2.32l2.04,-0.64l2.33,-3.35l-1.57,-1.6l4.13,-1.67l-0.07,-0.9l-2.52,0.66l0.09,-1.83l1.45,-1.16l2.71,-0.31l0.44,-1.4l-0.62,-2.33l1.14,-2.23l-0.03,-1.26l-4.13,-1.41l-1.64,0.05l-1.73,-2.04l-2.15,0.69l-3.56,-1.54l0.06,-0.87l-1,-1.93l-2.24,-0.22l-0.23,-1.39l0.7,-0.91l-1.79,-2.58l-2.91,0.44l-0.85,-0.23l-0.71,1.04l-1.05,-0.18l-0.69,-2.94l-0.66,-1.54l0.54,-0.44l2.26,0.16l1.09,-1.02l-0.81,-1.25l-1.89,-0.83l0.17,-0.86l-1.14,-0.87l-1.76,-3.15l0.6,-1.31l-0.27,-2.31l-2.74,-1.18l-1.47,0.59l-0.4,-1.24l-2.95,-1.26l-0.9,-2.99l-0.24,-2.49l-1.35,-1.19l1.2,-1.66l-0.83,-4.96l2,-3.13l-0.42,-0.96l3.19,-3.07l-2.94,-2.68l6,-7.41l2.6,-3.45l1.05,-3.1l-4.15,-4.26l1.15,-4.15l-2.52,-4.85l1.89,-5.76l-3.26,-7.96l2.59,-5.48l-4.29,-4.99l0.41,-5.4l2.26,-0.72l4.77,-3.19l2.89,-2.81l4.61,4.86l7.68,1.88l10.59,8.65l2.15,3.51l0.19,4.8l-3.11,3.69l-4.58,1.85l-12.52,-5.31l-2.06,0.9l4.57,5.1l0.18,3.15l0.18,6.75l3.61,1.97l2.19,1.66l0.36,-3.11l-1.69,-2.8l1.78,-2.51l6.78,4.1l2.36,-1.59l-1.89,-4.88l6.53,-6.74l2.59,0.4l2.62,2.43l1.63,-4.81l-2.34,-4.28l1.37,-4.41l-2.06,-4.69l7.84,2.44l1.6,4.18l-3.55,0.91l0.02,4.04l2.21,2.44l4.33,-1.54l0.69,-4.61l5.86,-3.52l9.79,-6.54l2.11,0.38l-2.76,4.64l3.48,0.78l2.01,-2.58l5.25,-0.21l4.16,-3.19l3.2,4.62l3.19,-5.09l-2.94,-4.58l1.46,-2.66l8.28,2.44l3.88,2.49l10.16,8.8l1.88,-3.97l-2.85,-4.11l-0.08,-1.68l-3.38,-0.78l0.92,-3.83l-1.5,-6.49l-0.08,-2.74l5.17,-7.99l1.84,-8.42l2.08,-1.88l7.42,2.51l0.58,5.18l-2.66,7.28l1.74,2.78l0.9,5.94l-0.64,11.07l3.09,4.73l-1.2,5.01l-5.49,10.2l3.21,1.02l1.12,-2.51l3.08,-1.82l0.74,-3.55l2.43,-3.49l-1.63,-4.26l1.31,-5.08l-3.07,-0.64l-0.67,-4.42l2.24,-8.28l-3.64,-7.03l5.02,-6.04l-0.65,-6.62l1.4,-0.22l1.47,5.19l-1.11,8.67l3,1.59l-1.28,-6.37l4.69,-3.58l5.82,-0.49l5.18,5.18l-2.49,-7.62l-0.28,-10.28l4.88,-2.02l6.74,0.44l6.08,-1.32l-2.28,-5.38l3.25,-7.02l3.22,-0.3l5.45,-5.51l7.4,-1.51l0.94,-3.15l7.36,-1.08l2.29,2.61l6.29,-6.24l5.15,0.2l0.77,-5.24l2.68,-5.33l6.62,-5.31l4.81,4.21l-3.82,3.13l6.35,1.92l0.76,6.03l2.56,-2.94l8.2,0.16l6.32,5.84l2.25,4.35l-0.7,5.85l-3.1,3.24l-7.37,5.92l-2.11,3.08l3.48,1.43l4.15,2.55l2.52,-1.91l1.43,6.39l1.23,-2.56l4.48,-1.57l9,1.65l0.68,4.58l11.72,1.43l0.16,-7.47l5.95,1.74l4.48,-0.05l4.53,5.14l1.29,6.04l-1.66,3.84l3.52,6.98l4.41,3.49l2.71,-9.18l4.5,4l4.78,-2.38l5.43,2.72l2.07,-2.47l4.59,1.24l-2.02,-8.4l3.7,-4.07l25.32,6.06l2.39,5.35l7.34,6.65l11.32,-1.62l5.58,1.41l2.33,3.5l-0.34,6.02l3.45,2.29l3.75,-1.64l4.97,-0.21l5.29,1.57l5.31,-0.89l4.88,6.99l3.47,-2.48l-2.27,-5.07l1.25,-3.62l8.95,2.29l5.83,-0.49l8.06,3.84l3.92,3.44l6.87,5.86l7.35,7.34l-0.24,4.44l1.89,1.74l-0.65,-5.15l7.61,1.07L1008.27,215.75zM880.84,306.25l-2.82,-7.68l-1.16,-4.51l0.07,-4.5l-0.97,-4.5l-0.73,-3.15l-1.25,0.67l1.11,2.21l-2.59,2.17l-0.25,6.3l1.64,4.41l-0.12,5.85l-0.65,3.24l0.32,4.54l-0.31,4.01l0.52,3.4l1.84,-3.13l2.13,2.44l0.08,-2.84l-2.73,-4.23l1.72,-6.11L880.84,306.25zM537.82,278.77l-2.94,-0.86l-3.87,1.58l-0.64,2.13l3.45,0.55l5.16,-0.07l-0.22,-1.23l0.3,-1.33L537.82,278.77zM979.95,178.65l3.66,-0.52l2.89,-2.06l0.24,-1.19l-4.06,-2.51l-2.38,-0.02l-0.36,0.37l-3.57,3.64l0.5,2.73L979.95,178.65zM870.07,151.56l-2.66,3.92l0.49,0.52l5.75,1.08l4.25,-0.07l-0.34,-2.57l-3.98,-3.81L870.07,151.56zM894.64,142.03l3.24,-4.25l-7.04,-2.88l-5.23,-1.68l-0.67,3.59l5.21,4.27L894.64,142.03zM869.51,140.34l10.33,0.3l2.21,-8.14l-10.13,-6.07l-7.4,-0.51l-3.7,2.18l-1.51,7.75l5.55,7.01L869.51,140.34zM622.39,166.28l-2.87,1.96l0.41,4.83l5.08,2.35l0.74,3.82l9.16,1.1l1.66,-0.74l-5.36,-7.11l-0.57,-7.52l4.39,-9.14l4.18,-9.82l8.71,-10.17l8.56,-5.34l9.93,-5.74l1.88,-3.71l-1.95,-4.83l-5.46,1.6l-4.8,4.49l-9.33,2.22l-9.26,7.41l-6.27,5.85l0.76,4.87l-6.71,9.03l2.58,1.22l-5.56,8.27L622.39,166.28zM769.87,98.34l0.83,-5.72l-7.11,-8.34l-2.11,-0.98l-2.3,1.7l-5.12,18.6L769.87,98.34zM605.64,69.03l3.04,3.88l3.28,-2.69l0.39,-2.72l2.52,-1.27l3.76,-2.23l1.08,-2.62l-4.16,-3.85l-2.64,2.9l-1.61,4.12l-0.57,-4.65l-4.26,0.21L601,63.25l6.24,0.52L605.64,69.03zM736.89,82.07l4.65,5.73l7.81,4.2l6.12,-1.8l0.69,-13.62l-6.46,-16.04l-5.45,-9.02l-6.07,4.11l-7.28,11.83l3.83,3.27L736.89,82.07z"},{id:"RW",title:"Rwanda",d:"M560.54,466.55L561.66,468.12L561.49,469.76L560.69,470.11L559.2,469.93L558.34,471.52L556.63,471.3L556.89,469.77L557.28,469.56L557.38,467.9L558.19,467.12L558.87,467.41z"},{id:"SA",title:"Saudi Arabia",d:"M595.2,417.22L594.84,415.98L593.99,415.1L593.77,413.93L592.33,412.89L590.83,410.43L590.04,408.02L588.1,405.98L586.85,405.5L584.99,402.65L584.67,400.57L584.79,398.78L583.18,395.42L581.87,394.23L580.35,393.6L579.43,391.84L579.58,391.15L578.8,389.55L577.98,388.86L576.89,386.54L575.18,384.02L573.75,381.86L572.36,381.87L572.79,380.13L572.92,379.02L573.26,377.74L576.38,378.25L577.6,377.27L578.27,376.11L580.41,375.67L580.87,374.58L581.8,374.04L579,370.78L584.62,369.13L585.15,368.64L588.53,369.53L592.71,371.82L600.61,378.31L605.82,378.57L608.32,378.88L609.02,380.39L611,380.31L612.1,383.04L613.48,383.75L613.96,384.86L615.87,386.17L616.04,387.46L615.76,388.49L616.12,389.53L616.92,390.4L617.3,391.41L617.72,392.16L618.56,392.77L619.34,392.55L619.87,393.72L619.98,394.43L621.06,397.51L629.48,399.03L630.05,398.39L631.33,400.53L629.46,406.5L621.05,409.46L612.97,410.59L610.35,411.91L608.34,414.98L607.03,415.46L606.33,414.49L605.26,414.64L602.55,414.35L602.03,414.05L598.8,414.12L598.04,414.39L596.89,413.63L596.14,415.06L596.43,416.29z"},{id:"SB",title:"Solomon Islands",d:"M929.81,492.75l0.78,0.97l-1.96,-0.02l-1.07,-1.74l1.67,0.69L929.81,492.75zM926.26,491.02l-1.09,0.06l-1.72,-0.29l-0.59,-0.44l0.18,-1.12l1.85,0.44l0.91,0.59L926.26,491.02zM928.58,490.25l-0.42,0.52l-2.08,-2.45l-0.58,-1.68h0.95l1.01,2.25L928.58,490.25zM923.52,486.69l0.12,0.57l-2.2,-1.19l-1.54,-1.01l-1.05,-0.94l0.42,-0.29l1.29,0.67l2.3,1.29L923.52,486.69zM916.97,483.91l-0.56,0.16l-1.23,-0.64l-1.15,-1.15l0.14,-0.47l1.67,1.18L916.97,483.91z"},{id:"SD",title:"Sudan",d:"M570.48,436.9L570.09,436.85L570.14,435.44L569.8,434.47L568.36,433.35L568.02,431.3L568.36,429.2L567.06,429.01L566.87,429.64L565.18,429.79L565.86,430.62L566.1,432.33L564.56,433.89L563.16,435.93L561.72,436.22L559.36,434.57L558.3,435.15L558.01,435.98L556.57,436.51L556.47,437.09L553.68,437.09L553.29,436.51L551.27,436.41L550.26,436.9L549.49,436.65L548.05,435L547.57,434.23L545.54,434.62L544.77,435.93L544.05,438.45L543.09,438.98L542.23,439.29L542,439.15L541.03,438.34L540.85,437.47L541.3,436.29L541.3,435.14L539.68,433.37L539.36,432.15L539.39,431.46L538.36,430.63L538.33,428.97L537.75,427.87L536.76,428.04L537.04,426.99L537.77,425.79L537.45,424.61L538.37,423.73L537.79,423.06L538.53,421.28L539.81,419.15L542.23,419.35L542.09,407.74L542.13,406.5L545.35,406.49L545.35,400.53L556.62,400.53L567.5,400.53L578.62,400.53L579.52,403.47L578.91,404.01L579.32,407.07L580.35,410.59L581.41,411.32L582.95,412.4L581.53,414.07L579.46,414.55L578.58,415.45L578.31,417.38L577.1,421.63L577.4,422.78L576.95,425.25L575.81,428.06L574.12,429.48L572.92,431.65L572.63,432.81L571.31,433.61L570.48,436.57z"},{id:"SE",title:"Sweden",d:"M537.45,217.49L534.73,222.18L535.17,226.2L530.71,231.33L525.3,236.67L523.25,245.08L525.25,249.15L527.93,252.29L525.36,258.52L522.44,259.78L521.37,268.62L519.78,273.38L516.38,272.89L514.79,276.84L511.54,277.07L510.65,272.36L508.3,266.55L506.17,259.05L507.41,255.9L509.74,252.09L510.67,245.36L508.88,242.38L508.7,234.34L510.53,228.43L513.31,228.54L514.28,225.99L513.26,223.76L517.61,214.26L520.42,206.39L522.27,201.15L524.96,201.17L525.71,196.96L530.99,198.18L531.4,193.1L533.14,192.77L536.88,196.58L541.25,201.73L541.33,212.85L542.27,215.55z"},{id:"SI",title:"Slovenia",d:"M513.96,316.51L516.28,316.82L517.7,315.9L520.15,315.8L520.68,315.11L521.15,315.16L521.7,316.53L519.47,317.61L519.19,319.23L518.22,319.64L518.23,320.76L517.13,320.68L516.18,320.03L515.66,320.71L513.71,320.57L514.33,320.21L513.66,318.5z"},{id:"SJ",title:"Svalbard and Jan Mayen",d:"M544.58,104.49l-6.26,5.36l-4.95,-3.02l1.94,-3.42l-1.69,-4.34l5.81,-2.78l1.11,5.18L544.58,104.49zM526.43,77.81l9.23,11.29l-7.06,5.66l-1.56,10.09l-2.46,2.49l-1.33,10.51l-3.38,0.48l-6.03,-7.64l2.54,-4.62l-4.2,-3.86l-5.46,-11.82l-2.18,-11.79l7.64,-5.69l1.54,5.56l3.99,-0.22l1.06,-5.43l4.12,-0.56L526.43,77.81zM546.6,66.35l5.5,5.8l-4.16,8.52l-8.13,1.81l-8.27,-2.56l-0.5,-4.32l-4.02,-0.28l-3.07,-7.48l8.66,-4.72l4.07,4.08l2.84,-5.09L546.6,66.35z"},{id:"SK",title:"Slovakia",d:"M528.11,304.02L528.27,304.28L529.43,303.7L530.84,305.22L532.5,304.3L533.82,304.74L535.84,304.14L538.5,305.78L537.73,306.89L537.18,308.6L536.58,309.03L533.58,307.75L532.66,308L532,309L530.68,309.52L530.38,309.25L529.02,309.9L527.9,310.03L527.68,310.87L525.32,311.38L524.29,310.92L522.86,309.85L522.58,308.4L522.81,307.86L523.2,306.93L524.45,307L525.4,306.56L525.48,306.17L526.02,305.96L526.2,304.99L526.84,304.8L527.28,304.03z"},{id:"SL",title:"Sierra Leone",d:"M443.18,444.44L442.42,444.23L440.41,443.1L438.95,441.6L438.46,440.57L438.11,438.49L439.61,437.25L439.93,436.46L440.41,435.85L441.19,435.79L441.84,435.26L444.08,435.26L444.86,436.27L445.47,437.46L445.38,438.28L445.83,439.02L445.8,440.05L446.57,439.89L445.26,441.2L444,442.73L443.85,443.54z"},{id:"SN",title:"Senegal",d:"M428.39,425.16L427.23,422.92L425.83,421.9L427.07,421.35L428.43,419.32L429.09,417.83L430.05,416.9L431.45,417.15L432.81,416.52L434.38,416.49L435.72,417.34L437.58,418.11L439.28,420.24L441.13,422.22L441.26,424.01L441.81,425.65L442.86,426.46L443.1,427.56L442.97,428.45L442.56,428.61L441.04,428.39L440.83,428.7L440.21,428.77L438.19,428.07L436.84,428.04L431.66,427.92L430.91,428.24L429.98,428.15L428.49,428.62L428.03,426.43L430.58,426.49L431.26,426.09L431.76,426.06L432.8,425.4L434,426.01L435.22,426.06L436.43,425.41L435.87,424.59L434.94,425.07L434.07,425.06L432.97,424.35L432.08,424.4L431.44,425.07z"},{id:"SO",title:"Somalia",d:"M618.63,430.43L618.56,429.64L617.5,429.65L616.17,430.63L614.68,430.91L613.39,431.33L612.5,431.39L610.9,431.49L609.9,432.01L608.51,432.2L606.04,433.08L602.99,433.41L600.34,434.14L598.95,434.13L597.69,432.94L597.14,431.77L596.23,431.24L595.19,432.76L594.58,433.77L595.62,435.33L596.65,436.69L597.72,437.7L606.89,441.04L609.25,441.02L601.32,449.44L597.67,449.56L595.17,451.53L593.38,451.58L592.61,452.46L590.16,455.63L590.19,465.78L591.85,468.07L592.48,467.41L593.13,465.95L596.2,462.57L598.81,460.45L603.01,457.69L605.81,455.43L609.11,451.62L611.5,448.49L613.91,444.39L615.64,440.8L616.99,437.65L617.78,434.6L618.38,433.58L618.37,432.08z"},{id:"SR",title:"Suriname",d:"M315.02,446.72L318.38,447.28L318.68,446.77L320.95,446.57L323.96,447.33L322.5,449.73L322.72,451.64L323.83,453.3L323.34,454.5L323.09,455.77L322.37,456.94L320.77,456.35L319.44,456.64L318.31,456.39L318.03,457.2L318.5,457.75L318.25,458.32L316.72,458.09L315.01,455.67L314.64,454.1L313.75,454.09L312.5,452.07L313.02,450.62L312.87,449.97L314.57,449.24z"},{id:"SS",title:"South Sudan",d:"M570.48,436.9L570.51,439.1L570.09,439.96L568.61,440.03L567.65,441.64L569.37,441.84L570.79,443.21L571.29,444.33L572.57,444.98L574.22,448.03L572.32,449.87L570.6,451.54L568.87,452.82L566.9,452.82L564.64,453.47L562.86,452.84L561.71,453.61L559.24,451.75L558.57,450.56L557.01,451.15L555.71,450.96L554.96,451.43L553.7,451.1L552.01,448.79L551.56,447.9L549.46,446.79L548.75,445.11L547.58,443.9L545.7,442.44L545.67,441.52L544.14,440.39L542.23,439.29L543.09,438.98L544.05,438.45L544.77,435.93L545.54,434.62L547.57,434.23L548.05,435L549.49,436.65L550.26,436.9L551.27,436.41L553.29,436.51L553.68,437.09L556.47,437.09L556.57,436.51L558.01,435.98L558.3,435.15L559.36,434.57L561.72,436.22L563.16,435.93L564.56,433.89L566.1,432.33L565.86,430.62L565.18,429.79L566.87,429.64L567.06,429.01L568.36,429.2L568.02,431.3L568.36,433.35L569.8,434.47L570.14,435.44L570.09,436.85z"},{id:"SV",title:"El Salvador",d:"M229.09,425.76L228.78,426.43L227.16,426.39L226.15,426.12L224.99,425.55L223.43,425.37L222.64,424.75L222.73,424.33L223.69,423.61L224.21,423.29L224.06,422.95L224.72,422.78L225.55,423.02L226.15,423.59L227,424.05L227.1,424.44L228.33,424.1L228.91,424.3L229.29,424.61z"},{id:"SY",title:"Syrian Arab Republic",d:"M584.02,364.6L578.53,368.14L575.41,366.82L575.35,366.8L575.73,366.3L575.69,364.93L576.38,363.1L577.91,361.83L577.45,360.51L576.19,360.33L575.93,357.72L576.61,356.31L577.36,355.56L578.11,354.8L578.27,352.86L579.18,353.54L582.27,352.57L583.76,353.22L586.07,353.21L589.29,351.9L590.81,351.96L594,351.42L592.56,353.6L591.02,354.46L591.29,356.98L590.23,361.1z"},{id:"SZ",title:"Swaziland",d:"M565.18,540.74L564.61,542.13L562.97,542.46L561.29,540.77L561.27,539.69L562.03,538.52L562.3,537.62L563.11,537.4L564.52,537.97L564.94,539.36z"},{id:"TD",title:"Chad",d:"M515.9,427.26L516.18,425.92L514.38,425.85L514.39,424L513.22,422.94L514.43,419.14L518.01,416.4L518.15,412.61L519.23,406.63L519.84,405.35L518.68,404.33L518.63,403.38L517.58,402.6L516.89,397.93L519.72,396.27L530.91,402.04L542.09,407.74L542.23,419.35L539.81,419.15L538.53,421.28L537.79,423.06L538.37,423.73L537.45,424.61L537.77,425.79L537.04,426.99L536.76,428.04L537.75,427.87L538.33,428.97L538.36,430.63L539.39,431.46L539.36,432.15L537.59,432.64L536.16,433.78L534.14,436.87L531.5,438.18L528.79,438L528,438.26L528.28,439.25L526.81,440.24L525.62,441.34L522.09,442.41L521.39,441.78L520.93,441.72L520.41,442.44L518.09,442.66L518.53,441.89L517.65,439.96L517.25,438.79L516.03,438.31L514.38,436.66L514.99,435.33L516.27,435.61L517.06,435.41L518.62,435.44L517.1,432.87L517.2,430.98L517.01,429.09z"},{id:"TF",title:"French Southern and Antarctic Lands",d:"M668.54,619.03L670.34,620.36L672.99,620.9L673.09,621.71L672.31,623.67L668,623.95L667.93,621.66L668.35,619.9z"},{id:"TG",title:"Togo",d:"M480.48,446.25L478.23,446.84L477.6,445.86L476.85,444.08L476.63,442.68L477.25,440.15L476.55,439.12L476.28,436.9L476.28,434.85L475.11,433.39L475.32,432.5L477.78,432.56L477.42,434.06L478.27,434.89L479.25,435.88L479.35,437.27L479.92,437.85L479.79,444.31z"},{id:"TH",title:"Thailand",d:"M762.89,429.18L760.37,427.87L757.97,427.93L758.38,425.68L755.91,425.7L755.69,428.84L754.18,432.99L753.27,435.49L753.46,437.54L755.28,437.63L756.42,440.2L756.93,442.63L758.49,444.24L760.19,444.57L761.64,446.02L760.73,447.17L758.87,447.51L758.65,446.07L756.37,444.84L755.88,445.34L754.77,444.27L754.29,442.88L752.8,441.29L751.44,439.96L750.98,441.61L750.45,440.05L750.76,438.29L751.58,435.58L752.94,432.67L754.48,430.02L753.38,427.42L753.43,426.09L753.11,424.49L751.24,422.21L750.57,420.76L751.54,420.23L752.56,417.71L751.42,415.79L749.64,413.66L748.28,411.09L749.46,410.56L750.74,407.37L752.72,407.23L754.36,405.95L755.96,405.26L757.18,406.18L757.34,407.96L759.23,408.09L758.54,411.2L758.61,413.82L761.56,412.08L762.4,412.59L764.05,412.51L764.61,411.49L766.73,411.69L768.86,414.07L769.04,416.94L771.31,419.47L771.18,421.91L770.27,423.21L767.64,422.8L764.02,423.35L762.22,425.73z"},{id:"TJ",title:"Tajikistan",d:"M674.37,340.62L673.34,341.75L670.29,341.14L670.02,343.24L673.06,342.96L676.53,344.13L681.83,343.58L682.54,346.91L683.46,346.55L685.16,347.36L685.07,348.74L685.49,350.75L682.59,350.75L680.66,350.49L678.92,352.06L677.67,352.4L676.69,353.14L675.58,351.99L675.85,349.04L675,348.87L675.3,347.78L673.79,346.98L672.58,348.21L672.28,349.64L671.85,350.16L670.17,350.09L669.27,351.69L668.32,351.02L666.29,352.14L665.44,351.72L667.01,348.15L666.41,345.49L664.35,344.63L665.08,343.04L667.42,343.21L668.75,341.2L669.64,338.85L673.39,337.99L672.81,339.7L673.21,340.72z"},{id:"TL",title:"Timor-Leste",d:"M825.65,488.25L825.98,487.59L828.39,486.96L830.35,486.86L831.22,486.51L832.28,486.86L831.25,487.62L828.33,488.85L825.98,489.67L825.93,488.81z"},{id:"TM",title:"Turkmenistan",d:"M646.88,356.9L646.63,353.99L644.54,353.87L641.34,350.78L639.1,350.39L636,348.6L634,348.27L632.77,348.93L630.9,348.83L628.91,350.85L626.44,351.53L625.92,349.04L626.33,345.31L624.14,344.09L624.86,341.61L623,341.39L623.62,338.3L626.26,339.21L628.73,338.02L626.68,335.79L625.88,333.65L623.62,334.61L623.34,337.34L622.46,334.93L623.7,333.68L626.88,332.89L628.78,333.95L630.74,336.88L632.18,336.7L635.34,336.65L634.88,334.77L637.28,333.47L639.64,331.27L643.42,333.27L643.72,336.26L644.79,337.03L647.82,336.86L648.76,337.53L650.14,341.32L653.35,343.83L655.18,345.52L658.11,347.27L661.84,348.79L661.76,350.95L660.92,350.84L659.59,349.9L659.15,351.15L656.79,351.83L656.23,354.62L654.65,355.67L652.44,356.19L651.85,357.74L649.74,358.2z"},{id:"TN",title:"Tunisia",d:"M501.84,374.69L500.64,368.83L498.92,367.5L498.89,366.69L496.6,364.71L496.35,362.18L498.08,360.3L498.74,357.48L498.29,354.2L498.86,352.41L501.92,351L503.88,351.42L503.8,353.19L506.18,351.9L506.38,352.57L504.97,354.28L504.96,355.88L505.93,356.73L505.56,359.69L503.71,361.4L504.24,363.23L505.69,363.29L506.4,364.88L507.47,365.4L507.31,367.95L505.94,368.9L505.08,369.95L503.15,371.21L503.45,372.56L503.21,373.94z"},{id:"TR",title:"Turkey",d:"M578.75,336.6l4.02,1.43l3.27,-0.57l2.41,0.33l3.31,-1.94l2.99,-0.18l2.7,1.83l0.48,1.3l-0.27,1.79l2.08,0.91l1.1,1.06l-1.92,1.03l0.88,4.11l-0.55,1.1l1.53,2.82l-1.34,0.59l-0.98,-0.89l-3.26,-0.45l-1.2,0.55l-3.19,0.54l-1.51,-0.06l-3.23,1.31l-2.31,0.01l-1.49,-0.66l-3.09,0.97l-0.92,-0.68l-0.15,1.94l-0.75,0.76l-0.75,0.76l-1.03,-1.57l1.06,-1.3l-1.71,0.3l-2.35,-0.8l-1.93,2l-4.26,0.39l-2.27,-1.86l-3.02,-0.12l-0.65,1.44l-1.94,0.41l-2.71,-1.85l-3.06,0.06l-1.66,-3.48l-2.05,-1.96l1.36,-2.78l-1.78,-1.72l3.11,-3.48l4.32,-0.15l1.18,-2.81l5.34,0.49l3.37,-2.42l3.27,-1.06l4.64,-0.08L578.75,336.6zM551.5,338.99l-2.34,1.98l-0.88,-1.71l0.04,-0.76l0.67,-0.41l0.87,-2.33l-1.37,-0.99l2.86,-1.18l2.41,0.5l0.33,1.44l2.45,1.2l-0.51,0.91l-3.33,0.2L551.5,338.99z"},{id:"TT",title:"Trinidad and Tobago",d:"M302.31,433.24L303.92,432.87L304.51,432.97L304.4,435.08L302.06,435.39L301.55,435.14L302.37,434.36z"},{id:"TW",title:"Taiwan",d:"M816.7,393.27L815.01,398.14L813.81,400.62L812.33,398.07L812.01,395.82L813.66,392.82L815.91,390.5L817.19,391.41z"},{id:"TZ",title:"Tanzania",d:"M570.31,466.03L570.79,466.34L580.95,472.01L581.15,473.63L585.17,476.42L583.88,479.87L584.04,481.46L585.84,482.48L585.92,483.21L585.15,484.91L585.31,485.76L585.13,487.11L586.11,488.87L587.27,491.66L588.29,492.28L586.06,493.92L583,495.02L581.32,494.98L580.32,495.83L578.37,495.9L577.63,496.26L574.26,495.46L572.15,495.69L571.37,491.83L570.42,490.51L569.85,489.73L567.11,489.21L565.51,488.36L563.73,487.89L562.61,487.41L561.44,486.7L559.93,483.15L558.3,481.58L557.74,479.96L558.02,478.5L557.52,475.93L558.68,475.8L559.69,474.79L560.79,473.33L561.48,472.75L561.45,471.84L560.85,471.21L560.69,470.11L561.49,469.76L561.66,468.12L560.54,466.55L561.53,466.21L564.6,466.25z"},{id:"UA",title:"Ukraine",d:"M564.38,292.49L565.42,292.68L566.13,291.64L566.98,291.87L569.89,291.43L571.68,294L570.98,294.92L571.21,296.31L573.45,296.52L574.45,298.45L574.39,299.32L577.95,300.86L580.1,300.17L581.83,302.21L583.47,302.16L587.6,303.57L587.63,304.84L586.5,307.07L587.11,309.4L586.67,310.79L583.96,311.1L582.51,312.26L582.43,314.09L580.19,314.42L578.32,315.74L575.7,315.95L573.28,317.47L573.45,319.97L574.82,320.93L577.68,320.69L577.13,322.11L574.06,322.79L570.25,325.06L568.7,324.27L569.31,322.42L566.25,321.26L566.75,320.49L569.43,319.16L568.62,318.24L564.26,317.22L564.07,315.71L561.47,316.21L560.43,318.44L558.26,321.39L556.98,320.71L555.67,321.35L554.42,320.62L555.12,320.18L555.61,318.81L556.38,317.52L556.18,316.8L556.77,316.47L557.04,317.04L558.7,317.15L559.44,316.86L558.92,316.44L559.11,315.84L558.13,314.8L557.73,313.08L556.71,312.41L556.91,311L555.64,309.88L554.49,309.72L552.42,308.41L550.56,308.83L549.89,309.45L548.71,309.44L548,310.42L545.93,310.82L544.97,311.46L543.67,310.45L541.88,310.43L540.14,309.97L538.93,310.86L538.73,309.74L537.18,308.6L537.73,306.89L538.5,305.78L539.11,306.03L538.39,304.11L540.94,300.5L542.33,299.99L542.63,298.75L541.22,294.86L542.56,294.69L544.1,293.46L546.27,293.36L549.1,293.72L552.23,294.8L554.44,294.89L555.49,295.54L556.54,294.76L557.28,295.81L559.81,295.59L560.92,296.02L561.11,293.76L561.97,292.76z"},{id:"UG",title:"Uganda",d:"M564.6,466.25L561.53,466.21L560.54,466.55L558.87,467.41L558.19,467.12L558.21,465.02L558.86,463.96L559.02,461.72L559.61,460.43L560.68,458.97L561.76,458.23L562.66,457.24L561.54,456.87L561.71,453.61L562.86,452.84L564.64,453.47L566.9,452.82L568.87,452.82L570.6,451.54L571.93,453.48L572.26,454.88L573.49,458.08L572.47,460.11L571.09,461.95L570.29,463.08L570.31,466.03z"},{id:"US",title:"United States",d:"M109.25,279.8L109.25,279.8l-1.54,-1.83l-2.47,-1.57l-0.79,-4.36l-3.61,-4.13l-1.51,-4.94l-2.69,-0.34l-4.46,-0.13l-3.29,-1.54l-5.8,-5.64l-2.68,-1.05l-4.9,-1.99l-3.88,0.48l-5.51,-2.59l-3.33,-2.43l-3.11,1.21l0.58,3.93l-1.55,0.36l-3.24,1.16l-2.47,1.86l-3.11,1.16l-0.4,-3.24l1.26,-5.53l2.98,-1.77l-0.77,-1.46l-3.57,3.22l-1.91,3.77l-4.04,3.95l2.05,2.65l-2.65,3.85l-3.01,2.21l-2.81,1.59l-0.69,2.29l-4.38,2.63l-0.89,2.36l-3.28,2.13l-1.92,-0.38l-2.62,1.38l-2.85,1.67l-2.33,1.63l-4.81,1.38l-0.44,-0.81l3.07,-2.27l2.74,-1.51l2.99,-2.71l3.48,-0.56l1.38,-2.06l3.89,-3.05l0.63,-1.03l2.07,-1.83l0.48,-4l1.43,-3.17l-3.23,1.64l-0.9,-0.93l-1.52,1.95l-1.83,-2.73l-0.76,1.94l-1.05,-2.7l-2.8,2.17l-1.72,0l-0.24,-3.23l0.51,-2.02l-1.81,-1.98l-3.65,1.07l-2.37,-2.63l-1.92,-1.36l-0.01,-3.25l-2.16,-2.48l1.08,-3.41l2.29,-3.37l1,-3.15l2.27,-0.45l1.92,0.99l2.26,-3.01l2.04,0.54l2.14,-1.96l-0.52,-2.92l-1.57,-1.16l2.08,-2.52l-1.72,0.07l-2.98,1.43l-0.85,1.43l-2.21,-1.43l-3.97,0.73l-4.11,-1.56l-1.18,-2.65l-3.55,-3.91l3.94,-2.87l6.25,-3.41h2.31l-0.38,3.48l5.92,-0.27l-2.28,-4.34l-3.45,-2.72l-1.99,-3.64l-2.69,-3.17l-3.85,-2.38l1.57,-4.03l4.97,-0.25l3.54,-3.58l0.67,-3.92l2.86,-3.91l2.73,-0.95l5.31,-3.76l2.58,0.57l4.31,-4.61l4.24,1.83l2.03,3.87l1.25,-1.65l4.74,0.51l-0.17,1.95l4.29,1.43l2.86,-0.84l5.91,2.64l5.39,0.78l2.16,1.07l3.73,-1.34l4.25,2.46l3.05,1.13l-0.02,27.65l-0.01,35.43l2.76,0.17l2.73,1.56l1.96,2.44l2.49,3.6l2.73,-3.05l2.81,-1.79l1.49,2.85l1.89,2.23l2.57,2.42l1.75,3.79l2.87,5.88l4.77,3.2l0.08,3.12L109.25,279.8zM285.18,314.23l-1.25,-1.19l-1.88,0.7l-0.93,-1.08l-2.14,3.1l-0.86,3.15l-1,1.82l-1.19,0.62l-0.9,0.2l-0.28,0.98l-5.17,0l-4.26,0.03l-1.27,0.73l-2.87,2.73l0.29,0.54l0.17,1.51l-2.1,1.27l-2.3,-0.32l-2.2,-0.14l-1.33,0.44l0.25,1.15l0,0l0.05,0.37l-2.42,2.27l-2.11,1.09l-1.44,0.51l-1.66,1.03l-2.03,0.5l-1.4,-0.19l-1.73,-0.77l0.96,-1.45l0.62,-1.32l1.32,-2.09l-0.14,-1.57l-0.5,-2.24l-1.04,-0.39l-1.74,1.7l-0.56,-0.03l-0.14,-0.97l1.54,-1.56l0.26,-1.79l-0.23,-1.79l-2.08,-1.55l-2.38,-0.8l-0.39,1.52l-0.62,0.4l-0.5,1.95l-0.26,-1.33l-1.12,0.95l-0.7,1.32l-0.73,1.92l-0.14,1.64l0.93,2.38l-0.08,2.51l-1.14,1.84l-0.57,0.52l-0.76,0.41l-0.95,0.02l-0.26,-0.25l-0.76,-1.98l-0.02,-0.98l0.08,-0.94l-0.35,-1.87l0.53,-2.18l0.63,-2.71l1.46,-3.03l-0.42,0.01l-2.06,2.54l-0.38,-0.46l1.1,-1.42l1.67,-2.57l1.91,-0.36l2.19,-0.8l2.21,0.42l0.09,0.02l2.47,-0.36l-1.4,-1.61l-0.75,-0.13l-0.86,-0.16l-0.59,-1.14l-2.75,0.36l-2.49,0.9l-1.97,-1.55l-1.59,-0.52l0.9,-2.17l-2.48,1.37l-2.25,1.33l-2.16,1.04l-1.72,-1.4l-2.81,0.85l0.01,-0.6l1.9,-1.73l1.99,-1.65l2.86,-1.37l-3.45,-1.09l-2.27,0.55l-2.72,-1.3l-2.86,-0.67l-1.96,-0.26l-0.87,-0.72l-0.5,-2.35l-0.95,0.02l-0.01,1.64l-5.8,0l-9.59,0l-9.53,0l-8.42,0h-8.41h-8.27h-8.55h-2.76h-8.32h-7.96l0.95,3.47l0.45,3.41l-0.69,1.09l-1.49,-3.91l-4.05,-1.42l-0.34,0.82l0.82,1.94l0.89,3.53l0.51,5.42l-0.34,3.59l-0.34,3.54l-1.1,3.61l0.9,2.9l0.1,3.2l-0.61,3.05l1.49,1.99l0.39,2.95l2.17,2.99l1.24,1.17l-0.1,0.82l2.34,4.85l2.72,3.45l0.34,1.87l0.71,0.55l2.6,0.33l1,0.91l1.57,0.17l0.31,0.96l1.31,0.4l1.82,1.92l0.47,1.7l3.19,-0.25l3.56,-0.36l-0.26,0.65l4.23,1.6l6.4,2.31l5.58,-0.02l2.22,0l0.01,-1.35l4.86,0l1.02,1.16l1.43,1.03l1.67,1.43l0.93,1.69l0.7,1.77l1.45,0.97l2.33,0.96l1.77,-2.53l2.29,-0.06l1.98,1.28l1.41,2.18l0.97,1.86l1.65,1.8l0.62,2.19l0.79,1.47l2.19,0.96l1.99,0.68l1.09,-0.09l-0.53,-1.06l-0.14,-1.5l0.03,-2.16l0.65,-1.42l1.53,-1.51l2.79,-1.37l2.55,-2.37l2.36,-0.75l1.74,-0.23l2.04,0.74l2.45,-0.4l2.09,1.69l2.03,0.1l1.05,-0.61l1.04,0.47l0.53,-0.42l-0.6,-0.63l0.05,-1.3l-0.5,-0.86l1.16,-0.5l2.14,-0.22l2.49,0.36l3.17,-0.41l1.76,0.8l1.36,1.5l0.5,0.16l2.83,-1.46l1.09,0.49l2.19,2.68l0.79,1.75l-0.58,2.1l0.42,1.23l1.3,2.4l1.49,2.68l1.07,0.71l0.44,1.35l1.38,0.37l0.84,-0.39l0.7,-1.89l0.12,-1.21l0.09,-2.1l-1.33,-3.65l-0.02,-1.37l-1.25,-2.25l-0.94,-2.75l-0.5,-2.25l0.43,-2.31l1.32,-1.94l1.58,-1.57l3.08,-2.16l0.4,-1.12l1.42,-1.23l1.4,-0.22l1.84,-1.98l2.9,-1.01l1.78,-2.53l-0.39,-3.46l-0.29,-1.21l-0.8,-0.24l-0.12,-3.35l-1.93,-1.14l1.85,0.56l-0.6,-2.26l0.54,-1.55l0.33,2.97l1.43,1.36l-0.87,2.4l0.26,0.14l1.58,-2.81l0.9,-1.38l-0.04,-1.35l-0.7,-0.64l-0.58,-1.94l0.92,0.9l0.62,0.19l0.21,0.92l2.04,-2.78l0.61,-2.62l-0.83,-0.17l0.85,-1.02l-0.08,0.45l1.79,-0.01l3.93,-1.11l-0.83,-0.7l-4.12,0.7l2.34,-1.07l1.63,-0.18l1.22,-0.19l2.07,-0.65l1.35,0.07l1.89,-0.61l0.22,-1.07l-0.84,-0.84l0.29,1.37l-1.16,-0.09l-0.93,-1.99l0.03,-2.01l0.48,-0.86l1.48,-2.28l2.96,-1.15l2.88,-1.34l2.99,-1.9l-0.48,-1.29l-1.83,-2.25L285.18,314.23zM45.62,263.79l-1.5,0.8l-2.55,1.86l0.43,2.42l1.43,1.32l2.8,-1.95l2.43,-2.47l-1.19,-1.63L45.62,263.79zM0,235.22l2.04,-1.26l0.23,-0.68L0,232.61V235.22zM8.5,250.59l-2.77,0.97l1.7,1.52l1.84,1.04l1.72,-0.87l-0.27,-2.15L8.5,250.59zM105.85,283.09l-2.69,0.38l-1.32,-0.62l-0.17,1.52l0.52,2.07l1.42,1.46l1.04,2.13l1.69,2.1l1.12,0.01l-2.44,-3.7L105.85,283.09zM37.13,403.77l-1,-0.28l-0.27,0.26l0.02,0.19l0.32,0.24l0.48,0.63l0.94,-0.21l0.23,-0.36L37.13,403.77zM34.14,403.23l1.5,0.09l0.09,-0.32l-1.38,-0.13L34.14,403.23zM40.03,406.52l-0.5,-0.26l-1.07,-0.5l-0.21,-0.06l-0.16,0.28l0.19,0.58l-0.49,0.48l-0.14,0.33l0.46,1.08l-0.08,0.83l0.7,0.42l0.41,-0.49l0.9,-0.46l1.1,-0.63l0.07,-0.16l-0.71,-1.04L40.03,406.52zM32.17,401.38l-0.75,0.41l0.11,0.12l0.36,0.68l0.98,0.11l0.2,0.04l0.15,-0.17l-0.81,-0.99L32.17,401.38zM27.77,399.82l-0.43,0.3l-0.15,0.22l0.94,0.55l0.33,-0.3l-0.06,-0.7L27.77,399.82z"},{id:"UY",title:"Uruguay",d:"M313.68,551.79L315.5,551.45L318.31,553.95L319.35,553.86L322.24,555.94L324.44,557.76L326.06,560.01L324.82,561.58L325.6,563.48L324.39,565.6L321.22,567.48L319.15,566.8L317.63,567.17L315.04,565.71L313.14,565.82L311.43,563.95L311.65,561.79L312.26,561.05L312.23,557.75L312.98,554.38z"},{id:"UZ",title:"Uzbekistan",d:"M661.76,350.95L661.84,348.79L658.11,347.27L655.18,345.52L653.35,343.83L650.14,341.32L648.76,337.53L647.82,336.86L644.79,337.03L643.72,336.26L643.42,333.27L639.64,331.27L637.28,333.47L634.88,334.77L635.34,336.65L632.18,336.7L632.07,322.57L639.29,320.22L639.81,320.57L644.16,323.41L646.45,324.89L649.13,328.39L652.42,327.83L657.23,327.53L660.58,330.33L660.37,334.13L661.74,334.16L662.31,337.22L665.88,337.34L666.64,339.09L667.69,339.07L668.92,336.42L672.61,333.81L674.22,333.11L675.05,333.48L672.7,335.91L674.77,337.31L676.77,336.38L680.09,338.34L676.5,340.98L674.37,340.62L673.21,340.72L672.81,339.7L673.39,337.99L669.64,338.85L668.75,341.2L667.42,343.21L665.08,343.04L664.35,344.63L666.41,345.49L667.01,348.15L665.44,351.72L663.32,350.98z"},{id:"VE",title:"Venezuela",d:"M275.25,430.35L275.17,431.02L273.52,431.35L274.44,432.64L274.4,434.13L273.17,435.77L274.23,438.01L275.44,437.83L276.07,435.79L275.2,434.79L275.06,432.65L278.55,431.49L278.16,430.15L279.14,429.25L280.15,431.25L282.12,431.3L283.94,432.88L284.05,433.82L286.56,433.84L289.56,433.55L291.17,434.82L293.31,435.17L294.88,434.29L294.91,433.57L298.39,433.4L301.75,433.36L299.37,434.2L300.32,435.54L302.57,435.75L304.69,437.14L305.14,439.4L306.6,439.33L307.7,440L305.48,441.65L305.23,442.68L306.19,443.72L305.5,444.24L303.77,444.69L303.83,445.99L303.07,446.76L304.96,448.88L305.34,449.67L304.31,450.74L301.17,451.78L299.16,452.22L298.35,452.88L296.12,452.18L294.04,451.82L293.52,452.08L294.77,452.8L294.66,454.67L295.05,456.43L297.42,456.67L297.58,457.25L295.57,458.05L295.25,459.23L294.09,459.68L292.01,460.33L291.47,461.19L289.29,461.37L287.74,459.89L286.89,457.12L286.14,456.14L285.12,455.53L286.54,454.14L286.45,453.51L285.65,452.68L285.09,450.83L285.31,448.82L285.93,447.88L286.44,446.38L285.45,445.89L283.85,446.21L281.83,446.06L280.7,446.36L278.72,443.95L277.09,443.59L273.49,443.86L272.82,442.88L272.13,442.65L272.03,442.06L272.36,441.02L272.14,439.89L271.52,439.27L271.16,437.97L269.72,437.79L270.49,436.13L270.84,434.12L271.65,433.06L272.74,432.25L273.45,430.83z"},{id:"VN",title:"Viet Nam",d:"M778.21,401.87L774.47,404.43L772.13,407.24L771.51,409.29L773.66,412.38L776.28,416.2L778.82,417.99L780.53,420.32L781.81,425.64L781.43,430.66L779.1,432.53L775.88,434.36L773.6,436.72L770.1,439.34L769.08,437.53L769.87,435.62L767.79,434.01L770.22,432.87L773.16,432.67L771.93,430.94L776.64,428.75L776.99,425.33L776.34,423.41L776.85,420.53L776.14,418.49L774.02,416.47L772.25,413.9L769.92,410.44L766.56,408.68L767.37,407.61L769.16,406.84L768.07,404.25L764.62,404.22L763.36,401.5L761.72,399.13L763.23,398.39L765.46,398.41L768.19,398.06L770.58,396.44L771.93,397.58L774.5,398.13L774.05,399.87L775.39,401.09z"},{id:"VU",title:"Vanuatu",d:"M945.87,509.9l-0.92,0.38l-0.94,-1.27l0.1,-0.78L945.87,509.9zM943.8,505.46l0.46,2.33l-0.75,-0.36l-0.58,0.16l-0.4,-0.8l-0.06,-2.21L943.8,505.46z"},{id:"YE",title:"Yemen",d:"M624.16,416.33L622.13,417.12L621.59,418.4L621.52,419.39L618.73,420.61L614.25,421.96L611.74,423.99L610.51,424.14L609.67,423.97L608.03,425.17L606.24,425.72L603.89,425.87L603.18,426.03L602.57,426.78L601.83,426.99L601.4,427.72L600.01,427.66L599.11,428.04L597.17,427.9L596.44,426.23L596.52,424.66L596.07,423.81L595.52,421.69L594.71,420.5L595.27,420.36L594.98,419.04L595.32,418.48L595.2,417.22L596.43,416.29L596.14,415.06L596.89,413.63L598.04,414.39L598.8,414.12L602.03,414.05L602.55,414.35L605.26,414.64L606.33,414.49L607.03,415.46L608.34,414.98L610.35,411.91L612.97,410.59L621.05,409.46L623.25,414.3z"},{id:"ZA",title:"South Africa",d:"M563.63,548.71l-0.55,0.46l-1.19,1.63l-0.78,1.66l-1.59,2.33l-3.17,3.38l-1.98,1.98l-2.12,1.51l-2.93,1.3l-1.43,0.17l-0.36,0.93l-1.7,-0.5l-1.39,0.64l-3.04,-0.65l-1.7,0.41l-1.16,-0.18l-2.89,1.33l-2.39,0.54l-1.73,1.28l-1.28,0.08l-1.19,-1.21l-0.95,-0.06l-1.21,-1.51l-0.13,0.47l-0.37,-0.91l0.02,-1.96l-0.91,-2.23l0.9,-0.6l-0.07,-2.53l-1.84,-3.05l-1.41,-2.74l0,-0.01l-2.01,-4.15l1.34,-1.57l1.11,0.87l0.47,1.36l1.26,0.23l1.76,0.6l1.51,-0.23l2.5,-1.63l0,-11.52l0.76,0.46l1.66,2.93l-0.26,1.89l0.63,1.1l2.01,-0.32l1.4,-1.39l1.33,-0.93l0.69,-1.48l1.37,-0.72l1.18,0.38l1.34,0.87l2.28,0.15l1.79,-0.72l0.28,-0.96l0.49,-1.47l1.53,-0.25l0.84,-1.15l0.93,-2.03l2.52,-2.26l3.97,-2.22l1.14,0.03l1.36,0.51l0.94,-0.36l1.49,0.3l1.34,4.26l0.73,2.17l-0.5,3.43l0.24,1.11l-1.42,-0.57l-0.81,0.22l-0.26,0.9l-0.77,1.17l0.03,1.08l1.67,1.7l1.64,-0.34l0.57,-1.39l2.13,0.03l-0.7,2.28l-0.33,2.62l-0.73,1.43L563.63,548.71zM556.5,547.75l-1.22,-0.98l-1.31,0.65l-1.52,1.25l-1.5,2.03l2.1,2.48l1,-0.32l0.52,-1.03l1.56,-0.5l0.48,-1.05l0.86,-1.56L556.5,547.75z"},{id:"ZM",title:"Zambia",d:"M567.11,489.21L568.43,490.47L569.14,492.87L568.66,493.64L568.1,495.94L568.64,498.3L567.76,499.29L566.91,501.95L568.38,502.69L559.87,505.07L560.14,507.12L558.01,507.52L556.42,508.67L556.08,509.68L555.07,509.9L552.63,512.3L551.08,514.19L550.13,514.26L549.22,513.92L546.09,513.6L545.59,513.38L545.56,513.14L544.46,512.48L542.64,512.31L540.34,512.98L538.51,511.16L536.62,508.78L536.75,499.62L542.59,499.66L542.35,498.67L542.77,497.6L542.28,496.27L542.6,494.89L542.3,494.01L543.27,494.08L543.43,494.96L544.74,494.89L546.52,495.15L547.46,496.44L549.7,496.84L551.42,495.94L552.05,497.43L554.2,497.83L555.23,499.05L556.38,500.62L558.53,500.65L558.29,497.57L557.52,498.08L555.56,496.98L554.8,496.47L555.15,493.62L555.65,490.27L555.02,489.02L555.82,487.22L556.57,486.89L560.34,486.41L561.44,486.7L562.61,487.41L563.73,487.89L565.51,488.36z"},{id:"ZW",title:"Zimbabwe",d:"M562.71,527L561.22,526.7L560.27,527.06L558.92,526.55L557.78,526.52L555.99,525.16L553.82,524.7L553,522.8L552.99,521.75L551.79,521.43L548.62,518.18L547.73,516.47L547.17,515.95L546.09,513.6L549.22,513.92L550.13,514.26L551.08,514.19L552.63,512.3L555.07,509.9L556.08,509.68L556.42,508.67L558.01,507.52L560.14,507.12L560.32,508.2L562.66,508.14L563.96,508.75L564.56,509.47L565.9,509.68L567.35,510.62L567.36,514.31L566.81,516.35L566.69,518.55L567.14,519.43L566.83,521.17L566.4,521.44L565.66,523.59z"}]}}};!function(n){"undefined"==typeof n.fn.each2&&n.extend(n.fn,{each2:function(t){for(var i=n([0]),r=-1,u=this.length;++r<u&&(i.context=i[0]=this[r])&&t.call(i[0],r,i)!==!1;);return this}})}(jQuery),function(n,t){"use strict";function d(t){var i=n(document.createTextNode(""));t.before(i);i.before(t);i.remove()}function h(n){function t(n){return dt[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function e(n,t){for(var i=0,r=t.length;r>i;i+=1)if(f(n,t[i]))return i;return-1}function ct(){var t=n(kt),i;return t.appendTo("body"),i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight},t.remove(),i}function f(n,i){return n===i?!0:n===t||i===t?!1:null===n||null===i?!1:n.constructor===String?n+""==i+"":i.constructor===String?i+""==n+"":!1}function v(t,i){var r,u,f;if(null===t||t.length<1)return[];for(r=t.split(i),u=0,f=r.length;f>u;u+=1)r[u]=n.trim(r[u]);return r}function g(n){return n.outerWidth(!1)-n.width()}function nt(i){var r="keyup-change-value";i.on("keydown",function(){n.data(i,r)===t&&n.data(i,r,i.val())});i.on("keyup",function(){var u=n.data(i,r);u!==t&&i.val()!==u&&(n.removeData(i,r),i.trigger("keyup-change"))})}function lt(i){i.on("mousemove",function(i){var r=k;(r===t||r.x!==i.pageX||r.y!==i.pageY)&&n(i.target).trigger("mousemove-filtered",i)})}function tt(n,i,r){r=r||t;var u;return function(){var t=arguments;window.clearTimeout(u);u=window.setTimeout(function(){i.apply(r,t)},n)}}function at(n,t){var i=tt(n,function(n){t.trigger("scroll-debounced",n)});t.on("scroll",function(n){e(n.target,t.get())>=0&&i(n)})}function vt(n){n[0]!==document.activeElement&&window.setTimeout(function(){var i,t=n[0],r=n.val().length,u;n.focus();u=t.offsetWidth>0||t.offsetHeight>0;u&&t===document.activeElement&&(t.setSelectionRange?t.setSelectionRange(r,r):t.createTextRange&&(i=t.createTextRange(),i.collapse(!1),i.select()))},0)}function yt(t){var i,r,u;return t=n(t)[0],i=0,r=0,"selectionStart"in t?(i=t.selectionStart,r=t.selectionEnd-i):"selection"in document&&(t.focus(),u=document.selection.createRange(),r=document.selection.createRange().text.length,u.moveStart("character",-t.value.length),i=u.text.length-r),{offset:i,length:r}}function r(n){n.preventDefault();n.stopPropagation()}function pt(n){n.preventDefault();n.stopImmediatePropagation()}function wt(t){if(!s){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);s=n(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"});s.attr("class","select2-sizer");n("body").append(s)}return s.text(t.val()),s.width()}function l(t,i,r){var u,f,e=[];u=n.trim(t.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&e.push(this)}));u=n.trim(i.attr("class"));u&&(u=""+u,n(u.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(f=r(this),f&&e.push(f))}));t.attr("class",e.join(" "))}function it(n,t,i,r){var u=h(n.toUpperCase()).indexOf(h(t.toUpperCase())),f=t.length;return 0>u?(i.push(r(n)),void 0):(i.push(r(n.substring(0,u))),i.push("<span class='select2-match'>"),i.push(r(n.substring(u,u+f))),i.push("<\/span>"),i.push(r(n.substring(u+f,n.length))),void 0)}function rt(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})}function ut(i){var f,r=null,e=i.quietMillis||100,o=i.url,u=this;return function(s){window.clearTimeout(f);f=window.setTimeout(function(){var e=i.data,f=o,c=i.transport||n.fn.select2.ajaxDefaults.transport,l={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=n.extend({},n.fn.select2.ajaxDefaults.params,l);e=e?e.call(u,s.term,s.page,s.context):null;f="function"==typeof f?f.call(u,s.term,s.page,s.context):f;r&&"function"==typeof r.abort&&r.abort();i.params&&(n.isFunction(i.params)?n.extend(h,i.params.call(u)):n.extend(h,i.params));n.extend(h,{url:f,dataType:i.dataType,data:e,success:function(n){var t=i.results(n,s.page,s);s.callback(t)},error:function(n,t,i){var r={hasError:!0,jqXHR:n,textStatus:t,errorThrown:i};s.callback(r)}});r=c.call(u,h)},e)}}function ft(t){var e,u,i=t,r=function(n){return""+n.text},f;return n.isArray(i)&&(u=i,i={results:u}),n.isFunction(i)===!1&&(u=i,i=function(){return u}),f=i(),f.text&&(r=f.text,n.isFunction(r)||(e=f.text,r=function(n){return n[e]})),function(t){var u,f=t.term,e={results:[]};return""===f?(t.callback(i()),void 0):(u=function(i,e){var o,s;if(i=i[0],i.children){o={};for(s in i)i.hasOwnProperty(s)&&(o[s]=i[s]);o.children=[];n(i.children).each2(function(n,t){u(t,o.children)});(o.children.length||t.matcher(f,r(o),i))&&e.push(o)}else t.matcher(f,r(i),i)&&e.push(i)},n(i().results).each2(function(n,t){u(t,e.results)}),t.callback(e),void 0)}}function et(i){var r=n.isFunction(i);return function(u){var f=u.term,e={results:[]},o=r?i(u):i;n.isArray(o)&&(n(o).each(function(){var n=this.text!==t,i=n?this.text:this;(""===f||u.matcher(f,i))&&e.results.push(n?this:{id:this,text:this})}),u.callback(e))}}function o(t,i){if(n.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value");}function u(t,i){if(n.isFunction(t)){var r=Array.prototype.slice.call(arguments,2);return t.apply(i,r)}return t}function ot(t){var i=0;return n.each(t,function(n,t){t.children?i+=ot(t.children):i++}),i}function bt(n,i,r,u){var e,s,o,h,c,a=n,l=!1;if(!u.createSearchChoice||!u.tokenSeparators||u.tokenSeparators.length<1)return t;for(;;){for(s=-1,o=0,h=u.tokenSeparators.length;h>o&&(c=u.tokenSeparators[o],s=n.indexOf(c),!(s>=0));o++);if(0>s)break;if(e=n.substring(0,s),n=n.substring(s+c.length),e.length>0&&(e=u.createSearchChoice.call(this,e,i),e!==t&&null!==e&&u.id(e)!==t&&null!==u.id(e))){for(l=!1,o=0,h=i.length;h>o;o++)if(f(u.id(e),u.id(i[o]))){l=!0;break}l||r(e)}}if(a!==n)return n}function y(){var t=this;n.each(arguments,function(n,i){t[i].remove();t[i]=null})}function p(t,i){var r=function(){};return r.prototype=new t,r.prototype.constructor=r,r.prototype.parent=t.prototype,r.prototype=n.extend(r.prototype,i),r}if(window.Select2===t){var a,st,ht,c,s,w,b,k={x:0,y:0},i={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(n){switch(n=n.which?n.which:n){case i.LEFT:case i.RIGHT:case i.UP:case i.DOWN:return!0}return!1},isControl:function(n){var t=n.which;switch(t){case i.SHIFT:case i.CTRL:case i.ALT:return!0}return n.metaKey?!0:!1},isFunctionKey:function(n){return n=n.which?n.which:n,n>=112&&123>=n}},kt="<div class='select2-measure-scrollbar'><\/div>",dt={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};w=n(document);c=function(){var n=1;return function(){return n++}}();a=p(Object,{bind:function(n){var t=this;return function(){n.apply(t,arguments)}},init:function(i){var f,e,o=".select2-results",s,h;this.opts=i=this.prepareOpts(i);this.id=i.id;i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy();this.container=this.createContainer();this.liveRegion=n("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body);this.containerId="s2id_"+(i.element.attr("id")||"autogen"+c());this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1");this.container.attr("id",this.containerId);this.container.attr("title",i.element.attr("title"));this.body=n("body");l(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.attr("style",i.element.attr("style"));this.container.css(u(i.containerCss,this.opts.element));this.container.addClass(u(i.containerCssClass,this.opts.element));this.elementTabIndex=this.opts.element.attr("tabindex");this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",r);this.container.data("select2",this);this.dropdown=this.container.find(".select2-drop");l(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(u(i.dropdownCssClass,this.opts.element));this.dropdown.data("select2",this);this.dropdown.on("click",r);this.results=f=this.container.find(o);this.search=e=this.container.find("input.select2-input");this.queryCount=0;this.resultsPage=0;this.context=null;this.initContainer();this.container.on("click",r);lt(this.results);this.dropdown.on("mousemove-filtered",o,this.bind(this.highlightUnderEvent));this.dropdown.on("touchstart touchmove touchend",o,this.bind(function(n){this._touchEvent=!0;this.highlightUnderEvent(n)}));this.dropdown.on("touchmove",o,this.bind(this.touchMoved));this.dropdown.on("touchstart touchend",o,this.bind(this.clearTouchMoved));this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())}));at(80,this.results);this.dropdown.on("scroll-debounced",o,this.bind(this.loadMoreIfNeeded));n(this.container).on("change",".select2-input",function(n){n.stopPropagation()});n(this.dropdown).on("change",".select2-input",function(n){n.stopPropagation()});n.fn.mousewheel&&f.mousewheel(function(n,t,i,u){var e=f.scrollTop();u>0&&0>=e-u?(f.scrollTop(0),r(n)):0>u&&f.get(0).scrollHeight-f.scrollTop()+u<=f.height()&&(f.scrollTop(f.get(0).scrollHeight-f.height()),r(n))});nt(e);e.on("keyup-change input paste",this.bind(this.updateResults));e.on("focus",function(){e.addClass("select2-focused")});e.on("blur",function(){e.removeClass("select2-focused")});this.dropdown.on("mouseup",o,this.bind(function(t){n(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))}));this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(n){n.stopPropagation()});this.nextSearchTerm=t;n.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource());null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);s=i.element.prop("disabled");s===t&&(s=!1);this.enable(!s);h=i.element.prop("readonly");h===t&&(h=!1);this.readonly(h);b=b||ct();this.autofocus=i.element.prop("autofocus");i.element.prop("autofocus",!1);this.autofocus&&this.focus();this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var n=this.opts.element,i=n.data("select2"),r=this;this.close();n.length&&n[0].detachEvent&&n.each(function(){this.detachEvent("onpropertychange",r._sync)});this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null);this._sync=null;i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),n.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?n.attr({tabindex:this.elementTabIndex}):n.removeAttr("tabindex"),n.show());y.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(n){return n.is("option")?{id:n.prop("value"),text:n.text(),element:n.get(),css:n.attr("class"),disabled:n.prop("disabled"),locked:f(n.attr("locked"),"locked")||f(n.data("locked"),!0)}:n.is("optgroup")?{text:n.attr("label"),children:[],element:n.get(),css:n.attr("class")}:void 0},prepareOpts:function(i){var e,o,s,r,u=this;if(e=i.element,"select"===e.get(0).tagName.toLowerCase()&&(this.select=o=i.element),o&&n.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.");}),i=n.extend({},{populateResults:function(r,f,e){var o,s=this.opts.id,h=this.liveRegion;o=function(r,f,l){var p,nt,v,tt,b,k,a,y,w,d,g;for(r=i.sortResults(r,f,e),g=[],p=0,nt=r.length;nt>p;p+=1)v=r[p],b=v.disabled===!0,tt=!b&&s(v)!==t,k=v.children&&v.children.length>0,a=n("<li><\/li>"),a.addClass("select2-results-dept-"+l),a.addClass("select2-result"),a.addClass(tt?"select2-result-selectable":"select2-result-unselectable"),b&&a.addClass("select2-disabled"),k&&a.addClass("select2-result-with-children"),a.addClass(u.opts.formatResultCssClass(v)),a.attr("role","presentation"),y=n(document.createElement("div")),y.addClass("select2-result-label"),y.attr("id","select2-result-label-"+c()),y.attr("role","option"),d=i.formatResult(v,y,e,u.opts.escapeMarkup),d!==t&&(y.html(d),a.append(y)),k&&(w=n("<ul><\/ul>"),w.addClass("select2-result-sub"),o(v.children,w,l+1),a.append(w)),a.data("select2-data",v),g.push(a[0]);f.append(g);h.text(i.formatMatches(r.length))};o(f,r,0)}},n.fn.select2.defaults,i),"function"!=typeof i.id&&(s=i.id,i.id=function(n){return n[s]}),n.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(o?(i.query=this.bind(function(n){var i,r,f,o={results:[],more:!1},s=n.term;f=function(t,i){var r;t.is("option")?n.matcher(s,t.text(),t)&&i.push(u.optionToData(t)):t.is("optgroup")&&(r=u.optionToData(t),t.children().each2(function(n,t){f(t,r.children)}),r.children.length>0&&i.push(r))};i=e.children();this.getPlaceholder()!==t&&i.length>0&&(r=this.getPlaceholderOption(),r&&(i=i.not(r)));i.each2(function(n,t){f(t,o.results)});n.callback(o)}),i.id=function(n){return n.id}):"query"in i||("ajax"in i?(r=i.element.data("ajax-url"),r&&r.length>0&&(i.ajax.url=r),i.query=ut.call(i.element,i.ajax)):"data"in i?i.query=ft(i.data):"tags"in i&&(i.query=et(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:n.trim(t),text:n.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,r){var u=[];n(v(t.val(),i.separator)).each(function(){var r={id:this,text:this},t=i.tags;n.isFunction(t)&&(t=t());n(t).each(function(){if(f(this.id,r.id))return(r=this,!1)});u.push(r)});r(u)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(n,t){n.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(n,t){n.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var r,i=this.opts.element,f=this;i.on("change.select2",this.bind(function(){this.opts.element.data("select2-change-triggered")!==!0&&this.initSelection()}));this._sync=this.bind(function(){var r=i.prop("disabled"),n;r===t&&(r=!1);this.enable(!r);n=i.prop("readonly");n===t&&(n=!1);this.readonly(n);l(this.container,this.opts.element,this.opts.adaptContainerCssClass);this.container.addClass(u(this.opts.containerCssClass,this.opts.element));l(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass);this.dropdown.addClass(u(this.opts.dropdownCssClass,this.opts.element))});i.length&&i[0].attachEvent&&i.each(function(){this.attachEvent("onpropertychange",f._sync)});r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;r!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new r(function(t){n.each(t,f._sync)}),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=n.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{};t=n.extend({},t,{type:"change",val:this.val()});this.opts.element.data("select2-change-triggered",!0);this.opts.element.trigger(t);this.opts.element.data("select2-change-triggered",!1);this.opts.element.click();this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var n=this._enabled&&!this._readonly,t=!n;return n===this.enabledInterface?!1:(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=n,!0)},enable:function(n){n===t&&(n=!0);this._enabled!==n&&(this._enabled=n,this.opts.element.prop("disabled",!n),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(n){n===t&&(n=!1);this._readonly!==n&&(this._readonly=n,this.opts.element.prop("readonly",n),this.enableInterface())},opened:function(){return this.container?this.container.hasClass("select2-dropdown-open"):!1},positionDropdown:function(){var v,s,y,r,p,t=this.dropdown,f=this.container.offset(),w=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=t.outerHeight(!1),e=n(window),d=e.width(),g=e.height(),l=e.scrollLeft()+d,nt=e.scrollTop()+g,a=f.top+w,o=f.left,tt=nt>=a+c,it=f.top-c>=e.scrollTop(),i=t.outerWidth(!1),k=l>=o+i,rt=t.hasClass("select2-drop-above");rt?(s=!0,!it&&tt&&(y=!0,s=!1)):(s=!1,!tt&&it&&(y=!0,s=!0));y&&(t.hide(),f=this.container.offset(),w=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=t.outerHeight(!1),l=e.scrollLeft()+d,nt=e.scrollTop()+g,a=f.top+w,o=f.left,i=t.outerWidth(!1),k=l>=o+i,t.show(),this.focusSearch());this.opts.dropdownAutoWidth?(p=n(".select2-results",t)[0],t.addClass("select2-drop-auto-width"),t.css("width",""),i=t.outerWidth(!1)+(p.scrollHeight===p.clientHeight?0:b.width),i>h?h=i:i=h,c=t.outerHeight(!1),k=l>=o+i):this.container.removeClass("select2-drop-auto-width");"static"!==this.body.css("position")&&(v=this.body.offset(),a-=v.top,o-=v.left);k||(o=f.left+this.container.outerWidth(!1)-i);r={left:o,width:h};s?(r.top=f.top-c,r.bottom="auto",this.container.addClass("select2-drop-above"),t.addClass("select2-drop-above")):(r.top=a,r.bottom="auto",this.container.removeClass("select2-drop-above"),t.removeClass("select2-drop-above"));r=n.extend(r,u(this.opts.dropdownCss,this.opts.element));t.css(r)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=n.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above");this.dropdown.removeClass("select2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),w.on("mousemove.select2Event",function(n){k.x=n.pageX;k.y=n.pageY}),!0):!1},opening:function(){var t,i=this.containerEventName,u="scroll."+i,f="resize."+i,e="orientationchange."+i,r;this.container.addClass("select2-dropdown-open").addClass("select2-container-active");this.clearDropdownAlignmentPreference();this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body);t=n("#select2-drop-mask");0==t.length&&(t=n(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){d(t);var r,u=n("#select2-drop");u.length>0&&(r=u.data("select2"),r.opts.selectOnBlur&&r.selectHighlighted({noFocus:!0}),r.close(),i.preventDefault(),i.stopPropagation())}));this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t);n("#select2-drop").removeAttr("id");this.dropdown.attr("id","select2-drop");t.show();this.positionDropdown();this.dropdown.show();this.positionDropdown();this.dropdown.addClass("select2-drop-active");r=this;this.container.parents().add(window).each(function(){n(this).on(f+" "+u+" "+e,function(){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,r="resize."+t,u="orientationchange."+t;this.container.parents().add(window).each(function(){n(this).off(i).off(r).off(u)});this.clearDropdownAlignmentPreference();n("#select2-drop-mask").hide();this.dropdown.removeAttr("id");this.dropdown.hide();this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active");this.results.empty();w.off("mousemove.select2Event");this.clearSearch();this.search.removeClass("select2-active");this.opts.element.trigger(n.Event("select2-close"))}},externalSearch:function(n){this.open();this.search.val(n);this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return u(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,i,r,u,o,s,f,h,t=this.results;if(i=this.highlight(),!(0>i)){if(0==i)return t.scrollTop(0),void 0;e=this.findHighlightableChoices().find(".select2-result-label");r=n(e[i]);h=(r.offset()||{}).top||0;u=h+r.outerHeight(!0);i===e.length-1&&(f=t.find("li.select2-more-results"),f.length>0&&(u=f.offset().top+f.outerHeight(!0)));o=t.offset().top+t.outerHeight(!0);u>o&&t.scrollTop(t.scrollTop()+(u-o));s=h-t.offset().top;0>s&&"none"!=r.css("display")&&t.scrollTop(t.scrollTop()+s)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var r,u=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<u.length;)if(i+=t,r=n(u[i]),r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(i);break}},highlight:function(t){var i,u,r=this.findHighlightableChoices();return 0===arguments.length?e(r.filter(".select2-highlighted")[0],r.get()):(t>=r.length&&(t=r.length-1),0>t&&(t=0),this.removeHighlight(),i=n(r[t]),i.addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),u=i.data("select2-data"),u&&this.opts.element.trigger({type:"select2-highlight",val:this.id(u),choice:u}),void 0)},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=n(t.target).closest(".select2-result-selectable"),r;i.length>0&&!i.is(".select2-highlighted")?(r=this.findHighlightableChoices(),this.highlight(r.index(i))):0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var f,t=this.results,i=t.find("li.select2-more-results"),r=this.resultsPage+1,n=this,e=this.search.val(),o=this.context;0!==i.length&&(f=i.offset().top-t.offset().top-t.height(),f<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:e,page:r,context:o,matcher:this.opts.matcher,callback:this.bind(function(f){n.opened()&&(n.opts.populateResults.call(this,t,f.results,{term:e,page:r,context:o}),n.postprocessResults(f,!1,!1),f.more===!0?(i.detach().appendTo(t).text(u(n.opts.formatLoadMore,n.opts.element,r+1)),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):i.remove(),n.positionDropdown(),n.resultsPage=r,n.context=f.context,this.opts.element.trigger({type:"select2-loaded",items:f}))})})))},tokenize:function(){},updateResults:function(i){function y(){e.removeClass("select2-active");s.positionDropdown();c.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?s.liveRegion.text(c.text()):s.liveRegion.text(s.opts.formatMatches(c.find(".select2-result-selectable").length))}function h(n){c.html(n);y()}var v,l,p,e=this.search,c=this.results,r=this.opts,s=this,w=e.val(),b=n.data(this.container,"select2-last-term"),a;if((i===!0||!b||!f(w,b))&&(n.data(this.container,"select2-last-term",w),i===!0||this.showSearchInput!==!1&&this.opened())){if(p=++this.queryCount,a=this.getMaximumSelectionSize(),a>=1&&(v=this.data(),n.isArray(v)&&v.length>=a&&o(r.formatSelectionTooBig,"formatSelectionTooBig")))return h("<li class='select2-selection-limit'>"+u(r.formatSelectionTooBig,r.element,a)+"<\/li>"),void 0;if(e.val().length<r.minimumInputLength)return o(r.formatInputTooShort,"formatInputTooShort")?h("<li class='select2-no-results'>"+u(r.formatInputTooShort,r.element,e.val(),r.minimumInputLength)+"<\/li>"):h(""),i&&this.showSearch&&this.showSearch(!0),void 0;if(r.maximumInputLength&&e.val().length>r.maximumInputLength)return o(r.formatInputTooLong,"formatInputTooLong")?h("<li class='select2-no-results'>"+u(r.formatInputTooLong,r.element,e.val(),r.maximumInputLength)+"<\/li>"):h(""),void 0;r.formatSearching&&0===this.findHighlightableChoices().length&&h("<li class='select2-searching'>"+u(r.formatSearching,r.element)+"<\/li>");e.addClass("select2-active");this.removeHighlight();l=this.tokenize();l!=t&&null!=l&&e.val(l);this.resultsPage=1;r.query({element:r.element,term:e.val(),page:this.resultsPage,context:null,matcher:r.matcher,callback:this.bind(function(l){var a;if(p==this.queryCount){if(!this.opened())return this.search.removeClass("select2-active"),void 0;if(l.hasError!==t&&o(r.formatAjaxError,"formatAjaxError"))return h("<li class='select2-ajax-error'>"+u(r.formatAjaxError,r.element,l.jqXHR,l.textStatus,l.errorThrown)+"<\/li>"),void 0;if(this.context=l.context===t?null:l.context,this.opts.createSearchChoice&&""!==e.val()&&(a=this.opts.createSearchChoice.call(s,e.val(),l.results),a!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)&&0===n(l.results).filter(function(){return f(s.id(this),s.id(a))}).length&&this.opts.createSearchChoicePosition(l.results,a)),0===l.results.length&&o(r.formatNoMatches,"formatNoMatches"))return h("<li class='select2-no-results'>"+u(r.formatNoMatches,r.element,e.val())+"<\/li>"),void 0;c.empty();s.opts.populateResults.call(this,c,l.results,{term:e.val(),page:this.resultsPage,context:null});l.more===!0&&o(r.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+r.escapeMarkup(u(r.formatLoadMore,r.element,this.resultsPage))+"<\/li>"),window.setTimeout(function(){s.loadMoreIfNeeded()},10));this.postprocessResults(l,i);y();this.opts.element.trigger({type:"select2-loaded",items:l})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0});this.close();this.container.removeClass("select2-container-active");this.search[0]===document.activeElement&&this.search.blur();this.clearSearch();this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){vt(this.search)},selectHighlighted:function(n){if(this._touchMoved)return this.clearTouchMoved(),void 0;var i=this.highlight(),r=this.results.find(".select2-highlighted"),t=r.closest(".select2-result").data("select2-data");t?(this.highlight(i),this.onSelect(t,n)):n&&n.noFocus&&this.close()},getPlaceholder:function(){var n;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((n=this.getPlaceholderOption())!==t?n.text():t)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===n.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){function r(){var i,f,r,u,e,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(i=this.opts.element.attr("style"),i!==t)for(f=i.split(";"),u=0,e=f.length;e>u;u+=1)if(o=f[u].replace(/\s/g,""),r=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==r&&r.length>=1)return r[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return n.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=r.call(this);null!==i&&this.container.css("width",i)}});st=p(a,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container"}).html("<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>   <span class='select2-chosen'>&#160;<\/span><abbr class='select2-search-choice-close'><\/abbr>   <span class='select2-arrow' role='presentation'><b role='presentation'><\/b><\/span><\/a><label for='' class='select2-offscreen'><\/label><input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' /><div class='select2-drop select2-display-none'>   <div class='select2-search'>       <label for='' class='select2-offscreen'><\/label>       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'       aria-autocomplete='list' />   <\/div>   <ul class='select2-results' role='listbox'>   <\/ul><\/div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,r,u;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0);this.parent.opening.apply(this,arguments);this.showSearchInput!==!1&&this.search.val(this.focusser.val());this.opts.shouldFocusInput(this)&&(this.search.focus(),i=this.search.get(0),i.createTextRange?(r=i.createTextRange(),r.collapse(!1),r.select()):i.setSelectionRange&&(u=this.search.val().length,i.setSelectionRange(u,u)));""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select());this.focusser.prop("disabled",!0).val("");this.updateResults(!0);this.opts.element.trigger(n.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments);this.focusser.prop("disabled",!1);this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){n("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments);y.call(this,"selection","focusser")},initContainer:function(){var t,f,e=this.container,s=this.dropdown,u=c(),o;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0);this.selection=t=e.find(".select2-choice");this.focusser=e.find(".select2-focusser");t.find(".select2-chosen").attr("id","select2-chosen-"+u);this.focusser.attr("aria-labelledby","select2-chosen-"+u);this.results.attr("id","select2-results-"+u);this.search.attr("aria-owns","select2-results-"+u);this.focusser.attr("id","s2id_autogen"+u);f=n("label[for='"+this.opts.element.attr("id")+"']");this.focusser.prev().text(f.text()).attr("for",this.focusser.attr("id"));o=this.opts.element.attr("title");this.opts.element.attr("title",o||f.text());this.focusser.attr("tabindex",this.elementTabIndex);this.search.attr("id",this.focusser.attr("id")+"_search");this.search.prev().text(n("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id"));this.search.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()&&229!=n.keyCode){if(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)return r(n),void 0;switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),void 0;case i.ESC:return this.cancel(n),r(n),void 0}}}));this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)}));this.focusser.on("keydown",this.bind(function(n){if(this.isInterfaceEnabled()&&n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.ESC)return this.opts.openOnEnter===!1&&n.which===i.ENTER?(r(n),void 0):n.which==i.DOWN||n.which==i.UP||n.which==i.ENTER&&this.opts.openOnEnter?n.altKey||n.ctrlKey||n.shiftKey||n.metaKey?void 0:(this.open(),r(n),void 0):n.which==i.DELETE||n.which==i.BACKSPACE?(this.opts.allowClear&&this.clear(),r(n),void 0):void 0}));nt(this.focusser);this.focusser.on("keyup-change input",this.bind(function(n){if(this.opts.minimumResultsForSearch>=0){if(n.stopPropagation(),this.opened())return;this.open()}}));t.on("mousedown touchstart","abbr",this.bind(function(n){this.isInterfaceEnabled()&&(this.clear(),pt(n),this.close(),this.selection.focus())}));t.on("mousedown touchstart",this.bind(function(i){d(t);this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.opened()?this.close():this.isInterfaceEnabled()&&this.open();r(i)}));s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()}));t.on("focus",this.bind(function(n){r(n)}));this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(n.Event("select2-blur")))}));this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus"));this.container.addClass("select2-container-active")}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data"),r,u;if(i){if(r=n.Event("select2-clearing"),this.opts.element.trigger(r),r.isDefaultPrevented())return;u=this.getPlaceholderOption();this.opts.element.val(u?u.val():"");this.selection.find(".select2-chosen").empty();this.selection.removeData("select2-data");this.setPlaceholder();t!==!1&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.setPlaceholder(),n.nextSearchTerm=n.opts.nextSearchTerm(i,n.search.val()))})}},isPlaceholderOptionSelected:function(){var n;return this.getPlaceholder()===t?!1:(n=this.getPlaceholderOption())!==t&&n.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val()},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=n.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(r))}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=i.val(),u=null;t.query({matcher:function(n,i,r){var o=f(e,t.id(r));return o&&(u=r),o},callback:n.isFunction(r)?function(){r(u)}:n.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var n=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&n!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(n));this.selection.addClass("select2-default");this.container.removeClass("select2-allowclear")}},postprocessResults:function(n,t,i){var r=0,e=this,u;(this.findHighlightableChoices().each2(function(n,t){if(f(e.id(t.data("select2-data")),e.opts.element.val()))return(r=n,!1)}),i!==!1&&(t===!0&&r>=0?this.highlight(r):this.highlight(0)),t===!0)&&(u=this.opts.minimumResultsForSearch,u>=0&&this.showSearch(ot(n.results)>=u))},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),n(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(n,t){if(this.triggerSelect(n)){var i=this.opts.element.val(),r=this.data();this.opts.element.val(this.id(n));this.updateSelection(n);this.opts.element.trigger({type:"select2-selected",val:this.id(n),choice:n});this.nextSearchTerm=this.opts.nextSearchTerm(n,this.search.val());this.close();t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus();f(i,this.id(n))||this.triggerChange({added:n,removed:r})}},updateSelection:function(n){var r,u,i=this.selection.find(".select2-chosen");this.selection.data("select2-data",n);i.empty();null!==n&&(r=this.opts.formatSelection(n,i,this.opts.escapeMarkup));r!==t&&i.append(r);u=this.opts.formatSelectionCssClass(n,i);u!==t&&i.addClass(u);this.selection.removeClass("select2-default");this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var i,r=!1,u=null,n=this,f=this.data();if(0===arguments.length)return this.opts.element.val();if(i=arguments[0],arguments.length>1&&(r=arguments[1]),this.select)this.select.val(i).find("option").filter(function(){return this.selected}).each2(function(t,i){return u=n.optionToData(i),!1}),this.updateSelection(u),this.setPlaceholder(),r&&this.triggerChange({added:u,removed:f});else{if(!i&&0!==i)return this.clear(r),void 0;if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(i);this.opts.initSelection(this.opts.element,function(t){n.opts.element.val(t?n.id(t):"");n.updateSelection(t);n.setPlaceholder();r&&n.triggerChange({added:t,removed:f})})}},clearSearch:function(){this.search.val("");this.focusser.val("")},data:function(n){var i,r=!1;return 0===arguments.length?(i=this.selection.data("select2-data"),i==t&&(i=null),i):(arguments.length>1&&(r=arguments[1]),n?(i=this.data(),this.opts.element.val(n?this.id(n):""),this.updateSelection(n),r&&this.triggerChange({added:n,removed:i})):this.clear(r),void 0)}});ht=p(a,{createContainer:function(){return n(document.createElement("div")).attr({"class":"select2-container select2-container-multi"}).html("<ul class='select2-choices'>  <li class='select2-search-field'>    <label for='' class='select2-offscreen'><\/label>    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>  <\/li><\/ul><div class='select2-drop select2-drop-multi select2-display-none'>   <ul class='select2-results'>   <\/ul><\/div>")},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(n,t){var r=[];n.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(n,t){r.push(i.optionToData(t))});t(r)}:"data"in t&&(t.initSelection=t.initSelection||function(i,r){var e=v(i.val(),t.separator),u=[];t.query({matcher:function(i,r,o){var s=n.grep(e,function(n){return f(n,t.id(o))}).length;return s&&u.push(o),s},callback:n.isFunction(r)?function(){for(var h,n,s,o=[],i=0;i<e.length;i++)for(h=e[i],n=0;n<u.length;n++)if(s=u[n],f(h,t.id(s))){o.push(s);u.splice(n,1);break}r(o)}:n.noop})}),t},selectChoice:function(n){var t=this.container.find(".select2-search-choice-focus");t.length&&n&&n[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),n&&n.length&&(this.close(),n.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",n)))},destroy:function(){n("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id"));this.parent.destroy.apply(this,arguments);y.call(this,"searchContainer","selection")},initContainer:function(){var t,u=".select2-choices",f;this.searchContainer=this.container.find(".select2-search-field");this.selection=t=this.container.find(u);f=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){f.search[0].focus();f.selectChoice(n(this))});this.search.attr("id","s2id_autogen"+c());this.search.prev().text(n("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id"));this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())}));this.search.attr("tabindex",this.elementTabIndex);this.keydowns=0;this.search.on("keydown",this.bind(function(n){var u;if(this.isInterfaceEnabled()){++this.keydowns;var f=t.find(".select2-search-choice-focus"),o=f.prev(".select2-search-choice:not(.select2-locked)"),e=f.next(".select2-search-choice:not(.select2-locked)"),s=yt(this.search);if(f.length&&(n.which==i.LEFT||n.which==i.RIGHT||n.which==i.BACKSPACE||n.which==i.DELETE||n.which==i.ENTER))return u=f,n.which==i.LEFT&&o.length?u=o:n.which==i.RIGHT?u=e.length?e:null:n.which===i.BACKSPACE?this.unselect(f.first())&&(this.search.width(10),u=o.length?o:e):n.which==i.DELETE?this.unselect(f.first())&&(this.search.width(10),u=e.length?e:null):n.which==i.ENTER&&(u=null),this.selectChoice(u),r(n),u&&u.length||this.open(),void 0;if((n.which===i.BACKSPACE&&1==this.keydowns||n.which==i.LEFT)&&0==s.offset&&!s.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),r(n),void 0;if(this.selectChoice(null),this.opened())switch(n.which){case i.UP:case i.DOWN:return this.moveHighlight(n.which===i.UP?-1:1),r(n),void 0;case i.ENTER:return this.selectHighlighted(),r(n),void 0;case i.TAB:return this.selectHighlighted({noFocus:!0}),this.close(),void 0;case i.ESC:return this.cancel(n),r(n),void 0}if(n.which!==i.TAB&&!i.isControl(n)&&!i.isFunctionKey(n)&&n.which!==i.BACKSPACE&&n.which!==i.ESC){if(n.which===i.ENTER){if(this.opts.openOnEnter===!1)return;if(n.altKey||n.ctrlKey||n.shiftKey||n.metaKey)return}this.open();(n.which===i.PAGE_UP||n.which===i.PAGE_DOWN)&&r(n);n.which===i.ENTER&&r(n)}}}));this.search.on("keyup",this.bind(function(){this.keydowns=0;this.resizeSearch()}));this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active");this.search.removeClass("select2-focused");this.selectChoice(null);this.opened()||this.clearSearch();t.stopImmediatePropagation();this.opts.element.trigger(n.Event("select2-blur"))}));this.container.on("click",u,this.bind(function(t){this.isInterfaceEnabled()&&(n(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))}));this.container.on("focus",u,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(n.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}));this.initContainerWidth();this.opts.element.addClass("select2-offscreen");this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var n=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(n.updateSelection(i),n.close(),n.clearSearch())})}},clearSearch:function(){var n=this.getPlaceholder(),i=this.getMaxSearchWidth();n!==t&&0===this.getVal().length&&this.search.hasClass("select2-focused")===!1?(this.search.val(n).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder();this.resizeSearch();this.parent.opening.apply(this,arguments);this.focusSearch();""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select());this.updateResults(!0);this.opts.shouldFocusInput(this)&&this.search.focus();this.opts.element.trigger(n.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close();this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var r=[],u=[],i=this;n(t).each(function(){e(i.id(this),r)<0&&(r.push(i.id(this)),u.push(this))});t=u;this.selection.find(".select2-search-choice").remove();n(t).each(function(){i.addSelectedChoice(this)});i.postprocessResults()},tokenize:function(){var n=this.search.val();n=this.opts.tokenizer.call(this,n,this.data(),this.bind(this.onSelect),this.opts);null!=n&&n!=t&&(this.search.val(n),n.length>0&&this.open())},onSelect:function(n,i){this.triggerSelect(n)&&""!==n.text&&(this.addSelectedChoice(n),this.opts.element.trigger({type:"selected",val:this.id(n),choice:n}),this.nextSearchTerm=this.opts.nextSearchTerm(n,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(n,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:n}),i&&i.noFocus||this.focusSearch())},cancel:function(){this.close();this.focusSearch()},addSelectedChoice:function(i){var f,e,o=!i.locked,h=n("<li class='select2-search-choice'>    <div><\/div>    <a href='#' class='select2-search-choice-close' tabindex='-1'><\/a><\/li>"),c=n("<li class='select2-search-choice select2-locked'><div><\/div><\/li>"),u=o?h:c,l=this.id(i),s=this.getVal();f=this.opts.formatSelection(i,u.find("div"),this.opts.escapeMarkup);f!=t&&u.find("div").replaceWith("<div>"+f+"<\/div>");e=this.opts.formatSelectionCssClass(i,u.find("div"));e!=t&&u.addClass(e);o&&u.find(".select2-search-choice-close").on("mousedown",r).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(n(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),r(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}));u.data("select2-data",i);u.insertBefore(this.searchContainer);s.push(l);this.setVal(s)},unselect:function(t){var i,f,u=this.getVal(),r;if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){if(r=n.Event("select2-removing"),r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(f=e(this.id(i),u))>=0;)u.splice(f,1),this.setVal(u),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(n,t,i){var s=this.getVal(),f=this.results.find(".select2-result"),h=this.results.find(".select2-result-with-children"),r=this;f.each2(function(n,t){var i=r.id(t.data("select2-data"));e(i,s)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))});h.each2(function(n,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")});-1==this.highlight()&&i!==!1&&r.highlight(0);!this.opts.createSearchChoice&&!f.filter(".select2-result:not(.select2-selected)").length>0&&(!n||n&&!n.more&&0===this.results.find(".select2-no-results").length)&&o(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+u(r.opts.formatNoMatches,r.opts.element,r.search.val())+"<\/li>")},getMaxSearchWidth:function(){return this.selection.width()-g(this.search)},resizeSearch:function(){var i,u,t,f,n,r=g(this.search);i=wt(this.search)+10;u=this.search.offset().left;t=this.selection.width();f=this.selection.offset().left;n=t-(u-f)-r;i>n&&(n=t-r);40>n&&(n=t-r);0>=n&&(n=i);this.search.width(Math.floor(n))},getVal:function(){var n;return this.select?(n=this.select.val(),null===n?[]:n):(n=this.opts.element.val(),v(n,this.opts.separator))},setVal:function(t){var i;this.select?this.select.val(t):(i=[],n(t).each(function(){e(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(n,t){for(var r,t=t.slice(0),n=n.slice(0),i=0;i<t.length;i++)for(r=0;r<n.length;r++)f(this.opts.id(t[i]),this.opts.id(n[r]))&&(t.splice(i,1),i>0&&i--,n.splice(r,1),r--);return{added:t,removed:n}},val:function(i,r){var f,u=this;if(0===arguments.length)return this.getVal();if(f=this.data(),f.length||(f=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),r&&this.triggerChange({added:this.data(),removed:f}),void 0;if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),r&&this.triggerChange(this.buildChangeDetails(f,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=n.map(t,u.id);u.setVal(i);u.updateSelection(t);u.clearSearch();r&&u.triggerChange(u.buildChangeDetails(f,u.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0);this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show();this.searchContainer.appendTo(this.searchContainer.parent());this.resizeSearch();this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(n(this).data("select2-data")))});this.setVal(t);this.triggerChange()},data:function(t,i){var r,u,f=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return n(this).data("select2-data")}).get():(u=this.data(),t||(t=[]),r=n.map(t,function(n){return f.opts.id(n)}),this.setVal(r),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(u,this.data())),void 0)}});n.fn.select2=function(){var r,u,f,o,s,i=Array.prototype.slice.call(arguments,0),c=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],l=["opened","isFocused","container","dropdown"],a=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===i.length||"object"==typeof i[0])r=0===i.length?{}:n.extend({},i[0]),r.element=n(this),"select"===r.element.get(0).tagName.toLowerCase()?s=r.element.prop("multiple"):(s=r.multiple||!1,"tags"in r&&(r.multiple=s=!0)),u=s?new window.Select2["class"].multi:new window.Select2["class"].single,u.init(r);else{if("string"!=typeof i[0])throw"Invalid arguments to select2 plugin: "+i;if(e(i[0],c)<0)throw"Unknown method: "+i[0];if(o=t,u=n(this).data("select2"),u===t)return;if(f=i[0],"container"===f?o=u.container:"dropdown"===f?o=u.dropdown:(h[f]&&(f=h[f]),o=u[f].apply(u,i.slice(1))),e(i[0],l)>=0||e(i[0],a)>=0&&1==i.length)return!1}}),o===t?this:o};n.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(n,t,i,r){var u=[];return it(n.text,i.term,u,r),u.join("")},formatSelection:function(n,i,r){return n?r(n.text):t},sortResults:function(n){return n},formatResultCssClass:function(n){return n.css},formatSelectionCssClass:function(){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(n){return n==t?null:n.id},matcher:function(n,t){return h(""+t).toUpperCase().indexOf(h(""+n).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:bt,escapeMarkup:rt,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(n){return n},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(n){var t="ontouchstart"in window||navigator.msMaxTouchPoints>0;return t?n.opts.minimumResultsForSearch<0?!1:!0:!0}};n.fn.select2.locales=[];n.fn.select2.locales.en={formatMatches:function(n){return 1===n?"One result is available, press enter to select it.":n+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(n,t){var i=t-n.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(n,t){var i=n.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(n){return"You can only select "+n+" item"+(1==n?"":"s")},formatLoadMore:function(){return"Loading more results…"},formatSearching:function(){return"Searching…"}};n.extend(n.fn.select2.defaults,n.fn.select2.locales.en);n.fn.select2.ajaxDefaults={transport:n.ajax,params:{type:"GET",cache:!1,dataType:"json"}};window.Select2={query:{ajax:ut,local:ft,tags:et},util:{debounce:tt,markMatch:it,escapeMarkup:rt,stripDiacritics:h},"class":{abstract:a,single:st,multi:ht}}}}(jQuery);!function(n){function t(n,t){if(!(n.originalEvent.touches.length>1)){n.preventDefault();var i=n.originalEvent.changedTouches[0],r=document.createEvent("MouseEvents");r.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null);n.target.dispatchEvent(r)}}if(n.support.touch="ontouchend"in document,n.support.touch){var r,i=n.ui.mouse.prototype,u=i._mouseInit,f=i._mouseDestroy;i._touchStart=function(n){var i=this;!r&&i._mouseCapture(n.originalEvent.changedTouches[0])&&(r=!0,i._touchMoved=!1,t(n,"mouseover"),t(n,"mousemove"),t(n,"mousedown"))};i._touchMove=function(n){r&&(this._touchMoved=!0,t(n,"mousemove"))};i._touchEnd=function(n){r&&(t(n,"mouseup"),t(n,"mouseout"),this._touchMoved||t(n,"click"),r=!1)};i._mouseInit=function(){var t=this;t.element.bind({touchstart:n.proxy(t,"_touchStart"),touchmove:n.proxy(t,"_touchMove"),touchend:n.proxy(t,"_touchEnd")});u.call(t)};i._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:n.proxy(t,"_touchStart"),touchmove:n.proxy(t,"_touchMove"),touchend:n.proxy(t,"_touchEnd")});f.call(t)}}}(jQuery);$(document).ready(function(){function ni(){var n=navigator.userAgent;return n.match(/(iPhone|iPod|iPad|Blackberry|Android)/)?!0:!1}function vt(n,t){var i=$("[name='"+n+"']");$("html,body").stop(!0,!1).animate({scrollTop:i.offset().top-108},t)}function yt(n,t,i){var r,u;i?(r=new Date,r.setTime(r.getTime()+i*36e5),u="; expires="+r.toGMTString()):u="";document.cookie=n+"="+t+u+"; path=/"}function ti(n){for(var r=n+"=",u=document.cookie.split(";"),t,i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1,t.length);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return null}function ii(n){yt(n,"",-1)}function ri(){var n=!1;return function(t){(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(n=!0)}(navigator.userAgent||navigator.vendor||window.opera),n}function pt(){$("#sidebar").show();$(ft).removeClass("close").addClass("open")}function et(){$("#sidebar").hide();$(ft).removeClass("open").addClass("close")}function wt(){$(".slide.content").height()+$("#footer").height()<$(window).height()&&$("#contact").length==0?$(".slide.content").css("min-height",$(window).height()-$("#footer").height()-$(".avantor.slide").outerHeight()-2):$("#contact").length==0&&$(".slide.content").css("min-height","100%")}function fi(n){$('.toggle-target[name="'+n+'"]').stop(!0,!1).slideToggle(400);$(this).toggleClass("toggled")}var b,k,ut,ui,ft,a,bt,o,t,ei,c,n,d,g,l,p,gt,s,y,u,i,at,rt,w;$(".avantor-modal-trigger-icon").on("click",function(){var n=$(".avantor.avantor-modal");n.is(":hidden")?n.show():n.hide()});var h=$("#nav"),f=function(){h.addClass("nav-hidden")},e=function(){h.removeClass("nav-hidden")};$("#videoModal .video-content").html($(".vimeo-video-container"));$(".modal-link").on("click",function(){var n=$(this).attr("data-modal"),i=$(".reveal-modal#"+n),r=i.height(),t;$(".reveal-modal").not("#"+n).stop(!0,!1).animate({top:"-380px",marginTop:"0",opacity:"0"},200,function(){$(this).hide()});t="-190px";n=="secondModal"&&(t="-100px");n=="videoModal"&&(t="-270px");i.fadeIn(200).stop(!0,!1).animate({top:"50%",marginTop:t,opacity:"1"},200);$(".reveal-modal-bg").stop(!0,!1).fadeIn(200)});$(".reveal-modal-bg, .close-reveal-modal, .close-reveal-modal-simple").on("click",function(){$(".reveal-modal-bg").stop(!0,!1).fadeOut(200);$(".reveal-modal").stop(!0,!1).animate({top:"-380px",marginTop:"0",opacity:"0"},200,function(){$(this).hide();var n=$(".video-content").find("iframe"),t=n.prop("src");n.attr("src","");n.attr("src",t)})});$(".close-reveal-modal-reload").on("click",function(){window.location.href=window.location.href+(window.location.href.indexOf("?")>-1?"&":"?")+"lp="+$(this).parents(".popUpModal").attr("data-reveal")+"&anwser=no"});$("[data-langingPageClass]").each(function(){$(this).parents(".popUpModal").addClass($(this).attr("data-langingPageClass"))});$(".content-library [data-serviceurl]").on("click",function(n){n.preventDefault();var i=$(this),r=i.data("serviceurl"),u=i.closest(".content-library"),t=u.find(".content-library__content .row");$.ajax(r).done(function(n,r,u){t.append(n);t.find(".clearfix").remove();t.find(".content-library__article:odd").after('<div class="clearfix"><\/div>');u.getResponseHeader("X-NuSil-CLTotalHits")<=t.find(".content-library__article").length&&i.remove()})});b=!1;$(".home-cta").on("mouseenter",function(n){n.stopPropagation();$(this).addClass("home-cta--active")}).on("mouseleave",function(n){n.stopPropagation();$(this).removeClass("home-cta--active")}).on("touchstart",function(n){n.stopPropagation();b=!1}).on("touchmove",function(n){n.stopPropagation();b=!0}).on("touchend",function(n){n.stopPropagation();b||$(this).addClass("home-cta--active")});$(".button.products-toggle").each(function(){$(this).wrapInner('<span class="products-toggle__inner"><span/>')});$(window).on("scroll",function(){$(".content-library-overview").length>0&&yt("nusilscrollpos",$(window).scrollTop(),1)});$(".content-library-overview").length>0&&(k=ti("nusilscrollpos"),k!==undefined&&k>0&&($(window).scrollTop(k),ii("nusilscrollpos")));$(".share-button").on("click",function(n){var h,i,u;n.preventDefault();var o=$(this),s=o.data().social,f=encodeURIComponent(window.location.href),e=window.location.href;host=window.location.host;shareUrl="";title=$("meta").filter('[property="og:title"]').attr("content");text=$("meta").filter('[property="og:description"]').attr("content");plainText=text;title===""&&(title=$("meta").filter('[name="title"]').attr("content"));text===""&&(text=$("meta").filter('[name="description"]').attr("content"));title=encodeURIComponent(title);text=encodeURIComponent(text);switch(s){case"fb":shareUrl="https://www.facebook.com/sharer/sharer.php?u="+f;break;case"tw":var t=plainText.split(" "),r=130-(parseInt(host.length)+5);if(t!=null&&t!=""&&typeof t!==undefined){for(h="",i="",u=0;u<t.length;u++)if(i+=t[u]+" ",i.length<r)plainText=i;else{plainText==""&&(plainText=i.substring(0,r));break}plainText=plainText.trim();plainText+="... ";text=encodeURIComponent(plainText)+e}else plainText.length>=r?(plainText=plainText.substring(0,r),plainText=plainText.trim(),plainText+="... ",text=encodeURIComponent(plainText)+e):(plainText=plainText.trim(),plainText+="... ",text=encodeURIComponent(plainText)+e);shareUrl="http://twitter.com/intent/tweet?original_referer=";shareUrl+=f;shareUrl+="&text="+text;break;case"linked":shareUrl="https://www.linkedin.com/shareArticle?mini=true&url=";shareUrl+=f;shareUrl+="&title="+title;shareUrl+="&summary="+text}window.open(shareUrl,"_blank","menubar=no,toobar=no,resizable=yes,height=600,width=400")});ut=!0;$('#mynusillogin a[href="/mynusil.php"]').on("click",function(n){ut==!0&&(n.preventDefault(),$("#mynusillogin").addClass("error-state"),ut=!1)});ui=ri()?"touchstart":"click";ft=$(".slide");$("#navToggle").on("click",function(){$(".first-time-overlay").hide();$(".homepage").show();$(".content").hasClass("open")?et():pt()});$(".content").on("click",function(){$(this).hasClass("open")&&et()});wt();$(window).resize(function(){wt()});$(window).load(function(){$(document).bind("mousewheel",function(){$("html, body").stop(!0,!1)})});$("body").on("click",".toggle-link",function(n){n.preventDefault();var t=$(this).attr("name");$(this).toggleClass("toggled");fi(t);$(this).hasClass("toggled")?$(this).html($(this).attr("data-less")):$(this).html($(this).attr("data-more"))});(function(n){"use strict";function t(n,t,i){return n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent?n.attachEvent("on"+t,i):void 0}function i(n,t){for(var i=0,r=n.length;r>i;i++)if(n[i]===t)return!0;return!1}function r(n,t){var i;n.createTextRange?(i=n.createTextRange(),i.move("character",t),i.select()):n.selectionStart&&(n.focus(),n.setSelectionRange(t,t))}function u(n,t){try{return n.type=t,!0}catch(i){return!1}}n.Placeholders={Utils:{addEventListener:t,inArray:i,moveCaret:r,changeType:u}}})(this),function(n){"use strict";function nt(){}function tt(){try{return document.activeElement}catch(n){}}function v(n,t){var i,r,u=!!t&&n.value!==t,e=n.value===n.getAttribute(f);return(u||e)&&"true"===n.getAttribute(h)?(n.removeAttribute(h),n.value=n.value.replace(n.getAttribute(f),""),n.className=n.className.replace(gt,""),r=n.getAttribute(w),parseInt(r,10)>=0&&(n.setAttribute("maxLength",r),n.removeAttribute(w)),i=n.getAttribute(a),i&&(n.type=i),!0):!1}function b(n){var t,r,u=n.getAttribute(f);return""===n.value&&u?(n.setAttribute(h,"true"),n.value=u,n.className+=" "+g,r=n.getAttribute(w),r||(n.setAttribute(w,n.maxLength),n.removeAttribute("maxLength")),t=n.getAttribute(a),t?n.type="text":"password"===n.type&&i.changeType(n,"text")&&n.setAttribute(a,"password"),!0):!1}function it(n,t){var r,s,u,o,h,l,i;if(n&&n.getAttribute(f))t(n);else for(u=n?n.getElementsByTagName("input"):e,o=n?n.getElementsByTagName("textarea"):c,r=u?u.length:0,s=o?o.length:0,i=0,l=r+s;l>i;i++)h=r>i?u[i]:o[i-r],t(h)}function rt(n){it(n,v)}function at(n){it(n,b)}function vt(n){return function(){y&&n.value===n.getAttribute(f)&&"true"===n.getAttribute(h)?i.moveCaret(n,0):v(n)}}function yt(n){return function(){b(n)}}function pt(n){return function(t){return k=n.value,"true"===n.getAttribute(h)&&k===n.getAttribute(f)&&i.inArray(dt,t.keyCode)?(t.preventDefault&&t.preventDefault(),!1):void 0}}function wt(n){return function(){v(n,k);""===n.value&&(n.blur(),i.moveCaret(n,0))}}function bt(n){return function(){n===tt()&&n.value===n.getAttribute(f)&&"true"===n.getAttribute(h)&&i.moveCaret(n,0)}}function kt(n){return function(){rt(n)}}function ut(n){n.form&&(o=n.form,"string"==typeof o&&(o=document.getElementById(o)),o.getAttribute(st)||(i.addEventListener(o,"submit",kt(o)),o.setAttribute(st,"true")));i.addEventListener(n,"focus",vt(n));i.addEventListener(n,"blur",yt(n));y&&(i.addEventListener(n,"keydown",pt(n)),i.addEventListener(n,"keyup",wt(n)),i.addEventListener(n,"click",bt(n)));n.setAttribute(ht,"true");n.setAttribute(f,r);(y||n!==tt())&&b(n)}var e,c,y,ft,k,l,d,r,et,o,t,p,u,ot=["text","search","url","tel","email","password","number","textarea"],dt=[27,33,34,35,36,37,38,39,40,8,46],g="placeholdersjs",gt=RegExp("(?:^|\\s)"+g+"(?!\\S)"),f="data-placeholder-value",h="data-placeholder-active",a="data-placeholder-type",st="data-placeholder-submit",ht="data-placeholder-bound",w="data-placeholder-maxlength",ni=document.createElement("input"),ct=document.getElementsByTagName("head")[0],lt=document.documentElement,s=n.Placeholders,i=s.Utils;if(s.nativeSupport=void 0!==ni.placeholder,!s.nativeSupport){for(e=document.getElementsByTagName("input"),c=document.getElementsByTagName("textarea"),y="false"===lt.getAttribute("data-placeholder-focus"),ft="false"!==lt.getAttribute("data-placeholder-live"),l=document.createElement("style"),l.type="text/css",d=document.createTextNode("."+g+" { color:#ccc; }"),l.styleSheet?l.styleSheet.cssText=d.nodeValue:l.appendChild(d),ct.insertBefore(l,ct.firstChild),u=0,p=e.length+c.length;p>u;u++)t=e.length>u?e[u]:c[u-e.length],r=t.attributes.placeholder,r&&(r=r.nodeValue,r&&i.inArray(ot,t.type)&&ut(t));et=setInterval(function(){for(u=0,p=e.length+c.length;p>u;u++)t=e.length>u?e[u]:c[u-e.length],r=t.attributes.placeholder,r?(r=r.nodeValue,r&&i.inArray(ot,t.type)&&(t.getAttribute(ht)||ut(t),(r!==t.getAttribute(f)||"password"===t.type&&!t.getAttribute(a))&&("password"===t.type&&!t.getAttribute(a)&&i.changeType(t,"text")&&t.setAttribute(a,"password"),t.value===t.getAttribute(f)&&(t.value=r),t.setAttribute(f,r)))):t.getAttribute(h)&&(v(t),t.removeAttribute(f));ft||clearInterval(et)},100)}i.addEventListener(n,"beforeunload",function(){s.disable()});s.disable=s.nativeSupport?nt:rt;s.enable=s.nativeSupport?nt:at}(this);$("#nav input.search").focus(function(){$(".first-time-overlay").hide();$(".homepage").show();$(window).width()<=620&&($("#home").animate({left:"-400px"},150),$(".avantorLogoBox").animate({left:"-200px"},150))}).on("blur",function(){($(window).width()<=620||$("#home").css("left")=="-400px")&&($("#home").animate({left:"10px"},150),$(".avantorLogoBox").animate({left:"115px"},150))});if($.widget("ui.dragslider",$.ui.slider,{options:$.extend({},$.ui.slider.prototype.options,{rangeDrag:!1}),_create:function(){$.ui.slider.prototype._create.apply(this,arguments);this._rangeCapture=!1},_mouseCapture:function(n){var t=this.options;return t.disabled?!1:(n.target==this.range.get(0)&&t.rangeDrag==!0&&t.range==!0?(this._rangeCapture=!0,this._rangeStart=null):this._rangeCapture=!1,$.ui.slider.prototype._mouseCapture.apply(this,arguments),this._rangeCapture==!0&&this.handles.removeClass("ui-state-active").blur(),!0)},_mouseStop:function(){return this._rangeStart=null,$.ui.slider.prototype._mouseStop.apply(this,arguments)},_slide:function(n,t,i){if(!this._rangeCapture)return $.ui.slider.prototype._slide.apply(this,arguments);this._rangeStart==null&&(this._rangeStart=i);var e=this.options.values[0],o=this.options.values[1],r=i-this._rangeStart,u=e+r,f=o+r,s;this.options.values&&this.options.values.length&&(f>this._valueMax()&&r>0&&(r-=f-this._valueMax(),u=e+r,f=o+r),u<this._valueMin()&&(r+=this._valueMin()-u,u=e+r,f=o+r),r!=0&&(newValues=this.values(),newValues[0]=u,newValues[1]=f,s=this._trigger("slide",n,{handle:this.handles[t],value:r,values:newValues}),s!==!1&&(this.values(0,u,!0),this.values(1,f,!0)),this._rangeStart=i))}}),$(".homepage").length>0&&!$("html").is(".lt-ie9")&&(setTimeout(function(){$(".home-cta__photo").addClass("on")},500),a=0,navigator.platform.indexOf("iPad")!=-1&&(a=1,event.acceleration&&(a+=window.devicePixelRatio)),(a==0||a>2)&&(t=$(".first-time-overlay"),bt=t.hasClass("en"),$(window).width()>720&&t.length>0&&(bt?$(window).width()>1028&&(t.addClass("top"),t.fadeIn(600),setTimeout(function(){var n=1,t=setInterval(function(){n<=4?(n==1?($(".button-overlay circle").first().animate({opacity:"1"},500),$(".button-overlay line").first().animate({opacity:"1"},500)):n==2?$('.overlay-tooltip[name="1"]').css({right:"156px",top:"23px",width:"300px",textAlign:"right"}).animate({opacity:"1"},500):n==3?($(".button-overlay circle").animate({opacity:"1"},500),$(".button-overlay line").animate({opacity:"1"},500)):n==4&&$('.overlay-tooltip[name="2"]').css({right:"18px",width:"150px",top:"90px",textAlign:"right"}).animate({opacity:"1"},500),n++):($(".overlay-close").addClass("button"),clearInterval(t))},1e3)},700)):(t.fadeIn(1500),$("html").is(".ie")?t.css("background-color","rgba(255, 255, 255, 1)"):t.addClass("animated"),t.addClass("animated"),$(".starttopsearch").hide(),$(".startmenu").hide(),$(".button-overlay").hide(),$(".overlay-close").addClass("button"),setTimeout(function(){$(".homepage").hide()},1500)),$(".starttopsearch").click(function(){$(".homepage").fadeIn(600);t.fadeOut(600);$('[data-fieldid="searchValueTextbox"]').focus()}),$(".startmenu").click(function(){$(".homepage").fadeIn(600);t.fadeOut(600);$("#navToggle").trigger("click")})),!t.hasClass("en")&&$(window).width()>720&&t.length>0?($(".overlay-close").click(function(){$(".homepage").fadeIn(600);t.hide();$("#welcomeboxDontShow").prop("checked")&&$.cookie("has-visited","true")}),$("#closewelcome").click(function(){$(".homepage").fadeIn(600);t.hide();$("#welcomeboxDontShow").prop("checked")&&$.cookie("has-visited","true")})):t.hide())),$(".content.home").length>0&&(t=$(".first-time-overlay"),$.cookie("has-visited")!="true"&&$(window).width()>720&&t.length>0&&(t.fadeIn(600),$(".content.home").fadeOut(600),setTimeout(function(){var n=1,t=setInterval(function(){n<=4?(n==1?($(".button-overlay circle").first().animate({opacity:"1"},500),$(".button-overlay line").first().animate({opacity:"1"},500)):n==2?$('.overlay-tooltip[name="1"]').css({right:"156px",top:"23px",width:"300px",textAlign:"right"}).animate({opacity:"1"},500):n==3?($(".button-overlay circle").animate({opacity:"1"},500),$(".button-overlay line").animate({opacity:"1"},500)):n==4&&$('.overlay-tooltip[name="2"]').css({right:"18px",width:"150px",top:"90px",textAlign:"right"}).animate({opacity:"1"},500),n++):($(".overlay-close").addClass("button"),clearInterval(t))},1e3)},700),$(".overlay-close").click(function(){o=skrollr.init({smoothScrolling:!0});$(".content.home").fadeIn(600,function(){$(".home-sprite").css("margin-left",-$(".home-sprite").width()/2).animate({opacity:"1"},500)});t.fadeOut(600);$("#welcomeboxDontShow").prop("checked")&&$.cookie("has-visited","true")}),$(".supportlink").click(function(){$("#welcomeboxDontShow").prop("checked")&&$.cookie("has-visited","true")}),$(".starttopsearch").click(function(){o=skrollr.init({smoothScrolling:!0});$(".content.home").fadeIn(600,function(){$(".home-sprite").css("margin-left",-$(".home-sprite").width()/2).animate({opacity:"1"},500)});t.fadeOut(600);$('[data-fieldid="searchValueTextbox"]').focus()}),$(".startmenu").click(function(){o=skrollr.init({smoothScrolling:!0});$(".content.home").fadeIn(600,function(){$(".home-sprite").css("margin-left",-$(".home-sprite").width()/2).animate({opacity:"1"},500)});t.fadeOut(600);$("#navToggle").trigger("click")})),$("body").css("overflow-y","scroll"),ei=$("body").height(),$(".home-section").each(function(){var n=$(this).attr("name");$(".anchor-dots").append('<div class="anchor-dot" name="'+n+'"><\/div>')}),$(".loading-mask").imgpreload({all:function(){$(".progress-bar").css("background","#939393")}}),c=1.84,$(window).load(function(){if($(window).width()>720){var n=$(window).height();setTimeout(function(){var t=1;$(".home-background").each(function(){var r=$(this),e=parseInt(r.attr("data-start")),f="",u=parseInt(r.attr("data-slide-number")),o=parseInt(r.next(".home-background").attr("data-start")),i;for(r.attr("data-0p","opacity: ! 0;").attr("data-"+(e-1)*c+"p","opacity: ! 1;").attr("data-"+(e+u)*c+"p","opacity: ! 0;"),i=0;i<=u;i++)i<u?f=$(window).width()>n*2?""+f+"data-"+Math.round((i+e)*c)+'p="background-position: ! 50% '+-(i*Math.round($(window).width()*.5)+(Math.round($(window).width()*.5)-$(window).height())/2)+'px;"':""+f+"data-"+Math.round((i+e)*c)+'p="background-position: ! 50% '+-(i*n)+'px;"':i==u&&($(window).width()>n*2?r.append('<div name="'+t+'" class="home-sprite" style="background-size: '+$(window).width()+"px "+Math.round($(window).width()*.5)*u+'px;" '+f+"><\/div>"):r.append('<div name="'+t+'" class="home-sprite" style="background-size: '+n*2+"px "+n*u+'px;" '+f+"><\/div>"),t++)})},10);setTimeout(function(){var n=$(".home-sprite").length;$(".home-section.first-slide").fadeTo(1300,1).css("display","table");$(".scroll-gif").imgpreload();$(".home-sprite").imgpreload({each:function(){var t=$(this);parseInt(t.attr("name"))/n*80>$(".loading-bar .progress-bar").width()/$(".loading-bar").width()*100&&$(".loading-bar .progress-bar").stop().animate({width:parseInt(t.attr("name"))/n*80+"%",minWidth:parseInt(t.attr("name"))/n*80+"%"},100)},all:function(){$(".loading-bar .progress-bar").stop().animate({width:"100%",minWidth:"100%"},200,function(){function n(){$(".slide-logo").fadeTo(500,1);$(".loading-bar").stop(!0,!1).fadeTo(500,0,function(){function n(n,t){var i=parseInt($('.home-section[name="'+t+'"]').attr("data-appear")),r=$(window).height()/100*i;$("html, body").stop(!0,!1).animate({scrollTop:""+r+"px"},n,function(){$(".anchor-dot").removeClass("current");$('.anchor-dot[name="'+t+'"]').addClass("current")})}$(".home-section").fadeTo(500,1).css("display","table");$(".anchor-dots, .home-sprite, .scroll-gif").animate({opacity:"1"},500);$(".first-time-overlay").css("display")=="none"&&(o=skrollr.init({smoothScrolling:!0}));$(window).width()<=768&&o.destroy();$(document).on("scroll",function(){f();h.hover(function(){e()},function(){f()})});$(".anchor-dot").first().addClass("current");$(".anchor-dot").on("click",function(){var t=$(this).attr("name");n(2e3,t)});$(".scroll-gif").on("click",function(){var t=$(".anchor-dot.current").next(".anchor-dot").attr("name"),i;t==undefined&&(t="101");i=2e3;t=="101"&&(i=5e3);n(i,t)});$(document).on("scroll",function(){setTimeout(function(){$(".home-section").each(function(){parseInt($(this).css("opacity"))>.01&&($(".anchor-dot").removeClass("current"),$('.anchor-dot[name="'+$(this).attr("name")+'"]').addClass("current"))})},400)});$(window).on("resize",function(){var n=$(document).scrollTop(),t=n/($("body").height()/100);o!=undefined&&o.destroy();$(".home-background").each(function(){var i=$(window).height(),t=$(this),f=parseInt(t.attr("data-start")),r=parseInt(t.attr("data-slide-number")),e=parseInt(t.next(".home-background").attr("data-start")),n,u;for($(window).width()>i*2?t.find(".home-sprite").css("background-size",""+$(window).width()+"px "+Math.round($(window).width()*.5)*r+"px"):t.find(".home-sprite").css("background-size",""+i*2+"px "+i*r+"px"),n=0;n<=r;n++)n<r?$(window).width()>i*2?t.find(".home-sprite").attr("data-"+Math.round((n+f)*c)+"p","background-position: ! 50% "+-(n*Math.round($(window).width()*.5)+(Math.round($(window).width()*.5)-$(window).height())/2)+"px"):t.find(".home-sprite").attr("data-"+Math.round((n+f)*c)+"p","background-position: ! 50% "+-(n*i)+"px"):n==r&&(u=-($(".home-sprite").width()/2),u<-($(window).width()/2)&&(u=-($(window).width()/2)+8),$(".home-sprite").stop(!0,!1).css("margin-left",u).animate({opacity:"1"},1e3),$(".scroll-gif").animate({opacity:"1"},1e3))}).promise().done(function(){$(window).width()>720&&(o=skrollr.init({smoothScrolling:!0}));var n=$("body").height()/100*t;$("html, body").stop(!1,!0).animate({scrollTop:n},0)})})})}$(".home-sprite").css("margin-left",-$(".home-sprite").width()/2).animate({opacity:"1"},500);$(".home-background, .home-sprite").css("opacity","0");n()})}})},20)}})),$(".content#about").length>0){function kt(){$(window).width()<=1520&&ni()&&$("#about-video").css({top:"0",left:"0",transform:"none","-webkit-transform":"none","-moz-transform":"none","-o-transform":"none"}).maximage("maxcover")}kt();$(window).resize(kt);u=!0;i=$(".page-content").offset().top;setTimeout(function(){u=!1;$(document).scrollTop()<i-90&&f();h.hover(function(){e()},function(){$(document).scrollTop()<i-90&&f()})},1e3);$(document).on("scroll",function(){$(document).scrollTop()>=i-90?e():u==!1&&f()});$("#about-video, #about-video-play").click(function(){$(window).width()>768?($("#about-video").get(0).play(),$("#about-video-play").fadeOut(),$("#about-video-pause").css({bottom:"12px"})):$("#about-video-mobile").get(0).play()});$("#about-video-pause").click(function(){$("#about-video").get(0).pause();$("#about-video-play").fadeIn(300);$("#about-video-pause").css({bottom:"-100px"})})}if($(".category-overview").not("#about").not("#caresil").length>0){u=!0;setTimeout(function(){u=!1;$(document).scrollTop()<i-90&&f();h.hover(function(){e()},function(){$(document).scrollTop()<i-90&&f()})},1e3);i=$(".section-select-wrap").offset().top;$(document).on("scroll",function(){$(document).scrollTop()>=i-90?e():u==!1&&f()});var ot=$("#content-row"),v=$(".wide-head"),r=320,oi=$(".ajax-loader");function si(n){$("#"+n).find(".category-photo").delay(r*2).fadeIn(1500,function(){$("#"+n).find(".category-illustration").remove();$(".category-hover-icon").delay(3e3).addClass("hoverable");dt()});$("#"+n).find(".hero").addClass("visible")}function dt(){$(".category-hover-icon").hover(function(){$(this).hasClass("hoverable")&&$(".category-illustration-hover").addClass("visible")},function(){$(this).hasClass("hoverable")&&$(".category-illustration-hover").removeClass("visible")})}dt();n=1;d=!0;function st(){var f=$(".illustration-frame"),t=Math.random(),o=v.width(),e,i,u;d==!0&&(n=f.length,d=!1);e=$('.illustration-frame[name="'+n+'"]');i=$('.illustration-overlay[name="'+n+'"]');$(".wide-head").find(".hero-wrap").attr("id")=="engineering-hero"&&(n==1&&(t=2),n==2&&(t=2),n==3&&(t=2),n==4&&(t=1),n==7&&(t=2),n==8&&(t=3),n==9&&(t=1),n==10&&(t=0));$(".wide-head").find(".hero-wrap").attr("id")=="aerospace-hero"&&(n==3&&(t=3),n==7&&(t=3),n==9&&(t=3),n==10&&(t=3));$(".wide-head").find(".hero-wrap").attr("id")=="aviation-hero"&&(n==1&&(t=2),n==3&&(t=2),n==4&&(t=2),n==5&&(t=3),n==6&&(t=3),n==7&&(t=1),n==8&&(t=0));$(".wide-head").find(".hero-wrap").attr("id")=="defense-hero"&&(n==1&&(t=2),n==2&&(t=2),n==3&&(t=2),n==4&&(t=0),n==5&&(t=1));$(".wide-head").find(".hero-wrap").attr("id")=="electronics-hero"&&(n==1&&(t=2),n==2&&(t=3),n==3&&(t=3),n==4&&(t=1),n==5&&(t=0),n==6&&(t=2),n==7&&(t=1),n==8&&(t=3),n==9&&(t=1));$(".wide-head").find(".hero-wrap").attr("id")=="life-sciences-hero"&&(n==1&&(t=2),n==2&&(t=2),n==3&&(t=2),n==4&&(t=0),n==6&&(t=4),n==7&&(t=3));$(".wide-head").find(".hero-wrap").attr("id")=="drug-delivery-hero"&&(n==1&&(t=2),n==2&&(t=3),n==3&&(t=3),n==4&&(t=4),n==5&&(t=2),n==6&&(t=2),n==7&&(t=2),n==8&&(t=4),n==9&&(t=3),n==10&&(t=3));$(".wide-head").find(".hero-wrap").attr("id")=="medical-implants-hero"&&(n==1&&(t=2),n==2&&(t=2),n==3&&(t=2),n==4&&(t=2),n==5&&(t=2),n==6&&(t=4),n==7&&(t=4),n==8&&(t=4),n==9&&(t=3));$(".wide-head").find(".hero-wrap").attr("id")=="healthcare-hero"&&(n==3&&(t=2),n==4&&(t=2),n==7&&(t=0),n==8&&(t=0),n==9&&(t=4));$(".wide-head").find(".hero-wrap").attr("id")=="skin-care-hero"&&(n==1&&(t=2),n==2&&(t=2),n==4&&(t=3),n==5&&(t=3),n==6&&(t=2),n==7&&(t=2),n==8&&(t=3));n>0?(t<=.5?i.css("left","auto").animate({right:"0",opacity:".99",width:"100%"},200).animate({width:"0%"},r*4,"linear",function(){$(this).remove()}):t>.5&&t<=1?i.animate({opacity:".99",width:"100%"},200).animate({width:"0%"},r*4,"linear",function(){$(this).remove()}):t==2?i.css("opacity",".99").delay(r*2).fadeOut(r*4,"linear",function(){$(this).remove()}):t==3?i.css("opacity",".99").slideUp(r*4,"linear",function(){$(this).remove()}):t==4&&i.css("top","auto").animate({opacity:".99",bottom:"0",height:"710px"},200).animate({height:"0px"},r*4,"linear",function(){$(this).remove()}),n--):(clearInterval(g),u=v.find(".hero-wrap").attr("id"),si(u))}$(".category-illustration").css("display")!=="none"?g=setInterval(function(){st()},r):$(".category-photo").css("display","block");l=function(n){var i=$("#current-bar"),t=$(".category-overview .current"),r=t.position(),u=t.width();i.stop(!0,!1).animate({left:r.left,width:u},n)};$("#section-select").append('<div id="current-bar"><\/div>').promise().done(l(0));$(window).resize(function(){l(0)});p=!1;gt=function(t){t.preventDefault();var u=$(this),f=u.attr("name"),e=$('.category-link[name="'+f+'"]'),i=u.attr("href"),o=ot.height();i==="javascript:void(0)"||u.parent("li").hasClass("current")||p!=!1||(p=!0,$("li.current").removeClass("current"),e.parent("li").addClass("current"),l(200),ot.height(o).children(".page-content").stop(!0,!1).fadeOut(r/2,function(){$(this).remove();ot.load(""+i+" .page-content",function(){$(this).css({opacity:"0",height:"auto"}).animate({opacity:"1"},r/2)})}),v.animate({opacity:"0"},r/2).promise().done(function(){clearInterval(g);n=1;setTimeout(function(){p&&oi.fadeIn(r/2)},r);v.load(""+i+" .hero-wrap",function(){v.find(".category-photo").imgpreload(function(){p=!1;$(".ajax-loader").stop(!0,!1).fadeOut(r/2);v.animate({opacity:"1"},r/2,function(){d=!0;st();g=setInterval(function(){st()},r)});$(".category-next, .category-prev").on("click",gt)})})}),history.pushState&&history.pushState("","",i))};$(".category-overview ul#section-select li .icon").imgpreload({all:function(){$(this).addClass("loaded")}})}if($("#products").length!==0){$(".products-toggle").on("click",function(){if(!$(this).hasClass("product-category-selected")){var n=$(this).attr("name");$(".products-toggle").removeClass("product-category-selected").removeClass("product-category-not-selected");$(this).toggleClass("product-category-selected");$(".products-toggle").not(".product-category-selected").addClass("product-category-not-selected");$(".product-category, #results, .life-sciences-options, .engineering-options").fadeOut(300).promise().done(function(){$('.product-category[title="'+n+'"]').fadeIn(400);window.location.hash=n;var t=window.location.hash;$(window).width()>768?$("html, body").animate({scrollTop:$('.product-category[title="'+n+'"]').offset().top-70},600):$("html, body").animate({scrollTop:$('.product-category[title="'+n+'"] h4').offset().top-84},600)})}});s=window.location.hash;s!==""&&(urlAnchorArray=window.location.hash.split("&&"),(urlAnchorArray.length==1||urlAnchorArray[1]=="")&&(s=s.split("&&")[0],$('.product-category[title="'+s+'"]').css("display","block"),$('.products-toggle[name="'+s+'"]').addClass("product-category-selected"),$(".products-toggle").not(".product-category-selected").addClass("product-category-not-selected"),setTimeout(function(){$(window).width()>768?$("html, body").animate({scrollTop:$('.product-category[title="'+s+'"]').offset().top-70},600):$("html, body").animate({scrollTop:$('.product-category[title="'+s+'"] h4').offset().top-84},600)},800)));$(".life-sciences-options-toggle").on("click",function(){$(".grade").removeClass("selected-grade").removeClass("non-selected-grade");$(this).closest(".grade").addClass("selected-grade");$(".grade").not(".selected-grade").addClass("non-selected-grade");$(".life-sciences-options").fadeIn(300,function(){$(window).width()>768?$("html, body").animate({scrollTop:$(".life-sciences-options").offset().top-90},600):$("html, body").animate({scrollTop:$(".life-sciences-options h4").offset().top-84},600)})});$(".engineering-options-toggle").on("click",function(n){n.preventDefault();$(".grade").removeClass("selected-grade").removeClass("non-selected-grade");$(this).closest(".grade").addClass("selected-grade");$(".grade").not(".selected-grade").addClass("non-selected-grade");$(".engineering-options").fadeIn(300,function(){$(window).width()>768?$("html, body").animate({scrollTop:$(".engineering-options").offset().top-90},600):$("html, body").animate({scrollTop:$(".engineering-options h4").offset().top-84},600)})});$(".results-toggle").on("click",function(){$("#results").fadeIn(400);$(window).width()>768?$("html, body").animate({scrollTop:$("#results .search").offset().top-90},600):$("html, body").animate({scrollTop:$("#results .search").offset().top+1},600);var n=$(this).closest(".product-category").attr("title");n=="#engineering"?($(".search").addClass("engineering-results"),$(".search").removeClass("life-sciences-results")):($(".search").addClass("life-sciences-results"),$(".search").removeClass("engineering-results"))});initProductNameCell();$(".life-sciences-icons").imgpreload({all:function(){$(this).addClass("loaded")}})}if($("#news").length!==0){$(window).width()<=768?($(".carousel").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:1,slidesToScroll:1}),y=!0):($(".carousel.carousel-two-slides").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:2,slidesToScroll:2}),$(".carousel.carousel-three-slides").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:3,slidesToScroll:3}),y=!1);var ht=function(n){n.slickNext();n.find(".article-visible").removeClass("article-visible");var i=parseInt(n.attr("data-showing")),t;$(window).width()<=768?(t=1,n.find(".slick-active").next().next().addClass("article-visible")):n.hasClass("carousel-two-slides")?(t=2,n.find(".slick-active").next().next().addClass("article-visible").next().addClass("article-visible")):(t=3,n.find(".slick-active").next().next().next().addClass("article-visible").next().addClass("article-visible").next().addClass("article-visible"));n.attr("data-showing",i+t);lt(n,t)},ct=function(n){n.slickPrev();n.find(".article-visible").removeClass("article-visible");var i=parseInt(n.attr("data-showing")),t;$(window).width()<=768?(t=1,n.find(".slick-active").prev().toggleClass("article-visible")):n.hasClass("carousel-two-slides")?(t=2,n.find(".slick-active").prev().toggleClass("article-visible").prev().toggleClass("article-visible")):(t=3,n.find(".slick-active").prev().toggleClass("article-visible").prev().toggleClass("article-visible").prev().toggleClass("article-visible"));n.attr("data-showing",i-t);lt(n,t)},lt=function(n,t){parseInt(n.attr("data-showing"))>n.find(".article").length-t?n.find(".carousel-next").addClass("carousel-disabled"):n.find(".carousel-next").removeClass("carousel-disabled");parseInt(n.attr("data-showing"))==1?n.find(".carousel-prev").addClass("carousel-disabled"):n.find(".carousel-prev").removeClass("carousel-disabled")},nt=function(n){if(n.hasClass("carousel-disabled")==!1)return!0};$(".carousel-next").on("click",function(n){n.preventDefault();var t=$(this).closest(".carousel");nt($(this))&&ht(t)});$(".carousel-prev").on("click",function(n){n.preventDefault();var t=$(this).closest(".carousel");nt($(this))&&ct(t)});$(".carousel").on("swipeleft",function(){if($(window).width()<1260&&$(this).find(".slick-next").hasClass("slick-disabled")==!1){var n=$(this);n.slickNext();ht(n)}});$(".carousel").on("swiperight",function(){if($(window).width()<1260&&$(this).find(".slick-prev").hasClass("slick-disabled")==!1){var n=$(this);n.slickPrev();ct(n)}});$(".article-categories a").on("click",function(){var n,t,i,r;$(this).closest(".article-categories").find(".category-selected").removeClass("category-selected");$(this).addClass("category-selected");n=$(this).closest(".carousel-header").next(".carousel");t=$(this).attr("name");t=="all"&&(t="article");i=2;n.hasClass("carousel-three-slides")&&(i=3);r=n.find(".slick-list").height();n.find(".slick-list").height(r);n.find(".slick-list").animate({opacity:"0"},200,function(){n.find(".article").removeClass("article-visible");n.slickGoTo(0).attr("data-showing","1").slickFilter("."+t);for(var r=0;r<i;r++)n.find(".article."+t+":eq("+r+")").addClass("article-visible");$(this).animate({opacity:"1"},200);n.find(".carousel-next").on("click",function(){nt($(this))&&ht(n)});n.find(".carousel-prev").on("click",function(){nt($(this))&&ct(n)});lt(n,i)})});$(window).on("resize",function(){$(window).width()<=768&&y==!1?(y=!0,$(".carousel").unslick().attr("data-showing","1"),$(".carousel").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:1,slidesToScroll:1}).each(function(){$(this).find(".article").first().addClass("article-visible")})):$(window).width()>768&&y==!0&&($(".carousel").unslick().attr("data-showing","1"),$(".article-visible").removeClass("article-visible"),y=!1,$(".carousel.carousel-two-slides").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:2,slidesToScroll:2}).each(function(){$(this).find(".article").first().addClass("article-visible").next().addClass("article-visible")}),$(".carousel.carousel-three-slides").slick({arrows:!1,draggable:!1,infinite:!1,speed:400,slide:".article",slidesToShow:3,slidesToScroll:3}).each(function(){$(this).find(".article").first().addClass("article-visible").next().addClass("article-visible").next().addClass("article-visible")}))})}if($("#mynusil").length!==0)$(".product-name-cell").on("click",function(n){n.preventDefault();$(window).width()<=768&&$(this).find("h6").toggleClass("toggled").closest(".product-row").find(".product-cells, .mobile-labels, .shaded-cell").not(".product-name-cell").slideToggle()});if($("#regulatory, #about").length!==0){u=!0;setTimeout(function(){u=!1;$(document).scrollTop()<i-90&&f();h.hover(function(){e()},function(){$(document).scrollTop()<i-90&&f()})},1e3);i=$(".content .row").first().offset().top;$(document).on("scroll",function(){$(document).scrollTop()>=i-90?e():u==!1&&f()})}if($("#corporate").length!==0){u=!0;setTimeout(function(){u=!1;$(document).scrollTop()<i-90&&f();h.hover(function(){e()},function(){$(document).scrollTop()<i-90&&f()})},1e3);i=$(".page-content").offset().top;$(document).on("scroll",function(){$(document).scrollTop()>=i-90?e():u==!1&&f()});$("#corporate .scroll-link").click(function(){var n=$(this).attr("title");vt(n,800)})}at=function(n){var t=n.find(".description");n.toggleClass("toggled");t.stop(!0,!1).slideToggle(300)};$(".position-toggle").on("click",function(){var n=$(this).attr("data-hash"),t;n!=null&&n!=""&&n!=undefined&&(location.hash="job="+n);t=$(this).closest(".position");at(t)});$(".manager").on("click",function(){$(this).toggleClass("toggled")}).find(".readmorelink").hover(function(){var n=$(this).attr("href");$(this).parents(".manager").unbind("click").click(function(){window.location=n})},function(){$(this).parents(".manager").unbind("click").click(function(){$(this).toggleClass("toggled")})});$(".location-column").click(function(){$(this).toggleClass("toggled").next(".positions-list").slideToggle(300)});$(".date-posted").on("click",function(){if($(window).width()<=768){var n=$(this).closest(".position");at(n)}});if($("#glossary").length!==0){$("#term-filter-row").append('<div id="current-bar"><\/div>');function l(n){if($("#current-bar").length!==0){var t=$(".term-filter.current"),i=t.position(),r=t.width()+parseInt(t.css("padding-left"))*2;$("#current-bar").stop(!0,!1).animate({left:i.left,width:r},n)}}$(window).load(function(){l(0)});$(window).resize(function(){l(0)});var tt=$(".scroll-links-column .term-items"),hi=tt.offset().top,ci=tt.height(),li=$(window).height(),it=!0;function ai(){var n=$(document).scrollTop();n>hi-140?tt.css({position:"fixed",top:"108px"}).stop(!0,!1):tt.stop(!0,!1).css({position:"relative",top:0})}function vi(){if(it==!0){var n=$(document).scrollTop(),r=$(this).find(".scroll-link").attr("title"),t=$('.term[name="'+r+'"]'),i=t.offset().top,u=t.height();n>i-126&&n<=i+u?$(this).addClass("current"):$(this).removeClass("current")}}$(".scroll-links-column .scroll-link").click(function(){var n=$(this).attr("title");vt(n,500)});$(".term-filter").on("click",function(){$(".term-item.current").removeClass("current");$(".scroll-link.current").removeClass("current");it=!1;$(".term-filter.current").removeClass("current");$(this).addClass("current");l(200);var n=$(this).attr("name"),t=$(".scroll-link."+n+"-term").parent(".term-item"),i=$(".term."+n+"-term");n=="all"?($(".term").each(function(){$(this).css("opacity")!=="1"&&$(this).removeClass("hidden")}),$(".scroll-link").parent(".term-item").css("max-height","300px").animate({opacity:"1"},500).promise().done(function(){it=!0})):(i.each(function(){$(this).css("opacity")!=="1"&&$(this).removeClass("hidden")}),t.css("max-height","300px").animate({opacity:"1"},500),$(".term").not("."+n+"-term").addClass("hidden"),$(".scroll-link").not("."+n+"-term").parent(".term-item").css("max-height","0px").animate({opacity:"0"},500).promise().done(function(){it=!0}))});$(".mobile-filters").on("change",function(){var n=$(this).val(),t=$(".term."+n+"-term");n=="all"?$(".term").each(function(){$(this).css("opacity")!=="1"&&$(this).removeClass("hidden")}):(t.each(function(){$(this).css("opacity")!=="1"&&$(this).removeClass("hidden")}),$(".term").not("."+n+"-term").addClass("hidden"));$("html, body").animate({scrollTop:$("#terms-row").offset().top-42},500)})}if($("#contact").length!==0){AmCharts.ready(function(){var n=new AmCharts.AmMap,t;n.pathToImages="../Content/ammap/images/";t={mapVar:AmCharts.maps.worldLow,getAreasFromMap:!0,areas:[{pattern:{url:"",width:4,height:4}}]};n.dataProvider=t;n.areasSettings={autoZoom:!1,color:"#e8e8e8",rollOverOutlineColor:"#FFFFFF",selectedColor:"#007ebf",rollOverColor:"#007ebf",selectable:!0};n.zoomControl={buttonSize:0,iconSize:0,zoomControlEnabled:!1,minZoomLevel:1.05,maxZoomLevel:1.05};n.zoomOnDoubleClick=!1;n.dragMap=!1;n.fontFamily="futura-pt";n.fontSize="16";n.write("map");initMap(n)});$(".select-product-line").on("change",function(){$(this).val()!=="default"?$(".second-level-contacts").fadeIn(500):$(".second-level-contacts").fadeOut(500)});$(".select-country").on("change",function(){$(window).width()<=768&&$("html, body").animate({scrollTop:$(".select-product-line").offset().top-84},500)});$(".select-product-line").on("change",function(){$(window).width()<=768&&$("html, body").animate({scrollTop:$(".contacts-scroll").offset().top-84},500)})}if($("#advanced-search").length){rt=$("html").hasClass("lt-ie9");rt&&$(".search-submit").hide();w=0;$(".products-toggle").click(function(){if($(this).hasClass("selected")==!1){rt&&$(".search-submit").hide();$("#advanced-search").find("#filtration-column").attr("data-reload","true");$(".search-submit, select, .category-wrap, #filtration-column, .product-table, .product-table-header").removeClass("visible");$(window).width()>768&&$("#results-column").removeClass("visible");$(this).removeClass("grayed").addClass("selected");$(".products-toggle").not(this).addClass("grayed").removeClass("selected");var n=$(this).attr("name");n=="life-sciences"?(setTimeout(function(){$("select.life-sciences-select").addClass("visible");$(".search-submit").removeClass("engineering-accent").addClass("life-sciences-accent");$("#header-column select option").each(function(){this.selected=this.text=="default"});$("select.life-sciences-select").val("default")},w),w=300):(setTimeout(function(){$("select.engineering-select").addClass("visible").val("default");$(".search-submit").removeClass("life-sciences-accent").addClass("engineering-accent");$("#header-column select option").each(function(){this.selected=this.text=="default"});$("select.engineering-select").val("default")},w),w=300)}});$("select.life-sciences-select, select.engineering-select").on("change",function(){$("#advanced-search").find("#filtration-column").attr("data-reload","true");$(this).val()!=="default"&&($(".search-submit, .category-wrap").addClass("visible"),rt&&$(".search-submit").show())})}if($(window).width()<1260){$("html").on("swiperight",function(){et()});$("#nav").on("swipeleft",function(){pt()});$(".content").bind("touchmove",function(n){$(this).hasClass("open")&&(n.preventDefault(),$(".slide").removeClass("open").addClass("close"))})}$(".grade-meta").on("click",function(){$(window).width()<=768&&($(this).toggleClass("toggled").next(".grade-details").slideToggle(300),$(this).hasClass("toggled")&&$("html, body").animate({scrollTop:$(this).next(".grade-details").offset().top-121},400))});if($(".category-overview").length)$(".hero-wrap .hero").on("click",function(){$(window).width()<=768&&($(".section-select-wrap, .hero .columns").toggleClass("toggled"),$(".section-select-wrap").hasClass("toggled")&&$("html, body").animate({scrollTop:0},400))})});tt=null;blockRangeSliderPost=!1