function getAngularKuyamCache(n){return n.get("kuyam")||n("kuyam")}function getAngularModule(n){for(var i=n.split(","),t=0;t<i.length;t++)try{return angular.module(i[t])}catch(r){}return null}function mergeAndRegisterAngularMobules(){function t(n){try{return angular.module(n),!0}catch(t){return!1}}function i(n){return function(t,i,r){t.$last&&n(function(){t.$eval(r.ngBindingDone)})}}var n,r;t("CompanyProfileApp")||(n=["LogoutApp","wc.directives"],t("EventApp")&&n.push("EventApp"),t("commentModule")&&n.push("commentModule"),t("BookingApp")&&n.push("BookingApp"),t("RsvpEventApp")&&n.push("RsvpEventApp"),t("AppointmentApp")&&n.push("AppointmentApp"),t("appointmentManager")&&n.push("appointmentManager"),t("zendeskchat")&&n.push("zendeskchat"),t("photo")&&n.push("photo"),t("infinite-scroll")&&n.push("infinite-scroll"),t("CompanySettingsModule")&&n.push("CompanySettingsModule"),t("BullentinApp")&&n.push("BullentinApp"),r=angular.module("CompanyProfileApp",n),r.directive("ngRepeatDone",i),i.$inject=["$timeout"])}function BuyingCompanyPlanController(n,t){var i=this;this.Model={Plan:"",Landing:{}};n.$on("process.auth.company",function(n,t){i.Model.Landing=t;$("#unlockModal").modal("show")});this.getStripeCheckoutConfig=function(){return typeof i.stripeCheckoutConfig=="undefined"&&(i.stripeCheckoutConfig=StripeCheckout.configure({allowRememberMe:!1,key:i.Model.Landing.StripePublishApiKey,image:"/content/images/logo_triple.png",color:"black",locale:"auto",token:function(n){i.onStripeCallback(n)},opened:function(){hideLoading()}})),i.stripeCheckoutConfig};this.onStripeCallback=function(r){showLoading();t.post("/company/priceplan/unlock",JSON.stringify({plan:i.Model.Landing.Plan,token:r})).then(function(t){hideLoading();t.data.Success?($("#unlockModal").modal("hide"),setTimeout(function(){n.AlertController.alert("Your company dashboard has been unlocked successfully.").then(function(){showLoading();window.location.replace(i.Model.Landing.ReturnUrl)})},100)):setTimeout(function(){n.AlertController.alert("Unable to unlock your company dashboard")},100)})};this.onAgreeWithPlan=function(){showLoading();this.getStripeCheckoutConfig().open({name:"Kuyam",description:"Setup your payment method",panelLabel:"Save"})};this.$postLink=function(){setTimeout(function(){$("buying-company-plan").appendTo($("body"))},100)}}function login(){var t=$("#modal-login #username").val(),i=$("#modal-login #password").val(),r,n;if($("#modal-login #loginError").hide(),t==""||t=="email"||i=="password"||i=="")return $("#modal-login #loginError").show(),!1;r=getTimezoneName();n={email:t,password:i,timeZoneId:r,url:getQueryString().returnurl||(location.pathname.toLowerCase().startsWith("/book/")?location.pathname:"/company/dashboard")};n.url.toLowerCase().startsWith("/book/")&&(n.url+="?bk="+angular.element(document.body).scope().$parent.BookingToken);window.isUseDefaultAjaxHandle=!0;showLoading();$.ajax({type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(n),dataType:"json",url:"/Account/LoginAjax/"}).success(function(n){n.status=="true"?($("#modal-login").modal("hide"),$.cookie("Islogin",!0,{path:"/"}),window.location.href=n.linkurl):(hideLoading(!0),$("#modal-login  #loginError").html("<span style='color: Red;'>"+n.message+"<\/span>"),$("#modal-login  #loginError").show())}).error(function(){hideLoading(!0)})}function logout(){$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:"/Account/LogoutAjax/"}).success(function(n){$.removeCookie("Islogin",{path:"/"});window.location.href=n.IsOriginalPage>0?n.RedirectUrl:"/"}).error(function(){window.location.reload()})}function getunixtime(){var n=new Date,t=n.getTime();return parseInt(t/1e3)}function getScrollBarWidth(){document.body.style.overflow="hidden";var n=document.body.clientWidth;return document.body.style.overflow="scroll",n-=document.body.clientWidth,n||(n=document.body.offsetWidth-document.body.clientWidth),document.body.style.overflow="",n}function getDocHeight(){return Math.max($(document).height(),$(window).height(),document.documentElement.clientHeight)}function showDialog(n,t){var i=($(window).height()-$("#"+n).height())/2,r;i<0&&(i=0,$("#"+n).css("height",$(window).height()),$("#"+n).css("width",$("#"+n).width()+30));$("#"+n).css("top",i);$("#"+n).css("left",($(window).width()-$("#"+n).width())/2);window.onresize=function(){var t=($(window).height()-$("#"+n).height())/2;t<0&&(t=0,$("#"+n).css("height",$(window).height()));$("#"+n).css("top",t);$("#"+n).css("left",($(window).width()-$("#"+n).width())/2)};$("#lightBox").css("opacity","0.6").fadeIn(400);$("#"+n).fadeIn(400);typeof t!="undefined"&&$("#"+n+" ."+t).click(function(){hideDialog(n)});getDocHeight()>$(window).height()&&(r=getScrollBarWidth(),$("body").css("margin-right",r+"px"),($.browser.webkit==!1||$.browser.webkit==undefined)&&$(".header").css("margin-right",r+"px"));$("body").css("overflow","hidden")}function hideDialog(n){$("body").css("margin-right","0px");$(".header").css("margin-right","0px");$("body").css("overflow","auto");$("#lightBox").fadeOut(400);$("#"+n).fadeOut(400)}function commonGetAjax(n,t,i,r,u,f){typeof f=="undefined"&&(f="json");var e="/"+n+"/"+t;i+="&nocache="+getunixtime();i!=""&&(e+="?"+i);$.ajax({url:e,dataType:f,type:"GET",success:function(n){r!=null&&typeof r!="undefined"&&r(n)},error:function(n){u!=null&&typeof u!="undefined"&&u(n)}})}function commonPostAjax(n,t,i,r,u,f){typeof f=="undefined"&&(f="json");var e="/"+n+"/"+t;$.ajax({url:e,dataType:f,type:"POST",data:i,success:function(n){r!=null&&typeof r!="undefined"&&r(n)},error:function(n){u!=null&&typeof u!="undefined"&&u(n)}})}function setError(){pageActive()}function validateEmail(n){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)}function generateSlug(n){return n.toLowerCase().replace(/-+/g," ").replace(/[^a-z0-9- ]/g," ").replace(/\s+/g,"-")}function getTimezoneName(){return timezone=jstz.determine(),timezone.name()}function pageBusy(){$("#lightBox").fadeIn(200);$("#loading").show();$("#aptImgLoader").show()}function pageActive(){$("#loading").hide();$("#lightBox").fadeOut(200);$("#aptImgLoader").fadeOut(200)}function showIconLoading(){$("#loading,.loading").show()}function hideIconLoading(){$("#loading").hide()}function showAlertMessage(n,t){$("#alertMessage").html(n);showDialog("popupAlert");nextFunctionAfterAlert=t}function closeAlertMessage(){hideDialog("popupAlert");typeof nextFunctionAfterAlert=="function"&&nextFunctionAfterAlert()}function closeGuestMessage(){hideDialog("popupGuest");typeof nextFunctionAfterAlert=="function"&&nextFunctionAfterAlert()}function reloadPage(){window.location.href=window.location.pathname}function encodeUrl(n){return n=n.trim(),n=n.replace(/ /g,"_"),encodeURIComponent(n)}function getQueryString(){for(var t={},i=location.search.substring(1),r=/([^&=]+)=([^&]*)/g,n;n=r.exec(i);)t[decodeURIComponent(n[1]).toLowerCase()]=decodeURIComponent(n[2]);return t}function showConfirmGuestMessage(n,t){$("#alertGuestMessage").html(n);showDialog("popupGuest");nextFunctionAfterAlert=t}function ShowLoginPopup(){$("#loginform #loginError").hide();showDialog("loginpopup","btnCloseloginPopup")}function closeOtherModalsAndShow(n){$(".modal").modal("hide");var t=window.setInterval(function(){$("body").hasClass("modal-open")||(window.clearInterval(t),$(n).modal("show"))},100)}function showLoading(n){var t=$("body>.loading");typeof n!="undefined"&&t.data("staytune",!0);t.show()}function hideLoading(n){var t=$("body>.loading");typeof n=="undefined"&&typeof t.data("staytune")=="undefined"&&t.hide();typeof n!="undefined"&&(t.removeData("staytune"),t.hide())}function guid(){function n(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}function getUrlParameter(n){n=n.toLowerCase().replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search.toLowerCase());return t===null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function confirmx(n,t,i){$(".modal-header .message").html(n);var r=$("#trial-modal-confirm");r.modal("show");$("#btnYes").click(function(){r.modal("hide");t()});$("#btnNo").click(function(){r.modal("hide");i()})}function nth(n){if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function getDaySuffix(n){var t=n,i=t.getDate(),r="January,February,March,April,May,June,July,August,September,October,November,December".split(",")[t.getMonth()];return r+" "+i+nth(i)+", "+t.getFullYear()}function get_cookies_array(){var r={},i,t,n;if(document.cookie&&document.cookie!=="")for(i=document.cookie.split(";"),t=0;t<i.length;t++)n=i[t].split("="),n[0]=n[0].replace(/^ /,""),r[decodeURIComponent(n[0])]=decodeURIComponent(n[1]);return r}function getWindowWidth(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}function tryAlert(n,t){while(n&&typeof n.AlertController=="undefined")n=n.$parent;if(n){var i=n.AlertController.alert(t);return setTimeout(function(){n.$$phase||n.$apply()},100),i}alert(t)}function css_browser_selector(n){var i=n.toLowerCase(),t=function(n){return i.indexOf(n)>-1},r="gecko",f="webkit",o="safari",e="opera",u="mobile",s=document.documentElement,h=[!/opera|webtv/i.test(i)&&/msie\s(\d)/.test(i)?"ie ie"+RegExp.$1:t("firefox/2")?r+" ff2":t("firefox/3.5")?r+" ff3 ff3_5":t("firefox/3.6")?r+" ff3 ff3_6":t("firefox/3")?r+" ff3":t("gecko/")?r:t("opera")?e+(/version\/(\d+)/.test(i)?" "+e+RegExp.$1:/opera(\s|\/)(\d+)/.test(i)?" "+e+RegExp.$2:""):t("konqueror")?"konqueror":t("blackberry")?u+" blackberry":t("android")?u+" android":t("chrome")?f+" chrome":t("iron")?f+" iron":t("applewebkit/")?f+" "+o+(/version\/(\d+)/.test(i)?" "+o+RegExp.$1:""):t("mozilla/")?r:"",t("j2me")?u+" j2me":t("iphone")?u+" iphone":t("ipod")?u+" ipod":t("ipad")?u+" ipad":t("mac")?"mac":t("darwin")?"mac":t("webtv")?"webtv":t("win")?"win"+(t("windows nt 6.0")?" vista":""):t("freebsd")?"freebsd":t("x11")||t("linux")?"linux":"","js"];return c=h.join(" "),s.className+=" "+c,c}function centerModal(){$(this).css("display","block");var t=$(this).find(".modal-dialog"),n=($(window).height()-t.height())/2;n=n>0?n:0;t.css("margin-top",n)}function modalOpen(){if(typeof verifyScrollbarWidth=="undefined"){window.verifyScrollbarWidth=window.innerWidth-$(window).width()+"px";var n=$(".site-header");window.verifyScrollbarWidth=n.length&&n.css("position")==="fixed"?'<style type="text/css">.modal-open{padding-right:'+window.verifyScrollbarWidth+" !important;}.modal-open .site-header{padding-right:"+window.verifyScrollbarWidth+";}.modal-open .site-header .nav-account{padding-right:"+window.verifyScrollbarWidth+";}<\/style>":'<style type="text/css">.modal-open{padding-right:'+window.verifyScrollbarWidth+" !important;}<\/style>";$(window.verifyScrollbarWidth).appendTo($("head"))}}function resizeSelectBox(){var n=_selectBox.text().length*_defaultWidthSelect;return $("body").width()<_mobilePort?(n>_maxWidthSelectBox&&(n=_maxWidthSelectBox),n<_minWidthSelectBox&&(n=_minWidthSelectBox)):(n>_maxWidthSelectBoxSmall&&(n=_maxWidthSelectBoxSmall),n<_minWidthSelectBoxSmall&&(n=_minWidthSelectBoxSmall)),_selectBox.css("width",n),1}function setStyle(n){var t=document.createElement("style");return t.type="text/css",window.customSheet=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(t),(setStyle=function(n,i){return!i||i.parentNode!==t?t.appendChild(document.createTextNode(n)):(i.nodeValue=n,i)})(n)}function iscrollContent(n){if(!isMobile.Windows()){if($("html").hasClass("on-nicescroll")||$("html").addClass("on-nicescroll"),$(n+" .wrap-dropdown-menu-inner").getNiceScroll().length>0){refreshNiceScroll(n);return}$(n).find(".scroll-content").wrap("<div class='wrap-dropdown-menu-inner iscroll-vertical'><\/div>").wrap("<div class='wrap-dropdown-menu-inner-content'><\/div>");var t=$(n+" .scroll-content").height();$(n+" .wrap-dropdown-menu-inner-content").height(t);$(n+" .wrap-dropdown-menu-inner").niceScroll(n+" .wrap-dropdown-menu-inner-content",{bouncescroll:!1,autohidemode:!1,cursorcolor:"#99bd25",cursorborder:"1px solid transparent",cursorborderradius:"5px",cursorwidth:"7px",background:"#8B8B8B",mousescrollstep:10})}}function iscrollHorizontalContent(n){if(!isMobile.Windows()){if($(n).find(".wrap-dropdown-menu-inner").length){refreshNiceScroll(n);return}$(n).find(".scroll-content").wrap("<div class='wrap-dropdown-menu-inner iscroll-horizontal'><\/div>").wrap("<div class='wrap-dropdown-menu-inner-content'><\/div>");var t=$(n+" .scroll-content").width();$(n+" .wrap-dropdown-menu-inner-content").width(t);$(n+" .wrap-dropdown-menu-inner").niceScroll(n+" .wrap-dropdown-menu-inner-content",{bouncescroll:!1,autohidemode:!1,cursorcolor:"#99bd25",cursorborder:"1px solid transparent",cursorborderradius:"5px",cursorwidth:"7px",background:"#8B8B8B",preservenativescrolling:!1})}}function refreshNiceScroll(n,t){$(n+" .wrap-dropdown-menu-inner").attr("style","");t&&$(n+" .wrap-dropdown-menu-inner").css("max-height",t+"px");$(n+" .wrap-dropdown-menu-inner-content").attr("style","");$(n+" .wrap-dropdown-menu-inner").getNiceScroll().resize()}function existSelect(n){var t=$("."+n);t.length!==0&&t.find("select").selectpicker()}function iscrollSelect(n,t){var i=$("#"+n),r="#"+t;if(i.length!==0&&i.find(".bootstrap-select").length===0){isMobile.any()?i.find("select").selectpicker():(i.find("select").selectpicker({liveSearch:!0}),i.find(".form-control").attr("readonly","true"));i.find("select").on("hide.bs.select",function(){i.find(".form-control").trigger("blur")});if(!isMobile.Windows()){i.find(".dropdown-menu.inner").wrap("<div class='wrap-dropdown-menu-inner'><\/div>").wrap("<div class='wrap-dropdown-menu-inner-content'><\/div>");$("#"+n+" select").one("shown.bs.select",function(){var t=$("#"+n+" ul.inner").height();$("#"+n+" .wrap-dropdown-menu-inner-content").height(t);$("#"+n+" .wrap-dropdown-menu-inner").niceScroll("#"+n+" .wrap-dropdown-menu-inner-content",{bouncescroll:!1,autohidemode:!1,cursorcolor:"#278CFE",cursorborder:"1px solid transparent",cursorborderradius:"5px",cursorwidth:"7px",background:"#8B8B8B",mousescrollstep:10})})}}}function toggleInvalidFields(n,t){var i=typeof n=="string"?$(n):n;t?i.each(function(n,t){$(t).hasClass("invalid-forced")||$(t).addClass("invalid-forced")}):i.each(function(n,t){$(t).removeClass("invalid-forced")})}function lodash(n){var t=n._;return delete n._,t.naturalList=function(n){if(n.length>2){var t=n.slice(0,-1),i=n[n.length-1];return t.join(", ")+", and "+i}return n.length===2?n.join(" and "):n.length?n[0]:""},t}function myHttpInterceptor(n){var t=0;return{request:function(n){return t++,n},response:function(i){return t--,t<=0&&hideLoading(),i||n.when(i)},responseError:function(t){return hideLoading(),t.status===401&&location.reload(!0),n.reject(t)}}}function CompanyBoardingWizardController(n,t,i,r,u,f,e){var o=this;o.priceplan="monthly";o.LogoBanner={};o.logoUploader={};o.bannerUploader={};o.uploadingLogoResult={};o.uploadingBannerResult={};o.uploadingCount=0;o.steps=[{index:1,title:"Tell us about your company",subtitle:"",css:"modal-boarding-info",valid:function(){return!0},dirty:!1,model:null},{index:2,title:"Your company business hours",subtitle:"",css:"modal-boarding-time",valid:function(){return!0},dirty:!1,model:null},{index:3,title:"Almost there!",subtitle:t.trustAsHtml("<p>Now, let's customize your profile<\/p>"),css:"modal-boarding-profile",valid:function(){return!0},dirty:!1,model:null},{index:4,title:"One last thing",subtitle:"",css:"modal-boarding-plan",valid:function(){return!0},dirty:!1,model:null},{index:5,title:"",css:"modal-boarding-complete",valid:function(){return!0},dirty:!1,model:null}];o.getStripeCheckoutConfig=function(){return typeof o.stripeCheckoutConfig=="undefined"&&(o.stripeCheckoutConfig=StripeCheckout.configure({allowRememberMe:!1,key:o.stripepublishapikey,image:"/content/images/logo_triple.png",color:"black",locale:"auto",token:function(n){o.stripeCheckoutConfig.executed=!0;o.onStripeCallback(n)},opened:function(){o.stripeCheckoutConfig.executed=!1;hideLoading()},closed:function(){o.onStripeClosed()}})),o.stripeCheckoutConfig};o.onStripeCallback=function(n){r.setCompanyPricePlan({plan:o.step.model,token:n}).then(function(n){n.Success?(o.finishedStepCount=4,o.changeStep(o.step.nextstep)):o.alert(n.Message)})};o.onStripeClosed=function(){o.stripeCheckoutConfig.executed||n.PromptController.prompt("<strong>Continue without a company?<\/strong><span>You can always continue with a personal Kuyam account and add your own company later!<span>").then(function(n){n===!0&&r.deletePendingCompany().then(function(n){n.Success?(u.isDesktop()?$(".company_menu_item_regco").next().text("+ Add My Company"):$(".company_menu_item_regco").text("Add My Company"),$(".modal").modal("hide")):o.alert(n.Message)})})};o.next=function(){this._navigate(o.step.index+1)};o.back=function(){switch(o.step.index){case 2:o.workinghours=e.cloneDeep(o.step.model);break;case 3:o.logosrc=o.step.model.logosrc;o.step.model.logoFile&&f.readFile(o.step.model.logoFile,n).then(function(n){o.originalLogoSrc=n});o.step.model.bannerFile&&f.readFile(o.step.model.bannerFile,n).then(function(n){o.bannersrc=n})}o.changeStep(o.step.index-1)};o.done=function(){$("#ml-menu").find(".company_menu_item_regco:eq(0)").text("Pending Company").removeAttr("data-toggle data-target").addClass("no-decorated");$(".green-new-company").find(".company_menu_item_regco:eq(0)").next().text("Pending Company").closest("a").removeAttr("data-toggle data-target").addClass("no-decorated");$(".modal:visible").modal("hide")};o._navigate=function(n){if(o.step.dirty||o.step.index>o.finishedStepCount)switch(o.step.index){case 1:o.saveGeneralInformation(o.step.model).then(function(){o.step.dirty=!1;o.changeStep(n)});break;case 2:o.saveWorkingHours(o.step.model).then(function(){o.step.dirty=!1;o.finishedStepCount=2;o.changeStep(n)});break;case 3:showLoading(!0);o.saveLogoBanner(o.step.model).then(function(){r.saveCompanyLogoAndBanner({LogoSrc:e.startsWith(o.step.model.logosrc,"http")?"":e.replace(o.step.model.logosrc,/^data:image\/(png|jpg);base64,/,""),LogoFullCachedPath:typeof o.step.model.logoFile=="object"&&o.step.model.logoFile?o.uploadingLogoResult.Result:"",LogoDeleted:o.step.model.logoFile==="deleted",BannerFullCachedPath:typeof o.step.model.bannerFile=="object"&&o.step.model.bannerFile?o.uploadingBannerResult.Result:"",BannerDeleted:o.step.model.bannerFile==="deleted"}).then(function(t){if(hideLoading(!0),t.Success){o.step.dirty=!1;o.finishedStepCount=3;o.logosrc=t.OutputData.LogoSrc;o.originalLogoSrc=t.OutputData.OriginalLogoSrc;o.bannersrc=t.OutputData.BannerSrc;o.changeStep(n);return}o.alert(t.Message)})});break;case 4:showLoading();o.getStripeCheckoutConfig().open({name:"Kuyam",description:"Setup your payment method",panelLabel:"Save"});o.step.nextstep=n;break;default:o.finishedStepCount=5;o.changeStep(n)}else o.changeStep(n)};o.changeStep=function(n){$(".modal-content").addClass("blind");$(".modal-boarding .modal-body .step-ct").css("opacity",0);o.step=o.steps[n-1];n===5&&setTimeout(function(){o.adjustMobileWindow();$(".modal-boarding .modal-body section").css("height",$(".modal-boarding .modal-body").height());$(".modal-boarding .modal-body .step-ct").css("opacity",1);u.isDesktop()||$(".modal-boarding .modal-body .step").animax("animated slideInDown")},100)};o.validateStep=function(n,t,i,r){o.step.valid=t;o.step.dirty=i||o.step.dirty;o.step.model=n;o.step.visualizefnc=r};o.saveGeneralInformation=function(n){var t=i.defer();return n.IgnoreCategories=!1,r.saveCompanyGeneralInfo(n).then(function(i){if(i.Success){u.isDesktop()?$(".company_menu_item_regco").next().text("Complete My Company"):$(".company_menu_item_regco").text("Complete My Company");o.generalinfo=angular.copy(n);t.resolve();return}o.alert(i.Message)}),t.promise};o.saveWorkingHours=function(n){var f=i.defer(),t=e.filter(n,function(n){return n.Selected});return t=e.map(t,function(n){return{DayOfWeek:n.DayOfWeek,From:moment(n.TimeFrom.Time+" "+n.TimeFrom.Period,"hh:mm A").format("MM/DD/YYYY HH:mm:ss"),To:moment(n.TimeTo.Time+" "+n.TimeTo.Period,"hh:mm A").format("MM/DD/YYYY HH:mm:ss")}}),r.saveCompanyWorkingHours(t).then(function(t){if(t.Success){u.isDesktop()?$(".company_menu_item_regco").next().text("Complete My Company"):$(".company_menu_item_regco").text("Complete My Company");o.workinghours=e.cloneDeep(n);f.resolve();return}o.alert(t.Message)}),f.promise};o.saveLogoBanner=function(t){var r=i.defer(),u;return t.logoFile===null&&t.bannerFile===null?setTimeout(function(){r.resolve()},100):(o.uploadingCount=0,o.uploadingCount+=typeof t.logoFile=="object"&&t.logoFile?1:0,o.uploadingCount+=typeof t.bannerFile=="object"&&t.bannerFile?1:0,u=n.$watch("$ctrl.uploadingCount",function(n){if(n===0){u();var t=(typeof o.uploadingLogoResult.Success=="undefined"?!0:o.uploadingLogoResult.Success)&(typeof o.uploadingBannerResult.Success=="undefined"?!0:o.uploadingBannerResult.Success);t?r.resolve():(hideLoading(!0),o.alert("Unable to save company logo and banner images because of uploading fails"))}}),o.cacheLogo(t.logoFile),o.cacheBanner(t.bannerFile)),r.promise};this.onComponentRederred=function(){setTimeout(function(){o.adjustMobileWindow();$("#companyBoardingModal").removeClass("blind");$(".modal-content").removeClass("blind");$(".modal-boarding .modal-body").css("overflow","hidden").find(".step-ct").css("opacity",1).find(".step").animax("animated slideInDown",function(){$(".modal-boarding .modal-body").css("overflow","visible")})},100)};o.cacheLogo=function(t){o.uploadingLogoResult={};o.logoUploader.flow.cancel();typeof t=="object"&&t&&setTimeout(function(){var i=n.$watch("$ctrl.uploadingLogoResult",function(){i()});o.logoUploader.flow.addFile(t)},100)};o.cacheBanner=function(t){o.uploadingBannerResult={};o.bannerUploader.flow.cancel();typeof t=="object"&&t&&setTimeout(function(){var i=n.$watch("$ctrl.uploadingBannerResult",function(){i()});o.bannerUploader.flow.addFile(t)},100)};o.cacheResult=function(n,t,i){o.uploadingCount-=1;switch(n){case"logo":o.uploadingLogoResult.Success=t;o.uploadingLogoResult.Result=i;break;case"banner":o.uploadingBannerResult.Success=t;o.uploadingBannerResult.Result=i}};o.logoandbannerChanged=function(n,t,i,r){o.step.dirty=r||o.step.dirty;o.step.model=o.step.model?{logosrc:n,logoFile:t||o.step.model.logoFile,bannerFile:i||o.step.model.bannerFile}:{logosrc:n,logoFile:t,bannerFile:i}};o.$postLink=function(){$("#companyBoardingModal").one("shown.bs.modal",function(){$(document).preventBackward();u.isDesktop()||(window.$MobileMenuController.hide(),window.setTimeout(function(){$("#companyBoardingModal").removeClass("blind")},600));$(".modal-boarding #btnLiveChat").click(function(){loaded()});r.getCompanyBoardingInfo().then(function(n){n.Success?(o.stripepublishapikey=n.OutputData.StripePublishApiKey,o.states=n.OutputData.GeneralInfo.States,o.categories=n.OutputData.GeneralInfo.Categories,o.generalinfo=n.OutputData.GeneralInfo.GeneralInfo,o.workinghours=n.OutputData.WorkingHours,o.logosrc=n.OutputData.LogoSrc,o.originalLogoSrc=n.OutputData.OriginalLogoSrc,o.bannersrc=n.OutputData.BannerSrc,o.step=o.steps[n.OutputData.StartingStep-1],o.finishedStepCount=n.OutputData.StartingStep):o.alert(n.Message)})}).on("show.bs.modal",function(){o.adjustBoardingWindowHeight(u.isDesktop())}).on("shown.bs.modal",function(){$("body").addClass("boarding-open")}).on("hidden.bs.modal",function(){$("body").removeClass("boarding-open")})};n.$on("resize",function(){o.adjustBoardingWindowHeight(u.isDesktop())});o.adjustBoardingWindowHeight=function(n){var t;if(($(".modal-boarding .modal-body").css({"min-height":""}),!n)&&(t=$(".modal-boarding .modal-dialog:visible").height(),t)&&t<$(window).height()){var i=$(".modal-boarding .site-footer"),r=$(".modal-boarding .modal-body:first"),u=i.offset().top,f=r.outerHeight()+($(window).height()-u-i.outerHeight());r.css({"min-height":f+"px"})}};o.adjustMobileWindow=function(){o.adjustBoardingWindowHeight(u.isDesktop())};o.alert=function(t){setTimeout(function(){typeof n.AlertController!="object"||u.isDesktop()||($("#"+n.AlertController.Id).css("background-color","rgba(0, 0, 0, .5)"),$("body").css("position","fixed"));typeof n.AlertController=="object"?n.AlertController.alert(t).then(function(){$("body").css("position","")}):alert(t)},100)}}function CompanyBoardingService(n){this.getCompanyBoardingInfo=function(){return n.get("/company/settings/boardinginfo").then(function(n){return n.data})};this.saveCompanyGeneralInfo=function(t){return n.post("/company/settings/savecompanygeneralinfo",JSON.stringify(t)).then(function(n){return n.data})};this.saveCompanyWorkingHours=function(t){return n.post("/company/settings/savecompanyworkinghours",JSON.stringify(t)).then(function(n){return n.data})};this.saveCompanyLogoAndBanner=function(t){return n.post("/company/settings/savecompanylogoandbanner",JSON.stringify(t)).then(function(n){return n.data})};this.setCompanyPricePlan=function(t){return n.post("/company/settings/priceplan/",JSON.stringify(t)).then(function(n){return n.data})};this.doneCompanyOnboarding=function(){return n.post("/company/settings/donecompanyonboarding").then(function(n){return n.data})};this.deletePendingCompany=function(){return n.post("/company/onboarding/delete").then(function(n){return n.data})}}function CompanyGeneralInfoController(n,t,i,r,u){var f=this;f.$postLink=function(){t(function(){iscrollSelect("divState","iscrollState");$("#categoryChosenModal").appendTo($("body"));$(".visualize-validation").on("change keyup blur",function(){toggleInvalidFields($(this),!0)});n.$watch("$ctrl.model",function(t,i){t!==i&&setTimeout(function(){f.onValidate({model:u.cloneDeep(f.model),valid:function(){return n.generalinfoform.$valid},dirty:n.generalinfoform.$dirty,visualizefnc:f.visualizeValidation})},100)},!0);f.isincludingcategories&&(r.isDesktop()?f.createDesktopChosenComponent():f.createMobileChosenComponent());f.onRendered()},100)};f.$onDestroy=function(){$("#categoryChosenModal").remove()};n.$on("inputmask.masked",function(t,i){n.generalinfoform.$setPristine();f.onValidate({model:u.cloneDeep(f.model),valid:function(){return n.generalinfoform&&n.generalinfoform.$valid},dirty:n.generalinfoform.$dirty,visualizefnc:f.visualizeValidation});$(i).removeClass("invalid-forced")});this.visualizeValidation=function(){toggleInvalidFields($(".visualize-validation"),!0)};this.stateChanged=function(){$("#divState").find(".bootstrap-select").removeClass("ng-invalid ng-invalid-required ng-dirty ng-valid ng-valid-required");t(function(){$("#divState").find("select").selectpicker("refresh")},100)};this.getFirstSelectedCategoryName=function(){if(f.model.Categories.length==0)return"";var n=u.findIndex(f.categories,function(n){return n.Id==f.model.Categories[0]});return f.categories[n].DisplayText};n.$on("devicechanged",function(){f.isincludingcategories&&($("#slCategories").chosen("destroy"),r.isDesktop()?($("#categoryChosenModal").modal("hide"),f.createDesktopChosenComponent()):f.createMobileChosenComponent())});this.createDesktopChosenComponent=function(){$("#slCategories").appendTo(".categories-desktop-place-holder").chosen({single_backstroke_delete:!1}).change(f.chosenChanged)};this.createMobileChosenComponent=function(){$("#categoryChosenModal").one("shown.bs.modal",function(){$("#companyBoardingModal").css("overflow","hidden");$("#slCategories").appendTo(".categories-mobile-place-holder").chosen({isShowDropDown:!0,single_backstroke_delete:!1}).change(f.chosenChanged)}).on("shown.bs.modal",function(){$("body").addClass("modal-open-no-mobile-scroll")}).on("hidden.bs.modal",function(){$("#companyBoardingModal").css("overflow","");$("body").removeClass("modal-open-no-mobile-scroll")})};this.chosenChanged=function(){n.generalinfoform.$setDirty()};this.$onChanges=function(t){t.states.currentValue&&!t.states.previousValue&&($("#divState").find("select").selectpicker("refresh"),$("#divState").find(".bootstrap-select").removeClass("ng-invalid ng-invalid-required ng-dirty ng-valid ng-valid-required"),iscrollSelect("divState","iscrollState"));t.model.currentValue&&!t.model.previousValue&&($("#txtWorkNumber").mask("(999) 999-9999"),$("#txtCellNumber").mask("(999) 999-9999"));f.onValidate({model:u.cloneDeep(f.model),valid:function(){return n.generalinfoform&&n.generalinfoform.$valid},dirty:!1,visualizefnc:f.visualizeValidation})};this.getMobileChosenPlaceHolderText=function(){return this.model.Categories?i.trustAsHtml(this.model.Categories.length>0?"<em>"+this.getFirstSelectedCategoryName()+"<\/em>"+(this.model.Categories.length>1?" and <em>"+(this.model.Categories.length-1)+"<\/em> more selected":""):"Search and select"):i.trustAsHtml("Search and select")}}function CompanyWorkingHoursController(n,t,i){var r=this;r.countTimeMasked=0;r.$postLink=function(){t(function(){i.countBy(r.workinghours,"Selected").true||n.$watch("$ctrl.workinghours",function(){r.onValidate({model:i.cloneDeep(r.workinghours),valid:r.isValid,dirty:n.workinghoursform.$dirty})},!0);r.onRendered()},100)};r.timeMasked=function(){n.workinghoursform.$setPristine();r.onValidate({model:i.cloneDeep(r.workinghours),valid:r.isValid,dirty:!1});r.countTimeMasked+=1;r.countTimeMasked===i.countBy(r.workinghours,"Selected").true&&(r.modelWatcher=n.$watch("$ctrl.workinghours",function(){r.onValidate({model:i.cloneDeep(r.workinghours),valid:r.isValid,dirty:n.workinghoursform.$dirty})},!0),r.onRendered())};r.validate=function(t,i){if(!t.TimeFrom.Time||!t.TimeTo.Time){t.valid=!0;return}var r=moment(t.TimeFrom.Time+" "+t.TimeFrom.Period,"hh:mm A"),u=moment(t.TimeTo.Time+" "+t.TimeTo.Period,"hh:mm A");t.valid=r.isBefore(u);i===!0&&setTimeout(function(){n.$apply()},100)};r.isValid=function(){return i.every(r.workinghours,"valid")};r.timeFormatValidationNotified=function(t,i){t.valid=i;n.$$phase||n.$apply()};r.$onInit=function(){r.initiateData()};r.$onChanges=function(){r.initiateData();n.workinghoursform&&n.workinghoursform.$setPristine()};r.initiateData=function(){angular.forEach(r.workinghours,function(n){typeof n.valid=="undefined"&&r.validate(n,!1)});r.onValidate({model:i.cloneDeep(r.workinghours),valid:r.isValid,dirty:!1})};this.onDayChanged=function(){t(function(){n.$emit("resize")},100)}}function CompanyLogoBannerController(n,t,i,r){var u=this;n.logoUploader={};n.bannerUploader={};u.logoFile=null;u.bannerFile=null;u.$onInit=function(){u.onChanged({logosrc:u.logosrc,logoFile:u.logoFile,bannerFile:u.bannerFile,dirty:!1})};u.$postLink=function(){var t=$('<div class="croppie-caption"><div class="drag-section"><div class="icon icon-move"><\/div>Drag to crop<\/div><\/div>'),i=$('<a class="croppie-zoom croppie-zoom-in"><\/a><a class="croppie-zoom croppie-zoom-out"><\/a>'),n=$("#croppiePhoto");n.croppie({viewport:{width:183,height:183},boundary:{width:"100%",height:183},customClass:"",enableExif:!0,update:function(){}});n.find(".cr-slider-wrap").append(i);n.find(".cr-viewport").append(t);$("#croppiePhoto").find(".croppie-zoom-in").on("click",function(){var i=$("#croppiePhoto").data("croppie").get(),n=$("#croppiePhoto").find(".cr-slider").attr("step"),t;n=n*10;t=0;i.zoom-n>0&&(t=i.zoom-n);$("#croppiePhoto").data("croppie").setZoom(t);$("#croppiePhoto").data("croppie").refresh()});$("#croppiePhoto").find(".croppie-zoom-out").on("click",function(){var r=$("#croppiePhoto").data("croppie").get(),n=$("#croppiePhoto").find(".cr-slider").attr("step"),t,i;n=n*10;t=$("#croppiePhoto").find(".cr-slider").attr("max");i=t;r.zoom+n<t&&(i=r.zoom+n);$("#croppiePhoto").data("croppie").setZoom(i);$("#croppiePhoto").data("croppie").refresh()});u.onRendered()};u.bannerstyle=function(){return u.bannersrc!==""&&u.bannersrc!==null?{"background-image":'url("'+u.bannersrc+'")'}:{}};u.logostyle=function(){return u.logosrc!==""&&u.logosrc!==null?{"background-image":'url("'+u.logosrc+'")'}:{}};u.cropLogo=function(){$("#croppiePhoto").data("croppie").result({type:"canvas",size:"viewport"}).then(function(t){$("#croppiePhoto").closest(".croppie-section").addClass("invisible");n.logoUploader.flow.files.length>0&&(u.logoFile=n.logoUploader.flow.files[0].file,u.orilogosrc=u.orilogosrcTmp);setTimeout(function(){u.logosrc=t;$(".boarding-avatar").removeClass("crop-show").find(".avatar").removeClass("invisible").find(".frame").addClass("cropping");n.$$phase||n.$apply()},1);u.onChanged({logosrc:t,logoFile:u.logoFile,bannerFile:u.bannerFile,dirty:!0})})};u.cancelCropping=function(){n.logoUploader.flow.cancel();$("#croppiePhoto").closest(".croppie-section").addClass("invisible");$(".boarding-avatar").removeClass("crop-show").find(".avatar").removeClass("invisible").find(".frame")};u.editLogo=function(n){$(n.target).closest(".avatar").addClass("invisible").find(".frame");$(n.target).closest(".boarding-avatar").addClass("crop-show").find(".croppie-section").removeClass("invisible");$(n.target).closest(".boarding-avatar").showUnitLoading();$("#croppiePhoto").data("croppie").bind({url:u.orilogosrc},function(){$(n.target).closest(".boarding-avatar").hideUnitLoading()})};u.uploadError=function(t,i){i.cancel();typeof n.AlertController=="object"?n.AlertController.alert(t):alert(t)};u.postLogo=function(r,u){var f=t.defer();return i.postCompanyLogo({OriginalPhysicalPath:u,Cropped:r}).then(function(t){if(t.Success){f.resolve(t.OutputData);return}typeof n.AlertController=="object"?n.AlertController.alert(t.ErrorMessage):alert(t.ErrorMessage)}),f.promise};u.photoAdded=function(t,i){r.validateFile(i.file,n).then(function(f){var e,o,s;if(!f){i.flowObj.cancel();return}switch(t){case"logo":e=!1;r.readFile(i.file,n).then(function(n){u.orilogosrcTmp=n;e=!0});o=$("#croppiePhoto").data("croppie");$(".boarding-avatar .avatar").addClass("invisible").closest(".boarding-avatar").addClass("crop-show");showLoading();s=window.setInterval(function(){e&&(window.clearInterval(s),hideLoading(),o.bind(u.orilogosrcTmp,function(){$(".boarding-avatar .croppie-section").removeClass("invisible")}))},100);break;case"banner":r.readFile(i.file,n).then(function(t){$(".boarding-banner .banner").animax("zoomOut animated",function(){u.bannersrc=t;u.bannerFile=n.bannerUploader.flow.files[0].file;n.$$phase||n.$apply();$(this).animax("zoomIn animated");u.onChanged({logosrc:u.logosrc,logoFile:u.logoFile,bannerFile:u.bannerFile,dirty:!0})})})}})};u.removeLogo=function(t){n.PromptController.prompt("Are you sure you want to remove the photo?").then(function(i){i===!0&&$(t.target).closest(".avatar").animax("zoomOut animated",function(){n.logoUploader.flow.cancel();u.logosrc="";u.orilogosrc="";u.logoFile="deleted";n.$$phase||n.$apply();$(this).animax("zoomIn animated");u.onChanged({logosrc:u.logosrc,logoFile:u.logoFile,bannerFile:u.bannerFile,dirty:!0})})})};u.removeBanner=function(t){n.PromptController.prompt("Are you sure you want to remove the photo?").then(function(i){i===!0&&(n.bannerUploader.flow.cancel(),$(t.target).closest(".banner").animax("zoomOut animated",function(){u.bannersrc="";u.bannerFile="deleted";n.$$phase||n.$apply();$(this).animax("zoomIn animated");u.onChanged({logosrc:u.logosrc,logoFile:u.logoFile,bannerFile:u.bannerFile,dirty:!0})}))})};u.initPicture=function(n,t){t!=null&&t!==""?n.css("background-image","url("+t+")"):n.css("background-image","");n.hasClass("cropping")?$(n).removeClass("cropping"):$(n).animax("zoomIn animated")}}function OnboardingPricePlanController(n,t){var i=this;this.$postLink=function(){t(function(){i.onValidate({model:i.plan,valid:i.valid,dirty:!1});i.onRendered()},100)};this.onPlanChanged=function(){this.onValidate({model:this.plan,valid:this.valid,dirty:!0})};this.valid=function(){return i.plan!==undefined&&i.plan!==null}}function HourController(n,t){function r(n,i){if(n==="")return n;var r=n.replace(/[: ]{1,}/,"");return(r=t.trimStart(r,"0"),/^([1-9]){1}$/.test(r))?r:/^([1-9][0-9]){1}$/.test(r)?r.replace(/(\d{1})(\d{1})/,"$1 : $2"):/^([1-9][0-5][0-9]){1}$/.test(r)?r.replace(/(\d{1})(\d{2})/,"$1 : $2"):/^(1[0-2][0-5][0-9]){1}$/.test(r)?r.replace(/(\d{2})(\d{2})/,"$1 : $2"):i}var i=this;i.Id="wh"+guid().replace(/[-]+/g,"_");i.timeChanged=function(){if(i.time==="")i.onNotifyValid({valid:!1});else i.onValidate()};n.$on("model.changed",function(){var n=$("#"+i.Id).find("input").get();angular.forEach(n,function(n){var t=r($(n).val());$(n).val(t)});$("#"+i.Id).find("select").selectpicker("refresh");i.onMasked()});i.$postLink=function(){setTimeout(function(){$("#"+i.Id).find("select").selectpicker().on("changed.bs.select",function(){i.onValidate()});var t=$("#"+i.Id).find("input").on("focus",function(){var n=$(this).val();$(this).data("latestvalue",n).select()}).on("keydown",function(n){n.key.length===1&&isNaN(n.key)||$(this).data("keydowning")==="yes"?(n.preventDefault(),n.stopPropagation()):($(this).data("latestvalue",$(this).val()),$(this).data("keydowning","yes"))}).on("keyup paste",function(t){$(this).data("keydowning","no");var u=$(this);setTimeout(function(){var t=r(u.val(),u.data("latestvalue"));i.time=t;u.data("latestvalue",t);n.$apply();i.timeChanged()},1);t.preventDefault();t.stopPropagation()}).get();angular.forEach(t,function(n){var t=r($(n).val());$(n).val(t)});i.onMasked()},100)}}var module,dateFormat,nextFunctionAfterAlert,isView,jstz,isMobile;if(!function(n,t){function h(n,t){return typeof n===t}function c(){var u,n,f,e,o,c,t;for(var l in r)if(r.hasOwnProperty(l)){if(u=[],n=r[l],n.name&&(u.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(f=0;f<n.options.aliases.length;f++)u.push(n.options.aliases[f].toLowerCase());for(e=h(n.fn,"function")?n.fn():n.fn,o=0;o<u.length;o++)c=u[o],t=c.split("."),1===t.length?i[t[0]]=e:(!i[t[0]]||i[t[0]]instanceof Boolean||(i[t[0]]=new Boolean(i[t[0]])),i[t[0]][t[1]]=e),s.push((e?"":"no-")+t.join("-"))}}function l(n){var t=u.className,r=i._config.classPrefix||"",f;(o&&(t=t.baseVal),i._config.enableJSClass)&&(f=new RegExp("(^|\\s)"+r+"no-js(\\s|$)"),t=t.replace(f,"$1"+r+"js$2"));i._config.enableClasses&&(t+=" "+r+n.join(" "+r),o?u.className.baseVal=t:u.className=t)}var s=[],r=[],e={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){r.push({name:n,fn:t,options:i})},addAsyncTest:function(n){r.push({name:null,fn:n})}},i=function(){},u,o,f;for(i.prototype=e,i=new i,u=t.documentElement,o="svg"===u.nodeName.toLowerCase(),c(),l(s),delete e.addTest,delete e.addAsyncTest,f=0;f<i._q.length;f++)i._q[f]();n.Modernizr=i}(window,document),function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:n.nodeType===1&&t?!0:r==="array"||r!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in n)}function te(n){var t=ni[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ur(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||typeof r!="string")return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),(typeof r=="object"||typeof r=="function")&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),typeof r=="string"?(h=o[r],h==null&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var f,o,s=n.nodeType,u=s?i.cache:n,e=s?n[i.expando]:i.expando;if(u[e]){if(t&&(f=r?u[e]:u[e].data,f)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in f)?t=[t]:(t=i.camelCase(t),t=t in f?[t]:t.split(" ")),o=t.length;o--;)delete f[t[o]];if(r?!ti(f):!i.isEmptyObject(f))return}(r||(delete u[e].data,ti(u[e])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[e]:u[e]=null)}}}function er(n,r,u){if(u===t&&n.nodeType===1){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),typeof u=="string"){try{u=u==="true"?!0:u==="false"?!1:u==="null"?null:+u+""===u?+u:ir.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function ti(n){for(var t in n)if((t!=="data"||!i.isEmptyObject(n[t]))&&t!=="toJSON")return!1;return!0}function ct(){return!0}function g(){return!1}function cr(){try{return r.activeElement}catch(n){}}function ar(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}function fi(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if(typeof t=="string"){if(oe.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function vr(n){var i=yr.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function gr(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType===1?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(i.find.attr(n,"type")!==null)+"/"+n.type,n}function tu(n){var t=ye.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function hi(n,t){for(var u,r=0;(u=n[r])!=null;r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(t.nodeType===1&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle;r.events={};for(u in e)for(f=0,o=e[u].length;f<o;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function be(n,t){var r,f,u;if(t.nodeType===1){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}r==="script"&&t.text!==n.text?(nu(t).text=n.text,tu(t)):r==="object"?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):r==="input"&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):r==="option"?t.defaultSelected=t.selected=n.defaultSelected:(r==="input"||r==="textarea")&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;(e=s[h])!=null;h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function ke(n){oi.test(n.type)&&(n.defaultChecked=n.checked)}function ou(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=eu.length;i--;)if(t=eu[i]+r,t in n)return t;return u}function ut(n,t){return n=t||n,i.css(n,"display")==="none"||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;u<s;u++)(r=n[u],r.style)&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||f!=="none"||(r.style.display=""),r.style.display===""&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&f!=="none"||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;u<s;u++)(r=n[u],r.style)&&(t&&r.style.display!=="none"&&r.style.display!==""||(r.style.display=t?e[u]||"":"none"));return n}function hu(n,t,i){var r=to.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function cu(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:t==="width"?1:0,o=0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+p[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+p[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u=t==="width"?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box";if(u<=0||u==null){if(u=y(n,t,f),(u<0||u==null)&&(u=n.style[t]),lt.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]);u=parseFloat(u)||0}return u+cu(n,t,r||(o?"border":"content"),e,f)+"px"}function au(n){var u=r,t=uu[n];return t||(t=vu(n,u),t!=="none"&&t||(rt=(rt||i("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(u.documentElement),u=(rt[0].contentWindow||rt[0].contentDocument).document,u.write("<!doctype html><html><body>"),u.close(),t=vu(n,u),rt.detach()),uu[n]=t),t}function vu(n,t){var r=i(t.createElement(n)).appendTo(t.body),u=i.css(r[0],"display");return r.remove(),u}function li(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||fo.test(n)?u(n,i):li(n+"["+(typeof i=="object"?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(s)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function nf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===yi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,r){var f,u,e=i.ajaxSettings.flatOptions||{};for(u in r)r[u]!==t&&((e[u]?n:f||(f={}))[u]=r[u]);return f&&i.extend(!0,n,f),n}function ao(n,i,r){for(var s,o,f,e,h=n.contents,u=n.dataTypes;u[0]==="*";)u.shift(),o===t&&(o=n.mimeType||i.getResponseHeader("Content-Type"));if(o)for(e in h)if(h[e]&&h[e].test(o)){u.unshift(e);break}if(u[0]in r)f=u[0];else{for(e in r){if(!u[0]||n.converters[e+" "+u[0]]){f=e;break}s||(s=e)}f=f||s}if(f)return f!==u[0]&&u.unshift(f),r[f]}function vo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function rf(){try{return new n.XMLHttpRequest}catch(t){}}function yo(){try{return new n.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ff(){return setTimeout(function(){it=t}),it=i.now()}function ef(n,t,i){for(var u,f=(ft[t]||[]).concat(ft["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var e,o,s=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=it||ff(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,e=u.tweens.length;r<e;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),i<1&&e?t:(f.resolveWith(n,[u]),!1)},u=f.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{}},r),originalProperties:t,originalOptions:r,startTime:it||ff(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),h=u.props;for(bo(h,u.opts.specialEasing);s<l;s++)if(e=pt[s].call(u,n,h,u.opts),e)return e;return i.map(h,ef,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function bo(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u);delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function ko(n,t,r){var u,a,v,c,e,y,s=this,l={},o=n.style,h=n.nodeType&&ut(n),f=i._data(n,"fxshow");r.queue||(e=i._queueHooks(n,"fx"),e.unqueued==null&&(e.unqueued=0,y=e.empty.fire,e.empty.fire=function(){e.unqueued||y()}),e.unqueued++,s.always(function(){s.always(function(){e.unqueued--;i.queue(n,"fx").length||e.empty.fire()})}));n.nodeType===1&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],i.css(n,"display")==="inline"&&i.css(n,"float")==="none"&&(i.support.inlineBlockNeedsLayout&&au(n.nodeName)!=="inline"?o.zoom=1:o.display="inline-block"));r.overflow&&(o.overflow="hidden",i.support.shrinkWrapBlocks||s.always(function(){o.overflow=r.overflow[0];o.overflowX=r.overflow[1];o.overflowY=r.overflow[2]}));for(u in t)if(a=t[u],po.exec(a)){if(delete t[u],v=v||a==="toggle",a===(h?"hide":"show"))continue;l[u]=f&&f[u]||i.style(n,u)}if(!i.isEmptyObject(l)){f?"hidden"in f&&(h=f.hidden):f=i._data(n,"fxshow",{});v&&(f.hidden=!h);h?i(n).show():s.done(function(){i(n).hide()});s.done(function(){var t;i._removeData(n,"fxshow");for(t in l)i.style(n,t,l[t])});for(u in l)c=ef(h?f[u]:0,u,s),u in f||(f[u]=c.start,h&&(c.end=c.start,c.start=u==="width"||u==="height"?1:0))}}function f(n,t,i,r,u){return new f.prototype.init(n,t,i,r,u)}function wt(n,t){var r,i={height:n},u=0;for(t=t?1:0;u<4;u+=2-t)r=p[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function sf(n){return i.isWindow(n)?n:n.nodeType===9?n.defaultView||n.parentWindow:!1}var et,bi,o=typeof t,hf=n.location,r=n.document,ki=r.documentElement,cf=n.jQuery,lf=n.$,ot={},b=[],bt="1.10.2",di=b.concat,kt=b.push,l=b.slice,gi=b.indexOf,af=ot.toString,k=ot.hasOwnProperty,dt=bt.trim,i=function(n,t){return new i.fn.init(n,t,bi)},st=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,s=/\S+/g,vf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,yf=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,nr=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pf=/^[\],:{}\s]*$/,wf=/(?:^|:|,)(?:\s*\[)+/g,bf=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,kf=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,df=/^-ms-/,gf=/-([\da-z])/gi,ne=function(n,t){return t.toUpperCase()},h=function(n){(r.addEventListener||n.type==="load"||r.readyState==="complete")&&(tr(),i.ready())},tr=function(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",h,!1),n.removeEventListener("load",h,!1)):(r.detachEvent("onreadystatechange",h),n.detachEvent("onload",h))},ni,ir,rr,wi,at,nt,tt,tf,vt;i.fn=i.prototype={jquery:bt,constructor:i,init:function(n,u,f){var e,o;if(!n)return this;if(typeof n=="string"){if(e=n.charAt(0)==="<"&&n.charAt(n.length-1)===">"&&n.length>=3?[null,n,null]:yf.exec(n),e&&(e[1]||!u)){if(e[1]){if(u=u instanceof i?u[0]:u,i.merge(this,i.parseHTML(e[1],u&&u.nodeType?u.ownerDocument||u:r,!0)),nr.test(e[1])&&i.isPlainObject(u))for(e in u)i.isFunction(this[e])?this[e](u[e]):this.attr(e,u[e]);return this}if(o=r.getElementById(e[2]),o&&o.parentNode){if(o.id!==e[2])return f.find(n);this.length=1;this[0]=o}return this.context=r,this.selector=n,this}return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n)}return n.nodeType?(this.context=this[0]=n,this.length=1,this):i.isFunction(n)?f.ready(n):(n.selector!==t&&(this.selector=n.selector,this.context=n.context),i.makeArray(n,this))},selector:"",length:0,toArray:function(){return l.call(this)},get:function(n){return n==null?this.toArray():n<0?this[this.length+n]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t.context=this.context,t},each:function(n,t){return i.each(this,n,t)},ready:function(n){return i.ready.promise().done(n),this},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:kt,sort:[].sort,splice:[].splice};i.fn.init.prototype=i.fn;i.extend=i.fn.extend=function(){var u,o,r,e,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for(typeof n=="boolean"&&(c=n,n=arguments[1]||{},f=2),typeof n=="object"||i.isFunction(n)||(n={}),l===f&&(n=this,--f);f<l;f++)if((s=arguments[f])!=null)for(e in s)(u=n[e],r=s[e],n!==r)&&(c&&r&&(i.isPlainObject(r)||(o=i.isArray(r)))?(o?(o=!1,h=u&&i.isArray(u)?u:[]):h=u&&i.isPlainObject(u)?u:{},n[e]=i.extend(c,h,r)):r!==t&&(n[e]=r));return n};i.extend({expando:"jQuery"+(bt+Math.random()).replace(/\D/g,""),noConflict:function(t){return n.$===i&&(n.$=lf),t&&n.jQuery===i&&(n.jQuery=cf),i},isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){if(n===!0?!--i.readyWait:!i.isReady){if(!r.body)return setTimeout(i.ready);(i.isReady=!0,n!==!0&&--i.readyWait>0)||(et.resolveWith(r,[i]),i.fn.trigger&&i(r).trigger("ready").off("ready"))}},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray||function(n){return i.type(n)==="array"},isWindow:function(n){return n!=null&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return n==null?String(n):typeof n=="object"||typeof n=="function"?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||i.type(n)!=="object"||n.nodeType||i.isWindow(n))return!1;try{if(n.constructor&&!k.call(n,"constructor")&&!k.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(u){return!1}if(i.support.ownLast)for(r in n)return k.call(n,r);for(r in n);return r===t||k.call(n,r)},isEmptyObject:function(n){for(var t in n)return!1;return!0},error:function(n){throw new Error(n);},parseHTML:function(n,t,u){if(!n||typeof n!="string")return null;typeof t=="boolean"&&(u=t,t=!1);t=t||r;var f=nr.exec(n),e=!u&&[];return f?[t.createElement(f[1])]:(f=i.buildFragment([n],t,e),e&&i(e).remove(),i.merge([],f.childNodes))},parseJSON:function(t){if(n.JSON&&n.JSON.parse)return n.JSON.parse(t);if(t===null)return t;if(typeof t=="string"&&(t=i.trim(t),t&&pf.test(t.replace(bf,"@").replace(kf,"]").replace(wf,""))))return new Function("return "+t)();i.error("Invalid JSON: "+t)},parseXML:function(r){var u,f;if(!r||typeof r!="string")return null;try{n.DOMParser?(f=new DOMParser,u=f.parseFromString(r,"text/xml")):(u=new ActiveXObject("Microsoft.XMLDOM"),u.async="false",u.loadXML(r))}catch(e){u=t}return u&&u.documentElement&&!u.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+r),u},noop:function(){},globalEval:function(t){t&&i.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(n){return n.replace(df,"ms-").replace(gf,ne)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t,i){var u,r=0,f=n.length,e=gt(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n},trim:dt&&!dt.call("﻿ ")?function(n){return n==null?"":dt.call(n)}:function(n){return n==null?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(gt(Object(n))?i.merge(r,typeof n=="string"?[n]:n):kt.call(r,n)),r},inArray:function(n,t,i){var r;if(t){if(gi)return gi.call(t,n,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===n)return i}return-1},merge:function(n,i){var f=i.length,u=n.length,r=0;if(typeof f=="number")for(;r<f;r++)n[u++]=i[r];else while(i[r]!==t)n[u++]=i[r++];return n.length=u,n},grep:function(n,t,i){var u,f=[],r=0,e=n.length;for(i=!!i;r<e;r++)u=!!t(n[r],r),i!==u&&f.push(n[r]);return f},map:function(n,t,i){var u,r=0,e=n.length,o=gt(n),f=[];if(o)for(;r<e;r++)u=t(n[r],r,i),u!=null&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),u!=null&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return(typeof r=="string"&&(e=n[r],r=n,n=e),!i.isFunction(n))?t:(f=l.call(arguments,2),u=function(){return n.apply(r||this,f.concat(l.call(arguments)))},u.guid=n.guid=n.guid||i.guid++,u)},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=u==null;if(i.type(u)==="object"){e=!0;for(h in u)i.access(n,r,h,u[h],!0,o,s)}else if(f!==t&&(e=!0,i.isFunction(f)||(s=!0),c&&(s?(r.call(n,f),r=null):(c=r,r=function(n,t,r){return c.call(i(n),r)})),r))for(;h<l;h++)r(n[h],u,s?f:f.call(n[h],h,r(n[h],u)));return e?n:c?r.call(n):l?r(n[0],u):o},now:function(){return(new Date).getTime()},swap:function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f}});i.ready.promise=function(t){if(!et)if(et=i.Deferred(),r.readyState==="complete")setTimeout(i.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",h,!1),n.addEventListener("load",h,!1);else{r.attachEvent("onreadystatechange",h);n.attachEvent("onload",h);var u=!1;try{u=n.frameElement==null&&r.documentElement}catch(e){}u&&u.doScroll&&function f(){if(!i.isReady){try{u.doScroll("left")}catch(n){return setTimeout(f,50)}tr();i.ready()}}()}return et.promise(t)};i.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(n,t){ot["[object "+t+"]"]=t.toLowerCase()});bi=i(r),function(n,t){function u(n,t,i,r){var p,u,f,l,w,a,k,c,g,d;if((t?t.ownerDocument||t:y)!==s&&nt(t),t=t||s,i=i||[],!n||typeof n!="string")return i;if((l=t.nodeType)!==1&&l!==9)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(l===9)if(u=t.getElementById(f),u&&u.parentNode){if(u.id===f)return i.push(u),i}else return i;else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&ot(t,u)&&u.id===f)return i.push(u),i}else{if(p[2])return b.apply(i,t.getElementsByTagName(n)),i;if((f=p[3])&&e.getElementsByClassName&&t.getElementsByClassName)return b.apply(i,t.getElementsByClassName(f)),i}if(e.qsa&&(!h||!h.test(n))){if(c=k=o,g=t,d=l===9&&n,l===1&&t.nodeName.toLowerCase()!=="object"){for(a=pt(n),(k=t.getAttribute("id"))?c=k.replace(cr,"\\$&"):t.setAttribute("id",c),c="[id='"+c+"'] ",w=a.length;w--;)a[w]=c+wt(a[w]);g=ti.test(n)&&t.parentNode||t;d=a.join(",")}if(d)try{return b.apply(i,g.querySelectorAll(d)),i}catch(tt){}finally{k||t.removeAttribute("id")}}}return pr(n.replace(vt,"$1"),t,i,r)}function ri(){function n(i,u){return t.push(i+=" ")>r.cacheLength&&delete n[t.shift()],n[i]=u}var t=[];return n}function c(n){return n[o]=!0,n}function l(n){var t=s.createElement("div");try{return!!n(t)}catch(i){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ui(n,t){for(var u=n.split("|"),i=n.length;i--;)r.attrHandle[u[i]]=t}function bi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||vi)-(~n.sourceIndex||vi);if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function lr(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function rt(n){return c(function(t){return t=+t,c(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ki(){}function pt(n,t){var e,f,s,o,i,h,c,l=li[n+" "];if(l)return t?0:l.slice(0);for(i=n,h=[],c=r.preFilter;i;){(!e||(f=ir.exec(i)))&&(f&&(i=i.slice(f[0].length)||i),h.push(s=[]));e=!1;(f=rr.exec(i))&&(e=f.shift(),s.push({value:e,type:f[0].replace(vt," ")}),i=i.slice(e.length));for(o in r.filter)(f=yt[o].exec(i))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),i=i.slice(e.length));if(!e)break}return t?i.length:i?u.error(n):li(n,h).slice(0)}function wt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&r==="parentNode",f=di++;return t.first?function(t,i,f){while(t=t[r])if(t.nodeType===1||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((t.nodeType===1||u)&&n(t,i,e))return!0}else while(t=t[r])if(t.nodeType===1||u)if(c=t[o]||(t[o]={}),(s=c[r])&&s[0]===l){if((h=s[1])===!0||h===ht)return h===!0}else if(s=c[r]=[l],s[1]=n(t,i,e)||ht,s[1]===!0)return!0}}function ei(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function bt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function oi(n,t,i,r,u,f){return r&&!r[o]&&(r=oi(r)),u&&!u[o]&&(u=oi(u,f)),c(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,k=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?bt(k,p,n,o,s):k,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=bt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?it.call(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=bt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):b.apply(e,h)})}function si(n){for(var s,u,i,e=n.length,h=r.relative[n[0].type],c=h||r.relative[" "],t=h?1:0,l=fi(function(n){return n===s},c,!0),a=fi(function(n){return it.call(s,n)>-1},c,!0),f=[function(n,t,i){return!h&&(i||t!==lt)||((s=t).nodeType?l(n,t,i):a(n,t,i))}];t<e;t++)if(u=r.relative[n[t].type])f=[fi(ei(f),u)];else{if(u=r.filter[n[t].type].apply(null,n[t].matches),u[o]){for(i=++t;i<e;i++)if(r.relative[n[i].type])break;return oi(t>1&&ei(f),t>1&&wt(n.slice(0,t-1).concat({value:n[t-2].type===" "?"*":""})).replace(vt,"$1"),u,t<i&&si(n.slice(t,i)),i<e&&si(n=n.slice(i)),i<e&&wt(n))}f.push(u)}return ei(f)}function vr(n,t){var f=0,i=t.length>0,e=n.length>0,o=function(o,h,c,l,a){var y,g,k,w=[],d=0,v="0",nt=o&&[],tt=a!=null,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=it==null?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);(y=ut[v])!=null;v++){if(e&&y){for(g=0;k=n[g++];)if(k(y,h,c)){l.push(y);break}tt&&(p=rt,ht=++f)}i&&((y=!k&&y)&&d--,o&&nt.push(y))}if(d+=v,i&&v!==d){for(g=0;k=t[g++];)k(nt,w,h,c);if(o){if(d>0)while(v--)nt[v]||w[v]||(w[v]=nr.call(l));w=bt(w)}b.apply(l,w);tt&&!o&&w.length>0&&d+t.length>1&&u.uniqueSort(l)}return tt&&(p=rt,lt=it),nt};return i?c(o):o}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function pr(n,t,i,u){var s,f,o,c,l,h=pt(n);if(!u&&h.length===1){if(f=h[0]=h[0].slice(0),f.length>2&&(o=f[0]).type==="ID"&&e.getById&&t.nodeType===9&&v&&r.relative[f[1].type]){if(t=(r.find.ID(o.matches[0].replace(k,d),t)||[])[0],!t)return i;n=n.slice(f.shift().value.length)}for(s=yt.needsContext.test(n)?0:f.length;s--;){if(o=f[s],r.relative[c=o.type])break;if((l=r.find[c])&&(u=l(o.matches[0].replace(k,d),ti.test(f[0].type)&&t.parentNode||t))){if(f.splice(s,1),n=u.length&&wt(f),!n)return b.apply(i,u),i;break}}}return kt(n,h)(u,t,!v,i,ti.test(n)),i}var ut,e,ht,r,ct,hi,kt,lt,g,nt,s,a,v,h,tt,at,ot,o="sizzle"+-new Date,y=n.document,p=0,di=0,ci=ri(),li=ri(),ai=ri(),ft=!1,dt=function(n,t){return n===t?(ft=!0,0):0},st=typeof t,vi=-2147483648,gi={}.hasOwnProperty,w=[],nr=w.pop,tr=w.push,b=w.push,yi=w.slice,it=w.indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(this[t]===n)return t;return-1},gt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",f="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",pi=et.replace("w","w#"),wi="\\["+f+"*("+et+")"+f+"*(?:([*^$|!~]?=)"+f+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+pi+")|)|)"+f+"*\\]",ni=":("+et+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+wi.replace(3,8)+")*)|.*)\\)|)",vt=new RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=new RegExp("^"+f+"*,"+f+"*"),rr=new RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=new RegExp(f+"*[+~]"),ur=new RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=new RegExp(ni),er=new RegExp("^"+pi+"$"),yt={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et.replace("w","w*")+")"),ATTR:new RegExp("^"+wi),PSEUDO:new RegExp("^"+ni),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:new RegExp("^(?:"+gt+")$","i"),needsContext:new RegExp("^"+f+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+f+"*((?:-\\d)?\\d*)"+f+"*\\)|)(?=[^-]|$)","i")},ii=/^[^{]+\{\s*\[native \w/,or=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,cr=/'|\\/g,k=new RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{b.apply(w=yi.call(y.childNodes),y.childNodes);w[y.childNodes.length].nodeType}catch(wr){b={apply:w.length?function(n,t){tr.apply(n,yi.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}hi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1};e=u.support={};nt=u.setDocument=function(n){var t=n?n.ownerDocument||n:y,i=t.defaultView;return t===s||t.nodeType!==9||!t.documentElement?s:(s=t,a=t.documentElement,v=!hi(t),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(t.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=l(function(n){return n.innerHTML="<div class='a'><\/div><div class='a i'><\/div>",n.firstChild.className="i",n.getElementsByClassName("i").length===2}),e.getById=l(function(n){return a.appendChild(n).id=o,!t.getElementsByName||!t.getElementsByName(o).length}),e.getById?(r.find.ID=function(n,t){if(typeof t.getElementById!==st&&v){var i=t.getElementById(n);return i&&i.parentNode?[i]:[]}},r.filter.ID=function(n){var t=n.replace(k,d);return function(n){return n.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(n){var t=n.replace(k,d);return function(n){var i=typeof n.getAttributeNode!==st&&n.getAttributeNode("id");return i&&i.value===t}}),r.find.TAG=e.getElementsByTagName?function(n,t){if(typeof t.getElementsByTagName!==st)return t.getElementsByTagName(n)}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!==st&&v)return t.getElementsByClassName(n)},tt=[],h=[],(e.qsa=ii.test(t.querySelectorAll))&&(l(function(n){n.innerHTML="<select><option selected=''><\/option><\/select>";n.querySelectorAll("[selected]").length||h.push("\\["+f+"*(?:value|"+gt+")");n.querySelectorAll(":checked").length||h.push(":checked")}),l(function(n){var i=t.createElement("input");i.setAttribute("type","hidden");n.appendChild(i).setAttribute("t","");n.querySelectorAll("[t^='']").length&&h.push("[*^$]="+f+"*(?:''|\"\")");n.querySelectorAll(":enabled").length||h.push(":enabled",":disabled");n.querySelectorAll("*,:x");h.push(",.*:")})),(e.matchesSelector=ii.test(at=a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&l(function(n){e.disconnectedMatch=at.call(n,"div");at.call(n,"[s!='']:x");tt.push("!=",ni)}),h=h.length&&new RegExp(h.join("|")),tt=tt.length&&new RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,i){if(n===i)return ft=!0,0;var r=i.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(i);return r?r&1||!e.sortDetached&&i.compareDocumentPosition(n)===r?n===t||ot(y,n)?-1:i===t||ot(y,i)?1:g?it.call(g,n)-it.call(g,i):0:r&4?-1:1:n.compareDocumentPosition?-1:1}:function(n,i){var r,u=0,o=n.parentNode,s=i.parentNode,f=[n],e=[i];if(n===i)return ft=!0,0;if(o&&s){if(o===s)return bi(n,i)}else return n===t?-1:i===t?1:o?-1:s?1:g?it.call(g,n)-it.call(g,i):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=i;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?bi(f[u],e[u]):f[u]===y?-1:e[u]===y?1:0},t)};u.matches=function(n,t){return u(n,null,null,t)};u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==s&&nt(n),t=t.replace(ur,"='$1']"),e.matchesSelector&&v&&(!tt||!tt.test(t))&&(!h||!h.test(t)))try{var i=at.call(n,t);if(i||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return i}catch(r){}return u(t,s,null,[n]).length>0};u.contains=function(n,t){return(n.ownerDocument||n)!==s&&nt(n),ot(n,t)};u.attr=function(n,i){(n.ownerDocument||n)!==s&&nt(n);var f=r.attrHandle[i.toLowerCase()],u=f&&gi.call(r.attrHandle,i.toLowerCase())?f(n,i,!v):t;return u===t?e.attributes||!v?n.getAttribute(i):(u=n.getAttributeNode(i))&&u.specified?u.value:null:u};u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);};u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ft=!e.detectDuplicates,g=!e.sortStable&&n.slice(0),n.sort(dt),ft){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return n};ct=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(t===3||t===4)return n.nodeValue}else for(;r=n[u];u++)i+=ct(r);return i};r=u.selectors={cacheLength:50,createPseudo:c,match:yt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(k,d),n[3]=(n[4]||n[5]||"").replace(k,d),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var r,i=!n[5]&&n[2];return yt.CHILD.test(n[0])?null:(n[3]&&n[4]!==t?n[2]=n[4]:i&&fr.test(i)&&(r=pt(i,!0))&&(r=i.indexOf(")",i.length-r)-i.length)&&(n[0]=n[0].slice(0,r),n[2]=i.slice(0,r)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(k,d).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=ci[n+" "];return t||(t=new RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",e=n.slice(-4)!=="last",f=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var a,k,c,l,v,w,b=s!==e?"nextSibling":"previousSibling",y=t.parentNode,g=f&&t.nodeName.toLowerCase(),d=!h&&!f;if(y){if(s){while(b){for(c=t;c=c[b];)if(f?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;w=b=n==="only"&&!w&&"nextSibling"}return!0}if(w=[e?y.firstChild:y.lastChild],e&&d){for(k=y[o]||(y[o]={}),a=k[n]||[],v=a[0]===p&&a[1],l=a[0]===p&&a[2],c=v&&y.childNodes[v];c=++v&&c&&c[b]||(l=v=0)||w.pop();)if(c.nodeType===1&&++l&&c===t){k[n]=[p,v,l];break}}else if(d&&(a=(t[o]||(t[o]={}))[n])&&a[0]===p)l=a[1];else while(c=++v&&c&&c[b]||(l=v=0)||w.pop())if((f?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,t){var f,i=r.pseudos[n]||r.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return i[o]?i(t):i.length>1?(f=[n,n,"",t],r.setFilters.hasOwnProperty(n.toLowerCase())?c(function(n,r){for(var u,f=i(n,t),e=f.length;e--;)u=it.call(n,f[e]),n[u]=!(r[u]=f[e])}):function(n){return i(n,0,f)}):i}},pseudos:{not:c(function(n){var i=[],r=[],t=kt(n.replace(vt,"$1"));return t[o]?c(function(n,i,r,u){for(var e,o=t(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(i[f]=e))}):function(n,u,f){return i[0]=n,t(i,null,f,r),!r.pop()}}),has:c(function(n){return function(t){return u(n,t).length>0}}),contains:c(function(n){return function(t){return(t.textContent||t.innerText||ct(t)).indexOf(n)>-1}}),lang:c(function(n){return er.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(k,d).toLowerCase(),function(t){var i;do if(i=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===a},focus:function(n){return n===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:function(n){return n.disabled===!1},disabled:function(n){return n.disabled===!0},checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeName>"@"||n.nodeType===3||n.nodeType===4)return!1;return!0},parent:function(n){return!r.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[i<0?i+t:i]}),even:rt(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}};r.pseudos.nth=r.pseudos.eq;for(ut in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[ut]=lr(ut);for(ut in{submit:!0,reset:!0})r.pseudos[ut]=ar(ut);ki.prototype=r.filters=r.pseudos;r.setFilters=new ki;kt=u.compile=function(n,t){var r,u=[],f=[],i=ai[n+" "];if(!i){for(t||(t=pt(n)),r=t.length;r--;)i=si(t[r]),i[o]?u.push(i):f.push(i);i=ai(n,vr(f,u))}return i};e.sortStable=o.split("").sort(dt).join("")===o;e.detectDuplicates=ft;nt();e.sortDetached=l(function(n){return n.compareDocumentPosition(s.createElement("div"))&1});l(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ui("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ui("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue});l(function(n){return n.getAttribute("disabled")==null})||ui(gt,function(n,t,i){var r;if(!i)return(r=n.getAttributeNode(t))&&r.specified?r.value:n[t]===!0?t.toLowerCase():null});i.find=u;i.expr=u.selectors;i.expr[":"]=i.expr.pseudos;i.unique=u.uniqueSort;i.text=u.getText;i.isXMLDoc=u.isXML;i.contains=u.contains}(n);ni={};i.Callbacks=function(n){n=typeof n=="string"?ni[n]||te(n):i.extend({},n);var s,f,c,e,o,l,r=[],u=!n.once&&[],a=function(t){for(f=n.memory&&t,c=!0,o=l||0,l=0,e=r.length,s=!0;r&&o<e;o++)if(r[o].apply(t[0],t[1])===!1&&n.stopOnFalse){f=!1;break}s=!1;r&&(u?u.length&&a(u.shift()):f?r=[]:h.disable())},h={add:function(){if(r){var t=r.length;(function u(t){i.each(t,function(t,f){var e=i.type(f);e==="function"?n.unique&&h.has(f)||r.push(f):f&&f.length&&e!=="string"&&u(f)})})(arguments);s?e=r.length:f&&(l=t,a(f))}return this},remove:function(){return r&&i.each(arguments,function(n,t){for(var u;(u=i.inArray(t,r,u))>-1;)r.splice(u,1),s&&(u<=e&&e--,u<=o&&o--)}),this},has:function(n){return n?i.inArray(n,r)>-1:!!(r&&r.length)},empty:function(){return r=[],e=0,this},disable:function(){return r=u=f=t,this},disabled:function(){return!r},lock:function(){return u=t,f||h.disable(),this},locked:function(){return!u},fireWith:function(n,t){return r&&(!c||u)&&(t=t||[],t=[n,t.slice?t.slice():t],s?u.push(t):a(t)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(n){var u=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],f="pending",r={state:function(){return f},always:function(){return t.done(arguments).fail(arguments),this},then:function(){var n=arguments;return i.Deferred(function(f){i.each(u,function(u,e){var s=e[0],o=i.isFunction(n[u])&&n[u];t[e[1]](function(){var n=o&&o.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().done(f.resolve).fail(f.reject).progress(f.notify):f[s+"With"](this===r?f.promise():this,o?[n]:arguments)})});n=null}).promise()},promise:function(n){return n!=null?i.extend(n,r):r}},t={};return r.pipe=r.then,i.each(u,function(n,i){var e=i[2],o=i[3];r[i[1]]=e.add;o&&e.add(function(){f=o},u[n^1][2].disable,u[2][2].lock);t[i[0]]=function(){return t[i[0]+"With"](this===t?r:this,arguments),this};t[i[0]+"With"]=e.fireWith}),r.promise(t),n&&n.call(t,t),t},when:function(n){var t=0,u=l.call(arguments),r=u.length,e=r!==1||n&&i.isFunction(n.promise)?r:0,f=e===1?n:i.Deferred(),h=function(n,t,i){return function(r){t[n]=this;i[n]=arguments.length>1?l.call(arguments):r;i===o?f.notifyWith(t,i):--e||f.resolveWith(t,i)}},o,c,s;if(r>1)for(o=new Array(r),c=new Array(r),s=new Array(r);t<r;t++)u[t]&&i.isFunction(u[t].promise)?u[t].promise().done(h(t,s,u)).fail(f.reject).progress(h(t,c,o)):--e;return e||f.resolveWith(s,u),f.promise()}});i.support=function(t){var a,e,f,h,c,l,v,y,s,u=r.createElement("div");if(u.setAttribute("className","t"),u.innerHTML="  <link/><table><\/table><a href='/a'>a<\/a><input type='checkbox'/>",a=u.getElementsByTagName("*")||[],e=u.getElementsByTagName("a")[0],!e||!e.style||!a.length)return t;h=r.createElement("select");l=h.appendChild(r.createElement("option"));f=u.getElementsByTagName("input")[0];e.style.cssText="top:1px;float:left;opacity:.5";t.getSetAttribute=u.className!=="t";t.leadingWhitespace=u.firstChild.nodeType===3;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized=e.getAttribute("href")==="/a";t.opacity=/^0.5/.test(e.style.opacity);t.cssFloat=!!e.style.cssFloat;t.checkOn=!!f.value;t.optSelected=l.selected;t.enctype=!!r.createElement("form").enctype;t.html5Clone=r.createElement("nav").cloneNode(!0).outerHTML!=="<:nav><\/:nav>";t.inlineBlockNeedsLayout=!1;t.shrinkWrapBlocks=!1;t.pixelPosition=!1;t.deleteExpando=!0;t.noCloneEvent=!0;t.reliableMarginRight=!0;t.boxSizingReliable=!0;f.checked=!0;t.noCloneChecked=f.cloneNode(!0).checked;h.disabled=!0;t.optDisabled=!l.disabled;try{delete u.test}catch(p){t.deleteExpando=!1}f=r.createElement("input");f.setAttribute("value","");t.input=f.getAttribute("value")==="";f.value="t";f.setAttribute("type","radio");t.radioValue=f.value==="t";f.setAttribute("checked","t");f.setAttribute("name","t");c=r.createDocumentFragment();c.appendChild(f);t.appendChecked=f.checked;t.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked;u.attachEvent&&(u.attachEvent("onclick",function(){t.noCloneEvent=!1}),u.cloneNode(!0).click());for(s in{submit:!0,change:!0,focusin:!0})u.setAttribute(v="on"+s,"t"),t[s+"Bubbles"]=v in n||u.attributes[v].expando===!1;u.style.backgroundClip="content-box";u.cloneNode(!0).style.backgroundClip="";t.clearCloneStyle=u.style.backgroundClip==="content-box";for(s in i(t))break;return t.ownLast=s!=="0",i(function(){var h,e,f,c="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",s=r.getElementsByTagName("body")[0];s&&(h=r.createElement("div"),h.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",s.appendChild(h).appendChild(u),u.innerHTML="<table><tr><td><\/td><td>t<\/td><\/tr><\/table>",f=u.getElementsByTagName("td"),f[0].style.cssText="padding:0;margin:0;border:0;display:none",y=f[0].offsetHeight===0,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&f[0].offsetHeight===0,u.innerHTML="",u.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",i.swap(s,s.style.zoom!=null?{zoom:1}:{},function(){t.boxSizing=u.offsetWidth===4}),n.getComputedStyle&&(t.pixelPosition=(n.getComputedStyle(u,null)||{}).top!=="1%",t.boxSizingReliable=(n.getComputedStyle(u,null)||{width:"4px"}).width==="4px",e=u.appendChild(r.createElement("div")),e.style.cssText=u.style.cssText=c,e.style.marginRight=e.style.width="0",u.style.width="1px",t.reliableMarginRight=!parseFloat((n.getComputedStyle(e,null)||{}).marginRight)),typeof u.style.zoom!==o&&(u.innerHTML="",u.style.cssText=c+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=u.offsetWidth===3,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=u.offsetWidth!==3,t.inlineBlockNeedsLayout&&(s.style.zoom=1)),s.removeChild(h),h=u=f=e=null)}),a=h=c=l=e=f=null,t}({});ir=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/;rr=/([A-Z])/g;i.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(n){return n=n.nodeType?i.cache[n[i.expando]]:n[i.expando],!!n&&!ti(n)},data:function(n,t,i){return ur(n,t,i)},removeData:function(n,t){return fr(n,t)},_data:function(n,t,i){return ur(n,t,i,!0)},_removeData:function(n,t){return fr(n,t,!0)},acceptData:function(n){if(n.nodeType&&n.nodeType!==1&&n.nodeType!==9)return!1;var t=n.nodeName&&i.noData[n.nodeName.toLowerCase()];return!t||t!==!0&&n.getAttribute("classid")===t}});i.fn.extend({data:function(n,r){var e,f,o=null,s=0,u=this[0];if(n===t){if(this.length&&(o=i.data(u),u.nodeType===1&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;s<e.length;s++)f=e[s].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return typeof n=="object"?this.each(function(){i.data(this,n)}):arguments.length>1?this.each(function(){i.data(this,n,r)}):u?er(u,n,i.data(u,n)):null},removeData:function(n){return this.each(function(){i.removeData(this,n)})}});i.extend({queue:function(n,t,r){var u;if(n)return t=(t||"fx")+"queue",u=i._data(n,t),r&&(!u||i.isArray(r)?u=i._data(n,t,i.makeArray(r)):u.push(r)),u||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--);u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var r=t+"queueHooks";return i._data(n,r)||i._data(n,r,{empty:i.Callbacks("once memory").add(function(){i._removeData(n,t+"queue");i._removeData(n,r)})})}});i.fn.extend({queue:function(n,r){var u=2;return(typeof n!="string"&&(r=n,n="fx",u--),arguments.length<u)?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);n==="fx"&&t[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},delay:function(n,t){return n=i.fx?i.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=setTimeout(t,n);i.stop=function(){clearTimeout(r)}})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(r=n,n=t),n=n||"fx";s--;)u=i._data(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(r)}});var d,or,ii=/[\t\r\n\f]/g,ie=/\r/g,re=/^(?:input|select|textarea|button|object)$/i,ue=/^(?:a|area)$/i,ri=/^(?:checked|selected)$/i,a=i.support.getSetAttribute,ht=i.support.input;i.fn.extend({attr:function(n,t){return i.access(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})},prop:function(n,t){return i.access(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return n=i.propFix[n]||n,this.each(function(){try{this[n]=t;delete this[n]}catch(i){}})},addClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(t=this[f],r=t.nodeType===1&&(t.className?(" "+t.className+" ").replace(ii," "):" "),r){for(o=0;u=e[o++];)r.indexOf(" "+u+" ")<0&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,r,t,u,o,f=0,h=this.length,c=arguments.length===0||typeof n=="string"&&n;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,this.className))});if(c)for(e=(n||"").match(s)||[];f<h;f++)if(r=this[f],t=r.nodeType===1&&(r.className?(" "+r.className+" ").replace(ii," "):""),t){for(o=0;u=e[o++];)while(t.indexOf(" "+u+" ")>=0)t=t.replace(" "+u+" "," ");r.className=n?i.trim(t):""}return this},toggleClass:function(n,t){var r=typeof n;return typeof t=="boolean"&&r==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,this.className,t),t)}):this.each(function(){if(r==="string")for(var t,f=0,u=i(this),e=n.match(s)||[];t=e[f++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else(r===o||r==="boolean")&&(this.className&&i._data(this,"__className__",this.className),this.className=this.className||n===!1?"":i._data(this,"__className__")||"")})},hasClass:function(n){for(var i=" "+n+" ",t=0,r=this.length;t<r;t++)if(this[t].nodeType===1&&(" "+this[t].className+" ").replace(ii," ").indexOf(i)>=0)return!0;return!1},val:function(n){var u,r,e,f=this[0];return arguments.length?(e=i.isFunction(n),this.each(function(u){var f;this.nodeType===1&&(f=e?n.call(this,u,i(this).val()):n,f==null?f="":typeof f=="number"?f+="":i.isArray(f)&&(f=i.map(f,function(n){return n==null?"":n+""})),r=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,f,"value")!==t||(this.value=f))})):f?(r=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(u=r.get(f,"value"))!==t)?u:(u=f.value,typeof u=="string"?u.replace(ie,""):u==null?"":u):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u=n.type==="select-one"||r<0,s=u?null:[],h=u?r+1:o.length,f=r<0?h:u?r:0;f<h;f++)if(t=o[f],(t.selected||f===r)&&(i.support.optDisabled?!t.disabled:t.getAttribute("disabled")===null)&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),u)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i(r).val(),e)>=0)&&(u=!0);return u||(n.selectedIndex=-1),e}}},attr:function(n,r,u){var f,e,s=n.nodeType;if(n&&s!==3&&s!==8&&s!==2){if(typeof n.getAttribute===o)return i.prop(n,r,u);if(s===1&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u!==t)if(u===null)i.removeAttr(n,r);else return f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u);else return f&&"get"in f&&(e=f.get(n,r))!==null?e:(e=i.find.attr(n,r),e==null?t:e)}},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&n.nodeType===1)while(r=f[e++])u=i.propFix[r]||r,i.expr.match.bool.test(r)?ht&&a||!ri.test(r)?n[u]=!1:n[i.camelCase("default-"+r)]=n[u]=!1:i.attr(n,r,""),n.removeAttribute(a?r:u)},attrHooks:{type:{set:function(n,t){if(!i.support.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(n,r,u){var e,f,s,o=n.nodeType;if(n&&o!==3&&o!==8&&o!==2)return s=o!==1||!i.isXMLDoc(n),s&&(r=i.propFix[r]||r,f=i.propHooks[r]),u!==t?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:n[r]=u:f&&"get"in f&&(e=f.get(n,r))!==null?e:n[r]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):re.test(n.nodeName)||ue.test(n.nodeName)&&n.href?0:-1}}}});or={set:function(n,t,r){return t===!1?i.removeAttr(n,r):ht&&a||!ri.test(r)?n.setAttribute(!a&&i.propFix[r]||r,r):n[i.camelCase("default-"+r)]=n[r]=!0,r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,r){var u=i.expr.attrHandle[r]||i.find.attr;i.expr.attrHandle[r]=ht&&a||!ri.test(r)?function(n,r,f){var e=i.expr.attrHandle[r],o=f?t:(i.expr.attrHandle[r]=t)!=u(n,r,f)?r.toLowerCase():null;return i.expr.attrHandle[r]=e,o}:function(n,r,u){return u?t:n[i.camelCase("default-"+r)]?r.toLowerCase():null}});ht&&a||(i.attrHooks.value={set:function(n,t,r){if(i.nodeName(n,"input"))n.defaultValue=t;else return d&&d.set(n,t,r)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="",r==="value"||i===n.getAttribute(r)?i:t}},i.expr.attrHandle.id=i.expr.attrHandle.name=i.expr.attrHandle.coords=function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.value!==""?u.value:null},i.valHooks.button={get:function(n,i){var r=n.getAttributeNode(i);return r&&r.specified?r.value:t},set:d.set},i.attrHooks.contenteditable={set:function(n,t,i){d.set(n,t===""?!1:t,i)}},i.each(["width","height"],function(n,t){i.attrHooks[t]={set:function(n,i){if(i==="")return n.setAttribute(t,"auto"),i}}}));i.support.hrefNormalized||i.each(["href","src"],function(n,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}});i.support.style||(i.attrHooks.style={get:function(n){return n.style.cssText||t},set:function(n,t){return n.style.cssText=t+""}});i.support.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.support.enctype||(i.propFix.enctype="encoding");i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>=0}};i.support.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var ui=/^(?:input|select|textarea)$/i,fe=/^key/,ee=/^(?:mouse|contextmenu)|click/,sr=/^(?:focusinfocus|focusoutblur)$/,hr=/^([^.]*)(?:\.(.+)|)$/;i.event={global:{},add:function(n,r,u,f,e){var b,p,k,w,c,l,a,v,h,d,g,y=i._data(n);if(y){for(u.handler&&(w=u,u=w.handler,e=w.selector),u.guid||(u.guid=i.guid++),(p=y.events)||(p=y.events={}),(l=y.handle)||(l=y.handle=function(n){return typeof i!==o&&(!n||i.event.triggered!==n.type)?i.event.dispatch.apply(l.elem,arguments):t},l.elem=n),r=(r||"").match(s)||[""],k=r.length;k--;)(b=hr.exec(r[k])||[],h=g=b[1],d=(b[2]||"").split(".").sort(),h)&&(c=i.event.special[h]||{},h=(e?c.delegateType:c.bindType)||h,c=i.event.special[h]||{},a=i.extend({type:h,origType:g,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:d.join(".")},w),(v=p[h])||(v=p[h]=[],v.delegateCount=0,c.setup&&c.setup.call(n,f,d,l)!==!1||(n.addEventListener?n.addEventListener(h,l,!1):n.attachEvent&&n.attachEvent("on"+h,l))),c.add&&(c.add.call(n,a),a.handler.guid||(a.handler.guid=u.guid)),e?v.splice(v.delegateCount++,0,a):v.push(a),i.event.global[h]=!0);n=null}},remove:function(n,t,r,u,f){var y,o,h,b,p,a,c,l,e,w,k,v=i.hasData(n)&&i._data(n);if(v&&(a=v.events)){for(t=(t||"").match(s)||[""],p=t.length;p--;){if(h=hr.exec(t[p])||[],e=k=h[1],w=(h[2]||"").split(".").sort(),!e){for(e in a)i.event.remove(n,e+t[p],r,u,!0);continue}for(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&new RegExp("(^|\\.)"+w.join("\\.(?:.*\\.|)")+"(\\.|$)"),b=y=l.length;y--;)o=l[y],(f||k===o.origType)&&(!r||r.guid===o.guid)&&(!h||h.test(o.namespace))&&(!u||u===o.selector||u==="**"&&o.selector)&&(l.splice(y,1),o.selector&&l.delegateCount--,c.remove&&c.remove.call(n,o));b&&!l.length&&(c.teardown&&c.teardown.call(n,w,v.handle)!==!1||i.removeEvent(n,e,v.handle),delete a[e])}i.isEmptyObject(a)&&(delete v.handle,i._removeData(n,"events"))}},trigger:function(u,f,e,o){var a,v,s,w,l,c,b,p=[e||r],h=k.call(u,"type")?u.type:u,y=k.call(u,"namespace")?u.namespace.split("."):[];if((s=c=e=e||r,e.nodeType!==3&&e.nodeType!==8)&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=h.indexOf(":")<0&&"on"+h,u=u[i.expando]?u:new i.Event(h,typeof u=="object"&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=f==null?[u]:i.makeArray(f,[u]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(w=l.delegateType||h,sr.test(w+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||r)&&p.push(c.defaultView||c.parentWindow||n)}for(b=0;(s=p[b++])&&!u.isPropagationStopped();)u.type=b>1?w:l.bindType||h,a=(i._data(s,"events")||{})[u.type]&&i._data(s,"handle"),a&&a.apply(s,f),a=v&&s[v],a&&i.acceptData(s)&&a.apply&&a.apply(s,f)===!1&&u.preventDefault();if(u.type=h,!o&&!u.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),f)===!1)&&i.acceptData(e)&&v&&e[h]&&!i.isWindow(e)){c=e[v];c&&(e[v]=null);i.event.triggered=h;try{e[h]()}catch(d){}i.event.triggered=t;c&&(e[v]=c)}return u.result}},dispatch:function(n){n=i.event.fix(n);var o,e,r,u,s,h=[],c=l.call(arguments),a=(i._data(this,"events")||{})[n.type]||[],f=i.event.special[n.type]||{};if(c[0]=n,n.delegateTarget=this,!f.preDispatch||f.preDispatch.call(this,n)!==!1){for(h=i.event.handlers.call(this,n,a),o=0;(u=h[o++])&&!n.isPropagationStopped();)for(n.currentTarget=u.elem,s=0;(r=u.handlers[s++])&&!n.isImmediatePropagationStopped();)(!n.namespace_re||n.namespace_re.test(r.namespace))&&(n.handleObj=r,n.data=r.data,e=((i.event.special[r.origType]||{}).handle||r.handler).apply(u.elem,c),e!==t&&(n.result=e)===!1&&(n.preventDefault(),n.stopPropagation()));return f.postDispatch&&f.postDispatch.call(this,n),n.result}},handlers:function(n,r){var e,o,f,s,c=[],h=r.delegateCount,u=n.target;if(h&&u.nodeType&&(!n.button||n.type!=="click"))for(;u!=this;u=u.parentNode||this)if(u.nodeType===1&&(u.disabled!==!0||n.type!=="click")){for(f=[],s=0;s<h;s++)o=r[s],e=o.selector+" ",f[e]===t&&(f[e]=o.needsContext?i(e,this).index(u)>=0:i.find(e,this,null,[u]).length),f[e]&&f.push(o);f.length&&c.push({elem:u,handlers:f})}return h<r.length&&c.push({elem:this,handlers:r.slice(h)}),c},fix:function(n){if(n[i.expando])return n;var e,o,s,u=n.type,f=n,t=this.fixHooks[u];for(t||(this.fixHooks[u]=t=ee.test(u)?this.mouseHooks:fe.test(u)?this.keyHooks:{}),s=t.props?this.props.concat(t.props):this.props,n=new i.Event(f),e=s.length;e--;)o=s[e],n[o]=f[o];return n.target||(n.target=f.srcElement||r),n.target.nodeType===3&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,t.filter?t.filter(n,f):n},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(n,t){return n.which==null&&(n.which=t.charCode!=null?t.charCode:t.keyCode),n}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,i){var u,o,f,e=i.button,s=i.fromElement;return n.pageX==null&&i.clientX!=null&&(o=n.target.ownerDocument||r,f=o.documentElement,u=o.body,n.pageX=i.clientX+(f&&f.scrollLeft||u&&u.scrollLeft||0)-(f&&f.clientLeft||u&&u.clientLeft||0),n.pageY=i.clientY+(f&&f.scrollTop||u&&u.scrollTop||0)-(f&&f.clientTop||u&&u.clientTop||0)),!n.relatedTarget&&s&&(n.relatedTarget=s===n.target?i.toElement:s),n.which||e===t||(n.which=e&1?1:e&2?3:e&4?2:0),n}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cr()&&this.focus)try{return this.focus(),!1}catch(n){}},delegateType:"focusin"},blur:{trigger:function(){if(this===cr()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(i.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==t&&(n.originalEvent.returnValue=n.result)}}},simulate:function(n,t,r,u){var f=i.extend(new i.Event,r,{type:n,isSimulated:!0,originalEvent:{}});u?i.event.trigger(f,null,t):i.event.dispatch.call(t,f);f.isDefaultPrevented()&&r.preventDefault()}};i.removeEvent=r.removeEventListener?function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i,!1)}:function(n,t,i){var r="on"+t;n.detachEvent&&(typeof n[r]===o&&(n[r]=null),n.detachEvent(r,i))};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.returnValue===!1||n.getPreventDefault&&n.getPreventDefault()?ct:g):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||i.now();this[i.expando]=!0};i.Event.prototype={isDefaultPrevented:g,isPropagationStopped:g,isImmediatePropagationStopped:g,preventDefault:function(){var n=this.originalEvent;(this.isDefaultPrevented=ct,n)&&(n.preventDefault?n.preventDefault():n.returnValue=!1)},stopPropagation:function(){var n=this.originalEvent;(this.isPropagationStopped=ct,n)&&(n.stopPropagation&&n.stopPropagation(),n.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=ct;this.stopPropagation()}};i.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}});i.support.submitBubbles||(i.event.special.submit={setup:function(){if(i.nodeName(this,"form"))return!1;i.event.add(this,"click._submit keypress._submit",function(n){var u=n.target,r=i.nodeName(u,"input")||i.nodeName(u,"button")?u.form:t;r&&!i._data(r,"submitBubbles")&&(i.event.add(r,"submit._submit",function(n){n._submit_bubble=!0}),i._data(r,"submitBubbles",!0))})},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){if(i.nodeName(this,"form"))return!1;i.event.remove(this,"._submit")}});i.support.changeBubbles||(i.event.special.change={setup:function(){if(ui.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(i.event.add(this,"propertychange._change",function(n){n.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),i.event.add(this,"click._change",function(n){this._just_changed&&!n.isTrigger&&(this._just_changed=!1);i.event.simulate("change",this,n,!0)})),!1;i.event.add(this,"beforeactivate._change",function(n){var t=n.target;ui.test(t.nodeName)&&!i._data(t,"changeBubbles")&&(i.event.add(t,"change._change",function(n){!this.parentNode||n.isSimulated||n.isTrigger||i.event.simulate("change",this.parentNode,n,!0)}),i._data(t,"changeBubbles",!0))})},handle:function(n){var t=n.target;if(this!==t||n.isSimulated||n.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return n.handleObj.handler.apply(this,arguments)},teardown:function(){return i.event.remove(this,"._change"),!ui.test(this.nodeName)}});i.support.focusinBubbles||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=0,f=function(n){i.event.simulate(t,n.target,i.event.fix(n),!0)};i.event.special[t]={setup:function(){u++==0&&r.addEventListener(n,f,!0)},teardown:function(){--u==0&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if(typeof n=="object"){typeof r!="string"&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(u==null&&f==null?(f=r,u=r=t):f==null&&(typeof r=="string"?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),this.each(function(){i.event.add(this,n,f,u,r)})},one:function(n,t,i,r){return this.on(n,t,i,r,1)},off:function(n,r,u){var f,e;if(n&&n.preventDefault&&n.handleObj)return f=n.handleObj,i(n.delegateTarget).off(f.namespace?f.origType+"."+f.namespace:f.origType,f.selector,f.handler),this;if(typeof n=="object"){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||typeof r=="function")&&(u=r,r=t),u===!1&&(u=g),this.each(function(){i.event.remove(this,n,u,r)})},trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});var oe=/^.[^:#\[\.,]*$/,se=/^(?:parents|prev(?:Until|All))/,lr=i.expr.match.needsContext,he={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({find:function(n){var t,r=[],u=this,f=u.length;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<f;t++)if(i.contains(u[t],this))return!0}));for(t=0;t<f;t++)i.find(n,u[t],r);return r=this.pushStack(f>1?i.unique(r):r),r.selector=this.selector?this.selector+" "+n:n,r},has:function(n){var t,r=i(n,this),u=r.length;return this.filter(function(){for(t=0;t<u;t++)if(i.contains(this,r[t]))return!0})},not:function(n){return this.pushStack(fi(this,n||[],!0))},filter:function(n){return this.pushStack(fi(this,n||[],!1))},is:function(n){return!!fi(this,typeof n=="string"&&lr.test(n)?i(n):n||[],!1).length},closest:function(n,t){for(var r,f=0,o=this.length,u=[],e=lr.test(n)||typeof n!="string"?i(n,t||this.context):0;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){r=u.push(r);break}return this.pushStack(u.length>1?i.unique(u):u)},index:function(n){return n?typeof n=="string"?i.inArray(this[0],i(n)):i.inArray(n.jquery?n[0]:n,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){var r=typeof n=="string"?i(n,t):i.makeArray(n&&n.nodeType?[n]:n),u=i.merge(this.get(),r);return this.pushStack(i.unique(u))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return i.dir(n,"parentNode")},parentsUntil:function(n,t,r){return i.dir(n,"parentNode",r)},next:function(n){return ar(n,"nextSibling")},prev:function(n){return ar(n,"previousSibling")},nextAll:function(n){return i.dir(n,"nextSibling")},prevAll:function(n){return i.dir(n,"previousSibling")},nextUntil:function(n,t,r){return i.dir(n,"nextSibling",r)},prevUntil:function(n,t,r){return i.dir(n,"previousSibling",r)},siblings:function(n){return i.sibling((n.parentNode||{}).firstChild,n)},children:function(n){return i.sibling(n.firstChild)},contents:function(n){return i.nodeName(n,"iframe")?n.contentDocument||n.contentWindow.document:i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(he[n]||(f=i.unique(f)),se.test(n)&&(f=f.reverse())),this.pushStack(f)}});i.extend({filter:function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&f.nodeType!==9&&(u===t||f.nodeType!==1||!i(f).is(u));)f.nodeType===1&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i}});var yr="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ce=/ jQuery\d+="(?:null|\d+)"/g,pr=new RegExp("<(?:"+yr+")[\\s/>]","i"),ei=/^\s+/,wr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,br=/<([\w:]+)/,kr=/<tbody/i,le=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,oi=/^(?:checkbox|radio)$/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,dr=/^$|\/(?:java|ecma)script/i,ye=/^true\/(.*)/,pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,e={option:[1,"<select multiple='multiple'>","<\/select>"],legend:[1,"<fieldset>","<\/fieldset>"],area:[1,"<map>","<\/map>"],param:[1,"<object>","<\/object>"],thead:[1,"<table>","<\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],col:[2,"<table><tbody><\/tbody><colgroup>","<\/colgroup><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:i.support.htmlSerialize?[0,"",""]:[1,"X<div>","<\/div>"]},we=vr(r),si=we.appendChild(r.createElement("div"));e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;i.fn.extend({text:function(n){return i.access(this,function(n){return n===t?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(n))},null,n,arguments.length)},append:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=gr(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return this.domManip(arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},remove:function(n,t){for(var r,e=n?i.filter(n,this):this,f=0;(r=e[f])!=null;f++)t||r.nodeType!==1||i.cleanData(u(r)),r.parentNode&&(t&&i.contains(r.ownerDocument,r)&&hi(u(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var n,t=0;(n=this[t])!=null;t++){for(n.nodeType===1&&i.cleanData(u(n,!1));n.firstChild;)n.removeChild(n.firstChild);n.options&&i.nodeName(n,"select")&&(n.options.length=0)}return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return i.access(this,function(n){var r=this[0]||{},f=0,o=this.length;if(n===t)return r.nodeType===1?r.innerHTML.replace(ce,""):t;if(typeof n=="string"&&!ae.test(n)&&(i.support.htmlSerialize||!pr.test(n))&&(i.support.leadingWhitespace||!ei.test(n))&&!e[(br.exec(n)||["",""])[1].toLowerCase()]){n=n.replace(wr,"<$1><\/$2>");try{for(;f<o;f++)r=this[f]||{},r.nodeType===1&&(i.cleanData(u(r,!1)),r.innerHTML=n);r=0}catch(s){}}r&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var t=i.map(this,function(n){return[n.nextSibling,n.parentNode]}),n=0;return this.domManip(arguments,function(r){var u=t[n++],f=t[n++];f&&(u&&u.parentNode!==f&&(u=this.nextSibling),i(this).remove(),f.insertBefore(r,u))},!0),n?this:this.remove()},detach:function(n){return this.remove(n,!0)},domManip:function(n,t,r){n=di.apply([],n);var h,f,c,o,v,s,e=0,l=this.length,p=this,w=l-1,a=n[0],y=i.isFunction(a);if(y||!(l<=1||typeof a!="string"||i.support.checkClone||!ve.test(a)))return this.each(function(i){var u=p.eq(i);y&&(n[0]=a.call(this,i,u.html()));u.domManip(n,t,r)});if(l&&(s=i.buildFragment(n,this[0].ownerDocument,!1,!r&&this),h=s.firstChild,s.childNodes.length===1&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;e<l;e++)f=s,e!==w&&(f=i.clone(f,!0,!0),c&&i.merge(o,u(f,"script"))),t.call(this[e],f,e);if(c)for(v=o[o.length-1].ownerDocument,i.map(o,tu),e=0;e<c;e++)f=o[e],dr.test(f.type||"")&&!i._data(f,"globalEval")&&i.contains(v,f)&&(f.src?i._evalUrl(f.src):i.globalEval((f.text||f.textContent||f.innerHTML||"").replace(pe,"")));s=h=null}return this}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,r=0,f=[],e=i(n),o=e.length-1;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),kt.apply(f,u.get());return this.pushStack(f)}});i.extend({clone:function(n,t,r){var f,h,o,e,s,c=i.contains(n.ownerDocument,n);if(i.support.html5Clone||i.isXMLDoc(n)||!pr.test("<"+n.nodeName+">")?o=n.cloneNode(!0):(si.innerHTML=n.outerHTML,si.removeChild(o=si.firstChild)),(!i.support.noCloneEvent||!i.support.noCloneChecked)&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(f=u(o),s=u(n),e=0;(h=s[e])!=null;++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;(h=s[e])!=null;e++)iu(h,f[e]);else iu(n,o);return f=u(o,"script"),f.length>0&&hi(f,!c&&u(n,"script")),f=s=h=null,o},buildFragment:function(n,t,r,f){for(var h,o,w,s,y,p,l,b=n.length,a=vr(t),c=[],v=0;v<b;v++)if(o=n[v],o||o===0)if(i.type(o)==="object")i.merge(c,o.nodeType?[o]:o);else if(le.test(o)){for(s=s||a.appendChild(t.createElement("div")),y=(br.exec(o)||["",""])[1].toLowerCase(),l=e[y]||e._default,s.innerHTML=l[1]+o.replace(wr,"<$1><\/$2>")+l[2],h=l[0];h--;)s=s.lastChild;if(!i.support.leadingWhitespace&&ei.test(o)&&c.push(t.createTextNode(ei.exec(o)[0])),!i.support.tbody)for(o=y==="table"&&!kr.test(o)?s.firstChild:l[1]==="<table>"&&!kr.test(o)?s:0,h=o&&o.childNodes.length;h--;)i.nodeName(p=o.childNodes[h],"tbody")&&!p.childNodes.length&&o.removeChild(p);for(i.merge(c,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=a.lastChild}else c.push(t.createTextNode(o));for(s&&a.removeChild(s),i.support.appendChecked||i.grep(u(c,"input"),ke),v=0;o=c[v++];)if((!f||i.inArray(o,f)===-1)&&(w=i.contains(o.ownerDocument,o),s=u(a.appendChild(o),"script"),w&&hi(s),r))for(h=0;o=s[h++];)dr.test(o.type||"")&&r.push(o);return s=null,a},cleanData:function(n,t){for(var r,e,u,f,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;(r=n[c])!=null;c++)if((t||i.acceptData(r))&&(u=r[s],f=u&&h[u],f)){if(f.events)for(e in f.events)a[e]?i.event.remove(r,e):i.removeEvent(r,e,f.handle);h[u]&&(delete h[u],l?delete r[s]:typeof r.removeAttribute!==o?r.removeAttribute(s):r[s]=null,b.push(u))}},_evalUrl:function(n){return i.ajax({url:n,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}});i.fn.extend({wrapAll:function(n){if(i.isFunction(n))return this.each(function(t){i(this).wrapAll(n.call(this,t))});if(this[0]){var t=i(n,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]);t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}});var rt,v,y,ci=/alpha\([^)]*\)/i,de=/opacity\s*=\s*([^)]*)/,ge=/^(top|right|bottom|left)$/,no=/^(none|table(?!-c[ea]).+)/,ru=/^margin/,to=new RegExp("^("+st+")(.*)$","i"),lt=new RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=new RegExp("^([+-])=("+st+")","i"),uu={BODY:"block"},ro={position:"absolute",visibility:"hidden",display:"block"},fu={letterSpacing:0,fontWeight:400},p=["Top","Right","Bottom","Left"],eu=["Webkit","O","Moz","ms"];i.fn.extend({css:function(n,r){return i.access(this,function(n,r,u){var e,o,s={},f=0;if(i.isArray(r)){for(o=v(n),e=r.length;f<e;f++)s[r[f]]=i.css(n,r[f],!1,o);return s}return u!==t?i.style(n,r,u):i.css(n,r)},n,r,arguments.length>1)},show:function(){return su(this,!0)},hide:function(){return su(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ut(this)?i(this).show():i(this).hide()})}});i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=y(n,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:i.support.cssFloat?"cssFloat":"styleFloat"},style:function(n,r,u,f){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var o,s,e,h=i.camelCase(r),c=n.style;if(r=i.cssProps[h]||(i.cssProps[h]=ou(c,h)),e=i.cssHooks[r]||i.cssHooks[h],u!==t){if(s=typeof u,s==="string"&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),u==null||s==="number"&&isNaN(u))return;if(s!=="number"||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||u!==""||r.indexOf("background")!==0||(c[r]="inherit"),!e||!("set"in e)||(u=e.set(n,u,f))!==t)try{c[r]=u}catch(l){}}else return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r]}},css:function(n,r,u,f){var h,e,o,s=i.camelCase(r);return(r=i.cssProps[s]||(i.cssProps[s]=ou(n.style,s)),o=i.cssHooks[r]||i.cssHooks[s],o&&"get"in o&&(e=o.get(n,!0,u)),e===t&&(e=y(n,r,f)),e==="normal"&&r in fu&&(e=fu[r]),u===""||u)?(h=parseFloat(e),u===!0||i.isNumeric(h)?h||0:e):e}});n.getComputedStyle?(v=function(t){return n.getComputedStyle(t,null)},y=function(n,r,u){var s,h,c,o=u||v(n),e=o?o.getPropertyValue(r)||o[r]:t,f=n.style;return o&&(e!==""||i.contains(n.ownerDocument,n)||(e=i.style(n,r)),lt.test(e)&&ru.test(r)&&(s=f.width,h=f.minWidth,c=f.maxWidth,f.minWidth=f.maxWidth=f.width=e,e=o.width,f.width=s,f.minWidth=h,f.maxWidth=c)),e}):r.documentElement.currentStyle&&(v=function(n){return n.currentStyle},y=function(n,i,r){var s,e,o,h=r||v(n),u=h?h[i]:t,f=n.style;return u==null&&f&&f[i]&&(u=f[i]),lt.test(u)&&!ge.test(i)&&(s=f.left,e=n.runtimeStyle,o=e&&e.left,o&&(e.left=n.currentStyle.left),f.left=i==="fontSize"?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),u===""?"auto":u});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return n.offsetWidth===0&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,t,u)}):lu(n,t,u)},set:function(n,r,u){var f=u&&v(n);return hu(n,r,u?cu(n,t,u,i.support.boxSizing&&i.css(n,"boxSizing",!1,f)==="border-box",f):0)}}});i.support.opacity||(i.cssHooks.opacity={get:function(n,t){return de.test((t&&n.currentStyle?n.currentStyle.filter:n.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(n,t){var r=n.style,u=n.currentStyle,e=i.isNumeric(t)?"alpha(opacity="+t*100+")":"",f=u&&u.filter||r.filter||"";(r.zoom=1,(t>=1||t==="")&&i.trim(f.replace(ci,""))===""&&r.removeAttribute&&(r.removeAttribute("filter"),t===""||u&&!u.filter))||(r.filter=ci.test(f)?f.replace(ci,e):f+" "+e)}});i(function(){i.support.reliableMarginRight||(i.cssHooks.marginRight={get:function(n,t){if(t)return i.swap(n,{display:"inline-block"},y,[n,"marginRight"])}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,t){i.cssHooks[t]={get:function(n,r){if(r)return r=y(n,t),lt.test(r)?i(n).position()[t]+"px":r}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return n.offsetWidth<=0&&n.offsetHeight<=0||!i.support.reliableHiddenOffsets&&(n.style&&n.style.display||i.css(n,"display"))==="none"},i.expr.filters.visible=function(n){return!i.expr.filters.hidden(n)});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+p[r]+t]=u[r]||u[r-2]||u[0];return f}};ru.test(n)||(i.cssHooks[n+t].set=hu)});var uo=/%20/g,fo=/\[\]$/,yu=/\r?\n/g,eo=/^(?:submit|button|image|reset|file)$/i,oo=/^(?:input|select|textarea|keygen)/i;i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&oo.test(this.nodeName)&&!eo.test(n)&&(this.checked||!oi.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(yu,"\r\n")}}):{name:t.name,value:r.replace(yu,"\r\n")}}).get()}});i.param=function(n,r){var u,f=[],e=function(n,t){t=i.isFunction(t)?t():t==null?"":t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(t)};if(r===t&&(r=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(u in n)li(u,n[u],r,e);return f.join("&").replace(uo,"+")};i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}});i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)},bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,co=/^(?:GET|HEAD)$/,lo=/^\/\//,wu=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,bu=i.fn.load,ku={},yi={},du="*/".concat("*");try{c=hf.href}catch(go){c=r.createElement("a");c.href="";c=c.href}w=wu.exec(c.toLowerCase())||[];i.fn.load=function(n,r,u){if(typeof n!="string"&&bu)return bu.apply(this,arguments);var f,s,h,e=this,o=n.indexOf(" ");return o>=0&&(f=n.slice(o,n.length),n=n.slice(0,o)),i.isFunction(r)?(u=r,r=t):r&&typeof r=="object"&&(h="POST"),e.length>0&&i.ajax({url:n,type:h,dataType:"html",data:r}).done(function(n){s=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).complete(u&&function(n,t){e.each(u,s||[n.responseText,t,n])}),this};i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}});i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:c,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(w[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":du,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:gu(ku),ajaxTransport:gu(yi),ajax:function(n,r){function k(n,r,s,c){var a,rt,k,p,w,l=r;o!==2&&(o=2,g&&clearTimeout(g),v=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&n<300||n===304,s&&(p=ao(u,f,s)),p=vo(u,p,f,a),a?(u.ifModified&&(w=f.getResponseHeader("Last-Modified"),w&&(i.lastModified[e]=w),w=f.getResponseHeader("etag"),w&&(i.etag[e]=w)),n===204||u.type==="HEAD"?l="nocontent":n===304?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",n<0&&(n=0))),f.status=n,f.statusText=(r||l)+"",a?tt.resolveWith(h,[rt,l,f]):tt.rejectWith(h,[f,l,k]),f.statusCode(b),b=t,y&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),y&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}typeof n=="object"&&(r=n,n=t);r=r||{};var l,a,e,d,g,y,v,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),b=u.statusCode||{},rt={},ut={},o=0,ft="canceled",f={readyState:0,getResponseHeader:function(n){var t;if(o===2){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return o===2?d:null},setRequestHeader:function(n,t){var i=n.toLowerCase();return o||(n=ut[i]=ut[i]||n,rt[n]=t),this},overrideMimeType:function(n){return o||(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(o<2)for(t in n)b[t]=[b[t],n[t]];else f.always(n[f.status]);return this},abort:function(n){var t=n||ft;return v&&v.abort(t),k(0,t),this}};if(tt.promise(f).complete=it.add,f.success=f.done,f.error=f.fail,u.url=((n||u.url||c)+"").replace(so,"").replace(lo,w[1]+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=i.trim(u.dataType||"*").toLowerCase().match(s)||[""],u.crossDomain==null&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!!(l&&(l[1]!==w[1]||l[2]!==w[2]||(l[3]||(l[1]==="http:"?"80":"443"))!==(w[3]||(w[1]==="http:"?"80":"443"))))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),o===2)return f;y=u.global;y&&i.active++==0&&i.event.trigger("ajaxStart");u.type=u.type.toUpperCase();u.hasContent=!co.test(u.type);e=u.url;u.hasContent||(u.data&&(e=u.url+=(vi.test(e)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=pu.test(e)?e.replace(pu,"$1_="+ai++):e+(vi.test(e)?"&":"?")+"_="+ai++));u.ifModified&&(i.lastModified[e]&&f.setRequestHeader("If-Modified-Since",i.lastModified[e]),i.etag[e]&&f.setRequestHeader("If-None-Match",i.etag[e]));(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&f.setRequestHeader("Content-Type",u.contentType);f.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+du+"; q=0.01":""):u.accepts["*"]);for(a in u.headers)f.setRequestHeader(a,u.headers[a]);if(u.beforeSend&&(u.beforeSend.call(h,f,u)===!1||o===2))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(v=nf(yi,u,r,f),v){f.readyState=1;y&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;v.send(rt,k)}catch(et){if(o<2)k(-1,et);else throw et;}}else k(-1,"No Transport");return f},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,r){return i.get(n,t,r,"script")}});i.each(["get","post"],function(n,r){i[r]=function(n,u,f,e){return i.isFunction(u)&&(e=e||f,f=u,u=t),i.ajax({url:n,type:r,dataType:e,data:u,success:f})}});i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(n){return i.globalEval(n),n}}});i.ajaxPrefilter("script",function(n){n.cache===t&&(n.cache=!1);n.crossDomain&&(n.type="GET",n.global=!1)});i.ajaxTransport("script",function(n){if(n.crossDomain){var u,f=r.head||i("head")[0]||r.documentElement;return{send:function(t,i){u=r.createElement("script");u.async=!0;n.scriptCharset&&(u.charset=n.scriptCharset);u.src=n.url;u.onload=u.onreadystatechange=function(n,t){(t||!u.readyState||/loaded|complete/.test(u.readyState))&&(u.onload=u.onreadystatechange=null,u.parentNode&&u.parentNode.removeChild(u),u=null,t||i(200,"success"))};f.insertBefore(u,f.firstChild)},abort:function(){if(u)u.onload(t,!0)}}}});wi=[];at=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+ai++;return this[n]=!0,n}});i.ajaxPrefilter("json jsonp",function(r,u,f){var e,s,o,h=r.jsonp!==!1&&(at.test(r.url)?"url":typeof r.data=="string"&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");if(h||r.dataTypes[0]==="jsonp")return e=r.jsonpCallback=i.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,h?r[h]=r[h].replace(at,"$1"+e):r.jsonp!==!1&&(r.url+=(vi.test(r.url)?"&":"?")+r.jsonp+"="+e),r.converters["script json"]=function(){return o||i.error(e+" was not called"),o[0]},r.dataTypes[0]="json",s=n[e],n[e]=function(){o=arguments},f.always(function(){n[e]=s;r[e]&&(r.jsonpCallback=u.jsonpCallback,wi.push(e));o&&i.isFunction(s)&&s(o[0]);o=s=t}),"script"});tf=0;vt=n.ActiveXObject&&function(){for(var n in nt)nt[n](t,!0)};i.ajaxSettings.xhr=n.ActiveXObject?function(){return!this.isLocal&&rf()||yo()}:rf;tt=i.ajaxSettings.xhr();i.support.cors=!!tt&&"withCredentials"in tt;tt=i.support.ajax=!!tt;tt&&i.ajaxTransport(function(r){if(!r.crossDomain||i.support.cors){var u;return{send:function(f,e){var h,s,o=r.xhr();if(r.username?o.open(r.type,r.url,r.async,r.username,r.password):o.open(r.type,r.url,r.async),r.xhrFields)for(s in r.xhrFields)o[s]=r.xhrFields[s];r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType);r.crossDomain||f["X-Requested-With"]||(f["X-Requested-With"]="XMLHttpRequest");try{for(s in f)o.setRequestHeader(s,f[s])}catch(c){}o.send(r.hasContent&&r.data||null);u=function(n,f){var s,a,l,c;try{if(u&&(f||o.readyState===4))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)o.readyState!==4&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();typeof o.responseText=="string"&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?s===1223&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?o.readyState===4?setTimeout(u):(h=++tf,vt&&(nt||(nt={},i(n).unload(vt)),nt[h]=u),o.onreadystatechange=u):u()},abort:function(){u&&u(t,!0)}}}});var it,yt,po=/^(?:toggle|show|hide)$/,uf=new RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),u=uf.exec(t),e=u&&u[3]||(i.cssNumber[n]?"":"px"),r=(i.cssNumber[n]||e!=="px"&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(r&&r[3]!==e){e=e||r[3];u=u||[];r=+s||1;do o=o||".5",r=r/o,i.style(f.elem,n,r+e);while(o!==(o=f.cur()/s)&&o!==1&&--h)}return u&&(r=f.start=+r||+s||0,f.unit=e,f.end=u[1]?r+(u[1]+1)*u[2]:+u[2]),f}]};i.Animation=i.extend(of,{tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.split(" ");for(var r,u=0,f=n.length;u<f;u++)r=n[u],ft[r]=ft[r]||[],ft[r].unshift(t)},prefilter:function(n,t){t?pt.unshift(n):pt.push(n)}});i.Tween=f;f.prototype={constructor:f,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||"swing";this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=f.propHooks[this.prop];return n&&n.get?n.get(this):f.propHooks._default.get(this)},run:function(n){var t,r=f.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return n.elem[n.prop]!=null&&(!n.elem.style||n.elem.style[n.prop]==null)?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}};f.propHooks.scrollTop=f.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(wt(t,!0),n,i,u)}});i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,r,u){var o=i.isEmptyObject(n),e=i.speed(t,r,u),f=function(){var t=of(this,i.extend({},n),e);(o||i._data(this,"finish"))&&t.stop(!0)};return f.finish=f,o||e.queue===!1?this.each(f):this.queue(e.queue,f)},stop:function(n,r,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return typeof n!="string"&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=n!=null&&n+"queueHooks",e=i.timers,r=i._data(this);if(t)r[t]&&r[t].stop&&f(r[t]);else for(t in r)r[t]&&r[t].stop&&wo.test(t)&&f(r[t]);for(t=e.length;t--;)e[t].elem===this&&(n==null||e[t].queue===n)&&(e[t].anim.stop(u),o=!1,e.splice(t,1));(o||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,f=i._data(this),r=f[n+"queue"],e=f[n+"queueHooks"],u=i.timers,o=r?r.length:0;for(f.finish=!0,i.queue(this,n,[]),e&&e.stop&&e.stop.call(this,!0),t=u.length;t--;)u[t].elem===this&&u[t].queue===n&&(u[t].anim.stop(!0),u.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete f.finish})}});i.each({slideDown:wt("show"),slideUp:wt("hide"),slideToggle:wt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.speed=function(n,t,r){var u=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return u.duration=i.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){i.isFunction(u.old)&&u.old.call(this);u.queue&&i.dequeue(this,u.queue)},u};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2}};i.timers=[];i.fx=f.prototype.init;i.fx.tick=function(){var u,n=i.timers,r=0;for(it=i.now();r<n.length;r++)u=n[r],u()||n[r]!==u||n.splice(r--,1);n.length||i.fx.stop();it=t};i.fx.timer=function(n){n()&&i.timers.push(n)&&i.fx.start()};i.fx.interval=13;i.fx.start=function(){yt||(yt=setInterval(i.fx.tick,i.fx.interval))};i.fx.stop=function(){clearInterval(yt);yt=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fx.step={};i.expr&&i.expr.filters&&(i.expr.filters.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length});i.fn.offset=function(n){if(arguments.length)return n===t?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,e,f={top:0,left:0},u=this[0],s=u&&u.ownerDocument;if(s)return(r=s.documentElement,!i.contains(r,u))?f:(typeof u.getBoundingClientRect!==o&&(f=u.getBoundingClientRect()),e=sf(s),{top:f.top+(e.pageYOffset||r.scrollTop)-(r.clientTop||0),left:f.left+(e.pageXOffset||r.scrollLeft)-(r.clientLeft||0)})};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");f==="static"&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=(f==="absolute"||f==="fixed")&&i.inArray("auto",[l,a])>-1,u={},s={},h,c;v?(s=e.position(),h=s.top,c=s.left):(h=parseFloat(l)||0,c=parseFloat(a)||0);i.isFunction(t)&&(t=t.call(n,r,o));t.top!=null&&(u.top=t.top-o.top+h);t.left!=null&&(u.left=t.left-o.left+c);"using"in t?t.using.call(n,u):e.css(u)}};i.fn.extend({position:function(){if(this[0]){var n,r,t={top:0,left:0},u=this[0];return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(n=this.offsetParent(),r=this.offset(),i.nodeName(n[0],"html")||(t=n.offset()),t.top+=i.css(n[0],"borderTopWidth",!0),t.left+=i.css(n[0],"borderLeftWidth",!0)),{top:r.top-t.top-i.css(u,"marginTop",!0),left:r.left-t.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent||ki;n&&!i.nodeName(n,"html")&&i.css(n,"position")==="static";)n=n.offsetParent;return n||ki})}});i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var u=/Y/.test(r);i.fn[n]=function(f){return i.access(this,function(n,f,e){var o=sf(n);if(e===t)return o?r in o?o[r]:o.document.documentElement[f]:n[f];o?o.scrollTo(u?i(o).scrollLeft():e,u?e:i(o).scrollTop()):n[f]=e},n,f,arguments.length,null)}});i.each({Height:"height",Width:"width"},function(n,r){i.each({padding:"inner"+n,content:r,"":"outer"+n},function(u,f){i.fn[f]=function(f,e){var o=arguments.length&&(u||typeof f!="boolean"),s=u||(f===!0||e===!0?"margin":"border");return i.access(this,function(r,u,f){var e;return i.isWindow(r)?r.document.documentElement["client"+n]:r.nodeType===9?(e=r.documentElement,Math.max(r.body["scroll"+n],e["scroll"+n],r.body["offset"+n],e["offset"+n],e["client"+n])):f===t?i.css(r,u,s):i.style(r,u,f,s)},r,o?f:t,o,null)}})});i.fn.size=function(){return this.length};i.fn.andSelf=i.fn.addBack;typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=i:(n.jQuery=n.$=i,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}))}(window),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):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{n=decodeURIComponent(n.replace(u," "))}catch(i){return}try{return 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.setDate(a.getDate()+y)),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?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function o(t,i){var r,u,f,e=t.nodeName.toLowerCase();return"area"===e?(r=t.parentNode,u=r.name,!t.href||!u||r.nodeName.toLowerCase()!=="map")?!1:(f=n("img[usemap=#"+u+"]")[0],!!f&&s(f)):(/input|select|textarea|button|object/.test(e)?!t.disabled:"a"===e?t.href||i:i)&&s(t)}function s(t){return n.expr.filters.visible(t)&&!n(t).parents().addBack().filter(function(){return n.css(this,"visibility")==="hidden"}).length}function it(n){for(var t,i;n.length&&n[0]!==document;){if(t=n.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&i!==0))return i;n=n.parent()}return 0}function v(){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=y(n("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'><\/div>"))}function y(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");this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!==-1&&n(this).removeClass("ui-datepicker-next-hover")}).delegate(i,"mouseover",function(){n.datepicker._isDisabledDatepicker(e.inline?t.parent()[0]:e.input[0])||(n(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),n(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&n(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&n(this).addClass("ui-datepicker-next-hover"))})}function r(t,i){n.extend(t,i);for(var r in i)i[r]==null&&(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 h,u,w,i,b,k,d,g,tt,e;n.ui=n.ui||{};n.extend(n.ui,{version:"1.11.0",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(){var t=this.css("position"),r=t==="absolute",i=this.parents().filter(function(){var t=n(this);return r&&t.css("position")==="static"?!1:/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return t==="fixed"||!i.length?n(this[0].ownerDocument||document):i},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 o(t,!isNaN(n.attr(t,"tabindex")))},tabbable:function(t){var i=n.attr(t,"tabindex"),r=isNaN(i);return(r||i>=0)&&o(t,!r)}});n("<a>").outerWidth(1).jquery||n.each(["Width","Height"],function(t,i){function f(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=i==="Width"?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),u={innerWidth:n.fn.innerWidth,innerHeight:n.fn.innerHeight,outerWidth:n.fn.outerWidth,outerHeight:n.fn.outerHeight};n.fn["inner"+i]=function(t){return t===undefined?u["inner"+i].call(this):this.each(function(){n(this).css(r,f(this,t)+"px")})};n.fn["outer"+i]=function(t,e){return typeof t!="number"?u["outer"+i].call(this,t):this.each(function(){n(this).css(r,f(this,t,!0,e)+"px")})}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?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 typeof i=="number"?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(t!==undefined)return this.css("zIndex",t);if(this.length)for(var i=n(this[0]),r,u;i.length&&i[0]!==document;){if(r=i.css("position"),(r==="absolute"||r==="relative"||r==="fixed")&&(u=parseInt(i.css("zIndex"),10),!isNaN(u)&&u!==0))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&&n.element[0].parentNode.nodeType!==11))for(u=0;u<f.length;u++)n.options[f[u][0]]&&f[u][1].apply(n.element,i)}};h=0;u=Array.prototype.slice;n.cleanData=function(t){return function(i){for(var r=0,u;(u=i[r])!=null;r++)try{n(u).triggerHandler("remove")}catch(f){}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){if(!this._createWidget)return new u(n,t);arguments.length&&this._createWidget(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){if(!n.isFunction(r)){h[t]=r;return}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 i=this._super,f=this._superApply,t;return this._super=n,this._superApply=u,t=r.apply(this,arguments),this._super=i,this._superApply=f,t}}()}),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 e=u.call(arguments,1),f=0,o=e.length,i,r;f<o;f++)for(i in e[f])r=e[f][i],e[f].hasOwnProperty(i)&&r!==undefined&&(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(f){var s=typeof f=="string",o=u.call(arguments,1),e=this;return f=!s&&o.length?n.widget.extend.apply(null,[f].concat(o)):f,s?this.each(function(){var i,u=n.data(this,r);return f==="instance"?(e=u,!1):u?!n.isFunction(u[f])||f.charAt(0)==="_"?n.error("no such method '"+f+"' for "+t+" widget instance"):(i=u[f].apply(u,o),i!==u&&i!==undefined?(e=i&&i.jquery?e.pushStack(i.get()):i,!1):void 0):n.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+f+"'")}):this.each(function(){var t=n.data(this,r);t?(t.option(f||{}),t._init&&t._init()):n.data(this,r,new i(f,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=h++;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 e=t,r,u,f;if(arguments.length===0)return n.widget.extend({},this.options);if(typeof t=="string")if(e={},r=t.split("."),t=r.shift(),r.length){for(u=e[t]=n.widget.extend({},this.options[t]),f=0;f<r.length-1;f++)u[r[f]]=u[r[f]]||{},u=u[r[f]];if(t=r.pop(),arguments.length===1)return u[t]===undefined?null:u[t];u[t]=i}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];e[t]=i}return this._setOptions(e),this},_setOptions:function(n){for(var t in n)this._setOption(t,n[t]);return this},_setOption:function(n,t){return this.options[n]=t,n==="disabled"&&(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;typeof t!="boolean"&&(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(typeof e=="string"?u[e]:e).apply(u,arguments)}typeof e!="string"&&(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(typeof n=="string"?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,f)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){typeof u=="string"&&(u={effect:u});var o,e=u?u===!0||typeof u=="number"?i:u.effect||i:t;u=u||{};typeof u=="number"&&(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()})}});w=n.widget;i=!1;n(document).mouseup(function(){i=!1});b=n.widget("ui.mouse",{version:"1.11.0",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=t.which===1,f=typeof this.options.cancel=="string"&&t.target.nodeName?n(t.target).closest(this.options.cancel).length:!1;return!u||f||!this._mouseCapture(t)?!0:(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)}},_mouseMove:function(t){return n.ui.ie&&(!document.documentMode||document.documentMode<9)&&!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 a(n,t,i){return[parseFloat(n[0])*(l.test(n[0])?t/100:1),parseFloat(n[1])*(l.test(n[1])?i/100:1)]}function r(t,i){return parseInt(n.css(t,i),10)||0}function y(t){var i=t[0];return i.nodeType===9?{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,f,i=Math.max,t=Math.abs,e=Math.round,o=/left|center|right/,s=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,l=/%$/,v=n.fn.position;n.position={scrollbarWidth:function(){if(u!==undefined)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=i==="scroll"||i==="auto"&&t.width<t.element[0].scrollWidth,f=r==="scroll"||r==="auto"&&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]&&i[0].nodeType===9;return{element:i,isWindow:r,isDocument:u,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:r?i.width():i.outerWidth(),height:r?i.height():i.outerHeight()}}};n.fn.position=function(u){if(!u||!u.of)return v.apply(this,arguments);u=n.extend({},u);var k,l,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=y(nt),nt[0].preventDefault&&(u.at="left top"),l=g.width,p=g.height,b=g.offset,w=n.extend({},b),n.each(["my","at"],function(){var n=(u[this]||"").split(" "),t,i;n.length===1&&(n=o.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]);n[0]=o.test(n[0])?n[0]:"center";n[1]=s.test(n[1])?n[1]:"center";t=h.exec(n[0]);i=h.exec(n[1]);tt[this]=[t?t[0]:0,i?i[0]:0];u[this]=[c.exec(n[0])[0],c.exec(n[1])[0]]}),d.length===1&&(d[1]=d[0]),u.at[0]==="right"?w.left+=l:u.at[0]==="center"&&(w.left+=l/2),u.at[1]==="bottom"?w.top+=p:u.at[1]==="center"&&(w.top+=p/2),k=a(tt.at,l,p),w.left+=k[0],w.top+=k[1],this.each(function(){var y,g,s=n(this),h=s.outerWidth(),c=s.outerHeight(),ut=r(this,"marginLeft"),ft=r(this,"marginTop"),et=h+ut+r(this,"marginRight")+rt.width,ot=c+ft+r(this,"marginBottom")+rt.height,o=n.extend({},w),v=a(tt.my,s.outerWidth(),s.outerHeight());u.my[0]==="right"?o.left-=h:u.my[0]==="center"&&(o.left-=h/2);u.my[1]==="bottom"?o.top-=c:u.my[1]==="center"&&(o.top-=c/2);o.left+=v[0];o.top+=v[1];f||(o.left=e(o.left),o.top=e(o.top));y={marginLeft:ut,marginTop:ft};n.each(["left","top"],function(t,i){n.ui.position[d[t]]&&n.ui.position[d[t]][i](o,{targetWidth:l,targetHeight:p,elemWidth:h,elemHeight:c,collisionPosition:y,collisionWidth:et,collisionHeight:ot,offset:[k[0]+v[0],k[1]+v[1]],my:u.my,at:u.at,within:it,elem:s})});u.using&&(g=function(n){var r=b.left-o.left,a=r+l-h,f=b.top-o.top,v=f+p-c,e={target:{element:nt,left:b.left,top:b.top,width:l,height:p},element:{element:s,left:o.left,top:o.top,width:h,height:c},horizontal:a<0?"left":r>0?"right":"center",vertical:v<0?"top":f>0?"bottom":"middle"};l<h&&t(r+a)<l&&(e.horizontal="center");p<c&&t(f+v)<p&&(e.vertical="middle");e.important=i(t(r),t(a))>i(t(f),t(v))?"horizontal":"vertical";u.using.call(this,n,e)});s.offset(n.extend(o,{using:g}))})};n.ui.position={fit:{left:function(n,t){var e=t.within,u=e.isWindow?e.scrollLeft:e.offset.left,o=e.width,s=n.left-t.collisionPosition.marginLeft,r=u-s,f=s+t.collisionWidth-o-u,h;t.collisionWidth>o?r>0&&f<=0?(h=n.left+r+t.collisionWidth-o-u,n.left+=r-h):n.left=f>0&&r<=0?u:r>f?u+o-t.collisionWidth:u:r>0?n.left+=r:f>0?n.left-=f:n.left=i(n.left-s,n.left)},top:function(n,t){var o=t.within,u=o.isWindow?o.scrollTop:o.offset.top,e=t.within.height,s=n.top-t.collisionPosition.marginTop,r=u-s,f=s+t.collisionHeight-e-u,h;t.collisionHeight>e?r>0&&f<=0?(h=n.top+r+t.collisionHeight-e-u,n.top+=r-h):n.top=f>0&&r<=0?u:r>f?u+e-t.collisionHeight:u:r>0?n.top+=r:f>0?n.top-=f:n.top=i(n.top-s,n.top)}},flip:{left:function(n,i){var r=i.within,y=r.offset.left+r.scrollLeft,c=r.width,o=r.isWindow?r.scrollLeft:r.offset.left,l=n.left-i.collisionPosition.marginLeft,a=l-o,v=l+i.collisionWidth-c-o,u=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,f=i.at[0]==="left"?i.targetWidth:i.at[0]==="right"?-i.targetWidth:0,e=-2*i.offset[0],s,h;a<0?(s=n.left+u+f+e+i.collisionWidth-c-y,(s<0||s<t(a))&&(n.left+=u+f+e)):v>0&&(h=n.left-i.collisionPosition.marginLeft+u+f+e-o,(h>0||t(h)<v)&&(n.left+=u+f+e))},top:function(n,i){var r=i.within,y=r.offset.top+r.scrollTop,a=r.height,o=r.isWindow?r.scrollTop:r.offset.top,v=n.top-i.collisionPosition.marginTop,s=v-o,h=v+i.collisionHeight-a-o,p=i.my[1]==="top",u=p?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,f=i.at[1]==="top"?i.targetHeight:i.at[1]==="bottom"?-i.targetHeight:0,e=-2*i.offset[1],c,l;s<0?(l=n.top+u+f+e+i.collisionHeight-a-y,n.top+u+f+e>s&&(l<0||l<t(s))&&(n.top+=u+f+e)):h>0&&(c=n.top-i.collisionPosition.marginTop+u+f+e-o,n.top+u+f+e>h&&(c>0||t(c)<h)&&(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,e,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(e in r)t.style[e]=r[e];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;f=u>10&&u<11;t.innerHTML="";i.removeChild(t)}()}();k=n.ui.position;n.widget("ui.draggable",n.ui.mouse,{version:"1.11.0",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(){this.options.helper!=="original"||/^(?: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);n==="handle"&&this._setHandleClassName()},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._removeHandleClassName();this._mouseDestroy()},_mouseCapture:function(t){var i=this.document[0],r=this.options;try{i.activeElement&&i.activeElement.nodeName.toLowerCase()!=="body"&&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)?!1:(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)},_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(),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(this.offsetParentCssPosition==="fixed"&&(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),this.options.revert==="invalid"&&!i||this.options.revert==="valid"&&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._removeHandleClassName();n(this.options.handle||this.element).addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.element.find(".ui-draggable-handle").addBack().removeClass("ui-draggable-handle")},_createHelper:function(t){var r=this.options,i=n.isFunction(r.helper)?n(r.helper.apply(this.element[0],[t])):r.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo(r.appendTo==="parent"?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){typeof t=="string"&&(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 this.cssPosition==="absolute"&&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(this.cssPosition!=="relative")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];if(this.relative_container=null,!r.containment){this.containment=null;return}if(r.containment==="window"){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];return}if(r.containment==="document"){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];return}if(r.containment.constructor===Array){this.containment=r.containment;return}(r.containment==="parent"&&(r.containment=this.helper[0].parentNode),t=n(r.containment),i=t[0],i)&&(f=t.css("overflow")!=="hidden",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.relative_container=t)},_convertPositionTo:function(n,t){t||(t=this.position);var i=n==="absolute"?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-(this.cssPosition==="fixed"?-this.offset.scroll.top:r?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-(this.cssPosition==="fixed"?-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.relative_container?(s=this.relative_container.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),r.axis==="y"&&(e=this.originalPageX),r.axis==="x"&&(o=this.originalPageY)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:h?0:this.offset.scroll.top),left:e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-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),t==="drag"&&(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,r.options.helper==="original"&&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.scrollParent[0]!==i.document[0]&&i.scrollParent[0].tagName!=="HTML"&&(i.overflowOffset=i.scrollParent.offset())},drag:function(t,i,r){var u=r.options,e=!1,f=r.document[0];r.scrollParent[0]!==f&&r.scrollParent[0].tagName!=="HTML"?(u.axis&&u.axis==="x"||(r.overflowOffset.top+r.scrollParent[0].offsetHeight-t.pageY<u.scrollSensitivity?r.scrollParent[0].scrollTop=e=r.scrollParent[0].scrollTop+u.scrollSpeed:t.pageY-r.overflowOffset.top<u.scrollSensitivity&&(r.scrollParent[0].scrollTop=e=r.scrollParent[0].scrollTop-u.scrollSpeed)),u.axis&&u.axis==="y"||(r.overflowOffset.left+r.scrollParent[0].offsetWidth-t.pageX<u.scrollSensitivity?r.scrollParent[0].scrollLeft=e=r.scrollParent[0].scrollLeft+u.scrollSpeed:t.pageX-r.overflowOffset.left<u.scrollSensitivity&&(r.scrollParent[0].scrollLeft=e=r.scrollParent[0].scrollLeft-u.scrollSpeed))):(u.axis&&u.axis==="x"||(t.pageY-n(f).scrollTop()<u.scrollSensitivity?e=n(f).scrollTop(n(f).scrollTop()-u.scrollSpeed):n(window).height()-(t.pageY-n(f).scrollTop())<u.scrollSensitivity&&(e=n(f).scrollTop(n(f).scrollTop()+u.scrollSpeed))),u.axis&&u.axis==="y"||(t.pageX-n(f).scrollLeft()<u.scrollSensitivity?e=n(f).scrollLeft(n(f).scrollLeft()-u.scrollSpeed):n(window).width()-(t.pageX-n(f).scrollLeft())<u.scrollSensitivity&&(e=n(f).scrollLeft(n(f).scrollLeft()+u.scrollSpeed))));e!==!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--){if(c=r.snapElements[u].left,a=c+r.snapElements[u].width,l=r.snapElements[u].top,v=l+r.snapElements[u].height,k<c-f||y>a+f||d<l-f||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;continue}b.snapMode!=="inner"&&(e=Math.abs(l-d)<=f,o=Math.abs(v-p)<=f,s=Math.abs(c-k)<=f,h=Math.abs(a-y)<=f,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;b.snapMode!=="outer"&&(e=Math.abs(l-p)<=f,o=Math.abs(v-d)<=f,s=Math.abs(c-y)<=f,h=Math.abs(a-k)<=f,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)}});d=n.ui.draggable;n.widget("ui.droppable",{version:"1.11.0",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(){if(arguments.length)t=arguments[0];else return 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;t<n.length;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(t==="accept")this.accept=n.isFunction(i)?i:function(n){return n.is(i)};else if(t==="scope"){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]?!1:(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=n(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===r.options.scope&&t.accept.call(t.element[0],r.currentItem||r.element)&&n.ui.intersect(r,n.extend(t,{offset:t.element.offset()}),t.options.tolerance))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},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&&n<t+i}return function(t,i,r){if(!i.offset)return!1;var a,v,e=(t.positionAbs||t.position.absolute).left,o=(t.positionAbs||t.position.absolute).top,s=e+t.helperProportions.width,h=o+t.helperProportions.height,u=i.offset.left,f=i.offset.top,c=u+i.proportions().width,l=f+i.proportions().height;switch(r){case"fit":return u<=e&&s<=c&&f<=o&&h<=l;case"intersect":return u<e+t.helperProportions.width/2&&s-t.helperProportions.width/2<c&&f<o+t.helperProportions.height/2&&h-t.helperProportions.height/2<l;case"pointer":return a=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,v=(t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,n(v,f,i.proportions().height)&&n(a,u,i.proportions().width);case"touch":return(o>=f&&o<=l||h>=f&&h<=l||o<f&&h>l)&&(e>=u&&e<=c||s>=u&&s<=c||e<u&&s>c);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;r<u.length;r++)if(!u[r].options.disabled&&(!t||u[r].accept.call(u[r].element[0],t.currentItem||t.element))){for(f=0;f<e.length;f++)if(e[f]===u[r].element[0]){u[r].proportions().height=0;continue n}(u[r].visible=u[r].element.css("display")!=="none",u[r].visible)&&(o==="mousedown"&&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)&&(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),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=u==="isover")),r&&u==="isover"&&(r.isover=!1,r.isout=!0,r._out.call(r,i)),this[u]=!0,this[u==="isout"?"isover":"isout"]=!1,this[u==="isover"?"_over":"_out"].call(this,i),r&&u==="isout"&&(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)}};g=n.ui.droppable;n.widget("ui.resizable",n.ui.mouse,{version:"1.11.0",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(n(t).css("overflow")==="hidden")return!1;var r=i&&i==="left"?"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(this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},f=0;f<e.length;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.originalPosition={left:u,top:f},this.sizeDiff={width:i.outerWidth()-i.width(),height:i.outerHeight()-i.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof r.aspectRatio=="number"?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,e=n(".ui-resizable-"+this.axis).css("cursor"),n("body").css("cursor",e==="auto"?this.axis+"-resize":e),i.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,e=this.helper,r={},u=this.originalMousePosition,o=this.axis,s=t.pageX-u.left||0,h=t.pageY-u.top||0,f=this._change[o];return(this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height},!f)?!1:(i=f.apply(this,[t,s,h]),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),this.position.top!==this.prevPosition.top&&(r.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(r.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(r.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(r.height=this.size.height+"px"),e.css(r),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),n.isEmptyObject(r)||this._trigger("resize",t,this.ui()),!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},_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:Infinity,minHeight:this._isNumber(i.minHeight)?i.minHeight:0,maxHeight:this._isNumber(i.maxHeight)?i.maxHeight:Infinity};(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),u<t.maxWidth&&(t.maxWidth=u),e<t.maxHeight&&(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),r==="sw"&&(n.left=t.left+(i.width-n.width),n.top=null),r==="nw"&&(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},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,r,u,n,f=this.helper||this.element,i=0;i<this._proportionallyResizeElements.length;i++){if(n=this._proportionallyResizeElements[i],!this.borderDif)for(this.borderDif=[],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")],t=0;t<r.length;t++)this.borderDif[t]=(parseInt(r[t],10)||0)+(parseInt(u[t],10)||0);n.css({height:f.height()-this.borderDif[0]-this.borderDif[2]||0,width:f.width()-this.borderDif[1]-this.borderDif[3]||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()]);t!=="resize"&&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,prevSize:this.prevSize,prevPosition:this.prevPosition}}});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,i){var e,h,c,l,r=n(this).resizable("instance"),y=r.options,u=r.containerOffset,a=r.position,o=r._aspectRatio||t.shiftKey,s={top:0,left:0},v=r.containerElement,f=!0;v[0]!==document&&/static/.test(v.css("position"))&&(s=u);a.left<(r._helper?u.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-u.left:r.position.left-s.left),o&&(r.size.height=r.size.width/r.aspectRatio,f=!1),r.position.left=y.helper?u.left:0);a.top<(r._helper?u.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-u.top:r.position.top),o&&(r.size.width=r.size.height*r.aspectRatio,f=!1),r.position.top=r._helper?u.top:0);r.offset.left=r.parentData.left+r.position.left;r.offset.top=r.parentData.top+r.position.top;e=Math.abs((r._helper?r.offset.left-s.left:r.offset.left-u.left)+r.sizeDiff.width);h=Math.abs((r._helper?r.offset.top-s.top:r.offset.top-u.top)+r.sizeDiff.height);c=r.containerElement.get(0)===r.element.parent().get(0);l=/relative|absolute/.test(r.containerElement.css("position"));c&&l&&(e-=Math.abs(r.parentData.left));e+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-e,o&&(r.size.height=r.size.width/r.aspectRatio,f=!1));h+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-h,o&&(r.size.width=r.size.height*r.aspectRatio,f=!1));f||(r.position.left=i.prevPosition.left,r.position.top=i.prevPosition.top,r.size.width=i.prevSize.width,r.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)})})};typeof t.alsoResize!="object"||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)})};typeof u.alsoResize!="object"||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(typeof i.ghost=="string"?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 t=n(this).resizable("instance"),i=t.options,v=t.size,o=t.originalSize,s=t.originalPosition,h=t.axis,c=typeof i.grid=="number"?[i.grid,i.grid]:i.grid,f=c[0]||1,e=c[1]||1,l=Math.round((v.width-o.width)/f)*f,a=Math.round((v.height-o.height)/e)*e,r=o.width+l,u=o.height+a,y=i.maxWidth&&i.maxWidth<r,p=i.maxHeight&&i.maxHeight<u,w=i.minWidth&&i.minWidth>r,b=i.minHeight&&i.minHeight>u;i.grid=c;w&&(r=r+f);b&&(u=u+e);y&&(r=r-f);p&&(u=u-e);/^(se|s|e)$/.test(h)?(t.size.width=r,t.size.height=u):/^(ne)$/.test(h)?(t.size.width=r,t.size.height=u,t.position.top=s.top-a):/^(sw)$/.test(h)?(t.size.width=r,t.size.height=u,t.position.left=s.left-l):(u-e>0?(t.size.height=u,t.position.top=s.top-a):(t.size.height=e,t.position.top=s.top+o.height-e),r-f>0?(t.size.width=r,t.position.left=s.left-l):(t.size.width=f,t.position.left=s.left+o.width-f))}});var rt=n.ui.resizable,ut=n.widget("ui.selectable",n.ui.mouse,{version:"1.11.0",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]&&(s.tolerance==="touch"?h=!(e.left>u||e.right<i||e.top>f||e.bottom<r):s.tolerance==="fit"&&(h=e.left>i&&e.right<u&&e.top>r&&e.bottom<f),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}}),ft=n.widget("ui.sortable",n.ui.mouse,{version:"1.11.0",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&&n<t+i},_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?n.axis==="x"||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);n==="handle"&&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||this.options.type==="static"?!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)?!1:this.options.handle&&!i&&(n(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(f=!0)}),!f)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_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&&u.cursor!=="auto"&&(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&&this.scrollParent[0].tagName!=="HTML"&&(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&&this.scrollParent[0].tagName!=="HTML"?(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&&this.options.axis==="y"||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&this.options.axis==="x"||(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[o===1?"next":"prev"]()[0]!==f&&!n.contains(this.placeholder[0],f)&&(this.options.type==="semi-dynamic"?!n.contains(this.element[0],f):!0)){if(this.direction=o===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(u))this._rearrange(t,u);else break;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&&r!=="x"||(u.left=f.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft));r&&r!=="y"||(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});this.options.helper==="original"?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]),this.options.helper!=="original"&&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=this.options.axis==="x"||i+o>u&&i+o<e,a=this.options.axis==="y"||t+s>r&&t+s<f,v=l&&a;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"]?v:r<t+this.helperProportions.width/2&&h-this.helperProportions.width/2<f&&u<i+this.helperProportions.height/2&&c-this.helperProportions.height/2<e},_intersectsWithPointer:function(n){var r=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,n.top,n.height),u=this.options.axis==="y"||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&&i==="right"||t==="down"?2:1:t&&(t==="down"?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?i==="right"&&u||i==="left"&&!u:t&&(t==="down"&&r||t==="up"&&!r)},_getDragVerticalDirection:function(){var n=this.positionAbs.top-this.lastPositionAbs.top;return n!==0&&(n>0?"down":"up")},_getDragHorizontalDirection:function(){var n=this.positionAbs.left-this.lastPositionAbs.left;return n!==0&&(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;i<t.length;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;u<l;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 u==="tr"?t.currentItem.children().each(function(){n("<td>&#160;<\/td>",t.document[0]).attr("colspan",n(this).attr("colspan")||1).appendTo(i)}):u==="img"&&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(this.containers.length===1)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),Math.abs(t[h]-o)<c&&(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])):r.helper==="clone"?this.currentItem.clone():this.currentItem;return i.parents("body").length||n(r.appendTo!=="parent"?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){typeof t=="string"&&(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 this.cssPosition==="absolute"&&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&&this.offsetParent[0].tagName.toLowerCase()==="html"&&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(this.cssPosition==="relative"){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;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);(i.containment==="document"||i.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,n(i.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(n(i.containment==="document"?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=n(t).css("overflow")!=="hidden",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=t==="absolute"?1:-1,u=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(u[0].tagName);return{top:i.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():f?0:u.scrollTop())*r,left:i.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():f?0:u.scrollLeft())*r}},_generatePosition:function(t){var r,u,i=this.options,f=t.pageX,e=t.pageY,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==document&&n.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,s=/(html|body)/i.test(o[0].tagName);return this.cssPosition!=="relative"||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+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:o.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-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],this.direction==="down"?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)(this._storedCSS[i]==="auto"||this._storedCSS[i]==="static")&&(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",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!t){for(this._trigger("beforeStop",n,this._uiHash()),i=0;i<r.length;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;i<r.length;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}}}),et=n.widget("ui.accordion",{version:"1.11.0",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&&t.active!=null||(t.active=0);this._processPanels();t.active<0&&(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();this.options.heightStyle!=="content"&&n.css("height","")},_setOption:function(n,t){if(n==="active"){this._activate(t);return}n==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t));this._super(n,t);n!=="collapsible"||t||this.options.active!==!1||this._activate(0);n==="icons"&&(this._destroyIcons(),t&&this._createIcons());n==="disabled"&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t))},_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._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):(t.active=!1,this.active=n());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);r==="fill"?(t=u.height(),this.element.siblings(":visible").each(function(){var i=n(this),r=i.css("position");r!=="absolute"&&r!=="fixed"&&(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")):r==="auto"&&(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 typeof t=="number"?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 n(this).attr("tabIndex")===0}).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)};if(typeof f=="number"&&(u=f),typeof f=="string"&&(r=f),r=r||f.easing||e.easing,u=u||f.duration||e.duration,!t.length)return n.animate(this.showProps,u,r,s);if(!n.length)return t.animate(this.hideProps,u,r,s);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);i.prop!=="height"?o+=i.now:c.options.heightStyle!=="content"&&(i.now=Math.round(h-t.outerHeight()-o),o=0)}})},_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)}}),ot=n.widget("ui.menu",{version:"1.11.0",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&&this.active.parents(".ui-menu").length===1&&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 s(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var i,f,r,e,u,o=!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:o=!1;f=this.previousFilter||"";r=String.fromCharCode(t.keyCode);e=!1;clearTimeout(this.filterTimer);r===f?e=!0:r=f+r;u=new RegExp("^"+s(r),"i");i=this.activeMenu.find(this.options.items).filter(function(){return u.test(n(this).text())});i=e&&i.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):i;i.length||(r=String.fromCharCode(t.keyCode),u=new RegExp("^"+s(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}o&&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){n==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu);n==="disabled"&&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&&n.type==="focus");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&&n.type==="keydown"?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(),i<0?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),n.attr("aria-hidden")==="true")&&(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=n==="first"||n==="last"?this.active[n==="first"?"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;if(!this.active){this.next(t);return}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),i.offset().top-r-u<0}),this.focus(t,i)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(t){var i,r,u;if(!this.active){this.next(t);return}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()))},_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.0",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=u==="textarea",e=u==="input";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")){t=!0;r=!0;i=!0;return}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._value(this.term),this.close(u),u.preventDefault());break;default:i=!0;this._searchTimeout(u)}},keypress:function(r){if(t){t=!1;(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}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){if(r){r=!1;n.preventDefault();return}this._searchTimeout(n)},focus:function(){this.selectedItem=null;this.previous=this._value()},blur:function(n){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching);this.close(n);this._change(n)}});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;if(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)});return}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&&jQuery.trim(r).length&&(this.liveRegion.children().hide(),n("<div>").text(r).appendTo(this.liveRegion))},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);n==="source"&&this._initSource();n==="appendTo"&&this.menu.element.appendTo(this._appendTo());n==="disabled"&&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))}):typeof this.options.source=="string"?(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=n!=null?n:this._value(),this.term=this._value(),n.length<this.options.minLength)?this.close(t):this._trigger("search",t)===!1?void 0:this._search(n)},_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 typeof t=="string"?{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){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(n)||this.menu.isLastItem()&&/^next/.test(n)){this.isMultiLine||this._value(this.term);this.menu.blur();return}this.menu[n](t)},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=new 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))}});var st=n.ui.autocomplete,f,c="ui-button ui-widget ui-state-default ui-corner-all",l="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",nt=function(){var t=n(this);setTimeout(function(){t.find(":ui-button").button("refresh")},1)},a=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.0",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,nt);typeof this.options.disabled!="boolean"?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=this.type==="checkbox"||this.type==="radio",u=r?"":"ui-state-active";t.label===null&&(t.label=this.type==="input"?this.buttonElement.val():this.buttonElement.html());this._hoverable(this.buttonElement);this.buttonElement.addClass(c).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){t.disabled||this===f&&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()});this.type==="checkbox"?this.buttonElement.bind("click"+this.eventNamespace,function(){if(t.disabled)return!1}):this.type==="radio"?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];a(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(){if(t.disabled)return!1;n(this).addClass("ui-state-active");f=this;i.document.one("mouseup",function(){f=null})}).bind("mouseup"+this.eventNamespace,function(){if(t.disabled)return!1;n(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(i){if(t.disabled)return!1;(i.keyCode===n.ui.keyCode.SPACE||i.keyCode===n.ui.keyCode.ENTER)&&n(this).addClass("ui-state-active")}).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";this.type==="checkbox"||this.type==="radio"?(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(c+" ui-state-active "+l).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(n,t){if(this._super(n,t),n==="disabled"){this.widget().toggleClass("ui-state-disabled",!!t);this.element.prop("disabled",!!t);t&&(this.type==="checkbox"||this.type==="radio"?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active"));return}this._resetButton()},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);this.type==="radio"?a(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")}):this.type==="checkbox"&&(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(this.type==="input"){this.options.label&&this.element.val(this.options.label);return}var i=this.buttonElement.removeClass(l),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.0",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){n==="disabled"&&this.buttons.button("option",n,t);this._super(n,t)},refresh:function(){var i=this.element.css("direction")==="rtl",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")}});tt=n.ui.button;n.extend(n.ui,{datepicker:{version:"1.11.0"}});n.extend(v.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=r==="div"||r==="span";t.id||(this.uuid+=1,t.id="dp"+this.uuid);u=this._newInst(n(t),f);u.settings=n.extend({},i||{});r==="input"?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?y(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");(u==="focus"||u==="both")&&t.focus(this._showDatepicker);(u==="button"||u==="both")&&(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;t<n.length;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"),i==="input"?(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)):(i==="div"||i==="span")&&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(),i==="input"?(t.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(i==="div"||i==="span")&&(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(),i==="input"?(t.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(i==="div"||i==="span")&&(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;t<this._disabledInputs.length;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);if(arguments.length===2&&typeof i=="string")return i==="defaults"?n.extend({},n.datepicker._defaults):f?i==="all"?n.extend({},f.settings):this._get(f,i):null;e=i||{};typeof i=="string"&&(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),o!==null&&e.dateFormat!==undefined&&e.minDate===undefined&&(f.settings.minDate=this._formatDate(f,o)),s!==null&&e.dateFormat!==undefined&&e.maxDate===undefined&&(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))},_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 t.keyCode===36&&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(t.charCode==null?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,t.nodeName.toLowerCase()!=="input"&&(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|=n(this).css("position")==="fixed",!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",it(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;e=t;t.dpDiv.empty().append(this._generateHTML(t));this._attachHandlers(t);t.dpDiv.find("."+this._dayOverClass+" a");var i,r=this._getNumberOfMonths(t),u=r[1];t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");u>1&&t.dpDiv.addClass("ui-datepicker-multi-"+u).css("width",17*u+"em");t.dpDiv[(r[0]!==1||r[1]!==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&&(t.type==="hidden"||t.nodeType!==1||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[r==="slideDown"?"slideUp":r==="fadeIn"?"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||i.parents("#"+n.datepicker._mainDivId).length!==0||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+(r==="M"?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"+(r==="M"?"Month":"Year")]=u["draw"+(r==="M"?"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=i!=null?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],typeof r.input[0]!="object"&&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&&t<6,""]},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(t==null||i==null)throw"Invalid arguments";if(i=typeof i=="object"?i.toString():i+"",i==="")return null;for(var a,v,f=0,y=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d=typeof y!="string"?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,u,l=function(n){var i=o+1<t.length&&t.charAt(o+1)===n;return i&&o++,i},c=function(n){var r=l(n),u=n==="@"?14:n==="!"?20:n==="y"&&r?4:n==="o"?3:2,e=new RegExp("^\\d{1,"+u+"}"),t=i.substring(f).match(e);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}),e!==-1)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;o<t.length;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(f<i.length&&(v=i.substr(f),!/^\s+/.test(v)))throw"Extra/unparsed characters found in date: "+v;if(e===-1?e=(new Date).getFullYear():e<100&&(e+=(new Date).getFullYear()-(new Date).getFullYear()%100+(e<=d?0:-100)),p>-1){s=1;h=p;do{if(a=this._getDaysInMonth(e,s-1),h<=a)break;s++;h-=a}while(1)}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:(718685+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*864e9,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=u+1<n.length&&n.charAt(u+1)===t;return i&&u++,i},e=function(n,t,i){var r=""+t;if(f(n))while(r.length<i)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;u<n.length;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():(t.getYear()%100<10?"0":"")+t.getYear()%100;break;case"@":r+=t.getTime();break;case"!":r+=t.getTime()*1e4+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=t+1<n.length&&n.charAt(t+1)===i;return r&&t++,r},t=0;t<n.length;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 n.settings[t]!==undefined?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+=parseInt(u[1],10)*7;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=i==null||i===""?r:typeof i=="string"?e(i):typeof i=="number"?isNaN(i)?r:f(i):new Date(i.getTime());return u=u&&u.toString()==="Invalid Date"?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,f,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())),e=this._get(n,"isRTL"),li=this._get(n,"showButtonPanel"),hi=this._get(n,"hideIfNoPrevNext"),ni=this._get(n,"navigationAsDateFormat"),o=this._getNumberOfMonths(n),ai=this._get(n,"showCurrentAtPos"),ci=this._get(n,"stepMonths"),ti=o[0]!==1||o[1]!==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(t<0&&(t+=12,r--),v)for(b=this._daylightSavingAdjust(new Date(v.getFullYear(),v.getMonth()-o[0]*o[1]+1,v.getDate())),b=w&&b<w?w:b;this._daylightSavingAdjust(new Date(r,t,1))>b;)t--,t<0&&(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-"+(e?"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-"+(e?"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-"+(e?"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-"+(e?"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'>"+(e?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>":"")+(e?"":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="",f,y=0;y<o[0];y++){for(ct="",this.maxRows=4,p=0;p<o[1];p++){if(lt=this._daylightSavingAdjust(new Date(r,t,n.selectedDay)),l=" ui-corner-all",u="",ti){if(u+="<div class='ui-datepicker-group",o[1]>1)switch(p){case 0:u+=" ui-datepicker-group-first";l=" ui-corner-"+(e?"right":"left");break;case o[1]-1:u+=" ui-datepicker-group-last";l=" ui-corner-"+(e?"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)&&y===0?e?ut:rt:"")+(/all|right/.test(l)&&y===0?e?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>":"",f=0;f<7;f++)vt=(f+c)%7,at+="<th scope='col'"+((f+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;bt<wt;bt++){for(u+="<tr>",kt=ot?"<td class='ui-datepicker-week-col'>"+this._get(n,"calculateWeek")(i)+"<\/td>":"",f=0;f<7;f++)d=st?st.apply(n.input?n.input[0]:null,[i]):[!0,""],a=i.getMonth()!==t,it=a&&!si||!d[0]||w&&i<w||v&&i>v,kt+="<td class='"+((f+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>"+(o[0]>0&&p===o[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;h<12;h++)(!k||h>=r.getMonth())&&(!d||h<=u.getMonth())&&(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'>";s<=a;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+(i==="Y"?t:0),f=n.drawMonth+(i==="M"?t:0),e=Math.min(n.selectedDay,this._getDaysInMonth(u,f))+(i==="D"?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();(i==="M"||i==="Y")&&this._notifyChange(n)},_restrictMinMax:function(n,t){var i=this._getMinMaxDate(n,"min"),r=this._getMinMaxDate(n,"max"),u=i&&t<i?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 t==null?[1,1]:typeof t=="number"?[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+(t<0?t:f[0]*f[1]),1));return t<0&&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||t.getFullYear()<=u)},_getFormatConfig:function(n){var t=this._get(n,"shortYearCutoff");return t=typeof t!="string"?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?typeof t=="object"?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);n("#"+n.datepicker._mainDivId).length===0&&n("body").append(n.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&(t==="isDisabled"||t==="getDate"||t==="widget")?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.datepicker["_"+t+"Datepicker"].apply(n.datepicker,[this].concat(i)):n.datepicker._attachDatepicker(this,t)})};n.datepicker=new v;n.datepicker.initialized=!1;n.datepicker.uuid=(new Date).getTime();n.datepicker.version="1.11.0";var ht=n.datepicker,ct=n.widget("ui.dialog",{version:"1.11.0",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;i<0&&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&&i.nodeName.toLowerCase()!=="body"&&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;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0;this.opener=n(this.document[0].activeElement);this._size();this._position();this._createOverlay();this._moveToTop(null,!0);this._show(this.uiDialog,this.options.show,function(){t._focusTabbable();t._trigger("focus")});this._trigger("open")},_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){t.preventDefault();this.close(t);return}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;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),n.isEmptyObject(t)||n.isArray(t)&&!t.length){this.uiDialog.removeClass("ui-dialog-buttons");return}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)},_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=typeof u=="string"?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._untrackInstance();this._trackingInstances().unshift(this);this._focusedElement=n(t.target)}})},_untrackInstance:function(){var t=this._trackingInstances(),i=n.inArray(this,t);i!==-1&&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 n.height==="auto"?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;(n==="dialogClass"&&i.removeClass(this.options.dialogClass).addClass(t),n!=="disabled")&&(this._super(n,t),n==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),n==="buttons"&&this._createButtons(),n==="closeText"&&this.uiDialogTitlebarClose.button({label:""+t}),n==="draggable"&&(u=i.is(":data(ui-draggable)"),u&&!t&&i.draggable("destroy"),!u&&t&&this._makeDraggable()),n==="position"&&this._position(),n==="resizable"&&(r=i.is(":data(ui-resizable)"),r&&!t&&i.resizable("destroy"),r&&typeof t=="string"&&i.resizable("option","handles",t),r||t===!1||this._makeResizable()),n==="title"&&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=typeof n.maxHeight=="number"?Math.max(0,n.maxHeight-t):"none";n.height==="auto"?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}}}),lt=n.widget("ui.progressbar",{version:"1.11.0",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){if(n===undefined)return this.options.value;this.options.value=this._constrainedValue(n);this._refreshValue()},_constrainedValue:function(n){return n===undefined&&(n=this.options.value),this.indeterminate=n===!1,typeof n!="number"&&(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){n==="max"&&(t=Math.max(this.min,t));n==="disabled"&&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")}}),at=n.widget("ui.selectmenu",{version:"1.11.0",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._setOption("width",this.options.width);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");t.focusIndex!=null&&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._setOption("width",this.options.width)},_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=n==="first"||n==="last"?i[n==="first"?"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:{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){n==="icons"&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button);this._super(n,t);n==="appendTo"&&this.menuWrap.appendTo(this._appendTo());n==="disabled"&&(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));n==="width"&&(t||(t=this.element.outerWidth()),this.button.outerWidth(t))},_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)},_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)}}),vt=n.widget("ui.slider",n.ui.mouse,{version:"1.11.0",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;r<i;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&&t.values.length!==2?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+(t.range==="min"||t.range==="max"?" 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=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(n){var i,r,t,u,f;return this.orientation==="horizontal"?(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),t<0&&(t=0),this.orientation==="vertical"&&(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),this.options.values.length===2&&this.options.range===!0&&(t===0&&i>r||t===1&&i<r)&&(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){if(arguments.length){this.options.value=this._trimAlignValue(n);this._refreshValue();this._change(null,0);return}return this._value()},values:function(t,i){var u,f,r;if(arguments.length>1){this.options.values[t]=this._trimAlignValue(i);this._refreshValue();this._change(null,t);return}if(arguments.length)if(n.isArray(arguments[0])){for(u=this.options.values,f=arguments[0],r=0;r<u.length;r+=1)u[r]=this._trimAlignValue(f[r]),this._change(null,r);this._refreshValue()}else return this.options.values&&this.options.values.length?this._values(t):this.value();else return this._values()},_setOption:function(t,i){var r,u=0;t==="range"&&this.options.range===!0&&(i==="min"?(this.options.value=this._values(0),this.options.values=null):i==="max"&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null));n.isArray(this.options.values)&&(u=this.options.values.length);t==="disabled"&&this.element.toggleClass("ui-state-disabled",!!i);this._super(t,i);switch(t){case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();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;r<u;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],this._trimAlignValue(r);if(this.options.values&&this.options.values.length){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(n){if(n<=this._valueMin())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 Math.abs(i)*2>=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=(r.values(f)-r._valueMin())/(r._valueMax()-r._valueMin())*100;o[r.orientation==="horizontal"?"left":"bottom"]=t+"%";n(this).stop(1,1)[u?"animate":"css"](o,i.animate);r.options.range===!0&&(r.orientation==="horizontal"?(f===0&&r.range.stop(1,1)[u?"animate":"css"]({left:t+"%"},i.animate),f===1&&r.range[u?"animate":"css"]({width:t-s+"%"},{queue:!1,duration:i.animate})):(f===0&&r.range.stop(1,1)[u?"animate":"css"]({bottom:t+"%"},i.animate),f===1&&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?(c-f)/(h-f)*100:0,o[this.orientation==="horizontal"?"left":"bottom"]=t+"%",this.handle.stop(1,1)[u?"animate":"css"](o,i.animate),e==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[u?"animate":"css"]({width:t+"%"},i.animate),e==="max"&&this.orientation==="horizontal"&&this.range[u?"animate":"css"]({width:100-t+"%"},{queue:!1,duration:i.animate}),e==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[u?"animate":"css"]({height:t+"%"},i.animate),e==="max"&&this.orientation==="vertical"&&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}u=this.options.step;r=this.options.values&&this.options.values.length?i=this.values(f):i=this.value();switch(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"))}}});var yt=n.widget("ui.spinner",{version:"1.11.0",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);u!==undefined&&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){if(this.cancelBlur){delete this.cancelBlur;return}this._stop();this._refresh();this.previous!==this.element.val()&&this._trigger("change",n)},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")){if(this._start(t)===!1)return!1;this._repeat(null,n(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)}},"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(n.height()*.5)&&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?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_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 this.options.min!==null&&(n=Math.max(n,this._precisionOf(this.options.min))),n},_precisionOf:function(n){var t=n.toString(),i=t.indexOf(".");return i===-1?0:t.length-i-1},_adjustValue:function(n){var r,i,t=this.options;return(r=t.min!==null?t.min:0,i=n-r,i=Math.round(i/t.step)*t.step,n=r+i,n=parseFloat(n.toFixed(this._precision())),t.max!==null&&n>t.max)?t.max:t.min!==null&&n<t.min?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(n==="culture"||n==="numberFormat"){var i=this._parse(this.element.val());this.options[n]=t;this.element.val(this._format(i));return}(n==="max"||n==="min"||n==="step")&&typeof t=="string"&&(t=this._parse(t));n==="icons"&&(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);n==="disabled"&&(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 typeof n=="string"&&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 n===null?!1:n===this._adjustValue(n)},_value:function(n,t){var i;n!==""&&(i=this._parse(n),i!==null&&(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){if(!arguments.length)return this._parse(this.element.val());t(this._value).call(this,n)},widget:function(){return this.uiSpinner}}),pt=n.widget("ui.tabs",{version:"1.11.0",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).delegate(".ui-tabs-nav > 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._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 t===null&&(r&&this.tabs.each(function(i,u){if(n(u).attr("aria-controls")===r)return t=i,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(t===null||t===-1)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(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:t.preventDefault();clearTimeout(this.activating);this._activate(i);return;case n.ui.keyCode.ENTER:t.preventDefault();clearTimeout(this.activating);this._activate(i===this.options.active?!1:i);return;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),t<0&&(t=r),t}for(var r=this.tabs.length-1;n.inArray(u(),this.options.disabled)!==-1;)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){if(n==="active"){this._activate(t);return}if(n==="disabled"){this._setupDisabled(t);return}this._super(n,t);n==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",t),t||this.options.active!==!1||this._activate(0));n==="event"&&this._setupEvents(t);n==="heightStyle"&&this._setupHeightStyle(t)},_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");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=0,r;r=this.tabs[i];i++)t===!0||n.inArray(i,t)!==-1?n(r).addClass("ui-state-disabled").attr("aria-disabled","true"):n(r).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();t==="fill"?(i=r.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=n(this),r=t.css("position");r!=="absolute"&&r!=="fixed"&&(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")):t==="auto"&&(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 n(this).attr("tabIndex")===0}).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 typeof n=="string"&&(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.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();this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;i!==!1&&(t===undefined?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(t===undefined)i=!0;else{if(t=this._getIndex(t),n.inArray(t,i)!==-1)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&&this.xhr.statusText!=="canceled"&&(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(){t==="abort"&&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))}}),wt=n.widget("ui.tooltip",{version:"1.11.0",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);r!==-1&&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;if(t==="disabled"){this[i?"_disable":"_enable"]();this.options[t]=i;return}this._super(t,i);t==="content"&&n.each(this.tooltips,function(n,t){r._updateContent(t)})},_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&&t.type==="mouseover"&&i.parents().each(function(){var t=n(this),i;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;if(typeof r=="string")return 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)},_open:function(t,i,r){function s(n){(o.of=n,u.is(":hidden"))||u.position(o)}var u,f,h,e,o=n.extend({},this.options.position);if(r){if(u=this._find(i),u.length){u.find(".ui-tooltip-content").html(r);return}i.is("[title]")&&(t&&t.type==="mouseover"?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:s}),s(t)):u.position(n.extend({of:i},this.options.position));u.hide();this._show(u,this.options.show);this.options.show&&this.options.show.delay&&(h=this.delayedShow=setInterval(function(){u.is(":visible")&&(s(o.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&&t.type!=="mouseover"||(f.mouseleave="close");t&&t.type!=="focusin"||(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),r.stop(!0),this._hide(r,this.options.hide,function(){u._removeTooltip(n(this))}),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&&t.type==="mouseleave"&&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.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()}}),p="ui-effects-";n.effects={effect:{}},function(n,t){function e(n,t,i){var r=s[t.type]||{};return n==null?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:r.max<n?r.max:n}function l(t){var e=i(),o=e._rgba=[];return(t=t.toLowerCase(),r(v,function(n,i){var r,s=i.re.exec(t),h=s&&i.parse(s),f=i.space||"rgba";if(h)return r=e[f](h),e[u[f].cache]=r[u[f].cache],o=e._rgba=r._rgba,!1}),o.length)?(o.join()==="0,0,0,0"&&n.extend(o,f.transparent),e):f[t]}function o(n,t,i){return(i=(i+1)%1,i*6<1)?n+(t-n)*i*6:i*2<1?t:i*3<2?n+(t-n)*(2/3-i)*6:n}var 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[n[1]*2.55,n[2]*2.55,n[3]*2.55,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"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},h=i.support={},c=n("<p>")[0],f,r=n.each;c.style.cssText="background-color:rgba(1,1,1,.5)";h.rgba=c.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,s,h,c){if(o===t)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=n(o).css(s),s=t);var a=this,v=n.type(o),y=this._rgba=[];return(s!==t&&(o=[o,s,h,c],v="array"),v==="string")?this.parse(l(o)||f._default):v==="array"?(r(u.rgba.props,function(n,t){y[t.idx]=e(o[t.idx],t)}),this):v==="object"?(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(n==="alpha"||o[n]==null)return;a[u]=i.to(a._rgba)}a[u][t.idx]=e(o[n],t,!0)});a[u]&&n.inArray(null,a[u].slice(0,3))<0&&(a[u][3]=1,i.from&&(a._rgba=i.from(a[u])))}),this):void 0},is:function(n){var e=i(n),t=!0,f=this;return r(u,function(n,i){var o,u=e[i.cache];return u&&(o=f[i.cache]||i.to&&i.to(f._rgba)||[],r(i.props,function(n,i){if(u[i.idx]!=null)return t=u[i.idx]===o[i.idx]})),t}),t},_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 f=i(n),c=f._space(),o=u[c],l=this.alpha()===0?i("transparent"):this,a=l[o.cache]||o.to(l._rgba),h=a.slice();return f=f[o.cache],r(o.props,function(n,i){var c=i.idx,r=a[c],u=f[c],o=s[i.type]||{};u!==null&&(r===null?h[c]=u:(o.mod&&(u-r>o.mod/2?r+=o.mod:r-u>o.mod/2&&(r-=o.mod)),h[c]=e((u-r)*t+r,i)))}),this[c](h)},blend:function(t){if(this._rgba[3]===1)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 n==null?t>2?1:0:n});return t[3]===1&&(t.pop(),i="rgb("),i+t.join()+")"},toHslaString:function(){var i="hsla(",t=n.map(this.hsla(),function(n,t){return n==null&&(n=t>2?1:0),t&&t<3&&(n=Math.round(n*100)+"%"),n});return t[3]===1&&(t.pop(),i="hsl("),i+t.join()+")"},toHexString:function(t){var i=this._rgba.slice(),r=i.pop();return t&&i.push(~~(r*255)),"#"+n.map(i,function(n){return n=(n||0).toString(16),n.length===1?"0"+n:n}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}});i.fn.parse.prototype=i.fn;u.hsla.to=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var i=n[0]/255,r=n[1]/255,f=n[2]/255,s=n[3],u=Math.max(i,r,f),e=Math.min(i,r,f),t=u-e,o=u+e,h=o*.5,c,l;return c=e===u?0:i===u?60*(r-f)/t+360:r===u?60*(f-i)/t+120:60*(i-r)/t+240,l=t===0?0:h<=.5?t/o:t/(2-o),[Math.round(c)%360,l,h,s==null?1:s]};u.hsla.from=function(n){if(n[0]==null||n[1]==null||n[2]==null)return[null,null,null,n[3]];var r=n[0]/360,u=n[1],t=n[2],e=n[3],i=t<=.5?t*(1+u):t+u-t*u,f=2*t-i;return[Math.round(o(f,i,r+1/3)*255),Math.round(o(f,i,r)*255),Math.round(o(f,i,r-1/3)*255),e]};r(u,function(u,f){var s=f.props,o=f.cache,h=f.to,c=f.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=a==="array"||a==="object"?u:arguments,f=this[o].slice();return r(s,function(n,t){var i=v[a==="object"?n:t.idx];i==null&&(i=f[t.idx]);f[t.idx]=e(i,t)}),c?(l=i(c(f)),l[o]=f,l):i(f)};r(s,function(t,r){i.fn[t]||(i.fn[t]=function(i){var f=n.type(i),h=t==="alpha"?this._hsla?"hsla":"rgba":u,o=this[h](),s=o[r.idx],e;return f==="undefined"?s:(f==="function"&&(i=i.call(this,s),f=n.type(i)),i==null&&r.empty)?this:(f==="string"&&(e=a.exec(i),e&&(i=s+parseFloat(e[2])*(e[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(u!=="transparent"&&(n.type(u)!=="string"||(o=l(u)))){if(u=i(o||u),!h.rgba&&u._rgba[3]!==1){for(f=r==="backgroundColor"?t.parentNode:t;(e===""||e==="transparent")&&f&&f.style;)try{e=n.css(f,"backgroundColor");f=f.parentNode}catch(s){}u=u.blend(e&&e!=="transparent"?e:"_default")}u=u.toRgbaString()}try{t.style[r]=u}catch(s){}}};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}};f=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"}}(jQuery),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],typeof i[r]=="string"&&(f[n.camelCase(r)]=i[r]);else for(r in i)typeof i[r]=="string"&&(f[r]=i[r]);return f}function u(t,i){var e={},u,f;for(u in i)f=i[u],t[u]!==f&&(r[u]||(n.fx.step[u]||!isNaN(parseFloat(f)))&&(e[u]=f));return e}var i=["add","remove","toggle"],r={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){(n.end==="none"||n.setAttr)&&(n.pos!==1||n.setAttr)||(jQuery.style(n.elem,i,n.end),n.setAttr=!0)}});n.fn.addBack||(n.fn.addBack=function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))});n.effects.animateClass=function(r,f,e,o){var s=n.speed(f,e,o);return this.queue(function(){var e=n(this),h=e.attr("class")||"",o,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(i,function(n,t){r[t]&&e[t+"Class"](r[t])})};o();f=f.map(function(){return this.end=t(this.el[0]),this.diff=u(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 typeof r=="boolean"||r===undefined?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},i==null&&(i={}),n.isFunction(i)&&(u=i,r=null,i={}),(typeof i=="number"||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:typeof r=="number"?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||typeof t=="number"||n.fx.speeds[t]?!0:typeof t=="string"&&!n.effects.effect[t]?!0:n.isFunction(t)?!0:typeof t=="object"&&!t.effect?!0:!1}n.extend(n.effects,{version:"1.11.0",save:function(n,t){for(var i=0;i<t.length;i++)t[i]!==null&&n.data(p+t[i],n[0].style[t[i]])},restore:function(n,t){for(var r,i=0;i<t.length;i++)t[i]!==null&&(r=n.data(p+t[i]),r===undefined&&(r=""),n.css(t[i],r))},setMode:function(n,t){return t==="toggle"&&(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(),t.css("position")==="static"?(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 e(t){function o(){n.isFunction(e)&&e.call(r[0]);n.isFunction(t)&&t()}var r=n(this),e=i.complete,u=i.mode;(r.is(":hidden")?u==="hide":u==="show")?(r[u](),o()):f.call(r[0],i,o)}var i=t.apply(this,arguments),r=i.mode,u=i.queue,f=n.effects.effect[i.effect];return n.fx.off||!f?r?this[r](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):u===!1?this.each(e):this.queue(u||"fx",e)},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)||typeof r=="boolean")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 n===0||n===1?n:-Math.pow(2,8*(n-1))*Math.sin(((n-1)*80-7.5)*Math.PI/15)},Back:function(n){return n*n*(3*n-2)},Bounce:function(n){for(var t,i=4;n<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((t*3-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 n<.5?i(n*2)/2:1-i(n*-2+2)/2}})}();var bt=n.effects,kt=n.effects.effect.blind=function(t,i){var r=n(this),s=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),y=t.direction||"up",f=/up|down|vertical/.test(y),h=f?"height":"width",c=f?"top":"left",p=/up|left|vertical|horizontal/.test(y),l={},a=v==="show",u,e,o;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"});e=u[h]();o=parseFloat(u.css(c))||0;l[h]=a?e:0;p||(r.css(f?"bottom":"right",0).css(f?"top":"left","auto").css({position:"absolute"}),l[c]=a?o:e+o);a&&(u.css(h,0),p||u.css(c,o+e));u.animate(l,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){v==="hide"&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()}})},dt=n.effects.effect.bounce=function(t,i){var r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=k==="hide",y=k==="show",h=t.direction||"up",u=t.distance,p=t.times||5,d=p*2+(y||f?1:0),c=t.duration/d,l=t.easing,e=h==="up"||h==="down"?"top":"left",w=h==="up"||h==="left",b,o,s,a=r.queue(),g=a.length;for((y||f)&&v.push("opacity"),n.effects.save(r,v),r.show(),n.effects.createWrapper(r),u||(u=r[e==="top"?"outerHeight":"outerWidth"]()/3),y&&(s={opacity:1},s[e]=0,r.css("opacity",0).css(e,w?-u*2:u*2).animate(s,c,l)),f&&(u=u/Math.pow(2,p-1)),s={},s[e]=0,b=0;b<p;b++)o={},o[e]=(w?"-=":"+=")+u,r.animate(o,c,l).animate(s,c,l),u=f?u*2:u/2;f&&(o={opacity:0},o[e]=(w?"-=":"+=")+u,r.animate(o,c,l));r.queue(function(){f&&r.hide();n.effects.restore(r,v);n.effects.removeWrapper(r);i()});g>1&&a.splice.apply(a,[1,0].concat(a.splice(g,d+1)));r.dequeue()},gt=n.effects.effect.clip=function(t,i){var r=n(this),h=["position","top","bottom","left","right","height","width"],v=n.effects.setMode(r,t.mode||"hide"),f=v==="show",y=t.direction||"vertical",c=y==="vertical",o=c?"height":"width",l=c?"top":"left",s={},a,u,e;n.effects.save(r,h);r.show();a=n.effects.createWrapper(r).css({overflow:"hidden"});u=r[0].tagName==="IMG"?a:r;e=u[o]();f&&(u.css(o,0),u.css(l,e/2));s[o]=f?e:0;s[l]=f?0:e/2;u.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){f||r.hide();n.effects.restore(r,h);n.effects.removeWrapper(r);i()}})},ni=n.effects.effect.drop=function(t,i){var r=n(this),h=["position","top","bottom","left","right","opacity","height","width"],c=n.effects.setMode(r,t.mode||"hide"),e=c==="show",u=t.direction||"left",o=u==="up"||u==="down"?"top":"left",s=u==="up"||u==="left"?"pos":"neg",l={opacity:e?1:0},f;n.effects.save(r,h);r.show();n.effects.createWrapper(r);f=t.distance||r[o==="top"?"outerHeight":"outerWidth"](!0)/2;e&&r.css("opacity",0).css(o,s==="pos"?-f:f);l[o]=(e?s==="pos"?"+=":"-=":s==="pos"?"-=":"+=")+f;r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){c==="hide"&&r.hide();n.effects.restore(r,h);n.effects.removeWrapper(r);i()}})},ti=n.effects.effect.explode=function(t,i){function k(){l.push(this);l.length===o*c&&d()}function d(){r.css({visibility:"visible"});n(l).remove();u||r.hide();i()}for(var o=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=o,r=n(this),b=n.effects.setMode(r,t.mode||"hide"),u=b==="show",w=r.show().css("visibility","hidden").offset(),s=Math.ceil(r.outerWidth()/c),h=Math.ceil(r.outerHeight()/o),l=[],e,a,v,y,p,f=0;f<o;f++)for(v=w.top+f*h,p=f-(o-1)/2,e=0;e<c;e++)a=w.left+e*s,y=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:a+(u?y*s:0),top:v+(u?p*h:0),opacity:u?0:1}).animate({left:a+(u?0:y*s),top:v+(u?0:p*h),opacity:u?1:0},t.duration||500,t.easing,k)},ii=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})},ri=n.effects.effect.fold=function(t,i){var r=n(this),s=["position","top","bottom","left","right","height","width"],h=n.effects.setMode(r,t.mode||"hide"),e=h==="show",c=h==="hide",f=t.size||15,l=/([0-9]+)%/.exec(f),a=!!t.horizFirst,v=e!==a,y=v?["width","height"]:["height","width"],p=t.duration/2,u,o,w={},b={};n.effects.save(r,s);r.show();u=n.effects.createWrapper(r).css({overflow:"hidden"});o=v?[u.width(),u.height()]:[u.height(),u.width()];l&&(f=parseInt(l[1],10)/100*o[c?0:1]);e&&u.css(a?{height:0,width:f}:{height:f,width:0});w[y[0]]=e?o[0]:f;b[y[1]]=e?o[1]:0;u.animate(w,p,t.easing).animate(b,p,t.easing,function(){c&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()})},ui=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")};f==="hide"&&(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(){f==="hide"&&r.hide();n.effects.restore(r,u);i()}})},fi=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||h!=="effect",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};h==="show"&&r.show();f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};t.mode==="toggle"&&h==="show"?(r.from=t.to||p,r.to=t.from||f):(r.from=t.from||(h==="show"?p:f),r.to=t.to||(h==="hide"?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}};(c==="box"||c==="both")&&(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)));(c==="content"||c==="both")&&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);(c==="content"||c==="both")&&(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(){r.to.opacity===0&&r.css("opacity",r.from.opacity);h==="hide"&&r.hide();n.effects.restore(r,s);y||(k==="static"?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 i==="auto"?u+"px":f+u+"px"})}));n.effects.removeWrapper(r);i()}})},ei=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)||(parseInt(t.percent,10)===0?0:f==="hide"?0:100),h=t.direction||"both",c=t.origin,e={height:u.height(),width:u.width(),outerHeight:u.outerHeight(),outerWidth:u.outerWidth()},o={y:h!=="horizontal"?s/100:1,x:h!=="vertical"?s/100:1};r.effect="size";r.queue=!1;r.complete=i;f!=="effect"&&(r.origin=c||["middle","center"],r.restore=!0);r.from=t.from||(f==="show"?{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&&(f==="show"&&(r.from.opacity=0,r.to.opacity=1),f==="hide"&&(r.from.opacity=1,r.to.opacity=0));u.effect(r)},oi=n.effects.effect.puff=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"hide"),o=e==="hide",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)},si=n.effects.effect.pulsate=function(t,i){var r=n(this),e=n.effects.setMode(r,t.mode||"show"),h=e==="show",a=e==="hide",v=h||e==="hide",o=(t.times||5)*2+(v?1:0),c=t.duration/o,u=0,f=r.queue(),l=f.length,s;for((h||!r.is(":visible"))&&(r.css("opacity",0).show(),u=1),s=1;s<o;s++)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,o+1)));r.dequeue()},hi=n.effects.effect.shake=function(t,i){var r=n(this),v=["position","top","bottom","left","right","height","width"],k=n.effects.setMode(r,t.mode||"effect"),f=t.direction||"left",o=t.distance||20,y=t.times||3,p=y*2+1,u=Math.round(t.duration/p),s=f==="up"||f==="down"?"top":"left",h=f==="up"||f==="left",c={},l={},w={},a,e=r.queue(),b=e.length;for(n.effects.save(r,v),r.show(),n.effects.createWrapper(r),c[s]=(h?"-=":"+=")+o,l[s]=(h?"+=":"-=")+o*2,w[s]=(h?"-=":"+=")+o*2,r.animate(c,u,t.easing),a=1;a<y;a++)r.animate(l,u,t.easing).animate(w,u,t.easing);r.animate(l,u,t.easing).animate(c,u/2,t.easing).queue(function(){k==="hide"&&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()},ci=n.effects.effect.slide=function(t,i){var r=n(this),s=["position","top","bottom","left","right","width","height"],h=n.effects.setMode(r,t.mode||"show"),c=h==="show",f=t.direction||"left",e=f==="up"||f==="down"?"top":"left",o=f==="up"||f==="left",u,l={};n.effects.save(r,s);r.show();u=t.distance||r[e==="top"?"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(){h==="hide"&&r.hide();n.effects.restore(r,s);n.effects.removeWrapper(r);i()}})},li=n.effects.effect.transfer=function(t,i){var u=n(this),r=n(t.to),f=r.css("position")==="fixed",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()})}}),function(n){function g(){var n=document.getElementsByTagName("script"),t=n[n.length-1].src.split("?")[0];return t.split("/").length>0?t.split("/").slice(0,-1).join("/")+"/":""}function rt(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}var o=!1,l=!1,k=5e3,d=2e3,u=0,t=n,nt=g(),y=["ms","moz","webkit","o"],i=window.requestAnimationFrame||!1,r=window.cancelAnimationFrame||!1,p,s,f,e;if(!i)for(p in y)s=y[p],i||(i=window[s+"RequestAnimationFrame"]),r||(r=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"]);var h=window.MutationObserver||window.WebKitMutationObserver||!1,w={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1,oneaxismousemode:"auto"},v=!1,tt=function(){function e(){var u=["-moz-grab","-webkit-grab","grab"],i,r;for((n.ischrome&&!n.ischrome22||n.isie)&&(u=[]),i=0;i<u.length;i++)if(r=u[i],t.style.cursor=r,t.style.cursor==r)return r;return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}var t,n,r,i;if(v)return v;for(t=document.createElement("DIV"),n={},n.haspointerlock=("pointerLockElement"in document)||("mozPointerLockElement"in document)||("webkitPointerLockElement"in document),n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isoperamini=Object.prototype.toString.call(window.operamini)==="[object OperaMini]",n.isie=("all"in document)&&("attachEvent"in t)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in t.style),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||document.documentMode==7),n.isie8=n.isie&&("documentMode"in document)&&document.documentMode==8,n.isie9=n.isie&&("performance"in window)&&document.documentMode>=9,n.isie10=n.isie&&("performance"in window)&&document.documentMode>=10,n.isie9mobile=/iemobile.9/i.test(navigator.userAgent),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(navigator.userAgent),n.ismozilla=("MozAppearance"in t.style),n.iswebkit=("WebkitAppearance"in t.style),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in t.style),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.navigator.msPointerEnabled||!1,n.ismac=/^mac$/i.test(navigator.platform),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),n.isios4=n.isios&&!("seal"in Object),n.isandroid=/android/i.test(navigator.userAgent),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,r=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;i<r.length;i++)if(typeof t.style[r[i]]!="undefined"){n.trstyle=r[i];break}n.hastransform=n.trstyle!=!1;n.hastransform&&(t.style[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(t.style[n.trstyle]));n.transitionstyle=!1;n.prefixstyle="";n.transitionend=!1;var r=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],u=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],f=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"];for(i=0;i<r.length;i++)if(r[i]in t.style){n.transitionstyle=r[i];n.prefixstyle=u[i];n.transitionend=f[i];break}return n.ischrome26&&(n.prefixstyle=u[1]),n.hastransition=n.transitionstyle,n.cursorgrabvalue=e(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=h!==!1,t=null,v=n,n},it=function(n,f){function it(){var n=e.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!=0)return parseInt(t);n=n.parent()}return!1}function c(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=y[u]||0,f=r==3?i?e.win.outerHeight()-e.win.innerHeight():e.win.outerWidth()-e.win.innerWidth():1,e.isie8&&r&&(r+=1),f?r:0):r}function p(n,t,i,r){e._bind(n,t,function(r){var r=r?r:window.event,u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:r.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return t=="mousewheel"?(u.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-1/40*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function g(n,t,i){var u,r;if(n.deltaMode==0?(u=-Math.floor(n.deltaX*(e.opt.mousescrollstep/54)),r=-Math.floor(n.deltaY*(e.opt.mousescrollstep/54))):n.deltaMode==1&&(u=-Math.floor(n.deltaX*e.opt.mousescrollstep),r=-Math.floor(n.deltaY*e.opt.mousescrollstep)),t&&e.opt.oneaxismousemode&&u==0&&r&&(u=r,r=0),u&&(e.scrollmom&&e.scrollmom.stop(),e.lastdeltax+=u,e.debounced("mousewheelx",function(){var n=e.lastdeltax;e.lastdeltax=0;e.rail.drag||e.doScrollLeftBy(n)},120)),r){if(e.opt.nativeparentscrolling&&i&&!e.ispage&&!e.zoomactive)if(r<0){if(e.getScrollTop()>=e.page.maxh)return!0}else if(e.getScrollTop()<=0)return!0;e.scrollmom&&e.scrollmom.stop();e.lastdeltay+=r;e.debounced("mousewheely",function(){var n=e.lastdeltay;e.lastdeltay=0;e.rail.drag||e.doScrollBy(n)},120)}return n.stopImmediatePropagation(),n.preventDefault()}var e=this,a,s,y;if(this.version="3.5.0 BETA5",this.name="nicescroll",this.me=f,this.opt={doc:t("body"),win:!1},t.extend(this.opt,w),this.opt.snapbackspeed=80,n||!1)for(a in e.opt)typeof n[a]!="undefined"&&(e.opt[a]=n[a]);this.doc=e.opt.doc;this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(e.opt.win?e.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=e.opt.win!==!1;this.win=e.opt.win||(this.ispage?t(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win;this.body=t("body");this.viewport=!1;this.isfixed=!1;this.iframe=!1;this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME";this.istextarea=this.win[0].nodeName=="TEXTAREA";this.forcescreen=!1;this.canshowonmouseevent=e.opt.autohidemode!="scroll";this.onmousedown=!1;this.onmouseup=!1;this.onmousemove=!1;this.onmousewheel=!1;this.onkeypress=!1;this.ongesturezoom=!1;this.onclick=!1;this.onscrollstart=!1;this.onscrollend=!1;this.onscrollcancel=!1;this.onzoomin=!1;this.onzoomout=!1;this.view=!1;this.page=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.checkrtlmode=!1;this.scrollrunning=!1;this.scrollmom=!1;this.observer=!1;this.observerremover=!1;do this.id="ascrail"+d++;while(document.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=e.opt.overflowx,this.overflowy=e.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=tt(),s=t.extend({},this.detected),this.canhwscroll=s.hastransform&&e.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&e.haswrapper,this.istouchcapable=!1,s.cantouch&&s.ischrome&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),s.cantouch&&s.ismozilla&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),e.opt.enablemouselockapi||(s.hasmousecapture=!1,s.haspointerlock=!1),this.delayed=function(n,t,i,r){var u=e.delaylist[n],f=(new Date).getTime();if(!r&&u&&u.tt)return!1;u&&u.tt&&clearTimeout(u.tt);u&&u.last+i>f&&!u.tt?e.delaylist[n]={last:f+i,tt:setTimeout(function(){e.delaylist[n].tt=0;t.call()},i)}:u&&u.tt||(e.delaylist[n]={last:f,tt:0},setTimeout(function(){t.call()},0))},this.debounced=function(n,t,i){var r=e.delaylist[n],u=(new Date).getTime();e.delaylist[n]=t;r||setTimeout(function(){var t=e.delaylist[n];e.delaylist[n]=!1;t.call()},i)},this.synched=function(n,t){function r(){e.onsync||(i(function(){e.onsync=!1;for(n in e.synclist){var t=e.synclist[n];t&&t.call(e);e.synclist[n]=!1}}),e.onsync=!0)}return e.synclist[n]=t,r(),n},this.unsynched=function(n){e.synclist[n]&&(e.synclist[n]=!1)},this.css=function(n,t){for(var i in t)e.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return typeof n=="undefined"?e.getScrollTop():e.setScrollTop(n)},this.scrollLeft=function(n){return typeof n=="undefined"?e.getScrollLeft():e.setScrollLeft(n)},BezierClass=function(n,t,i,r,u,f,e){this.st=n;this.ed=t;this.spd=i;this.p1=r||0;this.p2=u||1;this.p3=f||0;this.p4=e||1;this.ts=(new Date).getTime();this.df=this.ed-this.st},BezierClass.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var t=(new Date).getTime(),n=1-(t-this.ts)/this.spd,i=this.B2(n)+this.B3(n)+this.B4(n);return n<0?this.ed:this.st+Math.round(this.df*i)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};s.hastranslate3d&&s.isios&&this.doc.css("-webkit-backface-visibility","hidden");function v(){var n=e.doc.css(s.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}this.getScrollTop=function(n){if(!n){var t=v();if(t)return t.length==16?-t[13]:-t[5];if(e.timerscroll&&e.timerscroll.bz)return e.timerscroll.bz.getNow()}return e.doc.translate.y};this.getScrollLeft=function(n){if(!n){var t=v();if(t)return t.length==16?-t[12]:-t[4];if(e.timerscroll&&e.timerscroll.bh)return e.timerscroll.bh.getNow()}return e.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1);n.dispatchEvent(t)}:document.fireEvent?function(n){var t=document.createEventObject();n.fireEvent("onscroll");t.cancelBubble=!0}:function(){};s.hastranslate3d&&e.opt.enabletranslate3d?(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])}):(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])})}else this.getScrollTop=function(){return e.docscroll.scrollTop()},this.setScrollTop=function(n){return e.docscroll.scrollTop(n)},this.getScrollLeft=function(){return e.docscroll.scrollLeft()},this.setScrollLeft=function(n){return e.docscroll.scrollLeft(n)};this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1};this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1};y={thin:1,medium:3,thick:5};this.getOffset=function(){if(e.isfixed)return{top:parseFloat(e.win.css("top")),left:parseFloat(e.win.css("left"))};if(!e.viewport)return e.win.offset();var n=e.win.offset(),t=e.viewport.offset();return{top:n.top-t.top+e.viewport.scrollTop(),left:n.left-t.left+e.viewport.scrollLeft()}};this.updateScrollBar=function(n){var r,t,u,i;if(e.ishwscroll)e.rail.css({height:e.win.innerHeight()}),e.railh&&e.railh.css({width:e.win.innerWidth()});else if(r=e.getOffset(),t={top:r.top,left:r.left},t.top+=c(e.win,"border-top-width",!0),u=(e.win.outerWidth()-e.win.innerWidth())/2,t.left+=e.rail.align?e.win.outerWidth()-c(e.win,"border-right-width")-e.rail.width:c(e.win,"border-left-width"),i=e.opt.railoffset,i&&(i.top&&(t.top+=i.top),e.rail.align&&i.left&&(t.left+=i.left)),e.locked||e.rail.css({top:t.top,left:t.left,height:n?n.h:e.win.innerHeight()}),e.zoom&&e.zoom.css({top:t.top+1,left:e.rail.align==1?t.left-20:t.left+e.rail.width+4}),e.railh&&!e.locked){var t={top:r.top,left:r.left},f=e.railh.align?t.top+c(e.win,"border-top-width",!0)+e.win.innerHeight()-e.railh.height:t.top+c(e.win,"border-top-width",!0),o=t.left+c(e.win,"border-left-width");e.railh.css({top:f,left:o,width:e.railh.width})}};this.doRailClick=function(n,t,i){var r,f,u,o;e.locked||(e.cancelEvent(n),t?(r=i?e.doScrollLeft:e.doScrollTop,u=i?(n.pageX-e.railh.offset().left-e.cursorwidth/2)*e.scrollratio.x:(n.pageY-e.rail.offset().top-e.cursorheight/2)*e.scrollratio.y,r(u)):(r=i?e.doScrollLeftBy:e.doScrollBy,u=i?e.scroll.x:e.scroll.y,o=i?n.pageX-e.railh.offset().left:n.pageY-e.rail.offset().top,f=i?e.view.w:e.view.h,u>=o?r(f):r(-f)))};e.hasanimationframe=i;e.hascancelanimationframe=r;e.hasanimationframe?e.hascancelanimationframe||(r=function(){e.cancelAnimationFrame=!0}):(i=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},r=clearInterval);this.init=function(){var f,n,p,c,w,tt,a,r,i,v,y,d,g,rt,ft,et;if((e.saved.css=[],s.isie7mobile)||s.isoperamini)return!0;if(s.hasmstouch&&e.css(e.ispage?t("html"):e.win,{"-ms-touch-action":"none"}),e.zindex="auto",e.zindex=e.ispage||e.opt.zindex!="auto"?e.opt.zindex:it()||"auto",e.ispage||e.zindex=="auto"||e.zindex>u&&(u=e.zindex),e.isie&&e.zindex==0&&e.opt.zindex=="auto"&&(e.zindex="auto"),!e.ispage||!s.cantouch&&!s.isieold&&!s.isie9mobile){f=e.docscroll;e.ispage&&(f=e.haswrapper?e.win:e.doc);s.isie9mobile||e.css(f,{"overflow-y":"hidden"});e.ispage&&s.isie7&&(e.doc[0].nodeName=="BODY"?e.css(t("html"),{"overflow-y":"hidden"}):e.doc[0].nodeName=="HTML"&&e.css(t("body"),{"overflow-y":"hidden"}));!s.isios||e.ispage||e.haswrapper||e.css(t("body"),{"-webkit-overflow-scrolling":"touch"});r=t(document.createElement("div"));r.css({position:"relative",top:0,float:"right",width:e.opt.cursorwidth,height:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius});r.hborder=parseFloat(r.outerHeight()-r.innerHeight());e.cursor=r;n=t(document.createElement("div"));n.attr("id",e.id);n.addClass("nicescroll-rails");w=["left","right"];for(tt in w)c=w[tt],p=e.opt.railpadding[c],p?n.css("padding-"+c,p+"px"):e.opt.railpadding[c]=0;if(n.append(r),n.width=Math.max(parseFloat(e.opt.cursorwidth),r.outerWidth())+e.opt.railpadding.left+e.opt.railpadding.right,n.css({width:n.width+"px",zIndex:e.zindex,background:e.opt.background,cursor:"default"}),n.visibility=!0,n.scrollable=!0,n.align=e.opt.railalign=="left"?0:1,e.rail=n,e.rail.drag=!1,a=!1,!e.opt.boxzoom||e.ispage||s.isieold||(a=document.createElement("div"),e.bind(a,"click",e.doZoom),e.zoom=t(a),e.zoom.css({cursor:"pointer","z-index":e.zindex,backgroundImage:"url("+nt+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),e.opt.dblclickzoom&&e.bind(e.win,"dblclick",e.doZoom),s.cantouch&&e.opt.gesturezoom&&(e.ongesturezoom=function(n){return n.scale>1.5&&e.doZoomIn(n),n.scale<.8&&e.doZoomOut(n),e.cancelEvent(n)},e.bind(e.win,"gestureend",e.ongesturezoom))),e.railh=!1,e.opt.horizrailenabled&&(e.css(f,{"overflow-x":"hidden"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,height:e.opt.cursorwidth,width:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.wborder=parseFloat(r.outerWidth()-r.innerWidth()),e.cursorh=r,i=t(document.createElement("div")),i.attr("id",e.id+"-hr"),i.addClass("nicescroll-rails"),i.height=Math.max(parseFloat(e.opt.cursorwidth),r.outerHeight()),i.css({height:i.height+"px",zIndex:e.zindex,background:e.opt.background}),i.append(r),i.visibility=!0,i.scrollable=!0,i.align=e.opt.railvalign=="top"?0:1,e.railh=i,e.railh.drag=!1),e.ispage?(n.css({position:"fixed",top:"0px",height:"100%"}),n.align?n.css({right:"0px"}):n.css({left:"0px"}),e.body.append(n),e.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),e.body.append(i))):(e.ishwscroll?(e.win.css("position")=="static"&&e.css(e.win,{position:"relative"}),v=e.win[0].nodeName=="HTML"?e.body:e.win,e.zoom&&(e.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),v.append(e.zoom)),n.css({position:"absolute",top:0}),n.align?n.css({right:0}):n.css({left:0}),v.append(n),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),v.append(i))):(e.isfixed=e.win.css("position")=="fixed",y=e.isfixed?"fixed":"absolute",e.isfixed||(e.viewport=e.getViewport(e.win[0])),e.viewport&&(e.body=e.viewport,/relative|absolute/.test(e.viewport.css("position"))==!1&&e.css(e.viewport,{position:"relative"})),n.css({position:y}),e.zoom&&e.zoom.css({position:y}),e.updateScrollBar(),e.body.append(n),e.zoom&&e.body.append(e.zoom),e.railh&&(i.css({position:y}),e.body.append(i))),s.isios&&e.css(e.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),s.isie&&e.opt.disableoutline&&e.win.attr("hideFocus","true"),s.iswebkit&&e.opt.disableoutline&&e.win.css({outline:"none"})),e.opt.autohidemode===!1?(e.autohidedom=!1,e.rail.css({opacity:e.opt.cursoropacitymax}),e.railh&&e.railh.css({opacity:e.opt.cursoropacitymax})):e.opt.autohidemode===!0?(e.autohidedom=t().add(e.rail),s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursor)),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh)),e.railh&&s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="scroll"?(e.autohidedom=t().add(e.rail),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh))):e.opt.autohidemode=="cursor"?(e.autohidedom=t().add(e.cursor),e.railh&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="hidden"&&(e.autohidedom=!1,e.hide(),e.locked=!1),s.isie9mobile)e.scrollmom=new b(e),e.onmangotouch=function(){var n=e.getScrollTop(),t=e.getScrollLeft(),c,s;if(n==e.scrollmom.lastscrolly&&t==e.scrollmom.lastscrollx)return!0;var r=n-e.mangotouch.sy,u=t-e.mangotouch.sx,h=Math.round(Math.sqrt(Math.pow(u,2)+Math.pow(r,2)));if(h!=0){var f=r<0?-1:1,o=u<0?-1:1,i=+new Date;e.mangotouch.lazy&&clearTimeout(e.mangotouch.lazy);i-e.mangotouch.tm>80||e.mangotouch.dry!=f||e.mangotouch.drx!=o?(e.scrollmom.stop(),e.scrollmom.reset(t,n),e.mangotouch.sy=n,e.mangotouch.ly=n,e.mangotouch.sx=t,e.mangotouch.lx=t,e.mangotouch.dry=f,e.mangotouch.drx=o,e.mangotouch.tm=i):(e.scrollmom.stop(),e.scrollmom.update(e.mangotouch.sx-u,e.mangotouch.sy-r),c=i-e.mangotouch.tm,e.mangotouch.tm=i,s=Math.max(Math.abs(e.mangotouch.ly-n),Math.abs(e.mangotouch.lx-t)),e.mangotouch.ly=n,e.mangotouch.lx=t,s>2&&(e.mangotouch.lazy=setTimeout(function(){e.mangotouch.lazy=!1;e.mangotouch.dry=0;e.mangotouch.drx=0;e.mangotouch.tm=0;e.scrollmom.doMomentum(30)},100)))}},d=e.getScrollTop(),g=e.getScrollLeft(),e.mangotouch={sy:d,ly:d,dry:0,sx:g,lx:g,drx:0,lazy:!1,tm:0},e.bind(e.docscroll,"scroll",e.onmangotouch);else{if((s.cantouch||e.istouchcapable||e.opt.touchbehavior||s.hasmstouch)&&(e.scrollmom=new b(e),e.ontouchstart=function(n){var r,i,o,u,n,f,l;if(window.vscrollreachtotop=undefined,n.pointerType&&n.pointerType!=2)return!1;if(!e.locked){if(s.hasmstouch)for(i=n.target?n.target:!1;i;){if(r=t(i).getNiceScroll(),r.length>0&&r[0].me==e.me)break;if(r.length>0)return!1;if(i.nodeName=="DIV"&&i.id==e.id)break;i=i.parentNode?i.parentNode:!1}if(e.cancelScroll(),i=e.getTarget(n),i&&(o=/INPUT/i.test(i.nodeName)&&/range/i.test(i.type),o))return e.stopPropagation(n);if(!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(u=n,n={original:n.original?n.original:n},n.clientX=u.screenX,n.clientY=u.screenY),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,st:e.getScrollTop(),sl:e.getScrollLeft(),pt:2,dl:!1},e.ispage||!e.opt.directionlockdeadzone)e.rail.drag.dl="f";else{var h={w:t(window).width(),h:t(window).height()},c={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a=Math.max(0,c.h-h.h),v=Math.max(0,c.w-h.w);e.rail.drag.ck=!e.rail.scrollable&&e.railh.scrollable?a>0?"v":!1:e.rail.scrollable&&!e.railh.scrollable?v>0?"h":!1:!1;e.rail.drag.ck||(e.rail.drag.dl="f")}if(e.opt.touchbehavior&&e.isiframe&&s.isie&&(f=e.win.position(),e.rail.drag.x+=f.left,e.rail.drag.y+=f.top),e.hasmoving=!1,e.lastmouseup=!1,e.scrollmom.reset(n.clientX,n.clientY),!s.cantouch&&!this.istouchcapable&&!s.hasmstouch){if(l=i?/INPUT|SELECT|TEXTAREA/i.test(i.nodeName):!1,!l)return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.opt.touchbehavior?e.cancelEvent(n):e.stopPropagation(n);/SUBMIT|CANCEL|BUTTON/i.test(t(i).attr("type"))&&(pc={tg:i,click:!1},e.preventclick=pc)}}},e.ontouchend=function(n){return(window.vscrollreachtotop=undefined,n.pointerType&&n.pointerType!=2)?!1:e.rail.drag&&e.rail.drag.pt==2&&(e.scrollmom.doMomentum(),e.rail.drag=!1,e.hasmoving&&(e.hasmoving=!1,e.lastmouseup=!0,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),!s.cantouch))?e.cancelEvent(n):void 0},rt=e.opt.touchbehavior&&e.isiframe&&!s.hasmousecapture,window.count=0,e.ontouchmove=function(n,i){var p,a,n,v,y,u,k;if(n.pointerType&&n.pointerType!=2)return!1;if(e.rail.drag&&e.rail.drag.pt==2){if(s.cantouch&&typeof n.original=="undefined")return!0;e.hasmoving=!0;e.preventclick&&!e.preventclick.click&&(e.preventclick.click=e.preventclick.tg.onclick||!1,e.preventclick.tg.onclick=e.onpreventclick);p=t.extend({original:n},n);n=p;"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY);e.forcescreen&&(a=n,n={original:n.original?n.original:n},n.clientX=a.screenX,n.clientY=a.screenY);v=ofy=0;rt&&!i&&(y=e.win.position(),v=-y.left,ofy=-y.top);var f=n.clientY+ofy,w=f-e.rail.drag.y,o=n.clientX+v,b=o-e.rail.drag.x,r=e.rail.drag.st-w;if(e.ishwscroll&&e.opt.bouncescroll?r<0?r=Math.round(r/2):r>e.page.maxh&&(r=e.page.maxh+Math.round((r-e.page.maxh)/2)):(r<0&&(r=0,f=0),r>e.page.maxh&&(r=e.page.maxh,f=0)),e.railh&&e.railh.scrollable&&(u=e.rail.drag.sl-b,e.ishwscroll&&e.opt.bouncescroll?u<0?u=Math.round(u/2):u>e.page.maxw&&(u=e.page.maxw+Math.round((u-e.page.maxw)/2)):(u<0&&(u=0,o=0),u>e.page.maxw&&(u=e.page.maxw,o=0))),k=!1,e.rail.drag.dl)k=!0,e.rail.drag.dl=="v"?u=e.rail.drag.sl:e.rail.drag.dl=="h"&&(r=e.rail.drag.st);else{var h=Math.abs(w),c=Math.abs(b),l=e.opt.directionlockdeadzone;if(e.rail.drag.ck=="v"){if(h>l&&c<=h*.3)return e.rail.drag=!1,!0;c>l&&(e.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if(e.rail.drag.ck=="h"){if(c>l&&h<=c*.3)return e.rail.drag=!1,!0;h>l&&(e.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(e.synched("touchmove",function(){e.rail.drag&&e.rail.drag.pt==2&&(e.prepareTransition&&e.prepareTransition(0),e.rail.scrollable&&e.setScrollTop(r),e.scrollmom.update(o,f),e.railh&&e.railh.scrollable?(e.setScrollLeft(u),e.showCursor(r,u)):e.showCursor(r),s.isie10&&document.selection.clear());t(e.rail.context).height()+e.getScrollTop()>=e.getContentSize().h&&(window.vscrollreachtotop=!0);e.getScrollTop()<=0&&(window.vscrollreachtotop=!1)}),window.vscrollreachtotop===!0)t("body").scrollTop(t("body").scrollTop()+1);else if(window.vscrollreachtotop===!1)t("body").scrollTop(t("body").scrollTop()-1);else return e.cancelEvent(n)}window.vscrollreachtotop===!0&&t("body").scrollTop(t("body").scrollTop()+1);window.vscrollreachtotop===!1&&t("body").scrollTop(t("body").scrollTop()-1)}),e.onmousedown=function(n,t){if(!e.rail.drag||e.rail.drag.pt==1){if(e.locked)return e.cancelEvent(n);e.cancelScroll();e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,pt:1,hr:!!t};var i=e.getTarget(n);return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.isiframe&&!s.hasmousecapture&&(e.saved.csspointerevents=e.doc.css("pointer-events"),e.css(e.doc,{"pointer-events":"none"})),e.cancelEvent(n)}},e.onmouseup=function(n){if(e.rail.drag)return(s.hasmousecapture&&document.releaseCapture(),e.isiframe&&!s.hasmousecapture&&e.doc.css("pointer-events",e.saved.csspointerevents),e.rail.drag.pt!=1)?void 0:(e.rail.drag=!1,e.cancelEvent(n))},e.onmousemove=function(n){var t,i;if(e.rail.drag)return e.rail.drag.pt!=1?void 0:s.ischrome&&n.which==0?e.onmouseup(n):(e.cursorfreezed=!0,e.rail.drag.hr?(e.scroll.x=e.rail.drag.sx+(n.clientX-e.rail.drag.x),e.scroll.x<0&&(e.scroll.x=0),t=e.scrollvaluemaxw,e.scroll.x>t&&(e.scroll.x=t)):(e.scroll.y=e.rail.drag.sy+(n.clientY-e.rail.drag.y),e.scroll.y<0&&(e.scroll.y=0),i=e.scrollvaluemax,e.scroll.y>i&&(e.scroll.y=i)),e.synched("mousemove",function(){e.rail.drag&&e.rail.drag.pt==1&&(e.showCursor(),e.rail.drag.hr?e.doScrollLeft(Math.round(e.scroll.x*e.scrollratio.x),e.opt.cursordragspeed):e.doScrollTop(Math.round(e.scroll.y*e.scrollratio.y),e.opt.cursordragspeed))}),e.cancelEvent(n))},s.cantouch||e.opt.touchbehavior)e.onpreventclick=function(n){if(e.preventclick)return e.preventclick.tg.onclick=e.preventclick.click,e.preventclick=!1,e.cancelEvent(n)},e.bind(e.win,"mousedown",e.ontouchstart),e.onclick=s.isios?!1:function(n){return e.lastmouseup?(e.lastmouseup=!1,e.cancelEvent(n)):!0},e.opt.grabcursorenabled&&s.cursorgrabvalue&&(e.css(e.ispage?e.doc:e.win,{cursor:s.cursorgrabvalue}),e.css(e.rail,{cursor:s.cursorgrabvalue}));else{function ut(n){var i,t,r;e.selectiondrag&&(n&&(i=e.win.outerHeight(),t=n.pageY-e.selectiondrag.top,t>0&&t<i&&(t=0),t>=i&&(t-=i),e.selectiondrag.df=t),e.selectiondrag.df!=0)&&(r=-Math.floor(e.selectiondrag.df/6)*2,e.doScrollBy(r),e.debounced("doselectionscroll",function(){ut()},50))}e.hasTextSelected="getSelection"in document?function(){return document.getSelection().rangeCount>0}:"selection"in document?function(){return document.selection.type!="None"}:function(){return!1};e.onselectionstart=function(){e.ispage||(e.selectiondrag=e.win.offset())};e.onselectionend=function(){e.selectiondrag=!1};e.onselectiondrag=function(n){e.selectiondrag&&e.hasTextSelected()&&e.debounced("selectionscroll",function(){ut(n)},250)}}s.hasmstouch&&(e.css(e.rail,{"-ms-touch-action":"none"}),e.css(e.cursor,{"-ms-touch-action":"none"}),e.bind(e.win,"MSPointerDown",e.ontouchstart),e.bind(document,"MSPointerUp",e.ontouchend),e.bind(document,"MSPointerMove",e.ontouchmove),e.bind(e.cursor,"MSGestureHold",function(n){n.preventDefault()}),e.bind(e.cursor,"contextmenu",function(n){n.preventDefault()}));this.istouchcapable&&(e.bind(e.win,"touchstart",e.ontouchstart),e.bind(document,"touchend",e.ontouchend),e.bind(document,"touchcancel",e.ontouchend),e.bind(document,"touchmove",e.ontouchmove));e.bind(e.cursor,"mousedown",e.onmousedown);e.bind(e.cursor,"mouseup",e.onmouseup);e.railh&&(e.bind(e.cursorh,"mousedown",function(n){e.onmousedown(n,!0)}),e.bind(e.cursorh,"mouseup",function(n){if(!e.rail.drag||e.rail.drag.pt!=2)return e.rail.drag=!1,e.hasmoving=!1,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),e.cancelEvent(n)}));!e.opt.cursordragontouch&&(s.cantouch||e.opt.touchbehavior)||(e.rail.css({cursor:"default"}),e.railh&&e.railh.css({cursor:"default"}),e.jqbind(e.rail,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.rail,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.rail,"click",function(n){e.doRailClick(n,!1,!1)}),e.bind(e.rail,"dblclick",function(n){e.doRailClick(n,!0,!1)}),e.bind(e.cursor,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursor,"dblclick",function(n){e.cancelEvent(n)})),e.railh&&(e.jqbind(e.railh,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.railh,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.railh,"click",function(n){e.doRailClick(n,!1,!0)}),e.bind(e.railh,"dblclick",function(n){e.doRailClick(n,!0,!0)}),e.bind(e.cursorh,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursorh,"dblclick",function(n){e.cancelEvent(n)}))));s.cantouch||e.opt.touchbehavior?(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.ontouchend),e.bind(document,"mousemove",e.ontouchmove),e.onclick&&e.bind(document,"click",e.onclick),e.opt.cursordragontouch&&(e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mousemove",e.onmousemove),e.cursorh&&e.bind(e.cursorh,"mousedown",e.onmousedown),e.cursorh&&e.bind(e.cursorh,"mousemove",e.onmousemove))):(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.onmouseup),e.bind(document,"mousemove",e.onmousemove),e.onclick&&e.bind(document,"click",e.onclick),!e.ispage&&e.opt.enablescrollonselection&&(e.bind(e.win[0],"mousedown",e.onselectionstart),e.bind(document,"mouseup",e.onselectionend),e.bind(e.cursor,"mouseup",e.onselectionend),e.cursorh&&e.bind(e.cursorh,"mouseup",e.onselectionend),e.bind(document,"mousemove",e.onselectiondrag)),e.zoom&&(e.jqbind(e.zoom,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.zoom,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()})));e.opt.enablemousewheel&&(e.isiframe||e.bind(s.isie&&e.ispage?document:e.win,"mousewheel",e.onmousewheel),e.bind(e.rail,"mousewheel",e.onmousewheel),e.railh&&e.bind(e.railh,"mousewheel",e.onmousewheelhr));e.ispage||s.cantouch||/HTML|BODY/.test(e.win[0].nodeName)||(e.win.attr("tabindex")||e.win.attr({tabindex:k++}),e.jqbind(e.win,"focus",function(n){o=e.getTarget(n).id||!0;e.hasfocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"blur",function(){o=!1;e.hasfocus=!1}),e.jqbind(e.win,"mouseenter",function(n){l=e.getTarget(n).id||!0;e.hasmousefocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"mouseleave",function(){l=!1;e.hasmousefocus=!1}))}e.onkeypress=function(n){var i,f,u;if(e.locked&&e.page.maxh==0||(n=n?n:window.e,i=e.getTarget(n),i&&/INPUT|TEXTAREA|SELECT|OPTION/.test(i.nodeName)&&(f=i.getAttribute("type")||i.type||!1,!f||!/submit|button|cancel/i.tp)))return!0;if(e.hasfocus||e.hasmousefocus&&!o||e.ispage&&!o&&!l){if(u=n.keyCode,e.locked&&u!=27)return e.cancelEvent(n);var r=n.ctrlKey||!1,s=n.shiftKey||!1,t=!1;switch(u){case 38:case 63233:e.doScrollBy(72);t=!0;break;case 40:case 63235:e.doScrollBy(-72);t=!0;break;case 37:case 63232:e.railh&&(r?e.doScrollLeft(0):e.doScrollLeftBy(72),t=!0);break;case 39:case 63234:e.railh&&(r?e.doScrollLeft(e.page.maxw):e.doScrollLeftBy(-72),t=!0);break;case 33:case 63276:e.doScrollBy(e.view.h);t=!0;break;case 34:case 63277:e.doScrollBy(-e.view.h);t=!0;break;case 36:case 63273:e.railh&&r?e.doScrollPos(0,0):e.doScrollTo(0);t=!0;break;case 35:case 63275:e.railh&&r?e.doScrollPos(e.page.maxw,e.page.maxh):e.doScrollTo(e.page.maxh);t=!0;break;case 32:e.opt.spacebarenabled&&(s?e.doScrollBy(e.view.h):e.doScrollBy(-e.view.h),t=!0);break;case 27:e.zoomactive&&(e.doZoom(),t=!0)}if(t)return e.cancelEvent(n)}};e.opt.enablekeyboard&&e.bind(document,s.isopera&&!s.isopera12?"keypress":"keydown",e.onkeypress);e.bind(window,"resize",e.lazyResize);e.bind(window,"orientationchange",e.lazyResize);e.bind(window,"load",e.lazyResize);!s.ischrome||e.ispage||e.haswrapper||(ft=e.win.attr("style"),et=parseFloat(e.win.css("width"))+1,e.win.css("width",et),e.synched("chromefix",function(){e.win.attr("style",ft)}));e.onAttributeChange=function(){e.lazyResize(250)};e.ispage||e.haswrapper||(h!==!1?(e.observer=new h(function(n){n.forEach(e.onAttributeChange)}),e.observer.observe(e.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),e.observerremover=new h(function(n){n.forEach(function(n){if(n.removedNodes.length>0)for(var t in n.removedNodes)if(n.removedNodes[t]==e.win[0])return e.remove()})}),e.observerremover.observe(e.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(e.bind(e.win,s.isie&&!s.isie9?"propertychange":"DOMAttrModified",e.onAttributeChange),s.isie9&&e.win[0].attachEvent("onpropertychange",e.onAttributeChange),e.bind(e.win,"DOMNodeRemoved",function(n){n.target==e.win[0]&&e.remove()})));!e.ispage&&e.opt.boxzoom&&e.bind(window,"resize",e.resizeZoom);e.istextarea&&e.bind(e.win,"mouseup",e.lazyResize);e.checkrtlmode=!0;e.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){function ot(){var n,r,i;e.iframexd=!1;try{n="contentDocument"in this?this.contentDocument:this.contentWindow.document;r=n.domain}catch(e){e.iframexd=!0;n=!1}if(e.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;e.forcescreen=!0;e.isiframe&&(e.iframe={doc:t(n),html:e.doc.contents().find("html")[0],body:e.doc.contents().find("body")[0]},e.getContentSize=function(){return{w:Math.max(e.iframe.html.scrollWidth,e.iframe.body.scrollWidth),h:Math.max(e.iframe.html.scrollHeight,e.iframe.body.scrollHeight)}},e.docscroll=t(e.iframe.body));s.isios||!e.opt.iframeautoresize||e.isiframe||(e.win.scrollTop(0),e.doc.height(""),i=Math.max(n.getElementsByTagName("html")[0].scrollHeight,n.body.scrollHeight),e.doc.height(i));e.lazyResize(30);s.isie7&&e.css(t(e.iframe.html),{"overflow-y":"hidden"});e.css(t(e.iframe.body),{"overflow-y":"hidden"});s.isios&&e.haswrapper&&(e.css(t(n.body),{"-webkit-transform":"translate3d(0,0,0)"}),console.log(1));"contentWindow"in this?e.bind(this.contentWindow,"scroll",e.onscroll):e.bind(n,"scroll",e.onscroll);e.opt.enablemousewheel&&e.bind(n,"mousewheel",e.onmousewheel);e.opt.enablekeyboard&&e.bind(n,s.isopera?"keypress":"keydown",e.onkeypress);(s.cantouch||e.opt.touchbehavior)&&(e.bind(n,"mousedown",e.ontouchstart),e.bind(n,"mousemove",function(n){e.ontouchmove(n,!0)}),e.opt.grabcursorenabled&&s.cursorgrabvalue&&e.css(t(n.body),{cursor:s.cursorgrabvalue}));e.bind(n,"mouseup",e.ontouchend);e.zoom&&(e.opt.dblclickzoom&&e.bind(n,"dblclick",e.doZoom),e.ongesturezoom&&e.bind(n,"gestureend",e.ongesturezoom))}this.doc[0].readyState&&this.doc[0].readyState=="complete"&&setTimeout(function(){ot.call(e.doc[0],!1)},500);e.bind(this.doc,"load",ot)}};this.showCursor=function(n,t){(e.cursortimeout&&(clearTimeout(e.cursortimeout),e.cursortimeout=0),e.rail)&&(e.autohidedom&&(e.autohidedom.stop().css({opacity:e.opt.cursoropacitymax}),e.cursoractive=!0),e.rail.drag&&e.rail.drag.pt==1||(typeof n!="undefined"&&n!==!1&&(e.scroll.y=Math.round(n*1/e.scrollratio.y)),typeof t!="undefined"&&(e.scroll.x=Math.round(t*1/e.scrollratio.x))),e.cursor.css({height:e.cursorheight,top:e.scroll.y}),e.cursorh&&(!e.rail.align&&e.rail.visibility?e.cursorh.css({width:e.cursorwidth,left:e.scroll.x+e.rail.width}):e.cursorh.css({width:e.cursorwidth,left:e.scroll.x}),e.cursoractive=!0),e.zoom&&e.zoom.stop().css({opacity:e.opt.cursoropacitymax}))};this.hideCursor=function(n){e.cursortimeout||e.rail&&e.autohidedom&&(e.cursortimeout=setTimeout(function(){e.rail.active&&e.showonmouseevent||(e.autohidedom.stop().animate({opacity:e.opt.cursoropacitymin}),e.zoom&&e.zoom.stop().animate({opacity:e.opt.cursoropacitymin}),e.cursoractive=!1);e.cursortimeout=0},n||e.opt.hidecursordelay))};this.noticeCursor=function(n,t,i){e.showCursor(t,i);e.rail.active||e.hideCursor(n)};this.getContentSize=e.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:e.haswrapper?function(){return{w:e.doc.outerWidth()+parseInt(e.win.css("paddingLeft"))+parseInt(e.win.css("paddingRight")),h:e.doc.outerHeight()+parseInt(e.win.css("paddingTop"))+parseInt(e.win.css("paddingBottom"))}}:function(){return{w:e.docscroll[0].scrollWidth,h:e.docscroll[0].scrollHeight}};this.onResize=function(n,t){var i,r,u;if(!e.win)return!1;if(!e.haswrapper&&!e.ispage){if(e.win.css("display")=="none")return e.visibility&&e.hideRail().hideRailHr(),!1;e.hidden||e.visibility||e.showRail().showRailHr()}var f=e.page.maxh,o=e.page.maxw,s={h:e.view.h,w:e.view.w};if(e.view={w:e.ispage?e.win.width():parseInt(e.win[0].clientWidth),h:e.ispage?e.win.height():parseInt(e.win[0].clientHeight)},e.page=t?t:e.getContentSize(),e.page.maxh=Math.max(0,e.page.h-e.view.h),e.page.maxw=Math.max(0,e.page.w-e.view.w),e.page.maxh==f&&e.page.maxw==o&&e.view.w==s.w){if(e.ispage||(i=e.win.offset(),e.lastposition&&(r=e.lastposition,r.top==i.top&&r.left==i.left)))return e;e.lastposition=i}return(e.page.maxh==0?(e.hideRail(),e.scrollvaluemax=0,e.scroll.y=0,e.scrollratio.y=0,e.cursorheight=0,e.setScrollTop(0),e.rail.scrollable=!1):e.rail.scrollable=!0,e.page.maxw==0?(e.hideRailHr(),e.scrollvaluemaxw=0,e.scroll.x=0,e.scrollratio.x=0,e.cursorwidth=0,e.setScrollLeft(0),e.railh.scrollable=!1):e.railh.scrollable=!0,e.locked=e.page.maxh==0&&e.page.maxw==0,e.locked)?(e.ispage||e.updateScrollBar(e.view),!1):(e.hidden||e.visibility?e.hidden||e.railh.visibility||e.showRailHr():e.showRail().showRailHr(),e.istextarea&&e.win.css("resize")&&e.win.css("resize")!="none"&&(e.view.h-=20),e.cursorheight=Math.min(e.view.h,Math.round(e.view.h*(e.view.h/e.page.h))),e.cursorheight=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorheight),e.cursorwidth=Math.min(e.view.w,Math.round(e.view.w*(e.view.w/e.page.w))),e.cursorwidth=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorwidth),e.scrollvaluemax=e.view.h-e.cursorheight-e.cursor.hborder,e.railh&&(e.railh.width=e.page.maxh>0?e.view.w-e.rail.width:e.view.w,e.scrollvaluemaxw=e.railh.width-e.cursorwidth-e.cursorh.wborder),e.checkrtlmode&&e.railh&&(e.checkrtlmode=!1,e.opt.rtlmode&&e.scroll.x==0&&e.setScrollLeft(e.page.maxw)),e.ispage||e.updateScrollBar(e.view),e.scrollratio={x:e.page.maxw/e.scrollvaluemaxw,y:e.page.maxh/e.scrollvaluemax},u=e.getScrollTop(),u>e.page.maxh?e.doScrollTop(e.page.maxh):(e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)),e.cursoractive&&e.noticeCursor()),e.scroll.y&&e.getScrollTop()==0&&e.doScrollTo(Math.floor(e.scroll.y*e.scrollratio.y)),e)};this.resize=e.onResize;this.lazyResize=function(n){return n=isNaN(n)?30:n,e.delayed("resize",e.resize,n),e};this._bind=function(n,t,i,r){e.events.push({e:n,n:t,f:i,b:r,q:!1});n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};this.jqbind=function(n,i,r){e.events.push({e:n,n:i,f:r,q:!0});t(n).bind(i,r)};this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n,f,o;t=="mousewheel"?"onwheel"in e.win?e._bind(u,"wheel",i,r||!1):(f=typeof document.onmousewheel!="undefined"?"mousewheel":"DOMMouseScroll",p(u,f,i,r||!1),f=="DOMMouseScroll"&&p(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(s.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&(o=t=="mousedown"?"touchstart":t=="mouseup"?"touchend":"touchmove",e._bind(u,o,function(n){var t;n.touches?n.touches.length<2&&(t=n.touches.length?n.touches[0]:n,t.original=n,i.call(this,t)):n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1)),e._bind(u,t,i,r||!1),s.cantouch&&t=="mouseup"&&e._bind(u,"touchcancel",i,r||!1)):e._bind(u,t,function(n){return n=n||window.event||!1,n&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),i.call(u,n)===!1||r===!1?e.cancelEvent(n):!0})};this._unbind=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1};this.unbindAll=function(){for(var n,t=0;t<e.events.length;t++)n=e.events[t],n.q?n.e.unbind(n.n,n.f):e._unbind(n.e,n.n,n.f,n.b)};this.cancelEvent=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1,!1):!1};this.stopPropagation=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?n.stopPropagation?n.stopPropagation():(n.cancelBubble&&(n.cancelBubble=!0),!1):!1};this.showRail=function(){return e.page.maxh!=0&&(e.ispage||e.win.css("display")!="none")&&(e.visibility=!0,e.rail.visibility=!0,e.rail.css("display","block")),e};this.showRailHr=function(){return e.railh?(e.page.maxw!=0&&(e.ispage||e.win.css("display")!="none")&&(e.railh.visibility=!0,e.railh.css("display","block")),e):e};this.hideRail=function(){return e.visibility=!1,e.rail.visibility=!1,e.rail.css("display","none"),e};this.hideRailHr=function(){return e.railh?(e.railh.visibility=!1,e.railh.css("display","none"),e):e};this.show=function(){return e.hidden=!1,e.locked=!1,e.showRail().showRailHr()};this.hide=function(){return e.hidden=!0,e.locked=!0,e.hideRail().hideRailHr()};this.toggle=function(){return e.hidden?e.show():e.hide()};this.remove=function(){var r,i,n,u;for(e.stop(),e.cursortimeout&&clearTimeout(e.cursortimeout),e.doZoomOut(),e.unbindAll(),s.isie9&&e.win[0].detachEvent("onpropertychange",e.onAttributeChange),e.observer!==!1&&e.observer.disconnect(),e.observerremover!==!1&&e.observerremover.disconnect(),e.events=null,e.cursor&&e.cursor.remove(),e.cursorh&&e.cursorh.remove(),e.rail&&e.rail.remove(),e.railh&&e.railh.remove(),e.zoom&&e.zoom.remove(),r=0;r<e.saved.css.length;r++)i=e.saved.css[r],i[0].css(i[1],typeof i[2]=="undefined"?"":i[2]);e.saved=!1;e.me.data("__nicescroll","");n=t.nicescroll;n.each(function(t){if(this&&this.id===e.id){delete n[t];for(var i=++t;i<n.length;i++,t++)n[t]=n[i];n.length--;n.length&&delete n[n.length]}});for(u in e)e[u]=null,delete e[u];e=null};this.scrollstart=function(n){return this.onscrollstart=n,e};this.scrollend=function(n){return this.onscrollend=n,e};this.scrollcancel=function(n){return this.onscrollcancel=n,e};this.zoomin=function(n){return this.onzoomin=n,e};this.zoomout=function(n){return this.onzoomout=n,e};this.isScrollable=function(n){var i=n.target?n.target:n,r,u;if(i.nodeName=="OPTION")return!0;while(i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName)){if(r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u))return i.clientHeight!=i.scrollHeight;i=i.parentNode?i.parentNode:!1}return!1};this.getViewport=function(n){for(var i=n&&n.parentNode?n.parentNode:!1,r,u;i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName);){if((r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u)&&i.clientHeight!=i.scrollHeight)||r.getNiceScroll().length>0)return r;i=i.parentNode?i.parentNode:!1}return!1};this.onmousewheel=function(n){var t,i,r;return e.locked?(e.debounced("checkunlock",e.resize,250),!0):e.rail.drag?e.cancelEvent(n):(e.opt.oneaxismousemode=="auto"&&n.deltaX!=0&&(e.opt.oneaxismousemode=!1),e.opt.oneaxismousemode&&n.deltaX==0&&!e.rail.scrollable)?e.railh&&e.railh.scrollable?e.onmousewheelhr(n):!0:(t=+new Date,i=!1,e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:(r=g(n,!1,i),r&&(e.checkarea=0),r)};this.onmousewheelhr=function(n){if(e.locked||!e.railh.scrollable)return!0;if(e.rail.drag)return e.cancelEvent(n);var t=+new Date,i=!1;return(e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:e.locked?e.cancelEvent(n):g(n,!0,i)};this.stop=function(){return e.cancelScroll(),e.scrollmon&&e.scrollmon.stop(),e.cursorfreezed=!1,e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.noticeCursor(),e};this.getTransitionSpeed=function(n){var i=Math.round(e.opt.scrollspeed*10),t=Math.min(i,Math.round(n/20*e.opt.scrollspeed));return t>20?t:0};e.opt.smoothscroll?e.ishwscroll&&s.hastransition&&e.opt.usetransition?(this.prepareTransition=function(n,t){var i=t?n>20?n:0:e.getTransitionSpeed(n),r=i?s.prefixstyle+"transform "+i+"ms ease-out":"";return e.lasttransitionstyle&&e.lasttransitionstyle==r||(e.lasttransitionstyle=r,e.doc.css(s.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=e.getScrollTop(),u=e.getScrollLeft();if((((e.newscrolly-r)*(t-r)<0||(e.newscrollx-u)*(n-u)<0)&&e.cancelScroll(),e.opt.bouncescroll==!1&&(t<0?t=0:t>e.page.maxh&&(t=e.page.maxh),n<0?n=0:n>e.page.maxw&&(n=e.page.maxw)),e.scrollrunning&&n==e.newscrollx&&t==e.newscrolly)||(e.newscrolly=t,e.newscrollx=n,e.newscrollspeed=i||!1,e.timer))return!1;e.timer=setTimeout(function(){var u=e.getScrollTop(),f=e.getScrollLeft(),r={},o,i,h,c,l;r.x=n-f;r.y=t-u;r.px=f;r.py=u;o=Math.round(Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)));i=e.newscrollspeed&&e.newscrollspeed>1?e.newscrollspeed:e.getTransitionSpeed(o);e.newscrollspeed&&e.newscrollspeed<=1&&(i*=e.newscrollspeed);e.prepareTransition(i,!0);e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm);i>0&&(!e.scrollrunning&&e.onscrollstart&&(h={type:"scrollstart",current:{x:f,y:u},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:i},e.onscrollstart.call(e,h)),s.transitionend?e.scrollendtrapped||(e.scrollendtrapped=!0,e.bind(e.doc,s.transitionend,e.onScrollEnd,!1)):(e.scrollendtrapped&&clearTimeout(e.scrollendtrapped),e.scrollendtrapped=setTimeout(e.onScrollEnd,i)),c=u,l=f,e.timerscroll={bz:new BezierClass(c,e.newscrolly,i,0,0,.58,1),bh:new BezierClass(l,e.newscrollx,i,0,0,.58,1)},e.cursorfreezed||(e.timerscroll.tm=setInterval(function(){e.showCursor(e.getScrollTop(),e.getScrollLeft())},60)));e.synched("doScroll-set",function(){e.timer=0;e.scrollendtrapped&&(e.scrollrunning=!0);e.setScrollTop(e.newscrolly);e.setScrollLeft(e.newscrollx);e.scrollendtrapped||e.onScrollEnd()})},50)},this.cancelScroll=function(){if(!e.scrollendtrapped)return!0;var n=e.getScrollTop(),t=e.getScrollLeft();return e.scrollrunning=!1,s.transitionend||clearTimeout(s.transitionend),e.scrollendtrapped=!1,e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.prepareTransition(0),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,e.cursorfreezed=!1,e.showCursor(n,t),e},this.onScrollEnd=function(){var n,t,i;if(e.scrollendtrapped&&e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.scrollendtrapped=!1,e.prepareTransition(0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,n=e.getScrollTop(),t=e.getScrollLeft(),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.noticeCursor(!1,n,t),e.cursorfreezed=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),n!=e.newscrolly||t!=e.newscrollx)return e.doScrollPos(t,n,e.opt.snapbackspeed);e.onscrollend&&e.scrollrunning&&(i={type:"scrollend",current:{x:t,y:n},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,i));e.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,u){function v(){var r,n,t,u,f;if(e.cancelAnimationFrame)return!0;if(e.scrollrunning=!0,a=1-a,a)return e.timer=i(v)||1;r=0;n=sy=e.getScrollTop();e.dst.ay?(n=e.bzscroll?e.dst.py+e.bzscroll.getNow()*e.dst.ay:e.newscrolly,u=n-sy,(u<0&&n<e.newscrolly||u>0&&n>e.newscrolly)&&(n=e.newscrolly),e.setScrollTop(n),n==e.newscrolly&&(r=1)):r=1;t=sx=e.getScrollLeft();e.dst.ax?(t=e.bzscroll?e.dst.px+e.bzscroll.getNow()*e.dst.ax:e.newscrollx,u=t-sx,(u<0&&t<e.newscrollx||u>0&&t>e.newscrollx)&&(t=e.newscrollx),e.setScrollLeft(t),t==e.newscrollx&&(r+=1)):r+=1;r==2?(e.timer=0,e.cursorfreezed=!1,e.bzscroll=!1,e.scrollrunning=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),t!=e.newscrollx||n!=e.newscrolly?e.doScrollPos(t,n):e.onscrollend&&(f={type:"scrollend",current:{x:sx,y:sy},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,f))):e.timer=i(v)||1}var t=typeof t=="undefined"||t===!1?e.getScrollTop(!0):t,f,o,h,l,c,s,a,y;if(e.timer&&e.newscrolly==t&&e.newscrollx==n)return!0;(e.timer&&r(e.timer),e.timer=0,f=e.getScrollTop(),o=e.getScrollLeft(),((e.newscrolly-f)*(t-f)<0||(e.newscrollx-o)*(n-o)<0)&&e.cancelScroll(),e.newscrolly=t,e.newscrollx=n,e.bouncescroll&&e.rail.visibility||(e.newscrolly<0?e.newscrolly=0:e.newscrolly>e.page.maxh&&(e.newscrolly=e.page.maxh)),e.bouncescroll&&e.railh.visibility||(e.newscrollx<0?e.newscrollx=0:e.newscrollx>e.page.maxw&&(e.newscrollx=e.page.maxw)),e.dst={},e.dst.x=n-o,e.dst.y=t-f,e.dst.px=o,e.dst.py=f,h=Math.round(Math.sqrt(Math.pow(e.dst.x,2)+Math.pow(e.dst.y,2))),e.dst.ax=e.dst.x/h,e.dst.ay=e.dst.y/h,l=0,c=h,e.dst.x==0?(l=f,c=t,e.dst.ay=1,e.dst.py=0):e.dst.y==0&&(l=o,c=n,e.dst.ax=1,e.dst.px=0),s=e.getTransitionSpeed(h),u&&u<=1&&(s*=u),e.bzscroll=s>0?e.bzscroll?e.bzscroll.update(c,s):new BezierClass(l,c,s,0,1,0,1):!1,e.timer)||((f==e.page.maxh&&t>=e.page.maxh||o==e.page.maxw&&n>=e.page.maxw)&&e.checkContentSize(),a=1,e.cancelAnimationFrame=!1,e.timer=1,e.onscrollstart&&!e.scrollrunning&&(y={type:"scrollstart",current:{x:o,y:f},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:s},e.onscrollstart.call(e,y)),v(),(f==e.page.maxh&&t>=f||o==e.page.maxw&&n>=o)&&e.checkContentSize(),e.noticeCursor())},this.cancelScroll=function(){return e.timer&&r(e.timer),e.timer=0,e.bzscroll=!1,e.scrollrunning=!1,e}):(this.doScrollLeft=function(n,t){var i=e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var r=n>e.page.maxw?e.page.maxw:n,i;r<0&&(r=0);i=t>e.page.maxh?e.page.maxh:t;i<0&&(i=0);e.synched("scroll",function(){e.setScrollTop(i);e.setScrollLeft(r)})},this.cancelScroll=function(){});this.doScrollBy=function(n,t){var i=0,u,r;if(t?i=Math.floor((e.scroll.y-n)*e.scrollratio.y):(u=e.timer?e.newscrolly:e.getScrollTop(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.h/2),i<-r?i=-r:i>e.page.maxh+r&&(i=e.page.maxh+r)),e.cursorfreezed=!1,py=e.getScrollTop(!0),i<0&&py<=0)return e.noticeCursor();if(i>e.page.maxh&&py>=e.page.maxh)return e.checkContentSize(),e.noticeCursor();e.doScrollTop(i)};this.doScrollLeftBy=function(n,t){var i=0,u,r;if((t?i=Math.floor((e.scroll.x-n)*e.scrollratio.x):(u=e.timer?e.newscrollx:e.getScrollLeft(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.w/2),i<-r?i=-r:i>e.page.maxw+r&&(i=e.page.maxw+r)),e.cursorfreezed=!1,px=e.getScrollLeft(!0),i<0&&px<=0)||i>e.page.maxw&&px>=e.page.maxw)return e.noticeCursor();e.doScrollLeft(i)};this.doScrollTo=function(n,t){var i=t?Math.round(n*e.scrollratio.y):n;i<0?i=0:i>e.page.maxh&&(i=e.page.maxh);e.cursorfreezed=!1;e.doScrollTop(n)};this.checkContentSize=function(){var n=e.getContentSize();(n.h!=e.page.h||n.w!=e.page.w)&&e.resize(!1,n)};e.onscroll=function(){e.rail.drag||e.cursorfreezed||e.synched("scroll",function(){e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y));e.railh&&(e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)));e.noticeCursor()})};e.bind(e.docscroll,"scroll",e.onscroll);this.doZoomIn=function(n){var r,f,h,i,o;if(!e.zoomactive){e.zoomactive=!0;e.zoomrestore={style:{}};r=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"];f=e.win[0].style;for(h in r)i=r[h],e.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:"";return e.zoomrestore.style.width=e.win.css("width"),e.zoomrestore.style.height=e.win.css("height"),e.zoomrestore.padding={w:e.win.outerWidth()-e.win.width(),h:e.win.outerHeight()-e.win.height()},s.isios4&&(e.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),e.win.css({position:s.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),o=e.win.css("backgroundColor"),(o==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(o))&&e.win.css("backgroundColor","#fff"),e.rail.css({"z-index":u+101}),e.zoom.css({"z-index":u+102}),e.zoom.css("backgroundPosition","0px -18px"),e.resizeZoom(),e.onzoomin&&e.onzoomin.call(e),e.cancelEvent(n)}};this.doZoomOut=function(n){if(e.zoomactive)return e.zoomactive=!1,e.win.css("margin",""),e.win.css(e.zoomrestore.style),s.isios4&&t(window).scrollTop(e.zoomrestore.scrollTop),e.rail.css({"z-index":e.zindex}),e.zoom.css({"z-index":e.zindex}),e.zoomrestore=!1,e.zoom.css("backgroundPosition","0px 0px"),e.onResize(),e.onzoomout&&e.onzoomout.call(e),e.cancelEvent(n)};this.doZoom=function(n){return e.zoomactive?e.doZoomOut(n):e.doZoomIn(n)};this.resizeZoom=function(){if(e.zoomactive){var n=e.getScrollTop();e.win.css({width:t(window).width()-e.zoomrestore.padding.w+"px",height:t(window).height()-e.zoomrestore.padding.h+"px"});e.onResize();e.setScrollTop(Math.min(e.page.maxh,n))}};this.init();t.nicescroll.push(this)},b=function(n){var t=this;this.nc=n;this.lastx=0;this.lasty=0;this.speedx=0;this.speedy=0;this.lasttime=0;this.steptime=0;this.snapx=!1;this.snapy=!1;this.demulx=0;this.demuly=0;this.lastscrollx=-1;this.lastscrolly=-1;this.chkx=0;this.chky=0;this.timer=0;this.time=function(){return+new Date};this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0;t.lasttime=r;t.speedx=0;t.speedy=0;t.lastx=n;t.lasty=i;t.lastscrollx=-1;t.lastscrolly=-1};this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime;t.lasttime=r;var u=i-t.lasty,f=n-t.lastx,s=t.nc.getScrollTop(),h=t.nc.getScrollLeft(),e=s+u,o=h+f;t.snapx=o<0||o>t.nc.page.maxw;t.snapy=e<0||e>t.nc.page.maxh;t.speedx=f;t.speedy=u;t.lastx=n;t.lasty=i};this.stop=function(){t.nc.unsynched("domomentum2d");t.timer&&clearTimeout(t.timer);t.timer=0;t.lastscrollx=-1;t.lastscrolly=-1};this.doSnapy=function(n,i){var r=!1;i<0?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0);n<0?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0);r&&t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed)};this.doMomentum=function(n){var e=t.time(),c=n?e+n:t.lasttime,l=t.nc.getScrollLeft(),a=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw,f,v,y,u,h;if(t.speedx=s>0?Math.min(60,t.speedx):0,t.speedy=o>0?Math.min(60,t.speedy):0,f=c&&e-c<=60,(a<0||a>o||l<0||l>s)&&(f=!1),v=t.speedy&&f?t.speedy:!1,y=t.speedx&&f?t.speedx:!1,v||y){u=Math.max(16,t.steptime);u>50&&(h=u/50,t.speedx*=h,t.speedy*=h,u=50);t.demulxy=0;t.lastscrollx=t.nc.getScrollLeft();t.chkx=t.lastscrollx;t.lastscrolly=t.nc.getScrollTop();t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,p=function(){var n=t.time()-e>600?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,(i<0||i>s)&&(n=.1));t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,(r<0||r>o)&&(n=.1));t.demulxy=Math.min(1,t.demulxy+n);t.nc.synched("domomentum2d",function(){var n,u;t.speedx&&(n=t.nc.getScrollLeft(),n!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i));t.speedy&&(u=t.nc.getScrollTop(),u!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r));t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))});t.demulxy<1?t.timer=setTimeout(p,u):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};p()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},c=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollTop():c.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):c.call(n,i),this}};n.fn.scrollTop=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():c.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(n)):c.call(t(this),n)})};f=n.fn.scrollLeft;t.cssHooks.pageXOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(n,i),this}};n.fn.scrollLeft=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(n)):f.call(t(this),n)})};e=function(n){var i=this,r;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0,r=0;t<i.length;t++)n.call(i[t],r++);return i},this.push=function(n){i[i.length]=n;i.length++},this.eq=function(n){return i[n]},n)for(a=0;a<n.length;a++)r=t.data(n[a],"__nicescroll")||!1,r&&(this[this.length]=r,this.length++);return this};rt(e.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}});n.fn.getNiceScroll=function(n){return typeof n=="undefined"?new e(this):this[n]&&t.data(this[n],"__nicescroll")||!1};n.extend(n.expr[":"],{nicescroll:function(n){return t.data(n,"__nicescroll")?!0:!1}});t.fn.niceScroll=function(n,i){var r,u;return typeof i=="undefined"&&(typeof n!="object"||"jquery"in n||(i=n,n=!1)),r=new e,typeof i=="undefined"&&(i={}),(n||!1)&&(i.doc=t(n),i.win=t(this)),u=!("doc"in i),u||"win"in i||(i.win=t(this)),this.each(function(){var n=t(this).data("__nicescroll")||!1;n||(i.doc=u?t(this):i.doc,n=new it(i,t(this)),t(this).data("__nicescroll",n));r.push(n)}),r.length==1?r[0]:r};window.NiceScroll={getjQuery:function(){return n}};t.nicescroll||(t.nicescroll=new e,t.nicescroll.options=w)}(jQuery),function(n){"use strict";function l(n,t){return t=t||Error,function(){var f=2,i=arguments,o=i[0],u="["+(n?n+":":"")+o+"] ",s=i[1],e,r;for(u+=s.replace(/\{\d+\}/g,function(n){var r=+n.slice(1,-1),t=r+f;return t<i.length?os(i[t]):n}),u+="\nhttp://errors.angularjs.org/1.5.5/"+(n?n+"/":"")+o,r=f,e="?";r<i.length;r++,e="&")u+=e+"p"+(r-f)+"="+encodeURIComponent(os(i[r]));return new t(u)}}function ei(n){if(n==null||fr(n))return!1;if(c(n)||h(n)||e&&n instanceof e)return!0;var t="length"in Object(n)&&n.length;return w(t)&&(t>=0&&(t-1 in n||n instanceof Array)||typeof n.item=="function")}function t(n,i,r){var u,e,o;if(n)if(f(n))for(u in n)u!="prototype"&&u!="length"&&u!="name"&&(!n.hasOwnProperty||n.hasOwnProperty(u))&&i.call(r,n[u],u,n);else if(c(n)||ei(n))for(o=typeof n!="object",u=0,e=n.length;u<e;u++)(o||u in n)&&i.call(r,n[u],u,n);else if(n.forEach&&n.forEach!==t)n.forEach(i,r,n);else if(vo(n))for(u in n)i.call(r,n[u],u,n);else if(typeof n.hasOwnProperty=="function")for(u in n)n.hasOwnProperty(u)&&i.call(r,n[u],u,n);else for(u in n)at.call(n,u)&&i.call(r,n[u],u,n);return n}function ho(n,t,i){for(var r=Object.keys(n).sort(),u=0;u<r.length;u++)t.call(i,n[r[u]],r[u]);return r}function co(n){return function(t,i){n(i,t)}}function ou(){return++la}function lo(n,t){t?n.$$hashKey=t:delete n.$$hashKey}function yf(n,t,i){for(var e,l,o,a,u,r,v=n.$$hashKey,h=0,y=t.length;h<y;++h)if(e=t[h],s(e)||f(e))for(l=Object.keys(e),o=0,a=l.length;o<a;o++)u=l[o],r=e[u],i&&s(r)?et(r)?n[u]=new Date(r.valueOf()):ur(r)?n[u]=new RegExp(r):r.nodeName?n[u]=r.cloneNode(!0):bf(r)?n[u]=r.clone():(s(n[u])||(n[u]=c(r)?[]:{}),yf(n[u],[r],!0)):n[u]=r;return lo(n,v),n}function v(n){return yf(n,ir.call(arguments,1),!1)}function aa(n){return yf(n,ir.call(arguments,1),!0)}function tt(n){return parseInt(n,10)}function pf(n,t){return v(Object.create(n),t)}function o(){}function rr(n){return n}function ft(n){return function(){return n}}function ao(n){return f(n.toString)&&n.toString!==rt}function r(n){return typeof n=="undefined"}function u(n){return typeof n!="undefined"}function s(n){return n!==null&&typeof n=="object"}function vo(n){return n!==null&&typeof n=="object"&&!so(n)}function h(n){return typeof n=="string"}function w(n){return typeof n=="number"}function et(n){return rt.call(n)==="[object Date]"}function f(n){return typeof n=="function"}function ur(n){return rt.call(n)==="[object RegExp]"}function fr(n){return n&&n.window===n}function er(n){return n&&n.$evalAsync&&n.$watch}function va(n){return rt.call(n)==="[object File]"}function ya(n){return rt.call(n)==="[object FormData]"}function pa(n){return rt.call(n)==="[object Blob]"}function oi(n){return typeof n=="boolean"}function su(n){return n&&f(n.then)}function wa(n){return n&&w(n.length)&&yo.test(rt.call(n))}function ba(n){return rt.call(n)==="[object ArrayBuffer]"}function bf(n){return!!(n&&(n.nodeName||n.prop&&n.attr&&n.find))}function ka(n){for(var i={},r=n.split(","),t=0;t<r.length;t++)i[r[t]]=!0;return i}function vt(n){return a(n.nodeName||n[0]&&n[0].nodeName)}function or(n,t){var i=n.indexOf(t);return i>=0&&n.splice(i,1),i}function ni(n,i){function o(n,t){var e=t.$$hashKey,i,u,f;if(c(n))for(u=0,f=n.length;u<f;u++)t.push(r(n[u]));else if(vo(n))for(i in n)t[i]=r(n[i]);else if(n&&typeof n.hasOwnProperty=="function")for(i in n)n.hasOwnProperty(i)&&(t[i]=r(n[i]));else for(i in n)at.call(n,i)&&(t[i]=r(n[i]));return lo(t,e),t}function r(n){var i,r,t;if(!s(n))return n;if(i=u.indexOf(n),i!==-1)return e[i];if(fr(n)||er(n))throw fi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");return r=!1,t=h(n),t===undefined&&(t=c(n)?[]:Object.create(so(n)),r=!0),u.push(n),e.push(t),r?o(n,t):t}function h(n){var t,i;switch(rt.call(n)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new n.constructor(r(n.buffer));case"[object ArrayBuffer]":return n.slice?n.slice(0):(t=new ArrayBuffer(n.byteLength),new Uint8Array(t).set(new Uint8Array(n)),t);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new n.constructor(n.valueOf());case"[object RegExp]":return i=new RegExp(n.source,n.toString().match(/[^\/]*$/)[0]),i.lastIndex=n.lastIndex,i;case"[object Blob]":return new n.constructor([n],{type:n.type})}if(f(n.cloneNode))return n.cloneNode(!0)}var u=[],e=[];if(i){if(wa(i)||ba(i))throw fi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(n===i)throw fi("cpi","Can't copy! Source and destination are identical.");return c(i)?i.length=0:t(i,function(n,t){t!=="$$hashKey"&&delete i[t]}),u.push(n),e.push(i),o(n,i)}return r(n)}function ot(n,t){var i,u,r;if(c(n))for(t=t||[],i=0,u=n.length;i<u;i++)t[i]=n[i];else if(s(n)){t=t||{};for(r in n)r.charAt(0)==="$"&&r.charAt(1)==="$"||(t[r]=n[r])}return t||n}function st(n,t){if(n===t)return!0;if(n===null||t===null)return!1;if(n!==n&&t!==t)return!0;var e=typeof n,s=typeof t,o,i,r;if(e==s&&e=="object")if(c(n)){if(!c(t))return!1;if((o=n.length)==t.length){for(i=0;i<o;i++)if(!st(n[i],t[i]))return!1;return!0}}else{if(et(n))return et(t)?st(n.getTime(),t.getTime()):!1;if(ur(n))return ur(t)?n.toString()==t.toString():!1;if(er(n)||er(t)||fr(n)||fr(t)||c(t)||et(t)||ur(t))return!1;r=p();for(i in n)if(i.charAt(0)!=="$"&&!f(n[i])){if(!st(n[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&i.charAt(0)!=="$"&&u(t[i])&&!f(t[i]))return!1;return!0}return!1}function hr(n,t,i){return n.concat(ir.call(t,i))}function cr(n,t){return ir.call(n,t||0)}function po(n,t){var i=arguments.length>2?cr(arguments,2):[];return!f(t)||t instanceof RegExp?t:i.length?function(){return arguments.length?t.apply(n,hr(i,arguments,0)):t.apply(n,i)}:function(){return arguments.length?t.apply(n,arguments):t.call(n)}}function wo(t,i){var r=i;return typeof t=="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"?r=undefined:fr(i)?r="$WINDOW":i&&n.document===i?r="$DOCUMENT":er(i)&&(r="$SCOPE"),r}function lr(n,t){return r(n)?undefined:(w(t)||(t=t?2:null),JSON.stringify(n,wo,t))}function bo(n){return h(n)?JSON.parse(n):n}function go(n,t){n=n.replace(ko,"");var i=Date.parse("Jan 01, 1970 00:00:00 "+n)/6e4;return isNaN(i)?t:i}function da(n,t){return n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+t),n}function kf(n,t,i){i=i?-1:1;var r=n.getTimezoneOffset(),u=go(t,r);return da(n,i*(u-r))}function yt(n){n=e(n).clone();try{n.empty()}catch(i){}var t=e("<div>").append(n).html();try{return n[0].nodeType===ki?a(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(n,t){return"<"+a(t)})}catch(i){return a(t)}}function ns(n){try{return decodeURIComponent(n)}catch(t){}}function ts(n){var i={};return t((n||"").split("&"),function(n){var f,t,r;n&&(t=n=n.replace(/\+/g,"%20"),f=n.indexOf("="),f!==-1&&(t=n.substring(0,f),r=n.substring(f+1)),t=ns(t),u(t)&&(r=u(r)?ns(r):!0,at.call(i,t)?c(i[t])?i[t].push(r):i[t]=[i[t],r]:i[t]=r))}),i}function df(n){var i=[];return t(n,function(n,r){c(n)?t(n,function(n){i.push(ct(r,!0)+(n===!0?"":"="+ct(n,!0)))}):i.push(ct(r,!0)+(n===!0?"":"="+ct(n,!0)))}),i.length?i.join("&"):""}function hu(n){return ct(n,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ct(n,t){return encodeURIComponent(n).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ga(n,t){for(var i,u=si.length,r=0;r<u;++r)if(i=si[r]+t,h(i=n.getAttribute(i)))return i;return null}function nv(n,i){var r,u,f={};t(si,function(t){var i=t+"app";!r&&n.hasAttribute&&n.hasAttribute(i)&&(r=n,u=n.getAttribute(i))});t(si,function(t){var f=t+"app",i;!r&&(i=n.querySelector("["+f.replace(":","\\:")+"]"))&&(r=i,u=i.getAttribute(f))});r&&(f.strictDi=ga(r,"strict-di")!==null,i(r,u?[u]:[],f))}function is(i,r,u){var o;s(u)||(u={});o={strictDi:!1};u=v(o,u);var h=function(){var f,t;if(i=e(i),i.injector()){f=i[0]===n.document?"document":yt(i);throw fi("btstrpd","App already bootstrapped with this element '{0}'",f.replace(/</,"&lt;").replace(/>/,"&gt;"));}return r=r||[],r.unshift(["$provide",function(n){n.value("$rootElement",i)}]),u.debugInfoEnabled&&r.push(["$compileProvider",function(n){n.debugInfoEnabled(!0)}]),r.unshift("ng"),t=br(r,u.strictDi),t.invoke(["$rootScope","$rootElement","$compile","$injector",function(n,t,i,r){n.$apply(function(){t.data("$injector",r);i(t)(n)})}]),t},c=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(n&&c.test(n.name)&&(u.debugInfoEnabled=!0,n.name=n.name.replace(c,"")),n&&!l.test(n.name))return h();n.name=n.name.replace(l,"");ut.resumeBootstrap=function(n){return t(n,function(n){r.push(n)}),h()};f(ut.resumeDeferredBootstrap)&&ut.resumeDeferredBootstrap()}function tv(){n.name="NG_ENABLE_DEBUG_INFO!"+n.name;n.location.reload()}function iv(n){var t=ut.element(n).injector();if(!t)throw fi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function us(n,t){return t=t||"_",n.replace(rs,function(n,i){return(i?t:"")+n.toLowerCase()})}function rv(){var i,t;gf||(t=sr(),bt=r(t)?n.jQuery:t?n[t]:undefined,bt&&bt.fn.on?(e=bt,v(bt.fn,{scope:hi.scope,isolateScope:hi.isolateScope,controller:hi.controller,injector:hi.injector,inheritedData:hi.inheritedData}),i=bt.cleanData,bt.cleanData=function(n){for(var t,u=0,r;(r=n[u])!=null;u++)t=bt._data(r,"events"),t&&t.$destroy&&bt(r).triggerHandler("$destroy");i(n)}):e=b,ut.element=e,gf=!0)}function cu(n,t,i){if(!n)throw fi("areq","Argument '{0}' is {1}",t||"?",i||"required");return n}function wi(n,t,i){return i&&c(n)&&(n=n[n.length-1]),cu(f(n),t,"not a function, got "+(n&&typeof n=="object"?n.constructor.name||"Object":typeof n)),n}function bi(n,t){if(n==="hasOwnProperty")throw fi("badname","hasOwnProperty is not a valid {0} name",t);}function fs(n,t,i){var r;if(!t)return n;var u=t.split("."),e,o=n,s=u.length;for(r=0;r<s;r++)e=u[r],n&&(n=(o=n)[e]);return!i&&f(n)?po(o,n):n}function lu(n){for(var t=n[0],u=n[n.length-1],i,r=1;t!==u&&(t=t.nextSibling);r++)(i||n[r]!==t)&&(i||(i=e(ir.call(n,0,r))),i.push(t));return i||n}function p(){return Object.create(null)}function fv(n){function t(n,t,i){return n[t]||(n[t]=i())}var r=l("$injector"),u=l("ng"),i=t(n,"angular",Object);return i.$$minErr=i.$$minErr||l,t(i,"module",function(){var n={};return function(i,e,o){var s=function(n,t){if(n==="hasOwnProperty")throw u("badname","hasOwnProperty is not a valid {0} name",t);};return s(i,"module"),e&&n.hasOwnProperty(i)&&(n[i]=null),t(n,i,function(){function s(n,i,r,f){return f||(f=t),function(){return f[r||"push"]([n,i,arguments]),u}}function n(n,r){return function(e,o){return o&&f(o)&&(o.$$moduleName=i),t.push([n,r,arguments]),u}}if(!e)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var t=[],h=[],c=[],l=s("$injector","invoke","push",h),u={_invokeQueue:t,_configBlocks:h,_runBlocks:c,requires:e,name:i,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:s("$provide","value"),constant:s("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:l,run:function(n){return c.push(n),this}};return o&&l(o),u})}})}function ev(n){var t=[];return JSON.stringify(n,function(n,i){if(i=wo(n,i),s(i)){if(t.indexOf(i)>=0)return"...";t.push(i)}return i})}function os(n){return typeof n=="function"?n.toString().replace(/ \{[\s\S]*$/,""):r(n)?"undefined":typeof n!="string"?ev(n):n}function ov(i){v(i,{bootstrap:is,copy:ni,extend:v,merge:aa,equals:st,element:e,forEach:t,injector:br,noop:o,bind:po,toJson:lr,fromJson:bo,identity:rr,isUndefined:r,isDefined:u,isString:h,isFunction:f,isObject:s,isNumber:w,isElement:bf,isArray:c,version:ss,isDate:et,lowercase:a,uppercase:tr,callbacks:{counter:0},getTestability:iv,$$minErr:l,$$csp:ti,reloadWithDebugInfo:tv});vf=fv(n);vf("ng",["ngLocale"],["$provide",function(n){n.provider({$$sanitizeUri:bw});n.provider("$compile",gs).directive({a:il,input:al,textarea:al,form:gb,script:eg,select:cg,style:ag,option:lg,ngBind:pk,ngBindHtml:bk,ngBindTemplate:wk,ngClass:dk,ngClassEven:nd,ngClassOdd:gk,ngCloak:td,ngController:id,ngForm:nk,ngHide:gd,ngIf:ud,ngInclude:fd,ngInit:od,ngNonBindable:vd,ngPluralize:bd,ngRepeat:kd,ngShow:dd,ngStyle:ng,ngSwitch:tg,ngSwitchWhen:ig,ngSwitchDefault:rg,ngOptions:wd,ngTransclude:fg,ngModel:cd,ngList:sd,ngChange:kk,pattern:ra,ngPattern:ra,required:ia,ngRequired:ia,minlength:fa,ngMinlength:fa,maxlength:ua,ngMaxlength:ua,ngValue:yk,ngModelOptions:ad}).directive({ngInclude:ed}).directive(tu).directive(vl);n.provider({$anchorScroll:ay,$animate:ky,$animateCss:np,$$animateJs:wy,$$animateQueue:by,$$AnimateRunner:gy,$$animateAsyncRun:dy,$browser:ip,$cacheFactory:rp,$controller:ep,$document:op,$exceptionHandler:sp,$filter:lc,$$forceReflow:hp,$interpolate:nw,$interval:tw,$http:bp,$httpParamSerializer:yp,$httpParamSerializerJQLike:pp,$httpBackend:dp,$xhrFactory:kp,$location:ew,$log:ow,$parse:aw,$rootScope:ww,$q:vw,$$q:yw,$sce:gw,$sceDelegate:dw,$sniffer:nb,$templateCache:up,$templateRequest:tb,$$testability:ib,$timeout:rb,$window:ub,$$rAF:pw,$$jqLite:ry,$$HashMap:uy,$$cookieReader:fb})}])}function hv(){return++sv}function yr(n){return n.replace(cv,function(n,t,i,r){return r?i.toUpperCase():i}).replace(lv,"Moz$1")}function ie(n){return!vv.test(n)}function hs(n){var t=n.nodeType;return t===kt||!t||t===es}function wv(n){for(var t in ar[n.ng339])return!0;return!1}function bv(n){for(var t=0,i=n.length;t<i;t++)pr(n[t])}function cs(n,i){var r,o,f,u=i.createDocumentFragment(),e=[],s;if(ie(n))e.push(i.createTextNode(n));else{for(r=r||u.appendChild(i.createElement("div")),o=(yv.exec(n)||["",""])[1].toLowerCase(),f=lt[o]||lt._default,r.innerHTML=f[1]+n.replace(pv,"<$1><\/$2>")+f[2],s=f[0];s--;)r=r.lastChild;e=hr(e,r.childNodes);r=u.firstChild;r.textContent=""}return u.textContent="",u.innerHTML="",t(e,function(n){u.appendChild(n)}),u}function kv(t,i){i=i||n.document;var r;return(r=av.exec(t))?[i.createElement(r[1])]:(r=cs(t,i))?r.childNodes:[]}function ls(n,t){var i=n.parentNode;i&&i.replaceChild(t,n);t.appendChild(n)}function b(n){if(n instanceof b)return n;var t;if(h(n)&&(n=y(n),t=!0),!(this instanceof b)){if(t&&n.charAt(0)!="<")throw te("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new b(n)}t?fe(this,kv(n)):fe(this,n)}function re(n){return n.cloneNode(!0)}function pu(n,t){var r,i,u;if(t||pr(n),n.querySelectorAll)for(r=n.querySelectorAll("*"),i=0,u=r.length;i<u;i++)pr(r[i])}function vs(n,i,r,f){var h;if(u(f))throw te("offargs","jqLite#off() does not support the `selector` argument");var e=wu(n),o=e&&e.events,s=e&&e.handle;if(s)if(i)h=function(t){var i=o[t];u(r)&&or(i||[],r);u(r)&&i&&i.length>0||(vr(n,t,s),delete o[t])},t(i.split(" "),function(n){h(n);yu[n]&&h(yu[n])});else for(i in o)i!=="$destroy"&&vr(n,i,s),delete o[i]}function pr(n,t){var r=n.ng339,i=r&&ar[r];if(i){if(t){delete i.data[t];return}i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),vs(n));delete ar[r];n.ng339=undefined}}function wu(n,t){var i=n.ng339,r=i&&ar[i];return t&&!r&&(n.ng339=i=hv(),r=ar[i]={events:{},data:{},handle:undefined}),r}function ue(n,t,i){if(hs(n)){var f=u(i),e=!f&&t&&!s(t),h=!t,o=wu(n,!e),r=o&&o.data;if(f)r[t]=i;else{if(h)return r;if(e)return r&&r[t];v(r,t)}}}function bu(n,t){return n.getAttribute?(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1:!1}function ku(n,i){i&&n.setAttribute&&t(i.split(" "),function(t){n.setAttribute("class",y((" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+y(t)+" "," ")))})}function du(n,i){if(i&&n.setAttribute){var r=(" "+(n.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");t(i.split(" "),function(n){n=y(n);r.indexOf(" "+n+" ")===-1&&(r+=n+" ")});n.setAttribute("class",y(r))}}function fe(n,t){var i,r;if(t)if(t.nodeType)n[n.length++]=t;else if(i=t.length,typeof i=="number"&&t.window!==t){if(i)for(r=0;r<i;r++)n[n.length++]=t[r]}else n[n.length++]=t}function ys(n,t){return gu(n,"$"+(t||"ngController")+"Controller")}function gu(n,t,i){var f,r,o;for(n.nodeType==es&&(n=n.documentElement),f=c(t)?t:[t];n;){for(r=0,o=f.length;r<o;r++)if(u(i=e.data(n,f[r])))return i;n=n.parentNode||n.nodeType===ne&&n.host}}function ps(n){for(pu(n,!0);n.firstChild;)n.removeChild(n.firstChild)}function nf(n,t){t||pu(n);var i=n.parentNode;i&&i.removeChild(n)}function dv(t,i){if(i=i||n,i.document.readyState==="complete")i.setTimeout(t);else e(i).on("load",t)}function ws(n,t){var i=wr[t.toLowerCase()];return i&&ee[vt(n)]&&i}function gv(n){return oe[n]}function ny(n,t){var i=function(i,u){var f,e,s,h,o;if(i.isDefaultPrevented=function(){return i.defaultPrevented},f=t[u||i.type],e=f?f.length:0,e)for(r(i.immediatePropagationStopped)&&(s=i.stopImmediatePropagation,i.stopImmediatePropagation=function(){i.immediatePropagationStopped=!0;i.stopPropagation&&i.stopPropagation();s&&s.call(i)}),i.isImmediatePropagationStopped=function(){return i.immediatePropagationStopped===!0},h=f.specialHandlerWrapper||ty,e>1&&(f=ot(f)),o=0;o<e;o++)i.isImmediatePropagationStopped()||h(n,i,f[o])};return i.elem=n,i}function ty(n,t,i){i.call(n,t)}function iy(n,t,i){var r=t.relatedTarget;r&&(r===n||as.call(n,r))||i.call(n,t)}function ry(){this.$get=function(){return v(b,{hasClass:function(n,t){return n.attr&&(n=n[0]),bu(n,t)},addClass:function(n,t){return n.attr&&(n=n[0]),du(n,t)},removeClass:function(n,t){return n.attr&&(n=n[0]),ku(n,t)}})}}function ci(n,t){var r=n&&n.$$hashKey,i;return r?(typeof r=="function"&&(r=n.$$hashKey()),r):(i=typeof n,i=="function"||i=="object"&&n!==null?n.$$hashKey=i+":"+(t||ou)():i+":"+n)}function di(n,i){if(i){var r=0;this.nextUid=function(){return++r}}t(n,this.put,this)}function bs(n){var t=Function.prototype.toString.call(n).replace(hy,"");return t.match(fy)||t.match(ey)}function cy(n){var t=bs(n);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ly(n,i,r){var u,e,f;if(typeof n=="function"){if(!(u=n.$inject)){if(u=[],n.length){if(i){h(r)&&r||(r=n.name||cy(n));throw li("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",r);}e=bs(n);t(e[1].split(oy),function(n){n.replace(sy,function(n,t,i){u.push(i)})})}n.$inject=u}}else c(n)?(f=n.length-1,wi(n[f],"fn"),u=n.slice(0,f)):wi(n,"fn",!0);return u}function br(n,i){function v(n){return function(i,r){if(s(i))t(i,co(n));else return n(i,r)}}function g(n,t){if(bi(n,"service"),(f(t)||c(t))&&(t=o.instantiate(t)),!t.$get)throw li("pget","Provider '{0}' must define $get factory method.",n);return e[n+l]=t}function it(n,t){return function(){var i=u.invoke(t,this);if(r(i))throw li("undef","Provider '{0}' must return a value from $get factory method.",n);return i}}function w(n,t,i){return g(n,{$get:i!==!1?it(n,t):t})}function rt(n,t){return w(n,["$injector",function(n){return n.instantiate(t)}])}function et(n,t){return w(n,ft(t),!1)}function ot(n,t){bi(n,"constant");e[n]=t;k[n]=t}function st(n,t){var i=o.get(n+l),r=i.$get;i.$get=function(){var n=u.invoke(r,i);return u.invoke(t,null,{$delegate:n})}}function nt(n){cu(r(n)||c(n),"modulesToLoad","not an array");var i=[],u;return t(n,function(n){function r(n){for(var i,r,t=0,u=n.length;t<u;t++)i=n[t],r=o.get(i[0]),r[i[1]].apply(r,i[2])}if(!b.get(n)){b.put(n,!0);try{h(n)?(u=vf(n),i=i.concat(nt(u.requires)).concat(u._runBlocks),r(u._invokeQueue),r(u._configBlocks)):f(n)?i.push(o.invoke(n)):c(n)?i.push(o.invoke(n)):wi(n,"module")}catch(t){c(n)&&(n=n[n.length-1]);t.message&&t.stack&&t.stack.indexOf(t.message)==-1&&(t=t.message+"\n"+t.stack);throw li("modulerr","Failed to instantiate module {0} due to:\n{1}",n,t.stack||t.message||t);}}}),i}function tt(n,t){function r(i,r){if(n.hasOwnProperty(i)){if(n[i]===y)throw li("cdep","Circular dependency found: {0}",i+" <- "+a.join(" <- "));return n[i]}try{return a.unshift(i),n[i]=y,n[i]=t(i,r)}catch(u){n[i]===y&&delete n[i];throw u;}finally{a.shift()}}function u(n,t,u){for(var f,o=[],s=br.$$annotate(n,i,u),e=0,h=s.length;e<h;e++){if(f=s[e],typeof f!="string")throw li("itkn","Incorrect injection token! Expected service name as string, got {0}",f);o.push(t&&t.hasOwnProperty(f)?t[f]:r(f,u))}return o}function f(n){return gt<=11?!1:typeof n=="function"&&/^(?:class\s|constructor\()/.test(Function.prototype.toString.call(n))}function o(n,t,i,r){typeof i=="string"&&(r=i,i=null);var e=u(n,i,r);return c(n)&&(n=n[n.length-1]),f(n)?(e.unshift(null),new(Function.prototype.bind.apply(n,e))):n.apply(t,e)}function s(n,t,i){var f=c(n)?n[n.length-1]:n,r=u(n,t,i);return r.unshift(null),new(Function.prototype.bind.apply(f,r))}return{invoke:o,instantiate:s,get:r,annotate:br.$$annotate,has:function(t){return e.hasOwnProperty(t+l)||n.hasOwnProperty(t)}}}var d;i=i===!0;var y={},l="Provider",a=[],b=new di([],!0),e={$provide:{provider:v(g),factory:v(w),service:v(rt),value:v(et),constant:v(ot),decorator:st}},o=e.$injector=tt(e,function(n,t){ut.isString(t)&&a.push(t);throw li("unpr","Unknown provider: {0}",a.join(" <- "));}),k={},p=tt(k,function(n,t){var i=o.get(n+l,t);return u.invoke(i.$get,i,undefined,n)}),u=p;return e["$injector"+l]={$get:ft(p)},d=nt(n),u=p.get("$injector"),u.strictDi=i,t(d,function(n){n&&u.invoke(n)}),u}function ay(){var n=!0;this.disableAutoScrolling=function(){n=!1};this.$get=["$window","$location","$rootScope",function(t,i,r){function s(n){var t=null;return Array.prototype.some.call(n,function(n){if(vt(n)==="a")return t=n,!0}),t}function c(){var n=e.yOffset,i,r;return f(n)?n=n():bf(n)?(i=n[0],r=t.getComputedStyle(i),n=r.position!=="fixed"?0:i.getBoundingClientRect().bottom):w(n)||(n=0),n}function u(n){var i,r;n?(n.scrollIntoView(),i=c(),i&&(r=n.getBoundingClientRect().top,t.scrollBy(0,r-i))):t.scrollTo(0,0)}function e(n){n=h(n)?n:i.hash();var t;n?(t=o.getElementById(n))?u(t):(t=s(o.getElementsByName(n)))?u(t):n==="top"&&u(null):u(null)}var o=t.document;return n&&r.$watch(function(){return i.hash()},function(n,t){(n!==t||n!=="")&&dv(function(){r.$evalAsync(e)})}),e}]}function kr(n,t){return!n&&!t?"":n?t?(c(n)&&(n=n.join(" ")),c(t)&&(t=t.join(" ")),n+" "+t):n:t}function yy(n){for(var i,t=0;t<n.length;t++)if(i=n[t],i.nodeType===vy)return i}function py(n){h(n)&&(n=n.split(" "));var i=p();return t(n,function(n){n.length&&(i[n]=!0)}),i}function ai(n){return s(n)?n:{}}function tp(n,i,u,f){function d(n){try{n.apply(null,cr(arguments,1))}finally{if(l--,l===0)while(b.length)try{b.pop()()}catch(t){u.error(t)}}}function et(n){var t=n.indexOf("#");return t===-1?"":n.substr(t)}function tt(){y=null;it();rt()}function it(){h=ht();h=r(h)?null:h;st(h,k)&&(h=k);k=h}function rt(){(v!==s.url()||a!==h)&&(v=s.url(),a=h,t(g,function(n){n(s.url(),h)}))}var s=this,c=n.location,p=n.history,ut=n.setTimeout,ft=n.clearTimeout,w={},l,b,g,nt,k;s.isMock=!1;l=0;b=[];s.$$completeOutstandingRequest=d;s.$$incOutstandingRequestCount=function(){l++};s.notifyWhenNoOutstandingRequests=function(n){l===0?n():b.push(n)};var h,a,v=c.href,ot=i.find("base"),y=null,ht=f.history?function(){try{return p.state}catch(n){}}:o;it();a=h;s.url=function(t,i,u){var o,e;return r(u)&&(u=null),c!==n.location&&(c=n.location),p!==n.history&&(p=n.history),t?(o=a===u,v===t&&(!f.history||o))?s:(e=v&&vi(v)===vi(t),v=t,a=u,!f.history||e&&o?((!e||y)&&(y=t),i?c.replace(t):e?c.hash=et(t):c.href=t,c.href!==t&&(y=t)):(p[i?"replaceState":"pushState"](u,"",t),it(),a=h),s):y||c.href.replace(/%27/g,"'")};s.state=function(){return h};g=[];nt=!1;k=null;s.onUrlChange=function(t){if(!nt){if(f.history)e(n).on("popstate",tt);e(n).on("hashchange",tt);nt=!0}return g.push(t),t};s.$$applicationDestroyed=function(){e(n).off("hashchange popstate",tt)};s.$$checkUrlChange=rt;s.baseHref=function(){var n=ot.attr("href");return n?n.replace(/^(https?\:)?\/\/[^\/]*/,""):""};s.defer=function(n,t){var i;return l++,i=ut(function(){delete w[i];d(n)},t||0),w[i]=!0,i};s.defer.cancel=function(n){return w[n]?(delete w[n],ft(n),d(o),!0):!1}}function ip(){this.$get=["$window","$log","$sniffer","$document",function(n,t,i,r){return new tp(n,r,t,i)}]}function rp(){this.$get=function(){function i(t,i){function y(n){n!=o&&(u?u==n&&(u=n.n):u=n,c(n.n,n.p),c(n,o),o=n,o.n=null)}function c(n,t){n!=t&&(n&&(n.p=t),t&&(t.n=n))}if(t in n)throw l("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var s=0,a=v({},i,{id:t}),f=p(),h=i&&i.capacity||Number.MAX_VALUE,e=p(),o=null,u=null;return n[t]={put:function(n,t){if(!r(t)){if(h<Number.MAX_VALUE){var i=e[n]||(e[n]={key:n});y(i)}return n in f||s++,f[n]=t,s>h&&this.remove(u.key),t}},get:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;y(t)}return f[n]},remove:function(n){if(h<Number.MAX_VALUE){var t=e[n];if(!t)return;t==o&&(o=t.p);t==u&&(u=t.n);c(t.n,t.p);delete e[n]}n in f&&(delete f[n],s--)},removeAll:function(){f=p();s=0;e=p();o=u=null},destroy:function(){f=null;a=null;e=null;delete n[t]},info:function(){return v({},a,{size:s})}}}var n={};return i.info=function(){var i={};return t(n,function(n,t){i[t]=n.info()}),i},i.get=function(t){return n[t]},i}}function up(){this.$get=["$cacheFactory",function(n){return n("templates")}]}function fp(){}function gs(i,l){function tt(n,i,r){var f=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,u=p();return t(n,function(n,t){if(n in nt){u[t]=nt[n];return}var e=n.match(f);if(!e)throw d("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",i,t,n,r?"controller bindings definition":"isolate scope definition");u[t]={mode:e[1][0],collection:e[2]==="*",optional:e[3]==="?",attrName:e[4]||t};e[4]&&(nt[n]=u[t])}),u}function ct(n,t){var i={isolateScope:null,bindToController:null},r,u;if(s(n.scope)&&(n.bindToController===!0?(i.bindToController=tt(n.scope,t,!0),i.isolateScope={}):i.isolateScope=tt(n.scope,t,!1)),s(n.bindToController)&&(i.bindToController=tt(n.bindToController,t,!0)),s(i.bindToController))if(r=n.controller,u=n.controllerAs,r){if(!rh(r,u))throw d("noident","Cannot bind to controller without identifier for directive '{0}'.",t);}else throw d("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return i}function lt(n){var t=n.charAt(0);if(!t||t!==a(t))throw d("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw d("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);}var b={},g="Directive",it=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,ut=/(([\w\-]+)(?:\:([^;]+))?;?)/,et=ka("ngSrc,ngSrcset,src,srcset"),ot=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,ht=/^(on[a-z]+|formaction)$/,nt=p(),w,k;this.directive=function wt(n,r){return bi(n,"directive"),h(n)?(lt(n),cu(r,"directiveFactory"),b.hasOwnProperty(n)||(b[n]=[],i.factory(n+g,["$injector","$exceptionHandler",function(i,r){var u=[];return t(b[n],function(t,e){try{var o=i.invoke(t);f(o)?o={compile:ft(o)}:!o.compile&&o.link&&(o.compile=ft(o.link));o.priority=o.priority||0;o.index=e;o.name=o.name||n;o.require=o.require||o.controller&&o.name;o.restrict=o.restrict||"EA";o.$$moduleName=t.$$moduleName;u.push(o)}catch(s){r(s)}}),u}])),b[n].push(r)):t(n,co(wt)),this};this.component=function(n,i){function u(n){function u(t){return f(t)||c(t)?function(i,r){return n.invoke(t,this,{$element:i,$attrs:r})}:t}var o=!i.template&&!i.templateUrl?"":i.template,e={controller:r,controllerAs:rh(i.controller)||i.controllerAs||"$ctrl",template:u(o),templateUrl:u(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return t(i,function(n,t){t.charAt(0)==="$"&&(e[t]=n)}),e}var r=i.controller||function(){};return t(i,function(n,t){t.charAt(0)==="$"&&(u[t]=n,f(r)&&(r[t]=n))}),u.$inject=["$injector"],this.directive(n,u)};this.aHrefSanitizationWhitelist=function(n){return u(n)?(l.aHrefSanitizationWhitelist(n),this):l.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(l.imgSrcSanitizationWhitelist(n),this):l.imgSrcSanitizationWhitelist()};w=!0;this.debugInfoEnabled=function(n){return u(n)?(w=n,this):w};k=10;this.onChangesTtl=function(n){return arguments.length?(k=n,this):k};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(i,u,l,nt,tt,ft,lt,wt,bt,dt){function vr(){try{if(!--bi){ti=undefined;throw d("infchng","{0} $onChanges() iterations reached. Aborting!\n",k);}lt.$apply(function(){for(var n=0,t=ti.length;n<t;++n)ti[n]();ti=undefined})}finally{bi++}}function ci(n,t){if(t)for(var u=Object.keys(t),r,i=0,f=u.length;i<f;i++)r=u[i],this[r]=t[r];else this.$attr={};this.$$element=n}function yr(n,t,i){wi.innerHTML="<span "+t+">";var u=wi.firstChild.attributes,r=u[0];u.removeNamedItem(r.name);r.value=i;n.attributes.setNamedItem(r)}function fi(n,t){try{n.addClass(t)}catch(i){}}function ni(t,i,r,u,f){var l,o,a,h,c,s;for(t instanceof e||(t=e(t)),l=/\S+/,o=0,a=t.length;o<a;o++)h=t[o],h.nodeType===ki&&h.nodeValue.match(l)&&ls(h,t[o]=n.document.createElement("span"));return c=li(t,i,t,r,u,f),ni.$$addScopeClass(t),s=null,function(n,i,r){var u,l;cu(n,"scope");f&&f.needsNewScope&&(n=n.$parent.$new());r=r||{};var o=r.parentBoundTranscludeFn,h=r.transcludeControllers,a=r.futureParentElement;if(o&&o.$$boundTransclude&&(o=o.$$boundTransclude),s||(s=br(a)),u=s!=="html"?e(yi(s,e("<div>").append(t).html())):i?hi.clone.call(t):t,h)for(l in h)u.data("$"+l+"Controller",h[l].instance);return ni.$$addScopeInfo(u,n),i&&i(u,n),c&&c(n,u,u,o),u}}function br(n){var t=n&&n[0];return t?vt(t)!=="foreignobject"&&rt.call(t).match(/SVG/)?"svg":"html":"html"}function li(n,t,i,r,u,f){function w(n,i,r,u){var o,h,c,l,f,p,v,w,a,b;if(y)for(b=i.length,a=new Array(b),f=0;f<s.length;f+=3)v=s[f],a[v]=i[v];else a=i;for(f=0,p=s.length;f<p;)c=a[s[f++]],o=s[f++],h=s[f++],o?(o.scope?(l=n.$new(),ni.$$addScopeInfo(e(c),l)):l=n,w=o.transcludeOnThisElement?ri(n,o.transclude,u):!o.templateOnThisElement&&u?u:!u&&t?ri(n,t):null,o(h,l,c,r,w)):h&&h(n,c.childNodes,undefined,u)}for(var s=[],c,l,o,a,v,p,y,h=0;h<n.length;h++)c=new ci,l=ai(n[h],[],c,h===0?r:undefined,u),o=l.length?ur(l,n[h],c,t,i,null,[],[],f):null,o&&o.scope&&ni.$$addScopeClass(c.$$element),v=o&&o.terminal||!(a=n[h].childNodes)||!a.length?null:li(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||v)&&(s.push(h,o,v),p=!0,y=y||o),f=null;return p?w:null}function ri(n,t,i){function u(r,u,f,e,o){return r||(r=n.$new(!1,o),r.$$transcluded=!0),t(r,u,{parentBoundTranscludeFn:i,transcludeControllers:f,futureParentElement:e})}var f=u.$$slots=p();for(var r in t.$$slots)f[r]=t.$$slots[r]?ri(n,t.$$slots[r],i):null;return u}function ai(n,t,i,r,u){var nt=n.nodeType,tt=i.$attr,o,c,k,d,g;switch(nt){case kt:ei(t,pt(vt(n)),"E",r,u);for(var l,e,f,a,v,p,w=n.attributes,b=0,rt=w&&w.length;b<rt;b++)k=!1,d=!1,l=w[b],e=l.name,v=y(l.value),a=pt(e),(p=pr.test(a))&&(e=e.replace(se,"").substr(8).replace(/_(.)/g,function(n,t){return t.toUpperCase()})),g=a.match(wr),g&&dr(g[1])&&(k=e,d=e.substr(0,e.length-5)+"end",e=e.substr(0,e.length-6)),f=pt(e.toLowerCase()),tt[f]=e,(p||!i.hasOwnProperty(f))&&(i[f]=v,ws(n,f)&&(i[f]=!0)),ru(n,t,v,f,p),ei(t,f,"A",r,u,k,d);if(c=n.className,s(c)&&(c=c.animVal),h(c)&&c!=="")while(o=ut.exec(c))f=pt(o[2]),ei(t,f,"C",r,u)&&(i[f]=y(o[3])),c=c.substr(o.index+o[0].length);break;case ki:if(gt===11)while(n.parentNode&&n.nextSibling&&n.nextSibling.nodeType===ki)n.nodeValue=n.nodeValue+n.nextSibling.nodeValue,n.parentNode.removeChild(n.nextSibling);tu(t,n.nodeValue);break;case au:try{o=it.exec(n.nodeValue);o&&(f=pt(o[1]),ei(t,f,"M",r,u)&&(i[f]=y(o[2])))}catch(ft){}}return t.sort(nu),t}function tr(n,t,i){var r=[],u=0;if(t&&n.hasAttribute&&n.hasAttribute(t)){do{if(!n)throw d("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,i);n.nodeType==kt&&(n.hasAttribute(t)&&u++,n.hasAttribute(i)&&u--);r.push(n);n=n.nextSibling}while(u>0)}else r.push(n);return e(r)}function ir(n,t,i){return function(r,u,f,e,o){return u=tr(u[0],t,i),n(r,u,f,e,o)}}function vi(n,t,i,r,u,f){var e;return n?ni(t,i,r,u,f):function(){return e||(e=ni(t,i,r,u,f),t=i=f=null),e.apply(this,arguments)}}function ur(n,i,u,o,h,a,w,b,k){function or(n,t,i,r){n&&(i&&(n=ir(n,i,r)),n.require=g.require,n.directiveName=ot,(nt===g||g.$$isolateScope)&&(n=hr(n,{isolateScope:!0})),w.push(n));t&&(i&&(t=ir(t,i,r)),t.require=g.require,t.directiveName=ot,(nt===g||g.$$isolateScope)&&(t=hr(t,{isolateScope:!0})),b.push(t))}function ct(n,o,h,l,a){function bt(n,t,i,u){var e,f;if(er(n)||(u=i,i=t,t=n,n=undefined),ti&&(e=g),i||(i=ti?y.parent():y),u){if(f=a.$$slots[u],f)return f(n,t,e,i,st);if(r(f))throw d("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',u,yt(y));}else return a(n,t,e,i,st)}var it,wt,p,k,ot,g,ft,y,rt,at,vt,lt,st;i===h?(rt=u,y=u.$$element):(y=e(h),rt=new ci(y,u));ot=o;nt?k=o.$new(!0):ut&&(ot=o.$parent);a&&(ft=bt,ft.$$boundTransclude=a,ft.isSlotFilled=function(n){return!!a.$$slots[n]});et&&(g=kr(y,rt,ft,et,k,o,nt));nt&&(ni.$$addScopeInfo(y,k,!0,!(ht&&(ht===nt||ht===nt.$$originalDirective))),ni.$$addScopeClass(y,!0),k.$$isolateBindings=nt.$$isolateBindings,at=pi(o,rt,k,k.$$isolateBindings,nt),at.removeWatches&&k.$on("$destroy",at.removeWatches));for(vt in g){var ct=et[vt],tt=g[vt],pt=ct.$$bindings.bindToController;tt.bindingInfo=tt.identifier&&pt?pi(ot,rt,tt.instance,pt,ct):{};lt=tt();lt!==tt.instance&&(tt.instance=lt,y.data("$"+ct.name+"Controller",lt),tt.bindingInfo.removeWatches&&tt.bindingInfo.removeWatches(),tt.bindingInfo=pi(ot,rt,tt.instance,pt,ct))}for(t(et,function(n,t){var i=n.require;n.bindToController&&!c(i)&&s(i)&&v(g[t].instance,ui(t,i,y,g))}),t(g,function(n){var t=n.instance;f(t.$onChanges)&&t.$onChanges(n.bindingInfo.initialChanges);f(t.$onInit)&&t.$onInit();f(t.$onDestroy)&&ot.$on("$destroy",function(){t.$onDestroy()})}),it=0,wt=w.length;it<wt;it++)p=w[it],lr(p,p.isolateScope?k:o,y,rt,p.require&&ui(p.directiveName,p.require,y,g),ft);for(st=o,nt&&(nt.template||nt.templateUrl===null)&&(st=k),n&&n(st,h.childNodes,undefined,a),it=b.length-1;it>=0;it--)p=b[it],lr(p,p.isolateScope?k:o,y,rt,p.require&&ui(p.directiveName,p.require,y,g),ft);t(g,function(n){var t=n.instance;f(t.$postLink)&&t.$postLink()})}var st,ei,dt,oi,wt,gi,ft,ki,hi,li;k=k||{};var bt=-Number.MAX_VALUE,ut=k.newScopeDirective,et=k.controllerDirectives,nt=k.newIsolateScopeDirective,ht=k.templateDirective,gt=k.nonTlbTranscludeDirective,wi=!1,bi=!1,ti=k.hasElementTranscludeDirective,tt=u.$$element=e(i),g,ot,it,ri=a,lt=o,at,di=!1,fi=!1,rt;for(st=0,ei=n.length;st<ei;st++){if(g=n[st],dt=g.$$start,oi=g.$$end,dt&&(tt=tr(i,dt,oi)),it=undefined,bt>g.priority)break;if((rt=g.scope)&&(g.templateUrl||(s(rt)?(ii("new/isolated scope",nt||ut,g,tt),nt=g):ii("new/isolated scope",nt,g,tt)),ut=ut||g),ot=g.name,!di&&(g.replace&&(g.templateUrl||g.template)||g.transclude&&!g.$$tlb)){for(gi=st+1;wt=n[gi++];)if(wt.transclude&&!wt.$$tlb||wt.replace&&(wt.templateUrl||wt.template)){fi=!0;break}di=!0}if(!g.templateUrl&&g.controller&&(rt=g.controller,et=et||p(),ii("'"+ot+"' controller",et[ot],g,tt),et[ot]=g),rt=g.transclude)if(wi=!0,g.$$tlb||(ii("transclusion",gt,g,tt),gt=g),rt=="element")ti=!0,bt=g.priority,it=tt,tt=u.$$element=e(ni.$$createComment(ot,u[ot])),i=tt[0],si(h,cr(it),i),it[0].$$parentNode=it[0].parentNode,lt=vi(fi,it,o,bt,ri&&ri.name,{nonTlbTranscludeDirective:gt});else{if(ft=p(),it=e(re(i)).contents(),s(rt)){it=[];ki=p();hi=p();t(rt,function(n,t){var i=n.charAt(0)==="?";n=i?n.substring(1):n;ki[n]=t;ft[t]=null;hi[t]=i});t(tt.contents(),function(n){var t=ki[pt(vt(n))];t?(hi[t]=!0,ft[t]=ft[t]||[],ft[t].push(n)):it.push(n)});t(hi,function(n,t){if(!n)throw d("reqslot","Required transclusion slot `{0}` was not filled.",t);});for(li in ft)ft[li]&&(ft[li]=vi(fi,ft[li],o))}tt.empty();lt=vi(fi,it,o,undefined,undefined,{needsNewScope:g.$$isolateScope||g.$$newScope});lt.$$slots=ft}if(g.template)if(bi=!0,ii("template",ht,g,tt),ht=g,rt=f(g.template)?g.template(tt,u):g.template,rt=nr(rt),g.replace){if(ri=g,it=ie(rt)?[]:th(yi(g.templateNamespace,y(rt))),i=it[0],it.length!=1||i.nodeType!==kt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",ot,"");si(h,tt,i);var rr={$attr:{}},ur=ai(i,[],rr),ar=n.splice(st+1,n.length-(st+1));(nt||ut)&&fr(ur,nt,ut);n=n.concat(ur).concat(ar);sr(u,rr);ei=n.length}else tt.html(rt);if(g.templateUrl)bi=!0,ii("template",ht,g,tt),ht=g,g.replace&&(ri=g),ct=gr(n.splice(st,n.length-st),tt,u,h,wi&&lt,w,b,{controllerDirectives:et,newScopeDirective:ut!==g&&ut,newIsolateScopeDirective:nt,templateDirective:ht,nonTlbTranscludeDirective:gt}),ei=n.length;else if(g.compile)try{at=g.compile(tt,u,lt);f(at)?or(null,at,dt,oi):at&&or(at.pre,at.post,dt,oi)}catch(vr){l(vr,yt(tt))}g.terminal&&(ct.terminal=!0,bt=Math.max(bt,g.priority))}return ct.scope=ut&&ut.scope===!0,ct.transcludeOnThisElement=wi,ct.templateOnThisElement=bi,ct.transclude=lt,k.hasElementTranscludeDirective=ti,ct}function ui(n,i,r,u){var f,a,e,y;if(h(i)){var o=i.match(ot),l=i.substring(o[0].length),v=o[1]||o[3],p=o[2]==="?";if(v==="^^"?r=r.parent():(f=u&&u[l],f=f&&f.instance),f||(a="$"+l+"Controller",f=v?r.inheritedData(a):r.data(a)),!f&&!p)throw d("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,n);}else if(c(i))for(f=[],e=0,y=i.length;e<y;e++)f[e]=ui(n,i[e],r,u);else s(i)&&(f={},t(i,function(t,i){f[i]=ui(n,t,r,u)}));return f||null}function kr(n,t,i,r,u,f,e){var c=p(),l,h;for(l in r){var o=r[l],a={$scope:o===e||o.$$isolateScope?u:f,$element:n,$attrs:t,$transclude:i},s=o.controller;s=="@"&&(s=t[o.name]);h=ft(s,a,!0,o.controllerAs);c[o.name]=h;n.data("$"+o.name+"Controller",h.instance)}return c}function fr(n,t,i){for(var r=0,u=n.length;r<u;r++)n[r]=pf(n[r],{$$isolateScope:t,$$newScope:i})}function ei(n,t,u,f,e,o,h){var a,y;if(t===e)return null;if(a=null,b.hasOwnProperty(t))for(var c,p=i.get(t+g),v=0,w=p.length;v<w;v++)try{c=p[v];(r(f)||f>c.priority)&&c.restrict.indexOf(u)!=-1&&(o&&(c=pf(c,{$$start:o,$$end:h})),c.$$bindings||(y=c.$$bindings=ct(c,c.name),s(y.isolateScope)&&(c.$$isolateBindings=y.isolateScope)),n.push(c),a=c)}catch(k){l(k)}return a}function dr(n){if(b.hasOwnProperty(n))for(var r,u=i.get(n+g),t=0,f=u.length;t<f;t++)if(r=u[t],r.multiElement)return!0;return!1}function sr(n,i){var u=i.$attr,f=n.$attr,r=n.$$element;t(n,function(t,r){r.charAt(0)!="$"&&(i[r]&&i[r]!==t&&(t+=(r==="style"?";":" ")+i[r]),n.$set(r,t,!0,u[r]))});t(i,function(t,i){i=="class"?(fi(r,t),n["class"]=(n["class"]?n["class"]+" ":"")+t):i=="style"?(r.attr("style",r.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):i.charAt(0)=="$"||n.hasOwnProperty(i)||(n[i]=t,f[i]=u[i])})}function gr(n,i,r,u,o,h,c,l){var v=[],p,w,b=i[0],a=n.shift(),g=pf(a,{templateUrl:null,transclude:null,replace:null,$$originalDirective:a}),k=f(a.templateUrl)?a.templateUrl(i,r):a.templateUrl,tt=a.templateNamespace;return i.empty(),nt(k).then(function(f){var nt,rt,ut,st,ft,ct;if(f=nr(f),a.replace){if(ut=ie(f)?[]:th(yi(tt,y(f))),nt=ut[0],ut.length!=1||nt.nodeType!==kt)throw d("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a.name,k);rt={$attr:{}};si(u,i,nt);ft=ai(nt,[],rt);s(a.scope)&&fr(ft,!0);n=ft.concat(n);sr(r,rt)}else nt=b,i.html(f);for(n.unshift(g),p=ur(n,nt,r,o,i,a,h,c,l),t(u,function(n,t){n==nt&&(u[t]=i[0])}),w=li(i[0].childNodes,o);v.length;){var et=v.shift(),ot=v.shift(),lt=v.shift(),ht=v.shift(),it=i[0];et.$$destroyed||(ot!==b&&(ct=ot.className,l.hasElementTranscludeDirective&&a.replace||(it=re(nt)),si(lt,e(ot),it),fi(e(it),ct)),st=p.transcludeOnThisElement?ri(et,p.transclude,ht):ht,p(w,et,it,u,st))}v=null}),function(n,t,i,r,u){var f=u;t.$$destroyed||(v?v.push(t,i,r,f):(p.transcludeOnThisElement&&(f=ri(t,p.transclude,u)),p(w,t,i,r,f)))}}function nu(n,t){var i=t.priority-n.priority;return i!==0?i:n.name!==t.name?n.name<t.name?-1:1:n.index-t.index}function ii(n,t,i,r){function u(n){return n?" (module: "+n+")":""}if(t)throw d("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,u(t.$$moduleName),i.name,u(i.$$moduleName),n,yt(r));}function tu(n,t){var i=u(t,!0);i&&n.push({priority:0,compile:function(n){var t=n.parent(),r=!!t.length;return r&&ni.$$addBindingClass(t),function(n,t){var u=t.parent();r||ni.$$addBindingClass(u);ni.$$addBindingInfo(u,i.expressions);n.$watch(i,function(n){t[0].nodeValue=n})}}})}function yi(t,i){t=a(t||"html");switch(t){case"svg":case"math":var r=n.document.createElement("div");return r.innerHTML="<"+t+">"+i+"<\/"+t+">",r.childNodes[0].childNodes;default:return i}}function iu(n,t){if(t=="srcdoc")return wt.HTML;var i=vt(n);if(t=="xlinkHref"||i=="form"&&t=="action"||i!="img"&&(t=="src"||t=="ngSrc"))return wt.RESOURCE_URL}function ru(n,t,i,r,f){var o=iu(n,r),e;if(f=et[r]||f,e=u(i,!0,o,f),e){if(r==="multiple"&&vt(n)==="select")throw d("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",yt(n));t.push({priority:100,compile:function(){return{pre:function(n,t,s){var c=s.$$observers||(s.$$observers=p()),h;if(ht.test(r))throw d("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.");(h=s[r],h!==i&&(e=h&&u(h,!0,o,f),i=h),e)&&(s[r]=e(n),(c[r]||(c[r]=[])).$$inter=!0,(s.$$observers&&s.$$observers[r].$$scope||n).$watch(e,function(n,t){r==="class"&&n!=t?s.$updateClass(n,t):s.$set(r,n)}))}}}})}}function si(t,i,r){var f=i[0],s=i.length,l=f.parentNode,u,a,c;if(t)for(u=0,a=t.length;u<a;u++)if(t[u]==f){t[u++]=r;for(var o=u,h=o+s-1,v=t.length;o<v;o++,h++)h<v?t[o]=t[h]:delete t[o];t.length-=s-1;t.context===f&&(t.context=r);break}for(l&&l.replaceChild(r,f),c=n.document.createDocumentFragment(),u=0;u<s;u++)c.appendChild(i[u]);for(e.hasData(f)&&(e.data(r,e.data(f)),e(f).off("$destroy")),e.cleanData(c.querySelectorAll("*")),u=1;u<s;u++)delete i[u];i[0]=r;i.length=1}function hr(n,t){return v(function(){return n.apply(null,arguments)},n,t)}function lr(n,t,i,r,u,f){try{n(t,i,r,u,f)}catch(e){l(e,yt(i))}}function pi(n,i,r,e,s){function v(t,i,u){f(r.$onChanges)&&i!==u&&(ti||(n.$$postDigest(vr),ti=[]),c||(c={},ti.push(y)),c[t]&&(u=c[t].previousValue),c[t]=new rf(u,i))}function y(){r.$onChanges(c);c=undefined}var l=[],a={},c;return t(e,function(t,f){var e=t.attrName,p=t.optional,nt=t.mode,y,c,g,k,w,b;switch(nt){case"@":p||at.call(i,e)||(r[f]=i[e]=void 0);i.$observe(e,function(n){if(h(n)||oi(n)){var t=r[f];v(f,n,t);r[f]=n}});i.$$observers[e].$$scope=n;y=i[e];h(y)?r[f]=u(y)(n):oi(y)&&(r[f]=y);a[f]=new rf(tf,r[f]);break;case"=":if(!at.call(i,e)){if(p)break;i[e]=void 0}if(p&&!i[e])break;c=tt(i[e]);k=c.literal?st:function(n,t){return n===t||n!==n&&t!==t};g=c.assign||function(){y=r[f]=c(n);throw d("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",i[e],e,s.name);};y=r[f]=c(n);b=function(t){return k(t,r[f])||(k(t,y)?g(n,t=r[f]):r[f]=t),y=t};b.$stateful=!0;w=t.collection?n.$watchCollection(i[e],b):n.$watch(tt(i[e],b),null,c.literal);l.push(w);break;case"<":if(!at.call(i,e)){if(p)break;i[e]=void 0}if(p&&!i[e])break;c=tt(i[e]);r[f]=c(n);a[f]=new rf(tf,r[f]);w=n.$watch(c,function(n,t){n===t&&(t=r[f]);v(f,n,t);r[f]=n},c.literal);l.push(w);break;case"&":if(c=i.hasOwnProperty(e)?tt(i[e]):o,c===o&&p)break;r[f]=function(t){return c(n,t)}}}),{initialChanges:a,removeWatches:l.length&&function(){for(var n=0,t=l.length;n<t;++n)l[n]()}}}var ar=/^\w/,wi=n.document.createElement("div"),bi=k,ti;ci.prototype={$normalize:pt,$addClass:function(n){n&&n.length>0&&bt.addClass(this.$$element,n)},$removeClass:function(n){n&&n.length>0&&bt.removeClass(this.$$element,n)},$updateClass:function(n,t){var r=nh(n,t),i;r&&r.length&&bt.addClass(this.$$element,r);i=nh(t,n);i&&i.length&&bt.removeClass(this.$$element,i)},$set:function(n,i,u,f){var d=this.$$element[0],w=ws(d,n),a=gv(n),b=n,s,o,v,c,p;if(w?(this.$$element.prop(n,i),f=w):a&&(this[a]=i,b=a),this[n]=i,f?this.$attr[n]=f:(f=this.$attr[n],f||(this.$attr[n]=f=us(n,"-"))),s=vt(this.$$element),s==="a"&&(n==="href"||n==="xlinkHref")||s==="img"&&n==="src")this[n]=i=dt(i,n==="src");else if(s==="img"&&n==="srcset"){var e="",k=y(i),g=/\s/.test(k)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,h=k.split(g),nt=Math.floor(h.length/2);for(o=0;o<nt;o++)v=o*2,e+=dt(y(h[v]),!0),e+=" "+y(h[v+1]);c=y(h[o*2]).split(/\s/);e+=dt(y(c[0]),!0);c.length===2&&(e+=" "+y(c[1]));this[n]=i=e}u!==!1&&(i===null||r(i)?this.$$element.removeAttr(f):ar.test(f)?this.$$element.attr(f,i):yr(this.$$element[0],f,i));p=this.$$observers;p&&t(p[b],function(n){try{n(i)}catch(t){l(t)}})},$observe:function(n,t){var i=this,f=i.$$observers||(i.$$observers=p()),u=f[n]||(f[n]=[]);return u.push(t),lt.$evalAsync(function(){u.$$inter||!i.hasOwnProperty(n)||r(i[n])||t(i[n])}),function(){or(u,t)}}};var di=u.startSymbol(),gi=u.endSymbol(),nr=di=="{{"&&gi=="}}"?rr:function(n){return n.replace(/\{\{/g,di).replace(/}}/g,gi)},pr=/^ngAttr[A-Z]/,wr=/^(.+)Start$/;return ni.$$addBindingInfo=w?function(n,t){var i=n.data("$binding")||[];c(t)?i=i.concat(t):i.push(t);n.data("$binding",i)}:o,ni.$$addBindingClass=w?function(n){fi(n,"ng-binding")}:o,ni.$$addScopeInfo=w?function(n,t,i,r){var u=i?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";n.data(u,t)}:o,ni.$$addScopeClass=w?function(n,t){fi(n,t?"ng-isolate-scope":"ng-scope")}:o,ni.$$createComment=function(t,i){var r="";return w&&(r=" "+(t||"")+": "+(i||"")+" "),n.document.createComment(r)},ni}]}function rf(n,t){this.previousValue=n;this.currentValue=t}function pt(n){return yr(n.replace(se,""))}function nh(n,t){var u="",e=n.split(/\s+/),o=t.split(/\s+/),i,f,r;n:for(i=0;i<e.length;i++){for(f=e[i],r=0;r<o.length;r++)if(f==o[r])continue n;u+=(u.length>0?" ":"")+f}return u}function th(n){var t,i;if(n=e(n),t=n.length,t<=1)return n;while(t--)i=n[t],i.nodeType===au&&ha.call(n,t,1);return n}function rh(n,t){if(t&&h(t))return t;if(h(n)){var i=he.exec(n);if(i)return i[3]}}function ep(){var n={},t=!1;this.has=function(t){return n.hasOwnProperty(t)};this.register=function(t,i){bi(t,"controller");s(t)?v(n,t):n[t]=i};this.allowGlobals=function(){t=!0};this.$get=["$injector","$window",function(i,r){function u(n,t,i,r){if(!(n&&s(n.$scope)))throw l("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);n.$scope[t]=i}return function(e,o,l,a){var y,b,p,w,k;if(l=l===!0,a&&h(a)&&(w=a),h(e)){if(b=e.match(he),!b)throw ih("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);p=b[1];w=w||b[3];e=n.hasOwnProperty(p)?n[p]:fs(o.$scope,p,!0)||(t?fs(r,p,!0):undefined);wi(e,p,!0)}return l?(k=(c(e)?e[e.length-1]:e).prototype,y=Object.create(k||null),w&&u(o,w,y,p||e.name),v(function(){var n=i.invoke(e,y,o,p);return n!==y&&(s(n)||f(n))&&(y=n,w&&u(o,w,y,p||e.name)),y},{instance:y,identifier:w})):(y=i.instantiate(e,o,p),w&&u(o,w,y,p||e.name),y)}}]}function op(){this.$get=["$window",function(n){return e(n.document)}]}function sp(){this.$get=["$log",function(n){return function(){n.error.apply(n,arguments)}}]}function le(n){return s(n)?et(n)?n.toISOString():lr(n):n}function yp(){this.$get=function(){return function(n){if(!n)return"";var i=[];return ho(n,function(n,u){n===null||r(n)||(c(n)?t(n,function(n){i.push(ct(u)+"="+ct(le(n)))}):i.push(ct(u)+"="+ct(le(n))))}),i.join("&")}}}function pp(){this.$get=function(){return function(n){function i(n,f,e){n===null||r(n)||(c(n)?t(n,function(n,t){i(n,f+"["+(s(n)?t:"")+"]")}):s(n)&&!et(n)?ho(n,function(n,t){i(n,f+(e?"":"[")+t+(e?"":"]"))}):u.push(ct(f)+"="+ct(le(n))))}if(!n)return"";var u=[];return i(n,"",!0),u.join("&")}}}function ae(n,t){var i,r;return h(n)&&(i=n.replace(ap,"").trim(),i&&(r=t("Content-Type"),(r&&r.indexOf(uh)===0||wp(i))&&(n=bo(i)))),n}function wp(n){var t=n.match(cp);return t&&lp[t[0]].test(n)}function eh(n){function u(n,t){n&&(i[n]=i[n]?i[n]+", "+t:t)}var i=p(),r;return h(n)?t(n.split("\n"),function(n){r=n.indexOf(":");u(a(y(n.substr(0,r))),y(n.substr(r+1)))}):s(n)&&t(n,function(n,t){u(a(t),y(n))}),i}function oh(n){var t;return function(i){if(t||(t=eh(n)),i){var r=t[a(i)];return r===void 0&&(r=null),r}return t}}function sh(n,i,r,u){return f(u)?u(n,i,r):(t(u,function(t){n=t(n,i,r)}),n)}function ve(n){return 200<=n&&n<300}function bp(){var n=this.defaults={transformResponse:[ae],transformRequest:[function(n){return s(n)&&!va(n)&&!pa(n)&&!ya(n)?lr(n):n}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ot(ce),put:ot(ce),patch:ot(ce)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},i=!1,e,o;this.useApplyAsync=function(n){return u(n)?(i=!!n,this):i};e=!0;this.useLegacyPromiseExtensions=function(n){return u(n)?(e=!!n,this):e};o=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(y,p,w,b,k,d){function g(i){function w(n){var t=v({},n);return t.data=sh(n.data,n.headers,n.status,u.transformResponse),ve(n.status)?t:k.reject(t)}function g(n,i){var r,u={};return t(n,function(n,t){f(n)?(r=n(i),r!=null&&(u[t]=r)):u[t]=n}),u}function tt(t){var i=n.headers,u=v({},t.headers),r,f,e;i=v({},i.common,i[a(t.method)]);n:for(r in i){f=a(r);for(e in u)if(a(e)===f)continue n;u[r]=i[r]}return g(u,ot(t))}var u,y,p;if(!s(i))throw l("$http")("badreq","Http request configuration must be an object.  Received: {0}",i);if(!h(i.url))throw l("$http")("badreq","Http request configuration url must be a string.  Received: {0}",i.url);u=v({method:"get",transformRequest:n.transformRequest,transformResponse:n.transformResponse,paramSerializer:n.paramSerializer},i);u.headers=tt(i);u.method=tr(u.method);u.paramSerializer=h(u.paramSerializer)?d.get(u.paramSerializer):u.paramSerializer;var b=function(i){var u=i.headers,f=sh(i.data,oh(u),undefined,i.transformRequest);return r(f)&&t(u,function(n,t){a(t)==="content-type"&&delete u[t]}),r(i.withCredentials)&&!r(n.withCredentials)&&(i.withCredentials=n.withCredentials),ut(i,f).then(w,w)},c=[b,undefined],o=k.when(u);for(t(nt,function(n){(n.request||n.requestError)&&c.unshift(n.request,n.requestError);(n.response||n.responseError)&&c.push(n.response,n.responseError)});c.length;)y=c.shift(),p=c.shift(),o=o.then(y,p);return e?(o.success=function(n){return wi(n,"fn"),o.then(function(t){n(t.data,t.status,t.headers,u)}),o},o.error=function(n){return wi(n,"fn"),o.then(null,function(t){n(t.data,t.status,t.headers,u)}),o}):(o.success=fh("success"),o.error=fh("error")),o}function it(){t(arguments,function(n){g[n]=function(t,i){return g(v({},i||{},{method:n,url:t}))}})}function rt(){t(arguments,function(n){g[n]=function(t,i,r){return g(v({},r||{},{method:n,url:t,data:i}))}})}function ut(f,e){function it(n){if(n){var r={};return t(n,function(n,t){r[t]=function(t){function r(){n(t)}i?b.$applyAsync(r):b.$$phase?r():b.$apply(r)}}),r}}function et(n,t,r,u){function f(){a(t,n,r,u)}h&&(ve(n)?h.put(l,[n,t,eh(r),u]):h.remove(l));i?b.$applyAsync(f):(f(),b.$$phase||b.$apply())}function a(n,t,i,r){t=t>=-1?t:0;(ve(t)?v.resolve:v.reject)({data:n,status:t,headers:oh(i),config:f,statusText:r})}function rt(n){a(n.data,n.status,ot(n.headers()),n.statusText)}function ut(){var n=g.pendingRequests.indexOf(f);n!==-1&&g.pendingRequests.splice(n,1)}var v=k.defer(),w=v.promise,h,o,nt=f.headers,l=ft(f.url,f.paramSerializer(f.params)),d;return g.pendingRequests.push(f),w.then(ut,ut),(f.cache||n.cache)&&f.cache!==!1&&(f.method==="GET"||f.method==="JSONP")&&(h=s(f.cache)?f.cache:s(n.cache)?n.cache:tt),h&&(o=h.get(l),u(o)?su(o)?o.then(rt,rt):c(o)?a(o[1],o[0],ot(o[2]),o[3]):a(o,200,{},"OK"):h.put(l,w)),r(o)&&(d=hc(f.url)?p()[f.xsrfCookieName||n.xsrfCookieName]:undefined,d&&(nt[f.xsrfHeaderName||n.xsrfHeaderName]=d),y(f.method,l,e,et,nt,f.timeout,f.withCredentials,f.responseType,it(f.eventHandlers),it(f.uploadEventHandlers))),w}function ft(n,t){return t.length>0&&(n+=(n.indexOf("?")==-1?"?":"&")+t),n}var tt=w("$http"),nt;return n.paramSerializer=h(n.paramSerializer)?d.get(n.paramSerializer):n.paramSerializer,nt=[],t(o,function(n){nt.unshift(h(n)?d.get(n):d.invoke(n))}),g.pendingRequests=[],it("get","delete","head","jsonp"),rt("post","put","patch"),g.defaults=n,g}]}function kp(){this.$get=function(){return function(){return new n.XMLHttpRequest}}}function dp(){this.$get=["$browser","$window","$document","$xhrFactory",function(n,t,i,r){return gp(n,r,n.defer,t.angular.callbacks,i[0])}]}function gp(n,i,f,e,s){function h(n,t,i){var r=s.createElement("script"),u=null;return r.type="text/javascript",r.src=n,r.async=!0,u=function(n){vr(r,"load",u);vr(r,"error",u);s.body.removeChild(r);r=null;var f=-1,o="unknown";n&&(n.type!=="load"||e[t].called||(n={type:"error"}),o=n.type,f=n.type==="error"?404:200);i&&i(f,o)},vu(r,"load",u),vu(r,"error",u),s.body.appendChild(r),u}return function(s,c,l,v,y,p,w,b,k,d){function ft(){tt&&tt();g&&g.abort()}function ut(t,i,r,e,s){u(rt)&&f.cancel(rt);tt=g=null;t(i,r,e,s);n.$$completeOutstandingRequest(o)}var nt,tt,g,it,rt;if(n.$$incOutstandingRequestCount(),c=c||n.url(),a(s)=="jsonp")nt="_"+(e.counter++).toString(36),e[nt]=function(n){e[nt].data=n;e[nt].called=!0},tt=h(c.replace("JSON_CALLBACK","angular.callbacks."+nt),nt,function(n,t){ut(v,n,e[nt].data,"",t);e[nt]=o});else{if(g=i(s,c),g.open(s,c,!0),t(y,function(n,t){u(n)&&g.setRequestHeader(t,n)}),g.onload=function(){var i=g.statusText||"",t="response"in g?g.response:g.responseText,n=g.status===1223?204:g.status;n===0&&(n=t?200:ui(c).protocol=="file"?404:0);ut(v,n,t,g.getAllResponseHeaders(),i)},it=function(){ut(v,-1,null,null,"")},g.onerror=it,g.onabort=it,t(k,function(n,t){g.addEventListener(t,n)}),t(d,function(n,t){g.upload.addEventListener(t,n)}),w&&(g.withCredentials=!0),b)try{g.responseType=b}catch(et){if(b!=="json")throw et;}g.send(r(l)?null:l)}p>0?rt=f(ft,p):su(p)&&p.then(ft)}}function nw(){var n="{{",t="}}";this.startSymbol=function(t){return t?(n=t,this):n};this.endSymbol=function(n){return n?(t=n,this):t};this.$get=["$parse","$exceptionHandler","$sce",function(i,e,o){function l(n){return"\\\\\\"+n}function s(i){return i.replace(y,n).replace(p,t)}function w(n){if(n==null)return"";switch(typeof n){case"string":break;case"number":n=""+n;break;default:n=lr(n)}return n}function b(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function h(h,l,y,p){function lt(n){try{return n=ct(n),p&&!u(n)?n:w(n)}catch(t){e(ii.interr(h,t))}}var g,ot,et,ct;if(!h.length||h.indexOf(n)===-1)return l||(ot=s(h),g=ft(ot),g.exp=h,g.expressions=[],g.$$watchDelegate=b),g;p=!!p;for(var nt,it,k=0,tt=[],rt=[],st=h.length,ut,d=[],ht=[];k<st;)if((nt=h.indexOf(n,k))!=-1&&(it=h.indexOf(t,nt+c))!=-1)k!==nt&&d.push(s(h.substring(k,nt))),ut=h.substring(nt+c,it),tt.push(ut),rt.push(i(ut,lt)),k=it+a,ht.push(d.length),d.push("");else{k!==st&&d.push(s(h.substring(k)));break}return y&&d.length>1&&ii.throwNoconcat(h),!l||tt.length?(et=function(n){for(var t=0,i=tt.length;t<i;t++){if(p&&r(n[t]))return;d[ht[t]]=n[t]}return d.join("")},ct=function(n){return y?o.getTrusted(y,n):o.valueOf(n)},v(function(n){var t=0,i=tt.length,r=new Array(i);try{for(;t<i;t++)r[t]=rt[t](n);return et(r)}catch(u){e(ii.interr(h,u))}},{exp:h,expressions:tt,$$watchDelegate:function(n,t){var i;return n.$watchGroup(rt,function(r,u){var e=et(r);f(t)&&t.call(this,e,r!==u?i:e,n);i=e})}})):void 0}var c=n.length,a=t.length,y=new RegExp(n.replace(/./g,l),"g"),p=new RegExp(t.replace(/./g,l),"g");return h.startSymbol=function(){return n},h.endSymbol=function(){return t},h}]}function tw(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(n,t,i,r,f){function o(o,s,h,c){function w(){p?o.apply(null,b):o(a)}var p=arguments.length>4,b=p?cr(arguments,4):[],k=t.setInterval,d=t.clearInterval,a=0,y=u(c)&&!c,v=(y?r:i).defer(),l=v.promise;return h=u(h)?h:0,l.$$intervalId=k(function(){y?f.defer(w):n.$evalAsync(w);v.notify(a++);h>0&&a>=h&&(v.resolve(a),d(l.$$intervalId),delete e[l.$$intervalId]);y||n.$apply()},s),e[l.$$intervalId]=v,l}var e={};return o.cancel=function(n){return n&&n.$$intervalId in e?(e[n.$$intervalId].reject("canceled"),t.clearInterval(n.$$intervalId),delete e[n.$$intervalId],!0):!1},o}]}function ye(n){for(var t=n.split("/"),i=t.length;i--;)t[i]=hu(t[i]);return t.join("/")}function hh(n,t){var i=ui(n);t.$$protocol=i.protocol;t.$$host=i.hostname;t.$$port=tt(i.port)||rw[i.protocol]||null}function ch(n,t){var r=n.charAt(0)!=="/",i;r&&(n="/"+n);i=ui(n);t.$$path=decodeURIComponent(r&&i.pathname.charAt(0)==="/"?i.pathname.substring(1):i.pathname);t.$$search=ts(i.search);t.$$hash=decodeURIComponent(i.hash);t.$$path&&t.$$path.charAt(0)!="/"&&(t.$$path="/"+t.$$path)}function wt(n,t){if(t.indexOf(n)===0)return t.substr(n.length)}function vi(n){var t=n.indexOf("#");return t==-1?n:n.substr(0,t)}function dr(n){return n.replace(/(#.+)|#$/,"$1")}function uw(n){return n.substr(0,vi(n).lastIndexOf("/")+1)}function fw(n){return n.substring(0,n.indexOf("/",n.indexOf("//")+2))}function pe(n,t,i){this.$$html5=!0;i=i||"";hh(n,this);this.$$parse=function(n){var i=wt(t,n);if(!h(i))throw uf("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',n,t);ch(i,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var n=df(this.$$search),i=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+this.$$url.substr(1)};this.$$parseLinkUrl=function(r,f){if(f&&f[0]==="#")return this.hash(f.slice(1)),!0;var e,s,o;return u(e=wt(n,r))?(s=e,o=u(e=wt(i,e))?t+(wt("/",e)||e):n+s):u(e=wt(t,r))?o=t+e:t==r+"/"&&(o=t),o&&this.$$parse(o),!!o}}function we(n,t,i){hh(n,this);this.$$parse=function(u){function o(n,t,i){var u=/^\/[A-Z]:(\/.*)/,r;return(t.indexOf(i)===0&&(t=t.replace(i,"")),u.exec(t))?n:(r=u.exec(n),r?r[1]:n)}var e=wt(n,u)||wt(t,u),f;r(e)||e.charAt(0)!=="#"?this.$$html5?f=e:(f="",r(e)&&(n=u,this.replace())):(f=wt(i,e),r(f)&&(f=e));ch(f,this);this.$$path=o(this.$$path,f,n);this.$$compose()};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+(this.$$url?i+this.$$url:"")};this.$$parseLinkUrl=function(t){return vi(n)==vi(t)?(this.$$parse(t),!0):!1}}function lh(n,t,i){this.$$html5=!0;we.apply(this,arguments);this.$$parseLinkUrl=function(r,u){if(u&&u[0]==="#")return this.hash(u.slice(1)),!0;var f,e;return n==vi(r)?f=r:(e=wt(t,r))?f=n+i+e:t===r+"/"&&(f=t),f&&this.$$parse(f),!!f};this.$$compose=function(){var t=df(this.$$search),r=this.$$hash?"#"+hu(this.$$hash):"";this.$$url=ye(this.$$path)+(t?"?"+t:"")+r;this.$$absUrl=n+i+this.$$url}}function ff(n){return function(){return this[n]}}function vh(n,t){return function(i){return r(i)?this[n]:(this[n]=t(i),this.$$compose(),this)}}function ew(){var t="",n={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(n){return u(n)?(t=n,this):t};this.html5Mode=function(t){return oi(t)?(n.enabled=t,this):s(t)?(oi(t.enabled)&&(n.enabled=t.enabled),oi(t.requireBase)&&(n.requireBase=t.requireBase),oi(t.rewriteLinks)&&(n.rewriteLinks=t.rewriteLinks),this):n};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(i,u,f,o,h){function k(n,t,i){var r=c.url(),f=c.$$state;try{u.url(n,t,i);c.$$state=u.state()}catch(e){c.url(r);c.$$state=f;throw e;}}function d(n,t){i.$broadcast("$locationChangeSuccess",c.absUrl(),n,c.$$state,t)}var c,y,w=u.baseHref(),l=u.url(),a,p,b,v;if(n.enabled){if(!w&&n.requireBase)throw uf("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=fw(l)+(w||"/");y=f.history?pe:lh}else a=vi(l),y=we;p=uw(a);c=new y(a,p,"#"+t);c.$$parseLinkUrl(l,l);c.$$state=u.state();b=/^\s*(javascript|mailto):/i;o.on("click",function(t){var r,f,l;if(n.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.which!=2&&t.button!=2){for(r=e(t.target);vt(r[0])!=="a";)if(r[0]===o[0]||!(r=r.parent())[0])return;(f=r.prop("href"),l=r.attr("href")||r.attr("xlink:href"),s(f)&&f.toString()==="[object SVGAnimatedString]"&&(f=ui(f.animVal).href),b.test(f))||!f||r.attr("target")||t.isDefaultPrevented()||c.$$parseLinkUrl(f,l)&&(t.preventDefault(),c.absUrl()!=u.url()&&(i.$apply(),h.angular["ff-684208-preventDefault"]=!0))}});dr(c.absUrl())!=dr(l)&&u.url(c.absUrl(),!0);v=!0;u.onUrlChange(function(n,t){if(r(wt(p,n))){h.location.href=n;return}i.$evalAsync(function(){var r=c.absUrl(),u=c.$$state,f;(n=dr(n),c.$$parse(n),c.$$state=t,f=i.$broadcast("$locationChangeStart",n,r,t,u).defaultPrevented,c.absUrl()===n)&&(f?(c.$$parse(r),c.$$state=u,k(r,!1,u)):(v=!1,d(r,u)))});i.$$phase||i.$digest()});return i.$watch(function(){var t=dr(u.url()),e=dr(c.absUrl()),n=u.state(),o=c.$$replace,r=t!==e||c.$$html5&&f.history&&n!==c.$$state;(v||r)&&(v=!1,i.$evalAsync(function(){var u=c.absUrl(),f=i.$broadcast("$locationChangeStart",u,t,c.$$state,n).defaultPrevented;c.absUrl()===u&&(f?(c.$$parse(t),c.$$state=n):(r&&k(u,o,n===c.$$state?null:c.$$state),d(t,n)))}));c.$$replace=!1}),c}]}function ow(){var n=!0,i=this;this.debugEnabled=function(t){return u(t)?(n=t,this):n};this.$get=["$window",function(r){function f(n){return n instanceof Error&&(n.stack?n=n.message&&n.stack.indexOf(n.message)===-1?"Error: "+n.message+"\n"+n.stack:n.stack:n.sourceURL&&(n=n.message+"\n"+n.sourceURL+":"+n.line)),n}function u(n){var i=r.console||{},u=i[n]||i.log||o,e=!1;try{e=!!u.apply}catch(s){}return e?function(){var n=[];return t(arguments,function(t){n.push(f(t))}),u.apply(i,n)}:function(n,t){u(n,t==null?"":t)}}return{log:u("log"),info:u("info"),warn:u("warn"),error:u("error"),debug:function(){var t=u("debug");return function(){n&&t.apply(i,arguments)}}()}}]}function gi(n,t){if(n==="__defineGetter__"||n==="__defineSetter__"||n==="__lookupGetter__"||n==="__lookupSetter__"||n==="__proto__")throw it("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return n}function yh(n){return n+""}function ri(n,t){if(n)if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n.window===n)throw it("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);else if(n.children&&(n.nodeName||n.prop&&n.attr&&n.find))throw it("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);else if(n===Object)throw it("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t);return n}function ph(n,t){if(n)if(n.constructor===n)throw it("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);else if(n===sw||n===hw||n===cw)throw it("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t);}function ef(n,t){if(n&&(n===0..constructor||n===(!1).constructor||n==="".constructor||n==={}.constructor||n===[].constructor||n===Function.constructor))throw it("isecaf","Assigning to a constructor is disallowed! Expression: {0}",t);}function lw(n,t){return typeof n!="undefined"?n:t}function bh(n,t){return typeof n=="undefined"?t:typeof t=="undefined"?n:n+t}function kh(n,t){var i=n(t);return!i.$stateful}function k(n,r){var u,f;switch(n.type){case i.Program:u=!0;t(n.body,function(n){k(n.expression,r);u=u&&n.expression.constant});n.constant=u;break;case i.Literal:n.constant=!0;n.toWatch=[];break;case i.UnaryExpression:k(n.argument,r);n.constant=n.argument.constant;n.toWatch=n.argument.toWatch;break;case i.BinaryExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.left.toWatch.concat(n.right.toWatch);break;case i.LogicalExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=n.constant?[]:[n];break;case i.ConditionalExpression:k(n.test,r);k(n.alternate,r);k(n.consequent,r);n.constant=n.test.constant&&n.alternate.constant&&n.consequent.constant;n.toWatch=n.constant?[]:[n];break;case i.Identifier:n.constant=!1;n.toWatch=[n];break;case i.MemberExpression:k(n.object,r);n.computed&&k(n.property,r);n.constant=n.object.constant&&(!n.computed||n.property.constant);n.toWatch=[n];break;case i.CallExpression:u=n.filter?kh(r,n.callee.name):!1;f=[];t(n.arguments,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=n.filter&&kh(r,n.callee.name)?f:[n];break;case i.AssignmentExpression:k(n.left,r);k(n.right,r);n.constant=n.left.constant&&n.right.constant;n.toWatch=[n];break;case i.ArrayExpression:u=!0;f=[];t(n.elements,function(n){k(n,r);u=u&&n.constant;n.constant||f.push.apply(f,n.toWatch)});n.constant=u;n.toWatch=f;break;case i.ObjectExpression:u=!0;f=[];t(n.properties,function(n){k(n.value,r);u=u&&n.value.constant;n.value.constant||f.push.apply(f,n.value.toWatch)});n.constant=u;n.toWatch=f;break;case i.ThisExpression:n.constant=!1;n.toWatch=[];break;case i.LocalsExpression:n.constant=!1;n.toWatch=[]}}function dh(n){if(n.length==1){var i=n[0].expression,t=i.toWatch;return t.length!==1?t:t[0]!==i?t:undefined}}function gh(n){return n.type===i.Identifier||n.type===i.MemberExpression}function nc(n){if(n.body.length===1&&gh(n.body[0].expression))return{type:i.AssignmentExpression,left:n.body[0].expression,right:{type:i.NGValueParameter},operator:"="}}function tc(n){return n.body.length===0||n.body.length===1&&(n.body[0].expression.type===i.Literal||n.body[0].expression.type===i.ArrayExpression||n.body[0].expression.type===i.ObjectExpression)}function ic(n){return n.constant}function rc(n,t){this.astBuilder=n;this.$filter=t}function uc(n,t){this.astBuilder=n;this.$filter=t}function hf(n){return n=="constructor"}function be(n){return f(n.valueOf)?n.valueOf():fc.call(n)}function aw(){var e=p(),s=p(),r={"true":!0,"false":!1,"null":null,undefined:undefined},n,i;this.addLiteral=function(n,t){r[n]=t};this.setIdentifierFns=function(t,r){return n=t,i=r,this};this.$get=["$filter",function(h){function w(n,t,i){var r,l,u,f;i=i||c;switch(typeof n){case"string":if(n=n.trim(),u=n,f=i?s:e,r=f[u],!r){n.charAt(0)===":"&&n.charAt(1)===":"&&(l=!0,n=n.substring(2));var p=i?g:d,w=new of(p),tt=new sf(w,h,p);r=tt.parse(n);r.constant?r.$$watchDelegate=nt:l?r.$$watchDelegate=r.literal?k:b:r.inputs&&(r.$$watchDelegate=v);i&&(r=a(r));f[u]=r}return y(r,t);case"function":return y(n,t);default:return y(o,t)}}function a(n){function t(t,i,r,u){var f=c;c=!0;try{return n(t,i,r,u)}finally{c=f}}if(!n)return n;t.$$watchDelegate=n.$$watchDelegate;t.assign=a(n.assign);t.constant=n.constant;t.literal=n.literal;for(var i=0;n.inputs&&i<n.inputs.length;++i)n.inputs[i]=a(n.inputs[i]);return t.inputs=n.inputs,t}function l(n,t){return n==null||t==null?n===t:typeof n=="object"&&(n=be(n),typeof n=="object")?!1:n===t||n!==n&&t!==t}function v(n,t,i,r,u){var f=r.inputs,o,c,s,h,e,a;if(f.length===1)return c=l,f=f[0],n.$watch(function(n){var t=f(n);return l(t,c)||(o=r(n,undefined,undefined,[t]),c=t&&be(t)),o},t,i,u);for(s=[],h=[],e=0,a=f.length;e<a;e++)s[e]=l,h[e]=null;return n.$watch(function(n){for(var i,u=!1,t=0,e=f.length;t<e;t++)i=f[t](n),(u||(u=!l(i,s[t])))&&(h[t]=i,s[t]=i&&be(i));return u&&(o=r(n,undefined,undefined,h)),o},t,i,u)}function b(n,t,i,r){var e,o;return e=n.$watch(function(n){return r(n)},function(n,i,r){o=n;f(t)&&t.apply(this,arguments);u(n)&&r.$$postDigest(function(){u(o)&&e()})},i)}function k(n,i,r,e){function h(n){var i=!0;return t(n,function(n){u(n)||(i=!1)}),i}var o,s;return o=n.$watch(function(n){return e(n)},function(n,t,r){s=n;f(i)&&i.call(this,n,t,r);h(n)&&r.$$postDigest(function(){h(s)&&o()})},r)}function nt(n,t,i,r){var u;return u=n.$watch(function(n){return u(),r(n)},t,i)}function y(n,t){if(!t)return n;var r=n.$$watchDelegate,f=!1,e=r!==k&&r!==b,i=e?function(i,r,u,e){var o=f&&e?e[0]:n(i,r,u,e);return t(o,i,r)}:function(i,r,f,e){var o=n(i,r,f,e),s=t(o,i,r);return u(o)?s:o};return n.$$watchDelegate&&n.$$watchDelegate!==v?i.$$watchDelegate=n.$$watchDelegate:t.$stateful||(i.$$watchDelegate=v,f=!n.inputs,i.inputs=n.inputs?n.inputs:[n]),i}var p=ti().noUnsafeEval,d={csp:p,expensiveChecks:!1,literals:ni(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},g={csp:p,expensiveChecks:!0,literals:ni(r),isIdentifierStart:f(n)&&n,isIdentifierContinue:f(i)&&i},c=!1;return w.$$runningExpensiveChecks=function(){return c},w}]}function vw(){this.$get=["$rootScope","$exceptionHandler",function(n,t){return ec(function(t){n.$evalAsync(t)},t)}]}function yw(){this.$get=["$browser","$exceptionHandler",function(n,t){return ec(function(t){n.defer(t)},t)}]}function ec(n,i){function a(){this.$$state={status:0}}function o(n,t){return function(i){t.call(n,i)}}function d(n){var e,t,u,r,o;for(u=n.pending,n.processScheduled=!1,n.pending=undefined,r=0,o=u.length;r<o;++r){t=u[r][0];e=u[r][n.status];try{f(e)?t.resolve(e(n.value)):n.status===1?t.resolve(n.value):t.reject(n.value)}catch(s){t.reject(s);i(s)}}}function y(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,n(function(){d(t)}))}function u(){this.promise=new a}function tt(n){var r=new u,f=0,i=c(n)?[]:{};return t(n,function(n,t){f++;p(n).then(function(n){i.hasOwnProperty(t)||(i[t]=n,--f||r.resolve(i))},function(n){i.hasOwnProperty(t)||r.reject(n)})}),f===0&&r.resolve(i),r.promise}var w=l("$q",TypeError),k=function(){var n=new u;return n.resolve=o(n,n.resolve),n.reject=o(n,n.reject),n.notify=o(n,n.notify),n},e;v(a.prototype,{then:function(n,t,i){if(r(n)&&r(t)&&r(i))return this;var f=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([f,n,t,i]),this.$$state.status>0&&y(this.$$state),f.promise},"catch":function(n){return this.then(null,n)},"finally":function(n,t){return this.then(function(t){return b(t,!0,n)},function(t){return b(t,!1,n)},t)}});v(u.prototype,{resolve:function(n){this.promise.$$state.status||(n===this.promise?this.$$reject(w("qcycle","Expected promise to be resolved with value other than itself '{0}'",n)):this.$$resolve(n))},$$resolve:function(n){function c(n){t||(t=!0,u.$$resolve(n))}function h(n){t||(t=!0,u.$$reject(n))}var r,u=this,t=!1;try{(s(n)||f(n))&&(r=n&&n.then);f(r)?(this.promise.$$state.status=-1,r.call(n,c,h,o(this,this.notify))):(this.promise.$$state.value=n,this.promise.$$state.status=1,y(this.promise.$$state))}catch(e){h(e);i(e)}},reject:function(n){this.promise.$$state.status||this.$$reject(n)},$$reject:function(n){this.promise.$$state.value=n;this.promise.$$state.status=2;y(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&n(function(){for(var u,e,n=0,o=r.length;n<o;n++){e=r[n][0];u=r[n][3];try{e.notify(f(u)?u(t):t)}catch(s){i(s)}}})}});var g=function(n){var t=new u;return t.reject(n),t.promise},h=function(n,t){var i=new u;return t?i.resolve(n):i.reject(n),i.promise},b=function(n,t,i){var r=null;try{f(i)&&(r=i())}catch(u){return h(u,!1)}return su(r)?r.then(function(){return h(n,t)},function(n){return h(n,!1)}):h(n,t)},p=function(n,t,i,r){var f=new u;return f.resolve(n),f.promise.then(t,i,r)},nt=p;return e=function(n){function i(n){t.resolve(n)}function r(n){t.reject(n)}if(!f(n))throw w("norslvr","Expected resolverFn, got '{0}'",n);var t=new u;return n(i,r),t.promise},e.prototype=a.prototype,e.defer=k,e.reject=g,e.when=p,e.resolve=nt,e.all=tt,e}function pw(){this.$get=["$window","$timeout",function(n,t){var i=n.requestAnimationFrame||n.webkitRequestAnimationFrame,f=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.webkitCancelRequestAnimationFrame,r=!!i,u=r?function(n){var t=i(n);return function(){f(t)}}:function(n){var i=t(n,16.66,!1);return function(){t.cancel(i)}};return u.supported=r,u}]}function ww(){function h(n){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=ou();this.$$ChildScope=null}return t.prototype=n,t}var u=10,e=l("$rootScope"),n=null,i=null;this.digestTtl=function(n){return arguments.length&&(u=n),u};this.$get=["$exceptionHandler","$parse","$browser",function(c,l,a){function ut(n){n.currentScope.$$destroyed=!0}function w(n){gt===9&&(n.$$childHead&&w(n.$$childHead),n.$$nextSibling&&w(n.$$nextSibling));n.$parent=n.$$nextSibling=n.$$prevSibling=n.$$childHead=n.$$childTail=n.$root=n.$$watchers=null}function p(){this.$id=ou();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function nt(n){if(v.$$phase)throw e("inprog","{0} already in progress",v.$$phase);v.$$phase=n}function d(){v.$$phase=null}function g(n,t){do n.$$watchersCount+=t;while(n=n.$parent)}function tt(n,t,i){do n.$$listenerCount[i]-=t,n.$$listenerCount[i]===0&&delete n.$$listenerCount[i];while(n=n.$parent)}function it(){}function rt(){while(k.length)try{k.shift()()}catch(n){c(n)}i=null}function ft(){i===null&&(i=a.defer(function(){v.$apply(rt)}))}p.prototype={constructor:p,$new:function(n,t){var i;return t=t||this,n?(i=new p,i.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=h(this)),i=new this.$$ChildScope),i.$parent=t,i.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=i,t.$$childTail=i):t.$$childHead=t.$$childTail=i,(n||t!=this)&&i.$on("$destroy",ut),i},$watch:function(t,i,r,u){var e=l(t);if(e.$$watchDelegate)return e.$$watchDelegate(this,i,r,e,t);var h=this,s=h.$$watchers,c={fn:i,last:it,get:e,exp:u||t,eq:!!r};return n=null,f(i)||(c.fn=o),s||(s=h.$$watchers=[]),s.unshift(c),g(this,1),function(){or(s,c)>=0&&g(h,-1);n=null}},$watchGroup:function(n,i){function c(){o=!1;h?(h=!1,i(r,r,u)):i(r,f,u)}var f=new Array(n.length),r=new Array(n.length),e=[],u=this,o=!1,h=!0,s;return n.length?n.length===1?this.$watch(n[0],function(n,t,u){r[0]=n;f[0]=t;i(r,n===t?r:f,u)}):(t(n,function(n,t){var i=u.$watch(n,function(n,i){r[t]=n;f[t]=i;o||(o=!0,u.$evalAsync(c))});e.push(i)}),function(){while(e.length)e.shift()()}):(s=!0,u.$evalAsync(function(){s&&i(r,r,u)}),function(){s=!1})},$watchCollection:function(n,t){function y(n){var l,o,y,t,h,v;if(i=n,!r(i)){if(s(i))if(ei(i))for(u!==c&&(u=c,e=u.length=0,f++),l=i.length,e!==l&&(f++,u.length=e=l),v=0;v<l;v++)h=u[v],t=i[v],y=h!==h&&t!==t,y||h===t||(f++,u[v]=t);else{u!==a&&(u=a={},e=0,f++);l=0;for(o in i)at.call(i,o)&&(l++,t=i[o],h=u[o],o in u?(y=h!==h&&t!==t,y||h===t||(f++,u[o]=t)):(e++,u[o]=t,f++));if(e>l){f++;for(o in u)at.call(i,o)||(e--,delete u[o])}}else u!==i&&(u=i,f++);return f}}function b(){var n,r;if(v?(v=!1,t(i,i,h)):t(i,o,h),p)if(s(i))if(ei(i))for(o=new Array(i.length),n=0;n<i.length;n++)o[n]=i[n];else{o={};for(r in i)at.call(i,r)&&(o[r]=i[r])}else o=i}y.$stateful=!0;var h=this,i,u,o,p=t.length>1,f=0,w=l(n,y),c=[],a={},v=!0,e=0;return this.$watch(w,b)},$digest:function(){var t,o,s,ot,ht,k,g,h,tt=u,ut,r,ft=this,l=[],p,w;nt("$digest");a.$$checkUrlChange();this===v&&i!==null&&(a.defer.cancel(i),rt());n=null;do{for(h=!1,r=ft;y.length;){try{w=y.shift();w.scope.$eval(w.expression,w.locals)}catch(et){c(et)}n=null}n:do{if(k=r.$$watchers)for(g=k.length;g--;)try{if(t=k[g],t)if(ht=t.get,(o=ht(r))===(s=t.last)||(t.eq?st(o,s):typeof o=="number"&&typeof s=="number"&&isNaN(o)&&isNaN(s))){if(t===n){h=!1;break n}}else h=!0,n=t,t.last=t.eq?ni(o,null):o,ot=t.fn,ot(o,s===it?o:s,r),tt<5&&(p=4-tt,l[p]||(l[p]=[]),l[p].push({msg:f(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:o,oldVal:s}))}catch(et){c(et)}if(!(ut=r.$$watchersCount&&r.$$childHead||r!==ft&&r.$$nextSibling))while(r!==ft&&!(ut=r.$$nextSibling))r=r.$parent}while(r=ut);if((h||y.length)&&!tt--){d();throw e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",u,l);}}while(h||y.length);for(d();b.length;)try{b.shift()()}catch(et){c(et)}},$destroy:function(){var n,t;if(!this.$$destroyed){n=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===v&&a.$$applicationDestroyed();g(this,-this.$$watchersCount);for(t in this.$$listenerCount)tt(this,this.$$listenerCount[t],t);n&&n.$$childHead==this&&(n.$$childHead=this.$$nextSibling);n&&n.$$childTail==this&&(n.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=o;this.$on=this.$watch=this.$watchGroup=function(){return o};this.$$listeners={};this.$$nextSibling=null;w(this)}},$eval:function(n,t){return l(n)(this,t)},$evalAsync:function(n,t){v.$$phase||y.length||a.defer(function(){y.length&&v.$digest()});y.push({scope:this,expression:l(n),locals:t})},$$postDigest:function(n){b.push(n)},$apply:function(n){try{nt("$apply");try{return this.$eval(n)}finally{d()}}catch(t){c(t)}finally{try{v.$digest()}catch(t){c(t);throw t;}}},$applyAsync:function(n){function i(){t.$eval(n)}var t=this;n&&k.push(i);n=l(n);ft()},$on:function(n,t){var r=this.$$listeners[n],i,u;r||(this.$$listeners[n]=r=[]);r.push(t);i=this;do i.$$listenerCount[n]||(i.$$listenerCount[n]=0),i.$$listenerCount[n]++;while(i=i.$parent);return u=this,function(){var i=r.indexOf(t);i!==-1&&(r[i]=null,tt(u,1,n))}},$emit:function(n){var o=[],u,r=this,e=!1,t={name:n,targetScope:r,stopPropagation:function(){e=!0},preventDefault:function(){t.defaultPrevented=!0},defaultPrevented:!1},s=hr([t],arguments,1),i,f;do{for(u=r.$$listeners[n]||o,t.currentScope=r,i=0,f=u.length;i<f;i++){if(!u[i]){u.splice(i,1);i--;f--;continue}try{u[i].apply(null,s)}catch(h){c(h)}}if(e)return t.currentScope=null,t;r=r.$parent}while(r);return t.currentScope=null,t},$broadcast:function(n){var r=this,t=r,e=r,u={name:n,targetScope:r,preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},s,f,i,o;if(!r.$$listenerCount[n])return u;for(s=hr([u],arguments,1);t=e;){for(u.currentScope=t,f=t.$$listeners[n]||[],i=0,o=f.length;i<o;i++){if(!f[i]){f.splice(i,1);i--;o--;continue}try{f[i].apply(null,s)}catch(h){c(h)}}if(!(e=t.$$listenerCount[n]&&t.$$childHead||t!==r&&t.$$nextSibling))while(t!==r&&!(e=t.$$nextSibling))t=t.$parent}return u.currentScope=null,u}};var v=new p,y=v.$$asyncQueue=[],b=v.$$postDigestQueue=[],k=v.$$applyAsyncQueue=[];return v}]}function bw(){var n=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return u(t)?(n=t,this):n};this.imgSrcSanitizationWhitelist=function(n){return u(n)?(t=n,this):t};this.$get=function(){return function(i,r){var f=r?t:n,u;return(u=ui(i).href,u!==""&&!u.match(f))?"unsafe:"+u:i}}}function kw(n){if(n==="self")return n;if(h(n)){if(n.indexOf("***")>-1)throw dt("iwcard","Illegal sequence *** in string matcher.  String: {0}",n);return n=wf(n).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+n+"$")}if(ur(n))return new RegExp("^"+n.source+"$");throw dt("imatcher",'Matchers may only be "self", string patterns or RegExp objects');}function oc(n){var i=[];return u(n)&&t(n,function(n){i.push(kw(n))}),i}function dw(){this.SCE_CONTEXTS=ht;var n=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(n=oc(t)),n};this.resourceUrlBlacklist=function(n){return arguments.length&&(t=oc(n)),t};this.$get=["$injector",function(i){function s(n,t){return n==="self"?hc(t):!!n.exec(t.href)}function h(i){for(var e=ui(i.toString()),f=!1,r=0,u=n.length;r<u;r++)if(s(n[r],e)){f=!0;break}if(f)for(r=0,u=t.length;r<u;r++)if(s(t[r],e)){f=!1;break}return f}function f(n){var t=function(n){this.$$unwrapTrustedValue=function(){return n}};return n&&(t.prototype=new n),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function c(n,t){var i=u.hasOwnProperty(n)?u[n]:null;if(!i)throw dt("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",n,t);if(t===null||r(t)||t==="")return t;if(typeof t!="string")throw dt("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",n);return new i(t)}function l(n){return n instanceof e?n.$$unwrapTrustedValue():n}function a(n,t){if(t===null||r(t)||t==="")return t;var i=u.hasOwnProperty(n)?u[n]:null;if(i&&t instanceof i)return t.$$unwrapTrustedValue();if(n===ht.RESOURCE_URL){if(h(t))return t;throw dt("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString());}else if(n===ht.HTML)return o(t);throw dt("unsafe","Attempting to use an unsafe value in a safe context.");}var o=function(){throw dt("unsafe","Attempting to use an unsafe value in a safe context.");},e,u;return i.has("$sanitize")&&(o=i.get("$sanitize")),e=f(),u={},u[ht.HTML]=f(e),u[ht.CSS]=f(e),u[ht.URL]=f(e),u[ht.JS]=f(e),u[ht.RESOURCE_URL]=f(u[ht.URL]),{trustAs:c,getTrusted:a,valueOf:l}}]}function gw(){var n=!0;this.enabled=function(t){return arguments.length&&(n=!!t),n};this.$get=["$parse","$sceDelegate",function(i,r){var u;if(n&&gt<8)throw dt("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");u=ot(ht);u.isEnabled=function(){return n};u.trustAs=r.trustAs;u.getTrusted=r.getTrusted;u.valueOf=r.valueOf;n||(u.trustAs=u.getTrusted=function(n,t){return t},u.valueOf=rr);u.parseAs=function(n,t){var r=i(t);return r.literal&&r.constant?r:i(t,function(t){return u.getTrusted(n,t)})};var f=u.parseAs,e=u.getTrusted,o=u.trustAs;return t(ht,function(n,t){var i=a(t);u[yr("parse_as_"+i)]=function(t){return f(n,t)};u[yr("get_trusted_"+i)]=function(t){return e(n,t)};u[yr("trust_as_"+i)]=function(t){return o(n,t)}}),u}]}function nb(){this.$get=["$window","$document",function(n,t){var o={},y=n.chrome&&n.chrome.app&&n.chrome.app.runtime,p=!y&&n.history&&n.history.pushState,s=tt((/android (\d+)/.exec(a((n.navigator||{}).userAgent))||[])[1]),w=/Boxee/i.test((n.navigator||{}).userAgent),c=t[0]||{},i,u=c.body&&c.body.style,f=!1,e=!1,l,v;if(u){for(v in u)if(l=/^(Moz|webkit|ms)(?=[A-Z])/.exec(v)){i=l[0];i=i.substr(0,1).toUpperCase()+i.substr(1);break}i||(i="WebkitOpacity"in u&&"webkit");f=!!("transition"in u||i+"Transition"in u);e=!!("animation"in u||i+"Animation"in u);!s||f&&e||(f=h(u.webkitTransition),e=h(u.webkitAnimation))}return{history:!!(p&&!(s<4)&&!w),hasEvent:function(n){if(n==="input"&&gt<=11)return!1;if(r(o[n])){var t=c.createElement("div");o[n]="on"+n in t}return o[n]},csp:ti(),vendorPrefix:i,transitions:f,animations:e,android:s}}]}function tb(){var n;this.httpOptions=function(t){return t?(n=t,this):n};this.$get=["$templateCache","$http","$q","$sce",function(t,i,r,u){function f(e,o){function l(n){if(!o)throw sc("tpload","Failed to load template: {0} (HTTP status: {1} {2})",e,n.status,n.statusText);return r.reject(n)}f.totalPendingRequests++;h(e)&&t.get(e)||(e=u.getTrustedResourceUrl(e));var s=i.defaults&&i.defaults.transformResponse;return c(s)?s=s.filter(function(n){return n!==ae}):s===ae&&(s=null),i.get(e,v({cache:t,transformResponse:s},n))["finally"](function(){f.totalPendingRequests--}).then(function(n){return t.put(e,n.data),n.data},l)}return f.totalPendingRequests=0,f}]}function ib(){this.$get=["$rootScope","$browser","$location",function(n,i,r){var u={};return u.findBindings=function(n,i,r){var f=n.getElementsByClassName("ng-binding"),u=[];return t(f,function(n){var f=ut.element(n).data("$binding");f&&t(f,function(t){if(r){var f=new RegExp("(^|\\s)"+wf(i)+"(\\s|\\||$)");f.test(t)&&u.push(n)}else t.indexOf(i)!=-1&&u.push(n)})}),u},u.findModels=function(n,t,i){for(var u=["ng-","data-ng-","ng\\:"],r=0;r<u.length;++r){var e=i?"=":"*=",o="["+u[r]+"model"+e+'"'+t+'"]',f=n.querySelectorAll(o);if(f.length)return f}},u.getLocation=function(){return r.url()},u.setLocation=function(t){t!==r.url()&&(r.url(t),n.$digest())},u.whenStable=function(n){i.notifyWhenNoOutstandingRequests(n)},u}]}function rb(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(n,t,i,r,e){function h(h,c,l){f(h)||(l=c,c=h,h=o);var w=cr(arguments,3),p=u(l)&&!l,a=(p?r:i).defer(),v=a.promise,y;return y=t.defer(function(){try{a.resolve(h.apply(null,w))}catch(t){a.reject(t);e(t)}finally{delete s[v.$$timeoutId]}p||n.$apply()},c),v.$$timeoutId=y,s[y]=a,v}var s={};return h.cancel=function(n){return n&&n.$$timeoutId in s?(s[n.$$timeoutId].reject("canceled"),delete s[n.$$timeoutId],t.defer.cancel(n.$$timeoutId)):!1},h}]}function ui(n){var t=n;return gt&&(g.setAttribute("href",t),t=g.href),g.setAttribute("href",t),{href:g.href,protocol:g.protocol?g.protocol.replace(/:$/,""):"",host:g.host,search:g.search?g.search.replace(/^\?/,""):"",hash:g.hash?g.hash.replace(/^#/,""):"",hostname:g.hostname,port:g.port,pathname:g.pathname.charAt(0)==="/"?g.pathname:"/"+g.pathname}}function hc(n){var t=h(n)?ui(n):n;return t.protocol===ke.protocol&&t.host===ke.host}function ub(){this.$get=ft(n)}function cc(n){function u(n){try{return decodeURIComponent(n)}catch(t){return n}}var f=n[0]||{},t={},i="";return function(){var s,n,e,o,h,c=f.cookie||"";if(c!==i)for(i=c,s=i.split("; "),t={},e=0;e<s.length;e++)n=s[e],o=n.indexOf("="),o>0&&(h=u(n.substring(0,o)),r(t[h])&&(t[h]=u(n.substring(o+1))));return t}}function fb(){this.$get=cc}function lc(n){function i(u,f){if(s(u)){var e={};return t(u,function(n,t){e[t]=i(t,n)}),e}return n.factory(u+r,f)}var r="Filter";this.register=i;this.$get=["$injector",function(n){return function(t){return n.get(t+r)}}];i("currency",yc);i("date",dc);i("filter",eb);i("json",bb);i("limitTo",kb);i("lowercase",gc);i("number",pc);i("orderBy",tl);i("uppercase",nl)}function eb(){return function(n,t,i){if(!ei(n)){if(n==null)return n;throw l("filter")("notarray","Expected array but received: {0}",n);}var f=de(t),r,u;switch(f){case"function":r=t;break;case"boolean":case"null":case"number":case"string":u=!0;case"object":r=ob(t,i,u);break;default:return n}return Array.prototype.filter.call(n,r)}}function ob(n,t,i){var u=s(n)&&"$"in n;return t===!0?t=st:f(t)||(t=function(n,t){return r(n)?!1:n===null||t===null?n===t:s(t)||s(n)&&!ao(n)?!1:(n=a(""+n),t=a(""+t),n.indexOf(t)!==-1)}),function(r){return u&&!s(r)?yi(r,n.$,t,!1):yi(r,n,t,i)}}function yi(n,t,i,u,e){var v=de(n),l=de(t),o,s,h,a;if(l==="string"&&t.charAt(0)==="!")return!yi(n,t.substring(1),i,u);if(c(n))return n.some(function(n){return yi(n,t,i,u)});switch(v){case"object":if(u){for(o in n)if(o.charAt(0)!=="$"&&yi(n[o],t,i,!0))return!0;return e?!1:yi(n,t,i,!1)}if(l==="object"){for(o in t)if((s=t[o],!f(s)&&!r(s))&&(h=o==="$",a=h?n:n[o],!yi(a,s,i,h,h)))return!1;return!0}return i(n,t);case"function":return!1;default:return i(n,t)}}function de(n){return n===null?"null":typeof n}function yc(n){var t=n.NUMBER_FORMATS;return function(n,i,u){return r(i)&&(i=t.CURRENCY_SYM),r(u)&&(u=t.PATTERNS[1].maxFrac),n==null?n:wc(n,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,u).replace(/\u00A4/g,i)}}function pc(n){var t=n.NUMBER_FORMATS;return function(n,i){return n==null?n:wc(n,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,i)}}function sb(n){var e=0,r,t,i,f,u;for((t=n.indexOf(vc))>-1&&(n=n.replace(vc,"")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charAt(i)==ge;i++);if(i==(u=n.length))r=[0],t=1;else{for(u--;n.charAt(u)==ge;)u--;for(t-=i,r=[],f=0;i<=u;i++,f++)r[f]=+n.charAt(i)}return t>ac&&(r=r.splice(0,ac-1),e=t-1,t=1),{d:r,e:e,i:t}}function hb(n,t,i,u){var f=n.d,o=f.length-n.i,e,a,s,h,c,l;if(t=r(t)?Math.min(Math.max(i,o),u):+t,e=t+n.i,a=f[e],e>0)for(f.splice(Math.max(n.i,e)),s=e;s<f.length;s++)f[s]=0;else for(o=Math.max(0,o),n.i=1,f.length=Math.max(1,e=t+1),f[0]=0,h=1;h<e;h++)f[h]=0;if(a>=5)if(e-1<0){for(c=0;c>e;c--)f.unshift(0),n.i++;f.unshift(1);n.i++}else f[e-1]++;for(;o<Math.max(0,t);o++)f.push(0);l=f.reduceRight(function(n,t,i,r){return t=t+n,r[i]=t%10,Math.floor(t/10)},0);l&&(f.unshift(l),n.i++)}function wc(n,t,i,r,u){var s;if(!(h(n)||w(n))||isNaN(n))return"";var y=!isFinite(n),a=!1,p=Math.abs(n)+"",e="",o;if(y)e="∞";else{o=sb(p);hb(o,u,t.minFrac,t.maxFrac);var f=o.d,c=o.i,v=o.e,l=[];for(a=f.reduce(function(n,t){return n&&!t},!0);c<0;)f.unshift(0),c++;for(c>0?l=f.splice(c):(l=f,f=[0]),s=[],f.length>=t.lgSize&&s.unshift(f.splice(-t.lgSize).join(""));f.length>t.gSize;)s.unshift(f.splice(-t.gSize).join(""));f.length&&s.unshift(f.join(""));e=s.join(i);l.length&&(e+=r+l.join(""));v&&(e+="e+"+v)}return n<0&&!a?t.negPre+e+t.negSuf:t.posPre+e+t.posSuf}function cf(n,t,i,r){var u="";for((n<0||r&&n<=0)&&(r?n=-n+1:(n=-n,u="-")),n=""+n;n.length<t;)n=ge+n;return i&&(n=n.substr(n.length-t)),u+n}function nt(n,t,i,r,u){return i=i||0,function(f){var e=f["get"+n]();return(i>0||e>-i)&&(e+=i),e===0&&i==-12&&(e=12),cf(e,t,r,u)}}function nu(n,t,i){return function(r,u){var f=r["get"+n](),e=(i?"STANDALONE":"")+(t?"SHORT":""),o=tr(e+n);return u[o][f]}}function cb(n,t,i){var r=-1*i,u=r>=0?"+":"";return u+(cf(Math[r>0?"floor":"ceil"](r/60),2)+cf(Math.abs(r%60),2))}function bc(n){var t=new Date(n,0,1).getDay();return new Date(n,0,(t<=4?5:12)-t)}function lb(n){return new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay()))}function kc(n){return function(t){var i=bc(t.getFullYear()),r=lb(t),u=+r-+i,f=1+Math.round(u/6048e5);return cf(f,n)}}function ab(n,t){return n.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function no(n,t){return n.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function vb(n,t){return n.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function dc(n){function r(n){var t;if(t=n.match(i)){var r=new Date(0),u=0,f=0,e=t[8]?r.setUTCFullYear:r.setFullYear,o=t[8]?r.setUTCHours:r.setHours;t[9]&&(u=tt(t[9]+t[10]),f=tt(t[9]+t[11]));e.call(r,tt(t[1]),tt(t[2])-1,tt(t[3]));var s=tt(t[4]||0)-u,h=tt(t[5]||0)-f,c=tt(t[6]||0),l=Math.round(parseFloat("0."+(t[7]||0))*1e3);return o.call(r,s,h,c,l),r}return n}var i=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(i,u,f){var l="",e=[],s,c,o;if(u=u||"mediumDate",u=n.DATETIME_FORMATS[u]||u,h(i)&&(i=wb.test(i)?tt(i):r(i)),w(i)&&(i=new Date(i)),!et(i)||!isFinite(i.getTime()))return i;while(u)c=pb.exec(u),c?(e=hr(e,c,1),u=e.pop()):(e.push(u),u=null);return o=i.getTimezoneOffset(),f&&(o=go(f,o),i=kf(i,f,!0)),t(e,function(t){s=yb[t];l+=s?s(i,n.DATETIME_FORMATS,o):t==="''"?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}}function bb(){return function(n,t){return r(t)&&(t=2),lr(n,t)}}function kb(){return function(n,t,i){return(t=Math.abs(Number(t))===Infinity?Number(t):tt(t),isNaN(t))?n:(w(n)&&(n=n.toString()),!c(n)&&!h(n))?n:(i=!i||isNaN(i)?0:tt(i),i=i<0?Math.max(0,n.length+i):i,t>=0?n.slice(i,i+t):i===0?n.slice(t,n.length):n.slice(Math.max(0,i+t),i))}}function tl(n){function i(t,i){return i=i?-1:1,t.map(function(t){var u=1,r=rr,e;return f(t)?r=t:h(t)&&((t.charAt(0)=="+"||t.charAt(0)=="-")&&(u=t.charAt(0)=="-"?-1:1,t=t.substring(1)),t!==""&&(r=n(t),r.constant&&(e=r(),r=function(n){return n[e]}))),{get:r,descending:u*i}})}function t(n){switch(typeof n){case"number":case"boolean":case"string":return!0;default:return!1}}function r(n,i){return typeof n.valueOf=="function"&&(n=n.valueOf(),t(n))?n:ao(n)&&(n=n.toString(),t(n))?n:i}function u(n,t){var i=typeof n;return n===null?(i="string",n="null"):i==="string"?n=n.toLowerCase():i==="object"&&(n=r(n,t)),{value:n,type:i}}function e(n,t){var i=0;return n.type===t.type?n.value!==t.value&&(i=n.value<t.value?-1:1):i=n.type<t.type?-1:1,i}return function(n,t,r){function s(n,t){return{value:n,predicateValues:f.map(function(i){return u(i.get(n),t)})}}function h(n,t){for(var r=0,i=0,u=f.length;i<u;++i)if(r=e(n.predicateValues[i],t.predicateValues[i])*f[i].descending,r)break;return r}var f,o;if(n==null)return n;if(!ei(n))throw l("orderBy")("notarray","Expected array but received: {0}",n);return c(t)||(t=[t]),t.length===0&&(t=["+"]),f=i(t,r),f.push({get:function(){return{}},descending:r?-1:1}),o=Array.prototype.map.call(n,s),o.sort(h),o.map(function(n){return n.value})}}function pi(n){return f(n)&&(n={link:n}),n.restrict=n.restrict||"AC",ft(n)}function db(n,t){n.$name=t}function rl(n,i,r,u,f){var e=this,o=[];e.$error={};e.$$success={};e.$pending=undefined;e.$name=f(i.name||i.ngForm||"")(r);e.$dirty=!1;e.$pristine=!0;e.$valid=!0;e.$invalid=!1;e.$submitted=!1;e.$$parentForm=iu;e.$rollbackViewValue=function(){t(o,function(n){n.$rollbackViewValue()})};e.$commitViewValue=function(){t(o,function(n){n.$commitViewValue()})};e.$addControl=function(n){bi(n.$name,"input");o.push(n);n.$name&&(e[n.$name]=n);n.$$parentForm=e};e.$$renameControl=function(n,t){var i=n.$name;e[i]===n&&delete e[i];e[t]=n;n.$name=t};e.$removeControl=function(n){n.$name&&e[n.$name]===n&&delete e[n.$name];t(e.$pending,function(t,i){e.$setValidity(i,null,n)});t(e.$error,function(t,i){e.$setValidity(i,null,n)});t(e.$$success,function(t,i){e.$setValidity(i,null,n)});or(o,n);n.$$parentForm=iu};dl({ctrl:this,$element:n,set:function(n,t,i){var r=n[t],u;r?(u=r.indexOf(i),u===-1&&r.push(i)):n[t]=[i]},unset:function(n,t,i){var r=n[t];r&&(or(r,i),r.length===0&&delete n[t])},$animate:u});e.$setDirty=function(){u.removeClass(n,nr);u.addClass(n,af);e.$dirty=!0;e.$pristine=!1;e.$$parentForm.$setDirty()};e.$setPristine=function(){u.setClass(n,nr,af+" "+to);e.$dirty=!1;e.$pristine=!0;e.$submitted=!1;t(o,function(n){n.$setPristine()})};e.$setUntouched=function(){t(o,function(n){n.$setUntouched()})};e.$setSubmitted=function(){u.addClass(n,to);e.$submitted=!0;e.$$parentForm.$setSubmitted()}}function uo(n){n.$formatters.push(function(t){return n.$isEmpty(t)?t:t.toString()})}function ek(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r)}function ru(n,t,i,r,u,f){var h=a(t[0].type),s,e,o,c;if(!u.android){s=!1;t.on("compositionstart",function(){s=!0});t.on("compositionend",function(){s=!1;o()})}if(o=function(n){if(e&&(f.defer.cancel(e),e=null),!s){var u=t.val(),o=n&&n.type;h==="password"||i.ngTrim&&i.ngTrim==="false"||(u=y(u));(r.$viewValue!==u||u===""&&r.$$hasNativeValidators)&&r.$setViewValue(u,o)}},u.hasEvent("input"))t.on("input",o);else{c=function(n,t,i){e||(e=f.defer(function(){e=null;t&&t.value===i||o(n)}))};t.on("keydown",function(n){var t=n.keyCode;t===91||15<t&&t<19||37<=t&&t<=40||c(n,this,this.value)});if(u.hasEvent("paste"))t.on("paste cut",c)}t.on("change",o);if(hl[h]&&r.$$hasNativeValidators&&h===i.type)t.on(fk,function(n){if(!e){var t=this[oo],i=t.badInput,r=t.typeMismatch;e=f.defer(function(){e=null;(t.badInput!==i||t.typeMismatch!==r)&&o(n)})}});r.$render=function(){var n=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==n&&t.val(n)}}function ok(n,t){var i;if(et(n))return n;if(h(n)&&(io.lastIndex=0,i=io.exec(n),i)){var r=+i[1],s=+i[2],u=0,f=0,e=0,o=0,c=bc(r),l=(s-1)*7;return t&&(u=t.getHours(),f=t.getMinutes(),e=t.getSeconds(),o=t.getMilliseconds()),new Date(r,0,c.getDate()+l,u,f,e,o)}return NaN}function lf(n,i){return function(r,u){var e,f;if(et(r))return r;if(h(r)){if(r.charAt(0)=='"'&&r.charAt(r.length-1)=='"'&&(r=r.substring(1,r.length-1)),tk.test(r))return new Date(r);if(n.lastIndex=0,e=n.exec(r),e)return e.shift(),f=u?{yyyy:u.getFullYear(),MM:u.getMonth()+1,dd:u.getDate(),HH:u.getHours(),mm:u.getMinutes(),ss:u.getSeconds(),sss:u.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},t(e,function(n,t){t<i.length&&(f[i[t]]=+n)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,f.sss*1e3||0)}return NaN}}function uu(n,t,i,f){return function(e,o,s,h,c,l,a){function b(n){return n&&!(n.getTime&&n.getTime()!==n.getTime())}function k(n){return u(n)&&!et(n)?i(n)||undefined:n}var v,y,p,w;cl(e,o,s,h);ru(e,o,s,h,c,l);v=h&&h.$options&&h.$options.timezone;h.$$parserName=n;h.$parsers.push(function(n){if(h.$isEmpty(n))return null;if(t.test(n)){var r=i(n,y);return v&&(r=kf(r,v)),r}return undefined});h.$formatters.push(function(n){if(n&&!et(n))throw eu("datefmt","Expected `{0}` to be a date",n);return b(n)?(y=n,y&&v&&(y=kf(y,v,!0)),a("date")(n,f,v)):(y=null,"")});(u(s.min)||s.ngMin)&&(h.$validators.min=function(n){return!b(n)||r(p)||i(n)>=p},s.$observe("min",function(n){p=k(n);h.$validate()}));(u(s.max)||s.ngMax)&&(h.$validators.max=function(n){return!b(n)||r(w)||i(n)<=w},s.$observe("max",function(n){w=k(n);h.$validate()}))}}function cl(n,t,i,r){var u=t[0],f=r.$$hasNativeValidators=s(u.validity);f&&r.$parsers.push(function(n){var i=t.prop(oo)||{};return i.badInput||i.typeMismatch?undefined:n})}function sk(n,t,i,f,e,o){var s,h;cl(n,t,i,f);ru(n,t,i,f,e,o);f.$$parserName="number";f.$parsers.push(function(n){return f.$isEmpty(n)?null:uk.test(n)?parseFloat(n):undefined});f.$formatters.push(function(n){if(!f.$isEmpty(n)){if(!w(n))throw eu("numfmt","Expected `{0}` to be a number",n);n=n.toString()}return n});(u(i.min)||i.ngMin)&&(f.$validators.min=function(n){return f.$isEmpty(n)||r(s)||n>=s},i.$observe("min",function(n){u(n)&&!w(n)&&(n=parseFloat(n,10));s=w(n)&&!isNaN(n)?n:undefined;f.$validate()}));(u(i.max)||i.ngMax)&&(f.$validators.max=function(n){return f.$isEmpty(n)||r(h)||n<=h},i.$observe("max",function(n){u(n)&&!w(n)&&(n=parseFloat(n,10));h=w(n)&&!isNaN(n)?n:undefined;f.$validate()}))}function hk(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r);r.$$parserName="url";r.$validators.url=function(n,t){var i=n||t;return r.$isEmpty(i)||ik.test(i)}}function ck(n,t,i,r,u,f){ru(n,t,i,r,u,f);uo(r);r.$$parserName="email";r.$validators.email=function(n,t){var i=n||t;return r.$isEmpty(i)||rk.test(i)}}function lk(n,t,i,u){r(i.name)&&t.attr("name",ou());var f=function(n){t[0].checked&&u.$setViewValue(i.value,n&&n.type)};t.on("click",f);u.$render=function(){var n=i.value;t[0].checked=n==u.$viewValue};i.$observe("value",u.$render)}function ll(n,t,i,r,f){var e;if(u(r)){if(e=n(r),!e.constant)throw eu("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",i,r);return e(t)}return f}function ak(n,t,i,r,u,f,e,o){var s=ll(o,n,"ngTrueValue",i.ngTrueValue,!0),h=ll(o,n,"ngFalseValue",i.ngFalseValue,!1),c=function(n){r.$setViewValue(t[0].checked,n&&n.type)};t.on("click",c);r.$render=function(){t[0].checked=r.$viewValue};r.$isEmpty=function(n){return n===!1};r.$formatters.push(function(n){return st(n,s)});r.$parsers.push(function(n){return n?s:h})}function fo(n,i){return n="ngClass"+n,["$animate",function(r){function f(n,t){var f=[],i,u,r;n:for(i=0;i<n.length;i++){for(u=n[i],r=0;r<t.length;r++)if(u==t[r])continue n;f.push(u)}return f}function u(n){var i=[];return c(n)?(t(n,function(n){i=i.concat(u(n))}),i):h(n)?n.split(" "):s(n)?(t(n,function(n,t){n&&(i=i.concat(t.split(" ")))}),i):n}return{restrict:"AC",link:function(e,o,s){function a(n){var t=l(n,1);s.$addClass(t)}function y(n){var t=l(n,-1);s.$removeClass(t)}function l(n,i){var r=o.data("$classCounts")||p(),u=[];return t(n,function(n){(i>0||r[n])&&(r[n]=(r[n]||0)+i,r[n]===+(i>0)&&u.push(n))}),o.data("$classCounts",r),u.join(" ")}function w(n,t){var i=f(t,n),u=f(n,t);i=l(i,1);u=l(u,-1);i&&i.length&&r.addClass(o,i);u&&u.length&&r.removeClass(o,u)}function v(n){var t,r;(i===!0||e.$index%2===i)&&(t=u(n||[]),h?st(n,h)||(r=u(h),w(r,t)):a(t));h=c(n)?n.map(function(n){return ot(n)}):ot(n)}var h;e.$watch(s[n],v,!0);s.$observe("class",function(){v(e.$eval(s[n]))});n!=="ngClass"&&e.$watch("$index",function(t,r){var o=t&1,f;o!==(r&1)&&(f=u(e.$eval(s[n])),o===i?a(f):y(f))})}}}]}function dl(n){function c(n,i,e){r(i)?l("$pending",n,e):a("$pending",n,e);oi(i)?i?(u(t.$error,n,e),o(t.$$success,n,e)):(o(t.$error,n,e),u(t.$$success,n,e)):(u(t.$error,n,e),u(t.$$success,n,e));t.$pending?(f(wl,!0),t.$valid=t.$invalid=undefined,s("",null)):(f(wl,!1),t.$valid=gl(t.$error),t.$invalid=!t.$valid,s("",t.$valid));var h;h=t.$pending&&t.$pending[n]?undefined:t.$error[n]?!1:t.$$success[n]?!0:null;s(n,h);t.$$parentForm.$setValidity(n,h,t)}function l(n,i,r){t[n]||(t[n]={});o(t[n],i,r)}function a(n,i,r){t[n]&&u(t[n],i,r);gl(t[n])&&(t[n]=undefined)}function f(n,t){t&&!i[n]?(h.addClass(e,n),i[n]=!0):!t&&i[n]&&(h.removeClass(e,n),i[n]=!1)}function s(n,t){n=n?"-"+us(n,"-"):"";f(fu+n,t===!0);f(yl+n,t===!1)}var t=n.ctrl,e=n.$element,i={},o=n.set,u=n.unset,h=n.$animate;i[yl]=!(i[fu]=e.hasClass(fu));t.$setValidity=c}function gl(n){if(n)for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function sg(n){n[0].hasAttribute("selected")&&(n[0].selected=!0)}var ea=/^\/(.+)\/([a-z]*)$/,oo="validity",at=Object.prototype.hasOwnProperty,a=function(n){return h(n)?n.toLowerCase():n},tr=function(n){return h(n)?n.toUpperCase():n},oa=function(n){return h(n)?n.replace(/[A-Z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)|32)}):n},sa=function(n){return h(n)?n.replace(/[a-z]/g,function(n){return String.fromCharCode(n.charCodeAt(0)&-33)}):n},c,yo,y,wf,ti,sr,ko,si,rs,gf,ss,as,hi,wr,ee,oe,d,tf,se,ih,he,ii,ah,it,gr,wh,of,i,sf,fc,dt,ht,sc,g,ke,gc,nl,il,tu,iu,to,ro;"i"!=="I".toLowerCase()&&(a=oa,tr=sa);var gt,e,bt,ir=[].slice,ha=[].splice,ca=[].push,rt=Object.prototype.toString,so=Object.getPrototypeOf,fi=l("ng"),ut=n.angular||(n.angular={}),vf,la=0;gt=n.document.documentMode;o.$inject=[];rr.$inject=[];c=Array.isArray;yo=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/;y=function(n){return h(n)?n.trim():n};wf=function(n){return n.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};ti=function(){function r(){try{return new Function(""),!1}catch(n){return!0}}var i,t;return u(ti.rules)||(i=n.document.querySelector("[ng-csp]")||n.document.querySelector("[data-ng-csp]"),i?(t=i.getAttribute("ng-csp")||i.getAttribute("data-ng-csp"),ti.rules={noUnsafeEval:!t||t.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!t||t.indexOf("no-inline-style")!==-1}):ti.rules={noUnsafeEval:r(),noInlineStyle:!1}),ti.rules};sr=function(){if(u(sr.name_))return sr.name_;for(var r,e=si.length,i,f,t=0;t<e;++t)if(i=si[t],r=n.document.querySelector("["+i.replace(":","\\:")+"jq]")){f=r.getAttribute(i+"jq");break}return sr.name_=f};ko=/:/g;si=["ng-","data-ng-","ng:","x-ng-"];rs=/[A-Z]/g;gf=!1;var kt=1,uv=2,ki=3,au=8,es=9,ne=11;ss={full:"1.5.5",major:1,minor:5,dot:5,codeName:"material-conspiration"};b.expando="ng339";var ar=b.cache={},sv=1,vu=function(n,t,i){n.addEventListener(t,i,!1)},vr=function(n,t,i){n.removeEventListener(t,i,!1)};b._data=function(n){return this.cache[n[this.expando]]||{}};var cv=/([\:\-\_]+(.))/g,lv=/^moz([A-Z])/,yu={mouseleave:"mouseout",mouseenter:"mouseover"},te=l("jqLite");var av=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,vv=/<|&#?\w+;/,yv=/<([\w:-]+)/,pv=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,lt={option:[1,'<select multiple="multiple">',"<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};lt.optgroup=lt.option;lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead;lt.th=lt.td;as=n.Node.prototype.contains||function(n){return!!(this.compareDocumentPosition(n)&16)};hi=b.prototype={ready:function(t){function i(){r||(r=!0,t())}var r=!1;if(n.document.readyState==="complete")n.setTimeout(i);else{this.on("DOMContentLoaded",i);b(n).on("load",i)}},toString:function(){var n=[];return t(this,function(t){n.push(""+t)}),"["+n.join(", ")+"]"},eq:function(n){return n>=0?e(this[n]):e(this[this.length+n])},length:0,push:ca,sort:[].sort,splice:[].splice};wr={};t("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(n){wr[a(n)]=n});ee={};t("input,select,option,textarea,button,form,details".split(","),function(n){ee[n]=!0});oe={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};t({data:ue,removeData:pr,hasData:wv,cleanData:bv},function(n,t){b[t]=n});t({data:ue,inheritedData:gu,scope:function(n){return e.data(n,"$scope")||gu(n.parentNode||n,["$isolateScope","$scope"])},isolateScope:function(n){return e.data(n,"$isolateScope")||e.data(n,"$isolateScopeNoTemplate")},controller:ys,injector:function(n){return gu(n,"$injector")},removeAttr:function(n,t){n.removeAttribute(t)},hasClass:bu,css:function(n,t,i){if(t=yr(t),u(i))n.style[t]=i;else return n.style[t]},attr:function(n,t,i){var f=n.nodeType,r,e;if(f!==ki&&f!==uv&&f!==au)if(r=a(t),wr[r])if(u(i))i?(n[t]=!0,n.setAttribute(t,r)):(n[t]=!1,n.removeAttribute(r));else return n[t]||(n.attributes.getNamedItem(t)||o).specified?r:undefined;else if(u(i))n.setAttribute(t,i);else if(n.getAttribute)return e=n.getAttribute(t,2),e===null?undefined:e},prop:function(n,t,i){if(u(i))n[t]=i;else return n[t]},text:function(){function n(n,t){if(r(t)){var i=n.nodeType;return i===kt||i===ki?n.textContent:""}n.textContent=t}return n.$dv="",n}(),val:function(n,i){if(r(i)){if(n.multiple&&vt(n)==="select"){var u=[];return t(n.options,function(n){n.selected&&u.push(n.value||n.text)}),u.length===0?null:u}return n.value}n.value=i},html:function(n,t){if(r(t))return n.innerHTML;pu(n,!0);n.innerHTML=t},empty:ps},function(n,t){b.prototype[t]=function(t,i){var u,h,e=this.length,f,l,o,c;if(n!==ps&&r(n.length==2&&n!==bu&&n!==ys?t:i)){if(s(t)){for(u=0;u<e;u++)if(n===ue)n(this[u],t);else for(h in t)n(this[u],h,t[h]);return this}for(f=n.$dv,l=r(f)?Math.min(e,1):e,o=0;o<l;o++)c=n(this[o],t,i),f=f?f+c:c;return f}for(u=0;u<e;u++)n(this[u],t,i);return this}});t({removeData:pr,on:function(n,t,i,r){if(u(r))throw te("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(hs(n)){var f=wu(n,!0),e=f.events,o=f.handle;o||(o=f.handle=ny(n,e));for(var h=t.indexOf(" ")>=0?t.split(" "):[t],c=h.length,s=function(t,r,u){var f=e[t];f||(f=e[t]=[],f.specialHandlerWrapper=r,t==="$destroy"||u||vu(n,t,o));f.push(i)};c--;)t=h[c],yu[t]?(s(yu[t],iy),s(t,undefined,!0)):s(t)}},off:vs,one:function(n,t,i){n=e(n);n.on(t,function r(){n.off(t,i);n.off(t,r)});n.on(t,i)},replaceWith:function(n,i){var r,u=n.parentNode;pu(n);t(new b(i),function(t){r?u.insertBefore(t,r.nextSibling):u.replaceChild(t,n);r=t})},children:function(n){var i=[];return t(n.childNodes,function(n){n.nodeType===kt&&i.push(n)}),i},contents:function(n){return n.contentDocument||n.childNodes||[]},append:function(n,t){var r=n.nodeType,i,u,f;if(r===kt||r===ne)for(t=new b(t),i=0,u=t.length;i<u;i++)f=t[i],n.appendChild(f)},prepend:function(n,i){if(n.nodeType===kt){var r=n.firstChild;t(new b(i),function(t){n.insertBefore(t,r)})}},wrap:function(n,t){ls(n,e(t).eq(0).clone()[0])},remove:nf,detach:function(n){nf(n,!0)},after:function(n,t){var u=n,e=n.parentNode,i,f,r;for(t=new b(t),i=0,f=t.length;i<f;i++)r=t[i],e.insertBefore(r,u.nextSibling),u=r},addClass:du,removeClass:ku,toggleClass:function(n,i,u){i&&t(i.split(" "),function(t){var i=u;r(i)&&(i=!bu(n,t));(i?du:ku)(n,t)})},parent:function(n){var t=n.parentNode;return t&&t.nodeType!==ne?t:null},next:function(n){return n.nextElementSibling},find:function(n,t){return n.getElementsByTagName?n.getElementsByTagName(t):[]},clone:re,triggerHandler:function(n,i,r){var u,f,e,s=i.type||i,h=wu(n),c=h&&h.events,l=c&&c[s];l&&(u={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:o,type:s,target:n},i.type&&(u=v(u,i)),f=ot(l),e=r?[u].concat(r):[u],t(f,function(t){u.isImmediatePropagationStopped()||t.apply(n,e)}))}},function(n,t){b.prototype[t]=function(t,i,f){for(var o,s=0,h=this.length;s<h;s++)r(o)?(o=n(this[s],t,i,f),u(o)&&(o=e(o))):fe(o,n(this[s],t,i,f));return u(o)?o:this};b.prototype.bind=b.prototype.on;b.prototype.unbind=b.prototype.off});di.prototype={put:function(n,t){this[ci(n,this.nextUid)]=t},get:function(n){return this[ci(n,this.nextUid)]},remove:function(n){var t=this[n=ci(n,this.nextUid)];return delete this[n],t}};var uy=[function(){this.$get=[function(){return di}]}],fy=/^([^\(]+?)=>/,ey=/^[^\(]*\(\s*([^\)]*)\)/m,oy=/,/,sy=/^\s*(_?)(\S+?)\1\s*$/,hy=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,li=l("$injector");br.$$annotate=ly;var ks=l("$animate"),vy=1,ds="ng-animate";var wy=function(){this.$get=o},by=function(){var n=new di,i=[];this.$get=["$$AnimateRunner","$rootScope",function(r,u){function f(n,i,r){var u=!1;return i&&(i=h(i)?i.split(" "):c(i)?i:[],t(i,function(t){t&&(u=!0,n[t]=r)})),u}function e(){t(i,function(i){var f=n.get(i);if(f){var e=py(i.attr("class")),r="",u="";t(f,function(n,t){var i=!!e[t];n!==i&&(n?r+=(r.length?" ":"")+t:u+=(u.length?" ":"")+t)});t(i,function(n){r&&du(n,r);u&&ku(n,u)});n.remove(i)}});i.length=0}function s(t,r,o){var s=n.get(t)||{},h=f(s,r,!0),c=f(s,o,!1);(h||c)&&(n.put(t,s),i.push(t),i.length===1&&u.$$postDigest(e))}return{enabled:o,on:o,off:o,pin:o,push:function(n,t,i,u){u&&u();i=i||{};i.from&&n.css(i.from);i.to&&n.css(i.to);(i.addClass||i.removeClass)&&s(n,i.addClass,i.removeClass);var f=new r;return f.complete(),f}}}]},ky=["$provide",function(n){var t=this;this.$$registeredAnimations=Object.create(null);this.register=function(i,r){if(i&&i.charAt(0)!==".")throw ks("notcsel","Expecting class selector starting with '.' got '{0}'.",i);var u=i+"-animation";t.$$registeredAnimations[i.substr(1)]=u;n.factory(u,r)};this.classNameFilter=function(n){if(arguments.length===1&&(this.$$classNameFilter=n instanceof RegExp?n:null,this.$$classNameFilter)){var t=new RegExp("(\\s+|\\/)"+ds+"(\\s+|\\/)");if(t.test(this.$$classNameFilter.toString()))throw ks("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ds);}return this.$$classNameFilter};this.$get=["$$animateQueue",function(n){function t(n,t,i){if(i){var r=yy(i);!r||r.parentNode||r.previousElementSibling||(i=null)}i?i.after(n):t.prepend(n)}return{on:n.on,off:n.off,pin:n.pin,enabled:n.enabled,cancel:function(n){n.end&&n.end()},enter:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"enter",ai(f))},move:function(i,r,u,f){return r=r&&e(r),u=u&&e(u),r=r||u.parent(),t(i,r,u),n.push(i,"move",ai(f))},leave:function(t,i){return n.push(t,"leave",ai(i),function(){t.remove()})},addClass:function(t,i,r){return r=ai(r),r.addClass=kr(r.addclass,i),n.push(t,"addClass",r)},removeClass:function(t,i,r){return r=ai(r),r.removeClass=kr(r.removeClass,i),n.push(t,"removeClass",r)},setClass:function(t,i,r,u){return u=ai(u),u.addClass=kr(u.addClass,i),u.removeClass=kr(u.removeClass,r),n.push(t,"setClass",u)},animate:function(t,i,r,u,f){return f=ai(f),f.from=f.from?v(f.from,i):i,f.to=f.to?v(f.to,r):r,u=u||"ng-inline-animate",f.tempClasses=kr(f.tempClasses,u),n.push(t,"animate",f)}}}]}],dy=function(){this.$get=["$$rAF",function(n){function i(i){(t.push(i),t.length>1)||n(function(){for(var n=0;n<t.length;n++)t[n]();t=[]})}var t=[];return function(){var n=!1;return i(function(){n=!0}),function(t){n?t():i(t)}}}]},gy=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(n,i,r,u,f){function e(n){this.setHost(n);var t=r(),i=function(n){f(n,0,!1)};this._doneCallbacks=[];this._tick=function(n){var r=u[0];r&&r.hidden?i(n):t(n)};this._state=0}var h=0,c=1,s=2;return e.chain=function(n,t){function r(){if(i===n.length){t(!0);return}n[i](function(n){if(n===!1){t(!1);return}i++;r()})}var i=0;r()},e.all=function(n,i){function f(t){r=r&&t;++u===n.length&&i(r)}var u=0,r=!0;t(n,function(n){n.done(f)})},e.prototype={setHost:function(n){this.host=n||{}},done:function(n){this._state===s?n():this._doneCallbacks.push(n)},progress:o,getPromise:function(){if(!this.promise){var t=this;this.promise=n(function(n,i){t.done(function(t){t===!1?i():n()})})}return this.promise},then:function(n,t){return this.getPromise().then(n,t)},"catch":function(n){return this.getPromise()["catch"](n)},"finally":function(n){return this.getPromise()["finally"](n)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end();this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel();this._resolve(!1)},complete:function(n){var t=this;t._state===h&&(t._state=c,t._tick(function(){t._resolve(n)}))},_resolve:function(n){this._state!==s&&(t(this._doneCallbacks,function(t){t(n)}),this._doneCallbacks.length=0,this._state=s)}},e}]},np=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(n,t,i){return function(t,r){function o(){return n(function(){s();e||f.complete();e=!0}),f}function s(){u.addClass&&(t.addClass(u.addClass),u.addClass=null);u.removeClass&&(t.removeClass(u.removeClass),u.removeClass=null);u.to&&(t.css(u.to),u.to=null)}var u=r||{},e,f;return u.$$prepared||(u=ni(u)),u.cleanupStyles&&(u.from=u.to=null),u.from&&(t.css(u.from),u.from=null),f=new i,{start:o,end:o}}}]};d=l("$compile");tf=new fp;gs.$inject=["$provide","$$sanitizeUriProvider"];rf.prototype.isFirstChange=function(){return this.previousValue===tf};se=/^((?:x|data)[\:\-_])/i;ih=l("$controller");he=/^(\S+)(\s+as\s+([\w$]+))?$/;var hp=function(){this.$get=["$document",function(n){return function(t){return t?!t.nodeType&&t instanceof e&&(t=t[0]):t=n[0].body,t.offsetWidth+1}}]},uh="application/json",ce={"Content-Type":uh+";charset=utf-8"},cp=/^\[|^\{(?!\{)/,lp={"[":/]$/,"{":/}$/},ap=/^\)\]\}',?\n/,vp=l("$http"),fh=function(n){return function(){throw vp("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",n);}};ii=ut.$interpolateMinErr=l("$interpolate");ii.throwNoconcat=function(n){throw ii("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",n);};ii.interr=function(n,t){return ii("interr","Can't interpolate: {0}\n{1}",n,t.toString())};var iw=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,rw={http:80,https:443,ftp:21},uf=l("$location");ah={$$html5:!1,$$replace:!1,absUrl:ff("$$absUrl"),url:function(n){if(r(n))return this.$$url;var t=iw.exec(n);return(t[1]||n==="")&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||n==="")&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:ff("$$protocol"),host:ff("$$host"),port:ff("$$port"),path:vh("$$path",function(n){return n=n!==null?n.toString():"",n.charAt(0)=="/"?n:"/"+n}),search:function(n,i){switch(arguments.length){case 0:return this.$$search;case 1:if(h(n)||w(n))n=n.toString(),this.$$search=ts(n);else if(s(n))n=ni(n,{}),t(n,function(t,i){t==null&&delete n[i]}),this.$$search=n;else throw uf("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");break;default:r(i)||i===null?delete this.$$search[n]:this.$$search[n]=i}return this.$$compose(),this},hash:vh("$$hash",function(n){return n!==null?n.toString():""}),replace:function(){return this.$$replace=!0,this}};t([lh,we,pe],function(n){n.prototype=Object.create(ah);n.prototype.state=function(t){if(!arguments.length)return this.$$state;if(n!==pe||!this.$$html5)throw uf("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=r(t)?null:t,this}});it=l("$parse");var sw=Function.prototype.call,hw=Function.prototype.apply,cw=Function.prototype.bind;gr=p();t("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(n){gr[n]=!0});wh={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'};of=function(n){this.options=n};of.prototype={constructor:of,lex:function(n){var t,r;for(this.text=n,this.index=0,this.tokens=[];this.index<this.text.length;)if(t=this.text.charAt(this.index),t==='"'||t==="'")this.readString(t);else if(this.isNumber(t)||t==="."&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var i=t+this.peek(),u=i+this.peek(2),o=gr[t],f=gr[i],e=gr[u];o||f||e?(r=e?u:f?i:t,this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(n,t){return t.indexOf(n)!==-1},peek:function(n){var t=n||1;return this.index+t<this.text.length?this.text.charAt(this.index+t):!1},isNumber:function(n){return"0"<=n&&n<="9"&&typeof n=="string"},isWhitespace:function(n){return n===" "||n==="\r"||n==="\t"||n==="\n"||n==='\v'||n===" "},isIdentifierStart:function(n){return this.options.isIdentifierStart?this.options.isIdentifierStart(n,this.codePointAt(n)):this.isValidIdentifierStart(n)},isValidIdentifierStart:function(n){return"a"<=n&&n<="z"||"A"<=n&&n<="Z"||"_"===n||n==="$"},isIdentifierContinue:function(n){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(n,this.codePointAt(n)):this.isValidIdentifierContinue(n)},isValidIdentifierContinue:function(n,t){return this.isValidIdentifierStart(n,t)||this.isNumber(n)},codePointAt:function(n){return n.length===1?n.charCodeAt(0):(n.charCodeAt(0)<<10)+n.charCodeAt(1)-56613888},peekMultichar:function(){var n=this.text.charAt(this.index),t=this.peek(),i,r;return t?(i=n.charCodeAt(0),r=t.charCodeAt(0),i>=55296&&i<=56319&&r>=56320&&r<=57343)?n+t:n:n},isExpOperator:function(n){return n==="-"||n==="+"||this.isNumber(n)},throwError:function(n,t,i){i=i||this.index;var r=u(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,i)+"]":" "+i;throw it("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",n,r,this.text);},readNumber:function(){for(var n="",r=this.index,t,i;this.index<this.text.length;){if(t=a(this.text.charAt(this.index)),t=="."||this.isNumber(t))n+=t;else if(i=this.peek(),t=="e"&&this.isExpOperator(i))n+=t;else if(this.isExpOperator(t)&&i&&this.isNumber(i)&&n.charAt(n.length-1)=="e")n+=t;else if(!this.isExpOperator(t)||i&&this.isNumber(i)||n.charAt(n.length-1)!="e")break;else this.throwError("Invalid exponent");this.index++}this.tokens.push({index:r,text:n,constant:!0,value:Number(n)})},readIdent:function(){var t=this.index,n;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){if(n=this.peekMultichar(),!this.isIdentifierContinue(n))break;this.index+=n.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(n){var f=this.index,t,r,o;this.index++;for(var i="",e=n,u=!1;this.index<this.text.length;){if(t=this.text.charAt(this.index),e+=t,u)t==="u"?(r=this.text.substring(this.index+1,this.index+5),r.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,i+=String.fromCharCode(parseInt(r,16))):(o=wh[t],i=i+(o||t)),u=!1;else if(t==="\\")u=!0;else{if(t===n){this.index++;this.tokens.push({index:f,text:e,constant:!0,value:i});return}i+=t}this.index++}this.throwError("Unterminated quote",f)}};i=function(n,t){this.lexer=n;this.options=t};i.Program="Program";i.ExpressionStatement="ExpressionStatement";i.AssignmentExpression="AssignmentExpression";i.ConditionalExpression="ConditionalExpression";i.LogicalExpression="LogicalExpression";i.BinaryExpression="BinaryExpression";i.UnaryExpression="UnaryExpression";i.CallExpression="CallExpression";i.MemberExpression="MemberExpression";i.Identifier="Identifier";i.Literal="Literal";i.ArrayExpression="ArrayExpression";i.Property="Property";i.ObjectExpression="ObjectExpression";i.ThisExpression="ThisExpression";i.LocalsExpression="LocalsExpression";i.NGValueParameter="NGValueParameter";i.prototype={ast:function(n){this.text=n;this.tokens=this.lexer.lex(n);var t=this.program();return this.tokens.length!==0&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var n=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&n.push(this.expressionStatement()),!this.expect(";"))return{type:i.Program,body:n}},expressionStatement:function(){return{type:i.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var n=this.expression(),t;t=this.expect("|");)n=this.filter(n);return n},expression:function(){return this.assignment()},assignment:function(){var n=this.ternary();return this.expect("=")&&(n={type:i.AssignmentExpression,left:n,right:this.assignment(),operator:"="}),n},ternary:function(){var n=this.logicalOR(),t,r;return this.expect("?")&&(t=this.expression(),this.consume(":"))?(r=this.expression(),{type:i.ConditionalExpression,test:n,alternate:t,consequent:r}):n},logicalOR:function(){for(var n=this.logicalAND();this.expect("||");)n={type:i.LogicalExpression,operator:"||",left:n,right:this.logicalAND()};return n},logicalAND:function(){for(var n=this.equality();this.expect("&&");)n={type:i.LogicalExpression,operator:"&&",left:n,right:this.equality()};return n},equality:function(){for(var n=this.relational(),t;t=this.expect("==","!=","===","!==");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.relational()};return n},relational:function(){for(var n=this.additive(),t;t=this.expect("<",">","<=",">=");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.additive()};return n},additive:function(){for(var n=this.multiplicative(),t;t=this.expect("+","-");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.multiplicative()};return n},multiplicative:function(){for(var n=this.unary(),t;t=this.expect("*","/","%");)n={type:i.BinaryExpression,operator:t.text,left:n,right:this.unary()};return n},unary:function(){var n;return(n=this.expect("+","-","!"))?{type:i.UnaryExpression,operator:n.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var n,t;for(this.expect("(")?(n=this.filterChain(),this.consume(")")):this.expect("[")?n=this.arrayDeclaration():this.expect("{")?n=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?n=ni(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?n={type:i.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?n=this.identifier():this.peek().constant?n=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)t.text==="("?(n={type:i.CallExpression,callee:n,arguments:this.parseArguments()},this.consume(")")):t.text==="["?(n={type:i.MemberExpression,object:n,property:this.expression(),computed:!0},this.consume("]")):t.text==="."?n={type:i.MemberExpression,object:n,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return n},filter:function(n){for(var t=[n],r={type:i.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return r},parseArguments:function(){var n=[];if(this.peekToken().text!==")")do n.push(this.expression());while(this.expect(","));return n},identifier:function(){var n=this.consume();return n.identifier||this.throwError("is not a valid identifier",n),{type:i.Identifier,name:n.text}},constant:function(){return{type:i.Literal,value:this.consume().value}},arrayDeclaration:function(){var n=[];if(this.peekToken().text!=="]")do{if(this.peek("]"))break;n.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:i.ArrayExpression,elements:n}},object:function(){var t=[],n;if(this.peekToken().text!=="}")do{if(this.peek("}"))break;n={type:i.Property,kind:"init"};this.peek().constant?n.key=this.constant():this.peek().identifier?n.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");n.value=this.expression();t.push(n)}while(this.expect(","));return this.consume("}"),{type:i.ObjectExpression,properties:t}},throwError:function(n,t){throw it("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,n,t.index+1,this.text,this.text.substring(t.index));},consume:function(n){if(this.tokens.length===0)throw it("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(n);return t||this.throwError("is unexpected, expecting ["+n+"]",this.peek()),t},peekToken:function(){if(this.tokens.length===0)throw it("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(n,t,i,r){return this.peekAhead(0,n,t,i,r)},peekAhead:function(n,t,i,r,u){if(this.tokens.length>n){var e=this.tokens[n],f=e.text;if(f===t||f===i||f===r||f===u||!t&&!i&&!r&&!u)return e}return!1},expect:function(n,t,i,r){var u=this.peek(n,t,i,r);return u?(this.tokens.shift(),u):!1},selfReferential:{"this":{type:i.ThisExpression},$locals:{type:i.LocalsExpression}}};rc.prototype={compile:function(n,i){var r=this,u=this.astBuilder.ast(n),e,s,o,h,c,f;return this.state={nextId:0,filters:{},expensiveChecks:i,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},k(u,r.$filter),e="",this.stage="assign",(s=nc(u))&&(this.state.computing="assign",o=this.nextId(),this.recurse(s,o),this.return_(o),e="fn.assign="+this.generateFunction("assign","s,v,l")),h=dh(u.body),r.stage="inputs",t(h,function(n,t){var i="fn"+t,u;r.state[i]={vars:[],body:[],own:{}};r.state.computing=i;u=r.nextId();r.recurse(n,u);r.return_(u);r.state.inputs.push(i);n.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(u),c='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;",f=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",c)(this.$filter,gi,ri,ph,yh,ef,lw,bh,n),this.state=this.stage=undefined,f.literal=tc(u),f.constant=ic(u),f},USE:"use",STRICT:"strict",watchFns:function(){var n=[],i=this.state.inputs,r=this;return t(i,function(t){n.push("var "+t+"="+r.generateFunction(t,"s"))}),i.length&&n.push("fn.inputs=["+i.join(",")+"];"),n.join("")},generateFunction:function(n,t){return"function("+t+"){"+this.varsPrefix(n)+this.body(n)+"};"},filterPrefix:function(){var n=[],i=this;return(t(this.state.filters,function(t,r){n.push(t+"=$filter("+i.escape(r)+")")}),n.length)?"var "+n.join(",")+";":""},varsPrefix:function(n){return this.state[n].vars.length?"var "+this.state[n].vars.join(",")+";":""},body:function(n){return this.state[n].body.join("")},recurse:function(n,r,f,e,s,h){var l,v,c=this,y,a;if(e=e||o,!h&&u(n.watchId)){r=r||this.nextId();this.if_("i",this.lazyAssign(r,this.computedMember("i",n.watchId)),this.lazyRecurse(n,r,f,e,s,!0));return}switch(n.type){case i.Program:t(n.body,function(t,i){c.recurse(t.expression,undefined,undefined,function(n){v=n});i!==n.body.length-1?c.current().body.push(v,";"):c.return_(v)});break;case i.Literal:a=this.escape(n.value);this.assign(r,a);e(a);break;case i.UnaryExpression:this.recurse(n.argument,undefined,undefined,function(n){v=n});a=n.operator+"("+this.ifDefined(v,0)+")";this.assign(r,a);e(a);break;case i.BinaryExpression:this.recurse(n.left,undefined,undefined,function(n){l=n});this.recurse(n.right,undefined,undefined,function(n){v=n});a=n.operator==="+"?this.plus(l,v):n.operator==="-"?this.ifDefined(l,0)+n.operator+this.ifDefined(v,0):"("+l+")"+n.operator+"("+v+")";this.assign(r,a);e(a);break;case i.LogicalExpression:r=r||this.nextId();c.recurse(n.left,r);c.if_(n.operator==="&&"?r:c.not(r),c.lazyRecurse(n.right,r));e(r);break;case i.ConditionalExpression:r=r||this.nextId();c.recurse(n.test,r);c.if_(r,c.lazyRecurse(n.alternate,r),c.lazyRecurse(n.consequent,r));e(r);break;case i.Identifier:r=r||this.nextId();f&&(f.context=c.stage==="inputs"?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),f.computed=!1,f.name=n.name);gi(n.name);c.if_(c.stage==="inputs"||c.not(c.getHasOwnProperty("l",n.name)),function(){c.if_(c.stage==="inputs"||"s",function(){s&&s!==1&&c.if_(c.not(c.nonComputedMember("s",n.name)),c.lazyAssign(c.nonComputedMember("s",n.name),"{}"));c.assign(r,c.nonComputedMember("s",n.name))})},r&&c.lazyAssign(r,c.nonComputedMember("l",n.name)));(c.state.expensiveChecks||hf(n.name))&&c.addEnsureSafeObject(r);e(r);break;case i.MemberExpression:l=f&&(f.context=this.nextId())||this.nextId();r=r||this.nextId();c.recurse(n.object,l,undefined,function(){c.if_(c.notNull(l),function(){s&&s!==1&&c.addEnsureSafeAssignContext(l);n.computed?(v=c.nextId(),c.recurse(n.property,v),c.getStringValue(v),c.addEnsureSafeMemberName(v),s&&s!==1&&c.if_(c.not(c.computedMember(l,v)),c.lazyAssign(c.computedMember(l,v),"{}")),a=c.ensureSafeObject(c.computedMember(l,v)),c.assign(r,a),f&&(f.computed=!0,f.name=v)):(gi(n.property.name),s&&s!==1&&c.if_(c.not(c.nonComputedMember(l,n.property.name)),c.lazyAssign(c.nonComputedMember(l,n.property.name),"{}")),a=c.nonComputedMember(l,n.property.name),(c.state.expensiveChecks||hf(n.property.name))&&(a=c.ensureSafeObject(a)),c.assign(r,a),f&&(f.computed=!1,f.name=n.property.name))},function(){c.assign(r,"undefined")});e(r)},!!s);break;case i.CallExpression:r=r||this.nextId();n.filter?(v=c.filter(n.callee.name),y=[],t(n.arguments,function(n){var t=c.nextId();c.recurse(n,t);y.push(t)}),a=v+"("+y.join(",")+")",c.assign(r,a),e(r)):(v=c.nextId(),l={},y=[],c.recurse(n.callee,v,l,function(){c.if_(c.notNull(v),function(){c.addEnsureSafeFunction(v);t(n.arguments,function(n){c.recurse(n,c.nextId(),undefined,function(n){y.push(c.ensureSafeObject(n))})});l.name?(c.state.expensiveChecks||c.addEnsureSafeObject(l.context),a=c.member(l.context,l.name,l.computed)+"("+y.join(",")+")"):a=v+"("+y.join(",")+")";a=c.ensureSafeObject(a);c.assign(r,a)},function(){c.assign(r,"undefined")});e(r)}));break;case i.AssignmentExpression:if(v=this.nextId(),l={},!gh(n.left))throw it("lval","Trying to assign a value to a non l-value");this.recurse(n.left,undefined,l,function(){c.if_(c.notNull(l.context),function(){c.recurse(n.right,v);c.addEnsureSafeObject(c.member(l.context,l.name,l.computed));c.addEnsureSafeAssignContext(l.context);a=c.member(l.context,l.name,l.computed)+n.operator+v;c.assign(r,a);e(r||a)})},1);break;case i.ArrayExpression:y=[];t(n.elements,function(n){c.recurse(n,c.nextId(),undefined,function(n){y.push(n)})});a="["+y.join(",")+"]";this.assign(r,a);e(a);break;case i.ObjectExpression:y=[];t(n.properties,function(n){c.recurse(n.value,c.nextId(),undefined,function(t){y.push(c.escape(n.key.type===i.Identifier?n.key.name:""+n.key.value)+":"+t)})});a="{"+y.join(",")+"}";this.assign(r,a);e(a);break;case i.ThisExpression:this.assign(r,"s");e("s");break;case i.LocalsExpression:this.assign(r,"l");e("l");break;case i.NGValueParameter:this.assign(r,"v");e("v")}},getHasOwnProperty:function(n,t){var i=n+"."+t,r=this.current().own;return r.hasOwnProperty(i)||(r[i]=this.nextId(!1,n+"&&("+this.escape(t)+" in "+n+")")),r[i]},assign:function(n,t){if(n)return this.current().body.push(n,"=",t,";"),n},filter:function(n){return this.state.filters.hasOwnProperty(n)||(this.state.filters[n]=this.nextId(!0)),this.state.filters[n]},ifDefined:function(n,t){return"ifDefined("+n+","+this.escape(t)+")"},plus:function(n,t){return"plus("+n+","+t+")"},return_:function(n){this.current().body.push("return ",n,";")},if_:function(n,t,i){if(n===!0)t();else{var r=this.current().body;r.push("if(",n,"){");t();r.push("}");i&&(r.push("else{"),i(),r.push("}"))}},not:function(n){return"!("+n+")"},notNull:function(n){return n+"!=null"},nonComputedMember:function(n,t){return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?n+"."+t:n+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(n,t){return n+"["+t+"]"},member:function(n,t,i){return i?this.computedMember(n,t):this.nonComputedMember(n,t)},addEnsureSafeObject:function(n){this.current().body.push(this.ensureSafeObject(n),";")},addEnsureSafeMemberName:function(n){this.current().body.push(this.ensureSafeMemberName(n),";")},addEnsureSafeFunction:function(n){this.current().body.push(this.ensureSafeFunction(n),";")},addEnsureSafeAssignContext:function(n){this.current().body.push(this.ensureSafeAssignContext(n),";")},ensureSafeObject:function(n){return"ensureSafeObject("+n+",text)"},ensureSafeMemberName:function(n){return"ensureSafeMemberName("+n+",text)"},ensureSafeFunction:function(n){return"ensureSafeFunction("+n+",text)"},getStringValue:function(n){this.assign(n,"getStringValue("+n+")")},ensureSafeAssignContext:function(n){return"ensureSafeAssignContext("+n+",text)"},lazyRecurse:function(n,t,i,r,u,f){var e=this;return function(){e.recurse(n,t,i,r,u,f)}},lazyAssign:function(n,t){var i=this;return function(){i.assign(n,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)},escape:function(n){if(h(n))return"'"+n.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(n))return n.toString();if(n===!0)return"true";if(n===!1)return"false";if(n===null)return"null";if(typeof n=="undefined")return"undefined";throw it("esc","IMPOSSIBLE");},nextId:function(n,t){var i="v"+this.state.nextId++;return n||this.current().vars.push(i+(t?"="+t:"")),i},current:function(){return this.state[this.state.computing]}};uc.prototype={compile:function(n,i){var s=this,r=this.astBuilder.ast(n),l,h,c,f,e,u;return this.expression=n,this.expensiveChecks=i,k(r,s.$filter),(l=nc(r))&&(h=this.recurse(l)),c=dh(r.body),c&&(f=[],t(c,function(n,t){var i=s.recurse(n);n.input=i;f.push(i);n.watchId=t})),e=[],t(r.body,function(n){e.push(s.recurse(n.expression))}),u=r.body.length===0?o:r.body.length===1?e[0]:function(n,i){var r;return t(e,function(t){r=t(n,i)}),r},h&&(u.assign=function(n,t,i){return h(n,i,t)}),f&&(u.inputs=f),u.literal=tc(r),u.constant=ic(r),u},recurse:function(n,r,u){var s,f,e=this,o;if(n.input)return this.inputs(n.input,n.watchId);switch(n.type){case i.Literal:return this.value(n.value,r);case i.UnaryExpression:return f=this.recurse(n.argument),this["unary"+n.operator](f,r);case i.BinaryExpression:return s=this.recurse(n.left),f=this.recurse(n.right),this["binary"+n.operator](s,f,r);case i.LogicalExpression:return s=this.recurse(n.left),f=this.recurse(n.right),this["binary"+n.operator](s,f,r);case i.ConditionalExpression:return this["ternary?:"](this.recurse(n.test),this.recurse(n.alternate),this.recurse(n.consequent),r);case i.Identifier:return gi(n.name,e.expression),e.identifier(n.name,e.expensiveChecks||hf(n.name),r,u,e.expression);case i.MemberExpression:return s=this.recurse(n.object,!1,!!u),n.computed||(gi(n.property.name,e.expression),f=n.property.name),n.computed&&(f=this.recurse(n.property)),n.computed?this.computedMember(s,f,r,u,e.expression):this.nonComputedMember(s,f,e.expensiveChecks,r,u,e.expression);case i.CallExpression:return o=[],t(n.arguments,function(n){o.push(e.recurse(n))}),n.filter&&(f=this.$filter(n.callee.name)),n.filter||(f=this.recurse(n.callee,!0)),n.filter?function(n,t,i,u){for(var s,h=[],e=0;e<o.length;++e)h.push(o[e](n,t,i,u));return s=f.apply(undefined,h,u),r?{context:undefined,name:undefined,value:s}:s}:function(n,t,i,u){var s=f(n,t,i,u),c,l,h;if(s.value!=null){for(ri(s.context,e.expression),ph(s.value,e.expression),l=[],h=0;h<o.length;++h)l.push(ri(o[h](n,t,i,u),e.expression));c=ri(s.value.apply(s.context,l),e.expression)}return r?{value:c}:c};case i.AssignmentExpression:return s=this.recurse(n.left,!0,1),f=this.recurse(n.right),function(n,t,i,u){var o=s(n,t,i,u),h=f(n,t,i,u);return ri(o.value,e.expression),ef(o.context),o.context[o.name]=h,r?{value:h}:h};case i.ArrayExpression:return o=[],t(n.elements,function(n){o.push(e.recurse(n))}),function(n,t,i,u){for(var f=[],e=0;e<o.length;++e)f.push(o[e](n,t,i,u));return r?{value:f}:f};case i.ObjectExpression:return o=[],t(n.properties,function(n){o.push({key:n.key.type===i.Identifier?n.key.name:""+n.key.value,value:e.recurse(n.value)})}),function(n,t,i,u){for(var e={},f=0;f<o.length;++f)e[o[f].key]=o[f].value(n,t,i,u);return r?{value:e}:e};case i.ThisExpression:return function(n){return r?{value:n}:n};case i.LocalsExpression:return function(n,t){return r?{value:t}:t};case i.NGValueParameter:return function(n,t,i){return r?{value:i}:i}}},"unary+":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?+o:0,t?{value:o}:o}},"unary-":function(n,t){return function(i,r,f,e){var o=n(i,r,f,e);return o=u(o)?-o:0,t?{value:o}:o}},"unary!":function(n,t){return function(i,r,u,f){var e=!n(i,r,u,f);return t?{value:e}:e}},"binary+":function(n,t,i){return function(r,u,f,e){var s=n(r,u,f,e),h=t(r,u,f,e),o=bh(s,h);return i?{value:o}:o}},"binary-":function(n,t,i){return function(r,f,e,o){var s=n(r,f,e,o),h=t(r,f,e,o),c=(u(s)?s:0)-(u(h)?h:0);return i?{value:c}:c}},"binary*":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)*t(r,u,f,e);return i?{value:o}:o}},"binary/":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)/t(r,u,f,e);return i?{value:o}:o}},"binary%":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)%t(r,u,f,e);return i?{value:o}:o}},"binary===":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)===t(r,u,f,e);return i?{value:o}:o}},"binary!==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!==t(r,u,f,e);return i?{value:o}:o}},"binary==":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)==t(r,u,f,e);return i?{value:o}:o}},"binary!=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)!=t(r,u,f,e);return i?{value:o}:o}},"binary<":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<t(r,u,f,e);return i?{value:o}:o}},"binary>":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>t(r,u,f,e);return i?{value:o}:o}},"binary<=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)<=t(r,u,f,e);return i?{value:o}:o}},"binary>=":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)>=t(r,u,f,e);return i?{value:o}:o}},"binary&&":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)&&t(r,u,f,e);return i?{value:o}:o}},"binary||":function(n,t,i){return function(r,u,f,e){var o=n(r,u,f,e)||t(r,u,f,e);return i?{value:o}:o}},"ternary?:":function(n,t,i,r){return function(u,f,e,o){var s=n(u,f,e,o)?t(u,f,e,o):i(u,f,e,o);return r?{value:s}:s}},value:function(n,t){return function(){return t?{context:undefined,name:undefined,value:n}:n}},identifier:function(n,t,i,r,u){return function(f,e){var o=e&&n in e?e:f,s;return r&&r!==1&&o&&!o[n]&&(o[n]={}),s=o?o[n]:undefined,t&&ri(s,u),i?{context:o,name:n,value:s}:s}},computedMember:function(n,t,i,r,u){return function(f,e,o,s){var c=n(f,e,o,s),h,l;return c!=null&&(h=t(f,e,o,s),h=yh(h),gi(h,u),r&&r!==1&&(ef(c),c&&!c[h]&&(c[h]={})),l=c[h],ri(l,u)),i?{context:c,name:h,value:l}:l}},nonComputedMember:function(n,t,i,r,u,f){return function(e,o,s,h){var c=n(e,o,s,h),l;return u&&u!==1&&(ef(c),c&&!c[t]&&(c[t]={})),l=c!=null?c[t]:undefined,(i||hf(t))&&ri(l,f),r?{context:c,name:t,value:l}:l}},inputs:function(n,t){return function(i,r,u,f){return f?f[t]:n(i,r,u)}}};sf=function(n,t,r){this.lexer=n;this.$filter=t;this.options=r;this.ast=new i(n,r);this.astCompiler=r.csp?new uc(this.ast,t):new rc(this.ast,t)};sf.prototype={constructor:sf,parse:function(n){return this.astCompiler.compile(n,this.options.expensiveChecks)}};fc=Object.prototype.valueOf;dt=l("$sce");ht={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};sc=l("$compile");g=n.document.createElement("a");ke=ui(n.location.href);cc.$inject=["$document"];lc.$inject=["$provide"];var ac=22,vc=".",ge="0";yc.$inject=["$locale"];pc.$inject=["$locale"];var yb={yyyy:nt("FullYear",4,0,!1,!0),yy:nt("FullYear",2,0,!0,!0),y:nt("FullYear",1,0,!1,!0),MMMM:nu("Month"),MMM:nu("Month",!0),MM:nt("Month",2,1),M:nt("Month",1,1),LLLL:nu("Month",!1,!0),dd:nt("Date",2),d:nt("Date",1),HH:nt("Hours",2),H:nt("Hours",1),hh:nt("Hours",2,-12),h:nt("Hours",1,-12),mm:nt("Minutes",2),m:nt("Minutes",1),ss:nt("Seconds",2),s:nt("Seconds",1),sss:nt("Milliseconds",3),EEEE:nu("Day"),EEE:nu("Day",!0),a:ab,Z:cb,ww:kc(2),w:kc(1),G:no,GG:no,GGG:no,GGGG:vb},pb=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,wb=/^\-?\d+$/;dc.$inject=["$locale"];gc=ft(a);nl=ft(tr);tl.$inject=["$parse"];il=ft({restrict:"E",compile:function(n,t){if(!t.href&&!t.xlinkHref)return function(n,t){if(t[0].nodeName.toLowerCase()==="a"){var i=rt.call(t.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";t.on("click",function(n){t.attr(i)||n.preventDefault()})}}}});tu={};t(wr,function(n,t){function r(n,r,u){n.$watch(u[i],function(n){u.$set(t,!!n)})}if(n!="multiple"){var i=pt("ng-"+t),u=r;n==="checked"&&(u=function(n,t,u){u.ngModel!==u[i]&&r(n,t,u)});tu[i]=function(){return{restrict:"A",priority:100,link:u}}}});t(oe,function(n,t){tu[t]=function(){return{priority:100,link:function(n,i,r){if(t==="ngPattern"&&r.ngPattern.charAt(0)=="/"){var u=r.ngPattern.match(ea);if(u){r.$set("ngPattern",new RegExp(u[1],u[2]));return}}n.$watch(r[t],function(n){r.$set(t,n)})}}}});t(["src","srcset","href"],function(n){var t=pt("ng-"+n);tu[t]=function(){return{priority:99,link:function(i,r,u){var e=n,f=n;n==="href"&&rt.call(r.prop("href"))==="[object SVGAnimatedString]"&&(f="xlinkHref",u.$attr[f]="xlink:href",e=null);u.$observe(t,function(t){if(!t){n==="href"&&u.$set(f,null);return}u.$set(f,t);gt&&e&&r.prop(e,u[f])})}}}});iu={$addControl:o,$$renameControl:db,$removeControl:o,$setValidity:o,$setDirty:o,$setPristine:o,$setSubmitted:o};to="ng-submitted";rl.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var ul=function(n){return["$timeout","$parse",function(t,i){function r(n){return n===""?i('this[""]').assign:i(n).assign||o}return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:rl,compile:function(i,u){i.addClass(nr).addClass(fu);var f=u.name?"name":n&&u.ngForm?"ngForm":!1;return{pre:function(n,i,u,e){var s=e[0],c,l,h;if(!("action"in u)){c=function(t){n.$apply(function(){s.$commitViewValue();s.$setSubmitted()});t.preventDefault()};vu(i[0],"submit",c);i.on("$destroy",function(){t(function(){vr(i[0],"submit",c)},0,!1)})}l=e[1]||s.$$parentForm;l.$addControl(s);h=f?r(s.$name):o;f&&(h(n,s),u.$observe(f,function(t){s.$name!==t&&(h(n,undefined),s.$$parentForm.$$renameControl(s,t),h=r(s.$name),h(n,s))}));i.on("$destroy",function(){s.$$parentForm.$removeControl(s);h(n,undefined);v(s,iu)})}}}}}]},gb=ul(),nk=ul(!0),tk=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ik=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,rk=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,uk=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,fl=/^(\d{4,})-(\d{2})-(\d{2})$/,el=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,io=/^(\d{4,})-W(\d\d)$/,ol=/^(\d{4,})-(\d\d)$/,sl=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,fk="keydown wheel mousedown",hl=p();t("date,datetime-local,month,time,week".split(","),function(n){hl[n]=!0});ro={text:ek,date:uu("date",fl,lf(fl,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":uu("datetimelocal",el,lf(el,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:uu("time",sl,lf(sl,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:uu("week",io,ok,"yyyy-Www"),month:uu("month",ol,lf(ol,["yyyy","MM"]),"yyyy-MM"),number:sk,url:hk,email:ck,radio:lk,checkbox:ak,hidden:o,button:o,submit:o,reset:o,file:o};var al=["$browser","$sniffer","$filter","$parse",function(n,t,i,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(u,f,e,o){o[0]&&(ro[a(e.type)]||ro.text)(u,f,e,o[0],t,n,i,r)}}}}],vk=/^(true|false|\d+)$/,yk=function(){return{restrict:"A",priority:100,compile:function(n,t){return vk.test(t.ngValue)?function(n,t,i){i.$set("value",n.$eval(i.ngValue))}:function(n,t,i){n.$watch(i.ngValue,function(n){i.$set("value",n)})}}}},pk=["$compile",function(n){return{restrict:"AC",compile:function(t){return n.$$addBindingClass(t),function(t,i,u){n.$$addBindingInfo(i,u.ngBind);i=i[0];t.$watch(u.ngBind,function(n){i.textContent=r(n)?"":n})}}}}],wk=["$interpolate","$compile",function(n,t){return{compile:function(i){return t.$$addBindingClass(i),function(i,u,f){var e=n(u.attr(f.$attr.ngBindTemplate));t.$$addBindingInfo(u,e.expressions);u=u[0];f.$observe("ngBindTemplate",function(n){u.textContent=r(n)?"":n})}}}}],bk=["$sce","$parse","$compile",function(n,t,i){return{restrict:"A",compile:function(r,u){var f=t(u.ngBindHtml),e=t(u.ngBindHtml,function(n){return(n||"").toString()});return i.$$addBindingClass(r),function(t,r,u){i.$$addBindingInfo(r,u.ngBindHtml);t.$watch(e,function(){r.html(n.getTrustedHtml(f(t))||"")})}}}}],kk=ft({restrict:"A",require:"ngModel",link:function(n,t,i,r){r.$viewChangeListeners.push(function(){n.$eval(i.ngChange)})}});var dk=fo("",!0),gk=fo("Odd",0),nd=fo("Even",1),td=pi({compile:function(n,t){t.$set("ngCloak",undefined);n.removeClass("ng-cloak")}}),id=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],vl={},rd={blur:!0,focus:!0};t("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(n){var t=pt("ng-"+n);vl[t]=["$parse","$rootScope",function(i,r){return{restrict:"A",compile:function(u,f){var e=i(f[t],null,!0);return function(t,i){i.on(n,function(i){var u=function(){e(t,{$event:i})};rd[n]&&r.$$phase?t.$evalAsync(u):t.$apply(u)})}}}}]});var ud=["$animate","$compile",function(n,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(i,r,u,f,e){var h,s,o;i.$watch(u.ngIf,function(i){i?s||e(function(i,f){s=f;i[i.length++]=t.$$createComment("end ngIf",u.ngIf);h={clone:i};n.enter(i,r.parent(),r)}):(o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),h&&(o=lu(h.clone),n.leave(o).then(function(){o=null}),h=null))})}}}],fd=["$templateRequest","$anchorScroll","$animate",function(n,t,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ut.noop,compile:function(r,f){var o=f.ngInclude||f.src,s=f.onload||"",e=f.autoscroll;return function(r,f,h,c,l){var p=0,a,v,y,w=function(){v&&(v.remove(),v=null);a&&(a.$destroy(),a=null);y&&(i.leave(y).then(function(){v=null}),v=y,y=null)};r.$watch(o,function(o){var v=function(){u(e)&&(!e||r.$eval(e))&&t()},h=++p;o?(n(o,!0).then(function(n){var t,u;r.$$destroyed||h===p&&(t=r.$new(),c.template=n,u=l(t,function(n){w();i.enter(n,null,f).then(v)}),a=t,y=u,a.$emit("$includeContentLoaded",o),r.$eval(s))},function(){r.$$destroyed||h===p&&(w(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(w(),c.template=null)})}}}}],ed=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(i,r,u,f){if(rt.call(r[0]).match(/SVG/)){r.empty();t(cs(f.template,n.document).childNodes)(i,function(n){r.append(n)},{futureParentElement:r});return}r.html(f.template);t(r.contents())(i)}}}],od=pi({priority:450,compile:function(){return{pre:function(n,t,i){n.$eval(i.ngInit)}}}}),sd=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(n,i,u,f){var e=i.attr(u.$attr.ngList)||", ",o=u.ngTrim!=="false",s=o?y(e):e,h=function(n){if(!r(n)){var i=[];return n&&t(n.split(s),function(n){n&&i.push(o?y(n):n)}),i}};f.$parsers.push(h);f.$formatters.push(function(n){return c(n)?n.join(e):undefined});f.$isEmpty=function(n){return!n||!n.length}}}},fu="ng-valid",yl="ng-invalid",nr="ng-pristine",af="ng-dirty",eo="ng-untouched",pl="ng-touched",wl="ng-pending",bl="ng-empty",kl="ng-not-empty",eu=l("ngModel"),hd=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(n,i,e,s,h,c,l,a,v,y){var d;this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=undefined;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=undefined;this.$name=y(e.name||"",!1)(n);this.$$parentForm=iu;var k=h(e.ngModel),tt=k.assign,nt=k,it=tt,g=null,b,p=this;this.$$setOptions=function(n){if(p.$options=n,n&&n.getterSetter){var t=h(e.ngModel+"()"),i=h(e.ngModel+"($$$p)");nt=function(n){var i=k(n);return f(i)&&(i=t(n)),i};it=function(n,t){f(k(n))?i(n,{$$$p:t}):tt(n,t)}}else if(!k.assign)throw eu("nonassign","Expression '{0}' is non-assignable. Element: {1}",e.ngModel,yt(s));};this.$render=o;this.$isEmpty=function(n){return r(n)||n===""||n===null||n!==n};this.$$updateEmptyClasses=function(n){p.$isEmpty(n)?(c.removeClass(s,kl),c.addClass(s,bl)):(c.removeClass(s,bl),c.addClass(s,kl))};d=0;dl({ctrl:this,$element:s,set:function(n,t){n[t]=!0},unset:function(n,t){delete n[t]},$animate:c});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;c.removeClass(s,af);c.addClass(s,nr)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;c.removeClass(s,nr);c.addClass(s,af);p.$$parentForm.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;c.setClass(s,eo,pl)};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;c.setClass(s,pl,eo)};this.$rollbackViewValue=function(){l.cancel(g);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!w(p.$modelValue)||!isNaN(p.$modelValue)){var t=p.$$lastCommittedViewValue,n=p.$$rawModelValue,i=p.$valid,r=p.$modelValue,u=p.$options&&p.$options.allowInvalid;p.$$runValidators(n,t,function(t){u||i===t||(p.$modelValue=t?n:undefined,p.$modelValue!==r&&p.$$writeModelToScope())})}};this.$$runValidators=function(n,i,u){function h(){var n=p.$$parserName||"parse";if(r(b))f(n,null);else return b||(t(p.$validators,function(n,t){f(t,null)}),t(p.$asyncValidators,function(n,t){f(t,null)})),f(n,b),b;return!0}function c(){var r=!0;return(t(p.$validators,function(t,u){var e=t(n,i);r=r&&e;f(u,e)}),!r)?(t(p.$asyncValidators,function(n,t){f(t,null)}),!1):!0}function l(){var r=[],u=!0;t(p.$asyncValidators,function(t,e){var o=t(n,i);if(!su(o))throw eu("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",o);f(e,undefined);r.push(o.then(function(){f(e,!0)},function(){u=!1;f(e,!1)}))});r.length?v.all(r).then(function(){e(u)},o):e(!0)}function f(n,t){s===d&&p.$setValidity(n,t)}function e(n){s===d&&u(n)}d++;var s=d;if(!h()){e(!1);return}if(!c()){e(!1);return}l()};this.$commitViewValue=function(){var n=p.$viewValue;(l.cancel(g),p.$$lastCommittedViewValue!==n||n===""&&p.$$hasNativeValidators)&&(p.$$updateEmptyClasses(n),p.$$lastCommittedViewValue=n,p.$pristine&&this.$setDirty(),this.$$parseAndValidate())};this.$$parseAndValidate=function(){function e(){p.$modelValue!==f&&p.$$writeModelToScope()}var o=p.$$lastCommittedViewValue,t=o,i,f,u;if(b=r(t)?undefined:!0,b)for(i=0;i<p.$parsers.length;i++)if(t=p.$parsers[i](t),r(t)){b=!1;break}w(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=nt(n));f=p.$modelValue;u=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=t;u&&(p.$modelValue=t,e());p.$$runValidators(t,p.$$lastCommittedViewValue,function(n){u||(p.$modelValue=n?t:undefined,e())})};this.$$writeModelToScope=function(){it(n,p.$modelValue);t(p.$viewChangeListeners,function(n){try{n()}catch(t){i(t)}})};this.$setViewValue=function(n,t){p.$viewValue=n;(!p.$options||p.$options.updateOnDefault)&&p.$$debounceViewValueCommit(t)};this.$$debounceViewValueCommit=function(t){var r=0,f=p.$options,i;f&&u(f.debounce)&&(i=f.debounce,w(i)?r=i:w(i[t])?r=i[t]:w(i["default"])&&(r=i["default"]));l.cancel(g);r?g=l(function(){p.$commitViewValue()},r):a.$$phase?p.$commitViewValue():n.$apply(function(){p.$commitViewValue()})};n.$watch(function(){var t=nt(n);if(t!==p.$modelValue&&(p.$modelValue===p.$modelValue||t===t)){p.$modelValue=p.$$rawModelValue=t;b=undefined;for(var r=p.$formatters,u=r.length,i=t;u--;)i=r[u](i);p.$viewValue!==i&&(p.$$updateEmptyClasses(i),p.$viewValue=p.$$lastCommittedViewValue=i,p.$render(),p.$$runValidators(t,i,o))}return t})}],cd=["$rootScope",function(n){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:hd,priority:1,compile:function(t){return t.addClass(nr).addClass(eo).addClass(fu),{pre:function(n,t,i,r){var u=r[0],f=r[1]||u.$$parentForm;u.$$setOptions(r[2]&&r[2].$options);f.$addControl(u);i.$observe("name",function(n){u.$name!==n&&u.$$parentForm.$$renameControl(u,n)});n.$on("$destroy",function(){u.$$parentForm.$removeControl(u)})},post:function(t,i,r,u){var f=u[0];if(f.$options&&f.$options.updateOn)i.on(f.$options.updateOn,function(n){f.$$debounceViewValueCommit(n&&n.type)});i.on("blur",function(){f.$touched||(n.$$phase?t.$evalAsync(f.$setTouched):t.$apply(f.$setTouched))})}}}}}],ld=/(\s+|^)default(\s+|$)/,ad=function(){return{restrict:"A",controller:["$scope","$attrs",function(n,t){var i=this;this.$options=ni(n.$eval(t.ngModelOptions));u(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=y(this.$options.updateOn.replace(ld,function(){return i.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}};var vd=pi({terminal:!0,priority:1e3}),yd=l("ngOptions"),pd=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,wd=["$compile","$document","$parse",function(i,r,f){function h(n,t,i){function tt(n,t,i,r,u){this.selectValue=n;this.viewValue=t;this.label=i;this.group=r;this.disabled=u}function w(n){var t,i;if(!s&&ei(n))t=n;else{t=[];for(i in n)n.hasOwnProperty(i)&&i.charAt(0)!=="$"&&t.push(i)}return t}var r=n.match(pd);if(!r)throw yd("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",n,yt(t));var o=r[5]||r[7],s=r[6],l=/ as /.test(r[0])&&r[1],u=r[9],b=f(r[2]?r[1]:o),k=l&&f(l),d=k||b,g=u&&f(u),h=u?function(n,t){return g(i,t)}:function(n){return ci(n)},a=function(n,t){return h(n,c(n,t))},v=f(r[2]||r[1]),nt=f(r[3]||""),y=f(r[4]||""),p=f(r[8]),e={},c=s?function(n,t){return e[s]=t,e[o]=n,e}:function(n){return e[o]=n,e};return{trackBy:u,getTrackByValue:a,getWatchables:f(p,function(n){var u=[],f,o,t,a,p;for(n=n||[],f=w(n),o=f.length,t=0;t<o;t++){var s=n===f?t:f[t],l=n[s],e=c(l,s),b=h(l,e);u.push(b);(r[2]||r[1])&&(a=v(i,e),u.push(a));r[4]&&(p=y(i,e),u.push(p))}return u}),getOptions:function(){for(var o=[],r={},f=p(i)||[],e=w(f),g=e.length,t=0;t<g;t++){var s=f===e?t:e[t],it=f[s],n=c(it,s),l=d(i,n),b=h(l,n),rt=v(i,n),ft=nt(i,n),et=y(i,n),k=new tt(b,l,rt,ft,et);o.push(k);r[b]=k}return{items:o,selectValueMap:r,getOptionFromViewValue:function(n){return r[a(n)]},getViewValueFromOption:function(n){return u?ut.copy(n.viewValue):n.viewValue}}}}}function a(n,f,o,a){function ft(n,t){var i=s.cloneNode(!1);t.appendChild(i);lt(n,i)}function lt(n,t){n.element=t;t.disabled=n.disabled;n.label!==t.label&&(t.label=n.label,t.textContent=n.label);n.value!==t.value&&(t.value=n.selectValue)}function et(){var r=v&&b.readValue(),n,t,e,i,o;if(v)for(n=v.items.length-1;n>=0;n--)t=v.items[n],t.group?nf(t.element.parentNode):nf(t.element);v=w.getOptions();e={};k&&f.prepend(y);v.items.forEach(function(n){var t;u(n.group)?(t=e[n.group],t||(t=l.cloneNode(!1),tt.appendChild(t),t.label=n.group,e[n.group]=t),ft(n,t)):ft(n,tt)});f[0].appendChild(tt);p.$render();p.$isEmpty(r)||(i=b.readValue(),o=w.trackBy||ut,(o?st(r,i):r===i)||(p.$setViewValue(i),p.$render()))}for(var k,d,b=a[0],p=a[1],ut=o.multiple,y,g=0,nt=f.children(),ot=nt.length;g<ot;g++)if(nt[g].value===""){y=nt.eq(g);break}k=!!y;d=e(s.cloneNode(!1));d.val("?");var v,w=h(o.ngOptions,f,n),tt=r[0].createDocumentFragment(),ht=function(){k||f.prepend(y);f.val("");y.prop("selected",!0);y.attr("selected",!0)},it=function(){k||y.remove()},ct=function(){f.prepend(d);f.val("?");d.prop("selected",!0);d.attr("selected",!0)},rt=function(){d.remove()};ut?(p.$isEmpty=function(n){return!n||n.length===0},b.writeValue=function(n){v.items.forEach(function(n){n.element.selected=!1});n&&n.forEach(function(n){var t=v.getOptionFromViewValue(n);t&&(t.element.selected=!0)})},b.readValue=function(){var i=f.val()||[],n=[];return t(i,function(t){var i=v.selectValueMap[t];i&&!i.disabled&&n.push(v.getViewValueFromOption(i))}),n},w.trackBy&&n.$watchCollection(function(){if(c(p.$viewValue))return p.$viewValue.map(function(n){return w.getTrackByValue(n)})},function(){p.$render()})):(b.writeValue=function(n){var t=v.getOptionFromViewValue(n);t?(f[0].value!==t.selectValue&&(rt(),it(),f[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):n===null||k?(rt(),ht()):(it(),ct())},b.readValue=function(){var n=v.selectValueMap[f.val()];return n&&!n.disabled?(it(),rt(),v.getViewValueFromOption(n)):null},w.trackBy&&n.$watch(function(){return w.getTrackByValue(p.$viewValue)},function(){p.$render()}));k?(y.remove(),i(y)(n),y.removeClass("ng-scope")):y=e(s.cloneNode(!1));f.empty();et();n.$watchCollection(w.getWatchables,et)}var s=n.document.createElement("option"),l=n.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(n,t,i,r){r[0].registerOption=o},post:a}}}],bd=["$locale","$interpolate","$log",function(n,i,u){var f=/{}/g,e=/^when(Minus)?(.+)$/;return{link:function(s,h,c){function g(n){h.text(n||"")}var p=c.count,b=c.$attr.when&&h.attr(c.$attr.when),k=c.offset||0,v=s.$eval(b)||{},d={},nt=i.startSymbol(),tt=i.endSymbol(),it=nt+p+"-"+k+tt,y=ut.noop,l;t(c,function(n,t){var i=e.exec(t),r;i&&(r=(i[1]?"-":"")+a(i[2]),v[r]=h.attr(c.$attr[t]))});t(v,function(n,t){d[t]=i(n.replace(f,it))});s.$watch(p,function(t){var i=parseFloat(t),e=isNaN(i),f;e||i in v||(i=n.pluralCat(i-k));i===l||e&&w(l)&&isNaN(l)||(y(),f=d[i],r(f)?(t!=null&&u.debug("ngPluralize: no rule defined for '"+i+"' in "+b),y=o,g()):y=s.$watch(f,g),l=i)})}}}],kd=["$parse","$animate","$compile",function(n,i,r){var f="$$NG_REMOVED",u=l("ngRepeat"),e=function(n,t,i,r,u,f,e){n[i]=r;u&&(n[u]=f);n.$index=t;n.$first=t===0;n.$last=t===e-1;n.$middle=!(n.$first||n.$last);n.$odd=!(n.$even=(t&1)==0)},o=function(n){return n.clone[0]},s=function(n){return n.clone[n.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(h,c){var w=c.ngRepeat,rt=r.$$createComment("end ngRepeat",w),l=w.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),b,v,k,d,tt,it,y;if(!l)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",w);var g=l[1],ut=l[2],a=l[3],nt=l[4];if(l=g.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!l)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",g);if(b=l[3]||l[1],v=l[2],a&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(a)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(a)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",a);return y={$id:ci},nt?k=n(nt):(tt=function(n,t){return ci(t)},it=function(n){return n}),function(n,r,h,c,l){k&&(d=function(t,i,r){return v&&(y[v]=t),y[b]=i,y.$index=r,k(n,y)});var g=p();n.$watchCollection(ut,function(h){var c,pt,st=r[0],ft,ht=p(),et,ut,ot,k,yt,nt,y,ct,lt,vt,wt;if(a&&(n[a]=h),ei(h))nt=h,yt=d||tt;else{yt=d||it;nt=[];for(vt in h)at.call(h,vt)&&vt.charAt(0)!=="$"&&nt.push(vt)}for(et=nt.length,ct=new Array(et),c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],k=yt(ut,ot,c),g[k])y=g[k],delete g[k],ht[k]=y,ct[c]=y;else if(ht[k]){t(ct,function(n){n&&n.scope&&(g[n.id]=n)});throw u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",w,k,ot);}else ct[c]={id:k,scope:undefined,clone:undefined},ht[k]=!0;for(wt in g){if(y=g[wt],lt=lu(y.clone),i.leave(lt),lt[0].parentNode)for(c=0,pt=lt.length;c<pt;c++)lt[c][f]=!0;y.scope.$destroy()}for(c=0;c<et;c++)if(ut=h===nt?c:nt[c],ot=h[ut],y=ct[c],y.scope){ft=st;do ft=ft.nextSibling;while(ft&&ft[f]);o(y)!=ft&&i.move(lu(y.clone),null,st);st=s(y);e(y.scope,c,b,ot,v,ut,et)}else l(function(n,t){y.scope=t;var r=rt.cloneNode(!1);n[n.length++]=r;i.enter(n,null,st);st=r;y.clone=n;ht[y.id]=y;e(y.scope,c,b,ot,v,ut,et)});g=ht})}}}}],na="ng-hide",ta="ng-hide-animate",dd=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngShow,function(t){n[t?"removeClass":"addClass"](i,na,{tempClasses:ta})})}}}],gd=["$animate",function(n){return{restrict:"A",multiElement:!0,link:function(t,i,r){t.$watch(r.ngHide,function(t){n[t?"addClass":"removeClass"](i,na,{tempClasses:ta})})}}}],ng=pi(function(n,i,r){n.$watch(r.ngStyle,function(n,r){r&&n!==r&&t(r,function(n,t){i.css(t,"")});n&&i.css(n)},!0)}),tg=["$animate","$compile",function(n,i){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(r,u,f,e){var l=f.ngSwitch||f.on,c=[],h=[],o=[],s=[],a=function(n,t){return function(){n.splice(t,1)}};r.$watch(l,function(r){for(var l,v,u=0,f=o.length;u<f;++u)n.cancel(o[u]);for(o.length=0,u=0,f=s.length;u<f;++u)l=lu(h[u].clone),s[u].$destroy(),v=o[u]=n.leave(l),v.then(a(o,u));h.length=0;s.length=0;(c=e.cases["!"+r]||e.cases["?"])&&t(c,function(t){t.transclude(function(r,u){var f,e;s.push(u);f=t.element;r[r.length++]=i.$$createComment("end ngSwitchWhen");e={clone:r};h.push(e);n.enter(r,f.parent(),f)})})})}}}],ig=pi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["!"+i.ngSwitchWhen]=r.cases["!"+i.ngSwitchWhen]||[];r.cases["!"+i.ngSwitchWhen].push({transclude:u,element:t})}}),rg=pi({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(n,t,i,r,u){r.cases["?"]=r.cases["?"]||[];r.cases["?"].push({transclude:u,element:t})}}),ug=l("ngTransclude"),fg=pi({restrict:"EAC",link:function(n,t,i,r,u){function f(n){n.length&&(t.empty(),t.append(n))}if(i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude=""),!u)throw ug("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",yt(t));var e=i.ngTransclude||i.ngTranscludeSlot;u(f,null,e)}}),eg=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,i){if(i.type=="text/ng-template"){var r=i.id,u=t[0].text;n.put(r,u)}}}}],og={$setViewValue:o,$render:o};var hg=["$element","$scope",function(t,i){var r=this,f=new di;r.ngModelCtrl=og;r.unknownOption=e(n.document.createElement("option"));r.renderUnknownOption=function(n){var i="? "+ci(n)+" ?";r.unknownOption.val(i);t.prepend(r.unknownOption);t.val(i)};i.$on("$destroy",function(){r.renderUnknownOption=o});r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()};r.readValue=function(){return r.removeUnknownOption(),t.val()};r.writeValue=function(n){r.hasOption(n)?(r.removeUnknownOption(),t.val(n),n===""&&r.emptyOption.prop("selected",!0)):n==null&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(n)};r.addOption=function(n,t){if(t[0].nodeType!==au){bi(n,'"option value"');n===""&&(r.emptyOption=t);var i=f.get(n)||0;f.put(n,i+1);r.ngModelCtrl.$render();sg(t)}};r.removeOption=function(n){var t=f.get(n);t&&(t===1?(f.remove(n),n===""&&(r.emptyOption=undefined)):f.put(n,t-1))};r.hasOption=function(n){return!!f.get(n)};r.registerOption=function(n,t,i,f,e){if(f){var o;i.$observe("value",function(n){u(o)&&r.removeOption(o);o=n;r.addOption(n,t)})}else e?n.$watch(e,function(n,u){i.$set("value",n);u!==n&&r.removeOption(u);r.addOption(n,t)}):r.addOption(i.value,t);t.on("$destroy",function(){r.removeOption(i.value);r.ngModelCtrl.$render()})}}],cg=function(){function n(n,i,r,f){var e=f[1],o,h,s;if(e){o=f[0];o.ngModelCtrl=e;i.on("change",function(){n.$apply(function(){e.$setViewValue(o.readValue())})});r.multiple&&(o.readValue=function(){var n=[];return t(i.find("option"),function(t){t.selected&&n.push(t.value)}),n},o.writeValue=function(n){var r=new di(n);t(i.find("option"),function(n){n.selected=u(r.get(n.value))})},s=NaN,n.$watch(function(){s!==e.$viewValue||st(h,e.$viewValue)||(h=ot(e.$viewValue),e.$render());s=e.$viewValue}),e.$isEmpty=function(n){return!n||n.length===0})}}function i(n,t,i,r){var u=r[1],f;u&&(f=r[0],u.$render=function(){f.writeValue(u.$viewValue)})}return{restrict:"E",require:["select","?ngModel"],controller:hg,priority:1,link:{pre:n,post:i}}},lg=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,i){var f,r;return u(i.value)?f=n(i.value,!0):(r=n(t.text(),!0),r||i.$set("value",t.text())),function(n,t,i){var u="$selectController",e=t.parent(),o=e.data(u)||e.parent().data(u);o&&o.registerOption(n,t,i,f,r)}}}}],ag=ft({restrict:"E",terminal:!1}),ia=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){r&&(i.required=!0,r.$validators.required=function(n,t){return!i.required||!r.$isEmpty(t)},i.$observe("required",function(){r.$validate()}))}}},ra=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,u){if(u){var f,e=i.ngPattern||i.pattern;i.$observe("pattern",function(n){if(h(n)&&n.length>0&&(n=new RegExp("^"+n+"$")),n&&!n.test)throw l("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,n,yt(t));f=n||undefined;u.$validate()});u.$validators.pattern=function(n,t){return u.$isEmpty(t)||r(f)||f.test(t)}}}}},ua=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=-1;i.$observe("maxlength",function(n){var t=tt(n);u=isNaN(t)?-1:t;r.$validate()});r.$validators.maxlength=function(n,t){return u<0||r.$isEmpty(t)||t.length<=u}}}}},fa=function(){return{restrict:"A",require:"?ngModel",link:function(n,t,i,r){if(r){var u=0;i.$observe("minlength",function(n){u=tt(n)||0;r.$validate()});r.$validators.minlength=function(n,t){return r.$isEmpty(t)||t.length>=u}}}}};if(n.angular.bootstrap){n.console&&console.log("WARNING: Tried to load angular more than once.");return}rv();ov(ut);ut.module("ngLocale",[],["$provide",function(n){function i(n){n=n+"";var t=n.indexOf(".");return t==-1?0:n.length-t-1}function r(n,t){var r=t,u,f;return undefined===r&&(r=Math.min(i(n),3)),u=Math.pow(10,r),f=(n*u|0)%u,{v:r,f:f}}var t={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};n.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(n,i){var u=n|0,f=r(n,i);return u==1&&f.v==0?t.ONE:t.OTHER}})}]);e(n.document).ready(function(){nv(n.document,is)})}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}<\/style>'),function(n,t){"use strict";function e(){function i(n,i){return t.extend(Object.create(n),i)}function r(n,t){var r=t.caseInsensitiveMatch,i={originalPath:n,regexp:n},u=i.keys=[];return n=n.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(n,t,i,r){var f=r==="?"||r==="*?"?"?":null,e=r==="*"||r==="*?"?"*":null;return u.push({name:i,optional:!!f}),t=t||"",""+(f?"":t)+"(?:"+(f?t:"")+(e&&"(.+?)"||"([^/]+)")+(f||"")+")"+(f||"")}).replace(/([\/$\*])/g,"\\$1"),i.regexp=new RegExp("^"+n+"$",r?"i":""),i}var n={};this.when=function(i,u){var f=t.copy(u),e;return t.isUndefined(f.reloadOnSearch)&&(f.reloadOnSearch=!0),t.isUndefined(f.caseInsensitiveMatch)&&(f.caseInsensitiveMatch=this.caseInsensitiveMatch),n[i]=t.extend(f,i&&r(i,f)),i&&(e=i[i.length-1]=="/"?i.substr(0,i.length-1):i+"/",n[e]=t.extend({redirectTo:i},r(e,f))),this};this.caseInsensitiveMatch=!1;this.otherwise=function(n){return typeof n=="string"&&(n={redirectTo:n}),this.when(null,n),this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(r,u,e,o,s,h,c){function k(n,t){var s=t.keys,e={},r,i,o,u,f;if(!t.regexp||(r=t.regexp.exec(n),!r))return null;for(i=1,o=r.length;i<o;++i)u=s[i-1],f=r[i],u&&f&&(e[u.name]=f);return e}function p(n){var i=a.current;l=d();y=l&&i&&l.$$route===i.$$route&&t.equals(l.pathParams,i.pathParams)&&!l.reloadOnSearch&&!v;!y&&(i||l)&&r.$broadcast("$routeChangeStart",l,i).defaultPrevented&&n&&n.preventDefault()}function w(){var i=a.current,n=l;y?(i.params=n.params,t.copy(i.params,e),r.$broadcast("$routeUpdate",i)):(n||i)&&(v=!1,a.current=n,n&&n.redirectTo&&(t.isString(n.redirectTo)?u.path(b(n.redirectTo,n.params)).search(n.params).replace():u.url(n.redirectTo(n.pathParams,u.path(),u.search())).replace()),o.when(n).then(function(){if(n){var u=t.extend({},n.resolve),i,r;return t.forEach(u,function(n,i){u[i]=t.isString(n)?s.get(n):s.invoke(n,null,null,i)}),t.isDefined(i=n.template)?t.isFunction(i)&&(i=i(n.params)):t.isDefined(r=n.templateUrl)&&(t.isFunction(r)&&(r=r(n.params)),t.isDefined(r)&&(n.loadedTemplateUrl=c.valueOf(r),i=h(r))),t.isDefined(i)&&(u.$template=i),o.all(u)}}).then(function(u){n==a.current&&(n&&(n.locals=u,t.copy(n.params,e)),r.$broadcast("$routeChangeSuccess",n,i))},function(t){n==a.current&&r.$broadcast("$routeChangeError",n,i,t)}))}function d(){var f,r;return t.forEach(n,function(n){!r&&(f=k(u.path(),n))&&(r=i(n,{params:t.extend({},u.search(),f),pathParams:f}),r.$$route=n)}),r||n[null]&&i(n[null],{params:{},pathParams:{}})}function b(n,i){var r=[];return t.forEach((n||"").split(":"),function(n,t){if(t===0)r.push(n);else{var u=n.match(/(\w+)(?:[?*])?(.*)/),f=u[1];r.push(i[f]);r.push(u[2]||"");delete i[f]}}),r.join("")}var v=!1,l,y,a={routes:n,reload:function(){v=!0;var n={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0;v=!1}};r.$evalAsync(function(){p(n);n.defaultPrevented||w()})},updateParams:function(n){if(this.current&&this.current.$$route)n=t.extend({},this.current.params,n),u.path(b(this.current.$$route.originalPath,n)),u.search(n);else throw f("norout","Tried updating route when with no current route");}};return r.$on("$locationChangeStart",p),r.$on("$locationChangeSuccess",w),a}]}function o(){this.$get=function(){return{}}}function r(n,i,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(u,f,e,o,s){function v(){c&&(r.cancel(c),c=null);h&&(h.$destroy(),h=null);l&&(c=r.leave(l),c.then(function(){c=null}),l=null)}function y(){var e=n.current&&n.current.locals,c=e&&e.$template;if(t.isDefined(c)){var o=u.$new(),y=n.current,w=s(o,function(n){r.enter(n,null,l||f).then(function(){t.isDefined(a)&&(!a||u.$eval(a))&&i()});v()});l=w;h=y.scope=o;h.$emit("$viewContentLoaded");h.$eval(p)}else v()}var h,l,c,a=e.autoscroll,p=e.onload||"";u.$on("$routeChangeSuccess",y);y()}}}function u(n,t,i){return{restrict:"ECA",priority:-400,link:function(r,u){var f=i.current,e=f.locals,s,o;u.html(e.$template);s=n(u.contents());f.controller&&(e.$scope=r,o=t(f.controller,e),f.controllerAs&&(r[f.controllerAs]=o),u.data("$ngControllerController",o),u.children().data("$ngControllerController",o));r[f.resolveAs||"$resolve"]=e;s(r)}}}var i=t.module("ngRoute",["ng"]).provider("$route",e),f=t.$$minErr("ngRoute");i.provider("$routeParams",o);i.directive("ngView",r);i.directive("ngView",u);r.$inject=["$route","$anchorScroll","$animate"];u.$inject=["$compile","$controller","$route"]}(window,window.angular),function(){var t=function(n,t,i,r){var u=function(u,f){function a(){v();i.jQuery&&y();l=f[0].firstChild}function v(){r.request=function(t){return c(),t||n.when(t)};r.response=function(t){return o(),t||n.when(t)};r.responseError=function(t){return o(),n.reject(t)}}function y(){$(document).ajaxStart(function(){c()});$(document).ajaxComplete(function(){o()});$(document).ajaxError(function(){o()})}function c(){console.log(e);e.push({});e.length==1&&(s=t(function(){e.length&&p()},u.wcOverlayDelay?u.wcOverlayDelay:500))}function o(){e.pop();e.length==0&&(h=t(function(){e.length==0&&(w(),h&&t.cancel(h))},u.wcOverlayDelay?u.wcOverlayDelay:500))}function p(){console.log($(".modal .in").length);$(".modal .in").length<=0&&$(".loading").show()}function w(){s&&t.cancel(s);$(".loading").hide()}var l=null,s=null,h=null,e=[],b;a();b=function(){var n=null;return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle:typeof document.body.currentStyle!="undefined"&&(n=function(n){return n.currentStyle}),function(t,i){return n(t,null)[i]}}()};return{restrict:"EA",transclude:!0,scope:{wcOverlayDelay:"@"},template:'<div class="loading"><div> <div class="loader">Loading...<\/div><\/div> <\/div>',link:u}},n=angular.module("wc.directives",[]);n.factory("httpInterceptor",function(){return{}});n.config(["$httpProvider",function(n){n.interceptors.push("httpInterceptor")}]);t.$inject=["$q","$timeout","$window","httpInterceptor"];n.directive("wcOverlay",t)}(),angular.module("photo",[]),module=angular.module("LogoutApp",[]),module.controller("LogoutController",["$scope","$http",function(n,t){n.$on("booking.company.review.active",function(){var n=window.setInterval(function(){$("body").hasClass("modal-open")||(window.clearInterval(n),$('#bookTabs a[href="#views"]').click(),$("#reviewModal").modal("show"),$.removeCookie("Islogin",{path:"/"}))},100)});n.IsCompanySubscriptionPaid=!1;n.logout=function(){$(".menu__wrap").removeClass("menu-slide-right");$(".bg-fading").removeClass("show-bg-fading");$(".icon_mobile_close_menu").hide();n.PromptController.prompt("Are you sure to logout?").then(function(n){n&&(showLoading(),logout())})};n.authCompany=function(i){if(window.$MobileMenuController&&window.$MobileMenuController.hide(),showLoading(),n.DashboardAccessable){window.location.replace(i);return}t.get("/company/dashboard/accessable").then(function(t){t.data.Success?(n.DashboardAccessable=t.data.OutputData.DashboardAccessable,t.data.OutputData.DashboardAccessable?window.location.replace(i):(t.data.OutputData.ReturnUrl=i,hideLoading(),n.$broadcast("process.auth.company",t.data.OutputData))):n.AlertController.alert("Unable to verify your company expiration.")})};n.fitfooter=function(){$(".kuyam-footer").css("margin-top","");var n=$(".wrapper,.wrap").height(),t=$(".site-header").height(),i=$(window).height();n+t<i&&$(".kuyam-footer").css("margin-top",i-n-t+"px");$(".kuyam-footer").css({opacity:1,"-moz-opacity":1})};$(document).on("ready click",function(){n.fitfooter()}).ajaxComplete(function(){n.fitfooter()});$(window).on("resize",function(){n.fitfooter()})}]).directive("prompt",function(){return{restrict:"AE",controller:["$scope","$q","$sce",function(n,t,i){n.PromptController={Message:"",YesCaption:"yes",NoCaption:"no",Id:"prompt"+guid(),prompt:function(r,u,f){var e=!1,s=this,o=t.defer();this.Message=i.trustAsHtml(r);this.YesCaption=u||this.YesCaption;this.NoCaption=f||this.NoCaption;$("#"+this.Id).modal("show");$("#"+this.Id).one("hidden.bs.modal",function(){o.resolve(e)});$("#"+this.Id+" .btn-yes").off("click").one("click",function(){e=!0;$("#"+s.Id).modal("hide")});return n.$$phase||n.$apply(),o.promise}}}],link:function(n){setTimeout(function(){$("#"+n.PromptController.Id).appendTo($("body"))},100)},template:'<div id="{{PromptController.Id}}" class="modal fade modal-s" role="dialog" aria-labelledby="promptModalLabel" data-keyboard="false" data-backdrop="static"><div class="modal-dialog modal-signout"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">x<\/button><br/><h4 id="promptModalLabel" class="modal-title" ng-bind-html="PromptController.Message"><\/h4><\/div><div class="modal-body"><form><fieldset><div class="row"><div class="col-xs-6"><button data-dismiss="modal" class="btn btn-form btn-disagree">{{PromptController.NoCaption}}<\/button><\/div><div class="col-xs-6"><button class="btn btn-form btn-agree btn-yes">{{PromptController.YesCaption}}<\/button><\/div><\/div><\/fieldset><\/form><\/div><div class="modal-footer"><\/div><\/div><\/div><\/div>'}}).directive("alert",["$cacheFactory",function(n){var i=getAngularKuyamCache(n),t=i.get("alert");return t===undefined?(t={restrict:"AE",link:function(n){setTimeout(function(){$("#"+n.AlertController.Id).appendTo($("body"))},100)},controller:["$scope","$sce","$q",function(n,t,i){n.AlertController={Message:"",Id:"alert"+guid(),OkClicked:!1,alert:function(r){var f=this,u=i.defer();this.Message=t.trustAsHtml(r);this.OkClicked=!1;$("#"+this.Id).modal("show");$("#"+this.Id).one("hidden.bs.modal",function(){u.resolve(f.OkClicked)});return n.$$phase||n.$parent.$$phase||n.$apply(),u.promise},ok:function(){this.OkClicked=!0}}}],template:'<div id="{{AlertController.Id}}" class="modal fade modal-s" role="dialog" aria-labelledby="alertModalLabel" data-keyboard="false" data-backdrop="static" style="z-index:99999;"><div class="modal-dialog modal-signout"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">x<\/button><h4 id="alertModalLabel" class="modal-title model-body-content" ng-bind-html="AlertController.Message"><\/h4><\/div><div class="modal-body"><div class="row">\t<div class="col-xs-6 col-xs-offset-3"><button class="btn btn-form btn-agree" data-dismiss="modal" ng-click="AlertController.ok()">OK<\/button><\/div>\t<\/div><\/div><div class="modal-footer"><\/div><\/div><\/div><\/div>'},i.put("alert",t),t):{}}]).directive("ngBindingDone",["$cacheFactory","$timeout",function(n,t){var i=getAngularKuyamCache(n),r=i.get("ngBindingDone");return r===undefined?(i.put("ngBindingDone","created"),function(n,i,r){n.$last&&t(function(){n.$eval(r.ngBindingDone)},1)}):{}}]),getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("buyingCompanyPlan",{templateUrl:"/template/unlockcompanydashboard",controller:BuyingCompanyPlanController,bindings:{workinghours:"<",onValidate:"&",onRendered:"&"}}),BuyingCompanyPlanController.$inject=["$scope","$http"],typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one(n.support.transition.end,function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t()})}(jQuery);+function(n){"use strict";var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.prototype.close=function(t){function f(){i.trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;(r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=n(r),t&&t.preventDefault(),i.length||(i=u.hasClass("alert")?u:u.parent()),i.trigger(t=n.Event("close.bs.alert")),t.isDefaultPrevented())||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one(n.support.transition.end,f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=function(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,u=i.is("input")?"val":"html",f=i.data();t=t+"Text";f.resetText||i.data("resetText",i[u]());i[u](f[t]||this.options[t]);setTimeout(n.proxy(function(){t=="loadingText"?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};i=n.fn.button;n.fn.button=function(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})};n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=i,this};n(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=n(t.target);i.hasClass("btn")||(i=i.closest(".btn"));i.button("toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.pause=="hover"&&this.$element.on("mouseenter",n.proxy(this.pause,this)).on("mouseleave",n.proxy(this.cycle,this))},i;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)};t.prototype.to=function(t){var r=this,i=this.getActiveIndex();if(!(t>this.$items.length-1)&&!(t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),s=this.interval,f=t=="next"?"left":"right",h=t=="next"?"first":"last",e=this,o;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(r.hasClass("active"))return this.sliding=!1;if(o=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),this.$element.trigger(o),!o.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");this.$element.one("slid.bs.carousel",function(){var t=n(e.$indicators.children()[e.getActiveIndex()]);t&&t.addClass("active")})}return n.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one(n.support.transition.end,function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));e.sliding=!1;setTimeout(function(){e.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(u.css("transition-duration").slice(0,-1)*1e3)):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this}};i=n.fn.carousel;n.fn.carousel=function(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})};n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=i,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=n(this),f,r=n(i.attr("data-target")||(f=i.attr("href"))&&f.replace(/.*(?=#[^\s]+$)/,"")),e=n.extend({},r.data(),i.data()),u=i.attr("data-slide-to");u&&(e.interval=!1);r.carousel(e);(u=i.attr("data-slide-to"))&&r.data("bs.carousel").to(u);t.preventDefault()});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);t.carousel(t.data())})})}(jQuery);+function(n){"use strict";var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},i;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var u,t,r,i,f,e;if(!this.transitioning&&!this.$element.hasClass("in")&&(u=n.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(r=t.data("bs.collapse"),r&&r.transitioning)return;t.collapse("hide");r||t.data("bs.collapse",null)}if(i=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return f.call(this);e=n.camelCase(["scroll",i].join("-"));this.$element.one(n.support.transition.end,n.proxy(f,this)).emulateTransitionEnd(350)[i](this.$element[0][e])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented())){if(t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},!n.support.transition)return r.call(this);this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};i=n.fn.collapse;n.fn.collapse=function(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&i=="show"&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=i,this};n(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=n(this),e,s=i.attr("data-target")||t.preventDefault()||(e=i.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=n(s),u=r.data("bs.collapse"),h=u?"toggle":i.data(),f=i.attr("data-parent"),o=f&&n(f);u&&u.transitioning||(o&&o.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed"));r.collapse(h)})}(jQuery);+function(n){"use strict";function r(t){n(e).remove();n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&((i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented())||i.removeClass("open").trigger("hidden.bs.dropdown",r))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}var e=".dropdown-backdrop",i="[data-toggle=dropdown]",t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown",e);f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&t.keyCode==27)return t.which==27&&o.find(i).focus(),e.click();(h=" li:not(.divider):visible a",f=o.find("[role=menu]"+h+", [role=listbox]"+h),f.length)&&(r=f.index(f.filter(":focus")),t.keyCode==38&&r>0&&r--,t.keyCode==40&&r<f.length-1&&r++,~r||(r=0),f.eq(r).focus())}};f=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})};n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+", [role=menu], [role=listbox]",t.prototype.keydown)}(jQuery);+function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t);this.$backdrop=this.isShown=null;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},i;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this[this.isShown?"hide":"show"](n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.escape();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(document.body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one(n.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)})}};t.prototype.hide=function(t){(t&&t.preventDefault(),t=n.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one(n.support.transition.end,n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.focus()},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.removeBackdrop();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var r=this.$element.hasClass("fade")?"fade":"",i;if(this.isShown&&this.options.backdrop){i=n.support.transition&&r;this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this));if(i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(n.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};i=n.fn.modal;n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})};n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=i,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());i.is("a")&&t.preventDefault();u.modal(f,this).one("hide",function(){i.is(":visible")&&i.focus()})});n(document).on("show.bs.modal",".modal",function(){n(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){n(document.body).removeClass("modal-open")})}(jQuery);+function(n){"use strict";var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),u,i,v,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),h.isDefaultPrevented())return;u=this;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,l=c.test(t);l&&(t=t.replace(c,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),f=i[0].offsetWidth,e=i[0].offsetHeight;if(l){var o=this.$element.parent(),y=t,a=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:o.outerWidth(),w=this.options.container=="body"?window.innerHeight:o.outerHeight(),b=this.options.container=="body"?0:o.offset().left;t=t=="bottom"&&r.top+r.height+e-a>w?"top":t=="top"&&r.top-a-e<0?"bottom":t=="right"&&r.right+f>p?"left":t=="left"&&r.left-f<b?"right":t;i.removeClass(y).addClass(t)}v=this.getCalculatedOffset(t,r,f,e);this.applyPlacement(v,t);this.hoverState=null;s=function(){u.$element.trigger("shown.bs."+u.type)};n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var c,r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),f,u,h;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");f=r[0].offsetWidth;u=r[0].offsetHeight;i=="top"&&u!=e&&(c=!0,t.top=t.top+e-u);/bottom|top/.test(i)?(h=0,t.left<0&&(h=t.left*-2,t.left=0,r.offset(t),f=r[0].offsetWidth,u=r[0].offsetHeight),this.replaceArrow(h-l+f,f,"left")):this.replaceArrow(u-e,u,"top");c&&r.offset(t)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function u(){t.hoverState!="in"&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),r=n.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one(n.support.transition.end,u).emulateTransitionEnd(150):u(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(){var t=this.$element[0];return n.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=t?n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content")[this.options.html?typeof t=="string"?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=function(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||i!="destroy")&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})};n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u,f=n.proxy(this.process,this);this.$element=n(i).is("body")?n(window):n(i);this.$body=n("body");this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||(u=n(i).attr("href"))&&u.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a";this.offsets=n([]);this.targets=n([]);this.activeTarget=null;this.refresh();this.process()}t.DEFAULTS={offset:10};t.prototype.refresh=function(){var i=this.$element[0]==window?"offset":"position",t,r;this.offsets=n([]);this.targets=n([]);t=this;r=this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),r=/^#./.test(u)&&n(u);return r&&r.length&&r.is(":visible")&&[[r[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,e=f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(i>=e)return u!=(n=r.last()[0])&&this.activate(n);if(u&&i<=t[0])return u!=(n=r[0])&&this.activate(n);for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=i,this};n(window).on("load",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);t.scrollspy(t.data())})})}(jQuery);+function(n){"use strict";var t=function(t){this.element=n(t)},i;t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.parent("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})}))};t.prototype.activate=function(t,i,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");f?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),f=r&&n.support.transition&&u.hasClass("fade");f?u.one(n.support.transition.end,e).emulateTransitionEnd(150):e();u.removeClass("in")};i=n.fn.tab;n.fn.tab=function(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})};n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=i,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();n(this).tab("show")})}(jQuery);+function(n){"use strict";var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$window=n(window).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$window.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,h;if(this.$element.is(":visible")){var c=n(document).height(),o=this.$window.scrollTop(),s=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;(this.affixed=="top"&&(s.top+=o),typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.unpin!=null&&o+this.unpin<=s.top?!1:u!=null&&s.top+this.$element.height()>=c-u?"bottom":f!=null&&o<=f?"top":!1,this.affixed!==i)&&((this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),h=n.Event(e+".bs.affix"),this.$element.trigger(h),h.isDefaultPrevented())||(this.affixed=i,this.unpin=i=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),i=="bottom"&&this.$element.offset({top:c-u-this.$element.height()})))}};i=n.fn.affix;n.fn.affix=function(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})};n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=i,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var i=n(this),t=i.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.affix(t)})})}(jQuery);!function(n){var t=function(t,i,r){r&&(r.stopPropagation(),r.preventDefault());this.$element=n(t);this.$newElement=null;this.button=null;this.label=null;this.labelPrepend=null;this.options=n.extend({},n.fn.checkbox.defaults,this.$element.data(),typeof i=="object"&&i);this.init()};t.prototype={constructor:t,init:function(){this.$element.hide();this.$element.attr("autocomplete","off");this._createButtons()},_createButtons:function(){var t=this.$element.attr("class")!==undefined?this.$element.attr("class").split(/\s+/):"",i=this.getTemplate(),n;for(this.$element.after(i),this.$newElement=this.$element.next(".bootstrap-checkbox"),this.button=this.$newElement.find("button"),this.label=this.$newElement.find("span.label-checkbox"),this.labelPrepend=this.$newElement.find("span.label-prepend-checkbox"),n=0;n<t.length;n++)t[n]!="checkbox"&&this.$newElement.addClass(t[n]);this.button.addClass(this.options.buttonStyle);this.$element.data("default-state")!=undefined&&(this.options.defaultState=this.$element.data("default-state"));this.$element.data("default-enabled")!=undefined&&(this.options.defaultEnabled=this.$element.data("default-enabled"));this.$element.data("display-as-button")!=undefined&&(this.options.displayAsButton=this.$element.data("display-as-button"));this.options.indeterminate&&this.$element.prop("indeterminate",!0);this.checkEnabled();this.checkChecked();this.checkTabIndex();this.clickListener()},getTemplate:function(){var r=this.options.displayAsButton?" displayAsButton":"",t=this.$element.data("label")?'<span class="label-checkbox">'+this.$element.data("label")+"<\/span>":"",i=this.$element.data("label-prepend")?'<span class="label-prepend-checkbox">'+this.$element.data("label-prepend")+"<\/span>":"",n='<span class="button-checkbox bootstrap-checkbox"><button type="button" class="btn clearfix'+r+'">'+(this.$element.data("label-prepend")&&this.options.displayAsButton?i:"")+'<span class="icon '+this.options.checkedClass+'" style="display:none;"><\/span><span class="icon '+this.options.uncheckedClass+'"><\/span><span class="icon '+this.options.indeterminateClass+'" style="display:none;"><\/span>'+(this.$element.data("label")&&this.options.displayAsButton?t:"")+"<\/button><\/span>";return!this.options.displayAsButton&&(this.$element.data("label")||this.$element.data("label-prepend"))&&(n='<label class="'+this.options.labelClass+'">'+i+n+t+"<\/label>"),n},checkEnabled:function(){this.button.attr("disabled",this.$element.is(":disabled"));this.$newElement.toggleClass("disabled",this.$element.is(":disabled"))},checkTabIndex:function(){if(this.$element.is("[tabindex]")){var n=this.$element.attr("tabindex");this.button.attr("tabindex",n)}},checkChecked:function(){var t=/\s/g,i=".";this.$element.prop("indeterminate")==!0?(this.button.find("span."+this.options.checkedClass.replace(t,i)).hide(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).hide(),this.button.find("span."+this.options.indeterminateClass.replace(t,i)).show()):(this.$element.is(":checked")?(this.button.find("span."+this.options.checkedClass.replace(t,i)).show(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).hide()):(this.button.find("span."+this.options.checkedClass.replace(t,i)).hide(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).show()),this.button.find("span."+this.options.indeterminateClass.replace(t,i)).hide());this.$element.is(":checked")?this.options.buttonStyleChecked&&(this.button.removeClass(this.options.buttonStyle),this.button.addClass(this.options.buttonStyleChecked)):this.options.buttonStyleChecked&&(this.button.removeClass(this.options.buttonStyleChecked),this.button.addClass(this.options.buttonStyle));this.$element.is(":checked")?this.options.labelClassChecked&&n(this.$element).next("label").addClass(this.options.labelClassChecked):this.options.labelClassChecked&&n(this.$element).next("label").removeClass(this.options.labelClassChecked)},clickListener:function(){var n=this;this.button.on("click",function(t){t.preventDefault();n.$element.prop("indeterminate",!1);n.$element[0].click();n.checkChecked()});this.$element.on("change",function(){n.checkChecked()});this.$element.parents("form").on("reset",function(t){n.options.defaultState==null?n.$element.prop("indeterminate",!0):n.$element.prop("checked",n.options.defaultState);n.$element.prop("disabled",!n.options.defaultEnabled);n.checkEnabled();n.checkChecked();t.preventDefault()})},setOptions:function(n){n.checked!=undefined&&this.setChecked(n.checked);n.enabled!=undefined&&this.setEnabled(n.enabled);n.indeterminate!=undefined&&this.setIndeterminate(n.indeterminate)},setChecked:function(n){this.$element.prop("checked",n);this.$element.prop("indeterminate",!1);this.checkChecked()},setIndeterminate:function(n){this.$element.prop("indeterminate",n);this.checkChecked()},click:function(){this.$element.prop("indeterminate",!1);this.$element[0].click();this.checkChecked()},change:function(){this.$element.change()},setEnabled:function(n){this.$element.attr("disabled",!n);this.checkEnabled()},toggleEnabled:function(){this.$element.attr("disabled",!this.$element.is(":disabled"));this.checkEnabled()},refresh:function(){this.checkEnabled();this.checkChecked()},update:function(t){this.$element.next().find(".bootstrap-checkbox")&&(this.options=n.extend({},this.options,t),this.$element.next().remove(),this._createButtons())}};n.fn.checkbox=function(i,r){return this.each(function(){var f=n(this),u=f.data("checkbox"),e=typeof i=="object"&&i;u?typeof i=="string"?u[i](r):typeof i!="undefined"&&u.setOptions(i,r):(f.data("checkbox",u=new t(this,e,r)),u.options.constructorCallback!=undefined&&u.options.constructorCallback(u.$element,u.button,u.label,u.labelPrepend))})};n.fn.checkbox.defaults={displayAsButton:!1,indeterminate:!1,buttonStyle:"btn-link",buttonStyleChecked:null,checkedClass:"cb-icon-check",uncheckedClass:"cb-icon-check-empty",indeterminateClass:"cb-icon-check-indeterminate",defaultState:!1,defaultEnabled:!0,constructorCallback:null,labelClass:"checkbox bootstrap-checkbox",labelClassChecked:"active"}}(window.jQuery),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){(function(n){"use strict";function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function r(n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r="(?:"+Object.keys(i).join("|")+")",u=new RegExp(r),f=new RegExp(r,"g"),t=n==null?"":""+n;return u.test(t)?t.replace(f,function(n){return i[n]}):t}function u(i,r){var e=arguments,u=i,s=r,f,o;return[].shift.apply(e),o=this.each(function(){var o=n(this),i,r,c,h;if(o.is("select")){if(i=o.data("selectpicker"),r=typeof u=="object"&&u,i){if(r)for(h in r)r.hasOwnProperty(h)&&(i.options[h]=r[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),r),c.template=n.extend({},t.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},o.data().template,r.template),o.data("selectpicker",i=new t(this,c,s));typeof u=="string"&&(f=i[u]instanceof Function?i[u].apply(i,e):i.options[u])}}),typeof f!="undefined"?f:o}var t,f;String.prototype.includes||function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:undefined,t=o?Number(o):0;return(t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f)?!1:r.call(u,e,t)!=-1};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(this==null)throw new TypeError;if(u=String(this),n&&i.call(n)=="[object RegExp]")throw new TypeError;var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:undefined,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});n.fn.triggerNative=function(n){var i=this[0],t;i.dispatchEvent?(typeof Event=="function"?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event"),t.initEvent(n,!0,!1)),i.dispatchEvent(t)):(i.fireEvent&&(t=document.createEventObject(),t.eventType=n,i.fireEvent("on"+n,t)),this.trigger(n))};n.expr[":"].icontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].ibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr[":"].aicontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].aibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;this.options.title===null&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.destroy;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.9.4";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return n==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[n==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",t==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1};t.prototype={constructor:t,init:function(){var t=this,i=this.$element.attr("id");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");typeof i!="undefined"&&(this.$button.attr("data-id",i),n('label[for="'+i+'"]').click(function(n){n.preventDefault();t.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(n){t.$element.trigger("hide.bs.select",n)},"hidden.bs.dropdown":function(n){t.$element.trigger("hidden.bs.select",n)},"show.bs.dropdown":function(n){t.$element.trigger("show.bs.select",n)},"shown.bs.dropdown":function(n){t.$element.trigger("shown.bs.select",n)}});if(t.$element[0].hasAttribute("required"))this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus();t.$element.on({"focus.bs.select":function(){t.$button.focus();t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid");t.$element.off("rendered.bs.select")}})});setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+"><\/div>":"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+u+'><span class="filter-option pull-left"><\/span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'<\/span><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner" role="menu"><\/ul>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul")[0].innerHTML=t,n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menuInner[0].innerHTML=n},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var u=this,t=[],o=0,s=document.createElement("option"),f=-1,e=function(n,t,i,r){return"<li"+(typeof i!="undefined"&""!==i?' class="'+i+'"':"")+(typeof t!="undefined"&null!==t?' data-original-index="'+t+'"':"")+(typeof r!="undefined"&null!==r?'data-optgroup="'+r+'"':"")+">"+n+"<\/li>"},c=function(n,t,f,e){return'<a tabindex="0"'+(typeof t!="undefined"?' class="'+t+'"':"")+(typeof f!="undefined"?' style="'+f+'"':"")+(u.options.liveSearchNormalize?' data-normalized-text="'+i(r(n))+'"':"")+(typeof e!="undefined"||e!==null?' data-tokens="'+e+'"':"")+">"+n+'<span class="'+u.options.iconBase+" "+u.options.tickIcon+' check-mark"><\/span><\/a>'},h;return this.options.title&&!this.multiple&&(f--,this.$element.find(".bs-title-option").length||(h=this.$element[0],s.className="bs-title-option",s.appendChild(document.createTextNode(this.options.title)),s.value="",h.insertBefore(s,h.firstChild),n(h.options[h.selectedIndex]).attr("selected")===undefined&&(s.selected=!0))),this.$element.find("option").each(function(i){var r=n(this),w;if(f++,!r.hasClass("bs-title-option")){var l=this.className||"",a=this.style.cssText,s=r.data("content")?r.data("content"):r.html(),v=r.data("tokens")?r.data("tokens"):null,k=typeof r.data("subtext")!="undefined"?'<small class="text-muted">'+r.data("subtext")+"<\/small>":"",h=typeof r.data("icon")!="undefined"?'<span class="'+u.options.iconBase+" "+r.data("icon")+'"><\/span> ':"",y=this.parentNode.tagName==="OPTGROUP",p=this.disabled||y&&this.parentNode.disabled;if(h!==""&&p&&(h="<span>"+h+"<\/span>"),u.options.hideDisabled&&p&&!y){f--;return}if(r.data("content")||(s=h+'<span class="text">'+s+k+"<\/span>"),y&&r.data("divider")!==!0){if(w=" "+this.parentNode.className||"",r.index()===0){o+=1;var b=this.parentNode.label,d=typeof r.parent().data("subtext")!="undefined"?'<small class="text-muted">'+r.parent().data("subtext")+"<\/small>":"",g=r.parent().data("icon")?'<span class="'+u.options.iconBase+" "+r.parent().data("icon")+'"><\/span> ':"";b=g+'<span class="text">'+b+d+"<\/span>";i!==0&&t.length>0&&(f++,t.push(e("",null,"divider",o+"div")));f++;t.push(e(b,null,"dropdown-header"+w,o))}if(u.options.hideDisabled&&p){f--;return}t.push(e(c(s,"opt "+l+w,a,v),i,"",o))}else r.data("divider")===!0?t.push(e("",i,"divider")):r.data("hidden")===!0?t.push(e(c(s,l,a,v),i,"hidden is-hidden")):(this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP"&&(f++,t.push(e("",null,"divider",o+"div"))),t.push(e(c(s,l,a,v),i)));u.liObj[i]=f}}),this.multiple||this.$element.find("option:selected").length!==0||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),t.join("")},findLis:function(){return this.$lis==null&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var i=this,o,r,u,f,e,s;t!==!1&&this.$element.find("option").each(function(n){var t=i.findLis().eq(i.liObj[n]);i.setDisabled(n,this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled,t);i.setSelected(n,this.selected,t)});this.tabIndex();r=this.$element.find("option").map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled))return;var t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"",r;return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"",typeof t.attr("title")!="undefined"?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):u+t.html()+r}}).toArray();u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||f.length==1&&r.length>=2)&&(o=this.options.hideDisabled?", [disabled]":"",e=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+o).length,s=typeof this.options.countSelectedText=="function"?this.options.countSelectedText(r.length,e):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",e.toString())));this.options.title==undefined&&(this.options.title=this.$element.attr("title"));this.options.selectedTextFormat=="static"&&(u=this.options.title);u||(u=typeof this.options.title!="undefined"?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(u.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(u);this.$element.trigger("rendered.bs.select")},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=n?n:this.options.style;t=="add"?this.$button.addClass(i):t=="remove"?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){var y;if(t||this.options.size!==!1&&!this.sizeInfo){var e=document.createElement("div"),r=document.createElement("div"),o=document.createElement("ul"),l=document.createElement("li"),p=document.createElement("li"),a=document.createElement("a"),v=document.createElement("span"),s=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,h=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,c=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;v.className="text";e.className=this.$menu[0].parentNode.className+" open";r.className="dropdown-menu open";o.className="dropdown-menu inner";l.className="divider";v.appendChild(document.createTextNode("Inner text"));a.appendChild(v);p.appendChild(a);o.appendChild(p);o.appendChild(l);s&&r.appendChild(s);u&&(y=document.createElement("span"),u.className="bs-searchbox",y.className="form-control",u.appendChild(y),r.appendChild(u));h&&r.appendChild(h);r.appendChild(o);c&&r.appendChild(c);e.appendChild(r);document.body.appendChild(e);var b=a.offsetHeight,k=s?s.offsetHeight:0,d=u?u.offsetHeight:0,g=h?h.offsetHeight:0,nt=c?c.offsetHeight:0,tt=n(l).outerHeight(!0),i=typeof getComputedStyle=="function"?getComputedStyle(r):!1,f=i?null:n(r),w=parseInt(i?i.paddingTop:f.css("paddingTop"))+parseInt(i?i.paddingBottom:f.css("paddingBottom"))+parseInt(i?i.borderTopWidth:f.css("borderTopWidth"))+parseInt(i?i.borderBottomWidth:f.css("borderBottomWidth")),it=w+parseInt(i?i.marginTop:f.css("marginTop"))+parseInt(i?i.marginBottom:f.css("marginBottom"))+2;document.body.removeChild(e);this.sizeInfo={liHeight:b,headerHeight:k,searchHeight:d,actionsHeight:g,doneButtonHeight:nt,dividerHeight:tt,menuPadding:w,menuExtras:it}}},setSize:function(){var h,d,g;if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var i=this,t=this.$menu,p=this.$menuInner,c=n(window),nt=this.$newElement[0].offsetHeight,w=this.sizeInfo.liHeight,l=this.sizeInfo.headerHeight,a=this.sizeInfo.searchHeight,v=this.sizeInfo.actionsHeight,y=this.sizeInfo.doneButtonHeight,tt=this.sizeInfo.dividerHeight,o=this.sizeInfo.menuPadding,f=this.sizeInfo.menuExtras,b=this.options.hideDisabled?".disabled":"",r,u,e,s,k=function(){e=i.$newElement.offset().top-c.scrollTop();s=c.height()-e-nt};if(k(),this.options.size==="auto"){h=function(){var h,b=function(t,i){return function(r){return i?r.classList?r.classList.contains(t):n(r).hasClass(t):!(r.classList?r.classList.contains(t):n(r).hasClass(t))}},d=i.$menuInner[0].getElementsByTagName("li"),c=Array.prototype.filter?Array.prototype.filter.call(d,b("hidden",!1)):i.$lis.not(".hidden"),g=Array.prototype.filter?Array.prototype.filter.call(c,b("dropdown-header",!0)):c.filter(".dropdown-header");k();r=s-f;i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height();i.options.dropupAuto&&i.$newElement.toggleClass("dropup",e>s&&r-f<u);i.$newElement.hasClass("dropup")&&(r=e-f);h=c.length+g.length>3?w*3+f-2:0;t.css({"max-height":r+"px",overflow:"hidden","min-height":h+l+a+v+y+"px"});p.css({"max-height":r-l-a-v-y-o+"px","overflow-y":"auto","min-height":Math.max(h-o,0)+"px"})};h();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",h);c.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",h)}else this.options.size&&this.options.size!="auto"&&this.$lis.not(b).length>this.options.size&&(d=this.$lis.not(".divider").not(b).children().slice(0,this.options.size).last().parent().index(),g=this.$lis.slice(0,d+1).filter(".divider").length,r=w*this.options.size+g*tt+o,i.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height(),i.options.dropupAuto&&this.$newElement.toggleClass("dropup",e>s&&r-f<u),t.css({"max-height":r+l+a+v+y+"px",overflow:"hidden","min-height":""}),p.css({"max-height":r-o+"px","overflow-y":"auto","min-height":""}))}},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var n=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):n,i=n.children(".dropdown-menu").outerWidth(),r=t.css("width","auto").children("button").outerWidth();n.remove();t.remove();this.$newElement.css("width",Math.max(i,r)+"px")}else this.options.width==="fit"?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=n('<div class="bs-container" />');var t=this,i,r,u=function(n){t.$bsContainer.addClass(n.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",n.hasClass("dropup"));i=n.offset();r=n.hasClass("dropup")?0:n[0].offsetHeight;t.$bsContainer.css({top:i.top+r,left:i.left,width:n[0].offsetWidth})};this.$button.on("click",function(){var i=n(this);t.isDisabled()||(u(t.$newElement),t.$bsContainer.appendTo(t.options.container).toggleClass("open",!i.hasClass("open")).append(t.$menu))});n(window).on("resize scroll",function(){u(t.$newElement)});this.$element.on("hide.bs.select",function(){t.$menu.data("height",t.$menu.height());t.$bsContainer.detach()})},setSelected:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));i.toggleClass("selected",t)},setDisabled:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),this.$button.attr("tabindex")!=-1||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98"&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=n(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});i.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&i.data("spaceSelect")&&(n.preventDefault(),i.data("spaceSelect",!1))});this.$button.on("click",function(){t.setSize();t.$element.on("shown.bs.select",function(){var i,n;if(t.options.liveSearch||t.multiple){if(!t.multiple){if(i=t.liObj[t.$element[0].selectedIndex],typeof i!="number"||t.options.size===!1)return;n=t.$lis.eq(i)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2;t.$menuInner[0].scrollTop=n}}else t.$menuInner.find(".selected a").focus()})});this.$menuInner.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),v,y,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),l=f.prop("selected"),a=f.parent("optgroup"),r=t.options.maxOptions,u=a.data("maxOptions")||!1;if(t.multiple){if(f.prop("selected",!l),t.setSelected(e,!l),s.blur(),(r!==!1||u!==!1)&&(v=r<h.filter(":selected").length,y=u<a.find("option:selected").length,r&&v||u&&y))if(r&&r==1)h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&u==1)a.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.parent().data("optgroup"),t.$menuInner.find('[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o=typeof t.options.maxOptionsText=="function"?t.options.maxOptionsText(r,u):t.options.maxOptionsText,p=o[0].replace("{n}",r),w=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(p=p.replace("{var}",o[2][r>1?0:1]),w=w.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&y&&(c.append(n("<div>"+w+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&(t.$element.triggerNative("change"),t.$element.trigger("changed.bs.select",[e,f.prop("selected"),l]))}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!n(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.click()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll();t.$element.triggerNative("change")});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,u=n('<li class="no-results"><\/li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){t.$menuInner.find(".active").removeClass("active");!t.$searchbox.val()||(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.multiple||t.$menuInner.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var f,e;t.$searchbox.val()?(f=t.$lis.not(".is-hidden").removeClass("hidden").children("a"),f=t.options.liveSearchNormalize?f.not(":a"+t._searchStyle()+'("'+i(t.$searchbox.val())+'")'):f.not(":"+t._searchStyle()+'("'+t.$searchbox.val()+'")'),f.parent().addClass("hidden"),t.$lis.filter(".dropdown-header").each(function(){var i=n(this),r=i.data("optgroup");t.$lis.filter("[data-optgroup="+r+"]").not(i).not(".hidden").length===0&&(i.addClass("hidden"),t.$lis.filter("[data-optgroup="+r+"div]").addClass("hidden"))}),e=t.$lis.not(".hidden"),e.each(function(t){var i=n(this);i.hasClass("divider")&&(i.index()===e.first().index()||i.index()===e.last().index()||e.eq(t+1).hasClass("divider"))&&i.addClass("hidden")}),t.$lis.not(".hidden, .no-results").length?!u.parent().length||u.remove():(!u.parent().length||u.remove(),u.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')).show(),t.$menuInner.append(u))):(t.$lis.not(".is-hidden").removeClass("hidden"),!u.parent().length||u.remove());t.$lis.filter(".active").removeClass("active");t.$searchbox.val()&&t.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus();n(this).focus()})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(n){return typeof n!="undefined"?(this.$element.val(n),this.render(),this.$element):this.$element.val()},changeAll:function(t){var i,f;typeof t=="undefined"&&(t=!0);this.findLis();var e=this.$element.find("option"),u=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",t),o=u.length,r=[];for(i=0;i<o;i++)f=u[i].getAttribute("data-original-index"),r[r.length]=e.eq(f)[0];n(r).prop("selected",t);this.render(!1)},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},keydown:function(t){var e=n(this),l=e.is("input")?e.parent().parent():e.parent(),u,r=l.data("this"),f,h,a,v,p,w,k,s,c=":not(.disabled, .hidden, .dropdown-header, .divider)",b={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},y,o,g,d;(r.options.liveSearch&&(l=e.parent().parent()),r.options.container&&(l=r.$menu),u=n("[role=menu] li",l),s=r.$newElement.hasClass("open"),!s&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||t.keyCode>=65&&t.keyCode<=90)&&(r.options.container?r.$button.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&r.$menu.find(".active").length===0&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()),u=n("[role=menu] li"+c,l),e.val()||/(38|40)/.test(t.keyCode.toString(10))||u.filter(".active").length===0&&(u=r.$menuInner.find("li"),u=r.options.liveSearchNormalize?u.filter(":a"+r._searchStyle()+"("+i(b[t.keyCode])+")"):u.filter(":"+r._searchStyle()+"("+b[t.keyCode]+")"))),u.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(f=u.index(u.find("a").filter(":focus").parent()),a=u.filter(c).first().index(),v=u.filter(c).last().index(),h=u.eq(f).nextAll(c).eq(0).index(),p=u.eq(f).prevAll(c).eq(0).index(),w=u.eq(h).prevAll(c).eq(0).index(),r.options.liveSearch&&(u.each(function(t){n(this).hasClass("disabled")||n(this).data("index",t)}),f=u.index(u.filter(".active")),a=u.first().data("index"),v=u.last().data("index"),h=u.eq(f).nextAll().eq(0).data("index"),p=u.eq(f).prevAll().eq(0).data("index"),w=u.eq(h).prevAll().eq(0).data("index")),k=e.data("prevIndex"),t.keyCode==38?(r.options.liveSearch&&f--,f!=w&&f>p&&(f=p),f<a&&(f=a),f==k&&(f=v)):t.keyCode==40&&(r.options.liveSearch&&f++,f==-1&&(f=0),f!=w&&f<h&&(f=h),f>v&&(f=v),f==k&&(f=a)),e.data("prevIndex",f),r.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(u.removeClass("active").eq(f).addClass("active").children("a").focus(),e.focus())):u.eq(f).children("a").focus()):e.is("input")||(y=[],u.each(function(){n(this).hasClass("disabled")||n.trim(n(this).children("a").text().toLowerCase()).substring(0,1)==b[t.keyCode]&&y.push(n(this).index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),g=n.trim(n(":focus").text().toLowerCase()).substring(0,1),g!=b[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=y.length&&(n(document).data("keycount",0),o>y.length&&(o=1)),u.eq(y[o-1]).children("a").focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(r.$menuInner.find(".active a").click(),e.focus()):(d=n(":focus"),d.click(),d.focus(),t.preventDefault(),n(document).data("spaceSelect",!0)),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(!0);this.setStyle();this.setWidth();this.$lis&&this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',t.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})})(n)});!function(n){"use strict";var e=null,i=function(n){var i=arguments,t=!0,r=1;return n=n.replace(/%s/g,function(){var n=i[r++];return typeof n=="undefined"?(t=!1,""):n}),t?n:""},v=function(t,i,r,u){var f="";return n.each(t,function(n,t){return t[i]===u?(f=t[r],!1):!0}),f},u=function(t,i){var r=-1;return n.each(t,function(n,t){return t.field===i?(r=n,!1):!0}),r},y=function(t){for(var r,u,s=0,f=[],i=0;i<t[0].length;i++)s+=t[0][i].colspan||1;for(i=0;i<t.length;i++)for(f[i]=[],r=0;r<s;r++)f[i][r]=!1;for(i=0;i<t.length;i++)for(r=0;r<t[i].length;r++){var e=t[i][r],c=e.rowspan||1,h=e.colspan||1,o=n.inArray(!1,f[i]);for(h===1&&(e.fieldIndex=o,typeof e.field=="undefined"&&(e.field=o)),u=0;u<c;u++)f[i+u][o]=!0;for(u=0;u<h;u++)f[i][o+u]=!0}},h=function(){if(e===null){var r=n("<p/>").addClass("fixed-table-scroll-inner"),t=n("<div/>").addClass("fixed-table-scroll-outer"),u,i;t.append(r);n("body").append(t);u=r[0].offsetWidth;t.css("overflow","scroll");i=r[0].offsetWidth;u===i&&(i=t[0].clientWidth);t.remove();e=u-i}return e},r=function(t,r,u,f){var e=r,o;return(typeof r=="string"&&(o=r.split("."),o.length>1?(e=window,n.each(o,function(n,t){e=e[t]})):e=window[r]),typeof e=="object")?e:typeof e=="function"?e.apply(t,u):!e&&typeof r=="string"&&i.apply(this,[r].concat(u))?i.apply(this,[r].concat(u)):f},c=function(t,i,r){var e=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(i),u="",f;if(r&&e.length!==o.length)return!1;for(f=0;f<e.length;f++)if(u=e[f],n.inArray(u,o)>-1&&t[u]!==i[u])return!1;return!0},o=function(n){return typeof n=="string"?n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#x60;"):n},l=function(t){var i=0;return t.children().each(function(){i<n(this).outerHeight(!0)&&(i=n(this).outerHeight(!0))}),i},a=function(n){var t,i;for(t in n)i=t.split(/(?=[A-Z])/).join("-").toLowerCase(),i!==t&&(n[i]=n[t],delete n[t]);return n},f=function(n,t,i){var r=n,u,f;if(typeof t!="string"||n.hasOwnProperty(t))return i?o(n[t]):n[t];u=t.split(".");for(f in u)r=r&&r[u[f]];return i?o(r):r},p=function(){return!!(navigator.userAgent.indexOf("MSIE ")>0||!!navigator.userAgent.match(/Trident.*rv\:11\./))},t=function(t,i){this.options=i;this.$el=n(t);this.$el_=this.$el.clone();this.timeoutId_=0;this.timeoutFooter_=0;this.init()},s;t.DEFAULTS={classes:"table table-hover",locale:undefined,height:undefined,undefinedText:"-",sortName:undefined,sortOrder:"asc",striped:!1,columns:[[]],data:[],dataField:"rows",method:"get",url:undefined,ajax:undefined,cache:!0,contentType:"application/json",dataType:"json",ajaxOptions:{},queryParams:function(n){return n},queryParamsType:"limit",responseHandler:function(n){return n},pagination:!1,onlyInfoPagination:!1,sidePagination:"client",totalRows:0,pageNumber:1,pageSize:10,pageList:[10,25,50,100],paginationHAlign:"right",paginationVAlign:"bottom",paginationDetailHAlign:"left",paginationPreText:"&lsaquo;",paginationNextText:"&rsaquo;",search:!1,searchOnEnterKey:!1,strictSearch:!1,searchAlign:"right",selectItemName:"btSelectItem",showHeader:!0,showFooter:!1,showColumns:!1,showPaginationSwitch:!1,showRefresh:!1,showToggle:!1,buttonsAlign:"right",smartDisplay:!0,escape:!1,minimumCountColumns:1,idField:undefined,uniqueId:undefined,cardView:!1,detailView:!1,detailFormatter:function(){return""},trimOnSearch:!0,clickToSelect:!1,singleSelect:!1,toolbar:undefined,toolbarAlign:"left",checkboxHeader:!0,sortable:!0,silentSort:!0,maintainSelected:!1,searchTimeOut:500,searchText:"",iconSize:undefined,iconsPrefix:"glyphicon",icons:{paginationSwitchDown:"glyphicon-collapse-down icon-chevron-down",paginationSwitchUp:"glyphicon-collapse-up icon-chevron-up",refresh:"glyphicon-refresh icon-refresh",toggle:"glyphicon-list-alt icon-list-alt",columns:"glyphicon-th icon-th",detailOpen:"glyphicon-plus icon-plus",detailClose:"glyphicon-minus icon-minus"},rowStyle:function(){return{}},rowAttributes:function(){return{}},onAll:function(){return!1},onClickCell:function(){return!1},onDblClickCell:function(){return!1},onClickRow:function(){return!1},onDblClickRow:function(){return!1},onSort:function(){return!1},onCheck:function(){return!1},onUncheck:function(){return!1},onCheckAll:function(){return!1},onUncheckAll:function(){return!1},onCheckSome:function(){return!1},onUncheckSome:function(){return!1},onLoadSuccess:function(){return!1},onLoadError:function(){return!1},onColumnSwitch:function(){return!1},onPageChange:function(){return!1},onSearch:function(){return!1},onToggle:function(){return!1},onPreBody:function(){return!1},onPostBody:function(){return!1},onPostHeader:function(){return!1},onExpandRow:function(){return!1},onCollapseRow:function(){return!1},onRefreshOptions:function(){return!1},onResetView:function(){return!1},onPrint:function(){return!1}};t.LOCALES=[];t.LOCALES["en-US"]=t.LOCALES.en={formatLoadingMessage:function(){return"Loading, please wait..."},formatRecordsPerPage:function(n){return i("%s records per page",n)},formatShowingRows:function(n,t,r){return i("Showing %s to %s of %s rows",n,t,r)},formatDetailPagination:function(n){return i("Showing %s rows",n)},formatSearch:function(){return"Search By Client Name"},formatNoMatches:function(){return"No matching records found"},formatPaginationSwitch:function(){return"Hide/Show pagination"},formatRefresh:function(){return"Refresh"},formatToggle:function(){return"Toggle"},formatColumns:function(){return"Columns"},formatAllRows:function(){return"All"}};n.extend(t.DEFAULTS,t.LOCALES["en-US"]);t.COLUMN_DEFAULTS={radio:!1,checkbox:!1,checkboxEnabled:!0,field:undefined,title:undefined,titleTooltip:undefined,"class":undefined,align:undefined,halign:undefined,falign:undefined,valign:undefined,width:undefined,sortable:!1,order:"asc",visible:!0,switchable:!0,clickToSelect:!0,formatter:undefined,footerFormatter:undefined,events:undefined,sorter:undefined,sortName:undefined,cellStyle:undefined,searchable:!0,searchFormatter:!0,cardVisible:!0};t.EVENTS={"all.bs.table":"onAll","click-cell.bs.table":"onClickCell","dbl-click-cell.bs.table":"onDblClickCell","click-row.bs.table":"onClickRow","dbl-click-row.bs.table":"onDblClickRow","sort.bs.table":"onSort","check.bs.table":"onCheck","uncheck.bs.table":"onUncheck","check-all.bs.table":"onCheckAll","uncheck-all.bs.table":"onUncheckAll","check-some.bs.table":"onCheckSome","uncheck-some.bs.table":"onUncheckSome","load-success.bs.table":"onLoadSuccess","load-error.bs.table":"onLoadError","column-switch.bs.table":"onColumnSwitch","page-change.bs.table":"onPageChange","search.bs.table":"onSearch","toggle.bs.table":"onToggle","pre-body.bs.table":"onPreBody","post-body.bs.table":"onPostBody","post-header.bs.table":"onPostHeader","expand-row.bs.table":"onExpandRow","collapse-row.bs.table":"onCollapseRow","refresh-options.bs.table":"onRefreshOptions","reset-view.bs.table":"onResetView","click-print.bs.table":"onPrint"};t.prototype.init=function(){this.initLocale();this.initContainer();this.initTable();this.initHeader();this.initData();this.initFooter();this.initToolbar();this.initPagination();this.initBody();this.initSearchText();this.initServer()};t.prototype.initLocale=function(){if(this.options.locale){var t=this.options.locale.split(/-|_/);t[0].toLowerCase();t[1]&&t[1].toUpperCase();n.fn.bootstrapTable.locales[this.options.locale]?n.extend(this.options,n.fn.bootstrapTable.locales[this.options.locale]):n.fn.bootstrapTable.locales[t.join("-")]?n.extend(this.options,n.fn.bootstrapTable.locales[t.join("-")]):n.fn.bootstrapTable.locales[t[0]]&&n.extend(this.options,n.fn.bootstrapTable.locales[t[0]])}};t.prototype.initContainer=function(){this.$container=n(['<div class="bootstrap-table">','<div class="fixed-table-toolbar"><\/div>',this.options.paginationVAlign==="top"||this.options.paginationVAlign==="both"?'<div class="fixed-table-pagination" style="clear: both;"><\/div>':"",'<div class="fixed-table-container">','<div class="fixed-table-header"><table><\/table><\/div>','<div class="fixed-table-body">','<div class="fixed-table-loading">',this.options.formatLoadingMessage(),"<\/div>","<\/div>",'<div class="fixed-table-footer"><table><tr><\/tr><\/table><\/div>',this.options.paginationVAlign==="bottom"||this.options.paginationVAlign==="both"?'<div class="fixed-table-pagination"><\/div>':"","<\/div>","<\/div>"].join(""));this.$container.insertAfter(this.$el);this.$tableContainer=this.$container.find(".fixed-table-container");this.$tableHeader=this.$container.find(".fixed-table-header");this.$tableBody=this.$container.find(".fixed-table-body");this.$tableLoading=this.$container.find(".fixed-table-loading");this.$tableFooter=this.$container.find(".fixed-table-footer");this.$toolbar=this.$container.find(".fixed-table-toolbar");this.$pagination=this.$container.find(".fixed-table-pagination");this.$tableBody.append(this.$el);this.$container.after('<div class="clearfix"><\/div>');this.$el.addClass(this.options.classes);this.options.striped&&this.$el.addClass("table-striped");n.inArray("table-no-bordered",this.options.classes.split(" "))!==-1&&this.$tableContainer.addClass("table-no-bordered")};t.prototype.initTable=function(){var i=this,r=[],u=[];(this.$header=this.$el.find(">thead"),this.$header.length||(this.$header=n("<thead><\/thead>").appendTo(this.$el)),this.$header.find("tr").each(function(){var t=[];n(this).find("th").each(function(){t.push(n.extend({},{title:n(this).html(),"class":n(this).attr("class"),titleTooltip:n(this).attr("title"),rowspan:n(this).attr("rowspan")?+n(this).attr("rowspan"):undefined,colspan:n(this).attr("colspan")?+n(this).attr("colspan"):undefined},n(this).data()))});r.push(t)}),n.isArray(this.options.columns[0])||(this.options.columns=[this.options.columns]),this.options.columns=n.extend(!0,[],r,this.options.columns),this.columns=[],y(this.options.columns),n.each(this.options.columns,function(r,u){n.each(u,function(u,f){f=n.extend({},t.COLUMN_DEFAULTS,f);typeof f.fieldIndex!="undefined"&&(i.columns[f.fieldIndex]=f);i.options.columns[r][u]=f})}),this.options.data.length)||(this.$el.find(">tbody>tr").each(function(){var t={};t._id=n(this).attr("id");t._class=n(this).attr("class");t._data=a(n(this).data());n(this).find("td").each(function(r){var u=i.columns[r].field;t[u]=n(this).html();t["_"+u+"_id"]=n(this).attr("id");t["_"+u+"_class"]=n(this).attr("class");t["_"+u+"_rowspan"]=n(this).attr("rowspan");t["_"+u+"_title"]=n(this).attr("title");t["_"+u+"_data"]=a(n(this).data())});u.push(t)}),this.options.data=u)};t.prototype.initHeader=function(){var t=this,u={},r=[];this.header={fields:[],styles:[],classes:[],formatters:[],events:[],sorters:[],sortNames:[],cellStyles:[],searchables:[]};n.each(this.options.columns,function(f,e){r.push("<tr>");n.each(e,function(n,f){var e="",h="",c="",o="",l=i(' class="%s"',f["class"]),v=t.options.sortOrder||f.order,a="px",s=f.width;if(f.width===undefined||t.options.cardView||typeof f.width=="string"&&f.width.indexOf("%")!==-1&&(a="%"),f.width&&typeof f.width=="string"&&(s=f.width.replace("%","").replace("px","")),h=i("text-align: %s; ",f.halign?f.halign:f.align),c=i("text-align: %s; ",f.align),o=i("vertical-align: %s; ",f.valign),o+=i("width: %s; ",(f.checkbox||f.radio)&&!s?"36px":s?s+a:undefined),typeof f.fieldIndex!="undefined"){if(t.header.fields[f.fieldIndex]=f.field,t.header.styles[f.fieldIndex]=c+o,t.header.classes[f.fieldIndex]=l,t.header.formatters[f.fieldIndex]=f.formatter,t.header.events[f.fieldIndex]=f.events,t.header.sorters[f.fieldIndex]=f.sorter,t.header.sortNames[f.fieldIndex]=f.sortName,t.header.cellStyles[f.fieldIndex]=f.cellStyle,t.header.searchables[f.fieldIndex]=f.searchable,!f.visible)return;if(t.options.cardView&&!f.cardVisible)return;u[f.field]=f}r.push("<th"+i(' title="%s"',f.titleTooltip),f.checkbox||f.radio?i(' class="bs-checkbox %s"',f["class"]||""):l,i(' style="%s"',h+o),i(' rowspan="%s"',f.rowspan),i(' colspan="%s"',f.colspan),i(' data-field="%s"',f.field),"tabindex='0'",">");r.push(i('<div class="th-inner %s">',t.options.sortable&&f.sortable?"sortable both":""));e=f.title;f.checkbox&&(!t.options.singleSelect&&t.options.checkboxHeader&&(e='<input name="btSelectAll" type="checkbox" />'),t.header.stateField=f.field);f.radio&&(e="",t.header.stateField=f.field,t.options.singleSelect=!0);r.push(e);r.push("<\/div>");r.push('<div class="fht-cell"><\/div>');r.push("<\/div>");r.push("<\/th>")});r.push("<\/tr>")});this.$header.html(r.join(""));this.$header.find("th[data-field]").each(function(){n(this).data(u[n(this).data("field")])});this.$container.off("click",".th-inner").on("click",".th-inner",function(i){var r=n(this);if(r.closest(".bootstrap-table")[0]!==t.$container[0])return!1;if(t.options.sortable&&r.parent().data().sortable)t.onSort(i)});this.$header.children().children().off("keypress").on("keypress",function(i){if(t.options.sortable&&n(this).data().sortable){var r=i.keyCode||i.which;if(r==13)t.onSort(i)}});!this.options.showHeader||this.options.cardView?(this.$header.hide(),this.$tableHeader.hide(),this.$tableLoading.css("top",0)):(this.$header.show(),this.$tableHeader.show(),this.$tableLoading.css("top",this.$header.outerHeight()+1),this.getCaret());this.$selectAll=this.$header.find('[name="btSelectAll"]');this.$selectAll.off("click").on("click",function(){var i=n(this).prop("checked");t[i?"checkAll":"uncheckAll"]();t.updateSelected()})};t.prototype.initFooter=function(){!this.options.showFooter||this.options.cardView?this.$tableFooter.hide():this.$tableFooter.show()};t.prototype.initData=function(n,t){(this.data=t==="append"?this.data.concat(n):t==="prepend"?[].concat(n).concat(this.data):n||this.options.data,this.options.data=t==="append"?this.options.data.concat(n):t==="prepend"?[].concat(n).concat(this.options.data):this.data,this.options.sidePagination!=="server")&&this.initSort()};t.prototype.initSort=function(){var t=this,e=this.options.sortName,i=this.options.sortOrder==="desc"?-1:1,u=n.inArray(this.options.sortName,this.header.fields);u!==-1&&this.data.sort(function(o,s){t.header.sortNames[u]&&(e=t.header.sortNames[u]);var h=f(o,e,t.options.escape),c=f(s,e,t.options.escape),l=r(t.header,t.header.sorters[u],[h,c]);return l!==undefined?i*l:((h===undefined||h===null)&&(h=""),(c===undefined||c===null)&&(c=""),n.isNumeric(h)&&n.isNumeric(c))?(h=parseFloat(h),c=parseFloat(c),h<c)?i*-1:i:h===c?0:(typeof h!="string"&&(h=h.toString()),h.localeCompare(c)===-1)?i*-1:i})};t.prototype.onSort=function(t){var i=t.type==="keypress"?n(t.currentTarget):n(t.currentTarget).parent(),r=this.$header.find("th").eq(i.index());if(this.$header.add(this.$header_).find("span.order").remove(),this.options.sortName===i.data("field")?this.options.sortOrder=this.options.sortOrder==="asc"?"desc":"asc":(this.options.sortName=i.data("field"),this.options.sortOrder=i.data("order")==="asc"?"desc":"asc"),this.trigger("sort",this.options.sortName,this.options.sortOrder),i.add(r).data("order",this.options.sortOrder),this.getCaret(),this.options.sidePagination==="server"){this.initServer(this.options.silentSort);return}this.initSort();this.initBody()};t.prototype.initToolbar=function(){var f=this,t=[],e=0,o,s,h=0;if(this.$toolbar.find(".bars").children().length&&n("body").append(n(this.options.toolbar)),this.$toolbar.html(""),(typeof this.options.toolbar=="string"||typeof this.options.toolbar=="object")&&n(i('<div class="bars pull-%s"><\/div>',this.options.toolbarAlign)).appendTo(this.$toolbar).append(n(this.options.toolbar)),t=[i('<div class="columns columns-%s btn-group pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],typeof this.options.icons=="string"&&(this.options.icons=r(null,this.options.icons)),this.options.showPaginationSwitch&&t.push(i('<button class="btn btn-default" type="button" name="paginationSwitch" title="%s">',this.options.formatPaginationSwitch()),i('<i class="%s %s"><\/i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"<\/button>"),this.options.showRefresh&&t.push(i('<button class="btn btn-default'+i(" btn-%s",this.options.iconSize)+'" type="button" name="refresh" title="%s">',this.options.formatRefresh()),i('<i class="%s %s"><\/i>',this.options.iconsPrefix,this.options.icons.refresh),"<\/button>"),this.options.showToggle&&t.push(i('<button class="btn btn-default'+i(" btn-%s",this.options.iconSize)+'" type="button" name="toggle" title="%s">',this.options.formatToggle()),i('<i class="%s %s"><\/i>',this.options.iconsPrefix,this.options.icons.toggle),"<\/button>"),this.options.showColumns&&(t.push(i('<div class="keep-open btn-group" title="%s">',this.options.formatColumns()),'<button type="button" class="btn btn-default'+i(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">',i('<i class="%s %s"><\/i>',this.options.iconsPrefix,this.options.icons.columns),' <span class="caret"><\/span>',"<\/button>",'<ul class="dropdown-menu" role="menu">'),n.each(this.columns,function(n,r){if(!r.radio&&!r.checkbox&&(!f.options.cardView||r.cardVisible)){var u=r.visible?' checked="checked"':"";r.switchable&&(t.push(i('<li><label><input type="checkbox" data-field="%s" value="%s"%s> %s<\/label><\/li>',r.field,n,u,r.title)),h++)}}),t.push("<\/ul>","<\/div>")),t.push("<\/div>"),(this.showToolbar||t.length>2)&&this.$toolbar.append(t.join("")),this.options.showPaginationSwitch)this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",n.proxy(this.togglePagination,this));if(this.options.showRefresh)this.$toolbar.find('button[name="refresh"]').off("click").on("click",n.proxy(this.refresh,this));if(this.options.showToggle)this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){f.toggleView()});if(this.options.showColumns){o=this.$toolbar.find(".keep-open");h<=this.options.minimumCountColumns&&o.find("input").prop("disabled",!0);o.find("li").off("click").on("click",function(n){n.stopImmediatePropagation()});o.find("input").off("click").on("click",function(){var t=n(this);f.toggleColumn(u(f.columns,n(this).data("field")),t.prop("checked"),!1);f.trigger("column-switch",n(this).data("field"),t.prop("checked"))})}if(this.options.search){t=[];t.push('<div class="pull-'+this.options.searchAlign+' search">',i('<input class="form-control'+i(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"<\/div>");this.$toolbar.append(t.join(""));s=this.$toolbar.find(".search input");s.off("keyup drop").on("keyup drop",function(n){f.options.searchOnEnterKey&&n.keyCode!==13||(clearTimeout(e),e=setTimeout(function(){f.onSearch(n)},f.options.searchTimeOut))});if(p())s.off("mouseup").on("mouseup",function(n){clearTimeout(e);e=setTimeout(function(){f.onSearch(n)},f.options.searchTimeOut)})}};t.prototype.onSearch=function(t){var i=n.trim(n(t.currentTarget).val());(this.options.trimOnSearch&&n(t.currentTarget).val()!==i&&n(t.currentTarget).val(i),i!==this.searchText)&&(this.searchText=i,this.options.searchText=i,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",i))};t.prototype.initSearch=function(){var t=this,f,i;this.options.sidePagination!=="server"&&(f=this.searchText&&this.searchText.toLowerCase(),i=n.isEmptyObject(this.filterColumns)?null:this.filterColumns,this.data=i?n.grep(this.options.data,function(t){for(var r in i)if(n.isArray(i[r])){if(n.inArray(t[r],i[r])===-1)return!1}else if(t[r]!==i[r])return!1;return!0}):this.options.data,this.data=f?n.grep(this.data,function(i,e){var o,c;for(o in i){o=n.isNumeric(o)?parseInt(o,10):o;var s=i[o],h=t.columns[u(t.columns,o)],l=n.inArray(o,t.header.fields);if(h&&h.searchFormatter&&(s=r(h,t.header.formatters[l],[s,i,e],s)),c=n.inArray(o,t.header.fields),c!==-1&&t.header.searchables[c]&&(typeof s=="string"||typeof s=="number"))if(t.options.strictSearch){if((s+"").toLowerCase()===f)return!0}else if((s+"").toLowerCase().indexOf(f)!==-1)return!0}return!1}):this.data)};t.prototype.initPagination=function(){var w,h,f,b;if(this.options.pagination)this.$pagination.show();else{this.$pagination.hide();return}var e=this,t=[],o=!1,s,u,r,c,l,a,v,y,p,k=this.getData();if(this.options.sidePagination!=="server"&&(this.options.totalRows=k.length),this.totalPages=0,this.options.totalRows&&(this.options.pageSize===this.options.formatAllRows()?(this.options.pageSize=this.options.totalRows,o=!0):this.options.pageSize===this.options.totalRows&&(w=typeof this.options.pageList=="string"?this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").toLowerCase().split(","):this.options.pageList,n.inArray(this.options.formatAllRows().toLowerCase(),w)>-1&&(o=!0)),this.totalPages=~~((this.options.totalRows-1)/this.options.pageSize)+1,this.options.totalPages=this.totalPages),this.totalPages>0&&this.options.pageNumber>this.totalPages&&(this.options.pageNumber=this.totalPages),this.pageFrom=(this.options.pageNumber-1)*this.options.pageSize+1,this.pageTo=this.options.pageNumber*this.options.pageSize,this.pageTo>this.options.totalRows&&(this.pageTo=this.options.totalRows),t.push('<div class="pull-'+this.options.paginationDetailHAlign+' pagination-detail">','<span class="pagination-info">',this.options.onlyInfoPagination?this.options.formatDetailPagination(this.options.totalRows):this.options.formatShowingRows(this.pageFrom,this.pageTo,this.options.totalRows),"<\/span>"),!this.options.onlyInfoPagination){for(t.push('<span class="page-list">'),h=[i('<span class="btn-group %s">',this.options.paginationVAlign==="top"||this.options.paginationVAlign==="both"?"dropdown":"dropup"),'<button type="button" class="btn btn-default '+i(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">','<span class="page-size">',o?this.options.formatAllRows():this.options.pageSize,"<\/span>",' <span class="caret"><\/span>',"<\/button>",'<ul class="dropdown-menu" role="menu">'],f=this.options.pageList,typeof this.options.pageList=="string"&&(b=this.options.pageList.replace("[","").replace("]","").replace(/ /g,"").split(","),f=[],n.each(b,function(n,t){f.push(t.toUpperCase()===e.options.formatAllRows().toUpperCase()?e.options.formatAllRows():+t)})),n.each(f,function(n,t){if(!e.options.smartDisplay||n===0||f[n-1]<=e.options.totalRows){var r;r=o?t===e.options.formatAllRows()?' class="active"':"":t===e.options.pageSize?' class="active"':"";h.push(i('<li%s><a href="javascript:void(0)">%s<\/a><\/li>',r,t))}}),h.push("<\/ul><\/span>"),t.push(this.options.formatRecordsPerPage(h.join(""))),t.push("<\/span>"),t.push("<\/div>",'<div class="pull-'+this.options.paginationHAlign+' pagination">','<ul class="pagination'+i(" pagination-%s",this.options.iconSize)+'">','<li class="page-first'+(1===this.options.pageNumber?" disabled":"")+'">','<a href="javascript:void(0)">First<\/a>',"<\/li>",'<li class="page-pre'+(1===this.options.pageNumber?" disabled":"")+'"><a href="javascript:void(0)">'+this.options.paginationPreText+"<\/a><\/li>"),this.totalPages<6?(u=1,r=this.totalPages):(u=this.options.pageNumber-3,r=u+7,u<1&&(u=1,r=6),r>=this.totalPages&&(r=this.totalPages,u=r-4)),this.totalPages>=6&&this.options.pageNumber>=5&&(this.options.pageNumber==5||this.totalPages==7||this.totalPages==8?u--:t.push('<li class="page-first-separator disabled">','<a href="javascript:void(0)">...<\/a>',"<\/li>"),r--),this.totalPages>=7&&this.options.pageNumber>=this.totalPages-4&&u--,this.totalPages==6?this.options.pageNumber>=this.totalPages-2&&r++:this.totalPages>=7&&(this.totalPages==7||this.options.pageNumber>=this.totalPages-4)&&r++,s=u;s<=r;s++)t.push('<li class="page-number'+(s===this.options.pageNumber?" active":"")+'">','<a href="javascript:void(0)">',s,"<\/a>","<\/li>");this.totalPages>=8&&this.options.pageNumber<this.totalPages-4&&t.push('<li class="page-last-separator disabled">','<a href="javascript:void(0)">...<\/a>',"<\/li>");t.push('<li class="page-next'+(this.totalPages===this.options.pageNumber?" disabled":"")+'"><a href="javascript:void(0)">'+this.options.paginationNextText+"<\/a><\/li>",'<li class="page-last'+(this.totalPages===this.options.pageNumber?" disabled":"")+'">','<a href="javascript:void(0)">Last<\/a>',"<\/li>","<\/ul>","<\/div>")}if(this.$pagination.html(t.join("")),!this.options.onlyInfoPagination){c=this.$pagination.find(".page-list a");l=this.$pagination.find(".page-first");a=this.$pagination.find(".page-pre");v=this.$pagination.find(".page-next");y=this.$pagination.find(".page-last");p=this.$pagination.find(".page-number");this.options.smartDisplay&&(this.totalPages<=1&&this.$pagination.find("div.pagination").hide(),(f.length<2||this.options.totalRows<=f[0])&&this.$pagination.find("span.page-list").hide(),this.$pagination[this.getData().length?"show":"hide"]());o&&(this.options.pageSize=this.options.formatAllRows());c.off("click").on("click",n.proxy(this.onPageListChange,this));l.off("click").on("click",n.proxy(this.onPageFirst,this));a.off("click").on("click",n.proxy(this.onPagePre,this));v.off("click").on("click",n.proxy(this.onPageNext,this));y.off("click").on("click",n.proxy(this.onPageLast,this));p.off("click").on("click",n.proxy(this.onPageNumber,this))}};t.prototype.updatePagination=function(t){t&&(n(t.currentTarget).hasClass("disabled")||n(t.currentTarget).hasClass("active"))||(this.options.maintainSelected||this.resetRows(),this.initPagination(),this.options.sidePagination==="server"?this.initServer():this.initBody(),this.trigger("page-change",this.options.pageNumber,this.options.pageSize))};t.prototype.onPageListChange=function(t){var i=n(t.currentTarget);i.parent().addClass("active").siblings().removeClass("active");this.options.pageSize=i.text().toUpperCase()===this.options.formatAllRows().toUpperCase()?this.options.formatAllRows():+i.text();this.$toolbar.find(".page-size").text(this.options.pageSize);this.updatePagination(t)};t.prototype.onPageFirst=function(n){this.options.pageNumber=1;this.updatePagination(n)};t.prototype.onPagePre=function(n){this.options.pageNumber-1==0?this.options.pageNumber=this.options.totalPages:this.options.pageNumber--;this.updatePagination(n)};t.prototype.onPageNext=function(n){this.options.pageNumber+1>this.options.totalPages?this.options.pageNumber=1:this.options.pageNumber++;this.updatePagination(n)};t.prototype.onPageLast=function(n){this.options.pageNumber=this.totalPages;this.updatePagination(n)};t.prototype.onPageNumber=function(t){this.options.pageNumber!==+n(t.currentTarget).text()&&(this.options.pageNumber=+n(t.currentTarget).text(),this.updatePagination(t))};t.prototype.initBody=function(t){var e=this,l=[],p=this.getData(),c;for(this.trigger("pre-body",p),this.$body=this.$el.find(">tbody"),this.$body.length||(this.$body=n("<tbody><\/tbody>").appendTo(this.$el)),this.options.pagination&&this.options.sidePagination!=="server"||(this.pageFrom=1,this.pageTo=p.length),c=this.pageFrom-1;c<this.pageTo;c++){var a,s=p[c],h={},w=[],b="",y={},k=[];if(h=r(this.options,this.options.rowStyle,[s,c],h),h&&h.css)for(a in h.css)w.push(a+": "+h.css[a]);if(y=r(this.options,this.options.rowAttributes,[s,c],y),y)for(a in y)k.push(i('%s="%s"',a,o(y[a])));s._data&&!n.isEmptyObject(s._data)&&n.each(s._data,function(n,t){n!=="index"&&(b+=i(' data-%s="%s"',n,t))});l.push("<tr",i(" %s",k.join(" ")),i(' id="%s"',n.isArray(s)?undefined:s._id),i(' class="%s"',h.classes||(n.isArray(s)?undefined:s._class)),i(' data-index="%s"',c),i(' data-uniqueid="%s"',s[this.options.uniqueId]),i("%s",b),">");this.options.cardView&&l.push(i('<td colspan="%s">',this.header.fields.length));n.each(this.header.fields,function(t,o){var k="",a=f(s,o,e.options.escape),b="",p={},tt="",d=e.header.classes[t],it="",rt="",ut="",y=e.columns[u(e.columns,o)],g,nt,ft,et;if(y.visible){if(h=i('style="%s"',w.concat(e.header.styles[t]).join("; ")),a=r(y,e.header.formatters[t],[a,s,c],a),s["_"+o+"_id"]&&(tt=i(' id="%s"',s["_"+o+"_id"])),s["_"+o+"_class"]&&(d=i(' class="%s"',s["_"+o+"_class"])),s["_"+o+"_rowspan"]&&(rt=i(' rowspan="%s"',s["_"+o+"_rowspan"])),s["_"+o+"_title"]&&(ut=i(' title="%s"',s["_"+o+"_title"])),p=r(e.header,e.header.cellStyles[t],[a,s,c],p),p.classes&&(d=i(' class="%s"',p.classes)),p.css){g=[];for(nt in p.css)g.push(nt+": "+p.css[nt]);h=i('style="%s"',g.concat(e.header.styles[t]).join("; "))}s["_"+o+"_data"]&&!n.isEmptyObject(s["_"+o+"_data"])&&n.each(s["_"+o+"_data"],function(n,t){n!=="index"&&(it+=i(' data-%s="%s"',n,t))});y.checkbox||y.radio?(b=y.checkbox?"checkbox":b,b=y.radio?"radio":b,k=[i(e.options.cardView?'<div class="card-view %s">':'<td class="bs-checkbox %s">',y["class"]||""),"<input"+i(' data-index="%s"',c)+i(' name="%s"',e.options.selectItemName)+i(' type="%s"',b)+i(' value="%s"',s[e.options.idField])+i(' checked="%s"',a===!0||a&&a.checked?"checked":undefined)+i(' disabled="%s"',!y.checkboxEnabled||a&&a.disabled?"disabled":undefined)+" />",e.header.formatters[t]&&typeof a=="string"?a:"",e.options.cardView?"<\/div>":"<\/td>"].join(""),s[e.header.stateField]=a===!0||a&&a.checked):(a=typeof a=="undefined"||a===null?e.options.undefinedText:a,t==e.columns.length-1&&!e.options.cardView&&e.options.detailView&&(a=i('<span>%s<\/span><a class="detail-icon" href="javascript:"><i class="%s %s"><\/i><\/a>',a,e.options.iconsPrefix,e.options.icons.detailOpen)),moment(a,moment.ISO_8601,!0).isValid()&&(ft=moment(a,moment.ISO_8601).format("MMM DD, YYYY"),et=moment(a,moment.ISO_8601).format("h:mm A"),a=i("<span>%s<\/span> <small>%s<\/small>",ft,et)),k=e.options.cardView?['<div class="card-view">',e.options.showHeader?i('<span class="title" %s>%s<\/span>',h,v(e.columns,"field","title",o)):"",i('<span class="value">%s<\/span>',a),"<\/div>"].join(""):[i("<td%s %s %s %s %s %s>",tt,d,h,it,rt,ut),a,"<\/td>"].join(""),e.options.cardView&&e.options.smartDisplay&&a===""&&(k='<div class="card-view"><\/div>'));l.push(k)}});this.options.cardView&&l.push("<\/td>");l.push("<\/tr>")}l.length||l.push('<tr class="no-records-found">',i('<td colspan="%s">%s<\/td>',this.$header.find("th").length,this.options.formatNoMatches()),"<\/tr>");this.$body.html(l.join(""));t||this.scrollTo(0);this.$body.find("> tr[data-index] > td").off("click dblclick").on("click dblclick",function(t){var r=n(this),o=r.parent(),s=e.data[o.data("index")],l=r[0].cellIndex,h=e.header.fields[e.options.detailView&&!e.options.cardView?l-1:l],a=e.columns[u(e.columns,h)],v=f(s,h,e.options.escape),c;r.find(".detail-icon").length||(e.trigger(t.type==="click"?"click-cell":"dbl-click-cell",h,v,s,r),e.trigger(t.type==="click"?"click-row":"dbl-click-row",s,o),t.type==="click"&&e.options.clickToSelect&&a.clickToSelect&&(c=o.find(i('[name="%s"]',e.options.selectItemName)),c.length&&c[0].click()))});this.$body.find("> tr[data-index] > td > .detail-icon").off("click").on("click",function(){var s=n(this),t=s.parent().parent(),f=t.data("index"),o=p[f],u,h;if(t.next().is("tr.detail-view"))s.find("i").attr("class",i("%s %s",e.options.iconsPrefix,e.options.icons.detailOpen)),t.next().remove(),e.trigger("collapse-row",f,o);else{s.find("i").attr("class",i("%s %s",e.options.iconsPrefix,e.options.icons.detailClose));t.after(i('<tr class="detail-view"><td colspan="%s"><\/td><\/tr>',t.find("td").length));u=t.next().find("td");h=r(e.options,e.options.detailFormatter,[f,o,u],"");u.length===1&&u.append(h);t.next().find(".btn-print").off("click").on("click",function(){e.trigger("click-print",f,o,u)});e.trigger("expand-row",f,o,u)}e.resetView()});this.$selectItem=this.$body.find(i('[name="%s"]',this.options.selectItemName));this.$selectItem.off("click").on("click",function(t){t.stopImmediatePropagation();var i=n(this),r=i.prop("checked"),u=e.data[i.data("index")];e.options.maintainSelected&&n(this).is(":radio")&&n.each(e.options.data,function(n,t){t[e.header.stateField]=!1});u[e.header.stateField]=r;e.options.singleSelect&&(e.$selectItem.not(this).each(function(){e.data[n(this).data("index")][e.header.stateField]=!1}),e.$selectItem.filter(":checked").not(this).prop("checked",!1));e.updateSelected();e.trigger(r?"check":"uncheck",u,i)});n.each(this.header.events,function(t,i){var f,o,u;if(i){typeof i=="string"&&(i=r(null,i));f=e.header.fields[t];o=n.inArray(f,e.getVisibleFields());e.options.detailView&&!e.options.cardView&&(o+=1);for(u in i)e.$body.find(">tr:not(.no-records-found)").each(function(){var t=n(this),h=t.find(e.options.cardView?".card-view":"td").eq(o),r=u.indexOf(" "),s=u.substring(0,r),c=u.substring(r+1),l=i[u];h.find(c).off(s).on(s,function(n){var i=t.data("index"),r=e.data[i],u=r[f];l.apply(this,[n,u,r,i])})})}});this.updateSelected();this.resetView();this.trigger("post-body")};t.prototype.initServer=function(t,i){var f=this,e={},u={searchText:this.searchText,sortName:this.options.sortName,sortOrder:this.options.sortOrder},o;(this.options.pagination&&(u.pageSize=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,u.pageNumber=this.options.pageNumber),this.options.url||this.options.ajax)&&(this.options.queryParamsType==="limit"&&(u={search:u.searchText,sort:u.sortName,order:u.sortOrder},this.options.pagination&&(u.limit=this.options.pageSize===this.options.formatAllRows()?this.options.totalRows:this.options.pageSize,u.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1))),n.isEmptyObject(this.filterColumnsPartial)||(u.filter=JSON.stringify(this.filterColumnsPartial,null)),e=r(this.options,this.options.queryParams,[u],e),n.extend(e,i||{}),e!==!1)&&(t||this.$tableLoading.show(),o=n.extend({},r(null,this.options.ajaxOptions),{type:this.options.method,url:this.options.url,data:this.options.contentType==="application/json"&&this.options.method==="post"?JSON.stringify(e):e,cache:this.options.cache,contentType:this.options.contentType,dataType:this.options.dataType,success:function(n){n=r(f.options,f.options.responseHandler,[n],n);f.load(n);f.trigger("load-success",n);t||f.$tableLoading.hide()},error:function(n){f.trigger("load-error",n.status,n);t||f.$tableLoading.hide()}}),this.options.ajax?r(this,this.options.ajax,[o],null):n.ajax(o))};t.prototype.initSearchText=function(){if(this.options.search&&this.options.searchText!==""){var n=this.$toolbar.find(".search input");n.val(this.options.searchText);this.onSearch({currentTarget:n})}};t.prototype.getCaret=function(){var t=this;n.each(this.$header.find("th"),function(i,r){n(r).find(".sortable").removeClass("desc asc").addClass(n(r).data("field")===t.options.sortName?t.options.sortOrder:"both")})};t.prototype.updateSelected=function(){var t=this.$selectItem.filter(":enabled").length&&this.$selectItem.filter(":enabled").length===this.$selectItem.filter(":enabled").filter(":checked").length;this.$selectAll.add(this.$selectAll_).prop("checked",t);this.$selectItem.each(function(){n(this).closest("tr")[n(this).prop("checked")?"addClass":"removeClass"]("selected")})};t.prototype.updateRows=function(){var t=this;this.$selectItem.each(function(){t.data[n(this).data("index")][t.header.stateField]=n(this).prop("checked")})};t.prototype.resetRows=function(){var t=this;n.each(this.data,function(n,i){t.$selectAll.prop("checked",!1);t.$selectItem.prop("checked",!1);t.header.stateField&&(i[t.header.stateField]=!1)})};t.prototype.trigger=function(i){var r=Array.prototype.slice.call(arguments,1);i+=".bs.table";this.options[t.EVENTS[i]].apply(this.options,r);this.$el.trigger(n.Event(i),r);this.options.onAll(i,r);this.$el.trigger(n.Event("all.bs.table"),[i,r])};t.prototype.resetHeader=function(){clearTimeout(this.timeoutId_);this.timeoutId_=setTimeout(n.proxy(this.fitHeader,this),this.$el.is(":hidden")?100:0)};t.prototype.fitHeader=function(){var t=this,r,c,u,f,e,o,s,l;if(t.$el.is(":hidden")){t.timeoutId_=setTimeout(n.proxy(t.fitHeader,t),100);return}r=this.$tableBody.get(0);c=r.scrollWidth>r.clientWidth&&r.scrollHeight>r.clientHeight+this.$header.outerHeight()?h():0;this.$el.css("margin-top",-this.$header.outerHeight());u=n(":focus");u.length>0&&(e=u.parents("th"),e.length>0&&(o=e.attr("data-field"),o!==undefined&&(s=this.$header.find("[data-field='"+o+"']"),s.length>0&&s.find(":input").addClass("focus-temp"))));this.$header_=this.$header.clone(!0,!0);this.$selectAll_=this.$header_.find('[name="btSelectAll"]');this.$tableHeader.css({"margin-right":c}).find("table").css("width",this.$el.outerWidth()).html("").attr("class",this.$el.attr("class")).append(this.$header_);f=n(".focus-temp:visible:eq(0)");f.length>0&&(f.focus(),this.$header.find(".focus-temp").removeClass("focus-temp"));this.$header.find("th[data-field]").each(function(){t.$header_.find(i('th[data-field="%s"]',n(this).data("field"))).data(n(this).data())});l=this.getVisibleFields();this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(r){var u=n(this),f=r;t.options.detailView&&!t.options.cardView&&(r===0&&t.$header_.find("th.detail").find(".fht-cell").width(u.innerWidth()),f=r-1);t.$header_.find(i('th[data-field="%s"]',l[f])).find(".fht-cell").width(u.innerWidth())});this.$tableBody.off("scroll").on("scroll",function(){t.$tableHeader.scrollLeft(n(this).scrollLeft());t.options.showFooter&&!t.options.cardView&&t.$tableFooter.scrollLeft(n(this).scrollLeft())});t.trigger("post-header")};t.prototype.resetFooter=function(){var u=this,f=u.getData(),t=[];this.options.showFooter&&!this.options.cardView&&(!this.options.cardView&&this.options.detailView&&t.push('<td><div class="th-inner">&nbsp;<\/div><div class="fht-cell"><\/div><\/td>'),n.each(this.columns,function(n,e){var o="",s="",h=i(' class="%s"',e["class"]);e.visible&&(!u.options.cardView||e.cardVisible)&&(o=i("text-align: %s; ",e.falign?e.falign:e.align),s=i("vertical-align: %s; ",e.valign),t.push("<td",h,i(' style="%s"',o+s),">"),t.push('<div class="th-inner">'),t.push(r(e,e.footerFormatter,[f],"&nbsp;")||"&nbsp;"),t.push("<\/div>"),t.push('<div class="fht-cell"><\/div>'),t.push("<\/div>"),t.push("<\/td>"))}),this.$tableFooter.find("tr").html(t.join("")),clearTimeout(this.timeoutFooter_),this.timeoutFooter_=setTimeout(n.proxy(this.fitFooter,this),this.$el.is(":hidden")?100:0))};t.prototype.fitFooter=function(){var u=this,i,t,r;if(clearTimeout(this.timeoutFooter_),this.$el.is(":hidden")){this.timeoutFooter_=setTimeout(n.proxy(this.fitFooter,this),100);return}t=this.$el.css("width");r=t>this.$tableBody.width()?h():0;this.$tableFooter.css({"margin-right":r}).find("table").css("width",t).attr("class",this.$el.attr("class"));i=this.$tableFooter.find("td");this.$body.find(">tr:first-child:not(.no-records-found) > *").each(function(t){var r=n(this);i.eq(t).find(".fht-cell").width(r.innerWidth())})};t.prototype.toggleColumn=function(n,t,r){if(n!==-1&&(this.columns[n].visible=t,this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns)){var u=this.$toolbar.find(".keep-open input").prop("disabled",!1);r&&u.filter(i('[value="%s"]',n)).prop("checked",t);u.filter(":checked").length<=this.options.minimumCountColumns&&u.filter(":checked").prop("disabled",!0)}};t.prototype.toggleRow=function(n,t,r){n!==-1&&this.$body.find(typeof n!="undefined"?i('tr[data-index="%s"]',n):i('tr[data-uniqueid="%s"]',t))[r?"show":"hide"]()};t.prototype.getVisibleFields=function(){var t=this,i=[];return n.each(this.header.fields,function(n,r){var f=t.columns[u(t.columns,r)];f.visible&&i.push(r)}),i};t.prototype.resetView=function(n){var t=0;if(n&&n.height&&(this.options.height=n.height),this.$selectAll.prop("checked",this.$selectItem.length>0&&this.$selectItem.length===this.$selectItem.filter(":checked").length),this.options.height){var i=l(this.$toolbar),r=l(this.$pagination),u=this.options.height-i-r;this.$tableContainer.css("height",u+"px")}if(this.options.cardView){this.$el.css("margin-top","0");this.$tableContainer.css("padding-bottom","0");return}this.options.showHeader&&this.options.height?(this.$tableHeader.show(),this.resetHeader(),t+=this.$header.outerHeight()):(this.$tableHeader.hide(),this.trigger("post-header"));this.options.showFooter&&(this.resetFooter(),this.options.height&&(t+=this.$tableFooter.outerHeight()+1));this.getCaret();this.$tableContainer.css("padding-bottom",t+"px");this.trigger("reset-view")};t.prototype.getData=function(t){return this.searchText||!n.isEmptyObject(this.filterColumns)||!n.isEmptyObject(this.filterColumnsPartial)?t?this.data.slice(this.pageFrom-1,this.pageTo):this.data:t?this.options.data.slice(this.pageFrom-1,this.pageTo):this.options.data};t.prototype.load=function(t){var i=!1;this.options.sidePagination==="server"?(this.options.totalRows=t.total,i=t.fixedScroll,t=t[this.options.dataField]):n.isArray(t)||(i=t.fixedScroll,t=t.data);this.initData(t);this.initSearch();this.initPagination();this.initBody(i)};t.prototype.append=function(n){this.initData(n,"append");this.initSearch();this.initPagination();this.initSort();this.initBody(!0)};t.prototype.prepend=function(n){this.initData(n,"prepend");this.initSearch();this.initPagination();this.initSort();this.initBody(!0)};t.prototype.remove=function(t){var u=this.options.data.length,i,r;if(t.hasOwnProperty("field")&&t.hasOwnProperty("values")){for(i=u-1;i>=0;i--)(r=this.options.data[i],r.hasOwnProperty(t.field))&&n.inArray(r[t.field],t.values)!==-1&&this.options.data.splice(i,1);u!==this.options.data.length&&(this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))}};t.prototype.removeAll=function(){this.options.data.length>0&&(this.options.data.splice(0,this.options.data.length),this.initSearch(),this.initPagination(),this.initBody(!0))};t.prototype.getRowByUniqueId=function(n){for(var r=this.options.uniqueId,e=this.options.data.length,f=null,i,t,u=e-1;u>=0;u--){if(i=this.options.data[u],i.hasOwnProperty(r))t=i[r];else if(i._data.hasOwnProperty(r))t=i._data[r];else continue;if(typeof t=="string"?n=n.toString():typeof t=="number"&&(Number(t)===t&&t%1==0?n=parseInt(n):t===Number(t)&&t!==0&&(n=parseFloat(n))),t===n){f=i;break}}return f};t.prototype.removeByUniqueId=function(n){var i=this.options.data.length,t=this.getRowByUniqueId(n);(t&&this.options.data.splice(this.options.data.indexOf(t),1),i!==this.options.data.length)&&(this.initSearch(),this.initPagination(),this.initBody(!0))};t.prototype.updateByUniqueId=function(t){var i;t.hasOwnProperty("id")&&t.hasOwnProperty("row")&&(i=n.inArray(this.getRowByUniqueId(t.id),this.options.data),i!==-1)&&(n.extend(this.data[i],t.row),this.initSort(),this.initBody(!0))};t.prototype.insertRow=function(n){n.hasOwnProperty("index")&&n.hasOwnProperty("row")&&(this.data.splice(n.index,0,n.row),this.initSearch(),this.initPagination(),this.initSort(),this.initBody(!0))};t.prototype.updateRow=function(t){t.hasOwnProperty("index")&&t.hasOwnProperty("row")&&(n.extend(this.data[t.index],t.row),this.initSort(),this.initBody(!0))};t.prototype.showRow=function(n){(n.hasOwnProperty("index")||n.hasOwnProperty("uniqueId"))&&this.toggleRow(n.index,n.uniqueId,!0)};t.prototype.hideRow=function(n){(n.hasOwnProperty("index")||n.hasOwnProperty("uniqueId"))&&this.toggleRow(n.index,n.uniqueId,!1)};t.prototype.getRowsHidden=function(t){var i=n(this.$body[0]).children().filter(":hidden"),r=0;if(t)for(;r<i.length;r++)n(i[r]).show();return i};t.prototype.mergeCells=function(t){var i=t.index,r=n.inArray(t.field,this.getVisibleFields()),e=t.rowspan||1,o=t.colspan||1,u,f,s=this.$body.find(">tr"),h;if(this.options.detailView&&!this.options.cardView&&(r+=1),h=s.eq(i).find(">td").eq(r),!(i<0)&&!(r<0)&&!(i>=this.data.length)){for(u=i;u<i+e;u++)for(f=r;f<r+o;f++)s.eq(u).find(">td").eq(f).hide();h.attr("rowspan",e).attr("colspan",o).show()}};t.prototype.updateCell=function(n){n.hasOwnProperty("index")&&n.hasOwnProperty("field")&&n.hasOwnProperty("value")&&(this.data[n.index][n.field]=n.value,n.reinit!==!1)&&(this.initSort(),this.initBody(!0))};t.prototype.getOptions=function(){return this.options};t.prototype.getSelections=function(){var t=this;return n.grep(this.data,function(n){return n[t.header.stateField]})};t.prototype.getAllSelections=function(){var t=this;return n.grep(this.options.data,function(n){return n[t.header.stateField]})};t.prototype.checkAll=function(){this.checkAll_(!0)};t.prototype.uncheckAll=function(){this.checkAll_(!1)};t.prototype.checkInvert=function(){var t=this,r=t.$selectItem.filter(":enabled"),i=r.filter(":checked");r.each(function(){n(this).prop("checked",!n(this).prop("checked"))});t.updateRows();t.updateSelected();t.trigger("uncheck-some",i);i=t.getSelections();t.trigger("check-some",i)};t.prototype.checkAll_=function(n){var t;n||(t=this.getSelections());this.$selectAll.add(this.$selectAll_).prop("checked",n);this.$selectItem.filter(":enabled").prop("checked",n);this.updateRows();n&&(t=this.getSelections());this.trigger(n?"check-all":"uncheck-all",t)};t.prototype.check=function(n){this.check_(!0,n)};t.prototype.uncheck=function(n){this.check_(!1,n)};t.prototype.check_=function(n,t){var r=this.$selectItem.filter(i('[data-index="%s"]',t)).prop("checked",n);this.data[t][this.header.stateField]=n;this.updateSelected();this.trigger(n?"check":"uncheck",this.data[t],r)};t.prototype.checkBy=function(n){this.checkBy_(!0,n)};t.prototype.uncheckBy=function(n){this.checkBy_(!1,n)};t.prototype.checkBy_=function(t,r){if(r.hasOwnProperty("field")&&r.hasOwnProperty("values")){var u=this,f=[];n.each(this.options.data,function(e,o){if(!o.hasOwnProperty(r.field))return!1;if(n.inArray(o[r.field],r.values)!==-1){var s=u.$selectItem.filter(":enabled").filter(i('[data-index="%s"]',e)).prop("checked",t);o[u.header.stateField]=t;f.push(o);u.trigger(t?"check":"uncheck",o,s)}});this.updateSelected();this.trigger(t?"check-some":"uncheck-some",f)}};t.prototype.destroy=function(){this.$el.insertBefore(this.$container);n(this.options.toolbar).insertBefore(this.$el);this.$container.next().remove();this.$container.remove();this.$el.html(this.$el_.html()).css("margin-top","0").attr("class",this.$el_.attr("class")||"")};t.prototype.showLoading=function(){this.$tableLoading.show()};t.prototype.hideLoading=function(){this.$tableLoading.hide()};t.prototype.togglePagination=function(){this.options.pagination=!this.options.pagination;var n=this.$toolbar.find('button[name="paginationSwitch"] i');this.options.pagination?n.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchDown):n.attr("class",this.options.iconsPrefix+" "+this.options.icons.paginationSwitchUp);this.updatePagination()};t.prototype.refresh=function(n){n&&n.url&&(this.options.url=n.url,this.options.pageNumber=1);this.initServer(n&&n.silent,n&&n.query)};t.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader();this.options.showFooter&&this.fitFooter()};t.prototype.showColumn=function(n){this.toggleColumn(u(this.columns,n),!0,!0)};t.prototype.hideColumn=function(n){this.toggleColumn(u(this.columns,n),!1,!0)};t.prototype.getHiddenColumns=function(){return n.grep(this.columns,function(n){return!n.visible})};t.prototype.filterBy=function(t){this.filterColumns=n.isEmptyObject(t)?{}:t;this.options.pageNumber=1;this.initSearch();this.updatePagination()};t.prototype.scrollTo=function(n){return typeof n=="string"&&(n=n==="bottom"?this.$tableBody[0].scrollHeight:0),typeof n=="number"&&this.$tableBody.scrollTop(n),typeof n=="undefined"?this.$tableBody.scrollTop():void 0};t.prototype.getScrollPosition=function(){return this.scrollTo()};t.prototype.selectPage=function(n){n>0&&n<=this.options.totalPages&&(this.options.pageNumber=n,this.updatePagination())};t.prototype.prevPage=function(){this.options.pageNumber>1&&(this.options.pageNumber--,this.updatePagination())};t.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())};t.prototype.toggleView=function(){this.options.cardView=!this.options.cardView;this.initHeader();this.initBody();this.trigger("toggle",this.options.cardView)};t.prototype.refreshOptions=function(t){c(this.options,t,!0)||(this.options=n.extend(this.options,t),this.trigger("refresh-options",this.options),this.destroy(),this.init())};t.prototype.resetSearch=function(n){var t=this.$toolbar.find(".search input");t.val(n||"");this.onSearch({currentTarget:t})};t.prototype.expandRow_=function(n,t){var r=this.$body.find(i('> tr[data-index="%s"]',t));r.next().is("tr.detail-view")===(n?!1:!0)&&r.find("> td > .detail-icon").click()};t.prototype.expandRow=function(n){this.expandRow_(!0,n)};t.prototype.collapseRow=function(n){this.expandRow_(!1,n)};t.prototype.expandAllRows=function(t){var s,u;if(t){var r=this.$body.find(i('> tr[data-index="%s"]',0)),h=this,f=null,e=!1,o=-1;if(r.next().is("tr.detail-view")?r.next().next().is("tr.detail-view")||(r.next().find(".detail-icon").click(),e=!0):(r.find("> td > .detail-icon").click(),e=!0),e)try{o=setInterval(function(){f=h.$body.find("tr.detail-view").last().find(".detail-icon");f.length>0?f.click():clearInterval(o)},1)}catch(c){clearInterval(o)}}else for(s=this.$body.children(),u=0;u<s.length;u++)this.expandRow_(!0,n(s[u]).data("index"))};t.prototype.collapseAllRows=function(t){var r,i;if(t)this.expandRow_(!1,0);else for(r=this.$body.children(),i=0;i<r.length;i++)this.expandRow_(!1,n(r[i]).data("index"))};t.prototype.updateFormatText=function(n,t){this.options[i("format%s",n)]&&(typeof t=="string"?this.options[i("format%s",n)]=function(){return t}:typeof t=="function"&&(this.options[i("format%s",n)]=t));this.initToolbar();this.initPagination();this.initBody()};s=["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getRowsHidden","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","destroy","showLoading","hideLoading","showColumn","hideColumn","getHiddenColumns","filterBy","scrollTo","getScrollPosition","selectPage","prevPage","nextPage","togglePagination","toggleView","refreshOptions","resetSearch","expandRow","collapseRow","expandAllRows","collapseAllRows","updateFormatText"];n.fn.bootstrapTable=function(i){var r,u=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=n(this),f=e.data("bootstrap.table"),o=n.extend({},t.DEFAULTS,e.data(),typeof i=="object"&&i);if(typeof i=="string"){if(n.inArray(i,s)<0)throw new Error("Unknown method: "+i);if(!f)return;r=f[i].apply(f,u);i==="destroy"&&e.removeData("bootstrap.table")}f||e.data("bootstrap.table",f=new t(this,o))}),typeof r=="undefined"?this:r};n.fn.bootstrapTable.Constructor=t;n.fn.bootstrapTable.defaults=t.DEFAULTS;n.fn.bootstrapTable.columnDefaults=t.COLUMN_DEFAULTS;n.fn.bootstrapTable.locales=t.LOCALES;n.fn.bootstrapTable.methods=s;n.fn.bootstrapTable.utils={sprintf:i,getFieldIndex:u,compareObjects:c,calculateObjectValue:r};n(function(){n('[data-toggle="table"]').bootstrapTable()})}(jQuery),function(n,t,i){n.fn.responsiveSlides=function(r){var u=n.extend({auto:!0,speed:500,timeout:4e3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:n.noop,after:n.noop},r);return this.each(function(){var ft,et,b,ot,st;i++;var e=n(this),k,w,d,l,y,p,a=0,f=e.children(),ht=f.size(),o=parseFloat(u.speed),ct=parseFloat(u.timeout),g=parseFloat(u.maxwidth),v=u.namespace,s=v+i,lt=v+"_nav "+s+"_nav",nt=v+"_here",h=s+"_on",tt=s+"_s",c=n("<ul class='"+v+"_tabs "+s+"_tabs' />"),it={float:"left",position:"relative",opacity:1,zIndex:2},rt={float:"none",position:"absolute",opacity:0,zIndex:1},at=function(){var r=document.body||document.documentElement,i=r.style,n="transition",t;if(typeof i[n]=="string")return!0;for(k=["Moz","Webkit","Khtml","O","ms"],n=n.charAt(0).toUpperCase()+n.substr(1),t=0;t<k.length;t++)if(typeof i[k[t]+n]=="string")return!0;return!1}(),ut=function(t){u.before(t);at?(f.removeClass(h).css(rt).eq(t).addClass(h).css(it),a=t,setTimeout(function(){u.after(t)},o)):f.stop().fadeOut(o,function(){n(this).removeClass(h).css(rt).css("opacity",1)}).eq(t).fadeIn(o,function(){n(this).addClass(h).css(it);u.after(t);a=t})};if(u.random&&(f.sort(function(){return Math.round(Math.random())-.5}),e.empty().append(f)),f.each(function(n){this.id=tt+n}),e.addClass(v+" "+s),r&&r.maxwidth&&e.css("max-width",g),f.hide().css(rt).eq(0).addClass(h).css(it).show(),at&&f.show().css({"-webkit-transition":"opacity "+o+"ms ease-in-out","-moz-transition":"opacity "+o+"ms ease-in-out","-o-transition":"opacity "+o+"ms ease-in-out",transition:"opacity "+o+"ms ease-in-out"}),f.size()>1){if(ct<o+100)return;u.pager&&!u.manualControls&&(ft=[],f.each(function(n){var t=n+1;ft+="<li><a href='#' class='"+tt+t+"'>"+t+"<\/a><\/li>"}),c.append(ft),r.navContainer?n(u.navContainer).append(c):e.after(c));u.manualControls&&(c=n(u.manualControls),c.addClass(v+"_tabs "+s+"_tabs"));(u.pager||u.manualControls)&&c.find("li").each(function(t){n(this).addClass(tt+(t+1))});(u.pager||u.manualControls)&&(p=c.find("a"),w=function(n){p.closest("li").removeClass(nt).eq(n).addClass(nt)});u.auto&&(d=function(){y=setInterval(function(){f.stop(!0,!0);var n=a+1<ht?a+1:0;(u.pager||u.manualControls)&&w(n);ut(n)},ct)},d());l=function(){u.auto&&(clearInterval(y),d())};u.pause&&e.hover(function(){clearInterval(y)},function(){l()});(u.pager||u.manualControls)&&(p.bind("click",function(t){t.preventDefault();u.pauseControls||l();var i=p.index(this);a===i||n("."+h).queue("fx").length||(w(i),ut(i))}).eq(0).closest("li").addClass(nt),u.pauseControls&&p.hover(function(){clearInterval(y)},function(){l()}));u.nav&&(et="<a href='#' class='"+lt+" prev'>"+u.prevText+"<\/a><a href='#' class='"+lt+" next'>"+u.nextText+"<\/a>",r.navContainer?n(u.navContainer).append(et):e.after(et),b=n("."+s+"_nav"),ot=b.filter(".prev"),b.bind("click",function(t){var i;if(t.preventDefault(),i=n("."+h),!i.queue("fx").length){var r=f.index(i),e=r-1,o=r+1<ht?a+1:0;ut(n(this)[0]===ot[0]?e:o);(u.pager||u.manualControls)&&w(n(this)[0]===ot[0]?e:o);u.pauseControls||l()}}),u.pauseControls&&b.hover(function(){clearInterval(y)},function(){l()}))}typeof document.body.style.maxWidth=="undefined"&&r.maxwidth&&(st=function(){e.css("width","100%");e.width()>g&&e.css("width",g)},st(),n(t).bind("resize",function(){st()}))})}}(jQuery,this,0);var twicePush=0,twicePushMsg="processing",activetab=0,kalturaPartnerId="",redirectUrl="";$("#alreadymember").click(function(){$("#signuppopup").fadeOut(400);$("#loginpopup").fadeIn(400);$("#loginpopup").css("top",($("#lightBox").height()-$("#loginpopup").height())/2);$("#loginpopup").css("left",($("#lightBox").width()-$("#loginpopup").width())/2);$("#loginpopup .btnCloseloginPopup").click(function(){$("#loginpopup").fadeOut(400);$("#lightBox").fadeOut(400)})});$("#notmember").click(function(){$("#loginpopup").fadeOut(400);$("#signuppopup").fadeIn(400);$("#signuppopup").css("top",($("#lightBox").height()-$("#signuppopup").height())/2);$("#signuppopup").css("left",($("#lightBox").width()-$("#signuppopup").width())/2);$("#signuppopup .btnCloseloginPopup").click(function(){$("#signuppopup").fadeOut(400);$("#lightBox").fadeOut(400)})});dateFormat=function(){var t=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g,n=function(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n};return function(u,f,e){var h=dateFormat;if(arguments.length!=1||Object.prototype.toString.call(u)!="[object String]"||/\d/.test(u)||(f=u,u=undefined),u=u?new Date(u):new Date,isNaN(u))throw SyntaxError("invalid date");f=String(h.masks[f]||f||h.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),e=!0);var o=e?"getUTC":"get",c=u[o+"Date"](),y=u[o+"Day"](),l=u[o+"Month"](),p=u[o+"FullYear"](),s=u[o+"Hours"](),w=u[o+"Minutes"](),b=u[o+"Seconds"](),a=u[o+"Milliseconds"](),v=e?0:u.getTimezoneOffset(),k={d:c,dd:n(c),ddd:h.i18n.dayNames[y],dddd:h.i18n.dayNames[y+7],m:l+1,mm:n(l+1),mmm:h.i18n.monthNames[l],mmmm:h.i18n.monthNames[l+12],yy:String(p).slice(2),yyyy:p,h:s%12||12,hh:n(s%12||12),H:s,HH:n(s),M:w,MM:n(w),s:b,ss:n(b),l:n(a,3),L:n(a>99?Math.round(a/10):a),t:s<12?"a":"p",tt:s<12?"am":"pm",T:s<12?"A":"P",TT:s<12?"AM":"PM",Z:e?"UTC":(String(u).match(i)||[""]).pop().replace(r,""),o:(v>0?"-":"+")+n(Math.floor(Math.abs(v)/60)*100+Math.abs(v)%60,4),S:["th","st","nd","rd"][c%10>3?0:(c%100-c%10!=10)*c%10]};return f.replace(t,function(n){return n in k?k[n]:n.slice(1,n.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(n,t){return dateFormat(this,n,t)};$(document).ready(function(){$("body").on("touchstart click",function(n){$("button.navbar-toggle:visible").length!==0&&($(n.target).hasClass("navbar-toggle")||$(n.target).closest(".menuList").length>0||($(".navbar-collapse.menuList.collapse.in").length>0||$(".navbar-collapse.collapse.in").length>0)&&$("button.navbar-toggle").trigger("click"))})});jQuery.fn.extend({animax:function(n,t){$(this).addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).off("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend");$(this).removeClass(n);typeof t=="function"&&t.call(this)});return $(this)},showUnitLoading:function(){return $(this).addClass("unit-loading"),$("<div class='loading'><div><div class='loader'><\/div><\/div><\/div>").appendTo($(this)).show(),$(this)},hideUnitLoading:function(){return $(this).find(".loading").remove(),$(this).removeClass("unit-loading"),$(this)},preventBackward:function(){history.pushState(null,null,$(location).attr("href"));$(window).on("popstate",function(){history.pushState(null,null,$(location).attr("href"))})}});isView={mobile:function(){var n=getWindowWidth();return n<768?!0:!1},tablet:function(){var n=getWindowWidth();return n<992&&n>767?!0:!1},desktop:function(){var n=getWindowWidth();return n>991?!0:!1}},function(n){typeof define=="function"&&define.amd?define(["jquery"],n):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{n=decodeURIComponent(n.replace(u," "))}catch(i){return}try{return 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.setDate(a.getDate()+y)),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?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}});css_browser_selector(navigator.userAgent);isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}};"scrollRestoration"in history&&(history.scrollRestoration="manual");$(document).ready(function(){modalOpen();$(document).on("hidden.bs.modal",".modal",function(){$(".modal:visible").length&&$(document.body).addClass("modal-open")});isMobile.any()&&$("#detech-devices").addClass("detech-devices");$(document).on("show.bs.modal",".modal",centerModal);$(window).on("resize",function(){$(".modal:visible").each(centerModal)});$(".select-custom-box .book-me-session-select").change(function(){resizeSelectBox()});$(window).resize(function(){resizeSelectBox()})});var _defaultWidthSelect=14,_mobilePort=480,_maxWidthSelectBox=145,_minWidthSelectBox=70,_maxWidthSelectBoxSmall=180,_minWidthSelectBoxSmall=120,_selectBox=$(".select-custom-box .book-me-session-select");jQuery.fn.extend({animax:function(n,t){$(this).addClass(n).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).off("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend");$(this).removeClass(n);typeof t=="function"&&t.call(this)});return $(this)},animaxend:function(n){$(this).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){$(this).off("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend");typeof n=="function"&&n.call(this)});return $(this)},animaxstart:function(n){$(this).one("webkitAnimationStart mozAnimationStart MSAnimationStart oanimationstart animationstart",function(){$(this).off("webkitAnimationStart mozAnimationStart MSAnimationStart oanimationstart animationstart");typeof n=="function"&&n.call(this)});return $(this)},showUnitLoading:function(){return $(this).addClass("unit-loading"),$("<div class='loading'><div><div class='loader'><\/div><\/div><\/div>").appendTo($(this)).show(),$(this)},hideUnitLoading:function(){return $(this).find(".loading").remove(),$(this).removeClass("unit-loading"),$(this)},preventBackward:function(){history.pushState(null,null,$(location).attr("href"));$(window).off("popstate");$(window).on("popstate",function(){history.pushState(null,null,$(location).attr("href"))})}});Encoder={EncodeType:"entity",isEmpty:function(n){return n?n===null||n.length==0||/^\s+$/.test(n):!0},arr1:["&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&shy;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&quot;","&amp;","&lt;","&gt;","&OElig;","&oelig;","&Scaron;","&scaron;","&Yuml;","&circ;","&tilde;","&ensp;","&emsp;","&thinsp;","&zwnj;","&zwj;","&lrm;","&rlm;","&ndash;","&mdash;","&lsquo;","&rsquo;","&sbquo;","&ldquo;","&rdquo;","&bdquo;","&dagger;","&Dagger;","&permil;","&lsaquo;","&rsaquo;","&euro;","&fnof;","&Alpha;","&Beta;","&Gamma;","&Delta;","&Epsilon;","&Zeta;","&Eta;","&Theta;","&Iota;","&Kappa;","&Lambda;","&Mu;","&Nu;","&Xi;","&Omicron;","&Pi;","&Rho;","&Sigma;","&Tau;","&Upsilon;","&Phi;","&Chi;","&Psi;","&Omega;","&alpha;","&beta;","&gamma;","&delta;","&epsilon;","&zeta;","&eta;","&theta;","&iota;","&kappa;","&lambda;","&mu;","&nu;","&xi;","&omicron;","&pi;","&rho;","&sigmaf;","&sigma;","&tau;","&upsilon;","&phi;","&chi;","&psi;","&omega;","&thetasym;","&upsih;","&piv;","&bull;","&hellip;","&prime;","&Prime;","&oline;","&frasl;","&weierp;","&image;","&real;","&trade;","&alefsym;","&larr;","&uarr;","&rarr;","&darr;","&harr;","&crarr;","&lArr;","&uArr;","&rArr;","&dArr;","&hArr;","&forall;","&part;","&exist;","&empty;","&nabla;","&isin;","&notin;","&ni;","&prod;","&sum;","&minus;","&lowast;","&radic;","&prop;","&infin;","&ang;","&and;","&or;","&cap;","&cup;","&int;","&there4;","&sim;","&cong;","&asymp;","&ne;","&equiv;","&le;","&ge;","&sub;","&sup;","&nsub;","&sube;","&supe;","&oplus;","&otimes;","&perp;","&sdot;","&lceil;","&rceil;","&lfloor;","&rfloor;","&lang;","&rang;","&loz;","&spades;","&clubs;","&hearts;","&diams;"],arr2:["&#160;","&#161;","&#162;","&#163;","&#164;","&#165;","&#166;","&#167;","&#168;","&#169;","&#170;","&#171;","&#172;","&#173;","&#174;","&#175;","&#176;","&#177;","&#178;","&#179;","&#180;","&#181;","&#182;","&#183;","&#184;","&#185;","&#186;","&#187;","&#188;","&#189;","&#190;","&#191;","&#192;","&#193;","&#194;","&#195;","&#196;","&#197;","&#198;","&#199;","&#200;","&#201;","&#202;","&#203;","&#204;","&#205;","&#206;","&#207;","&#208;","&#209;","&#210;","&#211;","&#212;","&#213;","&#214;","&#215;","&#216;","&#217;","&#218;","&#219;","&#220;","&#221;","&#222;","&#223;","&#224;","&#225;","&#226;","&#227;","&#228;","&#229;","&#230;","&#231;","&#232;","&#233;","&#234;","&#235;","&#236;","&#237;","&#238;","&#239;","&#240;","&#241;","&#242;","&#243;","&#244;","&#245;","&#246;","&#247;","&#248;","&#249;","&#250;","&#251;","&#252;","&#253;","&#254;","&#255;","&#34;","&#38;","&#60;","&#62;","&#338;","&#339;","&#352;","&#353;","&#376;","&#710;","&#732;","&#8194;","&#8195;","&#8201;","&#8204;","&#8205;","&#8206;","&#8207;","&#8211;","&#8212;","&#8216;","&#8217;","&#8218;","&#8220;","&#8221;","&#8222;","&#8224;","&#8225;","&#8240;","&#8249;","&#8250;","&#8364;","&#402;","&#913;","&#914;","&#915;","&#916;","&#917;","&#918;","&#919;","&#920;","&#921;","&#922;","&#923;","&#924;","&#925;","&#926;","&#927;","&#928;","&#929;","&#931;","&#932;","&#933;","&#934;","&#935;","&#936;","&#937;","&#945;","&#946;","&#947;","&#948;","&#949;","&#950;","&#951;","&#952;","&#953;","&#954;","&#955;","&#956;","&#957;","&#958;","&#959;","&#960;","&#961;","&#962;","&#963;","&#964;","&#965;","&#966;","&#967;","&#968;","&#969;","&#977;","&#978;","&#982;","&#8226;","&#8230;","&#8242;","&#8243;","&#8254;","&#8260;","&#8472;","&#8465;","&#8476;","&#8482;","&#8501;","&#8592;","&#8593;","&#8594;","&#8595;","&#8596;","&#8629;","&#8656;","&#8657;","&#8658;","&#8659;","&#8660;","&#8704;","&#8706;","&#8707;","&#8709;","&#8711;","&#8712;","&#8713;","&#8715;","&#8719;","&#8721;","&#8722;","&#8727;","&#8730;","&#8733;","&#8734;","&#8736;","&#8743;","&#8744;","&#8745;","&#8746;","&#8747;","&#8756;","&#8764;","&#8773;","&#8776;","&#8800;","&#8801;","&#8804;","&#8805;","&#8834;","&#8835;","&#8836;","&#8838;","&#8839;","&#8853;","&#8855;","&#8869;","&#8901;","&#8968;","&#8969;","&#8970;","&#8971;","&#9001;","&#9002;","&#9674;","&#9824;","&#9827;","&#9829;","&#9830;"],HTML2Numerical:function(n){return this.swapArrayVals(n,this.arr1,this.arr2)},NumericalToHTML:function(n){return this.swapArrayVals(n,this.arr2,this.arr1)},numEncode:function(n){var t,u,r,i;if(this.isEmpty(n))return"";for(t=[],u=n.length,r=0;r<u;r++)i=n.charAt(r),i<" "||i>"~"?(t.push("&#"),t.push(i.charCodeAt()),t.push(";")):t.push(i);return t.join("")},htmlDecode:function(n){var r,i,t=n,u;if(this.isEmpty(t))return"";if(t=this.HTML2Numerical(t),arr=t.match(/&#[0-9]{1,5};/g),arr!=null)for(u=0;u<arr.length;u++)i=arr[u],r=i.substring(2,i.length-1),t=r>=-32768&&r<=65535?t.replace(i,String.fromCharCode(r)):t.replace(i,"");return t},htmlEncode:function(n,t){return this.isEmpty(n)?"":(t=t||!1,t&&(n=this.EncodeType=="numerical"?n.replace(/&/g,"&#38;"):n.replace(/&/g,"&amp;")),n=this.XSSEncode(n,!1),this.EncodeType!="numerical"&&t||(n=this.HTML2Numerical(n)),n=this.numEncode(n),t||(n=n.replace(/&#/g,"##AMPHASH##"),n=this.EncodeType=="numerical"?n.replace(/&/g,"&#38;"):n.replace(/&/g,"&amp;"),n=n.replace(/##AMPHASH##/g,"&#")),n=n.replace(/&#\d*([^\d;]|$)/g,"$1"),t||(n=this.correctEncoding(n)),this.EncodeType=="entity"&&(n=this.NumericalToHTML(n)),n)},XSSEncode:function(n,t){return this.isEmpty(n)?"":(t=t||!0,t?(n=n.replace(/\'/g,"&#39;"),n=n.replace(/\"/g,"&quot;"),n=n.replace(/</g,"&lt;"),n=n.replace(/>/g,"&gt;")):(n=n.replace(/\'/g,"&#39;"),n=n.replace(/\"/g,"&#34;"),n=n.replace(/</g,"&#60;"),n=n.replace(/>/g,"&#62;")),n)},hasEncoded:function(n){return/&#[0-9]{1,5};/g.test(n)?!0:/&[A-Z]{2,6};/gi.test(n)?!0:!1},stripUnicode:function(n){return n.replace(/[^\x20-\x7E]/g,"")},correctEncoding:function(n){return n.replace(/(&amp;)(amp;)+/,"$1")},swapArrayVals:function(n,t,i){var u,r,f;if(this.isEmpty(n))return"";if(t&&i&&t.length==i.length)for(r=0,f=t.length;r<f;r++)u=new RegExp(t[r],"g"),n=n.replace(u,i[r]);return n},inArray:function(n,t){for(var i=0,r=t.length;i<r;i++)if(t[i]===n)return i;return-1}};jstz=function(){"use strict";var u="s",n=function(n){var t=-n.getTimezoneOffset();return t!==null?t:0},t=function(){return n(new Date(2010,0,1,0,0,0,0))},i=function(){return n(new Date(2010,5,1,0,0,0,0))},f=function(r){var u=r.getMonth()>5?i():t(),f=n(r);return u-f!=0},e=function(){var n=t(),f=i(),r=t()-i();return r<0?n+",1":r>0?f+",1,"+u:n+",0"},r=function(){var n=e();return new jstz.TimeZone(jstz.olson.timezones[n])};return{determine_timezone:function(){return typeof console!="undefined"&&console.log("jstz.determine_timezone() is deprecated and will be removed in an upcoming version. Please use jstz.determine() instead."),r()},determine:r,date_is_dst:f}}();jstz.TimeZone=function(n){"use strict";var t=null,i=function(){return t},r=function(){for(var n=jstz.olson.ambiguity_list[t],u=n.length,i=0,r=n[0];i<u;i+=1)if(r=n[i],jstz.date_is_dst(jstz.olson.dst_start_dates[r])){t=r;return}},u=function(){return typeof jstz.olson.ambiguity_list[t]!="undefined"};return t=n,u()&&r(),{name:i}};jstz.olson={};jstz.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"Etc/GMT+2","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"Etc/UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,1":"Europe/Moscow","180,0":"Asia/Baghdad","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Yerevan","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Tarawa","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"};jstz.olson.dst_start_dates={"America/Denver":new Date(2011,2,13,3,0,0,0),"America/Mazatlan":new Date(2011,3,3,3,0,0,0),"America/Chicago":new Date(2011,2,13,3,0,0,0),"America/Mexico_City":new Date(2011,3,3,3,0,0,0),"Atlantic/Stanley":new Date(2011,8,4,7,0,0,0),"America/Asuncion":new Date(2011,9,2,3,0,0,0),"America/Santiago":new Date(2011,9,9,3,0,0,0),"America/Campo_Grande":new Date(2011,9,16,5,0,0,0),"America/Montevideo":new Date(2011,9,2,3,0,0,0),"America/Sao_Paulo":new Date(2011,9,16,5,0,0,0),"America/Los_Angeles":new Date(2011,2,13,8,0,0,0),"America/Santa_Isabel":new Date(2011,3,5,8,0,0,0),"America/Havana":new Date(2011,2,13,2,0,0,0),"America/New_York":new Date(2011,2,13,7,0,0,0),"Asia/Gaza":new Date(2011,2,26,23,0,0,0),"Asia/Beirut":new Date(2011,2,27,1,0,0,0),"Europe/Minsk":new Date(2011,2,27,2,0,0,0),"Europe/Helsinki":new Date(2011,2,27,4,0,0,0),"Europe/Istanbul":new Date(2011,2,28,5,0,0,0),"Asia/Damascus":new Date(2011,3,1,2,0,0,0),"Asia/Jerusalem":new Date(2011,3,1,6,0,0,0),"Africa/Cairo":new Date(2010,3,30,4,0,0,0),"Asia/Yerevan":new Date(2011,2,27,4,0,0,0),"Asia/Baku":new Date(2011,2,27,8,0,0,0),"Pacific/Auckland":new Date(2011,8,26,7,0,0,0),"Pacific/Fiji":new Date(2010,11,29,23,0,0,0),"America/Halifax":new Date(2011,2,13,6,0,0,0),"America/Goose_Bay":new Date(2011,2,13,2,1,0,0),"America/Miquelon":new Date(2011,2,13,5,0,0,0),"America/Godthab":new Date(2011,2,27,1,0,0,0)};jstz.olson.ambiguity_list={"America/Denver":["America/Denver","America/Mazatlan"],"America/Chicago":["America/Chicago","America/Mexico_City"],"America/Asuncion":["Atlantic/Stanley","America/Asuncion","America/Santiago","America/Campo_Grande"],"America/Montevideo":["America/Montevideo","America/Sao_Paulo"],"Asia/Beirut":["Asia/Gaza","Asia/Beirut","Europe/Minsk","Europe/Helsinki","Europe/Istanbul","Asia/Damascus","Asia/Jerusalem","Africa/Cairo"],"Asia/Yerevan":["Asia/Yerevan","Asia/Baku"],"Pacific/Auckland":["Pacific/Auckland","Pacific/Fiji"],"America/Los_Angeles":["America/Los_Angeles","America/Santa_Isabel"],"America/New_York":["America/Havana","America/New_York"],"America/Halifax":["America/Goose_Bay","America/Halifax"],"America/Godthab":["America/Miquelon","America/Godthab"]};getAngularModule("LogoutApp").controller("NewsLetterSubscribeController",["$scope","$http",function(n,t){function r(){i.waitingtimer=window.setTimeout(function(){$("#newsletterModal").modal("hide")},1e4)}function u(){return window.localStorage&&localStorage.getItem("kuyam_newsletter")||$.cookie("kuyam_newsletter")}function f(){window.localStorage?localStorage.setItem("kuyam_newsletter",!0):$.cookie("kuyam_newsletter",!0,{path:"/",expires:65e3})}var i=this;this.waitingtimer=null;this.email="";this.subscribe=function(){window.clearTimeout(this.waitingtimer);showLoading();t.post("/admin/subscribenewsletter",JSON.stringify({email:this.email})).then(function(t){hideLoading();t.data.Success?($("#newsletterModal").modal("hide"),n.AlertController.alert("Subscribing news letter successfully")):n.AlertController.alert("Unable to subscribe news letter")})};this.resetWatingTimer=function(){window.clearTimeout(this.waitingtimer)};$("#newsletterModal").on("hidden.bs.modal",function(){$(this).data("bs.modal",null)});$(document).ready(function(){if(!u()){f();localStorage.setItem("kuyam_newsletter",!0);$("#newsletterModal input").on("focus",function(){i.resetWatingTimer()});$("#newsletterModal").modal("show");r()}})}]);!function(n,t){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(i){return n.Bloodhound=t(i)}):"object"==typeof exports?module.exports=t(require("jquery")):n.Bloodhound=t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return"undefined"==typeof n},isElement:function(n){return!(!n||1!==n.nodeType)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if((r=i.call(null,u,n,t)))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,0>=h?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),u="0.11.1",f=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var i,r=this.list.tail;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return(this.list.moveToFront(t),t.val)},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix));this.ls=r||i;!this.ls&&this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}function o(n){for(var r,u=[],f=i.length,t=0;f>t;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}var i;try{i=window.localStorage;i.setItem("~~~","!");i.removeItem("~~~")}catch(s){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(i){"QuotaExceededError"===i.name&&(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=o(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return t.isNumber(i)&&u()>i?!0:!1}}),r}(),r=function(){"use strict";function r(n){n=n||{};this.cancelled=!1;this.lastReq=null;this._send=n.transport;this._get=n.limiter?n.limiter(this._get):this._get;this._cache=n.cache===!1?new i(0):o}var u=0,f={},e=6,o=new i(10);return r.setMaxPendingRequests=function(n){e=n},r.resetCache=function(){o.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return t=t||{},t.url+t.type+n.param(t.data||{})},_get:function(n,t){function o(n){t(null,n);r._cache.set(i,n)}function s(){t(!0)}function c(){u--;delete f[i];r.onDeckRequestArgs&&(r._get.apply(r,r.onDeckRequestArgs),r.onDeckRequestArgs=null)}var i,h,r=this;i=this._fingerprint(n);this.cancelled||i!==this.lastReq||((h=f[i])?h.done(o).fail(s):e>u?(u++,f[i]=this._send(n).done(o).fail(s).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop;i=t.isString(i)?{url:i}:i||{};u=this._fingerprint(i);this.cancelled=!1;this.lastReq=u;(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function u(i){i=i||{};i.datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.identify=i.identify||t.stringify;this.datumTokenizer=i.datumTokenizer;this.queryTokenizer=i.queryTokenizer;this.reset()}function f(n){return n=t.filter(n,function(n){return!!n}),n=t.map(n,function(n){return n.toLowerCase()})}function e(){var n={};return n[r]=[],n[i]={},n}function o(n){for(var i={},r=[],t=0,u=n.length;u>t;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function s(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;f>i&&e>r;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}var i="c",r="i";return t.mixin(u.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var u=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var o,s;u.datums[o=u.identify(n)]=n;s=f(u.datumTokenizer(n));t.each(s,function(n){for(var f,t=u.trie,s=n.split("");f=s.shift();)t=t[i][f]||(t[i][f]=e()),t[r].push(o)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var e,u,h=this;return e=f(this.queryTokenizer(n)),t.each(e,function(n){var t,f,o,e;if(u&&0===u.length)return!1;for(t=h.trie,f=n.split("");t&&(o=f.shift());)t=t[i][o];return t&&0===f.length?(e=t[r].slice(0),void(u=u?s(u,e):e)):(u=[],!1)}),u?t.map(o(u),function(n){return h.datums[n]}):[]},all:function(){var n=[];for(var t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={};this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),u}(),s=function(){"use strict";function i(n){this.url=n.url;this.ttl=n.ttl;this.cache=n.cache;this.prepare=n.prepare;this.transform=n.transform;this.transport=n.transport;this.thumbprint=n.thumbprint;this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var i,t={};return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){function i(){n(!0)}function r(t){n(null,u.transform(t))}var t,u=this;n&&(t=this.prepare(this._settings()),this.transport(t).fail(i).done(r))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url;this.prepare=n.prepare;this.transform=n.transform;this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){function r(n,i){t(n?[]:u.transform(i))}var i,u=this;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,r)},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function r(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),!r.url&&n.error("prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}function f(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),!r.url&&n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=e(r),r.limiter=o(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}function e(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return t=n.prepare,i=n.replace,r=n.wildcard,t?t:t=i?u:n.wildcard?f:e}function o(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}function i(i){return function(r){function f(n){t.defer(function(){u.resolve(n)})}function e(n){t.defer(function(){u.reject(n)})}var u=n.Deferred();return i(r,f,e),u}}return function(i){var e,u;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},i=t.mixin(e,i||{}),!i.datumTokenizer&&n.error("datumTokenizer is required"),!i.queryTokenizer&&n.error("queryTokenizer is required"),u=i.sorter,i.sorter=u?function(n){return n.sort(u)}:t.identity,i.local=t.isFunction(i.local)?i.local():i.local,i.prefetch=r(i.prefetch),i.remote=f(i.remote),i}}();return function(){"use strict";function i(n){n=c(n);this.sorter=n.sorter;this.identify=n.identify;this.sufficient=n.sufficient;this.local=n.local;this.remote=n.remote?new h(n.remote):null;this.prefetch=n.prefetch?new s(n.prefetch):null;this.index=new o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer});n.initialize!==!1&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){function t(t,i,r){return n.search(t,i,r)}function i(t,i){return n.search(t,i)}var n=this;return this.remote?t:i},_loadPrefetch:function(){function u(n,r){return n?t.reject():(i.add(r),i.prefetch.store(i.index.serialize()),void t.resolve())}var t,r,i=this;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(u):t.resolve(),t.promise()},_initialize:function(){function t(){n.add(n.local)}var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){function e(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)});r&&r(i)}var u,f=this;return u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return"string"==typeof n},isNumber:function(n){return"number"==typeof n},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return"undefined"==typeof n},isElement:function(n){return!(!n||1!==n.nodeType)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||null===n?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if((r=i.call(null,u,n,t)))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f,e,o=this,s=arguments;return f=function(){r=null;i||(u=n.apply(o,s))},e=i&&!r,clearTimeout(r),r=setTimeout(f,t),e&&(u=n.apply(o,s)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,0>=h?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function n(n){var e,o;return o=t.mixin({},f,n),e={css:u(),classes:o,html:i(o),selectors:r(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function i(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function r(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function u(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var f={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return n}(),o=function(){"use strict";function i(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var r,u;return r="typeahead:",u={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(i.prototype,{_trigger:function(t,i){var u;return u=n.Event(r+t),(i=i||[]).unshift(u),this.$el.trigger.apply(this.$el,i),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=u[n])&&this._trigger(t,[].slice.call(arguments,1))}}),i}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?s(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function r(n,i,r){return t.call(this,"async",n,i,r)}function u(n,i,r){return t.call(this,"sync",n,i,r)}function f(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function e(t){var r,u,f,e,o;if(!this._callbacks)return this;for(t=t.split(n),f=[].slice.call(arguments,1);(r=t.shift())&&(u=this._callbacks[r]);)e=i(u.sync,this,[r].concat(f)),o=i(u.async,this,[r].concat(f)),e()&&h(o);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&f>u;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function o(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function s(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,h=o();return{onSync:u,onAsync:r,off:f,trigger:e}}(),s=function(n){"use strict";function i(n,i,r){for(var u,f=[],e=0,o=n.length;o>e;e++)f.push(t.escapeRegExChars(n[e]));return u=r?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",i?new RegExp(u):new RegExp(u,"i")}var r={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,f;return(i=e.exec(t.data))&&(f=n.createElement(u.tagName),u.className&&(f.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),f.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(f,r)),!!i}function f(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:f(i,t)}var e;u=t.mixin({},r,u);u.node&&u.pattern&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],e=i(u.pattern,u.caseSensitive,u.wordsOnly),f(u.node,o))}}(window.document),u=function(){"use strict";function i(i,r){i=i||{};i.input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=e(this.$input);this._checkLanguageDirection();0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break;default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query);r=i?this.query.length!==n.length:!1;this.query=n;t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n,i,r,f,e=this;return n=t.bind(this._onBlur,this),i=t.bind(this._onFocus,this),r=t.bind(this._onKeydown,this),f=t.bind(this._onInput,this),this.$input.on("blur.tt",n).on("focus.tt",i).on("keydown.tt",r),!t.isMsie()||t.isMsie()>9?this.$input.on("input.tt",f):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(n){u[n.which||n.keyCode]||t.defer(t.bind(e._onInput,e,n))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&0===t.indexOf(n);r=""!==n&&i&&!this.hasOverflow();!r&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i)?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){i=i||{};i.templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=i.name||f();this.limit=i.limit||5;this.displayFn=e(i.display||i.displayKey);this.templates=o(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this._resetLastSuggestion();this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(t){return n("<div>").text(r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[];t.length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",this.name,t,!1)},_append:function(n,t){t=t||[];t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",this.name,t,!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t);r=i.children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var e,f=this;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function f(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}function o(u){u=u||[];!e&&r<i.limit&&(i.cancel=n.noop,r+=u.length,i._append(t,u.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",t))}var i=this,e=!1,u=!1,r=0;this.cancel();this.cancel=function(){e=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t)};this.source(t,f,o);!u&&f([])},cancel:n.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{};i.node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function n(n){return n.isEmpty()}return t.every(this.datasets,n)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);0>t?this.$node.scrollTop(r+t):i>u&&this.$node.scrollTop(r+(i-u))},bind:function(){var i,n=this;return i=t.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,i),t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=-1>t?i.length-1:t,-1===t?null:i.eq(t)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css("ltr"===t?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{};r.input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){this._updateHint();this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable();i=this.menu.getSelectableData(f);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0):!1},autocomplete:function(n){var i,t,r;return i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj)?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0):!1},moveCursor:function(n){var u,i,t,r,f;return u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,f=this._minLengthMet()&&this.menu.update(u),f||this.eventBus.before("cursorchange",r)?!1:(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0)},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();!function(){"use strict";function r(t,i){t.each(function(){var t,r=n(this);(t=r.data(f.typeahead))&&i(t,r)})}function v(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(n)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function y(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function p(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function w(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}function l(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first():[],r.length?r:null}var a,f,s;a=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){function p(){var e,d,p,w,b,k,g,nt,tt,it,rt;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);d=n(a.html.wrapper);p=l(r.hint);w=l(r.menu);b=r.hint!==!1&&!p;k=r.menu!==!1&&!w;b&&(p=v(e,a));k&&(w=n(a.html.menu).css(a.css.menu));p&&p.val("");e=y(e,a);(b||k)&&(d.css(a.css.wrapper),e.css(b?a.css.input:a.css.inputWithNoHint),e.wrap(d).parent().prepend(b?p:null).append(k?w:null));rt=k?h:i;g=new o({el:e});nt=new u({hint:p,input:e},a);tt=new rt({node:w,datasets:s},a);it=new c({input:nt,menu:tt,eventBus:g,minLength:r.minLength},a);e.data(f.www,a);e.data(f.typeahead,it)}var a;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},a=e(r.classNames),this.each(p)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var t;return arguments.length?(r(this,function(t){t.setVal(n)}),this):(r(this.first(),function(n){t=n.getVal()}),t)},destroy:function(){return r(this,function(n,t){w(t);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=a,this}}()}),function(){function ss(n,t){return n.set(t[0],t[1]),n}function hs(n,t){return n.add(t),n}function u(n,t,i){var r=i?i.length:0;switch(r){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}function cs(n,t){for(var i=-1,u=n.length,f=-1,e=t.length,r=Array(u+e);++i<u;)r[i]=n[i];while(++f<e)r[i++]=t[f];return r}function e(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n)===!1)break;return n}function ls(n,t){for(var i=n.length;i--;)if(t(n[i],i,n)===!1)break;return n}function ff(n,t){for(var i=-1,r=n.length;++i<r;)if(!t(n[i],i,n))return!1;return!0}function nt(n,t){for(var i=-1,f=n.length,e=-1,u=[],r;++i<f;)r=n[i],t(r,i,n)&&(u[++e]=r);return u}function pr(n,t){return!!n.length&&ft(n,t,0)>-1}function wr(n,t,i){for(var r=-1,u=n.length;++r<u;)if(i(t,n[r]))return!0;return!1}function r(n,t){for(var i=-1,r=n.length,u=Array(r);++i<r;)u[i]=t(n[i],i,n);return u}function gt(n,t){for(var i=-1,r=t.length,u=n.length;++i<r;)n[u+i]=t[i];return n}function tt(n,t,i,r){var u=-1,f=n.length;for(r&&f&&(i=n[++u]);++u<f;)i=t(i,n[u],u,n);return i}function as(n,t,i,r){var u=n.length;for(r&&u&&(i=n[--u]);u--;)i=t(i,n[u],u,n);return i}function br(n,t){for(var i=-1,r=n.length;++i<r;)if(t(n[i],i,n))return!0;return!1}function li(t,i,r){for(var o=-1,h=t.length,f,u,e,s;++o<h;)f=t[o],u=i(f),u!=null&&(e===n?u===u:r(u,e))&&(e=u,s=f);return s}function ai(n,t,i,r){var u;return i(n,function(n,i,f){if(t(n,i,f))return u=r?i:n,!1}),u}function vi(n,t,i){for(var u=n.length,r=i?u:-1;i?r--:++r<u;)if(t(n[r],r,n))return r;return-1}function ft(n,t,i){if(t!==t)return vf(n,i);for(var r=i-1,u=n.length;++r<u;)if(n[r]===t)return r;return-1}function ef(n,t,i,r,u){return u(n,function(n,u,f){i=r?(r=!1,n):t(i,n,u,f)}),i}function vs(n,t){var i=n.length;for(n.sort(t);i--;)n[i]=n[i].value;return n}function of(t,i){for(var r,f=-1,e=t.length,u;++f<e;)u=i(t[f]),u!==n&&(r=r===n?u:r+u);return r}function kr(n,t){for(var i=-1,r=Array(n);++i<n;)r[i]=t(i);return r}function sf(n,t){return r(t,function(t){return[t,n[t]]})}function hf(n){return function(t){return n(t)}}function dr(n,t){return r(t,function(t){return n[t]})}function cf(n,t){for(var i=-1,r=n.length;++i<r&&ft(t,n[i],0)>-1;);return i}function lf(n,t){for(var i=n.length;i--&&ft(t,n[i],0)>-1;);return i}function yi(n){return n&&n.Object===Object?n:null}function af(t,i){if(t!==i){var f=t===null,e=t===n,r=t===t,o=i===null,s=i===n,u=i===i;if(t>i&&!o||!r||f&&!s&&u||e&&u)return 1;if(t<i&&!f||!u||o&&!e&&r||s&&r)return-1}return 0}function ys(n,t,i){for(var r=-1,f=n.criteria,o=t.criteria,s=f.length,h=i.length,u,e;++r<s;)if(u=af(f[r],o[r]),u)return r>=h?u:(e=i[r],u*(e=="desc"?-1:1));return n.index-t.index}function ps(n){return ns[n]}function ws(n){return ts[n]}function bs(n){return"\\"+rs[n]}function vf(n,t,i){for(var f=n.length,r=t+(i?0:-1),u;i?r--:++r<f;)if(u=n[r],u!==u)return r;return-1}function ni(n){var t=!1;if(n!=null&&typeof n.toString!="function")try{t=!!(n+"")}catch(i){}return t}function b(n,t){return n=typeof n=="number"||fo.test(n)?+n:-1,t=t==null?w:t,n>-1&&n%1==0&&n<t}function yf(n){for(var t,i=[];!(t=n.next()).done;)i.push(t.value);return i}function gr(n){var i=-1,t=Array(n.size);return n.forEach(function(n,r){t[++i]=[r,n]}),t}function k(n,t){for(var i=-1,u=n.length,f=-1,r=[];++i<u;)n[i]===t&&(n[i]=bi,r[++f]=i);return r}function pi(n){var i=-1,t=Array(n.size);return n.forEach(function(n){t[++i]=n}),t}function ti(n){if(!(n&&ci.test(n)))return n.length;for(var t=ar.lastIndex=0;ar.test(n);)t++;return t}function c(n){return n.match(ar)}function ks(n){return is[n]}function pf(wt){function bt(n){if(cu(n)&&!hi(n)&&!(n instanceof yi)){if(n instanceof wu)return n;if(uu.call(n,"__wrapped__"))return cp(n)}return new wu(n)}function hc(){}function wu(t,i){this.__wrapped__=t;this.__actions__=[];this.__chain__=!!i;this.__index__=0;this.__values__=n}function yi(n){this.__wrapped__=n;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=h;this.__views__=[]}function ed(){var n=new yi(this.__wrapped__);return n.__actions__=lu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=lu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=lu(this.__views__),n}function od(){if(this.__filtered__){var n=new yi(this);n.__dir__=-1;n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function sd(){var n=this.__wrapped__.value(),e=this.__dir__,o=hi(n),k=e<0,r=o?n.length:0,s=sn(0,r,this.__views__),h=s.start,c=s.end,t=c-h,l=k?c:h-1,a=this.__iteratees__,d=a.length,v=0,y=pu(t,this.__takeCount__),u,f,i;if(!o||r<ht||r==t&&y==t)return ay(n,this.__actions__);u=[];n:while(t--&&v<y){for(l+=e,f=-1,i=n[l];++f<d;){var p=a[f],g=p.iteratee,w=p.type,b=g(i);if(w==ne)i=b;else if(!b)if(w==iu)continue n;else break n}u[v++]=i}return u}function cl(){}function hd(n,t){return yv(n,t)&&delete n[t]}function cd(t,i){if(vh){var r=t[i];return r===ct?n:r}return uu.call(t,i)?t[i]:n}function yv(t,i){return vh?t[i]!==n:uu.call(t,i)}function ld(t,i,r){t[i]=vh&&r===n?ct:r}function ts(n){var i=-1,r=n?n.length:0,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function ad(){this.__data__={hash:new cl,map:nf?new nf:[],string:new cl}}function vd(n){var t=this.__data__;return oh(n)?hd(typeof n=="string"?t.string:t.hash,n):nf?t.map["delete"](n):pv(t.map,n)}function yd(n){var t=this.__data__;return oh(n)?cd(typeof n=="string"?t.string:t.hash,n):nf?t.map.get(n):wv(t.map,n)}function pd(n){var t=this.__data__;return oh(n)?yv(typeof n=="string"?t.string:t.hash,n):nf?t.map.has(n):bv(t.map,n)}function wd(n,t){var i=this.__data__;return oh(n)?ld(typeof n=="string"?i.string:i.hash,n,t):nf?i.map.set(n,t):kv(i.map,n,t),this}function cc(n){var t=-1,i=n?n.length:0;for(this.__data__=new ts;++t<i;)this.push(n[t])}function lc(n,t){var r=n.__data__,i,u;return oh(t)?(i=r.__data__,u=typeof t=="string"?i.string:i.hash,u[t]===ct):r.has(t)}function bd(n){var i=this.__data__,t,r;oh(n)?(t=i.__data__,r=typeof n=="string"?t.string:t.hash,r[n]=ct):i.set(n,ct)}function co(n){var i=-1,r=n?n.length:0,t;for(this.clear();++i<r;)t=n[i],this.set(t[0],t[1])}function kd(){this.__data__={array:[],map:null}}function dd(n){var t=this.__data__,i=t.array;return i?pv(i,n):t.map["delete"](n)}function gd(n){var t=this.__data__,i=t.array;return i?wv(i,n):t.map.get(n)}function ng(n){var t=this.__data__,i=t.array;return i?bv(i,n):t.map.has(n)}function tg(n,t){var i=this.__data__,r=i.array,u;return r&&(r.length<ht-1?kv(r,n,t):(i.array=null,i.map=new ts(r))),u=i.map,u&&u.set(n,t),this}function pv(n,t){var i=ac(n,t),r;return i<0?!1:(r=n.length-1,i==r?n.pop():uc.call(n,i,1),!0)}function wv(t,i){var r=ac(t,i);return r<0?n:t[r][1]}function bv(n,t){return ac(n,t)>-1}function ac(n,t){for(var i=n.length;i--;)if(fo(n[i][0],t))return i;return-1}function kv(n,t,i){var r=ac(n,t);r<0?n.push([t,i]):n[r][1]=i}function ll(t,i,r,u){return t===n||fo(t,ns[r])&&!uu.call(u,r)?i:t}function al(t,i,r){(r===n||fo(t[i],r))&&(typeof i!="number"||r!==n||i in t)||(t[i]=r)}function vl(t,i,r){var u=t[i];fo(u,r)&&(!fo(u,ns[i])||uu.call(t,i))&&(r!==n||i in t)||(t[i]=r)}function dv(n,t){return n&&wh(t,vr(t),n)}function yl(t,i){for(var r=-1,e=t==null,u=i.length,f=Array(u);++r<u;)f[r]=e?n:nc(t,i[r]);return f}function uh(t,i,r){return t===t&&(r!==n&&(t=t<=r?t:r),i!==n&&(t=t>=i?t:i)),t}function ku(i,r,u,f,o,h){var c,a,l,v,y;if(u&&(c=o?u(i,f,o,h):u(i)),c!==n)return c;if(!lr(i))return i;if(a=hi(i),a){if(c=hn(i),!r)return lu(i,c)}else if(l=th(i),v=l==fi||l==ru,l==s||l==ut||v&&!o){if(ni(i))return o?i:{};if(c=cn(v?{}:i),!r)return wy(i,dv(c,i))}else return t[l]?ln(i,l,r):o?i:{};return(h||(h=new co),y=h.get(i),y)?y:(h.set(i,c),(a?e:rf)(i,function(n,t){vl(c,t,ku(n,r,u,t,i,h))}),a?c:wy(i,c))}function ig(t){var i=vr(t),r=i.length;return function(u){var f;if(u==null)return!r;for(f=r;f--;){var e=i[f],s=t[e],o=u[e];if(o===n&&!(e in Object(u))||!s(o))return!1}return!0}}function gv(t,i,r){if(typeof t!="function")throw new yu(f);return rc(function(){t.apply(n,r)},i)}function ds(n,t,i,u){var l=-1,s=pr,h=!0,a=n.length,o=[],v=t.length,f,e,c;if(!a)return o;i&&(t=r(t,hf(i)));u?(s=wr,h=!1):t.length>=ht&&(s=lc,h=!1,t=new cc(t));n:while(++l<a)if(f=n[l],e=i?i(f):f,h&&e===e){for(c=v;c--;)if(t[c]===e)continue n;o.push(f)}else s(t,e,u)||o.push(f);return o}function rg(n,t){var i=!0;return tf(n,function(n,r,u){return i=!!t(n,r,u)}),i}function ug(t,i,r,u){var f=t.length;for(r=sr(r),r<0&&(r=-r>f?0:f+r),u=u===n||u>f?f:sr(u),u<0&&(u+=f),u=r>u?0:ib(u);r<u;)t[r++]=i;return t}function ny(n,t){var i=[];return tf(n,function(n,r,u){t(n,r,u)&&i.push(n)}),i}function cr(n,t,i,r){var f,e,u;for(r||(r=[]),f=-1,e=n.length;++f<e;)u=n[f],ar(u)&&(i||hi(u)||hh(u))?t?cr(u,t,i,r):gt(r,u):i||(r[r.length]=u);return r}function fg(n,t){return n==null?n:yc(n,t,bu)}function rf(n,t){return n&&yc(n,t,vr)}function wl(n,t){return n&&pl(n,t,vr)}function pc(n,t){return nt(t,function(t){return gu(n[t])})}function bl(t,i){i=vo(i,t)?[i+""]:gs(i);for(var r=0,u=i.length;t!=null&&r<u;)t=t[i[r++]];return r&&r==u?t:n}function kl(n,t){return uu.call(n,t)||typeof n=="object"&&t in n&&hv(n)===null}function eg(n,t){return t in Object(n)}function og(n,t,i){return n>=pu(t,i)&&n<hu(t,i)}function dl(t,i,u){for(var y=u?wr:pr,c=t.length,f=c,l=Array(c),a=[],e,h,o,v;f--;)e=t[f],f&&i&&(e=r(e,hf(i))),l[f]=!u&&(i||e.length>=120)?new cc(f&&e):n;e=t[0];var p=-1,w=e.length,s=l[0];n:while(++p<w)if(h=e[p],o=i?i(h):h,!(s?lc(s,o):y(a,o,u))){for(f=c;--f;)if(v=l[f],!(v?lc(v,o):y(t[f],o,u)))continue n;s&&s.push(o);a.push(h)}return a}function yh(t,i,r){vo(i,t)||(i=gs(i),t=kh(t,i),i=au(i));var f=t==null?t:t[i];return f==null?n:u(f,t,r)}function ph(n,t,i,r,u){return n===t?!0:n==null||t==null||!lr(n)&&!cu(t)?n!==n&&t!==t:sg(n,t,ph,i,r,u)}function sg(n,t,i,r,u,f){var h=hi(n),a=hi(t),e=ri,o=ri,p,c,l;h||(e=th(n),e==ut?e=s:e!=s&&(h=lh(n)));a||(o=th(t),o==ut?o=s:o!=s&&(a=lh(t)));var v=e==s&&!ni(n),w=o==s&&!ni(t),y=e==o;return y&&!(h||v)?en(n,t,e,i,r,u):(p=u&rt,!p&&(c=v&&uu.call(n,"__wrapped__"),l=w&&uu.call(t,"__wrapped__"),c||l))?i(c?n.value():n,l?t.value():t,r,u,f):y?(f||(f=new co),(h?fn:on)(n,t,i,r,u,f)):!1}function gl(t,i,r,u){var e=r.length,l=e,a=!u,f,h,c;if(t==null)return!l;for(t=Object(t);e--;)if(f=r[e],a&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1;while(++e<l){f=r[e];var o=f[0],s=t[o],v=f[1];if(a&&f[2]){if(s===n&&!(o in t))return!1}else if(h=new co,c=u?u(s,v,o,t,i,h):n,!(c===n?ph(v,s,u,st|rt,h):c))return!1}return!0}function ty(n){var t=typeof n;return t=="function"?n:n==null?so:t=="object"?hi(n)?fy(n[0],n[1]):uy(n):ek(n)}function hg(n){return nd(Object(n))}function iy(n){var t,i;n=n==null?n:Object(n);t=[];for(i in n)t.push(i);return t}function ry(n,t){var r=-1,i=du(n)?Array(n.length):[];return tf(n,function(n,u,f){i[++r]=t(n,u,f)}),i}function uy(t){var i=sa(t),r,u;return i.length==1&&i[0][2]?(r=i[0][0],u=i[0][1],function(t){return t==null?!1:t[r]===u&&(u!==n||r in Object(t))}):function(n){return n===t||gl(n,t,i)}}function fy(t,i){return function(r){var u=nc(r,t);return u===n&&u===i?sb(r,t):ph(i,u,n,st|rt)}}function wc(t,i,r,u){if(t!==i){var f=hi(i)||lh(i)?n:bu(i);e(f||i,function(e,o){if(f&&(o=e,e=i[o]),lr(e))u||(u=new co),cg(t,i,o,wc,r,u);else{var s=r?r(t[o],e,o+"",t,i,u):n;s===n&&(s=e);al(t,o,s)}})}}function cg(t,i,r,u,f,e){var s=t[r],o=i[r],l=e.get(o)||e.get(s),h,c;if(l){al(t,r,l);return}h=f?f(s,o,r+"",t,i,e):n;c=h===n;c&&(h=o,hi(o)||lh(o)?h=hi(s)?s:ar(s)?lu(s):ku(o):da(o)||hh(o)?h=hh(s)?rb(s):lr(s)?s:ku(o):c=gu(o));e.set(o,h);c&&u(h,o,f,e);al(t,r,h)}function ey(n,t,i){var f=-1,e=dt(),u;return t=r(t.length?t:Array(1),function(n){return e(n)}),u=ry(n,function(n){var i=r(t,function(t){return t(n)});return{criteria:i,index:++f,value:n}}),vs(u,function(n,t){return ys(n,t,i)})}function oy(n,t){return n=Object(n),tt(t,function(t,i){return i in n&&(t[i]=n[i]),t},{})}function sy(n,t){var i={};return fg(n,function(n,r){t(n)&&(i[r]=n)}),i}function na(t){return function(i){return i==null?n:i[t]}}function lg(n){return function(t){return bl(t,n)}}function ag(n,t){return hy(n,t)}function hy(n,t,i){var e=-1,s=t.length,u=n;for(i&&(u=r(n,function(n){return i(n)}));++e<s;)for(var f=0,o=t[e],h=i?i(o):o;(f=ft(u,h,f))>-1;)u!==n&&uc.call(u,f,1),uc.call(n,f,1);return n}function cy(n,t){for(var r=n?t.length:0,o=r-1,i,e,u,f;r--;)i=t[r],(o==r||i!=e)&&(e=i,b(i)?uc.call(n,i,1):vo(i,n)?delete n[i]:(u=gs(i),f=kh(n,u),f!=null&&delete f[au(u)]));return n}function ta(n,t){return n+ec(lv()*(t-n+1))}function vg(n,t,i,r){for(var e=-1,u=hu(fc((t-n)/(i||1)),0),f=Array(u);u--;)f[r?u:++e]=n,n+=i;return f}function bc(t,i,r,u){var e,o,h;i=vo(i,t)?[i+""]:gs(i);for(var s=-1,c=i.length,l=c-1,f=t;f!=null&&++s<c;)e=i[s],lr(f)&&(o=r,s!=l&&(h=f[e],o=u?u(h,e,f):n,o===n&&(o=h==null?b(i[s+1])?[]:{}:h)),vl(f,e,o)),f=f[e];return t}function lo(n,t,i){var u=-1,r=n.length,f;for(t<0&&(t=-t>r?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0,f=Array(r);++u<r;)f[u]=n[u+t];return f}function yg(n,t){var i;return tf(n,function(n,r,u){return i=t(n,r,u),!i}),!!i}function kc(n,t,i){var u=0,r=n?n.length:u,f,e;if(typeof t=="number"&&t===t&&r<=fe){while(u<r)f=u+r>>>1,e=n[f],(i?e<=t:e<t)&&e!==null?u=f+1:r=f;return r}return ra(n,t,so,i)}function ra(t,i,r,u){var l;i=r(i);for(var o=0,e=t?t.length:0,a=i!==i,v=i===null,y=i===n;o<e;){var s=ec((o+e)/2),f=r(t[s]),c=f!==n,h=f===f;l=a?h||u:v?h&&c&&(u||f!=null):y?h&&(u||c):f==null?!1:u?f<=i:f<i;l?o=s+1:e=s}return pu(e,ue)}function pg(n){return ly(n)}function ly(n,t){for(var u=0,o=n.length,i=n[0],r=t?t(i):i,f=r,s=0,e=[i];++u<o;)i=n[u],r=t?t(i):i,fo(r,f)||(f=r,e[++s]=i);return e}function gs(n){return hi(n)?n:hp(n)}function nh(n,t,i){var l=-1,o=pr,a=n.length,s=!0,f=[],r=f,h,e,u,c;if(i)s=!1,o=wr;else if(a>=ht){if(h=t?null:ip(n),h)return pi(h);s=!1;o=lc;r=new cc}else r=t?[]:f;n:while(++l<a)if(e=n[l],u=t?t(e):e,s&&u===u){for(c=r.length;c--;)if(r[c]===u)continue n;t&&r.push(u);f.push(e)}else o(r,u,i)||(r!==f&&r.push(u),f.push(e));return f}function wg(n,t){t=vo(t,n)?[t+""]:gs(t);n=kh(n,t);var i=au(t);return n!=null&&ob(n,i)?delete n[i]:!0}function dc(n,t,i,r){for(var f=n.length,u=r?f:-1;(r?u--:++u<f)&&t(n[u],u,n););return i?lo(n,r?0:u,r?u+1:f):lo(n,r?u+1:0,r?f:u)}function ay(n,t){var i=n;return i instanceof yi&&(i=i.value()),tt(t,function(n,t){return t.func.apply(t.thisArg,gt([n],t.args))},i)}function ua(n,t,i){for(var u=-1,f=n.length,r;++u<f;)r=r?gt(ds(r,n[u],t,i),ds(n[u],r,t,i)):n[u];return r&&r.length?nh(r,t,i):[]}function vy(n){var i=n.constructor,t=new i(n.byteLength),r=new ic(t);return r.set(new ic(n)),t}function bg(n){var t=n.constructor;return tt(gr(n),ss,new t)}function kg(n){var i=n.constructor,t=new i(n.source,su.exec(n));return t.lastIndex=n.lastIndex,t}function dg(n){var t=n.constructor;return tt(pi(n),hs,new t)}function gg(n){return ho?Object(hl.call(n)):{}}function nn(n,t){var i=n.buffer,r=n.constructor;return new r(t?vy(i):i,n.byteOffset,n.length)}function yy(n,t,i){for(var e=i.length,r=-1,o=hu(n.length-e,0),u=-1,s=t.length,f=Array(s+o);++u<s;)f[u]=t[u];while(++r<e)f[i[r]]=n[r];while(o--)f[u++]=n[r++];return f}function py(n,t,i){for(var o=-1,s=i.length,r=-1,h=hu(n.length-s,0),f=-1,c=t.length,u=Array(h+c),e;++r<h;)u[r]=n[r];for(e=r;++f<c;)u[e+f]=t[f];while(++o<s)u[e+i[o]]=n[r++];return u}function lu(n,t){var i=-1,r=n.length;for(t||(t=Array(r));++i<r;)t[i]=n[i];return t}function wh(n,t,i){return fa(n,t,i)}function fa(n,t,i,r){var f,e,u,o;for(i||(i={}),f=-1,e=t.length;++f<e;)u=t[f],o=r?r(i[u],n[u],u,i,n):n[u],vl(i,u,o);return i}function wy(n,t){return wh(n,up(n),t)}function gc(n,t){return function(i,r){var u=t?t():{},f,o,e;if(r=dt(r),hi(i))for(f=-1,o=i.length;++f<o;)e=i[f],n(u,e,r(e),i);else tf(i,function(t,i,f){n(u,t,r(t),f)});return u}}function fh(t){return kt(function(i,r){var o=-1,u=r.length,f=u>1?r[u-1]:n,s=u>2?r[2]:n,e;for(f=typeof f=="function"?(u--,f):n,s&&uf(r[0],r[1],s)&&(f=u<3?n:f,u=1),i=Object(i);++o<u;)e=r[o],e&&t(i,e,f);return i})}function by(n,t){return function(i,r){if(i==null)return i;if(!du(i))return n(i,r);for(var f=i.length,u=t?f:-1,e=Object(i);t?u--:++u<f;)if(r(e[u],u,e)===!1)break;return i}}function ky(n){return function(t,i,r){for(var s=-1,f=Object(t),e=r(t),o=e.length,u;o--;)if(u=e[n?o:++s],i(f[u],u,f)===!1)break;return t}}function tn(n,t,i){function r(){var t=this&&this!==v&&this instanceof r?f:n;return t.apply(u?i:this,arguments)}var u=t&o,f=bh(n);return r}function dy(t){return function(i){i=hr(i);var r=ci.test(i)?c(i):n,u=r?r[0]:i.charAt(0),f=r?r.slice(1).join(""):i.slice(1);return u[t]()+f}}function eh(n){return function(t){return tt(gb(yb(t)),n,"")}}function bh(n){return function(){var t=arguments,i,r;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}return i=os(n.prototype),r=n.apply(i,t),lr(r)?r:i}}function rn(t,i,r){function f(){for(var o=arguments.length,c=o,s=Array(o),a=this&&this!==v&&this instanceof f?e:t,h=f.placeholder,l;c--;)s[c]=arguments[c];return l=o<3&&s[0]!==h&&s[o-1]!==h?[]:k(s,h),o-=l.length,o<r?tp(t,i,nl,h,n,s,l,n,n,r-o):u(a,this,s)}var e=bh(t);return f}function gy(t){return kt(function(i){var u,r,h,e;i=cr(i);var s=i.length,o=s,c=wu.prototype.thru;for(t&&i.reverse();o--;){if(u=i[o],typeof u!="function")throw new yu(f);c&&!r&&rl(u)=="wrapper"&&(r=new wu([],!0))}for(o=r?o:s;++o<s;)u=i[o],h=rl(u),e=h=="wrapper"?il(u):n,r=e&&ha(e[0])&&e[1]==(p|l|a|ii)&&!e[4].length&&e[9]==1?r[rl(e[0])].apply(r,e[3]):u.length==1&&ha(u)?r[h]():r.thru(u);return function(){var f=arguments,n=f[0],t,u;if(r&&f.length==1&&hi(n)&&n.length>=ht)return r.plant(n).value();for(t=0,u=s?i[t].apply(this,f):n;++t<s;)u=i[t].call(this,u);return u}})}function nl(t,i,r,u,f,e,s,h,c,a){function y(){for(var o=arguments.length,p=o,n=Array(o),it,ut,ft,l;p--;)n[p]=arguments[p];return(u&&(n=yy(n,u,f)),e&&(n=py(n,e,s)),(g||nt)&&(it=y.placeholder,ut=k(n,it),o-=ut.length,o<a))?tp(t,i,nl,it,r,n,ut,h,c,a-o):(ft=d?r:this,l=w?ft[t]:t,h?n=yn(n,h):tt&&n.length>1&&n.reverse(),b&&c<n.length&&(n.length=c),this&&this!==v&&this instanceof y&&(l=rt||bh(l)),l.apply(ft,n))}var b=i&p,d=i&o,w=i&it,g=i&l,nt=i&et,tt=i&tu,rt=w?n:bh(t);return y}function ea(n){return kt(function(t){return t=r(cr(t),dt()),kt(function(i){var r=this;return n(t,function(n){return u(n,r,i)})})})}function tl(t,i,r){var f,u,e;return(i=sr(i),f=ti(t),!i||f>=i)?"":(u=i-f,r=r===n?" ":r+"",e=wb(r,fc(u/ti(r))),ci.test(r)?c(e).slice(0,u).join(""):e.slice(0,u))}function un(n,t,i,r){function f(){for(var l=-1,h=arguments.length,t=-1,c=r.length,o=Array(c+h),a=this&&this!==v&&this instanceof f?s:n;++t<c;)o[t]=r[t];while(h--)o[t++]=arguments[++l];return u(a,e?i:this,o)}var e=t&o,s=bh(n);return f}function np(t){return function(i,r,u){return u&&typeof u!="number"&&uf(i,r,u)&&(r=u=n),i=yr(i),i=i===i?i:0,r===n?(r=i,i=0):r=yr(r)||0,u=u===n?i<r?1:-1:yr(u)||0,vg(i,r,u,t)}}function tp(t,i,r,u,f,e,s,h,c,v){var y=i&l,b=h?lu(h):n,k=y?s:n,d=y?n:s,g=y?e:n,nt=y?n:e,w,p;return i|=y?a:ot,i&=~(y?ot:a),i&nu||(i&=~(o|it)),w=[t,i,f,g,k,nt,d,b,c,v],p=r.apply(n,w),ha(t)&&ca(p,w),p.placeholder=u,p}function oa(n){var t=rh[n];return function(n,i){if(n=yr(n),i=sr(i),i){var r=(hr(n)+"e").split("e"),u=t(r[0]+"e"+(+r[1]+i));return r=(hr(u)+"e").split("e"),+(r[0]+"e"+(+r[1]-i))}return t(n)}}function ao(t,i,r,u,e,s,h,c){var w=i&it,y,b,k,p,v,d,g;if(!w&&typeof t!="function")throw new yu(f);return y=u?u.length:0,y||(i&=~(a|ot),u=e=n),h=h===n?h:hu(sr(h),0),c=c===n?c:sr(c),y-=e?e.length:0,i&ot&&(b=u,k=e,u=e=n),p=w?n:il(t),v=[t,i,r,u,e,b,k,s,h,c],p&&vn(v,p),t=v[0],i=v[1],r=v[2],u=v[3],e=v[4],c=v[9]=v[9]==null?w?0:t.length:hu(v[9]-y,0),!c&&i&(l|et)&&(i&=~(l|et)),d=i&&i!=o?i==l||i==et?rn(t,i,c):i!=a&&i!=(o|a)||e.length?nl.apply(n,v):un(t,i,r,u):tn(t,i,r),g=p?ia:ca,g(d,v)}function fn(t,i,r,u,f,e){var s=-1,y=f&rt,w=f&st,l=t.length,p=i.length,a,h,o,c,v;if(l!=p&&!(y&&p>l))return!1;if(a=e.get(t),a)return a==i;for(h=!0,e.set(t,i);++s<l;){if(o=t[s],c=i[s],u&&(v=y?u(c,o,s,i,t,e):u(o,c,s,t,i,e)),v!==n){if(v)continue;h=!1;break}if(w){if(!br(i,function(n){return o===n||r(o,n,u,f,e)})){h=!1;break}}else if(!(o===c||r(o,c,u,f,e))){h=!1;break}}return e["delete"](t),h}function en(n,t,i,r,u,f){var e,o;switch(i){case oi:return n.byteLength!=t.byteLength||!r(new ic(n),new ic(t))?!1:!0;case lt:case at:return+n==+t;case ui:return n.name==t.name&&n.message==t.message;case vt:return n!=+n?t!=+t:n==+t;case yt:case pt:return n==t+"";case d:e=gr;case g:return o=f&rt,e||(e=pi),(o||n.size==t.size)&&r(e(n),e(t),u,f|st);case ei:return!!ho&&hl.call(n)==hl.call(t)}return!1}function on(t,i,r,u,f,e){var y=f&rt,nt=f&st,w=vr(t),b=w.length,g=vr(i),tt=g.length,s,o,k,h,p,c,l,d,a,v;if(b!=tt&&!y)return!1;for(s=b;s--;)if(o=w[s],!(y?o in i:kl(i,o))||!(nt||o==g[s]))return!1;if(k=e.get(t),k)return k==i;for(h=!0,e.set(t,i),p=y;++s<b;){if(o=w[s],c=t[o],l=i[o],u&&(d=y?u(l,c,o,i,t,e):u(c,l,o,t,i,e)),!(d===n?c===l||r(c,l,u,f,e):d)){h=!1;break}p||(p=o=="constructor")}return h&&!p&&(a=t.constructor,v=i.constructor,a!=v&&"constructor"in t&&"constructor"in i&&!(typeof a=="function"&&a instanceof a&&typeof v=="function"&&v instanceof v)&&(h=!1)),e["delete"](t),h}function rl(n){for(var u=n.name+"",t=sc[u],f=t?t.length:0,i,r;f--;)if(i=t[f],r=i.func,r==null||r==n)return i.name;return u}function dt(){var n=bt.iteratee||rv;return n=n===rv?ty:n,arguments.length?n(arguments[0],arguments[1]):n}function sa(n){for(var t=ab(n),i=t.length;i--;)t[i][2]=an(t[i][1]);return t}function ul(t,i){var r=t==null?n:t[i];return dw(r)?r:n}function th(n){return vu.call(n)}function sn(n,t,i){for(var f=-1,e=i.length,u,r;++f<e;){u=i[f];r=u.size;switch(u.type){case"drop":n+=r;break;case"dropRight":t-=r;break;case"take":t=pu(t,n+r);break;case"takeRight":n=hu(n,t-r)}}return{start:n,end:t}}function fp(n,t,i){if(n==null)return!1;var r=i(n,t);return r||vo(t)||(t=gs(t),n=kh(n,t),n!=null&&(t=au(t),r=i(n,t))),r||dh(n&&n.length)&&b(t,n.length)&&(hi(n)||ch(n)||hh(n))}function hn(n){var i=n.length,t=n.constructor(i);return i&&typeof n[0]=="string"&&uu.call(n,"index")&&(t.index=n.index,t.input=n.input),t}function cn(t){var i=t.constructor;return os(gu(i)?i.prototype:n)}function ln(n,t,i){var r=n.constructor;switch(t){case oi:return vy(n);case lt:case at:return new r(+n);case ki:case di:case gi:case nr:case tr:case ir:case rr:case ur:case fr:return nn(n,i);case d:return bg(n);case vt:case pt:return new r(n);case yt:return kg(n);case g:return dg(n);case ei:return gg(n)}}function ep(t){var i=t?t.length:n;return dh(i)&&(hi(t)||ch(t)||hh(t))?kr(i,String):null}function uf(n,t,i){if(!lr(i))return!1;var r=typeof t;return(r=="number"?du(i)&&b(t,i.length):r=="string"&&t in i)?fo(i[t],n):!1}function vo(n,t){return typeof n=="number"?!0:!hi(n)&&(ye.test(n)||!ve.test(n)||t!=null&&n in Object(t))}function oh(n){var t=typeof n;return t=="number"||t=="boolean"||t=="string"&&n!=="__proto__"||n==null}function ha(n){var r=rl(n),t=bt[r],i;return typeof t!="function"||!(r in yi.prototype)?!1:n===t?!0:(i=il(t),!!i&&n===i[0])}function op(n){var t=n&&n.constructor,i=typeof t=="function"&&t.prototype||ns;return n===i}function an(n){return n===n&&!lr(n)}function vn(n,t){var f=n[1],u=t[1],e=f|u,s=e<(o|it|p),h=u==p&&f==l||u==p&&f==ii&&n[7].length<=t[8]||u==(p|ii)&&t[7].length<=t[8]&&f==l,i,r;return(s||h)?(u&o&&(n[2]=t[2],e|=f&o?0:nu),i=t[3],i&&(r=n[3],n[3]=r?yy(r,i,t[4]):lu(i),n[4]=r?k(n[3],bi):lu(t[4])),i=t[5],i&&(r=n[5],n[5]=r?py(r,i,t[6]):lu(i),n[6]=r?k(n[5],bi):lu(t[6])),i=t[7],i&&(n[7]=lu(i)),u&p&&(n[8]=n[8]==null?t[8]:pu(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=e,n):n}function sp(t,i,r,u,f,e){return lr(t)&&lr(i)&&(e.set(i,t),wc(t,i,sp,e)),t===n?ku(i):t}function kh(n,t){return t.length==1?n:nc(n,lo(t,0,-1))}function yn(t,i){for(var f=t.length,r=pu(i.length,f),e=lu(t),u;r--;)u=i[r],t[r]=b(u,f)?e[u]:n;return t}function hp(n){var t=[];return hr(n).replace(pe,function(n,i,r,u){t.push(r?u.replace(de,"$1"):i||n)}),t}function la(n){return ar(n)?n:[]}function ih(n){return typeof n=="function"?n:so}function cp(n){if(n instanceof yi)return n.clone();var t=new wu(n.__wrapped__,n.__chain__);return t.__actions__=lu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function pn(n,t){var i;if(t=hu(sr(t),0),i=n?n.length:0,!i||t<1)return[];for(var r=0,f=-1,u=Array(fc(i/t));r<i;)u[++f]=lo(n,r,r+=t);return u}function wn(n){for(var i=-1,u=n?n.length:0,f=-1,r=[],t;++i<u;)t=n[i],t&&(r[++f]=t);return r}function lp(t,i,r){var u=t?t.length:0;return u?(i=r||i===n?1:sr(i),lo(t,i<0?0:i,u)):[]}function ap(t,i,r){var u=t?t.length:0;return u?(i=r||i===n?1:sr(i),i=u-i,lo(t,0,i<0?0:i)):[]}function ntt(n,t){return n&&n.length?dc(n,dt(t,3),!0,!0):[]}function ttt(n,t){return n&&n.length?dc(n,dt(t,3),!0):[]}function itt(n,t,i,r){var u=n?n.length:0;return u?(i&&typeof i!="number"&&uf(n,t,i)&&(i=0,r=u),ug(n,t,i,r)):[]}function rtt(n,t){return n&&n.length?vi(n,dt(t,3)):-1}function utt(n,t){return n&&n.length?vi(n,dt(t,3),!0):-1}function ftt(n,t){var i=n?n.length:0;return i?cr(r(n,dt(t,3))):[]}function ett(n){var t=n?n.length:0;return t?cr(n):[]}function ott(n){var t=n?n.length:0;return t?cr(n,!0):[]}function stt(n){for(var i=-1,u=n?n.length:0,r={},t;++i<u;)t=n[i],bc(r,t[0],t[1]);return r}function vp(t){return t?t[0]:n}function htt(n,t,i){var r=n?n.length:0;return r?(i=sr(i),i<0&&(i=hu(r+i,0)),ft(n,t,i)):-1}function ctt(n){return ap(n,1)}function ytt(n,t){return n?gk.call(n,t):""}function au(t){var i=t?t.length:0;return i?t[i-1]:n}function ptt(t,i,r){var f=t?t.length:0,u;if(!f)return-1;if(u=f,r!==n&&(u=sr(r),u=(u<0?hu(f+u,0):pu(u,f-1))+1),i!==i)return vf(t,u,!0);while(u--)if(t[u]===i)return u;return-1}function pp(n,t){return n&&n.length&&t&&t.length?ag(n,t):n}function wtt(n,t,i){return n&&n.length&&t&&t.length?hy(n,t,dt(i)):n}function btt(n,t){var r=[],u;if(!(n&&n.length))return r;var i=-1,f=[],e=n.length;for(t=dt(t,3);++i<e;)u=n[i],t(u,i,n)&&(r.push(u),f.push(i));return cy(n,f),r}function aa(n){return n?id.call(n):n}function ktt(t,i,r){var u=t?t.length:0;return u?(r&&typeof r!="number"&&uf(t,i,r)?(i=0,r=u):(i=i==null?0:sr(i),r=r===n?u:sr(r)),lo(t,i,r)):[]}function dtt(n,t){return kc(n,t)}function gtt(n,t,i){return ra(n,t,dt(i))}function nit(n,t){var r=n?n.length:0,i;return r&&(i=kc(n,t),i<r&&fo(n[i],t))?i:-1}function tit(n,t){return kc(n,t,!0)}function iit(n,t,i){return ra(n,t,dt(i),!0)}function rit(n,t){var r=n?n.length:0,i;return r&&(i=kc(n,t,!0)-1,fo(n[i],t))?i:-1}function uit(n){return n&&n.length?pg(n):[]}function fit(n,t){return n&&n.length?ly(n,dt(t)):[]}function eit(n){return lp(n,1)}function oit(t,i,r){return(t&&t.length)?(i=r||i===n?1:sr(i),lo(t,0,i<0?0:i)):[]}function sit(t,i,r){var u=t?t.length:0;return u?(i=r||i===n?1:sr(i),i=u-i,lo(t,i<0?0:i,u)):[]}function hit(n,t){return n&&n.length?dc(n,dt(t,3),!1,!0):[]}function cit(n,t){return n&&n.length?dc(n,dt(t,3)):[]}function yit(n){return n&&n.length?nh(n):[]}function pit(n,t){return n&&n.length?nh(n,dt(t)):[]}function wit(t,i){return t&&t.length?nh(t,n,i):[]}function va(n){if(!(n&&n.length))return[];var t=0;return n=nt(n,function(n){if(ar(n))return t=hu(n.length,t),!0}),kr(t,function(t){return r(n,na(t))})}function bp(t,i){if(!(t&&t.length))return[];var f=va(t);return i==null?f:r(f,function(t){return u(i,n,t)})}function trt(t,i){for(var r=-1,f=t?t.length:0,e=i?i.length:0,u={};++r<f;)bc(u,t[r],r<e?i[r]:n);return u}function dp(n){var t=bt(n);return t.__chain__=!0,t}function irt(n,t){return t(n),n}function fl(n,t){return t(n)}function rrt(){return dp(this)}function urt(){return new wu(this.value(),this.__chain__)}function frt(n){return this.map(n).flatten()}function ert(){this.__values__===n&&(this.__values__=nv(this.value()));var t=this.__index__>=this.__values__.length,i=t?n:this.__values__[this.__index__++];return{done:t,value:i}}function ort(){return this}function srt(t){for(var u,r=this,i,f;r instanceof hc;)i=cp(r),i.__index__=0,i.__values__=n,u?f.__wrapped__=i:u=i,f=i,r=r.__wrapped__;return f.__wrapped__=t,u}function hrt(){var i=this.__wrapped__,t;return i instanceof yi?(t=i,this.__actions__.length&&(t=new yi(this)),t=t.reverse(),t.__actions__.push({func:fl,args:[aa],thisArg:n}),new wu(t,this.__chain__)):this.thru(aa)}function crt(){return ay(this.__wrapped__,this.__actions__)}function lrt(t,i,r){var u=hi(t)?ff:rg;return r&&uf(t,i,r)&&(i=n),u(t,dt(i,3))}function art(n,t){var i=hi(n)?nt:ny;return i(n,dt(t,3))}function vrt(t,i){if(i=dt(i,3),hi(t)){var r=vi(t,i);return r>-1?t[r]:n}return ai(t,i,tf)}function yrt(t,i){if(i=dt(i,3),hi(t)){var r=vi(t,i,!0);return r>-1?t[r]:n}return ai(t,i,vc)}function tw(n,t){return typeof t=="function"&&hi(n)?e(n,t):tf(n,ih(t))}function iw(n,t){return typeof t=="function"&&hi(n)?ls(n,t):vc(n,ih(t))}function prt(n,t,i,r){n=du(n)?n:ol(n);i=i&&!r?sr(i):0;var u=n.length;return i<0&&(i=hu(u+i,0)),ch(n)?i<=u&&n.indexOf(t,i)>-1:!!u&&ft(n,t,i)>-1}function wrt(n,t){var i=hi(n)?r:ry;return i(n,dt(t,3))}function brt(t,i,r,u){return t==null?[]:(hi(i)||(i=i==null?[]:[i]),r=u?n:r,hi(r)||(r=r==null?[]:[r]),ey(t,i,r))}function krt(n,t,i){var r=hi(n)?tt:ef,u=arguments.length<3;return r(n,dt(t,4),i,u,tf)}function drt(n,t,i){var r=hi(n)?as:ef,u=arguments.length<3;return r(n,dt(t,4),i,u,vc)}function grt(n,t){var i=hi(n)?nt:ny;return t=dt(t,3),i(n,function(n,i,r){return!t(n,i,r)})}function nut(t){var i=du(t)?t:ol(t),r=i.length;return r>0?i[ta(0,r-1)]:n}function ow(n,t){var r=-1,i=nv(n),f=i.length,o=f-1,u,e;for(t=uh(sr(t),0,f);++r<t;)u=ta(r,o),e=i[u],i[u]=i[r],i[r]=e;return i.length=t,i}function tut(n){return ow(n,h)}function sw(n){if(n==null)return 0;if(du(n)){var t=n.length;return t&&ch(n)?ti(n):t}return vr(n).length}function iut(t,i,r){var u=hi(t)?br:yg;return r&&uf(t,i,r)&&(i=n),u(t,dt(i,3))}function rut(n,t){if(typeof t!="function")throw new yu(f);return n=sr(n),function(){if(--n<1)return t.apply(this,arguments)}}function cw(t,i,r){return i=r?n:i,i=t&&i==null?t.length:i,ao(t,p,n,n,n,n,i)}function lw(t,i){var r;if(typeof i!="function")throw new yu(f);return t=sr(t),function(){return--t>0&&(r=i.apply(this,arguments)),t<=1&&(i=n),r}}function aw(t,i,r){i=r?n:i;var u=ao(t,l,n,n,n,n,n,i);return u.placeholder=aw.placeholder,u}function vw(t,i,r){i=r?n:i;var u=ao(t,et,n,n,n,n,n,i);return u.placeholder=vw.placeholder,u}function yw(t,i,r){function b(){u&&ah(u);e&&ah(e);a=0;o=e=s=u=l=n}function k(i,r){r&&ah(r);e=u=l=n;i&&(a=sh(),h=t.apply(s,o),u||e||(o=s=n))}function d(){var n=i-(sh()-c);n<=0||n>i?k(l,e):u=rc(d,n)}function g(){return(u&&l||e&&y)&&(h=t.apply(s,o)),b(),h}function nt(){k(y,u)}function w(){var w,f,r;return o=arguments,c=sh(),s=this,l=y&&(u||!p),v===!1?w=p&&!u:(e||p||(a=c),f=v-(c-a),r=f<=0||f>v,r?(e&&(e=ah(e)),a=c,h=t.apply(s,o)):e||(e=rc(nt,f))),r&&u?u=ah(u):u||i===v||(u=rc(d,i)),w&&(r=!0,h=t.apply(s,o)),!r||u||e||(o=s=n),h}var o,e,h,c,s,u,l,a=0,p=!1,v=!1,y=!0;if(typeof t!="function")throw new yu(f);return i=yr(i)||0,lr(r)&&(p=!!r.leading,v="maxWait"in r&&hu(yr(r.maxWait)||0,i),y="trailing"in r?!!r.trailing:y),w.cancel=b,w.flush=g,w}function uut(n){return ao(n,tu)}function pa(n,t){if(typeof n!="function"||t&&typeof t!="function")throw new yu(f);var i=function(){var r=arguments,u=t?t.apply(this,r):r[0],f=i.cache,e;return f.has(u)?f.get(u):(e=n.apply(this,r),i.cache=f.set(u,e),e)};return i.cache=new pa.Cache,i}function fut(n){if(typeof n!="function")throw new yu(f);return function(){return!n.apply(this,arguments)}}function eut(n){return lw(2,n)}function kt(t,i){if(typeof t!="function")throw new yu(f);return i=hu(i===n?t.length-1:sr(i),0),function(){for(var r=arguments,n=-1,o=hu(r.length-i,0),f=Array(o),e;++n<o;)f[n]=r[i+n];switch(i){case 0:return t.call(this,f);case 1:return t.call(this,r[0],f);case 2:return t.call(this,r[0],r[1],f)}for(e=Array(i+1),n=-1;++n<i;)e[n]=r[n];return e[i]=f,u(t,this,e)}}function hut(n){if(typeof n!="function")throw new yu(f);return function(t){return u(n,this,t)}}function cut(n,t,i){var r=!0,u=!0;if(typeof n!="function")throw new yu(f);return lr(i)&&(r="leading"in i?!!i.leading:r,u="trailing"in i?!!i.trailing:u),yw(n,t,{leading:r,maxWait:t,trailing:u})}function lut(n){return cw(n,1)}function aut(n,t){return t=t==null?so:t,wa(t,n)}function vut(n){return ku(n)}function yut(n,t){return ku(n,!1,t)}function put(n){return ku(n,!0)}function wut(n,t){return ku(n,!0,t)}function fo(n,t){return n===t||n!==n&&t!==t}function ba(n,t){return n>t}function but(n,t){return n>=t}function hh(n){return ar(n)&&uu.call(n,"callee")&&(!cv.call(n,"callee")||vu.call(n)==ut)}function du(n){return n!=null&&!(typeof n=="function"&&gu(n))&&dh(rp(n))}function ar(n){return cu(n)&&du(n)}function kut(n){return n===!0||n===!1||cu(n)&&vu.call(n)==lt}function dut(n){return cu(n)&&vu.call(n)==at}function gut(n){return!!n&&n.nodeType===1&&cu(n)&&!da(n)}function nft(n){return!cu(n)||gu(n.splice)?!sw(n):!vr(n).length}function tft(n,t){return ph(n,t)}function ift(t,i,r){r=typeof r=="function"?r:n;var u=r?r(t,i):n;return u===n?ph(t,i,r):!!u}function ka(n){return cu(n)&&typeof n.message=="string"&&vu.call(n)==ui}function rft(n){return typeof n=="number"&&dk(n)}function gu(n){var t=lr(n)?vu.call(n):"";return t==fi||t==ru}function kw(n){return typeof n=="number"&&n==sr(n)}function dh(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=w}function lr(n){var t=typeof n;return!!n&&(t=="object"||t=="function")}function cu(n){return!!n&&typeof n=="object"}function uft(n,t){return n===t||gl(n,t,sa(t))}function fft(t,i,r){return r=typeof r=="function"?r:n,gl(t,i,sa(i),r)}function eft(n){return gw(n)&&n!=+n}function dw(n){return n==null?!1:gu(n)?ev.test(is.call(n)):cu(n)&&(ni(n)?ev:ro).test(n)}function oft(n){return n===null}function sft(n){return n==null}function gw(n){return typeof n=="number"||cu(n)&&vu.call(n)==vt}function da(n){var i,t;return!cu(n)||vu.call(n)!=s||ni(n)?!1:(i=ns,typeof n.constructor=="function"&&(i=hv(n)),i===null)?!0:(t=i.constructor,typeof t=="function"&&t instanceof t&&is.call(t)==wk)}function nb(n){return lr(n)&&vu.call(n)==yt}function hft(n){return kw(n)&&n>=-w&&n<=w}function ch(n){return typeof n=="string"||!hi(n)&&cu(n)&&vu.call(n)==pt}function tb(n){return typeof n=="symbol"||cu(n)&&vu.call(n)==ei}function lh(n){return cu(n)&&dh(n.length)&&!!i[vu.call(n)]}function cft(t){return t===n}function ga(n,t){return n<t}function lft(n,t){return n<=t}function nv(n){if(!n)return[];if(du(n))return ch(n)?c(n):lu(n);if(rs&&n[rs])return yf(n[rs]());var t=th(n),i=t==d?gr:t==g?pi:ol;return i(n)}function sr(n){var i,t;return n?(n=yr(n),n===wi||n===-wi)?(i=n<0?-1:1,i*ie):(t=n%1,n===n?t?n-t:n:0):n===0?n:0}function ib(n){return n?uh(sr(n),0,h):0}function yr(n){var t,i;return(lr(n)&&(t=gu(n.valueOf)?n.valueOf():n,n=lr(t)?t+"":t),typeof n!="string")?n===0?n:+n:(n=n.replace(or,""),i=io.test(n),i||uo.test(n)?fs(n.slice(2),i?2:8):to.test(n)?re:+n)}function rb(n){return wh(n,bu(n))}function aft(n){return uh(sr(n),-w,w)}function hr(n){if(typeof n=="string")return n;if(n==null)return"";if(tb(n))return ho?fd.call(n):"";var t=n+"";return t=="0"&&1/n==-wi?"-0":t}function wft(n,t){var i=os(n);return t?dv(i,t):i}function bft(n,t){return ai(n,dt(t,3),rf,!0)}function kft(n,t){return ai(n,dt(t,3),wl,!0)}function dft(n,t){return n==null?n:yc(n,ih(t),bu)}function gft(n,t){return n==null?n:pl(n,ih(t),bu)}function net(n,t){return n&&rf(n,ih(t))}function tet(n,t){return n&&wl(n,ih(t))}function iet(n){return n==null?[]:pc(n,vr(n))}function ret(n){return n==null?[]:pc(n,bu(n))}function nc(t,i,r){var u=t==null?n:bl(t,i);return u===n?r:u}function ob(n,t){return fp(n,t,kl)}function sb(n,t){return fp(n,t,eg)}function uet(n,t,i){return tt(vr(n),function(r,u){var f=n[u];return t&&!i?uu.call(r,f)?r[f].push(u):r[f]=[u]:r[f]=u,r},{})}function vr(n){var r=op(n),t;if(!(r||du(n)))return hg(n);var u=ep(n),f=!!u,i=u||[],e=i.length;for(t in n)!kl(n,t)||f&&(t=="length"||b(t,e))||r&&t=="constructor"||i.push(t);return i}function bu(n){for(var r=-1,e=op(n),u=iy(n),o=u.length,f=ep(n),s=!!f,i=f||[],h=i.length,t;++r<o;)t=u[r],s&&(t=="length"||b(t,h))||t=="constructor"&&(e||!uu.call(n,t))||i.push(t);return i}function fet(n,t){var i={};return t=dt(t,3),rf(n,function(n,r,u){i[t(n,r,u)]=n}),i}function eet(n,t){var i={};return t=dt(t,3),rf(n,function(n,r,u){i[r]=t(n,r,u)}),i}function het(n,t){return t=dt(t),sy(n,function(n){return!t(n)})}function cet(n,t){return n==null?{}:sy(n,dt(t))}function aet(t,i,r){if(vo(i,t))u=t==null?n:t[i];else{i=gs(i);var u=nc(t,i);t=kh(t,i)}return u===n&&(u=r),gu(u)?u.call(t):u}function vet(n,t,i){return n==null?n:bc(n,t,i)}function yet(t,i,r,u){return u=typeof u=="function"?u:n,t==null?t:bc(t,i,r,u)}function ab(n){return sf(n,vr(n))}function pet(n){return sf(n,bu(n))}function wet(t,i,r){var f=hi(t)||lh(t),u;return i=dt(i,4),r==null&&(f||lr(t)?(u=t.constructor,r=f?hi(t)?new u:[]:os(gu(u)?u.prototype:n)):r={}),(f?e:rf)(t,function(n,t,u){return i(r,n,t,u)}),r}function bet(n,t){return n==null?!0:wg(n,t)}function ol(n){return n?dr(n,vr(n)):[]}function ket(n){return n==null?dr(n,bu(n)):[]}function det(t,i,r){return r===n&&(r=i,i=n),r!==n&&(r=yr(r),r=r===r?r:0),i!==n&&(i=yr(i),i=i===i?i:0),uh(yr(t),i,r)}function get(t,i,r){return i=yr(i)||0,r===n?(r=i,i=0):r=yr(r)||0,t=yr(t),og(t,i,r)}function not(t,i,r){var f,u;return(r&&typeof r!="boolean"&&uf(t,i,r)&&(i=r=n),r===n&&(typeof i=="boolean"?(r=i,i=n):typeof t=="boolean"&&(r=t,t=n)),t===n&&i===n?(t=0,i=1):(t=yr(t)||0,i===n?(i=t,t=0):i=yr(i)||0),t>i&&(f=t,t=i,i=f),r||t%1||i%1)?(u=lv(),pu(t+u*(i-t+us("1e-"+((u+"").length-1))),i)):ta(t,i)}function tv(n){return pb(hr(n).toLowerCase())}function yb(n){return n=hr(n),n&&n.replace(eo,ps).replace(yo,"")}function tot(t,i,r){t=hr(t);i=typeof i=="string"?i:i+"";var u=t.length;return r=r===n?u:uh(sr(r),0,u),r-=i.length,r>=0&&t.indexOf(i,r)==r}function iot(n){return n=hr(n),n&&ce.test(n)?n.replace(eu,ws):n}function rot(n){return n=hr(n),n&&we.test(n)?n.replace(er,"\\$&"):n}function oot(n,t,i){var r;if(n=hr(n),t=sr(t),r=ti(n),!t||r>=t)return n;var u=(t-r)/2,f=ec(u),e=fc(u);return tl("",f,i)+n+tl("",e,i)}function sot(n,t,i){return n=hr(n),n+tl(n,t,i)}function hot(n,t,i){return n=hr(n),tl(n,t,i)+n}function cot(n,t,i){return i||t==null?t=0:t&&(t=+t),n=hr(n).replace(or,""),td(n,t||(no.test(n)?16:10))}function wb(n,t){n=hr(n);t=sr(t);var i="";if(!n||t<1||t>w)return i;do t%2&&(i+=n),t=ec(t/2),n+=n;while(t);return i}function lot(){var n=arguments,t=hr(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function aot(n,t,i){return hr(n).split(t,i)}function vot(n,t,i){return n=hr(n),i=uh(sr(i),0,n.length),n.lastIndexOf(t,i)==i}function yot(t,i,r){var s=bt.templateSettings,e,f;r&&uf(t,i,r)&&(i=n);t=hr(t);i=gh({},i,s,ll);var h=gh({},i.imports,s.imports,ll),c=vr(h),y=dr(h,c),l,o,a=0,v=i.interpolate||si,u="__p += '",p=sl((i.escape||si).source+"|"+v.source+"|"+(v===ou?ge:si).source+"|"+(i.evaluate||si).source+"|$","g"),w="//# sourceURL="+("sourceURL"in i?i.sourceURL:"lodash.templateSources["+ ++go+"]")+"\n";if(t.replace(p,function(n,i,r,f,e,s){return r||(r=f),u+=t.slice(a,s).replace(oo,bs),i&&(l=!0,u+="' +\n__e("+i+") +\n'"),e&&(o=!0,u+="';\n"+e+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),a=s+n.length,n}),u+="';\n",e=i.variable,e||(u="with (obj) {\n"+u+"\n}\n"),u=(o?u.replace(ee,""):u).replace(oe,"$1").replace(se,"$1;"),u="function("+(e||"obj")+") {\n"+(e?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}",f=iv(function(){return Function(c,w+"return "+u).apply(n,y)}),f.source=u,ka(f))throw f;return f}function pot(n){return hr(n).toLowerCase()}function wot(n){return hr(n).toUpperCase()}function bot(t,i,r){if(t=hr(t),!t)return t;if(r||i===n)return t.replace(or,"");if(i=i+"",!i)return t;var u=c(t),f=c(i);return u.slice(cf(u,f),lf(u,f)+1).join("")}function kot(t,i,r){if(t=hr(t),!t)return t;if(r||i===n)return t.replace(ke,"");if(i=i+"",!i)return t;var u=c(t);return u.slice(0,lf(u,c(i))+1).join("")}function dot(t,i,r){if(t=hr(t),!t)return t;if(r||i===n)return t.replace(be,"");if(i=i+"",!i)return t;var u=c(t);return u.slice(cf(u,c(i))).join("")}function got(t,i){var s=bf,e=kf,r,h,o,u,f,v,y,l,a;if(lr(i)&&(r="separator"in i?i.separator:r,s="length"in i?sr(i.length):s,e="omission"in i?hr(i.omission):e),t=hr(t),h=t.length,ci.test(t)&&(o=c(t),h=o.length),s>=h)return t;if(u=s-ti(e),u<1)return e;if(f=o?o.slice(0,u).join(""):t.slice(0,u),r===n)return f+e;if(o&&(u+=f.length-u),nb(r)){if(t.slice(u).search(r)){for(y=f,r.global||(r=sl(r.source,hr(su.exec(r))+"g")),r.lastIndex=0;v=r.exec(y);)l=v.index;f=f.slice(0,l===n?u:l)}}else t.indexOf(r,u)!=u&&(a=f.lastIndexOf(r),a>-1&&(f=f.slice(0,a)));return f+e}function nst(n){return n=hr(n),n&&he.test(n)?n.replace(fu,ks):n}function gb(t,i,r){return t=hr(t),i=r?n:i,i===n&&(i=bo.test(t)?wo:po),t.match(i)||[]}function tst(n){var t=n?n.length:0,i=dt();return n=t?r(n,function(n){if(typeof n[1]!="function")throw new yu(f);return[i(n[0]),n[1]]}):[],kt(function(i){for(var f=-1,r;++f<t;)if(r=n[f],u(r[0],this,i))return u(r[1],this,i)})}function ist(n){return ig(ku(n,!0))}function rst(n){return function(){return n}}function so(n){return n}function rv(n){return cu(n)&&!hi(n)?rk(n):ty(n)}function rk(n){return uy(ku(n,!0))}function ust(n,t){return fy(n,ku(t,!0))}function uv(n,t,i){var u=vr(t),r=pc(t,u),f,o;return i!=null||lr(t)&&(r.length||!u.length)||(i=t,t=n,n=this,r=pc(t,vr(t))),f=lr(i)&&"chain"in i?i.chain:!0,o=gu(n),e(r,function(i){var r=t[i];n[i]=r;o&&(n.prototype[i]=function(){var i=this.__chain__,t,u;return f||i?(t=n(this.__wrapped__),u=t.__actions__=lu(this.__actions__),u.push({func:r,args:arguments,thisArg:n}),t.__chain__=i,t):r.apply(n,gt([this.value()],arguments))})}),n}function fst(){return v._=bk,this}function fv(){}function est(n){return n=sr(n),function(){return arguments[n]}}function ek(n){return vo(n)?na(n):lg(n)}function cst(t){return function(i){return t==null?n:bl(t,i)}}function lst(n,t){var i,r,u;if(n=sr(n),n<1||n>w)return[];for(i=h,r=pu(n,h),t=ih(t),n-=h,u=kr(r,t);++i<n;)t(i);return u}function ast(n){return hi(n)?r(n,String):hp(n)}function vst(n){var t=++pk;return hr(n)+t}function yst(t,i){var r;return t!==n&&(r=t),i!==n&&(r=r===n?i:r+i),r}function pst(t){return t&&t.length?li(t,so,ba):n}function wst(t,i){return t&&t.length?li(t,dt(i),ba):n}function bst(n){return ak(n)/(n?n.length:0)}function kst(t){return t&&t.length?li(t,so,ga):n}function dst(t,i){return t&&t.length?li(t,dt(i),ga):n}function gst(t,i){var r;return t!==n&&(r=t),i!==n&&(r=r===n?i:r-i),r}function ak(t){return t&&t.length?of(t,so):n}function nht(t,i){return t&&t.length?of(t,dt(i)):n}var os,tf,vc,yc,pl,ia,ip,il,rp,up,ca,yp,wp,kp,gp,nw,rw,uw,fw,ew,hw,sh,el,ya,pw,ww,hi,fb,eb,hb,lb,vb,bb,kb,db,iv,nk,tk,ik,uk,fk,ok,sk,hk,ck,lk;wt=wt?y.defaults({},wt,y.pick(v,ko)):v;var vk=wt.Date,yk=wt.Error,rh=wt.Math,sl=wt.RegExp,yu=wt.TypeError,tc=wt.Array.prototype,ns=wt.Object.prototype,is=wt.Function.prototype.toString,uu=ns.hasOwnProperty,pk=0,wk=is.call(Object),vu=ns.toString,bk=v._,ev=sl("^"+is.call(uu).replace(er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ho=wt.Symbol,ov=wt.Reflect,ic=wt.Uint8Array,ah=wt.clearTimeout,sv=ov?ov.enumerate:n,hv=Object.getPrototypeOf,kk=Object.getOwnPropertySymbols,rs=typeof(rs=ho&&ho.iterator)=="symbol"?rs:n,cv=ns.propertyIsEnumerable,rc=wt.setTimeout,uc=tc.splice,fc=rh.ceil,ec=rh.floor,dk=wt.isFinite,gk=tc.join,nd=Object.keys,hu=rh.max,pu=rh.min,td=wt.parseInt,lv=rh.random,id=tc.reverse,nf=ul(wt,"Map"),es=ul(wt,"Set"),av=ul(wt,"WeakMap"),vh=ul(Object,"create"),oc=av&&new av,rd=nf?is.call(nf):"",ud=es?is.call(es):"",vv=ho?ho.prototype:n,hl=ho?vv.valueOf:n,fd=ho?vv.toString:n,sc={};bt.templateSettings={escape:le,evaluate:ae,interpolate:ou,variable:"",imports:{_:bt}};os=function(){function t(){}return function(i){if(lr(i)){t.prototype=i;var r=new t;t.prototype=n}return r||{}}}();tf=by(rf);vc=by(wl,!0);yc=ky();pl=ky(!0);sv&&!cv.call({valueOf:1},"valueOf")&&(iy=function(n){return yf(sv(n))});ia=oc?function(n,t){return oc.set(n,t),n}:so;ip=(es&&new es([1,2]).size===2)?function(n){return new es(n)}:fv;il=oc?function(n){return oc.get(n)}:fv;rp=na("length");up=kk||function(){return[]};(nf&&th(new nf)!=d||es&&th(new es)!=g)&&(th=function(n){var i=vu.call(n),r=i==s?n.constructor:null,t=typeof r=="function"?is.call(r):"";if(t){if(t==rd)return d;if(t==ud)return g}return i});ca=function(){var n=0,t=0;return function(i,r){var u=sh(),f=gf-(u-t);if(t=u,f>0){if(++n>=df)return i}else n=0;return ia(i,r)}}();var bn=kt(function(n,t){return t=cr(t),cs(hi(n)?n:[Object(n)],t)}),kn=kt(function(n,t){return ar(n)?ds(n,cr(t,!1,!0)):[]}),dn=kt(function(t,i){var r=au(i);return ar(r)&&(r=n),ar(t)?ds(t,cr(i,!1,!0),dt(r)):[]}),gn=kt(function(t,i){var r=au(i);return ar(r)&&(r=n),ar(t)?ds(t,cr(i,!1,!0),n,r):[]});var ltt=kt(function(n){var t=r(n,la);return t.length&&t[0]===n[0]?dl(t):[]}),att=kt(function(t){var u=au(t),i=r(t,la);return u===au(i)?u=n:i.pop(),i.length&&i[0]===t[0]?dl(i,dt(u)):[]}),vtt=kt(function(t){var u=au(t),i=r(t,la);return u===au(i)?u=n:i.pop(),i.length&&i[0]===t[0]?dl(i,n,u):[]});yp=kt(pp);wp=kt(function(n,t){t=r(cr(t),String);var i=yl(n,t);return cy(n,t.sort(af)),i});var lit=kt(function(n){return nh(cr(n,!1,!0))}),ait=kt(function(t){var i=au(t);return ar(i)&&(i=n),nh(cr(t,!1,!0),dt(i))}),vit=kt(function(t){var i=au(t);return ar(i)&&(i=n),nh(cr(t,!1,!0),n,i)});var bit=kt(function(n,t){return ar(n)?ds(n,t):[]}),kit=kt(function(n){return ua(nt(n,ar))}),dit=kt(function(t){var i=au(t);return ar(i)&&(i=n),ua(nt(t,ar),dt(i))}),git=kt(function(t){var i=au(t);return ar(i)&&(i=n),ua(nt(t,ar),n,i)}),nrt=kt(va);kp=kt(function(t){var r=t.length,i=r>1?t[r-1]:n;return i=typeof i=="function"?(t.pop(),i):n,bp(t,i)});gp=kt(function(t){t=cr(t);var r=t.length,u=r?t[0]:0,i=this.__wrapped__,f=function(n){return yl(n,t)};return r>1||this.__actions__.length||!(i instanceof yi)||!b(u)?this.thru(f):(i=i.slice(u,+u+(r?1:0)),i.__actions__.push({func:fl,args:[f],thisArg:n}),new wu(i,this.__chain__).thru(function(t){return r&&!t.length&&t.push(n),t}))});nw=gc(function(n,t,i){uu.call(n,i)?++n[i]:n[i]=1});rw=gc(function(n,t,i){uu.call(n,i)?n[i].push(t):n[i]=[t]});uw=kt(function(t,i,r){var e=-1,o=typeof i=="function",s=vo(i),f=du(t)?Array(t.length):[];return tf(t,function(t){var h=o?i:s&&t!=null?t[i]:n;f[++e]=h?u(h,t,r):yh(t,i,r)}),f});fw=gc(function(n,t,i){n[i]=t});ew=gc(function(n,t,i){n[i?0:1].push(t)},function(){return[[],[]]});hw=kt(function(n,t){if(n==null)return[];var i=t.length;return i>1&&uf(n,t[0],t[1])?t=[]:i>2&&uf(t[0],t[1],t[2])&&(t.length=1),ey(n,cr(t),[])});sh=vk.now;el=kt(function(n,t,i){var r=o,u;return i.length&&(u=k(i,el.placeholder),r|=a),ao(n,r,t,i,u)});ya=kt(function(n,t,i){var r=o|it,u;return i.length&&(u=k(i,ya.placeholder),r|=a),ao(t,r,n,i,u)});pw=kt(function(n,t){return gv(n,1,t)});ww=kt(function(n,t,i){return gv(n,yr(t)||0,i)});var out=kt(function(n,t){t=r(cr(t),dt());var i=t.length;return kt(function(r){for(var f=-1,e=pu(r.length,i);++f<e;)r[f]=t[f].call(this,r[f]);return u(n,this,r)})}),wa=kt(function(t,i){var r=k(i,wa.placeholder);return ao(t,a,n,i,r)}),bw=kt(function(t,i){var r=k(i,bw.placeholder);return ao(t,ot,n,i,r)}),sut=kt(function(t,i){return ao(t,ii,n,n,n,cr(i))});hi=Array.isArray;var vft=fh(function(n,t){wh(t,vr(t),n)}),ub=fh(function(n,t){wh(t,bu(t),n)}),gh=fh(function(n,t,i){fa(t,bu(t),n,i)}),yft=fh(function(n,t,i){fa(t,vr(t),n,i)}),pft=kt(function(n,t){return yl(n,cr(t))});fb=kt(function(t){return t.push(n,ll),u(gh,n,t)});eb=kt(function(t){return t.push(n,sp),u(cb,n,t)});hb=kt(yh);var oet=fh(function(n,t){wc(n,t)}),cb=fh(function(n,t,i){wc(n,t,i)}),set=kt(function(n,t){return n==null?{}:(t=r(cr(t),String),oy(n,ds(bu(n),t)))});lb=kt(function(n,t){return n==null?{}:oy(n,cr(t))});vb=eh(function(n,t,i){return t=t.toLowerCase(),n+(i?tv(t):t)});var uot=eh(function(n,t,i){return n+(i?"-":"")+t.toLowerCase()}),fot=eh(function(n,t,i){return n+(i?" ":"")+t.toLowerCase()}),eot=dy("toLowerCase"),pb=dy("toUpperCase");bb=eh(function(n,t,i){return n+(i?"_":"")+t.toLowerCase()});kb=eh(function(n,t,i){return n+(i?" ":"")+tv(t)});db=eh(function(n,t,i){return n+(i?" ":"")+t.toUpperCase()});iv=kt(function(t,i){try{return u(t,n,i)}catch(r){return ka(r)?r:new yk(r)}});nk=kt(function(n,t){return e(cr(t),function(t){n[t]=el(n[t],n)}),n});tk=gy();ik=gy(!0);uk=kt(function(n,t){return function(i){return yh(i,n,t)}});fk=kt(function(n,t){return function(i){return yh(n,i,t)}});var ost=ea(r),sst=ea(ff),hst=ea(br);return ok=np(),sk=np(!0),hk=oa("ceil"),ck=oa("floor"),lk=oa("round"),bt.prototype=hc.prototype,wu.prototype=os(hc.prototype),wu.prototype.constructor=wu,yi.prototype=os(hc.prototype),yi.prototype.constructor=yi,cl.prototype=vh?vh(null):ns,ts.prototype.clear=ad,ts.prototype["delete"]=vd,ts.prototype.get=yd,ts.prototype.has=pd,ts.prototype.set=wd,cc.prototype.push=bd,co.prototype.clear=kd,co.prototype["delete"]=dd,co.prototype.get=gd,co.prototype.has=ng,co.prototype.set=tg,pa.Cache=ts,bt.after=rut,bt.ary=cw,bt.assign=vft,bt.assignIn=ub,bt.assignInWith=gh,bt.assignWith=yft,bt.at=pft,bt.before=lw,bt.bind=el,bt.bindAll=nk,bt.bindKey=ya,bt.chain=dp,bt.chunk=pn,bt.compact=wn,bt.concat=bn,bt.cond=tst,bt.conforms=ist,bt.constant=rst,bt.countBy=nw,bt.create=wft,bt.curry=aw,bt.curryRight=vw,bt.debounce=yw,bt.defaults=fb,bt.defaultsDeep=eb,bt.defer=pw,bt.delay=ww,bt.difference=kn,bt.differenceBy=dn,bt.differenceWith=gn,bt.drop=lp,bt.dropRight=ap,bt.dropRightWhile=ntt,bt.dropWhile=ttt,bt.fill=itt,bt.filter=art,bt.flatMap=ftt,bt.flatten=ett,bt.flattenDeep=ott,bt.flip=uut,bt.flow=tk,bt.flowRight=ik,bt.fromPairs=stt,bt.functions=iet,bt.functionsIn=ret,bt.groupBy=rw,bt.initial=ctt,bt.intersection=ltt,bt.intersectionBy=att,bt.intersectionWith=vtt,bt.invert=uet,bt.invokeMap=uw,bt.iteratee=rv,bt.keyBy=fw,bt.keys=vr,bt.keysIn=bu,bt.map=wrt,bt.mapKeys=fet,bt.mapValues=eet,bt.matches=rk,bt.matchesProperty=ust,bt.memoize=pa,bt.merge=oet,bt.mergeWith=cb,bt.method=uk,bt.methodOf=fk,bt.mixin=uv,bt.negate=fut,bt.nthArg=est,bt.omit=set,bt.omitBy=het,bt.once=eut,bt.orderBy=brt,bt.over=ost,bt.overArgs=out,bt.overEvery=sst,bt.overSome=hst,bt.partial=wa,bt.partialRight=bw,bt.partition=ew,bt.pick=lb,bt.pickBy=cet,bt.property=ek,bt.propertyOf=cst,bt.pull=yp,bt.pullAll=pp,bt.pullAllBy=wtt,bt.pullAt=wp,bt.range=ok,bt.rangeRight=sk,bt.rearg=sut,bt.reject=grt,bt.remove=btt,bt.rest=kt,bt.reverse=aa,bt.sampleSize=ow,bt.set=vet,bt.setWith=yet,bt.shuffle=tut,bt.slice=ktt,bt.sortBy=hw,bt.sortedUniq=uit,bt.sortedUniqBy=fit,bt.split=aot,bt.spread=hut,bt.tail=eit,bt.take=oit,bt.takeRight=sit,bt.takeRightWhile=hit,bt.takeWhile=cit,bt.tap=irt,bt.throttle=cut,bt.thru=fl,bt.toArray=nv,bt.toPairs=ab,bt.toPairsIn=pet,bt.toPath=ast,bt.toPlainObject=rb,bt.transform=wet,bt.unary=lut,bt.union=lit,bt.unionBy=ait,bt.unionWith=vit,bt.uniq=yit,bt.uniqBy=pit,bt.uniqWith=wit,bt.unset=bet,bt.unzip=va,bt.unzipWith=bp,bt.values=ol,bt.valuesIn=ket,bt.without=bit,bt.words=gb,bt.wrap=aut,bt.xor=kit,bt.xorBy=dit,bt.xorWith=git,bt.zip=nrt,bt.zipObject=trt,bt.zipWith=kp,bt.each=tw,bt.eachRight=iw,bt.extend=ub,bt.extendWith=gh,uv(bt,bt),bt.add=yst,bt.attempt=iv,bt.camelCase=vb,bt.capitalize=tv,bt.ceil=hk,bt.clamp=det,bt.clone=vut,bt.cloneDeep=put,bt.cloneDeepWith=wut,bt.cloneWith=yut,bt.deburr=yb,bt.endsWith=tot,bt.eq=fo,bt.escape=iot,bt.escapeRegExp=rot,bt.every=lrt,bt.find=vrt,bt.findIndex=rtt,bt.findKey=bft,bt.findLast=yrt,bt.findLastIndex=utt,bt.findLastKey=kft,bt.floor=ck,bt.forEach=tw,bt.forEachRight=iw,bt.forIn=dft,bt.forInRight=gft,bt.forOwn=net,bt.forOwnRight=tet,bt.get=nc,bt.gt=ba,bt.gte=but,bt.has=ob,bt.hasIn=sb,bt.head=vp,bt.identity=so,bt.includes=prt,bt.indexOf=htt,bt.inRange=get,bt.invoke=hb,bt.isArguments=hh,bt.isArray=hi,bt.isArrayLike=du,bt.isArrayLikeObject=ar,bt.isBoolean=kut,bt.isDate=dut,bt.isElement=gut,bt.isEmpty=nft,bt.isEqual=tft,bt.isEqualWith=ift,bt.isError=ka,bt.isFinite=rft,bt.isFunction=gu,bt.isInteger=kw,bt.isLength=dh,bt.isMatch=uft,bt.isMatchWith=fft,bt.isNaN=eft,bt.isNative=dw,bt.isNil=sft,bt.isNull=oft,bt.isNumber=gw,bt.isObject=lr,bt.isObjectLike=cu,bt.isPlainObject=da,bt.isRegExp=nb,bt.isSafeInteger=hft,bt.isString=ch,bt.isSymbol=tb,bt.isTypedArray=lh,bt.isUndefined=cft,bt.join=ytt,bt.kebabCase=uot,bt.last=au,bt.lastIndexOf=ptt,bt.lowerCase=fot,bt.lowerFirst=eot,bt.lt=ga,bt.lte=lft,bt.max=pst,bt.maxBy=wst,bt.mean=bst,bt.min=kst,bt.minBy=dst,bt.noConflict=fst,bt.noop=fv,bt.now=sh,bt.pad=oot,bt.padEnd=sot,bt.padStart=hot,bt.parseInt=cot,bt.random=not,bt.reduce=krt,bt.reduceRight=drt,bt.repeat=wb,bt.replace=lot,bt.result=aet,bt.round=lk,bt.runInContext=pf,bt.sample=nut,bt.size=sw,bt.snakeCase=bb,bt.some=iut,bt.sortedIndex=dtt,bt.sortedIndexBy=gtt,bt.sortedIndexOf=nit,bt.sortedLastIndex=tit,bt.sortedLastIndexBy=iit,bt.sortedLastIndexOf=rit,bt.startCase=kb,bt.startsWith=vot,bt.subtract=gst,bt.sum=ak,bt.sumBy=nht,bt.template=yot,bt.times=lst,bt.toInteger=sr,bt.toLength=ib,bt.toLower=pot,bt.toNumber=yr,bt.toSafeInteger=aft,bt.toString=hr,bt.toUpper=wot,bt.trim=bot,bt.trimEnd=kot,bt.trimStart=dot,bt.truncate=got,bt.unescape=nst,bt.uniqueId=vst,bt.upperCase=db,bt.upperFirst=pb,bt.first=vp,uv(bt,function(){var n={};return rf(bt,function(t,i){uu.call(bt.prototype,i)||(n[i]=t)}),n}(),{chain:!1}),bt.VERSION=wf,e(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){bt[n].placeholder=bt}),e(["drop","take"],function(t,i){yi.prototype[t]=function(r){var f=this.__filtered__,u;return f&&!i?new yi(this):(r=r===n?1:hu(sr(r),0),u=this.clone(),f?u.__takeCount__=pu(r,u.__takeCount__):u.__views__.push({size:pu(r,h),type:t+(u.__dir__<0?"Right":"")}),u)};yi.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),e(["filter","map","takeWhile"],function(n,t){var i=t+1,r=i==iu||i==te;yi.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:dt(n,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),e(["head","last"],function(n,t){var i="take"+(t?"Right":"");yi.prototype[n]=function(){return this[i](1).value()[0]}}),e(["initial","tail"],function(n,t){var i="drop"+(t?"":"Right");yi.prototype[n]=function(){return this.__filtered__?new yi(this):this[i](1)}}),yi.prototype.compact=function(){return this.filter(so)},yi.prototype.find=function(n){return this.filter(n).head()},yi.prototype.findLast=function(n){return this.reverse().find(n)},yi.prototype.invokeMap=kt(function(n,t){return typeof n=="function"?new yi(this):this.map(function(i){return yh(i,n,t)})}),yi.prototype.reject=function(n){return n=dt(n,3),this.filter(function(t){return!n(t)})},yi.prototype.slice=function(t,i){t=sr(t);var r=this;return r.__filtered__&&(t>0||i<0)?new yi(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),i!==n&&(i=sr(i),r=i<0?r.dropRight(-i):r.take(i-t)),r)},yi.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},yi.prototype.toArray=function(){return this.take(h)},rf(yi.prototype,function(t,i){var e=/^(?:filter|find|map|reject)|While$/.test(i),r=/^(?:head|last)$/.test(i),u=bt[r?"take"+(i=="last"?"Right":""):i],f=r||/^find/.test(i);u&&(bt.prototype[i]=function(){var o=this.__wrapped__,s=r?[1]:arguments,h=o instanceof yi,a=s[0],c=h||hi(o),v=function(n){var t=u.apply(bt,gt([n],s));return r&&l?t[0]:t},i;c&&e&&typeof a=="function"&&a.length!=1&&(h=c=!1);var l=this.__chain__,w=!!this.__actions__.length,y=f&&!l,p=h&&!w;return!f&&c?(o=p?o:new yi(this),i=t.apply(o,s),i.__actions__.push({func:fl,args:[v],thisArg:n}),new wu(i,l)):y&&p?t.apply(this,s):(i=this.thru(v),y?r?i.value()[0]:i.value():i)})}),e(["pop","push","shift","sort","splice","unshift"],function(n){var t=tc[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);bt.prototype[n]=function(){var n=arguments;return r&&!this.__chain__?t.apply(this.value(),n):this[i](function(i){return t.apply(i,n)})}}),rf(yi.prototype,function(n,t){var i=bt[t],r,u;i&&(r=i.name+"",u=sc[r]||(sc[r]=[]),u.push({name:t,func:i}))}),sc[nl(n,it).name]=[{name:"wrapper",func:n}],yi.prototype.clone=ed,yi.prototype.reverse=od,yi.prototype.value=sd,bt.prototype.at=gp,bt.prototype.chain=rrt,bt.prototype.commit=urt,bt.prototype.flatMap=frt,bt.prototype.next=ert,bt.prototype.plant=srt,bt.prototype.reverse=hrt,bt.prototype.toJSON=bt.prototype.valueOf=bt.prototype.value=crt,rs&&(bt.prototype[rs]=ort),bt}var n,wf="4.0.0",o=1,it=2,nu=4,l=8,et=16,a=32,ot=64,p=128,ii=256,tu=512,st=1,rt=2,bf=30,kf="...",df=150,gf=16,ht=200,iu=1,ne=2,te=3,f="Expected a function",ct="__lodash_hash_undefined__",wi=1/0,w=9007199254740991,ie=17976931348623157e292,re=NaN,h=4294967295,ue=h-1,fe=h>>>1,bi="__lodash_placeholder__",ut="[object Arguments]",ri="[object Array]",lt="[object Boolean]",at="[object Date]",ui="[object Error]",fi="[object Function]",ru="[object GeneratorFunction]",d="[object Map]",vt="[object Number]",s="[object Object]",yt="[object RegExp]",g="[object Set]",pt="[object String]",ei="[object Symbol]",uu="[object WeakMap]",oi="[object ArrayBuffer]",ki="[object Float32Array]",di="[object Float64Array]",gi="[object Int8Array]",nr="[object Int16Array]",tr="[object Int32Array]",ir="[object Uint8Array]",rr="[object Uint8ClampedArray]",ur="[object Uint16Array]",fr="[object Uint32Array]",ee=/\b__p \+= '';/g,oe=/\b(__p \+=) '' \+/g,se=/(__e\(.*?\)|\b__t\)) \+\n'';/g,fu=/&(?:amp|lt|gt|quot|#39|#96);/g,eu=/[&<>"'`]/g,he=RegExp(fu.source),ce=RegExp(eu.source),le=/<%-([\s\S]+?)%>/g,ae=/<%([\s\S]+?)%>/g,ou=/<%=([\s\S]+?)%>/g,ve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ye=/^\w*$/,pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,er=/[\\^$.*+?()[\]{}|]/g,we=RegExp(er.source),or=/^\s+|\s+$/g,be=/^\s+/,ke=/\s+$/,de=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,su=/\w*$/,no=/^0x/i,to=/^[-+]0x[0-9a-f]+$/i,io=/^0b[01]+$/i,ro=/^\[object .+?Constructor\]$/,uo=/^0o[0-7]+$/i,fo=/^(?:0|[1-9]\d*)$/,eo=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,si=/($^)/,oo=/['\n\r\u2028\u2029\\]/g,hi="\\ud800-\\udfff",hu="\\u0300-\\u036f\\ufe20-\\ufe23",cu="\\u2700-\\u27bf",lu="a-z\\xdf-\\xf6\\xf8-\\xff",au="A-Z\\xc0-\\xd6\\xd8-\\xde",vu="\\ufe0e\\ufe0f",yu="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2018\\u2019\\u201c\\u201d \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",so="["+hi+"]",pu="["+yu+"]",sr="["+hu+"]",wu="\\d+",ho="["+cu+"]",bu="["+lu+"]",ku="[^"+hi+yu+wu+cu+lu+au+"]",du="[^"+hi+"]",hr="(?:\\ud83c[\\udde6-\\uddff]){2}",cr="[\\ud800-\\udbff][\\udc00-\\udfff]",wt="["+au+"]",gu="\\u200d",lr="(?:"+bu+"|"+ku+")",co="(?:"+wt+"|"+ku+")",nf="(?:\\ud83c[\\udffb-\\udfff])?",tf="["+vu+"]?",lo="(?:"+gu+"(?:"+[du,hr,cr].join("|")+")"+tf+nf+")*",rf=tf+nf+lo,ao="(?:"+[ho,hr,cr].join("|")+")"+rf,vo="(?:"+[du+sr+"?",sr,hr,cr,so].join("|")+")",yo=RegExp(sr,"g"),ar=RegExp(vo+rf,"g"),ci=RegExp("["+gu+hi+hu+vu+"]"),po=/[a-zA-Z0-9]+/g,wo=RegExp([wt+"?"+bu+"+(?="+[pu,wt,"$"].join("|")+")",co+"+(?="+[pu,wt+lr,"$"].join("|")+")",wt+"?"+lr+"+",wu+"(?:"+lr+"+)?",ao].join("|"),"g"),bo=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ko=["Array","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],go=-1,i={},t,y;i[ki]=i[di]=i[gi]=i[nr]=i[tr]=i[ir]=i[rr]=i[ur]=i[fr]=!0;i[ut]=i[ri]=i[oi]=i[lt]=i[at]=i[ui]=i[fi]=i[d]=i[vt]=i[s]=i[yt]=i[g]=i[pt]=i[uu]=!1;t={};t[ut]=t[ri]=t[oi]=t[lt]=t[at]=t[ki]=t[di]=t[gi]=t[nr]=t[tr]=t[d]=t[vt]=t[s]=t[yt]=t[g]=t[pt]=t[ei]=t[ir]=t[rr]=t[ur]=t[fr]=!0;t[ui]=t[fi]=t[uu]=!1;var ns={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},ts={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},is={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},bt={"function":!0,object:!0},rs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},us=parseFloat,fs=parseInt,kt=bt[typeof exports]&&exports&&!exports.nodeType?exports:null,dt=bt[typeof module]&&module&&!module.nodeType?module:null,es=yi(kt&&dt&&typeof global=="object"&&global),uf=yi(bt[typeof self]&&self),vr=yi(bt[typeof window]&&window),os=dt&&dt.exports===kt?kt:null,yr=yi(bt[typeof this]&&this),v=es||vr!==(yr&&yr.window)&&vr||uf||yr||Function("return this")();y=pf();(vr||uf||{})._=y;typeof define=="function"&&typeof define.amd=="object"&&define.amd?define(function(){return y}):kt&&dt?(os&&((dt.exports=y)._=y),kt._=y):v._=y}.call(this),function(n){function it(n,t,i){switch(arguments.length){case 2:return n!=null?n:t;case 3:return n!=null?n:t!=null?t:i;default:throw new Error("Implement me");}}function g(n,t){return dr.call(n,t)}function vt(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function pi(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function o(n,t){var i=!0;return nt(function(){return i&&(pi(n),i=!1),t.apply(this,arguments)},t)}function bu(n,t){vi[n]||(pi(t),vi[n]=!0)}function wi(n,t){return function(i){return r(n.call(this,i),t)}}function ku(n,t){return function(i){return this.localeData().ordinal(n.call(this,i),t)}}function du(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)}function gu(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function bi(){}function et(n,i){i!==!1&&er(n);ki(this,n);this._d=new Date(+n._d);at===!1&&(at=!0,t.updateOffset(this),at=!1)}function yt(n){var i=ir(n),r=i.year||0,u=i.quarter||0,f=i.month||0,e=i.week||0,o=i.day||0,s=i.hour||0,h=i.minute||0,c=i.second||0,l=i.millisecond||0;this._milliseconds=+l+c*1e3+h*6e4+s*36e5;this._days=+o+e*7;this._months=+f+u*3+r*12;this._data={};this._locale=t.localeData();this._bubble()}function nt(n,t){for(var i in t)g(t,i)&&(n[i]=t[i]);return g(t,"toString")&&(n.toString=t.toString),g(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ki(n,t){var u,i,r;if(typeof t._isAMomentObject!="undefined"&&(n._isAMomentObject=t._isAMomentObject),typeof t._i!="undefined"&&(n._i=t._i),typeof t._f!="undefined"&&(n._f=t._f),typeof t._l!="undefined"&&(n._l=t._l),typeof t._strict!="undefined"&&(n._strict=t._strict),typeof t._tzm!="undefined"&&(n._tzm=t._tzm),typeof t._isUTC!="undefined"&&(n._isUTC=t._isUTC),typeof t._offset!="undefined"&&(n._offset=t._offset),typeof t._pf!="undefined"&&(n._pf=t._pf),typeof t._locale!="undefined"&&(n._locale=t._locale),ut.length>0)for(u in ut)i=ut[u],r=t[i],typeof r!="undefined"&&(n[i]=r);return n}function h(n){return n<0?Math.ceil(n):Math.floor(n)}function r(n,t,i){for(var r=""+Math.abs(n),u=n>=0;r.length<t;)r="0"+r;return(u?i?"+":"":"-")+r}function di(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function nf(n,t){var i;return t=bt(t,n),n.isBefore(t)?i=di(n,t):(i=di(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function gi(n,i){return function(r,u){var f,e;return u===null||isNaN(+u)||(bu(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period)."),e=r,r=u,u=e),r=typeof r=="string"?+r:r,f=t.duration(r,u),nr(this,f,n),this}}function nr(n,i,r,u){var o=i._milliseconds,f=i._days,e=i._months;u=u==null?!0:u;o&&n._d.setTime(+n._d+o*r);f&&pr(n,"Date",ii(n,"Date")+f*r);e&&yr(n,ii(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function ot(n){return Object.prototype.toString.call(n)==="[object Array]"}function pt(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function tr(n,t,r){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),f=0,u=0;u<e;u++)(r&&n[u]!==t[u]||!r&&i(n[u])!==i(t[u]))&&f++;return f+o}function e(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=pu[n]||wu[t]||t}return n}function ir(n){var r={},t;for(var i in n)g(n,i)&&(t=e(i),t&&(r[t]=n[i]));return r}function tf(i){var r,u;if(i.indexOf("week")===0)r=7,u="day";else if(i.indexOf("month")===0)r=12,u="month";else return;t[i]=function(f,e){var o,s,c=t._locale[i],h=[];if(typeof f=="number"&&(e=f,f=n),s=function(n){var i=t().utc().set(u,n);return c.call(t._locale,i,f||"")},e!=null)return s(e);for(o=0;o<r;o++)h.push(s(o));return h}}function i(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=t>=0?Math.floor(t):Math.ceil(t)),i}function wt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function rr(n,i,r){return tt(t([n,11,31+i-r]),i,r).week}function ur(n){return fr(n)?366:365}function fr(n){return n%4==0&&n%100!=0||n%400==0}function er(n){var t;n._a&&n._pf.overflow===-2&&(t=n._a[l]<0||n._a[l]>11?l:n._a[s]<1||n._a[s]>wt(n._a[c],n._a[l])?s:n._a[f]<0||n._a[f]>24||n._a[f]===24&&(n._a[w]!==0||n._a[b]!==0||n._a[k]!==0)?f:n._a[w]<0||n._a[w]>59?w:n._a[b]<0||n._a[b]>59?b:n._a[k]<0||n._a[k]>999?k:-1,n._pf._overflowDayOfYear&&(t<c||t>s)&&(t=s),n._pf.overflow=t)}function or(t){return t._isValid==null&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&t._pf.charsLeftOver===0&&t._pf.unusedTokens.length===0&&t._pf.bigHour===n)),t._isValid}function sr(n){return n?n.toLowerCase().replace("_","-"):n}function rf(n){for(var r=0,i,t,f,u;r<n.length;){for(u=sr(n[r]).split("-"),i=u.length,t=sr(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=hr(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&tr(u,t,!0)>=i-1)break;i--}r++}return null}function hr(n){var i=null;if(!d[n]&&ui)try{i=t.locale();require("./locale/"+n);t.locale(i)}catch(r){}return d[n]}function bt(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(t.isMoment(n)||pt(n)?+n:+t(n))-+r,r._d.setTime(+r._d+u),t.updateOffset(r,!1),r):t(n).local()}function uf(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function ff(n){for(var i=n.match(fi),t=0,r=i.length;t<r;t++)i[t]=a[i[t]]?a[i[t]]:uf(i[t]);return function(u){var f="";for(t=0;t<r;t++)f+=i[t]instanceof Function?i[t].call(u,n):i[t];return f}}function kt(n,t){return n.isValid()?(t=cr(t,n.localeData()),lt[t]||(lt[t]=ff(t)),lt[t](n)):n.localeData().invalidDate()}function cr(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(ft.lastIndex=0;i>=0&&ft.test(n);)n=n.replace(ft,r),ft.lastIndex=0,i-=1;return n}function ef(n,t){var i=t._strict;switch(n){case"Q":return oi;case"DDDD":return hi;case"YYYY":case"GGGG":case"gggg":return i?cu:ru;case"Y":case"G":case"g":return au;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?lu:uu;case"S":if(i)return oi;case"SS":if(i)return si;case"SSS":if(i)return hi;case"DDD":return iu;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return eu;case"a":case"A":return t._locale._meridiemParse;case"x":return su;case"X":return hu;case"Z":case"ZZ":return st;case"T":return ou;case"SSSS":return fu;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?si:ei;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return ei;case"Do":return i?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return new RegExp(af(lf(n.replace("\\","")),"i"))}}function dt(n){n=n||"";var r=n.match(st)||[],f=r[r.length-1]||[],t=(f+"").match(yu)||["-",0,0],u=+(t[1]*60)+i(t[2]);return t[0]==="+"?u:-u}function of(n,r,u){var o,e=u._a;switch(n){case"Q":r!=null&&(e[l]=(i(r)-1)*3);break;case"M":case"MM":r!=null&&(e[l]=i(r)-1);break;case"MMM":case"MMMM":o=u._locale.monthsParse(r,n,u._strict);o!=null?e[l]=o:u._pf.invalidMonth=r;break;case"D":case"DD":r!=null&&(e[s]=i(r));break;case"Do":r!=null&&(e[s]=i(parseInt(r.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":r!=null&&(u._dayOfYear=i(r));break;case"YY":e[c]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":e[c]=i(r);break;case"a":case"A":u._meridiem=r;break;case"h":case"hh":u._pf.bigHour=!0;case"H":case"HH":e[f]=i(r);break;case"m":case"mm":e[w]=i(r);break;case"s":case"ss":e[b]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":e[k]=i(("0."+r)*1e3);break;case"x":u._d=new Date(i(r));break;case"X":u._d=new Date(parseFloat(r)*1e3);break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=dt(r);break;case"dd":case"ddd":case"dddd":o=u._locale.weekdaysParse(r);o!=null?(u._w=u._w||{},u._w.d=o):u._pf.invalidWeekday=r;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":n=n.substr(0,1);case"gggg":case"GGGG":case"GGGGG":n=n.substr(0,2);r&&(u._w=u._w||{},u._w[n]=i(r));break;case"gg":case"GG":u._w=u._w||{};u._w[n]=t.parseTwoDigitYear(r)}}function sf(n){var i,o,f,u,r,e,s;i=n._w;i.GG!=null||i.W!=null||i.E!=null?(r=1,e=4,o=it(i.GG,n._a[c],tt(t(),1,4).year),f=it(i.W,1),u=it(i.E,1)):(r=n._locale._week.dow,e=n._locale._week.doy,o=it(i.gg,n._a[c],tt(t(),r,e).year),f=it(i.w,1),i.d!=null?(u=i.d,u<r&&++f):u=i.e!=null?i.e+r:r);s=ne(o,f,u,e,r);n._a[c]=s.year;n._dayOfYear=s.dayOfYear}function gt(n){var t,i,r=[],u,e;if(!n._d){for(u=cf(n),n._w&&n._a[s]==null&&n._a[l]==null&&sf(n),n._dayOfYear&&(e=it(n._a[c],u[c]),n._dayOfYear>ur(e)&&(n._pf._overflowDayOfYear=!0),i=ti(e,0,n._dayOfYear),n._a[l]=i.getUTCMonth(),n._a[s]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=u[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[f]===24&&n._a[w]===0&&n._a[b]===0&&n._a[k]===0&&(n._nextDay=!0,n._a[f]=0);n._d=(n._useUTC?ti:bf).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm);n._nextDay&&(n._a[f]=24)}}function hf(n){var t;n._d||(t=ir(n._i),n._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],gt(n))}function cf(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ni(i){if(i._f===t.ISO_8601){lr(i);return}i._a=[];i._pf.empty=!0;for(var r=""+i._i,u,e,h,l=r.length,c=0,s=cr(i._f,i._locale).match(fi)||[],o=0;o<s.length;o++)e=s[o],u=(r.match(ef(e,i))||[])[0],u&&(h=r.substr(0,r.indexOf(u)),h.length>0&&i._pf.unusedInput.push(h),r=r.slice(r.indexOf(u)+u.length),c+=u.length),a[e]?(u?i._pf.empty=!1:i._pf.unusedTokens.push(e),of(e,u,i)):i._strict&&!u&&i._pf.unusedTokens.push(e);i._pf.charsLeftOver=l-c;r.length>0&&i._pf.unusedInput.push(r);i._pf.bigHour===!0&&i._a[f]<=12&&(i._pf.bigHour=n);i._a[f]=gu(i._locale,i._a[f],i._meridiem);gt(i);er(i)}function lf(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function af(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function vf(n){var t,f,u,r,i;if(n._f.length===0){n._pf.invalidFormat=!0;n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=ki({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._pf=vt(),t._f=n._f[r],ni(t),or(t))&&(i+=t._pf.charsLeftOver,i+=t._pf.unusedTokens.length*10,t._pf.score=i,(u==null||i<u)&&(u=i,f=t));nt(n,f||t)}function lr(n){var t,i,r=n._i,u=vu.exec(r);if(u){for(n._pf.iso=!0,t=0,i=ht.length;t<i;t++)if(ht[t][1].exec(r)){n._f=ht[t][0]+(u[6]||" ");break}for(t=0,i=ct.length;t<i;t++)if(ct[t][1].exec(r)){n._f+=ct[t][0];break}r.match(st)&&(n._f+="Z");ni(n)}else n._isValid=!1}function yf(n){lr(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function pf(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function wf(i){var r=i._i,u;r===n?i._d=new Date:pt(r)?i._d=new Date(+r):(u=gr.exec(r))!==null?i._d=new Date(+u[1]):typeof r=="string"?yf(i):ot(r)?(i._a=pf(r.slice(0),function(n){return parseInt(n,10)}),gt(i)):typeof r=="object"?hf(i):typeof r=="number"?i._d=new Date(r):t.createFromInputFallback(i)}function bf(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<1970&&o.setFullYear(n),o}function ti(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function kf(n,t){if(typeof n=="string")if(isNaN(n)){if(n=t.weekdaysParse(n),typeof n!="number")return null}else n=parseInt(n,10);return n}function df(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function gf(n,i,r){var u=t.duration(n).abs(),c=p(u.as("s")),e=p(u.as("m")),o=p(u.as("h")),s=p(u.as("d")),h=p(u.as("M")),l=p(u.as("y")),f=c<y.s&&["s",c]||e===1&&["m"]||e<y.m&&["mm",e]||o===1&&["h"]||o<y.h&&["hh",o]||s===1&&["d"]||s<y.d&&["dd",s]||h===1&&["M"]||h<y.M&&["MM",h]||l===1&&["y"]||["yy",l];return f[2]=i,f[3]=+n>0,f[4]=r,df.apply({},f)}function tt(n,i,r){var e=r-i,u=r-n.day(),f;return u>e&&(u-=7),u<e-7&&(u+=7),f=t(n).add(u,"d"),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ne(n,t,i,r,u){var f=ti(n,0,1).getUTCDay(),o,e;return f=f===0?7:f,i=i!=null?i:u,o=u-f+(f>r?7:0)-(f<u?7:0),e=7*(t-1)+(i-u)+o+1,{year:e>0?n:n-1,dayOfYear:e>0?e:ur(n-1)+e}}function ar(i){var r=i._i,f=i._f,u;return(i._locale=i._locale||t.localeData(i._l),r===null||f===n&&r==="")?t.invalid({nullInput:!0}):(typeof r=="string"&&(i._i=r=i._locale.preparse(r)),t.isMoment(r))?new et(r,!0):(f?ot(f)?vf(i):ni(i):wf(i),u=new et(i),u._nextDay&&(u.add(1,"d"),u._nextDay=n),u)}function vr(n,i){var u,r;if(i.length===1&&ot(i[0])&&(i=i[0]),!i.length)return t();for(u=i[0],r=1;r<i.length;++r)i[r][n](u)&&(u=i[r]);return u}function yr(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),wt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function ii(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function pr(n,t,i){return t==="Month"?yr(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function v(n,i){return function(r){return r!=null?(pr(this,n,r),t.updateOffset(this,i),this):ii(this,n)}}function wr(n){return n*400/146097}function br(n){return n*146097/400}function te(n){t.duration.fn[n]=function(){return this._data[n]}}function kr(n){typeof ender=="undefined"&&(ri=rt.moment,rt.moment=n?o("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",t):t)}for(var t,rt=typeof global!="undefined"&&(typeof window=="undefined"||window===global.window)?global:this,ri,p=Math.round,dr=Object.prototype.hasOwnProperty,u,c=0,l=1,s=2,f=3,w=4,b=5,k=6,d={},ut=[],ui=typeof module!="undefined"&&module&&module.exports,gr=/^\/?Date\((\-?\d+)/i,nu=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,tu=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,fi=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,ft=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ei=/\d\d?/,iu=/\d{1,3}/,ru=/\d{1,4}/,uu=/[+\-]?\d{1,6}/,fu=/\d+/,eu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,st=/Z|[\+\-]\d\d:?\d\d/gi,ou=/T/i,su=/[\+\-]?\d+/,hu=/[\+\-]?\d+(\.\d{1,3})?/,oi=/\d/,si=/\d\d/,hi=/\d{3}/,cu=/\d{4}/,lu=/[+-]?\d{6}/,au=/[+-]?\d+/,vu=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ct=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],yu=/([\+\-]|\d\d)/gi,ie="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),ci={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},pu={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},wu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},lt={},y={s:45,m:45,h:22,d:26,M:11},li="DDD w W M D d".split(" "),ai="M D H h m s w W".split(" "),a={M:function(){return this.month()+1},MMM:function(n){return this.localeData().monthsShort(this,n)},MMMM:function(n){return this.localeData().months(this,n)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(n){return this.localeData().weekdaysMin(this,n)},ddd:function(n){return this.localeData().weekdaysShort(this,n)},dddd:function(n){return this.localeData().weekdays(this,n)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return r(this.year()%100,2)},YYYY:function(){return r(this.year(),4)},YYYYY:function(){return r(this.year(),5)},YYYYYY:function(){var n=this.year(),t=n>=0?"+":"-";return t+r(Math.abs(n),6)},gg:function(){return r(this.weekYear()%100,2)},gggg:function(){return r(this.weekYear(),4)},ggggg:function(){return r(this.weekYear(),5)},GG:function(){return r(this.isoWeekYear()%100,2)},GGGG:function(){return r(this.isoWeekYear(),4)},GGGGG:function(){return r(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return i(this.milliseconds()/100)},SS:function(){return r(i(this.milliseconds()/10),2)},SSS:function(){return r(this.milliseconds(),3)},SSSS:function(){return r(this.milliseconds(),3)},Z:function(){var n=this.utcOffset(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=this.utcOffset(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+r(i(n)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},vi={},yi=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],at=!1;li.length;)u=li.pop(),a[u+"o"]=ku(a[u],u);while(ai.length)u=ai.pop(),a[u+u]=wi(a[u],2);for(a.DDDD=wi(a.DDD,3),nt(bi.prototype,{set:function(n){var t;for(var i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(n){return this._months[n.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(n){return this._monthsShort[n.month()]},monthsParse:function(n,i,r){var u,f,e;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),u=0;u<12;u++)if((f=t.utc([2e3,u]),r&&!this._longMonthsParse[u]&&(this._longMonthsParse[u]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[u]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),r||this._monthsParse[u]||(e="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[u]=new RegExp(e.replace(".",""),"i")),r&&i==="MMMM"&&this._longMonthsParse[u].test(n))||r&&i==="MMM"&&this._shortMonthsParse[u].test(n)||!r&&this._monthsParse[u].test(n))return u},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(n){return this._weekdays[n.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(n){return this._weekdaysShort[n.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(n){return this._weekdaysMin[n.day()]},weekdaysParse:function(n){var i,r,u;for(this._weekdaysParse||(this._weekdaysParse=[]),i=0;i<7;i++)if(this._weekdaysParse[i]||(r=t([2e3,1]).day(i),u="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(u.replace(".",""),"i")),this._weekdaysParse[i].test(n))return i},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(n){var t=this._longDateFormat[n];return!t&&this._longDateFormat[n.toUpperCase()]&&(t=this._longDateFormat[n.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n]=t),t},isPM:function(n){return(n+"").toLowerCase().charAt(0)==="p"},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(n,t,i){var r=this._calendar[n];return typeof r=="function"?r.apply(t,[i]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(n,t,i,r){var u=this._relativeTime[i];return typeof u=="function"?u(n,t,i,r):u.replace(/%d/i,n)},pastFuture:function(n,t){var i=this._relativeTime[n>0?"future":"past"];return typeof i=="function"?i(t):i.replace(/%s/i,t)},ordinal:function(n){return this._ordinal.replace("%d",n)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(n){return n},postformat:function(n){return n},week:function(n){return tt(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),t=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._i=t,f._f=i,f._l=r,f._strict=u,f._isUTC=!1,f._pf=vt(),ar(f)},t.suppressDeprecationWarnings=!1,t.createFromInputFallback=o("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.min=function(){var n=[].slice.call(arguments,0);return vr("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return vr("isAfter",n)},t.utc=function(t,i,r,u){var f;return typeof r=="boolean"&&(u=r,r=n),f={},f._isAMomentObject=!0,f._useUTC=!0,f._isUTC=!0,f._l=r,f._i=t,f._f=i,f._strict=u,f._pf=vt(),ar(f).utc()},t.unix=function(n){return t(n*1e3)},t.duration=function(n,r){var u=n,e=null,o,c,h,l;return t.isDuration(n)?u={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(u={},r?u[r]=n:u.milliseconds=n):(e=nu.exec(n))?(o=e[1]==="-"?-1:1,u={y:0,d:i(e[s])*o,h:i(e[f])*o,m:i(e[w])*o,s:i(e[b])*o,ms:i(e[k])*o}):(e=tu.exec(n))?(o=e[1]==="-"?-1:1,h=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*o},u={y:h(e[2]),M:h(e[3]),d:h(e[4]),h:h(e[5]),m:h(e[6]),s:h(e[7]),w:h(e[8])}):u==null?u={}:typeof u=="object"&&("from"in u||"to"in u)&&(l=nf(t(u.from),t(u.to)),u={},u.ms=l.milliseconds,u.M=l.months),c=new yt(u),t.isDuration(n)&&g(n,"_locale")&&(c._locale=n._locale),c},t.version="2.9.0",t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.ISO_8601=function(){},t.momentProperties=ut,t.updateOffset=function(){},t.relativeTimeThreshold=function(t,i){return y[t]===n?!1:i===n?y[t]:(y[t]=i,!0)},t.lang=o("moment.lang is deprecated. Use moment.locale instead.",function(n,i){return t.locale(n,i)}),t.locale=function(n,i){var r;return n&&(r=typeof i!="undefined"?t.defineLocale(n,i):t.localeData(n),r&&(t.duration._locale=t._locale=r)),t._locale._abbr},t.defineLocale=function(n,i){return i!==null?(i.abbr=n,d[n]||(d[n]=new bi),d[n].set(i),t.locale(n),d[n]):(delete d[n],null)},t.langData=o("moment.langData is deprecated. Use moment.localeData instead.",function(n){return t.localeData(n)}),t.localeData=function(n){var i;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return t._locale;if(!ot(n)){if(i=hr(n),i)return i;n=[n]}return rf(n)},t.isMoment=function(n){return n instanceof et||n!=null&&g(n,"_isAMomentObject")},t.isDuration=function(n){return n instanceof yt},u=yi.length-1;u>=0;--u)tf(yi[u]);t.normalizeUnits=function(n){return e(n)};t.invalid=function(n){var i=t.utc(NaN);return n!=null?nt(i._pf,n):i._pf.userInvalidated=!0,i};t.parseZone=function(){return t.apply(null,arguments).parseZone()};t.parseTwoDigitYear=function(n){return i(n)+(i(n)>68?1900:2e3)};t.isDate=pt;nt(t.fn=et.prototype,{clone:function(){return t(this)},valueOf:function(){return+this._d-(this._offset||0)*6e4},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var n=t(this).utc();return 0<n.year()&&n.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():kt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):kt(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var n=this;return[n.year(),n.month(),n.date(),n.hours(),n.minutes(),n.seconds(),n.milliseconds()]},isValid:function(){return or(this)},isDSTShifted:function(){return this._a?this.isValid()&&tr(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return nt({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(n){return this.utcOffset(0,n)},local:function(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(n){var i=kt(this,n||t.defaultFormat);return this.localeData().postformat(i)},add:gi(1,"add"),subtract:gi(-1,"subtract"),diff:function(n,t,i){var f=bt(n,this),o=(f.utcOffset()-this.utcOffset())*6e4,u,r;return t=e(t),t==="year"||t==="month"||t==="quarter"?(r=du(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-o)/864e5:t==="week"?(u-o)/6048e5:u),i?r:h(r)},from:function(n,i){return t.duration({to:this,from:n}).locale(this.locale()).humanize(!i)},fromNow:function(n){return this.from(t(),n)},calendar:function(n){var r=n||t(),u=bt(r,this).startOf("day"),i=this.diff(u,"days",!0),f=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(f,this,t(r)))},isLeapYear:function(){return fr(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=kf(n,this.localeData()),this.add(n-t,"d")):t},month:v("Month",!0),startOf:function(n){n=e(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"?this.weekday(0):n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this},endOf:function(t){return(t=e(t),t===n||t==="millisecond")?this:this.startOf(t).add(1,t==="isoWeek"?"week":t).subtract(1,"ms")},isAfter:function(n,i){var r;return i=e(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this>+n):(r=t.isMoment(n)?+n:+t(n),r<+this.clone().startOf(i))},isBefore:function(n,i){var r;return i=e(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this<+n):(r=t.isMoment(n)?+n:+t(n),+this.clone().endOf(i)<r)},isBetween:function(n,t,i){return this.isAfter(n,i)&&this.isBefore(t,i)},isSame:function(n,i){var r;return i=e(i||"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this==+n):(r=+t(n),+this.clone().startOf(i)<=r&&r<=+this.clone().endOf(i))},min:o("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n<this?this:n}),max:o("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(n){return n=t.apply(null,arguments),n>this?this:n}),zone:o("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}),utcOffset:function(n,i){var r=this._offset||0,u;return n!=null?(typeof n=="string"&&(n=dt(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&i&&(u=this._dateUtcOffset()),this._offset=n,this._isUTC=!0,u!=null&&this.add(u,"m"),r!==n&&(!i||this._changeInProgress?nr(this,t.duration(n-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&this._offset===0},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):typeof this._i=="string"&&this.utcOffset(dt(this._i)),this},hasAlignedHourOffset:function(n){return n=n?t(n).utcOffset():0,(this.utcOffset()-n)%60==0},daysInMonth:function(){return wt(this.year(),this.month())},dayOfYear:function(n){var i=p((t(this).startOf("day")-t(this).startOf("year"))/864e5)+1;return n==null?i:this.add(n-i,"d")},quarter:function(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)},weekYear:function(n){var t=tt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")},isoWeekYear:function(n){var t=tt(this,1,4).year;return n==null?t:this.add(n-t,"y")},week:function(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")},isoWeek:function(n){var t=tt(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")},weekday:function(n){var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")},isoWeekday:function(n){return n==null?this.day()||7:this.day(this.day()%7?n:n-7)},isoWeeksInYear:function(){return rr(this.year(),1,4)},weeksInYear:function(){var n=this.localeData()._week;return rr(this.year(),n.dow,n.doy)},get:function(n){return n=e(n),this[n]()},set:function(n,t){var i;if(typeof n=="object")for(i in n)this.set(i,n[i]);else n=e(n),typeof this[n]=="function"&&this[n](t);return this},locale:function(i){var r;return i===n?this._locale._abbr:(r=t.localeData(i),r!=null&&(this._locale=r),this)},lang:o("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===n?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return-Math.round(this._d.getTimezoneOffset()/15)*15}});t.fn.millisecond=t.fn.milliseconds=v("Milliseconds",!1);t.fn.second=t.fn.seconds=v("Seconds",!1);t.fn.minute=t.fn.minutes=v("Minutes",!1);t.fn.hour=t.fn.hours=v("Hours",!0);t.fn.date=v("Date",!0);t.fn.dates=o("dates accessor is deprecated. Use date instead.",v("Date",!0));t.fn.year=v("FullYear",!0);t.fn.years=o("years accessor is deprecated. Use year instead.",v("FullYear",!0));t.fn.days=t.fn.day;t.fn.months=t.fn.month;t.fn.weeks=t.fn.week;t.fn.isoWeeks=t.fn.isoWeek;t.fn.quarters=t.fn.quarter;t.fn.toJSON=t.fn.toISOString;t.fn.isUTC=t.fn.isUtc;nt(t.duration.fn=yt.prototype,{_bubble:function(){var o=this._milliseconds,t=this._days,i=this._months,n=this._data,u,f,e,r=0;n.milliseconds=o%1e3;u=h(o/1e3);n.seconds=u%60;f=h(u/60);n.minutes=f%60;e=h(f/60);n.hours=e%24;t+=h(e/24);r=h(wr(t));t-=h(br(r));i+=h(t/30);t%=30;r+=h(i/12);i%=12;n.days=t;n.months=i;n.years=r},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return h(this.days()/7)},valueOf:function(){return this._milliseconds+this._days*864e5+this._months%12*2592e6+i(this._months/12)*31536e6},humanize:function(n){var t=gf(this,!n,this.localeData());return n&&(t=this.localeData().pastFuture(+this,t)),this.localeData().postformat(t)},add:function(n,i){var r=t.duration(n,i);return this._milliseconds+=r._milliseconds,this._days+=r._days,this._months+=r._months,this._bubble(),this},subtract:function(n,i){var r=t.duration(n,i);return this._milliseconds-=r._milliseconds,this._days-=r._days,this._months-=r._months,this._bubble(),this},get:function(n){return n=e(n),this[n.toLowerCase()+"s"]()},as:function(n){var t,i;if(n=e(n),n==="month"||n==="year")return t=this._days+this._milliseconds/864e5,i=this._months+wr(t)*12,n==="month"?i:i/12;t=this._days+Math.round(br(this._months/12));switch(n){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return t*24+this._milliseconds/36e5;case"minute":return t*1440+this._milliseconds/6e4;case"second":return t*86400+this._milliseconds/1e3;case"millisecond":return Math.floor(t*864e5)+this._milliseconds;default:throw new Error("Unknown unit "+n);}},lang:t.fn.lang,locale:t.fn.locale,toIsoString:o("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var r=Math.abs(this.years()),u=Math.abs(this.months()),f=Math.abs(this.days()),n=Math.abs(this.hours()),t=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(r?r+"Y":"")+(u?u+"M":"")+(f?f+"D":"")+(n||t||i?"T":"")+(n?n+"H":"")+(t?t+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}});t.duration.fn.toString=t.duration.fn.toISOString;for(u in ci)g(ci,u)&&te(u.toLowerCase());t.duration.fn.asMilliseconds=function(){return this.as("ms")};t.duration.fn.asSeconds=function(){return this.as("s")};t.duration.fn.asMinutes=function(){return this.as("m")};t.duration.fn.asHours=function(){return this.as("h")};t.duration.fn.asDays=function(){return this.as("d")};t.duration.fn.asWeeks=function(){return this.as("weeks")};t.duration.fn.asMonths=function(){return this.as("M")};t.duration.fn.asYears=function(){return this.as("y")};t.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,r=i(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+r}}),function(n){n(t)}(function(n){return n.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(n){return/^nm$/i.test(n)},meridiem:function(n,t,i){return n<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){var t={"1":"١","2":"٢","3":"٣","4":"٤","5":"٥","6":"٦","7":"٧","8":"٨","9":"٩","0":"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return n.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){return n.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){var u={"1":"١","2":"٢","3":"٣","4":"٤","5":"٥","6":"٦","7":"٧","8":"٨","9":"٩","0":"٠"},f={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(n){return n===0?0:n===1?1:n===2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},e={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},t=function(n){return function(t,r){var f=i(t),u=e[n][i(t)];return f===2&&(u=u[r?0:1]),u.replace(/%d/i,t)}},r=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return n.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},meridiemParse:/ص|م/,isPM:function(n){return"م"===n},meridiem:function(n){return n<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:t("s"),m:t("m"),mm:t("m"),h:t("h"),hh:t("h"),d:t("d"),dd:t("d"),M:t("M"),MM:t("M"),y:t("y"),yy:t("y")},preparse:function(n){return n.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(n){return f[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return u[n]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};return n.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(n){return/^(gündüz|axşam)$/.test(n)},meridiem:function(n){return n<4?"gecə":n<12?"səhər":n<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(n){if(n===0)return n+"-ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function i(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,r){var u={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return r==="m"?t?"хвіліна":"хвіліну":r==="h"?t?"гадзіна":"гадзіну":n+" "+i(u[r],+n)}function r(n,t){var i={nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function u(n,t){var i={nominative:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_")},r=/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative";return i[r][n.day()]}return n.defineLocale("be",{months:r,monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:u,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(n){return/^(дня|вечара)$/.test(n)},meridiem:function(n){return n<4?"ночы":n<12?"раніцы":n<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return(n%10==2||n%10==3)&&n%100!=12&&n%100!=13?n+"-і":n+"-ы";case"D":return n+"-га";default:return n}},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return n===0?n+"-ев":i===0?n+"-ен":i>10&&i<20?n+"-ти":t===1?n+"-ви":t===2?n+"-ри":t===7||t===8?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t={"1":"১","2":"২","3":"৩","4":"৪","5":"৫","6":"৬","7":"৭","8":"৮","9":"৯","0":"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};return n.defineLocale("bn",{months:"জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি".split("_"),weekdaysMin:"রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(n){return n.replace(/[১২৩৪৫৬৭৮৯০]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/রাত|শকাল|দুপুর|বিকেল|রাত/,isPM:function(n){return/^(দুপুর|বিকেল|রাত)$/.test(n)},meridiem:function(n){return n<4?"রাত":n<10?"শকাল":n<17?"দুপুর":n<20?"বিকেল":"রাত"},week:{dow:0,doy:6}})}),function(n){n(t)}(function(n){var t={"1":"༡","2":"༢","3":"༣","4":"༤","5":"༥","6":"༦","7":"༧","8":"༨","9":"༩","0":"༠"},i={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return n.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(n){return n.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,isPM:function(n){return/^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(n)},meridiem:function(n){return n<4?"མཚན་མོ":n<10?"ཞོགས་ཀས":n<17?"ཉིན་གུང":n<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}),function(n){n(t)}(function(t){function i(n,t,i){return n+" "+f({mm:"munutenn",MM:"miz",dd:"devezh"}[i],n)}function u(n){switch(r(n)){case 1:case 3:case 4:case 5:case 9:return n+" bloaz";default:return n+" vloaz"}}function r(n){return n>9?r(n%10):n}function f(n,t){return t===2?e(n):n}function e(t){var i={m:"v",b:"v",d:"z"};return i[t.charAt(0)]===n?t:i[t.charAt(0)]+t.substring(1)}return t.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",m:"ur vunutenn",mm:i,h:"un eur",hh:"%d eur",d:"un devezh",dd:i,M:"ur miz",MM:i,y:"ur bloaz",yy:u},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(n){var t=n===1?"añ":"vet";return n+t},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(n===1?"minuta":n===2||n===3||n===4?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(n===1?"sat":n===2||n===3||n===4?"sata":"sati");case"dd":return r+(n===1?"dan":"dana");case"MM":return r+(n===1?"mjesec":n===2||n===3||n===4?"mjeseca":"mjeseci");case"yy":return r+(n===1?"godina":n===2||n===3||n===4?"godine":"godina")}}return n.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[avui a "+(this.hours()!==1?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(this.hours()!==1?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(this.hours()!==1?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(this.hours()!==1?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(this.hours()!==1?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(n,t){var i=n===1?"r":n===2?"n":n===3?"r":n===4?"t":"è";return(t==="w"||t==="W")&&(i="a"),n+i},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function i(n){return n>1&&n<5&&~~(n/10)!=1}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekund":"pár sekundami";case"m":return t?"minuta":u?"minutu":"minutou";case"mm":return t||u?f+(i(n)?"minuty":"minut"):f+"minutami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodin"):f+"hodinami";case"d":return t||u?"den":"dnem";case"dd":return t||u?f+(i(n)?"dny":"dní"):f+"dny";case"M":return t||u?"měsíc":"měsícem";case"MM":return t||u?f+(i(n)?"měsíce":"měsíců"):f+"měsíci";case"y":return t||u?"rok":"rokem";case"yy":return t||u?f+(i(n)?"roky":"let"):f+"lety"}}var r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),u="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");return n.defineLocale("cs",{months:r,monthsShort:u,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(r,u),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("cv",{months:"кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(n){var t=/сехет$/i.exec(n)?"рен":/çул$/i.exec(n)?"тан":"ран";return n+t},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},ordinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(n){var t=n,i="";return t>20?i=t===40||t===50||t===60||t===80||t===100?"fed":"ain":t>0&&(i=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),n+i},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[n+" Tage",n+" Tagen"],M:["ein Monat","einem Monat"],MM:[n+" Monate",n+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[n+" Jahre",n+" Jahren"]};return t?r[i][0]:r[i][1]}return n.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Heute um] LT [Uhr]",sameElse:"L",nextDay:"[Morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[Gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(n,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[n.month()]:this._monthsNominativeEl[n.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(n,t,i){return n>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(n){return(n+"").toLowerCase()[0]==="μ"},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(n,t){var i=this._calendarEl[n],r=t&&t.hours();return typeof i=="function"&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}})}),function(n){n(t)}(function(n){return n.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ordinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"),weekdaysShort:"Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiemParse:/[ap]\.t\.m/i,isPM:function(n){return n.charAt(0).toLowerCase()==="p"},meridiem:function(n,t,i){return n>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"je %s",past:"antaŭ %s",s:"sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return n.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:function(){return"[hoy a la"+(this.hours()!==1?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(this.hours()!==1?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(this.hours()!==1?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(this.hours()!==1?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(this.hours()!==1?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i,r){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:[n+" minuti",n+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[n+" tunni",n+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[n+" kuu",n+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[n+" aasta",n+" aastat"]};return t?u[i][2]?u[i][2]:u[i][1]:r?u[i][0]:u[i][1]}return n.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t={"1":"۱","2":"۲","3":"۳","4":"۴","5":"۵","6":"۶","7":"۷","8":"۸","9":"۹","0":"۰"},i={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return n.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(n){return/بعد از ظهر/.test(n)},meridiem:function(n){return n<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(n){return n.replace(/[۰-۹]/g,function(n){return i[n]}).replace(/،/g,",")},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]}).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){function t(n,t,i,r){var f="";switch(i){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"m":return r?"minuutin":"minuutti";case"mm":f=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":f=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":f=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":f=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":f=r?"vuoden":"vuotta"}return u(n,r)+" "+f}function u(n,t){return n<10?t?r[n]:i[n]:n}var i="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),r=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",i[7],i[8],i[9]];return n.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(n===1?"er":"")}})}),function(n){n(t)}(function(n){return n.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Aujourd'hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(n){return n+(n===1?"er":"")},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),i="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return n.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("gl",{months:"Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"),monthsShort:"Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),weekdays:"Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),weekdaysShort:"Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),weekdaysMin:"Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:function(){return"[hoxe "+(this.hours()!==1?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(this.hours()!==1?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(this.hours()!==1?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(this.hours()!==1?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(this.hours()!==1?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(n){return n==="uns segundos"?"nuns segundos":"en "+n},past:"hai %s",s:"uns segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(n){return n===2?"שעתיים":n+" שעות"},d:"יום",dd:function(n){return n===2?"יומיים":n+" ימים"},M:"חודש",MM:function(n){return n===2?"חודשיים":n+" חודשים"},y:"שנה",yy:function(n){return n===2?"שנתיים":n%10==0&&n!==10?n+" שנה":n+" שנים"}}})}),function(n){n(t)}(function(n){var t={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="रात")?n<4?n:n+12:t==="सुबह"?n:t==="दोपहर"?n>=10?n:n+12:t==="शाम"?n+12:void 0},meridiem:function(n){return n<4?"रात":n<10?"सुबह":n<17?"दोपहर":n<20?"शाम":"रात"},week:{dow:0,doy:6}})}),function(n){n(t)}(function(n){function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+(n===1?"minuta":n===2||n===3||n===4?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return r+(n===1?"sat":n===2||n===3||n===4?"sata":"sati");case"dd":return r+(n===1?"dan":"dana");case"MM":return r+(n===1?"mjesec":n===2||n===3||n===4?"mjeseca":"mjeseci");case"yy":return r+(n===1?"godina":n===2||n===3||n===4?"godine":"godina")}}return n.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function t(n,t,i,r){var u=n;switch(i){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return u+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return u+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return u+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return u+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return u+(r||t?" év":" éve")}return""}function i(n){return(n?"":"[múlt] ")+"["+r[this.day()]+"] LT[-kor]"}var r="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");return n.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiemParse:/de|du/i,isPM:function(n){return n.charAt(1).toLowerCase()==="u"},meridiem:function(n,t,i){return n<12?i===!0?"de":"DE":i===!0?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function t(n,t){var i={nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function i(n){var t="հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_");return t[n.month()]}function r(n){var t="կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_");return t[n.day()]}return n.defineLocale("hy-am",{months:t,monthsShort:i,weekdays:r,weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(n){return/^(ցերեկվա|երեկոյան)$/.test(n)},meridiem:function(n){return n<4?"գիշերվա":n<12?"առավոտվա":n<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(n,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return n===1?n+"-ին":n+"-րդ";default:return n}},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="pagi")?n:t==="siang"?n>=11?n:n+12:t==="sore"||t==="malam"?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"siang":n<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function i(n){return n%100==11?!0:n%10==1?!1:!0}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return t?"mínúta":"mínútu";case"mm":return i(n)?f+(t||u?"mínútur":"mínútum"):t?f+"mínúta":f+"mínútu";case"hh":return i(n)?f+(t||u?"klukkustundir":"klukkustundum"):f+"klukkustund";case"d":return t?"dagur":u?"dag":"degi";case"dd":return i(n)?t?f+"dagar":f+(u?"daga":"dögum"):t?f+"dagur":f+(u?"dag":"degi");case"M":return t?"mánuður":u?"mánuð":"mánuði";case"MM":return i(n)?t?f+"mánuðir":f+(u?"mánuði":"mánuðum"):t?f+"mánuður":f+(u?"mánuð":"mánuði");case"y":return t||u?"ár":"ári";case"yy":return i(n)?f+(t||u?"ár":"árum"):f+(t||u?"ár":"ári")}}return n.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:t,m:t,mm:t,h:"klukkustund",hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),weekdaysShort:"Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),weekdaysMin:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(n){return(/^[0-9].+$/.test(n)?"tra":"in")+" "+n},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiemParse:/午前|午後/i,isPM:function(n){return n==="午後"},meridiem:function(n){return n<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}),function(n){n(t)}(function(n){function t(n,t){var i={nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},r=/D[oD] *MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function i(n,t){var i={nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")},r=/(წინა|შემდეგ)/.test(t)?"accusative":"nominative";return i[r][n.day()]}return n.defineLocale("ka",{months:t,monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:i,weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(n){return/(წამი|წუთი|საათი|წელი)/.test(n)?n.replace(/ი$/,"ში"):n+"ში"},past:function(n){return/(წამი|წუთი|საათი|დღე|თვე)/.test(n)?n.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(n)?n.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(n){return n===0?n:n===1?n+"-ლი":n<20||n<=100&&n%20==0||n%100==0?"მე-"+n:n+"-ე"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇초",ss:"%d초",m:"일분",mm:"%d분",h:"한시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한달",MM:"%d달",y:"일년",yy:"%d년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/오전|오후/,isPM:function(n){return n==="오후"},meridiem:function(n){return n<12?"오전":"오후"}})}),function(n){n(t)}(function(n){function i(n,t,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[i][0]:r[i][1]}function r(n){var i=n.substr(0,n.indexOf(" "));return t(i)?"a "+n:"an "+n}function u(n){var i=n.substr(0,n.indexOf(" "));return t(i)?"viru "+n:"virun "+n}function t(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7?!0:!1;if(n<100){var i=n%10,r=n/10;return i===0?t(r):t(i)}if(n<1e4){while(n>=10)n=n/10;return t(n)}return n=n/1e3,t(n)}return n.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:r,past:u,s:"e puer Sekonnen",m:i,mm:"%d Minutten",h:i,hh:"%d Stonnen",d:i,dd:"%d Deeg",M:i,MM:"%d Méint",y:i,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function o(n,t,i,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function i(n,i,r,u){return i?t(r)[0]:u?t(r)[1]:t(r)[2]}function u(n){return n%10==0||n>10&&n<20}function t(n){return f[n].split("_")}function r(n,r,f,e){var o=n+" ";return n===1?o+i(n,r,f[0],e):r?o+(u(n)?t(f)[1]:t(f)[0]):e?o+t(f)[1]:o+(u(n)?t(f)[1]:t(f)[2])}function s(n,t){var r=t.indexOf("dddd HH:mm")===-1,i=e[n.day()];return r?i:i.substring(0,i.length-2)+"į"}var f={m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"},e="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");return n.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:s,weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:o,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},ordinalParse:/\d{1,2}-oji/,ordinal:function(n){return n+"-oji"},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function r(n,t,i){var r=n.split("_");return i?t%10==1&&t!==11?r[2]:r[3]:t%10==1&&t!==11?r[0]:r[1]}function t(n,t,u){return n+" "+r(i[u],n,t)}var i={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};return n.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:t,h:"stundu",hh:t,d:"dienu",dd:t,M:"mēnesi",MM:t,y:"gadu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Во изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Во изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(n){var t=n%10,i=n%100;return n===0?n+"-ев":i===0?n+"-ен":i>10&&i<20?n+"-ти":t===1?n+"-ви":t===2?n+"-ри":t===7||t===8?n+"-ми":n+"-ти"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,isPM:function(n){return/^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(n)},meridiem:function(n){return n<4?"രാത്രി":n<12?"രാവിലെ":n<17?"ഉച്ച കഴിഞ്ഞ്":n<20?"വൈകുന്നേരം":"രാത്രി"}})}),function(n){n(t)}(function(n){var t={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="रात्री")?n<4?n:n+12:t==="सकाळी"?n:t==="दुपारी"?n>=10?n:n+12:t==="सायंकाळी"?n+12:void 0},meridiem:function(n){return n<4?"रात्री":n<10?"सकाळी":n<17?"दुपारी":n<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}),function(n){n(t)}(function(n){return n.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="pagi")?n:t==="tengahari"?n>=11?n:n+12:t==="petang"||t==="malam"?n+12:void 0},meridiem:function(n){return n<11?"pagi":n<15?"tengahari":n<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t={"1":"၁","2":"၂","3":"၃","4":"၄","5":"၅","6":"၆","7":"၇","8":"၈","9":"၉","0":"၀"},i={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};return n.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(n){return n.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s siden",s:"noen sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){var t={"1":"१","2":"२","3":"३","4":"४","5":"५","6":"६","7":"७","8":"८","9":"९","0":"०"},i={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};return n.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आइ._सो._मङ्_बु._बि._शु._श.".split("_"),longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(n){return n.replace(/[१२३४५६७८९०]/g,function(n){return i[n]})},postformat:function(n){return n.replace(/\d/g,function(n){return t[n]})},meridiemParse:/राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="राती")?n<3?n:n+12:t==="बिहान"?n:t==="दिउँसो"?n>=10?n:n+12:t==="बेलुका"||t==="साँझ"?n+12:void 0},meridiem:function(n){return n<3?"राती":n<10?"बिहान":n<15?"दिउँसो":n<18?"बेलुका":n<20?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return n.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,r){return/-MMM-/.test(r)?i[n.month()]:t[n.month()]},weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(n===1||n===8||n>=20?"ste":"de")},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"for %s sidan",s:"nokre sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function i(n){return n%10<5&&n%10>1&&~~(n/10)%10!=1}function t(n,t,r){var u=n+" ";switch(r){case"m":return t?"minuta":"minutę";case"mm":return u+(i(n)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return u+(i(n)?"godziny":"godzin");case"MM":return u+(i(n)?"miesiące":"miesięcy");case"yy":return u+(i(n)?"lata":"lat")}}var r="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),u="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");return n.defineLocale("pl",{months:function(n,t){return/D MMMM/.test(t)?u[n.month()]:r[n.month()]},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[W] dddd [o] LT",lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:t,mm:t,h:t,hh:t,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:t,y:"rok",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})}),function(n){n(t)}(function(n){return n.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return this.day()===0||this.day()===6?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i){var r=" ";return(n%100>=20||n>=100&&n%100==0)&&(r=" de "),n+r+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}return n.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function i(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,r){var u={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return r==="m"?t?"минута":"минуту":n+" "+i(u[r],+n)}function r(n,t){var i={nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function u(n,t){var i={nominative:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек".split("_")},r=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function f(n,t){var i={nominative:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_")},r=/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative";return i[r][n.day()]}return n.defineLocale("ru",{months:r,monthsShort:u,weekdays:f,weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return this.day()===2?"[Во] dddd [в] LT":"[В] dddd [в] LT"},lastWeek:function(n){if(n.week()!==this.week())switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}else return this.day()===2?"[Во] dddd [в] LT":"[В] dddd [в] LT"},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(n){return/^(дня|вечера)$/.test(n)},meridiem:function(n){return n<4?"ночи":n<12?"утра":n<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":return n+"-й";case"D":return n+"-го";case"w":case"W":return n+"-я";default:return n}},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){function i(n){return n>1&&n<5}function t(n,t,r,u){var f=n+" ";switch(r){case"s":return t||u?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":u?"minútu":"minútou";case"mm":return t||u?f+(i(n)?"minúty":"minút"):f+"minútami";case"h":return t?"hodina":u?"hodinu":"hodinou";case"hh":return t||u?f+(i(n)?"hodiny":"hodín"):f+"hodinami";case"d":return t||u?"deň":"dňom";case"dd":return t||u?f+(i(n)?"dni":"dní"):f+"dňami";case"M":return t||u?"mesiac":"mesiacom";case"MM":return t||u?f+(i(n)?"mesiace":"mesiacov"):f+"mesiacmi";case"y":return t||u?"rok":"rokom";case"yy":return t||u?f+(i(n)?"roky":"rokov"):f+"rokmi"}}var r="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),u="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");return n.defineLocale("sk",{months:r,monthsShort:u,monthsParse:function(n,t){for(var r=[],i=0;i<12;i++)r[i]=new RegExp("^"+n[i]+"$|^"+t[i]+"$","i");return r}(r,u),weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){function t(n,t,i){var r=n+" ";switch(i){case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(n===1?"minuta":n===2?"minuti":n===3||n===4?"minute":"minut");case"h":return t?"ena ura":"eno uro";case"hh":return r+(n===1?"ura":n===2?"uri":n===3||n===4?"ure":"ur");case"dd":return r+(n===1?"dan":"dni");case"MM":return r+(n===1?"mesec":n===2?"meseca":n===3||n===4?"mesece":"mesecev");case"yy":return r+(n===1?"leto":n===2?"leti":n===3||n===4?"leta":"let")}}return n.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:t,mm:t,h:t,hh:t,d:"en dan",dd:t,M:"en mesec",MM:t,y:"eno leto",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),meridiemParse:/PD|MD/,isPM:function(n){return n.charAt(0)==="M"},meridiem:function(n){return n<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){var t={words:{m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(n,t){return n===1?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return r.length===1?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){var t={words:{m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(n,t){return n===1?t[0]:n>=2&&n<=4?t[1]:t[2]},translate:function(n,i,r){var u=t.words[r];return r.length===1?i?u[0]:u[1]:n+" "+t.correctGrammaticalCase(n,u)}};return n.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(n){var t=n%10,i=~~(n%100/10)==1?"e":t===1?"a":t===2?"a":t===3?"e":"e";return n+i},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(n){return n+"வது"},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(n){return n<2?" யாமம்":n<6?" வைகறை":n<10?" காலை":n<14?" நண்பகல்":n<18?" எற்பாடு":n<22?" மாலை":" யாமம்"},meridiemHour:function(n,t){return n===12&&(n=0),t==="யாமம்"?n<2?n:n+12:t==="வைகறை"||t==="காலை"?n:t==="நண்பகல்"?n>=10?n:n+12:n+12},week:{dow:0,doy:6}})}),function(n){n(t)}(function(n){return n.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(n){return n==="หลังเที่ยง"},meridiem:function(n){return n<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}),function(n){n(t)}(function(n){return n.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};return n.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(n){if(n===0)return n+"'ıncı";var i=n%10,r=n%100-i,u=n>=100?100:null;return n+(t[i]||t[r]||t[u])},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){return n.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}),function(n){n(t)}(function(n){function r(n,t){var i=n.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}function t(n,t,i){return i==="m"?t?"хвилина":"хвилину":i==="h"?t?"година":"годину":n+" "+r({mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i],+n)}function u(n,t){var i={nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")},r=/D[oD]? *MMMM?/.test(t)?"accusative":"nominative";return i[r][n.month()]}function f(n,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")},r=/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative";return i[r][n.day()]}function i(n){return function(){return n+"о"+(this.hours()===11?"б":"")+"] LT"}}return n.defineLocale("uk",{months:u,monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:f,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(n){return/^(дня|вечора)$/.test(n)},meridiem:function(n){return n<4?"ночі":n<12?"ранку":n<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,ordinal:function(n,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return n+"-й";case"D":return n+"-го";default:return n}},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}),function(n){n(t)}(function(n){return n.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},ordinalParse:/\d{1,2}/,ordinal:function(n){return n},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return n===12&&(n=0),t==="凌晨"||t==="早上"||t==="上午"?n:t==="下午"||t==="晚上"?n+12:n>=11?n:n+12},meridiem:function(n,t){var i=n*100+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return this.minutes()===0?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return this.minutes()===0?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return this.minutes()===0?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()-i.unix()>=604800?"[下]":"[本]",this.minutes()===0?t+"dddAh点整":t+"dddAh点mm"},lastWeek:function(){var i,t;return i=n().startOf("week"),t=this.unix()<i.unix()?"[上]":"[本]",this.minutes()===0?t+"dddAh点整":t+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"周";default:return n}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1分钟",mm:"%d分钟",h:"1小时",hh:"%d小时",d:"1天",dd:"%d天",M:"1个月",MM:"%d个月",y:"1年",yy:"%d年"},week:{dow:1,doy:4}})}),function(n){n(t)}(function(n){return n.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"Ah點mm",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiemParse:/早上|上午|中午|下午|晚上/,meridiemHour:function(n,t){return(n===12&&(n=0),t==="早上"||t==="上午")?n:t==="中午"?n>=11?n:n+12:t==="下午"||t==="晚上"?n+12:void 0},meridiem:function(n,t){var i=n*100+t;return i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,ordinal:function(n,t){switch(t){case"d":case"D":case"DDD":return n+"日";case"M":return n+"月";case"w":case"W":return n+"週";default:return n}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})});t.locale("en");ui?module.exports=t:typeof define=="function"&&define.amd?(define(function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(rt.moment=ri),t}),kr(!0)):kr()}.call(this);isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}};getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").directive("ngBindingDone",["$timeout","$cacheFactory",function(n,t){var i=getAngularKuyamCache(t),r=i.get("ngBindingDone");return r===undefined?(i.put("ngBindingDone","created"),function(t,i,r){t.$last&&n(function(){t.$eval(r.ngBindingDone)})}):{}}]);getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").directive("inputMask",["$timeout","$cacheFactory",function(n,t){var i=getAngularKuyamCache(t),r=i.get("inputMask");return r===undefined?(i.put("inputMask","created"),{restrict:"A",require:"ngModel",link:function(t,i,r,u){$(i).mask(r.inputMask);$(i).on("change",function(){var n=$(i).mask();t.$apply(function(){u.$setViewValue(n)})});n(function(){$(i).mask(r.inputMask);n(function(){t.$broadcast("inputmask.masked",i)},100)},500)}}):{}}]);getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").directive("imagePreload",["$cacheFactory",function(n){var t=getAngularKuyamCache(n),i=t.get("imagePreload");return i===undefined?(t.put("imagePreload","created"),{restrict:"A",multiElement:!0,link:function(n,t,i,r){n.$watch(i.imagePreload,function(n){if(n&&n.Src!=""&&n.Src!=null){$(t).showUnitLoading();$("<img/>").attr("src",n.Src).on("error load",function(){$(t).hideUnitLoading();$(this).remove();typeof n.Callback=="function"&&n.Callback.call(r,t,n.Src)})}else typeof n.Callback=="function"&&n.Callback.call(r,t,n.Src)})}}):{}}]);getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").directive("resizable",["$window","DeviceDetector","$cacheFactory",function(n,t,i){var r=getAngularKuyamCache(i),u=r.get("resizable");return u===undefined?(r.put("resizable","created"),function(i){var r=angular.element(n);i.$watch(t.isDesktop,function(n,t){n!==t&&i.$broadcast("devicechanged",n)},!0);r.bind("resize",function(){i.$$phase||i.$apply();i.$broadcast("resize")})}):{}}]);getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").service("DeviceDetector",["$cacheFactory",function(n){var t=getAngularKuyamCache(n),i=t.get("DeviceDetector");return i===undefined?(t.put("DeviceDetector","created"),{isDesktop:function(){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;return n>=768}}):{}}]);getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").directive("alert",["$cacheFactory",function(n){var i=getAngularKuyamCache(n),t=i.get("alert");return t===undefined?(t={restrict:"AE",link:function(n){setTimeout(function(){$("#"+n.AlertController.Id).appendTo($("body"))},100)},controller:["$scope","$sce","$q",function(n,t,i){n.AlertController={Message:"",Id:"alert"+guid(),OkClicked:!1,alert:function(n){var u=this,r=i.defer();this.Message=t.trustAsHtml(n);this.OkClicked=!1;$("#"+this.Id).modal("show");$("#"+this.Id).one("hidden.bs.modal",function(){r.resolve(u.OkClicked)});return r.promise},ok:function(){this.OkClicked=!0}}}],template:'<div id="{{AlertController.Id}}" class="modal fade modal-s" role="dialog" aria-labelledby="alertModalLabel" data-keyboard="false" data-backdrop="static" style="z-index:99999;"><div class="modal-dialog modal-signout"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">x<\/button><h4 id="alertModalLabel" class="modal-title" ng-bind-html="AlertController.Message"><\/h4><\/div><div class="modal-body"><div class="row">\t<div class="col-xs-6 col-xs-offset-3"><button class="btn btn-form btn-agree" data-dismiss="modal" ng-click="AlertController.ok()">OK<\/button><\/div>\t<\/div><\/div><div class="modal-footer"><\/div><\/div><\/div><\/div>'},i.put("alert","created"),t):{}}]);$(document).ready(function(){if(isMobile.Windows()||$("html").addClass("on-nicescroll"),isMobile.any())$(document).on("hidden.bs.modal",".modal",function(){$('.modal:visible:not(".keep-modal-open")').length>0&&$(document.body).addClass("modal-open");$("body").css("padding-right","")});else{$(document).on("hidden.bs.modal",".modal",function(){$(".modal:visible").length&&$(document.body).addClass("modal-open");$("body").css("padding-right","");$(".modal:visible").length==0&&(window.verifyScrollbarWidth=null,$("#dynamicpadding").remove())});$(document).on("shown.bs.modal",".modal",function(){(typeof verifyScrollbarWidth=="undefined"||window.verifyScrollbarWidth==null)&&(window.verifyScrollbarWidth=$("body").css("padding-right"),window.verifyScrollbarWidth='<style id="dynamicpadding" type="text/css">body.modal-open{padding-right:'+window.verifyScrollbarWidth+" !important;}<\/style>",$(window.verifyScrollbarWidth).appendTo($("head")))})}});!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n){var i,t=navigator.userAgent,u=/iphone/i.test(t),f=/chrome/i.test(t),r=/android/i.test(t);n.mask={definitions:{"9":"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"};n.fn.extend({caret:function(n,t){var i;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof n?(t="number"==typeof t?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")},mask:function(t,e){var p,l,o,c,h,v,s,a,y;return!t&&this.length>0?(p=n(this[0]),y=p.data(n.mask.dataName),y?y():void 0):(e=n.extend({autoclear:n.mask.autoclear,placeholder:n.mask.placeholder,completed:null},e),l=n.mask.definitions,o=[],c=s=t.length,h=null,n.each(t.split(""),function(n,t){"?"==t?(s--,c=n):l[t]?(o.push(new RegExp(l[t])),null===h&&(h=o.length-1),c>n&&(v=o.length-1)):o.push(null)}),this.trigger("unmask").each(function(){function nt(){if(e.completed){for(var n=h;v>=n;n++)if(o[n]&&p[n]===w(n))return;e.completed.call(y)}}function w(n){return e.placeholder.charAt(n<e.placeholder.length?n:0)}function b(n){for(;++n<s&&!o[n];);return n}function ut(n){for(;--n>=0&&!o[n];);return n}function tt(n,t){var r,i;if(!(0>n)){for(r=n,i=b(t);s>r;r++)if(o[r]){if(!(s>i&&o[r].test(p[i])))break;p[r]=p[i];p[i]=w(i);i=b(i)}d();y.caret(Math.max(h,n))}}function ft(n){for(var r,u,t=n,i=w(n);s>t;t++)if(o[t]){if(r=b(t),u=p[t],p[t]=i,!(s>r&&o[r].test(u)))break;i=u}}function et(){var t=y.val(),n=y.caret();if(a&&a.length&&a.length>t.length){for(k(!0);n.begin>0&&!o[n.begin-1];)n.begin--;if(0===n.begin)for(;n.begin<h&&!o[n.begin];)n.begin++;y.caret(n.begin,n.begin)}else{for(k(!0);n.begin<s&&!o[n.begin];)n.begin++;y.caret(n.begin,n.begin)}nt()}function it(){k();y.change()}function ot(n){if(!y.prop("readonly")){var f,i,t,r=n.which||n.keyCode;a=y.val();8===r||46===r||u&&127===r?(f=y.caret(),i=f.begin,t=f.end,t-i==0&&(i=46!==r?ut(i):t=b(i-1),t=46===r?b(t):t),g(i,t),tt(i,t-1),n.preventDefault()):13===r?it.call(this,n):27===r&&(y.val(rt),y.caret(0,k()),n.preventDefault())}}function st(t){var u,e,h,f,i,c;y.prop("readonly")||(f=t.which||t.keyCode,i=y.caret(),t.ctrlKey||t.altKey||t.metaKey||32>f||!f||13===f||((i.end-i.begin!=0&&(g(i.begin,i.end),tt(i.begin,i.end-1)),u=b(i.begin-1),s>u&&(e=String.fromCharCode(f),o[u].test(e)))&&((ft(u),p[u]=e,d(),h=b(u),r)?(c=function(){n.proxy(n.fn.caret,y,h)()},setTimeout(c,0)):y.caret(h),i.begin<=v&&nt()),t.preventDefault()))}function g(n,t){for(var i=n;t>i&&s>i;i++)o[i]&&(p[i]=w(i))}function d(){y.val(p.join(""))}function k(n){for(var f,r=y.val(),u=-1,t=0,i=0;s>t;t++)if(o[t]){for(p[t]=w(t);i++<r.length;)if(f=r.charAt(i-1),o[t].test(f)){p[t]=f;u=t;break}if(i>r.length){g(t+1,s);break}}else p[t]===r.charAt(i)&&i++,c>t&&(u=t);return n?d():c>u+1?e.autoclear||p.join("")===ht?(y.val()&&y.val(""),g(0,s)):d():(d(),y.val(y.val().substring(0,u+1))),c?t:h}var y=n(this),p=n.map(t.split(""),function(n,t){if("?"!=n)return l[n]?w(t):n}),ht=p.join(""),rt=y.val();y.data(n.mask.dataName,function(){return n.map(p,function(n,t){return o[t]&&n!=w(t)?n:null}).join("")});y.one("unmask",function(){y.off(".mask").removeData(n.mask.dataName)}).on("focus.mask",function(){if(!y.prop("readonly")){clearTimeout(i);var n;rt=y.val();n=k();i=setTimeout(function(){y.get(0)===document.activeElement&&(d(),n==t.replace("?","").length?y.caret(0,n):y.caret(n))},10)}}).on("blur.mask",it).on("keydown.mask",ot).on("keypress.mask",st).on("input.mask paste.mask",function(){y.prop("readonly")||setTimeout(function(){var n=k(!0);y.caret(n);nt()},0)});f&&r&&y.off("input.mask").on("input.mask",et);k()}))}})}),function(n){function g(){var n=document.getElementsByTagName("script"),t=n[n.length-1].src.split("?")[0];return t.split("/").length>0?t.split("/").slice(0,-1).join("/")+"/":""}function rt(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}var o=!1,l=!1,k=5e3,d=2e3,u=0,t=n,nt=g(),y=["ms","moz","webkit","o"],i=window.requestAnimationFrame||!1,r=window.cancelAnimationFrame||!1,p,s,f,e;if(!i)for(p in y)s=y[p],i||(i=window[s+"RequestAnimationFrame"]),r||(r=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"]);var h=window.MutationObserver||window.WebKitMutationObserver||!1,w={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1,oneaxismousemode:"auto"},v=!1,tt=function(){function e(){var u=["-moz-grab","-webkit-grab","grab"],i,r;for((n.ischrome&&!n.ischrome22||n.isie)&&(u=[]),i=0;i<u.length;i++)if(r=u[i],t.style.cursor=r,t.style.cursor==r)return r;return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}var t,n,r,i;if(v)return v;for(t=document.createElement("DIV"),n={},n.haspointerlock=("pointerLockElement"in document)||("mozPointerLockElement"in document)||("webkitPointerLockElement"in document),n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isoperamini=Object.prototype.toString.call(window.operamini)==="[object OperaMini]",n.isie=("all"in document)&&("attachEvent"in t)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in t.style),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||document.documentMode==7),n.isie8=n.isie&&("documentMode"in document)&&document.documentMode==8,n.isie9=n.isie&&("performance"in window)&&document.documentMode>=9,n.isie10=n.isie&&("performance"in window)&&document.documentMode>=10,n.isie9mobile=/iemobile.9/i.test(navigator.userAgent),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(navigator.userAgent),n.ismozilla=("MozAppearance"in t.style),n.iswebkit=("WebkitAppearance"in t.style),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in t.style),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.navigator.msPointerEnabled||!1,n.ismac=/^mac$/i.test(navigator.platform),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),n.isios4=n.isios&&!("seal"in Object),n.isandroid=/android/i.test(navigator.userAgent),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,r=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;i<r.length;i++)if(typeof t.style[r[i]]!="undefined"){n.trstyle=r[i];break}n.hastransform=n.trstyle!=!1;n.hastransform&&(t.style[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(t.style[n.trstyle]));n.transitionstyle=!1;n.prefixstyle="";n.transitionend=!1;var r=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],u=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],f=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"];for(i=0;i<r.length;i++)if(r[i]in t.style){n.transitionstyle=r[i];n.prefixstyle=u[i];n.transitionend=f[i];break}return n.ischrome26&&(n.prefixstyle=u[1]),n.hastransition=n.transitionstyle,n.cursorgrabvalue=e(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=h!==!1,t=null,v=n,n},it=function(n,f){function it(){var n=e.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!=0)return parseInt(t);n=n.parent()}return!1}function c(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=y[u]||0,f=r==3?i?e.win.outerHeight()-e.win.innerHeight():e.win.outerWidth()-e.win.innerWidth():1,e.isie8&&r&&(r+=1),f?r:0):r}function p(n,t,i,r){e._bind(n,t,function(r){var r=r?r:window.event,u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:r.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return t=="mousewheel"?(u.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-1/40*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function g(n,t,i){var u,r;if(n.deltaMode==0?(u=-Math.floor(n.deltaX*(e.opt.mousescrollstep/54)),r=-Math.floor(n.deltaY*(e.opt.mousescrollstep/54))):n.deltaMode==1&&(u=-Math.floor(n.deltaX*e.opt.mousescrollstep),r=-Math.floor(n.deltaY*e.opt.mousescrollstep)),t&&e.opt.oneaxismousemode&&u==0&&r&&(u=r,r=0),u&&(e.scrollmom&&e.scrollmom.stop(),e.lastdeltax+=u,e.debounced("mousewheelx",function(){var n=e.lastdeltax;e.lastdeltax=0;e.rail.drag||e.doScrollLeftBy(n)},120)),r){if(e.opt.nativeparentscrolling&&i&&!e.ispage&&!e.zoomactive)if(r<0){if(e.getScrollTop()>=e.page.maxh)return!0}else if(e.getScrollTop()<=0)return!0;e.scrollmom&&e.scrollmom.stop();e.lastdeltay+=r;e.debounced("mousewheely",function(){var n=e.lastdeltay;e.lastdeltay=0;e.rail.drag||e.doScrollBy(n)},120)}return n.stopImmediatePropagation(),n.preventDefault()}var e=this,a,s,y;if(this.version="3.5.0 BETA5",this.name="nicescroll",this.me=f,this.opt={doc:t("body"),win:!1},t.extend(this.opt,w),this.opt.snapbackspeed=80,n||!1)for(a in e.opt)typeof n[a]!="undefined"&&(e.opt[a]=n[a]);this.doc=e.opt.doc;this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(e.opt.win?e.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=e.opt.win!==!1;this.win=e.opt.win||(this.ispage?t(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win;this.body=t("body");this.viewport=!1;this.isfixed=!1;this.iframe=!1;this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME";this.istextarea=this.win[0].nodeName=="TEXTAREA";this.forcescreen=!1;this.canshowonmouseevent=e.opt.autohidemode!="scroll";this.onmousedown=!1;this.onmouseup=!1;this.onmousemove=!1;this.onmousewheel=!1;this.onkeypress=!1;this.ongesturezoom=!1;this.onclick=!1;this.onscrollstart=!1;this.onscrollend=!1;this.onscrollcancel=!1;this.onzoomin=!1;this.onzoomout=!1;this.view=!1;this.page=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.checkrtlmode=!1;this.scrollrunning=!1;this.scrollmom=!1;this.observer=!1;this.observerremover=!1;do this.id="ascrail"+d++;while(document.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=e.opt.overflowx,this.overflowy=e.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=tt(),s=t.extend({},this.detected),this.canhwscroll=s.hastransform&&e.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&e.haswrapper,this.istouchcapable=!1,s.cantouch&&s.ischrome&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),s.cantouch&&s.ismozilla&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),e.opt.enablemouselockapi||(s.hasmousecapture=!1,s.haspointerlock=!1),this.delayed=function(n,t,i,r){var u=e.delaylist[n],f=(new Date).getTime();if(!r&&u&&u.tt)return!1;u&&u.tt&&clearTimeout(u.tt);u&&u.last+i>f&&!u.tt?e.delaylist[n]={last:f+i,tt:setTimeout(function(){e.delaylist[n].tt=0;t.call()},i)}:u&&u.tt||(e.delaylist[n]={last:f,tt:0},setTimeout(function(){t.call()},0))},this.debounced=function(n,t,i){var r=e.delaylist[n],u=(new Date).getTime();e.delaylist[n]=t;r||setTimeout(function(){var t=e.delaylist[n];e.delaylist[n]=!1;t.call()},i)},this.synched=function(n,t){function r(){e.onsync||(i(function(){e.onsync=!1;for(n in e.synclist){var t=e.synclist[n];t&&t.call(e);e.synclist[n]=!1}}),e.onsync=!0)}return e.synclist[n]=t,r(),n},this.unsynched=function(n){e.synclist[n]&&(e.synclist[n]=!1)},this.css=function(n,t){for(var i in t)e.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return typeof n=="undefined"?e.getScrollTop():e.setScrollTop(n)},this.scrollLeft=function(n){return typeof n=="undefined"?e.getScrollLeft():e.setScrollLeft(n)},BezierClass=function(n,t,i,r,u,f,e){this.st=n;this.ed=t;this.spd=i;this.p1=r||0;this.p2=u||1;this.p3=f||0;this.p4=e||1;this.ts=(new Date).getTime();this.df=this.ed-this.st},BezierClass.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var t=(new Date).getTime(),n=1-(t-this.ts)/this.spd,i=this.B2(n)+this.B3(n)+this.B4(n);return n<0?this.ed:this.st+Math.round(this.df*i)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};s.hastranslate3d&&s.isios&&this.doc.css("-webkit-backface-visibility","hidden");function v(){var n=e.doc.css(s.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}this.getScrollTop=function(n){if(!n){var t=v();if(t)return t.length==16?-t[13]:-t[5];if(e.timerscroll&&e.timerscroll.bz)return e.timerscroll.bz.getNow()}return e.doc.translate.y};this.getScrollLeft=function(n){if(!n){var t=v();if(t)return t.length==16?-t[12]:-t[4];if(e.timerscroll&&e.timerscroll.bh)return e.timerscroll.bh.getNow()}return e.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1);n.dispatchEvent(t)}:document.fireEvent?function(n){var t=document.createEventObject();n.fireEvent("onscroll");t.cancelBubble=!0}:function(){};s.hastranslate3d&&e.opt.enabletranslate3d?(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])}):(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])})}else this.getScrollTop=function(){return e.docscroll.scrollTop()},this.setScrollTop=function(n){return e.docscroll.scrollTop(n)},this.getScrollLeft=function(){return e.docscroll.scrollLeft()},this.setScrollLeft=function(n){return e.docscroll.scrollLeft(n)};this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1};this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1};y={thin:1,medium:3,thick:5};this.getOffset=function(){if(e.isfixed)return{top:parseFloat(e.win.css("top")),left:parseFloat(e.win.css("left"))};if(!e.viewport)return e.win.offset();var n=e.win.offset(),t=e.viewport.offset();return{top:n.top-t.top+e.viewport.scrollTop(),left:n.left-t.left+e.viewport.scrollLeft()}};this.updateScrollBar=function(n){var r,t,u,i;if(e.ishwscroll)e.rail.css({height:e.win.innerHeight()}),e.railh&&e.railh.css({width:e.win.innerWidth()});else if(r=e.getOffset(),t={top:r.top,left:r.left},t.top+=c(e.win,"border-top-width",!0),u=(e.win.outerWidth()-e.win.innerWidth())/2,t.left+=e.rail.align?e.win.outerWidth()-c(e.win,"border-right-width")-e.rail.width:c(e.win,"border-left-width"),i=e.opt.railoffset,i&&(i.top&&(t.top+=i.top),e.rail.align&&i.left&&(t.left+=i.left)),e.locked||e.rail.css({top:t.top,left:t.left,height:n?n.h:e.win.innerHeight()}),e.zoom&&e.zoom.css({top:t.top+1,left:e.rail.align==1?t.left-20:t.left+e.rail.width+4}),e.railh&&!e.locked){var t={top:r.top,left:r.left},f=e.railh.align?t.top+c(e.win,"border-top-width",!0)+e.win.innerHeight()-e.railh.height:t.top+c(e.win,"border-top-width",!0),o=t.left+c(e.win,"border-left-width");e.railh.css({top:f,left:o,width:e.railh.width})}};this.doRailClick=function(n,t,i){var r,f,u,o;e.locked||(e.cancelEvent(n),t?(r=i?e.doScrollLeft:e.doScrollTop,u=i?(n.pageX-e.railh.offset().left-e.cursorwidth/2)*e.scrollratio.x:(n.pageY-e.rail.offset().top-e.cursorheight/2)*e.scrollratio.y,r(u)):(r=i?e.doScrollLeftBy:e.doScrollBy,u=i?e.scroll.x:e.scroll.y,o=i?n.pageX-e.railh.offset().left:n.pageY-e.rail.offset().top,f=i?e.view.w:e.view.h,u>=o?r(f):r(-f)))};e.hasanimationframe=i;e.hascancelanimationframe=r;e.hasanimationframe?e.hascancelanimationframe||(r=function(){e.cancelAnimationFrame=!0}):(i=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},r=clearInterval);this.init=function(){var f,n,p,c,w,tt,a,r,i,v,y,d,g,rt,ft,et;if((e.saved.css=[],s.isie7mobile)||s.isoperamini)return!0;if(s.hasmstouch&&e.css(e.ispage?t("html"):e.win,{"-ms-touch-action":"none"}),e.zindex="auto",e.zindex=e.ispage||e.opt.zindex!="auto"?e.opt.zindex:it()||"auto",e.ispage||e.zindex=="auto"||e.zindex>u&&(u=e.zindex),e.isie&&e.zindex==0&&e.opt.zindex=="auto"&&(e.zindex="auto"),!e.ispage||!s.cantouch&&!s.isieold&&!s.isie9mobile){f=e.docscroll;e.ispage&&(f=e.haswrapper?e.win:e.doc);s.isie9mobile||e.css(f,{"overflow-y":"hidden"});e.ispage&&s.isie7&&(e.doc[0].nodeName=="BODY"?e.css(t("html"),{"overflow-y":"hidden"}):e.doc[0].nodeName=="HTML"&&e.css(t("body"),{"overflow-y":"hidden"}));!s.isios||e.ispage||e.haswrapper||e.css(t("body"),{"-webkit-overflow-scrolling":"touch"});r=t(document.createElement("div"));r.css({position:"relative",top:0,float:"right",width:e.opt.cursorwidth,height:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius});r.hborder=parseFloat(r.outerHeight()-r.innerHeight());e.cursor=r;n=t(document.createElement("div"));n.attr("id",e.id);n.addClass("nicescroll-rails");w=["left","right"];for(tt in w)c=w[tt],p=e.opt.railpadding[c],p?n.css("padding-"+c,p+"px"):e.opt.railpadding[c]=0;if(n.append(r),n.width=Math.max(parseFloat(e.opt.cursorwidth),r.outerWidth())+e.opt.railpadding.left+e.opt.railpadding.right,n.css({width:n.width+"px",zIndex:e.zindex,background:e.opt.background,cursor:"default"}),n.visibility=!0,n.scrollable=!0,n.align=e.opt.railalign=="left"?0:1,e.rail=n,e.rail.drag=!1,a=!1,!e.opt.boxzoom||e.ispage||s.isieold||(a=document.createElement("div"),e.bind(a,"click",e.doZoom),e.zoom=t(a),e.zoom.css({cursor:"pointer","z-index":e.zindex,backgroundImage:"url("+nt+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),e.opt.dblclickzoom&&e.bind(e.win,"dblclick",e.doZoom),s.cantouch&&e.opt.gesturezoom&&(e.ongesturezoom=function(n){return n.scale>1.5&&e.doZoomIn(n),n.scale<.8&&e.doZoomOut(n),e.cancelEvent(n)},e.bind(e.win,"gestureend",e.ongesturezoom))),e.railh=!1,e.opt.horizrailenabled&&(e.css(f,{"overflow-x":"hidden"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,height:e.opt.cursorwidth,width:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.wborder=parseFloat(r.outerWidth()-r.innerWidth()),e.cursorh=r,i=t(document.createElement("div")),i.attr("id",e.id+"-hr"),i.addClass("nicescroll-rails"),i.height=Math.max(parseFloat(e.opt.cursorwidth),r.outerHeight()),i.css({height:i.height+"px",zIndex:e.zindex,background:e.opt.background}),i.append(r),i.visibility=!0,i.scrollable=!0,i.align=e.opt.railvalign=="top"?0:1,e.railh=i,e.railh.drag=!1),e.ispage?(n.css({position:"fixed",top:"0px",height:"100%"}),n.align?n.css({right:"0px"}):n.css({left:"0px"}),e.body.append(n),e.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),e.body.append(i))):(e.ishwscroll?(e.win.css("position")=="static"&&e.css(e.win,{position:"relative"}),v=e.win[0].nodeName=="HTML"?e.body:e.win,e.zoom&&(e.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),v.append(e.zoom)),n.css({position:"absolute",top:0}),n.align?n.css({right:0}):n.css({left:0}),v.append(n),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),v.append(i))):(e.isfixed=e.win.css("position")=="fixed",y=e.isfixed?"fixed":"absolute",e.isfixed||(e.viewport=e.getViewport(e.win[0])),e.viewport&&(e.body=e.viewport,/relative|absolute/.test(e.viewport.css("position"))==!1&&e.css(e.viewport,{position:"relative"})),n.css({position:y}),e.zoom&&e.zoom.css({position:y}),e.updateScrollBar(),e.body.append(n),e.zoom&&e.body.append(e.zoom),e.railh&&(i.css({position:y}),e.body.append(i))),s.isios&&e.css(e.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),s.isie&&e.opt.disableoutline&&e.win.attr("hideFocus","true"),s.iswebkit&&e.opt.disableoutline&&e.win.css({outline:"none"})),e.opt.autohidemode===!1?(e.autohidedom=!1,e.rail.css({opacity:e.opt.cursoropacitymax}),e.railh&&e.railh.css({opacity:e.opt.cursoropacitymax})):e.opt.autohidemode===!0?(e.autohidedom=t().add(e.rail),s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursor)),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh)),e.railh&&s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="scroll"?(e.autohidedom=t().add(e.rail),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh))):e.opt.autohidemode=="cursor"?(e.autohidedom=t().add(e.cursor),e.railh&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="hidden"&&(e.autohidedom=!1,e.hide(),e.locked=!1),s.isie9mobile)e.scrollmom=new b(e),e.onmangotouch=function(){var n=e.getScrollTop(),t=e.getScrollLeft(),c,s;if(n==e.scrollmom.lastscrolly&&t==e.scrollmom.lastscrollx)return!0;var r=n-e.mangotouch.sy,u=t-e.mangotouch.sx,h=Math.round(Math.sqrt(Math.pow(u,2)+Math.pow(r,2)));if(h!=0){var f=r<0?-1:1,o=u<0?-1:1,i=+new Date;e.mangotouch.lazy&&clearTimeout(e.mangotouch.lazy);i-e.mangotouch.tm>80||e.mangotouch.dry!=f||e.mangotouch.drx!=o?(e.scrollmom.stop(),e.scrollmom.reset(t,n),e.mangotouch.sy=n,e.mangotouch.ly=n,e.mangotouch.sx=t,e.mangotouch.lx=t,e.mangotouch.dry=f,e.mangotouch.drx=o,e.mangotouch.tm=i):(e.scrollmom.stop(),e.scrollmom.update(e.mangotouch.sx-u,e.mangotouch.sy-r),c=i-e.mangotouch.tm,e.mangotouch.tm=i,s=Math.max(Math.abs(e.mangotouch.ly-n),Math.abs(e.mangotouch.lx-t)),e.mangotouch.ly=n,e.mangotouch.lx=t,s>2&&(e.mangotouch.lazy=setTimeout(function(){e.mangotouch.lazy=!1;e.mangotouch.dry=0;e.mangotouch.drx=0;e.mangotouch.tm=0;e.scrollmom.doMomentum(30)},100)))}},d=e.getScrollTop(),g=e.getScrollLeft(),e.mangotouch={sy:d,ly:d,dry:0,sx:g,lx:g,drx:0,lazy:!1,tm:0},e.bind(e.docscroll,"scroll",e.onmangotouch);else{if((s.cantouch||e.istouchcapable||e.opt.touchbehavior||s.hasmstouch)&&(e.scrollmom=new b(e),e.ontouchstart=function(n){var r,i,o,u,n,f,l;if(window.vscrollreachtotop=undefined,n.pointerType&&n.pointerType!=2)return!1;if(!e.locked){if(s.hasmstouch)for(i=n.target?n.target:!1;i;){if(r=t(i).getNiceScroll(),r.length>0&&r[0].me==e.me)break;if(r.length>0)return!1;if(i.nodeName=="DIV"&&i.id==e.id)break;i=i.parentNode?i.parentNode:!1}if(e.cancelScroll(),i=e.getTarget(n),i&&(o=/INPUT/i.test(i.nodeName)&&/range/i.test(i.type),o))return e.stopPropagation(n);if(!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(u=n,n={original:n.original?n.original:n},n.clientX=u.screenX,n.clientY=u.screenY),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,st:e.getScrollTop(),sl:e.getScrollLeft(),pt:2,dl:!1},e.ispage||!e.opt.directionlockdeadzone)e.rail.drag.dl="f";else{var h={w:t(window).width(),h:t(window).height()},c={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a=Math.max(0,c.h-h.h),v=Math.max(0,c.w-h.w);e.rail.drag.ck=!e.rail.scrollable&&e.railh.scrollable?a>0?"v":!1:e.rail.scrollable&&!e.railh.scrollable?v>0?"h":!1:!1;e.rail.drag.ck||(e.rail.drag.dl="f")}if(e.opt.touchbehavior&&e.isiframe&&s.isie&&(f=e.win.position(),e.rail.drag.x+=f.left,e.rail.drag.y+=f.top),e.hasmoving=!1,e.lastmouseup=!1,e.scrollmom.reset(n.clientX,n.clientY),!s.cantouch&&!this.istouchcapable&&!s.hasmstouch){if(l=i?/INPUT|SELECT|TEXTAREA/i.test(i.nodeName):!1,!l)return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.opt.touchbehavior?e.cancelEvent(n):e.stopPropagation(n);/SUBMIT|CANCEL|BUTTON/i.test(t(i).attr("type"))&&(pc={tg:i,click:!1},e.preventclick=pc)}}},e.ontouchend=function(n){return(window.vscrollreachtotop=undefined,n.pointerType&&n.pointerType!=2)?!1:e.rail.drag&&e.rail.drag.pt==2&&(e.scrollmom.doMomentum(),e.rail.drag=!1,e.hasmoving&&(e.hasmoving=!1,e.lastmouseup=!0,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),!s.cantouch))?e.cancelEvent(n):void 0},rt=e.opt.touchbehavior&&e.isiframe&&!s.hasmousecapture,window.count=0,e.ontouchmove=function(n,i){var p,a,n,v,y,u,k;if(n.pointerType&&n.pointerType!=2)return!1;if(e.rail.drag&&e.rail.drag.pt==2){if(s.cantouch&&typeof n.original=="undefined")return!0;e.hasmoving=!0;e.preventclick&&!e.preventclick.click&&(e.preventclick.click=e.preventclick.tg.onclick||!1,e.preventclick.tg.onclick=e.onpreventclick);p=t.extend({original:n},n);n=p;"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY);e.forcescreen&&(a=n,n={original:n.original?n.original:n},n.clientX=a.screenX,n.clientY=a.screenY);v=ofy=0;rt&&!i&&(y=e.win.position(),v=-y.left,ofy=-y.top);var f=n.clientY+ofy,w=f-e.rail.drag.y,o=n.clientX+v,b=o-e.rail.drag.x,r=e.rail.drag.st-w;if(e.ishwscroll&&e.opt.bouncescroll?r<0?r=Math.round(r/2):r>e.page.maxh&&(r=e.page.maxh+Math.round((r-e.page.maxh)/2)):(r<0&&(r=0,f=0),r>e.page.maxh&&(r=e.page.maxh,f=0)),e.railh&&e.railh.scrollable&&(u=e.rail.drag.sl-b,e.ishwscroll&&e.opt.bouncescroll?u<0?u=Math.round(u/2):u>e.page.maxw&&(u=e.page.maxw+Math.round((u-e.page.maxw)/2)):(u<0&&(u=0,o=0),u>e.page.maxw&&(u=e.page.maxw,o=0))),k=!1,e.rail.drag.dl)k=!0,e.rail.drag.dl=="v"?u=e.rail.drag.sl:e.rail.drag.dl=="h"&&(r=e.rail.drag.st);else{var h=Math.abs(w),c=Math.abs(b),l=e.opt.directionlockdeadzone;if(e.rail.drag.ck=="v"){if(h>l&&c<=h*.3)return e.rail.drag=!1,!0;c>l&&(e.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if(e.rail.drag.ck=="h"){if(c>l&&h<=c*.3)return e.rail.drag=!1,!0;h>l&&(e.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(e.synched("touchmove",function(){e.rail.drag&&e.rail.drag.pt==2&&(e.prepareTransition&&e.prepareTransition(0),e.rail.scrollable&&e.setScrollTop(r),e.scrollmom.update(o,f),e.railh&&e.railh.scrollable?(e.setScrollLeft(u),e.showCursor(r,u)):e.showCursor(r),s.isie10&&document.selection.clear());t(e.rail.context).height()+e.getScrollTop()>=e.getContentSize().h&&(window.vscrollreachtotop=!0);e.getScrollTop()<=0&&(window.vscrollreachtotop=!1)}),window.vscrollreachtotop===!0)t("body").scrollTop(t("body").scrollTop()+1);else if(window.vscrollreachtotop===!1)t("body").scrollTop(t("body").scrollTop()-1);else return e.cancelEvent(n)}window.vscrollreachtotop===!0&&t("body").scrollTop(t("body").scrollTop()+1);window.vscrollreachtotop===!1&&t("body").scrollTop(t("body").scrollTop()-1)}),e.onmousedown=function(n,t){if(!e.rail.drag||e.rail.drag.pt==1){if(e.locked)return e.cancelEvent(n);e.cancelScroll();e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,pt:1,hr:!!t};var i=e.getTarget(n);return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.isiframe&&!s.hasmousecapture&&(e.saved.csspointerevents=e.doc.css("pointer-events"),e.css(e.doc,{"pointer-events":"none"})),e.cancelEvent(n)}},e.onmouseup=function(n){if(e.rail.drag)return(s.hasmousecapture&&document.releaseCapture(),e.isiframe&&!s.hasmousecapture&&e.doc.css("pointer-events",e.saved.csspointerevents),e.rail.drag.pt!=1)?void 0:(e.rail.drag=!1,e.cancelEvent(n))},e.onmousemove=function(n){var t,i;if(e.rail.drag)return e.rail.drag.pt!=1?void 0:s.ischrome&&n.which==0?e.onmouseup(n):(e.cursorfreezed=!0,e.rail.drag.hr?(e.scroll.x=e.rail.drag.sx+(n.clientX-e.rail.drag.x),e.scroll.x<0&&(e.scroll.x=0),t=e.scrollvaluemaxw,e.scroll.x>t&&(e.scroll.x=t)):(e.scroll.y=e.rail.drag.sy+(n.clientY-e.rail.drag.y),e.scroll.y<0&&(e.scroll.y=0),i=e.scrollvaluemax,e.scroll.y>i&&(e.scroll.y=i)),e.synched("mousemove",function(){e.rail.drag&&e.rail.drag.pt==1&&(e.showCursor(),e.rail.drag.hr?e.doScrollLeft(Math.round(e.scroll.x*e.scrollratio.x),e.opt.cursordragspeed):e.doScrollTop(Math.round(e.scroll.y*e.scrollratio.y),e.opt.cursordragspeed))}),e.cancelEvent(n))},s.cantouch||e.opt.touchbehavior)e.onpreventclick=function(n){if(e.preventclick)return e.preventclick.tg.onclick=e.preventclick.click,e.preventclick=!1,e.cancelEvent(n)},e.bind(e.win,"mousedown",e.ontouchstart),e.onclick=s.isios?!1:function(n){return e.lastmouseup?(e.lastmouseup=!1,e.cancelEvent(n)):!0},e.opt.grabcursorenabled&&s.cursorgrabvalue&&(e.css(e.ispage?e.doc:e.win,{cursor:s.cursorgrabvalue}),e.css(e.rail,{cursor:s.cursorgrabvalue}));else{function ut(n){var i,t,r;e.selectiondrag&&(n&&(i=e.win.outerHeight(),t=n.pageY-e.selectiondrag.top,t>0&&t<i&&(t=0),t>=i&&(t-=i),e.selectiondrag.df=t),e.selectiondrag.df!=0)&&(r=-Math.floor(e.selectiondrag.df/6)*2,e.doScrollBy(r),e.debounced("doselectionscroll",function(){ut()},50))}e.hasTextSelected="getSelection"in document?function(){return document.getSelection().rangeCount>0}:"selection"in document?function(){return document.selection.type!="None"}:function(){return!1};e.onselectionstart=function(){e.ispage||(e.selectiondrag=e.win.offset())};e.onselectionend=function(){e.selectiondrag=!1};e.onselectiondrag=function(n){e.selectiondrag&&e.hasTextSelected()&&e.debounced("selectionscroll",function(){ut(n)},250)}}s.hasmstouch&&(e.css(e.rail,{"-ms-touch-action":"none"}),e.css(e.cursor,{"-ms-touch-action":"none"}),e.bind(e.win,"MSPointerDown",e.ontouchstart),e.bind(document,"MSPointerUp",e.ontouchend),e.bind(document,"MSPointerMove",e.ontouchmove),e.bind(e.cursor,"MSGestureHold",function(n){n.preventDefault()}),e.bind(e.cursor,"contextmenu",function(n){n.preventDefault()}));this.istouchcapable&&(e.bind(e.win,"touchstart",e.ontouchstart),e.bind(document,"touchend",e.ontouchend),e.bind(document,"touchcancel",e.ontouchend),e.bind(document,"touchmove",e.ontouchmove));e.bind(e.cursor,"mousedown",e.onmousedown);e.bind(e.cursor,"mouseup",e.onmouseup);e.railh&&(e.bind(e.cursorh,"mousedown",function(n){e.onmousedown(n,!0)}),e.bind(e.cursorh,"mouseup",function(n){if(!e.rail.drag||e.rail.drag.pt!=2)return e.rail.drag=!1,e.hasmoving=!1,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),e.cancelEvent(n)}));!e.opt.cursordragontouch&&(s.cantouch||e.opt.touchbehavior)||(e.rail.css({cursor:"default"}),e.railh&&e.railh.css({cursor:"default"}),e.jqbind(e.rail,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.rail,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.rail,"click",function(n){e.doRailClick(n,!1,!1)}),e.bind(e.rail,"dblclick",function(n){e.doRailClick(n,!0,!1)}),e.bind(e.cursor,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursor,"dblclick",function(n){e.cancelEvent(n)})),e.railh&&(e.jqbind(e.railh,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.railh,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.railh,"click",function(n){e.doRailClick(n,!1,!0)}),e.bind(e.railh,"dblclick",function(n){e.doRailClick(n,!0,!0)}),e.bind(e.cursorh,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursorh,"dblclick",function(n){e.cancelEvent(n)}))));s.cantouch||e.opt.touchbehavior?(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.ontouchend),e.bind(document,"mousemove",e.ontouchmove),e.onclick&&e.bind(document,"click",e.onclick),e.opt.cursordragontouch&&(e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mousemove",e.onmousemove),e.cursorh&&e.bind(e.cursorh,"mousedown",e.onmousedown),e.cursorh&&e.bind(e.cursorh,"mousemove",e.onmousemove))):(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.onmouseup),e.bind(document,"mousemove",e.onmousemove),e.onclick&&e.bind(document,"click",e.onclick),!e.ispage&&e.opt.enablescrollonselection&&(e.bind(e.win[0],"mousedown",e.onselectionstart),e.bind(document,"mouseup",e.onselectionend),e.bind(e.cursor,"mouseup",e.onselectionend),e.cursorh&&e.bind(e.cursorh,"mouseup",e.onselectionend),e.bind(document,"mousemove",e.onselectiondrag)),e.zoom&&(e.jqbind(e.zoom,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.zoom,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()})));e.opt.enablemousewheel&&(e.isiframe||e.bind(s.isie&&e.ispage?document:e.win,"mousewheel",e.onmousewheel),e.bind(e.rail,"mousewheel",e.onmousewheel),e.railh&&e.bind(e.railh,"mousewheel",e.onmousewheelhr));e.ispage||s.cantouch||/HTML|BODY/.test(e.win[0].nodeName)||(e.win.attr("tabindex")||e.win.attr({tabindex:k++}),e.jqbind(e.win,"focus",function(n){o=e.getTarget(n).id||!0;e.hasfocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"blur",function(){o=!1;e.hasfocus=!1}),e.jqbind(e.win,"mouseenter",function(n){l=e.getTarget(n).id||!0;e.hasmousefocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"mouseleave",function(){l=!1;e.hasmousefocus=!1}))}e.onkeypress=function(n){var i,f,u;if(e.locked&&e.page.maxh==0||(n=n?n:window.e,i=e.getTarget(n),i&&/INPUT|TEXTAREA|SELECT|OPTION/.test(i.nodeName)&&(f=i.getAttribute("type")||i.type||!1,!f||!/submit|button|cancel/i.tp)))return!0;if(e.hasfocus||e.hasmousefocus&&!o||e.ispage&&!o&&!l){if(u=n.keyCode,e.locked&&u!=27)return e.cancelEvent(n);var r=n.ctrlKey||!1,s=n.shiftKey||!1,t=!1;switch(u){case 38:case 63233:e.doScrollBy(72);t=!0;break;case 40:case 63235:e.doScrollBy(-72);t=!0;break;case 37:case 63232:e.railh&&(r?e.doScrollLeft(0):e.doScrollLeftBy(72),t=!0);break;case 39:case 63234:e.railh&&(r?e.doScrollLeft(e.page.maxw):e.doScrollLeftBy(-72),t=!0);break;case 33:case 63276:e.doScrollBy(e.view.h);t=!0;break;case 34:case 63277:e.doScrollBy(-e.view.h);t=!0;break;case 36:case 63273:e.railh&&r?e.doScrollPos(0,0):e.doScrollTo(0);t=!0;break;case 35:case 63275:e.railh&&r?e.doScrollPos(e.page.maxw,e.page.maxh):e.doScrollTo(e.page.maxh);t=!0;break;case 32:e.opt.spacebarenabled&&(s?e.doScrollBy(e.view.h):e.doScrollBy(-e.view.h),t=!0);break;case 27:e.zoomactive&&(e.doZoom(),t=!0)}if(t)return e.cancelEvent(n)}};e.opt.enablekeyboard&&e.bind(document,s.isopera&&!s.isopera12?"keypress":"keydown",e.onkeypress);e.bind(window,"resize",e.lazyResize);e.bind(window,"orientationchange",e.lazyResize);e.bind(window,"load",e.lazyResize);!s.ischrome||e.ispage||e.haswrapper||(ft=e.win.attr("style"),et=parseFloat(e.win.css("width"))+1,e.win.css("width",et),e.synched("chromefix",function(){e.win.attr("style",ft)}));e.onAttributeChange=function(){e.lazyResize(250)};e.ispage||e.haswrapper||(h!==!1?(e.observer=new h(function(n){n.forEach(e.onAttributeChange)}),e.observer.observe(e.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),e.observerremover=new h(function(n){n.forEach(function(n){if(n.removedNodes.length>0)for(var t in n.removedNodes)if(n.removedNodes[t]==e.win[0])return e.remove()})}),e.observerremover.observe(e.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(e.bind(e.win,s.isie&&!s.isie9?"propertychange":"DOMAttrModified",e.onAttributeChange),s.isie9&&e.win[0].attachEvent("onpropertychange",e.onAttributeChange),e.bind(e.win,"DOMNodeRemoved",function(n){n.target==e.win[0]&&e.remove()})));!e.ispage&&e.opt.boxzoom&&e.bind(window,"resize",e.resizeZoom);e.istextarea&&e.bind(e.win,"mouseup",e.lazyResize);e.checkrtlmode=!0;e.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){function ot(){var n,r,i;e.iframexd=!1;try{n="contentDocument"in this?this.contentDocument:this.contentWindow.document;r=n.domain}catch(e){e.iframexd=!0;n=!1}if(e.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;e.forcescreen=!0;e.isiframe&&(e.iframe={doc:t(n),html:e.doc.contents().find("html")[0],body:e.doc.contents().find("body")[0]},e.getContentSize=function(){return{w:Math.max(e.iframe.html.scrollWidth,e.iframe.body.scrollWidth),h:Math.max(e.iframe.html.scrollHeight,e.iframe.body.scrollHeight)}},e.docscroll=t(e.iframe.body));s.isios||!e.opt.iframeautoresize||e.isiframe||(e.win.scrollTop(0),e.doc.height(""),i=Math.max(n.getElementsByTagName("html")[0].scrollHeight,n.body.scrollHeight),e.doc.height(i));e.lazyResize(30);s.isie7&&e.css(t(e.iframe.html),{"overflow-y":"hidden"});e.css(t(e.iframe.body),{"overflow-y":"hidden"});s.isios&&e.haswrapper&&(e.css(t(n.body),{"-webkit-transform":"translate3d(0,0,0)"}),console.log(1));"contentWindow"in this?e.bind(this.contentWindow,"scroll",e.onscroll):e.bind(n,"scroll",e.onscroll);e.opt.enablemousewheel&&e.bind(n,"mousewheel",e.onmousewheel);e.opt.enablekeyboard&&e.bind(n,s.isopera?"keypress":"keydown",e.onkeypress);(s.cantouch||e.opt.touchbehavior)&&(e.bind(n,"mousedown",e.ontouchstart),e.bind(n,"mousemove",function(n){e.ontouchmove(n,!0)}),e.opt.grabcursorenabled&&s.cursorgrabvalue&&e.css(t(n.body),{cursor:s.cursorgrabvalue}));e.bind(n,"mouseup",e.ontouchend);e.zoom&&(e.opt.dblclickzoom&&e.bind(n,"dblclick",e.doZoom),e.ongesturezoom&&e.bind(n,"gestureend",e.ongesturezoom))}this.doc[0].readyState&&this.doc[0].readyState=="complete"&&setTimeout(function(){ot.call(e.doc[0],!1)},500);e.bind(this.doc,"load",ot)}};this.showCursor=function(n,t){(e.cursortimeout&&(clearTimeout(e.cursortimeout),e.cursortimeout=0),e.rail)&&(e.autohidedom&&(e.autohidedom.stop().css({opacity:e.opt.cursoropacitymax}),e.cursoractive=!0),e.rail.drag&&e.rail.drag.pt==1||(typeof n!="undefined"&&n!==!1&&(e.scroll.y=Math.round(n*1/e.scrollratio.y)),typeof t!="undefined"&&(e.scroll.x=Math.round(t*1/e.scrollratio.x))),e.cursor.css({height:e.cursorheight,top:e.scroll.y}),e.cursorh&&(!e.rail.align&&e.rail.visibility?e.cursorh.css({width:e.cursorwidth,left:e.scroll.x+e.rail.width}):e.cursorh.css({width:e.cursorwidth,left:e.scroll.x}),e.cursoractive=!0),e.zoom&&e.zoom.stop().css({opacity:e.opt.cursoropacitymax}))};this.hideCursor=function(n){e.cursortimeout||e.rail&&e.autohidedom&&(e.cursortimeout=setTimeout(function(){e.rail.active&&e.showonmouseevent||(e.autohidedom.stop().animate({opacity:e.opt.cursoropacitymin}),e.zoom&&e.zoom.stop().animate({opacity:e.opt.cursoropacitymin}),e.cursoractive=!1);e.cursortimeout=0},n||e.opt.hidecursordelay))};this.noticeCursor=function(n,t,i){e.showCursor(t,i);e.rail.active||e.hideCursor(n)};this.getContentSize=e.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:e.haswrapper?function(){return{w:e.doc.outerWidth()+parseInt(e.win.css("paddingLeft"))+parseInt(e.win.css("paddingRight")),h:e.doc.outerHeight()+parseInt(e.win.css("paddingTop"))+parseInt(e.win.css("paddingBottom"))}}:function(){return{w:e.docscroll[0].scrollWidth,h:e.docscroll[0].scrollHeight}};this.onResize=function(n,t){var i,r,u;if(!e.win)return!1;if(!e.haswrapper&&!e.ispage){if(e.win.css("display")=="none")return e.visibility&&e.hideRail().hideRailHr(),!1;e.hidden||e.visibility||e.showRail().showRailHr()}var f=e.page.maxh,o=e.page.maxw,s={h:e.view.h,w:e.view.w};if(e.view={w:e.ispage?e.win.width():parseInt(e.win[0].clientWidth),h:e.ispage?e.win.height():parseInt(e.win[0].clientHeight)},e.page=t?t:e.getContentSize(),e.page.maxh=Math.max(0,e.page.h-e.view.h),e.page.maxw=Math.max(0,e.page.w-e.view.w),e.page.maxh==f&&e.page.maxw==o&&e.view.w==s.w){if(e.ispage||(i=e.win.offset(),e.lastposition&&(r=e.lastposition,r.top==i.top&&r.left==i.left)))return e;e.lastposition=i}return(e.page.maxh==0?(e.hideRail(),e.scrollvaluemax=0,e.scroll.y=0,e.scrollratio.y=0,e.cursorheight=0,e.setScrollTop(0),e.rail.scrollable=!1):e.rail.scrollable=!0,e.page.maxw==0?(e.hideRailHr(),e.scrollvaluemaxw=0,e.scroll.x=0,e.scrollratio.x=0,e.cursorwidth=0,e.setScrollLeft(0),e.railh.scrollable=!1):e.railh.scrollable=!0,e.locked=e.page.maxh==0&&e.page.maxw==0,e.locked)?(e.ispage||e.updateScrollBar(e.view),!1):(e.hidden||e.visibility?e.hidden||e.railh.visibility||e.showRailHr():e.showRail().showRailHr(),e.istextarea&&e.win.css("resize")&&e.win.css("resize")!="none"&&(e.view.h-=20),e.cursorheight=Math.min(e.view.h,Math.round(e.view.h*(e.view.h/e.page.h))),e.cursorheight=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorheight),e.cursorwidth=Math.min(e.view.w,Math.round(e.view.w*(e.view.w/e.page.w))),e.cursorwidth=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorwidth),e.scrollvaluemax=e.view.h-e.cursorheight-e.cursor.hborder,e.railh&&(e.railh.width=e.page.maxh>0?e.view.w-e.rail.width:e.view.w,e.scrollvaluemaxw=e.railh.width-e.cursorwidth-e.cursorh.wborder),e.checkrtlmode&&e.railh&&(e.checkrtlmode=!1,e.opt.rtlmode&&e.scroll.x==0&&e.setScrollLeft(e.page.maxw)),e.ispage||e.updateScrollBar(e.view),e.scrollratio={x:e.page.maxw/e.scrollvaluemaxw,y:e.page.maxh/e.scrollvaluemax},u=e.getScrollTop(),u>e.page.maxh?e.doScrollTop(e.page.maxh):(e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)),e.cursoractive&&e.noticeCursor()),e.scroll.y&&e.getScrollTop()==0&&e.doScrollTo(Math.floor(e.scroll.y*e.scrollratio.y)),e)};this.resize=e.onResize;this.lazyResize=function(n){return n=isNaN(n)?30:n,e.delayed("resize",e.resize,n),e};this._bind=function(n,t,i,r){e.events.push({e:n,n:t,f:i,b:r,q:!1});n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};this.jqbind=function(n,i,r){e.events.push({e:n,n:i,f:r,q:!0});t(n).bind(i,r)};this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n,f,o;t=="mousewheel"?"onwheel"in e.win?e._bind(u,"wheel",i,r||!1):(f=typeof document.onmousewheel!="undefined"?"mousewheel":"DOMMouseScroll",p(u,f,i,r||!1),f=="DOMMouseScroll"&&p(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(s.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&(o=t=="mousedown"?"touchstart":t=="mouseup"?"touchend":"touchmove",e._bind(u,o,function(n){var t;n.touches?n.touches.length<2&&(t=n.touches.length?n.touches[0]:n,t.original=n,i.call(this,t)):n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1)),e._bind(u,t,i,r||!1),s.cantouch&&t=="mouseup"&&e._bind(u,"touchcancel",i,r||!1)):e._bind(u,t,function(n){return n=n||window.event||!1,n&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),i.call(u,n)===!1||r===!1?e.cancelEvent(n):!0})};this._unbind=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1};this.unbindAll=function(){for(var n,t=0;t<e.events.length;t++)n=e.events[t],n.q?n.e.unbind(n.n,n.f):e._unbind(n.e,n.n,n.f,n.b)};this.cancelEvent=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1,!1):!1};this.stopPropagation=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?n.stopPropagation?n.stopPropagation():(n.cancelBubble&&(n.cancelBubble=!0),!1):!1};this.showRail=function(){return e.page.maxh!=0&&(e.ispage||e.win.css("display")!="none")&&(e.visibility=!0,e.rail.visibility=!0,e.rail.css("display","block")),e};this.showRailHr=function(){return e.railh?(e.page.maxw!=0&&(e.ispage||e.win.css("display")!="none")&&(e.railh.visibility=!0,e.railh.css("display","block")),e):e};this.hideRail=function(){return e.visibility=!1,e.rail.visibility=!1,e.rail.css("display","none"),e};this.hideRailHr=function(){return e.railh?(e.railh.visibility=!1,e.railh.css("display","none"),e):e};this.show=function(){return e.hidden=!1,e.locked=!1,e.showRail().showRailHr()};this.hide=function(){return e.hidden=!0,e.locked=!0,e.hideRail().hideRailHr()};this.toggle=function(){return e.hidden?e.show():e.hide()};this.remove=function(){var r,i,n,u;for(e.stop(),e.cursortimeout&&clearTimeout(e.cursortimeout),e.doZoomOut(),e.unbindAll(),s.isie9&&e.win[0].detachEvent("onpropertychange",e.onAttributeChange),e.observer!==!1&&e.observer.disconnect(),e.observerremover!==!1&&e.observerremover.disconnect(),e.events=null,e.cursor&&e.cursor.remove(),e.cursorh&&e.cursorh.remove(),e.rail&&e.rail.remove(),e.railh&&e.railh.remove(),e.zoom&&e.zoom.remove(),r=0;r<e.saved.css.length;r++)i=e.saved.css[r],i[0].css(i[1],typeof i[2]=="undefined"?"":i[2]);e.saved=!1;e.me.data("__nicescroll","");n=t.nicescroll;n.each(function(t){if(this&&this.id===e.id){delete n[t];for(var i=++t;i<n.length;i++,t++)n[t]=n[i];n.length--;n.length&&delete n[n.length]}});for(u in e)e[u]=null,delete e[u];e=null};this.scrollstart=function(n){return this.onscrollstart=n,e};this.scrollend=function(n){return this.onscrollend=n,e};this.scrollcancel=function(n){return this.onscrollcancel=n,e};this.zoomin=function(n){return this.onzoomin=n,e};this.zoomout=function(n){return this.onzoomout=n,e};this.isScrollable=function(n){var i=n.target?n.target:n,r,u;if(i.nodeName=="OPTION")return!0;while(i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName)){if(r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u))return i.clientHeight!=i.scrollHeight;i=i.parentNode?i.parentNode:!1}return!1};this.getViewport=function(n){for(var i=n&&n.parentNode?n.parentNode:!1,r,u;i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName);){if((r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u)&&i.clientHeight!=i.scrollHeight)||r.getNiceScroll().length>0)return r;i=i.parentNode?i.parentNode:!1}return!1};this.onmousewheel=function(n){var t,i,r;return e.locked?(e.debounced("checkunlock",e.resize,250),!0):e.rail.drag?e.cancelEvent(n):(e.opt.oneaxismousemode=="auto"&&n.deltaX!=0&&(e.opt.oneaxismousemode=!1),e.opt.oneaxismousemode&&n.deltaX==0&&!e.rail.scrollable)?e.railh&&e.railh.scrollable?e.onmousewheelhr(n):!0:(t=+new Date,i=!1,e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:(r=g(n,!1,i),r&&(e.checkarea=0),r)};this.onmousewheelhr=function(n){if(e.locked||!e.railh.scrollable)return!0;if(e.rail.drag)return e.cancelEvent(n);var t=+new Date,i=!1;return(e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:e.locked?e.cancelEvent(n):g(n,!0,i)};this.stop=function(){return e.cancelScroll(),e.scrollmon&&e.scrollmon.stop(),e.cursorfreezed=!1,e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.noticeCursor(),e};this.getTransitionSpeed=function(n){var i=Math.round(e.opt.scrollspeed*10),t=Math.min(i,Math.round(n/20*e.opt.scrollspeed));return t>20?t:0};e.opt.smoothscroll?e.ishwscroll&&s.hastransition&&e.opt.usetransition?(this.prepareTransition=function(n,t){var i=t?n>20?n:0:e.getTransitionSpeed(n),r=i?s.prefixstyle+"transform "+i+"ms ease-out":"";return e.lasttransitionstyle&&e.lasttransitionstyle==r||(e.lasttransitionstyle=r,e.doc.css(s.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=e.getScrollTop(),u=e.getScrollLeft();if((((e.newscrolly-r)*(t-r)<0||(e.newscrollx-u)*(n-u)<0)&&e.cancelScroll(),e.opt.bouncescroll==!1&&(t<0?t=0:t>e.page.maxh&&(t=e.page.maxh),n<0?n=0:n>e.page.maxw&&(n=e.page.maxw)),e.scrollrunning&&n==e.newscrollx&&t==e.newscrolly)||(e.newscrolly=t,e.newscrollx=n,e.newscrollspeed=i||!1,e.timer))return!1;e.timer=setTimeout(function(){var u=e.getScrollTop(),f=e.getScrollLeft(),r={},o,i,h,c,l;r.x=n-f;r.y=t-u;r.px=f;r.py=u;o=Math.round(Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)));i=e.newscrollspeed&&e.newscrollspeed>1?e.newscrollspeed:e.getTransitionSpeed(o);e.newscrollspeed&&e.newscrollspeed<=1&&(i*=e.newscrollspeed);e.prepareTransition(i,!0);e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm);i>0&&(!e.scrollrunning&&e.onscrollstart&&(h={type:"scrollstart",current:{x:f,y:u},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:i},e.onscrollstart.call(e,h)),s.transitionend?e.scrollendtrapped||(e.scrollendtrapped=!0,e.bind(e.doc,s.transitionend,e.onScrollEnd,!1)):(e.scrollendtrapped&&clearTimeout(e.scrollendtrapped),e.scrollendtrapped=setTimeout(e.onScrollEnd,i)),c=u,l=f,e.timerscroll={bz:new BezierClass(c,e.newscrolly,i,0,0,.58,1),bh:new BezierClass(l,e.newscrollx,i,0,0,.58,1)},e.cursorfreezed||(e.timerscroll.tm=setInterval(function(){e.showCursor(e.getScrollTop(),e.getScrollLeft())},60)));e.synched("doScroll-set",function(){e.timer=0;e.scrollendtrapped&&(e.scrollrunning=!0);e.setScrollTop(e.newscrolly);e.setScrollLeft(e.newscrollx);e.scrollendtrapped||e.onScrollEnd()})},50)},this.cancelScroll=function(){if(!e.scrollendtrapped)return!0;var n=e.getScrollTop(),t=e.getScrollLeft();return e.scrollrunning=!1,s.transitionend||clearTimeout(s.transitionend),e.scrollendtrapped=!1,e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.prepareTransition(0),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,e.cursorfreezed=!1,e.showCursor(n,t),e},this.onScrollEnd=function(){var n,t,i;if(e.scrollendtrapped&&e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.scrollendtrapped=!1,e.prepareTransition(0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,n=e.getScrollTop(),t=e.getScrollLeft(),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.noticeCursor(!1,n,t),e.cursorfreezed=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),n!=e.newscrolly||t!=e.newscrollx)return e.doScrollPos(t,n,e.opt.snapbackspeed);e.onscrollend&&e.scrollrunning&&(i={type:"scrollend",current:{x:t,y:n},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,i));e.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,u){function v(){var r,n,t,u,f;if(e.cancelAnimationFrame)return!0;if(e.scrollrunning=!0,a=1-a,a)return e.timer=i(v)||1;r=0;n=sy=e.getScrollTop();e.dst.ay?(n=e.bzscroll?e.dst.py+e.bzscroll.getNow()*e.dst.ay:e.newscrolly,u=n-sy,(u<0&&n<e.newscrolly||u>0&&n>e.newscrolly)&&(n=e.newscrolly),e.setScrollTop(n),n==e.newscrolly&&(r=1)):r=1;t=sx=e.getScrollLeft();e.dst.ax?(t=e.bzscroll?e.dst.px+e.bzscroll.getNow()*e.dst.ax:e.newscrollx,u=t-sx,(u<0&&t<e.newscrollx||u>0&&t>e.newscrollx)&&(t=e.newscrollx),e.setScrollLeft(t),t==e.newscrollx&&(r+=1)):r+=1;r==2?(e.timer=0,e.cursorfreezed=!1,e.bzscroll=!1,e.scrollrunning=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),t!=e.newscrollx||n!=e.newscrolly?e.doScrollPos(t,n):e.onscrollend&&(f={type:"scrollend",current:{x:sx,y:sy},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,f))):e.timer=i(v)||1}var t=typeof t=="undefined"||t===!1?e.getScrollTop(!0):t,f,o,h,l,c,s,a,y;if(e.timer&&e.newscrolly==t&&e.newscrollx==n)return!0;(e.timer&&r(e.timer),e.timer=0,f=e.getScrollTop(),o=e.getScrollLeft(),((e.newscrolly-f)*(t-f)<0||(e.newscrollx-o)*(n-o)<0)&&e.cancelScroll(),e.newscrolly=t,e.newscrollx=n,e.bouncescroll&&e.rail.visibility||(e.newscrolly<0?e.newscrolly=0:e.newscrolly>e.page.maxh&&(e.newscrolly=e.page.maxh)),e.bouncescroll&&e.railh.visibility||(e.newscrollx<0?e.newscrollx=0:e.newscrollx>e.page.maxw&&(e.newscrollx=e.page.maxw)),e.dst={},e.dst.x=n-o,e.dst.y=t-f,e.dst.px=o,e.dst.py=f,h=Math.round(Math.sqrt(Math.pow(e.dst.x,2)+Math.pow(e.dst.y,2))),e.dst.ax=e.dst.x/h,e.dst.ay=e.dst.y/h,l=0,c=h,e.dst.x==0?(l=f,c=t,e.dst.ay=1,e.dst.py=0):e.dst.y==0&&(l=o,c=n,e.dst.ax=1,e.dst.px=0),s=e.getTransitionSpeed(h),u&&u<=1&&(s*=u),e.bzscroll=s>0?e.bzscroll?e.bzscroll.update(c,s):new BezierClass(l,c,s,0,1,0,1):!1,e.timer)||((f==e.page.maxh&&t>=e.page.maxh||o==e.page.maxw&&n>=e.page.maxw)&&e.checkContentSize(),a=1,e.cancelAnimationFrame=!1,e.timer=1,e.onscrollstart&&!e.scrollrunning&&(y={type:"scrollstart",current:{x:o,y:f},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:s},e.onscrollstart.call(e,y)),v(),(f==e.page.maxh&&t>=f||o==e.page.maxw&&n>=o)&&e.checkContentSize(),e.noticeCursor())},this.cancelScroll=function(){return e.timer&&r(e.timer),e.timer=0,e.bzscroll=!1,e.scrollrunning=!1,e}):(this.doScrollLeft=function(n,t){var i=e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var r=n>e.page.maxw?e.page.maxw:n,i;r<0&&(r=0);i=t>e.page.maxh?e.page.maxh:t;i<0&&(i=0);e.synched("scroll",function(){e.setScrollTop(i);e.setScrollLeft(r)})},this.cancelScroll=function(){});this.doScrollBy=function(n,t){var i=0,u,r;if(t?i=Math.floor((e.scroll.y-n)*e.scrollratio.y):(u=e.timer?e.newscrolly:e.getScrollTop(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.h/2),i<-r?i=-r:i>e.page.maxh+r&&(i=e.page.maxh+r)),e.cursorfreezed=!1,py=e.getScrollTop(!0),i<0&&py<=0)return e.noticeCursor();if(i>e.page.maxh&&py>=e.page.maxh)return e.checkContentSize(),e.noticeCursor();e.doScrollTop(i)};this.doScrollLeftBy=function(n,t){var i=0,u,r;if((t?i=Math.floor((e.scroll.x-n)*e.scrollratio.x):(u=e.timer?e.newscrollx:e.getScrollLeft(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.w/2),i<-r?i=-r:i>e.page.maxw+r&&(i=e.page.maxw+r)),e.cursorfreezed=!1,px=e.getScrollLeft(!0),i<0&&px<=0)||i>e.page.maxw&&px>=e.page.maxw)return e.noticeCursor();e.doScrollLeft(i)};this.doScrollTo=function(n,t){var i=t?Math.round(n*e.scrollratio.y):n;i<0?i=0:i>e.page.maxh&&(i=e.page.maxh);e.cursorfreezed=!1;e.doScrollTop(n)};this.checkContentSize=function(){var n=e.getContentSize();(n.h!=e.page.h||n.w!=e.page.w)&&e.resize(!1,n)};e.onscroll=function(){e.rail.drag||e.cursorfreezed||e.synched("scroll",function(){e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y));e.railh&&(e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)));e.noticeCursor()})};e.bind(e.docscroll,"scroll",e.onscroll);this.doZoomIn=function(n){var r,f,h,i,o;if(!e.zoomactive){e.zoomactive=!0;e.zoomrestore={style:{}};r=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"];f=e.win[0].style;for(h in r)i=r[h],e.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:"";return e.zoomrestore.style.width=e.win.css("width"),e.zoomrestore.style.height=e.win.css("height"),e.zoomrestore.padding={w:e.win.outerWidth()-e.win.width(),h:e.win.outerHeight()-e.win.height()},s.isios4&&(e.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),e.win.css({position:s.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),o=e.win.css("backgroundColor"),(o==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(o))&&e.win.css("backgroundColor","#fff"),e.rail.css({"z-index":u+101}),e.zoom.css({"z-index":u+102}),e.zoom.css("backgroundPosition","0px -18px"),e.resizeZoom(),e.onzoomin&&e.onzoomin.call(e),e.cancelEvent(n)}};this.doZoomOut=function(n){if(e.zoomactive)return e.zoomactive=!1,e.win.css("margin",""),e.win.css(e.zoomrestore.style),s.isios4&&t(window).scrollTop(e.zoomrestore.scrollTop),e.rail.css({"z-index":e.zindex}),e.zoom.css({"z-index":e.zindex}),e.zoomrestore=!1,e.zoom.css("backgroundPosition","0px 0px"),e.onResize(),e.onzoomout&&e.onzoomout.call(e),e.cancelEvent(n)};this.doZoom=function(n){return e.zoomactive?e.doZoomOut(n):e.doZoomIn(n)};this.resizeZoom=function(){if(e.zoomactive){var n=e.getScrollTop();e.win.css({width:t(window).width()-e.zoomrestore.padding.w+"px",height:t(window).height()-e.zoomrestore.padding.h+"px"});e.onResize();e.setScrollTop(Math.min(e.page.maxh,n))}};this.init();t.nicescroll.push(this)},b=function(n){var t=this;this.nc=n;this.lastx=0;this.lasty=0;this.speedx=0;this.speedy=0;this.lasttime=0;this.steptime=0;this.snapx=!1;this.snapy=!1;this.demulx=0;this.demuly=0;this.lastscrollx=-1;this.lastscrolly=-1;this.chkx=0;this.chky=0;this.timer=0;this.time=function(){return+new Date};this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0;t.lasttime=r;t.speedx=0;t.speedy=0;t.lastx=n;t.lasty=i;t.lastscrollx=-1;t.lastscrolly=-1};this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime;t.lasttime=r;var u=i-t.lasty,f=n-t.lastx,s=t.nc.getScrollTop(),h=t.nc.getScrollLeft(),e=s+u,o=h+f;t.snapx=o<0||o>t.nc.page.maxw;t.snapy=e<0||e>t.nc.page.maxh;t.speedx=f;t.speedy=u;t.lastx=n;t.lasty=i};this.stop=function(){t.nc.unsynched("domomentum2d");t.timer&&clearTimeout(t.timer);t.timer=0;t.lastscrollx=-1;t.lastscrolly=-1};this.doSnapy=function(n,i){var r=!1;i<0?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0);n<0?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0);r&&t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed)};this.doMomentum=function(n){var e=t.time(),c=n?e+n:t.lasttime,l=t.nc.getScrollLeft(),a=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw,f,v,y,u,h;if(t.speedx=s>0?Math.min(60,t.speedx):0,t.speedy=o>0?Math.min(60,t.speedy):0,f=c&&e-c<=60,(a<0||a>o||l<0||l>s)&&(f=!1),v=t.speedy&&f?t.speedy:!1,y=t.speedx&&f?t.speedx:!1,v||y){u=Math.max(16,t.steptime);u>50&&(h=u/50,t.speedx*=h,t.speedy*=h,u=50);t.demulxy=0;t.lastscrollx=t.nc.getScrollLeft();t.chkx=t.lastscrollx;t.lastscrolly=t.nc.getScrollTop();t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,p=function(){var n=t.time()-e>600?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,(i<0||i>s)&&(n=.1));t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,(r<0||r>o)&&(n=.1));t.demulxy=Math.min(1,t.demulxy+n);t.nc.synched("domomentum2d",function(){var n,u;t.speedx&&(n=t.nc.getScrollLeft(),n!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i));t.speedy&&(u=t.nc.getScrollTop(),u!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r));t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))});t.demulxy<1?t.timer=setTimeout(p,u):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};p()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},c=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollTop():c.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):c.call(n,i),this}};n.fn.scrollTop=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():c.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(n)):c.call(t(this),n)})};f=n.fn.scrollLeft;t.cssHooks.pageXOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(n,i),this}};n.fn.scrollLeft=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(n)):f.call(t(this),n)})};e=function(n){var i=this,r;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0,r=0;t<i.length;t++)n.call(i[t],r++);return i},this.push=function(n){i[i.length]=n;i.length++},this.eq=function(n){return i[n]},n)for(a=0;a<n.length;a++)r=t.data(n[a],"__nicescroll")||!1,r&&(this[this.length]=r,this.length++);return this};rt(e.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}});n.fn.getNiceScroll=function(n){return typeof n=="undefined"?new e(this):this[n]&&t.data(this[n],"__nicescroll")||!1};n.extend(n.expr[":"],{nicescroll:function(n){return t.data(n,"__nicescroll")?!0:!1}});t.fn.niceScroll=function(n,i){var r,u;return typeof i=="undefined"&&(typeof n!="object"||"jquery"in n||(i=n,n=!1)),r=new e,typeof i=="undefined"&&(i={}),(n||!1)&&(i.doc=t(n),i.win=t(this)),u=!("doc"in i),u||"win"in i||(i.win=t(this)),this.each(function(){var n=t(this).data("__nicescroll")||!1;n||(i.doc=u?t(this):i.doc,n=new it(i,t(this)),t(this).data("__nicescroll",n));r.push(n)}),r.length==1?r[0]:r};window.NiceScroll={getjQuery:function(){return n}};t.nicescroll||(t.nicescroll=new e,t.nicescroll.options=w)}(jQuery),function(){var n,r,t,i,u,f={}.hasOwnProperty,e=function(n,t){function r(){this.constructor=n}for(var i in t)f.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};i=function(){function n(){this.options_index=0;this.parsed=[]}return n.prototype.add_node=function(n){return n.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(n):this.add_option(n)},n.prototype.add_group=function(n){var i,f,t,e,r,u;for(i=this.parsed.length,this.parsed.push({array_index:i,group:!0,label:this.escapeExpression(n.label),title:n.title?n.title:void 0,children:0,disabled:n.disabled,classes:n.className}),r=n.childNodes,u=[],t=0,e=r.length;t<e;t++)f=r[t],u.push(this.add_option(f,i,n.disabled));return u},n.prototype.add_option=function(n,t,i){if(n.nodeName.toUpperCase()==="OPTION")return n.text!==""?(t!=null&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:n.value,text:n.text,html:n.innerHTML,title:n.title?n.title:void 0,selected:n.selected,disabled:i===!0?i:n.disabled,group_array_index:t,group_label:t!=null?this.parsed[t].label:null,classes:n.className,style:n.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},n.prototype.escapeExpression=function(n){var t,i;return n==null||n===!1?"":/[\&\<\>\"\'\`]/.test(n)?(t={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/&(?!\w+;)|[\<\>\"\'\`]/g,n.replace(i,function(n){return t[n]||"&amp;"})):n},n}();i.select_to_array=function(n){var f,r,t,e,u;for(r=new i,u=n.childNodes,t=0,e=u.length;t<e;t++)f=u[t],r.add_node(f);return r.parsed};r=function(){function n(t,i){(this.form_field=t,this.options=i!=null?i:{},n.browser_is_supported())&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready(),this.showDropDown())}return n.prototype.set_default_values=function(){var n=this;return this.click_test_action=function(t){return n.test_active_click(t)},this.activate_action=function(t){return n.activate_field(t)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.chosen_results_area=!1,this.chosen_choices_area=!1,this.isShowDropDown=!1,this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0,this.group_search=this.options.group_search!=null?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||Infinity,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0,this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1},n.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?(this.default_text=this.form_field.getAttribute("data-placeholder"),this.default_input_text="Type your search or select"):this.default_text=this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||n.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||n.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||n.default_no_result_text},n.prototype.choice_label=function(n){return this.include_group_label_in_selected&&n.group_label!=null?"<b class='group-name'>"+n.group_label+"<\/b>"+n.html:n.html},n.prototype.mouse_enter=function(){return this.mouse_on_container=!0},n.prototype.mouse_leave=function(){return this.mouse_on_container=!1},n.prototype.input_focus=function(){var n=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return n.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},n.prototype.input_blur=function(){var n=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return n.blur_test()},100)},n.prototype.results_option_build=function(n){var u,t,i,f,r,o,e;for(u="",f=0,e=this.results_data,r=0,o=e.length;r<o;r++)if(t=e[r],i="",i=t.group?this.result_add_group(t):this.result_add_option(t),i!==""&&(f++,u+=i),(n!=null?n.first:void 0)&&(t.selected&&this.is_multiple?this.choice_build(t):t.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(t))),f>=this.max_shown_results)break;return u},n.prototype.result_add_option=function(n){var t,i;return n.search_match?this.include_option_in_results(n)?(t=[],n.disabled||n.selected&&this.is_multiple||t.push("active-result"),!n.disabled||n.selected&&this.is_multiple||t.push("disabled-result"),n.selected&&t.push("result-selected"),n.group_array_index!=null&&t.push("group-option"),n.classes!==""&&t.push(n.classes),i=document.createElement("li"),i.className=t.join(" "),i.style.cssText=n.style,i.setAttribute("data-option-array-index",n.array_index),i.innerHTML=n.search_text,n.title&&(i.title=n.title),this.outerHTML(i)):"":""},n.prototype.result_add_group=function(n){var i,t;return(n.search_match||n.group_match)?(n.active_options>0)?(i=[],i.push("group-result"),n.classes&&i.push(n.classes),t=document.createElement("li"),t.className=i.join(" "),t.innerHTML=n.search_text,n.title&&(t.title=n.title),this.outerHTML(t)):"":""},n.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},n.prototype.reset_single_select_options=function(){var i,n,u,r,t;for(r=this.results_data,t=[],n=0,u=r.length;n<u;n++)i=r[n],i.selected?t.push(i.selected=!1):t.push(void 0);return t},n.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},n.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},n.prototype.winnow_results=function(){var e,n,h,u,t,i,r,o,c,f,l,s;for(this.no_results_clear(),u=0,i=this.get_search_text(),e=i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(e,"i"),h=this.get_search_regex(e),s=this.results_data,f=0,l=s.length;f<l;f++)n=s[f],n.search_match=!1,t=null,this.include_option_in_results(n)&&(n.group&&(n.group_match=!1,n.active_options=0),n.group_array_index!=null&&this.results_data[n.group_array_index]&&(t=this.results_data[n.group_array_index],t.active_options===0&&t.search_match&&(u+=1),t.active_options+=1),n.search_text=n.group?n.label:n.html,n.group&&!this.group_search||(n.search_match=this.search_string_match(n.search_text,h),n.search_match&&!n.group&&(u+=1),n.search_match?(i.length&&(r=n.search_text.search(c),o=n.search_text.substr(0,r+i.length)+"<\/em>"+n.search_text.substr(r+i.length),n.search_text=o.substr(0,r)+"<em>"+o.substr(r)),t!=null&&(t.group_match=!0)):n.group_array_index!=null&&this.results_data[n.group_array_index].search_match&&(n.search_match=!0)));return this.result_clear_highlight(),u<1?(i.length?(this.container.find(".div-results").removeClass("hide"),this.container.find("hr").removeClass("hide"),this.btn_select_all&&this.btn_select_all.show()):(this.container.find(".div-results").addClass("hide"),this.container.find("hr").addClass("hide"),this.btn_select_all&&this.btn_select_all.hide()),this.update_results_content(""),this.no_results(i)):(this.update_results_content(this.results_option_build()),this.container.find(".chosen-results li.active-result").length?(this.container.find(".div-results").removeClass("hide"),this.container.find("hr").removeClass("hide"),this.btn_select_all&&this.btn_select_all.show()):(this.btn_select_all&&this.btn_select_all.hide(),this.container.find(".div-results").addClass("hide"),this.container.find("hr").addClass("hide")),this.winnow_results_set_highlight())},n.prototype.get_search_regex=function(n){var t,i;return t=this.search_contains?"":"^",i=this.case_sensitive_search?"":"i",new RegExp(t+n,i)},n.prototype.search_string_match=function(n,t){var u,i,r,f;if(t.test(n))return!0;if(this.enable_split_word_search&&(n.indexOf(" ")>=0||n.indexOf("[")===0)&&(i=n.replace(/\[|\]/g,"").split(" "),i.length))for(r=0,f=i.length;r<f;r++)if(u=i[r],t.test(u))return!0},n.prototype.choices_count=function(){var i,n,r,t;if(this.selected_option_count!=null)return this.selected_option_count;for(this.selected_option_count=0,t=this.form_field.options,n=0,r=t.length;n<r;n++)i=t[n],i.selected&&(this.selected_option_count+=1);return this.selected_option_count},n.prototype.choices_click=function(n){return n.preventDefault(),(this.results_showing||this.is_disabled)?void 0:this.results_show()},n.prototype.keyup_checker=function(n){var t,i;t=(i=n.which)!=null?i:n.keyCode;this.search_field_scale();switch(t){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0&&this.single_backstroke_delete)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(n.preventDefault(),this.results_showing)return this.result_select(n);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},n.prototype.clipboard_event_checker=function(){var n=this;return setTimeout(function(){return n.results_search()},50)},n.prototype.container_width=function(){return this.options.width!=null?this.options.width:""+this.form_field.offsetWidth+"px"},n.prototype.include_option_in_results=function(n){return this.is_multiple&&!this.display_selected_options&&n.selected?!1:!this.display_disabled_options&&n.disabled?!1:n.empty?!1:!0},n.prototype.search_results_touchstart=function(n){return this.touch_started=!0,this.search_results_mouseover(n)},n.prototype.search_results_touchmove=function(n){return this.touch_started=!1,this.search_results_mouseout(n)},n.prototype.search_results_touchend=function(n){if(this.touch_started)return this.search_results_mouseup(n)},n.prototype.outerHTML=function(n){var t;return n.outerHTML?n.outerHTML:(t=document.createElement("div"),t.appendChild(n),t.innerHTML)},n.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!0},n.default_multiple_text="Select Some Options",n.default_single_text="Select an Option",n.default_no_result_text="No results match",n}();n=jQuery;n.fn.extend({chosen:function(i){return r.browser_is_supported()?this.each(function(){var u,r;if(u=n(this),r=u.data("chosen"),i==="destroy"){r instanceof t&&r.destroy();return}r instanceof t||u.data("chosen",new t(this,i))}):this}});t=function(t){function r(){return u=r.__super__.constructor.apply(this,arguments)}return e(r,t),r.prototype.showDropDown=function(){if(this.options.isShowDropDown){this.results_show();this.search_field.show();var t=n(".chosen-container .chosen-results-vertical");t.css({visibility:"visible"});this.container.addClass("chosen-with-drop chosen-container-active")}},r.prototype.setup=function(){return this.form_field_jq=n(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},r.prototype.set_up_html=function(){var i,r,t;return i=["chosen-container"],i.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&i.push(this.form_field.className),this.is_rtl&&i.push("chosen-rtl"),r={"class":i.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(r.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=n("<div />",r),this.is_multiple?(t=this.getSelected(),t.arrayList.length>0&&!this.options.isShowDropDown?t.arrayList.length-1==0?this.container.html('<a class="chosen-multiple chosen-default"><span><em>'+t.arrayList[0].innerHTML+'<\/em><\/span><div><b class="icon-chosen-updown"><\/b><\/div><\/a><input style="display: none;" type="text" placeholder="'+this.default_input_text+'" class="default inner_input" autocomplete="off"/><div class="chosen-drop"><div class="chosen-action chosen-all">Select all<\/div><div class="wrap-nicescroll div-results"><div class="wrap-nicescroll-content"><ul class="chosen-results"><\/ul><\/div><\/div><hr><div class="chosen-action chosen-none">Deselect all<\/div><div class="wrap-nicescroll div-choices"><div class="wrap-nicescroll-content"><ul class="chosen-choices"><li class="search-field"><\/li><\/ul><\/div><\/div><\/div>'):this.container.html('<a class="chosen-multiple chosen-default"><span><em>'+t.arrayList[0].innerHTML+"<\/em> and <em>"+(t.length-1)+'<\/em> more selected <\/span><div><b class="icon-chosen-updown"><\/b><\/div><\/a><input style="display: none;" type="text" placeholder="'+this.default_input_text+'" class="default inner_input" autocomplete="off"/><div class="chosen-drop"><div class="chosen-action chosen-all">Select all<\/div><div class="wrap-nicescroll div-results"><div class="wrap-nicescroll-content"><ul class="chosen-results"><\/ul><\/div><\/div><hr><div class="chosen-action chosen-none">Deselect all<\/div><div class="wrap-nicescroll div-choices"><div class="wrap-nicescroll-content"><ul class="chosen-choices"><li class="search-field"><\/li><\/ul><\/div><\/div><\/div>'):this.container.html('<a class="chosen-multiple chosen-default"><span>'+this.default_text+'<\/span><div><b class="icon-chosen-updown"><\/b><\/div><\/a><input style="display: none;" type="text" placeholder="'+this.default_input_text+'" class="default inner_input" autocomplete="off"/><div class="chosen-drop"><div class="chosen-action chosen-all">Select all<\/div><div class="wrap-nicescroll div-results"><div class="wrap-nicescroll-content"><ul class="chosen-results"><\/ul><\/div><\/div><hr><div class="chosen-action chosen-none">Deselect all<\/div><div class="wrap-nicescroll div-choices"><div class="wrap-nicescroll-content"><ul class="chosen-choices"><li class="search-field"><\/li><\/ul><\/div><\/div><\/div>')):this.container.html('<a class="chosen-single chosen-default"><span>'+this.default_text+'<\/span><div><b class="icon-chosen-updown"><\/b><\/div><\/a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /><\/div><div class="wrap-nicescroll div-results"><div class="wrap-nicescroll-content"><ul class="chosen-results"><\/ul><\/div><\/div><\/div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").eq(1),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.search_link=this.container.find("a.chosen-default"),this.icon_updown=this.container.find(".icon-chosen-updown"),!this.checkWindowPhone()&&this.options.isShowDropDown&&(this.nicescroll(this.container.find("ul.chosen-results").first()),this.nicescroll(this.container.find("ul.chosen-choices").first())),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first(),this.btn_select_all=this.container.find("div.chosen-all").first(),this.btn_deselect_all=this.container.find("div.chosen-none").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.is_multiple&&(this.form_field_jq.select().find("option").not(":selected").length||(this.container.find(".div-results").addClass("hide"),this.container.find("hr").addClass("hide"),this.btn_select_all.hide())),this.set_label_behavior()},r.prototype.nicescroll=function(n){n.closest(".wrap-nicescroll").niceScroll(n.closest(".wrap-nicescroll-content"),{bouncescroll:!1,autohidemode:!1,cursorcolor:"#278CFE",cursorborder:"1px solid transparent",cursorborderradius:"5px",cursorwidth:"7px",background:"#8B8B8B",mousescrollstep:10})},r.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},r.prototype.register_observers=function(){var t=this;this.container.bind("touchstart.chosen",function(t){n(t.target).hasClass("inner_input")||n(".chosen-container .inner_input:visible").attr("readonly",!0)});this.container.bind("touchend.chosen",function(){n(".chosen-container .inner_input:visible").removeAttr("readonly")});this.container.bind("mousedown.chosen",function(i){if((n(i.target).is("input")||n(i.target).is("b"))&&(t.active_field=!1),n(i.target).is("b")&&t.results_showing&&!t.options.isShowDropDown)return setTimeout(function(){t.mouse_on_container=!1;t.close_field();t.mouse_on_container=!0},100);t.container_mousedown(i)});this.container.bind("mouseup.chosen",function(n){t.container_mouseup(n)});this.container.bind("mouseenter.chosen",function(n){t.mouse_enter(n)});this.container.bind("mouseleave.chosen",function(n){t.mouse_leave(n)});this.search_results.bind("mouseup.chosen",function(n){t.search_results_mouseup(n)});this.search_results.bind("mouseover.chosen",function(n){t.search_results_mouseover(n)});this.search_results.bind("mouseout.chosen",function(n){t.search_results_mouseout(n)});this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(n){t.search_results_mousewheel(n)});this.form_field_jq.bind("chosen:updated.chosen",function(n){t.container.find(".div-results").removeClass("hide");t.container.find("hr").removeClass("hide");this.is_multiple&&(t.btn_select_all.show(),t.btn_deselect_all.hide());t.results_update_field(n)});this.form_field_jq.bind("chosen:activate.chosen",function(n){t.activate_field(n)});this.form_field_jq.bind("chosen:open.chosen",function(n){t.container_mousedown(n)});this.form_field_jq.bind("chosen:close.chosen",function(n){t.input_blur(n)});this.search_field.bind("blur.chosen",function(n){t.input_blur(n)});this.search_field.bind("keyup.chosen",function(n){t.keyup_checker(n);t.addClassChoiceContent()});this.search_field.bind("keydown.chosen",function(n){t.keydown_checker(n)});this.search_field.bind("focus.chosen",function(n){t.input_focus(n)});this.search_field.bind("cut.chosen",function(n){t.clipboard_event_checker(n)});this.search_field.bind("paste.chosen",function(n){t.clipboard_event_checker(n)});this.search_link.bind("click.chosen",function(t){var i=n(t.currentTarget).parent().find(".inner_input"),r=n(t.currentTarget).parent().find("a.chosen-default");i.css("display","block")});this.search_link.one("click.chosen",function(){t.checkWindowPhone()||t.options.isShowDropDown||(t.nicescroll(t.container.find("ul.chosen-results").first()),t.nicescroll(t.container.find("ul.chosen-choices").first()))});if(this.is_multiple){this.btn_select_all.on("click",function(){var r=t.container.find("ul.chosen-results>li").get(),i=[];n.each(r,function(r,u){var f=t.form_field.options[parseInt(n(u).attr("data-option-array-index"))];f.selected=!0;n(u).removeClass("active-result").addClass("result-selected");i.push(f.value)});t.results_build();setTimeout(function(){t.results_show()},1);t.form_field_jq.trigger("change",{selected:i})});this.btn_deselect_all.on("click",function(){var r=t.form_field_jq.select(),f=r.find("option.keepselected"),u,i;n.each(f,function(n,t){t.selected=!0});u=r.find("option:selected");i=[];n.each(u,function(n,t){t.disabled||(t.selected=!1,i.push(t.value))});t.results_build();t.results_show();setTimeout(function(){t.results_show()},1);t.form_field_jq.trigger("change",{deselected:i})});return this.search_choices.bind("click.chosen",function(n){t.choices_click(n)})}return this.container.bind("click.chosen",function(n){n.preventDefault()})},r.prototype.destroy=function(){return n(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},r.prototype.search_field_disabled=function(){return(this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled)?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,!this.is_multiple)?this.selected_item.bind("focus.chosen",this.activate_action):void 0},r.prototype.container_mousedown=function(t){if(!this.is_disabled&&(t&&t.type==="mousedown"&&!this.results_showing&&t.preventDefault(),!(t!=null&&n(t.target).hasClass("search-choice-close"))))return this.active_field?!this.is_multiple&&t&&(n(t.target)[0]===this.selected_item[0]||n(t.target).parents("a.chosen-single").length)&&(t.preventDefault(),this.results_toggle()):(this.is_multiple,n(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},r.prototype.container_mouseup=function(n){if(n.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(n)},r.prototype.search_results_mousewheel=function(n){var t;return n.originalEvent&&(t=n.originalEvent.deltaY||-n.originalEvent.wheelDelta||n.originalEvent.detail),t!=null?(n.preventDefault(),n.type==="DOMMouseScroll"&&(t=t*40),this.search_results.scrollTop(t+this.search_results.scrollTop())):void 0},r.prototype.blur_test=function(){if(!this.active_field&&this.container.hasClass("chosen-container-active")&&!this.options.isShowDropDown)return this.close_field()},r.prototype.close_field=function(){return n(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.form_field_jq.trigger("chosen:collapsed"),this.search_field_scale()},r.prototype.activate_field=function(){this.container.addClass("chosen-container-active");this.active_field=!0;this.search_field.val(this.search_field.val());var n=this.getSelected();return(n.length==0&&(this.results_showing=!0),!this.search_field.is(":visible"))?this.search_field.blur():this.search_field.focus()},r.prototype.test_active_click=function(t){var i;return(i=n(t.target).closest(".chosen-container"),i.length&&this.container[0]===i[0])?this.active_field=!0:this.options.isShowDropDown?void 0:this.close_field()},r.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},r.prototype.result_do_highlight=function(n){var t,i,r,f,u;if(n.length){if(this.result_clear_highlight(),this.result_highlight=n,this.result_highlight.addClass("highlighted"),r=parseInt(this.search_results.css("maxHeight"),10),u=this.search_results.scrollTop(),f=r+u,i=this.result_highlight.position().top+this.search_results.scrollTop(),t=i+this.result_highlight.outerHeight(),t>=f)return this.search_results.scrollTop(t-r>0?t-r:0);if(i<u)return this.search_results.scrollTop(i)}},r.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},r.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.addClassChoiceContent(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},r.prototype.update_results_content=function(n){return this.search_results.html(n)},r.prototype.hide_dropdown=function(){this.container.removeClass("chosen-with-drop");this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})},r.prototype.addClassChoiceContent=function(){if(this.is_multiple){var t=this.container.find("ul.chosen-choices"),f=this.container.find("ul.chosen-results"),u=n(".chosen-container .chosen-choices-vertical"),e=n(".chosen-container .chosen-results-vertical"),o=t.height(),s=f.height(),i=t.css("max-height"),r=f.css("max-height"),h=t.position().top;u.css({top:h});i=parseInt(i)-10;r=parseInt(r);t.find("li.search-choice").length?function(n){n.container.find(".chosen-drop hr").show();n.container.find(".chosen-drop .chosen-none").show();n.search_choices.addClass("chosen-content")}(this):function(n){n.container.find(".chosen-drop hr").hide();n.container.find(".chosen-drop .chosen-none").hide();n.search_choices.removeClass("chosen-content")}(this);o>=i?u.css({height:i,visibility:"visible"}):u.css({height:o,visibility:"hidden"});s>=r?e.css({visibility:"visible",height:r}):e.css({height:s,visibility:"hidden"})}},r.prototype.checkWindowPhone=function(){return navigator.userAgent.match(/iemobile/i)||navigator.userAgent.match(/IEMobile/i)},r.prototype.show_user_results=function(){if(this.is_multiple){var t="",i=this.search_choices.find(".search-choice"),r=this.container.find("a.chosen-default"),f=this.container.find(".inner_input"),e=n(i[0]).text(),u=i.length-1;t+="<em>"+e+"<\/em> ";u===0||(t+="and <em>"+u+"<\/em> more selected ");r.find("span").addClass("users").html(t);f.css("display","none");r.css("display","block")}},r.prototype.results_hide=function(){var n=this.is_multiple?this.search_choices.find(".search-choice"):function(n){return n.mouse_on_container=!1,null}(this),t;return this.results_showing?(this.result_clear_highlight(),this.is_multiple||this.container.removeClass("chosen-container-active"),n&&n.length>0?"":function(n){var i=n.container.find(".inner_input"),t=n.container.parent().find("a.chosen-default");t.find("span").html("Search and select");i.css("display","none");t.css("display","block");n.hide_dropdown()}(this)):this.options.isShowDropDown||this.hide_dropdown(),this.mouse_on_container?void 0:(this.options.isShowDropDown||this.hide_dropdown(),n&&n.length&&(t=this,setTimeout(function(){t.show_user_results()},100)),this.results_showing=!1)},r.prototype.set_tab_index=function(){var n;if(this.form_field.tabIndex)return n=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=n},r.prototype.set_label_behavior=function(){var t=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=n("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(n){return t.is_multiple?t.container_mousedown(n):t.activate_field()}):void 0},r.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?this.search_field.addClass("default"):this.mouse_on_container?void 0:this.search_field.removeClass("default")},r.prototype.search_results_mouseup=function(t){var i;return i=n(t.target).hasClass("active-result")?n(t.target):n(t.target).parents(".active-result").first(),i.length?(this.result_highlight=i,this.result_select(t),this.chosen_results_area)?this.search_field.blur():(this.chosen_results_area=!1,this.search_field.focus()):void 0},r.prototype.search_results_mouseover=function(t){var i;return i=n(t.target).hasClass("active-result")?n(t.target):n(t.target).parents(".active-result").first(),i?this.result_do_highlight(i):void 0},r.prototype.search_results_mouseout=function(t){if(n(t.target).hasClass("active-result"||n(t.target).parents(".active-result").first()))return this.result_clear_highlight()},r.prototype.choice_build=function(t){var i,r,u=this;return i=n("<li />",{"class":t.selected&&t.disabled?"search-choice selected-disabled":"search-choice"}).html("<span>"+this.choice_label(t)+"<\/span>"),t.disabled?i.addClass("search-choice-disabled"):(r=n("<a />",{"class":"search-choice-close","data-option-array-index":t.array_index}),r.bind("click.chosen",function(n){return u.choice_destroy_link_click(n)}),i.append(r)),this.search_container.before(i)},r.prototype.choice_destroy_link_click=function(t){return t.preventDefault(),t.stopPropagation(),n(t.currentTarget).parents("ul").is(".chosen-choices")&&(this.chosen_choices_area=!0),this.is_disabled?void 0:this.choice_destroy(n(t.target))},r.prototype.choice_destroy=function(n){var i=n[0].getAttribute("data-option-array-index"),t;if(this.result_deselect(n[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0?this.winnow_results():this.choices_count()==0&&(t=this.container.find("a.chosen-default"),t.find("span").addClass("users")),n.parents("li").first().remove(),this.showSelected(i),this.addClassChoiceContent(),this.search_field_scale()},r.prototype.showSelected=function(n){var t=this.container.find(".chosen-results"),i=t.find('li[data-option-array-index="'+n+'"]');i.removeClass("result-selected").addClass("active-result").show();this.container.find(".div-results").removeClass("hide");this.container.find("hr").removeClass("hide");this.btn_select_all&&this.btn_select_all.show();this.updateNiceScrollBars()},r.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},r.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},r.prototype.result_select=function(t){var r,i;if(this.result_highlight)return(r=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count())?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?r.removeClass("active-result"):this.reset_single_select_options(),r.addClass("result-selected"),i=this.results_data[r[0].getAttribute("data-option-array-index")],i.selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?(this.choice_build(i),this.addClassChoiceContent(),this.updateNiceScrollBars(),this.container.find("li.active-result").length||(this.container.find(".div-results").addClass("hide"),this.container.find("hr").addClass("hide"),this.btn_select_all.hide())):this.single_set_selected_text(this.choice_label(i)),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),n(t.currentTarget).is(".chosen-results")&&(this.chosen_results_area=!0),this.show_search_field_default(),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:[this.form_field.options[i.options_index].value]}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())},r.prototype.updateNiceScrollBars=function(){this.container.find("ul.chosen-results").first().closest(".wrap-nicescroll").getNiceScroll().onResize();this.container.find("ul.chosen-choices").first().closest(".wrap-nicescroll").getNiceScroll().onResize()},r.prototype.single_set_selected_text=function(n){return n==null&&(n=this.default_text),n===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(n)},r.prototype.result_deselect=function(n){var t;return t=this.results_data[n],this.form_field.options[t.options_index].disabled?!1:(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&(this.chosen_choices_area||this.winnow_results()),this.form_field_jq.trigger("change",{deselected:[this.form_field.options[t.options_index].value]}),this.search_field_scale(),!0)},r.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"><\/abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},r.prototype.get_search_text=function(){return this.options.isShowDropDown?n.trim(this.search_field.val())===this.default_input_text?n("<div/>").text("").html():n("<div/>").text(n.trim(this.search_field.val())).html():n("<div/>").text(n.trim(this.search_field.val())).html()},r.prototype.winnow_results_set_highlight=function(){this.updateNiceScrollBars();var n,t;return t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),n=t.length?t.first():this.search_results.find(".active-result").first(),n!=null?this.result_do_highlight(n):void 0},r.prototype.no_results=function(t){this.updateNiceScrollBars();this.btn_select_all&&this.btn_select_all.hide();var i=n('<li class="no-results">'+this.results_none_found+' "<span><\/span>"<\/li>');return i.find("span").first().html(t),this.search_results.append(i),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},r.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},r.prototype.keydown_arrow=function(){var n;if(this.results_showing&&this.result_highlight){if(n=this.result_highlight.nextAll("li.active-result").first(),n)return this.result_do_highlight(n)}else return this.results_show()},r.prototype.keyup_arrow=function(){var n;if(this.results_showing||this.is_multiple){if(this.result_highlight)return n=this.result_highlight.prevAll("li.active-result"),n.length?this.result_do_highlight(n.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())}else return this.results_show()},r.prototype.keydown_backstroke=function(){var n;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(n=this.search_container.siblings("li.search-choice").last(),n.length&&!n.hasClass("search-choice-disabled"))?(this.pending_backstroke=n,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},r.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},r.prototype.keydown_checker=function(n){var t,i;t=(i=n.which)!=null?i:n.keyCode;this.search_field_scale();t!==8&&this.pending_backstroke&&this.clear_backstroke();switch(t){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(n);this.mouse_on_container=!1;break;case 13:this.results_showing&&n.preventDefault();break;case 32:this.disable_search&&n.preventDefault();break;case 38:n.preventDefault();this.keyup_arrow();break;case 40:n.preventDefault();this.keydown_arrow()}},r.prototype.search_field_scale=function(){var t,u,h,f,e,o,i,r,s;if(this.is_multiple){for(h=0,i=0,e="position:absolute; left: -1000px; top: -1000px; display:none;",o=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],r=0,s=o.length;r<s;r++)f=o[r],e+=f+":"+this.search_field.css(f)+";";return t=n("<div />",{style:e}),t.text(this.search_field.val()),n("body").append(t),i=t.width()+25,t.remove(),u=this.container.outerWidth(),i>u-10&&(i=u-10),this.search_field.css({})}},r.prototype.getSelected=function(){var r=this.form_field_jq.select(),n=r.find("option[selected]"),i,t;if(n.length===0){for(n=r.find("option"),i=[],t=0;t<n.length;t++)n[t].selected&&i.push(n[t]);n=i}return{length:n.length,arrayList:n}},r}(r)}.call(this),function(){function u(n){return!!n.exifdata}function v(n,t){var i;t=t||n.match(/^data\:([^\;]+)\;base64,/mi)[1]||"";n=n.replace(/^data\:([^\;]+)\;base64,/gmi,"");var r=atob(n),u=r.length,f=new ArrayBuffer(u),e=new Uint8Array(f);for(i=0;i<u;i++)e[i]=r.charCodeAt(i);return f}function y(n,t){var i=new XMLHttpRequest;i.open("GET",n,!0);i.responseType="blob";i.onload=function(){(this.status==200||this.status===0)&&t(this.response)};i.send()}function p(n,t){function f(i){var r=s(i),u=w(i);n.exifdata=r||{};n.iptcdata=u||{};t&&t.call(n)}var e,r,u;n.src?/^data\:/i.test(n.src)?(e=v(n.src),f(e)):/^blob\:/i.test(n.src)?(u=new FileReader,u.onload=function(n){f(n.target.result)},y(n.src,function(n){u.readAsArrayBuffer(n)})):(r=new XMLHttpRequest,r.onload=function(){if(this.status==200||this.status===0)f(r.response);else throw"Could not load image";r=null},r.open("GET",n.src,!0),r.responseType="arraybuffer",r.send(null)):window.FileReader&&(n instanceof window.Blob||n instanceof window.File)&&(u=new FileReader,u.onload=function(n){i&&console.log("Got file of length "+n.target.result.byteLength);f(n.target.result)},u.readAsArrayBuffer(n))}function s(n){var r=new DataView(n),t,f,u;if(i&&console.log("Got file of length "+n.byteLength),r.getUint8(0)!=255||r.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(t=2,f=n.byteLength;t<f;){if(r.getUint8(t)!=255)return i&&console.log("Not a valid marker at offset "+t+", found: "+r.getUint8(t)),!1;if(u=r.getUint8(t+1),i&&console.log(u),u==225)return i&&console.log("Found 0xFFE1 marker"),d(r,t+4,r.getUint16(t+2)-2);t+=2+r.getUint16(t+2)}}function w(n){var u=new DataView(n),t,f,e;if(i&&console.log("Got file of length "+n.byteLength),u.getUint8(0)!=255||u.getUint8(1)!=216)return i&&console.log("Not a valid JPEG"),!1;for(var r=2,o=n.byteLength,s=function(n,t){return n.getUint8(t)===56&&n.getUint8(t+1)===66&&n.getUint8(t+2)===73&&n.getUint8(t+3)===77&&n.getUint8(t+4)===4&&n.getUint8(t+5)===4};r<o;){if(s(u,r))return t=u.getUint8(r+7),t%2!=0&&(t+=1),t===0&&(t=4),f=r+8+t,e=u.getUint16(r+6+t),b(n,f,e);r++}}function b(n,t,i){for(var s=new DataView(n),r={},h,u,c,l,a,o=t;o<t+i;)s.getUint8(o)===28&&s.getUint8(o+1)===2&&(l=s.getUint8(o+2),l in e&&(c=s.getInt16(o+3),a=c+5,u=e[l],h=f(s,o+5,c),r.hasOwnProperty(u)?r[u]instanceof Array?r[u].push(h):r[u]=[r[u],h]:r[u]=h)),o++;return r}function o(n,t,r,u,f){for(var c=n.getUint16(r,!f),h={},e,s,o=0;o<c;o++)e=r+o*12+2,s=u[n.getUint16(e,!f)],!s&&i&&console.log("Unknown tag: "+n.getUint16(e,!f)),h[s]=k(n,e,t,r,f);return h}function k(n,t,i,r,u){var y=n.getUint16(t+2,!u),s=n.getUint32(t+4,!u),h=n.getUint32(t+8,!u)+i,c,o,v,e,l,a;switch(y){case 1:case 7:if(s==1)return n.getUint8(t+8,!u);for(c=s>4?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint8(c+e);return o;case 2:return c=s>4?h:t+8,f(n,c,s-1);case 3:if(s==1)return n.getUint16(t+8,!u);for(c=s>2?h:t+8,o=[],e=0;e<s;e++)o[e]=n.getUint16(c+2*e,!u);return o;case 4:if(s==1)return n.getUint32(t+8,!u);for(o=[],e=0;e<s;e++)o[e]=n.getUint32(h+4*e,!u);return o;case 5:if(s==1)return l=n.getUint32(h,!u),a=n.getUint32(h+4,!u),v=new Number(l/a),v.numerator=l,v.denominator=a,v;for(o=[],e=0;e<s;e++)l=n.getUint32(h+8*e,!u),a=n.getUint32(h+4+8*e,!u),o[e]=new Number(l/a),o[e].numerator=l,o[e].denominator=a;return o;case 9:if(s==1)return n.getInt32(t+8,!u);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+4*e,!u);return o;case 10:if(s==1)return n.getInt32(h,!u)/n.getInt32(h+4,!u);for(o=[],e=0;e<s;e++)o[e]=n.getInt32(h+8*e,!u)/n.getInt32(h+4+8*e,!u);return o}}function f(t,i,r){var u="";for(n=i;n<i+r;n++)u+=String.fromCharCode(t.getUint8(n));return u}function d(n,t){var h,v,u,e,y,s,p;if(f(n,t,4)!="Exif")return i&&console.log("Not valid EXIF data! "+f(n,t,4)),!1;if(s=t+6,n.getUint16(s)==18761)h=!1;else if(n.getUint16(s)==19789)h=!0;else return i&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;if(n.getUint16(s+2,!h)!=42)return i&&console.log("Not valid TIFF data! (no 0x002A)"),!1;if(p=n.getUint32(s+4,!h),p<8)return i&&console.log("Not valid TIFF data! (First offset less than 8)",n.getUint32(s+4,!h)),!1;if(v=o(n,s,s+p,l,h),v.ExifIFDPointer){e=o(n,s,s+v.ExifIFDPointer,c,h);for(u in e){switch(u){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":e[u]=r[u][e[u]];break;case"ExifVersion":case"FlashpixVersion":e[u]=String.fromCharCode(e[u][0],e[u][1],e[u][2],e[u][3]);break;case"ComponentsConfiguration":e[u]=r.Components[e[u][0]]+r.Components[e[u][1]]+r.Components[e[u][2]]+r.Components[e[u][3]]}v[u]=e[u]}}if(v.GPSInfoIFDPointer){y=o(n,s,s+v.GPSInfoIFDPointer,a,h);for(u in y){switch(u){case"GPSVersionID":y[u]=y[u][0]+"."+y[u][1]+"."+y[u][2]+"."+y[u][3]}v[u]=y[u]}}return v}var i=!1,h=this,t=function(n){if(n instanceof t)return n;if(!(this instanceof t))return new t(n);this.EXIFwrapped=n},e;typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=t),exports.EXIF=t):h.EXIF=t;var c=t.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},l=t.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},a=t.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},r=t.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};e={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};t.getData=function(n,t){return(n instanceof Image||n instanceof HTMLImageElement)&&!n.complete?!1:(u(n)?t&&t.call(n):p(n,t),!0)};t.getTag=function(n,t){if(u(n))return n.exifdata[t]};t.getAllTags=function(n){if(!u(n))return{};var t,i=n.exifdata,r={};for(t in i)i.hasOwnProperty(t)&&(r[t]=i[t]);return r};t.pretty=function(n){if(!u(n))return"";var t,i=n.exifdata,r="";for(t in i)i.hasOwnProperty(t)&&(r+=typeof i[t]=="object"?i[t]instanceof Number?t+" : "+i[t]+" ["+i[t].numerator+"/"+i[t].denominator+"]\r\n":t+" : ["+i[t].length+" values]\r\n":t+" : "+i[t]+"\r\n");return r};t.readFromBinaryFile=function(n){return s(n)};typeof define=="function"&&define.amd&&define("exif-js",[],function(){return t})}.call(this),function(n){"use strict";var t={item:3,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:400,auto:!1,pauseOnHover:!1,loop:!1,slideEndAnimation:!0,pause:2e3,keyPress:!1,controls:!0,prevHtml:"",nextHtml:"",rtl:!1,adaptiveHeight:!1,vertical:!1,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:40,responsive:[],onBeforeStart:function(){},onSliderLoad:function(){},onBeforeSlide:function(){},onAfterSlide:function(){},onBeforeNextSlide:function(){},onBeforePrevSlide:function(){}};n.fn.lightSlider=function(i){if(this.length===0)return this;if(this.length>1)return this.each(function(){n(this).lightSlider(i)}),this;var a={},r=n.extend(!0,{},t,i),p={},u=this;a.$el=this;r.mode==="fade"&&(r.vertical=!1);var s=u.children(),g=n(window).width(),ut=null,b=null,w=0,c=0,nt=!1,o=0,f="",e=0,tt=r.vertical===!0?"height":"width",it=r.vertical===!0?"margin-bottom":"margin-right",l=0,d=0,y=0,k=0,v=null,rt="ontouchstart"in document.documentElement,h={};h.chbreakpoint=function(){var f,i,t,u;if(g=n(window).width(),r.responsive.length){if(r.autoWidth===!1&&(f=r.item),g<r.responsive[0].breakpoint)for(i=0;i<r.responsive.length;i++)g<r.responsive[i].breakpoint&&(ut=r.responsive[i].breakpoint,b=r.responsive[i]);if(typeof b!="undefined"&&b!==null)for(t in b.settings)b.settings.hasOwnProperty(t)&&((typeof p[t]=="undefined"||p[t]===null)&&(p[t]=r[t]),r[t]=b.settings[t]);if(!n.isEmptyObject(p)&&g>r.responsive[0].breakpoint)for(u in p)p.hasOwnProperty(u)&&(r[u]=p[u]);r.autoWidth===!1&&l>0&&y>0&&f!==r.item&&(e=Math.round(l/((y+r.slideMargin)*r.slideMove)))}};h.calSW=function(){r.autoWidth===!1&&(y=(o-(r.item*r.slideMargin-r.slideMargin))/r.item)};h.calWidth=function(n){var i=n===!0?f.find(".lslide").length:s.length,t;if(r.autoWidth===!1)c=i*(y+r.slideMargin);else for(c=0,t=0;t<i;t++)c+=parseInt(s.eq(t).width())+r.slideMargin;return c};a={doCss:function(){var n=function(){for(var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],i=document.documentElement,n=0;n<t.length;n++)if(t[n]in i.style)return!0};return r.useCSS&&n()?!0:!1},keyPress:function(){if(r.keyPress)n(document).on("keyup.lightslider",function(t){n(":focus").is("input, textarea")||(t.preventDefault?t.preventDefault():t.returnValue=!1,t.keyCode===37?u.goToPrevSlide():t.keyCode===39&&u.goToNextSlide())})},controls:function(){if(r.controls){u.after('<div class="lSAction"><a class="lSPrev">'+r.prevHtml+'<\/a><a class="lSNext">'+r.nextHtml+"<\/a><\/div>");r.autoWidth?h.calWidth(!1)<o&&f.find(".lSAction").hide():w<=r.item&&f.find(".lSAction").hide();f.find(".lSAction a").on("click",function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,n(this).attr("class")==="lSPrev"?u.goToPrevSlide():u.goToNextSlide(),!1})}},initialStyle:function(){var n=this;r.mode==="fade"&&(r.autoWidth=!1,r.slideEndAnimation=!1);r.auto&&(r.slideEndAnimation=!1);r.autoWidth&&(r.slideMove=1,r.item=1);r.loop&&(r.slideMove=1,r.freeMove=!1);r.onBeforeStart.call(this,u);h.chbreakpoint();u.addClass("lightSlider").wrap('<div class="lSSlideOuter '+r.addClass+'"><div class="lSSlideWrapper"><\/div><\/div>');f=u.parent(".lSSlideWrapper");r.rtl===!0&&f.parent().addClass("lSrtl");r.vertical?(f.parent().addClass("vertical"),o=r.verticalHeight,f.css("height",o+"px")):o=u.outerWidth();s.addClass("lslide");r.loop===!0&&r.mode==="slide"&&(h.calSW(),h.clone=function(){var v,y,i,t,f,c,l,a;if(h.calWidth(!0)>o){for(v=0,y=0,i=0;i<s.length;i++)if(v+=parseInt(u.find(".lslide").eq(i).width())+r.slideMargin,y++,v>=o+r.slideMargin)break;if(t=r.autoWidth===!0?y:r.item,t<u.find(".clone.left").length)for(f=0;f<u.find(".clone.left").length-t;f++)s.eq(f).remove();if(t<u.find(".clone.right").length)for(c=s.length-1;c>s.length-1-u.find(".clone.right").length;c--)e--,s.eq(c).remove();for(l=u.find(".clone.right").length;l<t;l++)u.find(".lslide").eq(l).clone().removeClass("lslide").addClass("clone right").appendTo(u),e++;for(a=u.find(".lslide").length-u.find(".clone.left").length;a>u.find(".lslide").length-t;a--)u.find(".lslide").eq(a-1).clone().removeClass("lslide").addClass("clone left").prependTo(u);s=u.children()}else s.hasClass("clone")&&(u.find(".clone").remove(),n.move(u,0))},h.clone());h.sSW=function(){w=s.length;r.rtl===!0&&r.vertical===!1&&(it="margin-left");r.autoWidth===!1&&s.css(tt,y+"px");s.css(it,r.slideMargin+"px");c=h.calWidth(!1);u.css(tt,c+"px");r.loop===!0&&r.mode==="slide"&&nt===!1&&(e=u.find(".clone.left").length)};h.calL=function(){s=u.children();w=s.length};this.doCss()&&f.addClass("usingCss");h.calL();r.mode==="slide"?(h.calSW(),h.sSW(),r.loop===!0&&(l=n.slideValue(),this.move(u,l)),r.vertical===!1&&this.setHeight(u,!1)):(this.setHeight(u,!0),u.addClass("lSFade"),this.doCss()||(s.fadeOut(0),s.eq(e).fadeIn(0)));r.loop===!0&&r.mode==="slide"?s.eq(e).addClass("active"):s.first().addClass("active")},pager:function(){var i=this,n,t;h.createPager=function(){var p,a,t,s;k=(o-(r.thumbItem*r.thumbMargin-r.thumbMargin))/r.thumbItem;for(var v=f.find(".lslide"),w=f.find(".lslide").length,n=0,h="",l=0,n=0;n<w;n++)if(r.mode==="slide"&&(r.autoWidth?l+=(parseInt(v.eq(n).width())+r.slideMargin)*r.slideMove:l=n*(y+r.slideMargin)*r.slideMove),p=v.eq(n*r.slideMove).attr("data-thumb"),h+=r.gallery===!0?'<li style="width:100%;'+tt+":"+k+"px;"+it+":"+r.thumbMargin+'px"><a href="#"><img src="'+p+'" /><\/a><\/li>':'<li><a href="#">'+(n+1)+"<\/a><\/li>",r.mode==="slide"&&l>=c-o-r.slideMargin){n=n+1;a=2;r.autoWidth&&(h+='<li><a href="#">'+(n+1)+"<\/a><\/li>",a=1);n<a?(h=null,f.parent().addClass("noPager")):f.parent().removeClass("noPager");break}t=f.parent();t.find(".lSPager").html(h);r.gallery===!0&&(r.vertical===!0&&t.find(".lSPager").css("width",r.vThumbWidth+"px"),d=n*(r.thumbMargin+k)+.5,t.find(".lSPager").css({property:d+"px","transition-duration":r.speed+"ms"}),r.vertical===!0&&f.parent().css("padding-right",r.vThumbWidth+r.galleryMargin+"px"),t.find(".lSPager").css(tt,d+"px"));s=t.find(".lSPager").find("li");s.first().addClass("active");s.on("click",function(){return e=r.loop===!0&&r.mode==="slide"?e+(s.index(this)-t.find(".lSPager").find("li.active").index()):s.index(this),u.mode(!1),r.gallery===!0&&i.slideThumb(),!1})};r.pager&&(n="lSpg",r.gallery&&(n="lSGallery"),f.after('<ul class="lSPager '+n+'"><\/ul>'),t=r.vertical?"margin-left":"margin-top",f.parent().find(".lSPager").css(t,r.galleryMargin+"px"),h.createPager());setTimeout(function(){h.init()},0)},setHeight:function(n,t){var i=null,f=this,u;i=r.loop?n.children(".lslide ").first():n.children().first();u=function(){var r=i.outerHeight(),u=0,f=r;t&&(r=0,u=f*100/o);n.css({height:r+"px","padding-bottom":u+"%"})};u();i.find("img").length?i.find("img")[0].complete?(u(),v||f.auto()):i.find("img").load(function(){setTimeout(function(){u();v||f.auto()},100)}):v||f.auto()},active:function(n,t){var i,o,s;this.doCss()&&r.mode==="fade"&&f.addClass("on");i=0;e*r.slideMove<w?(n.removeClass("active"),this.doCss()||r.mode!=="fade"||t!==!1||n.fadeOut(r.speed),i=t===!0?e:e*r.slideMove,t===!0&&(o=n.length,s=o-1,i+1>=o&&(i=s)),r.loop===!0&&r.mode==="slide"&&(i=t===!0?e-u.find(".clone.left").length:e*r.slideMove,t===!0&&(o=n.length,s=o-1,i+1===o?i=s:i+1>o&&(i=0))),this.doCss()||r.mode!=="fade"||t!==!1||n.eq(i).fadeIn(r.speed),n.eq(i).addClass("active")):(n.removeClass("active"),n.eq(n.length-1).addClass("active"),this.doCss()||r.mode!=="fade"||t!==!1||(n.fadeOut(r.speed),n.eq(i).fadeIn(r.speed)))},move:function(n,t){r.rtl===!0&&(t=-t);this.doCss()?r.vertical===!0?n.css({transform:"translate3d(0px, "+-t+"px, 0px)","-webkit-transform":"translate3d(0px, "+-t+"px, 0px)"}):n.css({transform:"translate3d("+-t+"px, 0px, 0px)","-webkit-transform":"translate3d("+-t+"px, 0px, 0px)"}):r.vertical===!0?n.css("position","relative").animate({top:-t+"px"},r.speed,r.easing):n.css("position","relative").animate({left:-t+"px"},r.speed,r.easing);var i=f.parent().find(".lSPager").find("li");this.active(i,!0)},fade:function(){this.active(s,!1);var n=f.parent().find(".lSPager").find("li");this.active(n,!0)},slide:function(){var n=this;h.calSlide=function(){c>o&&(l=n.slideValue(),n.active(s,!1),l>c-o-r.slideMargin?l=c-o-r.slideMargin:l<0&&(l=0),n.move(u,l),r.loop===!0&&r.mode==="slide"&&(e>=w-u.find(".clone.left").length/r.slideMove&&n.resetSlide(u.find(".clone.left").length),e===0&&n.resetSlide(f.find(".lslide").length)))};h.calSlide()},resetSlide:function(n){var t=this;f.find(".lSAction a").addClass("disabled");setTimeout(function(){e=n;f.css("transition-duration","0ms");l=t.slideValue();t.active(s,!1);a.move(u,l);setTimeout(function(){f.css("transition-duration",r.speed+"ms");f.find(".lSAction a").removeClass("disabled")},50)},r.speed+100)},slideValue:function(){var n=0,t;if(r.autoWidth===!1)n=e*(y+r.slideMargin)*r.slideMove;else for(n=0,t=0;t<e;t++)n+=parseInt(s.eq(t).width())+r.slideMargin;return n},slideThumb:function(){var i,n,s,t;switch(r.currentPagerPosition){case"left":i=0;break;case"middle":i=o/2-k/2;break;case"right":i=o-k}n=e-u.find(".clone.left").length;s=f.parent().find(".lSPager");r.mode==="slide"&&r.loop===!0&&(n>=s.children().length?n=0:n<0&&(n=s.children().length));t=n*(k+r.thumbMargin)-i;t+o>d&&(t=d-o-r.thumbMargin);t<0&&(t=0);this.move(s,t)},auto:function(){r.auto&&(clearInterval(v),v=setInterval(function(){u.goToNextSlide()},r.pause))},pauseOnHover:function(){var t=this;if(r.auto&&r.pauseOnHover){f.on("mouseenter",function(){n(this).addClass("ls-hover");u.pause();r.auto=!0});f.on("mouseleave",function(){n(this).removeClass("ls-hover");f.find(".lightSlider").hasClass("lsGrabbing")||t.auto()})}},touchMove:function(n,t){var s,i,e;f.css("transition-duration","0ms");r.mode==="slide"&&(s=n-t,i=l-s,i>=c-o-r.slideMargin?r.freeMove===!1?i=c-o-r.slideMargin:(e=c-o-r.slideMargin,i=e+(i-e)/5):i<0&&(i=r.freeMove===!1?0:i/5),this.move(u,i))},touchEnd:function(n){var i,t,h;f.css("transition-duration",r.speed+"ms");r.mode==="slide"?(i=!1,t=!0,l=l-n,l>c-o-r.slideMargin?(l=c-o-r.slideMargin,r.autoWidth===!1&&(i=!0)):l<0&&(l=0),h=function(n){var u=0,f,h,t;if(i||n&&(u=1),r.autoWidth){for(h=0,t=0;t<s.length;t++)if(h+=parseInt(s.eq(t).width())+r.slideMargin,e=t+u,h>=l)break}else f=l/((y+r.slideMargin)*r.slideMove),e=parseInt(f)+u,l>=c-o-r.slideMargin&&f%1!=0&&e++},n>=r.swipeThreshold?(h(!1),t=!1):n<=-r.swipeThreshold&&(h(!0),t=!1),u.mode(t),this.slideThumb()):n>=r.swipeThreshold?u.goToPrevSlide():n<=-r.swipeThreshold&&u.goToNextSlide()},enableDrag:function(){var e=this;if(!rt){var u=0,t=0,i=!1;f.find(".lightSlider").addClass("lsGrab");f.on("mousedown",function(t){if(c<o&&c!==0)return!1;n(t.target).attr("class")!=="lSPrev"&&n(t.target).attr("class")!=="lSNext"&&(u=r.vertical===!0?t.pageY:t.pageX,i=!0,t.preventDefault?t.preventDefault():t.returnValue=!1,f.scrollLeft+=1,f.scrollLeft-=1,f.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing"),clearInterval(v))});n(window).on("mousemove",function(n){i&&(t=r.vertical===!0?n.pageY:n.pageX,e.touchMove(t,u))});n(window).on("mouseup",function(o){if(i){f.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab");i=!1;t=r.vertical===!0?o.pageY:o.pageX;var s=t-u;if(Math.abs(s)>=r.swipeThreshold)n(window).on("click.ls",function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;t.stopImmediatePropagation();t.stopPropagation();n(window).off("click.ls")});e.touchEnd(s)}})}},enableTouch:function(){var i=this,n,t;if(rt){n={};t={};f.on("touchstart",function(i){t=i.originalEvent.targetTouches[0];n.pageX=i.originalEvent.targetTouches[0].pageX;n.pageY=i.originalEvent.targetTouches[0].pageY;clearInterval(v)});f.on("touchmove",function(u){var s,f,e;if(c<o&&c!==0)return!1;s=u.originalEvent;t=s.targetTouches[0];f=Math.abs(t.pageX-n.pageX);e=Math.abs(t.pageY-n.pageY);r.vertical===!0?(e*3>f&&u.preventDefault(),i.touchMove(t.pageY,n.pageY)):(f*3>e&&u.preventDefault(),i.touchMove(t.pageX,n.pageX))});f.on("touchend",function(){if(c<o&&c!==0)return!1;var u;u=r.vertical===!0?t.pageY-n.pageY:t.pageX-n.pageX;i.touchEnd(u)})}},build:function(){var t=this;t.initialStyle();this.doCss()&&(r.enableTouch===!0&&t.enableTouch(),r.enableDrag===!0&&t.enableDrag());n(window).on("focus",function(){t.auto()});n(window).on("blur",function(){clearInterval(v)});t.pager();t.pauseOnHover();t.controls();t.keyPress()}};a.build();h.init=function(){h.chbreakpoint();r.vertical===!0?(o=r.item>1?r.verticalHeight:s.outerHeight(),f.css("height",o+"px")):o=f.outerWidth();r.loop===!0&&r.mode==="slide"&&h.clone();h.calL();r.mode==="slide"&&u.removeClass("lSSlide");r.mode==="slide"&&(h.calSW(),h.sSW());setTimeout(function(){r.mode==="slide"&&u.addClass("lSSlide")},1e3);r.pager&&h.createPager();r.adaptiveHeight===!0&&r.vertical===!1&&u.css("height",s.eq(e).outerHeight(!0));r.adaptiveHeight===!1&&(r.mode==="slide"?r.vertical===!1?a.setHeight(u,!1):a.auto():a.setHeight(u,!0));r.gallery===!0&&a.slideThumb();r.mode==="slide"&&a.slide();r.autoWidth===!1?s.length<=r.item?f.find(".lSAction").hide():f.find(".lSAction").show():h.calWidth(!1)<o&&c!==0?f.find(".lSAction").hide():f.find(".lSAction").show()};u.goToPrevSlide=function(){if(e>0)r.onBeforePrevSlide.call(this,u,e),e--,u.mode(!1),r.gallery===!0&&a.slideThumb();else if(r.loop===!0){if(r.onBeforePrevSlide.call(this,u,e),r.mode==="fade"){var n=w-1;e=parseInt(n/r.slideMove)}u.mode(!1);r.gallery===!0&&a.slideThumb()}else r.slideEndAnimation===!0&&(u.addClass("leftEnd"),setTimeout(function(){u.removeClass("leftEnd")},400))};u.goToNextSlide=function(){var n=!0,t;r.mode==="slide"&&(t=a.slideValue(),n=t<c-o-r.slideMargin);e*r.slideMove<w-r.slideMove&&n?(r.onBeforeNextSlide.call(this,u,e),e++,u.mode(!1),r.gallery===!0&&a.slideThumb()):r.loop===!0?(r.onBeforeNextSlide.call(this,u,e),e=0,u.mode(!1),r.gallery===!0&&a.slideThumb()):r.slideEndAnimation===!0&&(u.addClass("rightEnd"),setTimeout(function(){u.removeClass("rightEnd")},400))};u.mode=function(n){r.adaptiveHeight===!0&&r.vertical===!1&&u.css("height",s.eq(e).outerHeight(!0));nt===!1&&(r.mode==="slide"?a.doCss()&&(u.addClass("lSSlide"),r.speed!==""&&f.css("transition-duration",r.speed+"ms"),r.cssEasing!==""&&f.css("transition-timing-function",r.cssEasing)):a.doCss()&&(r.speed!==""&&u.css("transition-duration",r.speed+"ms"),r.cssEasing!==""&&u.css("transition-timing-function",r.cssEasing)));n||r.onBeforeSlide.call(this,u,e);r.mode==="slide"?a.slide():a.fade();f.hasClass("ls-hover")||a.auto();setTimeout(function(){n||r.onAfterSlide.call(this,u,e)},r.speed);nt=!0};u.play=function(){u.goToNextSlide();r.auto=!0;a.auto()};u.pause=function(){r.auto=!1;clearInterval(v)};u.refresh=function(){h.init()};u.getCurrentSlideCount=function(){var i=e,t,n;return r.loop&&(t=f.find(".lslide").length,n=u.find(".clone.left").length,i=e<=n-1?t+(e-n):e>=t+n?e-t-n:e-n),i+1};u.getTotalSlideCount=function(){return f.find(".lslide").length};u.goToSlide=function(n){e=r.loop?n+u.find(".clone.left").length-1:n;u.mode(!1);r.gallery===!0&&a.slideThumb()};u.destroy=function(){u.lightSlider&&(u.goToPrevSlide=function(){},u.goToNextSlide=function(){},u.mode=function(){},u.play=function(){},u.pause=function(){},u.refresh=function(){},u.getCurrentSlideCount=function(){},u.getTotalSlideCount=function(){},u.goToSlide=function(){},u.lightSlider=null,h={init:function(){}},u.parent().parent().find(".lSAction, .lSPager").remove(),u.removeClass("lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right").removeAttr("style").unwrap().unwrap(),u.children().removeAttr("style"),s.removeClass("lslide active"),u.find(".clone").remove(),s=null,v=null,nt=!1,e=0)};setTimeout(function(){r.onSliderLoad.call(this,u)},10);n(window).on("resize orientationchange",function(n){setTimeout(function(){n.preventDefault?n.preventDefault():n.returnValue=!1;h.init()},200)});return this}}(jQuery),function(n,t){typeof define=="function"&&define.amd?define(["exports"],t):typeof exports=="object"&&typeof exports.nodeName!="string"?t(exports):t(n.commonJsStrict={})}(this,function(n){function k(n){if(n in b)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=w.length;t--;)if(n=w[t]+i,n in b)return n}function s(n,t){n=n||{};for(var i in t)t[i]&&t[i].constructor&&t[i].constructor===Object?(n[i]=n[i]||{},s(n[i],t[i])):n[i]=t[i];return n}function ct(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}}function d(n){if("createEvent"in document){var t=document.createEvent("HTMLEvents");t.initEvent("change",!1,!0);n.dispatchEvent(t)}else n.fireEvent("onchange")}function i(n,t,i){var u,r;typeof t=="string"&&(u=t,t={},t[u]=i);for(r in t)n.style[r]=t[r]}function r(n,t){n.classList?n.classList.add(t):n.className+=" "+t}function lt(n,t){n.classList?n.classList.remove(t):n.className=n.className.replace(t,"")}function at(n,t){var i=t||new Image,r;return i.src===n?r=new Promise(function(n){n(i)}):(r=new Promise(function(t){n.substring(0,4).toLowerCase()==="http"&&i.setAttribute("crossOrigin","anonymous");i.onload=function(){setTimeout(function(){t(i)},1)}}),i.src=n),i.style.opacity=0,r}function yt(n,t){window.EXIF||t(0);EXIF.getData(n,function(){var n=EXIF.getTag(this,"Orientation");t(n)})}function y(n,t,i){var u=t.width,f=t.height,r=n.getContext("2d");n.width=t.width;n.height=t.height;r.save();switch(i){case 2:r.translate(u,0);r.scale(-1,1);break;case 3:r.translate(u,f);r.rotate(Math.PI/1);break;case 4:r.translate(0,f);r.scale(1,-1);break;case 5:n.width=f;n.height=u;r.rotate(Math.PI/2);r.scale(1,-1);break;case 6:n.width=f;n.height=u;r.rotate(Math.PI/2);r.translate(0,-f);break;case 7:n.width=f;n.height=u;r.rotate(Math.PI/-2);r.translate(-u,f);r.scale(1,-1);break;case 8:n.width=f;n.height=u;r.translate(0,u);r.rotate(Math.PI/-2)}r.drawImage(t,0,0,u,f);r.restore()}function pt(){var n=this,e=n.options.viewport.type?"cr-vp-"+n.options.viewport.type:null,t,o,u,f;n.options.useCanvas=n.options.enableOrientation||it.call(n);n.data={};n.elements={};t=n.elements.boundary=document.createElement("div");u=n.elements.viewport=document.createElement("div");o=n.elements.img=document.createElement("img");f=n.elements.overlay=document.createElement("div");n.options.useCanvas?(n.elements.canvas=document.createElement("canvas"),n.elements.preview=n.elements.canvas):n.elements.preview=n.elements.img;r(t,"cr-boundary");i(t,{width:n.options.boundary.width+"px",height:n.options.boundary.height+"px"});r(u,"cr-viewport");e&&r(u,e);i(u,{width:n.options.viewport.width+"px",height:n.options.viewport.height+"px"});u.setAttribute("tabindex",0);r(n.elements.preview,"cr-image");r(f,"cr-overlay");n.element.appendChild(t);t.appendChild(n.elements.preview);t.appendChild(u);t.appendChild(f);r(n.element,"croppie-container");n.options.customClass&&r(n.element,n.options.customClass);kt.call(this);n.options.enableZoom&&wt.call(n)}function it(){return(this.options.enableExif||this.options.exif)&&window.EXIF}function a(n){this.options.enableZoom&&(this.elements.zoomer.value=o(n,4))}function wt(){function f(){rt.call(n,{value:parseFloat(i.value),origin:new h(n.elements.preview),viewportRect:n.elements.viewport.getBoundingClientRect(),transform:t.parse(n.elements.preview)})}function e(t){var i,r;i=t.wheelDelta?t.wheelDelta/1200:t.deltaY?t.deltaY/1060:t.detail?t.detail/-60:0;r=n._currentZoom+i;t.preventDefault();a.call(n,r);f.call(n)}var n=this,u=n.elements.zoomerWrap=document.createElement("div"),i=n.elements.zoomer=document.createElement("input");r(u,"cr-slider-wrap");r(i,"cr-slider");i.type="range";i.step="0.0001";i.value=1;i.style.display=n.options.showZoomer?"":"none";n.element.appendChild(u);u.appendChild(i);n._currentZoom=1;n.elements.zoomer.addEventListener("input",f);n.elements.zoomer.addEventListener("change",f);n.options.mouseWheelZoom&&(n.elements.boundary.addEventListener("mousewheel",e),n.elements.boundary.addEventListener("DOMMouseScroll",e))}function rt(n){function l(){var n={};n[u]=f.toString();n[e]=s.toString();i(r.elements.preview,n)}var r=this,f=n?n.transform:t.parse(r.elements.preview),y=n?n.viewportRect:r.elements.viewport.getBoundingClientRect(),s=n?n.origin:new h(r.elements.preview);if(r._currentZoom=n?n.value:r._currentZoom,f.scale=r._currentZoom,l(),r.options.enforceBoundary){var a=bt.call(r,y),o=a.translate,c=a.origin;f.x>=o.maxX&&(s.x=c.minX,f.x=o.maxX);f.x<=o.minX&&(s.x=c.maxX,f.x=o.minX);f.y>=o.maxY&&(s.y=c.minY,f.y=o.maxY);f.y<=o.minY&&(s.y=c.maxY,f.y=o.minY)}l();ut.call(r);v.call(r)}function bt(n){var i=this,t=i._currentZoom,r=n.width,u=n.height,y=i.options.boundary.width/2,p=i.options.boundary.height/2,f=i.elements.preview.getBoundingClientRect(),e=f.width,o=f.height,s=r/2,h=u/2,c=(s/t-y)*-1,w=c-(e*(1/t)-r*(1/t)),l=(h/t-p)*-1,b=l-(o*(1/t)-u*(1/t)),a=1/t*s,k=e*(1/t)-a,v=1/t*h,d=o*(1/t)-v;return{translate:{maxX:c,minX:w,maxY:l,minY:b},origin:{maxX:k,minX:a,maxY:d,minY:v}}}function g(){var n=this,f=n._currentZoom,a=n.elements.preview.getBoundingClientRect(),o=n.elements.viewport.getBoundingClientRect(),l=t.parse(n.elements.preview.style[u]),v=new h(n.elements.preview),y=o.top-a.top+o.height/2,p=o.left-a.left+o.width/2,r={},s={},c;r.y=y/f;r.x=p/f;s.y=(r.y-v.y)*(1-f);s.x=(r.x-v.x)*(1-f);l.x-=s.x;l.y-=s.y;c={};c[e]=r.x+"px "+r.y+"px";c[u]=l.toString();i(n.elements.preview,c)}function kt(){function w(t,i){var u=n.elements.preview.getBoundingClientRect(),e=r.y+i,o=r.x+t;n.options.enforceBoundary?(f.top>u.top+i&&f.bottom<u.bottom+i&&(r.y=e),f.left>u.left+t&&f.right<u.right+t&&(r.x=o)):(r.y=e,r.x=o)}function k(i){function a(n){switch(n){case h:return[1,0];case u:return[0,1];case c:return[-1,0];case o:return[0,-1]}}var h=37,u=38,c=39,o=40,e,s;i.shiftKey&&(i.keyCode==u||i.keyCode==o)?(e=0,e=i.keyCode==u?parseFloat(n.elements.zoomer.value,10)+parseFloat(n.elements.zoomer.step,10):parseFloat(n.elements.zoomer.value,10)-parseFloat(n.elements.zoomer.step,10),n.setZoom(e)):i.keyCode>=37&&i.keyCode<=40&&(i.preventDefault(),s=a(i.keyCode),r=t.parse(n.elements.preview),document.body.style[l]="none",f=n.elements.viewport.getBoundingClientRect(),nt(s))}function nt(t){var o=t[0],s=t[1],f={};w(o,s);f[u]=r.toString();i(n.elements.preview,f);p.call(n);document.body.style[l]="";g.call(n);v.call(n);e=0}function b(i){if(i.preventDefault(),!y){if(y=!0,o=i.pageX,s=i.pageY,i.touches){var u=i.touches[0];o=u.pageX;s=u.pageY}r=t.parse(n.elements.preview);window.addEventListener("mousemove",h);window.addEventListener("touchmove",h);window.addEventListener("mouseup",c);window.addEventListener("touchend",c);document.body.style[l]="none";f=n.elements.viewport.getBoundingClientRect()}}function h(t){var f,h,v,k;t.preventDefault();f=t.pageX;h=t.pageY;t.touches&&(v=t.touches[0],f=v.pageX,h=v.pageY);var g=f-o,nt=h-s,y={};if(t.type=="touchmove"&&t.touches.length>1){var c=t.touches[0],l=t.touches[1],b=Math.sqrt((c.pageX-l.pageX)*(c.pageX-l.pageX)+(c.pageY-l.pageY)*(c.pageY-l.pageY));e||(e=b/n._currentZoom);k=b/e;a.call(n,k);d(n.elements.zoomer);return}w(g,nt);y[u]=r.toString();i(n.elements.preview,y);p.call(n);s=h;o=f}function c(){y=!1;window.removeEventListener("mousemove",h);window.removeEventListener("touchmove",h);window.removeEventListener("mouseup",c);window.removeEventListener("touchend",c);document.body.style[l]="";g.call(n);v.call(n);e=0}var n=this,y=!1,o,s,e,f,r;n.elements.overlay.addEventListener("mousedown",b);n.elements.viewport.addEventListener("keydown",k);n.elements.overlay.addEventListener("touchstart",b)}function p(){var t=this,r=t.elements.boundary.getBoundingClientRect(),n=t.elements.preview.getBoundingClientRect();i(t.elements.overlay,{width:n.width+"px",height:n.height+"px",top:n.top-r.top+"px",left:n.left-r.left+"px"})}function v(){var n=this,t=n.get(),i;ft.call(n)&&(n.options.update.call(n,t),n.$?n.$(n.element).trigger("update",t):(window.CustomEvent?i=new CustomEvent("update",{detail:t}):(i=document.createEvent("CustomEvent"),i.initCustomEvent("update",!0,!0,t)),n.element.dispatchEvent(i)))}function ft(){return this.elements.preview.offsetHeight>0&&this.elements.preview.offsetWidth>0}function nt(){var n=this,s=0,l=1.5,c=1,f={},v=n.elements.preview,y=n.elements.zoomer,w=new t(0,0,c),it=new h,rt=ft.call(n),r,b,k,nt,tt;rt&&!n.data.bound&&(n.data.bound=!0,f[u]=w.toString(),f[e]=it.toString(),f.opacity=1,i(v,f),r=v.getBoundingClientRect(),b=n.elements.viewport.getBoundingClientRect(),k=n.elements.boundary.getBoundingClientRect(),n._originalImageWidth=r.width,n._originalImageHeight=r.height,n.options.enableZoom&&(n.options.enforceBoundary&&(nt=b.width/r.width,tt=b.height/r.height,s=Math.max(nt,tt)),s>=l&&(l=s+1),y.min=o(s,4),y.max=o(l,4),c=Math.max(k.width/r.width,k.height/r.height),a.call(n,c),d(y)),n._currentZoom=w.scale=c,f[u]=w.toString(),i(v,f),n.data.points.length?dt.call(n,n.data.points):gt.call(n),g.call(n),p.call(n))}function dt(n){if(n.length!=4)throw"Croppie - Invalid number of points supplied: "+n;var r=this,l=n[2]-n[0],f=r.elements.viewport.getBoundingClientRect(),h=r.elements.boundary.getBoundingClientRect(),c={left:f.left-h.left,top:f.top-h.top},o=f.width/l,v=n[1],y=n[0],p=-1*n[1]+c.top,w=-1*n[0]+c.left,s={};s[e]=y+"px "+v+"px";s[u]=new t(w,p,o).toString();i(r.elements.preview,s);a.call(r,o);r._currentZoom=o}function gt(){var n=this,f=n.elements.preview.getBoundingClientRect(),r=n.elements.viewport.getBoundingClientRect(),e=n.elements.boundary.getBoundingClientRect(),o=r.left-e.left,s=r.top-e.top,h=o-(f.width-r.width)/2,c=s-(f.height-r.height)/2,l=new t(h,c,n._currentZoom);i(n.elements.preview,u,l.toString())}function ni(n,t){var u=this,i=u.elements.canvas,r=u.elements.img,f=i.getContext("2d"),e=it.call(u),n=u.options.enableOrientation&&n;f.clearRect(0,0,i.width,i.height);i.width=r.width;i.height=r.height;e?yt(r,function(u){y(i,r,parseInt(u));n&&y(i,r,n);t&&t()}):n&&(y(i,r,n),t&&t())}function ti(n){var t=n.points,u=document.createElement("div"),f=document.createElement("img"),e=t[2]-t[0],o=t[3]-t[1];return r(u,"croppie-result"),u.appendChild(f),i(f,{left:-1*t[0]+"px",top:-1*t[1]+"px"}),f.src=n.url,i(u,{width:e+"px",height:o+"px"}),u}function ii(n,t){var r=t.points,h=r[0],c=r[1],o=r[2]-r[0],s=r[3]-r[1],l=t.circle,e=document.createElement("canvas"),i=e.getContext("2d"),u=o,f=s;return t.outputWidth&&t.outputHeight&&(u=t.outputWidth,f=t.outputHeight),e.width=u,e.height=f,t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,u,f)),i.drawImage(n,h,c,o,s,0,0,u,f),l&&(i.fillStyle="#fff",i.globalCompositeOperation="destination-in",i.beginPath(),i.arc(u/2,f/2,u/2,0,Math.PI*2,!0),i.closePath(),i.fill()),e.toDataURL(t.format,t.quality)}function et(n,t){var i=this,r,u=[],f;if(typeof n=="string")r=n,n={};else if(Array.isArray(n))u=n.slice();else{if(typeof n=="undefined"&&i.data.url)return nt.call(i),v.call(i),null;r=n.url;u=n.points||[]}return i.data.bound=!1,i.data.url=r||i.data.url,i.data.points=(u||i.data.points).map(function(n){return parseFloat(n)}),f=at(r,i.elements.img),f.then(function(){i.options.useCanvas&&(i.elements.img.exifdata=null,ni.call(i,n.orientation||1,function(){nt.call(i);v.call(i);t&&t()}))}),f}function o(n,t){return parseFloat(n).toFixed(t||0)}function ot(){var i=this,h=i.elements.preview.getBoundingClientRect(),r=i.elements.viewport.getBoundingClientRect(),u=r.left-h.left,f=r.top-h.top,e=u+r.width,s=f+r.height,n=i._currentZoom,t;return(n===Infinity||isNaN(n))&&(n=1),t=i.options.enforceBoundary?0:Number.NEGATIVE_INFINITY,u=Math.max(t,u/n),f=Math.max(t,f/n),e=Math.max(t,e/n),s=Math.max(t,s/n),{points:[o(u),o(f),o(e),o(s)],zoom:n}}function ri(n){var r=this,t=ot.call(r),u=s(st,s({},n)),h=typeof n=="string"?n:u.type||"viewport",i=u.size,e=u.format,c=u.quality,l=u.backgroundColor,a=typeof u.circle=="boolean"?u.circle:r.options.viewport.type==="circle",f=r.elements.viewport.getBoundingClientRect(),o=f.width/f.height;return i==="viewport"?(t.outputWidth=f.width,t.outputHeight=f.height):typeof i=="object"&&(i.width&&i.height?(t.outputWidth=i.width,t.outputHeight=i.height):i.width?(t.outputWidth=i.width,t.outputHeight=i.width/o):i.height&&(t.outputWidth=i.height*o,t.outputHeight=i.height)),ht.indexOf(e)>-1&&(t.format="image/"+e,t.quality=c),t.circle=a,t.url=r.data.url,t.backgroundColor=l,new Promise(function(n){h==="canvas"?n(ii.call(r,r.elements.preview,t)):n(ti.call(r,t))})}function ui(){nt.call(this)}function fi(n){var f;if(!this.options.useCanvas)throw"Croppie: Cannot rotate without enableOrientation";var u=this,t=u.elements.canvas,e=u.elements.img,i=document.createElement("canvas"),r=1;i.width=t.width;i.height=t.height;f=i.getContext("2d");f.drawImage(t,0,0);(n===90||n===-270)&&(r=6);(n===-90||n===270)&&(r=8);(n===180||n===-180)&&(r=3);y(t,i,r);rt.call(u)}function ei(){var n=this;n.element.removeChild(n.elements.boundary);lt(n.element,"croppie-container");n.options.enableZoom&&n.element.removeChild(n.elements.zoomerWrap);delete n.elements}function c(n,t){if(this.element=n,this.options=s(s({},c.defaults),t),pt.call(this),this.options.url){var i={url:this.options.url,points:this.options.points};delete this.options.url;delete this.options.points;et.call(this,i)}}var w,b,e,u,l,h,ut,st,ht,f;typeof Promise!="function"&&!function(n){function i(n,t){return function(){n.apply(t,arguments)}}function t(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._state=null;this._value=null;this._deferreds=[];o(n,i(f,this),i(r,this))}function u(n){var t=this;return null===this._state?void this._deferreds.push(n):void s(function(){var i=t._state?n.onFulfilled:n.onRejected,r;if(null===i)return void(t._state?n.resolve:n.reject)(t._value);try{r=i(t._value)}catch(u){return void n.reject(u)}n.resolve(r)})}function f(n){try{if(n===this)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var t=n.then;if("function"==typeof t)return void o(i(t,n),i(f,this),i(r,this))}this._state=!0;this._value=n;e.call(this)}catch(u){r.call(this,u)}}function r(n){this._state=!1;this._value=n;e.call(this)}function e(){for(var n=0,t=this._deferreds.length;t>n;n++)u.call(this,this._deferreds[n]);this._deferreds=null}function h(n,t,i,r){this.onFulfilled="function"==typeof n?n:null;this.onRejected="function"==typeof t?t:null;this.resolve=i;this.reject=r}function o(n,t,i){var r=!1;try{n(function(n){r||(r=!0,t(n))},function(n){r||(r=!0,i(n))})}catch(u){if(r)return;r=!0;i(u)}}var c=setTimeout,s="function"==typeof setImmediate&&setImmediate||function(n){c(n,1)},l=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.prototype["catch"]=function(n){return this.then(null,n)};t.prototype.then=function(n,i){var r=this;return new t(function(t,f){u.call(r,new h(n,i,t,f))})};t.all=function(){var n=Array.prototype.slice.call(1===arguments.length&&l(arguments[0])?arguments[0]:arguments);return new t(function(t,i){function u(r,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var o=e.then;if("function"==typeof o)return void o.call(e,function(n){u(r,n)},i)}n[r]=e;0==--f&&t(n)}catch(s){i(s)}}if(0===n.length)return t([]);for(var f=n.length,r=0;r<n.length;r++)u(r,n[r])})};t.resolve=function(n){return n&&"object"==typeof n&&n.constructor===t?n:new t(function(t){t(n)})};t.reject=function(n){return new t(function(t,i){i(n)})};t.race=function(n){return new t(function(t,i){for(var r=0,u=n.length;u>r;r++)n[r].then(t,i)})};t._setImmediateFn=function(n){s=n};"undefined"!=typeof module&&module.exports?module.exports=t:n.Promise||(n.Promise=t)}(this);w=["Webkit","Moz","ms"];b=document.createElement("div").style;u=k("transform");e=k("transformOrigin");l=k("userSelect");var tt="translate3d",vt=", 0px",t=function(n,t,i){this.x=parseFloat(n);this.y=parseFloat(t);this.scale=parseFloat(i)};t.parse=function(n){return n.style?t.parse(n.style[u]):n.indexOf("matrix")>-1||n.indexOf("none")>-1?t.fromMatrix(n):t.fromString(n)};t.fromMatrix=function(n){var i=n.substring(7).split(",");return i.length&&n!=="none"||(i=[1,0,0,1,0,0]),new t(parseInt(i[4],10),parseInt(i[5],10),parseFloat(i[0]))};t.fromString=function(n){var r=n.split(") "),i=r[0].substring(tt.length+1).split(","),u=r.length>1?r[1].substring(6):1,f=i.length>1?i[0]:0,e=i.length>1?i[1]:0;return new t(f,e,u)};t.prototype.toString=function(){return tt+"("+this.x+"px, "+this.y+"px"+vt+") scale("+this.scale+")"};h=function(n){if(!n||!n.style[e]){this.x=0;this.y=0;return}var t=n.style[e].split(" ");this.x=parseFloat(t[0]);this.y=parseFloat(t[1])};h.prototype.toString=function(){return this.x+"px "+this.y+"px"};ut=ct(p,500);st={type:"canvas",format:"png",quality:1};ht=["jpeg","webp","png"];window.jQuery&&(f=window.jQuery,f.fn.croppie=function(n){var r=typeof n,i,t;return r==="string"?(i=Array.prototype.slice.call(arguments,1),t=f(this).data("croppie"),n==="get")?t.get():n==="result"?t.result.apply(t,i):this.each(function(){var t=f(this).data("croppie"),r;if(t)if(r=t[n],f.isFunction(r))r.apply(t,i),n==="destroy"&&f(this).removeData("croppie");else throw"Croppie "+n+" method not found";}):this.each(function(){var t=new c(this,n);t.$=f;f(this).data("croppie",t)})});c.defaults={viewport:{width:100,height:100,type:"square"},boundary:{width:300,height:300},orientationControls:{enabled:!0,leftClass:"",rightClass:""},customClass:"",showZoomer:!0,enableZoom:!0,mouseWheelZoom:!0,enableExif:!1,enforceBoundary:!0,enableOrientation:!1,update:function(){}};s(c.prototype,{bind:function(n,t){return et.call(this,n,t)},get:function(){return ot.call(this)},result:function(n){return ri.call(this,n)},refresh:function(){return ui.call(this)},setZoom:function(n){a.call(this,n);d(this.elements.zoomer)},rotate:function(n){fi.call(this,n)},destroy:function(){return ei.call(this)}});n.Croppie=window.Croppie=c;typeof module!="object"||!module.exports||(module.exports=c)}),function(n,t,i){"use strict";function u(t){if(this.support=typeof File!="undefined"&&typeof Blob!="undefined"&&typeof FileList!="undefined"&&(!!Blob.prototype.slice||!!Blob.prototype.webkitSlice||!!Blob.prototype.mozSlice||!1),this.support){this.supportDirectory=/Chrome/.test(n.navigator.userAgent);this.files=[];this.defaults={chunkSize:1048576,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:l};this.opts={};this.events={};var i=this;this.onDrop=function(n){i.opts.onDropStopPropagation&&n.stopPropagation();n.preventDefault();var t=n.dataTransfer;t.items&&t.items[0]&&t.items[0].webkitGetAsEntry?i.webkitReadDataTransfer(n):i.addFiles(t.files,n)};this.preventEvent=function(n){n.preventDefault()};this.opts=u.extend({},this.defaults,t||{})}}function e(n,t){this.flowObj=n;this.bytes=null;this.file=t;this.name=t.fileName||t.name;this.size=t.size;this.relativePath=t.relativePath||t.webkitRelativePath||this.name;this.uniqueIdentifier=n.generateUniqueIdentifier(t);this.chunks=[];this.paused=!1;this.error=!1;this.averageSpeed=0;this.currentSpeed=0;this._lastProgressCallback=Date.now();this._prevUploadedSize=0;this._prevProgress=0;this.bootstrap()}function l(n,t,i,r,u){var f="slice";n.file.slice?f="slice":n.file.mozSlice?f="mozSlice":n.file.webkitSlice&&(f="webkitSlice");u.readFinished(n.file[f](t,i,r))}function o(n,t,i){this.flowObj=n;this.fileObj=t;this.offset=i;this.tested=!1;this.retries=0;this.pendingRetry=!1;this.preprocessState=0;this.readState=0;this.loaded=0;this.total=0;this.chunkSize=this.flowObj.opts.chunkSize;this.startByte=this.offset*this.chunkSize;this.computeEndByte=function(){var n=Math.min(this.fileObj.size,(this.offset+1)*this.chunkSize);return this.fileObj.size-n<this.chunkSize&&!this.flowObj.opts.forceChunkSize&&(n=this.fileObj.size),n};this.endByte=this.computeEndByte();this.xhr=null;var r=this;this.event=function(n,t){t=Array.prototype.slice.call(arguments);t.unshift(r);r.fileObj.chunkEvent.apply(r.fileObj,t)};this.progressHandler=function(n){n.lengthComputable&&(r.loaded=n.loaded,r.total=n.total);r.event("progress",n)};this.testHandler=function(){var n=r.status(!0);n==="error"?(r.event(n,r.message()),r.flowObj.uploadNextChunk()):n==="success"?(r.tested=!0,r.event(n,r.message()),r.flowObj.uploadNextChunk()):r.fileObj.paused||(r.tested=!0,r.send())};this.doneHandler=function(){var n=r.status(),t;n==="success"||n==="error"?(delete this.data,r.event(n,r.message()),r.flowObj.uploadNextChunk()):(r.event("retry",r.message()),r.pendingRetry=!0,r.abort(),r.retries++,t=r.flowObj.opts.chunkRetryInterval,t!==null?setTimeout(function(){r.send()},t):r.send())}}function a(n,t){var i=n.indexOf(t);i>-1&&n.splice(i,1)}function f(n,t){return typeof n=="function"&&(t=Array.prototype.slice.call(arguments),n=n.apply(null,t.slice(1))),n}function c(n,t){setTimeout(n.bind(t),0)}function s(n){return r(arguments,function(t){t!==n&&r(t,function(t,i){n[i]=t})}),n}function r(n,t,i){if(n){var r;if(typeof n.length!="undefined"){for(r=0;r<n.length;r++)if(t.call(i,n[r],r)===!1)return}else for(r in n)if(n.hasOwnProperty(r)&&t.call(i,n[r],r)===!1)return}}var h=n.navigator.msPointerEnabled;u.prototype={on:function(n,t){n=n.toLowerCase();this.events.hasOwnProperty(n)||(this.events[n]=[]);this.events[n].push(t)},off:function(n,t){n!==i?(n=n.toLowerCase(),t!==i?this.events.hasOwnProperty(n)&&a(this.events[n],t):delete this.events[n]):this.events={}},fire:function(n,t){t=Array.prototype.slice.call(arguments);n=n.toLowerCase();var i=!1;return this.events.hasOwnProperty(n)&&r(this.events[n],function(n){i=n.apply(this,t.slice(1))===!1||i},this),n!="catchall"&&(t.unshift("catchAll"),i=this.fire.apply(this,t)===!1||i),!i},webkitReadDataTransfer:function(n){function t(n){n.readEntries(function(f){f.length?(u+=f.length,r(f,function(n){if(n.isFile){var i=n.fullPath;n.file(function(n){e(n,i)},o)}else n.isDirectory&&t(n.createReader())}),t(n)):i()},o)}function e(n,t){n.relativePath=t.substring(1);f.push(n);i()}function o(n){throw n;}function i(){--u==0&&s.addFiles(f,n)}var s=this,u=n.dataTransfer.items.length,f=[];r(n.dataTransfer.items,function(n){var r=n.webkitGetAsEntry();if(!r){i();return}r.isFile?e(n.getAsFile(),r.fullPath):t(r.createReader())})},generateUniqueIdentifier:function(n){var t=this.opts.generateUniqueIdentifier,i;return typeof t=="function"?t(n):(i=n.relativePath||n.webkitRelativePath||n.fileName||n.name,n.size+"-"+i.replace(/[^0-9a-zA-Z_-]/img,""))},uploadNextChunk:function(n){var t=!1,i;return this.opts.prioritizeFirstAndLastChunk&&(r(this.files,function(n){return!n.paused&&n.chunks.length&&n.chunks[0].status()==="pending"?(n.chunks[0].send(),t=!0,!1):!n.paused&&n.chunks.length>1&&n.chunks[n.chunks.length-1].status()==="pending"?(n.chunks[n.chunks.length-1].send(),t=!0,!1):void 0}),t)?t:(r(this.files,function(n){return n.paused||r(n.chunks,function(n){if(n.status()==="pending")return n.send(),t=!0,!1}),t?!1:void 0}),t)?!0:(i=!1,r(this.files,function(n){if(!n.isComplete())return i=!0,!1}),i||n||c(function(){this.fire("complete")},this),!1)},assignBrowse:function(n,i,u,f){typeof n.length=="undefined"&&(n=[n]);r(n,function(n){var e,o;n.tagName==="INPUT"&&n.type==="file"?e=n:(e=t.createElement("input"),e.setAttribute("type","file"),s(e.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),n.appendChild(e),n.addEventListener("click",function(){e.click()},!1));this.opts.singleFile||u||e.setAttribute("multiple","multiple");i&&e.setAttribute("webkitdirectory","webkitdirectory");r(f,function(n,t){e.setAttribute(t,n)});o=this;e.addEventListener("change",function(n){n.target.value&&(o.addFiles(n.target.files,n),n.target.value="")},!1)},this)},assignDrop:function(n){typeof n.length=="undefined"&&(n=[n]);r(n,function(n){n.addEventListener("dragover",this.preventEvent,!1);n.addEventListener("dragenter",this.preventEvent,!1);n.addEventListener("drop",this.onDrop,!1)},this)},unAssignDrop:function(n){typeof n.length=="undefined"&&(n=[n]);r(n,function(n){n.removeEventListener("dragover",this.preventEvent);n.removeEventListener("dragenter",this.preventEvent);n.removeEventListener("drop",this.onDrop)},this)},isUploading:function(){var n=!1;return r(this.files,function(t){if(t.isUploading())return n=!0,!1}),n},_shouldUploadNext:function(){var n=0,t=!0,i=this.opts.simultaneousUploads;return r(this.files,function(u){r(u.chunks,function(r){if(r.status()==="uploading"&&(n++,n>=i))return t=!1,!1})}),t&&n},upload:function(){var i=this._shouldUploadNext(),n,t;if(i!==!1){for(this.fire("uploadStart"),n=!1,t=1;t<=this.opts.simultaneousUploads-i;t++)n=this.uploadNextChunk(!0)||n;n||c(function(){this.fire("complete")},this)}},resume:function(){r(this.files,function(n){n.resume()})},pause:function(){r(this.files,function(n){n.pause()})},cancel:function(){for(var n=this.files.length-1;n>=0;n--)this.files[n].cancel()},progress:function(){var t=0,n=0;return r(this.files,function(i){t+=i.progress()*i.size;n+=i.size}),n>0?t/n:0},addFile:function(n,t){this.addFiles([n],t)},addFiles:function(n,t){var i=[];r(n,function(n){if((!h||h&&n.size>0)&&!(n.size%4096==0&&(n.name==="."||n.fileName==="."))&&(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(this.generateUniqueIdentifier(n)))){var r=new e(this,n);this.fire("fileAdded",r,t)&&i.push(r)}},this);this.fire("filesAdded",i,t)&&r(i,function(n){this.opts.singleFile&&this.files.length>0&&this.removeFile(this.files[0]);this.files.push(n)},this);this.fire("filesSubmitted",i,t)},removeFile:function(n){for(var t=this.files.length-1;t>=0;t--)this.files[t]===n&&(this.files.splice(t,1),n.abort())},getFromUniqueIdentifier:function(n){var t=!1;return r(this.files,function(i){i.uniqueIdentifier===n&&(t=i)}),t},getSize:function(){var n=0;return r(this.files,function(t){n+=t.size}),n},sizeUploaded:function(){var n=0;return r(this.files,function(t){n+=t.sizeUploaded()}),n},timeRemaining:function(){var n=0,t=0;return(r(this.files,function(i){i.paused||i.error||(n+=i.size-i.sizeUploaded(),t+=i.averageSpeed)}),n&&!t)?Number.POSITIVE_INFINITY:!n&&!t?0:Math.floor(n/t)}};e.prototype={measureSpeed:function(){var i=Date.now()-this._lastProgressCallback,n,t;i&&(n=this.flowObj.opts.speedSmoothingFactor,t=this.sizeUploaded(),this.currentSpeed=Math.max((t-this._prevUploadedSize)/i*1e3,0),this.averageSpeed=n*this.currentSpeed+(1-n)*this.averageSpeed,this._prevUploadedSize=t)},chunkEvent:function(n,t,i){switch(t){case"progress":if(Date.now()-this._lastProgressCallback<this.flowObj.opts.progressCallbacksInterval)break;this.measureSpeed();this.flowObj.fire("fileProgress",this,n);this.flowObj.fire("progress");this._lastProgressCallback=Date.now();break;case"error":this.error=!0;this.abort(!0);this.flowObj.fire("fileError",this,i,n);this.flowObj.fire("error",i,this,n);break;case"success":if(this.error)return;this.measureSpeed();this.flowObj.fire("fileProgress",this,n);this.flowObj.fire("progress");this._lastProgressCallback=Date.now();this.isComplete()&&(this.currentSpeed=0,this.averageSpeed=0,this.flowObj.fire("fileSuccess",this,i,n));break;case"retry":this.flowObj.fire("fileRetry",this,n)}},pause:function(){this.paused=!0;this.abort()},resume:function(){this.paused=!1;this.flowObj.upload()},abort:function(n){this.currentSpeed=0;this.averageSpeed=0;var t=this.chunks;n&&(this.chunks=[]);r(t,function(n){n.status()==="uploading"&&(n.abort(),this.flowObj.uploadNextChunk())},this)},cancel:function(){this.flowObj.removeFile(this)},retry:function(){this.bootstrap();this.flowObj.upload()},bootstrap:function(){var t,i,n;for(typeof this.flowObj.opts.initFileFn=="function"&&this.flowObj.opts.initFileFn(this),this.abort(!0),this.error=!1,this._prevProgress=0,t=this.flowObj.opts.forceChunkSize?Math.ceil:Math.floor,i=Math.max(t(this.size/this.flowObj.opts.chunkSize),1),n=0;n<i;n++)this.chunks.push(new o(this.flowObj,this,n))},progress:function(){var n,t;return this.error?1:this.chunks.length===1?(this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),this._prevProgress):(n=0,r(this.chunks,function(t){n+=t.progress()*(t.endByte-t.startByte)}),t=n/this.size,this._prevProgress=Math.max(this._prevProgress,t>.9999?1:t),this._prevProgress)},isUploading:function(){var n=!1;return r(this.chunks,function(t){if(t.status()==="uploading")return n=!0,!1}),n},isComplete:function(){var n=!1;return r(this.chunks,function(t){var i=t.status();if(i==="pending"||i==="uploading"||i==="reading"||t.preprocessState===1||t.readState===1)return n=!0,!1}),!n},sizeUploaded:function(){var n=0;return r(this.chunks,function(t){n+=t.sizeUploaded()}),n},timeRemaining:function(){if(this.paused||this.error)return 0;var n=this.size-this.sizeUploaded();return n&&!this.averageSpeed?Number.POSITIVE_INFINITY:!n&&!this.averageSpeed?0:Math.floor(n/this.averageSpeed)},getType:function(){return this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.name.substr((~-this.name.lastIndexOf(".")>>>0)+2).toLowerCase()}};o.prototype={getParams:function(){return{flowChunkNumber:this.offset+1,flowChunkSize:this.flowObj.opts.chunkSize,flowCurrentChunkSize:this.endByte-this.startByte,flowTotalSize:this.fileObj.size,flowIdentifier:this.fileObj.uniqueIdentifier,flowFilename:this.fileObj.name,flowRelativePath:this.fileObj.relativePath,flowTotalChunks:this.fileObj.chunks.length}},getTarget:function(n,t){return n+=n.indexOf("?")<0?"?":"&",n+t.join("&")},test:function(){this.xhr=new XMLHttpRequest;this.xhr.addEventListener("load",this.testHandler,!1);this.xhr.addEventListener("error",this.testHandler,!1);var n=f(this.flowObj.opts.testMethod,this.fileObj,this),t=this.prepareXhrRequest(n,!0);this.xhr.send(t)},preprocessFinished:function(){this.endByte=this.computeEndByte();this.preprocessState=2;this.send()},readFinished:function(n){this.readState=2;this.bytes=n;this.send()},send:function(){var n=this.flowObj.opts.preprocess,r=this.flowObj.opts.readFileFn,t,i;if(typeof n=="function")switch(this.preprocessState){case 0:this.preprocessState=1;n(this);return;case 1:return}switch(this.readState){case 0:this.readState=1;r(this.fileObj,this.startByte,this.endByte,this.fileType,this);return;case 1:return}if(this.flowObj.opts.testChunks&&!this.tested){this.test();return}this.loaded=0;this.total=0;this.pendingRetry=!1;this.xhr=new XMLHttpRequest;this.xhr.upload.addEventListener("progress",this.progressHandler,!1);this.xhr.addEventListener("load",this.doneHandler,!1);this.xhr.addEventListener("error",this.doneHandler,!1);t=f(this.flowObj.opts.uploadMethod,this.fileObj,this);i=this.prepareXhrRequest(t,!1,this.flowObj.opts.method,this.bytes);this.xhr.send(i)},abort:function(){var n=this.xhr;this.xhr=null;n&&n.abort()},status:function(n){return this.readState===1?"reading":this.pendingRetry||this.preprocessState===1?"uploading":this.xhr?this.xhr.readyState<4?"uploading":this.flowObj.opts.successStatuses.indexOf(this.xhr.status)>-1?"success":this.flowObj.opts.permanentErrors.indexOf(this.xhr.status)>-1||!n&&this.retries>=this.flowObj.opts.maxChunkRetries?"error":(this.abort(),"pending"):"pending"},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var n=this.status();return n==="success"||n==="error"?1:n==="pending"?0:this.total>0?this.loaded/this.total:0},sizeUploaded:function(){var n=this.endByte-this.startByte;return this.status()!=="success"&&(n=this.progress()*n),n},prepareXhrRequest:function(n,t,i,u){var o=f(this.flowObj.opts.query,this.fileObj,this,t),h,e,c;return o=s(o,this.getParams()),h=f(this.flowObj.opts.target,this.fileObj,this,t),e=null,n==="GET"||i==="octet"?(c=[],r(o,function(n,t){c.push([encodeURIComponent(t),encodeURIComponent(n)].join("="))}),h=this.getTarget(h,c),e=u||null):(e=new FormData,r(o,function(n,t){e.append(t,n)}),e.append(this.flowObj.opts.fileParameterName,u,this.fileObj.file.name)),this.xhr.open(n,h,!0),this.xhr.withCredentials=this.flowObj.opts.withCredentials,r(f(this.flowObj.opts.headers,this.fileObj,this,t),function(n,t){this.xhr.setRequestHeader(t,n)},this),e}};u.evalOpts=f;u.extend=s;u.each=r;u.FlowFile=e;u.FlowChunk=o;u.version="2.10.1";typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=u:(n.Flow=u,typeof define=="function"&&define.amd&&define("flow",[],function(){return u}))}(window,document);angular.module("flow.provider",[]).provider("flowFactory",function(){"use strict";this.defaults={};this.factory=function(n){return new Flow(n)};this.events=[];this.on=function(n,t){this.events.push([n,t])};this.$get=function(){var n=this.factory,t=this.defaults,i=this.events;return{create:function(r){var u=n(angular.extend({},t,r));return angular.forEach(i,function(n){u.on(n[0],n[1])}),u}}}});angular.module("flow.init",["flow.provider"]).controller("flowCtrl",["$scope","$attrs","$parse","flowFactory",function(n,t,i,r){var e=angular.extend({},n.$eval(t.flowInit)),u=n.$eval(t.flowObject)||r.create(e),f=function(t){var i=Array.prototype.slice.call(arguments),r;return i.shift(),r=n.$broadcast.apply(n,["flow::"+t,u].concat(i)),{progress:1,filesSubmitted:1,fileSuccess:1,fileError:1,complete:1}[t]&&n.$apply(),r.defaultPrevented?!1:void 0};u.on("catchAll",f);n.$on("$destroy",function(){u.off("catchAll",f)});n.$flow=u;t.hasOwnProperty("flowName")&&(i(t.flowName).assign(n,u),n.$on("$destroy",function(){i(t.flowName).assign(n)}))}]).directive("flowInit",[function(){return{scope:!0,controller:"flowCtrl"}}]);angular.module("flow.btn",["flow.init"]).directive("flowBtn",[function(){return{restrict:"EA",scope:!1,require:"^flowInit",link:function(n,t,i){var r=i.hasOwnProperty("flowDirectory"),u=i.hasOwnProperty("flowSingleFile"),f=i.hasOwnProperty("flowAttrs")&&n.$eval(i.flowAttrs);n.$flow.assignBrowse(t,r,u,f)}}}]);angular.module("flow.dragEvents",["flow.init"]).directive("flowPreventDrop",function(){return{scope:!1,link:function(n,t){t.bind("drop dragover",function(n){n.preventDefault()})}}}).directive("flowDragEnter",["$timeout",function(n){return{scope:!1,link:function(t,i,r){function e(n){var t=!1,i=n.dataTransfer||n.originalEvent.dataTransfer;return angular.forEach(i&&i.types,function(n){n==="Files"&&(t=!0)}),t}var u,f=!1;i.bind("dragover",function(i){e(i)&&(f||(t.$apply(r.flowDragEnter),f=!0),n.cancel(u),i.preventDefault())});i.bind("dragleave drop",function(){n.cancel(u);u=n(function(){t.$eval(r.flowDragLeave);u=null;f=!1},100)})}}}]);angular.module("flow.drop",["flow.init"]).directive("flowDrop",function(){return{scope:!1,require:"^flowInit",link:function(n,t,i){function r(){n.$flow.assignDrop(t)}function u(){n.$flow.unAssignDrop(t)}i.flowDropEnabled?n.$watch(i.flowDropEnabled,function(n){n?r():u()}):r()}}});!function(n){"use strict";function i(n){return n.charAt(0).toUpperCase()+n.slice(1)}var t=n.module("flow.events",["flow.init"]);n.forEach({fileSuccess:["$file","$message"],fileProgress:["$file"],fileAdded:["$file","$event"],filesAdded:["$files","$event"],filesSubmitted:["$files","$event"],fileRetry:["$file"],fileError:["$file","$message"],uploadStart:[],complete:[],progress:[],error:["$message","$file"]},function(r,u){var f="flow"+i(u);f=="flowUploadStart"&&(f="flowUploadStarted");t.directive(f,[function(){return{require:"^flowInit",controller:["$scope","$attrs",function(t,i){t.$on("flow::"+u,function(){var u=Array.prototype.slice.call(arguments),o=u.shift(),e;t.$flow===u.shift()&&(e={},n.forEach(r,function(n,t){e[n]=u[t]}),t.$eval(i[f],e)===!1&&o.preventDefault())})}]}}])})}(angular);angular.module("flow.img",["flow.init"]).directive("flowImg",[function(){return{scope:!1,require:"^flowInit",link:function(n,t,i){var r=i.flowImg;n.$watch(r,function(t){if(t){var r=new FileReader;r.readAsDataURL(t.file);r.onload=function(t){n.$apply(function(){i.$set("src",t.target.result)})}}})}}}]);angular.module("flow.transfers",["flow.init"]).directive("flowTransfers",[function(){return{scope:!0,require:"^flowInit",link:function(n){n.transfers=n.$flow.files}}}]);angular.module("flow",["flow.provider","flow.init","flow.events","flow.btn","flow.drop","flow.transfers","flow.img","flow.dragEvents"]);eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}("(C($){8($.1r.1v){G}$.1r.6p=$.1r.1v=C(u,w){8(1k.S==0){18(I,'6q 54 7P 1j \"'+1k.4l+'\".');G 1k}8(1k.S>1){G 1k.1W(C(){$(1k).1v(u,w)})}E y=1k,$13=1k[0],55=K;8(y.1m('56')){55=y.1Q('3o','4m');y.R('3o',['4n',I])}y.57=C(o,a,b){o=3R($13,o);o.D=6r($13,o.D);o.1M=6s($13,o.1M);o.M=6t($13,o.M);o.V=59($13,o.V);o.Y=59($13,o.Y);o.1a=6u($13,o.1a);o.1q=6v($13,o.1q);o.1h=6w($13,o.1h);8(a){31=$.1N(I,{},$.1r.1v.5a,o)}7=$.1N(I,{},$.1r.1v.5a,o);7.d=6x(7);z.2b=(7.2b=='4o'||7.2b=='1n')?'Y':'V';E c=y.14(),2w=5b($1s,7,'N');8(3p(7.25)){7.25='7Q'+F.3S}7.4p=5c(7,2w);7.D=6y(7.D,7,c,b);7[7.d['N']]=6z(7[7.d['N']],7,c);7[7.d['1d']]=6A(7[7.d['1d']],7,c);8(7.2m){8(!3T(7[7.d['N']])){7[7.d['N']]='2J%'}}8(3T(7[7.d['N']])){z.6B=I;z.4q=7[7.d['N']];7[7.d['N']]=4r(2w,z.4q);8(!7.D.L){7.D.T.1c=I}}8(7.2m){7.1R=K;7.1i=[0,0,0,0];7.1A=K;7.D.T.1c=K}O{8(!7.D.L){7=6C(7,2w)}8(!7[7.d['N']]){8(!7.D.T.1c&&Z(7.D[7.d['N']])&&7.D.1t=='*'){7[7.d['N']]=7.D.L*7.D[7.d['N']];7.1A=K}O{7[7.d['N']]='1c'}}8(1G(7.1A)){7.1A=(Z(7[7.d['N']]))?'5d':K}8(7.D.T.1c){7.D.L=32(c,7,0)}}8(7.D.1t!='*'&&!7.D.T.1c){7.D.T.4s=7.D.L;7.D.L=3U(c,7,0)}7.D.L=2x(7.D.L,7,7.D.T.2c,$13);7.D.T.1Z=7.D.L;8(7.2m){8(!7.D.T.34){7.D.T.34=7.D.L}8(!7.D.T.1X){7.D.T.1X=7.D.L}7=5e(7,c,2w)}O{7.1i=6D(7.1i);8(7.1A=='3q'){7.1A='1n'}O 8(7.1A=='5f'){7.1A='35'}1B(7.1A){Q'5d':Q'1n':Q'35':8(7[7.d['N']]!='1c'){7=5g(7,c);7.1R=I}16;2y:7.1A=K;7.1R=(7.1i[0]==0&&7.1i[1]==0&&7.1i[2]==0&&7.1i[3]==0)?K:I;16}}8(!Z(7.1M.1C)){7.1M.1C=6E}8(1G(7.1M.D)){7.1M.D=(7.2m||7.D.T.1c||7.D.1t!='*')?'L':7.D.L}7.M=$.1N(I,{},7.1M,7.M);7.V=$.1N(I,{},7.1M,7.V);7.Y=$.1N(I,{},7.1M,7.Y);7.1a=$.1N(I,{},7.1M,7.1a);7.M=6F($13,7.M);7.V=5h($13,7.V);7.Y=5h($13,7.Y);7.1a=6G($13,7.1a);7.1q=6H($13,7.1q);7.1h=6I($13,7.1h);8(7.2n){7.2n=5i(7.2n)}8(7.M.5j){7.M.4t=7.M.5j;2K('M.5j','M.4t')}8(7.M.5k){7.M.4u=7.M.5k;2K('M.5k','M.4u')}8(7.M.5l){7.M.4v=7.M.5l;2K('M.5l','M.4v')}8(7.M.5m){7.M.2L=7.M.5m;2K('M.5m','M.2L')}};y.6J=C(){y.1m('56',I);E a=y.14(),3V=5n(y,['6K','6L','3W','3q','35','5f','1n','3X','N','1d','6M','1S','5o','6N']),5p='7R';1B(3V.3W){Q'6O':Q'7S':5p=3V.3W;16}$1s.X(3V).X({'7T':'3r','3W':5p});y.1m('5q',3V).X({'6K':'1n','6L':'3Y','3W':'6O','3q':0,'35':'M','5f':'M','1n':0,'6M':0,'1S':0,'5o':0,'6N':0});4w(a,7);5r(a,7);8(7.2m){5s(7,a)}};y.6P=C(){y.5t();y.12(H('5u',F),C(e,a){e.1f();8(!z.2d){8(7.M.W){7.M.W.36(2z('4x',F))}}z.2d=I;8(7.M.1H){7.M.1H=K;y.R(H('3a',F),a)}G I});y.12(H('5v',F),C(e){e.1f();8(z.20){3Z(U)}G I});y.12(H('3a',F),C(e,a,b){e.1f();1u=3s(1u);8(a&&z.20){U.2d=I;E c=2o()-U.2M;U.1C-=c;8(U.3t){U.3t.1C-=c}8(U.3u){U.3u.1C-=c}3Z(U,K)}8(!z.26&&!z.20){8(b){1u.3v+=2o()-1u.2M}}8(!z.26){8(7.M.W){7.M.W.36(2z('6Q',F))}}z.26=I;8(7.M.4u){E d=7.M.2L-1u.3v,3b=2J-1I.2A(d*2J/7.M.2L);7.M.4u.1g($13,3b,d)}G I});y.12(H('1H',F),C(e,b,c,d){e.1f();1u=3s(1u);E v=[b,c,d],t=['2N','27','3c'],a=3d(v,t);b=a[0];c=a[1];d=a[2];8(b!='V'&&b!='Y'){b=z.2b}8(!Z(c)){c=0}8(!1l(d)){d=K}8(d){z.2d=K;7.M.1H=I}8(!7.M.1H){e.2e();G 18(F,'3w 4x: 2p 3e.')}8(z.26){8(7.M.W){7.M.W.2O(2z('4x',F));7.M.W.2O(2z('6Q',F))}}z.26=K;1u.2M=2o();E f=7.M.2L+c;41=f-1u.3v;3b=2J-1I.2A(41*2J/f);8(7.M.1e){1u.1e=7U(C(){E a=2o()-1u.2M+1u.3v,3b=1I.2A(a*2J/f);7.M.1e.4y.1g(7.M.1e.2q[0],3b)},7.M.1e.5w)}1u.M=7V(C(){8(7.M.1e){7.M.1e.4y.1g(7.M.1e.2q[0],2J)}8(7.M.4v){7.M.4v.1g($13,3b,41)}8(z.20){y.R(H('1H',F),b)}O{y.R(H(b,F),7.M)}},41);8(7.M.4t){7.M.4t.1g($13,3b,41)}G I});y.12(H('3f',F),C(e){e.1f();8(U.2d){U.2d=K;z.26=K;z.20=I;U.2M=2o();2P(U)}O{y.R(H('1H',F))}G I});y.12(H('V',F)+' '+H('Y',F),C(e,b,f,g,h){e.1f();8(z.2d||y.2f(':3r')){e.2e();G 18(F,'3w 4x 7W 3r: 2p 3e.')}E i=(Z(7.D.4z))?7.D.4z:7.D.L+1;8(i>J.P){e.2e();G 18(F,'2p 6R D ('+J.P+' P, '+i+' 6S): 2p 3e.')}E v=[b,f,g,h],t=['2g','27/2N','C','3c'],a=3d(v,t);b=a[0];f=a[1];g=a[2];h=a[3];E k=e.5x.17(F.3x.42.S);8(!1D(b)){b={}}8(1o(g)){b.3g=g}8(1l(h)){b.3y=h}b=$.1N(I,{},7[k],b);8(b.5y&&!b.5y.1g($13,k)){e.2e();G 18(F,'7X \"5y\" 7Y K.')}8(!Z(f)){8(7.D.1t!='*'){f='L'}O{E m=[f,b.D,7[k].D];1j(E a=0,l=m.S;a<l;a++){8(Z(m[a])||m[a]=='6T'||m[a]=='L'){f=m[a];16}}}1B(f){Q'6T':e.2e();G y.1Q(H(k+'7Z',F),[b,g]);16;Q'L':8(!7.D.T.1c&&7.D.1t=='*'){f=7.D.L}16}}8(U.2d){y.R(H('3f',F));y.R(H('3y',F),[k,[b,f,g]]);e.2e();G 18(F,'3w 80 3e.')}8(b.1C>0){8(z.20){8(b.3y){y.R(H('3y',F),[k,[b,f,g]])}e.2e();G 18(F,'3w 81 3e.')}}1u.3v=0;y.R(H('6U'+k,F),[b,f]);8(7.2n){E s=7.2n,c=[b,f];1j(E j=0,l=s.S;j<l;j++){E d=k;8(!s[j][2]){d=(d=='V')?'Y':'V'}8(!s[j][1]){c[0]=s[j][0].1Q('3o',['4A',d])}c[1]=f+s[j][3];s[j][0].R('3o',['6U'+d,c])}}G I});y.12(H('82',F),C(e,b,c){e.1f();E d=y.14();8(!7.1T){8(J.11==0){8(7.3z){y.R(H('Y',F),J.P-1)}G e.2e()}}1U(d,7);8(!Z(c)){8(7.D.T.1c){c=4B(d,7,J.P-1)}O 8(7.D.1t!='*'){E f=(Z(b.D))?b.D:5z(y,7);c=6V(d,7,J.P-1,f)}O{c=7.D.L}c=4C(c,7,b.D,$13)}8(!7.1T){8(J.P-c<J.11){c=J.P-J.11}}7.D.T.1Z=7.D.L;8(7.D.T.1c){E g=2x(32(d,7,J.P-c),7,7.D.T.2c,$13);8(7.D.L+c<=g&&c<J.P){c++;g=2x(32(d,7,J.P-c),7,7.D.T.2c,$13)}7.D.L=g}O 8(7.D.1t!='*'){E g=3U(d,7,J.P-c);7.D.L=2x(g,7,7.D.T.2c,$13)}1U(d,7,I);8(c==0){e.2e();G 18(F,'0 D 4D 1M: 2p 3e.')}18(F,'6W '+c+' D 5A.');J.11+=c;2h(J.11>=J.P){J.11-=J.P}8(!7.1T){8(J.11==0&&b.4E){b.4E.1g($13,'V')}8(!7.3z){3A(7,J.11,F)}}y.14().17(J.P-c,J.P).83(y);8(J.P<7.D.L+c){y.14().17(0,(7.D.L+c)-J.P).4F(I).43(y)}E d=y.14(),3h=6X(d,7,c),2i=6Y(d,7),1Y=d.1O(c-1),21=3h.3i(),2r=2i.3i();1U(d,7);E h=0,2B=0;8(7.1A){E p=4G(2i,7);h=p[0];2B=p[1]}E i=(h<0)?7.1i[7.d[3]]:0;E j=K,2Q=$();8(7.D.L<c){2Q=d.17(7.D.T.1Z,c);8(b.1V=='6Z'){E k=7.D[7.d['N']];j=2Q;1Y=2r;5B(j);7.D[7.d['N']]='1c'}}E l=K,3B=2R(d.17(0,c),7,'N'),2j=4H(4I(2i,7,I),7,!7.1R),3C=0,28={},4J={},2s={},2S={},4K={},2T={},5C={},2U=5D(b,7,c,3B);1B(b.1V){Q'1J':Q'1J-1w':3C=2R(d.17(0,7.D.L),7,'N');16}8(j){7.D[7.d['N']]=k}1U(d,7,I);8(2B>=0){1U(21,7,7.1i[7.d[1]])}8(h>=0){1U(1Y,7,7.1i[7.d[3]])}8(7.1A){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=h}2T[7.d['1n']]=-(3B-i);5C[7.d['1n']]=-(3C-i);4J[7.d['1n']]=2j[7.d['N']];E m=C(){},1P=C(){},1E=C(){},3D=C(){},2C=C(){},5E=C(){},1F=C(){},3E=C(){},1x=C(){},1y=C(){},1K=C(){};1B(b.1V){Q'3j':Q'1J':Q'1J-1w':Q'22':Q'22-1w':l=y.4F(I).43($1s);16}1B(b.1V){Q'3j':Q'22':Q'22-1w':l.14().17(0,c).2t();l.14().17(7.D.T.1Z).2t();16;Q'1J':Q'1J-1w':l.14().17(7.D.L).2t();l.X(5C);16}y.X(2T);U=44(2U,b.2k);28[7.d['1n']]=(7.1R)?7.1i[7.d[3]]:0;8(7[7.d['N']]=='1c'||7[7.d['1d']]=='1c'){m=C(){$1s.X(2j)};1P=C(){U.19.1b([$1s,2j])}}8(7.1R){8(2r.5F(1Y).S){2s[7.d['1S']]=1Y.1m('29');8(h<0){1Y.X(2s)}O{1F=C(){1Y.X(2s)};3E=C(){U.19.1b([1Y,2s])}}}1B(b.1V){Q'1J':Q'1J-1w':l.14().1O(c-1).X(2s);16}8(2r.5F(21).S){2S[7.d['1S']]=21.1m('29');1E=C(){21.X(2S)};3D=C(){U.19.1b([21,2S])}}8(2B>=0){4K[7.d['1S']]=2r.1m('29')+7.1i[7.d[1]];2C=C(){2r.X(4K)};5E=C(){U.19.1b([2r,4K])}}}1K=C(){y.X(28)};E n=7.D.L+c-J.P;1y=C(){8(n>0){y.14().17(J.P).2t();3h=$(y.14().17(J.P-(7.D.L-n)).3F().70(y.14().17(0,n).3F()))}5G(j);8(7.1R){E a=y.14().1O(7.D.L+c-1);a.X(7.d['1S'],a.1m('29'))}};E o=5H(3h,2Q,2i,c,'V',2U,2j);1x=C(){5I(y,l,b);z.20=K;2a.3g=45($13,b,'3g',o,2a);2D=5J(y,2D,F);8(!z.26){y.R(H('1H',F))}};z.20=I;1u=3s(1u);2a.3G=45($13,b,'3G',o,2a);1B(b.1V){Q'3Y':y.X(28);m();1E();2C();1F();1K();1y();1x();16;Q'1w':U.19.1b([y,{'1L':0},C(){m();1E();2C();1F();1K();1y();U=44(2U,b.2k);U.19.1b([y,{'1L':1},1x]);2P(U)}]);16;Q'3j':y.X({'1L':0});U.19.1b([l,{'1L':0}]);U.19.1b([y,{'1L':1},1x]);1P();1E();2C();1F();1K();1y();16;Q'1J':U.19.1b([l,28,C(){1E();2C();1F();1K();1y();1x()}]);1P();16;Q'1J-1w':U.19.1b([y,{'1L':0}]);U.19.1b([l,28,C(){y.X({'1L':1});1E();2C();1F();1K();1y();1x()}]);1P();16;Q'22':U.19.1b([l,4J,1x]);1P();1E();2C();1F();1K();1y();16;Q'22-1w':y.X({'1L':0});U.19.1b([y,{'1L':1}]);U.19.1b([l,4J,1x]);1P();1E();2C();1F();1K();1y();16;2y:U.19.1b([y,28,C(){1y();1x()}]);1P();3D();5E();3E();16}2P(U);5K(7.25,y,F);y.R(H('3H',F),[K,2j]);G I});y.12(H('84',F),C(e,c,d){e.1f();E f=y.14();8(!7.1T){8(J.11==7.D.L){8(7.3z){y.R(H('V',F),J.P-1)}G e.2e()}}1U(f,7);8(!Z(d)){8(7.D.1t!='*'){E g=(Z(c.D))?c.D:5z(y,7);d=71(f,7,0,g)}O{d=7.D.L}d=4C(d,7,c.D,$13)}E h=(J.11==0)?J.P:J.11;8(!7.1T){8(7.D.T.1c){E i=32(f,7,d),g=4B(f,7,h-1)}O{E i=7.D.L,g=7.D.L}8(d+i>h){d=h-g}}7.D.T.1Z=7.D.L;8(7.D.T.1c){E i=2x(5L(f,7,d,h),7,7.D.T.2c,$13);2h(7.D.L-d>=i&&d<J.P){d++;i=2x(5L(f,7,d,h),7,7.D.T.2c,$13)}7.D.L=i}O 8(7.D.1t!='*'){E i=3U(f,7,d);7.D.L=2x(i,7,7.D.T.2c,$13)}1U(f,7,I);8(d==0){e.2e();G 18(F,'0 D 4D 1M: 2p 3e.')}18(F,'6W '+d+' D 72.');J.11-=d;2h(J.11<0){J.11+=J.P}8(!7.1T){8(J.11==7.D.L&&c.4E){c.4E.1g($13,'Y')}8(!7.3z){3A(7,J.11,F)}}8(J.P<7.D.L+d){y.14().17(0,(7.D.L+d)-J.P).4F(I).43(y)}E f=y.14(),3h=73(f,7),2i=74(f,7,d),1Y=f.1O(d-1),21=3h.3i(),2r=2i.3i();1U(f,7);E j=0,2B=0;8(7.1A){E p=4G(2i,7);j=p[0];2B=p[1]}E k=K,2Q=$();8(7.D.T.1Z<d){2Q=f.17(7.D.T.1Z,d);8(c.1V=='6Z'){E l=7.D[7.d['N']];k=2Q;1Y=21;5B(k);7.D[7.d['N']]='1c'}}E m=K,3B=2R(f.17(0,d),7,'N'),2j=4H(4I(2i,7,I),7,!7.1R),3C=0,28={},4L={},2s={},2S={},2T={},2U=5D(c,7,d,3B);1B(c.1V){Q'22':Q'22-1w':3C=2R(f.17(0,7.D.T.1Z),7,'N');16}8(k){7.D[7.d['N']]=l}8(7.1A){8(7.1i[7.d[1]]<0){7.1i[7.d[1]]=0}}1U(f,7,I);1U(21,7,7.1i[7.d[1]]);8(7.1A){7.1i[7.d[1]]=2B;7.1i[7.d[3]]=j}2T[7.d['1n']]=(7.1R)?7.1i[7.d[3]]:0;E n=C(){},1P=C(){},1E=C(){},3D=C(){},1F=C(){},3E=C(){},1x=C(){},1y=C(){},1K=C(){};1B(c.1V){Q'3j':Q'1J':Q'1J-1w':Q'22':Q'22-1w':m=y.4F(I).43($1s);m.14().17(7.D.T.1Z).2t();16}1B(c.1V){Q'3j':Q'1J':Q'1J-1w':y.X('3X',1);m.X('3X',0);16}U=44(2U,c.2k);28[7.d['1n']]=-3B;4L[7.d['1n']]=-3C;8(j<0){28[7.d['1n']]+=j}8(7[7.d['N']]=='1c'||7[7.d['1d']]=='1c'){n=C(){$1s.X(2j)};1P=C(){U.19.1b([$1s,2j])}}8(7.1R){E o=2r.1m('29');8(2B>=0){o+=7.1i[7.d[1]]}2r.X(7.d['1S'],o);8(1Y.5F(21).S){2S[7.d['1S']]=21.1m('29')}1E=C(){21.X(2S)};3D=C(){U.19.1b([21,2S])};E q=1Y.1m('29');8(j>0){q+=7.1i[7.d[3]]}2s[7.d['1S']]=q;1F=C(){1Y.X(2s)};3E=C(){U.19.1b([1Y,2s])}}1K=C(){y.X(2T)};E r=7.D.L+d-J.P;1y=C(){8(r>0){y.14().17(J.P).2t()}E a=y.14().17(0,d).43(y).3i();8(r>0){2i=3I(f,7)}5G(k);8(7.1R){8(J.P<7.D.L+d){E b=y.14().1O(7.D.L-1);b.X(7.d['1S'],b.1m('29')+7.1i[7.d[3]])}a.X(7.d['1S'],a.1m('29'))}};E s=5H(3h,2Q,2i,d,'Y',2U,2j);1x=C(){y.X('3X',y.1m('5q').3X);5I(y,m,c);z.20=K;2a.3g=45($13,c,'3g',s,2a);2D=5J(y,2D,F);8(!z.26){y.R(H('1H',F))}};z.20=I;1u=3s(1u);2a.3G=45($13,c,'3G',s,2a);1B(c.1V){Q'3Y':y.X(28);n();1E();1F();1K();1y();1x();16;Q'1w':U.19.1b([y,{'1L':0},C(){n();1E();1F();1K();1y();U=44(2U,c.2k);U.19.1b([y,{'1L':1},1x]);2P(U)}]);16;Q'3j':y.X({'1L':0});U.19.1b([m,{'1L':0}]);U.19.1b([y,{'1L':1},1x]);1P();1E();1F();1K();1y();16;Q'1J':y.X(7.d['1n'],$1s[7.d['N']]());U.19.1b([y,2T,1x]);1P();1E();1F();1y();16;Q'1J-1w':y.X(7.d['1n'],$1s[7.d['N']]());U.19.1b([m,{'1L':0}]);U.19.1b([y,2T,1x]);1P();1E();1F();1y();16;Q'22':U.19.1b([m,4L,1x]);1P();1E();1F();1K();1y();16;Q'22-1w':y.X({'1L':0});U.19.1b([y,{'1L':1}]);U.19.1b([m,4L,1x]);1P();1E();1F();1K();1y();16;2y:U.19.1b([y,28,C(){1K();1y();1x()}]);1P();3D();3E();16}2P(U);5K(7.25,y,F);y.R(H('3H',F),[K,2j]);G I});y.12(H('3k',F),C(e,b,c,d,f,g,h){e.1f();E v=[b,c,d,f,g,h],t=['2N/27/2g','27','3c','2g','2N','C'],a=3d(v,t);f=a[3];g=a[4];h=a[5];b=3J(a[0],a[1],a[2],J,y);8(b==0){G K}8(!1D(f)){f=K}8(z.20){8(!1D(f)||f.1C>0){G K}}8(g!='V'&&g!='Y'){8(7.1T){g=(b<=J.P/2)?'Y':'V'}O{g=(J.11==0||J.11>b)?'Y':'V'}}8(g=='V'){b=J.P-b}y.R(H(g,F),[f,b,h]);G I});y.12(H('85',F),C(e,a,b){e.1f();E c=y.1Q(H('46',F));G y.1Q(H('5M',F),[c-1,a,'V',b])});y.12(H('86',F),C(e,a,b){e.1f();E c=y.1Q(H('46',F));G y.1Q(H('5M',F),[c+1,a,'Y',b])});y.12(H('5M',F),C(e,a,b,c,d){e.1f();8(!Z(a)){a=y.1Q(H('46',F))}E f=7.1a.D||7.D.L,1X=1I.2A(J.P/f)-1;8(a<0){a=1X}8(a>1X){a=0}G y.1Q(H('3k',F),[a*f,0,I,b,c,d])});y.12(H('75',F),C(e,s){e.1f();8(s){s=3J(s,0,I,J,y)}O{s=0}s+=J.11;8(s!=0){8(D.P>0){2h(s>J.P){s-=J.P}}y.87(y.14().17(s,J.P))}G I});y.12(H('2n',F),C(e,s){e.1f();8(s){s=5i(s)}O 8(7.2n){s=7.2n}O{G 18(F,'6q 88 4D 2n.')}E n=y.1Q(H('4m',F)),x=I;1j(E j=0,l=s.S;j<l;j++){8(!s[j][0].1Q(H('3k',F),[n,s[j][3],I])){x=K}}G x});y.12(H('3y',F),C(e,a,b){e.1f();8(1o(a)){a.1g($13,2D)}O 8(2V(a)){2D=a}O 8(!1G(a)){2D.1b([a,b])}G 2D});y.12(H('89',F),C(e,b,c,d,f){e.1f();E v=[b,c,d,f],t=['2N/2g','2N/27/2g','3c','27'],a=3d(v,t);b=a[0];c=a[1];d=a[2];f=a[3];8(1D(b)&&!2u(b)){b=$(b)}O 8(1p(b)){b=$(b)}8(!2u(b)||b.S==0){G 18(F,'2p a 5N 2g.')}8(1G(c)){c='4M'}4w(b,7);5r(b,7);E g=c,47='47';8(c=='4M'){8(d){8(J.11==0){c=J.P-1;47='76'}O{c=J.11;J.11+=b.S}8(c<0){c=0}}O{c=J.P-1;47='76'}}O{c=3J(c,f,d,J,y)}8(g!='4M'&&!d){8(c<J.11){J.11+=b.S}}8(J.11>=J.P){J.11-=J.P}E h=y.14().1O(c);8(h.S){h[47](b)}O{y.77(b)}J.P=y.14().S;y.R(H('4N',F));y.R(H('5O',F));G I});y.12(H('78',F),C(e,c,d,f){e.1f();E v=[c,d,f],t=['2N/27/2g','3c','27'],a=3d(v,t);c=a[0];d=a[1];f=a[2];E g=K;8(c 2W $&&c.S>1){h=$();c.1W(C(i,a){E b=y.R(H('78',F),[$(1k),d,f]);8(b)h=h.8a(b)});G h}8(1G(c)||c=='4M'){h=y.14().3i()}O{c=3J(c,f,d,J,y);E h=y.14().1O(c);8(h.S){8(c<J.11)J.11-=h.S}}8(h&&h.S){h.8b();J.P=y.14().S;y.R(H('4N',F))}G h});y.12(H('3G',F)+' '+H('3g',F),C(e,a){e.1f();E b=e.5x.17(F.3x.42.S);8(2V(a)){2a[b]=a}8(1o(a)){2a[b].1b(a)}G 2a[b]});y.12(H('4m',F),C(e,a){e.1f();8(J.11==0){E b=0}O{E b=J.P-J.11}8(1o(a)){a.1g($13,b)}G b});y.12(H('46',F),C(e,a){e.1f();E b=7.1a.D||7.D.L,1X=1I.2A(J.P/b-1),2l;8(J.11==0){2l=0}O 8(J.11<J.P%b){2l=0}O 8(J.11==b&&!7.1T){2l=1X}O{2l=1I.79((J.P-J.11)/b)}8(2l<0){2l=0}8(2l>1X){2l=1X}8(1o(a)){a.1g($13,2l)}G 2l});y.12(H('8c',F),C(e,a){e.1f();E b=3I(y.14(),7);8(1o(a)){a.1g($13,b)}G b});y.12(H('17',F),C(e,f,l,b){e.1f();8(J.P==0){G K}E v=[f,l,b],t=['27','27','C'],a=3d(v,t);f=(Z(a[0]))?a[0]:0;l=(Z(a[1]))?a[1]:J.P;b=a[2];f+=J.11;l+=J.11;8(D.P>0){2h(f>J.P){f-=J.P}2h(l>J.P){l-=J.P}2h(f<0){f+=J.P}2h(l<0){l+=J.P}}E c=y.14(),$i;8(l>f){$i=c.17(f,l)}O{$i=$(c.17(f,J.P).3F().70(c.17(0,l).3F()))}8(1o(b)){b.1g($13,$i)}G $i});y.12(H('26',F)+' '+H('2d',F)+' '+H('20',F),C(e,a){e.1f();E b=e.5x.17(F.3x.42.S),5P=z[b];8(1o(a)){a.1g($13,5P)}G 5P});y.12(H('4A',F),C(e,a,b,c){e.1f();E d=K;8(1o(a)){a.1g($13,7)}O 8(1D(a)){31=$.1N(I,{},31,a);8(b!==K)d=I;O 7=$.1N(I,{},7,a)}O 8(!1G(a)){8(1o(b)){E f=4O('7.'+a);8(1G(f)){f=''}b.1g($13,f)}O 8(!1G(b)){8(2X c!=='3c')c=I;4O('31.'+a+' = b');8(c!==K)d=I;O 4O('7.'+a+' = b')}O{G 4O('7.'+a)}}8(d){1U(y.14(),7);y.57(31);y.5Q();E g=4P(y,7);y.R(H('3H',F),[I,g])}G 7});y.12(H('5O',F),C(e,a,b){e.1f();8(1G(a)){a=$('8d')}O 8(1p(a)){a=$(a)}8(!2u(a)||a.S==0){G 18(F,'2p a 5N 2g.')}8(!1p(b)){b='a.6p'}a.8e(b).1W(C(){E h=1k.7a||'';8(h.S>0&&y.14().7b($(h))!=-1){$(1k).23('5R').5R(C(e){e.2E();y.R(H('3k',F),h)})}});G I});y.12(H('3H',F),C(e,b,c){e.1f();8(!7.1a.1z){G}E d=7.1a.D||7.D.L,4Q=1I.2A(J.P/d);8(b){8(7.1a.3K){7.1a.1z.14().2t();7.1a.1z.1W(C(){1j(E a=0;a<4Q;a++){E i=y.14().1O(3J(a*d,0,I,J,y));$(1k).77(7.1a.3K.1g(i[0],a+1))}})}7.1a.1z.1W(C(){$(1k).14().23(7.1a.3L).1W(C(a){$(1k).12(7.1a.3L,C(e){e.2E();y.R(H('3k',F),[a*d,-7.1a.4R,I,7.1a])})})})}E f=y.1Q(H('46',F))+7.1a.4R;8(f>=4Q){f=0}8(f<0){f=4Q-1}7.1a.1z.1W(C(){$(1k).14().2O(2z('7c',F)).1O(f).36(2z('7c',F))});G I});y.12(H('4N',F),C(e){E a=7.D.L,2F=y.14(),2w=5b($1s,7,'N');J.P=2F.S;7.4p=5c(7,2w);8(z.4q){7[7.d['N']]=4r(2w,z.4q)}8(7.2m){7.D.N=7.D.3M.N;7.D.1d=7.D.3M.1d;7=5e(7,2F,2w);a=7.D.L;5s(7,2F)}O 8(7.D.T.1c){a=32(2F,7,0)}O 8(7.D.1t!='*'){a=3U(2F,7,0)}8(!7.1T&&J.11!=0&&a>J.11){8(7.D.T.1c){E b=4B(2F,7,J.11)-J.11}O 8(7.D.1t!='*'){E b=7d(2F,7,J.11)-J.11}O{E b=7.D.L-J.11}18(F,'8f 8g-1T: 8h '+b+' D 5A.');y.R(H('V',F),b)}7.D.L=2x(a,7,7.D.T.2c,$13);7.D.T.1Z=7.D.L;7=5g(7,2F);E c=4P(y,7);y.R(H('3H',F),[I,c]);4S(7,J.P,F);3A(7,J.11,F);G c});y.12(H('4n',F),C(e,a){e.1f();1u=3s(1u);y.1m('56',K);y.R(H('5v',F));8(a){y.R(H('75',F))}1U(y.14(),7);8(7.2m){y.14().1W(C(){$(1k).X($(1k).1m('7e'))})}y.X(y.1m('5q'));y.5t();y.5S();$1s.8i(y);G I});y.12(H('18',F),C(e){18(F,'3w N: '+7.N);18(F,'3w 1d: '+7.1d);18(F,'7f 8j: '+7.D.N);18(F,'7f 8k: '+7.D.1d);18(F,'48 4a D L: '+7.D.L);8(7.M.1H){18(F,'48 4a D 5T 8l: '+7.M.D)}8(7.V.W){18(F,'48 4a D 5T 5A: '+7.V.D)}8(7.Y.W){18(F,'48 4a D 5T 72: '+7.Y.D)}G F.18});y.12('3o',C(e,n,o){e.1f();G y.1Q(H(n,F),o)})};y.5t=C(){y.23(H('',F));y.23(H('',F,K));y.23('3o')};y.5Q=C(){y.5S();4S(7,J.P,F);3A(7,J.11,F);8(7.M.2G){E b=3N(7.M.2G);$1s.12(H('4T',F,K),C(){y.R(H('3a',F),b)}).12(H('4U',F,K),C(){y.R(H('3f',F))})}8(7.M.W){7.M.W.12(H(7.M.3L,F,K),C(e){e.2E();E a=K,b=2H;8(z.26){a='1H'}O 8(7.M.4V){a='3a';b=3N(7.M.4V)}8(a){y.R(H(a,F),b)}})}8(7.V.W){7.V.W.12(H(7.V.3L,F,K),C(e){e.2E();y.R(H('V',F))});8(7.V.2G){E b=3N(7.V.2G);7.V.W.12(H('4T',F,K),C(){y.R(H('3a',F),b)}).12(H('4U',F,K),C(){y.R(H('3f',F))})}}8(7.Y.W){7.Y.W.12(H(7.Y.3L,F,K),C(e){e.2E();y.R(H('Y',F))});8(7.Y.2G){E b=3N(7.Y.2G);7.Y.W.12(H('4T',F,K),C(){y.R(H('3a',F),b)}).12(H('4U',F,K),C(){y.R(H('3f',F))})}}8(7.1a.1z){8(7.1a.2G){E b=3N(7.1a.2G);7.1a.1z.12(H('4T',F,K),C(){y.R(H('3a',F),b)}).12(H('4U',F,K),C(){y.R(H('3f',F))})}}8(7.V.2Y||7.Y.2Y){$(4b).12(H('7g',F,K,I,I),C(e){E k=e.7h;8(k==7.Y.2Y){e.2E();y.R(H('Y',F))}8(k==7.V.2Y){e.2E();y.R(H('V',F))}})}8(7.1a.4W){$(4b).12(H('7g',F,K,I,I),C(e){E k=e.7h;8(k>=49&&k<58){k=(k-49)*7.D.L;8(k<=J.P){e.2E();y.R(H('3k',F),[k,0,I,7.1a])}}})}8(7.V.4X||7.Y.4X){2K('4c 4d-7i','4c 8m-7i');8($.1r.4d){E c=(7.V.4X)?C(){y.R(H('V',F))}:2H,4e=(7.Y.4X)?C(){y.R(H('Y',F))}:2H;8(4e||4e){8(!z.4d){z.4d=I;E d={'8n':30,'8o':30,'8p':I};1B(7.2b){Q'4o':Q'5U':d.8q=c;d.8r=4e;16;2y:d.8s=4e;d.8t=c}$1s.4d(d)}}}}8($.1r.1q){E f='8u'8v 3l;8((f&&7.1q.4f)||(!f&&7.1q.5V)){E g=$.1N(I,{},7.V,7.1q),7j=$.1N(I,{},7.Y,7.1q),5W=C(){y.R(H('V',F),[g])},5X=C(){y.R(H('Y',F),[7j])};1B(7.2b){Q'4o':Q'5U':7.1q.2I.8w=5X;7.1q.2I.8x=5W;16;2y:7.1q.2I.8y=5X;7.1q.2I.8z=5W}8(z.1q){y.1q('4n')}$1s.1q(7.1q.2I);$1s.X('7k','8A');z.1q=I}}8($.1r.1h){8(7.V.1h){2K('7l V.1h 7m','4c 1h 4A 2g');7.V.1h=2H;7.1h={D:5Y(7.V.1h)}}8(7.Y.1h){2K('7l Y.1h 7m','4c 1h 4A 2g');7.Y.1h=2H;7.1h={D:5Y(7.Y.1h)}}8(7.1h){E h=$.1N(I,{},7.V,7.1h),7n=$.1N(I,{},7.Y,7.1h);8(z.1h){$1s.23(H('1h',F,K))}$1s.12(H('1h',F,K),C(e,a){e.2E();8(a>0){y.R(H('V',F),[h])}O{y.R(H('Y',F),[7n])}});z.1h=I}}8(7.M.1H){y.R(H('1H',F),7.M.5Z)}8(z.6B){E i=$(3l),61=0,62=0;i.12(H('8B',F,K,I,I),C(e){E a=i.N(),63=i.1d();8(a!=61||63!=62){y.R(H('5v',F));8(7.M.64&&!z.26){y.R(H('1H',F))}1U(y.14(),7);y.R(H('4N',F));61=a;62=63}})}};y.5S=C(){E a=H('',F),3O=H('',F,K);65=H('',F,K,I,I);$(4b).23(65);$(3l).23(65);$1s.23(3O);8(7.M.W){7.M.W.23(3O)}8(7.V.W){7.V.W.23(3O)}8(7.Y.W){7.Y.W.23(3O)}8(7.1a.1z){7.1a.1z.23(3O);8(7.1a.3K){7.1a.1z.14().2t()}}8(z.1q){y.1q('4n');$1s.X('7k','2y');z.1q=K}8(z.1h){z.1h=K}4S(7,'4g',F);3A(7,'2O',F)};8(1l(w)){w={'18':w}}E z={'2b':'Y','26':I,'20':K,'2d':K,'1h':K,'1q':K},J={'P':y.14().S,'11':0},1u={'M':2H,'1e':2H,'2M':2o(),'3v':0},U={'2d':K,'1C':0,'2M':0,'2k':'','19':[]},2a={'3G':[],'3g':[]},2D=[],F=$.1N(I,{},$.1r.1v.7o,w),7={},31=$.1N(I,{},u),$1s=y.8C('<'+F.66.54+' 8D=\"'+F.66.7p+'\" />').68();F.4l=y.4l;F.3S=$.1r.1v.3S++;y.57(31,I,55);y.6J();y.6P();y.5Q();8(2V(7.D.3m)){E A=7.D.3m}O{E A=[];8(7.D.3m!=0){A.1b(7.D.3m)}}8(7.25){A.8E(4h(7q(7.25),10))}8(A.S>0){1j(E a=0,l=A.S;a<l;a++){E s=A[a];8(s==0){69}8(s===I){s=3l.8F.7a;8(s.S<1){69}}O 8(s==='7r'){s=1I.4i(1I.7r()*J.P)}8(y.1Q(H('3k',F),[s,0,I,{1V:'3Y'}])){16}}}E B=4P(y,7),7s=3I(y.14(),7);8(7.7t){7.7t.1g($13,{'N':B.N,'1d':B.1d,'D':7s})}y.R(H('3H',F),[I,B]);y.R(H('5O',F));8(F.18){y.R(H('18',F))}G y};$.1r.1v.3S=1;$.1r.1v.5a={'2n':K,'3z':I,'1T':I,'2m':K,'2b':'1n','D':{'3m':0},'1M':{'2k':'8G','1C':6E,'2G':K,'3L':'5R','3y':K}};$.1r.1v.7o={'18':K,'3x':{'42':'','7u':'8H'},'66':{'54':'8I','7p':'8J'},'6a':{}};$.1r.1v.7v=C(a){G'<a 8K=\"#\"><7w>'+a+'<\/7w><\/a>'};$.1r.1v.7x=C(a){$(1k).X('N',a+'%')};$.1r.1v.25={3F:C(n){n+='=';E b=4b.25.3P(';');1j(E a=0,l=b.S;a<l;a++){E c=b[a];2h(c.8L(0)==' '){c=c.17(1)}8(c.3Q(n)==0){G c.17(n.S)}}G 0},6b:C(n,v,d){E e=\"\";8(d){E a=6c 7y();a.8M(a.2o()+(d*24*60*60*8N));e=\"; 8O=\"+a.8P()}4b.25=n+'='+v+e+'; 8Q=/'},2t:C(n){$.1r.1v.25.6b(n,\"\",-1)}};C 44(d,e){G{19:[],1C:d,8R:d,2k:e,2M:2o()}}C 2P(s){8(1D(s.3t)){2P(s.3t)}1j(E a=0,l=s.19.S;a<l;a++){E b=s.19[a];8(!b){69}8(b[3]){b[0].5u()}b[0].8S(b[1],{8T:b[2],1C:s.1C,2k:s.2k})}8(1D(s.3u)){2P(s.3u)}}C 3Z(s,c){8(!1l(c)){c=I}8(1D(s.3t)){3Z(s.3t,c)}1j(E a=0,l=s.19.S;a<l;a++){E b=s.19[a];b[0].5u(I);8(c){b[0].X(b[1]);8(1o(b[2])){b[2]()}}}8(1D(s.3u)){3Z(s.3u,c)}}C 5I(a,b,o){8(b){b.2t()}1B(o.1V){Q'1w':Q'3j':Q'1J-1w':Q'22-1w':a.X('1t','');16}}C 45(d,o,b,a,c){8(o[b]){o[b].1g(d,a)}8(c[b].S){1j(E i=0,l=c[b].S;i<l;i++){c[b][i].1g(d,a)}}G[]}C 5J(a,q,c){8(q.S){a.R(H(q[0][0],c),q[0][1]);q.8U()}G q}C 5B(b){b.1W(C(){E a=$(1k);a.1m('7z',a.2f(':3r')).4g()})}C 5G(b){8(b){b.1W(C(){E a=$(1k);8(!a.1m('7z')){a.4j()}})}}C 3s(t){8(t.M){8V(t.M)}8(t.1e){8W(t.1e)}G t}C 5H(a,b,c,d,e,f,g){G{'N':g.N,'1d':g.1d,'D':{'1Z':a,'8X':b,'6c':c,'L':c},'1M':{'D':d,'2b':e,'1C':f}}}C 5D(a,o,b,c){E d=a.1C;8(a.1V=='3Y'){G 0}8(d=='M'){d=o.1M.1C/o.1M.D*b}O 8(d<10){d=c/d}8(d<1){G 0}8(a.1V=='1w'){d=d/2}G 1I.79(d)}C 4S(o,t,c){E a=(Z(o.D.4z))?o.D.4z:o.D.L+1;8(t=='4j'||t=='4g'){E f=t}O 8(a>t){18(c,'2p 6R D ('+t+' P, '+a+' 6S): 8Y 8Z.');E f='4g'}O{E f='4j'}E s=(f=='4j')?'2O':'36',h=2z('3r',c);8(o.M.W){o.M.W[f]()[s](h)}8(o.V.W){o.V.W[f]()[s](h)}8(o.Y.W){o.Y.W[f]()[s](h)}8(o.1a.1z){o.1a.1z[f]()[s](h)}}C 3A(o,f,c){8(o.1T||o.3z)G;E a=(f=='2O'||f=='36')?f:K,4Y=2z('90',c);8(o.M.W&&a){o.M.W[a](4Y)}8(o.V.W){E b=a||(f==0)?'36':'2O';o.V.W[b](4Y)}8(o.Y.W){E b=a||(f==o.D.L)?'36':'2O';o.Y.W[b](4Y)}}C 3R(a,b){8(1o(b)){b=b.1g(a)}O 8(1G(b)){b={}}G b}C 6r(a,b){b=3R(a,b);8(Z(b)){b={'L':b}}O 8(b=='1c'){b={'L':b,'N':b,'1d':b}}O 8(!1D(b)){b={}}G b}C 6s(a,b){b=3R(a,b);8(Z(b)){8(b<=50){b={'D':b}}O{b={'1C':b}}}O 8(1p(b)){b={'2k':b}}O 8(!1D(b)){b={}}G b}C 4Z(a,b){b=3R(a,b);8(1p(b)){E c=6d(b);8(c==-1){b=$(b)}O{b=c}}G b}C 6t(a,b){b=4Z(a,b);8(2u(b)){b={'W':b}}O 8(1l(b)){b={'1H':b}}O 8(Z(b)){b={'2L':b}}8(b.1e){8(1p(b.1e)||2u(b.1e)){b.1e={'2q':b.1e}}}G b}C 6F(a,b){8(1o(b.W)){b.W=b.W.1g(a)}8(1p(b.W)){b.W=$(b.W)}8(!1l(b.1H)){b.1H=I}8(!Z(b.5Z)){b.5Z=0}8(1G(b.4V)){b.4V=I}8(!1l(b.64)){b.64=I}8(!Z(b.2L)){b.2L=(b.1C<10)?91:b.1C*5}8(b.1e){8(1o(b.1e.2q)){b.1e.2q=b.1e.2q.1g(a)}8(1p(b.1e.2q)){b.1e.2q=$(b.1e.2q)}8(b.1e.2q){8(!1o(b.1e.4y)){b.1e.4y=$.1r.1v.7x}8(!Z(b.1e.5w)){b.1e.5w=50}}O{b.1e=K}}G b}C 59(a,b){b=4Z(a,b);8(2u(b)){b={'W':b}}O 8(Z(b)){b={'2Y':b}}G b}C 5h(a,b){8(1o(b.W)){b.W=b.W.1g(a)}8(1p(b.W)){b.W=$(b.W)}8(1p(b.2Y)){b.2Y=6d(b.2Y)}G b}C 6u(a,b){b=4Z(a,b);8(2u(b)){b={'1z':b}}O 8(1l(b)){b={'4W':b}}G b}C 6G(a,b){8(1o(b.1z)){b.1z=b.1z.1g(a)}8(1p(b.1z)){b.1z=$(b.1z)}8(!Z(b.D)){b.D=K}8(!1l(b.4W)){b.4W=K}8(!1o(b.3K)&&!51(b.3K)){b.3K=$.1r.1v.7v}8(!Z(b.4R)){b.4R=0}G b}C 6v(a,b){8(1o(b)){b=b.1g(a)}8(1G(b)){b={'4f':K}}8(3p(b)){b={'4f':b}}O 8(Z(b)){b={'D':b}}G b}C 6H(a,b){8(!1l(b.4f)){b.4f=I}8(!1l(b.5V)){b.5V=K}8(!1D(b.2I)){b.2I={}}8(!1l(b.2I.7A)){b.2I.7A=K}G b}C 6w(a,b){8(1o(b)){b=b.1g(a)}8(3p(b)){b={}}O 8(Z(b)){b={'D':b}}O 8(1G(b)){b=K}G b}C 6I(a,b){G b}C 3J(a,b,c,d,e){8(1p(a)){a=$(a,e)}8(1D(a)){a=$(a,e)}8(2u(a)){a=e.14().7b(a);8(!1l(c)){c=K}}O{8(!1l(c)){c=I}}8(!Z(a)){a=0}8(!Z(b)){b=0}8(c){a+=d.11}a+=b;8(d.P>0){2h(a>=d.P){a-=d.P}2h(a<0){a+=d.P}}G a}C 4B(i,o,s){E t=0,x=0;1j(E a=s;a>=0;a--){E j=i.1O(a);t+=(j.2f(':L'))?j[o.d['2v']](I):0;8(t>o.4p){G x}8(a==0){a=i.S}x++}}C 7d(i,o,s){G 6e(i,o.D.1t,o.D.T.4s,s)}C 6V(i,o,s,m){G 6e(i,o.D.1t,m,s)}C 6e(i,f,m,s){E t=0,x=0;1j(E a=s,l=i.S;a>=0;a--){x++;8(x==l){G x}E j=i.1O(a);8(j.2f(f)){t++;8(t==m){G x}}8(a==0){a=l}}}C 5z(a,o){G o.D.T.4s||a.14().17(0,o.D.L).1t(o.D.1t).S}C 32(i,o,s){E t=0,x=0;1j(E a=s,l=i.S-1;a<=l;a++){E j=i.1O(a);t+=(j.2f(':L'))?j[o.d['2v']](I):0;8(t>o.4p){G x}x++;8(x==l+1){G x}8(a==l){a=-1}}}C 5L(i,o,s,l){E v=32(i,o,s);8(!o.1T){8(s+v>l){v=l-s}}G v}C 3U(i,o,s){G 6f(i,o.D.1t,o.D.T.4s,s,o.1T)}C 71(i,o,s,m){G 6f(i,o.D.1t,m+1,s,o.1T)-1}C 6f(i,f,m,s,c){E t=0,x=0;1j(E a=s,l=i.S-1;a<=l;a++){x++;8(x>=l){G x}E j=i.1O(a);8(j.2f(f)){t++;8(t==m){G x}}8(a==l){a=-1}}}C 3I(i,o){G i.17(0,o.D.L)}C 6X(i,o,n){G i.17(n,o.D.T.1Z+n)}C 6Y(i,o){G i.17(0,o.D.L)}C 73(i,o){G i.17(0,o.D.T.1Z)}C 74(i,o,n){G i.17(n,o.D.L+n)}C 4w(i,o,d){8(o.1R){8(!1p(d)){d='29'}i.1W(C(){E j=$(1k),m=4h(j.X(o.d['1S']),10);8(!Z(m)){m=0}j.1m(d,m)})}}C 1U(i,o,m){8(o.1R){E x=(1l(m))?m:K;8(!Z(m)){m=0}4w(i,o,'7B');i.1W(C(){E j=$(1k);j.X(o.d['1S'],((x)?j.1m('7B'):m+j.1m('29')))})}}C 5r(i,o){8(o.2m){i.1W(C(){E j=$(1k),s=5n(j,['N','1d']);j.1m('7e',s)})}}C 5s(o,b){E c=o.D.L,7C=o.D[o.d['N']],6g=o[o.d['1d']],7D=3T(6g);b.1W(C(){E a=$(1k),6h=7C-7E(a,o,'92');a[o.d['N']](6h);8(7D){a[o.d['1d']](4r(6h,6g))}})}C 4P(a,o){E b=a.68(),$i=a.14(),$v=3I($i,o),52=4H(4I($v,o,I),o,K);b.X(52);8(o.1R){E p=o.1i,r=p[o.d[1]];8(o.1A&&r<0){r=0}E c=$v.3i();c.X(o.d['1S'],c.1m('29')+r);a.X(o.d['3q'],p[o.d[0]]);a.X(o.d['1n'],p[o.d[3]])}a.X(o.d['N'],52[o.d['N']]+(2R($i,o,'N')*2));a.X(o.d['1d'],6i($i,o,'1d'));G 52}C 4I(i,o,a){G[2R(i,o,'N',a),6i(i,o,'1d',a)]}C 6i(i,o,a,b){8(!1l(b)){b=K}8(Z(o[o.d[a]])&&b){G o[o.d[a]]}8(Z(o.D[o.d[a]])){G o.D[o.d[a]]}a=(a.6j().3Q('N')>-1)?'2v':'3n';G 4k(i,o,a)}C 4k(i,o,b){E s=0;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);E m=(j.2f(':L'))?j[o.d[b]](I):0;8(s<m){s=m}}G s}C 2R(i,o,b,c){8(!1l(c)){c=K}8(Z(o[o.d[b]])&&c){G o[o.d[b]]}8(Z(o.D[o.d[b]])){G o.D[o.d[b]]*i.S}E d=(b.6j().3Q('N')>-1)?'2v':'3n',s=0;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);s+=(j.2f(':L'))?j[o.d[d]](I):0}G s}C 5b(a,o,d){E b=a.2f(':L');8(b){a.4g()}E s=a.68()[o.d[d]]();8(b){a.4j()}G s}C 5c(o,a){G(Z(o[o.d['N']]))?o[o.d['N']]:a}C 6k(i,o,b){E s=K,v=K;1j(E a=0,l=i.S;a<l;a++){E j=i.1O(a);E c=(j.2f(':L'))?j[o.d[b]](I):0;8(s===K){s=c}O 8(s!=c){v=I}8(s==0){v=I}}G v}C 7E(i,o,d){G i[o.d['93'+d]](I)-i[o.d[d.6j()]]()}C 4r(s,o){8(3T(o)){o=4h(o.17(0,-1),10);8(!Z(o)){G s}s*=o/2J}G s}C H(n,c,a,b,d){8(!1l(a)){a=I}8(!1l(b)){b=I}8(!1l(d)){d=K}8(a){n=c.3x.42+n}8(b){n=n+'.'+c.3x.7u}8(b&&d){n+=c.3S}G n}C 2z(n,c){G(1p(c.6a[n]))?c.6a[n]:n}C 4H(a,o,p){8(!1l(p)){p=I}E b=(o.1R&&p)?o.1i:[0,0,0,0];E c={};c[o.d['N']]=a[0]+b[1]+b[3];c[o.d['1d']]=a[1]+b[0]+b[2];G c}C 3d(c,d){E e=[];1j(E a=0,7F=c.S;a<7F;a++){1j(E b=0,7G=d.S;b<7G;b++){8(d[b].3Q(2X c[a])>-1&&1G(e[b])){e[b]=c[a];16}}}G e}C 6D(p){8(1G(p)){G[0,0,0,0]}8(Z(p)){G[p,p,p,p]}8(1p(p)){p=p.3P('94').7H('').3P('95').7H('').3P(' ')}8(!2V(p)){G[0,0,0,0]}1j(E i=0;i<4;i++){p[i]=4h(p[i],10)}1B(p.S){Q 0:G[0,0,0,0];Q 1:G[p[0],p[0],p[0],p[0]];Q 2:G[p[0],p[1],p[0],p[1]];Q 3:G[p[0],p[1],p[2],p[1]];2y:G[p[0],p[1],p[2],p[3]]}}C 4G(a,o){E x=(Z(o[o.d['N']]))?1I.2A(o[o.d['N']]-2R(a,o,'N')):0;1B(o.1A){Q'1n':G[0,x];Q'35':G[x,0];Q'5d':2y:G[1I.2A(x/2),1I.4i(x/2)]}}C 6x(o){E a=[['N','7I','2v','1d','7J','3n','1n','3q','1S',0,1,2,3],['1d','7J','3n','N','7I','2v','3q','1n','5o',3,2,1,0]];E b=a[0].S,7K=(o.2b=='35'||o.2b=='1n')?0:1;E c={};1j(E d=0;d<b;d++){c[a[0][d]]=a[7K][d]}G c}C 4C(x,o,a,b){E v=x;8(1o(a)){v=a.1g(b,v)}O 8(1p(a)){E p=a.3P('+'),m=a.3P('-');8(m.S>p.S){E c=I,6l=m[0],2Z=m[1]}O{E c=K,6l=p[0],2Z=p[1]}1B(6l){Q'96':v=(x%2==1)?x-1:x;16;Q'97':v=(x%2==0)?x-1:x;16;2y:v=x;16}2Z=4h(2Z,10);8(Z(2Z)){8(c){2Z=-2Z}v+=2Z}}8(!Z(v)||v<1){v=1}G v}C 2x(x,o,a,b){G 6m(4C(x,o,a,b),o.D.T)}C 6m(v,i){8(Z(i.34)&&v<i.34){v=i.34}8(Z(i.1X)&&v>i.1X){v=i.1X}8(v<1){v=1}G v}C 5i(s){8(!2V(s)){s=[[s]]}8(!2V(s[0])){s=[s]}1j(E j=0,l=s.S;j<l;j++){8(1p(s[j][0])){s[j][0]=$(s[j][0])}8(!1l(s[j][1])){s[j][1]=I}8(!1l(s[j][2])){s[j][2]=I}8(!Z(s[j][3])){s[j][3]=0}}G s}C 6d(k){8(k=='35'){G 39}8(k=='1n'){G 37}8(k=='4o'){G 38}8(k=='5U'){G 40}G-1}C 5K(n,a,c){8(n){E v=a.1Q(H('4m',c));$.1r.1v.25.6b(n,v)}}C 7q(n){E c=$.1r.1v.25.3F(n);G(c=='')?0:c}C 5n(a,b){E c={},53;1j(E p=0,l=b.S;p<l;p++){53=b[p];c[53]=a.X(53)}G c}C 6y(a,b,c,d){8(!1D(a.T)){a.T={}}8(!1D(a.3M)){a.3M={}}8(a.3m==0&&Z(d)){a.3m=d}8(1D(a.L)){a.T.34=a.L.34;a.T.1X=a.L.1X;a.L=K}O 8(1p(a.L)){8(a.L=='1c'){a.T.1c=I}O{a.T.2c=a.L}a.L=K}O 8(1o(a.L)){a.T.2c=a.L;a.L=K}8(!1p(a.1t)){a.1t=(c.1t(':3r').S>0)?':L':'*'}8(!a[b.d['N']]){8(b.2m){18(I,'7L a '+b.d['N']+' 1j 4c D!');a[b.d['N']]=4k(c,b,'2v')}O{a[b.d['N']]=(6k(c,b,'2v'))?'1c':c[b.d['2v']](I)}}8(!a[b.d['1d']]){a[b.d['1d']]=(6k(c,b,'3n'))?'1c':c[b.d['3n']](I)}a.3M.N=a.N;a.3M.1d=a.1d;G a}C 6C(a,b){8(a.D[a.d['N']]=='1c'){a.D.T.1c=I}8(!a.D.T.1c){8(Z(a[a.d['N']])){a.D.L=1I.4i(a[a.d['N']]/a.D[a.d['N']])}O{a.D.L=1I.4i(b/a.D[a.d['N']]);a[a.d['N']]=a.D.L*a.D[a.d['N']];8(!a.D.T.2c){a.1A=K}}8(a.D.L=='98'||a.D.L<1){18(I,'2p a 5N 27 4a L D: 7L 4D \"1c\".');a.D.T.1c=I}}G a}C 6z(a,b,c){8(a=='M'){a=4k(c,b,'2v')}G a}C 6A(a,b,c){8(a=='M'){a=4k(c,b,'3n')}8(!a){a=b.D[b.d['1d']]}G a}C 5g(o,a){E p=4G(3I(a,o),o);o.1i[o.d[1]]=p[1];o.1i[o.d[3]]=p[0];G o}C 5e(o,a,b){E c=6m(1I.2A(o[o.d['N']]/o.D[o.d['N']]),o.D.T);8(c>a.S){c=a.S}E d=1I.4i(o[o.d['N']]/c);o.D.L=c;o.D[o.d['N']]=d;o[o.d['N']]=c*d;G o}C 3N(p){8(1p(p)){E i=(p.3Q('99')>-1)?I:K,r=(p.3Q('3f')>-1)?I:K}O{E i=r=K}G[i,r]}C 5Y(a){G(Z(a))?a:2H}C 6n(a){G(a===2H)}C 1G(a){G(6n(a)||2X a=='7M'||a===''||a==='7M')}C 2V(a){G(a 2W 9a)}C 2u(a){G(a 2W 7N)}C 1D(a){G((a 2W 9b||2X a=='2g')&&!6n(a)&&!2u(a)&&!2V(a))}C Z(a){G((a 2W 48||2X a=='27')&&!9c(a))}C 1p(a){G((a 2W 9d||2X a=='2N')&&!1G(a)&&!3p(a)&&!51(a))}C 1o(a){G(a 2W 9e||2X a=='C')}C 1l(a){G(a 2W 9f||2X a=='3c'||3p(a)||51(a))}C 3p(a){G(a===I||a==='I')}C 51(a){G(a===K||a==='K')}C 3T(x){G(1p(x)&&x.17(-1)=='%')}C 2o(){G 6c 7y().2o()}C 2K(o,n){18(I,o+' 2f 9g, 9h 1j 9i 9j 9k 9l. 9m '+n+' 9n.')}C 18(d,m){8(1D(d)){E s=' ('+d.4l+')';d=d.18}O{E s=''}8(!d){G K}8(1p(m)){m='1v'+s+': '+m}O{m=['1v'+s+':',m]}8(3l.6o&&3l.6o.7O){3l.6o.7O(m)}G K}$.1N($.2k,{'9o':C(t){E a=t*t;G t*(-a*t+4*a-6*t+4)},'9p':C(t){G t*(4*t*t-9*t+6)},'9q':C(t){E a=t*t;G t*(33*a*a-9r*a*t+9s*a-67*t+15)}})})(7N);",62,587,"|||||||opts|if||||||||||||||||||||||||||||||function|items|var|conf|return|cf_e|true|itms|false|visible|auto|width|else|total|case|trigger|length|visibleConf|scrl|prev|button|css|next|is_number||first|bind|tt0|children||break|slice|debug|anims|pagination|push|variable|height|progress|stopPropagation|call|mousewheel|padding|for|this|is_boolean|data|left|is_function|is_string|swipe|fn|wrp|filter|tmrs|carouFredSel|fade|_onafter|_moveitems|container|align|switch|duration|is_object|_s_paddingold|_s_paddingcur|is_undefined|play|Math|cover|_position|opacity|scroll|extend|eq|_a_wrapper|triggerHandler|usePadding|marginRight|circular|sz_resetMargin|fx|each|max|i_cur_l|old|isScrolling|i_old_l|uncover|unbind||cookie|isPaused|number|a_cfs|_cfs_origCssMargin|clbk|direction|adjust|isStopped|stopImmediatePropagation|is|object|while|i_new|w_siz|easing|nr|responsive|synchronise|getTime|Not|bar|i_new_l|a_cur|remove|is_jquery|outerWidth|avail_primary|cf_getItemsAdjust|default|cf_c|ceil|pR|_s_paddingnew|queu|preventDefault|a_itm|pauseOnHover|null|options|100|deprecated|timeoutDuration|startTime|string|removeClass|sc_startScroll|i_skp|ms_getTotalSize|a_old|a_lef|a_dur|is_array|instanceof|typeof|key|adj||opts_orig|gn_getVisibleItemsNext||min|right|addClass||||pause|perc|boolean|cf_sortParams|scrolling|resume|onAfter|i_old|last|crossfade|slideTo|window|start|outerHeight|_cfs_triggerEvent|is_true|top|hidden|sc_clearTimers|pre|post|timePassed|Carousel|events|queue|infinite|nv_enableNavi|i_siz|i_siz_vis|_a_paddingold|_a_paddingcur|get|onBefore|updatePageStatus|gi_getCurrentItems|gn_getItemIndex|anchorBuilder|event|sizesConf|bt_pauseOnHoverConfig|ns2|split|indexOf|go_getObject|serialNumber|is_percentage|gn_getVisibleItemsNextFilter|orgCSS|position|zIndex|none|sc_stopScroll||dur2|prefix|appendTo|sc_setScroll|sc_fireCallbacks|currentPage|before|Number||of|document|the|touchwipe|wN|onTouch|hide|parseInt|floor|show|ms_getTrueLargestSize|selector|currentPosition|destroy|up|maxDimension|primarySizePercentage|ms_getPercentage|org|onTimeoutStart|onTimeoutPause|onTimeoutEnd|sz_storeMargin|stopped|updater|minimum|configuration|gn_getVisibleItemsPrev|cf_getAdjust|to|onEnd|clone|cf_getAlignPadding|cf_mapWrapperSizes|ms_getSizes|a_wsz|a_new|a_cfs_vis|end|updateSizes|eval|sz_setSizes|pgs|deviation|nv_showNavi|mouseenter|mouseleave|pauseOnEvent|keys|wipe|di|go_getNaviObject||is_false|sz|prop|element|starting_position|_cfs_isCarousel|_cfs_init||go_getPrevNextObject|defaults|ms_getParentSize|ms_getMaxDimension|center|in_getResponsiveValues|bottom|in_getAlignPadding|go_complementPrevNextObject|cf_getSynchArr|onPauseStart|onPausePause|onPauseEnd|pauseDuration|in_mapCss|marginBottom|newPosition|_cfs_origCss|sz_storeSizes|sz_setResponsiveSizes|_cfs_unbind_events|stop|finish|interval|type|conditions|gn_getVisibleOrg|backward|sc_hideHiddenItems|a_lef_vis|sc_getDuration|_a_paddingnew|not|sc_showHiddenItems|sc_mapCallbackArguments|sc_afterScroll|sc_fireQueue|cf_setCookie|gn_getVisibleItemsNextTestCircular|slideToPage|valid|linkAnchors|value|_cfs_bind_buttons|click|_cfs_unbind_buttons|scrolled|down|onMouse|swP|swN|bt_mousesheelNumber|delay||_windowWidth|_windowHeight|nh|pauseOnResize|ns3|wrapper||parent|continue|classnames|set|new|cf_getKeyCode|gn_getItemsPrevFilter|gn_getItemsNextFilter|seco|nw|ms_getLargestSize|toLowerCase|ms_hasVariableSizes|sta|cf_getItemAdjustMinMax|is_null|console|caroufredsel|No|go_getItemsObject|go_getScrollObject|go_getAutoObject|go_getPaginationObject|go_getSwipeObject|go_getMousewheelObject|cf_getDimensions|in_complementItems|in_complementPrimarySize|in_complementSecondarySize|upDateOnWindowResize|in_complementVisibleItems|cf_getPadding|500|go_complementAutoObject|go_complementPaginationObject|go_complementSwipeObject|go_complementMousewheelObject|_cfs_build|textAlign|float|marginTop|marginLeft|absolute|_cfs_bind_events|paused|enough|needed|page|slide_|gn_getScrollItemsPrevFilter|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|concat|gn_getScrollItemsNextFilter|forward|gi_getOldItemsNext|gi_getNewItemsNext|jumpToStart|after|append|removeItem|round|hash|index|selected|gn_getVisibleItemsPrevFilter|_cfs_origCssSizes|Item|keyup|keyCode|plugin|scN|cursor|The|option|mcN|configs|classname|cf_getCookie|random|itm|onCreate|namespace|pageAnchorBuilder|span|progressbarUpdater|Date|_cfs_isHidden|triggerOnTouchEnd|_cfs_tempCssMargin|newS|secp|ms_getPaddingBorderMargin|l1|l2|join|innerWidth|innerHeight|dx|Set|undefined|jQuery|log|found|caroufredsel_cookie_|relative|fixed|overflow|setInterval|setTimeout|or|Callback|returned|Page|resumed|currently|slide_prev|prependTo|slide_next|prevPage|nextPage|prepend|carousel|insertItem|add|detach|currentVisible|body|find|Preventing|non|sliding|replaceWith|widths|heights|automatically|touchSwipe|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|ontouchstart|in|swipeUp|swipeDown|swipeLeft|swipeRight|move|resize|wrap|class|unshift|location|swing|cfs|div|caroufredsel_wrapper|href|charAt|setTime|1000|expires|toGMTString|path|orgDuration|animate|complete|shift|clearTimeout|clearInterval|skipped|Hiding|navigation|disabled|2500|Width|outer|px|em|even|odd|Infinity|immediate|Array|Object|isNaN|String|Function|Boolean|DEPRECATED|support|it|will|be|removed|Use|instead|quadratic|cubic|elastic|106|126".split("|"),0,{}));getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").requires.push("flow");getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").factory("_",lodash);lodash.$inject=["$window"];getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").config(["flowFactoryProvider",function(n){n.defaults={testChunks:!1,permanentErrors:[404,406,500,501],maxChunkRetries:1,chunkRetryInterval:5e3,simultaneousUploads:4,singleFile:!0,chunkSize:1048576,generateUniqueIdentifier:function(){return guid()}};n.on("catchAll",function(n){switch(n){case"uploadStart":showLoading();break;case"complete":hideLoading()}})}]);getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").factory("myHttpInterceptor",myHttpInterceptor);myHttpInterceptor.$inject=["$q"];getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").config(["$httpProvider",function(n){n.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";n.interceptors.push("myHttpInterceptor");var t=function(n){return showLoading(),n};n.defaults.transformRequest.push(t)}]);CompanyBoardingWizardController.$inject=["$scope","$sce","$q","CompanyBoardingService","DeviceDetector","UploadingPhotoService","_"];getAngularModule("CompanyApp,LogoutApp,CompanyProfileApp").component("companyBoardingWizard",{templateUrl:"/Company/Settings/ViewTemplate/CompanyBoardingWizard",controller:CompanyBoardingWizardController});getAngularModule("CompanyApp,CompanyProfileApp,LogoutApp").service("CompanyBoardingService",CompanyBoardingService);CompanyBoardingService.$inject=["$http"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").service("UploadingPhotoService",["$q",function(n){var i="The file you are uploading is larger than 3MB. Please select a smaller picture.",t="Accept only .jpg or .png image types";this.readFile=function(i,r){var u=n.defer(),f=new FileReader;return f.onload=function(n){var i=n.target.result,e=i.split(";"),f=e[0];f==="data:image/jpeg"||f==="data:image/png"?u.resolve(i):typeof r.AlertController=="object"?r.AlertController.alert(t):alert(t)},f.readAsDataURL(i),u.promise};this.validateFile=function(r,u){var f=n.defer();return setTimeout(function(){var e=r.size,n=r.type;n==="image/jpeg"||n==="image/png"?e<=3145728?f.resolve(!0):(f.resolve(!1),typeof u.AlertController=="object"?u.AlertController.alert(i):alert(i)):typeof u.AlertController=="object"?u.AlertController.alert(t):alert(t)},100),f.promise}}]);CompanyGeneralInfoController.$inject=["$scope","$timeout","$sce","DeviceDetector","_"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("companyGeneralInfo",{templateUrl:"/Company/Settings/ViewTemplate/CompanyGeneralInfo",controller:CompanyGeneralInfoController,bindings:{model:"<",states:"<",categories:"<",isincludingcategories:"<",onValidate:"&",onRendered:"&"}});CompanyWorkingHoursController.$inject=["$scope","$timeout","_"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("companyWorkingHours",{templateUrl:"/Company/Settings/ViewTemplate/CompanyWorkingHours",controller:CompanyWorkingHoursController,bindings:{workinghours:"<",onValidate:"&",onRendered:"&"}});CompanyLogoBannerController.$inject=["$scope","$q","CompanyBoardingService","UploadingPhotoService","DeviceDetector","_"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("companyLogoBanner",{templateUrl:"/Company/Settings/ViewTemplate/CompanyLogoBanner",controller:CompanyLogoBannerController,bindings:{bannersrc:"<",logosrc:"<",orilogosrc:"<",onChanged:"&",onRendered:"&"}});OnboardingPricePlanController.$inject=["$scope","$timeout","_"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("onboardingPricePlan",{templateUrl:"/template/onboardingpriceplan",controller:OnboardingPricePlanController,bindings:{plan:"=",onValidate:"&",onRendered:"&"}});HourController.$inject=["$scope","_"];getAngularModule("CompanyProfileApp,CompanyApp,LogoutApp").component("hour",{template:'<ul class="clearfix" id="{{$ctrl.Id}}" ng-class="{\'ng-invalid\':!$ctrl.valid, disabled:$ctrl.disabled}"><li><input ng-disabled="$ctrl.disabled" type="text" ng-model="$ctrl.time" maxlength="7"/><\/li><li class="form-select form-select-time"><select ng-disabled="$ctrl.disabled" ng-model="$ctrl.period"><option>AM<\/option><option>PM<\/option><\/select><\/li><\/ul>',controller:HourController,bindings:{defaulttime:"@",defaultperiod:"@",time:"=",period:"=",valid:"<",disabled:"<",onMasked:"&",onValidate:"&",onNotifyValid:"&"}});window.$MobileMenuController=function(){function t(n,t){var i=$("#ml-menu ul").filter(function(){return $(this).css("display")==="block"});i.find("li").hide();$(i.find("li").get()).each(function(i){var r=$(this);setTimeout(function(){typeof n=="string"?r.removeClass(n).addClass(t).show():r.addClass(t).show()},i*50)});i.show()}var n={CurrentLevel:1};return n.changeCompany=function(n){var t={profileId:n};$(".loading").show();$.ajax({type:"POST",contentType:"application/json; charset=utf-8",data:JSON.stringify(t),dataType:"json",url:"/Company/Change/"}).success(function(){var t=window.location.pathname,n="/company/Dashboard";t.toLowerCase().indexOf("dashboard")!=-1?n="/company/Dashboard":t.toLowerCase().indexOf("manage")!=-1?n="/company/manage/staff":t.toLowerCase().indexOf("settings")!=-1&&(n="/company/settings/profile/basicinfo");window.location.href=n}).error(function(){$(".loading").hide()})},$(document).ready(function(){$(".navbar-toggle").click(function(){n.show()});$(".bg-fading, .icon_mobile_close_menu").click(function(){n.hide()});$(".btn_sub_item").addClass("sub_menu_icon_down");$(".btn_sub_item").click(function(){$(this).parent().find(".dropmenu-item-content").slideToggle();$(this).toggleClass("sub_menu_icon_up","sub_menu_icon_down")});$(".btn_menu_dashboard").click(function(){n.gotoLevel(2)});$(".btn_menu_back").click(function(){n.gotoLevel(1)});$(".menu_item_hm").click(function(){n.hide()})}),n.hide=function(){$(".menu__wrap").removeClass("menu-slide-right");$(".bg-fading").removeClass("show-bg-fading");$(".icon_mobile_close_menu").hide();$("body").removeClass("fixed")},n.show=function(){$(".menu__wrap").addClass("menu-slide-right");$(".bg-fading").addClass("show-bg-fading");$(".icon_mobile_close_menu").show();t(null,"fadeInLeft");$("body").addClass("fixed")},n.gotoLevel=function(i){$("#ml-menu ul").filter(function(){return this.className.match(/\blevel/)}).hide();$(".level"+i).show();i>n.CurrentLevel?t("fadeInRight","fadeInLeft"):t("fadeInLeft","fadeInRight");n.CurrentLevel=i},n.expand=function(n){$(n).trigger("click")},n}()