function ajaxPost(n,t,i,r,u){$.ajax({url:n,type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(t),context:u==undefined?this:u,beforeSend:r==undefined?OnAjaxBeforeSend:r,success:i==undefined?OnAjaxSuccess:i})}function ajaxGet(n,t,i,r,u){$.ajax({url:n,type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",data:t==undefined?{}:t,context:u==undefined?this:u,beforeSend:r==undefined?OnAjaxBeforeSend:r,success:i==undefined?OnAjaxSuccess:i})}function ajaxLoad(n,t,i,r,u){$.ajax({url:t,type:"GET",cache:!1,contentType:"text/html; charset=utf-8",dataType:"html",data:i==undefined?{}:i,context:u==undefined?this:u,success:function(t,i,u){(n.html(t),GenericLoadCallBack(t,i,u))&&r&&r(t,i,u,this)}})}function OnAjaxBeforeSend(){return!0}function OnAjaxSuccess(){}function GetLoader(){return $('<div id="AjaxLoaderImg" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width:220px;height:15px;"><\/div>')[0]}function Clear(n){n&&typeof n!="object"&&(n=document.getElementById(n));n&&n.parentNode.removeChild(n)}function AjaxStart(){Clear("AjaxLoaderImg");var n=GetLoader();n.style.bottom="15px";n.style.right="15px";n.style.position="absolute";document.body.appendChild(n)}function AjaxStop(){Clear("AjaxLoaderImg")}function LoadContentPaneView(n,t,i,r){AjaxStart();ajaxLoad($("#main"),n,t,i,r)}function GenericLoadCallBack(n,t,i){return($(document.body).scrollLeft(0),$(document.body).scrollTop(0),$("#pavo-slideshow").css("display","none"),t=="error")?(AjaxStop(),bootbox.alert(R_5615+i.status+" "+i.statusText),!1):($("<div>"+n+"<\/div>").find("span.javascript").each(function(i){if(this.getAttribute("src"))$.ajax({cache:!0,context:this,type:"GET",async:!1,url:this.getAttribute("src"),dataType:"script",success:function(){var callBack=this.getAttribute("callback");callBack&&eval(callBack)}});else{var callBack=this.getAttribute("callback");callBack&&(eval(callBack),$("#footer").css("visibility","visible"))}}),AjaxStop(),!0)}function ajaxSetup(){$.ajaxSetup({error:function(n,t){n.status===0?bootbox.alert(R_5586):n.status==404?bootbox.alert(R_5587):n.status==500?bootbox.alert(R_5588):t==="parsererror"?bootbox.alert(R_5589):t==="timeout"?bootbox.alert(R_5590):t==="abort"?bootbox.alert(R_5591):bootbox.alert(R_5592+n.responseText+R_5593)}})}function ajaxPost(n,t,i,r,u){$.ajax({url:n,type:"POST",contentType:"application/json; charset=utf-8",dataType:"json",data:JSON.stringify(t),context:u==undefined?this:u,beforeSend:r==undefined?OnAjaxBeforeSend:r,success:i==undefined?OnAjaxSuccess:i})}function ajaxGet(n,t,i,r,u){$.ajax({url:n,type:"GET",contentType:"application/json; charset=utf-8",dataType:"json",data:t==undefined?{}:t,context:u==undefined?this:u,beforeSend:r==undefined?OnAjaxBeforeSend:r,success:i==undefined?OnAjaxSuccess:i})}function ajaxLoad(n,t,i,r,u){$.ajax({url:t,type:"GET",cache:!1,contentType:"text/html; charset=utf-8",dataType:"html",data:i==undefined?{}:i,context:u==undefined?this:u,success:function(t,i,u){(n.html(t),GenericLoadCallBack(t,i,u))&&r&&r(t,i,u,this)}})}function OnAjaxBeforeSend(){return!0}function OnAjaxSuccess(){}function GetUniqueID(){return(new Date).getTime()}function urlEncode(n){return escape(n).replace(/\+/g,"%2b")}function urlDecode(n){return unescape(n.replace(/\+/g," "))}function uD(n){return urlDecode(n)}function htmlEncode(n){return $("<div/>").text(n).html()}function htmlDecode(n){return $("<div/>").html(n).text()}function ClearChildren(n){if(n&&typeof n!="object"&&(n=byId(n)),n)while(n.childNodes.length>0)n.removeChild(n.childNodes[0])}function Clear(n){n&&typeof n!="object"&&(n=byId(n));n&&n.parentNode.removeChild(n)}function GetLoader(){return $('<div id="AjaxLoaderImg" class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width:220px;height:15px;"><\/div>')[0]}function AjaxStart(){Clear("AjaxLoaderImg");var n=GetLoader();n.style.bottom="15px";n.style.right="15px";n.style.position="absolute";document.body.appendChild(n)}function AjaxStop(){Clear("AjaxLoaderImg")}function LockPage(n,t){var r,i,u;UnlockPage();$.blockUI({message:""});r=GetClientSize();i=CE("DIV");i.className="RoundedBox";i.style.position="absolute";i.style.left=r.width/2-50+"px";i.style.top=r.height/2+"px";i.style.textAlign="center";i.style.zIndex=99999;i.id="BlockLoader";u=CE("SPAN");i.appendChild(u);n!=""&&n||(n="Please wait...");u.appendChild(TN(n));i.appendChild(CE("BR"));t&&i.appendChild(t);i.appendChild(GetLoader());document.body.appendChild(i)}function UnlockPage(){$.unblockUI();Clear("BlockLoader")}function CancelEvent(n){if(n){var n=jQuery.Event(n);n.preventDefault();n.stopPropagation();n.stopImmediatePropagation()}return!1}function GetEvent(n){return jQuery.event.fix(n)}function GetPosition(n,t){var i=jQuery(n).offset(),r;return i.x=parseInt(i.left),i.y=parseInt(i.top),t&&(r=jQuery(t).offset(),i.x=i.x-parseInt(r.left),i.y=i.y-parseInt(r.top)),i}function GetClientSize(){return{width:$(window).width(),height:$(window).height()}}function byId(n){return document.getElementById(n)}function FindAttribute(n,t){try{while(n&&n.tagName!="BODY"&&(!n.getAttribute(t)||n.getAttribute(t)==""))n=n.parentNode;return n?n.getAttribute(t):undefined}catch(i){return undefined}}function FindElement(n,t){while(n&&n.tagName!=t)n=n.parentNode;return n}function SetOpacity(n,t){var i=n.style;i.MozOpacity!=undefined?i.MozOpacity=t:i.filter!=undefined?i.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+t*100+")":i.opacity!=undefined&&(i.opacity=t)}function CE(n){return document.createElement(n)}function TN(n){return document.createTextNode(n)}function ModalLessWindowByPercent(n,t,i,r,u){var f=GetClientSize(),e=f.width*(t/100),o=f.height*(i/100);return ModalLessWindow(n,e,o,r,u)}function ModalLessWindow(n,t,i,r,u){var f=GetClientSize(),e="left="+(f.width/2-t/2)+",top="+(f.height/2-i/2)+",toolbars=no,resizable="+u+",scrollbars=yes,width="+t+",height="+i;return top.AppPopupWins[r]=window.open(n,r,e),setTimeout(function(){top.AppPopupWins[r].focus()},200),top.AppPopupWins[r]}function GetClientSizeByPer(n){var t=GetClientSize(),i=t.width*(n/100),r=t.height*(n/100);return{width:i,height:r}}function InnerTextIt(n,t){var r,i;if(t!=undefined){for(r=[],i=0;i<n.childNodes.length;i++)n.childNodes[i].nodeType==3&&r.push(n.childNodes[i]);for(i=0;i<r.length;i++)n.removeChild(r[i]);n.textContent?n.textContent=t:n.innerText?n.innerText=t:n.appendChild(TN(t))}return n.textContent?n.textContent:n.innerText}function pad(n,t){for(var i=""+n;i.length<t;)i="0"+i;return i}function MakeDialogContainer(n){var t=CE("DIV");return t.id=n,document.body.appendChild(t),t}function InitRatings(){$("div.rating").each(function(){var i,t,n;this.childNodes.length==0&&(this.style.display="none",i=$(this).attr("data-rating-readonly")=="true"?!0:!1,t=0,$(this).attr("data-rating-value")&&(t=Math.round(parseFloat($(this).attr("data-rating-value"))*10)/10,t=Math.round(t)-t==.5?t:Math.round(t)),n=[],n.push({Label:"0.5 / 5",Value:"0.5",Selected:!1}),n.push({Label:"1 / 5",Value:"1",Selected:!1}),n.push({Label:"1.5 / 5",Value:"1.5",Selected:!1}),n.push({Label:"2 / 5",Value:"2",Selected:!1}),n.push({Label:"2.5 / 5",Value:"2.5",Selected:!1}),n.push({Label:"3 / 5",Value:"3",Selected:!1}),n.push({Label:"3.5 / 5",Value:"3.5",Selected:!1}),n.push({Label:"4 / 5",Value:"4",Selected:!1}),n.push({Label:"4.5 / 5",Value:"4.5",Selected:!1}),n.push({Label:"5 / 5",Value:"5",Selected:!1}),this.appendChild(MakeDDL($(this).attr("id")+"_ddl",n,t.toString())),$caption=$('<span style="padding-left: .5em"/>'),$("#"+$(this).attr("id")).stars({inputType:"select",split:2,disabled:i,captionEl:$caption}),$caption.appendTo("#"+$(this).attr("id")),this.style.display="")})}function InitJqMenus(){$("button.jqbuttonmenu").each(function(){var n=$(this);$("#"+n.attr("id")).button({text:n.attr("data-label")!=""?!0:!1,icons:{primary:n.attr("data-icon"),secondary:"ui-icon-triangle-1-s"}}).click(function(){var t=n.next().show().position({my:n.attr("data-mypos"),at:n.attr("data-atpos"),of:this});$(document).one("click",function(){t.hide()});return!1}).next().hide().menu({select:function(event,ui){eval(n.attr("data-selecthandler")+"('"+event.currentTarget.id+"');");$("#"+n.attr("id")).next().hide()}})})}function InitJqSplitButtons(){$("button.jqsplitbutton").each(function(){var n=$(this);$("#"+n.attr("id")).button({icons:{primary:n.attr("data-buttonicon")}}).click(function(){eval(n.attr("data-selecthandler")+"('"+n.attr("data-id")+"');")}).next().button({text:!1,icons:{primary:"ui-icon-triangle-1-s"}}).click(function(){var t=$(this).parent().next().show().position({my:"right top",at:"right bottom",of:this});$(document).one("click",function(){t.hide()});$("LI.ui-menu-item",t).off("click").on("click",function(e){eval(n.attr("data-selecthandler")+"('"+this.id+"');");t.hide()});return!1}).parent().buttonset().next().hide().menu()})}function SetGritterDefaults(){$.extend($.gritter.options,{position:"bottom-right",fade_in_speed:"medium",fade_out_speed:2e3,time:4e3})}function SetDatePickerDefaults(){var n=(new Date).getFullYear();$.datepicker.setDefaults({dateFormat:JQueryDateFormat(),changeMonth:!0,changeYear:!0,yearRange:n-10+" : "+(n+5)});$.datepicker.setDefaults($.datepicker.regional[""])}function AddInfoNotification(n,t){$.gritter.add({title:n,text:t,image:$("#AppRoot").val()+"Content/img/info.png",before_open:function(){if($(".gritter-item-wrapper").length==3)return!1}})}function AddWarnNotification(n,t){$.gritter.add({title:n,text:t,image:$("#AppRoot").val()+"Content/img/warning.png",before_open:function(){if($(".gritter-item-wrapper").length==3)return!1}})}function IsValidEmail(n){return/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(n)?!0:!1}function PlayAudio(n){if(window.HTMLAudioElement)try{byId(n).play()}catch(t){window.console&&console.error("Error:"+t)}}function parseJSONDate(n){return new Date(parseInt(n.substr(6)))>new Date(2007,0,1)?new Date(parseInt(n.substr(6))):""}function IsTouchDevice(){var n=navigator.userAgent.toLowerCase();return n.match(/(iphone|ipod|ipad)/)||n.match(/(android)/)||n.match(/(iemobile)/)||n.match(/iphone/i)||n.match(/ipad/i)||n.match(/ipod/i)||n.match(/blackberry/i)||n.match(/bada/i)}function humanFileSize(n){var t=1024,r,i;if(n<t)return n+" B";r=["KB","MB","GB","TB","PB","EB","ZB","YB"];i=-1;do n/=t,++i;while(n>=t);return n.toFixed(1)+" "+r[i]}function InitJqSplitButtons(){$("button.jqsplitbutton").each(function(){var n=$(this);$("#"+n.attr("id")).button({icons:{primary:n.attr("data-buttonicon")}}).click(function(){eval(n.attr("data-selecthandler")+"('"+n.attr("data-id")+"');")}).next().button({text:!1,icons:{primary:"ui-icon-triangle-1-s"}}).click(function(){var t=$(this).parent().next().show().position({my:"right top",at:"right bottom",of:this});$(document).one("click",function(){t.hide()});$("LI.ui-menu-item",t).off("click").on("click",function(e){eval(n.attr("data-selecthandler")+"('"+this.id+"');");t.hide()});return!1}).parent().buttonset().next().hide().menu()})}function OpenInlinePopup(n,t,i,r){var u=CE("iframe");u.setAttribute("frameBorder","0");u.style.width="100%";u.style.height="100%";u.src=n;OpenClientPopup(u,t,i,r)}function OpenClientPopup(n,t,i,r){CloseInlinePopup();var u=$('<div id="InlinePopup" style="overflow: hidden;" />');n.tagName=="IFRAME"&&u.css("padding","0px");u.append(n);$(document.body).append(u);i||(i=665);r||(r=480);u.dialog({title:t,modal:!0,width:i,height:r,close:function(){CloseInlinePopup()}})}function CloseInlinePopup(){var n=byId("InlinePopup");n&&n.getAttribute("Closing")!="true"&&(n.setAttribute("Closing","true"),$("#InlinePopup").dialog("close"),Clear(n))}function removeItem(n,t){for(var i in n)if(n[i]==t){n.splice(i,1);break}}function IsValidEmail(n){return/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(n)?!0:!1}function IsValidPassword(n){return/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/.test(n)}function getURLVar(n){var r=[],f=String(document.location).split("?"),u,t;if(f[1]){for(u=f[1].split("&"),i=0;i<u.length;i++)t=u[i].split("="),t[0]&&t[1]&&(r[t[0]]=t[1]);return r[n]?r[n]:""}}function HighlightFormErros(){$(".text-danger").each(function(){var n=$(this).parent();n.hasClass("form-group")||(n=$(this).parent().parent());n.hasClass("form-group")&&n.addClass("has-error")})}function ResetFormErros(){$(".form-control").each(function(){var n=$(this);n.hasClass("text-danger")&&n.removeClass("text-danger")});$(".form-group").each(function(){var n=$(this);n.hasClass("has-error")&&n.removeClass("has-error")})}function InitMediaElementPlayer(){$(".display-container").each(function(){var n=$(this).attr("src");n!=""&&$(this).tubeplayer({initialVideo:n})})}function LoadContentPaneView(n,t,i,r){AjaxStart();ajaxLoad($("#main"),n,t,i,r)}function GenericLoadCallBack(n,t,i){return($(document.body).scrollLeft(0),$(document.body).scrollTop(0),$("#pavo-slideshow").css("display","none"),t=="error")?(AjaxStop(),bootbox.alert(R_5615+i.status+" "+i.statusText),!1):($("<div>"+n+"<\/div>").find("span.javascript").each(function(i){if(this.getAttribute("src"))$.ajax({cache:!0,context:this,type:"GET",async:!1,url:this.getAttribute("src"),dataType:"script",success:function(){var callBack=this.getAttribute("callback");callBack&&eval(callBack)}});else{var callBack=this.getAttribute("callback");callBack&&(eval(callBack),$("#footer").css("visibility","visible"))}}),AjaxStop(),$(".zoomContainer").remove(),!0)}function HideMyAccountMenu(){$("div.btn-group").removeClass("open")}function HideCartMenu(){$("div.clearfix").removeClass("open")}function validateFloatKeyPress(n,t,i){var r=t.which?t.which:event.keyCode,e=n.value.split("."),f,u;return r!=44&&r!=46&&r>31&&(r<48||r>57)?!1:(f=getSelectionStart(n),u=n.value.indexOf("."),f>u&&u>-1&&e[1].length>i-1)?!1:!0}function getSelectionStart(n){if(n.createTextRange){var t=document.selection.createRange().duplicate();return(t.moveEnd("character",n.value.length),t.text=="")?n.value.length:n.value.lastIndexOf(t.text)}return n.selectionStart}function InitSammyJs(){var n=$.sammy("#main",function(){this.get("#/",function(){LoadContentPaneView($("#AppRoot").val()+"Home/IndexPartial")});this.get("#/Login",function(){LoadContentPaneView($("#AppRoot").val()+"Account/Login")});this.get("#/Login/:target",function(){LoadContentPaneView($("#AppRoot").val()+"Account/Login?target="+this.params.target)});this.get("#/Login/:target/:param",function(){LoadContentPaneView($("#AppRoot").val()+"Account/Login?target="+this.params.target+" &param="+this.params.param)});this.get("#/Login/Home/Forum/MvcForum",function(){LoadContentPaneView($("#AppRoot").val()+"Account/Login?target=Forum&param=MvcForum")});this.get("#/MyAccount",function(){LoadContentPaneView($("#AppRoot").val()+"Account/MyAccount?UserID="+$("#UserID").val())});this.get("#/MyOrders",function(){var n=(new Date).getTime();location.href=$("#AppRoot").val()+"#/MyOrders/Page/"+n});this.get("#/MyOrders/Page/:pageid",function(){LoadContentPaneView($("#AppRoot").val()+"Account/MyOrders?UserID="+$("#UserID").val())});this.get("#/UpdatePassword",function(){LoadContentPaneView($("#AppRoot").val()+"Account/UpdatePassword")});this.get("#/Listing",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Listing")});this.get("#/Listing/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Listing?ParentCategoryKeyValue="+this.params.keyvalue)});this.get("#/Listing/:parentkeyvalue/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Listing?ParentCategoryKeyValue="+this.params.parentkeyvalue+"&CategoryKeyValue="+this.params.keyvalue)});this.get("#/PostNewListing",function(){$("#UserID").val()==""?location.href=$("#AppRoot").val()+"#/Login/PostNewListing":LoadContentPaneView($("#AppRoot").val()+"Home/PostNewListing")});this.get("#/Events",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Events")});this.get("#/Events/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Events?CategoryKeyValue="+this.params.keyvalue)});this.get("#/PostNewEvent",function(){$("#UserID").val()==""?location.href=$("#AppRoot").val()+"#/Login/PostNewEvent":LoadContentPaneView($("#AppRoot").val()+"Home/PostNewEvent")});this.get("#/Classifieds",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Classifieds")});this.get("#/Classifieds/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Classifieds?ParentCategoryKeyValue="+this.params.keyvalue)});this.get("#/Classifieds/:parentkeyvalue/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Classifieds?ParentCategoryKeyValue="+this.params.parentkeyvalue+"&CategoryKeyValue="+this.params.keyvalue)});this.get("#/Deals",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Deals")});this.get("#/Deals/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Deals?ParentCategoryKeyValue="+this.params.keyvalue)});this.get("#/Deals/:parentkeyvalue/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Deals?ParentCategoryKeyValue="+this.params.parentkeyvalue+"&CategoryKeyValue="+this.params.keyvalue)});this.get("#/Gallery",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Gallery")});this.get("#/Videos",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Videos")});this.get("#/VideoPlay/:VideoUrl/:ShortDescription",function(){LoadContentPaneView($("#AppRoot").val()+"Home/VideoPlay?VideoUrl="+this.params.VideoUrl+"&ShortDescription="+urlEncode(this.params.ShortDescription))});this.get("#/GalleryPictures/:AlbumID/:AlbumName",function(){LoadContentPaneView($("#AppRoot").val()+"Home/GalleryPictures?AlbumID="+this.params.AlbumID+"&AlbumName="+this.params.AlbumName)});this.get("#/Contact",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Contact")});this.get("#/WhyUs",function(){LoadContentPaneView($("#AppRoot").val()+"Home/WhyUs")});this.get("#/FAQ",function(){LoadContentPaneView($("#AppRoot").val()+"Home/FAQ")});this.get("#/TermsConditions",function(){LoadContentPaneView($("#AppRoot").val()+"Home/TermsConditions")});this.get("#/PrivacyPolicy",function(){LoadContentPaneView($("#AppRoot").val()+"Home/PrivacyPolicy")});this.get("#/AdvertiseWithUs",function(){LoadContentPaneView($("#AppRoot").val()+"Home/AdvertiseWithUs")});this.get("#/DealsDetails/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/DealsDetails?keyvalue="+this.params.keyvalue)});this.get("#/NonProfitDetails/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/NonProfitDetails?keyvalue="+this.params.keyvalue)});this.get("#/ListingsDetails/:KeyValue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ListingsDetails?KeyValue="+this.params.KeyValue)});this.get("#/EventDetails/:KeyValue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/EventDetails?KeyValue="+this.params.KeyValue)});this.get("#/ClassifiedsDetails/:KeyValue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ClassifiedsDetails?KeyValue="+this.params.KeyValue)});this.get("#/ViewAllListings",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllListings")});this.get("#/ViewAllListings/:Isfeatured",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllListings?Isfeatured="+this.params.Isfeatured)});this.get("#/ViewAllListings/:Isfeatured/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllListings?Isfeatured="+this.params.Isfeatured+"&KeyValue="+this.params.keyvalue)});this.get("#/ViewAllEvents",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllEvents")});this.get("#/ViewAllEvents/:keyvalue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllEvents?KeyValue="+this.params.keyvalue)});this.get("#/ViewAllClassifieds",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllClassifieds")});this.get("#/ViewAllClassifieds/:Isfeatured",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllClassifieds?Isfeatured="+this.params.Isfeatured)});this.get("#/ViewAllClassifieds/:Isfeatured/:KeyValue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllClassifieds?Isfeatured="+this.params.Isfeatured+"&KeyValue="+this.params.KeyValue)});this.get("#/ViewAllDeals",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllDeals")});this.get("#/ViewAllDeals/:IsFeatured",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllDeals?IsFeatured="+this.params.IsFeatured)});this.get("#/ViewAllDeals/:Isfeatured/:KeyValue",function(){LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllDeals?Isfeatured="+this.params.Isfeatured+"&KeyValue="+this.params.KeyValue)});this.get("#/PostNewDeals",function(){$("#UserID").val()==""?location.href=$("#AppRoot").val()+"#/Login/PostNewDeals":LoadContentPaneView($("#AppRoot").val()+"Home/PostNewDeals")});this.get("#/PostNewClassifieds",function(){$("#UserID").val()==""?location.href=$("#AppRoot").val()+"#/Login/PostNewClassifieds":LoadContentPaneView($("#AppRoot").val()+"Home/PostNewClassifieds")});this.get("#/AddAdvertisement",function(){LoadContentPaneView($("#AppRoot").val()+"Account/AddAdvertisement")});this.get("#/OrderSummary/:UrlID/:cardToken",function(){LoadContentPaneView($("#AppRoot").val()+"Home/OrderSummary?UrlID="+this.params.UrlID+"&cardToken="+this.params.cardToken)});this.get("#/Search/:SearchKeyword",function(){LoadContentPaneView($("#AppRoot").val()+"Home/Search?SearchKeyword="+this.params.SearchKeyword)});this.get("#/GalleryURL/:AlbumID",function(){LoadContentPaneView($("#AppRoot").val()+"Home/GalleryURL?AlbumID="+this.params.AlbumID)})});n.run("#/")}function OnEventsPartialLoad(){}function OnDealsPartialLoad(){}function IsValidEmail(n){return/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test(n)?!0:!1}function OnSaveContactusData(){AjaxStop();$("#input-name").val("");$("#input-email").val("");$("#input-enquiry").val("");alert("Thank you for approaching JaxDesi. Message sent successfully. We will contact you soon.")}function SearchBtn_Click(n){var t=$(n).parent().prev().val();$(n).parent().prev().val("");location.href=$("#AppRoot").val()+"#/Search/"+t}function OnTestLoad(){$("#contact_sendmsgbtn").click(function(){ValiDateContactInfo()})}function ValiDateContactInfo(){var n=$("#input-name").val(),t=$("#input-email").val(),i=$("#input-enquiry").val(),r;return n==""?(alert("Please enter Name"),!1):t==""?(alert("Please enter Email."),!1):i==""?(alert("Please enter Message."),!1):(r="<table><tbody><tr><td>Name:<\/td><td>"+n+"<\/td><\/tr><tr><td>Message:<\/td><td>"+i+"<\/td><\/tr><\/tbody><\/table>",AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/SaveContactUsData",{FromMail:t,Msg:r},OnSaveContactusData),!1)}function handleHeader(n){$("#topnavbar > li").removeClass("active");n!=""&&$("#li_"+n).addClass("active")}function HomePartialLoad(){var t,n;OnLogin();handleHeader("Home");t=$("#featuredid").val();t==0?$("#postnewblog").hide():$("#postnewblog").show();$("#postnewblog").off("click").on("click",function(){url=$("#BlogURL").val()+"/admin/#/content/posts";window.open(url,"_self")});$("#li_blog").off("click").on("click",function(){($("#UserID").val()==0||$("#UserID").val()=="")&&(url=$("#BlogURL").val(),window.open(url,"_self"))});$("#li_MVForum").off("click").on("click",function(){if($("#UserID").val()=="")location.href=$("#AppRoot").val()+"#/Login/Home/Forum/MvcForum";else{var n=$("#SiteLogo").val(),t=$("#SiteUrl").val();window.location.href=$("#ForumURL").val()+"?Username="+urlEncode($("#EncryptUsernam").val())+"&Password="+urlEncode($("#Encryptpassword").val())+"&SiteLogo="+n+"&SiteUrl="+t}});if($("#UserID").val()!=""&&$("#UserID").val()>0)$("#li_blog").off("click").on("click",function(){if($("#UserID").val()!=""){var n="";$("#featuredid").val()==0?(n=$("#BlogURL").val(),window.open(n,"_self")):(n=$("#BlogURL").val()+"/Account/login.aspx",window.open(n,"_self"))}});$("img.listingImg").each(function(){$(this).attr("src",$(this).attr("data-src")).addClass("listminmax product_listing")});$("img.AnimatedImg").each(function(){$(this).attr("src",$(this).attr("data-src"))});$("img.GalleryImg").each(function(){$(this).attr("src",$(this).attr("data-src"))});$("img.EventsImg").each(function(){$(this).attr("src",$(this).attr("data-src"))});$(".slideshow").cycle();$("#myCarousel").carousel({interval:3e3});$("#owl-carousel").owlCarousel({autoPlay:3e3,items:4,pagination:!1});$("#owl-carousel-2").owlCarousel({autoPlay:3e3,items:4,pagination:!1});$("#owl-carousel-3").owlCarousel({autoPlay:3e3,items:4,pagination:!1});$("#owl-carousel-4").owlCarousel({autoPlay:3e3,items:4,pagination:!1});var r=$.cookie("bannersubcribedate"),i=(new Date).getMonth()+1+"/"+(new Date).getDate()+"/"+(new Date).getFullYear(),u=$("#SubscribeURL").val();if($("#Subscribesmodel").val()=="/"&&r!=i){$("#SubscribEmail").modal("show");$("#iframeSubscribe").attr("src",u);$("#SubscribEmail").on("shown.bs.modal",function(){$.cookie("bannersubcribedate",i)})}else $("#SubscribEmail").modal("hide");$(".next").click(function(){$("#owl-carousel").trigger("owl.next")});$(".prev").click(function(){$("#owl-carousel").trigger("owl.prev")});$(".nextclassified").click(function(){$("#owl-carousel-2").trigger("owl.next")});$(".prevclassified").click(function(){$("#owl-carousel-2").trigger("owl.prev")});$(".listingcategory").hide();$(".classifiedcategory").hide();$("#morelistings").off().on("click",function(){$(".listingcategory").show();$(this).hide()});$("#morecategories").off().on("click",function(){$(".classifiedcategory").show();$(this).hide()});$(".sliderimg").off().on("click",function(){var n=$(this).attr("data-externallink"),t=$(this).attr("data-orgurl");n.toString().toLowerCase()=="true"&&window.open(t)});n=$("#lightbox");$('[data-target="#lightbox"]').on("click",function(){var t=$(this).find("img"),i=t.attr("src"),r=t.attr("alt"),u={maxWidth:$(window).width()-100,maxHeight:$(window).height()-100};n.find(".close").addClass("hidden");n.find("img").attr("src",i);n.find("img").attr("alt",r);n.find("img").css(u)});n.on("shown.bs.modal",function(){var t=n.find("img");n.find(".modal-dialog").css({width:t.width()});n.find(".close").removeClass("hidden")});ResizeWindow();window.FlyerOn||(window.FlyerOn=!0,$("#flyerlink").click(),setTimeout(function(){n.modal("hide")},1e4));$("#li_forum").off("click").on("click",function(){var n=$("#SiteLogo").val(),t=$("#SiteUrl").val();url=$("#ForumURL").val()+"?Username="+urlEncode($("#EncryptUsernam").val())+"&Password="+urlEncode($("#Encryptpassword").val())+"&SiteLogo="+n+"&SiteUrl="+t;window.location.href=url});$(document).ready(function(){function n(n,r){n.submit(function(u){if(u.preventDefault(),t(n))r.css("color","black"),r.html("Subscribing..."),i(n,r);else r.html("A valid email address must be provided."),r.css("color","red")})}function t(n){var t=n.find("input[type='email']").val();if(t&&t.length){if(t.indexOf("@")==-1)return!1}else return!1;return!0}function i(n,t){$.ajax({type:"GET",url:n.attr("action"),data:n.serialize(),cache:!1,dataType:"jsonp",jsonp:"c",contentType:"application/json; charset=utf-8",error:function(){},success:function(n){if(n.result!="success"){var i=n.msg||"Sorry. Unable to subscribe. Please try again later.";t.css("color","red");n.msg&&n.msg.indexOf("already subscribed")>0&&(i="You're already subscribed. Thank you.",t.css("color","black"));bootbox.alert({message:i,callback:function(){location.href=$("#AppRoot").val()+"#/"}})}else bootbox.alert({message:"Thank you! You must confirm the subscription in your inbox.",callback:function(){location.href=$("#AppRoot").val()+"#/"}})}})}n($("#subscribe-form"),$("#subscribe-result"))})}function OnLogin(){$("#btn-login").on("click",function(n){OnValidateLogin();n.preventDefault()})}function OnValidateLogin(){var n=[];return $("#txtlemail").val().trim()==""&&n.push(" Please enter Email."),$("#txtlpwd").val().trim()==""&&n.push(" Please enterPassword."),n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show(),!1):($("#notification").hide(),$("#txtlemail").val(""),$("#txtlpwd").val(""),$("#login-modal").modal("hide"),alert("Login successfully."),!0)}function OnRegistration(){$("#btnsubmit").on("click",function(n){OnValidateRegistration();n.preventDefault()})}function OnValidateRegistration(){var n=[];return $("#txtname").val().trim()==" "&&n.push(" Please enter Name."),$("#txtemail").val().trim()==""&&n.push(" Please enter Email."),$("#txtpwd").val().trim()==""&&n.push(" Please enterPassword."),$("#txtrpwd").val().trim()==""&&n.push(" Please Retype Password."),$("#txtpwd").val()!=$("#txtrpwd").val()&&n.push("Password and Retype password not matching"),n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show(),!1):($("#notification").hide(),$("#txtname").val(""),$("#txtemail").val(""),$("#txtpwd").val(""),alert("Registraion completed successfully."),!0)}function ResizeWindow(){$(window).width()<=792?$("#mainRow").css("width","100%"):$(window).width()>792&&$(window).width()<=997?$("#mainRow").css("width","calc(100% - 126px + 5px)"):$(window).width()>997&&$(window).width()<=1004?$("#mainRow").css("width","calc(100% - 126px + 5px)"):$("#mainRow").css("width","calc(100% - 126px + 5px)")}function OnPostNewListing(){$("#txtPostListingDescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtPostListingstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtPostListingendtdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#date_PostListingStartDate").on("click",function(){$("#txtPostListingstartdate").click()});$("#date_PostListingEndDate").on("click",function(){$("#txtPostListingendtdate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostListingStartDate").hide(),$("#divPostListingEndDate").hide()):($("#featuredprices").hide(),$("#btnlistingPayment").text("Add Listing"),$("#divPostListingStartDate").show(),$("#divPostListingEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});UploadPictures();UploadDescPictures($("#txtPostListingDescription"));OnSavePostListing();window.asd=$(".SlectBox").SumoSelect({csvDispCount:3})}function OnSavePostListing(){$("#btnlistingPayment").off().on("click",function(){var n=[],o=$("#txttitle").val(),v=$("#txtsdescription").val(),y=htmlEncode($("#txtPostListingDescription").val()),s="",l,a,e;$("#ddPostListingCategory.SlectBox option:selected").each(function(){s+=$(this).val()+","});var p=$("#ddPostListingRegion").val(),t=$("#chkPostListingfeatured").is(":checked"),w=$("#hdn-jaxdesipics").val(),b=new Date($("#txtPostListingstartdate").val()),h="0.00",k=$("#txtAddress").val(),c=new Date($("#txtPostListingendtdate").val()),d=$("#UserID").val(),i=$("#txturl"),g=$("#txtName").val(),nt=$("#txtcemail").val(),tt=$("#txtPhone").val(),t=!0;t=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;t==!0&&(c=new Date($("#ActualExpirationDate").val()));var r=1,u=!0,f=1;return $("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?r=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(r=1),$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(f=1,u=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(f=2,u=$("#autorenew_page").is(":checked")),h=$("input[name='optionsRadios']:checked").attr("data-amt"),$("#txttitle").val().trim()==""&&n.push(" Please enter Title."),$("#ddPostListingCategory").val()==0&&n.push("Please select Category."),i.val()!=""&&(i.val().substring(0,4)=="www."&&i.val("http://www."+i.val().substring(4)),l=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,a=l.test(i.val()),a||n.push(" Please enter Valid Website.")),$("#txtPostListingDescription").val().trim()==""&&n.push(" Please enter Description."),t==!1&&($("#txtPostListingstartdate").val()==""&&n.push("Please select Start Date."),$("#txtPostListingendtdate").val()==""&&n.push("Please select End Date."),new Date($("#txtPostListingendtdate").val())<new Date($("#txtPostListingstartdate").val())&&n.push("Please select End Date later than Start Date.")),n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):(t==!1&&$("#myModal").modal("hide"),$("#notification").hide()),n.length==0?(e={ContextTypeID:4,Title:o,ShortDescription:v,Description:y,IsFeatured:t,CategoryID:s,RegionID:p,StartDate:b,ExpiryDate:c,UserID:d,ImageName:w,TimePeriodID:r,PageID:f,IsAutoRenew:u,Amount:h,Address:k,WebsiteUrl:i.val(),ContactName:g,ContactEmail:nt,ContactPhone:tt},ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:o},function(n){n==!0?t==!1?(AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/SavePostListingsInfo",e,function(n){AjaxStop();n&&(bootbox.alert("Post Listing information has been added successfully."),location.href=$("#AppRoot").val()+"#/")})):ajaxPost($("#AppRoot").val()+"Home/AddUrlData",{URLData:JSON.stringify(e),UserID:$("#UserID").val()},function(n){if(AjaxStop(),n){var t=n.split("$")[0],i=n.split("$")[1],r=urlEncode($("#SiteUrl").val()+"/#/OrderSummary/"+t);window.location=$("#PaymentUrl").val()+"/Shop/PaymentFrame?ReturnUrl="+r+"&CustomerID="+i}}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}),!1):void 0})}function UploadPictures(){$("#upload-files").show();$("#upload-files").fileinput({maxFileCount:20,maxFileSize:2048,allowedFileExtensions:["jpg","jpeg","gif","png","swf"],uploadUrl:"/ServiceHandlers/UploadFiles.ashx",uploadAsync:!1,showCaption:!1,browseLabel:"Browse Pictures...",showPreview:!0,maxImageWidth:180,maxImageHeight:120});$("#upload-files").on("filebatchselected",function(){$(".kv-fileinput-upload").trigger("click");$(".file-preview").show();$(".kv-fileinput-upload").hide()});$("#upload-files").on("fileloaded",function(){return!1});$("#upload-files").on("filebatchuploadsuccess",function(n,t){return!1});$(".file-preview").hide()}function UploadDescPictures(n){$("#upload-desc-files").show();$("#upload-desc-files").fileinput({maxFileCount:100,allowedFileExtensions:["jpg","jpeg","gif","png","swf"],uploadUrl:"/ServiceHandlers/UploadFiles.ashx",uploadAsync:!1,showCaption:!1,browseLabel:"Browse Pictures...",maxImageWidth:250,maxImageHeight:250});$("#upload-desc-files").on("filebatchselected",function(){$("#divImgDescription .kv-fileinput-upload").trigger("click");$("#divImgDescription .file-preview").show();$("#divImgDescription .kv-fileinput-upload").hide()});$("#upload-desc-files").on("fileloaded",function(){$("div.file-thumbnail-footer").hide()});$("#upload-desc-files").on("filebatchuploadsuccess",function(t,i){var f=i.form,e=i.files,o=i.extra,s=i.response,r="",u;i.response.length>0&&(u=Object.keys(i.response).map(function(n){return r+='<img src="/ServiceHandlers/ImgFileHandler.ashx?PhotoID=-1&FileName='+i.response[n].Name+'"  class="img-responsive">&nbsp;',i.response[n].Name}),$("#hdn-jaxdesidescpics").val(u.join(",")),$(n).val($(n).val()+r))});$("#divImgDescription .file-preview").hide()}function OnPostNewEvent(){$("#txtPostEventDescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtPostEventstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtPostEventendtdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#date_PostEventStartDate").on("click",function(){$("#txtPostEventstartdate").click()});$("#date_PostEventEndDate").on("click",function(){$("#txtPostEventendtdate").click()});UploadPictures();OnSavePostEvent()}function OnSavePostEvent(){$("#btnEventPost").off().on("click",function(){var n=[],i=$("#txttitle").val(),r=$("#txtEventVenue").val(),u=$("#txtPostEventDescription").val(),f=$("#ddPostEventCategory").val(),e=$("#ddPostEventRegion").val(),o=$("#hdn-jaxdesipics").val(),s=new Date($("#txtPostEventstartdate").val()),h=new Date($("#txtPostEventendtdate").val()),c=$("#UserID").val(),t;$("#txttitle").val().trim()==""&&n.push(" Please enter title.");$("#txtEventVenue").val().trim()==""&&n.push(" Please enter venue.");$("#txtPostEventDescription").val().trim()==""&&n.push(" Please enter Description.");$("#ddPostEventCategory").val()==0&&n.push("Please select Category.");$("#ddPostEventRegion").val()==0&&n.push("Please select Region.");$("#txtPostEventstartdate").val()==""&&n.push("Please select Start Date.");$("#txtPostEventendtdate").val()==""&&n.push("Please select End Date.");new Date($("#txtPostEventendtdate").val())<new Date($("#txtPostEventstartdate").val())&&n.push("Please select End Date later than Start Date.");n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(t={Title:i,Venue:r,Description:htmlEncode(u),CategoryID:f,RegionID:e,StartDate:s,ExpiryDate:h,CreatedBy:c,ImageName:o},AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/SavePostEventInfo",t,function(n){AjaxStop();n&&(bootbox.alert("Post Event information has been added successfully."),LoadContentPaneView($("#AppRoot").val()+"Home/Events"))}))})}function OnListingsLoad(){handleHeader("Listing");$(".btnSearch").off().on("click",function(){var r=$("#txtkey").val(),u=$("#keyvalue").val(),n=$("#txtcategory").find("option:selected").attr("data-parentkeyvalue"),t,i;$("#txtcategory").val()==0&&(n="");t=$("#txtcategory").val();i=$("#txtcity").val();LoadContentPaneView($("#AppRoot").val()+"Home/Listing?ParentCategoryKeyValue="+n+"&KeyValue="+u+"&IsFeatured=false&Keyword="+r+"&CategoryID="+t+"&RegionID="+i)});OnFeeListing()}function OnFeeListing(){var u=15,t="'FreeListing'",f=$("#number_of_items_freelisting").val(),e=Math.ceil(f/u),i=parseInt($("#current_page_freelisting").val()),n,r;for($("#show_per_page_freelisting").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".paginationFreeList").html(r);$(".paginationFreeList").find(".page_link .active").removeClass("active");$(".paginationFreeList").find(".page_link:eq("+i+")").addClass("active");$(".paginationFreeList").find(".page_link").css("display","none");$(".paginationFreeList").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnEventsLoad(){handleHeader("Events");$(".btnSearch").off().on("click",function(){var i=$("#txtkey").val(),r=$("#txtcategory").find("option:selected").attr("data-keyvalue"),n,t;$("#txtcategory").val()==0&&(parentkeyvalue="");n=$("#txtcategory").val();t=$("#txtcity").val();LoadContentPaneView($("#AppRoot").val()+"Home/Events?CategoryKeyValue="+r+"&Keyword="+i+"&CategoryID="+n+"&RegionID="+t)});HomePartialLoad();$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"});$("p img").addClass("img-responsive");$("pre img").addClass("img-responsive");OnEventsPagination()}function OnEventsPagination(){var u=10,t="'EventsPagination'",f=$("#number_of_items_event").val(),e=Math.ceil(f/u),i=parseInt($("#current_page_event").val()),n,r;for($("#show_per_page_event").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".Eventspagination").html(r);$(".Eventspagination").find(".page_link .active").removeClass("active");$(".Eventspagination").find(".page_link:eq("+i+")").addClass("active");$(".Eventspagination").find(".page_link").css("display","none");$(".Eventspagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnViewAllEventsLoad(){var u=5,t="'Events'",f=$("#number_of_items").val(),e=Math.ceil(f/u),i=parseInt($("#current_page").val()),n,r;for($("#show_per_page").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".pagination").html(r);$(".pagination").find(".page_link .active").removeClass("active");$(".pagination").find(".page_link:eq("+i+")").addClass("active");$(".pagination").find(".page_link").css("display","none");$(".pagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")});$(".btnSearch").off().on("click",function(){var n=$("#txtkey").val(),t=$("#txtcategory").val(),i=$("#txtcity").val();LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllEvents?Keyword="+n+"&CategoryID="+t+"&RegionID="+i)})}function OnViewAllListingsLoad(){var u=5,t="'Listings'",f=$("#number_of_items").val(),e=Math.ceil(f/u),i=parseInt($("#current_page").val()),n,r;for($("#show_per_page").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".pagination").html(r);$(".pagination").find(".page_link .active").removeClass("active");$(".pagination").find(".page_link:eq("+i+")").addClass("active");$(".pagination").find(".page_link").css("display","none");$(".pagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function first_previous(n){new_page=0;$(".pagination").find(".active").prev(".page_link").length>0&&go_to_page(new_page,n)}function previous(n){new_page=parseInt($("#current_page").val())-1;n=="FreeClassifieds"&&(new_page=parseInt($("#current_page_free").val())-1);n=="FreeListing"&&(new_page=parseInt($("#current_page_freelisting").val())-1);n=="FreeDeals"&&(new_page=parseInt($("#current_page_freedeals").val())-1);$(".pagination").find(".active").prev(".page_link").length>0&&go_to_page(new_page,n)}function next(n){new_page=parseInt($("#current_page").val())+1;n=="FreeClassifieds"&&(new_page=parseInt($("#current_page_free").val())+1);n=="FreeListing"&&(new_page=parseInt($("#current_page_freelisting").val())+1);n=="FreeDeals"&&(new_page=parseInt($("#current_page_freedeals").val())+1);n=="EventsPagination"&&(new_page=parseInt($("#current_page_event").val())+1);$(".pagination").find(".active").next(".page_link").length>0&&go_to_page(new_page,n)}function next_last(n,t){new_page=parseInt(n)-1;$(".pagination").find(".active").next(".page_link").length>0&&go_to_page(new_page,t)}function go_to_page(n,t){var u=parseInt($("#show_per_page").val()),a=parseInt($("#show_per_page_Featured").val()),o=parseInt($("#show_per_page_free").val()),s=parseInt($("#show_per_page_freelisting").val()),h=parseInt($("#show_per_page_freedeals").val()),c=parseInt($("#show_per_page_event").val()),i,r,l;if(start_from=n*u,end_on=start_from+u,t=="Events")i=$("#keyvalue").val(),LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllEvents?KeyValue="+i+"&PageNo="+(n+1)+"&PageSize="+u+"&CurrentRecord="+start_from);else if(t=="EventsPagination")start_from=n*c,i=$("#keyvalue").val(),$("#eventmodels").load("Home/EventsPartial?CategoryKeyValue="+i+"&PageNo="+(n+1)+"&PageSize="+c+"&CurrentRecord="+start_from,function(){OnEventsLoad()});else if(t=="Listings")i=$("#keyvalue").val(),r=$("#isfeatured").val(),LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllListings?KeyValue="+i+"&IsFeatured="+r+"&PageNo="+(n+1)+"&PageSize="+u+"&CurrentRecord="+start_from);else if(t=="FreeListing"){start_from=n*s;var e=$("#hdn-KeyValue").val(),f=$("#hdn-ParentKeyValue").val(),r=$("#isfeatured").val();$("#listingscontent").load("Home/ListingPartial?ParentCategoryKeyValue="+f+"&CategoryKeyValue="+e+"&IsFeatured=false&PageNo="+(n+1)+"&PageSize="+s+"&CurrentRecord="+start_from,function(){OnListingsLoad()})}else if(t=="Deals")i=$("#keyvalue").val(),r=$("#isfeatured").val(),LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllDeals?KeyValue="+i+"&IsFeatured="+r+"&PageNo="+(n+1)+"&PageSize="+u+"&CurrentRecord="+start_from);else if(t=="FreeDeals"){start_from=n*h;var i=$("#keyvalue").val(),f=$("#hdn-ParentKeyValue").val(),r=$("#isfeatured").val();$("#dbdealscontent").load("Home/DealsPartial?ParentCategoryKeyValue="+f+"&KeyValue="+i+"&IsFeatured=false&PageNo="+(n+1)+"&PageSize="+h+"&CurrentRecord="+start_from,function(){OnDealsLoad()})}else if(t=="Classifieds")i=$("#keyvalue").val(),r=$("#isfeatured").val(),LoadContentPaneView($("#AppRoot").val()+"Home/ViewAllClassifieds?KeyValue="+i+"&IsFeatured="+r+"&PageNo="+(n+1)+"&PageSize="+u+"&CurrentRecord="+start_from);else if(t=="FreeClassifieds"){start_from=n*o;var e=$("#hdn-KeyValue").val(),f=$("#hdn-ParentKeyValue").val(),r=$("#isfeatured").val();$("#tableclassified").load("Home/ClassifiedsPartial?ParentCategoryKeyValue="+f+"&CategoryKeyValue="+e+"&IsFeatured=false&PageNo="+(n+1)+"&PageSize="+o+"&CurrentRecord="+start_from,function(){OnClassifiedsLoad()})}else t=="MyOrders"&&(l=$("#UserID").val(),LoadContentPaneView($("#AppRoot").val()+"Account/MyOrders?UserID="+l+"&PageNo="+(n+1)+"&PageSize="+u+"&CurrentRecord="+start_from))}function OnViewAllClassifiedsLoad(){var u=5,t="'Classifieds'",f=$("#number_of_items").val(),e=Math.ceil(f/u),i=parseInt($("#current_page").val()),n,r;for($("#show_per_page").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".pagination").html(r);$(".pagination").find(".page_link .active").removeClass("active");$(".pagination").find(".page_link:eq("+i+")").addClass("active");$(".pagination").find(".page_link").css("display","none");$(".pagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnViewAllDealsLoad(){var u=5,t="'Deals'",f=$("#number_of_items").val(),e=Math.ceil(f/u),i=parseInt($("#current_page").val()),n,r;for($("#show_per_page").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".pagination").html(r);$(".pagination").find(".page_link .active").removeClass("active");$(".pagination").find(".page_link:eq("+i+")").addClass("active");$(".pagination").find(".page_link").css("display","none");$(".pagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnDealsLoad(){handleHeader("Deals");$(".btnSearch").off().on("click",function(){var t=$("#txtkey").val(),i=$("#txtcategory").find("option:selected").attr("data-keyvalue"),n;$("#txtcategory").val()==0&&(parentkeyvalue="");n=$("#txtcategory").val();LoadContentPaneView($("#AppRoot").val()+"Home/Deals?CategoryKeyValue="+i+"&Keyword="+t+"&CategoryID="+n)});HomePartialLoad();$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"});$("p img").addClass("img-responsive");$("pre img").addClass("img-responsive");OnFeeDeals()}function OnFeeDeals(){var u=15,t="'FreeDeals'",f=$("#number_of_items_freedeals").val(),e=Math.ceil(f/u),i=parseInt($("#current_page_freedeals").val()),n,r;for($("#show_per_page_freedeals").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".paginationFreedeals").html(r);$(".paginationFreedeals").find(".page_link .active").removeClass("active");$(".paginationFreedeals").find(".page_link:eq("+i+")").addClass("active");$(".paginationFreedeals").find(".page_link").css("display","none");$(".paginationFreedeals").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnClassifiedsLoad(){handleHeader("Classifieds");$(".btnSearch").off().on("click",function(){var f=$("#show_per_page").val(),r=$("#txtkey").val(),u=$("#keyvalue").val(),n=$("#txtcategory").find("option:selected").attr("data-parentkeyvalue"),t,i;$("#txtcategory").val()==0&&(n="");t=$("#txtcategory").val();i=$("#txtcity").val();LoadContentPaneView($("#AppRoot").val()+"Home/Classifieds?ParentCategoryKeyValue="+n+"&KeyValue="+u+"&IsFeatured=false&Keyword="+r+"&CategoryID="+t+"&RegionID="+i)});HomePartialLoad();$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"});$("p img").addClass("img-responsive");$("pre img").addClass("img-responsive");OnFeaturedClassified();OnFeeClassified()}function OnFeaturedClassified(){var u=5,t="'FeaturedClassifieds'",f=$("#number_of_items_Featured").val(),e=Math.ceil(f/u),i=parseInt($("#current_page_Featured").val()),n,r;for($("#show_per_page_Featured").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".paginationfeatured").html(r);$(".paginationfeatured").find(".page_link .active").removeClass("active");$(".paginationfeatured").find(".page_link:eq("+i+")").addClass("active");$(".paginationfeatured").find(".page_link").css("display","none");$(".paginationfeatured").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnFeeClassified(){var u=15,t="'FreeClassifieds'",f=$("#number_of_items_free").val(),e=Math.ceil(f/u),i=parseInt($("#current_page_free").val()),n,r;for($("#show_per_page_free").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".paginationfree").html(r);$(".paginationfree").find(".page_link .active").removeClass("active");$(".paginationfree").find(".page_link:eq("+i+")").addClass("active");$(".paginationfree").find(".page_link").css("display","none");$(".paginationfree").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")})}function OnGalleryLoad(){handleHeader("Gallery");$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"})}function OnContactLoad(){handleHeader("Contact")}function PostNewDeals(){$("#txtpostdealsdescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtpostdealsstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtpostdealsenddate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#post_dealsStartDate").on("click",function(){$("#txtpostdealsstartdate").click()});$("#post_dealsEndDate").on("click",function(){$("#txtpostdealsenddate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?$("#featuredprices").show():$("#featuredprices").hide()});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});UploadPictures();UploadDescPictures($("#txtpostdealsdescription"));OnPostSaveDeals()}function OnPostSaveDeals(){$("#btnPostDealsSave").off().on("click",function(){var n=[],s=$("#txtpostdealsTitle").val(),a=$("#txtpostdealsdescription").val(),v=$("#ddpostdealscategory").val(),y=$("#txtpostdealsstartdate").val(),p=$("#txtpostdealsenddate").val(),i=$("#chkpostdealsfeatured").is(":checked"),w=$("#UserID").val(),b=$("#hdn-jaxdesipics").val(),h="0.00",k=$("#txtDealshotdescription").val(),d=$("#txtDealAddress").val(),t=$("#txtDealurl"),g=$("#txtDealName").val(),nt=$("#txtDealemail").val(),tt=$("#txtDealPhone").val(),i=!0,r,c,l,o;i=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;r="";i==!0&&(r=new Date($("#ActualExpirationDate").val()));var u=1,f=!0,e=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?u=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(u=1);$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(e=1,f=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(e=2,f=$("#autorenew_page").is(":checked"));h=$("input[name='optionsRadios']:checked").attr("data-amt");$("#txtpostdealsTitle").val().trim()==""&&n.push(" Please enter Title.");t.val()!=""&&(t.val().substring(0,4)=="www."&&t.val("http://www."+t.val().substring(4)),c=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,l=c.test(t.val()),l||n.push(" Please enter Valid Website."));$("#txtpostdealsdescription").val().trim()==""&&n.push(" Please enter Description.");$("#txtpostdealsstartdate").val().trim()==""&&n.push(" Please select Start Date.");$("#ddpostdealscategory").val()==0&&n.push("Please select Category.");n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(o={ContextTypeID:2,Title:s,Description:htmlEncode(a),IsFeatured:i,CategoryID:v,StartDate:new Date(y),ExpiryDate:new Date(p),UserID:w,ImageName:b,TimePeriodID:u,PageID:e,IsAutoRenew:f,Amount:h,ShortDescription:k,Address:d,WebsiteUrl:t.val(),ContactName:g,ContactEmail:nt,ContactPhone:tt,FeaturedExpirationDate:r},ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:s},function(n){n==!0?i==!1?(AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/SavepostDeals",o,function(n){AjaxStop();n&&(bootbox.alert("Deal has been posted successfully."),location.href=$("#AppRoot").val()+"#/")})):ajaxPost($("#AppRoot").val()+"Home/AddUrlData",{URLData:JSON.stringify(o),UserID:$("#UserID").val()},function(n){if(AjaxStop(),n){var t=n.split("$")[0],i=n.split("$")[1],r=urlEncode($("#SiteUrl").val()+"/#/OrderSummary/"+t);window.location=$("#PaymentUrl").val()+"/Shop/PaymentFrame?ReturnUrl="+r+"&CustomerID="+i}}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function UploadPictures(){$("#upload-files").show();$("#upload-files").fileinput({maxFileCount:20,maxFileSize:2048,allowedFileExtensions:["jpg","jpeg","gif","png","swf"],minImageWidth:250,minImageHeight:250,uploadUrl:"/ServiceHandlers/UploadFiles.ashx",uploadAsync:!1,showCaption:!1,browseLabel:"Browse Thumbnails..."});$("#upload-files").on("filebatchselected",function(){$(".kv-fileinput-upload").trigger("click");$(".file-preview").show();$(".kv-fileinput-upload").hide()});$("#upload-files").on("fileloaded",function(){$("div.file-thumbnail-footer").hide()});$("#upload-files").on("filebatchuploadsuccess",function(n,t){var r=t.form,u=t.files,f=t.extra,e=t.response,i;t.response.length>0&&(i=Object.keys(t.response).map(function(n){return t.response[n].Name}),$("#hdn-jaxdesipics").val(i.join(",")))});$(".file-preview").hide()}function PostNewClassifieds(){$("#txtpostClassifieddescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtpostClassifiedstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtpostClassifiedenddate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#post_ClassifiedStartDate").on("click",function(){$("#txtpostClassifiedstartdate").click()});$("#post_ClassifiedEndDate").on("click",function(){$("#txtpostClassifiedenddate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostClassifiedStartDate").hide(),$("#divPostClassifiedEndDate").hide()):($("#featuredprices").hide(),$("#divPostClassifiedStartDate").show(),$("#divPostClassifiedEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});UploadPictures();UploadDescPictures($("#txtpostClassifieddescription"));OnPostSaveClassifieds()}function OnPostSaveClassifieds(){$("#btnPostClassifiedsSave").off().on("click",function(){var n=[],o=$("#txtpostClassifiedTitle").val(),a=$("#txtpostClassifiedPrice").val(),v=$("#txtpostClassifieddescription").val(),y=$("#txtshotdescription").val(),t=$("#chkpostClassifiedfeatured").is(":checked"),p=new Date($("#txtpostClassifiedstartdate").val()),s=new Date($("#txtpostClassifiedenddate").val()),w=$("#ddpostClassifiedcategory").val(),b=$("#ddpostClassifiedRegion").val(),k=$("#hdn-jaxdesipics").val(),d=$("#UserID").val(),h="0.00",g=$("#txtClassifiedAddress").val(),i=$("#txtClassifiedurl"),nt=$("#txtClassifiedName").val(),tt=$("#txtClassifiedemail").val(),it=$("#txtClassifiedPhone").val(),t=!0,c,l,e;t=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;t==!0&&(s=new Date($("#ActualExpirationDate").val()));var r=1,u=!0,f=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?r=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(r=1);$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(f=1,u=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(f=2,u=$("#autorenew_page").is(":checked"));h=$("input[name='optionsRadios']:checked").attr("data-amt");$("#txtpostClassifiedTitle").val().trim()==""&&n.push(" Please enter Title.");$("#ddpostClassifiedcategory").val()==0&&n.push("Please select Category.");i.val()!=""&&(i.val().substring(0,4)=="www."&&i.val("http://www."+i.val().substring(4)),c=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,l=c.test(i.val()),l||n.push(" Please enter Valid Website."));$("#txtpostClassifieddescription").val().trim()==""&&n.push(" Please enter Description.");t==!0;t==!1&&($("#txtpostClassifiedstartdate").val()==""&&n.push("Please select Start Date."),$("#txtpostClassifiedenddate").val()==""&&n.push("Please select End Date."),new Date($("#txtpostClassifiedenddate").val())<new Date($("#txtpostClassifiedstartdate").val())&&n.push("Please select End Date later than Start Date."));n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(e={ContextTypeID:1,Title:o,Price:a,Description:htmlEncode(v),IsFeatured:t,CategoryID:w,RegionID:b,StartDate:p,ExpiryDate:s,UserID:d,ImageName:k,TimePeriodID:r,PageID:f,IsAutoRenew:u,Amount:h,ShortDescription:y,ContactName:nt,ContactEmail:tt,ContactPhone:it,Address:g,WebsiteUrl:i.val()},ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:o},function(n){n==!0?t==!1?(AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/SavepostClassifieds",e,function(n){AjaxStop();n&&(bootbox.alert("Classified has been added successfully."),location.href=$("#AppRoot").val()+"#/")})):ajaxPost($("#AppRoot").val()+"Home/AddUrlData",{URLData:JSON.stringify(e),UserID:$("#UserID").val()},function(n){if(AjaxStop(),n){var t=n.split("$")[0],i=n.split("$")[1],r=urlEncode($("#SiteUrl").val()+"/#/OrderSummary/"+t);window.location=$("#PaymentUrl").val()+"/Shop/PaymentFrame?ReturnUrl="+r+"&CustomerID="+i}}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function PostNewAdvertisement(){$("#txtpostAdvertisementsStartDate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtpostAdvertisementsEndDate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#post_AdvertisementsStartDate").on("click",function(){$("#txtpostAdvertisementsStartDate").click()});$("#post_AdvertisementsEndDate").on("click",function(){$("#txtpostAdvertisementsEndDate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostAdvertisementsStartDate").hide(),$("#divPostAdvertisementsEndDate").hide()):($("#featuredprices").hide(),$("#divPostAdvertisementsStartDate").show(),$("#divPostAdvertisementsEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").text(u)}else{n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").text(u)}});$("#chkorganizationlink").on("click",function(){$(this).is(":checked")==!0?$("#divadurl").show():$("#divadurl").hide()});$("#chkEnterCustomerText").on("click",function(){$(this).is(":checked")==!0?$("#divcustomertext").show():$("#divcustomertext").hide()});UploadPictures();OnPostSaveAdvertisements()}function OnNonProfitLoad(){$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"});$("p img").addClass("img-responsive");$("pre img").addClass("img-responsive")}function OnPostSaveAdvertisements(){$("#ttpostUpdateUserSaveBtn").off().click(function(){var n=[],e=$("#txtpostAdvertisementTitle").val(),y=new Date($("#txtpostAdvertisementsStartDate").val()),o=new Date($("#txtpostAdvertisementsEndDate").val()),k=$("#ddAdvertisementsPlacement").val(),p=$("#hdn-jaxdesipics").val(),w=$("#UserID").val(),i=!0,s="0.00",h=$("#chkorganizationlink").is(":checked"),t=$("#txtadorgurl"),b=$("#chkEnterCustomerText").is(":checked"),c="",u,r,l,a,v,f;c=$("#chkorganizationlink").is(":checked")==!0?t.val():"";u="";u=$("#chkEnterCustomerText").is(":checked")==!0?$("#txtEnterCustomer").val():"";r=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?r=2:$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"&&(r=1);l=$("#autorenew").is(":checked");i==!0&&(o=new Date($("#ActualExpirationDate").val()));s=$("input[name='optionsRadios']:checked").attr("data-amt");$("#txtpostAdvertisementTitle").val().trim()==""&&n.push(" Please enter Title.");h==!0&&(t.val().substring(0,4)=="www."&&t.val("http://www."+t.val().substring(4)),a=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,v=a.test(t.val()),v||n.push(" Please enter Valid Url."),$("#chkEnterCustomerText").is(":checked")==!1||$("#txtEnterCustomer").val().trim()==""&&n.push(" Please enter Customer Text."));i==!1&&($("#txtpostAdvertisementsStartDate").val()==""&&n.push("Please select Start Date."),$("#txtpostAdvertisementsEndDate").val()==""&&n.push("Please select End Date."),new Date($("#txtpostAdvertisementsEndDate").val())<new Date($("#txtpostAdvertisementsStartDate").val())&&n.push("Please select End Date later than Start Date."));n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(f={ContextTypeID:6,Title:e,Placement:2,StartDate:y,ExpiryDate:o,UserID:w,ImageName:p,IsFeatured:i,IsAutoRenew:l,TimePeriodID:r,Amount:s,OrgUrl:c,IsExternalLink:h,IsCustomText:b,CustomText:u},AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:e},function(n){n==!0?i==!1?ajaxPost($("#AppRoot").val()+"Account/SavepostAdvertisement",f,function(n){AjaxStop();n&&(bootbox.alert("Advertisement has been added successfully."),window.location.href="#/")}):ajaxPost($("#AppRoot").val()+"Home/AddUrlData",{URLData:JSON.stringify(f),UserID:$("#UserID").val()},function(n){if(AjaxStop(),n){var t=n.split("$")[0],i=n.split("$")[1],r=urlEncode($("#SiteUrl").val()+"/#/OrderSummary/"+t);window.location=$("#PaymentUrl").val()+"/Shop/PaymentFrame?ReturnUrl="+r+"&CustomerID="+i}}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function OnLoginLoad(){$("#btnTTRegister").off("click").on("click",OnTTRegistration);$("#ttNewUserSaveBtn").off("click").on("click",OnTTNewUserSaveChanges);$("#btnTTLogin").off("click").on("click",OnTTLogin);$("#FacebookConnect").off("click").on("click",OnFacebookConnect);$("#btnTTForgotPassword").off("click").on("click",OnTTForgotPasswordReset);$("#tt_loginpassword").keypress(function(n){n.which==13&&$("#btnTTLogin").click()})}function OnTTRegistration(){$("#ttNewUserModal").modal("show")}function OnTTNewUserSaveChanges(){if($("#ttNewUserErrorsContainer").css("display","none"),ResetFormErros(),$("#tt_txtFirstName").val().trim()!=""&&$("#tt_txtLastName").val().trim()!=""&&$("#tt_txtEmail").val().trim()!=""&&IsValidEmail($("#tt_txtEmail").val().trim())&&$("#tt_agree").is(":checked")&&$("#tt_password").val().trim()!=""&&$("#tt_password").val().trim()==$("#tt_passwordconfirm").val().trim()&&IsValidPassword($("#tt_password").val().trim())){$("#ttNewUserSaveBtn").attr("disabled",!0);var n={SignUpType:1,FirstName:$("#tt_txtFirstName").val().trim(),LastName:$("#tt_txtLastName").val().trim(),Email:$("#tt_txtEmail").val().trim(),PhoneNumber:$("#tt_txtPhoneNumber").val().trim(),RegionID:$("#ddRegionID").val(),UserName:$("#tt_txtEmail").val().trim(),Password:$("#tt_password").val().trim(),StatesID:$("#tt_statesid").val().trim(),City:$("#tt_txtcity").val().trim()};ajaxPost($("#AppRoot").val()+"Account/SaveRegistration",n,OnSaveRegistration)}else ResetFormErros(),$("#tt_txtFirstName").val().trim()==""&&$("#tt_txtFirstName").addClass("text-danger"),$("#tt_txtLastName").val().trim()==""&&$("#tt_txtLastName").addClass("text-danger"),$("#tt_txtEmail").val().trim()!=""&&IsValidEmail($("#tt_txtEmail").val().trim())||$("#tt_txtEmail").addClass("text-danger"),$("#tt_password").val().trim()!=""&&$("#tt_password").val().trim()==$("#tt_passwordconfirm").val().trim()&&IsValidPassword($("#tt_password").val().trim())||($("#tt_password").addClass("text-danger"),$("#tt_passwordconfirm").addClass("text-danger")),HighlightFormErros(),$("#ttNewUserErrorsContainer").css("display","block")}function OnSaveRegistration(n){if(n.Status){if($("#ttNewUserModal").modal("hide"),$(".modal-backdrop").remove(),bootbox.alert(n.Message),AuthSuccess(n),n.Context!=null&&$("#LoginTargetView").val()=="Forum"){var t=$("#SiteLogo").val(),i=$("#SiteUrl").val();window.location.href=$("#ForumURL").val()+"?Username="+urlEncode($("#EncryptUsernam").val())+"&Password="+urlEncode($("#Encryptpassword").val())+"&SiteLogo="+t+"&SiteUrl="+i}window.location.href="#/"+$("#LoginTargetView").val()}else bootbox.alert(n.Message),$("#ttNewUserSaveBtn").attr("disabled",!1)}function AuthSuccess(n){$("#UserID").val(n.ID);$("#divLogin").css("display","none");$("#authcontainer").css("display","block");$("#lblUserName").text(n.Context.split("$")[0]);$("#featuredid").val(n.Context.split("$")[1]);$("#EncryptUsernam").val(n.Context.split("$")[2]);$("#Encryptpassword").val(n.Context.split("$")[3]);$("#li_forum").off("click").on("click",function(){var n=$("#SiteLogo").val(),t=$("#SiteUrl").val();url=$("#ForumURL").val()+"?Username="+urlEncode($("#EncryptUsernam").val())+"&Password="+urlEncode($("#Encryptpassword").val())+"&SiteLogo="+n+"&SiteUrl="+t;window.location.href=url})}function LogOutClick(){ajaxGet($("#AppRoot").val()+"Account/LogOut",undefined,OnLogOut)}function OnLogOut(){$("#UserID").val("");$("#divLogin").css("display","block");$("#authcontainer").css("display","none");$("#lblUserName").text("");window.location.href="#/";bootbox.alert("You have been logged out successfully.",function(){window.location.href="#/"})}function OnTTLogin(){if($("#tt_loginemail").val().trim()==""||$("#tt_loginpassword").val()=="")bootbox.alert("Please enter email address and password to login.");else{var n={userName:$("#tt_loginemail").val().trim(),signUpType:1,password:$("#tt_loginpassword").val()};ajaxPost($("#AppRoot").val()+"Account/VerifyUserLogin",n,OnTTVerifyUserLoginRequest)}}function OnTTVerifyUserLoginRequest(n){if(n.ID==-1)bootbox.alert(n.Message);else if(AuthSuccess(n),$("#LoginTargetViewParam").val()=="MvcForum"){var t=$("#SiteLogo").val(),i=$("#SiteUrl").val();window.location.href=$("#ForumURL").val()+"?Username="+urlEncode($("#EncryptUsernam").val())+"&Password="+urlEncode($("#Encryptpassword").val())+"&SiteLogo="+t+"&SiteUrl="+i}else window.location.href=$("#LoginTargetViewParam").val()!=""?"#/"+$("#LoginTargetView").val()+"/"+$("#LoginTargetViewParam").val():"#/"+$("#LoginTargetView").val()}function OnTTForgotPasswordReset(){$("#forgotPasswordModal").modal("show");$("#ttSendForgotPasswordBtn").off("click").on("click",function(){if($("#tt_forgotpasswordemail").val().trim()=="")bootbox.alert("Please enter E-Mail address to reset and send password.");else{var n={UserName:$("#tt_forgotpasswordemail").val().trim(),SignUpType:1};ajaxPost($("#AppRoot").val()+"Account/ForgotPasswordReset",n,OnTTForgotPasswordResetComplete)}})}function OnTTForgotPasswordResetComplete(n){n.Status?($("#forgotPasswordModal").modal("hide"),bootbox.alert(n.Message)):bootbox.alert(n.Message)}function OnSubscribeEmail(n){n.Status?(bootbox.alert(n.Message),$("#subscription-email-text-field").val("")):bootbox.alert(n.Message)}function OnFacebookConnect(){FB.login(function(n){n.authResponse?FB.api("/me",function(n){var t={userName:n.id,signUpType:2,password:""},i={email:n.email,first_name:n.first_name,last_name:n.last_name,id:n.id};ajaxPost($("#AppRoot").val()+"Account/VerifyUserLogin",t,OnFBVerifyUserLoginRequest,undefined,i)}):console.log("User cancelled login or did not fully authorize.")},{scope:"public_profile,email"})}function UpdateAccount(){$("#ttUpdateUserSaveBtn").off().on("click",function(){var n=[],i=$("#tt_txtupdateFirstName").val(),r=$("#tt_txtupdateLastName").val(),u=$("#tt_txtupdateEmail").val(),f=$("#tt_txtupdatePhoneNumber").val(),h=$("#ddRegion").val(),e=$("#UserID").val(),o=$("#tt_statesid").val(),s=$("#tt_txtcity").val(),t;$("#tt_txtupdateFirstName").val().trim()==""&&n.push(" Please enter FirstName.");$("#tt_txtupdateLastName").val().trim()==""&&n.push(" Please enter LastName.");$("#tt_txtupdateEmail").val()==0&&n.push("Please select EmailID.");n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(t={UserID:e,SignUpType:1,FirstName:i,LastName:r,Email:u,PhoneNumber:f,StatesID:o,City:s},AjaxStart(),ajaxPost($("#AppRoot").val()+"Account/UpdateMyAccount",t,function(n){AjaxStop();n&&(bootbox.alert("Account updated Sucessfully"),window.location.href="#/",$("#tt_txtupdateEmail").val()!=$("#tt_txtupdateEmail").attr("data-email")&&LogOutClick())}))})}function UpdatePassword(){$("#ttUpdatepasswordeBtn").off().on("click",function(){var n=[],t=$("#input_updatepassword").val(),u=$("#input_updatepasswordconfirm").val(),i=$("#UserID").val(),r;$("#input_updatepassword").val().trim()==""&&n.push(" Please enter Password.");$("#input_updatepasswordconfirm").val().trim()==""&&n.push(" Please enter ConfirmPassword.");$("#input_updatepassword").val()==$("#input_updatepasswordconfirm").val()&&IsValidPassword($("#input_updatepassword").val())||n.push("Password should have at least one number, one lowercase, one uppercase letter, six characters that are letters, numbers or the underscore.");n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(r={UserID:i,Password:t},AjaxStart(),ajaxPost($("#AppRoot").val()+"Account/UpdatePassword",{Password:$("#input_updatepassword").val(),UserID:$("#UserID").val()},function(n){AjaxStop();n&&(bootbox.alert("Password updated Sucessfully"),window.location.href="#/")}))})}function OnMyOrdersLoad(){var u=10,t="'MyOrders'",f=$("#number_of_items").val(),e=Math.ceil(f/u),i=parseInt($("#current_page").val()),n,r;for($("#show_per_page").val(u),n=0,r='<li class="first_previous_link"><a href="javascript:first_previous('+t+');">|&lt;<\/a><\/li><li class="previous_link"><a href="javascript:previous('+t+');">&lt;<\/a><\/li>';e>n;)r+='<li class="page_link" longdesc="'+n+'"><a href="javascript:go_to_page('+n+","+t+')">'+(n+1)+"<\/a><\/li>",n++;r+='<li class="next_link"><a href="javascript:next('+t+');">&gt;<\/a><\/li><li class="next_last_link"><a href="javascript:next_last('+n+","+t+');">&gt;|<\/a><\/li>';$(".pagination").html(r);$(".pagination").find(".page_link .active").removeClass("active");$(".pagination").find(".page_link:eq("+i+")").addClass("active");$(".pagination").find(".page_link").css("display","none");$(".pagination").each(function(){$(this).find(".page_link").slice(parseInt(i)-i%3,parseInt(i)-i%3+3).css("display","inline")});$(".btnOrderDelete").off().on("click",function(){var n=$(this).attr("data-id"),t=$(this).attr("data-value");ajaxPost($("#AppRoot").val()+"Account/MyOrderDelete",{ContextID:n,ContextTypeID:t},function(n){if(n){bootbox.alert("Order has been Deleted successfully");var t=parseInt($("#current_page").val());go_to_page(t,"MyOrders")}})});$(".btnOrderEdit").off().on("click",function(){var i=$(this).attr("data-id"),n=$(this).attr("data-value"),t=$(this).attr("data-keyvalue");n==1?LoadContentPaneView($("#AppRoot").val()+"Home/EditClassified?KeyValue="+t):n==2?LoadContentPaneView($("#AppRoot").val()+"Home/EditDelas?KeyValue="+t):n==4?LoadContentPaneView($("#AppRoot").val()+"Home/EditListings?KeyValue="+t):n==6&&LoadContentPaneView($("#AppRoot").val()+"Home/EditAdvertisement?KeyValue="+t)})}function OnEditClassified(){$("#txtpostClassifieddescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtpostClassifiedstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtpostClassifiedenddate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#post_ClassifiedStartDate").on("click",function(){$("#txtpostClassifiedstartdate").click()});$("#post_ClassifiedEndDate").on("click",function(){$("#txtpostClassifiedenddate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostClassifiedStartDate").hide(),$("#divPostClassifiedEndDate").hide()):($("#featuredprices").hide(),$("#divPostClassifiedStartDate").show(),$("#divPostClassifiedEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});OnEditPictures();$("#btnPostClassifiedsSave").off().on("click",function(){var l=$(this).attr("data-postid"),n=[],e=$("#txtpostClassifiedTitle").val(),a=$("#txtpostClassifiedPrice").val(),v=$("#txtpostClassifieddescription").val(),y=$("#txtshotdescription").val(),t=$("#chkpostClassifiedfeatured").is(":checked"),p=new Date($("#txtpostClassifiedstartdate").val()),o=new Date($("#txtpostClassifiedenddate").val()),w=$("#ddpostClassifiedcategory").val(),b=$("#ddpostClassifiedRegion").val(),k=$("#hdn-jaxdesipics").val(),d=$("#UserID").val(),g=$("#txtClassifiedAddress").val(),i=$("#txtClassifiedurl"),nt=$("#txtClassifiedName").val(),tt=$("#txtClassifiedemail").val(),it=$("#txtClassifiedPhone").val(),t=!0,s,h,c;t=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;t==!0&&(o=new Date($("#ActualExpirationDate").val()));var r=1,u=!0,f=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?r=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(r=1);$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(f=1,u=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(f=2,u=$("#autorenew_page").is(":checked"));$("#txtpostClassifiedTitle").val().trim()==""&&n.push(" Please enter Title.");$("#ddpostClassifiedcategory").val()==0&&n.push("Please select Category.");i.val()!=""&&(i.val().substring(0,4)=="www."&&i.val("http://www."+i.val().substring(4)),s=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,h=s.test(i.val()),h||n.push(" Please enter Valid Website."));$("#txtpostClassifieddescription").val().trim()==""&&n.push(" Please enter Description.");t==!0;t==!1&&($("#txtpostClassifiedstartdate").val()==""&&n.push("Please select Start Date."),$("#txtpostClassifiedenddate").val()==""&&n.push("Please select End Date."),new Date($("#txtpostClassifiedenddate").val())<new Date($("#txtpostClassifiedstartdate").val())&&n.push("Please select End Date later than Start Date."));n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(c={ClassifiedID:l,Title:e,Price:a,Description:htmlEncode(v),IsFeatured:t,CategoryID:w,RegionID:b,StartDate:p,ExpiryDate:o,UserID:d,ImageName:k,TimePeriodID:r,PageID:f,IsAutoRenew:u,ShortDescription:y,ContactName:nt,ContactEmail:tt,ContactPhone:it,Address:g,WebsiteUrl:i.val()},ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:e},function(n){n==!0?ajaxPost($("#AppRoot").val()+"Home/SaveEditClassifieds",c,function(n){AjaxStop();n&&(bootbox.alert("Classified has been updated successfully."),location.href=$("#AppRoot").val()+"#/Classifieds")}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))});UploadDescPictures($("#txtpostClassifieddescription"))}function OnEditListing(){$("#txtPostListingDescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtPostListingstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtPostListingendtdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#date_PostListingStartDate").on("click",function(){$("#txtPostListingstartdate").click()});$("#date_PostListingEndDate").on("click",function(){$("#txtPostListingendtdate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostListingStartDate").hide(),$("#divPostListingEndDate").hide()):($("#featuredprices").hide(),$("#divPostListingStartDate").show(),$("#divPostListingEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});OnEditPictures();UploadDescPictures($("#txtPostListingDescription"));OnSaveEdittListing();window.asd=$(".SlectBox").SumoSelect({csvDispCount:3})}function OnSaveEdittListing(){$("#btnEditlisting").off().on("click",function(){var n=[],a=$(this).attr("data-listid"),e=$("#txttitle").val(),v=$("#txtPostListingDescription").val(),o="",h,c,l;$("#ddPostListingCategory.SlectBox option:selected").each(function(){o+=$(this).val()+","});var y=$("#ddPostListingRegion").val(),i=$("#chkPostListingfeatured").is(":checked"),p=$("#hdn-jaxdesipics").val(),w=new Date($("#txtPostListingstartdate").val()),s=new Date($("#txtPostListingendtdate").val()),b=$("#UserID").val(),k=$("#txtAddress").val(),t=$("#txturl"),d=$("#txtName").val(),g=$("#txtcemail").val(),nt=$("#txtPhone").val(),i=!0;i=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;i==!0&&(s=new Date($("#ActualExpirationDate").val()));var r=1,u=!0,f=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?r=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(r=1);$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(f=1,u=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(f=2,u=$("#autorenew_page").is(":checked"));$("#txttitle").val().trim()==""&&n.push(" Please enter title.");$("#ddPostListingCategory").val()==0&&n.push("Please select Category.");t.val()!=""&&(t.val().substring(0,4)=="www."&&t.val("http://www."+t.val().substring(4)),h=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,c=h.test(t.val()),c||n.push(" Please enter Valid Website."));$("#txtPostListingDescription").val().trim()==""&&n.push(" Please enter Description.");i==!1&&($("#txtPostListingstartdate").val()==""&&n.push("Please select Start Date."),$("#txtPostListingendtdate").val()==""&&n.push("Please select End Date."),new Date($("#txtPostListingendtdate").val())<new Date($("#txtPostListingstartdate").val())&&n.push("Please select End Date later than Start Date."));n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(l={ID:a,Title:e,Description:htmlEncode(v),IsFeatured:i,CategoryID:o,RegionID:y,StartDate:w,ExpiryDate:s,UserID:b,ImageName:p,TimePeriodID:r,PageID:f,IsAutoRenew:u,Address:k,WebsiteUrl:t.val(),ContactName:d,ContactEmail:g,ContactPhone:nt},AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:e},function(n){n==!0?ajaxPost($("#AppRoot").val()+"Home/SaveEditListingsInfo",l,function(n){AjaxStop();n&&(bootbox.alert("Listing has been Updated successfully."),location.href=$("#AppRoot").val()+"#/Listing")}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function OnEditDeal(){$("#txtpostdealsdescription").redactor({autoresize:!1,imageUpload:$("#AppRoot").val()+"ServiceHandlers/ImageHandler.ashx",plugins:["imagemanager"]});$("#txtpostdealsstartdate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#txtpostdealsenddate").datetimepicker({format:"MM/DD/YYYY"}).on("dp.change",function(){$(this).blur()});$("#post_dealsStartDate").on("click",function(){$("#txtpostdealsstartdate").click()});$("#post_dealsEndDate").on("click",function(){$("#txtpostdealsenddate").click()});$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?$("#featuredprices").show():$("#featuredprices").hide()});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}else if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"){n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").val(u)}});OnEditPictures();UploadDescPictures($("#txtpostdealsdescription"));OnSaveEditDeals()}function OnSaveEditDeals(){$("#btnEditDealsSave").off().on("click",function(){var n=[],l=$(this).attr("data-dealid"),o=$("#txtpostdealsTitle").val(),a=$("#txtpostdealsdescription").val(),v=$("#ddpostdealscategory").val(),y=$("#txtpostdealsstartdate").val(),p=$("#txtpostdealsenddate").val(),i=$("#chkpostdealsfeatured").is(":checked"),w=$("#UserID").val(),b=$("#hdn-jaxdesipics").val(),k=$("#txtDealshotdescription").val(),d=$("#txtDealAddress").val(),t=$("#txtDealurl"),g=$("#txtDealName").val(),nt=$("#txtDealemail").val(),tt=$("#txtDealPhone").val(),i=!0,r,s,h,c;i=$("input[name='adtype']:checked").attr("id")=="adtype-featured"?!0:!1;r="";i==!0&&(r=new Date($("#ActualExpirationDate").val()));var u=1,f=!0,e=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4"?u=2:($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2")&&(u=1);$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?(e=1,f=$("#autorenew_home").is(":checked")):($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios2"||$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios4")&&(e=2,f=$("#autorenew_page").is(":checked"));$("#txtpostdealsTitle").val().trim()==""&&n.push(" Please enter Title.");t.val()!=""&&(t.val().substring(0,4)=="www."&&t.val("http://www."+t.val().substring(4)),s=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,h=s.test(t.val()),h||n.push(" Please enter Valid Website."));$("#txtpostdealsdescription").val().trim()==""&&n.push(" Please enter Description.");$("#txtpostdealsstartdate").val().trim()==""&&n.push(" Please select Start Date.");$("#txtpostdealsenddate").val().trim()==""&&new Date($("#txtpostdealsenddate").val())<new Date($("#txtpostdealsstartdate").val());$("#ddpostdealscategory").val()==0&&n.push("Please select Category.");n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(c={DealID:l,Title:o,Description:htmlEncode(a),IsFeatured:i,CategoryID:v,StartDate:new Date(y),ExpiryDate:new Date(p),UserID:w,ImageName:b,TimePeriodID:u,PageID:e,IsAutoRenew:f,ShortDescription:k,ContactName:g,ContactEmail:nt,ContactPhone:tt,Address:d,WebsiteUrl:t.val(),FeaturedExpirationDate:r},AjaxStart(),ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:o},function(n){n==!0?ajaxPost($("#AppRoot").val()+"Home/SaveEditDeals",c,function(n){AjaxStop();n&&(bootbox.alert("Deal has been Updated successfully."),location.href=$("#AppRoot").val()+"#/Deals")}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function OnEditPictures(){$("#upload-files").fileinput({maxFileCount:3,allowedFileExtensions:["jpg","jpeg","gif","png","swf"],uploadUrl:$("#AppRoot").val()+"ServiceHandlers/UploadFiles.ashx",uploadAsync:!1,showCaption:!1,browseLabel:"Browse Images...",footer:{}});$("#upload-files").on("filebatchselected",function(){$(".kv-fileinput-upload").trigger("click");$(".file-preview","#upload-new-pics").show();$(".kv-fileinput-upload").hide()});$("#upload-files").on("fileloaded",function(){$("div.file-thumbnail-footer").hide()});var n=[];$("button.remove-exist-file").each(function(){n.push($(this).attr("data-filename"))});n.length==3&&$("#upload-new-pics").hide();$(".file-preview","#upload-new-pics").hide();$("button.remove-exist-file").off("click").on("click",function(){$("#preview_"+$(this).attr("data-fileid")).remove();n.splice($.inArray($(this).attr("data-filename"),n),1);n.length==0&&$("#exist-pics-sec").remove();$("#upload-new-pics").show();$("#hdn-jaxdesipics").val(n.join(","))});$("#upload-files").on("filebatchuploadsuccess",function(t,i){var u=i.form,f=i.files,e=i.extra,o=i.response,r;if(i.response.length>0){for(r=0;r<i.response.length;r++)n.push(i.response[r].Name);$("#hdn-jaxdesipics").val(n.join(","))}})}function OnEditAdvertisement(){$("input[name='adtype']").change(function(){$("input[name='adtype']:checked").attr("id")=="adtype-featured"?($("#featuredprices").show(),$("#divPostAdvertisementsStartDate").hide(),$("#divPostAdvertisementsEndDate").hide()):($("#featuredprices").hide(),$("#divPostAdvertisementsStartDate").show(),$("#divPostAdvertisementsEndDate").show())});$("input[name='optionsRadios']").change(function(){var n;if($("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"){n=new Date;n.setDate(n.getDate()+30);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").text(u)}else{n=new Date;n.setDate(n.getDate()+365);var t=n.getMonth()+1,i=n.getDate(),r=n.getFullYear(),u=t+"/"+i+"/"+r;$("#ActualExpirationDate").text(u)}});$("#chkEnterCustomerText").on("click",function(){$(this).is(":checked")==!0?$("#divcustomertext").show():$("#divcustomertext").hide()});$("#chkorganizationlink").on("click",function(){$(this).is(":checked")==!0?$("#divadurl").show():$("#divadurl").hide()});OnEditPictures();OnSaveEditAdvertisement()}function OnSaveEditAdvertisement(){$("#btnSaveEditAdvertisement").off().click(function(){var v=$(this).attr("data-id"),n=[],u=$("#txtpostAdvertisementTitle").val(),y=new Date,f=new Date($("#ActualExpirationDate").val()),p=$("#hdn-jaxdesipics").val(),w=$("#UserID").val(),e=!0,o=$("#chkorganizationlink").is(":checked"),t=$("#txtadorgurl"),b=$("#chkEnterCustomerText").is(":checked"),s="",r,i,h,c,l,a;s=$("#chkorganizationlink").is(":checked")==!0?t.val():"";r="";r=$("#chkEnterCustomerText").is(":checked")==!0?$("#txtEnterCustomer").val():"";i=1;$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios3"?i=2:$("input[name='optionsRadios']:checked").attr("id")=="optionsRadios1"&&(i=1);h=$("#autorenew").is(":checked");e==!0&&(f=new Date($("#ActualExpirationDate").val()));$("#chkEnterCustomerText").is(":checked")==!1||$("#txtEnterCustomer").val().trim()==""&&n.push(" Please enter Customer Text.");$("#txtpostAdvertisementTitle").val().trim()==""&&n.push(" Please enter Title.");o==!0&&(t.val().substring(0,4)=="www."&&t.val("http://www."+t.val().substring(4)),c=/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/,l=c.test(t.val()),l||n.push(" Please enter Valid Url."));n.length>0?($("#notification p").html(n.join("<br>")),$("#notification").show()):$("#notification").hide();n.length==0&&(a={AdID:v,Title:u,Placement:2,StartDate:y,ExpiryDate:f,UserID:w,ImageName:p,IsFeatured:e,IsAutoRenew:h,TimePeriodID:i,OrgUrl:s,IsExternalLink:o,IsCustomText:b,CustomText:r},ajaxPost($("#AppRoot").val()+"Home/ValidateText",{Title:u},function(n){n==!0?ajaxPost($("#AppRoot").val()+"Home/SaveEditAdvertisement",a,function(n){AjaxStop();n&&(bootbox.alert("Advertisement has been Updated successfully."),window.location.href="#/")}):($("#notification p").html("The text appears to have some obscene words and have to be corrected before saving. There is a possibility of your account being deactivated."),$("#notification").show())}))})}function OnDetailsLoad(){$(".thumbnail").fancybox({openEffect:"none",closeEffect:"none"});$("p img").addClass("img-responsive");$("pre img").addClass("img-responsive");HomePartialLoad()}function printDiv(n){var t=document.getElementById(n).innerHTML,i=document.body.innerHTML;$("#divID").hide();document.body.innerHTML="<html><head><title><\/title><\/head><body>"+t+"<\/body>";window.print();document.body.innerHTML=i}function OngotoHome(){location.href="/"}function OnGalleryLoadURL(){document.location.href=$("#galleryurl").val()}function VideoPlay(){HomePartialLoad();$("#youtube-player-container").tubeplayer({width:600,height:450,allowFullScreen:"true",initialVideo:$("#initialVideo").val(),preferredQuality:"default",onPlay:function(){},onPause:function(){},onStop:function(){},onSeek:function(){},onMute:function(){},onUnMute:function(){}})}if(function(n,t){function gt(n){var t=n.length,r=i.type(n);return i.isWindow(n)?!1:1===n.nodeType&&t?!0:"array"===r||"function"!==r&&(0===t||"number"==typeof t&&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||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(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),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function fr(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=(t in e)?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!ti(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,ti(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function er(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(rr,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?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){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)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&&1!==n.nodeType);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("string"==typeof t){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(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function nu(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+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;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function iu(n,t){if(1===t.nodeType&&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;o>f;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(1===t.nodeType){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)}"script"===r&&t.text!==n.text?(nu(t).text=n.text,tu(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&oi.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(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;null!=(e=s[h]);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,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function su(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ut(r)&&(e[u]=i._data(r,"olddisplay",au(r.nodeName)))):e[u]||(o=ut(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==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:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+p[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+p[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+p[e]+"Width",!0,f))):(o+=i.css(n,"padding"+p[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+p[e]+"Width",!0,f)));return o}function lu(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=v(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(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),"none"!==t&&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+"["+("object"==typeof i?t:"")+"]",i,r,u)});else if(r||"object"!==i.type(t))u(n,t);else for(f in t)li(n+"["+f+"]",t[f],r,u)}function gu(n){return function(t,r){"string"!=typeof t&&(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,r,u,f){function o(h){var c;return e[h]=!0,i.each(n[h]||[],function(n,i){var h=i(r,u,f);return"string"!=typeof h||s||e[h]?s?!(c=h):t:(r.dataTypes.unshift(h),o(h),!1)}),c}var e={},s=n===yi;return o(r.dataTypes[0])||!e["*"]&&o("*")}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}return f?(f!==u[0]&&u.unshift(f),r[f]):t}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())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===!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;e>r;r++)if(u=f[r].call(i,t,n))return u}function of(n,t,r){var h,e,o=0,l=pt.length,f=i.Deferred().always(function(){delete c.elem}),c=function(){if(e)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,o=u.tweens.length;o>r;r++)u.tweens[r].run(i);return f.notifyWith(n,[u,i,t]),1>i&&o?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(e)return this;for(e=!0;r>i;i++)u.tweens[i].run(1);return t?f.resolveWith(n,[u,t]):f.rejectWith(n,[u,t]),this}}),s=u.props;for(bo(s,u.opts.specialEasing);l>o;o++)if(h=pt[o].call(u,n,s,u.opts))return h;return i.map(s,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"),null==e.unqueued&&(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()})}));1===n.nodeType&&("height"in t||"width"in t)&&(r.overflow=[o.overflow,o.overflowX,o.overflowY],"inline"===i.css(n,"display")&&"none"===i.css(n,"float")&&(i.support.inlineBlockNeedsLayout&&"inline"!==au(n.nodeName)?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||"toggle"===a,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="width"===u||"height"===u?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;4>u;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:9===n.nodeType?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||"load"===n.type||"complete"===r.readyState)&&(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("string"==typeof n){if(e="<"===n.charAt(0)&&">"===n.charAt(n.length-1)&&n.length>=3?[null,n,null]:yf.exec(n),!e||!e[1]&&u)return!u||u.jquery?(u||f).find(n):this.constructor(u).find(n);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 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 null==n?this.toArray():0>n?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+(0>n?i:0);return this.pushStack(t>=0&&i>t?[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("boolean"==typeof n&&(c=n,n=arguments[1]||{},f=2),"object"==typeof n||i.isFunction(n)||(n={}),l===f&&(n=this,--f);l>f;f++)if(null!=(s=arguments[f]))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"function"===i.type(n)},isArray:Array.isArray||function(n){return"array"===i.type(n)},isWindow:function(n){return null!=n&&n==n.window},isNumeric:function(n){return!isNaN(parseFloat(n))&&isFinite(n)},type:function(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?ot[af.call(n)]||"object":typeof n},isPlainObject:function(n){var r;if(!n||"object"!==i.type(n)||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){var t;for(t in n)return!1;return!0},error:function(n){throw Error(n);},parseHTML:function(n,t,u){if(!n||"string"!=typeof n)return null;"boolean"==typeof t&&(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(r){return n.JSON&&n.JSON.parse?n.JSON.parse(r):null===r?r:"string"==typeof r&&(r=i.trim(r),r&&pf.test(r.replace(bf,"@").replace(kf,"]").replace(wf,"")))?Function("return "+r)():(i.error("Invalid JSON: "+r),t)},parseXML:function(r){var u,f;if(!r||"string"!=typeof r)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(;f>r;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(;f>r;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 null==n?"":dt.call(n)}:function(n){return null==n?"":(n+"").replace(vf,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(gt(Object(n))?i.merge(r,"string"==typeof n?[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?0>i?Math.max(0,r+i):i:0;r>i;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("number"==typeof f)for(;f>r;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;e>r;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(;e>r;r++)u=t(n[r],r,i),null!=u&&(f[f.length]=u);else for(r in n)u=t(n[r],r,i),null!=u&&(f[f.length]=u);return di.apply([],f)},guid:1,proxy:function(n,r){var f,u,e;return"string"==typeof r&&(e=n[r],r=n,n=e),i.isFunction(n)?(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):t},access:function(n,r,u,f,e,o,s){var h=0,l=n.length,c=null==u;if("object"===i.type(u)){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(;l>h;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(),"complete"===r.readyState)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=null==n.frameElement&&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||"string"!=typeof n)return i;if(1!==(l=t.nodeType)&&9!==l)return[];if(v&&!r){if(p=or.exec(n))if(f=p[1]){if(9===l){if(u=t.getElementById(f),!u||!u.parentNode)return i;if(u.id===f)return i.push(u),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=9===l&&n,1===l&&"object"!==t.nodeName.toLowerCase()){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&&1===n.nodeType&&1===t.nodeType&&(~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"input"===i&&t.type===n}}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&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="";r>t;t++)i+=n[t].value;return i}function fi(n,t,i){var r=t.dir,u=i&&"parentNode"===r,f=di++;return t.first?function(t,i,f){while(t=t[r])if(1===t.nodeType||u)return n(t,i,f)}:function(t,i,e){var h,s,c,l=p+" "+f;if(e){while(t=t[r])if((1===t.nodeType||u)&&n(t,i,e))return!0}else while(t=t[r])if(1===t.nodeType||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=null!=t;s>f;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?k:bt(k,p,n,o,s),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))}];e>t;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;e>i;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,i>t&&si(n.slice(t,i)),e>i&&si(n=n.slice(i)),e>i&&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=null!=a,it=lt,ut=o||e&&r.find.TAG("*",a&&h.parentNode||h),rt=p+=null==it?1:Math.random()||.1;for(tt&&(lt=h!==s&&h,ht=f);null!=(y=ut[v]);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;f>r;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&&1===h.length){if(f=h[0]=h[0].slice(0),f.length>2&&"ID"===(o=f[0]).type&&e.getById&&9===t.nodeType&&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;i>t;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=RegExp("^"+f+"+|((?:^|[^\\\\])(?:\\\\.)*)"+f+"+$","g"),ir=RegExp("^"+f+"*,"+f+"*"),rr=RegExp("^"+f+"*([>+~]|"+f+")"+f+"*"),ti=RegExp(f+"*[+~]"),ur=RegExp("="+f+"*([^\\]'\"]*)"+f+"*\\]","g"),fr=RegExp(ni),er=RegExp("^"+pi+"$"),yt={ID:RegExp("^#("+et+")"),CLASS:RegExp("^\\.("+et+")"),TAG:RegExp("^("+et.replace("w","w*")+")"),ATTR:RegExp("^"+wi),PSEUDO:RegExp("^"+ni),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+f+"*(even|odd|(([+-]|)(\\d*)n|)"+f+"*(?:([+-]|)"+f+"*(\\d+)|))"+f+"*\\)|)","i"),bool:RegExp("^(?:"+gt+")$","i"),needsContext: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=RegExp("\\\\([\\da-f]{1,6}"+f+"?|("+f+")|.)","ig"),d=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};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?"HTML"!==t.nodeName:!1};e=u.support={};nt=u.setDocument=function(n){var i=n?n.ownerDocument||n:y,u=i.defaultView;return i!==s&&9===i.nodeType&&i.documentElement?(s=i,a=i.documentElement,v=!hi(i),u&&u.attachEvent&&u!==u.top&&u.attachEvent("onbeforeunload",function(){nt()}),e.attributes=l(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=l(function(n){return n.appendChild(i.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",2===n.getElementsByClassName("i").length}),e.getById=l(function(n){return a.appendChild(n).id=o,!i.getElementsByName||!i.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,i){return typeof i.getElementsByTagName!==st?i.getElementsByTagName(n):t}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){while(i=u[f++])1===i.nodeType&&r.push(i);return r}return u},r.find.CLASS=e.getElementsByClassName&&function(n,i){return typeof i.getElementsByClassName!==st&&v?i.getElementsByClassName(n):t},tt=[],h=[],(e.qsa=ii.test(i.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 t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).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&&RegExp(h.join("|")),tt=tt.length&&RegExp(tt.join("|")),ot=ii.test(a.contains)||a.compareDocumentPosition?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},dt=a.compareDocumentPosition?function(n,t){if(n===t)return ft=!0,0;var r=t.compareDocumentPosition&&n.compareDocumentPosition&&n.compareDocumentPosition(t);return r?1&r||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||ot(y,n)?-1:t===i||ot(y,t)?1:g?it.call(g,n)-it.call(g,t):0:4&r?-1:1:n.compareDocumentPosition?-1:1}:function(n,t){var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(n===t)return ft=!0,0;if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:g?it.call(g,n)-it.call(g,t):0;if(o===s)return bi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;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},i):s};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&&11!==n.document.nodeType)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 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(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=ct(n)}else if(3===t||4===t)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(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):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=RegExp("(^|"+f+")"+n+"("+f+"|$)"))&&ci(n,function(n){return t.test("string"==typeof n.className&&n.className||typeof n.getAttribute!==st&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:t?(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===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="nth"!==n.slice(0,3),e="last"!==n.slice(-4),f="of-type"===t;return 1===r&&0===u?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:1===c.nodeType)return!1;w=b="only"===n&&!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(1===c.nodeType&&++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:1===c.nodeType)&&++l&&(d&&((c[o]||(c[o]={}))[n]=[p,l]),c===t))break;return l-=u,l===r||0==l%r&&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||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);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"input"===t&&!!n.checked||"option"===t&&!!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>"@"||3===n.nodeType||4===n.nodeType)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"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||t.toLowerCase()===n.type)},first:rt(function(){return[0]}),last:rt(function(n,t){return[t-1]}),eq:rt(function(n,t,i){return[0>i?i+t:i]}),even:rt(function(n,t){for(var i=0;t>i;i+=2)n.push(i);return n}),odd:rt(function(n,t){for(var i=1;t>i;i+=2)n.push(i);return n}),lt:rt(function(n,t,i){for(var r=0>i?i+t:i;--r>=0;)n.push(r);return n}),gt:rt(function(n,t,i){for(var r=0>i?i+t:i;t>++r;)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 1&n.compareDocumentPosition(s.createElement("div"))});l(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ui("type|href|height|width",function(n,i,r){return r?t:n.getAttribute(i,"type"===i.toLowerCase()?1:2)});e.attributes&&l(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ui("value",function(n,i,r){return r||"input"!==n.nodeName.toLowerCase()?t:n.defaultValue});l(function(n){return null==n.getAttribute("disabled")})||ui(gt,function(n,i,r){var u;return r?t:(u=n.getAttributeNode(i))&&u.specified?u.value:n[i]===!0?i.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="string"==typeof n?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&&e>o;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);"function"===e?n.unique&&h.has(f)||r.push(f):f&&f.length&&"string"!==e&&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&&(e>=u&&e--,o>=u&&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 null!=n?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[1^n][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=1!==r||n&&i.isFunction(n.promise)?r:0,f=1===e?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=Array(r),c=Array(r),s=Array(r);r>t;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="t"!==u.className;t.leadingWhitespace=3===u.firstChild.nodeType;t.tbody=!u.getElementsByTagName("tbody").length;t.htmlSerialize=!!u.getElementsByTagName("link").length;t.style=/top/.test(e.getAttribute("style"));t.hrefNormalized="/a"===e.getAttribute("href");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="<:nav><\/:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML;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="t"===f.value;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="content-box"===u.style.backgroundClip;for(s in i(t))break;return t.ownLast="0"!==s,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=0===f[0].offsetHeight,f[0].style.display="",f[1].style.display="none",t.reliableHiddenOffsets=y&&0===f[0].offsetHeight,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,null!=s.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===u.offsetWidth}),n.getComputedStyle&&(t.pixelPosition="1%"!==(n.getComputedStyle(u,null)||{}).top,t.boxSizingReliable="4px"===(n.getComputedStyle(u,null)||{width:"4px"}).width,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=3===u.offsetWidth,u.style.display="block",u.innerHTML="<div><\/div>",u.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==u.offsetWidth,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&&1!==n.nodeType&&9!==n.nodeType)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),1===u.nodeType&&!i._data(u,"parsedAttrs"))){for(e=u.attributes;e.length>s;s++)f=e[s].name,0===f.indexOf("data-")&&(f=i.camelCase(f.slice(5)),er(u,f,o[f]));i._data(u,"parsedAttrs",!0)}return o}return"object"==typeof n?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,r,u){var f;return n?(r=(r||"fx")+"queue",f=i._data(n,r),u&&(!f||i.isArray(u)?f=i._data(n,r,i.makeArray(u)):f.push(u)),f||[]):t},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)};"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&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"string"!=typeof n&&(r=n,n="fx",u--),u>arguments.length?i.queue(this[0],n):r===t?this:this.each(function(){var t=i.queue(this,n,r);i._queueHooks(this,n);"fx"===n&&"inprogress"!==t[0]&&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("string"!=typeof n&&(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="string"==typeof n&&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)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):" ")){for(o=0;u=e[o++];)0>r.indexOf(" "+u+" ")&&(r+=u+" ");t.className=i.trim(r)}return this},removeClass:function(n){var e,t,r,u,o,f=0,h=this.length,c=0===arguments.length||"string"==typeof n&&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)||[];h>f;f++)if(t=this[f],r=1===t.nodeType&&(t.className?(" "+t.className+" ").replace(ii," "):"")){for(o=0;u=e[o++];)while(r.indexOf(" "+u+" ")>=0)r=r.replace(" "+u+" "," ");t.className=n?i.trim(r):""}return this},toggleClass:function(n,t){var r=typeof n;return"boolean"==typeof t&&"string"===r?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("string"===r)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||"boolean"===r)&&(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;r>t;t++)if(1===this[t].nodeType&&(" "+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;1===this.nodeType&&(f=e?n.call(this,u,i(this).val()):n,null==f?f="":"number"==typeof f?f+="":i.isArray(f)&&(f=i.map(f,function(n){return null==n?"":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,"string"==typeof u?u.replace(ie,""):null==u?"":u)):void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:n.text}},select:{get:function(n){for(var e,t,o=n.options,r=n.selectedIndex,u="select-one"===n.type||0>r,s=u?null:[],h=u?r+1:o.length,f=0>r?h:u?r:0;h>f;f++)if(t=o[f],!(!t.selected&&f!==r||(i.support.optDisabled?t.disabled:null!==t.getAttribute("disabled"))||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&&3!==s&&8!==s&&2!==s)return typeof n.getAttribute===o?i.prop(n,r,u):(1===s&&i.isXMLDoc(n)||(r=r.toLowerCase(),f=i.attrHooks[r]||(i.expr.match.bool.test(r)?or:d)),u===t?f&&"get"in f&&null!==(e=f.get(n,r))?e:(e=i.find.attr(n,r),null==e?t:e):null!==u?f&&"set"in f&&(e=f.set(n,u,r))!==t?e:(n.setAttribute(r,u+""),u):(i.removeAttr(n,r),t))},removeAttr:function(n,t){var r,u,e=0,f=t&&t.match(s);if(f&&1===n.nodeType)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&&"radio"===t&&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&&3!==o&&8!==o&&2!==o)return s=1!==o||!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&&null!==(e=f.get(n,r))?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,r,u){return i.nodeName(n,"input")?(n.defaultValue=r,t):d&&d.set(n,r,u)}});a||(d={set:function(n,i,r){var u=n.getAttributeNode(r);return u||n.setAttributeNode(u=n.ownerDocument.createAttribute(r)),u.value=i+="","value"===r||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,r){i.attrHooks[r]={set:function(n,i){return""===i?(n.setAttribute(r,"auto"),i):t}}}));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,r){return i.isArray(r)?n.checked=i.inArray(i(n).val(),r)>=0:t}};i.support.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"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?t:i.event.dispatch.apply(l.elem,arguments)},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(c=i.event.special[e]||{},e=(u?c.delegateType:c.bindType)||e,l=a[e]||[],h=h[2]&&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])}else for(e in a)i.event.remove(n,e+t[p],r,u,!0);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,3!==e.nodeType&&8!==e.nodeType&&!sr.test(h+i.event.triggered)&&(h.indexOf(".")>=0&&(y=h.split("."),h=y.shift(),y.sort()),v=0>h.indexOf(":")&&"on"+h,u=u[i.expando]?u:new i.Event(h,"object"==typeof u&&u),u.isTrigger=o?2:3,u.namespace=y.join("."),u.namespace_re=u.namespace?RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,u.result=t,u.target||(u.target=e),f=null==f?[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||"click"!==n.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==n.type)){for(f=[],s=0;h>s;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 r.length>h&&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),3===n.target.nodeType&&(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 null==n.which&&(n.which=null!=t.charCode?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 null==n.pageX&&null!=i.clientX&&(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=1&e?1:2&e?3:4&e?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(){return this===cr()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return i.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_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,r){return this instanceof i.Event?(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,r&&i.extend(this,r),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0,t):new i.Event(n,r)};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(){return i.nodeName(this,"form")?!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))}),t)},postDispatch:function(n){n._submit_bubble&&(delete n._submit_bubble,this.parentNode&&!n.isTrigger&&i.event.simulate("submit",this.parentNode,n,!0))},teardown:function(){return i.nodeName(this,"form")?!1:(i.event.remove(this,"._submit"),t)}});i.support.changeBubbles||(i.event.special.change={setup:function(){return ui.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(i.event.add(this,"propertychange._change",function(n){"checked"===n.originalEvent.propertyName&&(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))}),t)},handle:function(n){var i=n.target;return this!==i||n.isSimulated||n.isTrigger||"radio"!==i.type&&"checkbox"!==i.type?n.handleObj.handler.apply(this,arguments):t},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(){0==u++&&r.addEventListener(n,f,!0)},teardown:function(){0==--u&&r.removeEventListener(n,f,!0)}}});i.fn.extend({on:function(n,r,u,f,e){var s,o;if("object"==typeof n){"string"!=typeof r&&(u=u||r,r=t);for(s in n)this.on(s,r,u,n[s],e);return this}if(null==u&&null==f?(f=r,u=r=t):null==f&&("string"==typeof r?(f=u,u=t):(f=u,u=r,r=t)),f===!1)f=g;else if(!f)return this;return 1===e&&(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("object"==typeof n){for(e in n)this.off(e,r,n[e]);return this}return(r===!1||"function"==typeof r)&&(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,r){var u=this[0];return u?i.event.trigger(n,r,u,!0):t}});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("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;f>t;t++)if(i.contains(u[t],this))return!0}));for(t=0;f>t;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;u>t;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,"string"==typeof n&&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)||"string"!=typeof n?i(n,t||this.context):0;o>f;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(11>r.nodeType&&(e?e.index(r)>-1:1===r.nodeType&&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?"string"==typeof n?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="string"==typeof n?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(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?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"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(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+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))},dir:function(n,r,u){for(var e=[],f=n[r];f&&9!==f.nodeType&&(u===t||1!==f.nodeType||!i(f).is(u));)1===f.nodeType&&e.push(f),f=f[r];return e},sibling:function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&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=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(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=gr(this,n);t.appendChild(n)}})},prepend:function(){return this.domManip(arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){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;null!=(r=e[f]);f++)t||1!==r.nodeType||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;null!=(n=this[t]);t++){for(1===n.nodeType&&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=null==n?!1:n,t=null==t?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 1===r.nodeType?r.innerHTML.replace(ce,""):t;if(!("string"!=typeof n||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(;o>f;f++)r=this[f]||{},1===r.nodeType&&(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||!(1>=l||"string"!=typeof a||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,1===s.childNodes.length&&(s=h),h)){for(o=i.map(u(s,"script"),nu),c=o.length;l>e;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;c>e;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;o>=r;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||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=u(o),s=u(n),e=0;null!=(h=s[e]);++e)f[e]&&be(h,f[e]);if(t)if(r)for(s=s||u(n),f=f||u(o),e=0;null!=(h=s[e]);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;b>v;v++)if(o=n[v],o||0===o)if("object"===i.type(o))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="table"!==y||kr.test(o)?"<table>"!==l[1]||kr.test(o)?0:s:s.firstChild,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||-1===i.inArray(o,f))&&(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,f,u,e,c=0,s=i.expando,h=i.cache,l=i.support.deleteExpando,a=i.event.special;null!=(r=n[c]);c++)if((t||i.acceptData(r))&&(u=r[s],e=u&&h[u])){if(e.events)for(f in e.events)a[f]?i.event.remove(r,f):i.removeEvent(r,f,e.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&&1===n.firstChild.nodeType;)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=RegExp("^("+st+")(.*)$","i"),lt=RegExp("^("+st+")(?!px)[a-z%]+$","i"),io=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;e>f;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"boolean"==typeof n?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&&3!==n.nodeType&&8!==n.nodeType&&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)return e&&"get"in e&&(o=e.get(n,!1,f))!==t?o:c[r];if(s=typeof u,"string"===s&&(o=io.exec(u))&&(u=(o[1]+1)*o[2]+parseFloat(i.css(n,r)),s="number"),!(null==u||"number"===s&&isNaN(u)||("number"!==s||i.cssNumber[h]||(u+="px"),i.support.clearCloneStyle||""!==u||0!==r.indexOf("background")||(c[r]="inherit"),e&&"set"in e&&(u=e.set(n,u,f))===t)))try{c[r]=u}catch(l){}}},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)),"normal"===e&&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 null==u&&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="fontSize"===i?"1em":u,u=f.pixelLeft+"px",f.left=s,o&&(e.left=o)),""===u?"auto":u});i.each(["height","width"],function(n,r){i.cssHooks[r]={get:function(n,u,f){return u?0===n.offsetWidth&&no.test(i.css(n,"display"))?i.swap(n,ro,function(){return lu(n,r,f)}):lu(n,r,f):t},set:function(n,t,u){var f=u&&v(n);return hu(n,t,u?cu(n,r,u,i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f),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="+100*t+")":"",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,r){return r?i.swap(n,{display:"inline-block"},y,[n,"marginRight"]):t}});!i.support.pixelPosition&&i.fn.position&&i.each(["top","left"],function(n,r){i.cssHooks[r]={get:function(n,u){return u?(u=y(n,r),lt.test(u)?i(n).position()[r]+"px":u):t}}})});i.expr&&i.expr.filters&&(i.expr.filters.hidden=function(n){return 0>=n.offsetWidth&&0>=n.offsetHeight||!i.support.reliableHiddenOffsets&&"none"===(n.style&&n.style.display||i.css(n,"display"))},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="string"==typeof i?i.split(" "):[i];4>r;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 null==r?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():null==t?"":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 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}});var w,c,ai=i.now(),vi=/\?/,so=/#.*$/,pu=/([?&])_=[^&]*/,ho=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,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("string"!=typeof n&&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&&"object"==typeof r&&(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;2!==o&&(o=2,g&&clearTimeout(g),y=t,d=c||"",f.readyState=n>0?4:0,a=n>=200&&300>n||304===n,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)),204===n||"HEAD"===u.type?l="nocontent":304===n?l="notmodified":(l=p.state,rt=p.data,k=p.error,a=!k)):(k=l,(n||!l)&&(l="error",0>n&&(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,v&&nt.trigger(a?"ajaxSuccess":"ajaxError",[f,u,a?rt:k]),it.fireWith(h,[f,l]),v&&(nt.trigger("ajaxComplete",[f,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof n&&(r=n,n=t);r=r||{};var l,a,e,d,g,v,y,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(2===o){if(!p)for(p={};t=ho.exec(d);)p[t[1].toLowerCase()]=t[2];t=p[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===o?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(2>o)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 y&&y.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)||[""],null==u.crossDomain&&(l=wu.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===w[1]&&l[2]===w[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(w[3]||("http:"===w[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),nf(ku,u,r,f),2===o)return f;v=u.global;v&&0==i.active++&&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||2===o))return f.abort();ft="abort";for(a in{success:1,error:1,complete:1})f[a](u[a]);if(y=nf(yi,u,r,f)){f.readyState=1;v&&nt.trigger("ajaxSend",[f,u]);u.async&&u.timeout>0&&(g=setTimeout(function(){f.abort("timeout")},u.timeout));try{o=1;y.send(rt,k)}catch(et){if(!(2>o))throw et;k(-1,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(){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":"string"==typeof r.data&&!(r.contentType||"").indexOf("application/x-www-form-urlencoded")&&at.test(r.data)&&"data");return h||"jsonp"===r.dataTypes[0]?(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"):t});tf=0;vt=n.ActiveXObject&&function(){var n;for(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||4===o.readyState))if(u=t,h&&(o.onreadystatechange=i.noop,vt&&delete nt[h]),f)4!==o.readyState&&o.abort();else{c={};s=o.status;a=o.getAllResponseHeaders();"string"==typeof o.responseText&&(c.text=o.responseText);try{l=o.statusText}catch(y){l=""}s||!r.isLocal||r.crossDomain?1223===s&&(s=204):s=c.text?200:404}}catch(v){f||e(-1,v)}c&&e(s,l,c,a)};r.async?4===o.readyState?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=RegExp("^(?:([+-])=|)("+st+")([a-z%]*)$","i"),wo=/queueHooks$/,pt=[ko],ft={"*":[function(n,t){var f=this.createTween(n,t),s=f.cur(),r=uf.exec(t),e=r&&r[3]||(i.cssNumber[n]?"":"px"),u=(i.cssNumber[n]||"px"!==e&&+s)&&uf.exec(i.css(f.elem,n)),o=1,h=20;if(u&&u[3]!==e){e=e||u[3];r=r||[];u=+s||1;do o=o||".5",u/=o,i.style(f.elem,n,u+e);while(o!==(o=f.cur()/s)&&1!==o&&--h)}return r&&(u=f.start=+u||+s||0,f.unit=e,f.end=r[1]?u+(r[1]+1)*r[2]:+r[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;f>u;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 r,t=f.propHooks[this.prop];return this.pos=r=this.options.duration?i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):f.propHooks._default.set(this),this}};f.prototype.init.prototype=f.prototype;f.propHooks={_default:{get:function(n){var t;return null==n.elem[n.prop]||n.elem.style&&null!=n.elem.style[n.prop]?(t=i.css(n.elem,n.prop,""),t&&"auto"!==t?t:0):n.elem[n.prop]},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.style&&(null!=n.elem.style[i.cssProps[n.prop]]||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 null==n||"boolean"==typeof n?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"string"!=typeof n&&(u=r,r=n,n=t),r&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var o=!0,t=null!=n&&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||null!=n&&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;o>t;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&&"object"==typeof n?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:"number"==typeof u.duration?u.duration:u.duration in i.fx.speeds?i.fx.speeds[u.duration]:i.fx.speeds._default,(null==u.queue||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();n.length>r;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)?(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)}):f};i.offset={setOffset:function(n,t,r){var f=i.css(n,"position");"static"===f&&(n.style.position="relative");var e=i(n),o=e.offset(),l=i.css(n,"top"),a=i.css(n,"left"),v=("absolute"===f||"fixed"===f)&&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));null!=t.top&&(u.top=t.top-o.top+h);null!=t.left&&(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"fixed"===i.css(u,"position")?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")&&"static"===i.css(n,"position");)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);return e===t?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,t)},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||"boolean"!=typeof f),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]:9===r.nodeType?(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;"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=i:(n.jQuery=n.$=i,"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}))}(window),!function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return 0!==this.length||n.isReady?this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}}):(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this)};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var i,t=this.opts(),r=t.container;t.API.calcFirstSlide();"static"==t.container.css("position")&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var u,r=this.opts(),e=r.slideCount,f=!1;"string"==n.type(t)&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);f=r._preInitialized&&2>e&&r.slideCount>=1;f&&(r._initialized?r.timeout&&(u=r.slides.length,r.nextSlide=r.reverse?u-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var t,n=this.opts();t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||0>t)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var t,n=this.opts();n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var u,r=t;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var o,f,e,r,u,i=this.opts();return i.slideCount<2?void(i.timeoutId=0):(!n||i.busy&&!i.manualTrump||(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),void(i.busy||(0!==i.timeoutId||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&void 0!==r.manualSpeed&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){i.busy=!1;i.container.data("cycle.opts")&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=void 0!==i?i:t.timeout;return 0===r.nextSlide&&0==--r.loop?(r.API.log("terminating; loop=0"),r.timeout=0,u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]),void(r.nextSlide=r.currSlide)):void 0!==r.continueAuto&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)?(r.API.log("terminating automatic transitions"),r.timeout=0,void(r.timeoutId&&clearTimeout(r.timeoutId))):void(u&&(r._lastQueue=n.now(),void 0===i&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u))))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var f,o,e=this.opts(),r=i.data()||{},u;for(u in r)r.hasOwnProperty(u)&&/^cycle[A-Z]+/.test(u)&&(f=r[u],o=u.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),e.API.log("["+(e.slideCount-1)+"]",o+":",f,"("+typeof f+")"),r[o]=f);r=n.extend({},n.fn.cycle.defaults,e,r);r.slideNum=e.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return void 0===t&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&(r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return"string"==typeof i?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;o>f;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if("container"==r)o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if("calc"===r||"number"==n.type(r)&&r>=0){if(e="calc"===r?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function h(){t(u,f)}var e,o=f.autoHeight,s=n.type(o),c=null;("string"===s||"number"===s)&&(f.container.on("cycle-slide-added cycle-slide-removed",t),f.container.on("cycle-destroyed",r),"container"==o?f.container.on("cycle-before",i):"string"===s&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e),"number"!==s&&(f._autoHeightOnResize=function(){clearTimeout(c);c=setTimeout(h,50)},n(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(h,30))})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){"caption"===i.captionModule&&n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return"number"==n.type(i)?this.cycle("goto",i):"string"==n.type(i)?this.each(function(){var o;return r=i,u=n(this).data("cycle.opts"),void 0===u?void t.log('slideshow must be initialized before sending commands; "'+r+'" ignored'):(r="goto"==r?"jump":r,f=u.API[r],n.isFunction(f)?(o=n.makeArray(e),o.shift(),f.apply(u.API,o)):void t.log("unknown command: ",r))}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||0>r||r>=i.slides.length)return void i.API.log("goto: invalid slide index: "+r);if(r==i.currSlide)return void i.API.log("goto: skipping, already on slide",r);i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var r,u,i=this.opts(),e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;return t._hashFence?void(t._hashFence=!1):(r=window.location.hash.substring(1),void t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}}))}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;"wait"==i.loader?(e.push(t),0===f&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if("string"==n.type(t))t=n.trim(t);else if("array"===n.type(t))for(o=0;o<t.length;o++)t[o]=n(t[o])[0];t=n(t);f=t.length;f&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){0==--c&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");return o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),h.length?(c=h.length,void h.each(function(){this.complete?l():n(this).load(function(){l()}).on("error",function(){0==--c&&(i.API.log("slide skipped; img not loaded:",this.src),0==--f&&"wait"==i.loader&&r.apply(i.API,[e,u]))})})):(--f,void e.push(o))}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){if(t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var r,f,u=i.API,e=u.next,s=u.prev,o=u.prepareTx,h=n.type(i.progressive);if("array"==h)r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if("string"==h){if(f=n(i.progressive),r=n.trim(f.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){return void u.log("error parsing progressive slides",c)}else r=r.split(new RegExp(f.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}o&&(u.prepareTx=function(n,t){var f,u;return n||0===r.length?void o.apply(i.API,[n,t]):void(t&&i.currSlide==i.slideCount-1?(u=r[0],r=r.slice(1),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(u)):t||0!==i.currSlide?o.apply(i.API,[n,t]):(f=r.length-1,u=r[f],r=r.slice(0,f),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)}),i.API.add(u,!0)))});e&&(u.next=function(){var n=this.opts(),t;r.length&&n.currSlide==n.slideCount-1?(t=r[0],r=r.slice(1),n.container.one("cycle-slide-added",function(n,t){e.apply(t.API);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(t)):e.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;r.length&&0===n.currSlide?(t=r.length-1,i=r[t],r=r.slice(0,t),n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(i,!0)):s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e]){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(void 0!==u&&null!==u&&u!=i)return u}return i})}})}(jQuery),function(n){"use strict";n(document).on("cycle-bootstrap",function(n,t,i){t.fx==="carousel"&&(i.getSlideIndex=function(n){var t=this.opts()._carouselWrap.children(),i=t.index(n);return i%t.length},i.next=function(){var n=t.reverse?-1:1;t.allowWrap===!1&&t.currSlide+n>t.slideCount-t.carouselVisible||(t.API.advanceSlide(n),t.API.trigger("cycle-next",[t]).log("cycle-next"))})});n.fn.cycle.transitions.carousel={preInit:function(t){t.hideNonActive=!1;t.container.on("cycle-destroyed",n.proxy(this.onDestroy,t.API));t.API.stopTransition=this.stopTransition;for(var i=0;i<t.startingSlide;i++)t.container.append(t.slides[0])},postInit:function(t){var i,u,f,r,e=t.carouselVertical,o,s;if(t.carouselVisible&&t.carouselVisible>t.slideCount&&(t.carouselVisible=t.slideCount-1),o=t.carouselVisible||t.slides.length,s={display:e?"block":"inline-block",position:"static"},t.container.css({position:"relative",overflow:"hidden"}),t.slides.css(s),t._currSlide=t.currSlide,r=n('<div class="cycle-carousel-wrap"><\/div>').prependTo(t.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(t.slides),t._carouselWrap=r,e||r.css("white-space","nowrap"),t.allowWrap!==!1){for(u=0;u<(t.carouselVisible===undefined?2:1);u++){for(i=0;i<t.slideCount;i++)r.append(t.slides[i].cloneNode(!0));for(i=t.slideCount;i--;)r.prepend(t.slides[i].cloneNode(!0))}r.find(".cycle-slide-active").removeClass("cycle-slide-active");t.slides.eq(t.startingSlide).addClass("cycle-slide-active")}t.pager&&t.allowWrap===!1&&(f=t.slideCount-o,n(t.pager).children().filter(":gt("+f+")").hide());t._nextBoundry=t.slideCount-t.carouselVisible;this.prepareDimensions(t)},prepareDimensions:function(t){var r,u,e,f,i=t.carouselVertical,o=t.carouselVisible||t.slides.length;if(t.carouselFluid&&t.carouselVisible?t._carouselResizeThrottle||this.fluidSlides(t):t.carouselVisible&&t.carouselSlideDimension?(r=o*t.carouselSlideDimension,t.container[i?"height":"width"](r)):t.carouselVisible&&(r=o*n(t.slides[0])[i?"outerHeight":"outerWidth"](!0),t.container[i?"height":"width"](r)),u=t.carouselOffset||0,t.allowWrap!==!1)if(t.carouselSlideDimension)u-=(t.slideCount+t.currSlide)*t.carouselSlideDimension;else for(e=t._carouselWrap.children(),f=0;f<t.slideCount+t.currSlide;f++)u-=n(e[f])[i?"outerHeight":"outerWidth"](!0);t._carouselWrap.css(i?"top":"left",u)},fluidSlides:function(t){function u(){clearTimeout(i);i=setTimeout(f,20)}function f(){t._carouselWrap.stop(!1,!0);var n=t.container.width()/t.carouselVisible;n=Math.ceil(n-e);t._carouselWrap.children().width(n);t._sentinel&&t._sentinel.width(n);o(t)}var i,r=t.slides.eq(0),e=r.outerWidth()-r.width(),o=this.prepareDimensions;n(window).on("resize",u);t._carouselResizeThrottle=u;f()},transition:function(t,i,r,u,f){var h,l={},e=t.nextSlide-t.currSlide,s=t.carouselVertical,a=t.speed,c,o;t.allowWrap===!1?(u=e>0,c=t._currSlide,o=t.slideCount-t.carouselVisible,e>0&&t.nextSlide>o&&c==o?e=0:e>0&&t.nextSlide>o?e=t.nextSlide-c-(t.nextSlide-o):e<0&&t.currSlide>o&&t.nextSlide>o?e=0:e<0&&t.currSlide>o?e+=t.currSlide-o:c=t.currSlide,h=this.getScroll(t,s,c,e),t.API.opts()._currSlide=t.nextSlide>o?o:t.nextSlide):u&&t.nextSlide===0?(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f)):u||t.nextSlide!=t.slideCount-1?h=this.getScroll(t,s,t.currSlide,e):(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f));l[s?"top":"left"]=u?"-="+h:"+="+h;t.throttleSpeed&&(a=h/n(t.slides[0])[s?"height":"width"]()*t.speed);t._carouselWrap.animate(l,a,t.easing,f)},getDim:function(t,i,r){var u=n(t.slides[i]);return u[r?"outerHeight":"outerWidth"](!0)},getScroll:function(n,t,i,r){var u,f=0;if(r>0)for(u=i;u<i+r;u++)f+=this.getDim(n,u,t);else for(u=i;u>i+r;u--)f+=this.getDim(n,u,t);return f},genCallback:function(t,i,r,u){return function(){var i=n(t.slides[t.nextSlide]).position(),f=0-i[r?"top":"left"]+(t.carouselOffset||0);t._carouselWrap.css(t.carouselVertical?"top":"left",f);u()}},stopTransition:function(){var n=this.opts();n.slides.stop(!1,!0);n._carouselWrap.stop(!1,!0)},onDestroy:function(){var t=this.opts();t._carouselResizeThrottle&&n(window).off("resize",t._carouselResizeThrottle);t.slides.prependTo(t.container);t._carouselWrap.remove()}}}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]}}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));"string"==typeof i&&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)},i;t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(n){var i="disabled",t=this.$element,r=t.is("input")?"val":"html",u=t.data();n+="Text";u.resetText||t.data("resetText",t[r]());t[r](u[n]||this.options[n]);setTimeout(function(){"loadingText"==n?t.addClass(i).attr(i,i):t.removeClass(i).removeAttr(i)},0)};t.prototype.toggle=function(){var n=this.$element.closest('[data-toggle="buttons"]'),t;n.length&&(t=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change"),"radio"===t.prop("type")&&n.find(".active").removeClass("active"));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="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?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;"hover"==this.options.pause&&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)&&!(0>t))return this.sliding?this.$element.one("slid",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.end&&(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="next"==t?"left":"right",h="next"==t?"first":"last",o=this,e;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[h]()}if(this.sliding=!0,s&&this.pause(),e=n.Event("slide.bs.carousel",{relatedTarget:r[0],direction:f}),!r.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var t=n(o.$indicators.children()[o.getActiveIndex()]);t&&t.addClass("active")})),n.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(e),e.isDefaultPrevented())return;r.addClass(t);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(" "));o.sliding=!1;setTimeout(function(){o.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(e),e.isDefaultPrevented())return;u.removeClass("active");r.addClass("active");this.sliding=!1;this.$element.trigger("slid")}return 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(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?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 f,i=n(this),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("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()))return 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?(this.$element[t](0).one(n.support.transition.end,n.proxy(r,this)).emulateTransitionEnd(350),void 0):r.call(this)};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 r=n(this),u=r.data("bs.collapse"),f=n.extend({},t.DEFAULTS,r.data(),"object"==typeof i&&i);u||r.data("bs.collapse",u=new t(this,f));"string"==typeof i&&u[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 e,i=n(this),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(){n(e).remove();n(i).each(function(t){var i=u(n(this));i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown")),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown"))})}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#/.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,e;if(!f.is(".disabled, :disabled")){if(i=u(f),e=i.hasClass("open"),r(),!e){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),i.trigger(t=n.Event("show.bs.dropdown")),t.isDefaultPrevented())return;i.toggleClass("open").trigger("shown.bs.dropdown");f.focus()}return!1}};t.prototype.keydown=function(t){var e,o,s,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&&27==t.keyCode)return 27==t.which&&o.find(i).focus(),e.click();f=n("[role=menu] li:not(.divider):visible a",o);f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&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("dropdown");u||r.data("dropdown",u=new t(this));"string"==typeof i&&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]",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.load(this.options.remote)},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});this.$element.trigger(r);this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.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();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.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(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):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){if(i=n.support.transition&&r,this.$backdrop=n('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),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(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?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("modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());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],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focus",s="hover"==u?"mouseleave":"blur",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&&"number"==typeof t.delay&&(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);return clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show),void 0):i.show()};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide),void 0):i.hide()};t.prototype.show=function(){var o=n.Event("show.bs."+this.type),i,l;if(this.hasContent()&&this.enabled){if(this.$element.trigger(o),o.isDefaultPrevented())return;i=this.tip();this.setContent();this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,h=s.test(t);h&&(t=t.replace(s,"")||"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(),u=i[0].offsetWidth,f=i[0].offsetHeight;if(h){var e=this.$element.parent(),a=t,c=document.documentElement.scrollTop||document.body.scrollTop,v="body"==this.options.container?window.innerWidth:e.outerWidth(),y="body"==this.options.container?window.innerHeight:e.outerHeight(),p="body"==this.options.container?0:e.offset().left;t="bottom"==t&&r.top+r.height+f-c>y?"top":"top"==t&&r.top-c-f<0?"bottom":"right"==t&&r.right+u>v?"left":"left"==t&&r.left-u<p?"right":t;i.removeClass(a).addClass(t)}l=this.getCalculatedOffset(t,r,u,f);this.applyPlacement(l,t);this.$element.trigger("shown.bs."+this.type)}};t.prototype.applyPlacement=function(n,t){var h,i=this.tip(),c=i[0].offsetWidth,f=i[0].offsetHeight,e=parseInt(i.css("margin-top"),10),o=parseInt(i.css("margin-left"),10),u,r,s;isNaN(e)&&(e=0);isNaN(o)&&(o=0);n.top=n.top+e;n.left=n.left+o;i.offset(n).addClass("in");u=i[0].offsetWidth;r=i[0].offsetHeight;("top"==t&&r!=f&&(h=!0,n.top=n.top+f-r),/bottom|top/.test(t))?(s=0,n.left<0&&(s=-2*n.left,n.left=0,i.offset(n),u=i[0].offsetWidth,r=i[0].offsetHeight),this.replaceArrow(s-c+u,u,"left")):this.replaceArrow(r-f,r,"top");h&&i.offset(n)};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 i(){"in"!=u.hoverState&&t.detach()}var u=this,t=this.tip(),r=n.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(t.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?t.one(n.support.transition.end,i).emulateTransitionEnd(150):i(),this.$element.trigger("hidden.bs."+this.type),this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&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({},"function"==typeof t.getBoundingClientRect?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{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")||("function"==typeof n.title?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(){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="object"==typeof i&&i;r||u.data("bs.tooltip",r=new t(this,f));"string"==typeof i&&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(),t=this.getTitle(),i=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](t);n.find(".popover-content")[this.options.html?"html":"text"](i);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")||("function"==typeof n.content?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="object"==typeof i&&i;r||u.data("bs.popover",r=new t(this,f));"string"==typeof i&&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;this.offsets=n([]);this.targets=n([]);t=this;this.$body.find(this.selector).map(function(){var f=n(this),r=f.data("target")||f.attr("href"),u=/^#\w/.test(r)&&n(r);return u&&u.length&&[[u[i]().top+(!n.isWindow(t.$scrollElement.get(0))&&t.$scrollElement.scrollTop()),r]]||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 n,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;if(i>=e)return u!=(n=r.last()[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).parents(".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")};var i=n.fn.scrollspy;n.fn.scrollspy=function(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&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 f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(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"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one(n.support.transition.end,f).emulateTransitionEnd(150):f();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));"string"==typeof i&&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=null;this.checkPosition()},i;t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i;if(this.$element.is(":visible")){var s=n(document).height(),e=this.$window.scrollTop(),o=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r);"function"==typeof f&&(f=r.top());"function"==typeof u&&(u=r.bottom());i=null!=this.unpin&&e+this.unpin<=o.top?!1:null!=u&&o.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=e?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?o.top-e:null,this.$element.removeClass(t.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-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="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&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){function g(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 b(n,t){return br.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 ai(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function o(n,t){var i=!0;return k(function(){return i&&(ai(n),i=!1),t.apply(this,arguments)},t)}function pu(n,t){ci[n]||(ai(t),ci[n]=!0)}function vi(n,t){return function(i){return r(n.call(this,i),t)}}function wu(n,t){return function(i){return this.localeData().ordinal(n.call(this,i),t)}}function yi(){}function et(n,t){t!==!1&&rr(n);pi(this,n);this._d=new Date(+n._d)}function yt(n){var i=gi(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 k(n,t){for(var i in t)b(t,i)&&(n[i]=t[i]);return b(t,"toString")&&(n.toString=t.toString),b(t,"valueOf")&&(n.valueOf=t.valueOf),n}function pi(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 s(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 wi(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 bu(n,t){var i;return t=st(t,n),n.isBefore(t)?i=wi(n,t):(i=wi(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i}function bi(n,i){return function(r,u){var f,e;return u===null||isNaN(+u)||(pu(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),ki(this,f,n),this}}function ki(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&&vr(n,"Date",gt(n,"Date")+f*r);e&&ar(n,gt(n,"Month")+e*r);u&&t.updateOffset(n,f||e)}function ot(n){return Object.prototype.toString.call(n)==="[object Array]"}function ku(n){return Object.prototype.toString.call(n)==="[object Date]"||n instanceof Date}function di(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 f(n){if(n){var t=n.toLowerCase().replace(/(.)s$/,"$1");n=vu[n]||yu[t]||t}return n}function gi(n){var r={},i,t;for(t in n)b(n,t)&&(i=f(t),i&&(r[i]=n[t]));return r}function du(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 pt(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function nr(n,i,r){return d(t([n,11,31+i-r]),i,r).week}function tr(n){return ir(n)?366:365}function ir(n){return n%4==0&&n%100!=0||n%400==0}function rr(n){var t;n._a&&n._pf.overflow===-2&&(t=n._a[c]<0||n._a[c]>11?c:n._a[e]<1||n._a[e]>pt(n._a[h],n._a[c])?e:n._a[l]<0||n._a[l]>23?l:n._a[nt]<0||n._a[nt]>59?nt:n._a[tt]<0||n._a[tt]>59?tt:n._a[it]<0||n._a[it]>999?it:-1,n._pf._overflowDayOfYear&&(t<h||t>e)&&(t=e),n._pf.overflow=t)}function ur(n){return n._isValid==null&&(n._isValid=!isNaN(n._d.getTime())&&n._pf.overflow<0&&!n._pf.empty&&!n._pf.invalidMonth&&!n._pf.nullInput&&!n._pf.invalidFormat&&!n._pf.userInvalidated,n._strict&&(n._isValid=n._isValid&&n._pf.charsLeftOver===0&&n._pf.unusedTokens.length===0)),n._isValid}function fr(n){return n?n.toLowerCase().replace("_","-"):n}function gu(n){for(var r=0,i,t,f,u;r<n.length;){for(u=fr(n[r]).split("-"),i=u.length,t=fr(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=er(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&di(u,t,!0)>=i-1)break;i--}r++}return null}function er(n){var i=null;if(!w[n]&&ti)try{i=t.locale();require("./locale/"+n);t.locale(i)}catch(r){}return w[n]}function st(n,i){return i._isUTC?t(n).zone(i._offset||0):t(n).local()}function nf(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function tf(n){for(var i=n.match(ii),t=0,r=i.length;t<r;t++)i[t]=a[i[t]]?a[i[t]]:nf(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 wt(n,t){return n.isValid()?(t=or(t,n.localeData()),at[t]||(at[t]=tf(t)),at[t](n)):n.localeData().invalidDate()}function or(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 rf(n,t){var i=t._strict;switch(n){case"Q":return ui;case"DDDD":return ei;case"YYYY":case"GGGG":case"gggg":return i?su:tu;case"Y":case"G":case"g":return cu;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return i?hu:iu;case"S":if(i)return ui;case"SS":if(i)return fi;case"SSS":if(i)return ei;case"DDD":return nu;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return uu;case"a":case"A":return t._locale._meridiemParse;case"X":return eu;case"Z":case"ZZ":return ht;case"T":return fu;case"SSSS":return ru;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return i?fi:ri;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return ri;case"Do":return ou;default:return new RegExp(hf(sf(n.replace("\\","")),"i"))}}function sr(n){n=n||"";var r=n.match(ht)||[],f=r[r.length-1]||[],t=(f+"").match(au)||["-",0,0],u=+(t[1]*60)+i(t[2]);return t[0]==="+"?-u:u}function uf(n,r,u){var o,f=u._a;switch(n){case"Q":r!=null&&(f[c]=(i(r)-1)*3);break;case"M":case"MM":r!=null&&(f[c]=i(r)-1);break;case"MMM":case"MMMM":o=u._locale.monthsParse(r);o!=null?f[c]=o:u._pf.invalidMonth=r;break;case"D":case"DD":r!=null&&(f[e]=i(r));break;case"Do":r!=null&&(f[e]=i(parseInt(r,10)));break;case"DDD":case"DDDD":r!=null&&(u._dayOfYear=i(r));break;case"YY":f[h]=t.parseTwoDigitYear(r);break;case"YYYY":case"YYYYY":case"YYYYYY":f[h]=i(r);break;case"a":case"A":u._isPm=u._locale.isPM(r);break;case"H":case"HH":case"h":case"hh":f[l]=i(r);break;case"m":case"mm":f[nt]=i(r);break;case"s":case"ss":f[tt]=i(r);break;case"S":case"SS":case"SSS":case"SSSS":f[it]=i(("0."+r)*1e3);break;case"X":u._d=new Date(parseFloat(r)*1e3);break;case"Z":case"ZZ":u._useUTC=!0;u._tzm=sr(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 ff(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=g(i.GG,n._a[h],d(t(),1,4).year),f=g(i.W,1),u=g(i.E,1)):(r=n._locale._week.dow,e=n._locale._week.doy,o=g(i.gg,n._a[h],d(t(),r,e).year),f=g(i.w,1),i.d!=null?(u=i.d,u<r&&++f):u=i.e!=null?i.e+r:r);s=kf(o,f,u,e,r);n._a[h]=s.year;n._dayOfYear=s.dayOfYear}function bt(n){var t,i,r=[],u,f;if(!n._d){for(u=of(n),n._w&&n._a[e]==null&&n._a[c]==null&&ff(n),n._dayOfYear&&(f=g(n._a[h],u[h]),n._dayOfYear>tr(f)&&(n._pf._overflowDayOfYear=!0),i=dt(f,0,n._dayOfYear),n._a[c]=i.getUTCMonth(),n._a[e]=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._d=(n._useUTC?dt:yf).apply(null,r);n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()+n._tzm)}}function ef(n){var t;n._d||(t=gi(n._i),n._a=[t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond],bt(n))}function of(n){var t=new Date;return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function kt(n){if(n._f===t.ISO_8601){hr(n);return}n._a=[];n._pf.empty=!0;for(var i=""+n._i,r,u,o,h=i.length,s=0,e=or(n._f,n._locale).match(ii)||[],f=0;f<e.length;f++)u=e[f],r=(i.match(rf(u,n))||[])[0],r&&(o=i.substr(0,i.indexOf(r)),o.length>0&&n._pf.unusedInput.push(o),i=i.slice(i.indexOf(r)+r.length),s+=r.length),a[u]?(r?n._pf.empty=!1:n._pf.unusedTokens.push(u),uf(u,r,n)):n._strict&&!r&&n._pf.unusedTokens.push(u);n._pf.charsLeftOver=h-s;i.length>0&&n._pf.unusedInput.push(i);n._isPm&&n._a[l]<12&&(n._a[l]+=12);n._isPm===!1&&n._a[l]===12&&(n._a[l]=0);bt(n);rr(n)}function sf(n){return n.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u})}function hf(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function cf(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=pi({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._pf=vt(),t._f=n._f[r],kt(t),ur(t))&&(i+=t._pf.charsLeftOver,i+=t._pf.unusedTokens.length*10,t._pf.score=i,(u==null||i<u)&&(u=i,f=t));k(n,f||t)}function hr(n){var t,i,r=n._i,u=lu.exec(r);if(u){for(n._pf.iso=!0,t=0,i=ct.length;t<i;t++)if(ct[t][1].exec(r)){n._f=ct[t][0]+(u[6]||" ");break}for(t=0,i=lt.length;t<i;t++)if(lt[t][1].exec(r)){n._f+=lt[t][0];break}r.match(ht)&&(n._f+="Z");kt(n)}else n._isValid=!1}function lf(n){hr(n);n._isValid===!1&&(delete n._isValid,t.createFromInputFallback(n))}function af(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function vf(i){var r=i._i,u;r===n?i._d=new Date:ku(r)?i._d=new Date(+r):(u=kr.exec(r))!==null?i._d=new Date(+u[1]):typeof r=="string"?lf(i):ot(r)?(i._a=af(r.slice(0),function(n){return parseInt(n,10)}),bt(i)):typeof r=="object"?ef(i):typeof r=="number"?i._d=new Date(r):t.createFromInputFallback(i)}function yf(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 dt(n){var t=new Date(Date.UTC.apply(null,arguments));return n<1970&&t.setUTCFullYear(n),t}function pf(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 wf(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function bf(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,wf.apply({},f)}function d(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 kf(n,t,i,r,u){var f=dt(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:tr(n-1)+e}}function cr(i){var r=i._i,u=i._f;return(i._locale=i._locale||t.localeData(i._l),r===null||u===n&&r==="")?t.invalid({nullInput:!0}):(typeof r=="string"&&(i._i=r=i._locale.preparse(r)),t.isMoment(r))?new et(r,!0):(u?ot(u)?cf(i):kt(i):vf(i),new et(i))}function lr(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 ar(n,t){var i;return typeof t=="string"&&(t=n.localeData().monthsParse(t),typeof t!="number")?n:(i=Math.min(n.date(),pt(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n)}function gt(n,t){return n._d["get"+(n._isUTC?"UTC":"")+t]()}function vr(n,t,i){return t==="Month"?ar(n,i):n._d["set"+(n._isUTC?"UTC":"")+t](i)}function v(n,i){return function(r){return r!=null?(vr(this,n,r),t.updateOffset(this,i),this):gt(this,n)}}function yr(n){return n*400/146097}function pr(n){return n*146097/400}function df(n){t.duration.fn[n]=function(){return this._data[n]}}function wr(n){typeof ender=="undefined"&&(ni=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"?global:this,ni,p=Math.round,br=Object.prototype.hasOwnProperty,u,h=0,c=1,e=2,l=3,nt=4,tt=5,it=6,w={},ut=[],ti=typeof module!="undefined"&&module.exports,kr=/^\/?Date\((\-?\d+)/i,dr=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,gr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,ii=/(\[[^\[]*\])|(\\)?(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|zz?|ZZ?|.)/g,ft=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,ri=/\d\d?/,nu=/\d{1,3}/,tu=/\d{1,4}/,iu=/[+\-]?\d{1,6}/,ru=/\d+/,uu=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ht=/Z|[\+\-]\d\d:?\d\d/gi,fu=/T/i,eu=/[\+\-]?\d+(\.\d{1,3})?/,ou=/\d{1,2}/,ui=/\d/,fi=/\d\d/,ei=/\d{3}/,su=/\d{4}/,hu=/[+-]?\d{6}/,cu=/[+-]?\d+/,lu=/^\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)?)?$/,ct=[["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}/]],lt=[["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/]],au=/([\+\-]|\d\d)/gi,gf="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),oi={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},vu={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"},yu={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},at={},y={s:45,m:45,h:22,d:26,M:11},si="DDD w W M D d".split(" "),hi="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.zone(),t="+";return n<0&&(n=-n,t="-"),t+r(i(n/60),2)+":"+r(i(n)%60,2)},ZZ:function(){var n=-this.zone(),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.unix()},Q:function(){return this.quarter()}},ci={},li=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];si.length;)u=si.pop(),a[u+"o"]=wu(a[u],u);while(hi.length)u=hi.pop(),a[u+u]=vi(a[u],2);for(a.DDDD=vi(a.DDD,3),k(yi.prototype,{set:function(n){var t,i;for(i in n)t=n[i],typeof t=="function"?this[i]=t:this["_"+i]=t},_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){var i,r,u;for(this._monthsParse||(this._monthsParse=[]),i=0;i<12;i++)if(this._monthsParse[i]||(r=t.utc([2e3,i]),u="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(u.replace(".",""),"i")),this._monthsParse[i].test(n))return i},_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:{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){var i=this._calendar[n];return typeof i=="function"?i.apply(t):i},_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",preparse:function(n){return n},postformat:function(n){return n},week:function(n){return d(n,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_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(),cr(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)}),t.min=function(){var n=[].slice.call(arguments,0);return lr("isBefore",n)},t.max=function(){var n=[].slice.call(arguments,0);return lr("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(),cr(f).utc()},t.unix=function(n){return t(n*1e3)},t.duration=function(n,r){var f=n,u=null,o,h,s,c;return t.isDuration(n)?f={ms:n._milliseconds,d:n._days,M:n._months}:typeof n=="number"?(f={},r?f[r]=n:f.milliseconds=n):(u=dr.exec(n))?(o=u[1]==="-"?-1:1,f={y:0,d:i(u[e])*o,h:i(u[l])*o,m:i(u[nt])*o,s:i(u[tt])*o,ms:i(u[it])*o}):(u=gr.exec(n))?(o=u[1]==="-"?-1:1,s=function(n){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*o},f={y:s(u[2]),M:s(u[3]),d:s(u[4]),h:s(u[5]),m:s(u[6]),s:s(u[7]),w:s(u[8])}):typeof f=="object"&&("from"in f||"to"in f)&&(c=bu(t(f.from),t(f.to)),f={},f.ms=c.milliseconds,f.M=c.months),h=new yt(f),t.isDuration(n)&&b(n,"_locale")&&(h._locale=n._locale),h},t.version="2.8.3",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,w[n]||(w[n]=new yi),w[n].set(i),t.locale(n),w[n]):(delete w[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=er(n),i)return i;n=[n]}return gu(n)},t.isMoment=function(n){return n instanceof et||n!=null&&b(n,"_isAMomentObject")},t.isDuration=function(n){return n instanceof yt},u=li.length-1;u>=0;--u)du(li[u]);t.normalizeUnits=function(n){return f(n)};t.invalid=function(n){var i=t.utc(NaN);return n!=null?k(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)};k(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?wt(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):wt(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 ur(this)},isDSTShifted:function(){return this._a?this.isValid()&&di(this._a,(this._isUTC?t.utc(this._a):t(this._a)).toArray())>0:!1},parsingFlags:function(){return k({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(n){return this.zone(0,n)},local:function(n){return this._isUTC&&(this.zone(0,n),this._isUTC=!1,n&&this.add(this._dateTzOffset(),"m")),this},format:function(n){var i=wt(this,n||t.defaultFormat);return this.localeData().postformat(i)},add:bi(1,"add"),subtract:bi(-1,"subtract"),diff:function(n,i,r){var u=st(n,this),c=(this.zone()-u.zone())*6e4,e,o,h;return i=f(i),i==="year"||i==="month"?(e=(this.daysInMonth()+u.daysInMonth())*432e5,o=(this.year()-u.year())*12+(this.month()-u.month()),h=this-t(this).startOf("month")-(u-t(u).startOf("month")),h-=(this.zone()-t(this).startOf("month").zone()-(u.zone()-t(u).startOf("month").zone()))*6e4,o+=h/e,i==="year"&&(o=o/12)):(e=this-u,o=i==="second"?e/1e3:i==="minute"?e/6e4:i==="hour"?e/36e5:i==="day"?(e-c)/864e5:i==="week"?(e-c)/6048e5:e),r?o:s(o)},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=st(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))},isLeapYear:function(){return ir(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(n){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=pf(n,this.localeData()),this.add(n-t,"d")):t},month:v("Month",!0),startOf:function(n){n=f(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(n){return n=f(n),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms")},isAfter:function(n,i){return i=f(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this>+n):+this.clone().startOf(i)>+t(n).startOf(i)},isBefore:function(n,i){return i=f(typeof i!="undefined"?i:"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this<+n):+this.clone().startOf(i)<+t(n).startOf(i)},isSame:function(n,i){return i=f(i||"millisecond"),i==="millisecond"?(n=t.isMoment(n)?n:t(n),+this==+n):+this.clone().startOf(i)==+st(n,this).startOf(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:function(n,i){var r=this._offset||0,u;if(n!=null)typeof n=="string"&&(n=sr(n)),Math.abs(n)<16&&(n=n*60),!this._isUTC&&i&&(u=this._dateTzOffset()),this._offset=n,this._isUTC=!0,u!=null&&this.subtract(u,"m"),r!==n&&(!i||this._changeInProgress?ki(this,t.duration(r-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null));else return this._isUTC?r:this._dateTzOffset();return this},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):typeof this._i=="string"&&this.zone(this._i),this},hasAlignedHourOffset:function(n){return n=n?t(n).zone():0,(this.zone()-n)%60==0},daysInMonth:function(){return pt(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=d(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return n==null?t:this.add(n-t,"y")},isoWeekYear:function(n){var t=d(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=d(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 nr(this.year(),1,4)},weeksInYear:function(){var n=this.localeData()._week;return nr(this.year(),n.dow,n.doy)},get:function(n){return n=f(n),this[n]()},set:function(n,t){return n=f(n),typeof this[n]=="function"&&this[n](t),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. Use moment().localeData() instead.",function(t){return t===n?this.localeData():this.locale(t)}),localeData:function(){return this._locale},_dateTzOffset: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;k(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=s(o/1e3);n.seconds=u%60;f=s(u/60);n.minutes=f%60;e=s(f/60);n.hours=e%24;t+=s(e/24);r=s(yr(t));t-=s(pr(r));i+=s(t/30);t%=30;r+=s(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 s(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=bf(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=f(n),this[n.toLowerCase()+"s"]()},as:function(n){var t,i;if(n=f(n),n==="month"||n==="year")return t=this._days+this._milliseconds/864e5,i=this._months+yr(t)*12,n==="month"?i:i/12;t=this._days+pr(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}});t.duration.fn.toString=t.duration.fn.toISOString;for(u in oi)b(oi,u)&&df(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",{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}});ti?module.exports=t:typeof define=="function"&&define.amd?(define("moment",function(n,i,r){return r.config&&r.config()&&r.config().noGlobal===!0&&(rt.moment=ni),t}),wr(!0)):wr()}.call(this),function(n){"use strict";function s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=0|16*Math.random(),i="x"==n?t:8|3&t;return i.toString(16)})}var u=".tubeplayer",r="jquery-youtube-tubeplayer",f="opts"+u,t={inited:!1,ytplayers:{},inits:[],iframeScriptInited:!1,State:{UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},Error:{BAD_INIT:0,INVALID_PARAM:2,NOT_FOUND:100,NOT_EMBEDDABLE:101,CANT_PLAY:150}},o,i,e;n.tubeplayer={events:{},TubePlayer:t};n.tubeplayer.defaults={afterReady:function(){},stateChange:function(i){var r=this.onPlayer;return function(u){var f=n("#"+i).parent();switch("object"==typeof u&&(u=u.data),u){case t.State.UNSTARTED:return r.unstarted[i].call(f);case t.State.ENDED:return r.ended[i].call(f);case t.State.PLAYING:return r.playing[i].call(f);case t.State.PAUSED:return r.paused[i].call(f);case t.State.BUFFERING:return r.buffering[i].call(f);case t.State.CUED:return r.cued[i].call(f);default:return null}}},onError:function(i){var r=this.onErr;return function(u){var f=n("#"+i).parent();switch("object"==typeof u&&(u=u.data),u){case t.Error.BAD_INIT:case t.Error.INVALID_PARAM:return r.invalidParameter[i].call(f);case t.Error.NOT_FOUND:return r.notFound[i].call(f);case t.Error.NOT_EMBEDDABLE:case t.Error.CANT_PLAY:return r.notEmbeddable[i].call(f);default:return r.defaultError[i].call(f)}}},qualityChange:function(t){var i=this;return function(r){var u=n("#"+t).parent();return"object"==typeof r&&(r=r.data),i.onQualityChange[t].call(u,r)}},onQualityChange:{},onPlayer:{unstarted:{},ended:{},playing:{},paused:{},buffering:{},cued:{}},onErr:{defaultError:{},notFound:{},notEmbeddable:{},invalidParameter:{}}};o={width:425,height:355,allowFullScreen:"true",initialVideo:"DkoeNLuMbcI",start:0,preferredQuality:"default",showControls:!0,showRelated:!1,playsinline:!1,annotations:!0,autoPlay:!1,autoHide:!0,loop:0,theme:"dark",color:"red",showinfo:!1,modestbranding:!0,protocol:window.location.protocol.replace(":",""),wmode:"transparent",swfobjectURL:"ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",loadSWFObject:!1,allowScriptAccess:"always",playerID:"tubeplayer-player-container",iframed:!0,onPlay:function(){},onPause:function(){},onStop:function(){},onSeek:function(){},onMute:function(){},onUnMute:function(){},onPlayerUnstarted:function(){},onPlayerEnded:function(){},onPlayerPlaying:function(){},onPlayerPaused:function(){},onPlayerBuffering:function(){},onPlayerCued:function(){},onQualityChange:function(){},onError:function(){},onErrorNotFound:function(){},onErrorNotEmbeddable:function(){},onErrorInvalidParameter:function(){}};n.fn.tubeplayer=function(i,r){var f=n(this),e=typeof i;return 0===arguments.length||"object"===e?f.each(function(){t.init(n(this),i)}):"string"===e?f.triggerHandler(i+u,r!==void 0?r:null):void 0};i=function(n){return function(i,r){var u=t.getPkg(i),f;return u.ytplayer?(f=n(i,r,u),f===void 0&&(f=u.$player),f):u.$player}};n.tubeplayer.getPlayers=function(){return t.ytplayers};t.init=function(i,h){var c,l;if(i.hasClass(r))return i;c=n.extend({},o,h);c.playerID+="-"+s();i.addClass(r).data(f,c);for(l in e)i.bind(l+u,i,e[l]);return t.initDefaults(n.tubeplayer.defaults,c),n("<div><\/div>").attr("id",c.playerID).appendTo(i),t.initPlayer(i,c),i};t.getPkg=function(n){var i=n.data,r=i.data(f),u=t.ytplayers[r.playerID];return{$player:i,opts:r,ytplayer:u}};t.iframeReady=function(i){return t.inits.push(function(){new YT.Player(i.playerID,{videoId:i.initialVideo,width:i.width,height:i.height,playerVars:{autoplay:i.autoPlay?1:0,autohide:i.autoHide?1:0,controls:i.showControls?1:0,loop:i.loop?1:0,playlist:i.loop?i.initialVideo:"",rel:i.showRelated?1:0,fs:i.allowFullScreen?1:0,wmode:i.wmode,showinfo:i.showinfo?1:0,modestbranding:i.modestbranding?1:0,iv_load_policy:i.annotations?1:3,start:i.start,theme:i.theme,color:i.color,playsinline:i.playsinline},events:{onReady:function(u){t.ytplayers[i.playerID]=u.target;var f=n(u.target.getIframe()).parents("."+r);n.tubeplayer.defaults.afterReady(f)},onPlaybackQualityChange:n.tubeplayer.defaults.qualityChange(i.playerID),onStateChange:n.tubeplayer.defaults.stateChange(i.playerID),onError:n.tubeplayer.defaults.onError(i.playerID)}})}),t.inits.length>=1&&!t.inited?function(){for(var n=0;t.inits.length>n;n++)t.inits[n]();t.inited=!0}:(t.inited&&t.inits.pop()(),window.onYouTubePlayerAPIReady)};t.initDefaults=function(n,t){var i=t.playerID,r=n.onPlayer,u;r.unstarted[i]=t.onPlayerUnstarted;r.ended[i]=t.onPlayerEnded;r.playing[i]=t.onPlayerPlaying;r.paused[i]=t.onPlayerPaused;r.buffering[i]=t.onPlayerBuffering;r.cued[i]=t.onPlayerCued;n.onQualityChange[i]=t.onQualityChange;u=n.onErr;u.defaultError[i]=t.onError;u.notFound[i]=t.onErrorNotFound;u.notEmbeddable[i]=t.onErrorNotEmbeddable;u.invalidParameter[i]=t.onErrorInvalidParameter};t.initPlayer=function(n,i){i.iframed?t.initIframePlayer(n,i):t.initFlashPlayer(n,i)};t.initIframePlayer=function(n,i){var r,u;t.iframeScriptInited||(r=document.createElement("script"),r.src=i.protocol+"://www.youtube.com/iframe_api",u=document.getElementsByTagName("script")[0],u.parentNode.insertBefore(r,u),t.iframeScriptInited=!0);window.onYouTubePlayerAPIReady=t.iframeReady(i)};t.initFlashPlayer=function(i,r){r.loadSWFObject?(r.swfobjectURL=r.swfobjectURL.replace("http://",""),r.swfobjectURL=r.swfobjectURL.replace("https://",""),r.swfobjectURL=r.protocol+"://"+r.swfobjectURL,n.getScript(r.swfobjectURL,t.init_flash_player(r))):t.init_flash_player(r)()};t.init_flash_player=function(i){return function(){if(!window.swfobject)return alert("YouTube Player couldn't be initialized. Please include swfobject."),void 0;var u=["//www.youtube.com/v/"];u.push(i.initialVideo);u.push("?&enablejsapi=1&version=3");u.push("&playerapiid="+i.playerID);u.push("&rel= "+(i.showRelated?1:0));u.push("&autoplay="+(i.autoPlay?1:0));u.push("&autohide="+(i.autoHide?1:0));u.push("&loop="+(i.loop?1:0));u.push("&playlist="+(i.loop?i.initialVideo:""));u.push("&controls="+(i.showControls?1:0));u.push("&showinfo="+(i.showinfo?1:0));u.push("&modestbranding="+(i.modestbranding?1:0));u.push("&iv_load_policy="+(i.annotations?1:3));u.push("&start="+i.start);u.push("&theme="+i.theme);u.push("&color="+i.color);u.push("&playsinline="+i.playsinline);u.push("&fs="+(i.allowFullScreen?1:0));window.swfobject.embedSWF(u.join(""),i.playerID,i.width,i.height,"8",null,null,{allowScriptAccess:i.allowScriptAccess,wmode:i.wmode,allowFullScreen:i.allowFullScreen},{id:i.playerID});window.onYouTubePlayerReady=function(i){var u=document.getElementById(i),f=i.replace(/-/g,""),e=n.tubeplayer.defaults,o;n.tubeplayer.events[f]={stateChange:e.stateChange(i),error:e.onError(i),qualityChange:e.qualityChange(i)};u.addEventListener("onStateChange","$.tubeplayer.events."+f+".stateChange");u.addEventListener("onError","$.tubeplayer.events."+f+".error");u.addEventListener("onPlaybackQualityChange","$.tubeplayer.events."+f+".qualityChange");t.ytplayers[i]=u;o=n(u).parents("."+r);n.tubeplayer.defaults.afterReady(o)}}};t.getVideoIDFromURL=function(n){var i;n=n||"";var u=n.indexOf("?"),t=n.substring(u,n.length),r=t.indexOf("v=");return r>-1?(i=t.indexOf("&",r),-1===i&&(i=t.length),t.substring(r+2,i)):""};e={opts:i(function(n,t,i){return i.opts}),cue:i(function(n,t,i){i.ytplayer.cueVideoById(t,0,i.opts.preferredQuality)}),play:i(function(n,t,i){"object"==typeof t?i.ytplayer.loadVideoById(t.id,t.time,i.opts.preferredQuality):t!==void 0?i.ytplayer.loadVideoById(t,0,i.opts.preferredQuality):i.ytplayer.playVideo();i.opts.onPlay(t)}),pause:i(function(n,t,i){i.ytplayer.pauseVideo();i.opts.onPause(i)}),stop:i(function(n,t,i){i.ytplayer.stopVideo();i.opts.onStop(i)}),seek:i(function(n,t,i){var u,r;if(/:/.test(t))for(u=t.split(":").reverse(),t=0,r=0;u.length>r;r++)t+=Math.pow(60,r)*(0|u[r]);i.ytplayer.seekTo(t,!0);i.opts.onSeek(t)}),mute:i(function(n,t,i){i.$player.attr("data-prev-mute-volume",i.ytplayer.getVolume());i.ytplayer.mute();i.opts.onMute(i)}),unmute:i(function(n,t,i){i.ytplayer.unMute();i.ytplayer.setVolume(i.$player.attr("data-prev-mute-volume")||50);i.opts.onUnMute()}),isMuted:i(function(n,t,i){return i.ytplayer.isMuted()}),volume:i(function(n,t,i){return void 0===t?i.ytplayer.getVolume()||0:(i.ytplayer.setVolume(t),i.$player.attr("data-prev-mute-volume",i.ytplayer.getVolume()),void 0)}),quality:i(function(n,t,i){return void 0===t?i.ytplayer.getPlaybackQuality():(i.ytplayer.setPlaybackQuality(t),void 0)}),playbackRate:i(function(n,t,i){return void 0===t?i.ytplayer.getPlaybackRate():(i.ytplayer.setPlaybackRate(t),void 0)}),data:i(function(n,i,r){var u={},f=r.ytplayer;return u.videoLoadedFraction=f.getVideoLoadedFraction(),u.bytesLoaded=f.getVideoBytesLoaded(),u.bytesTotal=f.getVideoBytesTotal(),u.startBytes=f.getVideoStartBytes(),u.state=f.getPlayerState(),u.currentTime=f.getCurrentTime(),u.duration=f.getDuration(),u.videoURL=f.getVideoUrl(),u.videoEmbedCode=f.getVideoEmbedCode(),u.videoID=t.getVideoIDFromURL(u.videoURL),u.availableQualityLevels=f.getAvailableQualityLevels(),u.availablePlaybackRates=f.getAvailablePlaybackRates(),u}),videoId:i(function(n,i,r){return t.getVideoIDFromURL(r.ytplayer.getVideoUrl())}),size:i(function(t,i,r){i!==void 0&&i.width&&i.height&&(r.ytplayer.setSize(i.width,i.height),n(r.ytplayer).css(i))}),destroy:i(function(i,e,o){o.$player.removeClass(r).data(f,null).unbind(u).html("");delete t.ytplayers[o.opts.playerID];var s=n.tubeplayer.defaults,h=["unstarted","ended","playing","paused","buffering","cued"];return n.each(h,function(n,t){delete s.onPlayer[t][o.opts.playerID]}),h=["defaultError","notFound","notEmbeddable","invalidParameter"],n.each(h,function(n,t){delete s.onErr[t][o.opts.playerID]}),delete s.onQualityChange[o.opts.playerID],delete n.tubeplayer.events[o.opts.playerID],"destroy"in o.ytplayer&&o.ytplayer.destroy(),n(o.ytplayer).remove(),null}),player:i(function(n,t,i){return i.ytplayer})}}(jQuery);!function(n,t){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],t);else if("object"==typeof exports)t(require("jquery"),require("moment"));else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker requires moment.js to be loaded first");t(n.jQuery,moment)}}(this,function(n,t){"use strict";if("undefined"==typeof t)throw new Error("momentjs is required");var i=0,r=function(r,u){var g,ht=n.fn.datetimepicker.defaults,ct={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},f=this,nt=!1,lt=function(){var s,h,o=!1;if(f.options=n.extend({},ht,u),f.options.icons=n.extend({},ct,f.options.icons),f.element=n(r),at(),!f.options.pickTime&&!f.options.pickDate)throw new Error("Must choose at least one picker");if(f.id=i++,t.locale(f.options.language),f.date=t(),f.unset=!1,f.isInput=f.element.is("input"),f.component=!1,f.element.hasClass("input-group")&&(f.component=f.element.find(0===f.element.find(".datepickerbutton").size()?'[class^="input-group-"]':".datepickerbutton")),f.format=f.options.format,s=t().localeData(),f.format||(f.format=f.options.pickDate?s.longDateFormat("L"):"",f.options.pickDate&&f.options.pickTime&&(f.format+=" "),f.format+=f.options.pickTime?s.longDateFormat("LT"):"",f.options.useSeconds&&(-1!==s.longDateFormat("LT").indexOf(" A")?f.format=f.format.split(" A")[0]+":ss A":f.format+=":ss")),f.use24hours=f.format.toLowerCase().indexOf("a")<0&&f.format.indexOf("h")<0,f.component&&(o=f.component.find("span")),f.options.pickTime&&o&&o.addClass(f.options.icons.time),f.options.pickDate&&o&&(o.removeClass(f.options.icons.time),o.addClass(f.options.icons.date)),f.options.widgetParent="string"==typeof f.options.widgetParent&&f.options.widgetParent||f.element.parents().filter(function(){return"scroll"===n(this).css("overflow-y")}).get(0)||"body",f.widget=n(ii()).appendTo(f.options.widgetParent),f.minViewMode=f.options.minViewMode||0,"string"==typeof f.minViewMode)switch(f.minViewMode){case"months":f.minViewMode=1;break;case"years":f.minViewMode=2;break;default:f.minViewMode=0}if(f.viewMode=f.options.viewMode||0,"string"==typeof f.viewMode)switch(f.viewMode){case"months":f.viewMode=1;break;case"years":f.viewMode=2;break;default:f.viewMode=0}f.viewMode=Math.max(f.viewMode,f.minViewMode);f.options.disabledDates=d(f.options.disabledDates);f.options.enabledDates=d(f.options.enabledDates);f.startViewMode=f.viewMode;f.setMinDate(f.options.minDate);f.setMaxDate(f.options.maxDate);vt();yt();pt();wt();bt();c();b();e().prop("disabled")||ft();""!==f.options.defaultDate&&""===e().val()&&f.setValue(f.options.defaultDate);1!==f.options.minuteStepping&&(h=f.options.minuteStepping,f.date.minutes(Math.round(f.date.minutes()/h)*h%60).seconds(0))},e=function(){var n;if(f.isInput)return f.element;if(n=f.element.find(".datepickerinput"),0===n.size())n=f.element.find("input");else if(!n.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return n},at=function(){var n;n=f.element.is("input")?f.element.data():f.element.find("input").data();void 0!==n.dateFormat&&(f.options.format=n.dateFormat);void 0!==n.datePickdate&&(f.options.pickDate=n.datePickdate);void 0!==n.datePicktime&&(f.options.pickTime=n.datePicktime);void 0!==n.dateUseminutes&&(f.options.useMinutes=n.dateUseminutes);void 0!==n.dateUseseconds&&(f.options.useSeconds=n.dateUseseconds);void 0!==n.dateUsecurrent&&(f.options.useCurrent=n.dateUsecurrent);void 0!==n.calendarWeeks&&(f.options.calendarWeeks=n.calendarWeeks);void 0!==n.dateMinutestepping&&(f.options.minuteStepping=n.dateMinutestepping);void 0!==n.dateMindate&&(f.options.minDate=n.dateMindate);void 0!==n.dateMaxdate&&(f.options.maxDate=n.dateMaxdate);void 0!==n.dateShowtoday&&(f.options.showToday=n.dateShowtoday);void 0!==n.dateCollapse&&(f.options.collapse=n.dateCollapse);void 0!==n.dateLanguage&&(f.options.language=n.dateLanguage);void 0!==n.dateDefaultdate&&(f.options.defaultDate=n.dateDefaultdate);void 0!==n.dateDisableddates&&(f.options.disabledDates=n.dateDisableddates);void 0!==n.dateEnableddates&&(f.options.enabledDates=n.dateEnableddates);void 0!==n.dateIcons&&(f.options.icons=n.dateIcons);void 0!==n.dateUsestrict&&(f.options.useStrict=n.dateUsestrict);void 0!==n.dateDirection&&(f.options.direction=n.dateDirection);void 0!==n.dateSidebyside&&(f.options.sideBySide=n.dateSidebyside);void 0!==n.dateDaysofweekdisabled&&(f.options.daysOfWeekDisabled=n.dateDaysofweekdisabled)},ut=function(){var r,u="absolute",t=f.component?f.component.offset():f.element.offset(),i=n(window);f.width=f.component?f.component.outerWidth():f.element.outerWidth();t.top=t.top+f.element.outerHeight();"up"===f.options.direction?r="top":"bottom"===f.options.direction?r="bottom":"auto"===f.options.direction&&(r=t.top+f.widget.height()>i.height()+i.scrollTop()&&f.widget.height()+f.element.outerHeight()<t.top?"top":"bottom");"top"===r?(t.bottom=i.height()-t.top+f.element.outerHeight()+3,f.widget.addClass("top").removeClass("bottom")):(t.top+=1,f.widget.addClass("bottom").removeClass("top"));void 0!==f.options.width&&f.widget.width(f.options.width);"left"===f.options.orientation&&(f.widget.addClass("left-oriented"),t.left=t.left-f.widget.width()+20);ti()&&(u="fixed",t.top-=i.scrollTop(),t.left-=i.scrollLeft());i.width()<t.left+f.widget.outerWidth()?(t.right=i.width()-t.left-f.width,t.left="auto",f.widget.addClass("pull-right")):(t.right="auto",f.widget.removeClass("pull-right"));f.widget.css("top"===r?{position:u,bottom:t.bottom,top:"auto",left:t.left,right:t.right}:{position:u,top:t.top,bottom:"auto",left:t.left,right:t.right})},o=function(n,i){(!t(f.date).isSame(t(n))||nt)&&(nt=!1,f.element.trigger({type:"dp.change",date:t(f.date),oldDate:t(n)}),"change"!==i&&f.element.change())},tt=function(n){nt=!0;f.element.trigger({type:"dp.error",date:t(n,f.format,f.options.useStrict)})},c=function(n){t.locale(f.options.language);var i=n;i||(i=e().val(),i&&(f.date=t(i,f.format,f.options.useStrict)),f.date||(f.date=t()));f.viewDate=t(f.date).startOf("month");v();it()},vt=function(){t.locale(f.options.language);var i,r=n("<tr>"),u=t.weekdaysMin();if(f.options.calendarWeeks===!0&&r.append('<th class="cw">#<\/th>'),0===t().localeData()._week.dow)for(i=0;7>i;i++)r.append('<th class="dow">'+u[i]+"<\/th>");else for(i=1;8>i;i++)r.append(7===i?'<th class="dow">'+u[0]+"<\/th>":'<th class="dow">'+u[i]+"<\/th>");f.widget.find(".datepicker-days thead").append(r)},yt=function(){t.locale(f.options.language);for(var i="",r=t.monthsShort(),n=0;12>n;n++)i+='<span class="month">'+r[n]+"<\/span>";f.widget.find(".datepicker-months td").append(i)},v=function(){if(f.options.pickDate){t.locale(f.options.language);var y,r,p,a,e,u,w,b,v,i=f.viewDate.year(),h=f.viewDate.month(),o=f.options.minDate.year(),d=f.options.minDate.month(),s=f.options.maxDate.year(),g=f.options.maxDate.month(),c=[],l=t.months();for(f.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),f.widget.find(".datepicker-days th:eq(1)").text(l[h]+" "+i),r=t(f.viewDate,f.format,f.options.useStrict).subtract(1,"months"),w=r.daysInMonth(),r.date(w).startOf("week"),(i===o&&d>=h||o>i)&&f.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(i===s&&h>=g||i>s)&&f.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),p=t(r).add(42,"d");r.isBefore(p);){if(r.weekday()===t().startOf("week").weekday()&&(a=n("<tr>"),c.push(a),f.options.calendarWeeks===!0&&a.append('<td class="cw">'+r.week()+"<\/td>")),e="",r.year()<i||r.year()===i&&r.month()<h?e+=" old":(r.year()>i||r.year()===i&&r.month()>h)&&(e+=" new"),r.isSame(t({y:f.date.year(),M:f.date.month(),d:f.date.date()}))&&(e+=" active"),(k(r,"day")||!st(r))&&(e+=" disabled"),f.options.showToday===!0&&r.isSame(t(),"day")&&(e+=" today"),f.options.daysOfWeekDisabled)for(u=0;u<f.options.daysOfWeekDisabled.length;u++)if(r.day()===f.options.daysOfWeekDisabled[u]){e+=" disabled";break}a.append('<td class="day'+e+'">'+r.date()+"<\/td>");y=r.date();r.add(1,"d");y===r.date()&&r.add(1,"d")}for(f.widget.find(".datepicker-days tbody").empty().append(c),v=f.date.year(),l=f.widget.find(".datepicker-months").find("th:eq(1)").text(i).end().find("span").removeClass("active"),v===i&&l.eq(f.date.month()).addClass("active"),o>i-1&&f.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),i+1>s&&f.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),u=0;12>u;u++)i===o&&d>u||o>i?n(l[u]).addClass("disabled"):(i===s&&u>g||i>s)&&n(l[u]).addClass("disabled");for(c="",i=10*parseInt(i/10,10),b=f.widget.find(".datepicker-years").find("th:eq(1)").text(i+"-"+(i+9)).parents("table").find("td"),f.widget.find(".datepicker-years").find("th").removeClass("disabled"),o>i&&f.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),i+9>s&&f.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),i-=1,u=-1;11>u;u++)c+='<span class="year'+(-1===u||10===u?" old":"")+(v===i?" active":"")+(o>i||i>s?" disabled":"")+'">'+i+"<\/span>",i+=1;b.html(c)}},pt=function(){t.locale(f.options.language);var i,r,u,e=f.widget.find(".timepicker .timepicker-hours table"),n="";if(e.parent().hide(),f.use24hours)for(i=0,r=0;6>r;r+=1){for(n+="<tr>",u=0;4>u;u+=1)n+='<td class="hour">'+s(i.toString())+"<\/td>",i++;n+="<\/tr>"}else for(i=1,r=0;3>r;r+=1){for(n+="<tr>",u=0;4>u;u+=1)n+='<td class="hour">'+s(i.toString())+"<\/td>",i++;n+="<\/tr>"}e.html(n)},wt=function(){var i,r,e=f.widget.find(".timepicker .timepicker-minutes table"),n="",u=0,t=f.options.minuteStepping;for(e.parent().hide(),1===t&&(t=5),i=0;i<Math.ceil(15/t);i++){for(n+="<tr>",r=0;4>r;r+=1)60>u?(n+='<td class="minute">'+s(u.toString())+"<\/td>",u+=t):n+="<td><\/td>";n+="<\/tr>"}e.html(n)},bt=function(){var t,i,r=f.widget.find(".timepicker .timepicker-seconds table"),n="",u=0;for(r.parent().hide(),t=0;3>t;t++){for(n+="<tr>",i=0;4>i;i+=1)n+='<td class="second">'+s(u.toString())+"<\/td>",u+=5;n+="<\/tr>"}r.html(n)},it=function(){if(f.date){var t=f.widget.find(".timepicker span[data-time-component]"),n=f.date.hours(),i=f.date.format("A");f.use24hours||(0===n?n=12:12!==n&&(n%=12),f.widget.find(".timepicker [data-action=togglePeriod]").text(i));t.filter("[data-time-component=hours]").text(s(n));t.filter("[data-time-component=minutes]").text(s(f.date.minutes()));t.filter("[data-time-component=seconds]").text(s(f.date.second()))}},kt=function(i){i.stopPropagation();i.preventDefault();f.unset=!1;var u,e,s,h,r=n(i.target).closest("span, td, th"),c=t(f.date);if(1===r.length&&!r.is(".disabled"))switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"picker-switch":b(1);break;case"prev":case"next":s=rt.modes[f.viewMode].navStep;"prev"===r[0].className&&(s=-1*s);f.viewDate.add(s,rt.modes[f.viewMode].navFnc);v()}break;case"span":r.is(".month")?(u=r.parent().find("span").index(r),f.viewDate.month(u)):(e=parseInt(r.text(),10)||0,f.viewDate.year(e));f.viewMode===f.minViewMode&&(f.date=t({y:f.viewDate.year(),M:f.viewDate.month(),d:f.viewDate.date(),h:f.date.hours(),m:f.date.minutes(),s:f.date.seconds()}),l(),o(c,i.type));b(-1);v();break;case"td":r.is(".day")&&(h=parseInt(r.text(),10)||1,u=f.viewDate.month(),e=f.viewDate.year(),r.is(".old")?0===u?(u=11,e-=1):u-=1:r.is(".new")&&(11===u?(u=0,e+=1):u+=1),f.date=t({y:e,M:u,d:h,h:f.date.hours(),m:f.date.minutes(),s:f.date.seconds()}),f.viewDate=t({y:e,M:u,d:Math.min(28,h)}),v(),l(),o(c,i.type))}},y={incrementHours:function(){a("add","hours",1)},incrementMinutes:function(){a("add","minutes",f.options.minuteStepping)},incrementSeconds:function(){a("add","seconds",1)},decrementHours:function(){a("subtract","hours",1)},decrementMinutes:function(){a("subtract","minutes",f.options.minuteStepping)},decrementSeconds:function(){a("subtract","seconds",1)},togglePeriod:function(){var n=f.date.hours();n>=12?n-=12:n+=12;f.date.hours(n)},showPicker:function(){f.widget.find(".timepicker > div:not(.timepicker-picker)").hide();f.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){f.widget.find(".timepicker .timepicker-picker").hide();f.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=parseInt(n(t.target).text(),10);f.use24hours||(f.date.hours()>=12?12!==i&&(i+=12):12===i&&(i=0));f.date.hours(i);y.showPicker.call(f)},selectMinute:function(t){f.date.minutes(parseInt(n(t.target).text(),10));y.showPicker.call(f)},selectSecond:function(t){f.date.seconds(parseInt(n(t.target).text(),10));y.showPicker.call(f)}},dt=function(i){var r=t(f.date),u=n(i.currentTarget).data("action"),e=y[u].apply(f,arguments);return p(i),f.date||(f.date=t({y:1970})),l(),it(),o(r,i.type),e},p=function(n){n.stopPropagation();n.preventDefault()},gt=function(n){27===n.keyCode&&f.hide()},w=function(i){t.locale(f.options.language);var e=n(i.target),u=t(f.date),r=t(e.val(),f.format,f.options.useStrict);r.isValid()&&!k(r)&&st(r)?(c(),f.setValue(r),o(u,i.type),l()):(f.viewDate=u,f.unset=!0,o(u,i.type),tt(r))},b=function(n){n&&(f.viewMode=Math.max(f.minViewMode,Math.min(2,f.viewMode+n)));f.widget.find(".datepicker > div").hide().filter(".datepicker-"+rt.modes[f.viewMode].clsName).show()},ft=function(){var i,r,t,e,u;f.widget.on("click",".datepicker *",n.proxy(kt,this));f.widget.on("click","[data-action]",n.proxy(dt,this));f.widget.on("mousedown",n.proxy(p,this));f.element.on("keydown",n.proxy(gt,this));f.options.pickDate&&f.options.pickTime&&f.widget.on("click.togglePicker",".accordion-toggle",function(o){if(o.stopPropagation(),i=n(this),r=i.closest("ul"),t=r.find(".in"),e=r.find(".collapse:not(.in)"),t&&t.length){if(u=t.data("collapse"),u&&u.transitioning)return;t.collapse("hide");e.collapse("show");i.find("span").toggleClass(f.options.icons.time+" "+f.options.icons.date);f.component&&f.component.find("span").toggleClass(f.options.icons.time+" "+f.options.icons.date)}});f.isInput?f.element.on({click:n.proxy(f.show,this),focus:n.proxy(f.show,this),change:n.proxy(w,this),blur:n.proxy(f.hide,this)}):(f.element.on({change:n.proxy(w,this)},"input"),f.component?(f.component.on("click",n.proxy(f.show,this)),f.component.on("mousedown",n.proxy(p,this))):f.element.on("click",n.proxy(f.show,this)))},ni=function(){n(window).on("resize.datetimepicker"+f.id,n.proxy(ut,this));f.isInput||n(document).on("mousedown.datetimepicker"+f.id,n.proxy(f.hide,this))},et=function(){f.widget.off("click",".datepicker *",f.click);f.widget.off("click","[data-action]");f.widget.off("mousedown",f.stopEvent);f.options.pickDate&&f.options.pickTime&&f.widget.off("click.togglePicker");f.isInput?f.element.off({focus:f.show,change:w,click:f.show,blur:f.hide}):(f.element.off({change:w},"input"),f.component?(f.component.off("click",f.show),f.component.off("mousedown",f.stopEvent)):f.element.off("click",f.show))},ot=function(){n(window).off("resize.datetimepicker"+f.id);f.isInput||n(document).off("mousedown.datetimepicker"+f.id)},ti=function(){if(f.element){for(var i=f.element.parents(),r=!1,t=0;t<i.length;t++)if("fixed"===n(i[t]).css("position")){r=!0;break}return r}return!1},l=function(){t.locale(f.options.language);var n="";f.unset||(n=t(f.date).format(f.format));e().val(n);f.element.data("date",n);f.options.pickTime||f.hide()},a=function(n,i,r){t.locale(f.options.language);var u;return"add"===n?(u=t(f.date),23===u.hours()&&u.add(r,i),u.add(r,i)):u=t(f.date).subtract(r,i),k(t(u.subtract(r,i)))||k(u)?void tt(u.format(f.format)):("add"===n?f.date.add(r,i):f.date.subtract(r,i),void(f.unset=!1))},k=function(n,i){t.locale(f.options.language);var r=t(f.options.maxDate,f.format,f.options.useStrict),u=t(f.options.minDate,f.format,f.options.useStrict);return i&&(r=r.endOf(i),u=u.startOf(i)),n.isAfter(r)||n.isBefore(u)?!0:f.options.disabledDates===!1?!1:f.options.disabledDates[n.format("YYYY-MM-DD")]===!0},st=function(n){return t.locale(f.options.language),f.options.enabledDates===!1?!0:f.options.enabledDates[n.format("YYYY-MM-DD")]===!0},d=function(n){for(var r={},u=0,i=0;i<n.length;i++)g=t.isMoment(n[i])||n[i]instanceof Date?t(n[i]):t(n[i],f.format,f.options.useStrict),g.isValid()&&(r[g.format("YYYY-MM-DD")]=!0,u++);return u>0?r:!1},s=function(n){return n=n.toString(),n.length>=2?n:"0"+n},ii=function(){var n='<thead><tr><th class="prev">&lsaquo;<\/th><th colspan="'+(f.options.calendarWeeks?"6":"5")+'" class="picker-switch"><\/th><th class="next">&rsaquo;<\/th><\/tr><\/thead>',r='<tbody><tr><td colspan="'+(f.options.calendarWeeks?"8":"7")+'"><\/td><\/tr><\/tbody>',t='<div class="datepicker-days"><table class="table-condensed">'+n+'<tbody><\/tbody><\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+n+r+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+n+r+"<\/table><\/div>",i="";return f.options.pickDate&&f.options.pickTime?(i='<div class="bootstrap-datetimepicker-widget'+(f.options.sideBySide?" timepicker-sbs":"")+(f.use24hours?" usetwentyfour":"")+' dropdown-menu" style="z-index:9999 !important;">',i+=f.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+t+'<\/div><div class="col-sm-6 timepicker">'+h.getTemplate()+"<\/div><\/div>":'<ul class="list-unstyled"><li'+(f.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+t+'<\/div><\/li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+f.options.icons.time+'"><\/span><\/a><\/li><li'+(f.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+h.getTemplate()+"<\/div><\/li><\/ul>",i+="<\/div>"):f.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+h.getTemplate()+"<\/div><\/div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+t+"<\/div><\/div>"},rt={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}]},h={hourTemplate:'<span data-action="showHours"   data-time-component="hours"   class="timepicker-hour"><\/span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"><\/span>',secondTemplate:'<span data-action="showSeconds"  data-time-component="seconds" class="timepicker-second"><\/span>'};h.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+f.options.icons.up+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(f.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+f.options.icons.up+'"><\/span><\/a>':"")+"<\/td>"+(f.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+f.options.icons.up+'"><\/span><\/a><\/td>':"")+(f.use24hours?"":'<td class="separator"><\/td>')+"<\/tr><tr><td>"+h.hourTemplate+'<\/td> <td class="separator">:<\/td><td>'+(f.options.useMinutes?h.minuteTemplate:'<span class="timepicker-minute">00<\/span>')+"<\/td> "+(f.options.useSeconds?'<td class="separator">:<\/td><td>'+h.secondTemplate+"<\/td>":"")+(f.use24hours?"":'<td class="separator"><\/td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"><\/button><\/td>')+'<\/tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+f.options.icons.down+'"><\/span><\/a><\/td><td class="separator"><\/td><td>'+(f.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+f.options.icons.down+'"><\/span><\/a>':"")+"<\/td>"+(f.options.useSeconds?'<td class="separator"><\/td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+f.options.icons.down+'"><\/span><\/a><\/td>':"")+(f.use24hours?"":'<td class="separator"><\/td>')+'<\/tr><\/table><\/div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"><\/table><\/div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"><\/table><\/div>'+(f.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"><\/table><\/div>':"")};f.destroy=function(){et();ot();f.widget.remove();f.element.removeData("DateTimePicker");f.component&&f.component.removeData("DateTimePicker")};f.show=function(n){if(!e().prop("disabled")){if(f.options.useCurrent&&""===e().val()){if(1!==f.options.minuteStepping){var i=t(),r=f.options.minuteStepping;i.minutes(Math.round(i.minutes()/r)*r%60).seconds(0);f.setValue(i.format(f.format))}else f.setValue(t().format(f.format));o("",n.type)}n&&"click"===n.type&&f.isInput&&f.widget.hasClass("picker-open")||(f.widget.hasClass("picker-open")?(f.widget.hide(),f.widget.removeClass("picker-open")):(f.widget.show(),f.widget.addClass("picker-open")),f.height=f.component?f.component.outerHeight():f.element.outerHeight(),ut(),f.element.trigger({type:"dp.show",date:t(f.date)}),ni(),n&&p(n))}};f.disable=function(){var n=e();n.prop("disabled")||(n.prop("disabled",!0),et())};f.enable=function(){var n=e();n.prop("disabled")&&(n.prop("disabled",!1),ft())};f.hide=function(){for(var i,r=f.widget.find(".collapse"),n=0;n<r.length;n++)if(i=r.eq(n).data("collapse"),i&&i.transitioning)return;f.widget.hide();f.widget.removeClass("picker-open");f.viewMode=f.startViewMode;b();f.element.trigger({type:"dp.hide",date:t(f.date)});ot()};f.setValue=function(n){t.locale(f.options.language);n?f.unset=!1:(f.unset=!0,l());n=t.isMoment(n)?n.locale(f.options.language):n instanceof Date?t(n):t(n,f.format,f.options.useStrict);n.isValid()?(f.date=n,l(),f.viewDate=t({y:f.date.year(),M:f.date.month()}),v(),it()):tt(n)};f.getDate=function(){return f.unset?null:t(f.date)};f.setDate=function(n){var i=t(f.date);f.setValue(n?n:null);o(i,"function")};f.setDisabledDates=function(n){f.options.disabledDates=d(n);f.viewDate&&c()};f.setEnabledDates=function(n){f.options.enabledDates=d(n);f.viewDate&&c()};f.setMaxDate=function(n){void 0!==n&&(f.options.maxDate=t.isMoment(n)||n instanceof Date?t(n):t(n,f.format,f.options.useStrict),f.viewDate&&c())};f.setMinDate=function(n){void 0!==n&&(f.options.minDate=t.isMoment(n)||n instanceof Date?t(n):t(n,f.format,f.options.useStrict),f.viewDate&&c())};lt()};n.fn.datetimepicker=function(t){return this.each(function(){var i=n(this),u=i.data("DateTimePicker");u||i.data("DateTimePicker",new r(this,t))})};n.fn.datetimepicker.defaults={format:!1,pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,calendarWeeks:!1,minuteStepping:1,minDate:t({y:1900}),maxDate:t().add(100,"y"),showToday:!0,collapse:!0,language:t.locale(),defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:[],widgetParent:!1}});!function(n){"use strict";var t=function(t,i){this.options=i;this.$element=n(t).delegate('[data-dismiss="lightbox"]',"click.dismiss.lightbox",n.proxy(this.hide,this));this.options.remote&&this.$element.find(".lightbox-body").load(this.options.remote)},i;t.prototype=n.extend({},n.fn.modal.Constructor.prototype);t.prototype.constructor=t;t.prototype.enforceFocus=function(){var t=this;n(document).on("focusin.lightbox",function(n){t.$element[0]===n.target||t.$element.has(n.target).length||t.$element.focus()})};t.prototype.show=function(){var t=this,i=n.Event("show");(this.$element.trigger(i),this.isShown||i.isDefaultPrevented())||(this.isShown=!0,this.escape(),this.preloadSize(function(){t.backdrop(function(){var i=n.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body);t.$element.show();i&&t.$element[0].offsetWidth;t.$element.addClass("in").attr("aria-hidden",!1);t.enforceFocus();i?t.$element.one(n.support.transition.end,function(){t.$element.focus().trigger("shown")}):t.$element.focus().trigger("shown")})}))};t.prototype.hide=function(t){t&&t.preventDefault();var i=this;(t=n.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),n(document).off("focusin.lightbox"),this.$element.removeClass("in").attr("aria-hidden",!0),n.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())};t.prototype.escape=function(){var n=this;this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.lightbox",function(t){t.which==27&&n.hide()}):this.isShown||this.$element.off("keyup.dismiss.lightbox")};t.prototype.preloadSize=function(t){var a=n.Callbacks(),r,s,l,u,f,e,o,v,i,h,c;t&&a.add(t);r=this;s=n(window).height();l=n(window).width();u=parseInt(r.$element.find(".lightbox-content").css("padding-top"),10);f=parseInt(r.$element.find(".lightbox-content").css("padding-bottom"),10);e=parseInt(r.$element.find(".lightbox-content").css("padding-left"),10);o=parseInt(r.$element.find(".lightbox-content").css("padding-right"),10);v=r.$element.find(".lightbox-content").find("img:first");i=new Image;i.onload=function(){i.width+e+o>=l&&(h=i.width,c=i.height,i.width=l-e-o,i.height=c/h*i.width);i.height+u+f>=s&&(h=i.width,c=i.height,i.height=s-u-f,i.width=h/c*i.height);r.$element.css({position:"fixed",width:i.width+e+o,height:i.height+u+f,top:s/2-(i.height+u+f)/2,left:"50%","margin-left":(i.width+e+o)/-2});r.$element.find(".lightbox-content").css({width:i.width,height:i.height});a.fire()};i.src=v.attr("src")};i=n.fn.lightbox;n.fn.lightbox=function(i){return this.each(function(){var u=n(this),r=u.data("lightbox"),f=n.extend({},n.fn.lightbox.defaults,u.data(),typeof i=="object"&&i);r||u.data("lightbox",r=new t(this,f));typeof i=="string"?r[i]():f.show&&r.show()})};n.fn.lightbox.defaults={backdrop:!0,keyboard:!0,show:!0};n.fn.lightbox.Constructor=t;n.fn.lightbox.noConflict=function(){return n.fn.lightbox=i,this};n(document).on("click.lightbox.data-api",'[data-toggle*="lightbox"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data("lightbox")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.lightbox(f).one("hide",function(){i.focus()})})}(window.jQuery);window.matchMedia=window.matchMedia||function(n){"use strict";var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=42===t.offsetWidth,i.removeChild(r),{matches:u,media:n}}}(document),function(n){"use strict";function y(){v(!0)}var r={};if(n.respond=r,r.update=function(){},r.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all").matches,!r.mediaQueriesSupported){var h,p,c,t=n.document,u=t.documentElement,f=[],e=[],i=[],l={},w=30,o=t.getElementsByTagName("head")[0]||u,nt=t.getElementsByTagName("base")[0],s=o.getElementsByTagName("link"),a=[],b=function(){for(var r=0;s.length>r;r++){var t=s[r],i=t.href,u=t.media,f=t.rel&&"stylesheet"===t.rel.toLowerCase();i&&f&&!l[i]&&(t.styleSheet&&t.styleSheet.rawCssText?(d(t.styleSheet.rawCssText,i,u),l[i]=!0):(!/^([a-zA-Z:]*\/\/)/.test(i)&&!nt||i.replace(RegExp.$1,"").split("/")[0]===n.location.host)&&a.push({href:i,media:u}))}k()},k=function(){if(a.length){var n=a.shift();tt(n.href,function(t){d(t,n.href,n.media);l[n.href]=!0;setTimeout(function(){k()},0)})}},d=function(n,t,i){var s=n.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),h=s&&s.length||0,c,l,u,a,r,y,p,o;for(t=t.substring(0,t.lastIndexOf("/")),c=function(n){return n.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3")},l=!h&&i,t.length&&(t+="/"),l&&(h=1),u=0;h>u;u++)for(l?(a=i,e.push(c(n))):(a=s[u].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,e.push(RegExp.$2&&c(RegExp.$2))),y=a.split(","),p=y.length,o=0;p>o;o++)r=y[o],f.push({media:r.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:e.length-1,hasquery:r.indexOf("(")>-1,minw:r.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:r.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});v()},g=function(){var r,i=t.createElement("div"),n=t.body,f=!1;return i.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=f=t.createElement("body"),n.style.background="none"),n.appendChild(i),u.insertBefore(n,u.firstChild),r=i.offsetWidth,f?u.removeChild(n):n.removeChild(i),r=c=parseFloat(r)},v=function(n){var it="clientWidth",rt=u[it],ut="CSS1Compat"===t.compatMode&&rt||t.body[it]||rt,a={},ht=s[s.length-1],ft=(new Date).getTime(),nt,k,d,r,tt;if(n&&h&&w>ft-h)return clearTimeout(p),p=setTimeout(v,w),void 0;h=ft;for(nt in f)if(f.hasOwnProperty(nt)){var l=f[nt],y=l.minw,b=l.maxw,et=null===y,ot=null===b,st="em";y&&(y=parseFloat(y)*(y.indexOf(st)>-1?c||g():1));b&&(b=parseFloat(b)*(b.indexOf(st)>-1?c||g():1));l.hasquery&&(et&&ot||!(et||ut>=y)||!(ot||b>=ut))||(a[l.media]||(a[l.media]=[]),a[l.media].push(e[l.rules]))}for(k in i)i.hasOwnProperty(k)&&i[k]&&i[k].parentNode===o&&o.removeChild(i[k]);for(d in a)a.hasOwnProperty(d)&&(r=t.createElement("style"),tt=a[d].join("\n"),r.type="text/css",r.media=d,o.insertBefore(r,ht.nextSibling),r.styleSheet?r.styleSheet.cssText=tt:r.appendChild(t.createTextNode(tt)),i.push(r))},tt=function(n,t){var i=it();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){4!==i.readyState||200!==i.status&&304!==i.status||t(i.responseText)},4!==i.readyState&&i.send(null))},it=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}();b();r.update=b;n.addEventListener?n.addEventListener("resize",y,!1):n.attachEvent&&n.attachEvent("onresize",y)}}(this);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}('7(F 3t.3s!=="9"){3t.3s=9(e){9 t(){}t.4X=e;q 5u t}}(9(e,t,n,r){b i={1B:9(t,n){b r=c;r.$k=e(n);r.6=e.3R({},e.3n.2t.6,r.$k.w(),t);r.2w=t;r.4l()},4l:9(){b t=c;7(F t.6.3u==="9"){t.6.3u.S(c,[t.$k])}7(F t.6.2Q==="3r"){b n=t.6.2Q;9 r(e){7(F t.6.3a==="9"){t.6.3a.S(c,[e])}p{b n="";1E(b r 3l e["h"]){n+=e["h"][r]["1W"]}t.$k.2s(n)}t.2J()}e.5s(n,r)}p{t.2J()}},2J:9(e){b t=c;t.$k.A({29:0});t.2a=t.6.v;t.4I();t.5e=0;t.1L;t.1T()},1T:9(){b e=c;7(e.$k.1N().14===0){q d}e.1I();e.4G();e.$V=e.$k.1N();e.K=e.$V.14;e.4F();e.$M=e.$k.11(".h-1W");e.$J=e.$k.11(".h-1n");e.3k="W";e.1i=0;e.m=0;e.4E();e.4C()},4C:9(){b e=c;e.2K();e.2N();e.4A();e.2W();e.4x();e.4w();e.2p();e.4u();7(e.6.2l!==d){e.4r(e.6.2l)}7(e.6.N===j){e.6.N=5t}e.1a();e.$k.11(".h-1n").A("4q","4p");7(!e.$k.27(":2H")){e.2I()}p{e.$k.A("29",1)}e.5v=d;e.28();7(F e.6.2L==="9"){e.6.2L.S(c,[e.$k])}},28:9(){b e=c;7(e.6.1Y===j){e.1Y()}7(e.6.1s===j){e.1s()}e.4j();7(F e.6.2Y==="9"){e.6.2Y.S(c,[e.$k])}},30:9(){b e=c;7(F e.6.31==="9"){e.6.31.S(c,[e.$k])}e.2I();e.2K();e.2N();e.4i();e.2W();e.28();7(F e.6.33==="9"){e.6.33.S(c,[e.$k])}},4g:9(e){b t=c;15(9(){t.30()},0)},2I:9(){b e=c;7(e.$k.27(":2H")===d){e.$k.A({29:0});16(e.1z);16(e.1L)}p{q d}e.1L=4f(9(){7(e.$k.27(":2H")){e.4g();e.$k.4c({29:1},3j);16(e.1L)}},5n)},4F:9(){b e=c;e.$V.5o(\'<L I="h-1n">\').4a(\'<L I="h-1W"><\/L>\');e.$k.11(".h-1n").4a(\'<L I="h-1n-49">\');e.1M=e.$k.11(".h-1n-49");e.$k.A("4q","4p")},1I:9(){b e=c;b t=e.$k.1J(e.6.1I);b n=e.$k.1J(e.6.2h);e.$k.w("h-47",e.$k.2k("2n")).w("h-46",e.$k.2k("I"));7(!t){e.$k.H(e.6.1I)}7(!n){e.$k.H(e.6.2h)}},2K:9(){b t=c;7(t.6.2F===d){q d}7(t.6.45===j){t.6.v=t.2a=1;t.6.1w=d;t.6.1K=d;t.6.1X=d;t.6.1Q=d;t.6.1Z=d;q d}b n=e(t.6.43).1q();7(n>(t.6.1w[0]||t.2a)){t.6.v=t.2a}7(n<=t.6.1w[0]&&t.6.1w!==d){t.6.v=t.6.1w[1]}7(n<=t.6.1K[0]&&t.6.1K!==d){t.6.v=t.6.1K[1]}7(n<=t.6.1X[0]&&t.6.1X!==d){t.6.v=t.6.1X[1]}7(n<=t.6.1Q[0]&&t.6.1Q!==d){t.6.v=t.6.1Q[1]}7(n<=t.6.1Z[0]&&t.6.1Z!==d){t.6.v=t.6.1Z[1]}7(t.6.v>t.K&&t.6.42===j){t.6.v=t.K}},4x:9(){b n=c,r;7(n.6.2F!==j){q d}b i=e(t).1q();n.2S=9(){7(e(t).1q()!==i){7(n.6.N!==d){16(n.1z)}58(r);r=15(9(){i=e(t).1q();n.30()},n.6.41)}};e(t).40(n.2S)},4i:9(){b e=c;7(e.D.1p===j){7(e.G[e.m]>e.1O){e.1o(e.G[e.m])}p{e.1o(0);e.m=0}}p{7(e.G[e.m]>e.1O){e.1d(e.G[e.m])}p{e.1d(0);e.m=0}}7(e.6.N!==d){e.35()}},3Z:9(){b t=c;b n=0;b r=t.K-t.6.v;t.$M.2v(9(i){b s=e(c);s.A({1q:t.Q}).w("h-1W",3c(i));7(i%t.6.v===0||i===r){7(!(i>r)){n+=1}}s.w("h-2r",n)})},3Y:9(){b e=c;b t=0;b t=e.$M.14*e.Q;e.$J.A({1q:t*2,Y:0});e.3Z()},2N:9(){b e=c;e.3X();e.3Y();e.3W();e.3m()},3X:9(){b e=c;e.Q=24.5k(e.$k.1q()/e.6.v)},3m:9(){b e=c;b t=(e.K*e.Q-e.6.v*e.Q)*-1;7(e.6.v>e.K){e.E=0;t=0;e.1O=0}p{e.E=e.K-e.6.v;e.1O=t}q t},3V:9(){q 0},3W:9(){b e=c;e.G=[0];b t=0;1E(b n=0;n<e.K;n++){t+=e.Q;e.G.3U(-t)}},4A:9(){b t=c;7(t.6.2f===j||t.6.1r===j){t.C=e(\'<L I="h-5A"/>\').5C("5F",!t.D.12).56(t.$k)}7(t.6.1r===j){t.3T()}7(t.6.2f===j){t.3S()}},3S:9(){b t=c;b n=e(\'<L I="h-5f"/>\');t.C.1h(n);t.1x=e("<L/>",{"I":"h-1f",2s:t.6.2A[0]||""});t.1y=e("<L/>",{"I":"h-W",2s:t.6.2A[1]||""});n.1h(t.1x).1h(t.1y);n.z("2D.C 1S.C",\'L[I^="h"]\',9(e){e.1e()});n.z("2d.C 2c.C",\'L[I^="h"]\',9(n){n.1e();7(e(c).1J("h-W")){t.W()}p{t.1f()}})},3T:9(){b t=c;t.1g=e(\'<L I="h-1r"/>\');t.C.1h(t.1g);t.1g.z("2d.C 2c.C",".h-1k",9(n){n.1e();7(3c(e(c).w("h-1k"))!==t.m){t.1j(3c(e(c).w("h-1k")),j)}})},3P:9(){b t=c;7(t.6.1r===d){q d}t.1g.2s("");b n=0;b r=t.K-t.K%t.6.v;1E(b i=0;i<t.K;i++){7(i%t.6.v===0){n+=1;7(r===i){b s=t.K-t.6.v}b o=e("<L/>",{"I":"h-1k"});b u=e("<3O><\/3O>",{5m:t.6.2P===j?n:"","I":t.6.2P===j?"h-5X":""});o.1h(u);o.w("h-1k",r===i?s:i);o.w("h-2r",n);t.1g.1h(o)}}t.2R()},2R:9(){b t=c;7(t.6.1r===d){q d}t.1g.11(".h-1k").2v(9(n,r){7(e(c).w("h-2r")===e(t.$M[t.m]).w("h-2r")){t.1g.11(".h-1k").R("25");e(c).H("25")}})},2U:9(){b e=c;7(e.6.2f===d){q d}7(e.6.2j===d){7(e.m===0&&e.E===0){e.1x.H("18");e.1y.H("18")}p 7(e.m===0&&e.E!==0){e.1x.H("18");e.1y.R("18")}p 7(e.m===e.E){e.1x.R("18");e.1y.H("18")}p 7(e.m!==0&&e.m!==e.E){e.1x.R("18");e.1y.R("18")}}},2W:9(){b e=c;e.3P();e.2U();7(e.C){7(e.6.v>=e.K){e.C.3N()}p{e.C.3M()}}},4Z:9(){b e=c;7(e.C){e.C.2Z()}},W:9(e){b t=c;7(t.23){q d}t.22=t.m;t.m+=t.6.21===j?t.6.v:1;7(t.m>t.E+(t.6.21==j?t.6.v-1:0)){7(t.6.2j===j){t.m=0;e="2b"}p{t.m=t.E;q d}}t.1j(t.m,e)},1f:9(e){b t=c;7(t.23){q d}t.22=t.m;7(t.6.21===j&&t.m>0&&t.m<t.6.v){t.m=0}p{t.m-=t.6.21===j?t.6.v:1}7(t.m<0){7(t.6.2j===j){t.m=t.E;e="2b"}p{t.m=0;q d}}t.1j(t.m,e)},1j:9(e,t,n){b r=c;7(r.23){q d}r.34();7(F r.6.1V==="9"){r.6.1V.S(c,[r.$k])}7(e>=r.E){e=r.E}p 7(e<=0){e=0}r.m=r.h.m=e;7(r.6.2l!==d&&n!=="3K"&&r.6.v===1&&r.D.1p===j){r.1A(0);7(r.D.1p===j){r.1o(r.G[e])}p{r.1d(r.G[e],1)}r.3J();r.2e();q d}b i=r.G[e];7(r.D.1p===j){r.1P=d;7(t===j){r.1A("1v");15(9(){r.1P=j},r.6.1v)}p 7(t==="2b"){r.1A(r.6.2g);15(9(){r.1P=j},r.6.2g)}p{r.1A("1l");15(9(){r.1P=j},r.6.1l)}r.1o(i)}p{7(t===j){r.1d(i,r.6.1v)}p 7(t==="2b"){r.1d(i,r.6.2g)}p{r.1d(i,r.6.1l)}}r.2e()},34:9(){b e=c;e.1i=e.h.1i=e.22===r?e.m:e.22;e.22=r},3e:9(e){b t=c;t.34();7(F t.6.1V==="9"){t.6.1V.S(c,[t.$k])}7(e>=t.E||e===-1){e=t.E}p 7(e<=0){e=0}t.1A(0);7(t.D.1p===j){t.1o(t.G[e])}p{t.1d(t.G[e],1)}t.m=t.h.m=e;t.2e()},2e:9(){b e=c;e.2R();e.2U();e.28();7(F e.6.3f==="9"){e.6.3f.S(c,[e.$k])}7(e.6.N!==d){e.35()}},U:9(){b e=c;e.3h="U";16(e.1z)},35:9(){b e=c;7(e.3h!=="U"){e.1a()}},1a:9(){b e=c;e.3h="1a";7(e.6.N===d){q d}16(e.1z);e.1z=4f(9(){e.W(j)},e.6.N)},1A:9(e){b t=c;7(e==="1l"){t.$J.A(t.2y(t.6.1l))}p 7(e==="1v"){t.$J.A(t.2y(t.6.1v))}p 7(F e!=="3r"){t.$J.A(t.2y(e))}},2y:9(e){b t=c;q{"-1H-1b":"2m "+e+"1u 2o","-1F-1b":"2m "+e+"1u 2o","-o-1b":"2m "+e+"1u 2o",1b:"2m "+e+"1u 2o"}},3F:9(){q{"-1H-1b":"","-1F-1b":"","-o-1b":"",1b:""}},3E:9(e){q{"-1H-O":"1m("+e+"T, B, B)","-1F-O":"1m("+e+"T, B, B)","-o-O":"1m("+e+"T, B, B)","-1u-O":"1m("+e+"T, B, B)",O:"1m("+e+"T, B,B)"}},1o:9(e){b t=c;t.$J.A(t.3E(e))},3D:9(e){b t=c;t.$J.A({Y:e})},1d:9(e,t){b n=c;n.2u=d;n.$J.U(j,j).4c({Y:e},{4W:t||n.6.1l,48:9(){n.2u=j}})},4I:9(){b e=c;b r="1m(B, B, B)",i=n.4Y("L");i.2n.3A="  -1F-O:"+r+"; -1u-O:"+r+"; -o-O:"+r+"; -1H-O:"+r+"; O:"+r;b s=/1m\\(B, B, B\\)/g,o=i.2n.3A.55(s),u=o!==1c&&o.14===1;b a="59"3l t||5b.5c;e.D={1p:u,12:a}},4w:9(){b e=c;7(e.6.1G!==d||e.6.1U!==d){e.3B();e.3C()}},4G:9(){b e=c;b t=["s","e","x"];e.13={};7(e.6.1G===j&&e.6.1U===j){t=["2D.h 1S.h","3o.h 3G.h","2d.h 3H.h 2c.h"]}p 7(e.6.1G===d&&e.6.1U===j){t=["2D.h","3o.h","2d.h 3H.h"]}p 7(e.6.1G===j&&e.6.1U===d){t=["1S.h","3G.h","2c.h"]}e.13["3I"]=t[0];e.13["38"]=t[1];e.13["36"]=t[2]},3C:9(){b t=c;t.$k.z("5B.h",9(e){e.1e()});t.$k.z("1S.3L",9(t){q e(t.19).27("5G, 4J, 4K, 4L")})},3B:9(){9 o(e){7(e.2X){q{x:e.2X[0].2O,y:e.2X[0].3Q}}p{7(e.2O!==r){q{x:e.2O,y:e.3Q}}p{q{x:e.50,y:e.53}}}}9 u(t){7(t==="z"){e(n).z(i.13["38"],f);e(n).z(i.13["36"],l)}p 7(t==="P"){e(n).P(i.13["38"]);e(n).P(i.13["36"])}}9 a(n){b n=n.3w||n||t.3v;7(n.5a===3){q d}7(i.2u===d&&!i.6.3q){q d}7(i.1P===d&&!i.6.3q){q d}7(i.6.N!==d){16(i.1z)}7(i.D.12!==j&&!i.$J.1J("3p")){i.$J.H("3p")}i.Z=0;i.X=0;e(c).A(i.3F());b r=e(c).2q();s.37=r.Y;s.2V=o(n).x-r.Y;s.2T=o(n).y-r.5q;u("z");s.2x=d;s.2M=n.19||n.44}9 f(r){b r=r.3w||r||t.3v;i.Z=o(r).x-s.2V;i.2G=o(r).y-s.2T;i.X=i.Z-s.37;7(F i.6.2C==="9"&&s.3y!==j&&i.X!==0){s.3y=j;i.6.2C.S(c)}7(i.X>8||i.X<-8&&i.D.12===j){r.1e?r.1e():r.5E=d;s.2x=j}7((i.2G>10||i.2G<-10)&&s.2x===d){e(n).P("3o.h")}b u=9(){q i.X/5};b a=9(){q i.1O+i.X/5};i.Z=24.3m(24.3V(i.Z,u()),a());7(i.D.1p===j){i.1o(i.Z)}p{i.3D(i.Z)}}9 l(n){b n=n.3w||n||t.3v;n.19=n.19||n.44;s.3y=d;7(i.D.12!==j){i.$J.R("3p")}7(i.X!==0){b r=i.4b();i.1j(r,d,"3K");7(s.2M===n.19&&i.D.12!==j){e(n.19).z("3i.4d",9(t){t.4M();t.4N();t.1e();e(n.19).P("3i.4d")});b o=e.4O(n.19,"4P")["3i"];b a=o.4Q();o.4R(0,0,a)}}u("P")}b i=c;b s={2V:0,2T:0,4S:0,37:0,2q:1c,4T:1c,4U:1c,2x:1c,4V:1c,2M:1c};i.2u=j;i.$k.z(i.13["3I"],".h-1n",a)},4b:9(){b e=c,t;b t=e.4e();7(t>e.E){e.m=e.E;t=e.E}p 7(e.Z>=0){t=0;e.m=0}q t},4e:9(){b t=c;b n=t.G;b r=t.Z;b i=1c;e.2v(n,9(e,s){7(r-t.Q/20>n[e+1]&&r-t.Q/20<s&&t.39()==="Y"){i=s;t.m=e}p 7(r+t.Q/20<s&&r+t.Q/20>n[e+1]&&t.39()==="4h"){i=n[e+1];t.m=e+1}});q t.m},39:9(){b e=c,t;7(e.X<0){t="4h";e.3k="W"}p{t="Y";e.3k="1f"}q t},4E:9(){b e=c;e.$k.z("h.W",9(){e.W()});e.$k.z("h.1f",9(){e.1f()});e.$k.z("h.1a",9(t,n){e.6.N=n;e.1a();e.32="1a"});e.$k.z("h.U",9(){e.U();e.32="U"});e.$k.z("h.1j",9(t,n){e.1j(n)});e.$k.z("h.3e",9(t,n){e.3e(n)})},2p:9(){b e=c;7(e.6.2p===j&&e.D.12!==j&&e.6.N!==d){e.$k.z("51",9(){e.U()});e.$k.z("52",9(){7(e.32!=="U"){e.1a()}})}},1Y:9(){b t=c;7(t.6.1Y===d){q d}1E(b n=0;n<t.K;n++){b i=e(t.$M[n]);7(i.w("h-17")==="17"){4k}b s=i.w("h-1W"),o=i.11(".54"),u;7(F o.w("26")!=="3r"){i.w("h-17","17");4k}7(i.w("h-17")===r){o.3N();i.H("4m").w("h-17","57")}7(t.6.4n===j){u=s>=t.m}p{u=j}7(u&&s<t.m+t.6.v&&o.14){t.4o(i,o)}}},4o:9(e,t){9 i(){r+=1;7(n.2B(t.2z(0))){s()}p 7(r<=2i){15(i,2i)}p{s()}}9 s(){e.w("h-17","17").R("4m");t.5d("w-26");n.6.4s==="4t"?t.5g(5h):t.3M()}b n=c,r=0;t[0].26=t.w("26");i()},1s:9(){9 s(){i+=1;7(t.2B(n.2z(0))){o()}p 7(i<=2i){15(s,2i)}p{t.1M.A("3g","")}}9 o(){b n=e(t.$M[t.m]).3g();t.1M.A("3g",n+"T");7(!t.1M.1J("1s")){15(9(){t.1M.H("1s")},0)}}b t=c;b n=e(t.$M[t.m]).11("5j");7(n.2z(0)!==r){b i=0;s()}p{o()}},2B:9(e){7(!e.48){q d}7(F e.4v!=="5l"&&e.4v==0){q d}q j},4j:9(){b t=c;7(t.6.3b===j){t.$M.R("25")}t.1t=[];1E(b n=t.m;n<t.m+t.6.v;n++){t.1t.3U(n);7(t.6.3b===j){e(t.$M[n]).H("25")}}t.h.1t=t.1t},4r:9(e){b t=c;t.4y="h-"+e+"-5p";t.4z="h-"+e+"-3l"},3J:9(){9 u(e,t){q{2q:"5r",Y:e+"T"}}b e=c;e.23=j;b t=e.4y,n=e.4z,r=e.$M.1C(e.m),i=e.$M.1C(e.1i),s=24.4B(e.G[e.m])+e.G[e.1i],o=24.4B(e.G[e.m])+e.Q/2;e.$J.H("h-1D").A({"-1H-O-1D":o+"T","-1F-4D-1D":o+"T","4D-1D":o+"T"});b a="5w 5x 5y 5z";i.A(u(s,10)).H(t).z(a,9(){e.2E=j;i.P(a);e.3x(i,t)});r.H(n).z(a,9(){e.3d=j;r.P(a);e.3x(r,n)})},3x:9(e,t){b n=c;e.A({2q:"",Y:""}).R(t);7(n.2E&&n.3d){n.$J.R("h-1D");n.2E=d;n.3d=d;n.23=d}},4u:9(){b e=c;e.h={2w:e.2w,5D:e.$k,V:e.$V,M:e.$M,m:e.m,1i:e.1i,1t:e.1t,12:e.D.12,D:e.D}},4H:9(){b r=c;r.$k.P(".h h 1S.3L");e(n).P(".h h");e(t).P("40",r.2S)},1R:9(){b e=c;7(e.$k.1N().14!==0){e.$J.3z();e.$V.3z().3z();7(e.C){e.C.2Z()}}e.4H();e.$k.2k("2n",e.$k.w("h-47")||"").2k("I",e.$k.w("h-46"))},5H:9(){b e=c;e.U();16(e.1L);e.1R();e.$k.5I()},5J:9(t){b n=c;b r=e.3R({},n.2w,t);n.1R();n.1B(r,n.$k)},5K:9(e,t){b n=c,i;7(!e){q d}7(n.$k.1N().14===0){n.$k.1h(e);n.1T();q d}n.1R();7(t===r||t===-1){i=-1}p{i=t}7(i>=n.$V.14||i===-1){n.$V.1C(-1).5L(e)}p{n.$V.1C(i).5M(e)}n.1T()},5N:9(e){b t=c,n;7(t.$k.1N().14===0){q d}7(e===r||e===-1){n=-1}p{n=e}t.1R();t.$V.1C(n).2Z();t.1T()}};e.3n.2t=9(t){q c.2v(9(){7(e(c).w("h-1B")===j){q d}e(c).w("h-1B",j);b n=3t.3s(i);n.1B(t,c);e.w(c,"2t",n)})};e.3n.2t.6={v:5,1w:[5O,4],1K:[5P,3],1X:[5Q,2],1Q:d,1Z:[5R,1],45:d,42:d,1l:3j,1v:5S,2g:5T,N:d,2p:d,2f:d,2A:["1f","W"],2j:j,21:d,1r:j,2P:d,2F:j,41:3j,43:t,1I:"h-5U",2h:"h-2h",1Y:d,4n:j,4s:"4t",1s:d,2Q:d,3a:d,3q:j,1G:j,1U:j,3b:d,2l:d,31:d,33:d,3u:d,2L:d,1V:d,3f:d,2Y:d,2C:d}})(5V,5W,5i)',62,370,"||||||options|if||function||var|this|false||||owl||true|elem||currentItem|||else|return|||||items|data|||on|css|0px|owlControls|browser|maximumItem|typeof|positionsInArray|addClass|class|owlWrapper|itemsAmount|div|owlItems|autoPlay|transform|off|itemWidth|removeClass|apply|px|stop|userItems|next|newRelativeX|left|newPosX||find|isTouch|ev_types|length|setTimeout|clearInterval|loaded|disabled|target|play|transition|null|css2slide|preventDefault|prev|paginationWrapper|append|prevItem|goTo|page|slideSpeed|translate3d|wrapper|transition3d|support3d|width|pagination|autoHeight|visibleItems|ms|paginationSpeed|itemsDesktop|buttonPrev|buttonNext|autoPlayInterval|swapSpeed|init|eq|origin|for|moz|mouseDrag|webkit|baseClass|hasClass|itemsDesktopSmall|checkVisible|wrapperOuter|children|maximumPixels|isCss3Finish|itemsTabletSmall|unWrap|mousedown|setVars|touchDrag|beforeMove|item|itemsTablet|lazyLoad|itemsMobile||scrollPerPage|storePrevItem|isTransition|Math|active|src|is|eachMoveUpdate|opacity|orignalItems|rewind|mouseup|touchend|afterGo|navigation|rewindSpeed|theme|100|rewindNav|attr|transitionStyle|all|style|ease|stopOnHover|position|roundPages|html|owlCarousel|isCssFinish|each|userOptions|sliding|addCssSpeed|get|navigationText|completeImg|startDragging|touchstart|endPrev|responsive|newPosY|visible|watchVisibility|logIn|updateItems|afterInit|targetElement|calculateAll|pageX|paginationNumbers|jsonPath|checkPagination|resizer|offsetY|checkNavigation|offsetX|updateControls|touches|afterAction|remove|updateVars|beforeUpdate|hoverStatus|afterUpdate|getPrevItem|checkAp|end|relativePos|move|moveDirection|jsonSuccess|addClassActive|Number|endCurrent|jumpTo|afterMove|height|apStatus|click|200|playDirection|in|max|fn|touchmove|grabbing|dragBeforeAnimFinish|string|create|Object|beforeInit|event|originalEvent|clearTransStyle|dragging|unwrap|cssText|gestures|disabledEvents|css2move|doTranslate|removeTransition|mousemove|touchcancel|start|singleItemTransition|drag|disableTextSelect|show|hide|span|updatePagination|pageY|extend|buildButtons|buildPagination|push|min|loops|calculateWidth|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|srcElement|singleItem|originalClasses|originalStyles|complete|outer|wrap|getNewPosition|animate|disable|improveClosest|setInterval|reload|right|updatePosition|onVisibleItems|continue|loadContent|loading|lazyFollow|lazyPreload|block|display|transitionTypes|lazyEffect|fade|owlStatus|naturalWidth|moveEvents|response|outClass|inClass|buildControls|abs|onStartup|perspective|customEvents|wrapItems|eventTypes|clearEvents|checkBrowser|textarea|select|option|stopImmediatePropagation|stopPropagation|_data|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|duration|prototype|createElement|destroyControls|clientX|mouseover|mouseout|clientY|lazyOwl|match|appendTo|checked|clearTimeout|ontouchstart|which|navigator|msMaxTouchPoints|removeAttr|wrapperWidth|buttons|fadeIn|400|document|img|round|undefined|text|500|wrapAll|out|top|relative|getJSON|5e3|new|onstartup|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|controls|dragstart|toggleClass|baseElement|returnValue|clickable|input|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|numbers".split("|"),0,{}));var App=function(){function n(){jQuery(window).scroll(function(){jQuery(window).scrollTop()>100?jQuery(".header-fixed .header-sticky").addClass("header-fixed-shrink"):jQuery(".header-fixed .header-sticky").removeClass("header-fixed-shrink")});$("#topnavbar > li").removeClass("active");alert(activeTab);activeTab!=""&&$("#li_"+activeTab).addClass("active")}function t(){jQuery(document).on("click",".mega-menu .dropdown-menu",function(n){n.stopPropagation()})}function i(){jQuery(".search").click(function(){jQuery(".search-btn").hasClass("fa-search")?(jQuery(".search-open").fadeIn(500),jQuery(".search-btn").removeClass("fa-search"),jQuery(".search-btn").addClass("fa-times")):(jQuery(".search-open").fadeOut(500),jQuery(".search-btn").addClass("fa-search"),jQuery(".search-btn").removeClass("fa-times"))})}function r(){jQuery(".header-v5 .search-button").click(function(){jQuery(".header-v5 .search-open").slideDown()});jQuery(".header-v5 .search-close").click(function(){jQuery(".header-v5 .search-open").slideUp()});jQuery(window).scroll(function(){jQuery(this).scrollTop()>1&&jQuery(".header-v5 .search-open").fadeOut("fast")})}function u(){jQuery(".list-toggle").on("click",function(){jQuery(this).toggleClass("active")})}function f(){var n=function(){$(".equal-height-columns").each(function(){heights=[];$(".equal-height-column",this).each(function(){$(this).removeAttr("style");heights.push($(this).height())});$(".equal-height-column",this).height(Math.max.apply(Math,heights))})};n();$(window).resize(function(){n()});$(window).load(function(){n("img.equal-height-column")})}function e(){$(".hoverSelector").on("hover",function(n){$(".hoverSelectorBlock",this).toggleClass("show");n.stopPropagation()})}function o(){jQuery(".carousel").carousel({interval:15e3,pause:"hover"});jQuery(".carousel-control.right").trigger("click");jQuery(".tooltips").tooltip();jQuery(".tooltips-show").tooltip("show");jQuery(".tooltips-hide").tooltip("hide");jQuery(".tooltips-toggle").tooltip("toggle");jQuery(".tooltips-destroy").tooltip("destroy");jQuery(".popovers").popover();jQuery(".popovers-show").popover("show");jQuery(".popovers-hide").popover("hide");jQuery(".popovers-toggle").popover("toggle");jQuery(".popovers-destroy").popover("destroy")}return{init:function(){o();i();r();u();n();t();e();f()},initScrollBar:function(){jQuery(".mCustomScrollbar").mCustomScrollbar({theme:"minimal",scrollInertia:300,scrollEasing:"linear"})},initCounter:function(){jQuery(".counter").counterUp({delay:10,time:1e3})},initParallaxBg:function(){jQuery(window).load(function(){jQuery(".parallaxBg").parallax("50%",.2);jQuery(".parallaxBg1").parallax("50%",.4)})},initAnimateDropdown:function(){function n(){jQuery(".dropdown").on("show.bs.dropdown",function(){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideDown()});jQuery(".dropdown").on("hide.bs.dropdown",function(){jQuery(this).find(".dropdown-menu").first().stop(!0,!0).slideUp()})}jQuery(window).resize(function(){jQuery(window).width()>768&&n()});jQuery(window).width()>768&&n()}}}();(function(){var t,n;jQuery.uaMatch=function(n){n=n.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(n)||/(webkit)[ \/]([\w.]+)/.exec(n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(n)||/(msie) ([\w.]+)/.exec(n)||n.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(n)||[];return{browser:t[1]||"",version:t[2]||"0"}};t=jQuery.uaMatch(navigator.userAgent);n={};t.browser&&(n[t.browser]=!0,n.version=t.version);n.chrome?n.webkit=!0:n.webkit&&(n.safari=!0);jQuery.browser=n})();jQuery.dt||function(n){n.dt={string:function(n){return n===null||n===undefined?undefined:""+n},bool:function(n){return n===!0||n==="true"||n==="True"||n==="1"||n==="yes"||n==="Yes"?!0:n===!1||n==="false"||n==="False"||n==="0"||n==="no"||n==="No"?!1:undefined},number:function(n){return parseFloat(n)},integer:function(n){return parseInt(n,10)}}}(jQuery);jQuery.cacheScript=function(n,t){return t=$.extend(t||{},{dataType:"script",cache:!0,url:n}),jQuery.ajax(t)};Array.indexOf||(Array.prototype.indexOf=function(n){for(var t=0;t<this.length;t++)if(this[t]==n)return t;return-1}),function(n,t,i,r){"use strict";var c=i(n),o=i(t),u=i.fancybox=function(){u.open.apply(this,arguments)},v=null,e=t.createTouch!==r,a=function(n){return n&&n.hasOwnProperty&&n instanceof i},h=function(n){return n&&i.type(n)==="string"},l=function(n){return h(n)&&n.indexOf("%")>0},y=function(n){return n&&!(n.style.overflow&&n.style.overflow==="hidden")&&(n.clientWidth&&n.scrollWidth>n.clientWidth||n.clientHeight&&n.scrollHeight>n.clientHeight)},f=function(n,t){var i=parseInt(n,10);return t&&l(n)&&(i=u.getViewport()[t]/100*i),Math.ceil(i)},s=function(n,t){return f(n,t)+"px"};i.extend(u,{version:"2.1.0",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!e,autoCenter:!e,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"><\/div><\/div><\/div><\/div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0"'+(i.browser.msie?' allowtransparency="true"':"")+"><\/iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.<\/p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"><\/a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span><\/span><\/a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span><\/span><\/a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:{closeClick:!0,speedOut:200,showEarly:!0,css:{}},title:{type:"float"}},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(n,t){if(n)return(i.isPlainObject(t)||(t={}),!1===u.close(!0))?void 0:(i.isArray(n)||(n=a(n)?i(n).get():[n]),i.each(n,function(f,e){var c={},s,p,l,o,v,y,w;i.type(e)==="object"&&(e.nodeType&&(e=i(e)),a(e)?(c={href:e.attr("href"),title:e.attr("title"),isDom:!0,element:e},i.metadata&&i.extend(!0,c,e.metadata())):c=e);s=t.href||c.href||(h(e)?e:null);p=t.title!==r?t.title:c.title||"";l=t.content||c.content;o=l?"html":t.type||c.type;!o&&c.isDom&&(o=e.data("fancybox-type"),o||(v=e.prop("class").match(/fancybox\.(\w+)/),o=v?v[1]:null));h(s)&&(o||(u.isImage(s)?o="image":u.isSWF(s)?o="swf":s.charAt(0)==="#"?o="inline":h(e)&&(o="html",l=e)),o==="ajax"&&(y=s.split(/\s+/,2),s=y.shift(),w=y.shift()));l||(o==="inline"?s?l=i(h(s)?s.replace(/.*(?=#[^\s]+$)/,""):s):c.isDom&&(l=e):o==="html"?l=s:o||s||!c.isDom||(o="inline",l=e));i.extend(c,{href:s,type:o,content:l,title:p,selector:w});n[f]=c}),u.opts=i.extend(!0,{},u.defaults,t),t.keys!==r&&(u.opts.keys=t.keys?i.extend({},u.defaults.keys,t.keys):!1),u.group=n,u._start(u.opts.index))},cancel:function(){var n=u.coming;n&&!1!==u.trigger("onCancel")&&(u.hideLoading(),u.ajaxLoad&&u.ajaxLoad.abort(),u.ajaxLoad=null,u.imgPreload&&(u.imgPreload.onload=u.imgPreload.onerror=null),n.wrap&&n.wrap.stop(!0).trigger("onReset").remove(),u.current||u.trigger("afterClose"),u.coming=null)},close:function(n){(u.cancel(),!1!==u.trigger("beforeClose"))&&(u.unbindEvents(),u.isOpen&&n!==!0?(u.isOpen=u.isOpened=!1,u.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),u.wrap.stop(!0,!0).removeClass("fancybox-opened"),u.wrap.css("position")==="fixed"&&u.wrap.css(u._getPosition(!0)),u.transitions[u.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),u._afterZoomOut()))},play:function(n){var t=function(){clearTimeout(u.player.timer)},r=function(){t();u.current&&u.player.isActive&&(u.player.timer=setTimeout(u.next,u.current.playSpeed))},f=function(){t();i("body").unbind(".player");u.player.isActive=!1;u.trigger("onPlayEnd")},e=function(){u.current&&(u.current.loop||u.current.index<u.group.length-1)&&(u.player.isActive=!0,i("body").bind({"afterShow.player onUpdate.player":r,"onCancel.player beforeClose.player":f,"beforeLoad.player":t}),r(),u.trigger("onPlayStart"))};n!==!0&&(u.player.isActive||n===!1)?f():e()},next:function(n){var t=u.current;t&&(h(n)||(n=t.direction.next),u.jumpto(t.index+1,n,"next"))},prev:function(n){var t=u.current;t&&(h(n)||(n=t.direction.prev),u.jumpto(t.index-1,n,"prev"))},jumpto:function(n,t,i){var e=u.current;e&&(n=f(n),u.direction=t||e.direction[n>=e.index?"next":"prev"],u.router=i||"jumpto",e.loop&&(n<0&&(n=e.group.length+n%e.group.length),n=n%e.group.length),e.group[n]!==r&&(u.cancel(),u._start(n)))},reposition:function(n,t){var i;u.isOpen&&(i=u._getPosition(t),n&&n.type==="scroll"?(delete i.position,u.wrap.stop(!0,!0).animate(i,200)):u.wrap.css(i))},update:function(n){var t=n&&n.type,i=!t||t==="orientationchange";(i&&(clearTimeout(v),v=null),u.isOpen&&!v)&&((i||e)&&(u.wrap.removeAttr("style").addClass("fancybox-tmp"),u.trigger("onUpdate")),v=setTimeout(function(){var i=u.current;i&&(u.wrap.removeClass("fancybox-tmp"),t!=="scroll"&&u._setDimension(),t==="scroll"&&i.canShrink||u.reposition(n),u.trigger("onUpdate"),v=null)},e?500:i?20:300))},toggle:function(n){u.isOpen&&(u.current.fitToView=i.type(n)==="boolean"?n:!u.current.fitToView,u.update())},hideLoading:function(){o.unbind("keypress.fb");i("#fancybox-loading").remove()},showLoading:function(){var t,n;u.hideLoading();o.bind("keypress.fb",function(n){(n.which||n.keyCode)===27&&(n.preventDefault(),u.cancel())});t=i('<div id="fancybox-loading"><div><\/div><\/div>').click(u.cancel).appendTo("body");u.defaults.fixed||(n=u.getViewport(),t.css({position:"absolute",top:n.h*.5+n.y,left:n.w*.5+n.x}))},getViewport:function(){var i=u.current?u.current.locked:!1,t={x:c.scrollLeft(),y:c.scrollTop()};return i?(t.w=i[0].clientWidth,t.h=i[0].clientHeight):(t.w=e&&n.innerWidth?n.innerWidth:c.width(),t.h=e&&n.innerHeight?n.innerHeight:c.height()),t},unbindEvents:function(){u.wrap&&a(u.wrap)&&u.wrap.unbind(".fb");o.unbind(".fb");c.unbind(".fb")},bindEvents:function(){var n=u.current,t;n&&(c.bind("orientationchange.fb"+(e?"":" resize.fb")+(n.autoCenter&&!n.locked?" scroll.fb":""),u.update),t=n.keys,t&&o.bind("keydown.fb",function(f){var e=f.which||f.keyCode,o=f.target||f.srcElement;f.ctrlKey||f.altKey||f.shiftKey||f.metaKey||o&&(o.type||i(o).is("[contenteditable]"))||i.each(t,function(t,o){return n.group.length>1&&o[e]!==r?(u[t](o[e]),f.preventDefault(),!1):i.inArray(e,o)>-1?(u[t](),f.preventDefault(),!1):void 0})}),i.fn.mousewheel&&n.mouseWheel&&u.wrap.bind("mousewheel.fb",function(t,r,f,e){for(var h=t.target||null,o=i(h),s=!1;o.length;){if(s||o.is(".fancybox-skin")||o.is(".fancybox-wrap"))break;s=y(o[0]);o=i(o).parent()}r===0||s||u.group.length>1&&!n.canShrink&&(e>0||f>0?u.prev(e>0?"down":"left"):(e<0||f<0)&&u.next(e<0?"up":"right"),t.preventDefault())}))},trigger:function(n,t){var f,r=t||u.coming||u.current;if(r){if(i.isFunction(r[n])&&(f=r[n].apply(r,Array.prototype.slice.call(arguments,1))),f===!1)return!1;n!=="onCancel"||u.isOpened||(u.isActive=!1);r.helpers&&i.each(r.helpers,function(t,f){f&&u.helpers[t]&&i.isFunction(u.helpers[t][n])&&u.helpers[t][n](f,r)});i.event.trigger(n+".fb")}},isImage:function(n){return h(n)&&n.match(/\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$/i)},isSWF:function(n){return h(n)&&n.match(/\.(swf)((\?|#).*)?$/i)},_start:function(n){var t={},c,l,r,o,h;if(n=f(n),c=u.group[n]||null,!c)return!1;if(t=i.extend(!0,{},u.opts,c),o=t.margin,h=t.padding,i.type(o)==="number"&&(t.margin=[o,o,o,o]),i.type(h)==="number"&&(t.padding=[h,h,h,h]),t.modal&&i.extend(!0,t,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),t.autoSize&&(t.autoWidth=t.autoHeight=!0),t.width==="auto"&&(t.autoWidth=!0),t.height==="auto"&&(t.autoHeight=!0),t.group=u.group,t.index=n,u.coming=t,!1===u.trigger("beforeLoad")){u.coming=null;return}if(r=t.type,l=t.href,!r)return(u.coming=null,u.current&&u.router&&u.router!=="jumpto")?(u.current.index=n,u[u.router](u.direction)):!1;if(u.isActive=!0,(r==="image"||r==="swf")&&(t.autoHeight=t.autoWidth=!1,t.scrolling="visible"),r==="image"&&(t.aspectRatio=!0),r==="iframe"&&e&&(t.scrolling="scroll"),t.wrap=i(t.tpl.wrap).addClass("fancybox-"+(e?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+t.wrapCSS).appendTo(t.parent),i.extend(t,{skin:i(".fancybox-skin",t.wrap),outer:i(".fancybox-outer",t.wrap),inner:i(".fancybox-inner",t.wrap)}),i.each(["Top","Right","Bottom","Left"],function(n,i){t.skin.css("padding"+i,s(t.padding[n]))}),u.trigger("onReady"),r==="inline"||r==="html"){if(!t.content||!t.content.length)return u._error("content")}else if(!l)return u._error("href");r==="image"?u._loadImage():r==="ajax"?u._loadAjax():r==="iframe"?u._loadIframe():u._afterLoad()},_error:function(n){i.extend(u.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:n,content:u.coming.tpl.error});u._afterLoad()},_loadImage:function(){var n=u.imgPreload=new Image;n.onload=function(){this.onload=this.onerror=null;u.coming.width=this.width;u.coming.height=this.height;u._afterLoad()};n.onerror=function(){this.onload=this.onerror=null;u._error("image")};n.src=u.coming.href;n.complete!==r&&n.complete||u.showLoading()},_loadAjax:function(){var n=u.coming;u.showLoading();u.ajaxLoad=i.ajax(i.extend({},n.ajax,{url:n.href,error:function(n,t){u.coming&&t!=="abort"?u._error("ajax",n):u.hideLoading()},success:function(t,i){i==="success"&&(n.content=t,u._afterLoad())}}))},_loadIframe:function(){var n=u.coming,t=i(n.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",e?"auto":n.iframe.scrolling).attr("src",n.href);if(i(n.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(n){}}),n.iframe.preload){u.showLoading();t.one("load",function(){i(this).data("ready",1);e||i(this).bind("load.fb",u.update);i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();u._afterLoad()})}n.content=t.appendTo(n.inner);n.iframe.preload||u._afterLoad()},_preloadImages:function(){for(var r=u.group,i=u.current,f=r.length,e=i.preload?Math.min(i.preload,f-1):0,n,t=1;t<=e;t+=1)n=r[(i.index+t)%f],n.type==="image"&&n.href&&((new Image).src=n.href)},_afterLoad:function(){var f=u.coming,r=u.current,e="fancybox-placeholder",n,t,c,o,s,h;if(u.hideLoading(),f&&u.isActive!==!1){if(!1===u.trigger("afterLoad",f,r)){f.wrap.stop(!0).trigger("onReset").remove();u.coming=null;return}r&&(u.trigger("beforeChange",r),r.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove(),r.wrap.css("position")==="fixed"&&r.wrap.css(u._getPosition(!0)));u.unbindEvents();n=f;t=f.content;c=f.type;o=f.scrolling;i.extend(u,{wrap:n.wrap,skin:n.skin,outer:n.outer,inner:n.inner,current:n,previous:r});s=n.href;switch(c){case"inline":case"ajax":case"html":n.selector?t=i("<div>").html(t).find(n.selector):a(t)&&(t.data(e)||t.data(e,i('<div class="'+e+'"><\/div>').insertAfter(t).hide()),t=t.show().detach(),n.wrap.bind("onReset",function(){i(this).find(t).length&&t.hide().replaceAll(t.data(e)).data(e,!1)}));break;case"image":t=n.tpl.image.replace("{href}",s);break;case"swf":t='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"><\/param>';h="";i.each(n.swf,function(n,i){t+='<param name="'+n+'" value="'+i+'"><\/param>';h+=" "+n+'="'+i+'"'});t+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+h+"><\/embed><\/object>"}a(t)&&t.parent().is(n.inner)||n.inner.append(t);u.trigger("beforeShow");n.inner.css("overflow",o==="yes"?"scroll":o==="no"?"hidden":o);u._setDimension();n.wrap.removeClass("fancybox-tmp");n.pos=i.extend({},n.dim,u._getPosition(!0));u.isOpen=!1;u.coming=null;u.bindEvents();u.isOpened?r.prevMethod&&u.transitions[r.prevMethod]():i(".fancybox-wrap").not(n.wrap).stop(!0).trigger("onReset").remove();u.transitions[u.isOpened?n.nextMethod:n.openMethod]();u._preloadImages()}},_setDimension:function(){var nt=u.getViewport(),wt=0,vt=!1,st=!1,v=u.wrap,k=u.skin,e=u.inner,r=u.current,n=r.width,t=r.height,o=r.minWidth,h=r.minHeight,c=r.maxWidth,a=r.maxHeight,bt=r.scrolling,ft=r.scrollOutside?r.scrollbarWidth:0,et=r.margin,yt=et[1]+et[3],pt=et[0]+et[2],d,ht,tt,it,p,y,ct,lt,w,g,b,rt,ot,ut,at;if(v.add(k).add(e).width("auto").height("auto"),d=k.outerWidth(!0)-k.width(),ht=k.outerHeight(!0)-k.height(),tt=yt+d,it=pt+ht,p=l(n)?(nt.w-tt)*f(n)/100:n,y=l(t)?(nt.h-it)*f(t)/100:t,r.type==="iframe"){if(ut=r.content,r.autoHeight&&ut.data("ready")===1)try{ut[0].contentWindow.document.location&&(e.width(p).height(9999),at=ut.contents().find("body"),ft&&at.css("overflow-x","hidden"),y=at.height())}catch(kt){}}else(r.autoWidth||r.autoHeight)&&(e.addClass("fancybox-tmp"),r.autoWidth||e.width(p),r.autoHeight||e.height(y),r.autoWidth&&(p=e.width()),r.autoHeight&&(y=e.height()),e.removeClass("fancybox-tmp"));if(n=f(p),t=f(y),w=p/y,o=f(l(o)?f(o,"w")-tt:o),c=f(l(c)?f(c,"w")-tt:c),h=f(l(h)?f(h,"h")-it:h),a=f(l(a)?f(a,"h")-it:a),ct=c,lt=a,rt=nt.w-yt,ot=nt.h-pt,r.aspectRatio?(n>c&&(n=c,t=n/w),t>a&&(t=a,n=t*w),n<o&&(n=o,t=n/w),t<h&&(t=h,n=t*w)):(n=Math.max(o,Math.min(n,c)),t=Math.max(h,Math.min(t,a))),r.fitToView)if(c=Math.min(nt.w-tt,c),a=Math.min(nt.h-it,a),e.width(f(n)).height(f(t)),v.width(f(n+d)),g=v.width(),b=v.height(),r.aspectRatio)while((g>rt||b>ot)&&n>o&&t>h){if(wt++>19)break;t=Math.max(h,Math.min(a,t-10));n=t*w;n<o&&(n=o,t=n/w);n>c&&(n=c,t=n/w);e.width(f(n)).height(f(t));v.width(f(n+d));g=v.width();b=v.height()}else n=Math.max(o,Math.min(n,n-(g-rt))),t=Math.max(h,Math.min(t,t-(b-ot)));ft&&bt==="auto"&&t<y&&n+d+ft<rt&&(n+=ft);e.width(f(n)).height(f(t));v.width(f(n+d));g=v.width();b=v.height();vt=(g>rt||b>ot)&&n>o&&t>h;st=r.aspectRatio?n<ct&&t<lt&&n<p&&t<y:(n<ct||t<lt)&&(n<p||t<y);i.extend(r,{dim:{width:s(g),height:s(b)},origWidth:p,origHeight:y,canShrink:vt,canExpand:st,wPadding:d,hPadding:ht,wrapSpace:b-k.outerHeight(!0),skinSpace:k.height()-t});!ut&&r.autoHeight&&t>h&&t<a&&!st&&e.height("auto")},_getPosition:function(n){var i=u.current,r=u.getViewport(),f=i.margin,e=u.wrap.width()+f[1]+f[3],o=u.wrap.height()+f[0]+f[2],t={position:"absolute",top:f[0],left:f[3]};return i.autoCenter&&i.fixed&&!n&&o<=r.h&&e<=r.w?t.position="fixed":i.locked||(t.top+=r.y,t.left+=r.x),t.top=s(Math.max(t.top,t.top+(r.h-o)*i.topRatio)),t.left=s(Math.max(t.left,t.left+(r.w-e)*i.leftRatio)),t},_afterZoomIn:function(){var n=u.current;n&&(u.isOpen=u.isOpened=!0,u.wrap.addClass("fancybox-opened").css("overflow","visible"),u.reposition(),(n.closeClick||n.nextClick)&&u.inner.css("cursor","pointer").bind("click.fb",function(t){i(t.target).is("a")||i(t.target).parent().is("a")||u[n.closeClick?"close":"next"]()}),n.closeBtn&&i(n.tpl.closeBtn).appendTo(u.skin).bind("click.fb",u.close),n.arrows&&u.group.length>1&&((n.loop||n.index>0)&&i(n.tpl.prev).appendTo(u.outer).bind("click.fb",u.prev),(n.loop||n.index<u.group.length-1)&&i(n.tpl.next).appendTo(u.outer).bind("click.fb",u.next)),u.trigger("afterShow"),n.loop||n.index!==n.group.length-1?u.opts.autoPlay&&!u.player.isActive&&(u.opts.autoPlay=!1,u.play()):u.play(!1))},_afterZoomOut:function(){var n=u.current;i(".fancybox-wrap").stop(!0).trigger("onReset").remove();i.extend(u,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});u.trigger("afterClose",n)}});u.transitions={getOrigPosition:function(){var n=u.current,f=n.element,t=n.orig,i={},e=50,o=50,h=n.hPadding,c=n.wPadding,r=u.getViewport();return!t&&n.isDom&&f.is(":visible")&&(t=f.find("img:first"),t.length||(t=f)),a(t)?(i=t.offset(),t.is("img")&&(e=t.outerWidth(),o=t.outerHeight())):(i.top=r.y+(r.h-o)*n.topRatio,i.left=r.x+(r.w-e)*n.leftRatio),n.locked&&(i.top-=r.y,i.left-=r.x),{top:s(i.top-h*n.topRatio),left:s(i.left-c*n.leftRatio),width:s(e+c),height:s(o+h)}},step:function(n,t){var r,s,e,i=t.prop,o=u.current,h=o.wrapSpace,c=o.skinSpace;(i==="width"||i==="height")&&(r=t.end===t.start?1:(n-t.start)/(t.end-t.start),u.isClosing&&(r=1-r),s=i==="width"?o.wPadding:o.hPadding,e=n-s,u.skin[i](f(i==="width"?e:e-h*r)),u.inner[i](f(i==="width"?e:e-h*r-c*r)))},zoomIn:function(){var n=u.current,t=n.pos,r=n.openEffect,f=r==="elastic",e=i.extend({opacity:1},t);delete e.position;f?(t=this.getOrigPosition(),n.openOpacity&&(t.opacity=.1)):r==="fade"&&(t.opacity=.1);u.wrap.css(t).animate(e,{duration:r==="none"?0:n.openSpeed,easing:n.openEasing,step:f?this.step:null,complete:u._afterZoomIn})},zoomOut:function(){var n=u.current,i=n.closeEffect,r=i==="elastic",t={opacity:.1};r&&(t=this.getOrigPosition(),n.closeOpacity&&(t.opacity=.1));u.wrap.animate(t,{duration:i==="none"?0:n.closeSpeed,easing:n.closeEasing,step:r?this.step:null,complete:u._afterZoomOut})},changeIn:function(){var i=u.current,h=i.nextEffect,t=i.pos,o={opacity:1},r=u.direction,e=200,n;t.opacity=.1;h==="elastic"&&(n=r==="down"||r==="up"?"top":"left",r==="down"||r==="right"?(t[n]=s(f(t[n])-e),o[n]="+="+e+"px"):(t[n]=s(f(t[n])+e),o[n]="-="+e+"px"));h==="none"?u._afterZoomIn():u.wrap.css(t).animate(o,{duration:i.nextSpeed,easing:i.nextEasing,complete:u._afterZoomIn})},changeOut:function(){var n=u.previous,r=n.prevEffect,f={opacity:.1},t=u.direction;r==="elastic"&&(f[t==="down"||t==="up"?"top":"left"]=(t==="up"||t==="left"?"-":"+")+"=200px");n.wrap.animate(f,{duration:r==="none"?0:n.prevSpeed,easing:n.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}};u.helpers.overlay={overlay:null,update:function(){var n="100%",r;this.overlay.width(n).height("100%");i.browser.msie?(r=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),o.width()>r&&(n=o.width())):o.width()>c.width()&&(n=o.width());this.overlay.width(n).height(o.height())},onReady:function(n,r){i(".fancybox-overlay").stop(!0,!0);this.overlay||i.extend(this,{overlay:i('<div class="fancybox-overlay"><\/div>').appendTo(r.parent),margin:o.height()>c.height()||i("body").css("overflow-y")==="scroll"?i("body").css("margin-right"):!1,el:t.all&&!t.querySelector?i("html"):i("body")});r.fixed&&!e&&(this.overlay.addClass("fancybox-overlay-fixed"),r.autoCenter&&(this.overlay.append(r.wrap),r.locked=this.overlay));n.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(n,t){var r=this.overlay.unbind(".fb").width("auto").height("auto").css(n.css);n.closeClick&&r.bind("click.fb",function(n){i(n.target).hasClass("fancybox-overlay")&&u.close()});t.fixed&&!e?t.locked&&(this.el.addClass("fancybox-lock"),this.margin!==!1&&i("body").css("margin-right",f(this.margin)+t.scrollbarWidth)):this.update();r.show()},onUpdate:function(n,t){(!t.fixed||e)&&this.update()},afterClose:function(n){var t=this,r=n.speedOut||0;t.overlay&&!u.isActive&&t.overlay.fadeOut(r||0,function(){i("body").css("margin-right",t.margin);t.el.removeClass("fancybox-lock");t.overlay.remove();t.overlay=null})}};u.helpers.title={beforeShow:function(n){var e=u.current.title,o=n.type,t,r;if(h(e)&&i.trim(e)!==""){t=i('<div class="fancybox-title fancybox-title-'+o+'-wrap">'+e+"<\/div>");switch(o){case"inside":r=u.skin;break;case"outside":r=u.wrap;break;case"over":r=u.inner;break;default:r=u.skin;t.appendTo("body").width(t.width()).wrapInner('<span class="child"><\/span>');u.current.margin[2]+=Math.abs(f(t.css("margin-bottom")))}n.position==="top"?t.prependTo(r):t.appendTo(r)}}};i.fn.fancybox=function(n){var r,f=i(this),t=this.selector||"",e=function(e){var o=i(this).blur(),c=r,h,s;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||o.is(".fancybox-wrap")||(h=n.groupAttr||"data-fancybox-group",s=o.attr(h),s||(h="rel",s=o.get(0)[h]),s&&s!==""&&s!=="nofollow"&&(o=t.length?i(t):f,o=o.filter("["+h+'="'+s+'"]'),c=o.index(this)),n.index=c,u.open(o,n)!==!1&&e.preventDefault())};return n=n||{},r=n.index||0,t&&n.live!==!1?o.undelegate(t,"click.fb-start").delegate(t+":not('.fancybox-item, .fancybox-nav')","click.fb-start",e):f.unbind("click.fb-start").bind("click.fb-start",e),this};o.ready(function(){i.scrollbarWidth===r&&(i.scrollbarWidth=function(){var n=i('<div style="width:50px;height:50px;overflow:auto"><div/><\/div>').appendTo("body"),t=n.children(),r=t.innerWidth()-t.height(99).innerWidth();return n.remove(),r});i.support.fixedPosition===r&&(i.support.fixedPosition=function(){var n=i('<div style="position:fixed;top:20px;"><\/div>').appendTo("body"),t=n[0].offsetTop===20||n[0].offsetTop===15;return n.remove(),t}());i.extend(u.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")})})}(window,document,jQuery);!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):n.bootbox=t(n.jQuery)}(this,function a(n,t){"use strict";function v(n){var t=f[o.locale];return t?t[n]:f.en[n]}function e(t,i,r){t.stopPropagation();t.preventDefault();var u=n.isFunction(r)&&r.call(i,t)===!1;u||i.modal("hide")}function y(n){var i,t=0;for(i in n)t++;return t}function r(t,i){var r=0;n.each(t,function(n,t){i(n,t,r++)})}function p(t){var i,u;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=n.extend({},o,t),t.buttons||(t.buttons={}),i=t.buttons,u=y(i),r(i,function(t,r,f){if(n.isFunction(r)&&(r=i[t]={callback:r}),"object"!==n.type(r))throw new Error("button with key "+t+" must be an object");r.label||(r.label=t);r.className||(r.className=2>=u&&f===u-1?"btn-primary":"btn-default")}),t}function w(n,t){var r=n.length,i={};if(1>r||r>2)throw new Error("Invalid argument length");return 2===r||"string"==typeof n[0]?(i[t[0]]=n[0],i[t[1]]=n[1]):i=n[0],i}function s(t,i,r){return n.extend(!0,{},t,w(i,r))}function h(n,t,i,r){var u={className:"bootbox-"+n,buttons:c.apply(null,t)};return l(s(u,r,i),t)}function c(){for(var t={},n=0,r=arguments.length;r>n;n++){var i=arguments[n],u=i.toLowerCase(),f=i.toUpperCase();t[u]={label:v(f)}}return t}function l(n,i){var u={};return r(i,function(n,t){u[t]=!0}),r(n.buttons,function(n){if(u[n]===t)throw new Error("button key "+n+" is not allowed (options are "+i.join("\n")+")");}),n}var u={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'><\/div><\/div><\/div><\/div><\/div>",header:"<div class='modal-header'><h4 class='modal-title'><\/h4><\/div>",footer:"<div class='modal-footer'><\/div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;<\/button>",form:"<form class='bootbox-form'><\/form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'><\/textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'><\/select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /><\/label><\/div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},o={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},i={},f;return i.alert=function(){var t;if(t=h("alert",["ok"],["message","callback"],arguments),t.callback&&!n.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return n.isFunction(t.callback)?t.callback.call(this):!0},i.dialog(t)},i.confirm=function(){var t;if(t=h("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!n.isFunction(t.callback))throw new Error("confirm requires a callback");return i.dialog(t)},i.prompt=function(){var f,y,h,v,e,p,o,a,w;if(v=n(u.form),y={className:"bootbox-prompt",buttons:c("cancel","confirm"),value:"",inputType:"text"},f=l(s(y,arguments,["title","callback"]),["cancel","confirm"]),p=f.show===t?!0:f.show,f.message=v,f.buttons.cancel.callback=f.onEscape=function(){return f.callback.call(this,null)},f.buttons.confirm.callback=function(){var t,i;switch(f.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":t=e.val();break;case"checkbox":i=e.find("input:checked");t=[];r(i,function(i,r){t.push(n(r).val())})}return f.callback.call(this,t)},f.show=!1,!f.title)throw new Error("prompt requires a title");if(!n.isFunction(f.callback))throw new Error("prompt requires a callback");if(!u.inputs[f.inputType])throw new Error("invalid prompt type");switch(e=n(u.inputs[f.inputType]),f.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":e.val(f.value);break;case"select":if(a={},o=f.inputOptions||[],!n.isArray(o))throw new Error("Please pass an array of input options");if(!o.length)throw new Error("prompt with select requires options");r(o,function(i,r){var u=e;if(r.value===t||r.text===t)throw new Error("given options in wrong format");r.group&&(a[r.group]||(a[r.group]=n("<optgroup/>").attr("label",r.group)),u=a[r.group]);u.append("<option value='"+r.value+"'>"+r.text+"<\/option>")});r(a,function(n,t){e.append(t)});e.val(f.value);break;case"checkbox":if(w=n.isArray(f.value)?f.value:[f.value],o=f.inputOptions||[],!o.length)throw new Error("prompt with checkbox requires options");if(!o[0].value||!o[0].text)throw new Error("given options in wrong format");e=n("<div/>");r(o,function(t,i){var o=n(u.inputs[f.inputType]);o.find("input").attr("value",i.value);o.find("label").append(i.text);r(w,function(n,t){t===i.value&&o.find("input").prop("checked",!0)});e.append(o)})}return f.placeholder&&e.attr("placeholder",f.placeholder),f.pattern&&e.attr("pattern",f.pattern),f.maxlength&&e.attr("maxlength",f.maxlength),v.append(e),v.on("submit",function(n){n.preventDefault();n.stopPropagation();h.find(".btn-primary").click()}),h=i.dialog(f),h.off("shown.bs.modal"),h.on("shown.bs.modal",function(){e.focus()}),p===!0&&h.modal("show"),h},i.dialog=function(i){var c;i=p(i);var f=n(u.dialog),l=f.find(".modal-dialog"),s=f.find(".modal-body"),a=i.buttons,h="",o={onEscape:i.onEscape};if(n.fn.modal===t)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");return(r(a,function(n,t){h+="<button data-bb-handler='"+n+"' type='button' class='btn "+t.className+"'>"+t.label+"<\/button>";o[n]=t.callback}),s.find(".bootbox-body").html(i.message),i.animate===!0&&f.addClass("fade"),i.className&&f.addClass(i.className),"large"===i.size?l.addClass("modal-lg"):"small"===i.size&&l.addClass("modal-sm"),i.title&&s.before(u.header),i.closeButton)&&(c=n(u.closeButton),i.title?f.find(".modal-header").prepend(c):c.css("margin-top","-10px").prependTo(s)),i.title&&f.find(".modal-title").html(i.title),h.length&&(s.after(u.footer),f.find(".modal-footer").html(h)),f.on("hidden.bs.modal",function(n){n.target===this&&f.remove()}),f.on("shown.bs.modal",function(){f.find(".btn-primary:first").focus()}),"static"!==i.backdrop&&f.on("click.dismiss.bs.modal",function(n){f.children(".modal-backdrop").length&&(n.currentTarget=f.children(".modal-backdrop").get(0));n.target===n.currentTarget&&f.trigger("escape.close.bb")}),f.on("escape.close.bb",function(n){o.onEscape&&e(n,f,o.onEscape)}),f.on("click",".modal-footer button",function(t){var i=n(this).data("bb-handler");e(t,f,o[i])}),f.on("click",".bootbox-close-button",function(n){e(n,f,o.onEscape)}),f.on("keyup",function(n){27===n.which&&f.trigger("escape.close.bb")}),n(i.container).append(f),f.modal({backdrop:i.backdrop?"static":!1,keyboard:!1,show:!1}),i.show&&f.modal("show"),f},i.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0];n.extend(o,t)},i.hideAll=function(){return n(".bootbox").modal("hide"),i},f={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}},i.addLocale=function(t,r){return n.each(["OK","CANCEL","CONFIRM"],function(n,t){if(!r[t])throw new Error("Please supply a translation for '"+t+"'");}),f[t]={OK:r.OK,CANCEL:r.CANCEL,CONFIRM:r.CONFIRM},i},i.removeLocale=function(n){return delete f[n],i},i.setLocale=function(n){return i.setDefaults("locale",n)},i.init=function(t){return a(t||n)},i}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):jQuery.sammy=window.Sammy=n(jQuery)}(function(n){var t,p="([^/]+)",s=/:([\w\d]+)/g,c=/\?([^#]*)?$/,r=function(n){return Array.prototype.slice.call(n)},i=function(n){return Object.prototype.toString.call(n)==="[object Function]"},u=function(n){return Object.prototype.toString.call(n)==="[object Array]"},l=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},e=function(n){return decodeURIComponent((n||"").replace(/\+/g," "))},a=encodeURIComponent,v=function(n){return String(n).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},f=function(n){return function(){return this.route.apply(this,[n].concat(Array.prototype.slice.call(arguments)))}},h={},o=!!(window.history&&history.pushState),y=[];return t=function(){var u=r(arguments),f,e;return(t.apps=t.apps||{},u.length===0||u[0]&&i(u[0]))?t.apply(t,["body"].concat(u)):typeof(e=u.shift())=="string"?(f=t.apps[e]||new t.Application,f.element_selector=e,u.length>0&&n.each(u,function(n,t){f.use(t)}),f.element_selector!=e&&delete t.apps[e],t.apps[f.element_selector]=f,f):void 0},t.VERSION="0.7.5",t.addLogger=function(n){y.push(n)},t.log=function(){var i=r(arguments);i.unshift("["+Date()+"]");n.each(y,function(n,r){r.apply(t,i)})},typeof window.console!="undefined"?typeof window.console.log=="function"&&i(window.console.log.apply)?t.addLogger(function(){window.console.log.apply(window.console,arguments)}):t.addLogger(function(){window.console.log(arguments)}):typeof console!="undefined"&&t.addLogger(function(){console.log.apply(console,arguments)}),n.extend(t,{makeArray:r,isFunction:i,isArray:u}),t.Object=function(t){return n.extend(this,t||{})},n.extend(t.Object.prototype,{escapeHTML:v,h:v,toHash:function(){var t={};return n.each(this,function(n,r){i(r)||(t[n]=r)}),t},toHTML:function(){var t="";return n.each(this,function(n,r){i(r)||(t+="<strong>"+n+"<\/strong> "+r+"<br />")}),t},keys:function(n){var r=[],t;for(t in this)i(this[t])&&n||r.push(t);return r},has:function(t){return this[t]&&n.trim(this[t].toString())!==""},join:function(){var n=r(arguments),t=n.shift();return n.join(t)},log:function(){t.log.apply(t,arguments)},toString:function(t){var r=[];return n.each(this,function(n,u){(!i(u)||t)&&r.push('"'+n+'": '+u.toString())}),"Sammy.Object: {"+r.join(",")+"}"}}),t.targetIsThisWindow=function(t,i){var u=n(t.target).closest(i),r;return u.length===0?!0:(r=u.attr("target"),!r||r===window.name||r==="_self")?!0:r==="_blank"?!1:r==="top"&&window===window.top?!0:!1},t.DefaultLocationProxy=function(n,t){this.app=n;this.is_native=!1;this.has_history=o;this._startPolling(t)},t.DefaultLocationProxy.fullPath=function(n){var t=n.toString().match(/^[^#]*(#.+)$/),i=t?t[1]:"";return[n.pathname,n.search,i].join("")},n.extend(t.DefaultLocationProxy.prototype,{bind:function(){var u=this,r=this.app,i=t.DefaultLocationProxy;n(window).bind("hashchange."+this.app.eventNamespace(),function(n,t){u.is_native!==!1||t||(u.is_native=!0,window.clearInterval(i._interval),i._interval=null);r.trigger("location-changed")});o&&!r.disable_push_state&&(n(window).bind("popstate."+this.app.eventNamespace(),function(){r.trigger("location-changed")}),n(document).delegate("a","click.history-"+this.app.eventNamespace(),function(n){if(!n.isDefaultPrevented()&&!n.metaKey&&!n.ctrlKey){var f=i.fullPath(this),e=this.hostname?this.hostname:function(n){var t=document.createElement("a");return t.href=n.href,t.hostname}(this);if(e==window.location.hostname&&r.lookupRoute("get",f)&&t.targetIsThisWindow(n,"a"))return n.preventDefault(),u.setLocation(f),!1}}));i._bindings||(i._bindings=0);i._bindings++},unbind:function(){n(window).unbind("hashchange."+this.app.eventNamespace());n(window).unbind("popstate."+this.app.eventNamespace());n(document).undelegate("a","click.history-"+this.app.eventNamespace());t.DefaultLocationProxy._bindings--;t.DefaultLocationProxy._bindings<=0&&(window.clearInterval(t.DefaultLocationProxy._interval),t.DefaultLocationProxy._interval=null)},getLocation:function(){return t.DefaultLocationProxy.fullPath(window.location)},setLocation:function(n){if(/^([^#\/]|$)/.test(n)&&(n=o&&!this.app.disable_push_state?"/"+n:"#!/"+n),n!=this.getLocation())if(o&&!this.app.disable_push_state&&/^\//.test(n))history.pushState({path:n},window.title,n),this.app.trigger("location-changed");else return window.location=n},_startPolling:function(i){var u=this,r;t.DefaultLocationProxy._interval||(i||(i=10),r=function(){var i=u.getLocation();(typeof t.DefaultLocationProxy._last_location=="undefined"||i!=t.DefaultLocationProxy._last_location)&&window.setTimeout(function(){n(window).trigger("hashchange",[!0])},0);t.DefaultLocationProxy._last_location=i},r(),t.DefaultLocationProxy._interval=window.setInterval(r,i))}}),t.Application=function(n){var r=this;this.routes={};this.listeners=new t.Object({});this.arounds=[];this.befores=[];this.namespace=(new Date).getTime()+"-"+parseInt(Math.random()*1e3,10);this.context_prototype=function(){t.EventContext.apply(this,arguments)};this.context_prototype.prototype=new t.EventContext;i(n)&&n.apply(this,[this]);this._location_proxy||this.setLocationProxy(new t.DefaultLocationProxy(this,this.run_interval_every));this.debug&&this.bindToAllEvents(function(n,t){r.log(r.toString(),n.cleaned_type,t||{})})},t.Application.prototype=n.extend({},t.Object.prototype,{ROUTE_VERBS:["get","post","put","delete"],APP_EVENTS:["run","unload","lookup-route","run-route","route-found","event-context-before","event-context-after","changed","error","check-form-submission","redirect","location-changed"],_last_route:null,_location_proxy:null,_running:!1,element_selector:"body",debug:!1,raise_errors:!1,run_interval_every:50,disable_push_state:!1,template_engine:null,toString:function(){return"Sammy.Application:"+this.element_selector},$element:function(t){return t?n(this.element_selector).find(t):n(this.element_selector)},use:function(){var u=r(arguments),n=u.shift(),f=n||"";try{u.unshift(this);typeof n=="string"&&(f="Sammy."+n,n=t[n]);n.apply(this,u)}catch(e){typeof n=="undefined"?this.error("Plugin Error: called use() but plugin ("+f.toString()+") is not defined",e):i(n)?this.error("Plugin Error",e):this.error("Plugin Error: called use() but '"+f.toString()+"' is not a function",e)}return this},setLocationProxy:function(n){var t=this._location_proxy;this._location_proxy=n;this.isRunning()&&(t&&t.unbind(),this._location_proxy.bind())},log:function(){t.log.apply(t,Array.prototype.concat.apply([this.element_selector],arguments))},route:function(t,r){var f=this,o=[],e,h,u=Array.prototype.slice.call(arguments,2);if(u.length===0&&i(r)&&(u=[r],r=t,t="any"),t=t.toLowerCase(),r.constructor==String){for(s.lastIndex=0;(h=s.exec(r))!==null;)o.push(h[1]);r=new RegExp(r.replace(s,p)+"$")}return n.each(u,function(n,t){typeof t=="string"&&(u[n]=f[t])}),e=function(n){var t={verb:n,path:r,callback:u,param_names:o};f.routes[n]=f.routes[n]||[];f.routes[n].push(t)},t==="any"?n.each(this.ROUTE_VERBS,function(n,t){e(t)}):e(t),this},get:f("get"),post:f("post"),put:f("put"),del:f("delete"),any:f("any"),mapRoutes:function(t){var i=this;return n.each(t,function(n,t){i.route.apply(i,t)}),this},eventNamespace:function(){return["sammy-app",this.namespace].join("-")},bind:function(n,t,i){var r=this,u;return typeof i=="undefined"&&(i=t),u=function(){var t,u,n;t=arguments[0];n=arguments[1];n&&n.context?(u=n.context,delete n.context):u=new r.context_prototype(r,"bind",t.type,n,t.target);t.cleaned_type=t.type.replace(r.eventNamespace(),"");i.apply(u,[t,n])},this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(u),this.isRunning()&&this._listen(n,u),this},trigger:function(n,t){return this.$element().trigger([n,this.eventNamespace()].join("."),[t]),this},refresh:function(){return this.last_location=null,this.trigger("location-changed"),this},before:function(n,t){return i(n)&&(t=n,n={}),this.befores.push([n,t]),this},after:function(n){return this.bind("event-context-after",n)},around:function(n){return this.arounds.push(n),this},onComplete:function(n){return this._onComplete=n,this},isRunning:function(){return this._running},helpers:function(t){return n.extend(this.context_prototype.prototype,t),this},helper:function(n,t){return this.context_prototype.prototype[n]=t,this},run:function(i){if(this.isRunning())return!1;var r=this;return n.each(this.listeners.toHash(),function(t,i){n.each(i,function(n,i){r._listen(t,i)})}),this.trigger("run",{start_url:i}),this._running=!0,this.last_location=null,/\#(.+)/.test(this.getLocation())||typeof i=="undefined"||this.setLocation(i),this._checkLocation(),this._location_proxy.bind(),this.bind("location-changed",function(){r._checkLocation()}),this.bind("submit",function(i){if(!t.targetIsThisWindow(i,"form"))return!0;var u=r._checkFormSubmission(n(i.target).closest("form"));return u===!1?i.preventDefault():!1}),n(window).bind("unload",function(){r.unload()}),this.trigger("changed")},unload:function(){if(!this.isRunning())return!1;var t=this;return this.trigger("unload"),this._location_proxy.unbind(),this.$element().unbind("submit").removeClass(t.eventNamespace()),n.each(this.listeners.toHash(),function(i,r){n.each(r,function(n,r){t._unlisten(i,r)})}),this._running=!1,this},destroy:function(){return this.unload(),delete t.apps[this.element_selector],this},bindToAllEvents:function(t){var i=this;return n.each(this.APP_EVENTS,function(n,r){i.bind(r,t)}),n.each(this.listeners.keys(!0),function(r,u){n.inArray(u,i.APP_EVENTS)==-1&&i.bind(u,t)}),this},routablePath:function(n){return n.replace(c,"")},lookupRoute:function(n,t){var e=this,u=!1,i=0,f,r;if(typeof this.routes[n]!="undefined")for(f=this.routes[n].length;i<f;i++)if(r=this.routes[n][i],e.routablePath(t).match(r.path)){u=r;break}return u},runRoute:function(t,i,r,u){var s=this,f=this.lookupRoute(t,i),o,c,y,l,a,h,v,p;if(this.debug&&this.log("runRoute",[t,i].join(" ")),this.trigger("run-route",{verb:t,path:i,params:r}),typeof r=="undefined"&&(r={}),n.extend(r,this._parseQueryString(i)),f){this.trigger("route-found",{route:f});(v=f.path.exec(this.routablePath(i)))!==null&&(v.shift(),n.each(v,function(n,t){f.param_names[n]?r[f.param_names[n]]=e(t):(r.splat||(r.splat=[]),r.splat.push(e(t)))}));o=new this.context_prototype(this,t,i,r,u);y=this.arounds.slice(0);l=this.befores.slice(0);h=[o];r.splat&&(h=h.concat(r.splat));c=function(){for(var n,t,i;l.length>0;)if(a=l.shift(),s.contextMatchesOptions(o,a[0])&&(n=a[1].apply(o,[o]),n===!1))return!1;return s.last_route=f,o.trigger("event-context-before",{context:o}),typeof f.callback=="function"&&(f.callback=[f.callback]),f.callback&&f.callback.length&&(t=-1,i=function(){t++;f.callback[t]?n=f.callback[t].apply(o,h):s._onComplete&&typeof(s._onComplete==="function")&&s._onComplete(o)},h.push(i),i()),o.trigger("event-context-after",{context:o}),n};n.each(y.reverse(),function(n,t){var i=c;c=function(){return t.apply(o,[i])}});try{p=c()}catch(w){this.error(["500 Error",t,i].join(" "),w)}return p}return this.notFound(t,i)},contextMatchesOptions:function(t,i,r){var f=i,h,e,a,v,c,o,s;if((typeof f=="string"||l(f))&&(f={path:f}),typeof r=="undefined"&&(r=!0),n.isEmptyObject(f))return!0;if(u(f.path)){for(h=[],e=0,v=f.path.length;e<v;e+=1)a=n.extend({},f,{path:f.path[e]}),h.push(this.contextMatchesOptions(t,a));return c=n.inArray(!0,h)>-1?!0:!1,r?c:!c}return f.only?this.contextMatchesOptions(t,f.only,!0):f.except?this.contextMatchesOptions(t,f.except,!1):(o=!0,s=!0,f.path&&(l(f.path)||(f.path=new RegExp(f.path.toString()+"$")),o=f.path.test(t.path)),f.verb&&(s=typeof f.verb=="string"?f.verb===t.verb:f.verb.indexOf(t.verb)>-1),r?s&&o:!(s&&o))},getLocation:function(){return this._location_proxy.getLocation()},setLocation:function(n){return this._location_proxy.setLocation(n)},swap:function(n,t){var r=this.$element().html(n);return i(t)&&t(n),r},templateCache:function(n,t){return typeof t!="undefined"?h[n]=t:h[n]},clearTemplateCache:function(){return h={}},notFound:function(n,t){var i=this.error(["404 Not Found",n,t].join(" "));return n==="get"?i:!0},error:function(n,t){if(t||(t=new Error),t.message=[n,t.message].join(" "),this.trigger("error",{message:t.message,error:t}),this.raise_errors)throw t;else this.log(t.message,t)},_checkLocation:function(){var n,t;return n=this.getLocation(),this.last_location&&this.last_location[0]=="get"&&this.last_location[1]==n||(this.last_location=["get",n],t=this.runRoute("get",n)),t},_getFormVerb:function(t){var u=n(t),i,r;return r=u.find('input[name="_method"]'),r.length>0&&(i=r.val()),i||(i=u[0].getAttribute("method")),i&&i!==""||(i="get"),n.trim(i.toString().toLowerCase())},_checkFormSubmission:function(t){var i,r,f,u,e;return this.trigger("check-form-submission",{form:t}),i=n(t),r=i.attr("action")||"",f=this._getFormVerb(i),this.debug&&this.log("_checkFormSubmission",i,r,f),f==="get"?(u=this._serializeFormParams(i),u!==""&&(r+="?"+u),this.setLocation(r),e=!1):(u=n.extend({},this._parseFormParams(i)),e=this.runRoute(f,r,u,t.get(0))),typeof e=="undefined"?!1:e},_serializeFormParams:function(n){var r="",t=n.serializeArray(),i;if(t.length>0)for(r=this._encodeFormPair(t[0].name,t[0].value),i=1;i<t.length;i++)r=r+"&"+this._encodeFormPair(t[i].name,t[i].value);return r},_encodeFormPair:function(n,t){return a(n)+"="+a(t)},_parseFormParams:function(n){for(var i={},r=n.serializeArray(),t=0;t<r.length;t++)i=this._parseParamPair(i,r[t].name,r[t].value);return i},_parseQueryString:function(n){var r={},t,u,f,i;if(t=n.match(c),t&&t[1])for(u=t[1].split("&"),i=0;i<u.length;i++)f=u[i].split("="),r=this._parseParamPair(r,e(f[0]),e(f[1]||""));return r},_parseParamPair:function(n,t,i){return typeof n[t]!="undefined"?u(n[t])?n[t].push(i):n[t]=[n[t],i]:n[t]=i,n},_listen:function(n,t){return this.$element().bind([n,this.eventNamespace()].join("."),t)},_unlisten:function(n,t){return this.$element().unbind([n,this.eventNamespace()].join("."),t)}}),t.RenderContext=function(n){this.event_context=n;this.callbacks=[];this.previous_content=null;this.content=null;this.next_engine=!1;this.waiting=!1},t.RenderContext.prototype=n.extend({},t.Object.prototype,{then:function(n){var r,t;if(!i(n))if(typeof n=="string"&&n in this.event_context)r=this.event_context[n],n=function(n){return r.apply(this.event_context,[n])};else return this;return t=this,this.waiting?this.callbacks.push(n):(this.wait(),window.setTimeout(function(){var i=n.apply(t,[t.content,t.previous_content]);i!==!1&&t.next(i)},0)),this},wait:function(){this.waiting=!0},next:function(n){this.waiting=!1;typeof n!="undefined"&&(this.previous_content=this.content,this.content=n);this.callbacks.length>0&&this.then(this.callbacks.shift())},load:function(t,r,u){var f=this;return this.then(function(){var e,s,o;return(i(r)?(u=r,r={}):r=n.extend({},r),u&&this.then(u),typeof t=="string")?(o=t.match(/\.json(\?|$)/)||r.json,e=o?r.cache===!0:r.cache!==!1,f.next_engine=f.event_context.engineFor(t),delete r.cache,delete r.json,r.engine&&(f.next_engine=r.engine,delete r.engine),e&&(s=this.event_context.app.templateCache(t)))?s:(this.wait(),n.ajax(n.extend({url:t,data:{},dataType:o?"json":"text",type:"get",success:function(n){e&&f.event_context.app.templateCache(t,n);f.next(n)}},r)),!1):t.nodeType?t.innerHTML:t.selector?(f.next_engine=t.attr("data-engine"),r.clone===!1?t.remove()[0].innerHTML.toString():t[0].innerHTML.toString()):void 0})},loadPartials:function(n){var t;if(n){this.partials=this.partials||{};for(t in n)(function(t,i){t.load(n[i]).then(function(n){this.partials[i]=n})})(this,t)}return this},render:function(n,t,r,u){return i(n)&&!t?this.then(n):(i(t)?(u=r,r=t,t=null):r&&!i(r)&&(u=r,r=null),this.loadPartials(u).load(n).interpolate(t,n).then(r))},partial:function(n,t,r,u){return i(r)?this.render(n,t,u).swap(r):i(t)?this.render(n,{},r).swap(t):this.render(n,t,r).swap()},send:function(){var t=this,n=r(arguments),i=n.shift();return u(n[0])&&(n=n[0]),this.then(function(){return n.push(function(n){t.next(n)}),t.wait(),i.apply(i,n),!1})},collect:function(t,r,u){var e=this,f=function(){i(t)&&(r=t,t=this.content);var u=[],f=!1;return n.each(t,function(n,t){var i=r.apply(e,[n,t]);return i.jquery&&i.length==1&&(i=i[0],f=!0),u.push(i),i}),f?u:u.join("")};return u?f():this.then(f)},renderEach:function(t,i,r,f){return u(i)&&(f=r,r=i,i=null),this.load(t).then(function(e){var o=this;if(r||(r=u(this.previous_content)?this.previous_content:[]),f)n.each(r,function(n,r){var u={},s=this.next_engine||t;i?u[i]=r:u=r;f(r,o.event_context.interpolate(e,u,s))});else return this.collect(r,function(n,r){var u={},f=this.next_engine||t;return i?u[i]=r:u=r,this.event_context.interpolate(e,u,f)},!0)})},interpolate:function(n,t,i){var r=this;return this.then(function(u,f){!n&&f&&(n=f);this.next_engine&&(t=this.next_engine,this.next_engine=!1);var e=r.event_context.interpolate(u,n,t,this.partials);return i?f+e:e})},swap:function(n){return this.then(function(t){return this.event_context.swap(t,n),t}).trigger("changed",{})},appendTo:function(t){return this.then(function(i){n(t).append(i)}).trigger("changed",{})},prependTo:function(t){return this.then(function(i){n(t).prepend(i)}).trigger("changed",{})},replace:function(t){return this.then(function(i){n(t).html(i)}).trigger("changed",{})},trigger:function(n,t){return this.then(function(i){return typeof t=="undefined"&&(t={content:i}),this.event_context.trigger(n,t),i})}}),t.EventContext=function(n,i,r,u,f){this.app=n;this.verb=i;this.path=r;this.params=new t.Object(u);this.target=f},t.EventContext.prototype=n.extend({},t.Object.prototype,{$element:function(){return this.app.$element(r(arguments).shift())},engineFor:function(n){var t=this,r;return i(n)?n:(n=(n||t.app.template_engine).toString(),(r=n.match(/\.([^\.\?\#]+)(\?|$)/))&&(n=r[1]),n&&i(t[n]))?t[n]:t.app.template_engine?this.engineFor(t.app.template_engine):function(n){return n}},interpolate:function(n,t,i,r){return this.engineFor(i).apply(this,[n,t,r])},render:function(n,i,r,u){return new t.RenderContext(this).render(n,i,r,u)},renderEach:function(n,i,r,u){return new t.RenderContext(this).renderEach(n,i,r,u)},load:function(n,i,r){return new t.RenderContext(this).load(n,i,r)},loadPartials:function(n){return new t.RenderContext(this).loadPartials(n)},partial:function(n,i,r,u){return new t.RenderContext(this).partial(n,i,r,u)},send:function(){var n=new t.RenderContext(this);return n.send.apply(n,arguments)},redirect:function(){var t,i=r(arguments),l=this.app.getLocation(),o=i.length,e;if(o>1){for(var u=0,s=[],h=[],f={},c=!1;u<o;u++)typeof i[u]=="string"?s.push(i[u]):(n.extend(f,i[u]),c=!0);if(t=s.join("/"),c){for(e in f)h.push(this.app._encodeFormPair(e,f[e]));t+="?"+h.join("&")}}else t=i[0];this.trigger("redirect",{to:t});this.app.last_location=[this.verb,this.path];this.app.setLocation(t);new RegExp(t).test(l)&&this.app.trigger("location-changed")},trigger:function(n,t){return typeof t=="undefined"&&(t={}),t.context||(t.context=this),this.app.trigger(n,t)},eventNamespace:function(){return this.app.eventNamespace()},swap:function(n,t){return this.app.swap(n,t)},notFound:function(){return this.app.notFound(this.verb,this.path)},json:function(t){return n.parseJSON(t)},toString:function(){return"Sammy.EventContext: "+[this.verb,this.path,this.params].join(" ")}}),t});!function(){function r(n,t){n instanceof r?(this.enc=n.enc,this.pos=n.pos):(this.enc=n,this.pos=t)}function i(n,t,i,r,u){this.stream=n;this.header=t;this.length=i;this.tag=r;this.sub=u}function nt(n){for(var i,r="",t=0;t+3<=n.length;t+=3)i=parseInt(n.substring(t,t+3),16),r+=l.charAt(i>>6)+l.charAt(63&i);for(t+1==n.length?(i=parseInt(n.substring(t,t+1),16),r+=l.charAt(i<<2)):t+2==n.length&&(i=parseInt(n.substring(t,t+2),16),r+=l.charAt(i>>2)+l.charAt((3&i)<<4));(3&r.length)>0;)r+=k;return r}function tt(n){for(var u,t,i="",r=0,f=0;f<n.length&&n.charAt(f)!=k;++f)t=l.indexOf(n.charAt(f)),0>t||(0==r?(i+=e(t>>2),u=3&t,r=1):1==r?(i+=e(u<<2|t>>4),u=15&t,r=2):2==r?(i+=e(u),i+=e(t>>2),u=3&t,r=3):(i+=e(u<<2|t>>4),i+=e(15&t),r=0));return 1==r&&(i+=e(u<<2)),i}function it(n){for(var i=tt(n),r=[],t=0;2*t<i.length;++t)r[t]=parseInt(i.substring(2*t,2*t+2),16);return r}function t(n,t,i){null!=n&&("number"==typeof n?this.fromNumber(n,t,i):null==t&&"string"!=typeof n?this.fromString(n,256):this.fromString(n,t))}function f(){return new t(null)}function rt(n,t,i,r,u,f){for(;--f>=0;){var e=t*this[n++]+i[r]+u;u=Math.floor(e/67108864);i[r++]=67108863&e}return u}function ut(n,t,i,r,u,f){for(var o=32767&t,s=t>>15;--f>=0;){var e=32767&this[n],h=this[n++]>>15,c=s*e+h*o;e=o*e+((32767&c)<<15)+i[r]+(1073741823&u);u=(e>>>30)+(c>>>15)+s*h+(u>>>30);i[r++]=1073741823&e}return u}function ft(n,t,i,r,u,f){for(var o=16383&t,s=t>>14;--f>=0;){var e=16383&this[n],h=this[n++]>>14,c=s*e+h*o;e=o*e+((16383&c)<<14)+i[r]+u;u=(e>>28)+(c>>14)+s*h;i[r++]=268435455&e}return u}function e(n){return g.charAt(n)}function et(n,t){var i=v[n.charCodeAt(t)];return null==i?-1:i}function ot(n){for(var t=this.t-1;t>=0;--t)n[t]=this[t];n.t=this.t;n.s=this.s}function st(n){this.t=1;this.s=0>n?-1:0;n>0?this[0]=n:-1>n?this[0]=n+this.DV:this.t=0}function b(n){var t=f();return t.fromInt(n),t}function ht(n,i){var u,f;if(16==i)u=4;else if(8==i)u=3;else if(256==i)u=8;else if(2==i)u=1;else if(32==i)u=5;else{if(4!=i)return void this.fromRadix(n,i);u=2}this.t=0;this.s=0;for(var e=n.length,o=!1,r=0;--e>=0;)f=8==u?255&n[e]:et(n,e),0>f?"-"==n.charAt(e)&&(o=!0):(o=!1,0==r?this[this.t++]=f:r+u>this.DB?(this[this.t-1]|=(f&(1<<this.DB-r)-1)<<r,this[this.t++]=f>>this.DB-r):this[this.t-1]|=f<<r,r+=u,r>=this.DB&&(r-=this.DB));8==u&&0!=(128&n[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<<this.DB-r)-1<<r));this.clamp();o&&t.ZERO.subTo(this,this)}function ct(){for(var n=this.s&this.DM;this.t>0&&this[this.t-1]==n;)--this.t}function lt(n){var t;if(this.s<0)return"-"+this.negate().toString(n);if(16==n)t=4;else if(8==n)t=3;else if(2==n)t=1;else if(32==n)t=5;else{if(4!=n)return this.toRadix(n);t=2}var u,s=(1<<t)-1,f=!1,o="",r=this.t,i=this.DB-r*this.DB%t;if(r-->0)for(i<this.DB&&(u=this[r]>>i)>0&&(f=!0,o=e(u));r>=0;)t>i?(u=(this[r]&(1<<i)-1)<<t-i,u|=this[--r]>>(i+=this.DB-t)):(u=this[r]>>(i-=t)&s,0>=i&&(i+=this.DB,--r)),u>0&&(f=!0),f&&(o+=e(u));return f?o:"0"}function at(){var n=f();return t.ZERO.subTo(this,n),n}function vt(){return this.s<0?this.negate():this}function yt(n){var t=this.s-n.s,i;if(0!=t)return t;if(i=this.t,t=i-n.t,0!=t)return this.s<0?-t:t;for(;--i>=0;)if(0!=(t=this[i]-n[i]))return t;return 0}function w(n){var t,i=1;return 0!=(t=n>>>16)&&(n=t,i+=16),0!=(t=n>>8)&&(n=t,i+=8),0!=(t=n>>4)&&(n=t,i+=4),0!=(t=n>>2)&&(n=t,i+=2),0!=(t=n>>1)&&(n=t,i+=1),i}function pt(){return this.t<=0?0:this.DB*(this.t-1)+w(this[this.t-1]^this.s&this.DM)}function wt(n,t){for(var i=this.t-1;i>=0;--i)t[i+n]=this[i];for(i=n-1;i>=0;--i)t[i]=0;t.t=this.t+n;t.s=this.s}function bt(n,t){for(var i=n;i<this.t;++i)t[i-n]=this[i];t.t=Math.max(this.t-n,0);t.s=this.s}function kt(n,t){for(var u=n%this.DB,e=this.DB-u,o=(1<<e)-1,r=Math.floor(n/this.DB),f=this.s<<u&this.DM,i=this.t-1;i>=0;--i)t[i+r+1]=this[i]>>e|f,f=(this[i]&o)<<u;for(i=r-1;i>=0;--i)t[i]=0;t[r]=f;t.t=this.t+r+1;t.s=this.s;t.clamp()}function dt(n,t){var i,r;if(t.s=this.s,i=Math.floor(n/this.DB),i>=this.t)return void(t.t=0);var u=n%this.DB,f=this.DB-u,e=(1<<u)-1;for(t[0]=this[i]>>u,r=i+1;r<this.t;++r)t[r-i-1]|=(this[r]&e)<<f,t[r-i]=this[r]>>u;u>0&&(t[this.t-i-1]|=(this.s&e)<<f);t.t=this.t-i;t.clamp()}function gt(n,t){for(var r=0,i=0,u=Math.min(n.t,this.t);u>r;)i+=this[r]-n[r],t[r++]=i&this.DM,i>>=this.DB;if(n.t<this.t){for(i-=n.s;r<this.t;)i+=this[r],t[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<n.t;)i-=n[r],t[r++]=i&this.DM,i>>=this.DB;i-=n.s}t.s=0>i?-1:0;-1>i?t[r++]=this.DV+i:i>0&&(t[r++]=i);t.t=r;t.clamp()}function ni(n,i){var u=this.abs(),f=n.abs(),r=u.t;for(i.t=r+f.t;--r>=0;)i[r]=0;for(r=0;r<f.t;++r)i[r+u.t]=u.am(0,f[r],i,r,0,u.t);i.s=0;i.clamp();this.s!=n.s&&t.ZERO.subTo(i,i)}function ti(n){for(var r,i=this.abs(),t=n.t=2*i.t;--t>=0;)n[t]=0;for(t=0;t<i.t-1;++t)r=i.am(t,i[t],n,2*t,0,1),(n[t+i.t]+=i.am(t+1,2*i[t],n,2*t+1,r,i.t-t-1))>=i.DV&&(n[t+i.t]-=i.DV,n[t+i.t+1]=1);n.t>0&&(n[n.t-1]+=i.am(t,i[t],n,2*t,0,1));n.s=0;n.clamp()}function ii(n,i,r){var s=n.abs(),l,e,a,y;if(!(s.t<=0)){if(l=this.abs(),l.t<s.t)return null!=i&&i.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=f());var u=f(),p=this.s,k=n.s,c=this.DB-w(s[s.t-1]);if(c>0?(s.lShiftTo(c,u),l.lShiftTo(c,r)):(s.copyTo(u),l.copyTo(r)),e=u.t,a=u[e-1],0!=a){var b=a*(1<<this.F1)+(e>1?u[e-2]>>this.F2:0),d=this.FV/b,g=(1<<this.F1)/b,nt=1<<this.F2,h=r.t,v=h-e,o=null==i?f():i;for(u.dlShiftTo(v,o),r.compareTo(o)>=0&&(r[r.t++]=1,r.subTo(o,r)),t.ONE.dlShiftTo(e,o),o.subTo(u,u);u.t<e;)u[u.t++]=0;for(;--v>=0;)if(y=r[--h]==a?this.DM:Math.floor(r[h]*d+(r[h-1]+nt)*g),(r[h]+=u.am(0,y,r,v,0,e))<y)for(u.dlShiftTo(v,o),r.subTo(o,r);r[h]<--y;)r.subTo(o,r);null!=i&&(r.drShiftTo(e,i),p!=k&&t.ZERO.subTo(i,i));r.t=e;r.clamp();c>0&&r.rShiftTo(c,r);0>p&&t.ZERO.subTo(r,r)}}}function ri(n){var i=f();return this.abs().divRemTo(n,null,i),this.s<0&&i.compareTo(t.ZERO)>0&&n.subTo(i,i),i}function h(n){this.m=n}function ui(n){return n.s<0||n.compareTo(this.m)>=0?n.mod(this.m):n}function fi(n){return n}function ei(n){n.divRemTo(this.m,null,n)}function oi(n,t,i){n.multiplyTo(t,i);this.reduce(i)}function si(n,t){n.squareTo(t);this.reduce(t)}function hi(){var t,n;return this.t<1?0:(t=this[0],0==(1&t))?0:(n=3&t,n=n*(2-(15&t)*n)&15,n=n*(2-(255&t)*n)&255,n=n*(2-((65535&t)*n&65535))&65535,n=n*(2-t*n%this.DV)%this.DV,n>0?this.DV-n:-n)}function c(n){this.m=n;this.mp=n.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<<n.DB-15)-1;this.mt2=2*n.t}function ci(n){var i=f();return n.abs().dlShiftTo(this.m.t,i),i.divRemTo(this.m,null,i),n.s<0&&i.compareTo(t.ZERO)>0&&this.m.subTo(i,i),i}function li(n){var t=f();return n.copyTo(t),this.reduce(t),t}function ai(n){for(var i,t,r;n.t<=this.mt2;)n[n.t++]=0;for(i=0;i<this.m.t;++i)for(t=32767&n[i],r=t*this.mpl+((t*this.mph+(n[i]>>15)*this.mpl&this.um)<<15)&n.DM,t=i+this.m.t,n[t]+=this.m.am(0,r,n,i,0,this.m.t);n[t]>=n.DV;)n[t]-=n.DV,n[++t]++;n.clamp();n.drShiftTo(this.m.t,n);n.compareTo(this.m)>=0&&n.subTo(this.m,n)}function vi(n,t){n.squareTo(t);this.reduce(t)}function yi(n,t,i){n.multiplyTo(t,i);this.reduce(i)}function pi(){return 0==(this.t>0?1&this[0]:this.s)}function wi(n,i){var s;if(n>4294967295||1>n)return t.ONE;var r=f(),u=f(),e=i.convert(this),o=w(n)-1;for(e.copyTo(r);--o>=0;)(i.sqrTo(r,u),(n&1<<o)>0)?i.mulTo(u,e,r):(s=r,r=u,u=s);return i.revert(r)}function bi(n,t){var i;return i=256>n||t.isEven()?new h(t):new c(t),this.exp(n,i)}function ki(n,i){return new t(n,i)}function di(i,r){var u,o,f;if(r<i.length+11)throw new Error("Message too long for RSA");for(u=[],o=i.length-1;o>=0&&r>0;)f=i.charCodeAt(o--),128>f?u[--r]=f:f>127&&2048>f?(u[--r]=63&f|128,u[--r]=f>>6|192):(u[--r]=63&f|128,u[--r]=f>>6&63|128,u[--r]=f>>12|224);u[--r]=0;for(var s=0,h=0,e=0;r>2;)0==e&&(h=n.random.randomWords(1,0)[0]),s=h>>e&255,e=(e+8)%32,0!=s&&(u[--r]=s);return u[--r]=2,u[--r]=0,new t(u)}function y(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}function gi(n,t){if(!(null!=n&&null!=t&&n.length>0&&t.length>0))throw new Error("Invalid RSA public key");this.n=ki(n,16);this.e=parseInt(t,16)}function nr(n){return n.modPowInt(this.e,this.n)}function tr(n){var r=di(n,this.n.bitLength()+7>>3),i,t;return null==r?null:(i=this.doPublic(r),null==i)?null:(t=i.toString(16),0==(1&t.length)?t:"0"+t)}var p,a,u,g,v,n,s;r.prototype.get=function(n){if(void 0==n&&(n=this.pos++),n>=this.enc.length)throw"Requesting byte offset "+n+" on a stream of length "+this.enc.length;return this.enc[n]};r.prototype.hexDigits="0123456789ABCDEF";r.prototype.hexByte=function(n){return this.hexDigits.charAt(n>>4&15)+this.hexDigits.charAt(15&n)};r.prototype.hexDump=function(n,t){for(var i="",r=n;t>r;++r)switch(i+=this.hexByte(this.get(r)),15&r){case 7:i+="  ";break;case 15:i+="\n";break;default:i+=" "}return i};r.prototype.parseStringISO=function(n,t){for(var r="",i=n;t>i;++i)r+=String.fromCharCode(this.get(i));return r};r.prototype.parseStringUTF=function(n,t){for(var u="",i=0,r=n;t>r;)i=this.get(r++),u+=String.fromCharCode(128>i?i:i>191&&224>i?(31&i)<<6|63&this.get(r++):(15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++));return u};r.prototype.reTime=/^((?:1[89]|2\d)?\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;r.prototype.parseTime=function(n,t){var r=this.parseStringISO(n,t),i=this.reTime.exec(r);return i?(r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r};r.prototype.parseInteger=function(n,t){var i=t-n,r,u,f;if(i>4){if(i<<=3,r=this.get(n),0==r)i-=8;else for(;128>r;)r<<=1,--i;return"("+i+" bit)"}for(u=0,f=n;t>f;++f)u=u<<8|this.get(f);return u};r.prototype.parseBitString=function(n,t){var e=this.get(n),o=(t-n-1<<3)-e,u="("+o+" bit)",f,i,s,r;if(20>=o)for(f=e,u+=" ",i=t-1;i>n;--i){for(s=this.get(i),r=f;8>r;++r)u+=s>>r&1?"1":"0";f=0}return u};r.prototype.parseOctetString=function(n,t){var r=t-n,u="("+r+" byte) ",i;for(r>20&&(t=n+20),i=n;t>i;++i)u+=this.hexByte(this.get(i));return r>20&&(u+=String.fromCharCode(8230)),u};r.prototype.parseOID=function(n,t){for(var e,r,i=0,u=0,f=n;t>f;++f)e=this.get(f),i=i<<7|127&e,u+=7,128&e||(void 0==r?r=parseInt(i/40)+"."+i%40:r+="."+(u>=31?"bigint":i),i=u=0),r+=String.fromCharCode();return r};i.prototype.typeName=function(){if(void 0==this.tag)return"unknown";var t=this.tag>>6,n=(this.tag>>5&1,31&this.tag);switch(t){case 0:switch(n){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString";default:return"Universal_"+n.toString(16)}case 1:return"Application_"+n.toString(16);case 2:return"["+n+"]";case 3:return"Private_"+n.toString(16)}};i.prototype.content=function(){var i;if(void 0==this.tag)return null;if(i=this.tag>>6,0!=i)return null==this.sub?null:"("+this.sub.length+")";var r=31&this.tag,n=this.posContent(),t=Math.abs(this.length);switch(r){case 1:return 0==this.stream.get(n)?"false":"true";case 2:return this.stream.parseInteger(n,n+t);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(n,n+t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(n,n+t);case 6:return this.stream.parseOID(n,n+t);case 16:case 17:return"("+this.sub.length+" elem)";case 12:return this.stream.parseStringUTF(n,n+t);case 18:case 19:case 20:case 21:case 22:case 26:return this.stream.parseStringISO(n,n+t);case 23:case 24:return this.stream.parseTime(n,n+t)}return null};i.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null==this.sub?"null":this.sub.length)+"]"};i.prototype.print=function(n){if(void 0==n&&(n=""),document.writeln(n+this),null!=this.sub){n+="  ";for(var t=0,i=this.sub.length;i>t;++t)this.sub[t].print(n)}};i.prototype.toPrettyString=function(n){var t,i,r;if(void 0==n&&(n=""),t=n+this.typeName()+" @"+this.stream.pos,this.length>=0&&(t+="+"),t+=this.length,32&this.tag?t+=" (constructed)":3!=this.tag&&4!=this.tag||null==this.sub||(t+=" (encapsulates)"),t+="\n",null!=this.sub)for(n+="  ",i=0,r=this.sub.length;r>i;++i)t+=this.sub[i].toPrettyString(n);return t};i.prototype.posStart=function(){return this.stream.pos};i.prototype.posContent=function(){return this.stream.pos+this.header};i.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)};i.decodeLength=function(n){var t=n.get(),i=127&t,r;if(i==t)return i;if(i>3)throw"Length over 24 bits not supported at position "+(n.pos-1);if(0==i)return-1;for(t=0,r=0;i>r;++r)t=t<<8|n.get();return t};i.hasContent=function(n,t,u){var f,e,o;if(32&n)return!0;if(3>n||n>4||(f=new r(u),3==n&&f.get(),e=f.get(),e>>6&1))return!1;try{return o=i.decodeLength(f),f.pos-u.pos+o==t}catch(s){return!1}};i.decode=function(n){var f,o,s;n instanceof r||(n=new r(n,0));var h=new r(n),e=n.get(),t=i.decodeLength(n),c=n.pos-h.pos,u=null;if(i.hasContent(e,t,n))if(f=n.pos,3==e&&n.get(),u=[],t>=0){for(o=f+t;n.pos<o;)u[u.length]=i.decode(n);if(n.pos!=o)throw"Content size is not correct for container starting at offset "+f;}else try{for(;;){if(s=i.decode(n),0==s.tag)break;u[u.length]=s}t=f-n.pos}catch(l){throw"Exception while decoding undefined length content: "+l;}else n.pos+=t;return new i(h,c,t,e,u)};var o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k="=",d=15715070==(16777215&0xdeadbeefcafe);for(d&&"Microsoft Internet Explorer"==navigator.appName?(t.prototype.am=ut,o=30):d&&"Netscape"!=navigator.appName?(t.prototype.am=rt,o=26):(t.prototype.am=ft,o=28),t.prototype.DB=o,t.prototype.DM=(1<<o)-1,t.prototype.DV=1<<o,p=52,t.prototype.FV=Math.pow(2,p),t.prototype.F1=p-o,t.prototype.F2=2*o-p,g="0123456789abcdefghijklmnopqrstuvwxyz",v=[],a="0".charCodeAt(0),u=0;9>=u;++u)v[a++]=u;for(a="a".charCodeAt(0),u=10;36>u;++u)v[a++]=u;for(a="A".charCodeAt(0),u=10;36>u;++u)v[a++]=u;h.prototype.convert=ui;h.prototype.revert=fi;h.prototype.reduce=ei;h.prototype.mulTo=oi;h.prototype.sqrTo=si;c.prototype.convert=ci;c.prototype.revert=li;c.prototype.reduce=ai;c.prototype.mulTo=yi;c.prototype.sqrTo=vi;t.prototype.copyTo=ot;t.prototype.fromInt=st;t.prototype.fromString=ht;t.prototype.clamp=ct;t.prototype.dlShiftTo=wt;t.prototype.drShiftTo=bt;t.prototype.lShiftTo=kt;t.prototype.rShiftTo=dt;t.prototype.subTo=gt;t.prototype.multiplyTo=ni;t.prototype.squareTo=ti;t.prototype.divRemTo=ii;t.prototype.invDigit=hi;t.prototype.isEven=pi;t.prototype.exp=wi;t.prototype.toString=lt;t.prototype.negate=at;t.prototype.abs=vt;t.prototype.compareTo=yt;t.prototype.bitLength=pt;t.prototype.mod=ri;t.prototype.modPowInt=bi;t.ZERO=b(0);t.ONE=b(1);y.prototype.doPublic=nr;y.prototype.setPublic=gi;y.prototype.encrypt=tr;n={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(n){this.toString=function(){return"CORRUPT: "+this.message};this.message=n},invalid:function(n){this.toString=function(){return"INVALID: "+this.message};this.message=n},bug:function(n){this.toString=function(){return"BUG: "+this.message};this.message=n},notReady:function(n){this.toString=function(){return"NOT READY: "+this.message};this.message=n}}};"undefined"!=typeof module&&module.exports&&(module.exports=n);n.cipher.aes=function(t){this._tables[0][0][0]||this._precompute();var r,e,i,o,c,f=this._tables[0][4],s=this._tables[1],u=t.length,h=1;if(4!==u&&6!==u&&8!==u)throw new n.exception.invalid("invalid aes key size");for(this._key=[o=t.slice(0),c=[]],r=u;4*u+28>r;r++)i=o[r-1],(r%u==0||8===u&&r%u==4)&&(i=f[i>>>24]<<24^f[i>>16&255]<<16^f[i>>8&255]<<8^f[255&i],r%u==0&&(i=i<<8^i>>>24^h<<24,h=h<<1^283*(h>>7))),o[r]=o[r-u]^i;for(e=0;r;e++,r--)i=o[3&e?r:r-4],c[e]=4>=r||4>e?i:s[0][f[i>>>24]]^s[1][f[i>>16&255]]^s[2][f[i>>8&255]]^s[3][f[255&i]]};n.cipher.aes.prototype={encrypt:function(n){return this._crypt(n,0)},decrypt:function(n){return this._crypt(n,1)},_tables:[[[],[],[],[],[]],[[],[],[],[],[]]],_precompute:function(){for(var i,r,h,c,l,t,f,e,o=this._tables[0],s=this._tables[1],a=o[4],y=s[4],u=[],v=[],n=0;256>n;n++)v[(u[n]=n<<1^283*(n>>7))^n]=n;for(i=r=0;!a[i];i^=h||1,r=v[r]||1)for(t=r^r<<1^r<<2^r<<3^r<<4,t=t>>8^255&t^99,a[i]=t,y[t]=i,l=u[c=u[h=u[i]]],e=16843009*l^65537*c^257*h^16843008*i,f=257*u[t]^16843008*t,n=0;4>n;n++)o[n][i]=f=f<<24^f>>>8,s[n][t]=e=e<<24^e>>>8;for(n=0;5>n;n++)o[n]=o[n].slice(0),s[n]=s[n].slice(0)},_crypt:function(t,i){if(4!==t.length)throw new n.exception.invalid("invalid aes block size");for(var l,b,k,r=this._key[i],f=t[0]^r[0],e=t[i?3:1]^r[1],o=t[2]^r[2],s=t[i?1:3]^r[3],g=r.length/4-2,h=4,d=[0,0,0,0],c=this._tables[i],a=c[0],v=c[1],y=c[2],p=c[3],w=c[4],u=0;g>u;u++)l=a[f>>>24]^v[e>>16&255]^y[o>>8&255]^p[255&s]^r[h],b=a[e>>>24]^v[o>>16&255]^y[s>>8&255]^p[255&f]^r[h+1],k=a[o>>>24]^v[s>>16&255]^y[f>>8&255]^p[255&e]^r[h+2],s=a[s>>>24]^v[f>>16&255]^y[e>>8&255]^p[255&o]^r[h+3],h+=4,f=l,e=b,o=k;for(u=0;4>u;u++)d[i?3&-u:u]=w[f>>>24]<<24^w[e>>16&255]<<16^w[o>>8&255]<<8^w[255&s]^r[h++],l=f,f=e,e=o,o=s,s=l;return d}};n.bitArray={bitSlice:function(t,i,r){return t=n.bitArray._shiftRight(t.slice(i/32),32-(31&i)).slice(1),void 0===r?t:n.bitArray.clamp(t,r-i)},extract:function(n,t,i){var u,r=Math.floor(-t-i&31);return u=-32&(t+i-1^t)?n[t/32|0]<<32-r^n[t/32+1|0]>>>r:n[t/32|0]>>>r,u&(1<<i)-1},concat:function(t,i){if(0===t.length||0===i.length)return t.concat(i);var r=t[t.length-1],u=n.bitArray.getPartial(r);return 32===u?t.concat(i):n.bitArray._shiftRight(i,u,0|r,t.slice(0,t.length-1))},bitLength:function(t){var r,i=t.length;return 0===i?0:(r=t[i-1],32*(i-1)+n.bitArray.getPartial(r))},clamp:function(t,i){if(32*t.length<i)return t;t=t.slice(0,Math.ceil(i/32));var r=t.length;return i=31&i,r>0&&i&&(t[r-1]=n.bitArray.partial(i,t[r-1]&2147483648>>i-1,1)),t},partial:function(n,t,i){return 32===n?t:(i?0|t:t<<32-n)+1099511627776*n},getPartial:function(n){return Math.round(n/1099511627776)||32},equal:function(t,i){if(n.bitArray.bitLength(t)!==n.bitArray.bitLength(i))return!1;for(var u=0,r=0;r<t.length;r++)u|=t[r]^i[r];return 0===u},_shiftRight:function(t,i,r,u){var f,e,o=0;for(void 0===u&&(u=[]);i>=32;i-=32)u.push(r),r=0;if(0===i)return u.concat(t);for(f=0;f<t.length;f++)u.push(r|t[f]>>>i),r=t[f]<<32-i;return o=t.length?t[t.length-1]:0,e=n.bitArray.getPartial(o),u.push(n.bitArray.partial(i+e&31,i+e>32?r:u.pop(),1)),u},_xor4:function(n,t){return[n[0]^t[0],n[1]^t[1],n[2]^t[2],n[3]^t[3]]}};n.codec.hex={fromBits:function(t){for(var r="",i=0;i<t.length;i++)r+=((0|t[i])+0xf00000000000).toString(16).substr(4);return r.substr(0,n.bitArray.bitLength(t)/4)},toBits:function(t){var i,r,u=[];for(t=t.replace(/\s|0x/g,""),r=t.length,t+="00000000",i=0;i<t.length;i+=8)u.push(0^parseInt(t.substr(i,8),16));return n.bitArray.clamp(u,4*r)}};n.codec.utf8String={fromBits:function(t){for(var r,u="",f=n.bitArray.bitLength(t),i=0;f/8>i;i++)0==(3&i)&&(r=t[i/4]),u+=String.fromCharCode(r>>>24),r<<=8;return decodeURIComponent(escape(u))},toBits:function(t){t=unescape(encodeURIComponent(t));for(var u=[],r=0,i=0;i<t.length;i++)r=r<<8|t.charCodeAt(i),3==(3&i)&&(u.push(r),r=0);return 3&i&&u.push(n.bitArray.partial(8*(3&i),r)),u}};n.codec.base64={_chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(t,i,r){var e,u="",f=0,o=n.codec.base64._chars,s=0,h=n.bitArray.bitLength(t);for(r&&(o=o.substr(0,62)+"-_"),e=0;6*u.length<h;)u+=o.charAt((s^t[e]>>>f)>>>26),6>f?(s=t[e]<<6-f,f+=26,e++):(s<<=6,f-=6);for(;3&u.length&&!i;)u+="=";return u},toBits:function(t,i){t=t.replace(/\s|=/g,"");var f,u,o=[],r=0,s=n.codec.base64._chars,e=0;for(i&&(s=s.substr(0,62)+"-_"),f=0;f<t.length;f++){if(u=s.indexOf(t.charAt(f)),0>u)throw new n.exception.invalid("this isn't base64!");r>26?(r-=26,o.push(e^u>>>r),e=u<<32-r):(r+=6,e^=u<<32-r)}return 56&r&&o.push(n.bitArray.partial(56&r,e,1)),o}};n.codec.base64url={fromBits:function(t){return n.codec.base64.fromBits(t,1,1)},toBits:function(t){return n.codec.base64.toBits(t,1)}};void 0===n.beware&&(n.beware={});n.beware["CBC mode is dangerous because it doesn't protect message integrity."]=function(){n.mode.cbc={name:"cbc",encrypt:function(t,i,r,u){if(u&&u.length)throw new n.exception.invalid("cbc can't authenticate data");if(128!==n.bitArray.bitLength(r))throw new n.exception.invalid("cbc iv must be 128 bits");var f,o=n.bitArray,h=o._xor4,e=o.bitLength(i),c=0,s=[];if(7&e)throw new n.exception.invalid("pkcs#5 padding only works for multiples of a byte");for(f=0;e>=c+128;f+=4,c+=128)r=t.encrypt(h(r,i.slice(f,f+4))),s.splice(f,0,r[0],r[1],r[2],r[3]);return e=16843009*(16-(e>>3&15)),r=t.encrypt(h(r,o.concat(i,[e,e,e,e]).slice(f,f+4))),s.splice(f,0,r[0],r[1],r[2],r[3]),s},decrypt:function(t,i,r,u){if(u&&u.length)throw new n.exception.invalid("cbc can't authenticate data");if(128!==n.bitArray.bitLength(r))throw new n.exception.invalid("cbc iv must be 128 bits");if(127&n.bitArray.bitLength(i)||!i.length)throw new n.exception.corrupt("cbc ciphertext must be a positive multiple of the block size");var o,f,e,h=n.bitArray,c=h._xor4,s=[];for(u=u||[],o=0;o<i.length;o+=4)f=i.slice(o,o+4),e=c(r,t.decrypt(f)),s.splice(o,0,e[0],e[1],e[2],e[3]),r=f;if(f=255&s[o-1],0==f||f>16)throw new n.exception.corrupt("pkcs#5 padding corrupt");if(e=16843009*f,!h.equal(h.bitSlice([e,e,e,e],0,8*f),h.bitSlice(s,32*s.length-8*f,32*s.length)))throw new n.exception.corrupt("pkcs#5 padding corrupt");return h.bitSlice(s,0,32*s.length-8*f)}}};n.misc.hmac=function(t,i){this._hash=i=i||n.hash.sha256;var r,u=[[],[]],f=i.prototype.blockSize/32;for(this._baseHash=[new i,new i],t.length>f&&(t=i.hash(t)),r=0;f>r;r++)u[0][r]=909522486^t[r],u[1][r]=1549556828^t[r];this._baseHash[0].update(u[0]);this._baseHash[1].update(u[1])};n.misc.hmac.prototype.encrypt=n.misc.hmac.prototype.mac=function(n,t){var i=new this._hash(this._baseHash[0]).update(n,t).finalize();return new this._hash(this._baseHash[1]).update(i).finalize()};n.hash.sha256=function(n){this._key[0]||this._precompute();n?(this._h=n._h.slice(0),this._buffer=n._buffer.slice(0),this._length=n._length):this.reset()};n.hash.sha256.hash=function(t){return(new n.hash.sha256).update(t).finalize()};n.hash.sha256.prototype={blockSize:512,reset:function(){return this._h=this._init.slice(0),this._buffer=[],this._length=0,this},update:function(t){"string"==typeof t&&(t=n.codec.utf8String.toBits(t));for(var u=this._buffer=n.bitArray.concat(this._buffer,t),r=this._length,f=this._length=r+n.bitArray.bitLength(t),i=512+r&-512;f>=i;i+=512)this._block(u.splice(0,16));return this},finalize:function(){for(var t=this._buffer,r=this._h,t=n.bitArray.concat(t,[n.bitArray.partial(1,1)]),i=t.length+2;15&i;i++)t.push(0);for(t.push(Math.floor(this._length/4294967296)),t.push(0|this._length);t.length;)this._block(t.splice(0,16));return this.reset(),r},_init:[],_key:[],_precompute:function(){function r(n){return 4294967296*(n-Math.floor(n))|0}var n,t=0,i=2;n:for(;64>t;i++){for(n=2;i>=n*n;n++)if(i%n==0)continue n;8>t&&(this._init[t]=r(Math.pow(i,.5)));this._key[t]=r(Math.pow(i,1/3));t++}},_block:function(n){for(var f,e,o,s=n.slice(0),t=this._h,p=this._key,v=t[0],r=t[1],h=t[2],l=t[3],u=t[4],a=t[5],c=t[6],y=t[7],i=0;64>i;i++)16>i?f=s[i]:(e=s[i+1&15],o=s[i+14&15],f=s[15&i]=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(o>>>17^o>>>19^o>>>10^o<<15^o<<13)+s[15&i]+s[i+9&15]|0),f=f+y+(u>>>6^u>>>11^u>>>25^u<<26^u<<21^u<<7)+(c^u&(a^c))+p[i],y=c,c=a,a=u,u=l+f|0,l=h,h=r,r=v,v=f+(r&h^l&(r^h))+(r>>>2^r>>>13^r>>>22^r<<30^r<<19^r<<10)|0;t[0]=t[0]+v|0;t[1]=t[1]+r|0;t[2]=t[2]+h|0;t[3]=t[3]+l|0;t[4]=t[4]+u|0;t[5]=t[5]+a|0;t[6]=t[6]+c|0;t[7]=t[7]+y|0}};n.random={randomWords:function(t,i){var u,r,e=[],f=this.isReady(i);if(f===this._NOT_READY)throw new n.exception.notReady("generator isn't seeded");for(f&this._REQUIRES_RESEED&&this._reseedFromPools(!(f&this._READY)),u=0;t>u;u+=4)(u+1)%this._MAX_WORDS_PER_BURST==0&&this._gate(),r=this._gen4words(),e.push(r[0],r[1],r[2],r[3]);return this._gate(),e.slice(0,t)},setDefaultParanoia:function(n){this._defaultParanoia=n},addEntropy:function(t,i,r){var c;r=r||"user";var e,u,o,h=(new Date).valueOf(),f=this._robins[r],l=this.isReady(),s=0;switch(e=this._collectorIds[r],void 0===e&&(e=this._collectorIds[r]=this._collectorIdNext++),void 0===f&&(f=this._robins[r]=0),this._robins[r]=(this._robins[r]+1)%this._pools.length,typeof t){case"number":void 0===i&&(i=1);this._pools[f].update([e,this._eventId++,1,i,h,1,0|t]);break;case"object":if(c=Object.prototype.toString.call(t),"[object Uint32Array]"===c){for(o=[],u=0;u<t.length;u++)o.push(t[u]);t=o}else for("[object Array]"!==c&&(s=1),u=0;u<t.length&&!s;u++)"number"!=typeof t[u]&&(s=1);if(!s){if(void 0===i)for(i=0,u=0;u<t.length;u++)for(o=t[u];o>0;)i++,o>>>=1;this._pools[f].update([e,this._eventId++,2,i,h,t.length].concat(t))}break;case"string":void 0===i&&(i=t.length);this._pools[f].update([e,this._eventId++,3,i,h,t.length]);this._pools[f].update(t);break;default:s=1}if(s)throw new n.exception.bug("random: addEntropy only supports number, array of numbers or string");this._poolEntropy[f]+=i;this._poolStrength+=i;l===this._NOT_READY&&(this.isReady()!==this._NOT_READY&&this._fireEvent("seeded",Math.max(this._strength,this._poolStrength)),this._fireEvent("progress",this.getProgress()))},isReady:function(n){var t=this._PARANOIA_LEVELS[void 0!==n?n:this._defaultParanoia];return this._strength&&this._strength>=t?this._poolEntropy[0]>this._BITS_PER_RESEED&&(new Date).valueOf()>this._nextReseed?this._REQUIRES_RESEED|this._READY:this._READY:this._poolStrength>=t?this._REQUIRES_RESEED|this._NOT_READY:this._NOT_READY},getProgress:function(n){var t=this._PARANOIA_LEVELS[n?n:this._defaultParanoia];return this._strength>=t?1:this._poolStrength>t?1:this._poolStrength/t},startCollectors:function(){if(!this._collectorsStarted){if(window.addEventListener)window.addEventListener("load",this._loadTimeCollector,!1),window.addEventListener("mousemove",this._mouseCollector,!1);else{if(!document.attachEvent)throw new n.exception.bug("can't attach event");document.attachEvent("onload",this._loadTimeCollector);document.attachEvent("onmousemove",this._mouseCollector)}this._collectorsStarted=!0}},stopCollectors:function(){this._collectorsStarted&&(window.removeEventListener?(window.removeEventListener("load",this._loadTimeCollector,!1),window.removeEventListener("mousemove",this._mouseCollector,!1)):window.detachEvent&&(window.detachEvent("onload",this._loadTimeCollector),window.detachEvent("onmousemove",this._mouseCollector)),this._collectorsStarted=!1)},addEventListener:function(n,t){this._callbacks[n][this._callbackI++]=t},removeEventListener:function(n,t){var r,i,u=this._callbacks[n],f=[];for(i in u)u.hasOwnProperty(i)&&u[i]===t&&f.push(i);for(r=0;r<f.length;r++)i=f[r],delete u[i]},_pools:[new n.hash.sha256],_poolEntropy:[0],_reseedCount:0,_robins:{},_eventId:0,_collectorIds:{},_collectorIdNext:0,_strength:0,_poolStrength:0,_nextReseed:0,_key:[0,0,0,0,0,0,0,0],_counter:[0,0,0,0],_cipher:void 0,_defaultParanoia:6,_collectorsStarted:!1,_callbacks:{progress:{},seeded:{}},_callbackI:0,_NOT_READY:0,_READY:1,_REQUIRES_RESEED:2,_MAX_WORDS_PER_BURST:65536,_PARANOIA_LEVELS:[0,48,64,96,128,192,256,384,512,768,1024],_MILLISECONDS_PER_RESEED:3e4,_BITS_PER_RESEED:80,_gen4words:function(){for(var n=0;4>n&&(this._counter[n]=this._counter[n]+1|0,!this._counter[n]);n++);return this._cipher.encrypt(this._counter)},_gate:function(){this._key=this._gen4words().concat(this._gen4words());this._cipher=new n.cipher.aes(this._key)},_reseed:function(t){this._key=n.hash.sha256.hash(this._key.concat(t));this._cipher=new n.cipher.aes(this._key);for(var i=0;4>i&&(this._counter[i]=this._counter[i]+1|0,!this._counter[i]);i++);},_reseedFromPools:function(t){var i,r=[],u=0;for(this._nextReseed=r[0]=(new Date).valueOf()+this._MILLISECONDS_PER_RESEED,i=0;16>i;i++)r.push(4294967296*Math.random()|0);for(i=0;i<this._pools.length&&(r=r.concat(this._pools[i].finalize()),u+=this._poolEntropy[i],this._poolEntropy[i]=0,t||!(this._reseedCount&1<<i));i++);this._reseedCount>=1<<this._pools.length&&(this._pools.push(new n.hash.sha256),this._poolEntropy.push(0));this._poolStrength-=u;u>this._strength&&(this._strength=u);this._reseedCount++;this._reseed(r)},_mouseCollector:function(t){var i=t.x||t.clientX||t.offsetX||0,r=t.y||t.clientY||t.offsetY||0;n.random.addEntropy([i,r],2,"mouse")},_loadTimeCollector:function(){n.random.addEntropy((new Date).valueOf(),2,"loadtime")},_fireEvent:function(t,i){var r,u=n.random._callbacks[t],f=[];for(r in u)u.hasOwnProperty(r)&&f.push(u[r]);for(r=0;r<f.length;r++)f[r](i)}},function(){try{var t=new Uint32Array(32);crypto.getRandomValues(t);n.random.addEntropy(t,1024,"crypto.getRandomValues")}catch(i){}}(),function(){for(var t in n.beware)n.beware.hasOwnProperty(t)&&n.beware[t]()}();s={sjcl:n,version:"1.3.10"};s.generateAesKey=function(){return{key:n.random.randomWords(8,0),encrypt:function(t){return this.encryptWithIv(t,n.random.randomWords(4,0))},encryptWithIv:function(t,i){var r=new n.cipher.aes(this.key),u=n.codec.utf8String.toBits(t),f=n.mode.cbc.encrypt(r,u,i),e=n.bitArray.concat(i,f);return n.codec.base64.fromBits(e)}}};s.create=function(n){return new s.EncryptionClient(n)};s.EncryptionClient=function(t){var r=this,u=[];r.publicKey=t;r.version=s.version;var h=function(n,t){var r,i,u;r=document.createElement(n);for(i in t)t.hasOwnProperty(i)&&(u=t[i],r.setAttribute(i,u));return r},f=function(n){return window.jQuery&&n instanceof jQuery?n[0]:n.nodeType&&1===n.nodeType?n:document.getElementById(n)},e=function(n){var r,u,f,t,i=[];if("INTEGER"===n.typeName()&&(r=n.posContent(),u=n.posEnd(),f=n.stream.hexDump(r,u).replace(/[ \n]/g,""),i.push(f)),null!==n.sub)for(t=0;t<n.sub.length;t++)i=i.concat(e(n.sub[t]));return i},o=function(n){for(var t,r=[],u=n.children,i=0;i<u.length;i++)t=u[i],1===t.nodeType&&t.attributes["data-encrypted-name"]?r.push(t):t.children&&t.children.length>0&&(r=r.concat(o(t)));return r},c=function(){var u,f,n,o,s,r;try{s=it(t);u=i.decode(s)}catch(h){throw"Invalid encryption key. Please use the key labeled 'Client-Side Encryption Key'";}if(n=e(u),2!==n.length)throw"Invalid encryption key. Please use the key labeled 'Client-Side Encryption Key'";return o=n[0],f=n[1],r=new y,r.setPublic(o,f),r},l=function(){return{key:n.random.randomWords(8,0),sign:function(t){var i=new n.misc.hmac(this.key,n.hash.sha256),r=i.encrypt(t);return n.codec.base64.fromBits(r)}}};r.encrypt=function(t){var h=c(),i=s.generateAesKey(),u=l(),f=i.encrypt(t),a=u.sign(n.codec.base64.toBits(f)),v=n.bitArray.concat(i.key,u.key),y=n.codec.base64.fromBits(v),e=h.encrypt(y),p="$bt4|javascript_"+r.version.replace(/\./g,"_")+"$",o=null;return e&&(o=nt(e)),p+o+"$"+f+"$"+a};r.encryptForm=function(n){var t,c,l,e,i,s;for(n=f(n),s=o(n);u.length>0;){try{n.removeChild(u[0])}catch(a){}u.splice(0,1)}for(i=0;i<s.length;i++)t=s[i],l=t.getAttribute("data-encrypted-name"),c=r.encrypt(t.value),t.removeAttribute("name"),e=h("input",{value:c,type:"hidden",name:l}),u.push(e),n.appendChild(e)};r.onSubmitEncryptForm=function(n,t){var i;n=f(n);i=function(i){return r.encryptForm(n),t?t(i):i};window.jQuery?window.jQuery(n).submit(i):n.addEventListener?n.addEventListener("submit",i,!1):n.attachEvent&&n.attachEvent("onsubmit",i)};r.formEncrypter={encryptForm:r.encryptForm,extractForm:f,onSubmitEncryptForm:r.onSubmitEncryptForm};n.random.startCollectors()};window.Braintree=s}();!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self);t.braintree=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(n,t){"use strict";n("./src/rpc-dispatcher")();t.exports=n("./src/setup.js")},{"./src/rpc-dispatcher":227,"./src/setup.js":228}],2:[function(n,t){(function(i){"use strict";function s(n,t){return n.status>=400?[n,null]:[null,t(n)]}function r(n){var t,i;this.attrs={};n.hasOwnProperty("sharedCustomerIdentifier")&&(this.attrs.sharedCustomerIdentifier=n.sharedCustomerIdentifier);t=a(n.clientToken);this.driver=n.driver||v;this.authUrl=t.authUrl;this.analyticsUrl=t.analytics?t.analytics.url:void 0;this.clientApiUrl=t.clientApiUrl;this.customerId=n.customerId;this.challenges=t.challenges;this.integration=n.integration||"";i=l.create(this,{container:n.container,clientToken:t});this.verify3DS=c.bind(i.verify,i);this.attrs.authorizationFingerprint=t.authorizationFingerprint;this.attrs.sharedCustomerIdentifierType=n.sharedCustomerIdentifierType;t.merchantAccountId&&(this.attrs.merchantAccountId=t.merchantAccountId);this.timeoutWatchers=[];this.requestTimeout=n.hasOwnProperty("timeout")?n.timeout:6e4}function h(){}function f(n,t){var i,r={};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);for(i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var c=n("braintree-utilities"),l=n("braintree-3ds"),a=n("./parse-client-token"),v=n("./jsonp-driver"),u=n("./util"),o=n("./sepa-mandate"),y=n("./sepa-bank-account"),e=n("./credit-card"),p=n("./coinbase-account"),w=n("./root-data"),b=n("./normalize-api-fields").normalizeCreditCardFields;r.prototype.requestWithTimeout=function(n,t,i,r,u){u=u||h;var e,o,f=this;w.get(function(h){o="braintree/web/"+h.sdkVersion;t.braintreeLibraryVersion=o;t.hasOwnProperty("analytics")&&t.hasOwnProperty("_meta")&&(t._meta.sdkVersion=o,t._meta.merchantAppId=h.merchantAppId);e=r(n,t,function(n,t){if(f.timeoutWatchers[t]){clearTimeout(f.timeoutWatchers[t]);var r=s(n,function(n){return i(n)});u.apply(null,r)}});f.requestTimeout>0?this.timeoutWatchers[e]=setTimeout(function(){f.timeoutWatchers[e]=null;u.apply(null,[{errors:"Unknown error"},null])},f.requestTimeout):u.apply(null,[{errors:"Unknown error"},null])},this)};r.prototype.post=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.post,r)};r.prototype.get=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.get,r)};r.prototype.put=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.put,r)};r.prototype.getCreditCards=function(n){this.get(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods"]),this.attrs,function(n){var t=0,r=n.paymentMethods.length,i=[];for(t;r>t;t++)i.push(new e(n.paymentMethods[t]));return i},n)};r.prototype.tokenizeCoinbase=function(n,t){n.options={validate:!1};this.addCoinbase(n,function(n,i){n?t(n,null):i&&i.nonce?t(n,i):t("Unable to tokenize coinbase account.",null)})};r.prototype.tokenizeCard=function(n,t){n.options={validate:!1};this.addCreditCard(n,function(n,i){i&&i.nonce?t(n,i.nonce,{type:i.type}):t("Unable to tokenize card.",null)})};r.prototype.lookup3DS=function(n,t){var i=u.joinUrlFragments([this.clientApiUrl,"v1/payment_methods",n.nonce,"three_d_secure/lookup"]),r=f(this.attrs,{amount:n.amount});this.post(i,r,function(n){return n},t)};r.prototype.addSEPAMandate=function(n,t){var i=f(this.attrs,{sepaMandate:n});this.post(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates.json"]),i,function(n){return new o(n.sepaMandates[0])},t)};r.prototype.acceptSEPAMandate=function(n,t){this.put(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates",n,"accept"]),this.attrs,function(n){return new y(n.sepaBankAccounts[0])},t)};r.prototype.getSEPAMandate=function(n,t){var i;i=n.paymentMethodToken?f(this.attrs,{paymentMethodToken:n.paymentMethodToken}):this.attrs;this.get(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates",n.mandateReferenceNumber||""]),i,function(n){return new o(n.sepaMandates[0])},t)};r.prototype.addCoinbase=function(n,t){var i;delete n.share;i=f(this.attrs,{coinbaseAccount:n,_meta:{integration:this.integration||"custom",source:"coinbase"}});this.post(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods/coinbase_accounts"]),i,function(n){return new p(n.coinbaseAccounts[0])},t)};r.prototype.addCreditCard=function(n,t){var i,o=n.share,r;delete n.share;r=b(n);i=f(this.attrs,{share:o,creditCard:r,_meta:{integration:this.integration||"custom",source:"form"}});this.post(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods/credit_cards"]),i,function(n){return new e(n.creditCards[0])},t)};r.prototype.unlockCreditCard=function(n,t,i){var r=f(this.attrs,{challengeResponses:t});this.put(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods/",n.nonce]),r,function(n){return new e(n.paymentMethods[0])},i)};r.prototype.sendAnalyticsEvents=function(n,t){var e,o=this.analyticsUrl,s=[],r;if(n=u.isArray(n)?n:[n],!o)return void(t&&t.apply(null,[null,{}]));for(r in n)n.hasOwnProperty(r)&&s.push({kind:n[r]});e=f(this.attrs,{analytics:s,_meta:{platform:"web",platformVersion:i.navigator.userAgent,integrationType:this.integration}});this.post(o,e,function(n){return n},t)};t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./coinbase-account":3,"./credit-card":4,"./jsonp-driver":5,"./normalize-api-fields":7,"./parse-client-token":8,"./root-data":10,"./sepa-bank-account":11,"./sepa-mandate":12,"./util":13,"braintree-3ds":22,"braintree-utilities":41}],3:[function(n,t){"use strict";function r(n){for(var r,t=0;t<i.length;t++)r=i[t],this[r]=n[r]}var i=["nonce","type","description","details"];t.exports=r},{}],4:[function(n,t){"use strict";function r(n){for(var r,t=0;t<i.length;t++)r=i[t],this[r]=n[r]}var i=["billingAddress","branding","createdAt","createdAtMerchant","createdAtMerchantName","details","isLocked","lastUsedAt","lastUsedAtMerchant","lastUsedAtMerchantName","lastUsedByCurrentMerchant","nonce","securityQuestions","type"];t.exports=r},{}],5:[function(n,t){"use strict";function r(n,t,r){return i.get(n,t,r)}function u(n,t,r){return t._method="POST",i.get(n,t,r)}function f(n,t,r){return t._method="PUT",i.get(n,t,r)}var i=n("./jsonp");t.exports={get:r,post:u,put:f}},{"./jsonp":6}],6:[function(n,t){(function(i){"use strict";function s(n,t){var i=document.createElement("script"),f=!1,r;i.src=n;i.async=!0;r=t||e.error;"function"==typeof r&&(i.onerror=function(t){r({url:n,event:t})});i.onload=i.onreadystatechange=function(){f||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(f=!0,i.onload=i.onreadystatechange=null,i&&i.parentNode&&i.parentNode.removeChild(i))};u||(u=document.getElementsByTagName("head")[0]);u.appendChild(i)}function r(n,t){var f,u,e=[],i;for(i in n)n.hasOwnProperty(i)&&(u=n[i],f=t?o.isArray(n)?t+"[]":t+"["+i+"]":i,e.push("object"==typeof u?r(u,f):encodeURIComponent(f)+"="+encodeURIComponent(u)));return e.join("&")}function h(n,t,i,u){var c=-1===(n||"").indexOf("?")?"?":"&",h;return u=u||e.callbackName||"callback",h=u+"_json"+o.generateUUID(),c+=r(t),f[h]=function(n){i(n,h);try{delete f[h]}catch(t){}f[h]=null},s(n+c+"&"+u+"="+h),h}function c(n){e=n}var u,o=n("./util"),f=i,e={};t.exports={get:h,init:c,stringify:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util":13}],7:[function(n,t){"use strict";function i(n){var i={billingAddress:n.billingAddress||{}},t;for(t in n)if(n.hasOwnProperty(t))switch(t.replace(/_/,"").toLowerCase()){case"postalcode":case"countryname":case"countrycodenumeric":case"countrycodealpha2":case"countrycodealpha3":case"region":case"extendedaddress":case"locality":case"firstname":case"lastname":case"company":case"streetaddress":i.billingAddress[t]=n[t];break;default:i[t]=n[t]}return i}t.exports={normalizeCreditCardFields:i}},{}],8:[function(n,t){"use strict";function i(n){var t;if(!n)throw new Error("Braintree API Client Misconfigured: clientToken required.");if("object"==typeof n&&null!==n)t=n;else{try{n=window.atob(n)}catch(i){}try{t=JSON.parse(n)}catch(r){throw new Error("Braintree API Client Misconfigured: clientToken is invalid.");}}if(!t.hasOwnProperty("authUrl")||!t.hasOwnProperty("clientApiUrl"))throw new Error("Braintree API Client Misconfigured: clientToken is invalid.");return t}n("./polyfill");t.exports=i},{"./polyfill":9}],9:[function(){(function(n){"use strict";n.atob=n.atob||function(n){var s=new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="",t;if(!s.test(n))throw new Error("Braintree API Client Misconfigured: clientToken is invalid.");t=0;do{var h=i.indexOf(n.charAt(t++)),u=i.indexOf(n.charAt(t++)),f=i.indexOf(n.charAt(t++)),c=i.indexOf(n.charAt(t++)),l=(63&h)<<2|u>>4&3,e=(15&u)<<4|f>>2&15,o=(3&f)<<6|63&c;r+=String.fromCharCode(l)+(e?String.fromCharCode(e):"")+(o?String.fromCharCode(o):"")}while(t<n.length);return r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(n,t){(function(i){"use strict";function h(){var n=i.braintree;if(n&&n.hasOwnProperty("VERSION"))return n.VERSION}function c(n,t){null==r?(u.push({callback:n,context:t}),s===!1&&(e=setTimeout(function(){f(v)},200),a.invoke("getExternalData",[],f),s=!0)):n.call(t,r)}function f(n){var t,i;for(clearTimeout(e),r={sdkVersion:n.sdkVersion,merchantAppId:n.merchantAppId},t=0;t<u.length;t++)i=u[t],i.callback.call(i.context,r);u=[]}var r,e,o=n("braintree-rpc"),l=new o.MessageBus(window),a=new o.RPCClient(l,window.parent),s=!1,u=[],v={sdkVersion:h(),merchantAppId:i.location.href};t.exports={get:c}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"braintree-rpc":30}],11:[function(n,t){"use strict";function r(n){for(var r,t=0;t<i.length;t++)r=i[t],this[r]=n[r]}var i=["bic","maskedIBAN","nonce","accountHolderName"];t.exports=r},{}],12:[function(n,t){"use strict";function r(n){for(var r,t=0;t<i.length;t++)r=i[t],this[r]=n[r]}var i=["accountHolderName","bic","longFormURL","mandateReferenceNumber","maskedIBAN","shortForm"];t.exports=r},{}],13:[function(n,t){"use strict";function i(n){for(var t,r=[],i=0;i<n.length;i++)t=n[i],"/"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),"/"===t.charAt(0)&&(t=t.substring(1)),r.push(t);return r.join("/")}function r(n){return n&&"object"==typeof n&&"number"==typeof n.length&&"[object Array]"===Object.prototype.toString.call(n)||!1}function u(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.floor(16*Math.random()),i="x"===n?t:3&t|8;return i.toString(16)})}t.exports={joinUrlFragments:i,isArray:r,generateUUID:u}},{}],14:[function(n,t){"use strict";function r(n){return new i(n)}var i=n("./lib/client"),u=n("./lib/jsonp"),f=n("./lib/jsonp-driver"),e=n("./lib/util"),o=n("./lib/parse-client-token");t.exports={Client:i,configure:r,util:e,JSONP:u,JSONPDriver:f,parseClientToken:o}},{"./lib/client":2,"./lib/jsonp":6,"./lib/jsonp-driver":5,"./lib/parse-client-token":8,"./lib/util":13}],15:[function(n,t){"use strict";function i(n,t){if(t=t||"["+n+"] is not a valid DOM Element",n&&n.nodeType&&1===n.nodeType)return n;if(n&&window.jQuery&&(n instanceof jQuery||"jquery"in Object(n))&&0!==n.length)return n[0];if("string"==typeof n&&document.getElementById(n))return document.getElementById(n);throw new Error(t);}t.exports={normalizeElement:i}},{}],16:[function(n,t){"use strict";function i(n,t,i,r){n.addEventListener?n.addEventListener(t,i,r):n.attachEvent&&n.attachEvent("on"+t,i)}function r(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent&&n.detachEvent("on"+t,i)}t.exports={addEventListener:i,removeEventListener:r}},{}],17:[function(n,t){"use strict";function i(n){return"[object Function]"===u.call(n)}function r(n,t){return function(){n.apply(t,arguments)}}var u=Object.prototype.toString;t.exports={bind:r,isFunction:i}},{}],18:[function(n,t){"use strict";function f(){return"https:"===window.location.protocol}function i(n){switch(n){case null:case void 0:return"";case!0:return"1";case!1:return"0";default:return encodeURIComponent(n)}}function r(n,t){var e,f,o=[],u;for(f in n)n.hasOwnProperty(f)&&(u=n[f],e=t?t+"["+f+"]":f,"object"==typeof u?o.push(r(u,e)):void 0!==u&&null!==u&&o.push(i(e)+"="+i(u)));return o.join("&")}function u(n){for(var i={},r=n.split("&"),t=0;t<r.length;t++){var u=r[t].split("="),f=u[0],e=decodeURIComponent(u[1]);i[f]=e}return i}function e(n){var t=n.split("?");return 2!==t.length?{}:u(t[1])}t.exports={isBrowserHttps:f,makeQueryString:r,decodeQueryString:u,getParams:e}},{}],19:[function(n,t){var f=n("./lib/dom"),i=n("./lib/url"),r=n("./lib/fn"),u=n("./lib/events");t.exports={normalizeElement:f.normalizeElement,isBrowserHttps:i.isBrowserHttps,makeQueryString:i.makeQueryString,decodeQueryString:i.decodeQueryString,getParams:i.getParams,removeEventListener:u.removeEventListener,addEventListener:u.addEventListener,bind:r.bind,isFunction:r.isFunction}},{"./lib/dom":15,"./lib/events":16,"./lib/fn":17,"./lib/url":18}],20:[function(n,t){"use strict";function f(n,t){var i=window.getComputedStyle?getComputedStyle(n):n.currentStyle;return i[t]}function s(){return{html:{height:u.style.height||"",overflow:f(u,"overflow"),position:f(u,"position")},body:{height:r.style.height||"",overflow:f(r,"overflow")}}}function i(n,t){this.assetsUrl=n;this.container=t||document.body;this.iframe=null;u=document.documentElement;r=document.body;this.merchantPageDefaultStyles=s()}var u,r,e=n("braintree-utilities"),h=n("../shared/receiver"),o="1.1.0";i.prototype.get=function(n,t){var i=this,r=this.constructAuthorizationURL(n);this.container&&e.isFunction(this.container)?this.container(r+"&no_style=1"):this.insertIframe(r);new h(function(n){e.isFunction(i.container)||i.removeIframe();t(n)})};i.prototype.removeIframe=function(){this.container&&this.container.nodeType&&1===this.container.nodeType?this.container.removeChild(this.iframe):this.container&&window.jQuery&&this.container instanceof jQuery?$(this.iframe,this.container).remove():"string"==typeof this.container&&document.getElementById(this.container).removeChild(this.iframe);this.unlockMerchantWindowSize()};i.prototype.insertIframe=function(n){var t=document.createElement("iframe");if(t.src=n,this.applyStyles(t),this.lockMerchantWindowSize(),this.container&&this.container.nodeType&&1===this.container.nodeType)this.container.appendChild(t);else if(this.container&&window.jQuery&&this.container instanceof jQuery&&0!==this.container.length)this.container.append(t);else{if("string"!=typeof this.container||!document.getElementById(this.container))throw new Error("Unable to find valid container for iframe.");document.getElementById(this.container).appendChild(t)}this.iframe=t};i.prototype.applyStyles=function(n){n.style.position="fixed";n.style.top="0";n.style.left="0";n.style.height="100%";n.style.width="100%";n.setAttribute("frameborder","0");n.setAttribute("allowTransparency","true");n.style.border="0";n.style.zIndex="99999"};i.prototype.lockMerchantWindowSize=function(){u.style.overflow="hidden";r.style.overflow="hidden";r.style.height="100%"};i.prototype.unlockMerchantWindowSize=function(){var n=this.merchantPageDefaultStyles;r.style.height=n.body.height;r.style.overflow=n.body.overflow;u.style.overflow=n.html.overflow};i.prototype.constructAuthorizationURL=function(n){var i,t=window.location.href;return t.indexOf("#")>-1&&(t=t.split("#")[0]),i=e.makeQueryString({acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version="+o,md:n.md,parentUrl:t}),this.assetsUrl+"/3ds/"+o+"/html/style_frame?"+i};t.exports=i},{"../shared/receiver":24,"braintree-utilities":19}],21:[function(n,t){"use strict";function i(n,t){t=t||{};this.clientToken=t.clientToken;this.container=t.container;this.api=n;this.nonce=null}var r=n("braintree-utilities"),u=n("./authorization_service");i.prototype.verify=function(n,t){var i,u,f,e;if(!r.isFunction(t))throw this.api.sendAnalyticsEvents("3ds.web.no_callback"),new Error("No suitable callback argument was given");i={nonce:"",amount:n.amount};u=n.creditCard;"string"==typeof u?(i.nonce=u,this.api.sendAnalyticsEvents("3ds.web.verify.nonce"),this.startVerification(i,t)):(f=this,e=function(n,r){return n?t(n):(i.nonce=r,void f.startVerification(i,t))},this.api.sendAnalyticsEvents("3ds.web.verify.credit_card"),this.api.tokenizeCard(u,e))};i.prototype.startVerification=function(n,t){this.api.lookup3DS(n,r.bind(this.handleLookupResponse(t),this))};i.prototype.handleLookupResponse=function(n){var t=this;return function(i,f){var e;i?n(i.error):f.lookup&&f.lookup.acsUrl&&f.lookup.acsUrl.length>0?(t.nonce=f.paymentMethod.nonce,e=new u(this.clientToken.assetsUrl,this.container),e.get(f.lookup,r.bind(this.handleAuthenticationResponse(n),this))):(t.nonce=f.paymentMethod.nonce,n(null,{nonce:t.nonce,verificationDetails:f.threeDSecureInfo}))}};i.prototype.handleAuthenticationResponse=function(n){return function(t){var i,u=r.decodeQueryString(t);u.user_closed||(i=JSON.parse(u.auth_response),i.success?n(null,{nonce:i.paymentMethod.nonce,verificationDetails:i.threeDSecureInfo}):i.threeDSecureInfo&&i.threeDSecureInfo.liabilityShiftPossible?n(null,{nonce:this.nonce,verificationDetails:i.threeDSecureInfo}):n(i.error))}};t.exports=i},{"./authorization_service":20,"braintree-utilities":19}],22:[function(n,t){"use strict";var i=n("./client");n("./vendor/json2");t.exports={create:function(n,t){return new i(n,t)}}},{"./client":21,"./vendor/json2":23}],23:[function(){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function i(n){return 10>n?"0"+n:n}function f(n){return o.lastIndex=0,o.test(n)?'"'+n.replace(o,function(n){var t=s[n];return"string"==typeof t?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function r(i,e){var s,l,h,a,c,v=n,o=e[i];switch(o&&"object"==typeof o&&"function"==typeof o.toJSON&&(o=o.toJSON(i)),"function"==typeof t&&(o=t.call(e,i,o)),typeof o){case"string":return f(o);case"number":return isFinite(o)?String(o):"null";case"boolean":case"null":return String(o);case"object":if(!o)return"null";if(n+=u,c=[],"[object Array]"===Object.prototype.toString.apply(o)){for(a=o.length,s=0;a>s;s+=1)c[s]=r(s,o)||"null";return h=0===c.length?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&"object"==typeof t)for(a=t.length,s=0;a>s;s+=1)"string"==typeof t[s]&&(l=t[s],h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));else for(l in o)Object.prototype.hasOwnProperty.call(o,l)&&(h=r(l,o),h&&c.push(f(l)+(n?": ":":")+h));return h=0===c.length?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,u,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;"function"!=typeof JSON.stringify&&(JSON.stringify=function(i,f,e){var o;if(n="",u="","number"==typeof e)for(o=0;e>o;o+=1)u+=" ";else"string"==typeof e&&(u=e);if(t=f,f&&"function"!=typeof f&&("object"!=typeof f||"number"!=typeof f.length))throw new Error("JSON.stringify");return r("",{"":i})});"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),void 0!==u?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),e.lastIndex=0,e.test(text)&&(text=text.replace(e,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}()},{}],24:[function(n,t){"use strict";function i(n){this.postMessageReceiver(n);this.hashChangeReceiver(n)}var r=n("braintree-utilities");i.prototype.postMessageReceiver=function(n){var t=this;this.wrappedCallback=function(i){n(i.data);t.stopListening()};r.addEventListener(window,"message",this.wrappedCallback)};i.prototype.hashChangeReceiver=function(n){var t,i=window.location.hash,r=this;this.poll=setInterval(function(){t=window.location.hash;t.length>0&&t!==i&&(r.stopListening(),t=t.substring(1,t.length),n(t),window.location.hash=i.length>0?i:"")},10)};i.prototype.stopListening=function(){clearTimeout(this.poll);r.removeEventListener(window,"message",this.wrappedCallback)};t.exports=i},{"braintree-utilities":19}],25:[function(n,t){"use strict";function i(n){this.host=n||window;this.handlers=[];r.addEventListener(this.host,"message",r.bind(this.receive,this))}var r=n("braintree-utilities");i.prototype.receive=function(n){var t,u,r,f;try{r=JSON.parse(n.data)}catch(e){return}for(f=r.type,u=new i.Message(this,n.source,r.data),t=0;t<this.handlers.length;t++)this.handlers[t].type===f&&this.handlers[t].handler(u)};i.prototype.send=function(n,t,i){n.postMessage(JSON.stringify({type:t,data:i}),"*")};i.prototype.register=function(n,t){this.handlers.push({type:n,handler:t})};i.prototype.unregister=function(n,t){for(var i=this.handlers.length-1;i>=0;i--)if(this.handlers[i].type===n&&this.handlers[i].handler===t)return this.handlers.splice(i,1)};i.Message=function(n,t,i){this.bus=n;this.source=t;this.content=i};i.Message.prototype.reply=function(n,t){this.bus.send(this.source,n,t)};t.exports=i},{"braintree-utilities":35}],26:[function(n,t){"use strict";function i(n,t){this.bus=n;this.target=t;this.handlers=[];this.bus.register("publish",r.bind(this._handleMessage,this))}var r=n("braintree-utilities");i.prototype._handleMessage=function(n){var t,r=n.content,i=this.handlers[r.channel];if("undefined"!=typeof i)for(t=0;t<i.length;t++)i[t](r.data)};i.prototype.publish=function(n,t){this.bus.send(this.target,"publish",{channel:n,data:t})};i.prototype.subscribe=function(n,t){this.handlers[n]=this.handlers[n]||[];this.handlers[n].push(t)};i.prototype.unsubscribe=function(n,t){var i,r=this.handlers[n];if("undefined"!=typeof r)for(i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)};t.exports=i},{"braintree-utilities":35}],27:[function(n,t){"use strict";function i(n){this.bus=n;this.frames=[];this.handlers=[]}i.prototype.subscribe=function(n,t){this.handlers[n]=this.handlers[n]||[];this.handlers[n].push(t)};i.prototype.registerFrame=function(n){this.frames.push(n)};i.prototype.unregisterFrame=function(n){for(var t=0;t<this.frames.length;t++)this.frames[t]===n&&this.frames.splice(t,1)};i.prototype.publish=function(n,t){var i,r=this.handlers[n];if("undefined"!=typeof r)for(i=0;i<r.length;i++)r[i](t);for(i=0;i<this.frames.length;i++)this.bus.send(this.frames[i],"publish",{channel:n,data:t})};i.prototype.unsubscribe=function(n,t){var i,r=this.handlers[n];if("undefined"!=typeof r)for(i=0;i<r.length;i++)r[i]===t&&r.splice(i,1)};t.exports=i},{}],28:[function(n,t){"use strict";function i(n,t){this.bus=n;this.target=t||window.parent;this.counter=0;this.callbacks={};this.bus.register("rpc_response",r.bind(this._handleResponse,this))}var r=n("braintree-utilities");i.prototype._handleResponse=function(n){var t=n.content,i=this.callbacks[t.id];"function"==typeof i&&(i.apply(null,t.response),delete this.callbacks[t.id])};i.prototype.invoke=function(n,t,i){var r=this.counter++;this.callbacks[r]=i;this.bus.send(this.target,"rpc_request",{id:r,method:n,args:t})};t.exports=i},{"braintree-utilities":35}],29:[function(n,t){"use strict";function i(n){this.bus=n;this.methods={};this.bus.register("rpc_request",r.bind(this._handleRequest,this))}var r=n("braintree-utilities");i.prototype._handleRequest=function(n){var i,t=n.content,r=t.args||[],u=this.methods[t.method];"function"==typeof u&&(i=function(){n.reply("rpc_response",{id:t.id,response:Array.prototype.slice.call(arguments)})},r.push(i),u.apply(null,r))};i.prototype.define=function(n,t){this.methods[n]=t};t.exports=i},{"braintree-utilities":35}],30:[function(n,t){var i=n("./lib/message-bus"),r=n("./lib/pubsub-client"),u=n("./lib/pubsub-server"),f=n("./lib/rpc-client"),e=n("./lib/rpc-server");t.exports={MessageBus:i,PubsubClient:r,PubsubServer:u,RPCClient:f,RPCServer:e}},{"./lib/message-bus":25,"./lib/pubsub-client":26,"./lib/pubsub-server":27,"./lib/rpc-client":28,"./lib/rpc-server":29}],31:[function(n,t){"use strict";function i(n,t){if(t=t||"["+n+"] is not a valid DOM Element",n&&n.nodeType&&1===n.nodeType)return n;if(n&&window.jQuery&&n instanceof jQuery&&0!==n.length)return n[0];if("string"==typeof n&&document.getElementById(n))return document.getElementById(n);throw new Error(t);}t.exports={normalizeElement:i}},{}],32:[function(n,t){"use strict";function i(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)}function r(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.detachEvent&&n.detachEvent("on"+t,i)}t.exports={removeEventListener:r,addEventListener:i}},{}],33:[function(n,t){"use strict";function i(n){return"[object Function]"===Object.prototype.toString.call(n)}function r(n,t){return function(){n.apply(t,arguments)}}t.exports={bind:r,isFunction:i}},{}],34:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],35:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":31,"./lib/events":32,"./lib/fn":33,"./lib/url":34,dup:19}],36:[function(n,t,i){arguments[4][15][0].apply(i,arguments)},{dup:15}],37:[function(n,t,i){arguments[4][16][0].apply(i,arguments)},{dup:16}],38:[function(n,t,i){arguments[4][17][0].apply(i,arguments)},{dup:17}],39:[function(n,t){"use strict";function i(n){var r,t,i,u,f=[{min:0,max:180,chars:7},{min:181,max:620,chars:14},{min:621,max:960,chars:22}];for(u=f.length,n=n||window.innerWidth,t=0;u>t;t++)i=f[t],n>=i.min&&n<=i.max&&(r=i.chars);return r||60}function r(n,t){var i,r;return-1===n.indexOf("@")?n:(n=n.split("@"),i=n[0],r=n[1],i.length>t&&(i=i.slice(0,t)+"..."),r.length>t&&(r="..."+r.slice(-t)),i+"@"+r)}t.exports={truncateEmail:r,getMaxCharLength:i}},{}],40:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],41:[function(n,t){var f=n("./lib/dom"),i=n("./lib/url"),r=n("./lib/fn"),u=n("./lib/events"),e=n("./lib/string");t.exports={string:e,normalizeElement:f.normalizeElement,isBrowserHttps:i.isBrowserHttps,makeQueryString:i.makeQueryString,decodeQueryString:i.decodeQueryString,getParams:i.getParams,removeEventListener:u.removeEventListener,addEventListener:u.addEventListener,bind:r.bind,isFunction:r.isFunction}},{"./lib/dom":36,"./lib/events":37,"./lib/fn":38,"./lib/string":39,"./lib/url":40}],42:[function(n,t,i){arguments[4][2][0].apply(i,arguments)},{"./coinbase-account":43,"./credit-card":44,"./jsonp-driver":45,"./normalize-api-fields":47,"./parse-client-token":48,"./root-data":50,"./sepa-bank-account":51,"./sepa-mandate":52,"./util":53,"braintree-3ds":62,"braintree-utilities":81,dup:2}],43:[function(n,t,i){arguments[4][3][0].apply(i,arguments)},{dup:3}],44:[function(n,t,i){arguments[4][4][0].apply(i,arguments)},{dup:4}],45:[function(n,t,i){arguments[4][5][0].apply(i,arguments)},{"./jsonp":46,dup:5}],46:[function(n,t,i){arguments[4][6][0].apply(i,arguments)},{"./util":53,dup:6}],47:[function(n,t,i){arguments[4][7][0].apply(i,arguments)},{dup:7}],48:[function(n,t,i){arguments[4][8][0].apply(i,arguments)},{"./polyfill":49,dup:8}],49:[function(n,t,i){arguments[4][9][0].apply(i,arguments)},{dup:9}],50:[function(n,t,i){arguments[4][10][0].apply(i,arguments)},{"braintree-rpc":70,dup:10}],51:[function(n,t,i){arguments[4][11][0].apply(i,arguments)},{dup:11}],52:[function(n,t,i){arguments[4][12][0].apply(i,arguments)},{dup:12}],53:[function(n,t,i){arguments[4][13][0].apply(i,arguments)},{dup:13}],54:[function(n,t,i){arguments[4][14][0].apply(i,arguments)},{"./lib/client":42,"./lib/jsonp":46,"./lib/jsonp-driver":45,"./lib/parse-client-token":48,"./lib/util":53,dup:14}],55:[function(n,t,i){arguments[4][15][0].apply(i,arguments)},{dup:15}],56:[function(n,t,i){arguments[4][16][0].apply(i,arguments)},{dup:16}],57:[function(n,t,i){arguments[4][17][0].apply(i,arguments)},{dup:17}],58:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],59:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":55,"./lib/events":56,"./lib/fn":57,"./lib/url":58,dup:19}],60:[function(n,t,i){arguments[4][20][0].apply(i,arguments)},{"../shared/receiver":64,"braintree-utilities":59,dup:20}],61:[function(n,t,i){arguments[4][21][0].apply(i,arguments)},{"./authorization_service":60,"braintree-utilities":59,dup:21}],62:[function(n,t,i){arguments[4][22][0].apply(i,arguments)},{"./client":61,"./vendor/json2":63,dup:22}],63:[function(n,t,i){arguments[4][23][0].apply(i,arguments)},{dup:23}],64:[function(n,t,i){arguments[4][24][0].apply(i,arguments)},{"braintree-utilities":59,dup:24}],65:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":75,dup:25}],66:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":75,dup:26}],67:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],68:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":75,dup:28}],69:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":75,dup:29}],70:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":65,"./lib/pubsub-client":66,"./lib/pubsub-server":67,"./lib/rpc-client":68,"./lib/rpc-server":69,dup:30}],71:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],72:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],73:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],74:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],75:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":71,"./lib/events":72,"./lib/fn":73,"./lib/url":74,dup:19}],76:[function(n,t,i){arguments[4][15][0].apply(i,arguments)},{dup:15}],77:[function(n,t,i){arguments[4][16][0].apply(i,arguments)},{dup:16}],78:[function(n,t,i){arguments[4][17][0].apply(i,arguments)},{dup:17}],79:[function(n,t,i){arguments[4][39][0].apply(i,arguments)},{dup:39}],80:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],81:[function(n,t,i){arguments[4][41][0].apply(i,arguments)},{"./lib/dom":76,"./lib/events":77,"./lib/fn":78,"./lib/string":79,"./lib/url":80,dup:41}],82:[function(n,t){(function(i){"use strict";function s(n,t){return n.status>=400?[n,null]:[null,t(n)]}function r(n){var t;this.attrs={};n.hasOwnProperty("sharedCustomerIdentifier")&&(this.attrs.sharedCustomerIdentifier=n.sharedCustomerIdentifier);t=c(n.clientToken);this.driver=n.driver||l;this.authUrl=t.authUrl;this.analyticsUrl=t.analytics?t.analytics.url:void 0;this.clientApiUrl=t.clientApiUrl;this.customerId=n.customerId;this.challenges=t.challenges;this.integration=n.integration||"";this.attrs.authorizationFingerprint=t.authorizationFingerprint;this.attrs.sharedCustomerIdentifierType=n.sharedCustomerIdentifierType;this.timeoutWatchers=[];this.requestTimeout=n.hasOwnProperty("timeout")?n.timeout:6e4}function h(){}function f(n,t){var i,r={};for(i in n)n.hasOwnProperty(i)&&(r[i]=n[i]);for(i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var c=n("./parse-client-token"),l=n("./jsonp-driver"),u=n("./util"),o=n("./sepa-mandate"),a=n("./sepa-bank-account"),e=n("./credit-card"),v=n("./root-data");r.prototype.requestWithTimeout=function(n,t,i,r,u){u=u||h;var e,o,f=this;v.get(function(h){o="braintree/web/"+h.sdkVersion;t.braintreeLibraryVersion=o;t.hasOwnProperty("analytics")&&t.hasOwnProperty("_meta")&&(t._meta.sdkVersion=o,t._meta.merchantAppId=h.merchantAppId);e=r(n,t,function(n,t){if(f.timeoutWatchers[t]){clearTimeout(f.timeoutWatchers[t]);var r=s(n,function(n){return i(n)});u.apply(null,r)}});f.requestTimeout>0?this.timeoutWatchers[e]=setTimeout(function(){f.timeoutWatchers[e]=null;u.apply(null,[{errors:"Unknown error"},null])},f.requestTimeout):u.apply(null,[{errors:"Unknown error"},null])},this)};r.prototype.post=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.post,r)};r.prototype.get=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.get,r)};r.prototype.put=function(n,t,i,r){this.requestWithTimeout(n,t,i,this.driver.put,r)};r.prototype.getCreditCards=function(n){this.get(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods"]),this.attrs,function(n){var t=0,r=n.paymentMethods.length,i=[];for(t;r>t;t++)i.push(new e(n.paymentMethods[t]));return i},n)};r.prototype.tokenizeCard=function(n,t){n.options={validate:!1};this.addCreditCard(n,function(n,i){i&&i.nonce?t(n,i.nonce):t("Unable to tokenize card.",null)})};r.prototype.addSEPAMandate=function(n,t){var i=f(this.attrs,{sepaMandate:n});this.post(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates.json"]),i,function(n){return new o(n.sepaMandates[0])},t)};r.prototype.acceptSEPAMandate=function(n,t){this.put(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates",n,"accept"]),this.attrs,function(n){return new a(n.sepaBankAccounts[0])},t)};r.prototype.getSEPAMandate=function(n,t){var i;i=n.paymentMethodToken?f(this.attrs,{paymentMethodToken:n.paymentMethodToken}):this.attrs;this.get(u.joinUrlFragments([this.clientApiUrl,"v1","sepa_mandates",n.mandateReferenceNumber||""]),i,function(n){return new o(n.sepaMandates[0])},t)};r.prototype.addCreditCard=function(n,t){var i,r=n.share;delete n.share;i=f(this.attrs,{share:r,creditCard:n,_meta:{integration:this.integration||"custom",source:"form"}});this.post(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods/credit_cards"]),i,function(n){return new e(n.creditCards[0])},t)};r.prototype.unlockCreditCard=function(n,t,i){var r=f(this.attrs,{challengeResponses:t});this.put(u.joinUrlFragments([this.clientApiUrl,"v1","payment_methods/",n.nonce]),r,function(n){return new e(n.paymentMethods[0])},i)};r.prototype.sendAnalyticsEvents=function(n,t){var e,o=this.analyticsUrl,s=[],r;if(n=u.isArray(n)?n:[n],!o)return void(t&&t.apply(null,[null,{}]));for(r in n)n.hasOwnProperty(r)&&s.push({kind:n[r]});e=f(this.attrs,{analytics:s,_meta:{platform:"web",platformVersion:i.navigator.userAgent,integrationType:this.integration}});this.post(o,e,function(n){return n},t)};t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./credit-card":83,"./jsonp-driver":84,"./parse-client-token":86,"./root-data":88,"./sepa-bank-account":89,"./sepa-mandate":90,"./util":91}],83:[function(n,t,i){arguments[4][4][0].apply(i,arguments)},{dup:4}],84:[function(n,t,i){arguments[4][5][0].apply(i,arguments)},{"./jsonp":85,dup:5}],85:[function(n,t){(function(i){function o(n,t){var i=document.createElement("script"),f=!1,r;i.src=n;i.async=!0;r=t||e.error;"function"==typeof r&&(i.onerror=function(t){r({url:n,event:t})});i.onload=i.onreadystatechange=function(){f||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(f=!0,i.onload=i.onreadystatechange=null,i&&i.parentNode&&i.parentNode.removeChild(i))};u||(u=document.getElementsByTagName("head")[0]);u.appendChild(i)}function r(n,t){var f,u,e=[],i;for(i in n)n.hasOwnProperty(i)&&(u=n[i],f=t?c.isArray(n)?t+"[]":t+"["+i+"]":i,e.push("object"==typeof u?r(u,f):encodeURIComponent(f)+"="+encodeURIComponent(u)));return e.join("&")}function s(n,t,i,u){var h=-1===(n||"").indexOf("?")?"?":"&",s;return u=u||e.callbackName||"callback",s=u+"_json"+ ++l,h+=r(t),f[s]=function(n){i(n,s);try{delete f[s]}catch(t){}f[s]=null},o(n+h+"&"+u+"="+s),s}function h(n){e=n}var u,c=n("./util"),l=0,f=i,e={};t.exports={get:s,init:h,stringify:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util":91}],86:[function(n,t,i){arguments[4][8][0].apply(i,arguments)},{"./polyfill":87,dup:8}],87:[function(){(function(n){"use strict";n.atob=n.atob||function(n){var s=new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="",t;if(!s.test(n))throw new Error("Braintree API Client Misconfigured: clientToken is invalid.");t=0;do{var h=i.indexOf(n.charAt(t++)),u=i.indexOf(n.charAt(t++)),f=i.indexOf(n.charAt(t++)),c=i.indexOf(n.charAt(t++)),l=(63&h)<<2|u>>4&3,e=(15&u)<<4|f>>2&15,o=(3&f)<<6|63&c;r+=String.fromCharCode(l)+(e?String.fromCharCode(e):"")+(o?String.fromCharCode(o):"")}while(t<n.length);return r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],88:[function(n,t){(function(i){"use strict";function e(){var n=i.braintree;if(n&&n.hasOwnProperty("VERSION"))return n.VERSION}function o(n){function t(t){r||(r=!0,n(t))}c.invoke("getExternalData",[],t);setTimeout(function(){r||t()},250)}function s(n,t){r?n.call(t,u):o(function(i){for(var r in i)i.hasOwnProperty(r)&&(u[r]=i[r]||u[r]);n.call(t,u)})}var f=n("braintree-rpc"),h=new f.MessageBus(window),c=new f.RPCClient(h,window.parent),r=!1,u={sdkVersion:e(),merchantAppId:i.location.href};t.exports={get:s}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"braintree-rpc":98}],89:[function(n,t,i){arguments[4][11][0].apply(i,arguments)},{dup:11}],90:[function(n,t,i){arguments[4][12][0].apply(i,arguments)},{dup:12}],91:[function(n,t){"use strict";function i(n){for(var t,r=[],i=0;i<n.length;i++)t=n[i],"/"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),"/"===t.charAt(0)&&(t=t.substring(1)),r.push(t);return r.join("/")}function r(n){return n&&"object"==typeof n&&"number"==typeof n.length&&"[object Array]"===Object.prototype.toString.call(n)||!1}t.exports={joinUrlFragments:i,isArray:r}},{}],92:[function(n,t,i){arguments[4][14][0].apply(i,arguments)},{"./lib/client":82,"./lib/jsonp":85,"./lib/jsonp-driver":84,"./lib/parse-client-token":86,"./lib/util":91,dup:14}],93:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":103,dup:25}],94:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":103,dup:26}],95:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],96:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":103,dup:28}],97:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":103,dup:29}],98:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":93,"./lib/pubsub-client":94,"./lib/pubsub-server":95,"./lib/rpc-client":96,"./lib/rpc-server":97,dup:30}],99:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],100:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],101:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],102:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],103:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":99,"./lib/events":100,"./lib/fn":101,"./lib/url":102,dup:19}],104:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":114,dup:25}],105:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":114,dup:26}],106:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],107:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":114,dup:28}],108:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":114,dup:29}],109:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":104,"./lib/pubsub-client":105,"./lib/pubsub-server":106,"./lib/rpc-client":107,"./lib/rpc-server":108,dup:30}],110:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],111:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],112:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],113:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],114:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":110,"./lib/events":111,"./lib/fn":112,"./lib/url":113,dup:19}],115:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],116:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],117:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],118:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],119:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":115,"./lib/events":116,"./lib/fn":117,"./lib/url":118,dup:19}],120:[function(n,t){function e(n){var t=window.getComputedStyle?getComputedStyle(n):n.currentStyle;return{overflow:t.overflow||"",height:n.style.height||""}}function s(){return{html:{node:document.documentElement,styles:e(document.documentElement)},body:{node:document.body,styles:e(document.body)}}}function i(n,t){if(!n)throw new Error('Parameter "clientToken" cannot be null');t=t||{};this._clientToken=h.parseClientToken(n);this._clientOptions=t;this.container=t.container;this.merchantPageDefaultStyles=null;this.paymentMethodNonceInputField=t.paymentMethodNonceInputField;this.frame=null;this.popup=null;this.insertFrameFunction=t.insertFrame;this.onSuccess=t.onSuccess;this.onCancelled=t.onCancelled;this.onUnsupported=t.onUnsupported;this.loggedInView=null;this.loggedOutView=null;this.insertUI=!0}var h=n("braintree-api"),o=n("braintree-rpc"),r=n("braintree-utilities"),c=n("./logged-in-view"),l=n("./logged-out-view"),f=n("../shared/util/browser"),a=n("../shared/util/dom"),u=n("../shared/constants");n("../shared/util/util");i.prototype.getViewerUrl=function(){var n=this._clientToken.paypal.assetsUrl;return n+"/pwpp/"+u.VERSION+"/html/braintree-frame.html"};i.prototype.initialize=function(){return this._clientToken.paypalEnabled?this._isBrowserSecure()?(this._overrideClientTokenProperties(),this._setupDomElements(),this._setupPaymentMethodNonceInputField(),this._setupViews(),void this._createRpcServer()):void("function"==typeof this.onUnsupported&&this.onUnsupported(new Error("unsupported protocol detected"))):void("function"==typeof this.onUnsupported&&this.onUnsupported(new Error("PayPal is not enabled")))};i.prototype._isBrowserSecure=function(){return r.isBrowserHttps()||this._clientToken.paypal.allowHttp};i.prototype._overrideClientTokenProperties=function(){this._clientOptions.displayName&&(this._clientToken.paypal.displayName=this._clientOptions.displayName)};i.prototype._setupDomElements=function(){this.insertUI&&(this.container=r.normalizeElement(this.container))};i.prototype._setupPaymentMethodNonceInputField=function(){if(this.insertUI){var n=this.paymentMethodNonceInputField;r.isFunction(n)||(n=void 0!==n?r.normalizeElement(n):this._createPaymentMethodNonceInputField(),this.paymentMethodNonceInputField=n)}};i.prototype._setupViews=function(){var n=this._clientToken.paypal.assetsUrl;this.insertUI&&(this.loggedInView=new c({container:this.container,assetsUrl:n}),this.loggedOutView=new l({assetsUrl:n,container:this.container}),r.addEventListener(this.loggedOutView.buttonNode,"click",r.bind(this._handleButtonClick,this)),r.addEventListener(this.loggedInView.logoutNode,"click",r.bind(this._handleLogout,this)))};i.prototype._createRpcServer=function(){var t=new o.MessageBus(window),n=new o.RPCServer(t,window);n.define("getClientToken",r.bind(this._handleGetClientToken,this));n.define("getClientOptions",r.bind(this._handleGetClientOptions,this));n.define("closePayPalModal",r.bind(this._handleCloseMessage,this));n.define("receivePayPalData",r.bind(this._handleSuccessfulAuthentication,this))};i.prototype._createPaymentMethodNonceInputField=function(){var n=document.createElement("input");return n.name="payment_method_nonce",n.type="hidden",this.container.appendChild(n)};i.prototype._createFrame=function(){var n=document.createElement("iframe");return n.src=this.getViewerUrl(),n.id=u.FRAME_NAME,n.name=u.FRAME_NAME,n.allowTransparency=!0,n.height="100%",n.width="100%",n.frameBorder=0,n.style.position=f.isMobile()?"absolute":"fixed",n.style.top=0,n.style.left=0,n.style.bottom=0,n.style.zIndex=20001,n.style.padding=0,n.style.margin=0,n.style.border=0,n.style.outline="none",n};i.prototype._removeFrame=function(n){n=n||document.body;this.frame&&n.contains(this.frame)&&(n.removeChild(this.frame),this._unlockMerchantWindowSize())};i.prototype._insertFrame=function(){this.insertFrameFunction?this.insertFrameFunction(this.getViewerUrl()):(this.frame=this._createFrame(),document.body.appendChild(this.frame));this._lockMerchantWindowSize()};i.prototype._handleButtonClick=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;this._open()};i.prototype._setMerchantPageDefaultStyles=function(){this.merchantPageDefaultStyles=s()};i.prototype._open=function(){f.isPopupSupported()?this._openPopup():this._openModal()};i.prototype._close=function(){f.isPopupSupported()?this._closePopup():this._closeModal()};i.prototype._openModal=function(){this._removeFrame();this._insertFrame()};i.prototype._openPopup=function(){var n=u.POPUP_NAME,t=u.POPUP_OPTIONS;return this.popup=window.open(this.getViewerUrl(),n,t),this.popup.focus(),this.popup};i.prototype._closeModal=function(){this._removeFrame()};i.prototype._closePopup=function(){this.popup&&(this.popup.close(),this.popup=null)};i.prototype._handleGetClientToken=function(n){var t={analyticsUrl:this._clientToken.analytics?this._clientToken.analytics.url:void 0,authorizationFingerprint:this._clientToken.authorizationFingerprint,authUrl:this._clientToken.authUrl,clientApiUrl:this._clientToken.clientApiUrl,displayName:this._clientToken.paypal.displayName,paypalBaseUrl:this._clientToken.paypal.assetsUrl,paypalClientId:this._clientToken.paypal.clientId,paypalPrivacyUrl:this._clientToken.paypal.privacyUrl,paypalUserAgreementUrl:this._clientToken.paypal.userAgreementUrl,offline:this._clientToken.paypal.environmentNoNetwork};n(t)};i.prototype._handleGetClientOptions=function(n){var t={demo:this._clientOptions.demo||!1,locale:this._clientOptions.locale||"en_us",onetime:this._clientOptions.singleUse||!1,integration:this._clientOptions.integration||"paypal",enableShippingAddress:this._clientOptions.enableShippingAddress||!1};n(t)};i.prototype._handleSuccessfulAuthentication=function(n){this._close();r.isFunction(this.paymentMethodNonceInputField)?this.paymentMethodNonceInputField(n.nonce):(this._showLoggedInContent(n.email),this._setNonceInputValue(n.nonce));r.isFunction(this.onSuccess)&&this.onSuccess(n)};i.prototype._lockMerchantWindowSize=function(){this._setMerchantPageDefaultStyles();document.documentElement.style.height="100%";document.documentElement.style.overflow="hidden";document.body.style.height="100%";document.body.style.overflow="hidden"};i.prototype._unlockMerchantWindowSize=function(){this.merchantPageDefaultStyles&&(document.documentElement.style.height=this.merchantPageDefaultStyles.html.styles.height,document.documentElement.style.overflow=this.merchantPageDefaultStyles.html.styles.overflow,document.body.style.height=this.merchantPageDefaultStyles.body.styles.height,document.body.style.overflow=this.merchantPageDefaultStyles.body.styles.overflow)};i.prototype._handleCloseMessage=function(){this._removeFrame()};i.prototype._showLoggedInContent=function(n){this.loggedOutView.hide();a.setTextContent(this.loggedInView.emailNode,n);this.loggedInView.show()};i.prototype._handleLogout=function(n){n.preventDefault?n.preventDefault():n.returnValue=!1;this.loggedInView.hide();this.loggedOutView.show();this._setNonceInputValue("");r.isFunction(this.onCancelled)&&this.onCancelled()};i.prototype._setNonceInputValue=function(n){this.paymentMethodNonceInputField.value=n};t.exports=i},{"../shared/constants":123,"../shared/util/browser":128,"../shared/util/dom":129,"../shared/util/util":130,"./logged-in-view":121,"./logged-out-view":122,"braintree-api":92,"braintree-rpc":109,"braintree-utilities":119}],121:[function(n,t){function i(n){this.options=n;this.container=this.createViewContainer();this.createPayPalName();this.emailNode=this.createEmailNode();this.logoutNode=this.createLogoutNode()}var r=n("../shared/constants");i.prototype.createViewContainer=function(){var n=document.createElement("div"),t;return n.id="braintree-paypal-loggedin",t=["display: none","max-width: 500px","overflow: hidden","padding: 16px","background-image: url("+this.options.assetsUrl+"/pwpp/"+r.VERSION+"/images/paypal-small.png)","background-image: url("+this.options.assetsUrl+"/pwpp/"+r.VERSION+"/images/paypal-small.svg), none","background-position: 20px 50%","background-repeat: no-repeat","background-size: 13px 15px","border-top: 1px solid #d1d4d6","border-bottom: 1px solid #d1d4d6"].join(";"),n.style.cssText=t,this.options.container.appendChild(n),n};i.prototype.createPayPalName=function(){var n=document.createElement("span"),t;return n.id="bt-pp-name",n.innerHTML="PayPal",t='color: #283036;font-size: 13px;font-weight: 800;font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;margin-left: 36px;-webkit-font-smoothing: antialiased;-moz-font-smoothing: antialiased;-ms-font-smoothing: antialiased;font-smoothing: antialiased',n.style.cssText=t,this.container.appendChild(n)};i.prototype.createEmailNode=function(){var n=document.createElement("span"),t;return n.id="bt-pp-email",t='color: #6e787f;font-size: 13px;font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;margin-left: 5px;-webkit-font-smoothing: antialiased;-moz-font-smoothing: antialiased;-ms-font-smoothing: antialiased;font-smoothing: antialiased',n.style.cssText=t,this.container.appendChild(n)};i.prototype.createLogoutNode=function(){var n=document.createElement("button"),t;return n.id="bt-pp-cancel",n.innerHTML="Cancel",t='color: #3d95ce;font-size: 11px;font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;line-height: 20px;margin: 0 0 0 25px;padding: 0;background-color: transparent;border: 0;cursor: pointer;text-decoration: underline;float: right;-webkit-font-smoothing: antialiased;-moz-font-smoothing: antialiased;-ms-font-smoothing: antialiased;font-smoothing: antialiased',n.style.cssText=t,this.container.appendChild(n)};i.prototype.show=function(){this.container.style.display="block"};i.prototype.hide=function(){this.container.style.display="none"};t.exports=i},{"../shared/constants":123}],122:[function(n,t){function i(n){this.options=n;this.assetsUrl=this.options.assetsUrl;this.container=this.createViewContainer();this.buttonNode=this.createPayWithPayPalButton()}var r=n("../shared/constants");i.prototype.createViewContainer=function(){var n=document.createElement("div");return n.id="braintree-paypal-loggedout",this.options.container.appendChild(n),n};i.prototype.createPayWithPayPalButton=function(){var n=document.createElement("a"),i,t,u;return n.id="braintree-paypal-button",n.href="#",i="display: block;width: 115px;height: 44px;overflow: hidden",n.style.cssText=i,t=new Image,t.src=this.assetsUrl+"/pwpp/"+r.VERSION+"/images/pay-with-paypal.png",t.setAttribute("alt","Pay with PayPal"),u="max-width: 100%;display: block;width: 100%;height: 100%;outline: none;border: 0",t.style.cssText=u,n.appendChild(t),this.container.appendChild(n)};i.prototype.show=function(){this.container.style.display="block"};i.prototype.hide=function(){this.container.style.display="none"};t.exports=i},{"../shared/constants":123}],123:[function(n,t,i){var r="1.2.1";i.VERSION=r;i.POPUP_NAME="braintree_paypal_popup";i.FRAME_NAME="braintree-paypal-frame";i.POPUP_PATH="/pwpp/"+r+"/html/braintree-frame.html";i.POPUP_OPTIONS="height=470,width=410,resizable,scrollbars"},{}],124:[function(n,t){function u(){return i.matchUserAgent("Android")&&!r()}function r(){return i.matchUserAgent("Chrome")||i.matchUserAgent("CriOS")}function e(){return i.matchUserAgent("Firefox")}function o(){return i.matchUserAgent("Trident")||i.matchUserAgent("MSIE")}function f(){return i.matchUserAgent("Opera")||i.matchUserAgent("OPR")}function s(){return f()&&"[object OperaMini]"===c.call(window.operamini)}function h(){return i.matchUserAgent("Safari")&&!r()&&!u()}var i=n("./useragent"),c=Object.prototype.toString;t.exports={isAndroid:u,isChrome:r,isFirefox:e,isIE:o,isOpera:f,isOperaMini:s,isSafari:h}},{"./useragent":127}],125:[function(n,t){function u(){return!r()&&(i.isAndroid()||i.isIpod()||i.isIphone()||f.matchUserAgent("IEMobile"))}function r(){return i.isIpad()||i.isAndroid()&&!f.matchUserAgent("Mobile")}function e(){return!u()&&!r()}var f=n("./useragent"),i=n("./platform");t.exports={isMobile:u,isTablet:r,isDesktop:e}},{"./platform":126,"./useragent":127}],126:[function(n,t){function e(){return i.matchUserAgent("Android")}function u(){return i.matchUserAgent("iPad")}function r(){return i.matchUserAgent("iPod")}function f(){return i.matchUserAgent("iPhone")&&!r()}function o(){return u()||r()||f()}var i=n("./useragent");t.exports={isAndroid:e,isIpad:u,isIpod:r,isIphone:f,isIos:o}},{"./useragent":127}],127:[function(n,t,i){function r(){return f}function u(n){var t=i.getNativeUserAgent(),r=t.match(n);return r?!0:!1}var f=window.navigator.userAgent;i.getNativeUserAgent=r;i.matchUserAgent=u},{}],128:[function(n,t){function e(){return r()&&window.outerWidth<600}function r(){return a.test(l)}function o(){return!!window.postMessage}function s(){return i.isOpera()||i.isOperaMini()||u.isIos()&&i.isSafari()&&f.matchUserAgent(/Version\/8/i)?!1:u.isIos()&&i.isSafari()?!0:c.isDesktop()&&(i.isChrome()||i.isFirefox()||i.isSafari()||f.matchUserAgent(/MSIE 10\.0/)&&!h())?!0:!1}function h(){var n=null,t="";try{new ActiveXObject("")}catch(i){t=i.name}try{n=!!new ActiveXObject("htmlfile")}catch(i){n=!1}return n="ReferenceError"!==t&&n===!1?!1:!0,!n}var i=n("../useragent/browser"),c=n("../useragent/device"),u=n("../useragent/platform"),f=n("../useragent/useragent"),l=window.navigator.userAgent,a=/[Mm]obi|tablet|iOS|Android|IEMobile|Windows\sPhone/;t.exports={isMobile:e,isMobileDevice:r,detectedPostMessage:o,isPopupSupported:s}},{"../useragent/browser":124,"../useragent/device":125,"../useragent/platform":126,"../useragent/useragent":127}],129:[function(n,t){function i(n,t){var i="innerText";document&&document.body&&"textContent"in document.body&&(i="textContent");n[i]=t}t.exports={setTextContent:i}},{}],130:[function(n,t){function i(){for(var i,n="",t=0;32>t;t++)i=Math.floor(16*Math.random()),n+=i.toString(16);return n}function r(n){return/^(true|1)$/i.test(n)}function u(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&apos;")}var f="function"==typeof String.prototype.trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/,"")},e="function"==typeof window.btoa?function(n){return window.btoa(n)}:function(n){for(var e,t,i,h,c,o,r,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",f=0;f<n.length;)e=n.charCodeAt(f++),t=n.charCodeAt(f++),i=n.charCodeAt(f++),h=e>>2,c=(3&e)<<4|t>>4,o=(15&t)<<2|i>>6,r=63&i,isNaN(t)?o=r=64:isNaN(i)&&(r=64),s=s+u.charAt(h)+u.charAt(c)+u.charAt(o)+u.charAt(r);return s};t.exports={trim:f,btoa:e,generateUid:i,castToBoolean:r,htmlEscape:u}},{}],131:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":141,dup:25}],132:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":141,dup:26}],133:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],134:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":141,dup:28}],135:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":141,dup:29}],136:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":131,"./lib/pubsub-client":132,"./lib/pubsub-server":133,"./lib/rpc-client":134,"./lib/rpc-server":135,dup:30}],137:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],138:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],139:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],140:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],141:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":137,"./lib/events":138,"./lib/fn":139,"./lib/url":140,dup:19}],142:[function(n,t,i){arguments[4][15][0].apply(i,arguments)},{dup:15}],143:[function(n,t,i){arguments[4][16][0].apply(i,arguments)},{dup:16}],144:[function(n,t,i){arguments[4][17][0].apply(i,arguments)},{dup:17}],145:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],146:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":142,"./lib/events":143,"./lib/fn":144,"./lib/url":145,dup:19}],147:[function(n,t){"use strict";function i(n){this.apiClient=n}var r=["getCreditCards","unlockCreditCard","sendAnalyticsEvents"];i.prototype.attach=function(n){function u(t){n.define(t,function(){i.apiClient[t].apply(i.apiClient,arguments)})}var i=this,t=0,f=r.length;for(t;f>t;t++)u(r[t])};t.exports=i},{}],148:[function(n,t){"use strict";function o(n,t){var i=window.getComputedStyle?getComputedStyle(n):n.currentStyle;return i[t]}function l(){return{html:{height:r.style.height||"",overflow:o(r,"overflow"),position:o(r,"position")},body:{height:u.style.height||"",overflow:o(u,"overflow")}}}function s(){return/Android|iPhone|iPod|iPad/i.test(window.navigator.userAgent)}function i(n){var t,i,o;this.encodedClientToken=n.clientToken;this.paypalOptions=n.paypal;this.container=null;this.merchantFormManager=null;this.root=n.root;this.configurationRequests=[];this.braintreeApiClient=h.configure({clientToken:n.clientToken,integration:"dropin"});this.paymentMethodNonceReceivedCallback=n.paymentMethodNonceReceived;this.clientToken=h.parseClientToken(n.clientToken);this.bus=new e.MessageBus(this.root);this.rpcServer=new e.RPCServer(this.bus);this.apiProxyServer=new a(this.braintreeApiClient);this.apiProxyServer.attach(this.rpcServer);t=n.inlineFramePath||this.clientToken.assetsUrl+"/dropin/"+c+"/inline-frame.html";i=n.modalFramePath||this.clientToken.assetsUrl+"/dropin/"+c+"/modal-frame.html";r=document.documentElement;u=document.body;this.frames={inline:this._createFrame(t,"braintree-dropin-frame"),modal:this._createFrame(i,"braintree-dropin-modal-frame")};this.container=f.normalizeElement(n.container,"Unable to find valid container.");o=f.normalizeElement(n.form||this._findClosest(this.container,"form"));this.merchantFormManager=new v({form:o,frames:this.frames,onSubmit:this.paymentMethodNonceReceivedCallback,apiClient:this.braintreeApiClient}).initialize();this.clientToken.paypalEnabled&&this.clientToken.paypal&&(f.isBrowserHttps()||this.clientToken.paypal.allowHttp)&&this._configurePayPal();this.braintreeApiClient.sendAnalyticsEvents("dropin.web.initialized")}var r,u,h=n("braintree-api"),e=n("braintree-rpc"),f=n("braintree-utilities"),a=n("./api-proxy-server"),v=n("./merchant-form-manager"),y=n("./frame-container"),p=n("../shared/paypal-service"),w=n("braintree-paypal/src/shared/util/browser"),c="1.1.12";i.prototype.initialize=function(){var n=this;this._initializeModal();this.container.appendChild(this.frames.inline.element);u.appendChild(this.frames.modal.element);this.rpcServer.define("receiveSharedCustomerIdentifier",function(t){n.braintreeApiClient.attrs.sharedCustomerIdentifier=t;n.braintreeApiClient.attrs.sharedCustomerIdentifierType="browser_session_cookie_store";for(var i=0;i<n.configurationRequests.length;i++)n.configurationRequests[i](n.encodedClientToken);n.configurationRequests=[]});this.rpcServer.define("getConfiguration",function(t){t({clientToken:n.encodedClientToken,merchantHttps:f.isBrowserHttps()})});this.rpcServer.define("getPayPalOptions",function(t){t(n.paypalOptions)});this.rpcServer.define("selectPaymentMethod",function(t){n.frames.modal.rpcClient.invoke("selectPaymentMethod",[t]);n._showModal()});this.rpcServer.define("sendAddedPaymentMethod",function(t){n.merchantFormManager.setNoncePayload({nonce:t.nonce});n.frames.inline.rpcClient.invoke("receiveNewPaymentMethod",[t])});this.rpcServer.define("sendUsedPaymentMethod",function(t){n.frames.inline.rpcClient.invoke("selectPaymentMethod",[t])});this.rpcServer.define("sendUnlockedNonce",function(t){n.merchantFormManager.setNoncePayload({nonce:t})});this.rpcServer.define("clearNonce",function(){n.merchantFormManager.clearNoncePayload()});this.rpcServer.define("closeDropInModal",function(){n._hideModal()});this.rpcServer.define("setInlineFrameHeight",function(t){n.frames.inline.element.style.height=t+"px"});this.bus.register("ready",function(t){t.source===n.frames.inline.element.contentWindow?n.frames.inline.rpcClient=new e.RPCClient(n.bus,t.source):t.source===n.frames.modal.element.contentWindow&&(n.frames.modal.rpcClient=new e.RPCClient(n.bus,t.source))})};i.prototype._createFrame=function(n,t){return new y(n,t)};i.prototype._initializeModal=function(){this.frames.modal.element.style.display="none";this.frames.modal.element.style.position=s()?"absolute":"fixed";this.frames.modal.element.style.top="0";this.frames.modal.element.style.left="0";this.frames.modal.element.style.height="100%";this.frames.modal.element.style.width="100%"};i.prototype._lockMerchantWindowSize=function(){setTimeout(function(){r.style.overflow="hidden";u.style.overflow="hidden";u.style.height="100%";s()&&(r.style.position="relative",r.style.height=window.innerHeight+"px")},160)};i.prototype._unlockMerchantWindowSize=function(){var n=this.merchantPageDefaultStyles;u.style.height=n.body.height;u.style.overflow=n.body.overflow;r.style.overflow=n.html.overflow;s()&&(r.style.height=n.html.height,r.style.position=n.html.position)};i.prototype._showModal=function(){var t=this,n=this.frames.modal.element;this.merchantPageDefaultStyles=l();n.style.display="block";this.frames.modal.rpcClient.invoke("open",[],function(){setTimeout(function(){t._lockMerchantWindowSize();n.contentWindow.focus()},200)})};i.prototype._hideModal=function(){this._unlockMerchantWindowSize();this.frames.modal.element.style.display="none"};i.prototype._configurePayPal=function(){w.isPopupSupported()||(this.ppClient=new p({clientToken:this.clientToken,paypal:this.paypalOptions}),this.rpcServer.define("openPayPalModal",f.bind(this.ppClient._openModal,this.ppClient)));this.rpcServer.define("receivePayPalData",f.bind(this._handlePayPalData,this))};i.prototype._handlePayPalData=function(n){this.merchantFormManager.setNoncePayload(n);this.frames.inline.rpcClient.invoke("receiveNewPaymentMethod",[n]);this.frames.modal.rpcClient.invoke("paypalViewClose")};i.prototype._findClosest=function(n,t){t=t.toUpperCase();do if(n.nodeName===t)return n;while(n=n.parentNode);throw"Unable to find a valid "+t;};t.exports=i},{"../shared/paypal-service":152,"./api-proxy-server":147,"./frame-container":150,"./merchant-form-manager":151,"braintree-api":54,"braintree-paypal/src/shared/util/browser":128,"braintree-rpc":136,"braintree-utilities":146}],149:[function(n,t){"use strict";function i(n,t){t.clientToken=n;var i=new r(t);return i.initialize(),i}var r=n("./client");t.exports={create:i,VERSION:"1.1.12"}},{"./client":148}],150:[function(n,t){"use strict";function i(n,t){this.element=document.createElement("iframe");this.element.setAttribute("name",t);this.element.setAttribute("allowtransparency","true");this.element.setAttribute("width","100%");this.element.setAttribute("height","68");this.element.setAttribute("style","-webkit-transition: height 210ms cubic-bezier(0.390, 0.575, 0.565, 1.000); -moz-transition: height 210ms cubic-bezier(0.390, 0.575, 0.565, 1.000); -ms-transition: height 210ms cubic-bezier(0.390, 0.575, 0.565, 1.000); -o-transition: height 210ms cubic-bezier(0.390, 0.575, 0.565, 1.000); transition: height 210ms cubic-bezier(0.390, 0.575, 0.565, 1.000);");this.element.src=n;this.element.setAttribute("frameborder","0");this.element.setAttribute("allowtransparency","true");this.element.style.border="0";this.element.style.zIndex="9999"}t.exports=i},{}],151:[function(n,t){"use strict";function i(n){this.form=n.form;this.frames=n.frames;this.onSubmit=n.onSubmit;this.apiClient=n.apiClient}var r=n("braintree-utilities");i.prototype.initialize=function(){return this._isSubmitBased()&&this._setElements(),this._setEvents(),this};i.prototype.setNoncePayload=function(n){this.noncePayload=n};i.prototype.clearNoncePayload=function(){this.noncePayload=null};i.prototype._isSubmitBased=function(){return!this.onSubmit};i.prototype._isCallbackBased=function(){return!!this.onSubmit};i.prototype._setElements=function(){if(!this.form.payment_method_nonce){var n=document.createElement("input");n.type="hidden";n.name="payment_method_nonce";this.form.appendChild(n)}this.nonceField=this.form.payment_method_nonce};i.prototype._setEvents=function(){var n=this;r.addEventListener(this.form,"submit",function(){n._handleFormSubmit.apply(n,arguments)})};i.prototype._handleFormSubmit=function(n){this._shouldSubmit()||(n&&n.preventDefault?n.preventDefault():n.returnValue=!1,this.noncePayload&&this.noncePayload.nonce?this._handleNonceReply(n):this.frames.inline.rpcClient.invoke("requestNonce",[],r.bind(function(t){this.setNoncePayload({nonce:t});this._handleNonceReply(n)},this)))};i.prototype._shouldSubmit=function(){return this._isCallbackBased()?!1:this.nonceField.value.length>0};i.prototype._handleNonceReply=function(n){this._isCallbackBased()?this.apiClient.sendAnalyticsEvents("dropin.web.end.callback",r.bind(function(){var t=this.noncePayload;t.originalEvent=n;this.onSubmit(t);setTimeout(r.bind(function(){this.frames.inline.rpcClient.invoke("clearLoadingState")},this),200)},this)):this._triggerFormSubmission()};i.prototype._triggerFormSubmission=function(){this.nonceField.value=this.noncePayload.nonce;this.apiClient.sendAnalyticsEvents("dropin.web.end.auto-submit",r.bind(function(){"function"==typeof this.form.submit?this.form.submit():this.form.querySelector('[type="submit"]').click()},this))};t.exports=i},{"braintree-utilities":146}],152:[function(n,t){"use strict";function i(n){var u=n.clientToken,t=n.paypal||{},i=new r(u,{container:document.createElement("div"),displayName:t.displayName,locale:t.locale,singleUse:t.singleUse,onSuccess:t.onSuccess,enableShippingAddress:t.enableShippingAddress});return i.initialize(),i}var r=n("braintree-paypal/src/external/client");t.exports=i},{"braintree-paypal/src/external/client":120}],153:[function(n,t){"use strict";function r(n){var i,t;return"object"==typeof n?n:(i="payment_method_nonce","string"==typeof n&&(i=n),t=document.createElement("input"),t.name=i,t.type="hidden",t)}function u(n){for(var u,r=n.getElementsByTagName("*"),t={},i=0;i<r.length;i++)u=r[i].getAttribute("data-braintree-name"),t[u]=!0;if(!t.number)throw'Unable to find an input with data-braintree-name="number" in your form. Please add one.';if(t.expiration_date){if(t.expiration_month||t.expiration_year)throw'You have inputs with data-braintree-name="expiration_date" AND data-braintree-name="expiration_(year|month)". Please use either "expiration_date" or "expiration_year" and "expiration_month".';}else{if(!t.expiration_month&&!t.expiration_year)throw'Unable to find an input with data-braintree-name="expiration_date" in your form. Please add one.';if(!t.expiration_month)throw'Unable to find an input with data-braintree-name="expiration_month" in your form. Please add one.';if(!t.expiration_year)throw'Unable to find an input with data-braintree-name="expiration_year" in your form. Please add one.';}}function i(n,t,i){this.client=n;this.htmlForm=t;this.paymentMethodNonce=i}i.setup=function(n,t){var f=document.getElementById(t.id),e,o;if(!f)throw'Unable to find form with id: "'+t.id+'"';return u(f),e=r(t.paymentMethodNonceInputField),f.appendChild(e),o=new i(n,f,e),o.hijackForm(),o};i.prototype.registerAsyncTaskOnSubmit=function(n,t){function i(i){i.preventDefault?i.preventDefault():i.returnValue=!1;t(function(){u();n.submit&&("function"==typeof n.submit||n.submit.call)?n.submit():setTimeout(function(){n.querySelector('[type="submit"]').click()},1)})}function r(){n.addEventListener?n.addEventListener("submit",i):n.attachEvent&&n.attachEvent("onsubmit",i)}function u(){n.removeEventListener?n.removeEventListener("submit",i):n.detachEvent&&n.detachEvent("onsubmit",i)}r()};i.prototype.hijackForm=function(){var n=this;this.registerAsyncTaskOnSubmit(this.htmlForm,function(t){return n.paymentMethodNonce.value&&""!==n.paymentMethodNonce.value?void t():void n.client.tokenizeCard(n.extractValues(n.htmlForm),function(i,r){if(i)throw"Unable to process payments at this time.";n.paymentMethodNonce.value=r;t()})})};i.prototype.extractValues=function(n,t){var i,r,u,f;for(t=t||{},u=n.children,r=0;r<u.length;r++)(i=u[r],1===i.nodeType&&i.attributes["data-braintree-name"])?(f=i.getAttribute("data-braintree-name"),"postal_code"===f?t.billingAddress={postalCode:i.value}:t[f]=i.value,this.scrubAttributes(i)):i.children&&i.children.length>0&&this.extractValues(i,t);return t};i.prototype.scrubAttributes=function(n){try{n.attributes.removeNamedItem("name")}catch(t){}};t.exports=i},{}],154:[function(n,t,i){arguments[4][82][0].apply(i,arguments)},{"./credit-card":155,"./jsonp-driver":156,"./parse-client-token":158,"./root-data":160,"./sepa-bank-account":161,"./sepa-mandate":162,"./util":163,dup:82}],155:[function(n,t,i){arguments[4][4][0].apply(i,arguments)},{dup:4}],156:[function(n,t,i){arguments[4][5][0].apply(i,arguments)},{"./jsonp":157,dup:5}],157:[function(n,t,i){arguments[4][85][0].apply(i,arguments)},{"./util":163,dup:85}],158:[function(n,t,i){arguments[4][8][0].apply(i,arguments)},{"./polyfill":159,dup:8}],159:[function(n,t,i){arguments[4][87][0].apply(i,arguments)},{dup:87}],160:[function(n,t,i){arguments[4][88][0].apply(i,arguments)},{"braintree-rpc":170,dup:88}],161:[function(n,t,i){arguments[4][11][0].apply(i,arguments)},{dup:11}],162:[function(n,t,i){arguments[4][12][0].apply(i,arguments)},{dup:12}],163:[function(n,t,i){arguments[4][91][0].apply(i,arguments)},{dup:91}],164:[function(n,t,i){arguments[4][14][0].apply(i,arguments)},{"./lib/client":154,"./lib/jsonp":157,"./lib/jsonp-driver":156,"./lib/parse-client-token":158,"./lib/util":163,dup:14}],165:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":175,dup:25}],166:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":175,dup:26}],167:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],168:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":175,dup:28}],169:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":175,dup:29}],170:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":165,"./lib/pubsub-client":166,"./lib/pubsub-server":167,"./lib/rpc-client":168,"./lib/rpc-server":169,dup:30}],171:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],172:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],173:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],174:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],175:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":171,"./lib/events":172,"./lib/fn":173,"./lib/url":174,dup:19}],176:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":186,dup:25}],177:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":186,dup:26}],178:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],179:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":186,dup:28}],180:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":186,dup:29}],181:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":176,"./lib/pubsub-client":177,"./lib/pubsub-server":178,"./lib/rpc-client":179,"./lib/rpc-server":180,dup:30}],182:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],183:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],184:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],185:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],186:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":182,"./lib/events":183,"./lib/fn":184,"./lib/url":185,dup:19}],187:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],188:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],189:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],190:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],191:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":187,"./lib/events":188,"./lib/fn":189,"./lib/url":190,dup:19}],192:[function(n,t,i){arguments[4][120][0].apply(i,arguments)},{"../shared/constants":196,"../shared/util/browser":201,"../shared/util/dom":202,"../shared/util/util":203,"./logged-in-view":194,"./logged-out-view":195,"braintree-api":164,"braintree-rpc":181,"braintree-utilities":191,dup:120}],193:[function(n,t){function r(n,t){if(!i.detectedPostMessage())return void("function"==typeof t.onUnsupported&&t.onUnsupported(new Error("unsupported browser detected")));var r=new u(n,t);return r.initialize(),r}var u=n("./client"),i=n("../shared/util/browser");t.exports={create:r,_browser:i,VERSION:"1.2.1"}},{"../shared/util/browser":201,"./client":192}],194:[function(n,t,i){arguments[4][121][0].apply(i,arguments)},{"../shared/constants":196,dup:121}],195:[function(n,t,i){arguments[4][122][0].apply(i,arguments)},{"../shared/constants":196,dup:122}],196:[function(n,t,i){arguments[4][123][0].apply(i,arguments)},{dup:123}],197:[function(n,t,i){arguments[4][124][0].apply(i,arguments)},{"./useragent":200,dup:124}],198:[function(n,t,i){arguments[4][125][0].apply(i,arguments)},{"./platform":199,"./useragent":200,dup:125}],199:[function(n,t,i){arguments[4][126][0].apply(i,arguments)},{"./useragent":200,dup:126}],200:[function(n,t,i){arguments[4][127][0].apply(i,arguments)},{dup:127}],201:[function(n,t,i){arguments[4][128][0].apply(i,arguments)},{"../useragent/browser":197,"../useragent/device":198,"../useragent/platform":199,"../useragent/useragent":200,dup:128}],202:[function(n,t,i){arguments[4][129][0].apply(i,arguments)},{dup:129}],203:[function(n,t,i){arguments[4][130][0].apply(i,arguments)},{dup:130}],204:[function(n,t,i){arguments[4][25][0].apply(i,arguments)},{"braintree-utilities":214,dup:25}],205:[function(n,t,i){arguments[4][26][0].apply(i,arguments)},{"braintree-utilities":214,dup:26}],206:[function(n,t,i){arguments[4][27][0].apply(i,arguments)},{dup:27}],207:[function(n,t,i){arguments[4][28][0].apply(i,arguments)},{"braintree-utilities":214,dup:28}],208:[function(n,t,i){arguments[4][29][0].apply(i,arguments)},{"braintree-utilities":214,dup:29}],209:[function(n,t,i){arguments[4][30][0].apply(i,arguments)},{"./lib/message-bus":204,"./lib/pubsub-client":205,"./lib/pubsub-server":206,"./lib/rpc-client":207,"./lib/rpc-server":208,dup:30}],210:[function(n,t,i){arguments[4][31][0].apply(i,arguments)},{dup:31}],211:[function(n,t,i){arguments[4][32][0].apply(i,arguments)},{dup:32}],212:[function(n,t,i){arguments[4][33][0].apply(i,arguments)},{dup:33}],213:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],214:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":210,"./lib/events":211,"./lib/fn":212,"./lib/url":213,dup:19}],215:[function(n,t,i){arguments[4][15][0].apply(i,arguments)},{dup:15}],216:[function(n,t,i){arguments[4][16][0].apply(i,arguments)},{dup:16}],217:[function(n,t,i){arguments[4][17][0].apply(i,arguments)},{dup:17}],218:[function(n,t,i){arguments[4][18][0].apply(i,arguments)},{dup:18}],219:[function(n,t,i){arguments[4][19][0].apply(i,arguments)},{"./lib/dom":215,"./lib/events":216,"./lib/fn":217,"./lib/url":218,dup:19}],220:[function(n,t){function i(){this._events=this._events||{};this._maxListeners=this._maxListeners||void 0}function r(n){return"function"==typeof n}function e(n){return"number"==typeof n}function u(n){return"object"==typeof n&&null!==n}function f(n){return void 0===n}t.exports=i;i.EventEmitter=i;i.prototype._events=void 0;i.prototype._maxListeners=void 0;i.defaultMaxListeners=10;i.prototype.setMaxListeners=function(n){if(!e(n)||0>n||isNaN(n))throw TypeError("n must be a positive number");return this._maxListeners=n,this};i.prototype.emit=function(n){var s,i,e,o,t,h;if(this._events||(this._events={}),"error"===n&&(!this._events.error||u(this._events.error)&&!this._events.error.length)){if(s=arguments[1],s instanceof Error)throw s;throw TypeError('Uncaught, unspecified "error" event.');}if(i=this._events[n],f(i))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:for(e=arguments.length,o=new Array(e-1),t=1;e>t;t++)o[t-1]=arguments[t];i.apply(this,o)}else if(u(i)){for(e=arguments.length,o=new Array(e-1),t=1;e>t;t++)o[t-1]=arguments[t];for(h=i.slice(),e=h.length,t=0;e>t;t++)h[t].apply(this,o)}return!0};i.prototype.addListener=function(n,t){var e;if(!r(t))throw TypeError("listener must be a function");return(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,r(t.listener)?t.listener:t),this._events[n]?u(this._events[n])?this._events[n].push(t):this._events[n]=[this._events[n],t]:this._events[n]=t,u(this._events[n])&&!this._events[n].warned)&&(e=f(this._maxListeners)?i.defaultMaxListeners:this._maxListeners,e&&e>0&&this._events[n].length>e&&(this._events[n].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),"function"==typeof console.trace&&console.trace())),this};i.prototype.on=i.prototype.addListener;i.prototype.once=function(n,t){function i(){this.removeListener(n,i);u||(u=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var u=!1;return i.listener=t,this.on(n,i),this};i.prototype.removeListener=function(n,t){var i,e,o,f;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[n])return this;if(i=this._events[n],o=i.length,e=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[n],this._events.removeListener&&this.emit("removeListener",n,t);else if(u(i)){for(f=o;f-->0;)if(i[f]===t||i[f].listener&&i[f].listener===t){e=f;break}if(0>e)return this;1===i.length?(i.length=0,delete this._events[n]):i.splice(e,1);this._events.removeListener&&this.emit("removeListener",n,t)}return this};i.prototype.removeAllListeners=function(n){var i,t;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[n]&&delete this._events[n],this;if(0===arguments.length){for(i in this._events)"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events={},this}if(t=this._events[n],r(t))this.removeListener(n,t);else for(;t.length;)this.removeListener(n,t[t.length-1]);return delete this._events[n],this};i.prototype.listeners=function(n){return this._events&&this._events[n]?r(this._events[n])?[this._events[n]]:this._events[n].slice():[]};i.listenerCount=function(n,t){return n._events&&n._events[t]?r(n._events[t])?1:n._events[t].length:0}},{}],221:[function(n,t){"use strict";t.exports={NONCE_RECEIVED:"NONCE_RECEIVED",ROOT_CALLBACK:"onPaymentMethodReceived"}},{}],222:[function(n,t){"use strict";var i=n("events").EventEmitter;t.exports=new i},{events:220}],223:[function(n,t){"use strict";function i(n){return"paypal"in n&&o.isFunction(n.paypal.onSuccess)?n.paypal.onSuccess:null}function r(n,t){var r,o=i(t),s=new u.Client({clientToken:n,integration:"custom"});return r=f.setup(s,t),t.paypal&&(t.paypal.paymentMethodNonceInputField||(t.paypal.paymentMethodNonceInputField=r.paymentMethodNonce),o&&(t.paypal.onSuccess=function(n){o.apply(null,[n.nonce,n.email,n.shippingAddress])}),e.create(n,t.paypal)),r}var u=n("braintree-api"),f=n("braintree-form"),e=n("braintree-paypal"),o=n("braintree-utilities");t.exports={initialize:r}},{"braintree-api":14,"braintree-form":153,"braintree-paypal":193,"braintree-utilities":219}],224:[function(n,t){"use strict";function u(n){return i.isFunction(n.paymentMethodNonceReceived)?n.paymentMethodNonceReceived:null}function f(n){return i.isFunction(n[r.ROOT_CALLBACK])}function e(n,t){var i=u(t),e=f(t);return(i||e)&&(t.paymentMethodNonceReceived=function(n){i&&i.apply(null,[n.originalEvent,n.nonce]);s.emit(r.NONCE_RECEIVED,null,n)}),o.create(n,t)}var o=n("braintree-dropin"),i=n("braintree-utilities"),s=n("../event-bus"),r=n("../constants");t.exports={initialize:e}},{"../constants":221,"../event-bus":222,"braintree-dropin":149,"braintree-utilities":219}],225:[function(n,t){"use strict";t.exports={custom:n("./custom"),dropin:n("./dropin"),paypal:n("./paypal")}},{"./custom":223,"./dropin":224,"./paypal":226}],226:[function(n,t){"use strict";function u(n){return"onSuccess"in n&&i.isFunction(n.onSuccess)?n.onSuccess:"paypal"in n&&i.isFunction(n.paypal.onSuccess)?n.paypal.onSuccess:null}function f(n){return i.isFunction(n[r.ROOT_CALLBACK])}function e(n,t){var i=u(t),e=f(t);return(i||e)&&(t.onSuccess=function(n){i&&i.apply(null,[n.nonce,n.email,n.shippingAddress]);s.emit(r.NONCE_RECEIVED,null,n)}),o.create(n,t)}var o=n("braintree-paypal"),i=n("braintree-utilities"),s=n("../event-bus"),r=n("../constants");t.exports={initialize:e}},{"../constants":221,"../event-bus":222,"braintree-paypal":193,"braintree-utilities":219}],227:[function(n,t){(function(i){"use strict";var u="2.4.1",r=n("braintree-rpc"),f=new r.MessageBus(i),e=new r.RPCServer(f);t.exports=function(){e.define("getExternalData",function(n){n({sdkVersion:u,merchantAppId:i.location.href})})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"braintree-rpc":209}],228:[function(n,t){"use strict";function u(n,t,u){if(t in r)return h.isFunction(u[i.ROOT_CALLBACK])&&c.on(i.NONCE_RECEIVED,function(){u[i.ROOT_CALLBACK].apply(null,arguments)}),r[t].initialize(n,u);throw new Error(t+" is an unsupported integration");}var f=n("braintree-api"),e=n("braintree-paypal"),o=n("braintree-dropin"),s=n("braintree-form"),h=n("braintree-utilities"),r=n("./integrations"),c=n("./event-bus"),i=n("./constants");t.exports={api:f,cse:Braintree,paypal:e,dropin:o,Form:s,setup:u,VERSION:"2.4.1"}},{"./constants":221,"./event-bus":222,"./integrations":225,"braintree-api":14,"braintree-dropin":149,"braintree-form":153,"braintree-paypal":193,"braintree-utilities":219}]},{},[1])(1)});$(document).ready(function(){$.ajaxSetup({cache:!1});$("#liLogOut").off("click").on("click",LogOutClick);var n=$("#featuredid").val();n==0?$("#postnewblog").hide():$("#postnewblog").show();$("#postnewblog").off("click").on("click",function(){url=$("#BlogURL").val()+"/admin/#/content/posts";window.open(url,"_self")});$("#btnsignin").click(function(){$("#login-modal").modal("show")});$("#btnreg").click(function(){$("#login-modal").modal("hide");$("#register-modal").modal("show")});$("#btnSubscribe").click(function(){var n=$("#subscription-email-text-field").val().trim(),t;IsValidEmail(n)?(t={Email:n},ajaxPost($("#AppRoot").val()+"Account/SubscribeEmail",t,OnSubscribeEmail)):bootbox.alert("Please enter valid email")});$(".navbar-collapse ul li a").click(function(){$(".navbar-toggle:visible").click()});InitSammyJs()});$("#hometxtsearch").keypress(function(n){n.which==13&&$("#btn-searchbk").click()});$("#homesearch").keypress(function(n){n.which==13&&$("#btn-search").click()});$(document).ready(function(){var r=$(".community").width(),n,t,i;$("#fbBox").attr("data-width",r+10);$(window).width()<=792?($("#centerView").removeAttr("style"),$("#mainRow").css("width","100%").css("margin-left","0")):$(window).width()>792&&$(window).width()<=1002||$("#mainRow").css("width"," calc(100% - 126px + 5px)");$(window).resize(function(){ResizeWindow()});/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&$(window).width()>=1024&&$("#leftMobile").removeClass("nullPadding").addClass("padding-right");n=$("#Dining").height();t=$("#spa").height()+$("#fashion").height()+$("#jewellery").height();n>t?i=$("#jewellery").height()+(n-t-64):n<t&&(i=$("#Dining").height()+(t-n),$("#Dining").css("min-height",i+"px"))});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($){'l0 l1';if(!er.5m.9M){er.5m.9M=C(es){E fn=q;F C(){F fn.8c(es)}}}E 2F=0;$.fn.I=C(3Z){E 2J=[];E et=8d.5m.bM.5N(eu,1);if(1s 3Z==='6v'){q.1u(C(){E 6w=$.1f(q,'I');E 1C;if(3Z.3H(/\\./)!='-1'){1C=3Z.4o('.');if(1s 6w[1C[0]]!='1z'){1C=6w[1C[0]][1C[1]]}}N{1C=6w[3Z]}if(1s 6w!=='1z'&&$.5n(1C)){E 9N=1C.8c(6w,et);if(9N!==1z&&9N!==6w){2J.2N(9N)}}N{$.6x('l2 l3 9O \"'+3Z+'\" 2C 41')}})}N{q.1u(C(){$.1f(q,'I',{});$.1f(q,'I',41(q,3Z))})}if(2J.12===0)F q;N if(2J.12===1)F 2J[0];N F 2J};C 41(el,3Z){F 25 41.5m.3N(el,3Z)}$.41=41;$.41.l4='10.2.5';$.41.bN=['2Y','3j','Q','26','2f','1v','1S','1x','1d','1W','1n','1Y','2o','M','3z','28','1Z','1D','2r','1H','3I','V','2z','2d','1b','1R','2T','5o','3e','5p','K','5O','2I','1I','1A','1w','L'];$.41.G={1H:'en',bO:'l5',8e:O,2o:O,ev:O,3e:O,5P:1q,6y:O,9P:O,9Q:O,1K:O,5Q:1q,2T:1q,ew:O,9R:1q,ex:1q,ey:1q,ez:O,3j:O,bP:O,8f:60,bQ:O,9S:O,eA:1q,58:'8g',eB:O,bR:50,bS:1q,eC:1q,eD:1q,8h:'l6',bT:1q,5R:3O,eE:'1Y',l7:O,eF:1q,5S:3O,eG:'1Y',eH:1q,76:O,9T:1q,bU:1q,bV:1q,8i:1q,6z:4,9U:O,eI:1q,8j:O,1A:1q,eJ:1q,6A:1k,6B:0,9V:O,eK:O,4B:1q,4i:['B','2Z','4j','4k','5T','5q','5r','77','3z','M','1Y','V','2Y','9W'],bW:[],bX:[],2Z:['p','29','2G','h1','h2','h3','h4','h5','h6'],bY:O,2I:1q,4a:['3T','1p'],4p:O,bZ:['3U','1j','2G','5U','3k','ol','h1','h2','h3','h4','h5','h6','dl','29','78','c0','4b','79','c1','eL','eM','42','1p','3T','4I','7a','3D','2v','1v','43','eN','eO','l8','hr','eP','l9','la','lb','6C','lc','ld','le','p'],6D:O,5s:[['7b','4l'],['b','5a']],5t:[['3P-7c:\\\\s?4j',\"5a\"],['3P-1p:\\\\s?4k',\"em\"],['1g-7d:\\\\s?5u',\"u\"],['1g-7d:\\\\s?3I-eQ','4l']],5v:O,1L:O,4S:O,6E:['1i'],3V:['p'],9X:['5T','4k','4j','5u','5q','5r','lf','lg','lh','8k'],c2:{b:'4j',5a:'4j',i:'4k',em:'4k',4l:'5T',7b:'5T',3k:'5q',ol:'5r',u:'5u'},5O:{'4c+6F+m, 5b+6F+m':{1C:'28.c3'},'4c+b, 5b+b':{1C:'28.30',5V:['4j']},'4c+i, 5b+i':{1C:'28.30',5V:['4k']},'4c+h, 5b+h':{1C:'28.30',5V:['eR']},'4c+l, 5b+l':{1C:'28.30',5V:['eS']},'4c+k, 5b+k':{1C:'V.2O'},'4c+6F+7':{1C:'2d.3l',5V:['5r']},'4c+6F+8':{1C:'2d.3l',5V:['5q']}},eT:O,26:[],8l:[],5W:'<p>&#9Y;<\/p>',5X:'&#9Y;',eU:['M/eV','M/lj','M/eW'],9Z:20,c4:['a','1M','b','5a','7e','7f','i','em','u','8m','7b','4l','8n','3k','ol','li'],4J:['5a','b','u','em','i','1d','4l','lk','a0','a1','7f','7e','7g','E','8n','8m'],8o:['P','c5','c6','c7','c8','c9','ca','ll','lm','ln','7h','6G','a2','lo','eX','lp','lq','lr','ls','lu','lv'],8p:['8q','8r','8s','5w'],cb:O,1R:{7i:[]},eY:{en:{B:'lw',6H:'6I eZ',M:'6I f0',3U:'cc',V:'cd',a3:'6I V',ce:'fb V',6J:'lx',2Z:'ly',fc:'lz 1g',cf:'lA',1d:'fe',ff:'8t 1',fg:'8t 2',fh:'8t 3',fi:'8t 4',fj:'8t 5',4j:'lB',4k:'lC',lD:'lE fk',lF:'lG fk',5q:'lH fl',5r:'lI fl',77:'lJ',3z:'lK',fm:'lL',1Z:'6I',3m:'lM',fo:'8u',lN:'6I cc',lO:'8v cg lP',lQ:'8v cg lR',lS:'8v ci fp',lT:'8v ci fq',lU:'8u ci',lV:'8u cg',lW:'8u cc',lX:'lY',lZ:'m0',m1:'8v fr',m2:'8u fr',1J:'m3',cj:'m4',5x:'m5',2c:'fp',4q:'fq',5y:'fs',m6:'f0 m7 cd',1g:'m8',a4:'m9',ma:'ck',mb:'eZ mc fe or md/me cd',1Y:'6I mf',1w:'mg',mh:'mi',ft:'mj',mk:'ml ft',mm:'fu 1Y fv',fw:'fx 1g fy fz 2c',fA:'fs 1g',fB:'fx 1g fy fz 4q',fC:'mn 1g',9W:'6I mo mp',5T:'mq',fD:'mr',a5:'ms V in 25 5z',5u:'mt',2Y:'mu',5Y:'mv (mw)',7j:'fb',fE:'fu 1Y fv or '}},2z:{4r:{6K:/5A?:\\/\\/(?:[0-9A-Z-]+\\.)?(?:mx\\.be\\/|6K\\.a6\\S*[^\\w\\-\\s])([\\w\\-]{11})(?=[^\\w\\-]|$)(?![?=&+%\\w.\\-]*(?:['\"][^<>]*>|<\\/a>))[?=&+%\\w.-]*/ig,6L:/5A?:\\/\\/(7k\\.)?6L.a6\\/(\\d+)($|\\/)/,M:/((5A?|7k)[^\\s]+\\.)(my?g|eV|eW)(\\?[^\\s-]+)?/ig,2h:/(5A?:\\/\\/(?:7k\\.|(?!7k))[^\\s\\.]+\\.[^\\s]{2,}|7k\\.[^\\s]+\\.[^\\s]{2,})/ig,}},8w:O};41.fn=$.41.5m={3q:{7l:8,8x:46,mz:38,cl:40,6M:13,fF:32,a7:27,cm:9,fG:17,fH:91,fI:16,fJ:18,fK:39,mA:37,fL:91},3N:C(el,3Z){q.$2k=$(el);q.2F=2F++;q.7m=O;q.$5c=O;q.fM(3Z);q.fN();q.2Z={};$.mB(q.G.8p,q.G.8o);q.fO=25 2l('^('+q.G.8p.31('|')+')$','i');q.1I.fP();if(q.G.4a!==O){E 2e=['B','cn','V','3f','5b','mC'];2C(E i=0;i<2e.12;i++){q.G.4a.2N(2e[i])}}q.1H.2K();$.7n(q.G.5O,q.G.eT);q.1W.2s('2a');q.2a=1q;q.2f.fQ()},fM:C(3Z){q.G=$.7n({},$.7n(1q,{},$.41.G),q.$2k.1f(),3Z)},co:C(42){F fR.mD(42).cp(C(a8){F 1s 42[a8]=='C'})},fN:C(){E 2p=$.41.bN.12;2C(E i=0;i<2p;i++){q.fS($.41.bN[i])}},fS:C(6N){if(1s q[6N]=='1z')F;q[6N]=q[6N]();E 5Z=q.co(q[6N]);E 2p=5Z.12;2C(E z=0;z<2p;z++){q[6N][5Z[z]]=q[6N][5Z[z]].9M(q)}},2Y:C(){F{2c:C(){q.2Y.1U('')},4q:C(){q.2Y.1U('4q')},5y:C(){q.2Y.1U('5y')},8k:C(){q.2Y.1U('8k')},1U:C(1m){if(!q.L.1P('2H')&&!q.G.1K){q.$T.2o()}q.2Y.21=q.K.44();q.2Y.1m=1m;q.26.1U();q.K.3m();if(q.2Y.fT()){q.2Y.fU()}N{q.2Y.fV()}q.K.3g();q.1d.1T()},fU:C(){E 4K=q.K.62('1j');$(4K).1c('1f-8y','I').1N('1g-5d',q.2Y.1m)},fV:C(){$.1u(q.2Y.21,$.1e(C(i,el){E $el=q.L.a9(el);if(!$el)F;if(q.2Y.fW($el)){q.2Y.fX($el)}N{q.2Y.fY($el)}},q))},fT:C(){F(q.G.1K&&q.2Y.21[0]===O)},fW:C($el){F(q.2Y.1m===''&&1s($el.1f('8y'))!=='1z')},fX:C($el){$el.2w($el.B())},fY:C($el){$el.1N('1g-5d',q.2Y.1m);q.L.5B($el,'1p')}}},3j:C(){F{B:O,aa:C(){if(!q.G.3j)F;q.3j.1y=(q.G.bP)?q.G.bP:q.$2v.1c('1y');if(q.G.bQ)F;q.8f=mE(q.3j.2K,q.G.8f*mF)},fZ:C(){if(!q.G.bQ)F;q.3j.2K()},2K:C(){if(!q.G.3j)F;q.3j.4B=q.1d.1a();if(q.3j.B===q.3j.4B)F;E 1f={};1f['1y']=q.3j.1y;1f[q.3j.1y]=q.3j.4B;1f=q.3j.6O(1f);E g0=$.mG({2h:q.G.3j,1m:'mH',1f:1f});g0.mI(q.3j.g1)},6O:C(1f){if(q.G.9S===O||1s q.G.9S!=='42'){F 1f}$.1u(q.G.9S,$.1e(C(k,v){if(v!==3O&&v.4s().4L('#')===0)v=$(v).2J();1f[k]=v},q));F 1f},g1:C(1f){E 2P;4T{2P=$.g2(1f)}4U(e){2P=1f}E g3=(1s 2P.6x=='1z')?'3j':'mJ';q.1W.2s(g3,q.3j.1y,2P);q.3j.B=q.3j.4B},mK:C(){g4(q.8f)}}},Q:C(){F{2Z:C(1y){q.Q.ab=O;E 1m,1E;if(1s q.2Z[1y].1f!='1z')1m='1f';N if(1s q.2Z[1y].1c!='1z')1m='1c';N if(1s q.2Z[1y]['1G']!='1z')1m='1G';if(1s q.2Z[1y].8z!='1z'){q.Q.ab=1q}if(1m)1E=q.2Z[1y][1m];q.Q.30(q.2Z[1y].Y,1m,1E)},30:C(Y,1m,1E){if(Y=='cf')Y='29';E g5=['p','2G','29','h1','h2','h3','h4','h5','h6'];if($.3r(Y,g5)==-1)F;q.Q.8A=(Y=='2G'||Y.3H(/h[1-6]/i)!=-1);if(!q.L.1P('2H'))q.$T.2o();E B=$.3h(q.$T.B());q.Q.3A=q.L.3A(B);if(q.L.1P('4d')&&!q.2o.cq()){if(q.Q.3A){E $3J;if(!q.G.1K){$3J=q.$T.3Q().3J();q.1S.3K($3J)}}}q.Q.21=q.K.44();q.Q.7o=q.Q.21.12;q.Q.1m=1m;q.Q.1E=1E;q.26.1U();q.K.3m();q.Q.1U(Y);q.K.3g();q.1d.1T();q.1R.2K()},1U:C(Y){q.K.1a();q.Q.63=q.14.g6.1o;if(q.14.4V){q.Q.g7(Y)}N{q.Q.g8(Y)}},g7:C(Y){if(q.G.1K&&q.Q.3A&&Y!='p'){E R=1k.3B(Y);q.$T.B(R);q.1S.3K(R);F}E Q=q.Q.21[0];if(Q===O)F;if(Q.1o=='5w'){if(Y!='29')F;q.Q.ac();F}E ad=(q.Q.63=='6G'||q.Q.63=='cr');if(ad&&!q.G.1K){1k.47('ae',O,'<'+Y+'>');Q=q.K.4e();q.Q.3l($(Q))}N if(Q.1o.3i()!=Y){if(q.G.1K&&Y=='p'){$(Q).1F('<br>');q.L.64(Q)}N{E $1X=q.L.4t(Q,Y);q.Q.3l($1X);if(Y!='p'&&Y!='29')$1X.1h('1M').1t();if(q.Q.8A)q.L.4W($1X);if(Y=='p'||q.Q.cs)$1X.1h('p').2b().48();q.Q.ct($1X)}}N if(Y=='29'&&Q.1o.3i()==Y){if(q.G.1K){$(Q).1F('<br>');q.L.64(Q)}N{E $el=q.L.4t(Q,'p');q.Q.3l($el)}}N if(Q.1o.3i()==Y){q.Q.3l($(Q))}if(1s q.Q.1m=='1z'&&1s q.Q.1E=='1z'){$(Q).1L('1G').1L('1p')}},g8:C(Y){E Q=q.Q.21[0];E ad=(q.Q.63=='6G'||q.Q.63=='cr');if(Q!==O&&q.Q.7o===1){if(Q.1o.3i()==Y&&Y=='29'){if(q.G.1K){$(Q).1F('<br>');q.L.64(Q)}N{E $el=q.L.4t(Q,'p');q.Q.3l($el)}}N if(Q.1o=='5w'){if(Y!='29')F;q.Q.ac()}N if(q.Q.63=='a2'){q.Q.g9(Y)}N if(q.G.1K&&((ad)||(q.14.g6!=Q))){q.Q.af(Y)}N{if(q.G.1K&&Y=='p'){$(Q).6P('<br>').1F('<br>');q.L.64(Q)}N if(Q.1o==='6G'){q.Q.af(Y)}N{E $1X=q.L.4t(Q,Y);q.Q.3l($1X);if(q.Q.8A)q.L.4W($1X);if(Y=='p'||q.Q.cs)$1X.1h('p').2b().48()}}}N{if(q.G.1K||Y!='p'){if(Y=='29'){E cu=0;2C(E i=0;i<q.Q.7o;i++){if(q.Q.21[i].1o=='a2')cu++}if(cu==q.Q.7o){$.1u(q.Q.21,$.1e(C(i,s){E $1X=O;if(q.G.1K){$(s).6P('<br>').1F('<br>');$1X=q.L.64(s)}N{$1X=q.L.4t(s,'p')}if($1X&&1s q.Q.1m=='1z'&&1s q.Q.1E=='1z'){$1X.1L('1G').1L('1p')}},q));F}}q.Q.af(Y)}N{E 8B=0;E 5C=O;if(q.Q.1m=='1G'){5C='3l';8B=$(q.Q.21).cp('.'+q.Q.1E).12;if(q.Q.7o==8B)5C='3l';N if(q.Q.7o>8B)5C='1U';N if(8B===0)5C='1U'}E 8C=['3k','ol','li','3a','67','dl','dt','dd'];$.1u(q.Q.21,$.1e(C(i,s){if($.3r(s.1o.3i(),8C)!=-1)F;E $1X=q.L.4t(s,Y);if(5C){if(5C=='3l')q.Q.3l($1X);N if(5C=='1t')q.Q.1t($1X);N if(5C=='1U')q.Q.ga($1X)}N q.Q.3l($1X);if(Y!='p'&&Y!='29')$1X.1h('1M').1t();if(q.Q.8A)q.L.4W($1X);if(Y=='p'||q.Q.cs)$1X.1h('p').2b().48();if(1s q.Q.1m=='1z'&&1s q.Q.1E=='1z'){$1X.1L('1G').1L('1p')}},q))}}},ga:C($el){if(q.Q.ab){$el.1L('1G').1L('1p')}if(q.Q.1m=='1G'){$el.2g(q.Q.1E);F}N if(q.Q.1m=='1c'||q.Q.1m=='1f'){$el.1c(q.Q.1E.1y,q.Q.1E.1E);F}},3l:C($el){if(q.Q.ab){$el.1L('1G').1L('1p')}if(q.Q.1m=='1G'){$el.7p(q.Q.1E);F}N if(q.Q.1m=='1c'||q.Q.1m=='1f'){if($el.1c(q.Q.1E.1y)==q.Q.1E.1E){$el.1L(q.Q.1E.1y)}N{$el.1c(q.Q.1E.1y,q.Q.1E.1E)}F}N{$el.1L('1p 1G');F}},1t:C($el){$el.2U(q.Q.1E)},ac:C(){E Q=$(q.Q.21[0]).2q('3k, ol',q.$T[0]);$(Q).1h('3k, ol').2b().48();$(Q).1h('li').1F($('<br>')).2b().48();E $el=q.L.4t(Q,'29');q.Q.3l($el)},g9:C(Y){1k.47('77');1k.47('ae',O,Y);q.1x.4u();q.$T.1h('p:gb').1t();E 1X=q.K.4e();if(Y!='p'){$(1X).1h('1M').1t()}if(!q.G.1K){q.Q.3l($(1X))}q.$T.1h('3k, ol, 6Q, 29, p').1u($.1e(q.L.3V,q));if(q.G.1K&&Y=='p'){q.L.64(1X)}},af:C(Y){if(q.Q.63=='8r'||q.Q.63=='8s'){if(Y=='29'){q.Q.ac()}N{F}}E 1X=q.K.62(Y);if(1X===O)F;E $1X=$(1X);q.Q.ct($1X);E $gc=$1X.1h(q.G.8p.31(',')+', 3a, 3U, cv, cw, cx, 67, 6Q');$gc.2b().48();if(Y!='p'&&Y!='29')$1X.1h('1M').1t();$.1u(q.Q.21,$.1e(q.L.3V,q));$1X.1F(q.K.6R(2));if(!q.G.1K){q.Q.3l($1X)}q.$T.1h('3k, ol, 6Q, 29, p').1u($.1e(q.L.3V,q));$1X.1h('29:gb').1t();if(q.Q.8A){q.L.4W($1X)}if(q.G.1K&&Y=='p'){q.L.64($1X)}if(q.G.1K){E $1O=$1X.1O().1O();if($1O.7q()!=0&&$1O[0].1o==='5e'){$1O.1t()}}},ct:C($1X){if($1X.2q('3U',q.$T[0]).12===0)F;if($1X.2q('6Q',q.$T[0]).12===0)$1X.62('<6Q>');if($1X.2q('3a',q.$T[0]).12===0&&$1X.2q('67').12===0){$1X.62('<3a>')}},gd:C(1y,1E){E 21=q.K.44();$(21).1L('1f-'+1y);q.1d.1T()},mL:C(1y,1E){E 21=q.K.44();$(21).1c('1f-'+1y,1E);q.1d.1T()},mM:C(1y,1E){E 21=q.K.44();$.1u(21,C(){if($(q).1c('1f-'+1y)){$(q).1L('1f-'+1y)}N{$(q).1c('1f-'+1y,1E)}})},1L:C(1c,1E){E 21=q.K.44();$(21).1L(1c);q.1d.1T()},mN:C(1c,1E){E 21=q.K.44();$(21).1c(1c,1E);q.1d.1T()},mO:C(1c,1E){E 21=q.K.44();$.1u(21,C(){if($(q).1c(1y)){$(q).1L(1y)}N{$(q).1c(1y,1E)}})},2U:C(3E){E 21=q.K.44();$(21).2U(3E);q.L.5B(21,'1G');q.1d.1T()},8D:C(3E){E 21=q.K.44();$(21).2g(3E);q.1d.1T()},7p:C(3E){E 21=q.K.44();$(21).7p(3E);q.1d.1T()}}},26:C(){F{1U:C(1m){if(1s 1m=='1z'||1m=='8E'){q.26.ge()}N{q.26.gf()}},ge:C(){q.K.3m();q.G.26.2N(q.$T.B());q.K.3g()},gf:C(){q.K.3m();q.G.8l.2N(q.$T.B());q.K.3g()},gg:C(){q.$T.B(q.G.26.gh())},gj:C(){q.$T.B(q.G.8l.gh())},cy:C(){q.G.26.2N(q.$T.B())},8E:C(){if(q.G.26.12===0)F;q.26.1U('ag');q.26.gg();q.K.3g();3v($.1e(q.1R.2K,q),50)},ag:C(){if(q.G.8l.12===0)F;q.26.1U('8E');q.26.gj();q.K.3g();3v($.1e(q.1R.2K,q),50)}}},2f:C(){F{cz:O,ah:1q,fQ:C(){q.2f.gk();q.2f.gl();q.2f.gm();q.2f.gn();q.2f.go()},ai:C(){F(q.$2k[0].1o==='mP')},gk:C(){q.$2Q=$('<1j 1G=\"I-2Q\" 8F=\"mQ\" />')},gp:C(){q.$2v=$('<2v />').1c('1y',q.2f.gq())},gq:C(){F((1s(1y)=='1z'))?'cA-'+q.2F:q.$2k.1c('id')},gl:C(){E 1C=(q.2f.ai())?'2J':'B';q.cA=$.3h(q.$2k[1C]())},gn:C(){q.$T.1c({'5f':1q,'gr':q.G.bO})},gm:C(){E 1C=(q.2f.ai())?'gs':'gu';q.2f[1C]()},gs:C(){q.$T=$('<1j />');q.$2v=q.$2k;q.$2Q.gv(q.$2k).1F(q.$T).1F(q.$2k);q.$T.2g('I-T');q.$2k.3s()},gu:C(){q.$T=q.$2k;q.2f.gp();q.$2Q.gv(q.$T).1F(q.$T).1F(q.$2v);q.$T.2g('I-T');q.$2v.3s()},go:C(){q.1d.1U(q.cA);q.2f.gw();q.2f.gx();if(q.G.5P)F;3v($.1e(q.1d.cB,q),aj)},gx:C(){q.2f.gy();q.2f.gz();q.2f.gA();q.2f.gB();if(q.G.1A){q.G.1A=q.1A.3N();q.1A.2f()}q.1b.gC();q.2f.8e();3v($.1e(q.1R.2K,q),4);q.1W.2s('3N')},gw:C(){$(q.$2v).1c('gr',q.G.bO);if(q.G.1K)q.$T.2g('I-1K');if(q.G.6y)q.$T.1c('6y',q.G.6y);if(q.G.9P)q.$T.1N('9P',q.G.9P);if(q.G.9Q)q.$T.1N('9Q',q.G.9Q)},gD:C(e){e.2t();if(!q.G.eF&&!q.G.eH)F;if(q.G.5R===3O&&q.G.5S===3O)F;E 68=e.ak.68;q.1w.gE(68[0],e)},gF:C(e){q.1d.1T();3v(q.1x.4u,1);q.1W.2s('4X',e)},gA:C(){q.$T.on('gG.I mR.I',C(e){e.2t();e.cC()});q.$T.on('4X.I',$.1e(C(e){e=e.7r||e;if(3n.al===1z||!e.ak)F 1q;if(e.ak.68.12===0){F q.2f.gF(e)}N{q.2f.gD(e)}3v(q.1x.4u,1);q.1W.2s('4X',e)},q));q.$T.on('2A.I',$.1e(C(e){E 8G=q.1W.7s();E 1m=(8G=='2A'||8G=='4Y')?O:'2A';q.1W.8H(1m);q.L.8I();q.1W.2s('2A',e)},q));q.$T.on('5o.I',$.1e(q.5o.3N,q));q.$T.on('mS.I',$.1e(q.1d.1T,q));q.$T.on('1D.I',$.1e(q.1D.3N,q));q.$T.on('2r.I',$.1e(q.2r.3N,q));if($.5n(q.G.gH)){q.$2v.on('1D.I-2v',$.1e(q.G.gH,q))}if($.5n(q.G.gI)){q.$2v.on('2r.I-2v',$.1e(q.G.gI,q))}q.$T.on('2o.I',$.1e(C(e){if($.5n(q.G.mT)){q.1W.2s('2o',e)}q.2f.cz=1q;q.2f.ah=O;if(q.K.3w()===O){q.K.1a();q.14.2R(q.$T[0],0);q.14.3K(q.$T[0],0);q.K.4f()}},q));$(1k).on('69.I-cD.'+q.2F,$.1e(C(e){if(q.2a)F;if(q.7m)F;if($(e.1Q).2q('.I-T, .I-1A, .I-1n').7q()!==0){F}q.L.8I();if(!q.2f.ah&&$.5n(q.G.mU)){q.1W.2s('cD',e)}q.2f.cz=O;q.2f.ah=1q},q))},gB:C(){if(q.2z.am()){q.2z.30()}q.3e.aa();if(q.G.2o)3v(q.2o.2R,6S);if(q.G.ev)3v(q.2o.3K,6S)},8e:C(){if(!q.G.8e)F;$.1u(q.G.8e,$.1e(C(i,s){E 1C=(1s cE!=='1z'&&1s cE[s]!=='1z')?cE:41.fn;if(!$.5n(1C[s])){F}q[s]=1C[s]();E 5Z=q.co(q[s]);E 2p=5Z.12;2C(E z=0;z<2p;z++){q[s][5Z[z]]=q[s][5Z[z]].9M(q)}if($.5n(q[s].3N)){q[s].3N()}},q))},gy:C(){if(!q.L.1P('4d'))F;4T{1k.47('mV',O,O);1k.47('mW',O,O)}4U(e){}},gz:C(){if(!q.L.1P('2H'))F;1k.47(\"mX\",O,O)}}},1v:C(){F{2f:C(2i,2V){E $1v=$('<a 2m=\"#\" 1G=\"3L-8J 3L-'+2i+'\" 3W=\"'+2i+'\" />').1c({'8F':'1v','4M-2L':2V.1J,'6y':'-1'});if(2V.1C||2V.4v||2V.1n){q.1v.gJ($1v,2i,2V)}if(2V.1n){$1v.2g('I-1A-V-1n').1c('4M-gK',1q);E $1n=$('<1j 1G=\"I-1n I-1n-'+q.2F+' I-1n-2Q-'+2i+'\" 1p=\"6T: 5x;\">');$1v.1f('1n',$1n);q.1n.2f(2i,$1n,2V.1n)}if(q.L.7t()){q.1v.gL($1v,2i,2V.1J)}F $1v},gJ:C($1v,2i,2V){$1v.on('5D 2A',$.1e(C(e){if($1v.3t('I-1v-7u'))F O;E 1m='1C';E 2B=2V.1C;if(2V.4v){1m='4v';2B=2V.4v}N if(2V.1n){1m='1n';2B=O}q.1v.an(e,2i,1m,2B)},q))},gL:C($1v,1y,1J){E $3o=$('<1i>').2g('I-1A-3o I-1A-3o-'+q.2F+' I-1A-3o-'+1y).3s().B(1J);$3o.ao('3f');$1v.on('ap',C(){if($(q).3t('I-1v-7u')){F}E 3x=$1v.2x();$3o.1N({2W:(3x.2W+$1v.6a())+'px',2c:(3x.2c+$1v.7v()/2-$3o.7v()/2)+'px'});$3o.2O()});$1v.on('aq',C(){$3o.3s()})},an:C(e,2i,1m,2B){q.1v.mY=q.1S.8K();e.2t();$(1k).1h('.I-1A-3o').3s();if(q.L.1P('2H'))e.8L=O;if(1m=='4v')q.28.30(2B);N if(1m=='1n')q.1n.2O(e,2i);N q.1v.gM(e,2B,2i)},gM:C(e,2B,2i){E 1C;if($.5n(2B))2B.5N(q,2i);N if(2B.3H(/\\./)!='-1'){1C=2B.4o('.');if(1s q[1C[0]]=='1z')F;q[1C[0]][1C[1]](2i)}N q[2B](2i);q.1R.4i(e,2i)},1a:C(1l){F q.$1A.1h('a.3L-'+1l)},8M:C(1l){q.1v.1a(1l).2g('I-8N')},gN:C(1l){q.1v.1a(1l).2U('I-8N')},cF:C(1l){if(1s 1l==='1z'){q.$1A.1h('a.3L-8J').2U('I-8N')}N{q.$1A.1h('a.3L-8J').6b('.3L-'+1l).2U('I-8N')}},gO:C(){q.$1A.1h('a.3L-8J').6b('a.3L-B, a.3L-gP').2U('I-1v-7u')},gQ:C(){q.$1A.1h('a.3L-8J').6b('a.3L-B, a.3L-gP').2g('I-1v-7u')},mZ:C(1l,ar){q.1v.1a(1l).2g('3L-'+ar)},n0:C(1l,ar){q.1v.1a(1l).2U('3L-'+ar)},n1:C(1l,1y){E $1v=q.1v.1a(1l);$1v.2U('I-22-M').2g('fa-I-22');$1v.B('<i 1G=\"fa '+1y+'\"><\/i>')},cG:C($22,2B){if($22==\"26\")F;E 1m=(2B=='1n')?'1n':'1C';E 1l=$22.1c('3W');$22.on('5D 2A',$.1e(C(e){if($22.3t('I-1v-7u'))F O;q.1v.an(e,1l,1m,2B)},q))},cH:C($22,1n){$22.2g('I-1A-V-1n').1c('4M-gK',1q);E 1l=$22.1c('3W');q.1v.cG($22,'1n');E $1n=$('<1j 1G=\"I-1n I-1n-'+q.2F+' I-1n-2Q-'+1l+'\" 1p=\"6T: 5x;\">');$22.1f('1n',$1n);if(1n)q.1n.2f(1l,$1n,1n);F $1n},cy:C(1l,1J){if(!q.G.1A)F;if(q.1v.8O(1l))F\"26\";E 22=q.1v.2f(1l,{1J:1J});22.2g('I-22-M');q.$1A.1F($('<li>').1F(22));F 22},n2:C(1l,1J){if(!q.G.1A)F;if(q.1v.8O(1l))F\"26\";E 22=q.1v.2f(1l,{1J:1J});22.2g('I-22-M');q.$1A.6P($('<li>').1F(22));F 22},n3:C(gR,1l,1J){if(!q.G.1A)F;if(q.1v.8O(1l))F\"26\";E 22=q.1v.2f(1l,{1J:1J});22.2g('I-22-M');E $22=q.1v.1a(gR);if($22.12!==0)$22.1r().3C($('<li>').1F(22));N q.$1A.1F($('<li>').1F(22));F 22},n4:C(gS,1l,1J){if(!q.G.1A)F;if(q.1v.8O(1l))F\"26\";E 22=q.1v.2f(1l,{1J:1J});22.2g('I-22-M');E $22=q.1v.1a(gS);if($22.12!==0)$22.1r().as($('<li>').1F(22));N q.$1A.1F($('<li>').1F(22));F 22},1t:C(1l){q.1v.1a(1l).1t()},8O:C(1l){F(1l==\"8E\"||1l==\"ag\")&&!q.L.7t()}}},1S:C(){F{2R:C(R){if(!q.L.6U(R)){E 3b=q.L.at();$(R).6P(3b);q.1S.3K(3b)}N{q.1S.1U(R,0,R,0)}},3K:C(R){R=R[0]||R;if(R.gT.au==1){F q.1S.5g(R.gT)}q.1S.1U(R,1,R,1)},1U:C(4N,gU,7w,gV){4N=4N[0]||4N;7w=7w[0]||7w;if(q.L.7x(4N.1o)&&4N.3y===''){4N.3y=q.G.5X}if(4N.1o=='5e'&&q.G.1K===O){E 1r=$(q.G.5W)[0];$(4N).2w(1r);4N=1r;7w=4N}q.K.1a();4T{q.14.2R(4N,gU);q.14.3K(7w,gV)}4U(e){}q.K.4f()},5g:C(R){4T{E Y=$(R)[0].1o;if(Y!='5e'&&!q.L.6U(R)){E 3b=q.L.at();$(R).3C(3b);q.1S.3K(3b)}N{if(Y!='5e'&&q.L.1P('2H')){q.1S.2R($(R).1O())}N{q.1S.cI(R,'3C')}}}4U(e){E 3b=q.L.at();$(R).3C(3b);q.1S.3K(3b)}},cJ:C(R){if(q.L.6U(R)){q.1S.3K($(R).4C())}N{q.1S.cI(R,'as')}},cI:C(R,1m){if(!q.L.1P('2H'))q.$T.2o();R=R[0]||R;q.K.1a();if(1m=='3C'){4T{q.14.7y(R);q.14.gW(R)}4U(e){}}N{4T{q.14.n5(R);q.14.gX(R)}4U(e){}}q.14.49(O);q.K.4f()},8P:C(R){R=R[0]||R;q.K.1a();E av=q.14.7z();av.8Q(R);av.3K(q.14.cK,q.14.cL);F $.3h(av.4s()).12},8K:C(){E 2x=0;E 2X=3n.4O();if(2X.7A>0){E 14=3n.4O().6c(0);E aw=14.7z();aw.8Q(q.$T[0]);aw.3K(14.cK,14.cL);2x=aw.4s().12}F 2x},ax:C(2a,2j){if(1s 2j=='1z')2j=2a;if(!q.2o.cq())q.2o.2R();E 2X=q.K.1a();E R,2x=0;E gY=1k.n6(q.$T[0],n7.n8,3O,3O);4Z(R=gY.n9()){2x+=R.6d.12;if(2x>2a){q.14.2R(R,R.6d.12+2a-2x);2a=na}if(2x>=2j){q.14.3K(R,R.6d.12+2j-2x);6e}}q.14.49(O);q.K.4f()},nb:C(2a,2j){q.1S.ax(2a,2j)},nc:C(){F q.1S.8K()}}},1x:C(){F{gZ:C(B){B=q.1x.h0(B);B=B.J(/<3T(.*?[^>]?)>([\\w\\W]*?)<\\/3T>/gi,'<2G 1G=\"I-3T-Y\" 1p=\"6T: 5x;\" $1>$2<\/2G>');B=B.J(/\\$/g,'&#36;');B=B.J(/<a 2m=\"(.*?[^>]?)®(.*?[^>]?)\">/gi,'<a 2m=\"$1&nd$2\">');if(q.G.5Q&&!q.G.1K)B=q.1x.5Q(B);if(q.G.1K)B=q.1x.8R(B);B=q.1x.cM(B);E $1j=$('<1j>');$1j.B(B);E cN=$1j.1h('3P[1p]');if(cN.12!==0){cN.2w(C(){E $el=$(q);E $1i=$('<1i>').1c('1p',$el.1c('1p'));F $1i.1F($el.2b())});B=$1j.B()}$1j.1t();B=B.J(/<3P(.*?)>/gi,'');B=B.J(/<\\/3P>/gi,'');B=q.1I.2K(B);if(q.G.2T)B=q.2T.2K(B);B=q.1x.7B(B);B=q.1x.cO(B);B=B.J(/&8S;/g,'&');F B},ay:C(B){B=B.J(/\\6f/g,'');B=B.J(/&#9Y;/gi,'');if(q.G.ey){B=B.J(/&5h;/gi,' ')}if(B.3H(/^<p>(||\\s||<br\\s?\\/?>||&5h;)<\\/p>$/i)!=-1){F''}B=B.J(/<2G 1G=\"I-3T-Y\" 1p=\"6T: 5x;\"(.*?[^>]?)>([\\w\\W]*?)<\\/2G>/gi,'<3T$1>$2<\/3T>');B=q.1x.h7(B);E h8={'\\ne':'&nf;','\\ng':'&nh;','\\ni':'&nj;','\\nk':'&nm;','\\nn':'&no;'};$.1u(h8,C(i,s){B=B.J(25 2l(i,'g'),s)});if(q.L.1P('4d')){B=B.J(/<br\\s?\\/?>$/gi,'')}B=B.J(25 2l('<br\\\\s?/?><\/li>','gi'),'<\/li>');B=B.J(25 2l('<\/li><br\\\\s?/?>','gi'),'<\/li>');B=B.J(/<(.*?)3W=\"\\s*?\"(.*?[^>]?)>/gi,'<$1$2\">');B=B.J(/<(.*?)1p=\"\\s*?\"(.*?[^>]?)>/gi,'<$1$2\">');B=B.J(/=\"\">/gi,'>');B=B.J(/\"\"\">/gi,'\">');B=B.J(/\"\">/gi,'\">');B=B.J(/<1j(.*?)1f-8y=\"I\"(.*?[^>])>/gi,'<1j$1$2>');B=B.J(/<(.*?) 1f-3M=\"I\"(.*?[^>])>/gi,'<$1$2>');E $1j=$(\"<1j/>\").B($.cP(B,1k,1q));$1j.1h(\"1i\").1L(\"3W\");$1j.1h('2G .I-7C-3b').1u(C(){$(q).2b().48()});B=$1j.B();B=B.J(/<1M(.*?[^>])3W=\"(.*?[^>])\"(.*?[^>])>/gi,'<1M$1$3>');B=B.J(/<1i 1G=\"I-7C-3b\">(.*?)<\\/1i>/gi,'$1');B=B.J(/ 1f-3m-2h=\"(.*?[^>])\"/gi,'');B=B.J(/<1i(.*?)id=\"I-M-2Q\"(.*?[^>])>([\\w\\W]*?)<1M(.*?)><\\/1i>/gi,'$3<1M$4>');B=B.J(/<1i(.*?)id=\"I-M-8T\"(.*?[^>])>(.*?)<\\/1i>/gi,'');B=B.J(/<1i(.*?)id=\"I-M-5E\"(.*?[^>])>(.*?)<\\/1i>/gi,'');B=B.J(/<3P(.*?)>/gi,'');B=B.J(/<\\/3P>/gi,'');B=q.1I.2K(B);if(q.G.eB){B=B.J(/<a(.*?)3W=\"h9\"(.*?[^>])>/gi,'<a$1$2>');B=B.J(/<a(.*?[^>])>/gi,'<a$1 3W=\"h9\">')}B=B.J(/\\np-I-(Y|1G|1p)=\"(.*?[^>])\"/gi,'');B=B.J(25 2l('<(.*?) 1f-3M=\"I\"(.*?[^>])>','gi'),'<$1$2>');B=B.J(25 2l('<(.*?) 1f-3M=\"I\">','gi'),'<$1>');B=B.J(/&8S;/g,'&');F B},8U:C(B,8V){B=$.3h(B);B=B.J(/\\$/g,'&#36;');B=B.J(/<1i 1G=\"s[0-9]\">/gi,'<1i>');B=B.J(/<1i 1G=\"ha-nq-3b\">&5h;<\\/1i>/gi,' ');B=B.J(/<1i 1G=\"ha-5z-1i\"[^>]*>\\t<\\/1i>/gi,'\\t');B=B.J(/<1i[^>]*>(\\s|&5h;)<\\/1i>/gi,' ');if(q.G.ez){F q.1x.az(B)}if(!q.L.8W()&&1s 8V=='1z'){if(q.L.51(['eX','A'])){F q.1x.az(B,O)}if(q.L.51('8q')){B=B.J(/”/g,'\"');B=B.J(/“/g,'\"');B=B.J(/‘/g,'\\'');B=B.J(/’/g,'\\'');F q.1x.hb(B)}if(q.L.51(['a2','c5','c6','c7','c8','c9','ca'])){B=q.1x.hc(B);if(!q.L.1P('2H')){E Q=q.K.4e();if(Q&&Q.1o=='P'){B=B.J(/<1M(.*?)>/gi,'<p><1M$1><\/p>')}}F B}if(q.L.51(['6G'])){B=q.1x.aA(B,'3a');if(q.G.1K)B=q.1x.8R(B);B=q.1x.hd(B);F B}if(q.L.51(['5w'])){F q.1x.aA(B,'li')}}B=q.1x.he(B,8V);if(!q.1x.8X){if(q.G.1K)B=q.1x.8R(B);if(q.G.5Q)B=q.1x.5Q(B);B=q.1x.cM(B)}B=q.1x.hf(B);B=q.1x.hg(B);B=q.1x.aA(B,'hh');if(!q.1x.8X&&q.G.2T){B=q.2T.2K(B)}B=q.1x.hi(B);B=q.1x.hj(B);B=q.1x.hk(B);B=q.1x.cO(B);F B},hf:C(B){B=B.J(/<!--[\\s\\S]*?-->/gi,'');B=B.J(/<1p[^>]*>[\\s\\S]*?<\\/1p>/gi,'');B=B.J(/<o\\:p[^>]*>[\\s\\S]*?<\\/o\\:p>/gi,'');if(B.1V(/1G=\"?hl|1p=\"[^\"]*\\hm-|1p='[^'']*\\hm-|w:nr/i)){B=B.J(/<!--[\\s\\S]+?-->/gi,'');B=B.J(/<(!|3T[^>]*>.*?<\\/3T(?=[>\\s])|\\/?(\\?ns(:\\w+)?|1M|5b|V|1p|\\w:\\w+)(?=[\\s\\/>]))[^>]*>/gi,'');B=B.J(/<(\\/?)s>/gi,\"<$nt>\");B=B.J(/ /gi,' ');B=B.J(/<1i\\s+1p\\s*=\\s*\"\\s*aB-nu\\s*:\\s*nv\\s*;?\\s*\"\\s*>([\\s\\aC]*)<\\/1i>/gi,C(5i,aD){F(aD.12>0)?aD.J(/./,\" \").bM(8Y.nw(aD.12/2)).4o(\"\").31(\"\\aC\"):''});B=q.1x.hn(B);B=B.J(/<1M(.*?)v:nx=(.*?)>/gi,'');B=B.J(/4w=\"1Y\\:\\/\\/(.*?)\"/,'4w=\"\"');E $1j=$(\"<1j/>\").B(B);E 6g=O;E 8Z=1;E cQ=[];$1j.1h(\"p[1p]\").1u(C(){E 3R=$(q).1c('1p').1V(/aB\\-2d\\:l([0-9]+)\\ny([0-9]+)/);if(3R){E 6h=5F(3R[1]);E 6i=5F(3R[2]);E cR=$(q).B().1V(/^[\\w]+\\./)?\"ol\":\"3k\";E $li=$(\"<li/>\").B($(q).B());$li.B($li.B().J(/^([\\w\\.]+)<\/,'<'));$li.1h(\"1i:3J\").1t();if(6i==1&&$.3r(6h,cQ)==-1){E $2d=$(\"<\"+cR+\"/>\").1c({\"1f-7D\":6i,\"1f-2d\":6h}).B($li);$(q).2w($2d);6g=6h;cQ.2N(6h)}N{if(6i>8Z){E $aE=$1j.1h('[1f-7D=\"'+8Z+'\"][1f-2d=\"'+6g+'\"]');E $6g=$aE;2C(E i=8Z;i<6i;i++){$2d=$(\"<\"+cR+\"/>\");$2d.ao($6g.1h(\"li\").3c());$6g=$2d}$6g.1c({\"1f-7D\":6i,\"1f-2d\":6h}).B($li)}N{E $aE=$1j.1h('[1f-7D=\"'+6i+'\"][1f-2d=\"'+6h+'\"]').3c();$aE.1F($li)}8Z=6i;6g=6h;$(q).1t()}}});$1j.1h('[1f-7D][1f-2d]').1L('1f-7D 1f-2d');B=$1j.B();B=B.J(/·/g,'');B=B.J(/<p 1G=\"hl(.*?)\"/gi,'<p');B=B.J(/ 1G=\\\"(aB[^\\\"]*)\\\"/gi,\"\");B=B.J(/ 1G=(aB\\w+)/gi,\"\");B=B.J(/<o:p(.*?)>([\\w\\W]*?)<\\/o:p>/gi,'$2');B=B.J(/\\n/g,' ');B=B.J(/<p>\\n?<li>/gi,'<li>')}F B},hg:C(B){B=B.J(/<b\\nz=\"ho-4B-2u(.*?)\">([\\w\\W]*?)<\\/b>/gi,\"$2\");B=B.J(/<b(.*?)id=\"nA-ho-nB(.*?)\">([\\w\\W]*?)<\\/b>/gi,\"$3\");B=B.J(/<1i[^>]*(3P-1p: 4k; 3P-7c: 4j|3P-7c: 4j; 3P-1p: 4k)[^>]*>/gi,'<1i 1p=\"3P-7c: 4j;\"><1i 1p=\"3P-1p: 4k;\">');B=B.J(/<1i[^>]*3P-1p: 4k[^>]*>/gi,'<1i 1p=\"3P-1p: 4k;\">');B=B.J(/<1i[^>]*3P-7c: 4j[^>]*>/gi,'<1i 1p=\"3P-7c: 4j;\">');B=B.J(/<1i[^>]*1g-7d: 5u[^>]*>/gi,'<1i 1p=\"1g-7d: 5u;\">');B=B.J(/<1M>/gi,'');B=B.J(/\\n{3,}/gi,'\\n');B=B.J(/<3P(.*?)>([\\w\\W]*?)<\\/3P>/gi,'$2');B=B.J(/<p><p>/gi,'<p>');B=B.J(/<\\/p><\\/p>/gi,'<\/p>');B=B.J(/<li>(\\s*|\\t*|\\n*)<p>/gi,'<li>');B=B.J(/<\\/p>(\\s*|\\t*|\\n*)<\\/li>/gi,'<\/li>');B=B.J(/<\\/p>\\s<p/gi,'<\\/p><p');B=B.J(/<1M 4w=\"7E-nC-2h\\:\\/\\/(.*?)\"(.*?)>/gi,'');B=B.J(/<p>•([\\w\\W]*?)<\\/p>/gi,'<li>$1<\/li>');if(q.L.1P('4d')){B=B.J(/<br\\s?\\/?>$/gi,'')}F B},aA:C(B,1m){E 2e=['1i','a','2G','29','8m','em','5a','1d','a1','7g','c0','8n','E','a0','cS','7f','7e','b','i','u','4l','ol','3k','li','dl','dt','dd','p','br','6H','92','4I','7F','93','42','1M','3U','3a','67','6Q','cw','cx','cv','h1','h2','h3','h4','h5','h6'];E cT=O;E cU=[['a','*'],['1M',['4w','7G']],['1i',['1G','3W','1f-3M']],['4I','*'],['6H','*'],['92','*'],['7F','*'],['42','*'],['93','*'],['4B','*']];if(1m=='hh'){cT=['p','1i','h1','h2','h3','h4','h5','h6'];cU=[['3U','1G'],['3a',['nD','nE']],['a','*'],['1M',['4w','7G','1f-I-94-M']],['1i',['1G','3W','1f-3M']],['4I','*'],['6H','*'],['92','*'],['7F','*'],['42','*'],['93','*'],['4B','*']]}N if(1m=='3a'){2e=['3k','ol','li','1i','a','8m','em','5a','1d','a1','7g','8n','E','a0','cS','7f','7e','b','i','u','4l','ol','3k','li','dl','dt','dd','br','4I','6H','92','7F','93','42','1M','h1','h2','h3','h4','h5','h6']}N if(1m=='li'){2e=['3k','ol','li','1i','a','8m','em','5a','1d','a1','7g','8n','E','a0','cS','7f','7e','b','i','u','4l','br','4I','6H','92','7F','93','42','1M']}E 3Z={4a:(q.G.4a)?q.G.4a:O,4p:(q.G.4p)?q.G.4p:2e,6D:1q,nF:1q,1L:(q.G.1L)?q.G.1L:O,4S:(q.G.4S)?q.G.4S:cU,3V:cT};F q.1I.2K(B,3Z)},hk:C(B){B=B.J(/<(p|h[1-6])>(|\\s|\\n|\\t|<br\\s?\\/?>)<\\/(p|h[1-6])>/gi,'');if(!q.G.1K)B=B.J(/<br>$/i,'');F B},hj:C(B){B=B.J(/<1i>(.*?)<\\/1i>/gi,'$1');B=B.J(/<1i[^>]*>\\s|&5h;<\\/1i>/gi,' ');F B},hn:C(B){if(!q.L.1P('2H'))F B;E 5G=$.3h(B);if(5G.3H(/^<a(.*?)>(.*?)<\\/a>$/i)===0){B=B.J(/^<a(.*?)>(.*?)<\\/a>$/i,\"$2\")}F B},he:C(B,8V){q.1x.8X=O;if(!q.L.8W()&&1s 8V=='1z'){E 21=q.G.8p.31('|').J('P|','').J('7h|','');E hp=B.1V(25 2l('<\/('+21+')>','gi'));E aF=B.1V(/<\\/(p|1j)>/gi);if(!hp&&(aF===3O||(aF&&aF.12<=1))){E hq=B.1V(/<br\\s?\\/?>/gi);if(!hq){q.1x.8X=1q;B=B.J(/<\\/?(p|1j)(.*?)>/gi,'')}}}F B},nG:C(3D,5H){5H=(((5H||'')+'').3i().1V(/<[a-z][a-7H-9]*>/g)||[]).31('');E 2e=/<\\/?([a-z][a-7H-9]*)\\b[^>]*>/gi;F 3D.J(2e,C($0,$1){F 5H.4L('<'+$1.3i()+'>')>-1?$0:''})},h0:C(B){B=q.1x.hs(B);B=q.1x.ht(B);B=q.1x.hu(B);F B},hs:C(B){E 2G=B.1V(/<2G(.*?)>([\\w\\W]*?)<\\/2G>/gi);if(2G!==3O){$.1u(2G,$.1e(C(i,s){E 2D=s.1V(/<2G(.*?)>([\\w\\W]*?)<\\/2G>/i);2D[2]=2D[2].J(/<br\\s?\\/?>/g,'\\n');2D[2]=2D[2].J(/&5h;/g,' ');if(q.G.6z){2D[2]=2D[2].J(/\\t/g,8d(q.G.6z+1).31(' '))}2D[2]=q.1x.aG(2D[2]);2D[2]=2D[2].J(/\\$/g,'&#36;');B=B.J(s,'<2G'+2D[1]+'>'+2D[2]+'<\/2G>')},q))}F B},ht:C(B){E 1d=B.1V(/<1d(.*?)>([\\w\\W]*?)<\\/1d>/gi);if(1d!==3O){$.1u(1d,$.1e(C(i,s){E 2D=s.1V(/<1d(.*?)>([\\w\\W]*?)<\\/1d>/i);2D[2]=2D[2].J(/&5h;/g,' ');2D[2]=q.1x.aG(2D[2]);2D[2]=2D[2].J(/\\$/g,'&#36;');B=B.J(s,'<1d'+2D[1]+'>'+2D[2]+'<\/1d>')},q))}F B},hu:C(B){B=B.J(/&lt;1i id=&6j;K-2u-([0-9])&6j; 1G=&6j;I-K-2u&6j; 1f-3M=&6j;I&6j;&gt;​&lt;\\/1i&gt;/g,'<1i id=\"K-2u-$1\" 1G=\"I-K-2u\" 1f-3M=\"I\">​<\/1i>');F B},cV:C(B){B=B.J(/<br\\s?\\/?>|<\\/H[1-6]>|<\\/p>|<\\/1j>|<\\/li>|<\\/3a>/gi,'\\n');E 5G=1k.3B('1j');5G.3y=B;B=5G.nH||5G.nI;F $.3h(B)},az:C(B,2T){B=q.1x.cV(B);B=B.J(/\\n\\s*\\n/g,\"\\n\");B=B.J(/\\n\\n/g,\"\\n\");B=B.J(/\\n/g,'<br />');if(q.G.2T&&1s 2T=='1z'&&!q.L.1P('4d')){B=q.2T.2K(B)}F B},hb:C(B){B=B.J(/<1M(.*?) 1p=\"(.*?)\"(.*?[^>])>/gi,'<1M$1$3>');B=B.J(/<1M(.*?)>/gi,'&lt;1M$1&gt;');B=q.1x.cV(B);if(q.G.6z){B=B.J(/\\t/g,8d(q.G.6z+1).31(' '))}B=q.1x.aG(B);F B},hc:C(B){B=B.J(/<1M(.*?)>/gi,'[1M$1]');B=B.J(/<([nJ]*?)>/gi,'');B=B.J(/\\[1M(.*?)\\]/gi,'<1M$1>');F B},nK:C(B){B=B.J(/<a(.*?)2m=\"(.*?)\"(.*?)>([\\w\\W]*?)<\\/a>/gi,'[a 2m=\"$2\"]$4[/a]');B=B.J(/<1M(.*?)>/gi,'[1M$1]');B=B.J(/<(.*?)>/gi,'');B=B.J(/\\[a 2m=\"(.*?)\"\\]([\\w\\W]*?)\\[\\/a\\]/gi,'<a 2m=\"$1\">$2<\/a>');B=B.J(/\\[1M(.*?)\\]/gi,'<1M$1>');F B},aG:C(5i){5i=6k(5i).J(/&8S;/g,'&').J(/&lt;/g,'<').J(/&gt;/g,'>').J(/&6j;/g,'\"');F 5i.J(/&/g,'&8S;').J(/<\/g,'&lt;').J(/>/g,'&gt;').J(/\"/g,'&6j;')},hi:C(B){if(q.L.1P('2H'))F B;E 1j=1k.3B('1j');1j.3y=B;q.1x.cW($(1j));B=1j.3y;$(1j).1t();F B},4u:C(){if(q.L.1P('2H'))F;q.1x.cW(q.$T);E cX=q.$T.1h('h1, h2, h3, h4, h5, h6');cX.1h('1i').1L('1p');cX.1h(q.G.c4.31(', ')).1L('1p');q.1d.1T()},cW:C($T){$T.1h(q.G.c4.31(', ')).1L('1p');$T.1h('1i').6b('[1f-3M=\"I\"]').1L('1p');$T.1h('1i[1f-3M=\"I\"], 1M[1f-3M=\"I\"]').1u(C(i,s){E $s=$(s);$s.1c('1p',$s.1c('3W'))})},nL:C(){},7B:C(B){if(q.L.1P('2H'))F B;B=B.J(25 2l('<1M(.*?[^>])>','gi'),'<1M$1 1f-3M=\"I\">');B=B.J(25 2l('<1i(.*?[^>])>','gi'),'<1i$1 1f-3M=\"I\">');E 3R=B.1V(25 2l('<(1i|1M)(.*?)1p=\"(.*?)\"(.*?[^>])>','gi'));if(3R){E 2p=3R.12;2C(E i=0;i<2p;i++){4T{E hv=3R[i].J(/1p=\"(.*?)\"/i,'1p=\"$1\" 3W=\"$1\"');B=B.J(3R[i],hv)}4U(e){}}}F B},cO:C(B){E $1j=$('<1j />').B(B);E 2e=q.G.4J;2e.2N('1i');$1j.1h(2e.31(',')).1u(C(){E $el=$(q);E Y=q.1o.3i();$el.1c('1f-I-Y',Y);if(Y=='1i'){if($el.1c('1p'))$el.1c('1f-I-1p',$el.1c('1p'));N if($el.1c('1G'))$el.1c('1f-I-1G',$el.1c('1G'))}});B=$1j.B();$1j.1t();F B},aH:C(){q.$T.1h('li').1u(C(i,s){E $1O=$(s).1O();if($1O.12!==0&&($1O[0].1o=='8r'||$1O[0].1o=='8s')){$(s).1F($1O)}})},cY:C(B){B=B.J(/\\n/g,'');B=B.J(/[\\t]*/g,'');B=B.J(/\\n\\s*\\n/g,\"\\n\");B=B.J(/^[\\s\\n]*/g,' ');B=B.J(/[\\s\\n]*$/g,' ');B=B.J(/>\\s{2,}<\/g,'> <');B=B.J(/\\n\\n/g,\"\\n\");B=B.J(/\\6f/g,'');F B},5Q:C(B){if(q.G.1K){B=B.J(/<1j><br\\s?\\/?><\\/1j>/gi,'<br />');B=B.J(/<1j(.*?)>([\\w\\W]*?)<\\/1j>/gi,'$2<br />')}N{B=B.J(/<1j(.*?)>([\\w\\W]*?)<\\/1j>/gi,'<p$1>$2<\/p>')}B=B.J(/<1j(.*?[^>])>/gi,'');B=B.J(/<\\/1j>/gi,'');F B},hd:C(B){B=B.J(/<1j\\s(.*?)>/gi,'<p>');B=B.J(/<1j><br\\s?\\/?><\\/1j>/gi,'<br /><br />');B=B.J(/<1j>([\\w\\W]*?)<\\/1j>/gi,'$1<br /><br />');F B},8R:C(B){B=B.J(/<p\\s(.*?)>/gi,'<p>');B=B.J(/<p><br\\s?\\/?><\\/p>/gi,'<br />');B=B.J(/<p>([\\w\\W]*?)<\\/p>/gi,'$1<br /><br />');B=B.J(/(<br\\s?\\/?>){1,}\\n?<\\/29>/gi,'<\/29>');F B},cM:C(B){F B.J(/<5U(.*?)>([\\w\\W]*?)<\\/5U>/gi,'<4b$1 3W=\"I-5U-Y\">$2<\/4b>')},h7:C(B){F B.J(/<4b(.*?) 3W=\"I-5U-Y\"(.*?)>([\\w\\W]*?)<\\/4b>/gi,'<5U$1$2>$3<\/5U>')}}},1d:C(){F{1U:C(B){B=$.3h(B.4s());B=q.1x.gZ(B);if(q.L.1P('2H')){B=B.J(/<1i(.*?)id=\"K-2u-(1|2)\"(.*?)><\\/1i>/gi,'')}q.$T.B(B);q.1d.1T();if(B!=='')q.3e.1t();3v($.1e(q.26.cy,q),15);if(q.2a===O)q.1R.2K()},1a:C(){E 1d=q.$2v.2J();if(q.G.5Q)1d=q.1x.5Q(1d);if(q.G.1K)1d=q.1x.8R(1d);1d=q.2I.1a(1d);F 1d},1T:C(){3v($.1e(q.1d.hw,q),10)},hw:C(){E B=q.$T.B();if(q.1d.cZ&&q.1d.cZ==B||(q.2a&&B=='')){F}q.1d.cZ=B;B=q.1W.2s('nM',B);B=q.1x.ay(B);q.$2v.2J(B);q.1W.2s('1T',B);if(q.2a===O){q.1W.2s('hx',B)}q.2a=O;if(q.3j.B==O){q.3j.B=q.1d.1a()}if(q.G.8w){q.$2v.1O('.3F').1u(C(i,el){el.3F.hy(B)})}q.3j.fZ();q.3j.aa()},3l:C(){if(q.G.5P){q.1d.cB()}N{q.1d.hz()}},cB:C(){q.K.3m();q.1d.2x=q.1S.8K();E 6l=$(3n).3X();E 2M=q.$T.7v(),3p=q.$T.6a();q.$T.3s();E B=q.$2v.2J();q.hA=q.1x.cY(B);B=q.2I.1a(B);E 2a=0,2j=0;E $6V=$(\"<1j/>\").1F($.cP(q.1x.ay(q.$T.B()),1k,1q));E $aI=$6V.1h(\"1i.I-K-2u\");if($aI.12>0){E aJ=q.2I.1a($6V.B()).J(/&8S;/g,'&');if($aI.12==1){2a=q.L.aK(aJ,$6V.1h(\"#K-2u-1\").6m(\"7I\"));2j=2a}N if($aI.12==2){2a=q.L.aK(aJ,$6V.1h(\"#K-2u-1\").6m(\"7I\"));2j=q.L.aK(aJ,$6V.1h(\"#K-2u-2\").6m(\"7I\"))-$6V.1h(\"#K-2u-1\").6m(\"7I\").4s().12}}q.K.95();q.$2v.2J(B);if(q.G.8w){q.$2v.1O('.3F').1u(C(i,el){$(el).2O();el.3F.hy(B);el.3F.nN('6S%',3p);el.3F.nO();if(2a==2j){el.3F.nP(el.3F.7J(2a).3I,el.3F.7J(2j).ch)}N{el.3F.nQ({3I:el.3F.7J(2a).3I,ch:el.3F.7J(2a).ch},{3I:el.3F.7J(2j).3I,ch:el.3F.7J(2j).ch})}el.3F.2o()})}N{q.$2v.3p(3p).2O().2o();q.$2v.on('1D.I-2v-hB',q.1d.hC);$(3n).3X(6l);if(q.$2v[0].hD){q.$2v[0].hD(2a,2j)}q.$2v[0].3X=0}q.G.5P=O;q.1v.gQ();q.1v.8M('B');q.1W.2s('4B',B)},hz:C(){E B;if(q.G.5P)F;E 2a=0,2j=0;if(q.G.8w){E K;q.$2v.1O('.3F').1u(C(i,el){K=el.3F.nR();2a=el.3F.hE(K[0].fD);2j=el.3F.hE(K[0].cn);B=el.3F.nS()})}N{2a=q.$2v.1a(0).d0;2j=q.$2v.1a(0).d1;B=q.$2v.3s().2J()}if(2a>2j&&2j>0){E hF=2j;E hG=2a;2a=hF;2j=hG}2a=q.1d.d2(B,2a);2j=q.1d.d2(B,2j);B=B.4x(0,2a)+q.K.5j(1)+B.4x(2a);if(2j>2a){E d3=q.K.5j(1).4s().12;B=B.4x(0,2j+d3)+q.K.5j(2)+B.4x(2j+d3)}if(q.hA!==q.1x.cY(B)){q.1d.1U(B)}if(q.G.8w){q.$2v.1O('.3F').3s()}q.$T.2O();if(!q.L.3A(B)){q.3e.1t()}q.K.3g();q.$2v.3d('1D.I-2v-hB');q.1v.gO();q.1v.gN('B');q.1R.2K();q.G.5P=1q;q.1W.2s('5P',B)},hC:C(e){if(e.3q!==9)F 1q;E $el=q.$2v;E 2a=$el.1a(0).d0;$el.2J($el.2J().aL(0,2a)+\"\\t\"+$el.2J().aL($el.1a(0).d1));$el.1a(0).d0=$el.1a(0).d1=2a+1;F O},d2:C(B,2x){E d4=B.12;E c=0;if(B[2x]=='>'){c++}N{2C(E i=2x;i<=d4;i++){c++;if(B[i]=='>'){6e}N if(B[i]=='<'||i==d4){c=0;6e}}}F 2x+c}}},1W:C(){F{nT:C(){F $.7n({},q)},nU:C(){F q.$T},nV:C(){F q.$2Q},nW:C(){F q.$2k},nX:C(){F q.$2v},nY:C(){F(q.$1A)?q.$1A:O},8H:C(1y){q.1W.8G=1y},7s:C(){F q.1W.8G},2s:C(1m,e,1f){E aM=1m+'nZ';E hH='I';E 2B=q.G[aM];if(q.$2v){E 8L=O;E 9a=$.o0(q.$2v[0],'9a');if(1s 9a!='1z'&&1s 9a[aM]!='1z'){$.1u(9a[aM],$.1e(C(1l,1E){if(1E['o1']==hH){E 1f=(1s 1f=='1z')?[e]:[e,1f];8L=(1s 1f=='1z')?1E.7K.5N(q,e):1E.7K.5N(q,e,1f)}},q))}if(8L)F 8L}if($.5n(2B)){F(1s 1f=='1z')?2B.5N(q,e):2B.5N(q,e,1f)}N{F(1s 1f=='1z')?e:1f}},hI:C(){q.G.hJ=1q;q.1W.2s('hI');q.$2k.3d('.I').gd('I');q.$T.3d('.I');$(1k).3d('69.I-cD.'+q.2F);$(1k).3d('69.I.'+q.2F);$(1k).3d('2A.I-M-7L.'+q.2F);$(1k).3d('2A.I-M-4P-3s.'+q.2F);$(1k).3d('5D.I.'+q.2F+' 2A.I.'+q.2F);$(\"3f\").3d('6l.I.'+q.2F);$(q.G.6A).3d('6l.I.'+q.2F);q.$T.2U('I-T I-1K I-3e');q.$T.1L('5f');E B=q.1d.1a();if(q.G.1A){q.$1A.1h('a').1u(C(){E $el=$(q);if($el.1f('1n')){$el.1f('1n').1t();$el.1f('1n',{})}})}if(q.2f.ai()){q.$2Q.3C(q.$2k);q.$2Q.1t();q.$2k.2J(B).2O()}N{q.$2Q.3C(q.$T);q.$2Q.1t();q.$2k.B(B).2O()}if(q.$5c)q.$5c.1t();if(q.$4D)q.$4D.1t();if(q.$7M)q.$7M.1t();$('.I-1A-3o-'+q.2F).1t();g4(q.8f)}}},1n:C(){F{2f:C(1y,$1n,d5){if(1y=='2Z'&&q.G.bY){$.1u(q.G.bY,$.1e(C(i,s){E 1y=s.Y,1C;if(1s s['1G']!='1z'){1y=1y+'-'+s['1G']}s.1m=(q.L.7x(s.Y))?'Q':'28';if(1s s.1C!==\"1z\"){1C=s.1C}N{1C=(s.1m=='28')?'28.2Z':'Q.2Z'}if(q.G.1K&&s.1m=='Q'&&s.Y=='p')F;q.2Z[1y]={Y:s.Y,1p:s.1p,'1G':s['1G'],1c:s.1c,1f:s.1f,8z:s.8z};d5[1y]={1C:1C,1J:s.1J}},q))}$.1u(d5,$.1e(C(2i,2V){E $2y=$('<a 2m=\"#\" 1G=\"I-1n-'+2i+'\" 8F=\"1v\">'+2V.1J+'<\/a>');if(1y=='2Z')$2y.2g('I-2Z-'+2i);$2y.on('2A',$.1e(C(e){e.2t();E 1m='1C';E 2B=2V.1C;if(2V.4v){1m='4v';2B=2V.4v}N if(2V.1n){1m='1n';2B=2V.1n}if($(e.1Q).3t('I-1n-V-d6'))F;q.1v.an(e,2i,1m,2B);q.1n.7N()},q));q.1R.cH($2y,2i,2V);$1n.1F($2y)},q))},2O:C(e,1l){if(!q.G.5P){e.2t();F O}E $1v=q.1v.1a(1l);E $1n=$1v.1f('1n').ao(1k.3f);if(q.G.cb){$1n.2g(\"I-1n-hK\")}if($1v.3t('7O')){q.1n.7N()}N{q.1n.7N();q.1R.7i();q.1W.2s('o2',{1n:$1n,1l:1l,1v:$1v});q.1v.8M(1l);$1v.2g('7O');E 7P=$1v.2x();E d7=$1n.2M();if((7P.2c+d7)>$(1k).2M()){7P.2c=8Y.o3(0,7P.2c-d7)}E 2c=7P.2c+'px';if(q.$1A.3t('1A-7Q-2Q')){E 2W=q.$1A.6a()+q.G.6B;E 4g='7Q';if(q.G.6A!==1k){2W=(q.$1A.6a()+q.$1A.2x().2W)+q.G.6B;4g='9b'}$1n.1N({4g:4g,2c:2c,2W:2W+'px'}).2O()}N{E 2W=($1v.6a()+7P.2W)+'px';$1n.1N({4g:'9b',2c:2c,2W:2W}).2O()}q.1W.2s('o4',{1n:$1n,1l:1l,1v:$1v});q.$1n=$1n}$(1k).d8('2A.I-1n',$.1e(q.1n.3s,q));q.$T.d8('2A.I-1n',$.1e(q.1n.3s,q));$(1k).d8('2r.I-1n',$.1e(q.1n.9c,q));$1n.on('ap.I-1n',$.1e(q.L.d9,q)).on('aq.I-1n',$.1e(q.L.aN,q));e.cC()},9c:C(e){if(e.7R!=q.3q.a7)F;q.1n.7N();q.$T.2o()},7N:C(){q.$1A.1h('a.7O').2U('I-8N').2U('7O');q.L.aN();$('.I-1n-'+q.2F).3s();$('.I-1n-V-hL').2U('I-1n-V-hL');if(q.$1n){q.$1n.3d('.I-1n');q.1W.2s('o5',q.$1n);q.$1n=O}},3s:C(e){E $1n=$(e.1Q);if(!$1n.3t('7O')&&!$1n.3t('I-1n-V-d6')){if($1n.3t('I-1n')){$1n.2U('7O');$1n.3d('ap aq')}q.1n.7N()}}}},1Y:C(){F{2O:C(){q.1b.2K('1Y',q.1H.1a('1Y'),hM);q.1w.3N('#I-1b-1Y-1w',q.G.5S,q.1Y.1Z);q.K.3m();q.K.1a();E 1g=q.2X.4s();$('#I-5Y').2J(1g);q.1b.2O()},1Z:C(2P,52,e){if(1s 2P.6x!='1z'){q.1b.4m();q.K.3g();q.1W.2s('o6',2P);F}E V;if(1s 2P=='6v'){V=2P}N{E 1g=$('#I-5Y').2J();if(1s 1g=='1z'||1g==='')1g=2P.5Y;V='<a 2m=\"'+2P.9d+'\" id=\"9d-2u\">'+1g+'<\/a>'}if(52){q.K.95();E 2u=q.K.6R();q.1Z.da(e,2u)}N{q.1b.4m()}q.K.3g();q.26.1U();q.1Z.hN(V);if(1s 2P=='6v')F;E 9e=$(q.$T.1h('a#9d-2u'));if(9e.12!==0){9e.1L('id').1L('1p')}N 9e=O;q.1W.2s('5S',9e,2P)}}},2o:C(){F{2R:C(){q.$T.2o();E 3J=q.$T.3Q().3J();if(3J.12===0)F;if(3J[0].12===0||3J[0].1o=='5e'||3J[0].au==3){F}if(3J[0].1o=='8r'||3J[0].1o=='8s'){E 4y=3J.1h('li').3J();if(!q.L.6U(4y)&&4y.1g()===''){q.1S.2R(4y);F}}if(q.G.1K&&!q.L.7x(3J[0].1o)){q.K.1a();q.14.2R(q.$T[0],0);q.14.3K(q.$T[0],0);q.K.4f();F}q.1S.2R(3J)},3K:C(){E 3c=q.$T.3Q().3c();q.$T.2o();if(3c.7q()===0)F;if(q.L.3A(q.$T.B())){q.K.1a();q.14.49(1q);q.14.7y(3c[0]);q.14.3K(3c[0],0);q.K.4f()}N{q.K.1a();q.14.8Q(3c[0]);q.14.49(O);q.K.4f()}},cq:C(){F q.$T[0]===1k.o7}}},M:C(){F{2O:C(){q.1b.2K('M',q.1H.1a('M'),hM);q.1w.3N('#I-1b-M-4h',q.G.5R,q.M.1Z);q.K.3m();q.1b.2O()},hO:C($M){E $V=$M.2q('a',q.$T[0]);q.1b.2K('hP',q.1H.1a('7j'),o8);q.1b.db();q.M.hQ=q.1b.hR(q.1H.1a('fo'));q.M.hS=q.1b.dc(q.1H.1a('3m'));q.M.hQ.on('2A',$.1e(C(){q.M.1t($M)},q));q.M.hS.on('2A',$.1e(C(){q.M.hT($M)},q));$('.I-V-3o').1t();$('#I-M-1J').2J($M.1c('7G'));if(!q.G.eC)$('.I-M-V-43').3s();N{E $de=$('#I-M-V');$de.1c('2m',$M.1c('4w'));if($V.12!==0){$de.2J($V.1c('2m'));if($V.1c('1Q')=='7S')$('#I-M-V-7T').6m('aO',1q)}}if(!q.G.eD)$('.I-M-4g-43').3s();N{E hU=($M.1N('6T')=='Q'&&$M.1N('7U')=='5x')?'5y':$M.1N('7U');$('#I-M-5d').2J(hU)}q.1b.2O();$('#I-M-1J').2o()},hV:C($M){E hW=$('#I-M-5d').2J();E aP='';E df='';E 9f='';hX(hW){9g'2c':aP='2c';9f='0 '+q.G.8h+' '+q.G.8h+' 0';6e;9g'4q':aP='4q';9f='0 0 '+q.G.8h+' '+q.G.8h;6e;9g'5y':df='Q';9f='aQ';6e}$M.1N({'7U':aP,6T:df,4E:9f});$M.1c('3W',$M.1c('1p'))},hT:C($M){q.M.7V();q.26.1U();E $V=$M.2q('a',q.$T[0]);E 1J=$('#I-M-1J').2J().J(/(<([^>]+)>)/ig,\"\");$M.1c('7G',1J);q.M.hV($M);E V=$.3h($('#I-M-V').2J());E V=V.J(/(<([^>]+)>)/ig,\"\");if(V!==''){E 7W='((hY--)?[a-7H-9]+(-[a-7H-9]+)*\\\\.)+[a-z]{2,}';E 3L=25 2l('^(8g|9h|5A)://'+7W,'i');E aR=25 2l('^'+7W,'i');if(V.3H(3L)==-1&&V.3H(aR)===0&&q.G.58){V=q.G.58+'://'+V}E 1Q=($('#I-M-V-7T').6m('aO'))?1q:O;if($V.12===0){E a=$('<a 2m=\"'+V+'\">'+q.L.6n($M)+'<\/a>');if(1Q)a.1c('1Q','7S');$M.2w(a)}N{$V.1c('2m',V);if(1Q){$V.1c('1Q','7S')}N{$V.1L('1Q')}}}N if($V.12!==0){$V.2w(q.L.6n($M))}q.1b.4m();q.1R.aS();q.1d.1T()},hZ:C($M){if(q.G.bS){$M.on('o9',$.1e(q.M.aT,q))}E 7K=$.1e(C(e){q.1R.M=$M;q.M.8T=q.M.i0($M);$(1k).on('69.I-M-4P-3s.'+q.2F,$.1e(q.M.7V,q));if(!q.G.bT)F;q.M.8T.on('69.I 5D.I',$.1e(C(e){q.M.i1(e,$M)},q))},q);$M.3d('69.I').on('69.I',$.1e(q.M.7V,q));$M.3d('2A.I 5D.I').on('2A.I 5D.I',7K)},i1:C(e,$M){e.2t();q.M.4n={x:e.i2,y:e.aU,el:$M,dg:$M.2M()/$M.3p(),h:$M.3p()};e=e.7r||e;if(e.9i){q.M.4n.x=e.9i[0].i2;q.M.4n.y=e.9i[0].aU}q.M.i3()},i3:C(){$(1k).on('oa.I-M-4P ob.I-M-4P',$.1e(q.M.i4,q));$(1k).on('i5.I-M-4P oc.I-M-4P',$.1e(q.M.i6,q))},i4:C(e){e.2t();e=e.7r||e;E 3p=q.M.4n.h;if(e.9i)3p+=(e.9i[0].aU-q.M.4n.y);N 3p+=(e.aU-q.M.4n.y);E 2M=8Y.i7(3p*q.M.4n.dg);if(3p<50||2M<6S)F;E 3p=8Y.i7(q.M.4n.el.2M()/q.M.4n.dg);q.M.4n.el.1c({2M:2M,3p:3p});q.M.4n.el.2M(2M);q.M.4n.el.3p(3p);q.1d.1T()},i6:C(){q.i8=O;$(1k).3d('.I-M-4P');q.M.7V()},aT:C(e){if(q.$T.1h('#I-M-2Q').12!==0){e.2t();F O}q.$T.on('4X.I-M-i9-4X',$.1e(C(){3v($.1e(q.M.aV,q),1)},q))},aV:C(){q.M.ia();q.1R.aS();q.$T.3d('4X.I-M-i9-4X');q.1x.4u();q.1d.1T()},ia:C(){q.$T.1h('1M[1f-3m-2h]').1u(C(){E $el=$(q);$el.1c('4w',$el.1c('1f-3m-2h'));$el.1L('1f-3m-2h')})},7V:C(e){if(e&&$(e.1Q).2q('#I-M-2Q',q.$T[0]).12!==0)F;if(e&&e.1Q.1o=='aW'){E $M=$(e.1Q);$M.1c('1f-3m-2h',$M.1c('4w'))}E 3G=q.$T.1h('#I-M-2Q');if(3G.12===0)F;$('#I-M-5E').1t();$('#I-M-8T').1t();3G.1h('1M').1N({6o:3G[0].1p.6o,aX:3G[0].1p.aX,aY:3G[0].1p.aY,aZ:3G[0].1p.aZ});3G.1N('4E','');3G.1h('1M').1N('ib','');3G.2w(C(){F $(q).2b()});$(1k).3d('69.I-M-4P-3s.'+q.2F);if(1s q.M.4n!=='1z'){q.M.4n.el.1c('3W',q.M.4n.el.1c('1p'))}q.1d.1T()},ic:C($M,3G){if(q.G.bT&&!q.L.6W()){E 9j=$('<1i id=\"I-M-8T\" 1f-I=\"3M\"><\/1i>');if(!q.L.7t()){9j.1N({2M:'ih',3p:'ih'})}9j.1c('5f',O);3G.1F(9j);3G.1F($M);F 9j}N{3G.1F($M);F O}},i0:C($M){E 3G=$('<1i id=\"I-M-2Q\" 1f-I=\"3M\">');3G.1N('7U',$M.1N('7U')).1c('5f',O);if($M[0].1p.4E!='aQ'){3G.1N({6o:$M[0].1p.6o,aX:$M[0].1p.aX,aY:$M[0].1p.aY,aZ:$M[0].1p.aZ});$M.1N('4E','')}N{3G.1N({'6T':'Q','4E':'aQ'})}$M.1N('ib','.5').3C(3G);if(q.G.bS){q.M.5E=$('<1i id=\"I-M-5E\" 1f-I=\"3M\">'+q.1H.1a('7j')+'<\/1i>');q.M.5E.1c('5f',O);q.M.5E.on('2A',$.1e(C(){q.M.hO($M)},q));3G.1F(q.M.5E);E ii=q.M.5E.7v();q.M.5E.1N('4E-2c','-'+ii/2+'px')}F q.M.ic($M,3G)},1t:C(M){E $M=$(M);E $V=$M.2q('a',q.$T[0]);E $6C=$M.2q('6C',q.$T[0]);E $1r=$M.1r();if($('#I-M-2Q').12!==0){$1r=$('#I-M-2Q').1r()}E $1O;if($6C.12!==0){$1O=$6C.1O();$6C.1t()}N if($V.12!==0){$1r=$V.1r();$V.1t()}N{$M.1t()}$('#I-M-2Q').1t();if($6C.12!==0){q.1S.2R($1O)}N{q.1S.2R($1r)}q.1W.2s('dh',$M[0].4w,$M);q.1b.4m();q.1d.1T()},1Z:C(2P,52,e){if(1s 2P.6x!='1z'){q.1b.4m();q.K.3g();q.1W.2s('od',2P);F}E $1M;if(1s 2P=='6v'){$1M=$(2P).1c('1f-I-94-M','1q')}N{$1M=$('<1M>');$1M.1c('4w',2P.9d).1c('1f-I-94-M','1q')}E R=$1M;E di=q.L.51('P');if(di){R=$('<29 />').1F($1M)}if(52){q.K.95();E 2u=q.K.6R();q.1Z.da(e,2u)}N{q.1b.4m()}q.K.3g();q.26.1U();q.1Z.B(q.L.6n(R),O);E $M=q.$T.1h('1M[1f-I-94-M=1q]').1L('1f-I-94-M');if(di){$M.1r().2b().48().62('<p />')}N if(q.G.1K){if(!q.L.3A(q.1d.1a())){$M.as('<br>')}$M.3C('<br>')}if(1s 2P=='6v')F;q.1W.2s('5R',$M,2P)}}},3z:C(){F{b0:C(){if(!q.L.1P('2H'))q.$T.2o();q.26.1U();q.K.3m();E Q=q.K.4e();if(Q&&Q.1o=='5w'){q.3z.ij()}N if(Q===O&&q.G.1K){q.3z.ik()}N{q.3z.il()}q.K.3g();q.1d.1T()},ij:C(){1k.47('3z');q.3z.b1();q.1x.aH();q.1x.4u()},il:C(){$.1u(q.K.44(),$.1e(C(i,53){if(53.1o==='6G'||53.1o==='cr')F;E $el=q.L.a9(53);E 2c=q.L.dj($el.1N('4E-2c'))+q.G.9Z;$el.1N('4E-2c',2c+'px')},q))},ik:C(){E 4K=q.K.62('1j');$(4K).1c('1f-8y','I');$(4K).1N('4E-2c',q.G.9Z+'px')},9k:C(){q.26.1U();q.K.3m();E Q=q.K.4e();if(Q&&Q.1o=='5w'){q.3z.im()}N{q.3z.io()}q.K.3g();q.1d.1T()},im:C(){1k.47('77');E 1B=q.K.3w();E $2y=$(1B).2q('li',q.$T[0]);q.3z.b1();if(!q.G.1K&&$2y.12===0){1k.47('ae',O,'p');q.$T.1h('3k, ol, 29, p').1u($.1e(q.L.3V,q))}q.1x.4u()},io:C(){$.1u(q.K.44(),$.1e(C(i,53){E $el=q.L.a9(53);E 2c=q.L.dj($el.1N('4E-2c'))-q.G.9Z;if(2c<=0){if(q.G.1K&&1s($el.1f('8y'))!=='1z'){$el.2w($el.B()+'<br />')}N{$el.1N('4E-2c','');q.L.5B($el,'1p')}}N{$el.1N('4E-2c',2c+'px')}},q))},b1:C(){E Q=q.K.4e();if(q.14.4V&&Q&&Q.1o=='5w'&&q.L.3A($(Q).1g())){E $Q=$(Q);$Q.1h('1i').6b('.I-K-2u').2b().48();$Q.1F('<br>')}}}},28:C(){F{2Z:C(1y){E 1m,1E;if(1s q.2Z[1y].1p!='1z')1m='1p';N if(1s q.2Z[1y]['1G']!='1z')1m='1G';if(1m)1E=q.2Z[1y][1m];q.28.30(q.2Z[1y].Y,1m,1E)},30:C(Y,1m,1E){E 1B=q.K.3w();if(1B&&1B.1o==='oe')F;if(q.L.51('8q')||q.L.ip())F;E 2e=['b','4j','i','4k','5u','iq','5T','eR','eS'];E ir=['5a','5a','em','em','u','4l','4l','7f','7e'];2C(E i=0;i<2e.12;i++){if(Y==2e[i])Y=ir[i]}if(q.G.4p){if($.3r(Y,q.G.4p)==-1)F}N{if($.3r(Y,q.G.4a)!==-1)F}q.28.1m=1m||O;q.28.1E=1E||O;q.26.1U();if(!q.L.1P('2H')&&!q.G.1K){q.$T.2o()}q.K.1a();if(q.14.4V){q.28.it(Y)}N{q.28.iu(Y)}},it:C(Y){E 1B=q.K.3w();E $1r=$(1B).2q(Y+'[1f-I-Y='+Y+']',q.$T[0]);if($1r.12!==0&&(q.28.1m!='1p'&&$1r[0].1o!='6X')){if(q.L.3A($1r.1g())){q.1S.5g($1r[0]);$1r.1t();q.1d.1T()}N if(q.L.6Y($1r)){q.1S.5g($1r[0])}F}E R=$('<'+Y+'>').1c('1f-3M','I').1c('1f-I-Y',Y);R.B(q.G.5X);R=q.28.dk(R);E R=q.1Z.R(R);q.1S.3K(R);q.1d.1T()},iu:C(Y){q.28.iv(Y);q.K.3m();1k.47('iq');q.$T.1h('7b').1u($.1e(C(i,s){E $el=$(s);q.28.iw($el,Y);E $1i;if(q.28.1m){$1i=$('<1i>').1c('1f-I-Y',Y).1c('1f-3M','I');$1i=q.28.dk($1i)}N{$1i=$('<'+Y+'>').1c('1f-I-Y',Y).1c('1f-3M','I')}$el.2w($1i.B($el.2b()));E $1r=$1i.1r();if($1i[0].1o==='A'&&$1r&&$1r[0].1o==='U'){$1i.1r().2w($1i)}if(Y=='1i'){if($1r&&$1r[0].1o==='6X'&&q.28.1m==='1p'){E 2D=q.28.1E.4o(';');2C(E z=0;z<2D.12;z++){if(2D[z]==='')F;E 1p=2D[z].4o(':');$1r.1N(1p[0],'');if(q.L.5B($1r,'1p')){$1r.2w($1r.2b())}}}}},q));if(Y!='1i'){q.$T.1h(q.G.4J.31(', ')).1u($.1e(C(i,s){E $el=$(s);if(s.1o==='U'&&s.4z.12===0){$el.2w($el.2b());F}E a8=$el.1N('1g-7d');if(a8==='3I-eQ'){$el.1N('1g-7d','');q.L.5B($el,'1p')}},q))}if(Y!='4l'){E b2=q;q.$T.1h('28').1u(C(i,s){b2.L.4t(s,'4l')})}if(Y!='u'){E b2=q;q.$T.1h('ix').1u(C(i,s){b2.L.4t(s,'u')})}q.K.3g();q.1d.1T()},iw:C($el,Y){E 3u=q;$el.3Q(Y).1u(C(){E $4y=$(q);if(!$4y.3t('I-K-2u')){if(3u.28.1m=='1p'){E 2D=3u.28.1E.4o(';');2C(E z=0;z<2D.12;z++){if(2D[z]==='')F;E 1p=2D[z].4o(':');$4y.1N(1p[0],'');if(3u.L.5B($4y,'1p')){$4y.2w($4y.2b())}}}N{$4y.2b().48()}}})},iv:C(Y){q.K.3m();E 1h='';if(q.28.1m=='1G')1h='[1f-I-1G='+q.28.1E+']';N if(q.28.1m=='1p'){1h='[1f-I-1p=\"'+q.28.1E+'\"]'}E 3u=q;if(Y!='4l'){q.$T.1h('4l').1u(C(i,s){3u.L.4t(s,'28')})}if(Y!='u'){q.$T.1h('u').1u(C(i,s){3u.L.4t(s,'ix')})}if(Y!='1i'){q.$T.1h(Y).1u(C(){E $el=$(q);$el.2w($('<7b />').B($el.2b()))})}q.$T.1h('[1f-I-Y=\"'+Y+'\"]'+1h).1u(C(){if(1h===''&&Y=='1i'&&q.1o.3i()==Y)F;E $el=$(q);$el.2w($('<7b />').B($el.2b()))});q.K.3g()},dk:C(R){hX(q.28.1m){9g'1G':if(R.3t(q.28.1E)){R.2U(q.28.1E);R.1L('1f-I-1G')}N{R.2g(q.28.1E);R.1c('1f-I-1G',q.28.1E)}6e;9g'1p':R[0].1p.of=q.28.1E;R.1c('1f-I-1p',q.28.1E);6e}F R},og:C(){q.26.1U();E 1B=q.K.3w();E 23=q.K.dm();q.K.3m();if(1B&&1B.1o==='6X'){E $s=$(1B);$s.1L('1p');if($s[0].4z.12===0){$s.2w($s.2b())}}$.1u(23,$.1e(C(i,s){E $s=$(s);if($.3r(s.1o.3i(),q.G.4J)!=-1&&!$s.3t('I-K-2u')){$s.1L('1p');if($s[0].4z.12===0){$s.2w($s.2b())}}},q));q.K.3g();q.1d.1T()},oh:C(1y){q.26.1U();E 1r=q.K.6p();E 23=q.K.dm();q.K.3m();if(1r&&1r.1o==='6X'){E $s=$(1r);$s.1N(1y,'');q.L.5B($s,'1p');if($s[0].4z.12===0){$s.2w($s.2b())}}$.1u(23,$.1e(C(i,s){E $s=$(s);if($.3r(s.1o.3i(),q.G.4J)!=-1&&!$s.3t('I-K-2u')){$s.1N(1y,'');q.L.5B($s,'1p');if($s[0].4z.12===0){$s.2w($s.2b())}}},q));q.K.3g();q.1d.1T()},c3:C(){q.26.1U();E 1B=q.K.3w();q.K.3m();1k.47('c3');if(1B&&1B.1o==='6X'){$(1B).2w($(1B).2b())}$.1u(q.K.6Z(),$.1e(C(i,s){E $s=$(s);if($.3r(s.1o.3i(),q.G.4J)!=-1&&!$s.3t('I-K-2u')){$s.2w($s.2b())}},q));q.K.3g();q.1d.1T()},7p:C(3E){q.28.30('1i','1G',3E)},oi:C(1E){q.28.30('1i','1p',1E)}}},1Z:C(){F{1U:C(B,1x){q.3e.1t();B=q.1x.7B(B);if(1s 1x=='1z'){B=q.1x.8U(B,O)}q.$T.B(B);q.K.1t();q.2o.3K();q.1x.aH();q.1d.1T();q.1R.2K();if(1s 1x=='1z'){3v($.1e(q.1x.4u,q),10)}},1g:C(1g){q.3e.1t();1g=1g.4s();1g=$.3h(1g);1g=q.1x.az(1g,O);q.$T.2o();if(q.L.1P('2H')){q.1Z.dn(1g)}N{q.K.1a();q.14.54();E el=1k.3B(\"1j\");el.3y=1g;E 4Q=1k.b3(),R,5I;4Z((R=el.b4)){5I=4Q.7X(R)}q.14.3S(4Q);if(5I){E 14=q.14.7z();14.7y(5I);14.49(1q);q.2X.9l();q.2X.4f(14)}}q.1d.1T();q.1x.4u()},hN:C(B){q.1Z.B(B,O)},B:C(B,1x){q.3e.1t();if(1s 1x=='1z')1x=1q;if(!q.G.1K){q.$T.2o()}B=q.1x.7B(B);if(1x){B=q.1x.8U(B)}if(q.L.1P('2H')){q.1Z.dn(B)}N{if(q.1x.8X)q.1Z.iy(B);N 1k.47('oj',O,B);q.1Z.iz()}q.1x.aH();if(!q.G.1K){q.$T.1h('p').1u($.1e(q.L.3V,q))}q.1d.1T();q.1R.2K();if(1x){q.1x.4u()}},iz:C(){if(!q.L.1P('4d'))F;E $1O=$(q.K.4e()).1O();if($1O.12>0&&$1O[0].1o=='P'&&$1O.B()===''){$1O.1t()}},dn:C(B){if(q.L.iA()){E 1r=q.L.51('P');E $B=$('<1j>').1F(B);E iB=$B.2b().is('p, :79, dl, 3k, ol, 1j, 3U, 3a, 29, 2G, c0, 4b, 79, c1, eL, eM');if(1r&&iB)q.1Z.iC(1r,B);N q.1Z.iD(B);F}1k.K.9m().iE(B)},iy:C(B){B=q.1x.7B(B);q.K.1a();q.14.54();E el=1k.3B('1j');el.3y=B;E 4Q=1k.b3(),R,5I;4Z((R=el.b4)){5I=4Q.7X(R)}q.14.3S(4Q);q.14.49(1q);q.1S.5g(5I)},R:C(R,54){R=R[0]||R;E 2x=q.1S.8K();E B=q.L.6n(R);B=q.1x.7B(B);if(B.1V(/<\/g)!==3O){R=$(B)[0]}q.K.1a();if(54!==O){q.14.54()}q.14.3S(R);q.14.49(O);q.K.4f();q.1S.ax(2x);F R},ok:C(R,x,y){R=R[0]||R;q.K.1a();E 14;if(1k.b5){E 3x=1k.b5(x,y);q.14.2R(3x.iF,3x.2x);q.14.49(1q);q.14.3S(R)}N if(1k.b6){14=1k.b6(x,y);14.3S(R)}N if(1s 1k.3f.b7!=\"1z\"){14=1k.3f.b7();14.b8(x,y);E 7Y=14.iG();7Y.b8(x,y);14.iH(\"iI\",7Y);14.7a()}},da:C(e,R){R=R[0]||R;E 14;E x=e.om,y=e.oo;if(1k.b5){E 3x=1k.b5(x,y);E 2X=1k.4O();14=2X.6c(0);14.2R(3x.iF,3x.2x);14.49(1q);14.3S(R)}N if(1k.b6){14=1k.b6(x,y);14.3S(R)}N if(1s 1k.3f.b7!=\"1z\"){14=1k.3f.b7();14.b8(x,y);E 7Y=14.iG();7Y.b8(x,y);14.iH(\"iI\",7Y);14.7a()}},iC:C(1r,B){E R=1k.3B('1i');R.3E='I-ie-5o';q.1Z.R(R);E 7Z=$(1r).B();7Z='<p>'+7Z.J(/<1i 1G=\"I-ie-5o\"><\\/1i>/gi,'<\/p>'+B+'<p>')+'<\/p>';7Z=7Z.J(/<p><\\/p>/gi,'');$(1r).2w(7Z)},iD:C(B){q.K.1a();q.14.54();E el=1k.3B(\"1j\");el.3y=B;E 4Q=1k.b3(),R,5I;4Z((R=el.b4)){5I=4Q.7X(R)}q.14.3S(4Q);q.14.49(O);q.K.4f()}}},1D:C(){F{3N:C(e){if(q.7m)F;E 1l=e.7R;E 4Y=(1l>=37&&1l<=40);q.1D.4c=e.9n||e.70;q.1D.1B=q.K.3w();q.1D.1r=q.K.6p();q.1D.Q=q.K.4e();q.1D.2G=q.L.b9(q.1D.1B,'2G');q.1D.29=q.L.b9(q.1D.1B,'29');q.1D.78=q.L.b9(q.1D.1B,'78');q.5O.3N(e,1l);if(q.L.7t()){q.1D.iJ(4Y,1l);q.1D.iK(e,1l)}q.1D.iL(4Y);q.1D.iM(e,1l);E iN=q.1W.2s('1D',e);if(iN===O){e.2t();F O}if(q.G.9R&&(q.L.1P('2H')||q.L.1P('4d'))&&(1l===q.3q.cl||1l===q.3q.fK)){E do=O;E $3U=O;if(q.1D.Q&&q.1D.Q.1o==='6G'){$3U=$(q.1D.Q).2q('3U',q.$T[0])}if($3U&&$3U.1h('3a').3c()[0]===q.1D.Q){do=1q}if(q.L.6Y()&&do){E R=$(q.G.5W);$3U.3C(R);q.1S.2R(R)}}if(q.G.9R&&1l===q.3q.cl){q.1D.iO()}if(!q.G.9R&&1l===q.3q.6M){e.2t();if(!q.14.4V)q.14.54();F}if(1l==q.3q.6M&&!e.71&&!e.9n&&!e.70){E iP=q.1W.2s('op',e);if(iP===O){e.2t();F O}if(q.1D.29&&q.1D.iQ(e)===1q){F O}E 1B,$1O;if(q.1D.2G){F q.1D.iR(e)}N if(q.1D.29||q.1D.78){1B=q.K.3w();$1O=$(1B).1O();if($1O.12!==0&&$1O[0].1o=='5e'){F q.1D.72(e)}N if(q.L.6Y()&&(1B&&1B!='6X')){F q.1D.9o(e)}N{F q.1D.72(e)}}N if(q.G.1K&&!q.1D.Q){1B=q.K.3w();$1O=$(q.1D.1B).1O();if($1O.12!==0&&$1O[0].1o=='5e'){F q.1D.72(e)}N if(1B!==O&&$(1B).3t('I-7C-3b')){q.1S.5g(1B);$(1B).2b().48();F q.1D.9o(e)}N{if(q.L.dp()){F q.1D.9o(e)}N if($1O.12===0&&1B===O&&1s $1O.oq!='1z'){F q.1D.72(e)}F q.1D.72(e)}}N if(q.G.1K&&q.1D.Q){3v($.1e(q.1D.iS,q),1)}N if(!q.G.1K&&q.1D.Q){3v($.1e(q.1D.iT,q),1);if(q.1D.Q.1o==='5w'){1B=q.K.3w();E $1r=$(1B).2q('li',q.$T[0]);E $2d=$1r.2q('3k,ol',q.$T[0]);if($1r.12!==0&&q.L.3A($1r.B())&&$2d.1O().12===0&&q.L.3A($2d.1h(\"li\").3c().B())){$2d.1h(\"li\").3c().1t();E R=$(q.G.5W);$2d.3C(R);q.1S.2R(R);F O}}}N if(!q.G.1K&&!q.1D.Q){F q.1D.iU(e)}}if(1l===q.3q.6M&&(e.9n||e.71)){F q.1D.iV(e)}if(1l===q.3q.cm||e.70&&1l===dq||e.70&&1l===dr){F q.1D.iW(e,1l)}if(1l===q.3q.7l||1l===q.3q.8x){E 23=q.K.6Z();if(23){E 2p=23.12;E 3c;2C(E i=0;i<2p;i++){E 3Q=$(23[i]).3Q('1M');if(3Q.12!==0){E 3u=q;$.1u(3Q,C(z,s){E $s=$(s);if($s.1N('7U')!='5x')F;3u.1W.2s('dh',s.4w,$s);3c=s})}N if(23[i].1o=='aW'){if(3c!=23[i]){q.1W.2s('dh',23[i].4w,$(23[i]));3c=23[i]}}}}}if(1l===q.3q.7l){E Q=q.K.4e();E iX=($(Q).1N('4E-2c')!=='os');if(Q&&iX&&q.14.4V&&q.L.iY()){q.3z.9k();e.2t();F}if(q.L.1P('4d')){E 4C=q.K.iZ();E ba=$(4C).4C()[0];if(4C&&4C.1o==='j0')$(4C).1t();if(ba&&ba.1o==='j0')$(ba).1t()}q.1D.j1();q.1D.j2(e)}q.1d.1T()},iJ:C(4Y,1l){if(!4Y&&(q.1W.7s()=='2A'||q.1W.7s()=='4Y')){q.1W.8H(O);if(q.1D.j3(1l)){q.26.1U()}}},j3:C(1l){E k=q.3q;E 55=[k.7l,k.8x,k.6M,k.a7,k.cm,k.fG,k.fH,k.fJ,k.fI];F($.3r(1l,55)==-1)?1q:O},iL:C(4Y){if(!4Y)F;if((q.1W.7s()=='2A'||q.1W.7s()=='4Y')){q.1W.8H(O);F}q.1W.8H('4Y')},iK:C(e,1l){if(q.1D.4c&&1l===90&&!e.71&&!e.j4&&q.G.26.12){e.2t();q.26.8E();F}N if(q.1D.4c&&1l===90&&e.71&&!e.j4&&q.G.8l.12!==0){e.2t();q.26.ag();F}N if(!q.1D.4c){if(1l==q.3q.7l||1l==q.3q.8x||(1l==q.3q.6M&&!e.9n&&!e.71)){q.26.1U()}}},iM:C(e,1l){if(q.1D.4c&&1l===65){q.L.j5()}N if(1l!=q.3q.fL&&!q.1D.4c){q.L.8I()}},iO:C(){E 2e=[q.1D.29,q.1D.2G,q.1D.78];2C(E i=0;i<2e.12;i++){if(2e[i]){q.1D.j6(2e[i]);F O}}},iV:C(e){q.26.1U();if(q.L.6Y()){F q.1D.9o(e)}F q.1D.72(e)},iW:C(e,1l){if(!q.G.eI)F 1q;if(q.L.3A(q.1d.1a())&&q.G.9U===O)F 1q;e.2t();E R;if(q.1D.2G&&!e.71){R=(q.G.6z)?1k.9p(8d(q.G.6z+1).31('\\aC')):1k.9p('\\t');q.1Z.R(R);q.1d.1T()}N if(q.G.9U!==O){R=1k.9p(8d(q.G.9U+1).31('\\aC'));q.1Z.R(R);q.1d.1T()}N{if(e.70&&1l===dr)q.3z.9k();N if(e.70&&1l===dq)q.3z.b0();N if(!e.71)q.3z.b0();N q.3z.9k()}F O},iS:C(){E 4F=q.K.4e();E bb=4F.3y.J(/<br\\s?\\/?>/gi,'');if((4F.1o==='7h'||4F.1o==='P')&&bb===''&&!$(4F).3t('I-T')){E br=1k.3B('br');$(4F).2w(br);q.1S.cJ(br);q.1d.1T();F O}},iT:C(){E 4F=q.K.4e();E bb=4F.3y.J(/<br\\s?\\/?>/gi,'');if(4F.1o==='7h'&&q.L.3A(bb)&&!$(4F).3t('I-T')){E p=1k.3B('p');p.3y=q.G.5X;$(4F).2w(p);q.1S.2R(p);q.1d.1T();F O}N if(q.G.ew&&4F.1o=='P'){$(4F).1L('1G').1L('1p')}},iU:C(e){e.2t();q.K.1a();E p=1k.3B('p');p.3y=q.G.5X;q.14.54();q.14.3S(p);q.1S.2R(p);q.1d.1T();F O},iQ:C(e){if(!q.L.6Y())F;E 5G=$.3h($(q.1D.Q).B());if(5G.3H(/(<br\\s?\\/?>){2}$/i)!=-1){e.2t();if(q.G.1K){E br=1k.3B('br');$(q.1D.29).3C(br);q.1S.cJ(br);$(q.1D.Q).B(5G.J(/<br\\s?\\/?>$/i,''))}N{E R=$(q.G.5W);$(q.1D.29).3C(R);q.1S.2R(R)}F 1q}F},j6:C(2k){if(!q.L.6Y())F;q.26.1U();if(q.G.1K){E 2b=$('<1j>').1F($.3h(q.$T.B())).2b();E 3c=2b.3c()[0];if(3c.1o=='6X'&&3c.3y===''){3c=2b.4C()[0]}if(q.L.6n(3c)!=q.L.6n(2k))F;E br=1k.3B('br');$(2k).3C(br);q.1S.5g(br)}N{if(q.$T.2b().3c()[0]!==2k)F;E R=$(q.G.5W);$(2k).3C(R);q.1S.2R(R)}},iR:C(e){e.2t();E R=1k.9p('\\n');q.K.1a();q.14.54();q.14.3S(R);q.1S.5g(R);q.1d.1T();F O},72:C(e){F q.1D.ds(e)},9o:C(e){F q.1D.ds(e,1q)},ds:C(e,j7){e.cC();q.K.1a();E 5J=1k.3B('br');if(q.L.1P('2H')){q.14.49(O);q.14.3K(q.14.cK,q.14.cL)}N{q.14.54()}q.14.3S(5J);E $bc=$(5J).1r(\"a\");if($bc.12>0){$bc.1h(5J).1t();$bc.3C(5J)}if(j7===1q){E $1O=$(5J).1O();if($1O.12!==0&&$1O[0].1o==='5e'&&q.L.dp()){q.1S.5g(5J);q.1d.1T();F O}E du=1k.3B('br');q.14.3S(du);q.1S.5g(du)}N{if(q.L.1P('2H')){E 3b=1k.3B('1i');3b.3y='&#9Y;';$(5J).3C(3b);q.14.7y(3b);q.14.gW(3b);$(3b).1t()}N{E 14=1k.9m();14.7y(5J);14.49(1q);E K=3n.4O();K.9l();K.4f(14)}}q.1d.1T();F O},j1:C(){E $1B=$(q.1D.1B);if($1B.1g().3H(/^\\6f$/g)===0){$1B.1t()}},j2:C(e){E $1B=$(q.1D.1B);E $1r=$(q.1D.1r);E 3a=$1B.2q('3a',q.$T[0]);if(3a.12!==0&&$1B.2q('li',q.$T[0])&&$1r.3Q('li').12===1){if(!q.L.3A($1B.1g()))F;e.2t();$1B.1t();$1r.1t();q.1S.2R(3a)}}}},2r:C(){F{3N:C(e){if(q.7m)F;E 1l=e.7R;q.2r.1B=q.K.3w();q.2r.1r=q.K.6p();E $1r=q.L.4G($(q.2r.1r).1r());E j8=q.1W.2s('2r',e);if(j8===O){e.2t();F O}if(!q.G.1K&&q.2r.1B.au===3&&q.2r.1B.12<=1&&(q.2r.1r===O||q.2r.1r.1o=='dv')){q.2r.bd()}if(!q.G.1K&&q.L.4G(q.2r.1B)&&q.2r.1B.1o==='7h'){q.2r.bd(O)}if(!q.G.1K&&$(q.2r.1r).3t('I-7C-3b')&&($1r===O||$1r[0].1o=='dv')){$(q.2r.1r).2b().48();q.2r.bd()}if(q.2z.am()&&q.2z.j9(1l))q.2z.30();if(1l===q.3q.8x||1l===q.3q.7l){if(q.L.1P('4d')){E 3a=$(q.1D.1B).2q('3a',q.$T[0]);if(3a.7q()!==0&&3a.1g()!==''){e.2t();F O}}q.1x.4u();if(q.1R.M){e.2t();q.M.7V();q.26.1U();q.M.1t(q.1R.M);q.1R.M=O;F O}q.$T.1h('p').1u($.1e(C(i,s){q.L.3V(i,$(s).B())},q));if(q.G.1K&&q.2r.1B&&q.2r.1B.1o=='7h'&&q.L.3A(q.2r.1B.3y)){$(q.2r.1B).3C(q.K.5j());q.K.3g();$(q.2r.1B).1t()}q.2r.ja();F q.2r.jb(e)}},bd:C(9q){E $1B=$(q.2r.1B);E R;if(9q===O){R=$('<p>').1F($1B.B())}N{R=$('<p>').1F($1B.9q())}$1B.2w(R);E 1O=$(R).1O();if(1s(1O[0])!=='1z'&&1O[0].1o=='5e'){1O.1t()}q.1S.3K(R)},ja:C(){E dw=C(){E B=$.3h(q.3y).J(/\\/t\\/n/g,'');if(B===''){$(q).1t()}};q.$T.1h('li').1u(dw);q.$T.1h('3k, ol').1u(dw)},jb:C(e){E B=$.3h(q.$T.B());if(!q.L.3A(B))F;e.2t();if(q.G.1K){q.$T.B(q.K.5j());q.K.3g()}N{q.$T.B(q.G.5W);q.2o.2R()}q.1d.1T();F O}}},1H:C(){F{2K:C(){q.G.dx=q.G.eY[q.G.1H]},1a:C(1y){F(1s q.G.dx[1y]!='1z')?q.G.dx[1y]:''}}},3I:C(){F{1Z:C(){q.26.1U();E 21=q.K.44();if(21[0]!==O&&q.3I.jc(21)){if(!q.L.1P('2H'))q.$T.2o();F}if(q.L.1P('2H')){q.3I.bf()}N{q.3I.jd()}},jc:C(21){E 8C=['li','3a','67','29','78','2G','dl','dt','dd'];E 3J=21[0].1o.3i();E 3c=q.K.je();3c=(1s 3c=='1z')?3J:3c.1o.3i();E dy=$.3r(3J,8C)!=-1;E jf=$.3r(3c,8C)!=-1;if((dy&&jf)||dy){F 1q}},bf:C(){q.L.9r();q.26.1U();q.1Z.R(1k.3B('hr'));q.L.bg();q.1d.1T()},jd:C(){q.26.1U();E dz='<p id=\"I-1Z-3I\"><br /><\/p>';if(q.G.1K)dz='<br id=\"I-1Z-3I\">';1k.47('ot',O,'<hr>'+dz);q.3I.jg();q.1d.1T()},jg:C(){E R=q.$T.1h('#I-1Z-3I');E 1O=$(R).1O()[0];E 1Q=1O;if(q.L.1P('4d')&&1O&&1O.3y===''){1Q=$(1O).1O()[0];$(1O).1t()}if(1Q){R.1t();if(!q.G.1K){q.$T.2o();q.3I.2R(1Q)}}N{R.1L('id');q.3I.2R(R[0])}},2R:C(R){if(1s R==='1z')F;E jh=1k.9p('\\6f');q.K.1a();q.14.2R(R,0);q.14.3S(jh);q.14.49(1q);q.K.4f()}}},V:C(){F{2O:C(e){if(1s e!='1z'&&e.2t)e.2t();if(!q.1R.dA('a')){q.1b.2K('V',q.1H.1a('a3'),ji)}N{q.1b.2K('V',q.1H.1a('ce'),ji)}q.1b.db();E jj=!q.1R.dA('a')?q.1H.1a('1Z'):q.1H.1a('7j');q.V.jk=q.1b.dc(jj);q.K.1a();q.V.jl();q.V.jm();if(q.V.1Q=='7S')$('#I-V-7T').6m('aO',1q);q.V.$9s=$('#I-V-2h');q.V.$dB=$('#I-V-2h-1g');q.V.$dB.2J(q.V.1g);q.V.$9s.2J(q.V.2h);q.V.jk.on('2A',$.1e(q.V.1Z,q));$('.I-V-3o').1t();q.K.3m();q.1b.2O();q.V.$9s.2o()},jm:C(){E jn=3u.jo.2m.J(/\\/$/i,'');if(1s q.V.2h!==\"1z\"){q.V.2h=q.V.2h.J(jn,'');q.V.2h=q.V.2h.J(/^\\/#/,'#');q.V.2h=q.V.2h.J('a4:','');if(!q.G.58){E 3L=25 2l('^(8g|9h|5A)://'+3u.jo.ou,'i');q.V.2h=q.V.2h.J(3L,'')}}},jl:C(){q.V.$R=O;E $el=$(q.K.3w()).2q('a',q.$T[0]);if($el.12!==0&&$el[0].1o==='A'){q.V.$R=$el;q.V.2h=$el.1c('2m');q.V.1g=$el.1g();q.V.1Q=$el.1c('1Q')}N{q.V.1g=q.2X.4s();q.V.2h='';q.V.1Q=''}},1Z:C(){q.3e.1t();E 1Q='';E V=q.V.$9s.2J();E 1g=q.V.$dB.2J().J(/(<([^>]+)>)/ig,\"\");if($.3h(V)===''){q.V.$9s.2g('I-3D-6x').on('2r',C(){$(q).2U('I-3D-6x');$(q).3d('2r')});F}if(V.3H('@')!=-1&&/(8g|9h|5A):\\/\\//i.bh(V)===O){V=V.J('a4:','');V='a4:'+V}N if(V.3H('#')!==0){if($('#I-V-7T').6m('aO')){1Q='7S'}E 7W='((hY--)?[a-7H-9]+(-[a-7H-9]+)*\\\\.)+[a-z]{2,}';E 3L=25 2l('^(8g|9h|5A)://'+7W,'i');E aR=25 2l('^'+7W,'i');E jp=25 2l('\\.(B|ov)$','i');if(V.3H(3L)==-1&&V.3H(jp)==-1&&V.3H(aR)===0&&q.G.58){V=q.G.58+'://'+V}}q.V.1U(1g,V,1Q);q.1b.4m()},1U:C(1g,V,1Q){1g=$.3h(1g.J(/<|>/g,''));q.K.3g();E 21=q.K.44();if(1g===''&&V==='')F;if(1g===''&&V!=='')1g=V;if(q.V.$R){q.26.1U();E $V=q.V.$R,$el=$V.3Q();if($el.12>0){4Z($el.12){$el=$el.3Q()}$el=$el.2j()}N{$el=$V}$V.1c('2m',V);$el.1g(1g);if(1Q!==''){$V.1c('1Q',1Q)}N{$V.1L('1Q')}q.K.9t($V);q.1d.1T()}N{if(q.L.1P('4d')&&q.V.1g===''){E $a=$('<a />').1c('2m',V).1g(1g);if(1Q!=='')$a.1c('1Q',1Q);$a=$(q.1Z.R($a));if(q.G.1K){$a.3C('&5h;')}q.K.9t($a)}N{E $a;if(q.L.1P('2H')){$a=$('<a 2m=\"'+V+'\">').1g(1g);if(1Q!=='')$a.1c('1Q',1Q);$a=$(q.1Z.R($a));if(q.K.dC().1V(/\\s$/)){$a.3C(\" \")}q.K.9t($a)}N{1k.47('ow',O,V);$a=$(q.K.3w()).2q('a',q.$T[0]);if(q.L.1P('4d')){$a=$('a[jq=\"\"]')}if(1Q!=='')$a.1c('1Q',1Q);$a.1L('1p').1L('jq');if(q.K.dC().1V(/\\s$/)){$a.3C(\" \")}if(q.V.1g!==''||q.V.1g!=1g){if(!q.G.1K&&21&&21.12<=1){$a.1g(1g)}N if(q.G.1K){$a.1g(1g)}q.K.9t($a)}}}q.1d.1T();q.1W.2s('ox',$a)}3v($.1e(C(){q.1R.5K()},q),5)},6J:C(e){if(1s e!='1z'&&e.2t){e.2t()}E 23=q.K.6Z();if(!23)F;q.26.1U();E 2p=23.12;E 5K=[];2C(E i=0;i<2p;i++){if(23[i].1o==='A'){5K.2N(23[i])}E $R=$(23[i]).2q('a',q.$T[0]);$R.2w($R.2b())}q.1W.2s('oy',5K);$('.I-V-3o').1t();q.1d.1T()},7p:C(3E){q.V.8D(3E,'7p')},2g:C(3E){q.V.8D(3E,'2g')},2U:C(3E){q.V.8D(3E,'2U')},8D:C(3E,1C){E 5K=q.K.jr(['a']);if(5K===O)F;$.1u(5K,C(){$(q)[1C](3E)})}}},2z:C(){F{j9:C(1l){F 1l==q.3q.6M||1l==q.3q.fF},am:C(){F q.G.9T&&(q.G.bU||q.G.bV||q.G.8i)&&!q.L.51('8q')},30:C(){E 2z=q.2z,G=q.G;q.$T.1h(\":6b(4I,1M,a,2G)\").oz().2b().cp(C(){F q.au===3&&$.3h(q.6d)!=\"\"&&!$(q).1r().is(\"2G\")&&(q.6d.1V(G.2z.4r.6K)||q.6d.1V(G.2z.4r.6L)||q.6d.1V(G.2z.4r.M)||q.6d.1V(G.2z.4r.2h))}).1u(C(){E 1g=$(q).1g(),B=1g;if(G.8i&&(B.1V(G.2z.4r.6K)||B.1V(G.2z.4r.6L))){B=2z.8i(B)}N if(G.bV&&B.1V(G.2z.4r.M)){B=2z.js(B)}N if(G.bU){B=2z.9T(B)}$(q).as(1g.J(1g,B)).1t()});E jt=q.$T.1h('.I-2z-42').1u(C(){E $el=$(q);$el.2U('I-2z-42');if($el.1c('1G')==='')$el.1L('1G');F $el[0]});3v($.1e(C(){q.1R.2K();q.1W.2s('2z',jt)},q),6S);q.1d.1T()},8i:C(B){E dD='<4I 1G=\"I-2z-42\" 2M=\"oA\" 3p=\"oB\" 4w=\"',dE='\" oC=\"0\" oD><\/4I>';if(B.1V(q.G.2z.4r.6K)){B=B.J(q.G.2z.4r.6K,dD+'//7k.6K.a6/7F/$1'+dE)}if(B.1V(q.G.2z.4r.6L)){B=B.J(q.G.2z.4r.6L,dD+'//oE.6L.a6/6H/$2'+dE)}F B},js:C(B){E 3R=B.1V(q.G.2z.4r.M);if(3R){B=B.J(B,'<1M 4w=\"'+3R+'\" 1G=\"I-2z-42\" />');if(q.G.1K){if(!q.L.3A(q.1d.1a())){B='<br>'+B}}B+='<br>'}F B},9T:C(B){E 3R=B.1V(q.G.2z.4r.2h);if(3R){3R=$.oF(3R,C(v,k){F $.3r(v,3R)===k});E 12=3R.12;2C(E i=0;i<12;i++){E 2m=3R[i],1g=2m,58=q.G.58+'://';if(2m.1V(/(5A?|9h):\\/\\//i)!==3O){58=\"\"}if(1g.12>q.G.bR){1g=1g.aL(0,q.G.bR)+'...'}if(1g.3H('%')===-1){1g=ju(1g)}E dF=\"\\\\b\";if($.3r(2m.bM(-1),[\"/\",\"&\",\"=\"])!=-1){dF=\"\"}E jv=25 2l('('+2m.J(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g,\"\\\\$&\")+dF+')','g');B=B.J(jv,'<a 2m=\"'+58+$.3h(2m)+'\" 1G=\"I-2z-42\">'+$.3h(1g)+'<\/a>')}}F B}}},2d:C(){F{3l:C(4H){q.3e.1t();if(!q.L.1P('2H')&&!q.G.1K){q.$T.2o()}q.26.1U();q.K.3m();E 1r=q.K.6p();E $2d=$(1r).2q('ol, 3k',q.$T[0]);if(!q.L.4G($2d)&&$2d.12!==0){$2d=O}E dG,dH;E 1t=O;if($2d&&$2d.12){1t=1q;E dI=$2d[0].1o;dG=(4H==='5r'&&dI==='8r');dH=(4H==='5q'&&dI==='8s')}if(dG){q.L.4t($2d,'ol')}N if(dH){q.L.4t($2d,'3k')}N{if(1t){q.2d.1t(4H,$2d)}N{q.2d.1Z(4H)}}q.K.3g();q.1d.1T()},1Z:C(4H){E 1B=q.K.3w();E $3a=$(1B).2q('3a, 67',q.$T[0]);if(q.L.1P('2H')&&q.G.1K){q.2d.bf(4H)}N{1k.47('1Z'+4H)}E 1r=q.K.6p();E $2d=$(1r).2q('ol, 3k',q.$T[0]);if($3a.12!==0){E jw=$3a.9q();$3a.3C(jw).1t('')}if(q.L.3A($2d.1h('li').1g())){E $3Q=$2d.3Q('li');$3Q.1h('br').1t();$3Q.1F(q.K.5j());if(q.G.1K&&q.L.1P('4d')&&$3Q.7q()==2&&q.L.3A($3Q.eq(1).1g())){$3Q.eq(1).1t()}}if($2d.12){E $80=$2d.1r();if(q.L.4G($80)&&$80[0].1o!='5w'&&q.L.6U($80[0])){$80.2w($80.2b())}}if(!q.L.1P('2H')){q.$T.2o()}q.1x.4u()},bf:C(4H){E 4K=q.K.62('1j');E bi=$(4K).B();E 81=(4H=='5r')?$('<ol>'):$('<3k>');E 9u=$('<li>');if($.3h(bi)===''){9u.1F(q.K.5j());81.1F(9u);q.$T.1h('#K-2u-1').2w(81)}N{E 9v=bi.4o(/<br\\s?\\/?>/gi);if(9v){2C(E i=0;i<9v.12;i++){if($.3h(9v[i])!==''){81.1F($('<li>').B(9v[i]))}}}N{9u.1F(bi);81.1F(9u)}$(4K).2w(81)}},1t:C(4H,$2d){if($.3r('3k',q.K.44()))4H='5q';1k.47('1Z'+4H);E $1B=$(q.K.3w());q.3z.b1();if(!q.G.1K&&$1B.2q('li, 67, 3a',q.$T[0]).12===0){1k.47('ae',O,'p');q.$T.1h('3k, ol, 29').1u($.1e(q.L.3V,q))}E $3U=$(q.K.3w()).2q('3U',q.$T[0]);E $4C=$3U.4C();if(!q.G.1K&&$3U.12!==0&&$4C.12!==0&&$4C[0].1o=='5e'){$4C.1t()}q.1x.4u()}}},1b:C(){F{bj:{},gC:C(){q.G.1b={hP:6k()+'<4b id=\"I-1b-M-7j\">'+'<2L>'+q.1H.1a('1J')+'<\/2L>'+'<3D 1m=\"1g\" id=\"I-M-1J\" />'+'<2L 1G=\"I-M-V-43\">'+q.1H.1a('V')+'<\/2L>'+'<3D 1m=\"1g\" id=\"I-M-V\" 1G=\"I-M-V-43\" 4M-2L=\"'+q.1H.1a('V')+'\" />'+'<2L 1G=\"I-M-V-43\"><3D 1m=\"jx\" id=\"I-M-V-7T\" 4M-2L=\"'+q.1H.1a('a5')+'\"> '+q.1H.1a('a5')+'<\/2L>'+'<2L 1G=\"I-M-4g-43\">'+q.1H.1a('cj')+'<\/2L>'+'<7a 1G=\"I-M-4g-43\" id=\"I-M-5d\" 4M-2L=\"'+q.1H.1a('cj')+'\">'+'<43 1E=\"5x\">'+q.1H.1a('5x')+'<\/43>'+'<43 1E=\"2c\">'+q.1H.1a('2c')+'<\/43>'+'<43 1E=\"5y\">'+q.1H.1a('5y')+'<\/43>'+'<43 1E=\"4q\">'+q.1H.1a('4q')+'<\/43>'+'<\/7a>'+'<\/4b>',M:6k()+'<4b id=\"I-1b-M-1Z\">'+'<1j id=\"I-1b-M-4h\"><\/1j>'+'<\/4b>',1Y:6k()+'<4b id=\"I-1b-1Y-1Z\">'+'<1j id=\"I-1b-1Y-1w-2Q\">'+'<2L>'+q.1H.1a('5Y')+'<\/2L>'+'<3D 1m=\"1g\" id=\"I-5Y\" 4M-2L=\"'+q.1H.1a('5Y')+'\" /><br><br>'+'<1j id=\"I-1b-1Y-1w\"><\/1j>'+'<\/1j>'+'<\/4b>',V:6k()+'<4b id=\"I-1b-V-1Z\">'+'<2L>ck<\/2L>'+'<3D 1m=\"2h\" id=\"I-V-2h\" 4M-2L=\"ck\" />'+'<2L>'+q.1H.1a('1g')+'<\/2L>'+'<3D 1m=\"1g\" id=\"I-V-2h-1g\" 4M-2L=\"'+q.1H.1a('1g')+'\" />'+'<2L><3D 1m=\"jx\" id=\"I-V-7T\"> '+q.1H.1a('a5')+'<\/2L>'+'<\/4b>'};$.7n(q.G,q.G.1b)},cG:C(1y,2B){q.1b.bj[1y]=2B},oG:C($1b){q.1b.$9w=$('<1j>').1c('id','I-1b-9w');$1b.6P(q.1b.$9w)},oH:C(id,1y,9x){E $5z=$('<a 2m=\"#\" 3W=\"5z'+id+'\">').1g(1y);if(9x){$5z.2g('9x')}E 3u=q;$5z.on('2A',C(e){e.2t();$('.I-5z').3s();$('.I-'+$(q).1c('3W')).2O();3u.1b.$9w.1h('a').2U('9x');$(q).2g('9x')});q.1b.$9w.1F($5z)},oI:C(1y,jy){q.G.1b[1y]=jy},jz:C(1y){F q.G.1b[1y]},oJ:C(){F q.$bk.1h('4b')},2K:C(6q,1J,2M){q.1b.6q=6q;q.1b.2M=2M;q.1b.2f();q.1b.jA();q.1b.jB(1J);q.1b.jC();q.1b.jD();if(1s q.1b.bj[6q]!='1z'){q.1b.bj[6q].5N(q)}},2O:C(){q.L.d9();if(q.L.6W()){q.1b.dJ()}N{q.1b.bl()}if(q.G.cb){q.$4D.2g(\"I-1b-hK\")}q.$7M.2O();q.$4D.2O();q.$1b.1c('6y','-1');q.$1b.2o();q.1b.jE();q.L.9r();if(!q.L.6W()){3v($.1e(q.1b.bl,q),0);$(3n).on('4P.I-1b',$.1e(q.1b.4P,q))}q.1W.2s('oK',q.1b.6q,q.$1b);$(1k).3d('oL.1b');q.$1b.1h('3D[1m=1g],3D[1m=2h],3D[1m=oM]').on('1D.I-1b',$.1e(q.1b.jF,q))},bl:C(){E 3p=q.$1b.oN();E bm=$(3n).3p();E 82=$(3n).2M();if(q.1b.2M>82){q.$1b.1N({2M:'96%',6o:(bm/2-3p/2)+'px'});F}if(3p>bm){q.$1b.1N({2M:q.1b.2M+'px',6o:'oO'})}N{q.$1b.1N({2M:q.1b.2M+'px',6o:(bm/2-3p/2)+'px'})}},dJ:C(){q.$1b.1N({2M:'96%',6o:'2%'})},4P:C(){if(q.L.6W()){q.1b.dJ()}N{q.1b.bl()}},jB:C(1J){q.$9y.B(1J)},jD:C(){q.$bk.B(q.1b.jz(q.1b.6q))},jC:C(){if(1s $.fn.jG==='1z')F;q.$1b.jG({i8:q.$9y});q.$9y.1N('oP','oQ')},jF:C(e){if(e.7R!=13)F;e.2t();q.$1b.1h('1v.I-1b-83-22').2A()},db:C(){E 1v=$('<1v>').2g('I-1b-22 I-1b-4m-22').B(q.1H.1a('fm'));1v.on('2A',$.1e(q.1b.4m,q));q.$9z.1F(1v)},hR:C(2L){F q.1b.dK(2L,'7L')},dc:C(2L){F q.1b.dK(2L,'83')},dK:C(2L,3E){E 1v=$('<1v>').2g('I-1b-22').2g('I-1b-'+3E+'-22').B(2L);q.$9z.1F(1v);F 1v},jE:C(){E 4i=q.$9z.1h('1v');E dL=4i.12;if(dL===0)F;4i.1N('2M',(6S/dL)+'%')},2f:C(){q.1b.jH();q.$4D=$('<1j id=\"I-1b-2Q\"/>').3s();q.$1b=$('<1j id=\"I-1b\" 8F=\"oR\" 4M-oS=\"I-1b-79\" />');q.$9y=$('<79 id=\"I-1b-79\"/>');q.$9B=$('<1v 1m=\"1v\" id=\"I-1b-4m\" 6y=\"1\" 4M-2L=\"oT\" />').B('&oU;');q.$bk=$('<1j id=\"I-1b-3f\" />');q.$9z=$('<c1 />');q.$1b.1F(q.$9y);q.$1b.1F(q.$9B);q.$1b.1F(q.$bk);q.$1b.1F(q.$9z);q.$4D.1F(q.$1b);q.$4D.ao(1k.3f)},jH:C(){q.$7M=$('<1j id=\"I-1b-oV\">').3s();$('3f').6P(q.$7M)},jA:C(){q.$9B.on('2A.I-1b',$.1e(q.1b.4m,q));$(1k).on('2r.I-1b',$.1e(q.1b.9c,q));q.$T.on('2r.I-1b',$.1e(q.1b.9c,q));q.$4D.on('2A.I-1b',$.1e(q.1b.4m,q))},jI:C(){q.$9B.3d('2A.I-1b');$(1k).3d('2r.I-1b');q.$T.3d('2r.I-1b');q.$4D.3d('2A.I-1b');$(3n).3d('4P.I-1b')},9c:C(e){if(e.7R!=q.3q.a7)F;q.1b.4m(O)},4m:C(e){if(e){if(!$(e.1Q).3t('I-1b-4m-22')&&e.1Q!=q.$9B[0]&&e.1Q!=q.$4D[0]){F}e.2t()}if(!q.$4D)F;q.1b.jI();q.L.aN();q.$7M.1t();q.$4D.jJ('oW',$.1e(C(){q.$4D.1t();3v($.1e(q.L.bg,q),0);if(e!==1z)q.K.3g();$(1k.3f).1N('bn',q.1b.oX);q.1W.2s('oY',q.1b.6q)},q))}}},1R:C(){F{2K:C(){if(1s q.G.hJ!=\"1z\")F;if(q.L.1P('2H')){E 3u=q;q.$T.1h('2G, 1d').on('ap',C(){3u.$T.1c('5f',O);$(q).1c('5f',1q)}).on('aq',C(){3u.$T.1c('5f',1q);$(q).1L('5f')})}q.1R.aS();q.1R.5K()},1A:C(e,2i){q.1R.4i(e,2i);q.1R.7i()},dA:C($el,$1B){if(1s $1B=='1z'){E $1B=$(q.K.3w())}F $1B.is($el)||$1B.jK($el).12>0},7i:C(){E $1B=$(q.K.3w());$.1u(q.G.1R.7i,$.1e(C(1l,1E){E 1R=1E.1R,2k=1R.2k,$2y=1E.2y,dM=1s 1R['in']!='1z'?1R['in']:O,dN=1s 1R['2n']!='1z'?1R['2n']:O;if($1B.2q(2k).7q()>0){q.1R.dO($2y,dM,dN)}N{q.1R.dO($2y,dN,dM)}},q))},dO:C($2y,9C,bo){if(bo&&1s bo['1c']!='1z'){q.1R.dP($2y,bo.1c,1q)}if(1s 9C['1c']!='1z'){q.1R.dP($2y,9C.1c)}if(1s 9C['1J']!='1z'){$2y.1g(9C['1J'])}},dP:C($2y,jL,dQ){$.1u(jL,C(1l,1E){if(1l=='1G'){if(!dQ){$2y.2g(1E)}N{$2y.2U(1E)}}N{if(!dQ){$2y.1c(1l,1E)}N{$2y.1L(1l)}}})},cH:C($2y,2i,2V){if(1s 2V.1R==\"1z\")F;2V.2y=$2y;q.G.1R.7i.2N(2V)},4i:C(e,2i){E 1B=q.K.3w();E 1r=q.K.6p();if(e!==O){q.1v.cF()}N{q.1v.cF(2i)}if(e===O&&2i!=='B'){if($.3r(2i,q.G.9X)!=-1)q.1v.oZ(2i);F}$.1u(q.G.c2,$.1e(C(1l,1E){E bp=$(1r).2q(1l,q.$T[0]);E dR=$(1B).2q(1l,q.$T[0]);if(bp.12!==0&&!q.L.4G(bp))F;if(!q.L.4G(dR))F;if(bp.12!==0||dR.2q(1l,q.$T[0]).12!==0){q.1v.8M(1E)}},q));E $1r=$(1r).2q(q.G.8o.4s().3i(),q.$T[0]);if(q.L.4G(1r)&&$1r.12){E 5d=($1r.1N('1g-5d')==='')?'2c':$1r.1N('1g-5d');q.1v.8M('5d'+5d)}},p0:C(Y,2i){q.G.9X.2N(2i);q.G.c2[Y]=2i},aS:C(){q.$T.1h('1M').1u($.1e(C(i,1M){E $1M=$(1M);$1M.2q('a',q.$T[0]).on('2A',C(e){e.2t()});if(q.L.1P('2H'))$1M.1c('p1','on');q.M.hZ($1M)},q));$(1k).on('2A.I-M-7L.'+q.2F,$.1e(C(e){q.1R.M=O;if(e.1Q.1o=='aW'&&q.L.4G(e.1Q)){q.1R.M=(q.1R.M&&q.1R.M==e.1Q)?O:e.1Q}},q))},5K:C(){if(!q.G.eA)F;q.$T.1h('a').on('5D.I.'+q.2F+' 2A.I.'+q.2F,$.1e(q.1R.jM,q));q.$T.on('5D.I.'+q.2F+' 2A.I.'+q.2F,$.1e(q.1R.dS,q));$(1k).on('5D.I.'+q.2F+' 2A.I.'+q.2F,$.1e(q.1R.dS,q))},jN:C($V){F $V.2x()},jM:C(e){E $el=$(e.1Q);if($el[0].1o=='aW')F;if($el[0].1o!=='A')$el=$el.2q('a',q.$T[0]);if($el[0].1o!=='A')F;E $V=$el;E 3x=q.1R.jN($V);E 3o=$('<1i 1G=\"I-V-3o\"><\/1i>');E 2m=$V.1c('2m');if(2m===1z){2m=''}if(2m.12>24)2m=2m.aL(0,24)+'...';E jO=$('<a 2m=\"'+$V.1c('2m')+'\" 1Q=\"7S\" />').B(2m).2g('I-V-3o-83');E jP=$('<a 2m=\"#\" />').B(q.1H.1a('7j')).on('2A',$.1e(q.V.2O,q)).2g('I-V-3o-83');E jQ=$('<a 2m=\"#\" />').B(q.1H.1a('6J')).on('2A',$.1e(q.V.6J,q)).2g('I-V-3o-83');3o.1F(jO).1F(' | ').1F(jP).1F(' | ').1F(jQ);3o.1N({2W:(3x.2W+5F($V.1N('3I-3p'),10))+'px',2c:3x.2c+'px'});$('.I-V-3o').1t();$('3f').1F(3o)},dS:C(e){e=e.7r||e;E 1Q=e.1Q;E $1r=$(1Q).2q('a',q.$T[0]);if($1r.12!==0&&$1r[0].1o==='A'&&1Q.1o!=='A'){F}N if((1Q.1o==='A'&&q.L.4G(1Q))||$(1Q).3t('I-V-3o-83')){F}$('.I-V-3o').1t()}}},2T:C(){F{2K:C(B){if(q.G.1K)F B;if(B===''||B==='<p><\/p>')F q.G.5W;B=B+\"\\n\";q.2T.bq=[];q.2T.z=0;B=B.J(/(<br\\s?\\/?>){1,}\\n?<\\/29>/gi,'<\/29>');B=q.2T.jR(B);B=q.2T.jS(B);B=q.2T.jT(B);B=q.2T.jU(B);B=q.2T.8z(B);B=q.2T.jV(B);B=B.J(25 2l('<br\\\\s?/?>\\n?<('+q.G.bZ.31('|')+')(.*?[^>])>','gi'),'<p><br /><\/p>\\n<$1$2>');F $.3h(B)},jR:C(B){E $1j=$('<1j />').1F(B);$1j.1h('29 p').2w(C(){F $(q).1F('<br />').2b()});B=$1j.B();$1j.1h(q.G.bZ.31(', ')).1u($.1e(C(i,s){q.2T.z++;q.2T.bq[q.2T.z]=s.7I;B=B.J(s.7I,'\\n{J'+q.2T.z+'}')},q));F B},jS:C(B){E dT=B.1V(/<!--([\\w\\W]*?)-->/gi);if(!dT)F B;$.1u(dT,$.1e(C(i,s){q.2T.z++;q.2T.bq[q.2T.z]=s;B=B.J(s,'\\n{J'+q.2T.z+'}')},q));F B},jV:C(B){$.1u(q.2T.bq,C(i,s){s=(1s s!=='1z')?s.J(/\\$/g,'&#36;'):s;B=B.J('{J'+i+'}',s)});F B},jU:C(B){E 4R=B.4o(25 2l('\\n','g'),-1);B='';if(4R){E 2p=4R.12;2C(E i=0;i<2p;i++){if(!4R.p2(i))F;if(4R[i].3H('{J')==-1){4R[i]=4R[i].J(/<p>\\n\\t?<\\/p>/gi,'');4R[i]=4R[i].J(/<p><\\/p>/gi,'');if(4R[i]!==''){B+='<p>'+4R[i].J(/^\\n+|\\n+$/g,\"\")+\"<\/p>\"}}N B+=4R[i]}}F B},jT:C(B){B=B.J(/<br \\/>\\s*<br \\/>/gi,\"\\n\\n\");B=B.J(/<br\\s?\\/?>\\n?<br\\s?\\/?>/gi,\"\\n<br /><br />\");B=B.J(25 2l(\"\\r\\n\",'g'),\"\\n\");B=B.J(25 2l(\"\\r\",'g'),\"\\n\");B=B.J(25 2l(\"/\\n\\n+/\"),'g',\"\\n\\n\");F B},8z:C(B){B=B.J(25 2l('<\/29><\/p>','gi'),'<\/29>');B=B.J(25 2l('<p><\/29>','gi'),'<\/29>');B=B.J(25 2l('<p><29>','gi'),'<29>');B=B.J(25 2l('<29><\/p>','gi'),'<29>');B=B.J(25 2l('<p><p ','gi'),'<p ');B=B.J(25 2l('<p><p>','gi'),'<p>');B=B.J(25 2l('<\/p><\/p>','gi'),'<\/p>');B=B.J(25 2l('<p>\\\\s?<\/p>','gi'),'');B=B.J(25 2l(\"\\n<\/p>\",'gi'),'<\/p>');B=B.J(25 2l('<p>\\t?\\t?\\n?<p>','gi'),'<p>');B=B.J(25 2l('<p>\\t*<\/p>','gi'),'');F B}}},5o:C(){F{3N:C(e){if(!q.G.ex){3v($.1e(q.1d.1T,q),1);F}q.7m=1q;q.26.1U();q.K.3m();q.L.9r();q.5o.jW();$(3n).on('6l.I-jX',$.1e(C(){$(3n).3X(q.bs)},q));3v($.1e(C(){E B=q.$5c.B();q.$5c.1t();q.K.3g();q.L.bg();q.5o.1Z(B);$(3n).3d('6l.I-jX');if(q.2z.am()){q.2z.30()}},q),1)},jW:C(){q.$5c=$('<1j>').B('').1c('5f','1q').1N({4g:'7Q',2M:0,2W:0,2c:'-p3'});if(q.L.1P('2H')){q.$2Q.1F(q.$5c)}N{E $dU=$('.1b-3f:bt');if($dU.12>0){$dU.1F(q.$5c)}N{$('3f').1F(q.$5c)}}q.$5c.1a(0).2o()},1Z:C(B){B=q.1W.2s('p4',B);B=(q.L.8W())?q.1x.8U(B,O):q.1x.8U(B);B=q.1W.2s('5o',B);if(q.L.8W()){q.1Z.1U(B,O)}N{q.1Z.B(B,O)}q.L.8I();q.7m=O;3v($.1e(q.1x.4u,q),10);3v($.1e(C(){E jY=q.$T.1h('1i');$.1u(jY,C(i,s){E B=s.3y.J(/\\6f/,'');if(B===''&&s.4z.12===0)$(s).1t()})},q),10)}}},3e:C(){F{aa:C(){if(!q.3e.is())F;q.$T.1c('3e',q.$2k.1c('3e'));q.3e.3l();q.$T.on('1D.I-3e',$.1e(q.3e.3l,q))},3l:C(){3v($.1e(C(){E 1C=q.L.3A(q.$T.B(),O)?'2g':'2U';q.$T[1C]('I-3e')},q),5)},1t:C(){q.$T.2U('I-3e')},is:C(){if(q.G.3e){F q.$2k.1c('3e',q.G.3e)}N{F!(1s q.$2k.1c('3e')=='1z'||q.$2k.1c('3e')==='')}}}},5p:C(){F{2O:C(){$(1k.3f).1F($('<1j id=\"I-5p\"><1i><\/1i><\/1j>'));$('#I-5p').p5()},3s:C(){$('#I-5p').jJ(p6,C(){$(q).1t()})}}},K:C(){F{1a:C(){q.2X=1k.4O();if(1k.4O&&q.2X.6c&&q.2X.7A){q.14=q.2X.6c(0)}N{q.14=1k.9m()}},4f:C(){4T{q.2X.9l()}4U(e){}q.2X.4f(q.14)},3w:C(){E el=O;q.K.1a();if(q.2X&&q.2X.7A>0){el=q.2X.6c(0).jZ}F q.L.4G(el)},6p:C(53){53=53||q.K.3w();if(53){F q.L.4G($(53).1r()[0])}F O},iZ:C(){F 3n.4O().k0.p7},p8:C(){F 3n.4O().k0.p9},4e:C(R){R=R||q.K.3w();4Z(R){if(q.L.7x(R.1o)){F($(R).3t('I-T'))?O:R}R=R.pa}F O},dm:C(23,2e){q.K.1a();if(q.14&&q.14.4V){F O}E 6r=[];23=(1s 23=='1z'||23===O)?q.K.6Z():23;E 4J=q.G.4J;4J.2N('1i');if(1s 2e!=='1z'){2C(E i=0;i<2e.12;i++){4J.2N(2e[i])}}$.1u(23,$.1e(C(i,R){if($.3r(R.1o.3i(),4J)!=-1){6r.2N(R)}},q));F(6r.12===0)?O:6r},jr:C(2e){q.K.1a();if(q.14&&q.14.4V){F O}E 6r=[];E 23=q.K.6Z();$.1u(23,$.1e(C(i,R){if($.3r(R.1o.3i(),2e)!=-1){6r.2N(R)}},q));F(6r.12===0)?O:6r},44:C(23){q.K.1a();if(q.14&&q.14.4V){F[q.K.4e()]}E 21=[];23=(1s 23=='1z')?q.K.6Z():23;$.1u(23,$.1e(C(i,R){if(q.L.6U(R)){21.2N(R)}},q));F(21.12===0)?[q.K.4e()]:21},je:C(){F q.K.pb},6Z:C(){q.K.1a();E 84=q.K.dV(1);E 9D=q.K.dV(2);if(q.14.4V===O){if(3n.4O){E 2X=3n.4O();if(2X.7A>0){E 14=2X.6c(0);E k1=14.jZ,dW=14.dW;E 85=14.7z();85.49(O);85.3S(9D);85.2R(k1,dW);85.49(1q);85.3S(84);14.7y(84);14.gX(9D);2X.9l();2X.4f(14)}}}N{q.K.k2(q.14,84,1q);9D=84}E 23=[];E 9E=0;E 3u=q;q.$T.1h('*').1u(C(){if(q==84){E 1r=$(q).1r();if(1r.12!==0&&1r[0].1o!='dv'&&3u.L.4G(1r[0])){23.2N(1r[0])}23.2N(q);9E=1}N{if(9E>0){23.2N(q);9E=9E+1}}if(q==9D){F O}});E dX=[];E 2p=23.12;2C(E i=0;i<2p;i++){if(23[i].id!='23-2u-1'&&23[i].id!='23-2u-2'){dX.2N(23[i])}}q.K.k3();F dX},dV:C(6s){F $('<1i id=\"23-2u-'+6s+'\" 1G=\"I-23-2u\" 1f-3M=\"I\">'+q.G.5X+'<\/1i>')[0]},k2:C(14,R,1m){E 14=14.7z();4T{14.49(1m);14.3S(R)}4U(e){}},k3:C(){$(1k).1h('1i.I-23-2u').1t();q.$T.1h('1i.I-23-2u').1t()},pc:C(2a,2j){q.1S.ax(2a,2j)},62:C(Y){q.K.1a();if(q.14.4V)F O;E 4K=1k.3B(Y);4K.7X(q.14.pd());q.14.3S(4K);F 4K},9t:C(R){if(q.L.1P('4d')){R=R[0]||R;E 14=1k.9m();14.8Q(R)}N{q.1S.1U(R,0,R,1)}},bu:C(){q.K.1a();q.14.8Q(q.$T[0]);q.K.4f()},1t:C(){q.K.1a();q.2X.9l()},3m:C(){q.K.k4()},k4:C(){q.K.1a();E 6t=q.K.6R(1);q.K.dY(q.14,6t,1q);if(q.14.4V===O){E 9F=q.K.6R(2);q.K.dY(q.14,9F,O)}q.k5=q.$T.B()},6R:C(6s){if(1s 6s=='1z')6s=1;F $('<1i id=\"K-2u-'+6s+'\" 1G=\"I-K-2u\"  1f-3M=\"I\">'+q.G.5X+'<\/1i>')[0]},5j:C(6s){F q.L.6n(q.K.6R(6s))},dY:C(14,R,1m){14=14.7z();4T{14.49(1m);14.3S(R)}4U(e){q.2o.2R()}},3g:C(){E 6t=q.$T.1h('1i#K-2u-1');E 9F=q.$T.1h('1i#K-2u-2');if(q.L.1P('4d')){q.$T.2o()}if(6t.12!==0&&9F.12!==0){q.1S.1U(6t,0,9F,0)}N if(6t.12!==0){q.1S.1U(6t,0,6t,0)}N{q.$T.2o()}q.K.95();q.k5=O},95:C(){q.$T.1h('1i.I-K-2u').1u(C(i,s){E 1g=$(s).1g().J(/\\6f/g,'');if(1g==='')$(s).1t();N $(s).2w(C(){F $(q).2b()})})},dC:C(){q.K.1a();F q.2X.4s()},pe:C(){E B='';q.K.1a();if(q.2X.7A){E dZ=1k.3B('1j');E 2p=q.2X.7A;2C(E i=0;i<2p;++i){dZ.7X(q.2X.6c(i).pf())}B=dZ.3y}F q.1x.ay(B)},k6:C(B){q.K.1a();q.14.54();E 1j=1k.3B(\"1j\");1j.3y=B;E 4Q=1k.b3(),4y;4Z((4y=1j.b4)){4Q.7X(4y)}q.14.3S(4Q)},pg:C(B){B=q.K.5j(1)+B+q.K.5j(2);q.K.1a();if(3n.4O&&3n.4O().6c){q.K.k6(B)}N if(1k.K&&1k.K.9m){q.14.iE(B)}q.K.3g();q.1d.1T()}}},5O:C(){F{3N:C(e,1l){if(!q.G.5O){if((e.9n||e.70)&&(1l===66||1l===73))e.2t();F O}$.1u(q.G.5O,$.1e(C(5i,4v){E 55=5i.4o(',');E 2p=55.12;2C(E i=0;i<2p;i++){if(1s 55[i]==='6v'){q.5O.7K(e,$.3h(55[i]),$.1e(C(){E 1C;if(4v.1C.3H(/\\./)!='-1'){1C=4v.1C.4o('.');if(1s q[1C[0]]!='1z'){q[1C[0]][1C[1]].8c(q,4v.5V)}}N{q[4v.1C].8c(q,4v.5V)}},q))}}},q))},7K:C(e,55,k7){E k8={8:\"ph\",9:\"5z\",10:\"F\",13:\"F\",16:\"6F\",17:\"4c\",18:\"7G\",19:\"pi\",20:\"pj\",27:\"pk\",32:\"3b\",33:\"pl\",34:\"pm\",35:\"2j\",36:\"pn\",37:\"2c\",38:\"po\",39:\"4q\",40:\"pp\",45:\"1Z\",46:\"4l\",59:\";\",61:\"=\",96:\"0\",97:\"1\",98:\"2\",99:\"3\",6S:\"4\",pq:\"5\",pr:\"6\",ps:\"7\",pt:\"8\",pu:\"9\",pv:\"*\",pw:\"+\",py:\"-\",pz:\".\",pA:\"/\",pB:\"f1\",pC:\"f2\",pD:\"f3\",pE:\"f4\",pF:\"f5\",pG:\"f6\",pH:\"f7\",pI:\"f8\",pJ:\"f9\",pK:\"pL\",pM:\"pN\",pO:\"pP\",pQ:\"pR\",pS:\"6l\",pT:\"-\",pU:\";\",pV:\"=\",pW:\",\",pX:\"-\",pY:\".\",pZ:\"/\",q0:\"`\",dr:\"[\",q1:\"\\\\\",dq:\"]\",q2:\"'\"};E e0={\"`\":\"~\",\"1\":\"!\",\"2\":\"@\",\"3\":\"#\",\"4\":\"$\",\"5\":\"%\",\"6\":\"^\",\"7\":\"&\",\"8\":\"*\",\"9\":\"(\",\"0\":\")\",\"-\":\"q3\",\"=\":\"+\",\";\":\": \",\"'\":\"\\\"\",\",\":\"<\",\".\":\">\",\"/\":\"?\",\"\\\\\":\"|\"};55=55.3i().4o(\" \");E bv=k8[e.3q],9G=6k.q4(e.7R).3i(),86=\"\",87={};$.1u([\"7G\",\"4c\",\"5b\",\"6F\"],C(56,bw){if(e[bw+'q5']&&bv!==bw){86+=bw+'+'}});if(bv)87[86+bv]=1q;if(9G){87[86+9G]=1q;87[86+e0[9G]]=1q;if(86===\"6F+\"){87[e0[9G]]=1q}}2C(E i=0,2p=55.12;i<2p;i++){if(87[55[i]]){e.2t();F k7.8c(q,eu)}}}}},2I:C(){F{1a:C(1d){if(!q.G.2I)F 1d;E e1=['eO','3f','cn','hr','i?q6','V','5b','q7','1p','3T','3U','cw','cv','cx'];E e2=['li','dt','dt','h[1-6]','43','3T'];E 9H=['p','29','1j','dl','eP','5U','q8','eN','ol','2G','7a','3a','67','6Q','3k'];q.2I.k9=25 2l('^<(/?'+e1.31('|/?')+'|'+e2.31('|')+')[ >]');q.2I.ka=25 2l('^<(br|/?'+e1.31('|/?')+'|/'+e2.31('|/')+')[ >]');q.2I.9H=25 2l('^<\/?('+9H.31('|')+')[ >]');E i=0,bx=1d.12,3Y=0,2a=3O,2j=3O,Y='',2n='',5k='';q.2I.9I=0;2C(;i<bx;i++){3Y=i;if(-1==1d.4x(i).4L('<')){2n+=1d.4x(i);F q.2I.e3(2n)}4Z(3Y<bx&&1d.6u(3Y)!='<'){3Y++}if(i!=3Y){5k=1d.4x(i,3Y-i);if(!5k.1V(/^\\s{2,}$/g)){if('\\n'==2n.6u(2n.12-1))2n+=q.2I.88();N if('\\n'==5k.6u(0)){2n+='\\n'+q.2I.88();5k=5k.J(/^\\s+/,'')}2n+=5k}if(5k.1V(/\\n/))2n+='\\n'+q.2I.88()}2a=3Y;4Z(3Y<bx&&'>'!=1d.6u(3Y)){3Y++}Y=1d.4x(2a,3Y-2a);i=3Y;E t;if('!--'==Y.4x(1,3)){if(!Y.1V(/--$/)){4Z('-->'!=1d.4x(3Y,3)){3Y++}3Y+=2;Y=1d.4x(2a,3Y-2a);i=3Y}if('\\n'!=2n.6u(2n.12-1))2n+='\\n';2n+=q.2I.88();2n+=Y+'>\\n'}N if('!'==Y[1]){2n=q.2I.by(Y+'>',2n)}N if('?'==Y[1]){2n+=Y+'>\\n'}N if(t=Y.1V(/^<(3T|1p|2G)/i)){t[1]=t[1].3i();Y=q.2I.e4(Y);2n=q.2I.by(Y,2n);2j=6k(1d.4x(i+1)).3i().4L('<\/'+t[1]);if(2j){5k=1d.4x(i+1,2j);i+=2j;2n+=5k}}N{Y=q.2I.e4(Y);2n=q.2I.by(Y,2n)}}F q.2I.e3(2n)},88:C(){E s='';2C(E j=0;j<q.2I.9I;j++){s+='\\t'}F s},e3:C(1d){1d=1d.J(/\\n\\s*\\n/g,'\\n');1d=1d.J(/^[\\s\\n]*/,'');1d=1d.J(/[\\s\\n]*$/,'');1d=1d.J(/<3T(.*?)>\\n<\\/3T>/gi,'<3T$1><\/3T>');q.2I.9I=0;F 1d},e4:C(Y){E 9J='';Y=Y.J(/\\n/g,' ');Y=Y.J(/\\s{2,}/g,' ');Y=Y.J(/^\\s+|\\s+$/g,' ');E e5='';if(Y.1V(/\\/$/)){e5='/';Y=Y.J(/\\/+$/,'')}E m;4Z(m=/\\s*([^= ]+)(?:=((['\"']).*?\\3|[^ ]+))?/.5l(Y)){if(m[2])9J+=m[1].3i()+'='+m[2];N if(m[1])9J+=m[1].3i();9J+=' ';Y=Y.4x(m[0].12)}F 9J.J(/\\s*$/,'')+e5+'>'},by:C(Y,2n){E nl=Y.1V(q.2I.9H);if(Y.1V(q.2I.k9)||nl){2n=2n.J(/\\s*$/,'');2n+='\\n'}if(nl&&'/'==Y.6u(1))q.2I.9I--;if('\\n'==2n.6u(2n.12-1))2n+=q.2I.88();if(nl&&'/'!=Y.6u(1))q.2I.9I++;2n+=Y;if(Y.1V(q.2I.ka)||Y.1V(q.2I.9H)){2n=2n.J(/ *$/,'')}F 2n}}},1I:C(){F{fP:C(){E 56=$.3r('1i',q.G.3V);if(56!==-1){q.G.3V.9K(56,1)}if(q.G.4p)q.G.4a=O;if(q.G.4S)q.G.1L=O;if(q.G.1K)F;E 2e=['p','4b'];if(q.G.4p)q.1I.kb(2e);if(q.G.4a)q.1I.kc(2e)},kb:C(2e){E 2p=2e.12;2C(E i=0;i<2p;i++){if($.3r(2e[i],q.G.4p)==-1){q.G.4p.2N(2e[i])}}},kc:C(2e){E 2p=2e.12;2C(E i=0;i<2p;i++){E 3x=$.3r(2e[i],q.G.4a);if(3x!=-1){q.G.4a.9K(3x,1)}}},2K:C(B,3Z){q.1I.2E={4a:q.G.4a,4p:q.G.4p,6D:q.G.6D,5s:q.G.5s,5t:q.G.5t,5v:q.G.5v,1L:q.G.1L,4S:q.G.4S,6E:q.G.6E,3V:q.G.3V};$.7n(q.1I.2E,3Z);B=q.1I.6D(B);q.1I.$1j=$('<1j />').1F(B);q.1I.5s();q.1I.5t();q.1I.kd();q.1I.1L();q.1I.3V();q.1I.ke();q.1I.5v();q.1I.6E();B=q.1I.$1j.B();q.1I.$1j.1t();F B},6D:C(B){if(!q.1I.2E.6D)F B;F B.J(/<!--[\\s\\S]*?-->/gi,'')},5s:C(B){if(!q.1I.2E.5s)F B;E 2p=q.1I.2E.5s.12;E 5L=[],e6=[];2C(E i=0;i<2p;i++){e6.2N(q.1I.2E.5s[i][1]);5L.2N(q.1I.2E.5s[i][0])}$.1u(5L,$.1e(C(1l,1E){q.1I.$1j.1h(1E).2w(C(){F $(\"<\"+e6[1l]+\" />\",{B:$(q).B()})})},q))},5t:C(){if(!q.1I.2E.5t)F;E 2p=q.1I.2E.5t.12;q.1I.$1j.1h('1i').1u($.1e(C(n,s){E $el=$(s);E 1p=$el.1c('1p');2C(E i=0;i<2p;i++){if(1p&&1p.1V(25 2l('^'+q.1I.2E.5t[i][0],'i'))){E 1o=q.1I.2E.5t[i][1];$el.2w(C(){E Y=1k.3B(1o);F $(Y).1F($(q).2b())})}}},q))},kd:C(){if(!q.1I.2E.4a&&q.1I.2E.4p){q.1I.$1j.1h('*').6b(q.1I.2E.4p.31(',')).1u(C(i,s){if(s.3y==='')$(s).1t();N $(s).2b().48()})}if(q.1I.2E.4a){q.1I.$1j.1h(q.1I.2E.4a.31(',')).1u(C(i,s){if($(s).3t('I-3T-Y')||$(s).3t('I-K-2u'))F;if(s.3y==='')$(s).1t();N $(s).2b().48()})}},1L:C(){E 2p;if(!q.1I.2E.1L&&q.1I.2E.4S){E e7=[],e8=[];2p=q.1I.2E.4S.12;2C(E i=0;i<2p;i++){e7.2N(q.1I.2E.4S[i][0]);e8.2N(q.1I.2E.4S[i][1])}q.1I.$1j.1h('*').1u($.1e(C(n,s){E $el=$(s);E 3x=$.3r($el[0].1o.3i(),e7);E 5M=q.1I.kf(3x,e8,$el);if(5M){$.1u(5M,C(z,f){$el.1L(f)})}},q))}if(q.1I.2E.1L){2p=q.1I.2E.1L.12;2C(E i=0;i<2p;i++){E 9L=q.1I.2E.1L[i][1];if($.bz(9L))9L=9L.31(' ');q.1I.$1j.1h(q.1I.2E.1L[i][0]).1L(9L)}}},kf:C(3x,5H,$el){E 5M=[];if(3x==-1){$.1u($el[0].4z,C(i,2y){5M.2N(2y.1y)})}N if(5H[3x]=='*'){5M=[]}N{$.1u($el[0].4z,C(i,2y){if($.bz(5H[3x])){if($.3r(2y.1y,5H[3x])==-1){5M.2N(2y.1y)}}N if(5H[3x]!=2y.1y){5M.2N(2y.1y)}})}F 5M},kg:C(el,bA){bA=25 2l(bA,\"g\");F el.1u(C(){E 3u=$(q);E 2p=q.4z.12-1;2C(E i=2p;i>=0;i--){E 2y=q.4z[i];if(2y&&2y.q9&&2y.1y.3H(bA)>=0){3u.1L(2y.1y)}}})},3V:C(){if(!q.1I.2E.3V)F;q.1I.$1j.1h(q.1I.2E.3V.31(',')).1u(C(){E $el=$(q);E 1g=$el.1g();1g=1g.J(/\\6f/g,'');1g=1g.J(/&5h;/gi,'');1g=1g.J(/\\s/g,'');if(1g===''&&$el.3Q().12===0){$el.1t()}})},ke:C(){q.1I.$1j.1h('li p').2b().48()},5v:C(){if(!q.1I.2E.5v)F;E 2e=q.1I.2E.5v;if($.bz(q.1I.2E.5v))2e=q.1I.2E.5v.31(',');q.1I.kg(q.1I.$1j.1h(2e),'^(1f-)')},6E:C(){if(!q.1I.2E.6E)F;q.1I.$1j.1h(q.1I.2E.6E.31(',')).1u(C(){if(q.4z.12===0){$(q).2b().48()}})}}},1A:C(){F{3N:C(){F{B:{1J:q.1H.1a('B'),1C:'1d.3l'},2Z:{1J:q.1H.1a('2Z'),1n:{p:{1J:q.1H.1a('fc'),1C:'Q.30'},29:{1J:q.1H.1a('cf'),1C:'Q.30'},2G:{1J:q.1H.1a('1d'),1C:'Q.30'},h1:{1J:q.1H.1a('ff'),1C:'Q.30'},h2:{1J:q.1H.1a('fg'),1C:'Q.30'},h3:{1J:q.1H.1a('fh'),1C:'Q.30'},h4:{1J:q.1H.1a('fi'),1C:'Q.30'},h5:{1J:q.1H.1a('fj'),1C:'Q.30'}}},4j:{1J:q.1H.1a('4j'),1C:'28.30'},4k:{1J:q.1H.1a('4k'),1C:'28.30'},5T:{1J:q.1H.1a('5T'),1C:'28.30'},5u:{1J:q.1H.1a('5u'),1C:'28.30'},5q:{1J:'&qa; '+q.1H.1a('5q'),1C:'2d.3l'},5r:{1J:'1. '+q.1H.1a('5r'),1C:'2d.3l'},77:{1J:'< '+q.1H.1a('77'),1C:'3z.9k'},3z:{1J:'> '+q.1H.1a('3z'),1C:'3z.b0'},M:{1J:q.1H.1a('M'),1C:'M.2O'},1Y:{1J:q.1H.1a('1Y'),1C:'1Y.2O'},V:{1J:q.1H.1a('V'),1n:{V:{1J:q.1H.1a('a3'),1C:'V.2O',1R:{2k:'a',in:{1J:q.1H.1a('ce'),},2n:{1J:q.1H.1a('a3')}}},6J:{1J:q.1H.1a('6J'),1C:'V.6J',1R:{2k:'a',2n:{1c:{'1G':'I-1n-V-d6','4M-7u':1q}}}}}},2Y:{1J:q.1H.1a('2Y'),1n:{2c:{1J:q.1H.1a('fw'),1C:'2Y.2c'},5y:{1J:q.1H.1a('fA'),1C:'2Y.5y'},4q:{1J:q.1H.1a('fB'),1C:'2Y.4q'},8k:{1J:q.1H.1a('fC'),1C:'2Y.8k'}}},9W:{1J:q.1H.1a('9W'),1C:'3I.1Z'}}},2f:C(){q.1A.kh();q.1A.ki();q.1A.kj();if(q.G.4i.12===0)F;q.$1A=q.1A.kk();q.1A.kl();q.1A.1F();q.1A.km();q.1A.kn();q.1A.ko();if(q.G.9X){q.$T.on('i5.I 2r.I 2o.I',$.1e(q.1R.1A,q))}},kk:C(){F $('<3k>').2g('I-1A').1c({'id':'I-1A-'+q.2F,'8F':'1A'})},km:C(){$.1u(q.G.1A.2Z.1n,$.1e(C(i,s){if($.3r(i,q.G.2Z)==-1)7L q.G.1A.2Z.1n[i]},q))},kn:C(){$.1u(q.G.4i,$.1e(C(i,2i){if(!q.G.1A[2i])F;if(2i==='1Y'){if(q.G.5S===O)F;N if(!q.G.5S&&q.G.76===O)F}if(2i==='M'){if(q.G.5R===O)F;N if(!q.G.5R&&q.G.76===O)F}E 2V=q.G.1A[2i];q.$1A.1F($('<li>').1F(q.1v.2f(2i,2V)))},q))},1F:C(){if(q.G.9V){q.$1A.2g('I-1A-qb');$(q.G.9V).B(q.$1A)}N{q.$2Q.6P(q.$1A)}},ko:C(){if(!q.L.7t())F;if(q.G.9V)F;if(!q.G.eJ)F;q.1A.e9();$(q.G.6A).on('6l.I.'+q.2F,$.1e(q.1A.e9,q))},kl:C(){if(q.L.6W()&&q.G.eK){q.$1A.2g('I-1A-bn')}},kj:C(){if(q.G.4B)F;E 56=q.G.4i.4L('B');if(56!==-1){q.G.4i.9K(56,1)}},kh:C(){if(q.G.bW.12===0)F;$.1u(q.G.bW,$.1e(C(i,s){E 56=q.G.4i.4L(s);q.G.4i.9K(56,1)},q))},ki:C(){if(!q.L.6W()||q.G.bX.12===0)F;$.1u(q.G.bX,$.1e(C(i,s){E 56=q.G.4i.4L(s);q.G.4i.9K(56,1)},q))},e9:C(){E 3X=$(q.G.6A).3X();E 74=1;if(q.G.6A===1k){74=q.$2Q.2x().2W}if((3X+q.G.6B)>74){q.1A.kp(3X,74)}N{q.1A.kq()}},kp:C(3X,74){E 2W=q.G.6B+3X-74;E 2c=0;E 2j=74+q.$2Q.3p()-32;E 2M=q.$2Q.7v();q.$1A.2g('1A-7Q-2Q');q.$1A.1N({4g:'9b',2M:2M,2W:2W+'px',2c:2c});if(3X>2j)$('.I-1n-'+q.2F+':bt').3s();q.1A.kr();q.$1A.1N('ks',(3X<2j)?'bt':'kt')},kq:C(){q.$1A.1N({4g:'qc',2M:'aQ',2W:0,2c:0,ks:'bt'});q.1A.ku();q.$1A.2U('1A-7Q-2Q')},kr:C(){E 2W=q.$1A.6a()+q.G.6B;E 4g='7Q';if(q.G.6A!==1k){2W=(q.$1A.6a()+q.$1A.2x().2W)+q.G.6B;4g='9b'}$('.I-1n-'+q.2F).1u(C(){$(q).1N({4g:4g,2W:2W+'px'})})},ku:C(){E 2W=(q.$1A.6a()+q.$1A.2x().2W);$('.I-1n-'+q.2F).1u(C(){$(q).1N({4g:'9b',2W:2W+'px'})})}}},1w:C(){F{3N:C(id,2h,2B){q.1w.52=O;q.1w.2B=2B;q.1w.2h=2h;q.1w.$el=$(id);q.1w.$4h=$('<1j id=\"I-4h\" />');q.1w.$ea=$('<1j id=\"I-4h-3e\" />').1g(q.1H.1a('fE'));q.1w.$3D=$('<3D 1m=\"1Y\" 1y=\"1Y\" />');q.1w.$ea.1F(q.1w.$3D);q.1w.$4h.1F(q.1w.$ea);q.1w.$el.1F(q.1w.$4h);q.1w.$4h.3d('I.1w');q.1w.$3D.3d('I.1w');q.1w.$4h.on('gG.I.1w',$.1e(q.1w.aT,q));q.1w.$4h.on('qd.I.1w',$.1e(q.1w.kv,q));q.1w.$3D.on('hx.I.1w',$.1e(C(e){e=e.7r||e;q.1w.bB(q.1w.$3D[0].68[0],e)},q));q.1w.$4h.on('4X.I.1w',$.1e(C(e){e.2t();q.1w.$4h.2U('89-eb').2g('89-4X');q.1w.aV(e)},q))},gE:C(1Y,e){q.1w.52=1q;q.1w.bB(1Y,e)},aV:C(e){e=e.7r||e;E 68=e.ak.68;q.1w.bB(68[0],e)},bB:C(1Y,e){if(q.G.76){q.1w.ec(1Y);q.1w.kw(1Y);F}E 4A=!!3n.al?25 al():3O;if(3n.al){q.1w.ec(1Y);E 1y=(q.1w.1m=='M')?q.G.eE:q.G.eG;4A.1F(1y,1Y)}q.5p.2O();q.1W.2s('qe',e,4A);q.1w.kx(4A,e)},ec:C(1Y){q.1w.ky(1Y);if(q.1w.52){q.1w.2h=(q.1w.1m=='M')?q.G.5R:q.G.5S;q.1w.2B=(q.1w.1m=='M')?q.M.1Z:q.1Y.1Z}},ky:C(1Y){q.1w.1m='M';if(q.G.eU.4L(1Y.1m)==-1){q.1w.1m='1Y'}if(q.G.5R===3O&&q.G.5S!==3O){q.1w.1m='1Y'}},6O:C(8a,fd){if(8a===O||1s 8a!=='42')F fd;$.1u(8a,$.1e(C(k,v){if(v!==3O&&v.4s().4L('#')===0)v=$(v).2J();fd.1F(k,v)},q));F fd},kx:C(4A,e){if(q.1w.1m=='M'){4A=q.1w.6O(q.G.qf,4A);4A=q.1w.6O(q.1w.bC,4A)}N{4A=q.1w.6O(q.G.qg,4A);4A=q.1w.6O(q.1w.bD,4A)}E 2S=25 bE();2S.bF('qh',q.1w.2h);2S.ed(\"X-qi-qj\",\"bE\");2S.kz=$.1e(C(){if(2S.ee==4){E 1f=2S.kA;1f=1f.J(/^\\[/,'');1f=1f.J(/\\]$/,'');E 2P;4T{2P=(1s 1f==='6v'?$.g2(1f):1f)}4U(qk){2P={6x:1q}}q.5p.3s();if(!q.1w.52){q.1w.$4h.2U('89-4X')}q.1w.2B(2P,q.1w.52,e)}},q);2S.ef(4A)},aT:C(e){e.2t();q.1w.$4h.2g('89-eb')},kv:C(e){e.2t();q.1w.$4h.2U('89-eb')},ql:C(){q.1w.bC={}},qm:C(1y,1E){q.1w.bC[1y]=1E},qn:C(1y){7L q.1w.bC[1y]},qo:C(){q.1w.bD={}},qp:C(1y,1E){q.1w.bD[1y]=1E},qq:C(1y){7L q.1w.bD[1y]},kw:C(1Y){q.1w.kB(1Y,$.1e(C(kC){q.1w.kD(1Y,kC)},q))},kB:C(1Y,2B){E 2S=25 bE();E 7g=(q.G.76.3H(/\\?/)!=='-1')?'?':'&';2S.bF('qr',q.G.76+7g+'1y='+1Y.1y+'&1m='+1Y.1m,1q);if(2S.kE)2S.kE('1g/qs; qt=x-qu-qv');E kF=q;2S.kz=C(e){if(q.ee==4&&q.eg==aj){kF.5p.2O();2B(ju(q.kA))}N if(q.ee==4&&q.eg!=aj){}};2S.ef()},kG:C(9O,2h){E 2S=25 bE();if(\"qw\"in 2S){2S.bF(9O,2h,1q)}N if(1s kH!=\"1z\"){2S=25 kH();2S.bF(9O,2h)}N{2S=3O}F 2S},kD:C(1Y,2h){E 2S=q.1w.kG('qx',2h);if(!2S){}N{2S.qy=$.1e(C(){if(2S.eg==aj){q.5p.3s();E bG=2h.4o('?');if(!bG[0]){F O}if(!q.1w.52){q.1w.$4h.2U('89-4X')}E 2P={9d:bG[0]};if(q.1w.1m=='1Y'){E 2D=bG[0].4o('/');2P.5Y=2D[2D.12-1]}q.1w.2B(2P,q.1w.52,O)}N{}},q);2S.qz=C(){};2S.1w.qA=C(e){};2S.ed('qB-qC',1Y.1m);2S.ed('x-qD-qE','qF-qG');2S.ef(1Y)}}}},L:C(){F{6W:C(){F/(kI|kJ|kK|kL)/.bh(bH.bI)},7t:C(){F!/(kI|kJ|qH|kK|kL)/.bh(bH.bI)},qI:C(8a){F fR.5m.4s.5N(8a)=='[42 6k]'},3A:C(B,kM){B=B.J(/[\\6f-\\qJ\\qK]/g,'');B=B.J(/&5h;/gi,'');B=B.J(/<\\/?br\\s?\\/?>/g,'');B=B.J(/\\s/g,'');B=B.J(/^<p>[^\\W\\w\\D\\d]*?<\\/p>$/i,'');B=B.J(/<4I(.*?[^>])>$/i,'4I');B=B.J(/<4B(.*?[^>])>$/i,'4B');if(kM!==O){B=B.J(/<[^\\/>][^>]*><\\/[^>]+>/gi,'');B=B.J(/<[^\\/>][^>]*><\\/[^>]+>/gi,'')}B=$.3h(B);F B===''},dj:C(5i){if(1s(5i)==='1z')F 0;F 5F(5i.J('px',''),10)},qL:C(75){if(1s 75=='1z')F;if(75.3H(/^#/)==-1)F 75;E kN=/^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;75=75.J(kN,C(m,r,g,b){F r+r+g+g+b+b});E bJ=/^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.5l(75);F'qM('+5F(bJ[1],16)+', '+5F(bJ[2],16)+', '+5F(bJ[3],16)+')'},6n:C(el){F $('<1j>').1F($(el).eq(0).9q()).B()},a9:C(el){if($.3r(el.1o,q.G.8o)!==-1){F $(el)}N{F $(el).2q(q.G.8o.4s().3i(),q.$T[0])}},5B:C(el,1c){E $el=$(el);if(1s $el.1c(1c)=='1z'){F 1q}if($el.1c(1c)===''){$el.1L(1c);F 1q}F O},3V:C(i,s){E $s=$($.cP(s));$s.1h('.I-7C-3b').1L('1p').1L('1G');if($s.1h('hr, br, 1M, 4I, 4B').12!==0)F;E 1g=$.3h($s.1g());if(q.L.3A(1g,O)){$s.1t()}},9r:C(){q.kO=q.$T.3X();q.bs=$(3n).3X();if(q.G.8j)q.kP=$(q.G.8j).3X()},bg:C(){if(1s q.9r==='1z'&&1s q.bs==='1z')F;$(3n).3X(q.bs);q.$T.3X(q.kO);if(q.G.8j)$(q.G.8j).3X(q.kP)},at:C(){E 3b=1k.3B('1i');3b.3E='I-7C-3b';3b.3y=q.G.5X;F 3b},4W:C(R){E 2e=q.G.4J;2e.2N('1i');if(R.1o=='8q')2e.2N('a');$(R).1h(2e.31(',')).6b('1i.I-K-2u').2b().48()},64:C(R,4W){E 3u=q;$(R).2w(C(){if(4W===1q)3u.L.4W(q);F $(q).2b()});F $(R)},4t:C(R,Y,4W){E 5L;E 3u=q;$(R).2w(C(){5L=$('<'+Y+' />').1F($(q).2b());2C(E i=0;i<q.4z.12;i++){5L.1c(q.4z[i].1y,q.4z[i].1E)}if(4W===1q)3u.L.4W(5L);F 5L});F 5L},iY:C(){E Q=q.K.4e();if(!Q)F O;E 2x=q.1S.8P(Q);F(2x===0)?1q:O},6Y:C(2k){if(1s 2k=='1z'){E 2k=q.K.4e();if(!2k)F O}E 2x=q.1S.8P(2k);E 1g=$.3h($(2k).1g()).J(/\\n\\r\\n/g,'');F(2x==1g.12)?1q:O},qN:C(){E 2x=q.1S.8P(q.$T[0]);F(2x===0)?1q:O},dp:C(){E Q=q.$T[0];E 2x=q.1S.8P(Q);E 1g=$.3h($(Q).B().J(/(<([^>]+)>)/gi,''));F(2x==1g.12)?1q:O},6U:C(Q){Q=Q[0]||Q;F Q&&q.L.7x(Q.1o)},7x:C(Y){if(1s Y=='1z')F O;F q.fO.bh(Y)},b9:C(1B,Y){E 2k=$(1B).2q(Y,q.$T[0]);if(2k.12==1){F 2k[0]}F O},8W:C(){F q.bu},j5:C(){q.bu=1q},8I:C(){q.bu=O},4G:C(el){if(!el){F O}if($(el).jK('.I-T').12===0||$(el).3t('I-T')){F O}F el},ip:C(){F q.L.51(['c5','c6','c7','c8','c9','ca'])},51:C(1o){E 1r=q.K.6p();E 1B=q.K.3w();if($.bz(1o)){E eh=0;$.1u(1o,$.1e(C(i,s){if(q.L.ei(1B,1r,s)){eh++}},q));F(eh===0)?O:1q}N{F q.L.ei(1B,1r,1o)}},ei:C(1B,1r,1o){1o=1o.qO();F 1r&&1r.1o===1o?1r:1B&&1B.1o===1o?1B:O},qP:C(){F(q.L.1P('2H')&&5F(q.L.1P('bK'),10)<9)?1q:O},qQ:C(){F(q.L.1P('2H')&&5F(q.L.1P('bK'),10)<10)?1q:O},iA:C(){F!!bH.bI.1V(/qR\\/7\\./)},1P:C(1P){E 57=bH.bI.3i();E 1V=/(ej)[\\/]([\\w.]+)/.5l(57)||/(kQ)[ \\/]([\\w.]+)/.5l(57)||/(7E)[ \\/]([\\w.]+).*(ek)[ \\/]([\\w.]+)/.5l(57)||/(7E)[ \\/]([\\w.]+)/.5l(57)||/(qS)(?:.*bK|)[ \\/]([\\w.]+)/.5l(57)||/(2H) ([\\w.]+)/.5l(57)||57.4L(\"qT\")>=0&&/(eo)(?::| )([\\w.]+)/.5l(57)||57.4L(\"qU\")<0&&/(4d)(?:.*? eo:([\\w.]+)|)/.5l(57)||[];if(1P=='ek')F(1s 1V[3]!='1z')?1V[3]=='ek':O;if(1P=='bK')F 1V[2];if(1P=='7E')F(1V[1]=='kQ'||1V[1]=='ej'||1V[1]=='7E');if(1V[1]=='eo')F 1P=='2H';if(1V[1]=='ej')F 1P=='7E';F 1P==1V[1]},aK:C(kR,kS,2x){E i=kR.4L(kS,2x);F i>=0?i:O},d9:C(){E $3f=$('B');E 82=3n.7v;if(!82){E ep=1k.qV.qW();82=ep.4q-8Y.qX(ep.2c)}E kT=1k.3f.kU<82;E bL=q.L.kV();$3f.1N('bn','kt');if(kT)$3f.1N('kW-4q',bL)},kV:C(){E $3f=$('3f');E 8b=1k.3B('1j');8b.3E='I-kX-kY';$3f.1F(8b);E bL=8b.qY-8b.kU;$3f[0].qZ(8b);F bL},aN:C(){$('B').1N({'bn':'','kW-4q':''});$('3f').1t('I-kX-kY')}}}};$(3n).on('2K.kZ.I',C(){$('[1f-kZ=\"I\"]').I()});41.5m.3N.5m=41.5m})(r0);",62,1675,"||||||||||||||||||||||||||this|||||||||||html|function||var|return|opts||redactor|replace|selection|utils|image|else|false||block|node||editor||link|||tag||||length||range||||||get|modal|attr|code|proxy|data|text|find|span|div|document|key|type|dropdown|tagName|style|true|parent|typeof|remove|each|button|upload|clean|name|undefined|toolbar|current|func|keydown|value|append|class|lang|tidy|title|linebreaks|removeAttr|img|css|next|browser|target|observe|caret|sync|set|match|core|formatted|file|insert||blocks|btn|nodes||new|buffer||inline|blockquote|start|contents|left|list|tags|build|addClass|url|btnName|end|element|RegExp|href|out|focus|len|closest|keyup|setCallback|preventDefault|marker|textarea|replaceWith|offset|item|linkify|click|callback|for|arr|settings|uuid|pre|msie|tabifier|val|load|label|width|push|show|json|box|setStart|xhr|paragraphize|removeClass|btnObject|top|sel|alignment|formatting|format|join|||||||||td|space|last|off|placeholder|body|restore|trim|toLowerCase|autosave|ul|toggle|save|window|tooltip|height|keyCode|inArray|hide|hasClass|self|setTimeout|getCurrent|pos|innerHTML|indent|isEmpty|createElement|after|input|className|CodeMirror|imageBox|search|line|first|setEnd|re|verified|init|null|font|children|matches|insertNode|script|table|removeEmpty|rel|scrollTop|point|options||Redactor|object|option|getBlocks|||execCommand|unwrap|collapse|deniedTags|section|ctrl|mozilla|getBlock|addRange|position|droparea|buttons|bold|italic|del|close|resizeHandle|split|allowedTags|right|regexps|toString|replaceToTag|clearUnverified|command|src|substr|child|attributes|formData|source|prev|modalBox|margin|blockElem|isRedactorParent|cmd|iframe|inlineTags|wrapper|indexOf|aria|orgn|getSelection|resize|frag|htmls|allowedAttr|try|catch|collapsed|removeInlineTags|drop|arrow|while||isCurrentOrParent|direct|elem|deleteContents|keys|index|ua|linkProtocol||strong|meta|pasteBox|align|BR|contenteditable|setAfter|nbsp|str|getMarkerAsHtml|cont|exec|prototype|isFunction|paste|progress|unorderedlist|orderedlist|replaceTags|replaceStyles|underline|removeDataAttr|LI|none|center|tab|https|removeEmptyAttr|toggleType|touchstart|editter|parseInt|tmp|allowed|lastNode|br1|links|replacement|attributesRemove|call|shortcuts|visual|replaceDivs|imageUpload|fileUpload|deleted|form|params|emptyHtml|invisibleSpace|filename|methods|||wrap|containerTag|replaceWithContents|||th|files|mousedown|innerHeight|not|getRangeAt|nodeValue|break|u200B|lastList|currentList|currentLevel|quot|String|scroll|prop|getOuterHtml|marginTop|getParent|templateName|inlines|num|node1|charAt|string|instance|error|tabindex|preSpaces|toolbarFixedTarget|toolbarFixedTopOffset|figure|removeComments|removeWithoutAttr|shift|TD|video|Insert|unlink|youtube|vimeo|ENTER|module|getHiddenFields|prepend|tr|getMarker|100|display|isBlock|editorDiv|isMobile|SPAN|isEndOfElement|getNodes|metaKey|shiftKey|insertBreakLine||boxTop|hex|s3|outdent|figcaption|header|select|strike|weight|decoration|sub|sup|mark|DIV|dropdowns|edit|www|BACKSPACE|rtePaste|extend|blocksSize|toggleClass|size|originalEvent|getEvent|isDesktop|disabled|innerWidth|focn|isBlockTag|setStartAfter|cloneRange|rangeCount|setVerified|invisible|level|webkit|embed|alt|z0|outerHTML|posFromIndex|handler|delete|modalOverlay|hideAll|dropact|keyPosition|fixed|which|_blank|blank|float|hideResize|pattern|appendChild|endRange|parHtml|listParent|tmpList|windowWidth|action|startNode|boundaryRange|modif|possible|getTabs|drag|obj|scrollDiv|apply|Array|plugins|autosaveInterval|http|imageFloatMargin|convertVideoLinks|scrollTarget|justify|rebuffer|small|cite|alignmentTags|blockLevelElements|PRE|UL|OL|Header|Delete|Add|codemirror|DELETE|tagblock|clear|isRemoveInline|classSize|exceptTags|setClass|undo|role|event|addEvent|disableSelectAll|icon|getOffset|returnValue|setActive|act|isMobileUndoRedo|getOffsetOfElement|selectNodeContents|replaceParagraphsToBr|amp|resizer|onPaste|setMode|isSelectAll|singleLine|Math|lastLevel|||audio|param|inserted|removeMarkers|||||events|absolute|closeHandler|filelink|linkmarker|imageMargin|case|ftp|targetTouches|imageResizer|decrease|removeAllRanges|createRange|ctrlKey|insertDblBreakLine|createTextNode|clone|saveScroll|inputUrl|selectElement|tmpLi|items|tabber|active|modalHeader|modalFooter||modalClose|addProperties|endNode|counter|node2|character|newLevel|cleanlevel|tagout|splice|attrs|bind|methodVal|method|minHeight|maxHeight|enterKey|autosaveFields|convertLinks|tabAsSpaces|toolbarExternal|horizontalrule|activeButtons|x200b|indentValue|samp|kbd|BLOCKQUOTE|link_insert|mailto|link_new_tab|com|ESC|property|getAlignmentElement|enable|clearStyle|formatListToBlockquote|isContainerTable|formatblock|formatWrap|redo|blured|isTextarea|200|dataTransfer|FormData|isEnabled|onClick|appendTo|mouseover|mouseout|classname|before|createSpaceElement|nodeType|cloned|caretRange|setOffset|onSync|getPlainText|onPasteTidy|mso|u00a0|spaces|prevList|matchContainers|encodeEntities|normalizeLists|selectionMarkers|editorHtml|strpos|substring|eventName|enableBodyScroll|checked|imageFloat|auto|re2|images|onDrag|pageY|onDrop|IMG|marginBottom|marginLeft|marginRight|increase|fixEmptyIndent|_this|createDocumentFragment|firstChild|caretPositionFromPoint|caretRangeFromPoint|createTextRange|moveToPoint|isTag|prev2|blockHtml|parentA|replaceToParagraph||insertInIe|restoreScroll|test|wrapperHtml|callbacks|modalBody|showOnDesktop|windowHeight|overflow|deleteProperties|parentEl|safes||saveBodyScroll|visible|selectAll|special|specialKey|codeLength|placeTag|isArray|regex|traverseFile|imageFields|fileFields|XMLHttpRequest|open|s3file|navigator|userAgent|result|version|scrollbarWidth|slice|modules|direction|autosaveName|autosaveOnChange|linkSize|imageEditable|imageResizable|convertUrlLinks|convertImageLinks|buttonsHide|buttonsHideOnMobile|formattingAdd|paragraphizeBlocks|address|footer|activeButtonsStates|removeFormat|verifiedTags|H1|H2|H3|H4|H5|H6|highContrast|Table|Link|link_edit|quote|Row||Column|image_position|URL|DOWN|TAB|head|getModuleMethods|filter|isFocused|TH|headTag|formatTableWrapping|count|thead|tbody|tfoot|add|focused|content|showCode|stopPropagation|blur|RedactorPlugins|setInactiveAll|addCallback|addDropdown|setAfterOrBefore|setBefore|endContainer|endOffset|saveFormTags|fonts|convertInline|parseHTML|listsIds|listType|dfn|tagsEmpty|attrAllowed|getTextFromHtml|clearUnverifiedRemove|headers|removeSpaces|syncCode|selectionStart|selectionEnd|enlargeOffset|markerLength|htmlLength|dropdownObject|inactive|dropdownWidth|one|disableBodyScroll|nodeToCaretPositionFromPoint|createCancelButton|createActionButton||redactorImageLink|imageDisplay|ratio|imageDelete|isP|normalize|setFormat||getInlines|htmlIe|isEndOfTable|isEndOfEditor|221|219|insertBreakLineProcessing||br2|BODY|removeIt|curLang|firstFound|extra|isCurrent|inputText|getText|iframeStart|iframeEnd|regexB|isUnorderedCmdOrdered|isOrderedCmdUnordered|listTag|showOnMobile|createButton|buttonsSize|inValues|outValues|setDropdownProperties|setDropdownAttr|isDelete|currentEl|closeTooltip|commentsMatches|visibleModals|getNodesMarker|startOffset|finalNodes|setMarker|container|hotkeysShiftNums|ownLine|contOwnLine|finish|cleanTag|suffix|rTags|allowedAttrTags|allowedAttrData|observeScroll|placeholdler|hover|setConfig|setRequestHeader|readyState|send|status|matched|isCurrentOrParentOne|opr|safari||||rv|documentElementRect||Function|scope|args|arguments|focusEnd|cleanStyleOnEnter|cleanOnPaste|cleanSpaces|pastePlainText|linkTooltip|linkNofollow|imageLink|imagePosition|imageUploadParam|dragImageUpload|fileUploadParam|dragFileUpload|tabKey|toolbarFixed|toolbarOverflow|aside|article|map|area|fieldset|through|superscript|subscript|shortcutsAdd|imageTypes|png|gif|FIGCAPTION|langs|Video|Image|||||||||||Edit|paragraph||Code|header1|header2|header3|header4|header5|Color|List|cancel||_delete|Left|Right|Head|Center|choose|Drop|here|align_left|Align|to|the|align_center|align_right|align_justify|anchor|upload_label|SPACE|CTRL|META|SHIFT|ALT|RIGHT|LEFT_WIN|loadOptions|loadModules|reIsBlock|setupAllowed|run|Object|bindModuleMethods|isLinebreaksOrNoBlocks|setText|setBlocks|isNeedReplaceElement|replaceElement|alignElement|onChange|jsxhr|success|parseJSON|callbackName|clearInterval|formatTags|commonAncestorContainer|setCollapsed|setMultiple|formatBlockquote|setForce|empty|elements|removeData|setUndo|setRedo|getUndo|pop||getRedo|createContainerBox|loadContent|loadEditor|enableEditor|setCodeAndCall|createTextarea|getTextareaName|dir|fromTextarea||fromElement|insertAfter|setOptions|callEditor|disableMozillaEditing|disableIeLinks|setEvents|setHelpers|loadTemplates|setEventDropUpload|directUpload|setEventDrop|dragover|codeKeydownCallback|codeKeyupCallback|setEvent|haspopup|createTooltip|onClickCallback|setInactive|setActiveInVisual|fullscreen|setInactiveInCode|afterkey|beforekey|lastChild|orgo|foco|setEndAfter|setEndBefore|walker|onSet|savePreCode|||||||restoreFormTags|chars|nofollow|Apple|getPreCode|getOnlyImages|replaceDivsToBr|isSingleLine|onPasteWord|onPasteExtra|all|removeDirtyStyles|onPasteRemoveSpans|onPasteRemoveEmpty|Mso|bmso|onPasteIeFixLinks|internal|matchBlocks|matchBR||savePreFormatting|saveCodeFormatting|restoreSelectionMarker|newTag|startSync|change|setValue|showVisual|modified|indenting|textareaIndenting|setSelectionRange|indexFromPos|tempStart|tempEnd|eventNamespace|destroy|destroyed|contrast|selected|700|htmlWithoutClean|showEdit|imageEdit|buttonDelete|createDeleteButton|buttonSave|update|floatValue|setFloating|floating|switch|xn|setEditable|loadEditableControls|setResizable|pageX|startResize|moveResize|mouseup|stopResize|round|handle|inside|fixImageSourceAfterDrop|opacity|loadResizableControls|||||15px|editerWidth|increaseLists|increaseText|increaseBlocks|decreaseLists||decreaseBlocks|isCurrentOrParentHeader|strikethrough|replaced||formatCollapsed|formatMultiple|formatConvert|formatRemoveSameChildren|unline|execHtml|htmlFixMozilla|isIe11|blocksMatch|ie11FixInserting|ie11PasteFrag|pasteHTML|offsetNode|duplicate|setEndPoint|EndToEnd|checkEvents|setupBuffer|addArrowsEvent|setupSelectAll|keydownStop|onArrowDown|stop|exitFromBlockquote|insertNewLine|replaceDivToBreakLine|replaceDivToParagraph|insertParagraph|onShiftEnter|onTab|indented|isStartOfElement|getPrev|HR|removeInvisibleSpace|removeEmptyListInTable|checkKeyEvents|altKey|enableSelectAll|insertAfterLastElement|dbl|keyupStop|isKey|removeEmptyLists|formatEmpty|isExceptLastOrFirst|insertInOthersBrowsers|getLastBlock|lastFound|setFocus|textNode|600|buttonText|buttonInsert|getData|cleanUrl|thref|location|re3|_moz_dirty|getInlinesTags|convertImages|objects|decodeURIComponent|regexp|newTd|checkbox|template|getTemplate|enableEvents|setTitle|setDraggable|setContent|setButtonsWidth|setEnter|draggable|buildOverlay|disableEvents|fadeOut|parents|properties|showTooltip|getTooltipPosition|aLink|aEdit|aUnlink|getSafes|getSafesComments|replaceBreaksToNewLines|replaceBreaksToParagraphs|restoreSafes|createPasteBox|freeze|spans|startContainer|anchorNode|startPointNode|setNodesMarker|removeNodesMarkers|createMarkers|savedSel|replaceSelection|origHandler|hotkeysSpecialKeys|lineBefore|lineAfter|addToAllowed|removeFromDenied|removeTags|removeParagraphsInLists|removeAttrGetRemoves|removeAttrs|hideButtons|hideButtonsOnMobile|isButtonSourceNeeded|createContainer|setOverflow|setFormattingTags|loadButtons|setFixed|observeScrollEnable|observeScrollDisable|setDropdownsFixed|visibility|hidden|unsetDropdownsFixed|onDragLeave|s3uploadFile|sendData|getType|onreadystatechange|responseText|s3executeOnSignedUrl|signedURL|s3uploadToS3|overrideMimeType|that|s3createCORSRequest|XDomainRequest|iPhone|iPod|BlackBerry|Android|removeEmptyTags|shorthandRegex|saveEditorScroll|saveTargetScroll|chrome|haystack|needle|isOverflowing|clientWidth|measureScrollbar|padding|scrollbar|measure|tools|use|strict|No|such|VERSION|ltr|10px|uploadImageField|math|legend|hgroup|nav|details|menu|summary|alignleft|aligncenter|alignright||jpeg|ins|DL|DT|DD|OUTPUT|ADDRESS|SECTION|HEADER|FOOTER||ASIDE|ARTICLE|HTML|Unlink|Formatting|Normal|Quote|Bold|Italic|fontcolor|Font|backcolor|Back|Unordered|Ordered|Outdent|Indent|Cancel|Save|insert_table|insert_row_above|Above|insert_row_below|Below|insert_column_left|insert_column_right|delete_column|delete_row|delete_table|rows|Rows|columns|Columns|add_head|delete_head|Title|Position|None|image_web_link|Web|Text|Email|web|video_html_code|Embed|Youtube|Vimeo|File|Upload|download|Download|Choose|or_choose|Or|drop_file_here|Justify|Horizontal|Rule|Deleted|Anchor|Open|Underline|Alignment|Name|optional|youtu|jpe|UP|LEFT|merge|applet|getOwnPropertyNames|setInterval|1000|ajax|post|done|autosaveError|disable|setData|toggleData|setAttr|toggleAttr|TEXTAREA|application|dragenter|cut|focusCallback|blurCallback|enableObjectResizing|enableInlineTableEditing|AutoUrlDetect|caretOffset|changeIcon|removeIcon|setAwesome|addFirst|addAfter|addBefore|setStartBefore|createTreeWalker|NodeFilter|SHOW_TEXT|nextNode|Infinity|setToPoint|getCoords|reg|u2122|trade|u00a9|copy|u2026|hellip|u2014||mdash|u2010|dash|sdata|converted|WordDocument|xml|1strike|spacerun|yes|floor|shapes|slevel|sid|docs|guid|fake|colspan|rowspan|removePhp|stripTags|textContent|innerText|Ss|getOnlyLinksAndImages|cleanEmptyParagraph|syncBefore|setSize|refresh|setCursor|setSelection|listSelections|getValue|getObject|getEditor|getBox|getElement|getTextarea|getToolbar|Callback|_data|namespace|dropdownShow|max|dropdownShown|dropdownHide|fileUploadError|activeElement|705|dragstart|mousemove|touchmove|touchend|imageUploadError|TR|cssText|removeStyle|removeStyleRule|toggleStyle|insertHTML|nodeToPoint||clientX||clientY|enter|context||0px|insertHtml|host|php|createLink|insertedLink|deletedLink|addBack|500|281|frameborder|allowfullscreen|player|grep|createTabber|addTab|addTemplate|getModal|modalOpened|focusin|email|outerHeight|20px|cursor|move|dialog|labelledby|Close|times|overlay|fast|bodyOveflow|modalClosed|toggleActive|addButton|unselectable|hasOwnProperty|9999px|pasteBefore|fadeIn|1500|previousSibling|getNext|nextSibling|parentNode|lastBlock|fromPoint|extractContents|getHtml|cloneContents|replaceWithHtml|backspace|pause|capslock|esc|pageup|pagedown|home|up|down|101|102|103|104|105|106|107||109|110|111|112|113|114|115|116|117|118|119|120|121|f10|122|f11|123|f12|144|numlock|145|173|186|187|188|189|190|191|192|220|222|_|fromCharCode|Key|frame|noscript|frameset|specified|bull|external|relative|dragleave|uploadStart|uploadImageFields|uploadFileFields|POST|Requested|With|err|clearImageFields|addImageFields|removeImageFields|clearFileFields|addFileFields|removeFileFields|GET|plain|charset|user|defined|withCredentials|PUT|onload|onerror|onprogress|Content|Type|amz|acl|public|read|iPad|isString|u200D|uFEFF|hexToRgb|rgb|isStartOfEditor|toUpperCase|isOldIe|isLessIe10|Trident|opera|trident|compatible|documentElement|getBoundingClientRect|abs|offsetWidth|removeChild|jQuery".split("|"),0,{})),function(n){n.Redactor.prototype.imagemanager=function(){return{init:function(){this.opts.imageManagerJson&&this.modal.addCallback("image",this.imagemanager.load)},load:function(){var t=this.modal.getModal(),i;this.modal.createTabber(t);this.modal.addTab(1,"Upload","active");this.modal.addTab(2,"Choose");n("#redactor-modal-image-droparea").addClass("redactor-tab redactor-tab1");i=n('<div id="redactor-image-manager-box" style="overflow: auto; height: 300px;" class="redactor-tab redactor-tab2">').hide();t.append(i);n.ajax({dataType:"json",cache:!1,url:this.opts.imageManagerJson,success:n.proxy(function(t){n.each(t,n.proxy(function(t,i){var u="",r;typeof i.title!="undefined"&&(u=i.title);r=n('<img src="'+i.thumb+'" rel="'+i.image+'" title="'+u+'" style="width: 100px; height: 75px; cursor: pointer;" />');n("#redactor-image-manager-box").append(r);n(r).click(n.proxy(this.imagemanager.insert,this))},this))},this)})},insert:function(t){this.image.insert('<img src="'+n(t.target).attr("rel")+'" alt="'+n(t.target).attr("title")+'">')}}}}(jQuery);!function(n){"use strict";String.prototype.repl=function(n,t){return this.split(n).join(t)};var s=function(n){var i,t=document.createElement("div");return t.innerHTML="<!--[if IE "+n+"]><i><\/i><![endif]-->",i=1===t.getElementsByTagName("i").length,document.body.appendChild(t),t.parentNode.removeChild(t),i},t={data:{},init:function(n){var i=n.initialPreview,r=n.id;i.length>0&&!h(i)&&(i=i.split(n.initialPreviewDelimiter));t.data[r]={content:i,config:n.initialPreviewConfig,tags:n.initialPreviewThumbTags,delimiter:n.initialPreviewDelimiter,template:n.previewGenericTemplate,msg:function(t){return n.getMsgSelected(t)},initId:n.previewInitId,footer:n.getLayoutTemplate("footer"),isDelete:n.initialPreviewShowDelete,caption:n.initialCaption,actions:function(t,i,r,u,f){return n.renderFileActions(t,i,r,u,f)}}},fetch:function(n){return t.data[n].content.filter(function(n){return null!==n})},count:function(n,i){return t.data[n]&&t.data[n].content?i?t.data[n].content.length:t.fetch(n).length:0},get:function(n,i,r){var f,e="init_"+i,u=t.data[n],o=u.initId+"-"+e;return r=void 0===r?!0:r,null===u.content[i]?"":(f=u.template.repl("{previewId}",o).repl("{frameClass}"," file-preview-initial").repl("{fileindex}",e).repl("{content}",u.content[i]).repl("{footer}",t.footer(n,i,r)),u.tags.length&&u.tags[i]&&(f=v(f,u.tags[i])),f)},add:function(i,r,u,f,e){var s,o=n.extend(!0,{},t.data[i]);return h(r)||(r=r.split(o.delimiter)),e?(s=o.content.push(r)-1,o.config[s]=u,o.tags[s]=f):(s=r.length,o.content=r,o.config=u,o.tags=f),t.data[i]=o,s},set:function(i,r,u,f,e){var o,s=n.extend(!0,{},t.data[i]);if(h(r)||(r=r.split(s.delimiter)),e){for(o=0;o<r.length;o++)s.content.push(r[o]);for(o=0;o<u.length;o++)s.config.push(u[o]);for(o=0;o<f.length;o++)s.tags.push(f[o])}else s.content=r,s.config=u,s.tags=f;t.data[i]=s},unset:function(n,i){var r=t.count(n);if(r){if(1===r)return t.data[n].content=[],void(t.data[n].config=[]);t.data[n].content[i]=null;t.data[n].config[i]=null}},out:function(n){var r,u="",e=t.data[n],f=t.count(n,!0),i;if(0===f)return{content:"",caption:""};for(i=0;f>i;i++)u+=t.get(n,i);return r=e.msg(t.count(n)),{content:u,caption:r}},footer:function(n,r,f){var o=t.data[n];if(f=void 0===f?!0:f,0===o.config.length||i(o.config[r]))return"";var e=o.config[r],h=u("caption",e)?e.caption:"",c=u("width",e)?e.width:"auto",s=u("url",e)?e.url:!1,l=u("key",e)?e.key:null,a=s===!1&&f,v=o.isDelete?o.actions(!1,!0,a,s,l):"",y=o.footer.repl("{actions}",v);return y.repl("{caption}",h).repl("{width}",c).repl("{indicator}","").repl("{indicatorTitle}","")}},nt=function(n,t){return t=t||0,"number"==typeof n?n:("string"==typeof n&&(n=parseFloat(n)),isNaN(n)?t:n)},p=function(){return window.File&&window.FileReader},tt=function(){var n=document.createElement("div");return!s(9)&&(void 0!==n.draggable||void 0!==n.ondragstart&&void 0!==n.ondrop)},it=function(){return p&&window.FormData},r=function(n,t){n.removeClass(t).addClass(t)},f='style="width:{width};height:{height};"',b='      <param name="controller" value="true" />\n      <param name="allowFullScreen" value="true" />\n      <param name="allowScriptAccess" value="always" />\n      <param name="autoPlay" value="false" />\n      <param name="autoStart" value="false" />\n      <param name="quality" value="high" />\n',e='<div class="file-preview-other">\n       {previewFileIcon}\n   <\/div>',rt={removeIcon:'<i class="glyphicon glyphicon-trash text-danger"><\/i>',removeClass:"btn btn-xs btn-default",removeTitle:"Remove file",uploadIcon:'<i class="glyphicon glyphicon-upload text-info"><\/i>',uploadClass:"btn btn-xs btn-default",uploadTitle:"Upload file",indicatorNew:'<i class="glyphicon glyphicon-hand-down text-warning"><\/i>',indicatorSuccess:'<i class="glyphicon glyphicon-ok-sign file-icon-large text-success"><\/i>',indicatorError:'<i class="glyphicon glyphicon-exclamation-sign text-danger"><\/i>',indicatorLoading:'<i class="glyphicon glyphicon-hand-up text-muted"><\/i>',indicatorNewTitle:"Not uploaded yet",indicatorSuccessTitle:"Uploaded",indicatorErrorTitle:"Upload Error",indicatorLoadingTitle:"Uploading ..."},ut='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}">\n    <object data="{data}" type="{type}" width="{width}" height="{height}">\n       '+e+"\n    <\/object>\n   {footer}\n<\/div>",ft='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}">\n   <img src="{data}" class="file-preview-image img-responsive" title="{caption}" alt="{caption}" '+f+">\n   {footer}\n<\/div>\n",et='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}">\n   <div class="file-preview-text" title="{caption}" '+f+">\n       {data}\n   <\/div>\n   {footer}\n<\/div>",ot='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" '+f+'>\n   <video width="{width}" height="{height}" controls>\n       <source src="{data}" type="{type}">\n       '+e+"\n   <\/video>\n   {footer}\n<\/div>\n",st='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" '+f+'>\n   <audio controls>\n       <source src="{data}" type="{type}">\n       '+e+"\n   <\/audio>\n   {footer}\n<\/div>",ht='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" '+f+'>\n   <object type="application/x-shockwave-flash" width="{width}" height="{height}" data="{data}">\n'+b+"       "+e+"\n   <\/object>\n   {footer}\n<\/div>\n",ct='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" '+f+'>\n   <object data="{data}" type="{type}" width="{width}" height="{height}">\n       <param name="movie" value="{caption}" />\n'+b+"         "+e+"\n   <\/object>\n   {footer}\n<\/div>",lt='<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}" title="{caption}" '+f+">\n   "+e+"\n   {footer}\n<\/div>",k={main1:'{preview}\n<div class="kv-upload-progress hide"><\/div>\n<div class="input-group {class}">\n   {caption}\n   <div class="input-group-btn">\n       {remove}\n       {cancel}\n       {upload}\n       {browse}\n   <\/div>\n<\/div>',main2:'{preview}\n<div class="kv-upload-progress hide"><\/div>\n{remove}\n{cancel}\n{upload}\n{browse}\n',preview:'<div class="file-preview {class}">\n    <div class="close fileinput-remove">&times;<\/div>\n    <div class="{dropClass}">\n    <div class="file-preview-thumbnails">\n    <\/div>\n    <div class="clearfix"><\/div>    <div class="file-preview-status text-center text-success"><\/div>\n    <div class="kv-fileinput-error"><\/div>\n    <\/div>\n<\/div>',icon:'<span class="glyphicon glyphicon-file kv-caption-icon"><\/span>',caption:'<div tabindex="-1" class="form-control file-caption {class}">\n   <span class="file-caption-ellipsis">&hellip;<\/span>\n   <div class="file-caption-name"><\/div>\n<\/div>',modal:'<div id="{id}" class="modal fade">\n  <div class="modal-dialog modal-lg">\n    <div class="modal-content">\n      <div class="modal-header">\n        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;<\/button>\n        <h3 class="modal-title">Detailed Preview <small>{title}<\/small><\/h3>\n      <\/div>\n      <div class="modal-body">\n        <textarea class="form-control" style="font-family:Monaco,Consolas,monospace; height: {height}px;" readonly>{body}<\/textarea>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>',progress:'<div class="progress">\n    <div class="{class}" role="progressbar" aria-valuenow="{percent}" aria-valuemin="0" aria-valuemax="100" style="width:{percent}%;">\n        {percent}%\n     <\/div>\n<\/div>',footer:'<div class="file-thumbnail-footer">\n    <div class="file-caption-name">{caption}<\/div>\n    {actions}\n<\/div>',actions:'<div class="file-actions">\n    <div class="file-footer-buttons">\n        {upload}{delete}{other}    <\/div>\n    <div class="file-upload-indicator" tabindex="-1" title="{indicatorTitle}">{indicator}<\/div>\n    <div class="clearfix"><\/div>\n<\/div>',actionDelete:'<button type="button" class="kv-file-remove {removeClass}" title="{removeTitle}"{dataUrl}{dataKey}>{removeIcon}<\/button>\n',actionUpload:'<button type="button" class="kv-file-upload {uploadClass}" title="{uploadTitle}">   {uploadIcon}\n<\/button>\n'},d={generic:'<div class="file-preview-frame{frameClass}" id="{previewId}" data-fileindex="{fileindex}">\n   {content}\n   {footer}\n<\/div>\n',html:ut,image:ft,text:et,video:ot,audio:st,flash:ht,object:ct,other:lt},l=["image","html","text","video","audio","flash","object"],g={image:{width:"auto",height:"160px"},html:{width:"213px",height:"160px"},text:{width:"160px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"213px",height:"80px"},flash:{width:"213px",height:"160px"},object:{width:"160px",height:"160px"},other:{width:"160px",height:"160px"}},w={image:function(n,t){return void 0!==n?n.match("image.*"):t.match(/\.(gif|png|jpe?g)$/i)},html:function(n,t){return void 0!==n?"text/html"===n:t.match(/\.(htm|html)$/i)},text:function(n,t){return void 0!==n&&n.match("text.*")||t.match(/\.(txt|md|csv|nfo|php|ini)$/i)},video:function(n,t){return void 0!==n&&n.match(/\.video\/(ogg|mp4|webm)$/i)||t.match(/\.(og?|mp4|webm)$/i)},audio:function(n,t){return void 0!==n&&n.match(/\.audio\/(ogg|mp3|wav)$/i)||t.match(/\.(ogg|mp3|wav)$/i)},flash:function(n,t){return void 0!==n&&"application/x-shockwave-flash"===n||t.match(/\.(swf)$/i)},object:function(){return!0},other:function(){return!0}},i=function(t,i){return null===t||void 0===t||0===t.length||i&&""===n.trim(t)},h=function(n){return Array.isArray(n)||"[object Array]"===Object.prototype.toString.call(n)},u=function(n,t){return"object"==typeof t&&n in t},o=function(t,r,u){return i(t)||i(t[r])?u:n(t[r])},a=function(){return Math.round((new Date).getTime()+100*Math.random())},at=function(n){return String(n).repl("&","&amp;").repl('"',"&quot;").repl("'","&#39;").repl("<","&lt;").repl(">","&gt;")},v=function(t,i){var r=t;return i=i||{},n.each(i,function(n,t){"function"==typeof t&&(t=t());r=r.repl(n,t)}),r},c=window.URL||window.webkitURL,y=function(t,i){var r=this;r.$element=n(t);r.validate()&&(p()||s(9)?(r.init(i),r.listen()):r.$element.removeClass("file-loading"))};y.prototype={constructor:y,validate:function(){var n,t=this;return"file"===t.$element.attr("type")?!0:(n='<div class="help-block alert alert-warning"><h4>Invalid Input Type<\/h4>You must set an input <code>type = file<\/code> for <b>bootstrap-fileinput<\/b> plugin to initialize.<\/div>',t.$element.after(n),!1)},init:function(u){var e,f=this,h=f.$element;n.each(u,function(n,t){f[n]="maxFileCount"===n||"maxFileSize"===n?nt(t):t});f.fileInputCleared=!1;f.fileBatchCompleted=!0;i(f.allowedPreviewTypes)&&(f.allowedPreviewTypes=l);f.uploadFileAttr=i(h.attr("name"))?"file_data":h.attr("name");f.reader=null;f.formdata={};f.isIE9=s(9);f.isIE10=s(10);f.filestack=[];f.ajaxRequests=[];f.isError=!1;f.ajaxAborted=!1;f.dropZoneEnabled=tt()&&f.dropZoneEnabled;f.isDisabled=f.$element.attr("disabled")||f.$element.attr("readonly");f.isUploadable=it&&!i(f.uploadUrl);f.slug="function"==typeof u.slugCallback?u.slugCallback:f.slugDefault;f.mainTemplate=f.getLayoutTemplate(f.showCaption?"main1":"main2");f.captionTemplate=f.getLayoutTemplate("caption");f.previewGenericTemplate=f.getPreviewTemplate("generic");i(f.$element.attr("id"))&&f.$element.attr("id",a());void 0===f.$container?f.$container=f.createContainer():f.refreshContainer();f.$progress=f.$container.find(".kv-upload-progress");f.$btnUpload=f.$container.find(".kv-fileinput-upload");f.$captionContainer=o(u,"elCaptionContainer",f.$container.find(".file-caption"));f.$caption=o(u,"elCaptionText",f.$container.find(".file-caption-name"));f.$previewContainer=o(u,"elPreviewContainer",f.$container.find(".file-preview"));f.$preview=o(u,"elPreviewImage",f.$container.find(".file-preview-thumbnails"));f.$previewStatus=o(u,"elPreviewStatus",f.$container.find(".file-preview-status"));f.$errorContainer=o(u,"elErrorContainer",f.$previewContainer.find(".kv-fileinput-error"));i(f.msgErrorClass)||r(f.$errorContainer,f.msgErrorClass);f.$errorContainer.hide();f.fileActionSettings=n.extend(rt,u.fileActionSettings);f.previewInitId="preview-"+a();f.id=f.$element.attr("id");t.init(f);f.initPreview(!0);f.initPreviewDeletes();f.options=u;f.setFileDropZoneTitle();f.uploadCount=0;f.uploadPercent=0;f.$element.removeClass("file-loading");e=f.getLayoutTemplate("progress");f.progressTemplate=e.replace("{class}",f.progressClass);f.progressCompleteTemplate=e.replace("{class}",f.progressCompleteClass);f.setEllipsis()},parseError:function(t,i,r){var o=this,f=n.trim(i+""),e="."===f.slice(-1)?"":".",u=n(t.responseText).text();return o.showAjaxErrorDetails?(u=n.trim(u.replace(/\n\s*\n/g,"\n")),u=u.length>0?"<pre>"+u+"<\/pre>":"",f+=e+u):f+=e,r?"<b>"+r+": <\/b>"+t:f},raise:function(t,i){var r=this,u=n.Event(t),f=!1;if(void 0!==i?r.$element.trigger(u,i):r.$element.trigger(u),u.result&&(f=!0),f)switch(t){case"filebatchuploadcomplete":case"filebatchuploadsuccess":case"fileuploaded":case"fileclear":case"filecleared":case"filereset":case"fileerror":case"filefoldererror":case"fileuploaderror":case"filebatchuploaderror":case"filedeleteerror":case"filecustomerror":break;default:r.ajaxAborted=f}},getLayoutTemplate:function(n){var t=this,r=u(n,t.layoutTemplates)?t.layoutTemplates[n]:k[n];return i(t.customLayoutTags)?r:v(r,t.customLayoutTags)},getPreviewTemplate:function(n){var t=this,r=u(n,t.previewTemplates)?t.previewTemplates[n]:d[n];return r=r.repl("{previewFileIcon}",t.previewFileIcon),i(t.customPreviewTags)?r:v(r,t.customPreviewTags)},getOutData:function(n,t,i){var r=this;return n=n||{},t=t||{},i=i||r.filestack.slice(0)||{},{form:r.formdata,files:i,extra:r.getExtraData(),response:t,reader:r.reader,jqXHR:n}},setEllipsis:function(){var i=this,n=i.$captionContainer,r=i.$caption,t=r.clone().css("height","auto").hide();n.parent().before(t);n.removeClass("kv-has-ellipsis");t.outerWidth()>r.outerWidth()&&n.addClass("kv-has-ellipsis");t.remove()},listen:function(){var t=this,r=t.$element,f=t.$captionContainer,e=t.$btnFile,u=r.closest("form");r.on("change",n.proxy(t.change,t));n(window).on("resize",function(){t.setEllipsis()});e.off("click").on("click",function(){t.raise("filebrowse");t.isError&&!t.isUploadable&&t.clear();f.focus()});u.off("reset").on("reset",n.proxy(t.reset,t));t.$container.off("click").on("click",".fileinput-remove:not([disabled])",n.proxy(t.clear,t)).on("click",".fileinput-cancel",n.proxy(t.cancel,t));t.isUploadable&&t.dropZoneEnabled&&t.showPreview&&t.initDragDrop();t.isUploadable||u.on("submit",n.proxy(t.submitForm,t));t.$container.find(".kv-fileinput-upload").off("click").on("click",function(r){t.isUploadable&&(r.preventDefault(),!n(this).hasClass("disabled")&&i(n(this).attr("disabled"))&&t.upload())})},submitForm:function(){var n=this,i=n.$element,t=i.get(0).files;return t&&t.length<n.minFileCount&&n.minFileCount>0?(n.noFilesError({}),!1):!n.abort({})},abort:function(t){var r,i=this;return i.ajaxAborted&&"object"==typeof i.ajaxAborted&&void 0!==i.ajaxAborted.message?(r=void 0!==i.ajaxAborted.data?i.getOutData({},i.ajaxAborted.data):i.getOutData(),r=n.extend(r,t),i.showUploadError(i.ajaxAborted.message,r,"filecustomerror"),!0):!1},noFilesError:function(n){var t=this,u=t.minFileCount>1?t.filePlural:t.fileSingle,f=t.msgFilesTooLess.repl("{n}",t.minFileCount).repl("{files}",u),i=t.$errorContainer;i.html(f);t.isError=!0;t.updateFileDetails(0);i.fadeIn(800);t.raise("fileerror",[n]);t.clearFileInput();r(t.$container,"has-error")},setProgress:function(n){var t=this,i=Math.min(n,100),r=100>i?t.progressTemplate:t.progressCompleteTemplate;t.$progress.html(r.repl("{percent}",i))},upload:function(){var i,u,f,t=this,r=t.getFileStack().length,e=!n.isEmptyObject(t.getExtraData());if(r<t.minFileCount&&t.minFileCount>0)return void t.noFilesError({});if(t.isUploadable&&!t.isDisabled&&(0!==r||e)){if(t.resetUpload(),t.$progress.removeClass("hide"),t.uploadCount=0,t.uploadPercent=0,t.lock(),t.setProgress(0),0===r&&e)return void t.uploadExtraOnly();if(f=t.filestack.length,t.hasInitData=!1,t.uploadAsync&&t.showPreview)for(u=t.getOutData(),t.raise("filebatchpreupload",[u]),t.fileBatchCompleted=!1,t.uploadCache={content:[],config:[],tags:[],append:!0},i=0;f>i;i+=1)void 0!==t.filestack[i]&&t.uploadSingle(i,t.filestack,!0);else t.uploadBatch()}},lock:function(){var n=this;n.resetErrors();n.disable();n.showRemove&&r(n.$container.find(".fileinput-remove"),"hide");n.showCancel&&n.$container.find(".fileinput-cancel").removeClass("hide");n.raise("filelock",[n.filestack,n.getExtraData()])},unlock:function(n){var t=this;void 0===n&&(n=!0);t.enable();t.showCancel&&r(t.$container.find(".fileinput-cancel"),"hide");t.showRemove&&t.$container.find(".fileinput-remove").removeClass("hide");n&&t.resetFileStack();t.raise("fileunlock",[t.filestack,t.getExtraData()])},resetFileStack:function(){var t=this,i=0,r=[];t.getThumbs().each(function(){var u=n(this),f=u.attr("data-fileindex"),e=t.filestack[f];-1!==f&&(void 0!==e?(r[i]=e,u.attr({id:t.previewInitId+"-"+i,"data-fileindex":i}),i+=1):u.attr({id:"uploaded-"+a(),"data-fileindex":"-1"}))});t.filestack=r},refresh:function(t){var r,i=this,u=i.$element,f=arguments.length?n.extend(i.options,t):i.options;u.off();i.init(f);r=i.$container.find(".file-drop-zone");r.off("dragenter dragover drop");n(document).off("dragenter dragover drop");i.listen();i.setFileDropZoneTitle()},initDragDrop:function(){var t=this,i=t.$container.find(".file-drop-zone");i.off("dragenter dragover drop");n(document).off("dragenter dragover drop");i.on("dragenter dragover",function(i){i.stopPropagation();i.preventDefault();t.isDisabled||r(n(this),"highlighted")});i.on("dragleave",function(i){i.stopPropagation();i.preventDefault();t.isDisabled||n(this).removeClass("highlighted")});i.on("drop",function(i){i.preventDefault();t.isDisabled||(t.change(i,"dragdrop"),n(this).removeClass("highlighted"))});n(document).on("dragenter dragover drop",function(n){n.stopPropagation();n.preventDefault()})},setFileDropZoneTitle:function(){var n=this,t=n.$container.find(".file-drop-zone");t.find("."+n.dropZoneTitleClass).remove();n.isUploadable&&n.showPreview&&0!==t.length&&!(n.getFileStack().length>0)&&n.dropZoneEnabled&&(0===t.find(".file-preview-frame").length&&t.prepend('<div class="'+n.dropZoneTitleClass+'">'+n.dropZoneTitle+"<\/div>"),n.$container.removeClass("file-input-new"),r(n.$container,"file-input-ajax-new"))},initFileActions:function(){var i=this;i.$preview.find(".kv-file-remove").each(function(){var u,f,e=n(this),r=e.closest(".file-preview-frame"),o=r.attr("data-fileindex");e.off("click").on("click",function(){r.fadeOut("slow",function(){i.filestack[o]=void 0;i.clearObjects(r);r.remove();var n=i.getFileStack(),e=n.length,s=t.count(i.id);i.clearFileInput();0===e&&0===s?i.reset():(u=s+e,f=u>1?i.getMsgSelected(u):n[0].name,i.setCaption(f))})})});i.$preview.find(".kv-file-upload").each(function(){var t=n(this);t.off("click").on("click",function(){var n=t.closest(".file-preview-frame"),r=n.attr("data-fileindex");i.uploadSingle(r,i.filestack,!1)})})},getMsgSelected:function(n){var t=this,i=1===n?t.fileSingle:t.filePlural;return t.msgSelected.repl("{n}",n).repl("{files}",i)},renderFileFooter:function(n,t){var u,r,i=this,f=i.fileActionSettings,e=i.getLayoutTemplate("footer");return i.isUploadable?(u=e.repl("{actions}",i.renderFileActions(!0,!0,!1,!1,!1)),r=u.repl("{caption}",n).repl("{width}",t).repl("{indicator}",f.indicatorNew).repl("{indicatorTitle}",f.indicatorNewTitle)):r=e.repl("{actions}","").repl("{caption}",n).repl("{width}",t).repl("{indicator}","").repl("{indicatorTitle}",""),r=v(r,i.previewThumbTags)},renderFileActions:function(n,t,i,r,u){if(!n&&!t)return"";var e=this,c=r===!1?"":' data-url="'+r+'"',s=u===!1?"":' data-key="'+u+'"',o=e.getLayoutTemplate("actionDelete"),h="",l=e.getLayoutTemplate("actions"),a=e.otherActionButtons.repl("{dataKey}",s),f=e.fileActionSettings,v=i?f.removeClass+" disabled":f.removeClass;return o=o.repl("{removeClass}",v).repl("{removeIcon}",f.removeIcon).repl("{removeTitle}",f.removeTitle).repl("{dataUrl}",c).repl("{dataKey}",s),n&&(h=e.getLayoutTemplate("actionUpload").repl("{uploadClass}",f.uploadClass).repl("{uploadIcon}",f.uploadIcon).repl("{uploadTitle}",f.uploadTitle)),l.repl("{delete}",o).repl("{upload}",h).repl("{other}",a)},initPreview:function(n){var u,r=this,f=r.initialCaption||"";return t.count(r.id)?(u=t.out(r.id),f=n&&r.initialCaption?r.initialCaption:u.caption,r.$preview.html(u.content),r.setCaption(f),void(i(u.content)||r.$container.removeClass("file-input-new"))):(r.$preview.html(""),void(n?r.setCaption(f):r.initCaption()))},initPreviewDeletes:function(){var u=this,e=u.deleteExtraData||{},f=function(){0===u.$preview.find(".kv-file-remove").length&&(u.reset(),u.initialCaption="")};u.$preview.find(".kv-file-remove").each(function(){var h=n(this),p=h.data("url")||u.deleteUrl,l=h.data("key");if(!i(p)&&void 0!==l){var w,c,v,o,s=h.closest(".file-preview-frame"),y=t.data[u.id],a=s.data("fileindex");a=parseInt(a.replace("init_",""));v=i(y.config)&&i(y.config[a])?null:y.config[a];o=i(v)||i(v.extra)?e:v.extra;"function"==typeof o&&(o=o());c={id:h.attr("id"),key:l,extra:o};w=n.extend({url:p,type:"DELETE",dataType:"json",data:n.extend({key:l},o),beforeSend:function(n){u.ajaxAborted=!1;u.raise("filepredelete",[l,n,o]);u.ajaxAborted?n.abort():(r(s,"file-uploading"),r(h,"disabled"))},success:function(n,i,r){var e,v;return void 0!==n&&void 0!==n.error?(c.jqXHR=r,c.response=n,u.showError(n.error,c,"filedeleteerror"),s.removeClass("file-uploading"),h.removeClass("disabled"),void f()):(t.unset(u.id,a),e=t.count(u.id),v=e>0?u.getMsgSelected(e):"",u.raise("filedeleted",[l,r,o]),u.setCaption(v),s.removeClass("file-uploading").addClass("file-deleted"),void s.fadeOut("slow",function(){u.clearObjects(s);s.remove();f();e||0!==u.getFileStack().length||(u.setCaption(""),u.reset())}))},error:function(n,t,i){var r=u.parseError(n,i);c.jqXHR=n;c.response={};u.showError(r,c,"filedeleteerror");s.removeClass("file-uploading");f()}},u.ajaxDeleteSettings);h.off("click").on("click",function(){n.ajax(w)})}})},clearObjects:function(t){t.find("video audio").each(function(){this.pause();n(this).remove()});t.find("img object div").each(function(){n(this).remove()})},clearFileInput:function(){var e,r,u,f=this,t=f.$element;i(t.val())||(f.isIE9||f.isIE10?(e=t.closest("form"),r=n(document.createElement("form")),u=n(document.createElement("div")),t.before(u),e.length?e.after(r):u.after(r),r.append(t).trigger("reset"),u.before(t).remove(),r.remove()):t.val(""),f.fileInputCleared=!0)},resetUpload:function(){var n=this;n.uploadCache={content:[],config:[],tags:[],append:!0};n.uploadCount=0;n.uploadPercent=0;n.$btnUpload.removeAttr("disabled");n.setProgress(0);r(n.$progress,"hide");n.resetErrors(!1);n.ajaxAborted=!1;n.ajaxRequests=[]},cancel:function(){var t,i=this,r=i.ajaxRequests,u=r.length;if(u>0)for(t=0;u>t;t+=1)r[t].abort();i.getThumbs().each(function(){var t=n(this),r=t.attr("data-fileindex");t.removeClass("file-uploading");void 0!==i.filestack[r]&&(t.find(".kv-file-upload").removeClass("disabled").removeAttr("disabled"),t.find(".kv-file-remove").removeClass("disabled").removeAttr("disabled"));i.unlock()})},clear:function(){var u,i=this;i.$btnUpload.removeAttr("disabled");i.resetUpload();i.filestack=[];i.clearFileInput();i.resetErrors(!0);i.raise("fileclear");!i.overwriteInitial&&t.count(i.id)?(i.showFileIcon(),i.resetPreview(),i.setEllipsis(),i.initPreviewDeletes(),i.$container.removeClass("file-input-new")):(i.getThumbs().each(function(){i.clearObjects(n(this))}),i.$preview.html(""),u=!i.overwriteInitial&&i.initialCaption.length>0?i.initialCaption:"",i.setCaption(u),i.setEllipsis(),i.$caption.attr("title",""),r(i.$container,"file-input-new"));0===i.$container.find(".file-preview-frame").length&&(i.initCaption()||i.$captionContainer.find(".kv-caption-icon").hide(),i.setEllipsis());i.hideFileIcon();i.raise("filecleared");i.$captionContainer.focus();i.setFileDropZoneTitle()},resetPreview:function(){var i,n=this;t.count(n.id)?(i=t.out(n.id),n.$preview.html(i.content),n.setCaption(i.caption)):(n.$preview.html(""),n.initCaption())},reset:function(){var n=this;n.clear();n.resetPreview();n.setEllipsis();n.$container.find(".fileinput-filename").text("");n.raise("filereset");n.initialPreview.length>0&&n.$container.removeClass("file-input-new");n.setFileDropZoneTitle();n.filestack=[];n.formdata={}},disable:function(){var n=this;n.isDisabled=!0;n.raise("filedisabled");n.$element.attr("disabled","disabled");n.$container.find(".kv-fileinput-caption").addClass("file-caption-disabled");n.$container.find(".btn-file, .fileinput-remove, .kv-fileinput-upload").attr("disabled",!0);n.initDragDrop()},enable:function(){var n=this;n.isDisabled=!1;n.raise("fileenabled");n.$element.removeAttr("disabled");n.$container.find(".kv-fileinput-caption").removeClass("file-caption-disabled");n.$container.find(".btn-file, .fileinput-remove, .kv-fileinput-upload").removeAttr("disabled");n.initDragDrop()},getThumbs:function(n){return n=n||"",this.$preview.find(".file-preview-frame:not(.file-preview-initial)"+n)},getExtraData:function(){var n=this,t=n.uploadExtraData;return"function"==typeof n.uploadExtraData&&(t=n.uploadExtraData()),t},uploadExtra:function(){var t=this,i=t.getExtraData();0!==i.length&&n.each(i,function(n,i){t.formdata.append(n,i)})},initXhr:function(n,t){var i=this;return n.upload&&n.upload.addEventListener("progress",function(n){var r=0,u=n.loaded||n.position,f=n.total;n.lengthComputable&&(r=Math.ceil(u/f*t));i.uploadPercent=Math.max(r,i.uploadPercent);i.setProgress(i.uploadPercent)},!1),n},ajaxSubmit:function(t,i,r,u){var e,f=this;f.uploadExtra();e=n.extend({xhr:function(){var t=n.ajaxSettings.xhr();return f.initXhr(t,98)},url:f.uploadUrl,type:"POST",dataType:"json",data:f.formdata,cache:!1,processData:!1,contentType:!1,beforeSend:t,success:i,complete:r,error:u},f.ajaxSettings);f.ajaxRequests.push(n.ajax(e))},initUploadSuccess:function(i,r,u){var e,l,a,c,o,s,h,f=this;"object"!=typeof i||n.isEmptyObject(i)||void 0!==i.initialPreview&&i.initialPreview.length>0&&(f.hasInitData=!0,o=i.initialPreview||[],s=i.initialPreviewConfig||[],h=i.initialPreviewThumbTags||[],e=void 0===i.append||i.append?!0:!1,f.overwriteInitial=!1,void 0===r||u?u?(f.uploadCache.content.push(o[0]),f.uploadCache.config.push(s[0]),f.uploadCache.tags.push(h[0]),f.uploadCache.append=e):(t.set(f.id,o,s,h,e),f.initPreview(),f.initPreviewDeletes()):(a=t.add(f.id,o,s[0],h[0],e),l=t.get(f.id,a,!1),c=n(l).hide(),r.after(c).fadeOut("slow",function(){c.fadeIn("slow").css("display:inline-block");f.initPreviewDeletes();f.clearFileInput()})))},uploadSingle:function(i,u,f){var s,w,b,c,k,d,g,nt,tt,it,e=this,v=e.getFileStack().length,y=new FormData,l=e.previewInitId+"-"+i,h=n("#"+l+":not(.file-preview-initial)"),a=h.find(".kv-file-upload"),p=h.find(".kv-file-remove"),rt=h.find(".file-upload-indicator"),ut=e.fileActionSettings,ft=e.filestack.length>0||!n.isEmptyObject(e.uploadExtraData),o={id:l,index:i};e.formdata=y;0===v||!ft||a.hasClass("disabled")||e.abort(o)||(b=function(){var n=e.getThumbs(".file-uploading");n.length>0||e.fileBatchCompleted||(e.fileBatchCompleted=!0,setTimeout(function(){t.set(e.id,e.uploadCache.content,e.uploadCache.config,e.uploadCache.tags,e.uploadCache.append);e.hasInitData&&(e.initPreview(),e.initPreviewDeletes());e.setProgress(100);e.unlock();e.clearFileInput();e.raise("filebatchuploadcomplete",[e.filestack,e.getExtraData()])},100))},c=function(n,t){rt.html(ut[n]);rt.attr("title",ut[t])},k=function(){!f||0===v||e.uploadPercent>=100||(e.uploadCount+=1,w=80+Math.ceil(20*e.uploadCount/v),e.uploadPercent=Math.max(w,e.uploadPercent),e.setProgress(e.uploadPercent),e.initPreviewDeletes())},d=function(){a.removeAttr("disabled");p.removeAttr("disabled");h.removeClass("file-uploading")},g=function(t){s=e.getOutData(t);c("indicatorLoading","indicatorLoadingTitle");r(h,"file-uploading");a.attr("disabled",!0);p.attr("disabled",!0);f||e.lock();e.raise("filepreupload",[s,l,i]);o=n.extend(o,s);e.abort(o)&&(t.abort(),e.setProgress(100))},nt=function(t,r,u){s=e.getOutData(u,t);o=n.extend(o,s);setTimeout(function(){void 0===t.error?(c("indicatorSuccess","indicatorSuccessTitle"),a.hide(),p.hide(),e.filestack[i]=void 0,e.raise("fileuploaded",[s,l,i]),e.initUploadSuccess(t,h,f),f||e.resetFileStack()):(c("indicatorError","indicatorErrorTitle"),e.showUploadError(t.error,o))},100)},tt=function(){setTimeout(function(){k();d();f?b():e.unlock(!1)},100)},it=function(t,r,s){var h=e.parseError(t,s,f?u[i].name:null);c("indicatorError","indicatorErrorTitle");o=n.extend(o,e.getOutData(t));e.showUploadError(h,o)},y.append(e.uploadFileAttr,u[i]),y.append("file_id",i),e.ajaxSubmit(g,nt,tt,it))},uploadBatch:function(){var e,u,s,o,h,c,l,a,t=this,f=t.filestack,v=f.length,y=t.filestack.length>0||!n.isEmptyObject(t.uploadExtraData);t.formdata=new FormData;0!==v&&y&&!t.abort({})&&(e=t.fileActionSettings,u=function(i,r,u){var f=n("#"+t.previewInitId+"-"+i).find(".file-upload-indicator");f.html(e[r]);f.attr("title",e[u])},o=function(i){var r=n("#"+t.previewInitId+"-"+i+":not(.file-preview-initial)"),u=r.find(".kv-file-upload"),f=r.find(".kv-file-delete");r.removeClass("file-uploading");u.removeAttr("disabled");f.removeAttr("disabled")},s=function(){n.each(f,function(n){t.filestack[n]=void 0});t.clearFileInput()},h=function(i){t.lock();var u=t.getOutData(i);t.showPreview&&t.getThumbs().each(function(){var t=n(this),i=t.find(".kv-file-upload"),u=t.find(".kv-file-remove");r(t,"file-uploading");i.attr("disabled",!0);u.attr("disabled",!0)});t.raise("filebatchpreupload",[u]);t.abort(u)&&i.abort()},c=function(r,f,e){var c=t.getOutData(e,r),h=t.getThumbs(),l=i(r.errorkeys)?[]:r.errorkeys;void 0===r.error||i(r.error)?(t.raise("filebatchuploadsuccess",[c]),s(),t.showPreview?(h.find(".kv-file-upload").hide(),h.find(".kv-file-remove").hide(),h.each(function(){var i=n(this),t=i.attr("data-fileindex");u(t,"indicatorSuccess","indicatorSuccessTitle");o(t)}),t.initUploadSuccess(r)):t.reset()):(t.showPreview&&(h.each(function(){var r=n(this),i=parseInt(r.attr("data-fileindex"),10);return o(i),0===l.length?void u(i,"indicatorError","indicatorErrorTitle"):void(-1!==n.inArray(i,l)?u(i,"indicatorError","indicatorErrorTitle"):(r.find(".kv-file-upload").hide(),r.find(".kv-file-remove").hide(),u(i,"indicatorSuccess","indicatorSuccessTitle"),t.filestack[i]=void 0))}),t.initUploadSuccess(r)),t.showUploadError(r.error,c,"filebatchuploaderror"))},l=function(){t.setProgress(100);t.unlock();t.raise("filebatchuploadcomplete",[t.filestack,t.getExtraData()]);t.clearFileInput()},a=function(i,r,f){var e=t.getOutData(i),o=t.parseError(i,f);t.showUploadError(o,e,"filebatchuploaderror");t.uploadFileCount=v-1;t.showPreview&&(t.getThumbs().each(function(){var i=n(this),r=i.attr("data-fileindex");i.removeClass("file-uploading");void 0!==t.filestack[r]&&u(r,"indicatorError","indicatorErrorTitle")}),t.getThumbs().removeClass("file-uploading"),t.getThumbs(" .kv-file-upload").removeAttr("disabled"),t.getThumbs(" .kv-file-delete").removeAttr("disabled"))},n.each(f,function(n,r){i(f[n])||t.formdata.append(t.uploadFileAttr,r)}),t.ajaxSubmit(h,c,l,a))},uploadExtraOnly:function(){var r,u,f,e,n=this,t={};n.formdata=new FormData;n.abort(t)||(r=function(i){n.lock();var r=n.getOutData(i);n.raise("filebatchpreupload",[r]);n.setProgress(50);t.data=r;t.xhr=i;n.abort(t)&&(i.abort(),n.setProgress(100))},u=function(t,r,u){var f=n.getOutData(u,t);void 0===t.error||i(t.error)?(n.raise("filebatchuploadsuccess",[f]),n.clearFileInput(),n.initUploadSuccess(t)):n.showUploadError(t.error,f,"filebatchuploaderror")},f=function(){n.setProgress(100);n.unlock();n.raise("filebatchuploadcomplete",[n.filestack,n.getExtraData()]);n.clearFileInput()},e=function(i,r,u){var f=n.getOutData(i),e=n.parseError(i,u);t.data=f;n.showUploadError(e,f,"filebatchuploaderror")},n.ajaxSubmit(r,u,f,e))},hideFileIcon:function(){this.overwriteInitial&&this.$captionContainer.find(".kv-caption-icon").hide()},showFileIcon:function(){this.$captionContainer.find(".kv-caption-icon").show()},resetErrors:function(n){var t=this,i=t.$errorContainer;t.isError=!1;t.$container.removeClass("has-error");i.html("");n?i.fadeOut("slow"):i.hide()},showFolderError:function(n){var t=this,i=t.$errorContainer;n&&(i.html(t.msgFoldersNotAllowed.repl("{n}",n)),i.fadeIn(800),r(t.$container,"has-error"),t.raise("filefoldererror",[n]))},showUploadError:function(n,t,i){var f=this,u=f.$errorContainer,e=i||"fileuploaderror";return 0===u.find("ul").length?u.html("<ul><li>"+n+"<\/li><\/ul>"):u.find("ul").append("<li>"+n+"<\/li>"),u.fadeIn(800),f.raise(e,[t]),r(f.$container,"has-error"),!0},showError:function(n,t,i){var u=this,f=u.$errorContainer,e=i||"fileerror";return t=t||{},t.reader=u.reader,f.html(n),f.fadeIn(800),u.raise(e,[t]),u.isUploadable||u.clearFileInput(),r(u.$container,"has-error"),u.$btnUpload.attr("disabled",!0),!0},errorHandler:function(n,t){var i=this,r=n.target.error;switch(r.code){case r.NOT_FOUND_ERR:i.showError(i.msgFileNotFound.repl("{name}",t));break;case r.SECURITY_ERR:i.showError(i.msgFileSecured.repl("{name}",t));break;case r.NOT_READABLE_ERR:i.showError(i.msgFileNotReadable.repl("{name}",t));break;case r.ABORT_ERR:i.showError(i.msgFilePreviewAborted.repl("{name}",t));break;default:i.showError(i.msgFilePreviewError.repl("{name}",t))}},parseFileType:function(n){for(var e,f,t,o=this,r=0;r<l.length;r+=1)if(t=l[r],e=u(t,o.fileTypeSettings)?o.fileTypeSettings[t]:w[t],f=e(n.type,n.name)?t:"",!i(f))return f;return"other"},previewDefault:function(t,i,r){if(this.showPreview){var u=this,h=c.createObjectURL(t),e=n("#"+i),f=u.previewSettings.other,o=u.renderFileFooter(t.name,f.width),l=u.getPreviewTemplate("other"),a=i.slice(i.lastIndexOf("-")+1),s="";r===!0&&(s=" btn disabled",o+='<div class="file-other-error text-danger"><i class="glyphicon glyphicon-exclamation-sign"><\/i><\/div>');u.$preview.append("\n"+l.repl("{previewId}",i).repl("{frameClass}",s).repl("{fileindex}",a).repl("{caption}",u.slug(t.name)).repl("{width}",f.width).repl("{height}",f.height).repl("{type}",t.type).repl("{data}",h).repl("{footer}",o));e.on("load",function(){c.revokeObjectURL(e.attr("data"))})}},previewFile:function(n,t,r,f){if(this.showPreview){var v,o,y,b,e=this,s=e.parseFileType(n),h=e.slug(n.name),rt=e.allowedPreviewTypes,p=e.allowedPreviewMimeTypes,k=e.getPreviewTemplate(s),l=u(s,e.previewSettings)?e.previewSettings[s]:g[s],d=parseInt(e.wrapTextLength,10),w=e.wrapIndicator,ut=rt.indexOf(s)>=0,ft=i(p)||!i(p)&&-1!==p.indexOf(n.type),nt=e.renderFileFooter(h,l.width),tt="",it=r.slice(r.lastIndexOf("-")+1);ut&&ft?("text"===s?(o=at(t.target.result),c.revokeObjectURL(f),o.length>d&&(y="text-"+a(),b=.75*window.innerHeight,tt=e.getLayoutTemplate("modal").repl("{id}",y).repl("{title}",h).repl("{height}",b).repl("{body}",o),w=w.repl("{title}",h).repl("{dialog}","$('#"+y+"').modal('show')"),o=o.substring(0,d-1)+w),v=k.repl("{previewId}",r).repl("{caption}",h).repl("{frameClass}","").repl("{type}",n.type).repl("{width}",l.width).repl("{height}",l.height).repl("{data}",o).repl("{footer}",nt).repl("{fileindex}",it)+tt):v=k.repl("{previewId}",r).repl("{caption}",h).repl("{frameClass}","").repl("{type}",n.type).repl("{data}",f).repl("{width}",l.width).repl("{height}",l.height).repl("{footer}",nt).repl("{fileindex}",it),e.$preview.append("\n"+v),e.autoSizeImage(r)):e.previewDefault(n,r)}},slugDefault:function(n){return i(n)?"":n.split(/(\\|\/)/g).pop().replace(/[^\w\u00C0-\u017F\-.\\\/ ]+/g,"")},getFileStack:function(){var n=this;return n.filestack.filter(function(n){return void 0!==n})},readFiles:function(t){function o(n){if(i(p.attr("multiple"))&&(e=1),n>=e)return r.isUploadable&&r.filestack.length>0?r.raise("filebatchselected",[r.getFileStack()]):r.raise("filebatchselected",[t]),v.removeClass("loading"),void s.html("");var at,ct,st,tt,vt,ut,pt=g+n,rt=d+"-"+pt,nt=t[n],it=r.slug(nt.name),ht=(nt.size||0)/1e3,lt="",yt=c.createObjectURL(nt),ot=0,ft=r.allowedFileTypes,wt=i(ft)?"":ft.join(", "),et=r.allowedFileExtensions,bt=i(et)?"":et.join(", ");if(i(et)||(lt=new RegExp("\\.("+et.join("|")+")$","i")),ht=ht.toFixed(2),r.maxFileSize>0&&ht>r.maxFileSize)return tt=r.msgSizeTooLarge.repl("{name}",it).repl("{size}",ht).repl("{maxSize}",r.maxFileSize),void(r.isError=a(tt,nt,rt,n));if(!i(ft)&&h(ft)){for(st=0;st<ft.length;st+=1)vt=ft[st],ct=l[vt],ut=void 0!==ct&&ct(nt.type,it),ot+=i(ut)?0:ut.length;if(0===ot)return tt=r.msgInvalidFileType.repl("{name}",it).repl("{types}",wt),void(r.isError=a(tt,nt,rt,n))}return 0!==ot||i(et)||!h(et)||i(lt)||(ut=it.match(lt),ot+=i(ut)?0:ut.length,0!==ot)?r.showPreview?(b.length>0&&void 0!==FileReader?(s.html(k.repl("{index}",n+1).repl("{files}",e)),v.addClass("loading"),f.onerror=function(n){r.errorHandler(n,it)},f.onload=function(n){r.previewFile(nt,n,rt,yt);r.initFileActions()},f.onloadend=function(){tt=y.repl("{index}",n+1).repl("{files}",e).repl("{percent}",50).repl("{name}",it);setTimeout(function(){s.html(tt);c.revokeObjectURL(yt)},100);setTimeout(function(){o(n+1);r.updateFileDetails(e)},100);r.raise("fileloaded",[nt,rt,n,f])},f.onprogress=function(t){if(t.lengthComputable){var i=t.loaded/t.total*100,r=Math.ceil(i);tt=y.repl("{index}",n+1).repl("{files}",e).repl("{percent}",r).repl("{name}",it);setTimeout(function(){s.html(tt)},100)}},at=u("text",l)?l.text:w.text,at(nt.type,it)?f.readAsText(nt,r.textEncoding):f.readAsArrayBuffer(nt)):(r.previewDefault(nt,rt),setTimeout(function(){o(n+1);r.updateFileDetails(e)},100),r.raise("fileloaded",[nt,rt,n,f])),void r.filestack.push(nt)):(r.filestack.push(nt),setTimeout(o(n+1),100),void r.raise("fileloaded",[nt,rt,n,f])):(tt=r.msgInvalidFileExtension.repl("{name}",it).repl("{extensions}",bt),void(r.isError=a(tt,nt,rt,n)))}this.reader=new FileReader;var r=this,p=r.$element,b=r.$preview,f=r.reader,v=r.$previewContainer,s=r.$previewStatus,k=r.msgLoading,y=r.msgProgress,d=r.previewInitId,e=t.length,l=r.fileTypeSettings,g=r.filestack.length,a=function(i,u,f,e){var o=n.extend(r.getOutData({},{},t),{id:f,index:e}),s={id:f,index:e,file:u,files:t};return r.previewDefault(u,f,!0),r.isUploadable?r.showUploadError(i,o):r.showError(i,s)};o(0);r.updateFileDetails(e,!1)},updateFileDetails:function(n){var i=this,e=i.$element,r=i.getFileStack(),o=e.val()||r.length&&r[0].name||"",u=i.slug(o),f=i.isUploadable?r.length:n,s=t.count(i.id)+f,h=f>1?i.getMsgSelected(s):u;i.isError?(i.$previewContainer.removeClass("loading"),i.$previewStatus.html(""),i.$captionContainer.find(".kv-caption-icon").hide()):i.showFileIcon();i.setCaption(h,i.isError);i.$container.removeClass("file-input-new file-input-ajax-new");1===arguments.length&&i.raise("fileselect",[n,u]);t.count(i.id)&&i.initPreviewDeletes()},change:function(r){var u=this,s=u.$element,a;if(!u.isUploadable&&i(s.val())&&u.fileInputCleared)return void(u.fileInputCleared=!1);u.fileInputCleared=!1;var f,v,h,e,y=u.$preview,p=arguments.length>1,o=p?r.originalEvent.dataTransfer.files:s.get(0).files,w=i(s.attr("multiple")),c=0,l=0,b=u.filestack.length,k=u.isUploadable,d=function(t,i,r,f){var e=n.extend(u.getOutData({},{},o),{id:r,index:f}),s={id:r,index:f,file:i,files:o};return u.isUploadable?u.showUploadError(t,e):u.showError(t,s)};if(u.reader=null,u.resetUpload(),u.hideFileIcon(),u.isUploadable&&u.$container.find(".file-drop-zone ."+u.dropZoneTitleClass).remove(),p)for(f=[];o[c];)e=o[c],e.type||e.size%4096!=0?f.push(e):l++,c++;else f=void 0===r.target.files?r.target&&r.target.value?[{name:r.target.value.replace(/^.+\\/,"")}]:[]:r.target.files;return i(f)||0===f.length?(k||u.clear(),u.showFolderError(l),void u.raise("fileselectnone")):((u.resetErrors(),!k||w&&b>0)&&(!u.overwriteInitial&&t.count(u.id)?(a=t.out(u.id),y.html(a.content),u.setCaption(a.caption),u.initPreviewDeletes()):y.html(""),w&&b>0&&(u.filestack=[])),h=u.isUploadable?u.getFileStack().length+f.length:f.length,u.maxFileCount>0&&h>u.maxFileCount?(v=u.msgFilesTooMany.repl("{m}",u.maxFileCount).repl("{n}",h),u.isError=d(v,null,null,null),u.$captionContainer.find(".kv-caption-icon").hide(),u.$caption.html(u.msgValidationError),u.setEllipsis(),void u.$container.removeClass("file-input-new file-input-ajax-new")):(u.isIE9?u.updateFileDetails(1):u.readFiles(f),void u.showFolderError(l)))},autoSizeImage:function(n){var u,f,t,e=this,o=e.$preview,r=o.find("#"+n),i=r.find("img");i.length&&i.on("load",function(){u=r.width();f=o.width();u>f&&(i.css("width","100%"),r.css("width","97%"));t=i.closest(".file-preview-frame").find(".file-caption-name");t.length&&(t.width(i.width()),t.attr("title",t.text()));e.raise("fileimageloaded",n)})},initCaption:function(){var t,n=this;return n.overwriteInitial?(n.$caption.html(""),!1):(t=n.initialCaption||"",n.setCaption(t),!0)},setCaption:function(t,r){var f,e,u=this,o=r||!1;if(o)f=n("<div>"+u.msgValidationError+"<\/div>").text(),e='<span class="'+u.msgValidationErrorClass+'">'+u.msgValidationErrorIcon+f+"<\/span>";else{if(i(t)||0===u.$caption.length)return;f=n("<div>"+t+"<\/div>").text();e=u.getLayoutTemplate("icon")+f}u.$caption.html(e);u.$caption.attr("title",f);u.$captionContainer.find(".file-caption-ellipsis").attr("title",f);u.setEllipsis()},initBrowse:function(n){var t=this;t.$btnFile=n.find(".btn-file");t.$btnFile.append(t.$element)},createContainer:function(){var t=this,i=n(document.createElement("span")).attr({"class":"file-input file-input-new"}).html(t.renderMain());return t.$element.before(i),t.initBrowse(i),i},refreshContainer:function(){var n=this,t=n.$container;t.before(n.$element);t.html(n.renderMain());n.initBrowse(t)},renderMain:function(){var n=this,t=n.isUploadable&&n.dropZoneEnabled?" file-drop-zone":"",i=n.showPreview?n.getLayoutTemplate("preview").repl("{class}",n.previewClass).repl("{dropClass}",t):"",r=n.isDisabled?n.captionClass+" file-caption-disabled":n.captionClass,u=n.captionTemplate.repl("{class}",r+" kv-fileinput-caption");return n.mainTemplate.repl("{class}",n.mainClass).repl("{preview}",i).repl("{caption}",u).repl("{upload}",n.renderUpload()).repl("{remove}",n.renderRemove()).repl("{cancel}",n.renderCancel()).repl("{browse}",n.renderBrowse())},renderBrowse:function(){var n=this,i=n.browseClass+" btn-file",t="";return n.isDisabled&&(t=" disabled "),'<div class="'+i+'"'+t+"> "+n.browseIcon+n.browseLabel+" <\/div>"},renderRemove:function(){var n=this,i=n.removeClass+" fileinput-remove fileinput-remove-button",t="";return n.showRemove?(n.isDisabled&&(t=" disabled "),'<button type="button" title="'+n.removeTitle+'" class="'+i+'"'+t+">"+n.removeIcon+n.removeLabel+"<\/button>"):""},renderCancel:function(){var n=this,t=n.cancelClass+" fileinput-cancel fileinput-cancel-button";return n.showCancel?'<button type="button" title="'+n.cancelTitle+'" class="hide '+t+'">'+n.cancelIcon+n.cancelLabel+"<\/button>":""},renderUpload:function(){var n=this,i=n.uploadClass+" kv-fileinput-upload fileinput-upload-button",r="",t="";return n.showUpload?(n.isDisabled&&(t=" disabled "),r=!n.isUploadable||n.isDisabled?'<button type="submit" title="'+n.uploadTitle+'"class="'+i+'"'+t+">"+n.uploadIcon+n.uploadLabel+"<\/button>":'<a href="'+n.uploadUrl+'" title="'+n.uploadTitle+'" class="'+i+'"'+t+">"+n.uploadIcon+n.uploadLabel+"<\/a>"):""}};n.fn.fileinput=function(t){if(p()||s(9)){var i=Array.apply(null,arguments);return i.shift(),this.each(function(){var u=n(this),r=u.data("fileinput"),f="object"==typeof t&&t;r||(r=new y(this,n.extend({},n.fn.fileinput.defaults,f,n(this).data())),u.data("fileinput",r));"string"==typeof t&&r[t].apply(r,i)})}};n.fn.fileinput.defaults={showCaption:!0,showPreview:!0,showRemove:!0,showUpload:!0,showCancel:!0,mainClass:"",previewClass:"",captionClass:"",mainTemplate:null,initialCaption:"",initialPreview:[],initialPreviewDelimiter:"*$$*",initialPreviewConfig:[],initialPreviewThumbTags:[],previewThumbTags:{},initialPreviewShowDelete:!0,deleteUrl:"",deleteExtraData:{},overwriteInitial:!0,layoutTemplates:k,previewTemplates:d,allowedPreviewTypes:l,allowedPreviewMimeTypes:null,allowedFileTypes:null,allowedFileExtensions:null,customLayoutTags:{},customPreviewTags:{},previewSettings:g,fileTypeSettings:w,previewFileIcon:'<i class="glyphicon glyphicon-file"><\/i>',browseIcon:'<i class="glyphicon glyphicon-folder-open"><\/i> &nbsp;',browseClass:"btn btn-primary",removeIcon:'<i class="glyphicon glyphicon-trash"><\/i> ',removeClass:"btn btn-default",cancelIcon:'<i class="glyphicon glyphicon-ban-circle"><\/i> ',cancelClass:"btn btn-default",uploadIcon:'<i class="glyphicon glyphicon-upload"><\/i> ',uploadClass:"btn btn-default",uploadUrl:null,uploadAsync:!0,uploadExtraData:{},maxFileSize:0,minFileCount:0,maxFileCount:0,msgValidationErrorClass:"text-danger",msgValidationErrorIcon:'<i class="glyphicon glyphicon-exclamation-sign"><\/i> ',msgErrorClass:"file-error-message",progressClass:"progress-bar progress-bar-success progress-bar-striped active",progressCompleteClass:"progress-bar progress-bar-success",previewFileType:"image",wrapTextLength:250,wrapIndicator:' <span class="wrap-indicator" title="{title}" onclick="{dialog}">[&hellip;]<\/span>',elCaptionContainer:null,elCaptionText:null,elPreviewContainer:null,elPreviewImage:null,elPreviewStatus:null,elErrorContainer:null,slugCallback:null,dropZoneEnabled:!0,dropZoneTitleClass:"file-drop-zone-title",fileActionSettings:{},otherActionButtons:"",textEncoding:"UTF-8",ajaxSettings:{},ajaxDeleteSettings:{},showAjaxErrorDetails:!0};n.fn.fileinput.locales={};n.fn.fileinput.locales.en={fileSingle:"file",filePlural:"files",browseLabel:"Browse &hellip;",removeLabel:"Remove",removeTitle:"Clear selected files",cancelLabel:"Cancel",cancelTitle:"Abort ongoing upload",uploadLabel:"Upload",uploadTitle:"Upload selected files",msgSizeTooLarge:'File "{name}" (<b>{size} KB<\/b>) exceeds maximum allowed upload size of <b>{maxSize} KB<\/b>. Please retry your upload!',msgFilesTooLess:"You must select at least <b>{n}<\/b> {files} to upload. Please retry your upload!",msgFilesTooMany:"Number of files selected for upload <b>({n})<\/b> exceeds maximum allowed limit of <b>{m}<\/b>. Please retry your upload!",msgFileNotFound:'File "{name}" not found!',msgFileSecured:'Security restrictions prevent reading the file "{name}".',msgFileNotReadable:'File "{name}" is not readable.',msgFilePreviewAborted:'File preview aborted for "{name}".',msgFilePreviewError:'An error occurred while reading the file "{name}".',msgInvalidFileType:'Invalid type for file "{name}". Only "{types}" files are supported.',msgInvalidFileExtension:'Invalid extension for file "{name}". Only "{extensions}" files are supported.',msgValidationError:"File Upload Error",msgLoading:"Loading file {index} of {files} &hellip;",msgProgress:"Loading file {index} of {files} - {name} - {percent}% completed.",msgSelected:"{n} {files} selected",msgFoldersNotAllowed:"Drag & drop files only! {n} folder(s) dropped were skipped.",dropZoneTitle:"Drag & drop files here &hellip;"};n.extend(n.fn.fileinput.defaults,n.fn.fileinput.locales.en);n.fn.fileinput.Constructor=y;n(document).ready(function(){var t=n("input.file[type=file]"),i=t.attr("type")?t.length:0;i>0&&t.fileinput()})}(window.jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend(i,{expires:-1})),!0):!1}}),function(n){"namespace sumo";n.fn.SumoSelect=function(t){var r=n.extend({placeholder:"Select Multi Category",csvDispCount:3,captionFormat:"{0} Selected",floatWidth:400,forceCustomRendering:!1,nativeOnDevice:["Android","BlackBerry","iPhone","iPad","iPod","Opera Mini","IEMobile","Silk"],outputAsCSV:!1,csvSepChar:",",okCancelInMulti:!1,triggerChangeCombined:!0,selectAll:!1,selectAlltext:"Select All"},t),u=this.each(function(){var t=this;!this.sumo&&n(this).is("select")&&(this.sumo={E:n(t),is_multi:n(t).attr("multiple"),select:"",caption:"",placeholder:"",optDiv:"",CaptionCont:"",is_floating:!1,is_opened:!1,mob:!1,Pstate:[],createElems:function(){var t=this;if(t.E.wrap('<div class="SumoSelect" tabindex="0">'),t.select=t.E.parent(),t.caption=n("<span><\/span>"),t.CaptionCont=n('<p class="CaptionCont"><label><i><\/i><\/label><\/p>').addClass("SlectBox").attr("style",t.E.attr("style")).prepend(t.caption),t.select.append(t.CaptionCont),t.E.attr("disabled")&&t.select.addClass("disabled").removeAttr("tabindex"),r.outputAsCSV&&t.is_multi&&t.E.attr("name")&&(t.select.append(n('<input class="HEMANT123" type="hidden" />').attr("name",t.E.attr("name")).val(t.getSelStr())),t.E.removeAttr("name")),t.isMobile()&&!r.forceCustomRendering){t.setNativeMobile();return}t.E.hide();t.optDiv=n('<div class="optWrapper">');t.floatingList();ul=n('<ul class="options">');t.optDiv.append(ul);r.selectAll&&t.selAll();n(t.E.children("option")).each(function(i,r){r=n(r);t.createLi(r)});t.is_multi&&t.multiSelelect();t.select.append(t.optDiv);t.basicEvents();t.selAllState()},createLi:function(t,i){var r=this;t.attr("value")||t.attr("value",t.val());li=n('<li data-val="'+t.val()+'"><label>'+t.text()+"<\/label><\/li>");r.is_multi&&li.prepend("<span><i><\/i><\/span>");t[0].disabled&&(li=li.addClass("disabled"));r.onOptClick(li);return t[0].selected&&li.addClass("selected"),t.attr("class")&&li.addClass(t.attr("class")),ul=r.optDiv.children("ul.options"),typeof i=="undefined"?ul.append(li):ul.children("li").eq(i).before(li),li},getSelStr:function(){return sopt=[],this.E.children("option:selected").each(function(){sopt.push(n(this).val())}),sopt.join(r.csvSepChar)},multiSelelect:function(){var t=this;t.optDiv.addClass("multiple");t.okbtn=n('<p class="btnOk">OK<\/p>').click(function(){r.triggerChangeCombined&&(changed=!1,t.E.children("option:selected").length!=t.Pstate.length?changed=!0:t.E.children("option:selected").each(function(){t.Pstate.indexOf(n(this).val())<0&&(changed=!0)}),changed&&(t.E.trigger("change").trigger("click"),t.setText()));t.hideOpts()});t.cancelBtn=n('<p class="btnCancel">Cancel<\/p>').click(function(){t._cnbtn();t.hideOpts()});t.optDiv.append(n('<div class="MultiControls">').append(t.okbtn).append(t.cancelBtn))},_cnbtn:function(){var n=this;for(n.E.children("option:selected").each(function(){this.selected=!1}),n.optDiv.find("li.selected").removeClass("selected"),i=0;i<n.Pstate.length;i++)n.E.children('option[value="'+n.Pstate[i]+'"]')[0].selected=!0,n.optDiv.find('li[data-val="'+n.Pstate[i]+'"]').addClass("selected");n.selAllState()},selAll:function(){var t=this;if(t.is_multi){t.chkAll=n("<i>");t.selAll=n('<p class="select-all"><label>'+r.selectAlltext+"<\/label><\/p>").prepend(n("<span><\/span>").append(t.chkAll));t.chkAll.on("click",function(){t.selAll.toggleClass("selected");t.optDiv.find("ul.options li").each(function(i,r){r=n(r);t.selAll.hasClass("selected")?r.hasClass("selected")||r.trigger("click"):r.hasClass("selected")&&r.trigger("click")})});t.optDiv.prepend(t.selAll)}},selAllState:function(){var t=this,i,u;r.selectAll&&(i=0,u=0,t.optDiv.find("ul.options li").each(function(t,r){n(r).hasClass("selected")&&i++;n(r).hasClass("disabled")||u++}),i==u?t.selAll.removeClass("partial").addClass("selected"):i==0?t.selAll.removeClass("selected partial"):t.selAll.addClass("partial"))},showOpts:function(){var t=this;if(!t.E.attr("disabled")){t.is_opened=!0;t.optDiv.addClass("open");n(document).on("click.sumo",function(n){if(!t.select.is(n.target)&&t.select.has(n.target).length===0){if(!t.is_opened)return;t.hideOpts();t.is_multi&&r.okCancelInMulti&&t._cnbtn()}});t.is_floating&&(H=t.optDiv.children("ul").outerHeight()+2,t.is_multi&&(H=H+parseInt(t.optDiv.css("padding-bottom"))),t.optDiv.css("height",H));t.is_multi&&(t.is_floating||r.okCancelInMulti)&&(t.Pstate=[],t.E.children("option:selected").each(function(){t.Pstate.push(n(this).val())}))}},hideOpts:function(){var t=this;t.is_opened=!1;t.optDiv.removeClass("open").find("ul li.sel").removeClass("sel");n(document).off("click.sumo")},setOnOpen:function(){var n=this,t=n.optDiv.find("ul li").eq(n.E[0].selectedIndex);t.addClass("sel");n.showOpts()},nav:function(n){var r=this,f,t=r.optDiv.find("ul li.sel");if(r.is_opened&&t.length){if(f=n?t.prevAll("li:not(.disabled)"):t.nextAll("li:not(.disabled)"),!f.length)return;t.removeClass("sel");t=f.first().addClass("sel");var i=r.optDiv.find("ul"),e=i.scrollTop(),u=t.position().top+e;u>=e+i.height()-t.outerHeight()&&i.scrollTop(u-i.height()+t.outerHeight());u<e&&i.scrollTop(u)}else r.setOnOpen()},basicEvents:function(){var t=this;t.CaptionCont.click(function(n){t.E.trigger("click");t.is_opened?t.hideOpts():t.showOpts();n.stopPropagation()});t.select.on("keydown",function(n){switch(n.which){case 38:t.nav(!0);break;case 40:t.nav(!1);break;case 32:case 13:t.is_opened?t.optDiv.find("ul li.sel").trigger("click"):t.setOnOpen();break;case 9:case 27:t.is_multi&&r.okCancelInMulti&&t._cnbtn();t.hideOpts();return;default:return}n.preventDefault()});n(window).on("resize.sumo",function(){t.floatingList()})},onOptClick:function(t){var i=this;t.click(function(){var t=n(this);t.hasClass("disabled")||(txt="",i.is_multi?(t.toggleClass("selected"),i.E.children('option[value="'+t.data("val")+'"]')[0].selected=t.hasClass("selected"),i.selAllState()):(t.parent().find("li.selected").removeClass("selected"),t.toggleClass("selected"),i.E.val(t.attr("data-val"))),i.is_multi&&r.triggerChangeCombined&&(i.is_floating||r.okCancelInMulti)||(i.setText(),i.E.trigger("change").trigger("click")),i.is_multi||i.hideOpts())})},setText:function(){var t=this;if(t.placeholder="",t.is_multi){for(sels=t.E.children(":selected").not(":disabled"),i=0;i<sels.length;i++)if(i>=r.csvDispCount&&r.csvDispCount){t.placeholder=r.captionFormat.replace("{0}",sels.length);break}else t.placeholder+=n(sels[i]).text()+", ";t.placeholder=t.placeholder.replace(/,([^,]*)$/,"$1")}else t.placeholder=t.E.children(":selected").not(":disabled").text();return is_placeholder=!1,t.placeholder||(is_placeholder=!0,t.placeholder=t.E.attr("placeholder"),t.placeholder||(t.placeholder=t.E.children("option:disabled:selected").text())),t.placeholder=t.placeholder?t.placeholder:r.placeholder,t.caption.text(t.placeholder),csvField=t.select.find("input.HEMANT123"),csvField.length&&csvField.val(t.getSelStr()),is_placeholder?t.caption.addClass("placeholder"):t.caption.removeClass("placeholder"),t.placeholder},isMobile:function(){for(var t=navigator.userAgent||navigator.vendor||window.opera,n=0;n<r.nativeOnDevice.length;n++)if(t.toString().toLowerCase().indexOf(r.nativeOnDevice[n].toLowerCase())>0)return r.nativeOnDevice[n];return!1},setNativeMobile:function(){var n=this;n.E.addClass("SelectClass");n.mob=!0;n.E.change(function(){n.setText()})},floatingList:function(){var t=this;t.is_floating=n(window).width()<=r.floatWidth;t.optDiv.toggleClass("isFloating",t.is_floating);t.is_floating||t.optDiv.css("height","");t.optDiv.toggleClass("okCancelInMulti",r.okCancelInMulti&&!t.is_floating)},vRange:function(n){var t=this;if(opts=t.E.children("option"),opts.length<=n||n<0)throw"index out of bounds";return t},toggSel:function(n,t){var i=this.vRange(t);i.E.children("option")[t].disabled||(i.E.children("option")[t].selected=n,i.mob||i.optDiv.find("ul.options li").eq(t).toggleClass("selected",n),i.setText())},toggDis:function(n,t){var i=this.vRange(t);i.E.children("option")[t].disabled=n;n&&(i.E.children("option")[t].selected=!1);i.mob||i.optDiv.find("ul.options li").eq(t).toggleClass("disabled",n).removeClass("selected");i.setText()},toggSumo:function(n){var t=this;return t.enabled=n,t.select.toggleClass("disabled",n),n?(t.E.attr("disabled","disabled"),t.select.removeAttr("tabindex")):(t.E.removeAttr("disabled"),t.select.attr("tabindex","0")),t},toggSelAll:function(t){var i=this;i.E.find("option").each(function(){i.E.find("option")[n(this).index()].disabled||(i.E.find("option")[n(this).index()].selected=t,i.mob||i.optDiv.find("ul.options li").eq(n(this).index()).toggleClass("selected",t),i.setText())});!i.mob&&r.selectAll&&i.selAll.removeClass("partial").toggleClass("selected",t)},reload:function(){var t=this.unload();return n(t).SumoSelect(r)},unload:function(){var n=this;return n.select.before(n.E),n.E.show(),r.outputAsCSV&&n.is_multi&&n.select.find("input.HEMANT123").length&&n.E.attr("name",n.select.find("input.HEMANT123").attr("name")),n.select.remove(),delete t.sumo,t},add:function(i,r,u){if(typeof i=="undefined")throw"No value to add";var f=this;if(opts=f.E.children("option"),typeof r=="number"&&(u=r,r=i),typeof r=="undefined"&&(r=i),opt=n("<option><\/option>").val(i).html(r),opts.length<u)throw"index out of bounds";return typeof u=="undefined"||opts.length==u?(f.E.append(opt),f.mob||f.createLi(opt)):(opts.eq(u).before(opt),f.mob||f.createLi(opt,u)),t},remove:function(n){var t=this.vRange(n);t.E.children("option").eq(n).remove();t.mob||t.optDiv.find("ul.options li").eq(n).remove();t.setText()},selectItem:function(n){this.toggSel(!0,n)},unSelectItem:function(n){this.toggSel(!1,n)},selectAll:function(){this.toggSelAll(!0)},unSelectAll:function(){this.toggSelAll(!1)},disableItem:function(n){this.toggDis(!0,n)},enableItem:function(n){this.toggDis(!1,n)},enabled:!0,enable:function(){return this.toggSumo(!1)},disable:function(){return this.toggSumo(!0)},init:function(){var n=this;return n.createElems(),n.setText(),n}},t.sumo.init())});return u.length==1?u[0]:u}}(jQuery)