function scrollToGatewayInputError(){var t=jQuery(".gateway-errors,.assisted-cc-input-feedback").first(),e=t.closest("form");e||(e=jQuery("form").first()),e.find('button[type="submit"],input[type="submit"]').prop("disabled",!1).removeClass("disabled").find("i.fas,i.far,i.fal,i.fab").removeAttr("class").addClass("fas fa-arrow-circle-right").find("span").toggle(),t.length&&elementOutOfViewPort(t[0])&&jQuery("html, body").animate({scrollTop:t.offset().top-50},500)}function elementOutOfViewPort(t){var e=t.getBoundingClientRect(),n={};return n.top=e.top<0,n.left=e.left<0,n.bottom=e.bottom>(window.innerHeight||document.documentElement.clientHeight),n.right=e.right>(window.innerWidth||document.documentElement.clientWidth),n.any=n.top||n.left||n.bottom||n.right,n.any}function disableFields(t,e){"."!=t[0]&&(t="."+t);var n=jQuery(t);n.prop("disabled",e),e?n.addClass("disabled"):n.removeClass("disabled")}function checkAll(t,e){"."!=t[0]&&(t="."+t),jQuery(t).removeAttr("checked"),jQuery(e).is(":checked")&&jQuery(t).click()}function clickableSafeRedirect(t,e,n){var i=t.target.tagName.toLowerCase(),r=t.target.parentNode.tagName.toLowerCase(),o=t.target.parentNode.parentNode.parentNode;return!jQuery(o).hasClass("collapsed")&&(("i"!==i||!jQuery(t.target).hasClass("ssl-required"))&&void("button"!=i&&"a"!=i&&"button"!=r&&"a"!=r&&(n?window.open(e):window.location.href=e)))}function popupWindow(t,e,n,i,r){var o=(screen.width-n)/2,a=(screen.height-i)/2;o<0&&(o=0),a<0&&(a=0);var s="height="+i+",";s+="width="+n+",",s+="top="+a+",",s+="left="+o+",",s+=r,win=window.open(t,e,s),win.window.focus()}function addRenewalToCart(t,e){jQuery("#domainRow"+t).attr("disabled","disabled"),jQuery("#domainRow"+t).find("select,button").attr("disabled","disabled"),jQuery(e).html(' Adding...');var n=jQuery("#renewalPeriod"+t).val();WHMCS.http.jqClient.post("clientarea.php","addRenewalToCart=1&token="+csrfToken+"&renewID="+t+"&period="+n,function(t){jQuery("#cartItemCount").html(1*jQuery("#cartItemCount").html()+1),jQuery(e).html(' Added'),jQuery("#btnCheckout").fadeIn()})}function selectChangeNavigate(t){window.location.href=$(t).val()}function extraTicketAttachment(){jQuery("#fileUploadsContainer").append('')}function getStats(t){WHMCS.http.jqClient.post("serverstatus.php","getstats=1&num="+t,function(e){jQuery("#load"+t).html(e.load),jQuery("#uptime"+t).html(e.uptime)},"json")}function checkPort(t,e){WHMCS.http.jqClient.post("serverstatus.php","ping=1&num="+t+"&port="+e,function(n){jQuery("#port"+e+"_"+t).html(n)})}function getticketsuggestions(){currentcheckcontent=jQuery("#message").val(),currentcheckcontent!=lastcheckcontent&&""!=currentcheckcontent&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:currentcheckcontent},function(t){t&&(jQuery("#searchresults").html(t),jQuery("#searchresults").hide().removeClass("hidden").slideDown())}),lastcheckcontent=currentcheckcontent),setTimeout("getticketsuggestions();",3e3)}function refreshCustomFields(t){jQuery("#customFieldsContainer").load("submitticket.php",{action:"getcustomfields",deptid:$(t).val()})}function autoSubmitFormByContainer(t){"undefined"!=typeof noAutoSubmit&&noAutoSubmit!==!1||jQuery("#"+t).find("form:first").submit()}function useDefaultWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!0),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!1),jQuery("#"+t.substr(0,t.length-1)+"1").attr("checked","checked")}function useCustomWhois(t){jQuery("."+t.substr(0,t.length-1)+"customwhois").attr("disabled",!1),jQuery("."+t.substr(0,t.length-1)+"defaultwhois").attr("disabled",!0),jQuery("#"+t.substr(0,t.length-1)+"2").attr("checked","checked")}function showNewBillingAddressFields(){jQuery("#newBillingAddress").slideDown()}function hideNewBillingAddressFields(){jQuery("#newBillingAddress").slideUp()}function showNewCardInputFields(){jQuery(".cc-details").hasClass("hidden")&&jQuery(".cc-details").hide().removeClass("hidden"),jQuery(".cc-details").slideDown(),jQuery("#billingAddressChoice").slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function showNewAccountInputFields(){jQuery(".bank-details").hasClass("hidden")&&jQuery(".bank-details").hide().removeClass("hidden"),jQuery(".bank-details").slideDown(),jQuery("#billingAddressChoice").slideDown().find('input[name="billingcontact"]').first().iCheck("check")}function hideNewCardInputFields(){hideNewBillingAddressFields(),jQuery(".cc-details").slideUp(),jQuery("#billingAddressChoice").slideUp();var t=jQuery('input[name="ccinfo"]:checked').data("billing-contact-id");void 0!=t&&jQuery("#billingAddressChoice label.billing-contact-"+t).iCheck("check")}function hideNewAccountInputFields(){hideNewBillingAddressFields(),jQuery(".bank-details").slideUp(),jQuery("#billingAddressChoice").slideUp();var t=jQuery('input[name="paymethod"]:checked'),e=jQuery(t).data("billing-contact-id"),n=jQuery('.billing-contact-info[data-billing-contact-id="'+e+'"]');n.length&&(jQuery(".billing-contact-info").hide(),jQuery(n).show())}function getTicketSuggestions(){var t=jQuery("#inputMessage").val();t!=lastTicketMsg&&""!=t&&(WHMCS.http.jqClient.post("submitticket.php",{action:"getkbarticles",text:t},function(t){t&&(jQuery("#autoAnswerSuggestions").html(t),jQuery("#autoAnswerSuggestions").is(":visible")||jQuery("#autoAnswerSuggestions").hide().removeClass("hidden").slideDown())}),lastTicketMsg=t),setTimeout("getTicketSuggestions()",3e3)}function smoothScroll(t){$("html, body").animate({scrollTop:$(t).offset().top},500)}function irtpSubmit(){allowSubmit=!0;var t=0,e=jQuery("#modalIrtpOptOut"),n=jQuery("#modalReason"),i=jQuery("#irtpOptOut"),r=jQuery("#irtpOptOutReason");e.is(":checked")&&(t=1),i.val(t),r.val(n.val()),jQuery("#frmDomainContactModification").submit()}function showOverlay(t){jQuery("#fullpage-overlay .msg").html(t),jQuery("#fullpage-overlay").removeClass("hidden").show()}function hideOverlay(){jQuery("#fullpage-overlay").hide()}function getSslAttribute(t,e){return t.data(e)?t.data(e):t.parent("td").data(e)}function openModal(t,e,n,i,r,o,a,s,d,l){if(jQuery("#modalAjax .modal-title").html(n),i&&jQuery("#modalAjax").children('div[class="modal-dialog"]').addClass(i),r&&jQuery("#modalAjax").addClass(r),r&&jQuery("#modalAjax").addClass(r),o?(jQuery("#modalAjax .modal-submit").show().html(o),a&&jQuery("#modalAjax .modal-submit").attr("id",a)):jQuery("#modalAjax .modal-submit").hide(),d&&jQuery("#modalAjaxClose").hide(),s&&jQuery("#modalAjax .modal-submit").removeClass("btn-primary").addClass("btn-"+s),jQuery("#modalAjax .modal-body").html(""),jQuery("#modalSkip").hide(),jQuery("#modalAjax .modal-submit").prop("disabled",!0),jQuery("#modalAjax").modal("show"),WHMCS.http.jqClient.post(t,e,function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()}).always(function(){var t=jQuery("#modalAjax").find("form");a&&t.submit(function(t){return submitIdAjaxModalClickEvent(),!1}),l&&t.data("successDataTable",l)}),a){var u=jQuery("#"+a);u.off("click"),u.on("click",submitIdAjaxModalClickEvent)}}function submitIdAjaxModalClickEvent(){if(!jQuery(this).hasClass("disabled")){var t=!0,e=jQuery(this);if(e.addClass("disabled"),jQuery("#modalAjax .loader").show(),ajaxModalSubmitEvents.length&&jQuery.each(ajaxModalSubmitEvents,function(e,n){var i=window[n];t&&"function"==typeof i&&(t=i())}),!t)return e.removeClass("disabled"),void jQuery("#modalAjax .loader").hide();var n=jQuery("#modalAjax").find("form"),i=jQuery("#modalAjax .modal-body"),r=jQuery(i).find(".admin-modal-error");jQuery(r).slideUp();WHMCS.http.jqClient.post(n.attr("action"),n.serialize(),function(t){n.data("successDataTable")&&(t.successDataTable=n.data("successDataTable")),ajaxModalPostSubmitEvents.length&&jQuery.each(ajaxModalPostSubmitEvents,function(e,i){var r=window[i];"function"==typeof r&&r(t,n)}),updateAjaxModal(t)},"json").fail(function(t){var e=t.responseJSON,n="An error occurred while communicating with the server. Please try again.";e&&e.data?(e=e.data,e.errorMsg?r.length>0?jQuery(r).html(e.errorMsg).slideDown():jQuery.growl.warning({title:e.errorMsgTitle,message:e.errorMsg}):e.data.body?jQuery(i).html(e.body):jQuery(i).html(n)):jQuery(i).html(n),jQuery("#modalAjax .loader").fadeOut()}).always(function(){e.removeClass("disabled")})}}function updateAjaxModal(t){if(t.reloadPage)return void("string"==typeof t.reloadPage?window.location=t.reloadPage:window.location.reload());if(t.successDataTable&&WHMCS.ui.dataTable.getTableById(t.successDataTable,void 0).ajax.reload(),t.redirect&&(window.location=t.redirect),t.successWindow&&"function"==typeof window[t.successWindow]&&window[t.successWindow](),t.dismiss&&dialogClose(),t.successMsg&&jQuery.growl.notice({title:t.successMsgTitle,message:t.successMsg}),t.errorMsg){var e=jQuery("#modalAjax .modal-body .admin-modal-error");e.length>0&&!t.dismiss?jQuery(e).html(t.errorMsg).slideDown():jQuery.growl.warning({title:t.errorMsgTitle,message:t.errorMsg})}if(t.title&&jQuery("#modalAjax .modal-title").html(t.title),t.body?jQuery("#modalAjax .modal-body").html(t.body):t.url&&WHMCS.http.jqClient.post(t.url,"",function(t){jQuery("#modalAjax").find(".modal-body").html(t.body)},"json").fail(function(){jQuery("#modalAjax").find(".modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax").find(".loader").fadeOut()}),t.submitlabel&&(jQuery("#modalAjax .modal-submit").html(t.submitlabel).show(),t.submitId&&jQuery("#modalAjax").find(".modal-submit").attr("id",t.submitId)),t.submitId){var n=jQuery("#"+t.submitId);n.off("click"),n.on("click",submitIdAjaxModalClickEvent)}t.disableSubmit?disableSubmit():enableSubmit(),t.hideSubmit&&ajaxModalHideSubmit()}function dialogSubmit(){jQuery("#modalAjax .modal-submit").prop("disabled",!0),jQuery("#modalAjax .loader").show();var t=jQuery("#modalAjax").find("form").attr("action");WHMCS.http.jqClient.post(t,jQuery("#modalAjax").find("form").serialize(),function(t){updateAjaxModal(t)},"json").fail(function(){jQuery("#modalAjax .modal-body").html("An error occurred while communicating with the server. Please try again."),jQuery("#modalAjax .loader").fadeOut()})}function dialogClose(){jQuery("#modalAjax").modal("hide")}function addAjaxModalSubmitEvents(t){t&&ajaxModalSubmitEvents.push(t)}function removeAjaxModalSubmitEvents(t){if(t){var e=ajaxModalSubmitEvents.indexOf(t);e>=0&&ajaxModalSubmitEvents.splice(e,1)}}function addAjaxModalPostSubmitEvents(t){t&&ajaxModalPostSubmitEvents.push(t)}function removeAjaxModalPostSubmitEvents(t){if(t){var e=ajaxModalPostSubmitEvents.indexOf(t);e>=0&&ajaxModalPostSubmitEvents.splice(e,1)}}function disableSubmit(){jQuery("#modalAjax .modal-submit").prop("disabled",!0),jQuery("#modalAjax .loader").show()}function enableSubmit(){jQuery("#modalAjax .loader").fadeOut(),jQuery("#modalAjax .modal-submit").removeProp("disabled")}function ajaxModalHideSubmit(){jQuery("#modalAjax .modal-submit").hide()}if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=!!t&&"length"in t&&t.length,n=pt.type(t);return"function"!==n&&!pt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function i(t,e,n){if(pt.isFunction(e))return pt.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return pt.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(xt.test(e))return pt.filter(e,t,n);e=pt.filter(e,t)}return pt.grep(t,function(t){return pt.inArray(t,e)>-1!==n})}function r(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function o(t){var e={};return pt.each(t.match(jt)||[],function(t,n){e[n]=!0}),e}function a(){it.addEventListener?(it.removeEventListener("DOMContentLoaded",s),t.removeEventListener("load",s)):(it.detachEvent("onreadystatechange",s),t.detachEvent("onload",s))}function s(){(it.addEventListener||"load"===t.event.type||"complete"===it.readyState)&&(a(),pt.ready())}function d(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(Et,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Nt.test(n)?pt.parseJSON(n):n)}catch(t){}pt.data(t,e,n)}else n=void 0}return n}function l(t){var e;for(e in t)if(("data"!==e||!pt.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function u(t,e,n,i){if(Lt(t)){var r,o,a=pt.expando,s=t.nodeType,d=s?pt.cache:t,l=s?t[a]:t[a]&&a;if(l&&d[l]&&(i||d[l].data)||void 0!==n||"string"!=typeof e)return l||(l=s?t[a]=nt.pop()||pt.guid++:a),d[l]||(d[l]=s?{}:{toJSON:pt.noop}),"object"!=typeof e&&"function"!=typeof e||(i?d[l]=pt.extend(d[l],e):d[l].data=pt.extend(d[l].data,e)),o=d[l],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pt.camelCase(e)]=n),"string"==typeof e?(r=o[e],null==r&&(r=o[pt.camelCase(e)])):r=o,r}}function c(t,e,n){if(Lt(t)){var i,r,o=t.nodeType,a=o?pt.cache:t,s=o?t[pt.expando]:pt.expando;if(a[s]){if(e&&(i=n?a[s]:a[s].data)){pt.isArray(e)?e=e.concat(pt.map(e,pt.camelCase)):e in i?e=[e]:(e=pt.camelCase(e),e=e in i?[e]:e.split(" ")),r=e.length;for(;r--;)delete i[e[r]];if(n?!l(i):!pt.isEmptyObject(i))return}(n||(delete a[s].data,l(a[s])))&&(o?pt.cleanData([t],!0):ct.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function h(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return pt.css(t,e,"")},d=s(),l=n&&n[3]||(pt.cssNumber[e]?"":"px"),u=(pt.cssNumber[e]||"px"!==l&&+d)&&Pt.exec(pt.css(t,e));if(u&&u[3]!==l){l=l||u[3],n=n||[],u=+d||1;do o=o||".5",u/=o,pt.style(t,e,u+l);while(o!==(o=s()/d)&&1!==o&&--a)}return n&&(u=+u||+d||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}function p(t){var e=Ut.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function f(t,e){var n,i,r=0,o="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(i=n[r]);r++)!e||pt.nodeName(i,e)?o.push(i):pt.merge(o,f(i,e));return void 0===e||e&&pt.nodeName(t,e)?pt.merge([t],o):o}function g(t,e){for(var n,i=0;null!=(n=t[i]);i++)pt._data(n,"globalEval",!e||pt._data(e[i],"globalEval"))}function m(t){Qt.test(t.type)&&(t.defaultChecked=t.checked)}function $(t,e,n,i,r){for(var o,a,s,d,l,u,c,h=t.length,$=p(e),v=[],y=0;y"!==c[1]||Gt.test(a)?0:d:d.firstChild,o=a&&a.childNodes.length;o--;)pt.nodeName(u=a.childNodes[o],"tbody")&&!u.childNodes.length&&a.removeChild(u);for(pt.merge(v,d.childNodes),d.textContent="";d.firstChild;)d.removeChild(d.firstChild);d=$.lastChild}else v.push(e.createTextNode(a));for(d&&$.removeChild(d),ct.appendChecked||pt.grep(f(v,"input"),m),y=0;a=v[y++];)if(i&&pt.inArray(a,i)>-1)r&&r.push(a);else if(s=pt.contains(a.ownerDocument,a),d=f($.appendChild(a),"script"),s&&g(d),n)for(o=0;a=d[o++];)Bt.test(a.type||"")&&n.push(a);return d=null,$}function v(){return!0}function y(){return!1}function b(){try{return it.activeElement}catch(t){}}function C(t,e,n,i,r,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(i=i||n,n=void 0);for(s in e)C(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=y;else if(!r)return t;return 1===o&&(a=r,r=function(t){return pt().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=pt.guid++)),t.each(function(){pt.event.add(this,e,r,i,n)})}function w(t,e){return pt.nodeName(t,"table")&&pt.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function x(t){return t.type=(null!==pt.find.attr(t,"type"))+"/"+t.type,t}function S(t){var e=re.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(t,e){if(1===e.nodeType&&pt.hasData(t)){var n,i,r,o=pt._data(t),a=pt._data(e,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(i=0,r=s[n].length;i1&&"string"==typeof p&&!ct.checkClone&&ie.test(p))return t.each(function(r){var o=t.eq(r);g&&(e[0]=p.call(this,r,o.html())),D(o,e,n,i)});if(c&&(l=$(e,t[0].ownerDocument,!1,t,i),r=l.firstChild,1===l.childNodes.length&&(l=r),r||i)){for(s=pt.map(f(l,"script"),x),a=s.length;u")).appendTo(e.documentElement),e=(de[0].contentWindow||de[0].contentDocument).document,e.write(),e.close(),n=j(t,e),de.detach()),le[t]=n),n}function A(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function L(t){if(t in Se)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=xe.length;n--;)if(t=xe[n]+e,t in Se)return t}function N(t,e){for(var n,i,r,o=[],a=0,s=t.length;a=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==pt.type(t)||t.nodeType||pt.isWindow(t))return!1;try{if(t.constructor&&!ut.call(t,"constructor")&&!ut.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(!ct.ownFirst)for(e in t)return ut.call(t,e);for(e in t);return void 0===e||ut.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?dt[lt.call(t)]||"object":typeof t},globalEval:function(e){e&&pt.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(gt,"ms-").replace(mt,$t)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,r=0;if(n(t))for(i=t.length;rw.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[R]=!0,t}function r(t){var e=L.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function s(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function d(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function u(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function c(){}function h(t){for(var e=0,n=t.length,i="";e1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function g(t,n,i){for(var r=0,o=n.length;r-1&&(i[l]=!(a[l]=c))}}else y=m(y===a?y.splice(f,y.length):y),o?o(null,a,y,d):Z.apply(a,y)})}function v(t){for(var e,n,i,r=t.length,o=w.relative[t[0].type],a=o||w.relative[" "],s=o?1:0,d=p(function(t){return t===e},a,!0),l=p(function(t){return tt(e,t)>-1},a,!0),u=[function(t,n,i){var r=!o&&(i||n!==_)||((e=n).nodeType?d(t,n,i):l(t,n,i));return e=null,r}];s1&&f(u),s>1&&h(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(st,"$1"),n,s0,o=t.length>0,a=function(i,a,s,d,l){var u,c,h,p=0,f="0",g=i&&[],$=[],v=_,y=i||o&&w.find.TAG("*",l),b=F+=null==v?1:Math.random()||.1,C=y.length;for(l&&(_=a===L||a||l);f!==C&&null!=(u=y[f]);f++){if(o&&u){for(c=0,a||u.ownerDocument===L||(A(u),s=!E);h=t[c++];)if(h(u,a||L,s)){d.push(u);break}l&&(F=b)}r&&((u=!h&&u)&&p--,i&&g.push(u))}if(p+=f,r&&f!==p){for(c=0;h=n[c++];)h(g,$,a,s);if(i){if(p>0)for(;f--;)g[f]||$[f]||($[f]=J.call(d));$=m($)}Z.apply(d,$),l&&!i&&$.length>0&&p+n.length>1&&e.uniqueSort(d)}return l&&(F=b,_=v),g};return r?i(a):a}var b,C,w,x,S,T,k,D,_,j,I,A,L,N,E,M,P,O,H,R="sizzle"+1*new Date,Q=t.document,F=0,B=0,W=n(),U=n(),q=n(),z=function(t,e){return t===e&&(I=!0),0},G=1<<31,V={}.hasOwnProperty,K=[],J=K.pop,X=K.push,Z=K.push,Y=K.slice,tt=function(t,e){for(var n=0,i=t.length;n+~]|"+nt+")"+nt+"*"),ut=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ct=new RegExp(ot),ht=new RegExp("^"+it+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+ot),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,$t=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vt=/[+~]/,yt=/'|\\/g,bt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Ct=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},wt=function(){A()};try{Z.apply(K=Y.call(Q.childNodes),Q.childNodes),K[Q.childNodes.length].nodeType}catch(t){Z={apply:K.length?function(t,e){X.apply(t,Y.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}C=e.support={},S=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},A=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:Q;return i!==L&&9===i.nodeType&&i.documentElement?(L=i,N=L.documentElement,E=!S(L),(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",wt,!1):n.attachEvent&&n.attachEvent("onunload",wt)),C.attributes=r(function(t){return t.className="i",!t.getAttribute("className")}),C.getElementsByTagName=r(function(t){return t.appendChild(L.createComment("")),!t.getElementsByTagName("*").length}),C.getElementsByClassName=mt.test(L.getElementsByClassName),C.getById=r(function(t){return N.appendChild(t).id=R,!L.getElementsByName||!L.getElementsByName(R).length}),C.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&E){var n=e.getElementById(t);return n?[n]:[]}},w.filter.ID=function(t){var e=t.replace(bt,Ct);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(bt,Ct);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),w.find.TAG=C.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):C.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},w.find.CLASS=C.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&E)return e.getElementsByClassName(t)},P=[],M=[],(C.qsa=mt.test(L.querySelectorAll))&&(r(function(t){N.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||M.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+R+"-]").length||M.push("~="),t.querySelectorAll(":checked").length||M.push(":checked"),t.querySelectorAll("a#"+R+"+*").length||M.push(".#.+[+~]")}),r(function(t){var e=L.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&M.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),M.push(",.*:")})),(C.matchesSelector=mt.test(O=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&r(function(t){C.disconnectedMatch=O.call(t,"div"),O.call(t,"[s!='']:x"),P.push("!=",ot)}),M=M.length&&new RegExp(M.join("|")),P=P.length&&new RegExp(P.join("|")),e=mt.test(N.compareDocumentPosition),H=e||mt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},z=e?function(t,e){if(t===e)return I=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!C.sortDetached&&e.compareDocumentPosition(t)===n?t===L||t.ownerDocument===Q&&H(Q,t)?-1:e===L||e.ownerDocument===Q&&H(Q,e)?1:j?tt(j,t)-tt(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return I=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],d=[e];if(!r||!o)return t===L?-1:e===L?1:r?-1:o?1:j?tt(j,t)-tt(j,e):0;if(r===o)return a(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)d.unshift(n);for(;s[i]===d[i];)i++;return i?a(s[i],d[i]):s[i]===Q?-1:d[i]===Q?1:0},L):L},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==L&&A(t),n=n.replace(ut,"='$1']"),C.matchesSelector&&E&&!q[n+" "]&&(!P||!P.test(n))&&(!M||!M.test(n)))try{var i=O.call(t,n);if(i||C.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,L,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==L&&A(t),H(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==L&&A(t);var n=w.attrHandle[e.toLowerCase()],i=n&&V.call(w.attrHandle,e.toLowerCase())?n(t,e,!E):void 0;return void 0!==i?i:C.attributes||!E?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,r=0;if(I=!C.detectDuplicates,j=!C.sortStable&&t.slice(0),t.sort(z),I){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return j=null,t},x=e.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=x(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=x(e);return n},w=e.selectors={cacheLength:50,createPseudo:i,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(bt,Ct),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,Ct),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=T(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(bt,Ct).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(r){var o=e.attr(r,t);return null==o?"!="===n:!n||(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(at," ")+" ").indexOf(i)>-1:"|="===n&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,d){var l,u,c,h,p,f,g=o!==a?"nextSibling":"previousSibling",m=e.parentNode,$=s&&e.nodeName.toLowerCase(),v=!d&&!s,y=!1;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(s?h.nodeName.toLowerCase()===$:1===h.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?m.firstChild:m.lastChild],a&&v){for(h=m,c=h[R]||(h[R]={}),u=c[h.uniqueID]||(c[h.uniqueID]={}),l=u[t]||[],p=l[0]===F&&l[1],y=p&&l[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(y=p=0)||f.pop();)if(1===h.nodeType&&++y&&h===e){u[t]=[F,p,y];break}}else if(v&&(h=e,c=h[R]||(h[R]={}),u=c[h.uniqueID]||(c[h.uniqueID]={}),l=u[t]||[],p=l[0]===F&&l[1],y=p),y===!1)for(;(h=++p&&h&&h[g]||(y=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==$:1!==h.nodeType)||!++y||(v&&(c=h[R]||(h[R]={}),u=c[h.uniqueID]||(c[h.uniqueID]={}),u[t]=[F,y]),h!==e)););return y-=r,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(t,n){var r,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(n):o.length>1?(r=[t,t,"",n],w.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,r=o(t,n),a=r.length;a--;)i=tt(t,r[a]),t[i]=!(e[i]=r[a])}):function(t){return o(t,0,r)}):o}},pseudos:{not:i(function(t){var e=[],n=[],r=k(t.replace(st,"$1"));return r[R]?i(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(bt,Ct),function(e){return(e.textContent||e.innerText||x(e)).indexOf(t)>-1}}),lang:i(function(t){return ht.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,Ct).toLowerCase(),function(e){var n;do if(n=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i2&&"ID"===(a=o[0]).type&&C.getById&&9===e.nodeType&&E&&w.relative[o[1].type]){if(e=(w.find.ID(a.matches[0].replace(bt,Ct),e)||[])[0],!e)return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=pt.needsContext.test(t)?0:o.length;r--&&(a=o[r],!w.relative[s=a.type]);)if((d=w.find[s])&&(i=d(a.matches[0].replace(bt,Ct),vt.test(o[0].type)&&u(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&h(o),!t)return Z.apply(n,i),n;break}}return(l||k(t,c))(i,e,!E,n,!e||vt.test(t)&&u(e.parentNode)||e),n},C.sortStable=R.split("").sort(z).join("")===R,C.detectDuplicates=!!I,A(),C.sortDetached=r(function(t){return 1&t.compareDocumentPosition(L.createElement("div"))}),r(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),C.attributes&&r(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),r(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,n){var i;if(!n)return t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);pt.find=vt,pt.expr=vt.selectors,pt.expr[":"]=pt.expr.pseudos,pt.uniqueSort=pt.unique=vt.uniqueSort,pt.text=vt.getText,pt.isXMLDoc=vt.isXML,pt.contains=vt.contains;var yt=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&pt(t).is(n))break;i.push(t)}return i},bt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Ct=pt.expr.match.needsContext,wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xt=/^.[^:#\[\.,]*$/;pt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?pt.find.matchesSelector(i,t)?[i]:[]:pt.find.matches(t,pt.grep(e,function(t){return 1===t.nodeType}))},pt.fn.extend({find:function(t){var e,n=[],i=this,r=i.length;if("string"!=typeof t)return this.pushStack(pt(t).filter(function(){for(e=0;e1?pt.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&Ct.test(t)?pt(t):t||[],!1).length}});var St,Tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,kt=pt.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||St,"string"==typeof t){if(i="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:Tt.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof pt?e[0]:e,pt.merge(this,pt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:it,!0)),wt.test(i[1])&&pt.isPlainObject(e))for(i in e)pt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}if(r=it.getElementById(i[2]),r&&r.parentNode){if(r.id!==i[2])return St.find(t);this.length=1,this[0]=r}return this.context=it,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):pt.isFunction(t)?"undefined"!=typeof n.ready?n.ready(t):t(pt):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),pt.makeArray(t,this))};kt.prototype=pt.fn,St=pt(it);var Dt=/^(?:parents|prev(?:Until|All))/,_t={children:!0,contents:!0,next:!0,prev:!0};pt.fn.extend({has:function(t){var e,n=pt(t,this),i=n.length;return this.filter(function(){for(e=0;e-1:1===n.nodeType&&pt.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?pt.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?pt.inArray(this[0],pt(t)):pt.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(pt.uniqueSort(pt.merge(this.get(),pt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),pt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,n){return yt(t,"parentNode",n)},next:function(t){return r(t,"nextSibling")},prev:function(t){return r(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,n){return yt(t,"nextSibling",n)},prevUntil:function(t,e,n){return yt(t,"previousSibling",n)},siblings:function(t){return bt((t.parentNode||{}).firstChild,t)},children:function(t){return bt(t.firstChild)},contents:function(t){return pt.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:pt.merge([],t.childNodes)}},function(t,e){pt.fn[t]=function(n,i){var r=pt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=pt.filter(i,r)),this.length>1&&(_t[t]||(r=pt.uniqueSort(r)),Dt.test(t)&&(r=r.reverse())),this.pushStack(r)}});var jt=/\S+/g;pt.Callbacks=function(t){t="string"==typeof t?o(t):pt.extend({},t);var e,n,i,r,a=[],s=[],d=-1,l=function(){for(r=t.once,i=e=!0;s.length;d=-1)for(n=s.shift();++d-1;)a.splice(n,1),n<=d&&d--}),this},has:function(t){return t?pt.inArray(t,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=!0,n||u.disable(),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},pt.extend({Deferred:function(t){var e=[["resolve","done",pt.Callbacks("once memory"),"resolved"],["reject","fail",pt.Callbacks("once memory"),"rejected"],["notify","progress",pt.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var t=arguments;return pt.Deferred(function(n){pt.each(e,function(e,o){var a=pt.isFunction(t[e])&&t[e];r[o[1]](function(){var t=a&&a.apply(this,arguments);t&&pt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?pt.extend(t,i):i}},r={};return i.pipe=i.then,pt.each(e,function(t,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),t&&t.call(r,r),r},when:function(t){var e,n,i,r=0,o=rt.call(arguments),a=o.length,s=1!==a||t&&pt.isFunction(t.promise)?a:0,d=1===s?t:pt.Deferred(),l=function(t,n,i){return function(r){n[t]=this,i[t]=arguments.length>1?rt.call(arguments):r,i===e?d.notifyWith(n,i):--s||d.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);r0||(It.resolveWith(it,[pt]),pt.fn.triggerHandler&&(pt(it).triggerHandler("ready"),pt(it).off("ready"))))}}),pt.ready.promise=function(e){if(!It)if(It=pt.Deferred(),"complete"===it.readyState||"loading"!==it.readyState&&!it.documentElement.doScroll)t.setTimeout(pt.ready);else if(it.addEventListener)it.addEventListener("DOMContentLoaded",s),t.addEventListener("load",s);else{it.attachEvent("onreadystatechange",s),t.attachEvent("onload",s);var n=!1;try{n=null==t.frameElement&&it.documentElement}catch(t){}n&&n.doScroll&&!function e(){if(!pt.isReady){try{n.doScroll("left")}catch(n){return t.setTimeout(e,50)}a(),pt.ready()}}()}return It.promise(e)},pt.ready.promise();var At;for(At in pt(ct))break;ct.ownFirst="0"===At,ct.inlineBlockNeedsLayout=!1,pt(function(){var t,e,n,i;n=it.getElementsByTagName("body")[0],n&&n.style&&(e=it.createElement("div"),i=it.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ct.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=it.createElement("div");ct.deleteExpando=!0;try{delete t.test}catch(t){ct.deleteExpando=!1}t=null}();var Lt=function(t){var e=pt.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||e!==!0&&t.getAttribute("classid")===e)},Nt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Et=/([A-Z])/g;pt.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?pt.cache[t[pt.expando]]:t[pt.expando],!!t&&!l(t)},data:function(t,e,n){return u(t,e,n)},removeData:function(t,e){return c(t,e)},_data:function(t,e,n){return u(t,e,n,!0)},_removeData:function(t,e){return c(t,e,!0)}}),pt.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=pt.data(o),1===o.nodeType&&!pt._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=pt.camelCase(i.slice(5)),d(o,i,r[i])));pt._data(o,"parsedAttrs",!0)}return r}return"object"==typeof t?this.each(function(){pt.data(this,t)}):arguments.length>1?this.each(function(){pt.data(this,t,e)}):o?d(o,t,pt.data(o,t)):void 0},removeData:function(t){return this.each(function(){pt.removeData(this,t)})}}),pt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=pt._data(t,e),n&&(!i||pt.isArray(n)?i=pt._data(t,e,pt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=pt.queue(t,e),i=n.length,r=n.shift(),o=pt._queueHooks(t,e),a=function(){pt.dequeue(t,e)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return pt._data(t,n)||pt._data(t,n,{empty:pt.Callbacks("once memory").add(function(){pt._removeData(t,e+"queue"),pt._removeData(t,n)})})}}),pt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.lengtha",ct.leadingWhitespace=3===t.firstChild.nodeType,ct.tbody=!t.getElementsByTagName("tbody").length,ct.htmlSerialize=!!t.getElementsByTagName("link").length,ct.html5Clone="<:nav>"!==it.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,e.appendChild(n),ct.appendChecked=n.checked,t.innerHTML="",ct.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,e.appendChild(t),n=it.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ct.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.noCloneEvent=!!t.addEventListener,t[pt.expando]=1,ct.attributes=!t.getAttribute(pt.expando)}();var qt={option:[1,""],legend:[1,""],area:[1,""],param:[1,""],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:ct.htmlSerialize?[0,"",""]:[1,"X","
"]};qt.optgroup=qt.option,qt.tbody=qt.tfoot=qt.colgroup=qt.caption=qt.thead,qt.th=qt.td;var zt=/<|?\w+;/,Gt=/-1&&(f=p.split("."),p=f.shift(),f.sort()),a=p.indexOf(":")<0&&"on"+p,
e=e[pt.expando]?e:new pt.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:pt.makeArray(n,[e]),l=pt.event.special[p]||{},r||!l.trigger||l.trigger.apply(i,n)!==!1)){if(!r&&!l.noBubble&&!pt.isWindow(i)){for(d=l.delegateType||p,Xt.test(d+p)||(s=s.parentNode);s;s=s.parentNode)h.push(s),u=s;u===(i.ownerDocument||it)&&h.push(u.defaultView||u.parentWindow||t)}for(c=0;(s=h[c++])&&!e.isPropagationStopped();)e.type=c>1?d:l.bindType||p,o=(pt._data(s,"events")||{})[e.type]&&pt._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&Lt(s)&&(e.result=o.apply(s,n),e.result===!1&&e.preventDefault());if(e.type=p,!r&&!e.isDefaultPrevented()&&(!l._default||l._default.apply(h.pop(),n)===!1)&&Lt(i)&&a&&i[p]&&!pt.isWindow(i)){u=i[a],u&&(i[a]=null),pt.event.triggered=p;try{i[p]()}catch(t){}pt.event.triggered=void 0,u&&(i[a]=u)}return e.result}},dispatch:function(t){t=pt.event.fix(t);var e,n,i,r,o,a=[],s=rt.call(arguments),d=(pt._data(this,"events")||{})[t.type]||[],l=pt.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,t)!==!1){for(a=pt.event.handlers.call(this,t,d),e=0;(r=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,i=((pt.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,d=t.target;if(s&&d.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;d!=this;d=d.parentNode||this)if(1===d.nodeType&&(d.disabled!==!0||"click"!==t.type)){for(i=[],n=0;n-1:pt.find(r,this,null,[d]).length),i[r]&&i.push(o);i.length&&a.push({elem:d,handlers:i})}return s]","i"),ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ne=/