//~~GENERATED~~
//-------------------------------------------------------------
// Source:    /usr/local/cpanel/base/cjt/cpanel-all.js
// Generated: /usr/local/cpanel/base/cjt/cpanel-all-en.js
// Module:    legacy_cjt/cpanel-all-en
// Locale:    en
// This file is generated by the cpanel localization system
// using the bin/_build_translated_js_hash_files.pl script.
//-------------------------------------------------------------
// !!! Do not hand edit this file !!!
//-------------------------------------------------------------
(function() {
    // The raw lexicon.
    var newLex = {"Advanced Options":"Advanced Options","Alpha Characters":"Alpha Characters","An unknown error occurred.":"An unknown error occurred.","Both":"Both","Cancel":"Cancel","Click to close.":"Click to close.","Close":"Close","Generate Password":"Generate Password","I have copied this password in a safe place.":"I have copied this password in a safe place.","Length":"Length","Loading …":"Loading …","Lowercase":"Lowercase","Non Alpha Characters":"Non Alpha Characters","Numbers":"Numbers","OK":"OK","Password Generator":"Password Generator","Password Strength":"Password Strength","Password cannot be empty.":"Password cannot be empty.","Password strength must be at least [numf,_1].":"Password strength must be at least [numf,_1].","Passwords Match":"Passwords Match","Passwords do not match.":"Passwords do not match.","Passwords must be at least [quant,_1,character,characters] long.":"Passwords must be at least [quant,_1,character,characters] long.","Strong":"Strong","Success!":"Success!","Symbols":"Symbols","The API response could not be parsed.":"The API response could not be parsed.","Uppercase":"Uppercase","Use Password":"Use Password","Validation Errors":"Validation Errors","Very Strong":"Very Strong","Very Weak":"Very Weak","Weak":"Weak","less »":"less »","more »":"more »","unlimited":"unlimited"};

    if (!this.LEXICON) {
        this.LEXICON = {};
    }

    for(var item in newLex) {
        if(newLex.hasOwnProperty(item)) {
            var value = newLex[item];
            if (typeof(value) === "string" && value !== "") {
                // Only add it if there is a value.
                this.LEXICON[item] = value;
            }
        }
    }
})();
//-------------------------------------------------------------
// CLDR Data for en
//-------------------------------------------------------------
(function(context) {
    var locale = "en",
        functions = {'get_plural_form':function(n){var category;var category_values=Array.prototype.slice.call(arguments,1);var has_extra_for_zero=0;var abs_n=Math.abs(n);var category_process_order=["zero","one","two","few","many","other"];var category_rules_lookup={"one":function(n){if(((n==1))){return'one';}return;}};for(i=0;i<category_process_order.length;i++){if(category_rules_lookup[category_process_order[i]]){category=category_rules_lookup[category_process_order[i]](abs_n);if(category)break;}}
var categories=["one","other"];if(category_values.length===0){category_values=categories;}
else{var cat_len=categories.length;var val_len=category_values.length;var cat_len_plus_one=cat_len+1;if(val_len===cat_len_plus_one){has_extra_for_zero++;}
else if(cat_len!==val_len){if(window.console)console.warn('The number of given values ('+val_len+') does not match the number of categories ('+cat_len+').');}}
if(category===undefined){var cat_idx=has_extra_for_zero&&abs_n!==0?-2:-1;var sliced=category_values.slice(cat_idx);return[sliced[0],has_extra_for_zero&&abs_n===0?1:0];}
else{var return_value;GET_POSITION:while(1){var cat_pos_in_list;var index=-1;CATEGORY:for(i=0;i<categories.length;i++){index++;if(categories[i]===category){cat_pos_in_list=index;break CATEGORY;}}
if(cat_pos_in_list===undefined&&category!=='other'){if(window.console)console.warn('The category ('+category+') is not used by this locale.');category='other';continue GET_POSITION;}
else if(cat_pos_in_list===undefined){var cat_idx=has_extra_for_zero&&abs_n!==0?-2:-1;var sliced=category_values.slice(cat_idx);return_value=[sliced[0],has_extra_for_zero&&abs_n===0?1:0]
break GET_POSITION;}
else{if(has_extra_for_zero&&category==='other'){var cat_idx=has_extra_for_zero&&abs_n===0?-1:cat_pos_in_list;var sliced=category_values.slice(cat_idx);return_value=[sliced[0],has_extra_for_zero&&abs_n===0?1:0];break GET_POSITION;}
else{return_value=[category_values[cat_pos_in_list],0];break GET_POSITION;}}
break GET_POSITION;}
return return_value;}}},
        datetime_info = {"territory":null,"quarter_stand_alone_narrow":["1","2","3","4"],"time_formats":{"short":"h:mm a","medium":"h:mm:ss a","long":"h:mm:ss a z","full":"h:mm:ss a zzzz"},"era_narrow":["B","A"],"datetime_format_full":"EEEE, MMMM d, y h:mm:ss a zzzz","glibc_date_1_format":"%a %b %e %H:%M:%S %Z %Y","datetime_format_long":"MMMM d, y h:mm:ss a z","date_format_short":"M/d/yy","native_variant":null,"name":"English","language_id":"en","era_wide":["Before Christ","Anno Domini"],"variant_id":null,"date_format_medium":"MMM d, y","time_format_default":"h:mm:ss a","era_abbreviated":["BC","AD"],"datetime_format":"{1} {0}","month_format_wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"quarter_format_abbreviated":["Q1","Q2","Q3","Q4"],"datetime_format_short":"M/d/yy h:mm a","glibc_datetime_format":"%a %b %e %H:%M:%S %Y","quarter_stand_alone_abbreviated":["Q1","Q2","Q3","Q4"],"script_id":null,"prefers_24_hour_time":0,"cldr_version":"1.7.1","day_format_wide":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"language":"English","month_format_narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"time_format_full":"h:mm:ss a zzzz","date_format_default":"MMM d, y","am_pm_abbreviated":["AM","PM"],"native_territory":null,"glibc_time_12_format":"%I:%M:%S %p","month_stand_alone_wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"time_format_long":"h:mm:ss a z","day_stand_alone_wide":["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],"variant":null,"id":"en","available_formats":null,"quarter_stand_alone_wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"time_format_medium":"h:mm:ss a","time_format_short":"h:mm a","date_format_full":"EEEE, MMMM d, y","territory_id":null,"first_day_of_week":"1","glibc_date_format":"%m/%d/%y","quarter_format_wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"day_stand_alone_abbreviated":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"month_stand_alone_narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"format_for":{"yQQQ":"QQQ y","yMMMEd":"EEE, MMM d, y","d":"d","y":"y","hms":"h:mm:ss a","MMMMd":"MMMM d","yMMMM":"MMMM y","ms":"mm:ss","M":"L","yM":"M/yyyy","MEd":"E, M/d","MMM":"LLL","Md":"M/d","yQ":"Q yyyy","yMEd":"EEE, M/d/yyyy","Hm":"H:mm","EEEd":"d EEE","Hms":"H:mm:ss","hm":"h:mm a","MMMEd":"E, MMM d","MMMMEd":"E, MMMM d","MMMd":"MMM d","yMMM":"MMM y"},"quarter_format_narrow":["1","2","3","4"],"date_formats":{"short":"M/d/yy","medium":"MMM d, y","long":"MMMM d, y","full":"EEEE, MMMM d, y"},"date_format_long":"MMMM d, y","month_stand_alone_abbreviated":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"native_language":"English","datetime_format_default":"MMM d, y h:mm:ss a","native_name":"English","day_format_narrow":["M","T","W","T","F","S","S"],"script":null,"default_time_format_length":"medium","glibc_time_format":"%H:%M:%S","native_script":null,"month_format_abbreviated":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"default_date_format_length":"medium","day_stand_alone_narrow":["M","T","W","T","F","S","S"],"day_format_abbreviated":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"datetime_format_medium":"MMM d, y h:mm:ss a"},
        misc_info = {"delimiters":{"quotation_start":"“","quotation_end":"”","alternate_quotation_start":"‘","alternate_quotation_end":"’"},"orientation":{"lines":"top-to-bottom","characters":"left-to-right"},"posix":{"nostr":"no:n","yesstr":"yes:y"},"plural_forms":{"category_list":["one","other"],"category_rules_function":null,"category_rules":{"one":"n is 1"},"category_rules_compiled":{"one":function (n) {if ( (( n == 1))) { return 'one'; } return;}}},"cldr_formats":{"territory":"Region: {0}","_decimal_format_decimal":".","language":"Language: {0}","percent":"#,##0%","locale":"{0} ({1})","_decimal_format_group":",","_percent_format_percent":"%","decimal":"#,##0.###","ellipsis":{"medial":"{0}…{1}","final":"{0}…","initial":"…{0}"},"list_or":{"end":"{0}, or {1}","middle":"{0}, {1}","start":"{0}, {1}","2":"{0} or {1}"},"list":{"middle":"{0}, {1}","2":"{0} and {1}","start":"{0}, {1}","end":"{0}, and {1}"}},"fallback":[],"characters":{"more_information":"?"}};

    // Legacy cjt 1.0 support
    if ( context.YAHOO ) {
        context.YAHOO.util.Event.onDOMReady(function() {
            var Locale = CPANEL.Locale.generateClassFromCldr(locale, functions, datetime_info, misc_info);
            context.LOCALE = new Locale();
        });
    }

    // Modern cjt 2.0 support
    context.CJT2_loader = {
        current_locale: locale,
        CLDR: {}
    };

    var CLDR = {
        locale: locale,
        functions: functions,
        datetime_info: datetime_info,
        misc_info: misc_info
    };

    context.CJT2_loader.CLDR[locale] = CLDR;
    context.CLDR = CLDR;

})(window);
//~~END-GENERATED~~
if(!("indexOf"in Array.prototype)){Array.prototype.indexOf=function(elt){var len=this.length>>>0;var from=Number(arguments[1])||0;from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len}for(;from<len;from++){if(from in this&&this[from]===elt){return from}}return-1}}if(!("lastIndexOf"in Array.prototype)){Array.prototype.lastIndexOf=function(elt){var len=this.length;var from=Number(arguments[1]);if(isNaN(from)){from=len-1}else{from=from<0?Math.ceil(from):Math.floor(from);if(from<0){from+=len}else if(from>=len){from=len-1}}for(;from>-1;from--){if(from in this&&this[from]===elt){return from}}return-1}}if(!("filter"in Array.prototype)){Array.prototype.filter=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var res=[];var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){var val=this[i];if(fun.call(thisp,val,i,this)){res.push(val)}}}return res}}if(!("forEach"in Array.prototype)){Array.prototype.forEach=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){fun.call(thisp,this[i],i,this)}}}}if(!("every"in Array.prototype)){Array.prototype.every=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this&&!fun.call(thisp,this[i],i,this)){return false}}return true}}if(!("map"in Array.prototype)){Array.prototype.map=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var res=new Array(len);var thisp=arguments[1];for(var i=0;i<len;i++){if(i in this){res[i]=fun.call(thisp,this[i],i,this)}}return res}}if(!("some"in Array.prototype)){Array.prototype.some=function(fun){var i=0,len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}var thisp=arguments[1];for(;i<len;i++){if(i in this&&fun.call(thisp,this[i],i,this)){return true}}return false}}if(!("reduce"in Array.prototype)){Array.prototype.reduce=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}if(len==0&&arguments.length==1){throw new TypeError}var i=0;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){var rv=this[i++];break}if(++i>=len){throw new TypeError}}while(true)}for(;i<len;i++){if(i in this){rv=fun.call(null,rv,this[i],i,this)}}return rv}}if(!("reduceRight"in Array.prototype)){Array.prototype.reduceRight=function(fun){var len=this.length>>>0;if(typeof fun!="function"){throw new TypeError}if(len==0&&arguments.length==1){throw new TypeError}var i=len-1;if(arguments.length>=2){var rv=arguments[1]}else{do{if(i in this){var rv=this[i--];break}if(--i<0){throw new TypeError}}while(true)}for(;i>=0;i--){if(i in this){rv=fun.call(null,rv,this[i],i,this)}}return rv}}if(!("trim"in String.prototype)){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}}if(!Function.prototype.bind){Function.prototype.bind=function(oThis){if(typeof this!=="function"){throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable")}var fSlice=Array.prototype.slice,aArgs=fSlice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this instanceof fNOP?this:oThis||window,aArgs.concat(fSlice.call(arguments)))};fNOP.prototype=this.prototype;fBound.prototype=new fNOP;return fBound}}if(!Object.keys){Object.keys=function(o){if(o!==Object(o)){throw new TypeError("Object.keys called on non-object.")}var ret=[],p,HOP=Object.prototype.hasOwnProperty;for(p in o){if(HOP.call(o,p)){ret.push(p)}}return ret}}if(!Date.now){Date.now=function now(){return+new Date}}if(!window.atob){(function(){var object=typeof window!="undefined"?window:exports,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",INVALID_CHARACTER_ERR=function(){try{document.createElement("$")}catch(error){return error}}();object.atob||(object.atob=function(input){input=input.replace(/=+$/,"");if(input.length%4==1){throw INVALID_CHARACTER_ERR}for(var bc=0,bs,buffer,idx=0,output="";buffer=input.charAt(idx++);~buffer&&(bs=bc%4?bs*64+buffer:buffer,bc++%4)?output+=String.fromCharCode(255&bs>>(-2*bc&6)):0){buffer=chars.indexOf(buffer)}return output})})()}(function(){String.prototype.lpad=function(len,padder){if(padder===0){padder="0"}else if(!padder){padder=" "}var deficit=len-this.length;var pad="";var padder_length=padder.length;while(deficit>0){pad+=padder;deficit-=padder_length}return pad+this};String.prototype.reverse=function(){return this.split("").reverse().join("")};var html_chars={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};var html_chars_regex=/[&<>"'\/`]/g;var html_function=function(match){return html_chars[match]};String.prototype.html_encode=function(){return this.replace(html_chars_regex,html_function)};var escapees_regexp=/([\\^$*+?.()|{}\[\]])/g;String.prototype.regexp_encode=function(){return this.replace(escapees_regexp,"\\$1")}})();(function(){Array.prototype.sort_by=function(){var this_length=this.length;if(this_length===0){return this}var xformers=[];var xformers_length=arguments.length;for(var s=0;s<xformers_length;s++){var cur_xformer=arguments[s];var xformer_func;var reverse=false;if(cur_xformer instanceof Function){xformer_func=cur_xformer;reverse=cur_xformer.reverse||false}else{reverse=(typeof cur_xformer==="string"||cur_xformer instanceof String)&&cur_xformer.charAt(0)==="!";if(reverse){cur_xformer=cur_xformer.substring(1)}var referenced=this[0][cur_xformer];var isFunc=referenced instanceof Function;xformer_func=isFunc?function(i){return i[cur_xformer]()}:function(i){return i[cur_xformer]}}xformer_func.reverse_val=reverse?-1:1;xformers.push(xformer_func)}var xformed_values=[];for(var i=0;i<this_length;i++){cur_value=this[i];var cur_xformed_values=[];for(var x=0;x<xformers_length;x++){cur_xformed_values.push(xformers[x](cur_value))}cur_xformed_values.push(i);cur_xformed_values.item=cur_value;xformed_values.push(cur_xformed_values)}var index,_xformers_length,first_xformed,second_xformed;var sorter=function(first,second){index=0;_xformers_length=xformers_length;while(index<_xformers_length){first_xformed=first[index];second_xformed=second[index];if(first_xformed>second_xformed){return 1*xformers[index].reverse_val}else if(first_xformed<second_xformed){return-1*xformers[index].reverse_val}index++}return 0};xformed_values.sort(sorter);for(var xv=0;xv<this_length;xv++){this[xv]=xformed_values[xv].item}return this};Array.prototype.unique=function(){var r=[];bigloop:for(var i=0,n=this.length;i<n;i++){for(var x=0,y=r.length;x<y;x++){if(r[x]===this[i]){continue bigloop}}r[y]=this[i]}return r};Array.prototype.min=function(){var min=this[this.length-1];for(var i=this.length-2;i>=0;i--){if(this[i]<min){min=this[i]}}return min};Array.prototype.max=function(){var max=this[this.length-1];for(var i=this.length-2;i>=0;i--){if(this[i]>max){max=this[i]}}return max}})();(function(){var _y;if(YAHOO&&YAHOO.util&&YAHOO.util.Selector&&(!("Y"in window)||window.Y===YAHOO)){_y=function(){var query=YAHOO.util.Selector.query;var DOM=YAHOO.util.Dom;var one=function(sel){var root=this===_y?null:this;return query(sel,root,true)};var all=function(sel){var root=this===_y?null:this;return query(sel,root)};var _y=function(domnode){if(typeof domnode==="string"){domnode=domnode.replace(/^#/,"")}domnode=DOM.get(domnode);return{one:one.bind(domnode),all:all.bind(domnode)}};_y.one=one;_y.all=all;return _y}()}var url_path=location.pathname;var path_match=url_path.match(/((?:\/cpsess\d+)?)(?:\/([^\/]+))?/)||[];var port_path_app={2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",frontend:"cpanel",webmail:"webmail"};var security_token=path_match[1]||"";var cpanel={Y:_y,base_path:function(){return location.protocol+"//"+location.hostname+":"+location.port+(security_token||"")+"/"},security_token:security_token,is_touchscreen:"orientation"in window,application:port_path_app[location.port]||port_path_app[path_match[2]]||"whostmgr",is_cpanel:function(){return/cpanel/i.test(window.CPANEL.application)},is_whm:function(){return/wh/i.test(window.CPANEL.application)},has_text_content:"textContent"in document,namespace:function(){var a=arguments,o=null,i,j,d;for(i=0;i<a.length;i=i+1){d=(""+a[i]).split(".");o=window["CPANEL"];for(j=d[0]==="CPANEL"?1:0;j<d.length;j=j+1){o[d[j]]=o[d[j]]||{};o=o[d[j]]}}return o}};YAHOO.register("cpanel",cpanel,{version:"1.0.0",build:"1"});window["CPANEL"]=cpanel})();if(window.YAHOO&&YAHOO.util){window.DOM=YAHOO.util.Dom;window.EVENT=YAHOO.util.Event}if(window.YAHOO&&YAHOO.util){if(YAHOO.util.CustomEvent){CPANEL.align_panels_event=new YAHOO.util.CustomEvent("align panels event");CPANEL.align_panels=CPANEL.align_panels_event.fire.bind(CPANEL.align_panels_event)}if(YAHOO.util.Event){YAHOO.util.Event.throwErrors=true}if(YAHOO.util.Connect){YAHOO.util.Connect.failureEvent.subscribe((function(eventType,args){if("no_ajax_authentication_notices"in CPANEL){return}for(var i=0,l=args.length;i<l;i++){if(args[i]&&args[i].status){switch(args[i].status){case 401:case 403:case 407:case 505:if(window.confirm('Your login session has expired.\nClick "OK" to log in again.\nClick "Cancel" to stay on the page.')){window.top.location.reload()}break}}}}))}}(function(window){"use strict";if(!window.CPANEL){window.CPANEL={}}var CPANEL=window.CPANEL;var DEFAULT_ELLIPSIS={initial:"…{0}",medial:"{0}…{1}",final:"{0}…"};var html_apos="'".html_encode();var html_quot='"'.html_encode();var html_amp="&".html_encode();var html_lt="<".html_encode();var html_gt=">".html_encode();var get_cldr_day=function(the_date){var num=the_date.getUTCDay()-1;return num<0?6:num};var Locale=function(){};CPANEL.Locale=Locale;Locale._locales={};Locale.add_locale=function(tag,construc){Locale._locales[tag]=construc;construc.prototype._locale_tag=tag};Locale.remove_locale=function(tag){return delete Locale._locales[tag]};Locale.get_handle=function(){var cur_arg;var arg_count=arguments.length;for(var a=0;a<arg_count;a++){cur_arg=arguments[a];if(cur_arg in Locale._locales){return new Locale._locales[cur_arg]}}var loc=Object.keys(Locale._locales).min();return loc?new Locale._locales[loc]:new Locale};CPANEL.Locale.ymd=null;CPANEL.Locale.ymd_string_to_date=function(str){var str_split=str.split(/\D+/);var ymd=this.ymd||"mdy";var day=str_split[ymd.indexOf("d")];var month=str_split[ymd.indexOf("m")];var year=str_split[ymd.indexOf("y")];if(year&&year.length<4){var deficit=4-year.length;year=String((new Date).getFullYear()).substr(0,deficit)+year}var date=new Date(year,month-1,day);return isNaN(date.getTime())?undefined:date};CPANEL.Locale.date_template=null;Date.prototype.to_ymd_string=function(){var date=this;var template=CPANEL.Locale.date_template||"{month}/{day}/{year}";return template.replace(/\{(?:month|day|year)\}/g,(function(subst){switch(subst){case"{day}":return date.getDate();case"{month}":return date.getMonth()+1;case"{year}":return date.getFullYear()}}))};var bracket_re=/([^~\[\]]+|~.|\[|\]|~)/g;var faux_comma="";var faux_comma_re=new RegExp(faux_comma,"g");var tilde_chars={"[":1,"]":1,"~":1};var underscore_digit_re=/^_(\d+)$/;var func_substitutions={"#":"numf","*":"quant"};var data_abbreviations=["KB","MB","GB","TB","PB","EB","ZB","YB"];var _maketext=function(str){if(!str){return}str=this.LEXICON&&this.LEXICON[str]||str;if(str.indexOf("[")===-1){return String(str)}var assembled=[];var pieces=str.match(bracket_re);var pieces_length=pieces.length;var in_group=false;var bracket_args="";var p,cur_p,a;PIECE:for(p=0;p<pieces_length;p++){cur_p=pieces[p];if(cur_p==="["){if(in_group){throw"Invalid maketext string: "+str}in_group=true}else if(cur_p==="]"){if(!in_group||!bracket_args){throw"Invalid maketext string: "+str}in_group=false;var real_args=bracket_args.split(",");var len=real_args.length;var func;if(len===1){var arg=real_args[0].match(underscore_digit_re);if(!arg){throw"Invalid maketext string: "+str}var looked_up=arguments[arg[1]];if(typeof looked_up==="undefined"){throw'Invalid argument "'+arg[1]+'" passed to maketext string: '+str}else{bracket_args="";assembled.push(looked_up);continue PIECE}}else{func=real_args.shift();len-=1;func=func_substitutions[func]||func;if(typeof this[func]!=="function"){throw'Invalid function "'+func+'" in maketext string: '+str}}if(bracket_args.indexOf(faux_comma)!==-1){for(a=0;a<len;a++){real_args[a]=real_args[a].replace(faux_comma_re,",")}}var cur_arg,alen;for(a=0;a<len;a++){cur_arg=real_args[a];if(cur_arg.charAt(0)==="_"){if(cur_arg==="_*"){real_args.splice(a,1);for(a=1,alen=arguments.length;a<alen;a++){real_args.push(arguments[a])}}else{var arg_num=cur_arg.match(underscore_digit_re);if(arg_num){if(arg_num[1]in arguments){real_args[a]=arguments[arg_num[1]]}else{throw'Invalid variable "'+arg_num[1]+'" in maketext string: '+str}}else{throw"Invalid maketext string: "+str}}}}bracket_args="";assembled.push(this[func].apply(this,real_args))}else if(cur_p.charAt(0)==="~"){var real_char=cur_p.charAt(1)||"~";if(in_group){if(real_char===","){bracket_args+=faux_comma}else{bracket_args+=real_char}}else if(real_char in tilde_chars){assembled.push(real_char)}else{assembled.push(cur_p)}}else if(in_group){bracket_args+=cur_p}else{assembled.push(cur_p)}}if(in_group){throw"Invalid maketext string: "+str}return assembled.join("")};var prototype_stuff={LEXICON:typeof window==="undefined"?global.LEXICON||(global.LEXICON={}):window.LEXICON||(window.LEXICON={}),maketext:_maketext,makethis:_maketext,makevar:_maketext,translatable:function(str){return str},_locale_tag:null,get_language_tag:function(){return this._locale_tag},join:function(sep,list){sep=String(sep);if(typeof list==="object"){return list.join(sep)}else{var str=String(arguments[1]);for(var a=2;a<arguments.length;a++){str+=sep+arguments[a]}return str}},boolean:function(condition,when_true,when_false,when_null){if(condition){return""+when_true}if(arguments.length>3&&(condition===null||condition===undefined)){return""+when_null}return""+when_false},comment:function(){return""},output:function(sub_func,str){var that=this;var sub_args=Array.prototype.concat.apply([],arguments).slice(1);if(sub_args&&typeof sub_args[0]==="string"){sub_args[0]=sub_args[0].replace(/chr\((\d+|\S)\)/g,(function(str,p1){return that.output_chr(p1)}));sub_args[0]=sub_args[0].replace(/amp\(\)/g,(function(str){return that.output_amp()}))}if(typeof this["output_"+sub_func]==="function"){return this["output_"+sub_func].apply(this,sub_args)}else{if(window.console){window.console.warn('Locale output function "'+sub_func+'" is not implemented.')}return str}},output_apos:function(){return html_apos},output_quot:function(){return html_quot},output_asis:String,asis:String,output_underline:function(str){return"<u>"+str+"</u>"},output_strong:function(str){return"<strong>"+str+"</strong>"},output_em:function(str){return"<em>"+str+"</em>"},output_abbr:function(abbr,full){return'<abbr title="__FULL__">'.replace(/__FULL__/,full)+abbr+"</abbr>"},output_acronym:function(abbr,full){return this.output_abbr(abbr,full).replace(/^(<[a-z]+)/i,'$1 class="initialism"')},output_class:function(str){var cls=Array.prototype.slice.call(arguments,1);return'<span class="'+cls.join(" ")+'">'+str+"</span>"},output_chr:function(num){return isNaN(+num)?String(num):String.fromCharCode(num).html_encode()},output_amp:function(){return html_amp},output_lt:function(){return html_lt},output_gt:function(){return html_gt},output_url:function(dest){var args_length=arguments.length,config=arguments[args_length-1],text,key,value,start_i,a,len;if(typeof config==="object"){text=args_length===3?arguments[1]:config.html||dest;if("_type"in config&&config._type==="offsite"){config["class"]="offsite";config.target="_blank";delete config._type}}else{config={};if(args_length%2){start_i=1}else{text=arguments[1];start_i=2}a=start_i;len=arguments.length;while(a<len){key=arguments[a];value=arguments[++a];if(key==="_type"&&value==="offsite"){config.target="_blank";config["class"]="offsite"}else{config[key]=value}a++}if(!text){text=config.html||dest}}var html='<a href="'+dest+'"';if(typeof config==="object"){for(key in config){html+=" "+key+'="'+config[key]+'"'}}html+=">"+text+"</a>";return html},list_separator:", ",oxford_separator:",",list_default_and:"&",list:function(word){if(!word){word=this.list_default_and}var list_sep=this.list_separator;var oxford_sep=this.oxford_separator;var the_list;if(typeof arguments[1]==="object"&&arguments[1]instanceof Array){the_list=arguments[1]}else{the_list=Array.prototype.concat.apply([],arguments).slice(1)}var len=the_list.length;if(!len){return""}if(len===1){return String(the_list[0])}else if(len===2){return the_list[0]+" "+word+" "+the_list[1]}else{return the_list.slice(0,-1).join(list_sep)+[oxford_sep,word,the_list.slice(-1)].join(" ")}},format_bytes:function(bytes,decimal_places){if(decimal_places===undefined){decimal_places=2}bytes=Number(bytes);var exponent=bytes&&Math.min(Math.floor(Math.log(bytes)/Math.log(1024)),data_abbreviations.length);if(!exponent){return this.maketext("[quant,_1,%s byte,%s bytes]",bytes)}else{return this.numf(bytes/Math.pow(1024,exponent),decimal_places)+" "+data_abbreviations[exponent-1]}},numerate:function(num){if(this.get_plural_form){var numerated=this.get_plural_form.apply(this,arguments)[0];if(numerated===undefined){numerated=arguments[arguments.length-1]}return numerated}else{var abs=Math.abs(num);if(abs===1){return""+arguments[1]}else if(abs===0){return""+arguments[arguments.length-1]}else{return""+arguments[2]}}},quant:function(num){var numerated,is_special_zero,decimal_places=3;if(num instanceof Array){decimal_places=num[1];num=num[0]}if(this.get_plural_form){var gpf=this.get_plural_form.apply(this,arguments);numerated=gpf[0];if(numerated===undefined){numerated=arguments[arguments.length-1]}is_special_zero=gpf[1]}else{numerated=this.numerate.apply(this,arguments);is_special_zero=parseInt(num,10)===0&&arguments.length>3&&numerated===String(arguments[3])}var formatted=this.numf(num,decimal_places);if(numerated.indexOf("%s")!==-1){return numerated.replace(/%s/g,formatted)}if(is_special_zero){return numerated}return this.is_rtl()?numerated+" "+formatted:formatted+" "+numerated},_max_decimal_places:6,numf:function(num,decimal_places){if(decimal_places===undefined){decimal_places=this._max_decimal_places}if(/e/.test(num)){return String(num)}var cldr,decimal_format,decimal_group,decimal_decimal;try{cldr=this.get_cldr("misc_info").cldr_formats;decimal_format=cldr.decimal;decimal_group=cldr._decimal_format_group;decimal_decimal=cldr._decimal_format_decimal}catch(e){}if(!decimal_format||!decimal_group||!decimal_decimal){decimal_format="#,##0.###";decimal_group=",";decimal_decimal="."}var is_negative=num<0;num=Math.abs(num);var whole=Math.floor(num);var normalized,fraction;if(/(?!')\.(?!')/.test(num)){fraction=String(num).replace(/^[^.]+/,"0");fraction=Number(fraction).toFixed(decimal_places);if(/^1/.test(fraction)){whole++;num=whole;fraction=undefined}else{fraction=fraction.replace(/^.*\./,"").replace(/0+$/,"")}normalized=Number(whole+"."+fraction)}else{normalized=num}var pattern_with_outside_symbols;if(/(?!');(?!')/.test(decimal_format)){pattern_with_outside_symbols=decimal_format.split(/(?!');(?!')/)[is_negative?1:0]}else{pattern_with_outside_symbols=(is_negative?"-":"")+decimal_format}var inner_pattern=pattern_with_outside_symbols.match(/[0#].*[0#]/)[0];var pattern_split=inner_pattern.split(/(?!')\.(?!')/);var int_pattern_split=pattern_split[0].reverse().split(/(?!'),(?!')/);var group_joiner;if(int_pattern_split.length===1){group_joiner=""}else{int_pattern_split.pop();group_joiner=decimal_group}var whole_reverse=String(whole).split("").reverse();var whole_assembled=[];var pattern;var replacer=function(chr){switch(chr){case"#":return whole_reverse.shift()||"";case"0":return whole_reverse.shift()||"0"}};while(whole_reverse.length){if(int_pattern_split.length){pattern=int_pattern_split.shift()}var assemble_chunk=pattern.replace(/(?!')[0#]|[0#](?!')/g,replacer).replace(/'([.,0#;¤%E])'$/,"").replace(/'([.,0#;¤%E])'/,"$1");whole_assembled.push(assemble_chunk)}var formatted_num=whole_assembled.join(group_joiner).reverse()+(fraction?decimal_decimal+fraction:"");return pattern_with_outside_symbols.replace(/[0#].*[0#]/,formatted_num)},list_and:function(){return this._list_join_cldr("list",arguments)},list_or:function(){return this._list_join_cldr("list_or",arguments)},_list_join_cldr:function(templates_name,args){var the_list;if(typeof args[0]==="object"&&args[0]instanceof Array){the_list=args[0].slice(0)}else if(typeof args[0]==="object"){if(args[0]instanceof Array){the_list=args.slice(0)}else{the_list=[args[0]]}}else if(typeof args==="object"&&args[0]!==undefined){if(args[0]instanceof Array){the_list=args[0].slice(0)}else{the_list=[];for(var k in args){the_list[k]=args[k]}}}if(the_list===undefined){the_list=[""]}var cldr_list;var len=the_list.length;var pattern;var text;try{cldr_list=this.get_cldr("misc_info").cldr_formats[templates_name]}catch(e){var conjunction=templates_name==="list_or"?"or":"and";cldr_list={2:"{0} "+conjunction+" {1}",start:"{0}, {1}",middle:"{0}, {1}",end:"{0}, "+conjunction+" {1}"}}var replacer=function(str,p1){switch(p1){case"0":return text;case"1":return the_list[i++]}};switch(len){case 0:return;case 1:return String(the_list[0]);default:if(len===2){text=cldr_list["2"]}else{text=cldr_list.start}text=text.replace(/\{([01])\}/g,(function(all,bit){return the_list[bit]}));if(len===2){return text}var i=2;while(i<len){pattern=cldr_list[i===len-1?"end":"middle"];text=pattern.replace(/\{([01])\}/g,replacer)}return text}},list_and_quoted:function(){return this._list_quoted("list_and",arguments)},list_or_quoted:function(){return this._list_quoted("list_or",arguments)},_quote:function(str){var delimiters;try{delimiters=this.get_cldr("misc_info").delimiters}catch(e){delimiters={quotation_start:"“",quotation_end:"”"}}return delimiters["quotation_start"]+str+delimiters["quotation_end"]},_list_quoted:function(join_fn,args){var the_list;if(typeof args[0]==="object"){if(args[0]instanceof Array){the_list=args[0].slice()}else{throw"Unrecognized list_and_quoted() argument: "+args[0].toString()}}else{the_list=Array.prototype.slice.apply(args)}if(the_list===undefined||the_list.length===0){the_list=[""]}var locale=this;return this[join_fn](the_list.map((function(){return locale._quote.apply(locale,arguments)})))},local_datetime:function(my_date,format_string){if(!this._cldr){return this.datetime.apply(this,arguments)}if(my_date instanceof Date){my_date=new Date(my_date)}else if(/^-?\d+$/.test(my_date)){my_date=new Date(my_date*1e3)}else{my_date=new Date}var tz_offset=my_date.getTimezoneOffset();my_date.setMinutes(my_date.getMinutes()-tz_offset);var non_utc=this.datetime(my_date,format_string);if(non_utc.indexOf("UTC")>-1){var hours=tz_offset>0?"-":"+";hours+=Math.floor(Math.abs(tz_offset)/60).toString().lpad(2,"0");var minutes=(tz_offset%60).toString().lpad(2,"0");non_utc=non_utc.replace("UTC","GMT"+hours+minutes)}return non_utc},datetime:function datetime(my_date,format_string){if(!my_date&&my_date!==0){my_date=new Date}else if(!(my_date instanceof Date)){my_date=new Date(my_date*1e3)}var loc_strs=this.get_cldr("datetime");if(!loc_strs){return my_date.toString()}if(format_string){if(/^(?:date|time|datetime|special)_format_/.test(format_string)){format_string=loc_strs[format_string]}}else{format_string=loc_strs.date_format_long}var substituter=function(){if(arguments[1]){return arguments[1].substr(1,arguments[1].length-2)}var key=arguments[2];var xformed=function(){switch(key){case"yy":return Math.abs(my_date.getUTCFullYear()).toString().slice(-2);case"y":case"yyy":case"yyyy":return Math.abs(my_date.getUTCFullYear());case"MMMMM":return loc_strs.month_format_narrow[my_date.getUTCMonth()];case"LLLLL":return loc_strs.month_stand_alone_narrow[my_date.getUTCMonth()];case"MMMM":return loc_strs.month_format_wide[my_date.getUTCMonth()];case"LLLL":return loc_strs.month_stand_alone_wide[my_date.getUTCMonth()];case"MMM":return loc_strs.month_format_abbreviated[my_date.getUTCMonth()];case"LLL":return loc_strs.month_stand_alone_abbreviated[my_date.getUTCMonth()];case"MM":case"LL":return(my_date.getUTCMonth()+1).toString().lpad(2,"0");case"M":case"L":return my_date.getUTCMonth()+1;case"EEEE":return loc_strs.day_format_wide[get_cldr_day(my_date)];case"EEE":case"EE":case"E":return loc_strs.day_format_abbreviated[get_cldr_day(my_date)];case"EEEEE":return loc_strs.day_format_narrow[get_cldr_day(my_date)];case"cccc":return loc_strs.day_stand_alone_wide[get_cldr_day(my_date)];case"ccc":case"cc":case"c":return loc_strs.day_stand_alone_abbreviated[get_cldr_day(my_date)];case"ccccc":return loc_strs.day_stand_alone_narrow[get_cldr_day(my_date)];case"dd":return my_date.getUTCDate().toString().lpad(2,"0");case"d":return my_date.getUTCDate();case"h":case"hh":var twelve_hours=my_date.getUTCHours();if(twelve_hours>12){twelve_hours-=12}if(twelve_hours===0){twelve_hours=12}return key==="hh"?twelve_hours.toString().lpad(2,"0"):twelve_hours;case"H":return my_date.getUTCHours();case"HH":return my_date.getUTCHours().toString().lpad(2,"0");case"m":return my_date.getUTCMinutes();case"mm":return my_date.getUTCMinutes().toString().lpad(2,"0");case"s":return my_date.getUTCSeconds();case"ss":return my_date.getUTCSeconds().toString().lpad(2,"0");case"a":var hours=my_date.getUTCHours();if(hours<12){return loc_strs.am_pm_abbreviated[0]}else if(hours>12){return loc_strs.am_pm_abbreviated[1]}return loc_strs.am_pm_abbreviated[1];case"z":case"zzzz":case"v":case"vvvv":return"UTC";case"G":case"GG":case"GGG":return loc_strs.era_abbreviated[my_date.getUTCFullYear()<0?0:1];case"GGGGG":return loc_strs.era_narrow[my_date.getUTCFullYear()<0?0:1];case"GGGG":return loc_strs.era_wide[my_date.getUTCFullYear()<0?0:1]}if(window.console){console.warn("Unknown CLDR date/time pattern: "+key+" ("+format_string+")")}return key}();return xformed};return format_string.replace(/('[^']+')|(([a-zA-Z])\3*)/g,substituter)},is_rtl:function(){try{return this.get_cldr("misc_info").orientation.characters==="right-to-left"}catch(e){return false}},elide:function(str,start_length,end_length){start_length=start_length||0;end_length=end_length||0;if(str.length<=start_length+end_length){return str}var template,substring0,substring1;if(start_length){if(end_length){template="medial";substring0=str.substr(0,start_length);substring1=str.substr(str.length-end_length)}else{template="final";substring0=str.substr(0,start_length)}}else if(end_length){template="initial";substring0=str.substr(str.length-end_length)}else{return""}try{template=this._cldr.misc_info.cldr_formats.ellipsis[template]}catch(e){template=DEFAULT_ELLIPSIS[template]}if(substring1){return template.replace("{0}",substring0).replace("{1}",substring1)}return template.replace("{0}",substring0)},get_first_day_of_week:function(){var fd=Number(this.get_cldr("datetime").first_day_of_week)+1;return fd===8?0:fd},set_cldr:function(cldr){var cldr_obj=this._cldr;if(!cldr_obj){cldr_obj=this._cldr={}}for(var key in cldr){cldr_obj[key]=cldr[key]}},get_cldr:function(key){if(!this._cldr){return}if(typeof key==="object"&&key instanceof Array){return key.map(this.get_cldr,this)}else{return key?this._cldr[key]:this._cldr}},reset_cldr:function(){this._cldr=undefined},_cldr:null};CPANEL.Locale.generateClassFromCldr=function(tag,functionsMixin,dateTimeInfo,miscInfo){if(CPANEL.Locale._locales[tag]){return Locale._locales[tag]}var GeneratedLocale=function(){GeneratedLocale.superclass.constructor.apply(this,arguments);this.set_cldr({datetime:dateTimeInfo});this.set_cldr({misc_info:miscInfo})};YAHOO.lang.extend(GeneratedLocale,CPANEL.Locale,functionsMixin);Locale.add_locale(tag,GeneratedLocale);window.LOCALE=CPANEL.Locale.get_handle();return CPANEL.Locale._locales[tag]};for(var key in prototype_stuff){Locale.prototype[key]=prototype_stuff[key]}window.LOCALE=Locale.get_handle()})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including icons.js!")}else{CPANEL.icons={error:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/error.png" width="16" height="16" alt="error" />',error_src:"/cPanel_magic_revision_0/cjt/images/icons/error.png",error24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/error24.png" width="24" height="24" alt="error" />',error24_src:"/cPanel_magic_revision_0/cjt/images/icons/error24.png",success:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/success.png" alt="success" width="16" height="16" />',success_src:"/cPanel_magic_revision_0/cjt/images/icons/success.png",success24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/success24.png" alt="success" width="24" height="24" />',success24_src:"/cPanel_magic_revision_0/cjt/images/icons/success24.png",unknown:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/unknown.png" alt="unknown" width="16" height="16" />',unknown_src:"/cPanel_magic_revision_0/cjt/images/icons/unknown.png",unknown24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/unknown24.png" alt="unknown" width="24" height="24" />',unknown24_src:"/cPanel_magic_revision_0/cjt/images/icons/unknown24.png",warning:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/warning.png" alt="warning" width="16" height="16"/>',warning_src:"/cPanel_magic_revision_0/cjt/images/icons/warning.png",warning24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/warning24.png" alt="warning" width="24" height="24"/>',warning24_src:"/cPanel_magic_revision_0/cjt/images/icons/warning24.png",ajax:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/loading.gif" alt="loading" />',ajax_src:"/cPanel_magic_revision_0/cjt/images/loading.gif",transparent:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/1px_transparent.gif" alt="" width="1" height="1"/>',transparent_src:"/cPanel_magic_revision_0/cjt/images/1px_transparent.gif",rejected:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/rejected.png" alt="rejected" width="16" height="16"/>',rejected_src:"/cPanel_magic_revision_0/cjt/images/rejected.png",rejected24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/rejected24.png" alt="rejected" width="24" height="24"/>',rejected24_src:"/cPanel_magic_revision_0/cjt/images/rejected24.png",info:'<img align="absmiddle" src="/cPanel_magic_revision_0/yui/container/assets/info16_1.gif" alt="" width="16" height="16"/>',info_src:"/cPanel_magic_revision_0/yui/container/assets/info16_1.gif",filtered:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/filter.png" alt="" width="16" height="16"/>',filtered_src:"/cPanel_magic_revision_0/cjt/images/filtered.png",filtered24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/filter24.png" alt="" width="24" height="24"/>',filtered24_src:"/cPanel_magic_revision_0/cjt/images/filtered24.png",archive:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/archive.png" alt="" width="16" height="16"/>',archive_src:"/cPanel_magic_revision_0/cjt/images/archive.png",archive24:'<img align="absmiddle" src="/cPanel_magic_revision_0/cjt/images/icons/archive24.png" alt="" width="24" height="24"/>',archive24_src:"/cPanel_magic_revision_0/cjt/images/archive24.png"}}var CPANEL=window.CPANEL,YAHOO=window.YAHOO;if(typeof CPANEL==="undefined"||!CPANEL){alert("You must include the CPANEL global object before including animate.js!")}else if(typeof YAHOO.util.Anim==="undefined"||!YAHOO.util.Anim){alert("You must include the YUI Animation library before including animate.js!")}else{(function(){var _SLIDING=[];var _FADING=[];var i,cur_el;function _check(el,to_check){for(i=0;cur_el=to_check[i++];){if(cur_el===el){return false}}to_check.push(el);return true}function _done_check(el,to_check){for(i=0;cur_el=to_check[i++];){if(cur_el===el){return to_check.splice(--i,1)}}return}var WHM_NAVIGATION_TOP_CONTAINER_SELECTOR="#navigation #breadcrumbsContainer";CPANEL.animate={sequential_slide:false,debug:false,slide_down:function(elem,opts){var callback=typeof opts==="function"&&opts;var expand_width=opts&&opts.expand_width;var el=DOM.get(elem);var check=_check(el,_SLIDING);if(!check){return}var s=el.style;var old_position=s.position;var old_visibility=s.visibility;var old_overflow=s.overflow;var old_bottom=s.bottom;var old_display=DOM.getStyle(el,"display");if(expand_width){var old_right_margin=s.marginRight;s.marginRight="-10000px"}var change_overflow=old_overflow!=="hidden";var change_position=old_position!=="absolute";var change_visibility=old_visibility!=="hidden";var test_node=document.createElement(el.nodeName);test_node.style.position="absolute";test_node.style.visibility="hidden";document.body.appendChild(test_node);var default_display=DOM.getStyle(test_node,"display");document.body.removeChild(test_node);delete test_node;if(change_visibility){s.visibility="hidden"}if(change_position){s.position="absolute"}s.bottom=0;if(change_overflow){s.overflow="hidden"}s.display=default_display;var old_box_attrs=CPANEL.animate._get_box_attributes(el);var computed_box_attrs=CPANEL.animate._get_computed_box_attributes(el);var finish_up=function(){for(var attr in computed_box_attrs){el.style[attr]=old_box_attrs[attr]||""}if(change_overflow){s.overflow=old_overflow}if(old_display!=="none"){s.display=old_display}_done_check(el,_SLIDING)};if(change_position){s.position=old_position}s.bottom=old_bottom;if(change_visibility){s.visibility=old_visibility}if(expand_width){s.marginRight=old_right_margin}for(var attr in computed_box_attrs){s[attr]=0}if(CPANEL.animate.debug){console.debug("slide down",el,computed_box_attrs)}if(CPANEL.animate.sequential_slide){var total_slide_distance=0;for(var attr in computed_box_attrs){total_slide_distance+=computed_box_attrs[attr]}var animations=[];var all_animations=CPANEL.animate._animation_order;var all_animations_count=CPANEL.animate._animation_order.length;var last_animation;for(var a=0;a<all_animations_count;a++){var attr=all_animations[a];if(attr in computed_box_attrs){var slide_distance=computed_box_attrs[attr];var slide_time=CPANEL.animate.slideTime*slide_distance/total_slide_distance;var anims={};anims[attr]={from:0,to:computed_box_attrs[attr]};var cur_anim=new YAHOO.util.Anim(el,anims,slide_time);if(last_animation){(function(frozen_anim_obj){var next_trigger=function(){frozen_anim_obj.animate()};last_animation.onComplete.subscribe(next_trigger)})(cur_anim)}animations.push(cur_anim);last_animation=cur_anim}}last_animation.onComplete.subscribe(finish_up);if(callback){last_animation.onComplete.subscribe(callback)}animations[0].animate();return animations}else{var animations={};for(var attr in computed_box_attrs){animations[attr]={from:0,to:computed_box_attrs[attr]}}var anim=new YAHOO.util.Anim(elem,animations,CPANEL.animate.slideTime);anim.onComplete.subscribe(finish_up);if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim}},slide_up:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_SLIDING);if(!el||!check){return}var s=el.style;old_overflow=s.overflow;var change_overflow=old_overflow!=="hidden";if(change_overflow){s.overflow="hidden"}var old_box_settings=CPANEL.animate._get_box_attributes(el);var computed_box_settings=CPANEL.animate._get_computed_box_attributes(el);var finish_up=function(){for(var attr in computed_box_settings){s[attr]=old_box_settings[attr]||""}s.display="none";if(change_overflow){s.overflow=old_overflow}_done_check(el,_SLIDING)};if(CPANEL.animate.sequential_slide){var total_slide_distance=0;for(var attr in computed_box_settings){total_slide_distance+=computed_box_settings[attr]}var animations=[];var all_animations=CPANEL.animate._animation_order;var all_animations_count=CPANEL.animate._animation_order.length;var last_animation;for(var a=all_animations_count-1;a>-1;a--){var attr=all_animations[a];if(attr in computed_box_settings){var slide_distance=computed_box_settings[attr];var slide_time=CPANEL.animate.slideTime*slide_distance/total_slide_distance;var anims={};anims[attr]={to:0};var cur_anim=new YAHOO.util.Anim(el,anims,slide_time);if(last_animation){(function(frozen_anim_obj){var next_trigger=function(){frozen_anim_obj.animate()};last_animation.onComplete.subscribe(next_trigger)})(cur_anim)}animations.push(cur_anim);last_animation=cur_anim}}last_animation.onComplete.subscribe(finish_up);if(callback){last_animation.onComplete.subscribe(callback)}animations[0].animate();return animations}else{var animations={};for(var attr in computed_box_settings){animations[attr]={to:0}}var anim=new YAHOO.util.Anim(el,animations,CPANEL.animate.slideTime);anim.onComplete.subscribe(finish_up);if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim}},slide_up_and_empty:function(elem,callback){return CPANEL.animate.slide_up(elem,(function(){var that=this;if(callback){callback.call(that)}this.getEl().innerHTML=""}))},slide_up_and_remove:function(elem,callback){return CPANEL.animate.slide_up(elem,(function(){var that=this;if(callback){callback.call(that)}var el=this.getEl();el.parentNode.removeChild(el)}))},slide_toggle:function(elem,callback){var el=DOM.get(elem);var func_name=el.offsetHeight?"slide_up":"slide_down";return CPANEL.animate[func_name](el,callback)},_box_attributes:{height:"height",paddingTop:"padding-top",paddingBottom:"padding-bottom",borderTopWidth:"border-top-width",borderBottomWidth:"border-bottom-width",marginTop:"margin-top",marginBottom:"margin-bottom"},_animation_order:["marginTop","borderTopWidth","paddingTop","height","paddingBottom","borderBottomWidth","marginBottom"],_get_box_attributes:function(el){var attrs=CPANEL.util.keys(CPANEL.animate._box_attributes);var attrs_count=attrs.length;var el_box_attrs={};for(var a=0;a<attrs_count;a++){var cur_attr=attrs[a];var attr_val=el.style[attrs[a]];if(attr_val!=""){el_box_attrs[cur_attr]=attr_val}}return el_box_attrs},_get_computed_box_attributes:function(el){var computed_box_attrs={};var attr_map=CPANEL.animate._box_attributes;for(var attr in attr_map){var computed=parseFloat(DOM.getStyle(el,attr_map[attr]));if(computed>0){computed_box_attrs[attr]=computed}}if(!("height"in computed_box_attrs)){var simple_height=el.offsetHeight;if(simple_height){for(var attr in computed_box_attrs){if(attr!=="marginTop"&&attr!=="marginBottom"){simple_height-=computed_box_attrs[attr]}}if(simple_height){computed_box_attrs.height=simple_height}}}return computed_box_attrs},fade_in:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_FADING);if(!check){return}var old_filter="",element_style_opacity="";if("opacity"in el.style){element_style_opacity=el.style.opacity}else{var old_filter=el.style.filter}var target_opacity=parseFloat(DOM.getStyle(el,"opacity"));var anim=new YAHOO.util.Anim(el,{opacity:{to:target_opacity||1}},CPANEL.animate.fadeTime);anim.onComplete.subscribe((function(){if("opacity"in el.style){el.style.opacity=element_style_opacity}else if(old_filter){el.style.filter=old_filter}_done_check(el,_FADING)}));if(callback){anim.onComplete.subscribe(callback)}DOM.setStyle(el,"opacity",0);el.style.visibility="";if(el.style.display==="none"){el.style.display=""}anim.animate();return anim},fade_out:function(elem,callback){var el=DOM.get(elem);var check=_check(el,_FADING);if(!check){return}var old_opacity=el.style.opacity;var anim=new YAHOO.util.Anim(el,{opacity:{to:0}},CPANEL.animate.fadeTime);anim.onComplete.subscribe((function(){el.style.display="none";el.style.opacity=old_opacity;_done_check(el,_FADING)}));if(callback){anim.onComplete.subscribe(callback)}anim.animate();return anim},fade_toggle:function(elem,callback){var el=DOM.get(elem);var func_name=el.offsetHeight?"fade_out":"fade_in";return CPANEL.animate[func_name](el,callback)},slideTime:.2,fadeTime:.32,getAutoHeight:function(elid){el=YAHOO.util.Dom.get(elid);var original_opacity=YAHOO.util.Dom.getStyle(el,"opacity");var original_zindex=YAHOO.util.Dom.getStyle(el,"z-index");var original_display=YAHOO.util.Dom.getStyle(el,"display");var original_height=YAHOO.util.Dom.getStyle(el,"height");YAHOO.util.Dom.setStyle(el,"opacity",1);YAHOO.util.Dom.setStyle(el,"z-index",5e3);YAHOO.util.Dom.setStyle(el,"display","block");YAHOO.util.Dom.setStyle(el,"height","auto");var currentRegion=YAHOO.util.Dom.getRegion(el);var padding_top=parseInt(YAHOO.util.Dom.getStyle(el,"padding-top"));var padding_bottom=parseInt(YAHOO.util.Dom.getStyle(el,"padding-bottom"));var currentHeight=currentRegion.bottom-currentRegion.top-padding_top-padding_bottom;var original_opacity=YAHOO.util.Dom.setStyle(el,"opacity",original_opacity);var original_zindex=YAHOO.util.Dom.setStyle(el,"z-index",original_zindex);var original_display=YAHOO.util.Dom.setStyle(el,"display",original_display);var original_height=YAHOO.util.Dom.setStyle(el,"height",original_height);return currentHeight}};if(!("ContainerEffect"in CPANEL.animate)){CPANEL.animate.ContainerEffect={}}var _get_style=YAHOO.util.Dom.getStyle;var _set_style=YAHOO.util.Dom.setStyle;var Config=YAHOO.util.Config;var _mask;var _get_mask_opacity=function(){if(!("_mask_opacity"in this)){_mask=this.mask;this._mask_opacity=_get_style(_mask,"opacity");_set_style(_mask,"opacity",0)}};var FADE_MODAL=function(ovl,dur){var fade=YAHOO.widget.ContainerEffect.FADE.apply(this,arguments);if(!Config.alreadySubscribed(ovl.beforeShowMaskEvent,_get_mask_opacity,ovl)){ovl.beforeShowMaskEvent.subscribe(_get_mask_opacity)}fade.animIn.onStart.subscribe((function(){if(ovl.mask){var anim=new YAHOO.util.Anim(ovl.mask,{opacity:{from:0,to:ovl._mask_opacity}},dur);delete this._mask_opacity;anim.animate()}}));fade.animOut.onStart.subscribe((function(){if(ovl.mask){var anim=new YAHOO.util.Anim(ovl.mask,{opacity:{to:0}},dur);anim.animate()}}));fade.animOut.onComplete.subscribe((function(){if(ovl.mask){DOM.setStyle(ovl.mask,"opacity",0)}}));return fade};CPANEL.animate.ContainerEffect.FADE_MODAL=FADE_MODAL;var _configEffect=YAHOO.widget.Overlay.prototype.configEffect;YAHOO.widget.Overlay.prototype.configEffect=function(){if(this.beforeShowMaskEvent){this.beforeShowMaskEvent.unsubscribe(_get_mask_opacity)}return _configEffect.apply(this,arguments)};var _xform_attrs=["transform","MozTransform","WebkitTransform","OTransform","msTransform"];var _transform_attribute=null;var _test_style=(document.body||document.createElement("span")).style;for(var a=0,cur_a;cur_a=_xform_attrs[a++];){if(cur_a in _test_style){_transform_attribute=cur_a;break}}if(!_transform_attribute){var ie_removeProperty="removeProperty"in _test_style?"removeProperty":"removeAttribute";var half_pi=.5*Math.PI;var pi=Math.PI;var pi_and_half=1.5*Math.PI;var two_pi=2*Math.PI;var abs=Math.abs;var sin=Math.sin;var cos=Math.cos}var _rotate_regexp=/rotate\(([^\)]*)\)/;var _unit_conversions={deg:{grad:10/9,rad:Math.PI/180,deg:1},grad:{deg:9/10,rad:Math.PI/200,grad:1},rad:{deg:180/Math.PI,grad:200/Math.PI,rad:1}};var Rotation=function(){if(arguments[0]){Rotation.superclass.constructor.apply(this,arguments);if(!_transform_attribute){var el=YAHOO.util.Dom.get(arguments[0]);var _old_visibility;var _clone_el;var _old_position;var _top_style;var _left_style;this.onStart.subscribe((function(){_top_style=el.style.top;_left_style=el.style.left;if(!el.currentStyle.hasLayout){if(DOM.getStyle(el,"display")==="inline"){el.style.display="inline-block"}else{el.style.zoom="1"}}_clone_el=el.cloneNode(true);_clone_el.id="";_clone_el.style.visibility="hidden";_clone_el.style.position="absolute";el.parentNode.insertBefore(_clone_el,el);if(_clone_el.style.filter){_clone_el.style.filter=""}var region=YAHOO.util.Dom.getRegion(_clone_el);var width=parseFloat(YAHOO.util.Dom.getStyle(_clone_el,"width"))||region.width;var height=parseFloat(YAHOO.util.Dom.getStyle(_clone_el,"height"))||region.height;this._center_x=width/2;this._center_y=height/2;this._width=width;this._height=height;DOM.setXY(_clone_el,DOM.getXY(el));this._left_px=_clone_el.offsetLeft;this._top_px=_clone_el.offsetTop;_clone_el.style.visibility="visible";_clone_el.style.filter=el.style.filter;var z_index=YAHOO.util.Dom.getStyle(el,"z-index");if(z_index==="auto"){z_index=0}_clone_el.style.zIndex=z_index+1;_old_visibility=el.style.visibility;el.style.visibility="hidden";this.setEl(_clone_el);this.setRuntimeAttribute();var attrs=this.runtimeAttributes._rotation;var unit=attrs.unit;var degrees=unit==="deg"?attrs.start:attrs.start*_unit_conversions[unit].deg;var from_vertical=this._from_vertical=!(degrees%180);if(!from_vertical){var xy_offset=this.setAttribute(null,degrees,"deg",true);this._left_px+=Math.round(xy_offset[0]);this._top_px+=Math.round(xy_offset[1])}}));this.onComplete.subscribe((function(){var attrs=this.runtimeAttributes._rotation;var unit=attrs.unit;var degrees=unit==="deg"?attrs.end:attrs.end*_unit_conversions[unit].deg;var to_zero=!(degrees%360);var to_vertical=!(degrees%180);el.style.visibility=_old_visibility;if(to_zero){el.style[ie_removeProperty]("filter")}else{el.style.filter=_clone_el.style.filter}if(this._from_vertical&&to_vertical){if(_top_style){el.style.top=_top_style}else{el.style[ie_removeProperty]("top")}if(_left_style){el.style.left=_left_style}else{el.style[ie_removeProperty]("left")}}else{DOM.setXY(el,DOM.getXY(_clone_el))}_clone_el.parentNode.removeChild(_clone_el)}))}else if(_transform_attribute==="WebkitTransform"){this.onStart.subscribe((function(){var el=this.getEl();var original_display=YAHOO.util.Dom.getStyle(el,"display");if(original_display==="inline"){el.style.display="inline-block"}}))}}};Rotation.NAME="Rotation";YAHOO.extend(Rotation,YAHOO.util.Anim,{setAttribute:_transform_attribute?function(attr,val,unit){this.getEl().style[_transform_attribute]="rotate("+val+unit+")"}:function(attr,val,unit,no_set){var el,el_style,cos_val,sin_val,ie_center_x,ie_center_y,width,height;el=this.getEl();el_style=el.style;if(unit!=="rad"){val=val*_unit_conversions[unit].rad}val%=two_pi;if(val<0){val+=two_pi}cos_val=cos(val);sin_val=sin(val);width=this._width;height=this._height;if(val>=0&&val<half_pi||val>=pi&&val<pi_and_half){ie_center_x=.5*(abs(width*cos_val)+abs(height*sin_val));ie_center_y=.5*(abs(width*sin_val)+abs(height*cos_val))}else{ie_center_x=.5*(abs(height*sin_val)+abs(width*cos_val));ie_center_y=.5*(abs(height*cos_val)+abs(width*sin_val))}if(no_set){return[ie_center_x-this._center_x,ie_center_y-this._center_y]}else{el_style.top=this._top_px-ie_center_y+this._center_y+"px";el_style.left=this._left_px-ie_center_x+this._center_x+"px";el_style.filter="progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand'"+",M11="+cos_val+",M12="+-1*sin_val+",M21="+sin_val+",M22="+cos_val+")"}},getAttribute:function(){if(!_transform_attribute){return 0}var match=this.getEl().style[_transform_attribute].match(_rotate_regexp);return match?match[1]:0},defaultUnit:"deg",setRuntimeAttribute:function(){var attr="_rotation";var current_rotation;var unit="unit"in this.attributes?this.attributes[attr].unit:this.defaultUnit;if("from"in this.attributes){current_rotation=this.attributes.from}else{current_rotation=this.getAttribute();if(current_rotation){var number_units=current_rotation.match(/^(\d+)(\D+)$/);if(number_units[2]===unit){current_rotation=parseFloat(number_units[1])}else{current_rotation=number_units[1]*_unit_conversions[unit][number_units[2]]}}}this.runtimeAttributes[attr]={start:current_rotation,end:this.attributes.to,unit:unit};return true}});CPANEL.animate.Rotation=Rotation;var WindowScroll=function(){var SCROLL_ANIMATION_DURATION=.5;var destination=arguments[0]||0;var targetRegion;if(typeof destination==="string"){destination=DOM.get(destination);targetRegion=DOM.getRegion(destination)}if(typeof destination==="object"){if(!(destination instanceof YAHOO.util.Region)){destination=DOM.getRegion(destination)}}else{destination=new YAHOO.util.Point(0,destination)}targetRegion=destination;var scroll_window_to_y;var top_scroll_y=destination.top;if(CPANEL.is_whm()&&CPANEL.Y.one(WHM_NAVIGATION_TOP_CONTAINER_SELECTOR)){top_scroll_y-=DOM.get("breadcrumbsContainer").offsetHeight}var scroll_y=DOM.getDocumentScrollTop();if(scroll_y>top_scroll_y){scroll_window_to_y=top_scroll_y}else{var vp_region=CPANEL.dom.get_viewport_region();var bottom_scroll_y=Math.max(destination.bottom-vp_region.height,0);if(scroll_y<bottom_scroll_y){scroll_window_to_y=Math.min(top_scroll_y,bottom_scroll_y)}else{scroll_window_to_y=vp_region.top}}var scrollDesc={scroll:{to:[DOM.getDocumentScrollLeft(),scroll_window_to_y]}};var scrollTime=CPANEL.dom.get_viewport_region().contains(targetRegion)?0:SCROLL_ANIMATION_DURATION;var easing=YAHOO.util.Easing.easeBothStrong;new YAHOO.util.Scroll(document.body,scrollDesc,scrollTime,easing).animate();var args=[document.documentElement,scrollDesc,scrollTime,easing];WindowScroll.superclass.constructor.apply(this,args)};WindowScroll.NAME="WindowScroll";YAHOO.extend(WindowScroll,YAHOO.util.Scroll);CPANEL.animate.WindowScroll=WindowScroll})()}(function(window){"use strict";var YAHOO=window.YAHOO;var CPANEL=window.CPANEL;var LOCALE=window.LOCALE;var DEFAULT_API_VERSION_CPANEL=2;var DEFAULT_API_VERSION_WHM=1;var _transaction_args={};var _async_request=function(){var conn=YAHOO.util.Connect.asyncRequest.apply(YAHOO.util.Connect,arguments);if(conn&&"tId"in conn){_transaction_args[conn.tId]=arguments}return conn};var _make_whm_api_fieldspec_from_number=function(num){var left="".lpad(parseInt(num/26,10),"z");return left+"abcdefghijklmnopqrstuvwxyz".charAt(num%26)};var _find_is_whm=function(args_obj){return args_obj&&args_obj.application==="whm"||CPANEL.is_whm()};var find_api_version=function(args_obj){var version;if(args_obj&&"version"in args_obj){version=args_obj.version}else if(args_obj&&args_obj.api_data&&"version"in args_obj.api_data){version=args_obj.api_data.version}else if(_find_is_whm(args_obj)){version=DEFAULT_API_VERSION_WHM}else{version=DEFAULT_API_VERSION_CPANEL}version=parseInt(version,10);if(isNaN(version)){throw"Invalid API version: "+args_obj.version}return version};var api=function(args_obj){var callback;var req_obj;if(typeof args_obj.callback==="function"){callback={success:args_obj.callback}}else if(args_obj.callback){callback=YAHOO.lang.augmentObject({},args_obj.callback)}else{callback={}}var pp_opts=args_obj.progress_panel;var pp;if(pp_opts){if(!CPANEL.ajax.build_callback){throw"Need CPANEL.ajax!"}pp=new CPANEL.ajax.Progress_Panel(pp_opts);var source_el=pp_opts.source_el;if(source_el){pp.show_from_source(source_el)}else{pp.cfg.setProperty("effect",CPANEL.ajax.FADE_MODAL);pp.show()}var before_pp_success=callback.success;var pp_callback=CPANEL.ajax.build_callback((function(){if(pp_opts.before_success&&pp_opts.before_success.apply(pp,arguments)===false){return}if(source_el){pp.hide_to_point(source_el)}else{pp.hide()}var notice_opts=pp_opts.success_notice_options||{};YAHOO.lang.augmentObject(notice_opts,{level:"success",content:pp_opts.success_status||LOCALE.maketext("Success!")});req_obj.notice=new CPANEL.ajax.Dynamic_Notice(notice_opts);if(before_pp_success){return before_pp_success.apply(this,arguments)}}),{current:pp},{keep_current_on_success:true,on_error:pp_opts.on_error,failure:callback.failure});YAHOO.lang.augmentObject(callback,pp_callback,true)}var is_whm=_find_is_whm(args_obj);var api_version=find_api_version(args_obj);var given_success=callback.success;callback.success=function(o){var parser=(is_whm?_whm_parsers:_cpanel_parsers)[api_version];if(!parser){throw"No parser for API version "+api_version}YAHOO.lang.augmentObject(o,parser(o.responseText));if(!o.cpanel_status){if(callback.failure){callback.failure.call(this,o)}}else{if(given_success){given_success.call(this,o)}}};req_obj=_async_request("POST",construct_url_path(args_obj),callback,construct_api_query(args_obj));if(pp){req_obj.progress_panel=pp}return req_obj};var construct_url_path=function(args_obj){var is_whm=_find_is_whm(args_obj);var api_version=find_api_version(args_obj);var url=CPANEL.security_token;if(is_whm){if(!args_obj.batch&&!args_obj.func){return}url+="/json-api/"+(args_obj.batch?"batch":encodeURIComponent(args_obj.func))}else{if(!args_obj.module||!args_obj.func){return}if(api_version===3){url+="/execute/"+encodeURIComponent(args_obj.module)+"/"+encodeURIComponent(args_obj.func)}else{url+="/json-api/cpanel"}}return url};var get_transaction_args=function(t_id){var args=_transaction_args[t_id];return args&&YAHOO.lang.augmentObject({},args)};var construct_api_query=function(args_obj){return CPANEL.util.make_query_string(translate_api_query(args_obj))};var translate_api_query=function(args_obj){var this_is_whm=CPANEL.is_whm();var api_version=find_api_version(args_obj);var api_call={};var s,cur_sort,f,cur_filter,prefix;if(args_obj.application==="whm"||this_is_whm){api_call["api.version"]=api_version;if("batch"in args_obj){var commands=args_obj.batch.map((function(cmd){var safe_cmd=Object.create(cmd);safe_cmd.version=api_version;var query=translate_api_query(safe_cmd);delete query["api.version"];query=CPANEL.util.make_query_string(query);return encodeURIComponent(safe_cmd.func)+(query&&"?"+query)}));api_call.command=commands;if(args_obj.batch_data){YAHOO.lang.augmentObject(api_call,args_obj.batch_data)}}else{if(args_obj.data){YAHOO.lang.augmentObject(api_call,args_obj.data)}if(args_obj.api_data){var sorts=args_obj.api_data.sort;var filters=args_obj.api_data.filter;var paginate=args_obj.api_data.paginate;var columns=args_obj.api_data.columns;var analytics=args_obj.api_data.analytics;if(sorts&&sorts.length){api_call["api.sort.enable"]=1;for(s=sorts.length-1;s>=0;s--){cur_sort=sorts[s];prefix="api.sort."+_make_whm_api_fieldspec_from_number(s);if(cur_sort instanceof Array){api_call[prefix+".method"]=cur_sort[1];cur_sort=cur_sort[0]}if(cur_sort.charAt(0)==="!"){api_call[prefix+".reverse"]=1;cur_sort=cur_sort.substr(1)}api_call[prefix+".field"]=cur_sort}}if(filters&&filters.length){api_call["api.filter.enable"]=1;api_call["api.filter.verbose"]=1;for(f=filters.length-1;f>=0;f--){cur_filter=filters[f];prefix="api.filter."+_make_whm_api_fieldspec_from_number(f);api_call[prefix+".field"]=cur_filter[0];api_call[prefix+".type"]=cur_filter[1];api_call[prefix+".arg0"]=cur_filter[2]}}if(paginate){api_call["api.chunk.enable"]=1;api_call["api.chunk.verbose"]=1;if("start"in paginate){api_call["api.chunk.start"]=paginate.start+1}if("size"in paginate){api_call["api.chunk.size"]=paginate.size}}if(columns){api_call["api.columns.enable"]=1;for(var c=0;c<columns.length;c++){api_call["api.columns."+_make_whm_api_fieldspec_from_number(c)]=columns[c]}}if(analytics){api_call["api.analytics"]=JSON.stringify(analytics)}}}}else if(api_version===2||api_version===3){var api_prefix;if(api_version===2){api_prefix="api2_";api_call.cpanel_jsonapi_apiversion=api_version;api_call.cpanel_jsonapi_module=args_obj.module;api_call.cpanel_jsonapi_func=args_obj.func}else{api_prefix="api."}if(args_obj.data){YAHOO.lang.augmentObject(api_call,args_obj.data)}if(args_obj.api_data){if(args_obj.api_data.sort){var sort_count=args_obj.api_data.sort.length;if(sort_count&&api_version===2){api_call.api2_sort=1}for(s=0;s<sort_count;s++){cur_sort=args_obj.api_data.sort[s];if(cur_sort instanceof Array){api_call[api_prefix+"sort_method_"+s]=cur_sort[1];cur_sort=cur_sort[0]}if(cur_sort.charAt(0)==="!"){api_call[api_prefix+"sort_reverse_"+s]=1;cur_sort=cur_sort.substr(1)}api_call[api_prefix+"sort_column_"+s]=cur_sort}}if(args_obj.api_data.filter){var filter_count=args_obj.api_data.filter.length;if(filter_count&&api_version===2){api_call.api2_filter=1}for(f=0;f<filter_count;f++){cur_filter=args_obj.api_data.filter[f];api_call[api_prefix+"filter_column_"+f]=cur_filter[0];api_call[api_prefix+"filter_type_"+f]=cur_filter[1];api_call[api_prefix+"filter_term_"+f]=cur_filter[2]}}if(args_obj.api_data.paginate){if(api_version===2){api_call.api2_paginate=1}if("start"in args_obj.api_data.paginate){api_call[api_prefix+"paginate_start"]=args_obj.api_data.paginate.start+1}if("size"in args_obj.api_data.paginate){api_call[api_prefix+"paginate_size"]=args_obj.api_data.paginate.size}}if(args_obj.api_data.columns){var columns_count=args_obj.api_data.columns.length;if(columns_count&&api_version===2){api_call.api2_columns=1}for(var col=0;col<columns_count;col++){api_call[api_prefix+"columns_"+col]=args_obj.api_data.columns[col]}}if(args_obj.api_data.analytics){api_call[api_prefix+"analytics"]=JSON.stringify(args_obj.api_data.analytics)}}}else if(api_version===1){api_call.cpanel_jsonapi_apiversion=1;api_call.cpanel_jsonapi_module=args_obj.module;api_call.cpanel_jsonapi_func=args_obj.func;if(args_obj.data){for(var d=0;d<args_obj.data.length;d++){api_call["arg-"+d]=args_obj.data[d]}}}return api_call};var _unknown_error_msg=function(){return LOCALE.maketext("An unknown error occurred.")};var _get_whm1_data=function(resp){var metadata=resp.metadata;var data_for_caller=resp.data;if(!metadata||!metadata.payload_is_literal||metadata.payload_is_literal==="0"){data_for_caller=reduce_whm1_list_data(data_for_caller)}if(metadata&&metadata.command==="batch"){return data_for_caller.map(parse_whm1_response)}return data_for_caller};var reduce_whm1_list_data=function(data){if(data&&typeof data==="object"&&!(data instanceof Array)){var keys=Object.keys(data);if(keys.length===1){var maybe_data=data[keys[0]];if(maybe_data&&maybe_data instanceof Array){data=maybe_data}}}return data};var _get_cpanel1_data=function(resp){try{return resp.data.result}catch(e){return}};var _get_cpanel2_data=function(resp){return resp.cpanelresult.data};var _get_uapi_data=function(resp){return resp.data};var find_cpanel1_status=function(resp){try{return!!Number(resp.event.result)}catch(e){return false}};var find_cpanel2_status=function(resp){try{return!resp.cpanelresult.error}catch(e){return false}};var find_whm1_status=function(resp){try{return resp.metadata.result==1}catch(e){}return false};var find_uapi_status=function(resp){try{return resp.status==1}catch(e){}return false};var _message_label_conversion=[{server:"warnings",client:"warn"},{server:"messages",client:"info"}];var _normalize_whm1_messages=function(resp){var messages=[];var output=resp.metadata.output;if(output){_message_label_conversion.forEach((function(xform){var current_msgs=output[xform.server];if(current_msgs){if(typeof current_msgs==="string"){current_msgs=current_msgs.split(/\n/)}if(typeof current_msgs==="object"&&current_msgs instanceof Array){current_msgs.forEach((function(m){messages.push({level:xform.client,content:String(m)})}))}else{throw xform.server+" is a "+typeof current_msgs}}}))}return messages};var find_whm1_messages=function(resp){if(!resp||!resp.metadata){return[{level:"error",content:_unknown_error_msg()}]}var msgs=_normalize_whm1_messages(resp);if(String(resp.metadata.result)!=="1"){msgs.unshift({level:"error",content:resp.metadata.reason||_unknown_error_msg()})}return msgs};var find_cpanel1_messages=function(resp){if(!resp){return[{level:"error",content:_unknown_error_msg()}]}if("error"in resp){var err=resp.error;return[{level:"error",content:err||_unknown_error_msg()}]}return[]};var find_cpanel2_messages=function(resp){if(!resp||!resp.cpanelresult){return[{level:"error",content:_unknown_error_msg()}]}if("error"in resp.cpanelresult){var err=resp.cpanelresult.error;return[{level:"error",content:err||_unknown_error_msg()}]}return[]};var find_uapi_messages=function(resp){var messages=[];if(!resp||typeof resp!=="object"){messages.push({level:"error",content:_unknown_error_msg()})}else{if(resp.errors){resp.errors.forEach((function(m){messages.push({level:"error",content:String(m)})}))}if(resp.messages){resp.messages.forEach((function(m){messages.push({level:"info",content:String(m)})}))}}return messages};var _parse_response=function(status_finder,message_finder,data_getter,resp){var data=null,resp_status=false,err=null,messages=null;if(typeof resp==="string"){try{resp=YAHOO.lang.JSON.parse(resp)}catch(e){try{window.console.warn(resp,e)}catch(ee){}err=LOCALE.maketext("The API response could not be parsed.");resp=null}}if(!err){try{data=data_getter(resp);if(data===undefined){data=null}}catch(e){}messages=message_finder(resp);resp_status=status_finder(resp);var errors=messages.filter((function(m){return m.level==="error"}));if(errors&&errors.length){err=errors[0].content}}return{cpanel_status:resp_status,cpanel_raw:resp,cpanel_data:data,cpanel_error:err,cpanel_messages:messages}};var parse_uapi_response=function(resp){return _parse_response(find_uapi_status,find_uapi_messages,_get_uapi_data,resp)};var parse_cpanel1_response=function(resp){return _parse_response(find_cpanel1_status,find_cpanel1_messages,_get_cpanel1_data,resp)};var parse_cpanel2_response=function(resp){return _parse_response(find_cpanel2_status,find_cpanel2_messages,_get_cpanel2_data,resp)};var parse_whm1_response=function(resp){return _parse_response(find_whm1_status,find_whm1_messages,_get_whm1_data,resp)};var _cpanel_parsers={1:parse_cpanel1_response,2:parse_cpanel2_response,3:parse_uapi_response};var _whm_parsers={1:parse_whm1_response};YAHOO.lang.augmentObject(api,{find_cpanel2_status:find_cpanel2_status,find_cpanel2_messages:find_cpanel2_messages,find_whm1_status:find_whm1_status,find_whm1_messages:find_whm1_messages,find_uapi_status:find_uapi_status,find_uapi_messages:find_uapi_messages,reduce_whm1_list_data:reduce_whm1_list_data,parse_whm1_response:parse_whm1_response,parse_cpanel1_response:parse_cpanel1_response,parse_cpanel2_response:parse_cpanel2_response,parse_uapi_response:parse_uapi_response,construct_query:construct_api_query,construct_url_path:construct_url_path,get_transaction_args:get_transaction_args,find_api_version:find_api_version});CPANEL.api=api})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including color.js!")}else{(function(){var _hue_2_rgb=function(v1,v2,vH){if(vH<0){vH+=1}if(vH>1){vH-=1}if(6*vH<1){return v1+(v2-v1)*6*vH}if(2*vH<1){return v2}if(3*vH<2){return v1+(v2-v1)*(2/3-vH)*6}return v1};CPANEL.color={hsl2rgb:function(h,s,l){var r,g,b,var_1,var_2;if(s==0){r=l*255;g=l*255;b=l*255}else{if(l<.5){var_2=l*(1+s)}else{var_2=l+s-s*l}var_1=2*l-var_2;r=255*_hue_2_rgb(var_1,var_2,h+1/3);g=255*_hue_2_rgb(var_1,var_2,h);b=255*_hue_2_rgb(var_1,var_2,h-1/3)}return[r,g,b]}}})()}(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=window.DOM;var EVENT=window.EVENT;var document=window.document;var CPANEL=window.CPANEL;CPANEL.namespace("dom");var _ARROW_KEY_CODES={37:1,38:1,39:1,40:1};var _do_blur_then_focus=function(){this.blur();this.focus()};var dummy_div;YAHOO.lang.augmentObject(CPANEL.dom,{has_oninput:parseInt(YAHOO.env.ua.ie,10)!==9&&"oninput"in document.createElement("input"),get_content_region:function(el){el=DOM.get(el);var padding_top=parseFloat(DOM.getStyle(el,"paddingTop"))||0;var padding_bottom=parseFloat(DOM.getStyle(el,"paddingBottom"))||0;var padding_left=parseFloat(DOM.getStyle(el,"paddingLeft"))||0;var padding_right=parseFloat(DOM.getStyle(el,"paddingRight"))||0;var border_left=parseFloat(DOM.getStyle(el,"borderLeftWidth"))||0;var border_top=parseFloat(DOM.getStyle(el,"borderTopWidth"))||0;var xy=DOM.getXY(el);var top=xy[1]+border_top+padding_top;var left=xy[0]+border_left+padding_left;var bottom=top+el.clientHeight-padding_top-padding_bottom;var right=left+el.clientWidth-padding_left-padding_right;var region=new YAHOO.util.Region(top,right,bottom,left);region.outer_xy=xy;region.padding={top:padding_top,right:padding_right,bottom:padding_bottom,left:padding_left};region.border={top:border_top,left:border_left};return region},get_content_height:function(el){el=DOM.get(el);var dom=parseFloat(DOM.getStyle(el,"height"));if(!isNaN(dom)){return dom}var padding_top=parseFloat(DOM.getStyle(el,"paddingTop"))||0;var padding_bottom=parseFloat(DOM.getStyle(el,"paddingBottom"))||0;var client_height=el.clientHeight;if(client_height){return client_height-padding_top-padding_bottom}var border_top=parseFloat(DOM.getStyle(el,"borderTopWidth"))||0;var border_bottom=parseFloat(DOM.getStyle(el,"borderBottomWidth"))||0;return el.offsetHeight-padding_top-padding_bottom-border_top-border_bottom},get_content_width:function(el){el=DOM.get(el);var dom=parseFloat(DOM.getStyle(el,"width"));if(!isNaN(dom)){return dom}var padding_left=parseFloat(DOM.getStyle(el,"paddingLeft"))||0;var padding_right=parseFloat(DOM.getStyle(el,"paddingRight"))||0;var client_width=el.clientWidth;if(client_width){return client_width-padding_left-padding_right}var border_left=parseFloat(DOM.getStyle(el,"borderLeftWidth"))||0;var border_right=parseFloat(DOM.getStyle(el,"borderRightWidth"))||0;return el.offsetWidth-padding_left-padding_right-border_left-border_right},get_viewport_region:function(){var vp_width=DOM.getViewportWidth();var vp_height=DOM.getViewportHeight();var scroll_x=DOM.getDocumentScrollLeft();var scroll_y=DOM.getDocumentScrollTop();return new YAHOO.util.Region(scroll_y,scroll_x+vp_width,scroll_y+vp_height,scroll_x)},toggle_class:function(el,the_class){el=DOM.get(el);var pattern=new RegExp("\\b"+the_class.regexp_encode()+"\\b");if(el.className.search(pattern)===-1){DOM.addClass(el,the_class);return the_class}else{DOM.removeClass(el,the_class)}},create_from_markup:function(markup){if(!dummy_div){dummy_div=document.createElement("div")}dummy_div.innerHTML=markup;return CPANEL.Y(dummy_div).all("> *")},normalize_select_arrows:function(el){EVENT.on(el,"keydown",(function(e){if(e.keyCode in _ARROW_KEY_CODES){window.setTimeout(_do_blur_then_focus.bind(this),1)}}))},set_form_el_value:function(form,el,val){if(arguments.length===2){val=el;el=form;form=null}if(typeof el==="string"){var element=null;if(form){form=DOM.get(form);if(form){element=form[el]}}if(!element){element=DOM.get(el)}el=element}var opts=el.options;if(opts){for(var o=opts.length-1;o>=0;o--){if(opts[o].value===val){el.selectedIndex=o;return true}}}else if("length"in el){for(var e=el.length-1;e>=0;e--){if(el[e].value===val){el[e].checked=true;return true}}}else if("value"in el){el.value=val;return true}return false},show:function(el,display_type){display_type=display_type||"";DOM.setStyle(el,"display",display_type)},hide:function(el){DOM.setStyle(el,"display","none")},isVisible:function(el){return DOM.getStyle(el,"display")!=="none"},isHidden:function(el){return DOM.getStyle(el,"display")==="none"},isRtl:function(el){if(!el){if(document){return document.documentElement.dir==="rtl"}}else{el=DOM.get(el);if(el){return el.dir==="rtl"}}return false}});CPANEL.dom.get_inner_region=CPANEL.dom.get_content_region})(window);if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including dragdrop.js!")}else{(function(){var DDM=YAHOO.util.DragDropMgr;var ddtarget_prototype=YAHOO.util.DDTarget.prototype;var get=DOM.get;var get_next_sibling=DOM.getNextSibling;var get_xy=DOM.getXY;var set_xy=DOM.setXY;var get_style=DOM.getStyle;var get_content_height=CPANEL.dom.get_content_height;var ease_out=YAHOO.util.Easing.easeOut;var DDItem=function(id,sGroup,config){DDItem.superclass.constructor.apply(this,arguments);if(!config){return}if("drag_region"in config){var region=config.drag_region;var el=this.getEl();var xy=get_xy(el);if(region.width){var width=el.offsetWidth;var el_left=xy[0];var left=el_left-region.left;var right=region.right-el_left-width;this.setXConstraint(left,right)}if(region.height){var height=el.offsetHeight;var el_top=xy[1];var top=el_top-region.top;var bottom=region.bottom-el_top-height;this.setYConstraint(top,bottom)}}if("placeholder"in config){var new_placeholder=get(config.placeholder);if(!new_placeholder&&typeof config.placeholder==="string"){new_placeholder=document.createElement("div");new_placeholder.id=config.placeholder}var _placeholder_style=new_placeholder.style;this._placeholder=new_placeholder;this._placeholder_style=_placeholder_style;_placeholder_style.position="absolute";_placeholder_style.visibility="hidden";document.body.appendChild(new_placeholder);this.constructor.prototype._placeholder_hidden=true}if("animation"in config){this._animation=config.animation}if(this._animation){if("animation_proxy_class"in config){this._animation_proxy_class=config.animation_proxy_class}}};YAHOO.extend(DDItem,YAHOO.util.DDProxy,{_going_up:null,_last_y:null,_animation:true,_animation_proxy_class:"_cp_animation_proxy",_sync_placeholder:function(){var placeholder=this._placeholder;var srcEl=this.getEl();if(!this._placeholder_hidden&&this._animation){var motion=new YAHOO.util.Motion(placeholder,{points:{to:get_xy(srcEl)}},.2);motion.animate()}else{set_xy(placeholder,get_xy(srcEl));this._placeholder_initialized=true}if(this._placeholder_hidden){var _style=this._placeholder_style;copy_size(srcEl,placeholder,_style);_style.visibility="";this._placeholder_hidden=false}},createFrame:function(){var proxy=this.getDragEl();if(!proxy){proxy=document.createElement("div");proxy.id=this.dragElId;proxy.style.position="absolute";proxy.style.zIndex="999";document.body.insertBefore(proxy,document.body.firstChild)}},startDrag:function(x,y){var dragEl=this.getDragEl();var clickEl=this.getEl();dragEl.innerHTML=clickEl.innerHTML;clickEl.style.visibility="hidden";if("_placeholder"in this){this._sync_placeholder()}},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();var proxy_style=proxy.style;proxy_style.visibility="";var a=new YAHOO.util.Motion(proxy,{points:{to:get_xy(srcEl)}},.2,ease_out);var that=this;a.onComplete.subscribe((function(){proxy_style.visibility="hidden";srcEl.style.visibility="";if("_placeholder"in that){that._placeholder_style.visibility="hidden";that._placeholder_hidden=true}}));a.animate()},onDrag:function(e){var y=EVENT.getPageY(e);var last_y=this._last_y;if(y<last_y){this._going_up=true}else if(y>last_y){this._going_up=false}else{this._going_up=null}this._last_y=y},onDragEnter:function(e,id){if(this.parent_id===null){var srcEl=this.getEl();var destEl=get(id);this.parent_id=id;if(this.last_parent!==id){destEl.appendChild(srcEl)}if("placeholder"in this){this._sync_placeholder()}}},onDragOut:function(e,id){if(this.getEl().parentNode===get(id)){this.last_parent=id;this.parent_id=null}},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=get(id);var going_up=this._going_up;if(going_up===null){return}var is_container=ddtarget_prototype.isPrototypeOf(DDM.getDDById(id));if(is_container){return}var parent_el=destEl.parentNode;var next_after_dest=get_next_sibling(destEl);var dest_then_src=next_after_dest===srcEl;if(!going_up&&dest_then_src){return}if(this._animation){var src_then_dest=get_next_sibling(srcEl)===destEl;if(going_up&&src_then_dest){return}if(src_then_dest||dest_then_src){dp_parent=document.body;var dest_proxy=document.createElement("div");dest_proxy.className=this._animation_proxy_class;var dp_style=dest_proxy.style;dp_style.position="absolute";dp_style.display="none";dest_proxy.innerHTML=destEl.innerHTML;copy_size(destEl,dest_proxy,dp_style);dp_parent.appendChild(dest_proxy);var dest_proxy_motion_destination=get_xy(srcEl);var height_difference=get_content_height(dest_proxy)-get_content_height(srcEl);if(going_up){dest_proxy_motion_destination[1]-=height_difference}var attrs={points:{from:get_xy(destEl),to:dest_proxy_motion_destination}};var anim=new YAHOO.util.Motion(dest_proxy,attrs,.25);var de_style=destEl.style;anim.onComplete.subscribe((function(){de_style.visibility="";dp_parent.removeChild(dest_proxy)}));dp_style.display="";de_style.visibility="hidden";anim.animate()}}if(going_up){parent_el.insertBefore(srcEl,destEl)}else{parent_el.insertBefore(srcEl,next_after_dest)}if("_placeholder"in this){this._sync_placeholder()}DDM.refreshCache()}});var copy_size=function(src,dest,dest_style){var br=parseFloat(get_style(dest,"border-right-width"))||0;var bl=parseFloat(get_style(dest,"border-left-width"))||0;var newWidth=Math.max(0,src.offsetWidth-br-bl);var bt=parseFloat(get_style(dest,"border-top-width"))||0;var bb=parseFloat(get_style(dest,"border-bottom-width"))||0;var newHeight=Math.max(0,src.offsetHeight-bt-bb);dest_style.width=newWidth+"px";dest_style.height=newHeight+"px"};CPANEL.dragdrop={containers:function(containers,group,config){if(!(containers instanceof Array)){containers=[containers]}var container_objects=[];var drag_item_objects=[];var item_constructor=config&&config.item_constructor||DDItem;var containers_length=containers.length;for(var c=0;c<containers_length;c++){var cur_container=get(containers[c]);container_objects.push(new YAHOO.util.DDTarget(cur_container,group,config));var cur_contents=cur_container.children;var cur_contents_length=cur_contents.length;for(var i=0;i<cur_contents_length;i++){drag_item_objects.push(new item_constructor(cur_contents[i],group,config))}}return{containers:container_objects,items:drag_item_objects}},DDItem:DDItem}})()}(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=YAHOO.util.Dom;var EVENT=window.EVENT;var L=YAHOO.lang;if(YAHOO.lang.substitute("{a} {b}",{a:"1",b:"{"})!=="1 {"){YAHOO.lang.substitute=function(s,o,f){var i,j,k,key,v,meta,saved=[],token,DUMP="dump",SPACE=" ",LBRACE="{",RBRACE="}",dump,objstr;for(;;){i=i?s.lastIndexOf(LBRACE,i-1):s.lastIndexOf(LBRACE);if(i<0){break}j=s.indexOf(RBRACE,i);if(i+1>j){break}token=s.substring(i+1,j);key=token;meta=null;k=key.indexOf(SPACE);if(k>-1){meta=key.substring(k+1);key=key.substring(0,k)}v=f?f(key,v,meta):o[key];if(L.isObject(v)){if(L.isArray(v)){v=L.dump(v,parseInt(meta,10))}else{meta=meta||"";dump=meta.indexOf(DUMP);if(dump>-1){meta=meta.substring(4)}objstr=v.toString();if(objstr===OBJECT_TOSTRING||dump>-1){v=L.dump(v,parseInt(meta,10))}else{v=objstr}}}else if(!L.isString(v)&&!L.isNumber(v)){continue}s=s.substring(0,i)+v+s.substring(j+1)}return s}}if(YAHOO.widget.Panel){var panel_proto=YAHOO.widget.Panel.prototype;if(!panel_proto.focusFirst._2529256_fixed){["Panel","Dialog"].forEach((function(module){var _focus_first=YAHOO.widget[module].prototype.focusFirst;YAHOO.widget[module].prototype.focusFirst=function(){var focused_el=_focus_first.apply(this,arguments)&&document.activeElement;if(focused_el&&(""+focused_el.type).toLowerCase()==="radio"&&!focused_el.checked){var els=this.focusableElements;var i=els&&els.indexOf(focused_el);if(i!==-1){i++;var cur_el=els[i];while(cur_el){if(!cur_el.disabled&&((""+cur_el.type).toLowerCase()!=="radio"||cur_el.checked)){break}i++;cur_el=els[i]}if(cur_el&&cur_el.focus){cur_el.focus();focused_el=cur_el}}}return!!focused_el};YAHOO.widget[module].prototype.focusFirst._2529256_fixed=true}))}var _set_first_last_focusable=panel_proto.setFirstLastFocusable;var catcher_html="<input style='position:absolute;top:1px;outline:0;margin:0;border:0;padding:0;height:1px;width:1px;z-index:-1' />";var _catcher_div=document.createElement("div");_catcher_div.innerHTML=catcher_html;var catcher_prototype=_catcher_div.firstChild;DOM.setStyle(catcher_prototype,"opacity",0);panel_proto.setFirstLastFocusable=function(){_set_first_last_focusable.apply(this,arguments);if(this.firstElement&&!this._first_focusable_catcher){var first_catcher=catcher_prototype.cloneNode(false);YAHOO.util.Event.on(first_catcher,"focus",(function(){first_catcher.blur();this.focusLast()}),this,true);this.innerElement.insertBefore(first_catcher,this.innerElement.firstChild);this._first_focusable_catcher=first_catcher;var last_catcher=catcher_prototype.cloneNode(false);YAHOO.util.Event.on(last_catcher,"focus",(function(){last_catcher.blur();this.focusFirst()}),this,true);this.innerElement.appendChild(last_catcher);this._last_focusable_catcher=last_catcher}};var _get_focusable_elements=panel_proto.getFocusableElements;panel_proto.getFocusableElements=function(){var els=_get_focusable_elements.apply(this,arguments);var len=els.length;for(var i=0;i<len;i++){if(DOM.getStyle(els[i],"display")==="none"){els.splice(i,1);i--}}if(els.length){if(this._first_focusable_catcher){els.shift()}if(this._last_focusable_catcher){els.pop()}}return els};if(document.documentElement.dir==="rtl"){var rtl_createHidden=panel_proto._createHiddenFocusElement;panel_proto._createHiddenFocusElement=function(){if(typeof this.innerElement.focus!=="function"){rtl_createHidden.apply(this,arguments);this._modalFocus.style.right=this._modalFocus.style.left;this._modalFocus.style.left=""}}}}if(document.documentElement.dir==="rtl"){EVENT.onDOMReady((function(){if("AutoComplete"in YAHOO.widget){var _do_before_expand=YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer;YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(){var xpos=DOM.getX(this._elTextbox);var containerwidth=this._elContainer.offsetWidth;if(containerwidth){xpos-=containerwidth-DOM.get(this._elTextbox).offsetWidth;DOM.setX(this._elContainer,xpos)}return _do_before_expand.apply(this,arguments)}}}))}if(YAHOO.widget&&YAHOO.widget.Overlay){var ovl_destroy=YAHOO.widget.Overlay.prototype.destroy;YAHOO.widget.Overlay.prototype.destroy=function destroy(){var effects=this._cachedEffects;if(effects&&effects.length){for(var e=0;e<effects.length;e++){effects[e]._stopAnims(true)}}return ovl_destroy.apply(this,arguments)}}})(window);(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory)}else if(typeof exports==="object"){module.exports=factory()}else{if(root.CPANEL){root.CPANEL.inet6=factory()}else{root.inet6=factory()}}})(this,(function(){"use strict";var inet={};var ipv4Regex=/^\d{1,3}(?:\.\d{1,3}){3}$/;var ipv6PartRegex=/^[0-9a-f]{1,4}$/i;inet.Address=function(address){if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}var parts=address.split(".");if(parts.length>4){throw"Invalid IPv4 address: Too many components"}if(parts.length<4){throw"Invalid IPv4 address: Too few components"}for(var i=0,len=parts.length;i<len;i++){var part=parts[i];if(part>255||part<0){throw"Invalid IPv4 address: Invalid component"}this.push(part)}};inet.Address.prototype=[];inet.Address.prototype.toString=function(){return this.join(".")};var inet6={};inet6.Address=function(address){var self=this;function pad(count){for(var i=0;i<count;i++){self.push(0)}}if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}var parts=address.split(":");var expected=8;var minimum=3;var count=parts.length;var length=parts.length;var padded=false;var i,part,value,first,last;var hasv4Address=false;if(length<minimum){throw"Invalid IPv6 address: Too few components"}if(length>3&&parts[0]===""&&parts[1]===""&&parts[length-1]===""&&parts[length-2]===""){throw"Invalid IPv6 address: Too many colons"}if(parts[0]===""&&parts[1]!==""){throw"Invalid IPv6 address: Missing beginning component"}if(parts[length-1]===""&&parts[length-2]!==""){throw"Invalid IPv6 address: Missing end component"}if(parts[0]===""&&parts[1]===""){parts.shift();length=parts.length;count=parts.length}if(parts[parts.length-1]===""&&parts[parts.length-2]===""){parts.pop();length=parts.length;count=parts.length}if(length===1&&parts[0]===""){pad(8);return}var emptyMiddle=0;for(i=0;i<length;i++){part=parts[i].trim();if(ipv4Regex.test(part)){count++}}for(i=0;i<length;i++){part=parts[i].trim();value=null;first=i===0?true:false;last=i===length-1?true:false;if(ipv4Regex.test(part)){if(i!==length-1){throw"Invalid IPv6 address: Embedded IPv4 address not at end"}for(var n=4;n<expected-count;n++){this.shift()}var inet4address=new inet.Address(part);this.push(inet4address[0]<<8|inet4address[1]);value=inet4address[2]<<8|inet4address[3];hasv4Address=true}else if(ipv6PartRegex.test(part)){value=parseInt(part,16)}else if(part===""){emptyMiddle++;if(!padded){pad(expected-count);padded=true}value=0}else{throw"Invalid IPv6 address: Invalid component "+part}this.push(value)}if(emptyMiddle>1){throw"Invalid IPv6 address: Too many colons"}if(this.length<expected){throw"Invalid IPv6 address: Too few components"}if(this.length>expected){throw"Invalid IPv6 address: Too many components"}if(hasv4Address){for(i=0;i<5;i++){if(this[i]!==0){throw"Invalid IPv4 compatible address"}}if(this[5]!==65535){throw"Invalid IPv6 compatible address"}}};inet6.Address.prototype=[];inet6.Address.prototype.toString_v4Compat=function(){var parts=[];parts.push((this[6]&65280)>>8);parts.push(this[6]&255);parts.push((this[7]&65280)>>8);parts.push(this[7]&255);return"::ffff:"+parts.join(".")};inet6.Address.prototype.isv4Compat=function(){for(var i=0;i<5;i++){if(this[i]!==0){return 0}}return this[5]===65535?true:false};inet6.Address.prototype.toString=function(){var ranges=[];var count=this.length;var last=null;var longest=null;var range=null;if(this.isv4Compat()){return this.toString_v4Compat()}for(var i=0;i<count;i++){var value=this[i];if(value!==0||value===0&&last!==0){ranges.push({value:value,first:i,last:i,longest:false})}range=ranges[ranges.length-1];range.last=i;if(longest===null){longest=range}var currentSize=range.last-range.first;var longestSize=longest.last-longest.first;if(value===0&&currentSize>longestSize){longest=range}last=value}var ret=[];var len=ranges.length;for(i=0;i<len;i++){range=ranges[i];if(range.value===0&&range===longest){if(i===0){ret.push("")}ret.push("");if(i===len-1){ret.push("")}}else{for(var n=range.first;n<=range.last;n++){ret.push(range.value.toString(16))}}}return ret.join(":")};inet6.isValid=function(address){try{this.parse(address);return true}catch(e){return false}};inet6.parse=function(address){if(address===void 0||Object.prototype.toString.call(address)!=="[object String]"){throw"Invalid input: Not a String"}return new this.Address(address)};inet6.formatForDisplay=function(address){var ret;try{var inet6=new this.Address(address);ret=inet6.toString()}catch(e){ret=address}return ret};return inet6}));
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */(function(global,factory){"use strict";if(typeof module==="object"&&typeof module.exports==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document")}return factory(w)}}else{factory(global)}})(typeof window!=="undefined"?window:this,(function(window,noGlobal){"use strict";var arr=[];var getProto=Object.getPrototypeOf;var slice=arr.slice;var flat=arr.flat?function(array){return arr.flat.call(array)}:function(array){return arr.concat.apply([],array)};var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var support={};var isFunction=function isFunction(obj){return typeof obj==="function"&&typeof obj.nodeType!=="number"&&typeof obj.item!=="function"};var isWindow=function isWindow(obj){return obj!=null&&obj===obj.window};var document=window.document;var preservedScriptAttributes={type:true,src:true,nonce:true,noModule:true};function DOMEval(code,node,doc){doc=doc||document;var i,val,script=doc.createElement("script");script.text=code;if(node){for(i in preservedScriptAttributes){val=node[i]||node.getAttribute&&node.getAttribute(i);if(val){script.setAttribute(i,val)}}}doc.head.appendChild(script).parentNode.removeChild(script)}function toType(obj){if(obj==null){return obj+""}return typeof obj==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":typeof obj}var version="3.6.0",jQuery=function(selector,context){return new jQuery.fn.init(selector,context)};jQuery.fn=jQuery.prototype={jquery:version,constructor:jQuery,length:0,toArray:function(){return slice.call(this)},get:function(num){if(num==null){return slice.call(this)}return num<0?this[num+this.length]:this[num]},pushStack:function(elems){var ret=jQuery.merge(this.constructor(),elems);ret.prevObject=this;return ret},each:function(callback){return jQuery.each(this,callback)},map:function(callback){return this.pushStack(jQuery.map(this,(function(elem,i){return callback.call(elem,i,elem)})))},slice:function(){return this.pushStack(slice.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(jQuery.grep(this,(function(_elem,i){return(i+1)%2})))},odd:function(){return this.pushStack(jQuery.grep(this,(function(_elem,i){return i%2})))},eq:function(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[])},end:function(){return this.prevObject||this.constructor()},push:push,sort:arr.sort,splice:arr.splice};jQuery.extend=jQuery.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++}if(typeof target!=="object"&&!isFunction(target)){target={}}if(i===length){target=this;i--}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){copy=options[name];if(name==="__proto__"||target===copy){continue}if(deep&&copy&&(jQuery.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))){src=target[name];if(copyIsArray&&!Array.isArray(src)){clone=[]}else if(!copyIsArray&&!jQuery.isPlainObject(src)){clone={}}else{clone=src}copyIsArray=false;target[name]=jQuery.extend(deep,clone,copy)}else if(copy!==undefined){target[name]=copy}}}}return target};jQuery.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:true,error:function(msg){throw new Error(msg)},noop:function(){},isPlainObject:function(obj){var proto,Ctor;if(!obj||toString.call(obj)!=="[object Object]"){return false}proto=getProto(obj);if(!proto){return true}Ctor=hasOwn.call(proto,"constructor")&&proto.constructor;return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString},isEmptyObject:function(obj){var name;for(name in obj){return false}return true},globalEval:function(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc)},each:function(obj,callback){var length,i=0;if(isArrayLike(obj)){length=obj.length;for(;i<length;i++){if(callback.call(obj[i],i,obj[i])===false){break}}}else{for(i in obj){if(callback.call(obj[i],i,obj[i])===false){break}}}return obj},makeArray:function(arr,results){var ret=results||[];if(arr!=null){if(isArrayLike(Object(arr))){jQuery.merge(ret,typeof arr==="string"?[arr]:arr)}else{push.call(ret,arr)}}return ret},inArray:function(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i)},merge:function(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j]}first.length=i;return first},grep:function(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i])}}return matches},map:function(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems)){length=elems.length;for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value)}}}return flat(ret)},guid:1,support:support});if(typeof Symbol==="function"){jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]}jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase()}));function isArrayLike(obj){var length=!!obj&&"length"in obj&&obj.length,type=toType(obj);if(isFunction(obj)||isWindow(obj)){return false}return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj}var Sizzle=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(window){var i,support,Expr,getText,isXML,tokenize,compile,select,outermostContext,sortInput,hasDuplicate,setDocument,document,docElem,documentIsHTML,rbuggyQSA,rbuggyMatches,matches,contains,expando="sizzle"+1*new Date,preferredDoc=window.document,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function(a,b){if(a===b){hasDuplicate=true}return 0},hasOwn={}.hasOwnProperty,arr=[],pop=arr.pop,pushNative=arr.push,push=arr.push,slice=arr.slice,indexOf=function(list,elem){var i=0,len=list.length;for(;i<len;i++){if(list[i]===elem){return i}}return-1},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|"+"ismap|loop|multiple|open|readonly|required|scoped",whitespace="[\\x20\\t\\r\\n\\f]",identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+".*"+")\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rtrim=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rcombinators=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rhtml=/HTML$/i,rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rnative=/^[^{]+\{\s*\[native \w/,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\([^\\r\\n\\f])","g"),funescape=function(escape,nonHex){var high="0x"+escape.slice(1)-65536;return nonHex?nonHex:high<0?String.fromCharCode(high+65536):String.fromCharCode(high>>10|55296,high&1023|56320)},rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch==="\0"){return"�"}return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "}return"\\"+ch},unloadHandler=function(){setDocument()},inDisabledFieldset=addCombinator((function(elem){return elem.disabled===true&&elem.nodeName.toLowerCase()==="fieldset"}),{dir:"parentNode",next:"legend"});try{push.apply(arr=slice.call(preferredDoc.childNodes),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType}catch(e){push={apply:arr.length?function(target,els){pushNative.apply(target,slice.call(els))}:function(target,els){var j=target.length,i=0;while(target[j++]=els[i++]){}target.length=j-1}}}function Sizzle(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;results=results||[];if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results}if(!seed){setDocument(context);context=context||document;if(documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if(m=match[1]){if(nodeType===9){if(elem=context.getElementById(m)){if(elem.id===m){results.push(elem);return results}}else{return results}}else{if(newContext&&(elem=newContext.getElementById(m))&&contains(context,elem)&&elem.id===m){results.push(elem);return results}}}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results}else if((m=match[3])&&support.getElementsByClassName&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results}}if(support.qsa&&!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))&&(nodeType!==1||context.nodeName.toLowerCase()!=="object")){newSelector=selector;newContext=context;if(nodeType===1&&(rdescend.test(selector)||rcombinators.test(selector))){newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;if(newContext!==context||!support.scope){if(nid=context.getAttribute("id")){nid=nid.replace(rcssescape,fcssescape)}else{context.setAttribute("id",nid=expando)}}groups=tokenize(selector);i=groups.length;while(i--){groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i])}newSelector=groups.join(",")}try{push.apply(results,newContext.querySelectorAll(newSelector));return results}catch(qsaError){nonnativeSelectorCache(selector,true)}finally{if(nid===expando){context.removeAttribute("id")}}}}}return select(selector.replace(rtrim,"$1"),context,results,seed)}function createCache(){var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift()]}return cache[key+" "]=value}return cache}function markFunction(fn){fn[expando]=true;return fn}function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el)}catch(e){return false}finally{if(el.parentNode){el.parentNode.removeChild(el)}el=null}}function addHandle(attrs,handler){var arr=attrs.split("|"),i=arr.length;while(i--){Expr.attrHandle[arr[i]]=handler}}function siblingCheck(a,b){var cur=b&&a,diff=cur&&a.nodeType===1&&b.nodeType===1&&a.sourceIndex-b.sourceIndex;if(diff){return diff}if(cur){while(cur=cur.nextSibling){if(cur===b){return-1}}}return a?1:-1}function createInputPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type===type}}function createButtonPseudo(type){return function(elem){var name=elem.nodeName.toLowerCase();return(name==="input"||name==="button")&&elem.type===type}}function createDisabledPseudo(disabled){return function(elem){if("form"in elem){if(elem.parentNode&&elem.disabled===false){if("label"in elem){if("label"in elem.parentNode){return elem.parentNode.disabled===disabled}else{return elem.disabled===disabled}}return elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled}return elem.disabled===disabled}else if("label"in elem){return elem.disabled===disabled}return false}}function createPositionalPseudo(fn){return markFunction((function(argument){argument=+argument;return markFunction((function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j])}}}))}))}function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context}support=Sizzle.support={};isXML=Sizzle.isXML=function(elem){var namespace=elem&&elem.namespaceURI,docElem=elem&&(elem.ownerDocument||elem).documentElement;return!rhtml.test(namespace||docElem&&docElem.nodeName||"HTML")};setDocument=Sizzle.setDocument=function(node){var hasCompare,subWindow,doc=node?node.ownerDocument||node:preferredDoc;if(doc==document||doc.nodeType!==9||!doc.documentElement){return document}document=doc;docElem=document.documentElement;documentIsHTML=!isXML(document);if(preferredDoc!=document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){if(subWindow.addEventListener){subWindow.addEventListener("unload",unloadHandler,false)}else if(subWindow.attachEvent){subWindow.attachEvent("onunload",unloadHandler)}}support.scope=assert((function(el){docElem.appendChild(el).appendChild(document.createElement("div"));return typeof el.querySelectorAll!=="undefined"&&!el.querySelectorAll(":scope fieldset div").length}));support.attributes=assert((function(el){el.className="i";return!el.getAttribute("className")}));support.getElementsByTagName=assert((function(el){el.appendChild(document.createComment(""));return!el.getElementsByTagName("*").length}));support.getElementsByClassName=rnative.test(document.getElementsByClassName);support.getById=assert((function(el){docElem.appendChild(el).id=expando;return!document.getElementsByName||!document.getElementsByName(expando).length}));if(support.getById){Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId}};Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[]}}}else{Expr.filter["ID"]=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId}};Expr.find["ID"]=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem]}elems=context.getElementsByName(id);i=0;while(elem=elems[i++]){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem]}}}return[]}}}Expr.find["TAG"]=support.getElementsByTagName?function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag)}else if(support.qsa){return context.querySelectorAll(tag)}}:function(tag,context){var elem,tmp=[],i=0,results=context.getElementsByTagName(tag);if(tag==="*"){while(elem=results[i++]){if(elem.nodeType===1){tmp.push(elem)}}return tmp}return results};Expr.find["CLASS"]=support.getElementsByClassName&&function(className,context){if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){return context.getElementsByClassName(className)}};rbuggyMatches=[];rbuggyQSA=[];if(support.qsa=rnative.test(document.querySelectorAll)){assert((function(el){var input;docElem.appendChild(el).innerHTML="<a id='"+expando+"'></a>"+"<select id='"+expando+"-\r\\' msallowcapture=''>"+"<option selected=''></option></select>";if(el.querySelectorAll("[msallowcapture^='']").length){rbuggyQSA.push("[*^$]="+whitespace+"*(?:''|\"\")")}if(!el.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")")}if(!el.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=")}input=document.createElement("input");input.setAttribute("name","");el.appendChild(input);if(!el.querySelectorAll("[name='']").length){rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+whitespace+"*(?:''|\"\")")}if(!el.querySelectorAll(":checked").length){rbuggyQSA.push(":checked")}if(!el.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]")}el.querySelectorAll("\\\f");rbuggyQSA.push("[\\r\\n\\f]")}));assert((function(el){el.innerHTML="<a href='' disabled='disabled'></a>"+"<select disabled='disabled'><option/></select>";var input=document.createElement("input");input.setAttribute("type","hidden");el.appendChild(input).setAttribute("name","D");if(el.querySelectorAll("[name=d]").length){rbuggyQSA.push("name"+whitespace+"*[*^$|!~]?=")}if(el.querySelectorAll(":enabled").length!==2){rbuggyQSA.push(":enabled",":disabled")}docElem.appendChild(el).disabled=true;if(el.querySelectorAll(":disabled").length!==2){rbuggyQSA.push(":enabled",":disabled")}el.querySelectorAll("*,:x");rbuggyQSA.push(",.*:")}))}if(support.matchesSelector=rnative.test(matches=docElem.matches||docElem.webkitMatchesSelector||docElem.mozMatchesSelector||docElem.oMatchesSelector||docElem.msMatchesSelector)){assert((function(el){support.disconnectedMatch=matches.call(el,"*");matches.call(el,"[s!='']:x");rbuggyMatches.push("!=",pseudos)}))}rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));rbuggyMatches=rbuggyMatches.length&&new RegExp(rbuggyMatches.join("|"));hasCompare=rnative.test(docElem.compareDocumentPosition);contains=hasCompare||rnative.test(docElem.contains)?function(a,b){var adown=a.nodeType===9?a.documentElement:a,bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(adown.contains?adown.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return true}}}return false};sortOrder=hasCompare?function(a,b){if(a===b){hasDuplicate=true;return 0}var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare}compare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){if(a==document||a.ownerDocument==preferredDoc&&contains(preferredDoc,a)){return-1}if(b==document||b.ownerDocument==preferredDoc&&contains(preferredDoc,b)){return 1}return sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0}return compare&4?-1:1}:function(a,b){if(a===b){hasDuplicate=true;return 0}var cur,i=0,aup=a.parentNode,bup=b.parentNode,ap=[a],bp=[b];if(!aup||!bup){return a==document?-1:b==document?1:aup?-1:bup?1:sortInput?indexOf(sortInput,a)-indexOf(sortInput,b):0}else if(aup===bup){return siblingCheck(a,b)}cur=a;while(cur=cur.parentNode){ap.unshift(cur)}cur=b;while(cur=cur.parentNode){bp.unshift(cur)}while(ap[i]===bp[i]){i++}return i?siblingCheck(ap[i],bp[i]):ap[i]==preferredDoc?-1:bp[i]==preferredDoc?1:0};return document};Sizzle.matches=function(expr,elements){return Sizzle(expr,null,null,elements)};Sizzle.matchesSelector=function(elem,expr){setDocument(elem);if(support.matchesSelector&&documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyMatches||!rbuggyMatches.test(expr))&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret}}catch(e){nonnativeSelectorCache(expr,true)}}return Sizzle(expr,document,null,[elem]).length>0};Sizzle.contains=function(context,elem){if((context.ownerDocument||context)!=document){setDocument(context)}return contains(context,elem)};Sizzle.attr=function(elem,name){if((elem.ownerDocument||elem)!=document){setDocument(elem)}var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;return val!==undefined?val:support.attributes||!documentIsHTML?elem.getAttribute(name):(val=elem.getAttributeNode(name))&&val.specified?val.value:null};Sizzle.escape=function(sel){return(sel+"").replace(rcssescape,fcssescape)};Sizzle.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg)};Sizzle.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.detectDuplicates;sortInput=!support.sortStable&&results.slice(0);results.sort(sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i)}}while(j--){results.splice(duplicates[j],1)}}sortInput=null;return results};getText=Sizzle.getText=function(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){while(node=elem[i++]){ret+=getText(node)}}else if(nodeType===1||nodeType===9||nodeType===11){if(typeof elem.textContent==="string"){return elem.textContent}else{for(elem=elem.firstChild;elem;elem=elem.nextSibling){ret+=getText(elem)}}}else if(nodeType===3||nodeType===4){return elem.nodeValue}return ret};Expr=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" "}return match.slice(0,4)},CHILD:function(match){match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){if(!match[3]){Sizzle.error(match[0])}match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd")}else if(match[3]){Sizzle.error(match[0])}return match},PSEUDO:function(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr["CHILD"].test(match[0])){return null}if(match[3]){match[2]=match[4]||match[5]||""}else if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess)}return match.slice(0,3)}},filter:{TAG:function(nodeNameSelector){var nodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true}:function(elem){return elem.nodeName&&elem.nodeName.toLowerCase()===nodeName}},CLASS:function(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,(function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"")}))},ATTR:function(name,operator,check){return function(elem){var result=Sizzle.attr(elem,name);if(result==null){return operator==="!="}if(!operator){return true}result+="";return operator==="="?result===check:operator==="!="?result!==check:operator==="^="?check&&result.indexOf(check)===0:operator==="*="?check&&result.indexOf(check)>-1:operator==="$="?check&&result.slice(-check.length)===check:operator==="~="?(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1:operator==="|="?result===check||result.slice(0,check.length+1)===check+"-":false}},CHILD:function(type,what,_argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return!!elem.parentNode}:function(elem,_context,xml){var cache,uniqueCache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=false;if(parent){if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?node.nodeName.toLowerCase()===name:node.nodeType===1){return false}}start=dir=type==="only"&&!start&&"nextSibling"}return true}start=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){node=parent;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if(node.nodeType===1&&++diff&&node===elem){uniqueCache[type]=[dirruns,nodeIndex,diff];break}}}else{if(useCache){node=elem;outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});cache=uniqueCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex}if(diff===false){while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?node.nodeName.toLowerCase()===name:node.nodeType===1)&&++diff){if(useCache){outerCache=node[expando]||(node[expando]={});uniqueCache=outerCache[node.uniqueID]||(outerCache[node.uniqueID]={});uniqueCache[type]=[dirruns,diff]}if(node===elem){break}}}}}diff-=last;return diff===first||diff%first===0&&diff/first>=0}}},PSEUDO:function(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||Sizzle.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument)}if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction((function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i])}})):function(elem){return fn(elem,0,args)}}return fn}},pseudos:{not:markFunction((function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrim,"$1"));return matcher[expando]?markFunction((function(seed,matches,_context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem)}}})):function(elem,_context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return!results.pop()}})),has:markFunction((function(selector){return function(elem){return Sizzle(selector,elem).length>0}})),contains:markFunction((function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||getText(elem)).indexOf(text)>-1}})),lang:markFunction((function(lang){if(!ridentifier.test(lang||"")){Sizzle.error("unsupported lang: "+lang)}lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0}}while((elem=elem.parentNode)&&elem.nodeType===1);return false}})),target:function(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id},root:function(elem){return elem===docElem},focus:function(elem){return elem===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(elem.type||elem.href||~elem.tabIndex)},enabled:createDisabledPseudo(false),disabled:createDisabledPseudo(true),checked:function(elem){var nodeName=elem.nodeName.toLowerCase();return nodeName==="input"&&!!elem.checked||nodeName==="option"&&!!elem.selected},selected:function(elem){if(elem.parentNode){elem.parentNode.selectedIndex}return elem.selected===true},empty:function(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false}}return true},parent:function(elem){return!Expr.pseudos["empty"](elem)},header:function(elem){return rheader.test(elem.nodeName)},input:function(elem){return rinputs.test(elem.nodeName)},button:function(elem){var name=elem.nodeName.toLowerCase();return name==="input"&&elem.type==="button"||name==="button"},text:function(elem){var attr;return elem.nodeName.toLowerCase()==="input"&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text")},first:createPositionalPseudo((function(){return[0]})),last:createPositionalPseudo((function(_matchIndexes,length){return[length-1]})),eq:createPositionalPseudo((function(_matchIndexes,length,argument){return[argument<0?argument+length:argument]})),even:createPositionalPseudo((function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes})),odd:createPositionalPseudo((function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i)}return matchIndexes})),lt:createPositionalPseudo((function(matchIndexes,length,argument){var i=argument<0?argument+length:argument>length?length:argument;for(;--i>=0;){matchIndexes.push(i)}return matchIndexes})),gt:createPositionalPseudo((function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i)}return matchIndexes}))}};Expr.pseudos["nth"]=Expr.pseudos["eq"];for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i)}for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i)}function setFilters(){}setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters;tokenize=Sizzle.tokenize=function(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0)}soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar}groups.push(tokens=[])}matched=false;if(match=rcombinators.exec(soFar)){matched=match.shift();tokens.push({value:matched,type:match[0].replace(rtrim," ")});soFar=soFar.slice(matched.length)}for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length)}}if(!matched){break}}return parseOnly?soFar.length:soFar?Sizzle.error(selector):tokenCache(selector,groups).slice(0)};function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value}return selector}function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&key==="parentNode",doneName=done++;return combinator.first?function(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml)}}return false}:function(elem,context,xml){var oldCache,uniqueCache,outerCache,newCache=[dirruns,doneName];if(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});uniqueCache=outerCache[elem.uniqueID]||(outerCache[elem.uniqueID]={});if(skip&&skip===elem.nodeName.toLowerCase()){elem=elem[dir]||elem}else if((oldCache=uniqueCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName){return newCache[2]=oldCache[2]}else{uniqueCache[key]=newCache;if(newCache[2]=matcher(elem,context,xml)){return true}}}}}return false}}function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false}}return true}:matchers[0]}function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){Sizzle(selector,contexts[i],results)}return results}function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i)}}}}return newUnmatched}function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter)}if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector)}return markFunction((function(seed,results,context,xml){var temp,i,elem,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems,matcherOut=matcher?postFinder||(seed?preFilter:preexisting||postFilter)?[]:results:matcherIn;if(matcher){matcher(matcherIn,matcherOut,context,xml)}if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem)}}}if(seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){temp.push(matcherIn[i]=elem)}}postFinder(null,matcherOut=[],temp,xml)}i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem)}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml)}else{push.apply(results,matcherOut)}}}))}function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator((function(elem){return elem===checkContext}),implicitRelative,true),matchAnyContext=addCombinator((function(elem){return indexOf(checkContext,elem)>-1}),implicitRelative,true),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!==outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)]}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);if(matcher[expando]){j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break}}return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrim,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens))}matchers.push(matcher)}}return elementMatcher(matchers)}function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find["TAG"]("*",outermost),dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||.1,len=elems.length;if(outermost){outermostContext=context==document||context||outermost}for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;if(!context&&elem.ownerDocument!=document){setDocument(elem);xml=!documentIsHTML}while(matcher=elementMatchers[j++]){if(matcher(elem,context||document,xml)){results.push(elem);break}}if(outermost){dirruns=dirrunsUnique}}if(bySet){if(elem=!matcher&&elem){matchedCount--}if(seed){unmatched.push(elem)}}}matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml)}if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results)}}}setMatched=condense(setMatched)}push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){Sizzle.uniqueSort(results)}}if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup}return unmatched};return bySet?markFunction(superMatcher):superMatcher}compile=Sizzle.compile=function(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){if(!match){match=tokenize(selector)}i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached)}else{elementMatchers.push(cached)}}cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));cached.selector=selector}return cached};select=Sizzle.select=function(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find["ID"](token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results}else if(compiled){context=context.parentNode}selector=selector.slice(tokens.shift().value.length)}i=matchExpr["needsContext"].test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[type=token.type]){break}if(find=Expr.find[type]){if(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results}break}}}}(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results};support.sortStable=expando.split("").sort(sortOrder).join("")===expando;support.detectDuplicates=!!hasDuplicate;setDocument();support.sortDetached=assert((function(el){return el.compareDocumentPosition(document.createElement("fieldset"))&1}));if(!assert((function(el){el.innerHTML="<a href='#'></a>";return el.firstChild.getAttribute("href")==="#"}))){addHandle("type|href|height|width",(function(elem,name,isXML){if(!isXML){return elem.getAttribute(name,name.toLowerCase()==="type"?1:2)}}))}if(!support.attributes||!assert((function(el){el.innerHTML="<input/>";el.firstChild.setAttribute("value","");return el.firstChild.getAttribute("value")===""}))){addHandle("value",(function(elem,_name,isXML){if(!isXML&&elem.nodeName.toLowerCase()==="input"){return elem.defaultValue}}))}if(!assert((function(el){return el.getAttribute("disabled")==null}))){addHandle(booleans,(function(elem,name,isXML){var val;if(!isXML){return elem[name]===true?name.toLowerCase():(val=elem.getAttributeNode(name))&&val.specified?val.value:null}}))}return Sizzle}(window);jQuery.find=Sizzle;jQuery.expr=Sizzle.selectors;jQuery.expr[":"]=jQuery.expr.pseudos;jQuery.uniqueSort=jQuery.unique=Sizzle.uniqueSort;jQuery.text=Sizzle.getText;jQuery.isXMLDoc=Sizzle.isXML;jQuery.contains=Sizzle.contains;jQuery.escapeSelector=Sizzle.escape;var dir=function(elem,dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&jQuery(elem).is(until)){break}matched.push(elem)}}return matched};var siblings=function(n,elem){var matched=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n)}}return matched};var rneedsContext=jQuery.expr.match.needsContext;function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase()}var rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){if(isFunction(qualifier)){return jQuery.grep(elements,(function(elem,i){return!!qualifier.call(elem,i,elem)!==not}))}if(qualifier.nodeType){return jQuery.grep(elements,(function(elem){return elem===qualifier!==not}))}if(typeof qualifier!=="string"){return jQuery.grep(elements,(function(elem){return indexOf.call(qualifier,elem)>-1!==not}))}return jQuery.filter(qualifier,elements,not)}jQuery.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")"}if(elems.length===1&&elem.nodeType===1){return jQuery.find.matchesSelector(elem,expr)?[elem]:[]}return jQuery.find.matches(expr,jQuery.grep(elems,(function(elem){return elem.nodeType===1})))};jQuery.fn.extend({find:function(selector){var i,ret,len=this.length,self=this;if(typeof selector!=="string"){return this.pushStack(jQuery(selector).filter((function(){for(i=0;i<len;i++){if(jQuery.contains(self[i],this)){return true}}})))}ret=this.pushStack([]);for(i=0;i<len;i++){jQuery.find(selector,self[i],ret)}return len>1?jQuery.uniqueSort(ret):ret},filter:function(selector){return this.pushStack(winnow(this,selector||[],false))},not:function(selector){return this.pushStack(winnow(this,selector||[],true))},is:function(selector){return!!winnow(this,typeof selector==="string"&&rneedsContext.test(selector)?jQuery(selector):selector||[],false).length}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,init=jQuery.fn.init=function(selector,context,root){var match,elem;if(!selector){return this}root=root||rootjQuery;if(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){match=[null,selector,null]}else{match=rquickExpr.exec(selector)}if(match&&(match[1]||!context)){if(match[1]){context=context instanceof jQuery?context[0]:context;jQuery.merge(this,jQuery.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){for(match in context){if(isFunction(this[match])){this[match](context[match])}else{this.attr(match,context[match])}}}return this}else{elem=document.getElementById(match[2]);if(elem){this[0]=elem;this.length=1}return this}}else if(!context||context.jquery){return(context||root).find(selector)}else{return this.constructor(context).find(selector)}}else if(selector.nodeType){this[0]=selector;this.length=1;return this}else if(isFunction(selector)){return root.ready!==undefined?root.ready(selector):selector(jQuery)}return jQuery.makeArray(selector,this)};init.prototype=jQuery.fn;rootjQuery=jQuery(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:true,contents:true,next:true,prev:true};jQuery.fn.extend({has:function(target){var targets=jQuery(target,this),l=targets.length;return this.filter((function(){var i=0;for(;i<l;i++){if(jQuery.contains(this,targets[i])){return true}}}))},closest:function(selectors,context){var cur,i=0,l=this.length,matched=[],targets=typeof selectors!=="string"&&jQuery(selectors);if(!rneedsContext.test(selectors)){for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){if(cur.nodeType<11&&(targets?targets.index(cur)>-1:cur.nodeType===1&&jQuery.find.matchesSelector(cur,selectors))){matched.push(cur);break}}}}return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched)},index:function(elem){if(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1}if(typeof elem==="string"){return indexOf.call(jQuery(elem),this[0])}return indexOf.call(this,elem.jquery?elem[0]:elem)},add:function(selector,context){return this.pushStack(jQuery.uniqueSort(jQuery.merge(this.get(),jQuery(selector,context))))},addBack:function(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector))}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}return cur}jQuery.each({parent:function(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null},parents:function(elem){return dir(elem,"parentNode")},parentsUntil:function(elem,_i,until){return dir(elem,"parentNode",until)},next:function(elem){return sibling(elem,"nextSibling")},prev:function(elem){return sibling(elem,"previousSibling")},nextAll:function(elem){return dir(elem,"nextSibling")},prevAll:function(elem){return dir(elem,"previousSibling")},nextUntil:function(elem,_i,until){return dir(elem,"nextSibling",until)},prevUntil:function(elem,_i,until){return dir(elem,"previousSibling",until)},siblings:function(elem){return siblings((elem.parentNode||{}).firstChild,elem)},children:function(elem){return siblings(elem.firstChild)},contents:function(elem){if(elem.contentDocument!=null&&getProto(elem.contentDocument)){return elem.contentDocument}if(nodeName(elem,"template")){elem=elem.content||elem}return jQuery.merge([],elem.childNodes)}},(function(name,fn){jQuery.fn[name]=function(until,selector){var matched=jQuery.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until}if(selector&&typeof selector==="string"){matched=jQuery.filter(selector,matched)}if(this.length>1){if(!guaranteedUnique[name]){jQuery.uniqueSort(matched)}if(rparentsprev.test(name)){matched.reverse()}}return this.pushStack(matched)}}));var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function createOptions(options){var object={};jQuery.each(options.match(rnothtmlwhite)||[],(function(_,flag){object[flag]=true}));return object}jQuery.Callbacks=function(options){options=typeof options==="string"?createOptions(options):jQuery.extend({},options);var firing,memory,fired,locked,list=[],queue=[],firingIndex=-1,fire=function(){locked=locked||options.once;fired=firing=true;for(;queue.length;firingIndex=-1){memory=queue.shift();while(++firingIndex<list.length){if(list[firingIndex].apply(memory[0],memory[1])===false&&options.stopOnFalse){firingIndex=list.length;memory=false}}}if(!options.memory){memory=false}firing=false;if(locked){if(memory){list=[]}else{list=""}}},self={add:function(){if(list){if(memory&&!firing){firingIndex=list.length-1;queue.push(memory)}(function add(args){jQuery.each(args,(function(_,arg){if(isFunction(arg)){if(!options.unique||!self.has(arg)){list.push(arg)}}else if(arg&&arg.length&&toType(arg)!=="string"){add(arg)}}))})(arguments);if(memory&&!firing){fire()}}return this},remove:function(){jQuery.each(arguments,(function(_,arg){var index;while((index=jQuery.inArray(arg,list,index))>-1){list.splice(index,1);if(index<=firingIndex){firingIndex--}}}));return this},has:function(fn){return fn?jQuery.inArray(fn,list)>-1:list.length>0},empty:function(){if(list){list=[]}return this},disable:function(){locked=queue=[];list=memory="";return this},disabled:function(){return!list},lock:function(){locked=queue=[];if(!memory&&!firing){list=memory=""}return this},locked:function(){return!!locked},fireWith:function(context,args){if(!locked){args=args||[];args=[context,args.slice?args.slice():args];queue.push(args);if(!firing){fire()}}return this},fire:function(){self.fireWith(this,arguments);return this},fired:function(){return!!fired}};return self};function Identity(v){return v}function Thrower(ex){throw ex}function adoptValue(value,resolve,reject,noValue){var method;try{if(value&&isFunction(method=value.promise)){method.call(value).done(resolve).fail(reject)}else if(value&&isFunction(method=value.then)){method.call(value,resolve,reject)}else{resolve.apply(undefined,[value].slice(noValue))}}catch(value){reject.apply(undefined,[value])}}jQuery.extend({Deferred:function(func){var tuples=[["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory"),2],["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),0,"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),1,"rejected"]],state="pending",promise={state:function(){return state},always:function(){deferred.done(arguments).fail(arguments);return this},catch:function(fn){return promise.then(null,fn)},pipe:function(){var fns=arguments;return jQuery.Deferred((function(newDefer){jQuery.each(tuples,(function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]]((function(){var returned=fn&&fn.apply(this,arguments);if(returned&&isFunction(returned.promise)){returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject)}else{newDefer[tuple[0]+"With"](this,fn?[returned]:arguments)}}))}));fns=null})).promise()},then:function(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){var that=this,args=arguments,mightThrow=function(){var returned,then;if(depth<maxDepth){return}returned=handler.apply(that,args);if(returned===deferred.promise()){throw new TypeError("Thenable self-resolution")}then=returned&&(typeof returned==="object"||typeof returned==="function")&&returned.then;if(isFunction(then)){if(special){then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special))}else{maxDepth++;then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith))}}else{if(handler!==Identity){that=undefined;args=[returned]}(special||deferred.resolveWith)(that,args)}},process=special?mightThrow:function(){try{mightThrow()}catch(e){if(jQuery.Deferred.exceptionHook){jQuery.Deferred.exceptionHook(e,process.stackTrace)}if(depth+1>=maxDepth){if(handler!==Thrower){that=undefined;args=[e]}deferred.rejectWith(that,args)}}};if(depth){process()}else{if(jQuery.Deferred.getStackHook){process.stackTrace=jQuery.Deferred.getStackHook()}window.setTimeout(process)}}}return jQuery.Deferred((function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith));tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity));tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower))})).promise()},promise:function(obj){return obj!=null?jQuery.extend(obj,promise):promise}},deferred={};jQuery.each(tuples,(function(i,tuple){var list=tuple[2],stateString=tuple[5];promise[tuple[1]]=list.add;if(stateString){list.add((function(){state=stateString}),tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock)}list.add(tuple[3].fire);deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);return this};deferred[tuple[0]+"With"]=list.fireWith}));promise.promise(deferred);if(func){func.call(deferred,deferred)}return deferred},when:function(singleValue){var remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=slice.call(arguments),primary=jQuery.Deferred(),updateFunc=function(i){return function(value){resolveContexts[i]=this;resolveValues[i]=arguments.length>1?slice.call(arguments):value;if(! --remaining){primary.resolveWith(resolveContexts,resolveValues)}}};if(remaining<=1){adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,!remaining);if(primary.state()==="pending"||isFunction(resolveValues[i]&&resolveValues[i].then)){return primary.then()}}while(i--){adoptValue(resolveValues[i],updateFunc(i),primary.reject)}return primary.promise()}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;jQuery.Deferred.exceptionHook=function(error,stack){if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,stack)}};jQuery.readyException=function(error){window.setTimeout((function(){throw error}))};var readyList=jQuery.Deferred();jQuery.fn.ready=function(fn){readyList.then(fn).catch((function(error){jQuery.readyException(error)}));return this};jQuery.extend({isReady:false,readyWait:1,ready:function(wait){if(wait===true?--jQuery.readyWait:jQuery.isReady){return}jQuery.isReady=true;if(wait!==true&&--jQuery.readyWait>0){return}readyList.resolveWith(document,[jQuery])}});jQuery.ready.then=readyList.then;function completed(){document.removeEventListener("DOMContentLoaded",completed);window.removeEventListener("load",completed);jQuery.ready()}if(document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll){window.setTimeout(jQuery.ready)}else{document.addEventListener("DOMContentLoaded",completed);window.addEventListener("load",completed)}var access=function(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(toType(key)==="object"){chainable=true;for(i in key){access(elems,fn,i,key[i],true,emptyGet,raw)}}else if(value!==undefined){chainable=true;if(!isFunction(value)){raw=true}if(bulk){if(raw){fn.call(elems,value);fn=null}else{bulk=fn;fn=function(elem,_key,value){return bulk.call(jQuery(elem),value)}}}if(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)))}}}if(chainable){return elems}if(bulk){return fn.call(elems)}return len?fn(elems[0],key):emptyGet};var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase()}function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase)}var acceptData=function(owner){return owner.nodeType===1||owner.nodeType===9||!+owner.nodeType};function Data(){this.expando=jQuery.expando+Data.uid++}Data.uid=1;Data.prototype={cache:function(owner){var value=owner[this.expando];if(!value){value={};if(acceptData(owner)){if(owner.nodeType){owner[this.expando]=value}else{Object.defineProperty(owner,this.expando,{value:value,configurable:true})}}}return value},set:function(owner,data,value){var prop,cache=this.cache(owner);if(typeof data==="string"){cache[camelCase(data)]=value}else{for(prop in data){cache[camelCase(prop)]=data[prop]}}return cache},get:function(owner,key){return key===undefined?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)]},access:function(owner,key,value){if(key===undefined||key&&typeof key==="string"&&value===undefined){return this.get(owner,key)}this.set(owner,key,value);return value!==undefined?value:key},remove:function(owner,key){var i,cache=owner[this.expando];if(cache===undefined){return}if(key!==undefined){if(Array.isArray(key)){key=key.map(camelCase)}else{key=camelCase(key);key=key in cache?[key]:key.match(rnothtmlwhite)||[]}i=key.length;while(i--){delete cache[key[i]]}}if(key===undefined||jQuery.isEmptyObject(cache)){if(owner.nodeType){owner[this.expando]=undefined}else{delete owner[this.expando]}}},hasData:function(owner){var cache=owner[this.expando];return cache!==undefined&&!jQuery.isEmptyObject(cache)}};var dataPriv=new Data;var dataUser=new Data;var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function getData(data){if(data==="true"){return true}if(data==="false"){return false}if(data==="null"){return null}if(data===+data+""){return+data}if(rbrace.test(data)){return JSON.parse(data)}return data}function dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$&").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=getData(data)}catch(e){}dataUser.set(elem,key,data)}else{data=undefined}}return data}jQuery.extend({hasData:function(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem)},data:function(elem,name,data){return dataUser.access(elem,name,data)},removeData:function(elem,name){dataUser.remove(elem,name)},_data:function(elem,name,data){return dataPriv.access(elem,name,data)},_removeData:function(elem,name){dataPriv.remove(elem,name)}});jQuery.fn.extend({data:function(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=dataUser.get(elem);if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=camelCase(name.slice(5));dataAttr(elem,name,data[name])}}}dataPriv.set(elem,"hasDataAttrs",true)}}return data}if(typeof key==="object"){return this.each((function(){dataUser.set(this,key)}))}return access(this,(function(value){var data;if(elem&&value===undefined){data=dataUser.get(elem,key);if(data!==undefined){return data}data=dataAttr(elem,key);if(data!==undefined){return data}return}this.each((function(){dataUser.set(this,key,value)}))}),null,value,arguments.length>1,null,true)},removeData:function(key){return this.each((function(){dataUser.remove(this,key)}))}});jQuery.extend({queue:function(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=dataPriv.get(elem,type);if(data){if(!queue||Array.isArray(data)){queue=dataPriv.access(elem,type,jQuery.makeArray(data))}else{queue.push(data)}}return queue||[]}},dequeue:function(elem,type){type=type||"fx";var queue=jQuery.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=jQuery._queueHooks(elem,type),next=function(){jQuery.dequeue(elem,type)};if(fn==="inprogress"){fn=queue.shift();startLength--}if(fn){if(type==="fx"){queue.unshift("inprogress")}delete hooks.stop;fn.call(elem,next,hooks)}if(!startLength&&hooks){hooks.empty.fire()}},_queueHooks:function(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:jQuery.Callbacks("once memory").add((function(){dataPriv.remove(elem,[type+"queue",key])}))})}});jQuery.fn.extend({queue:function(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--}if(arguments.length<setter){return jQuery.queue(this[0],type)}return data===undefined?this:this.each((function(){var queue=jQuery.queue(this,type,data);jQuery._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){jQuery.dequeue(this,type)}}))},dequeue:function(type){return this.each((function(){jQuery.dequeue(this,type)}))},clearQueue:function(type){return this.queue(type||"fx",[])},promise:function(type,obj){var tmp,count=1,defer=jQuery.Deferred(),elements=this,i=this.length,resolve=function(){if(! --count){defer.resolveWith(elements,[elements])}};if(typeof type!=="string"){obj=type;type=undefined}type=type||"fx";while(i--){tmp=dataPriv.get(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve)}}resolve();return defer.promise(obj)}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");var cssExpand=["Top","Right","Bottom","Left"];var documentElement=document.documentElement;var isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)},composed={composed:true};if(documentElement.getRootNode){isAttached=function(elem){return jQuery.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument}}var isHiddenWithinTree=function(elem,el){elem=el||elem;return elem.style.display==="none"||elem.style.display===""&&isAttached(elem)&&jQuery.css(elem,"display")==="none"};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur()}:function(){return jQuery.css(elem,prop,"")},initial=currentValue(),unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(jQuery.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){initial=initial/2;unit=unit||initialInUnit[3];initialInUnit=+initial||1;while(maxIterations--){jQuery.style(elem,prop,initialInUnit+unit);if((1-scale)*(1-(scale=currentValue()/initial||.5))<=0){maxIterations=0}initialInUnit=initialInUnit/scale}initialInUnit=initialInUnit*2;jQuery.style(elem,prop,initialInUnit+unit);valueParts=valueParts||[]}if(valueParts){initialInUnit=+initialInUnit||+initial||0;adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2];if(tween){tween.unit=unit;tween.start=initialInUnit;tween.end=adjusted}}return adjusted}var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];if(display){return display}temp=doc.body.appendChild(doc.createElement(nodeName));display=jQuery.css(temp,"display");temp.parentNode.removeChild(temp);if(display==="none"){display="block"}defaultDisplayMap[nodeName]=display;return display}function showHide(elements,show){var display,elem,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue}display=elem.style.display;if(show){if(display==="none"){values[index]=dataPriv.get(elem,"display")||null;if(!values[index]){elem.style.display=""}}if(elem.style.display===""&&isHiddenWithinTree(elem)){values[index]=getDefaultDisplay(elem)}}else{if(display!=="none"){values[index]="none";dataPriv.set(elem,"display",display)}}}for(index=0;index<length;index++){if(values[index]!=null){elements[index].style.display=values[index]}}return elements}jQuery.fn.extend({show:function(){return showHide(this,true)},hide:function(){return showHide(this)},toggle:function(state){if(typeof state==="boolean"){return state?this.show():this.hide()}return this.each((function(){if(isHiddenWithinTree(this)){jQuery(this).show()}else{jQuery(this).hide()}}))}});var rcheckableType=/^(?:checkbox|radio)$/i;var rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var rscriptType=/^$|^module$|\/(?:java|ecma)script/i;(function(){var fragment=document.createDocumentFragment(),div=fragment.appendChild(document.createElement("div")),input=document.createElement("input");input.setAttribute("type","radio");input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;div.innerHTML="<option></option>";support.option=!!div.lastChild})();var wrapMap={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!support.option){wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]}function getAll(context,tag){var ret;if(typeof context.getElementsByTagName!=="undefined"){ret=context.getElementsByTagName(tag||"*")}else if(typeof context.querySelectorAll!=="undefined"){ret=context.querySelectorAll(tag||"*")}else{ret=[]}if(tag===undefined||tag&&nodeName(context,tag)){return jQuery.merge([context],ret)}return ret}function setGlobalEval(elems,refElements){var i=0,l=elems.length;for(;i<l;i++){dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"))}}var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;for(;i<l;i++){elem=elems[i];if(elem||elem===0){if(toType(elem)==="object"){jQuery.merge(nodes,elem.nodeType?[elem]:elem)}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem))}else{tmp=tmp||fragment.appendChild(context.createElement("div"));tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2];j=wrap[0];while(j--){tmp=tmp.lastChild}jQuery.merge(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent=""}}}fragment.textContent="";i=0;while(elem=nodes[i++]){if(selection&&jQuery.inArray(elem,selection)>-1){if(ignored){ignored.push(elem)}continue}attached=isAttached(elem);tmp=getAll(fragment.appendChild(elem),"script");if(attached){setGlobalEval(tmp)}if(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem)}}}}return fragment}var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return true}function returnFalse(){return false}function expectSync(elem,type){return elem===safeActiveElement()===(type==="focus")}function safeActiveElement(){try{return document.activeElement}catch(err){}}function on(elem,types,selector,data,fn,one){var origFn,type;if(typeof types==="object"){if(typeof selector!=="string"){data=data||selector;selector=undefined}for(type in types){on(elem,type,selector,data,types[type],one)}return elem}if(data==null&&fn==null){fn=selector;data=selector=undefined}else if(fn==null){if(typeof selector==="string"){fn=data;data=undefined}else{fn=data;data=selector;selector=undefined}}if(fn===false){fn=returnFalse}else if(!fn){return elem}if(one===1){origFn=fn;fn=function(event){jQuery().off(event);return origFn.apply(this,arguments)};fn.guid=origFn.guid||(origFn.guid=jQuery.guid++)}return elem.each((function(){jQuery.event.add(this,types,fn,data,selector)}))}jQuery.event={global:{},add:function(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(!acceptData(elem)){return}if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector}if(selector){jQuery.find.matchesSelector(documentElement,selector)}if(!handler.guid){handler.guid=jQuery.guid++}if(!(events=elemData.events)){events=elemData.events=Object.create(null)}if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type?jQuery.event.dispatch.apply(elem,arguments):undefined}}types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){continue}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=jQuery.event.special[type]||{};handleObj=jQuery.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&jQuery.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle)}}}if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid}}if(selector){handlers.splice(handlers.delegateCount++,0,handleObj)}else{handlers.push(handleObj)}jQuery.event.global[type]=true}},remove:function(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!elemData||!(events=elemData.events)){return}types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){for(type in events){jQuery.event.remove(elem,type+types[t],handler,selector,true)}continue}special=jQuery.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--}if(special.remove){special.remove.call(elem,handleObj)}}}if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){jQuery.removeEvent(elem,type,elemData.handle)}delete events[type]}}if(jQuery.isEmptyObject(events)){dataPriv.remove(elem,"handle events")}},dispatch:function(nativeEvent){var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=jQuery.event.fix(nativeEvent),handlers=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=jQuery.event.special[event.type]||{};args[0]=event;for(i=1;i<arguments.length;i++){args[i]=arguments[i]}event.delegateTarget=this;if(special.preDispatch&&special.preDispatch.call(this,event)===false){return}handlerQueue=jQuery.event.handlers.call(this,event,handlers);i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){if(!event.rnamespace||handleObj.namespace===false||event.rnamespace.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((jQuery.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation()}}}}}if(special.postDispatch){special.postDispatch.call(this,event)}return event.result},handlers:function(event,handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!(event.type==="click"&&event.button>=1)){for(;cur!==this;cur=cur.parentNode||this){if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){matchedHandlers=[];matchedSelectors={};for(i=0;i<delegateCount;i++){handleObj=handlers[i];sel=handleObj.selector+" ";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?jQuery(sel,this).index(cur)>-1:jQuery.find(sel,this,null,[cur]).length}if(matchedSelectors[sel]){matchedHandlers.push(handleObj)}}if(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers})}}}}cur=this;if(delegateCount<handlers.length){handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)})}return handlerQueue},addProp:function(name,hook){Object.defineProperty(jQuery.Event.prototype,name,{enumerable:true,configurable:true,get:isFunction(hook)?function(){if(this.originalEvent){return hook(this.originalEvent)}}:function(){if(this.originalEvent){return this.originalEvent[name]}},set:function(value){Object.defineProperty(this,name,{enumerable:true,configurable:true,writable:true,value:value})}})},fix:function(originalEvent){return originalEvent[jQuery.expando]?originalEvent:new jQuery.Event(originalEvent)},special:{load:{noBubble:true},click:{setup:function(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){leverageNative(el,"click",returnTrue)}return false},trigger:function(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){leverageNative(el,"click")}return true},_default:function(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,"input")&&dataPriv.get(target,"click")||nodeName(target,"a")}},beforeunload:{postDispatch:function(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result}}}}};function leverageNative(el,type,expectSync){if(!expectSync){if(dataPriv.get(el,type)===undefined){jQuery.event.add(el,type,returnTrue)}return}dataPriv.set(el,type,false);jQuery.event.add(el,type,{namespace:false,handler:function(event){var notAsync,result,saved=dataPriv.get(this,type);if(event.isTrigger&1&&this[type]){if(!saved.length){saved=slice.call(arguments);dataPriv.set(this,type,saved);notAsync=expectSync(this,type);this[type]();result=dataPriv.get(this,type);if(saved!==result||notAsync){dataPriv.set(this,type,false)}else{result={}}if(saved!==result){event.stopImmediatePropagation();event.preventDefault();return result&&result.value}}else if((jQuery.event.special[type]||{}).delegateType){event.stopPropagation()}}else if(saved.length){dataPriv.set(this,type,{value:jQuery.event.trigger(jQuery.extend(saved[0],jQuery.Event.prototype),saved.slice(1),this)});event.stopImmediatePropagation()}}})}jQuery.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle)}};jQuery.Event=function(src,props){if(!(this instanceof jQuery.Event)){return new jQuery.Event(src,props)}if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===false?returnTrue:returnFalse;this.target=src.target&&src.target.nodeType===3?src.target.parentNode:src.target;this.currentTarget=src.currentTarget;this.relatedTarget=src.relatedTarget}else{this.type=src}if(props){jQuery.extend(this,props)}this.timeStamp=src&&src.timeStamp||Date.now();this[jQuery.expando]=true};jQuery.Event.prototype={constructor:jQuery.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:false,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&!this.isSimulated){e.preventDefault()}},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopPropagation()}},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopImmediatePropagation()}this.stopPropagation()}};jQuery.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,char:true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},jQuery.event.addProp);jQuery.each({focus:"focusin",blur:"focusout"},(function(type,delegateType){jQuery.event.special[type]={setup:function(){leverageNative(this,type,expectSync);return false},trigger:function(){leverageNative(this,type);return true},_default:function(){return true},delegateType:delegateType}}));jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(orig,fix){jQuery.event.special[orig]={delegateType:fix,bindType:fix,handle:function(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||related!==target&&!jQuery.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix}return ret}}}));jQuery.fn.extend({on:function(types,selector,data,fn){return on(this,types,selector,data,fn)},one:function(types,selector,data,fn){return on(this,types,selector,data,fn,1)},off:function(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;jQuery(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this}if(typeof types==="object"){for(type in types){this.off(type,selector,types[type])}return this}if(selector===false||typeof selector==="function"){fn=selector;selector=undefined}if(fn===false){fn=returnFalse}return this.each((function(){jQuery.event.remove(this,types,fn,selector)}))}});var rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function manipulationTarget(elem,content){if(nodeName(elem,"table")&&nodeName(content.nodeType!==11?content:content.firstChild,"tr")){return jQuery(elem).children("tbody")[0]||elem}return elem}function disableScript(elem){elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;return elem}function restoreScript(elem){if((elem.type||"").slice(0,5)==="true/"){elem.type=elem.type.slice(5)}else{elem.removeAttribute("type")}return elem}function cloneCopyEvent(src,dest){var i,l,type,pdataOld,udataOld,udataCur,events;if(dest.nodeType!==1){return}if(dataPriv.hasData(src)){pdataOld=dataPriv.get(src);events=pdataOld.events;if(events){dataPriv.remove(dest,"handle events");for(type in events){for(i=0,l=events[type].length;i<l;i++){jQuery.event.add(dest,type,events[type][i])}}}}if(dataUser.hasData(src)){udataOld=dataUser.access(src);udataCur=jQuery.extend({},udataOld);dataUser.set(dest,udataCur)}}function fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();if(nodeName==="input"&&rcheckableType.test(src.type)){dest.checked=src.checked}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue}}function domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return collection.each((function(index){var self=collection.eq(index);if(valueIsFunction){args[0]=value.call(this,index,self.html())}domManip(self,args,callback,ignored)}))}if(l){fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first}if(first||ignored){scripts=jQuery.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;for(;i<l;i++){node=fragment;if(i!==iNoClone){node=jQuery.clone(node,true,true);if(hasScripts){jQuery.merge(scripts,getAll(node,"script"))}}callback.call(collection[i],node,i)}if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;jQuery.map(scripts,restoreScript);for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&jQuery.contains(doc,node)){if(node.src&&(node.type||"").toLowerCase()!=="module"){if(jQuery._evalUrl&&!node.noModule){jQuery._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc)}}else{DOMEval(node.textContent.replace(rcleanScript,""),node,doc)}}}}}}return collection}function remove(elem,selector,keepData){var node,nodes=selector?jQuery.filter(selector,elem):elem,i=0;for(;(node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){jQuery.cleanData(getAll(node))}if(node.parentNode){if(keepData&&isAttached(node)){setGlobalEval(getAll(node,"script"))}node.parentNode.removeChild(node)}}return elem}jQuery.extend({htmlPrefilter:function(html){return html},clone:function(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=isAttached(elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!jQuery.isXMLDoc(elem)){destElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i])}}if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i])}}else{cloneCopyEvent(elem,clone)}}destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"))}return clone},cleanData:function(elems){var data,elem,type,special=jQuery.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events){for(type in data.events){if(special[type]){jQuery.event.remove(elem,type)}else{jQuery.removeEvent(elem,type,data.handle)}}}elem[dataPriv.expando]=undefined}if(elem[dataUser.expando]){elem[dataUser.expando]=undefined}}}}});jQuery.fn.extend({detach:function(selector){return remove(this,selector,true)},remove:function(selector){return remove(this,selector)},text:function(value){return access(this,(function(value){return value===undefined?jQuery.text(this):this.empty().each((function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value}}))}),null,value,arguments.length)},append:function(){return domManip(this,arguments,(function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem)}}))},prepend:function(){return domManip(this,arguments,(function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild)}}))},before:function(){return domManip(this,arguments,(function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this)}}))},after:function(){return domManip(this,arguments,(function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling)}}))},empty:function(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.textContent=""}}return this},clone:function(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map((function(){return jQuery.clone(this,dataAndEvents,deepDataAndEvents)}))},html:function(value){return access(this,(function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML}if(typeof value==="string"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=jQuery.htmlPrefilter(value);try{for(;i<l;i++){elem=this[i]||{};if(elem.nodeType===1){jQuery.cleanData(getAll(elem,false));elem.innerHTML=value}}elem=0}catch(e){}}if(elem){this.empty().append(value)}}),null,value,arguments.length)},replaceWith:function(){var ignored=[];return domManip(this,arguments,(function(elem){var parent=this.parentNode;if(jQuery.inArray(this,ignored)<0){jQuery.cleanData(getAll(this));if(parent){parent.replaceChild(elem,this)}}}),ignored)}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(name,original){jQuery.fn[name]=function(selector){var elems,ret=[],insert=jQuery(selector),last=insert.length-1,i=0;for(;i<=last;i++){elems=i===last?this:this.clone(true);jQuery(insert[i])[original](elems);push.apply(ret,elems.get())}return this.pushStack(ret)}}));var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var getStyles=function(elem){var view=elem.ownerDocument.defaultView;if(!view||!view.opener){view=window}return view.getComputedStyle(elem)};var swap=function(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name]}ret=callback.call(elem);for(name in options){elem.style[name]=old[name]}return ret};var rboxStyle=new RegExp(cssExpand.join("|"),"i");(function(){function computeStyleTests(){if(!div){return}container.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal=divStyle.top!=="1%";reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;div.style.right="60%";pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;div.style.position="absolute";scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12;documentElement.removeChild(container);div=null}function roundPixelMeasures(measure){return Math.round(parseFloat(measure))}var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");if(!div.style){return}div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";jQuery.extend(support,{boxSizingReliable:function(){computeStyleTests();return boxSizingReliableVal},pixelBoxStyles:function(){computeStyleTests();return pixelBoxStylesVal},pixelPosition:function(){computeStyleTests();return pixelPositionVal},reliableMarginLeft:function(){computeStyleTests();return reliableMarginLeftVal},scrollboxSize:function(){computeStyleTests();return scrollboxSizeVal},reliableTrDimensions:function(){var table,tr,trChild,trStyle;if(reliableTrDimensionsVal==null){table=document.createElement("table");tr=document.createElement("tr");trChild=document.createElement("div");table.style.cssText="position:absolute;left:-11111px;border-collapse:separate";tr.style.cssText="border:1px solid";tr.style.height="1px";trChild.style.height="9px";trChild.style.display="block";documentElement.appendChild(table).appendChild(tr).appendChild(trChild);trStyle=window.getComputedStyle(tr);reliableTrDimensionsVal=parseInt(trStyle.height,10)+parseInt(trStyle.borderTopWidth,10)+parseInt(trStyle.borderBottomWidth,10)===tr.offsetHeight;documentElement.removeChild(table)}return reliableTrDimensionsVal}})})();function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,style=elem.style;computed=computed||getStyles(elem);if(computed){ret=computed.getPropertyValue(name)||computed[name];if(ret===""&&!isAttached(elem)){ret=jQuery.style(elem,name)}if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth}}return ret!==undefined?ret+"":ret}function addGetHookIf(conditionFn,hookFn){return{get:function(){if(conditionFn()){delete this.get;return}return(this.get=hookFn).apply(this,arguments)}}}var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};function vendorPropName(name){var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name}}}function finalPropName(name){var final=jQuery.cssProps[name]||vendorProps[name];if(final){return final}if(name in emptyStyle){return name}return vendorProps[name]=vendorPropName(name)||name}var rdisplayswap=/^(none|table(?!-c[ea]).+)/,rcustomProp=/^--/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value}function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension==="width"?1:0,extra=0,delta=0;if(box===(isBorderBox?"border":"content")){return 0}for(;i<4;i+=2){if(box==="margin"){delta+=jQuery.css(elem,box+cssExpand[i],true,styles)}if(!isBorderBox){delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles);if(box!=="padding"){delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}else{extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}else{if(box==="content"){delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles)}if(box!=="margin"){delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles)}}}if(!isBorderBox&&computedVal>=0){delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-.5))||0}return delta}function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),boxSizingNeeded=!support.boxSizingReliable()||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra){return val}val="auto"}if((!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,"tr")||val==="auto"||!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&&elem.getClientRects().length){isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box";valueIsBorderBox=offsetProp in elem;if(valueIsBorderBox){val=elem[offsetProp]}}val=parseFloat(val)||0;return val+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px"}jQuery.extend({cssHooks:{opacity:{get:function(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret}}}},cssNumber:{animationIterationCount:true,columnCount:true,fillOpacity:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{},style:function(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return}var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(!isCustomProp){name=finalPropName(origName)}hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(value!==undefined){type=typeof value;if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){value=adjustCSS(elem,name,ret);type="number"}if(value==null||value!==value){return}if(type==="number"&&!isCustomProp){value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px")}if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit"}if(!hooks||!("set"in hooks)||(value=hooks.set(elem,value,extra))!==undefined){if(isCustomProp){style.setProperty(name,value)}else{style[name]=value}}}else{if(hooks&&"get"in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret}return style[name]}},css:function(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);if(!isCustomProp){name=finalPropName(origName)}hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName];if(hooks&&"get"in hooks){val=hooks.get(elem,true,extra)}if(val===undefined){val=curCSS(elem,name,styles)}if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name]}if(extra===""||extra){num=parseFloat(val);return extra===true||isFinite(num)?num||0:val}return val}});jQuery.each(["height","width"],(function(_i,dimension){jQuery.cssHooks[dimension]={get:function(elem,computed,extra){if(computed){return rdisplayswap.test(jQuery.css(elem,"display"))&&(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?swap(elem,cssShow,(function(){return getWidthOrHeight(elem,dimension,extra)})):getWidthOrHeight(elem,dimension,extra)}},set:function(elem,value,extra){var matches,styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&styles.position==="absolute",boxSizingNeeded=scrollboxSizeBuggy||extra,isBorderBox=boxSizingNeeded&&jQuery.css(elem,"boxSizing",false,styles)==="border-box",subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;if(isBorderBox&&scrollboxSizeBuggy){subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",false,styles)-.5)}if(subtract&&(matches=rcssNum.exec(value))&&(matches[3]||"px")!=="px"){elem.style[dimension]=value;value=jQuery.css(elem,dimension)}return setPositiveNumber(elem,value,subtract)}}}));jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,(function(elem,computed){if(computed){return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},(function(){return elem.getBoundingClientRect().left})))+"px"}}));jQuery.each({margin:"",padding:"",border:"Width"},(function(prefix,suffix){jQuery.cssHooks[prefix+suffix]={expand:function(value){var i=0,expanded={},parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0]}return expanded}};if(prefix!=="margin"){jQuery.cssHooks[prefix+suffix].set=setPositiveNumber}}));jQuery.fn.extend({css:function(name,value){return access(this,(function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=jQuery.css(elem,name[i],false,styles)}return map}return value!==undefined?jQuery.style(elem,name,value):jQuery.css(elem,name)}),name,value,arguments.length>1)}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing)}jQuery.Tween=Tween;Tween.prototype={constructor:Tween,init:function(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||jQuery.easing._default;this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(jQuery.cssNumber[prop]?"":"px")},cur:function(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this)},run:function(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=jQuery.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration)}else{this.pos=eased=percent}this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this)}if(hooks&&hooks.set){hooks.set(this)}else{Tween.propHooks._default.set(this)}return this}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function(tween){var result;if(tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){return tween.elem[tween.prop]}result=jQuery.css(tween.elem,tween.prop,"");return!result||result==="auto"?0:result},set:function(tween){if(jQuery.fx.step[tween.prop]){jQuery.fx.step[tween.prop](tween)}else if(tween.elem.nodeType===1&&(jQuery.cssHooks[tween.prop]||tween.elem.style[finalPropName(tween.prop)]!=null)){jQuery.style(tween.elem,tween.prop,tween.now+tween.unit)}else{tween.elem[tween.prop]=tween.now}}}};Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now}}};jQuery.easing={linear:function(p){return p},swing:function(p){return.5-Math.cos(p*Math.PI)/2},_default:"swing"};jQuery.fx=Tween.prototype.init;jQuery.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){if(inProgress){if(document.hidden===false&&window.requestAnimationFrame){window.requestAnimationFrame(schedule)}else{window.setTimeout(schedule,jQuery.fx.interval)}jQuery.fx.tick()}}function createFxNow(){window.setTimeout((function(){fxNow=undefined}));return fxNow=Date.now()}function genFx(type,includeWidth){var which,i=0,attrs={height:type};includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type}if(includeWidth){attrs.opacity=attrs.width=type}return attrs}function createTween(value,prop,animation){var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){return tween}}}function defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width"in props||"height"in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");if(!opts.queue){hooks=jQuery._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire()}}}hooks.unqueued++;anim.always((function(){anim.always((function(){hooks.unqueued--;if(!jQuery.queue(elem,"fx").length){hooks.empty.fire()}}))}))}for(prop in props){value=props[prop];if(rfxtypes.test(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true}else{continue}}orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop)}}propTween=!jQuery.isEmptyObject(props);if(!propTween&&jQuery.isEmptyObject(orig)){return}if(isBox&&elem.nodeType===1){opts.overflow=[style.overflow,style.overflowX,style.overflowY];restoreDisplay=dataShow&&dataShow.display;if(restoreDisplay==null){restoreDisplay=dataPriv.get(elem,"display")}display=jQuery.css(elem,"display");if(display==="none"){if(restoreDisplay){display=restoreDisplay}else{showHide([elem],true);restoreDisplay=elem.style.display||restoreDisplay;display=jQuery.css(elem,"display");showHide([elem])}}if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){if(jQuery.css(elem,"float")==="none"){if(!propTween){anim.done((function(){style.display=restoreDisplay}));if(restoreDisplay==null){display=style.display;restoreDisplay=display==="none"?"":display}}style.display="inline-block"}}}if(opts.overflow){style.overflow="hidden";anim.always((function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2]}))}propTween=false;for(prop in orig){if(!propTween){if(dataShow){if("hidden"in dataShow){hidden=dataShow.hidden}}else{dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay})}if(toggle){dataShow.hidden=!hidden}if(hidden){showHide([elem],true)}anim.done((function(){if(!hidden){showHide([elem])}dataPriv.remove(elem,"fxshow");for(prop in orig){jQuery.style(elem,prop,orig[prop])}}))}propTween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=propTween.start;if(hidden){propTween.end=propTween.start;propTween.start=0}}}}function propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props){name=camelCase(index);easing=specialEasing[name];value=props[index];if(Array.isArray(value)){easing=value[1];value=props[index]=value[0]}if(index!==name){props[name]=value;delete props[index]}hooks=jQuery.cssHooks[name];if(hooks&&"expand"in hooks){value=hooks.expand(value);delete props[name];for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing}}}else{specialEasing[name]=easing}}}function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=jQuery.Deferred().always((function(){delete tick.elem})),tick=function(){if(stopped){return false}var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent)}deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining}if(!length){deferred.notifyWith(elem,[animation,1,0])}deferred.resolveWith(elem,[animation]);return false},animation=deferred.promise({elem:elem,props:jQuery.extend({},properties),opts:jQuery.extend(true,{specialEasing:{},easing:jQuery.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function(prop,end){var tween=jQuery.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween},stop:function(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped){return this}stopped=true;for(;index<length;index++){animation.tweens[index].run(1)}if(gotoEnd){deferred.notifyWith(elem,[animation,1,0]);deferred.resolveWith(elem,[animation,gotoEnd])}else{deferred.rejectWith(elem,[animation,gotoEnd])}return this}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=Animation.prefilters[index].call(animation,elem,props,animation.opts);if(result){if(isFunction(result.stop)){jQuery._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result)}return result}}jQuery.map(props,createTween,animation);if(isFunction(animation.opts.start)){animation.opts.start.call(elem,animation)}animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);jQuery.fx.timer(jQuery.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation}jQuery.Animation=jQuery.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);return tween}]},tweener:function(props,callback){if(isFunction(props)){callback=props;props=["*"]}else{props=props.match(rnothtmlwhite)}var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];Animation.tweeners[prop]=Animation.tweeners[prop]||[];Animation.tweeners[prop].unshift(callback)}},prefilters:[defaultPrefilter],prefilter:function(callback,prepend){if(prepend){Animation.prefilters.unshift(callback)}else{Animation.prefilters.push(callback)}}});jQuery.speed=function(speed,easing,fn){var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};if(jQuery.fx.off){opt.duration=0}else{if(typeof opt.duration!=="number"){if(opt.duration in jQuery.fx.speeds){opt.duration=jQuery.fx.speeds[opt.duration]}else{opt.duration=jQuery.fx.speeds._default}}}if(opt.queue==null||opt.queue===true){opt.queue="fx"}opt.old=opt.complete;opt.complete=function(){if(isFunction(opt.old)){opt.old.call(this)}if(opt.queue){jQuery.dequeue(this,opt.queue)}};return opt};jQuery.fn.extend({fadeTo:function(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback)},animate:function(prop,speed,easing,callback){var empty=jQuery.isEmptyObject(prop),optall=jQuery.speed(speed,easing,callback),doAnimation=function(){var anim=Animation(this,jQuery.extend({},prop),optall);if(empty||dataPriv.get(this,"finish")){anim.stop(true)}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation)},stop:function(type,clearQueue,gotoEnd){var stopQueue=function(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd)};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined}if(clearQueue){this.queue(type||"fx",[])}return this.each((function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=jQuery.timers,data=dataPriv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index])}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index])}}}for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1)}}if(dequeue||!gotoEnd){jQuery.dequeue(this,type)}}))},finish:function(type){if(type!==false){type=type||"fx"}return this.each((function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=jQuery.timers,length=queue?queue.length:0;data.finish=true;jQuery.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true)}for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1)}}for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this)}}delete data.finish}))}});jQuery.each(["toggle","show","hide"],(function(_i,name){var cssFn=jQuery.fn[name];jQuery.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback)}}));jQuery.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(name,props){jQuery.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback)}}));jQuery.timers=[];jQuery.fx.tick=function(){var timer,i=0,timers=jQuery.timers;fxNow=Date.now();for(;i<timers.length;i++){timer=timers[i];if(!timer()&&timers[i]===timer){timers.splice(i--,1)}}if(!timers.length){jQuery.fx.stop()}fxNow=undefined};jQuery.fx.timer=function(timer){jQuery.timers.push(timer);jQuery.fx.start()};jQuery.fx.interval=13;jQuery.fx.start=function(){if(inProgress){return}inProgress=true;schedule()};jQuery.fx.stop=function(){inProgress=null};jQuery.fx.speeds={slow:600,fast:200,_default:400};jQuery.fn.delay=function(time,type){time=jQuery.fx?jQuery.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,(function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout)}}))};(function(){var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox";support.checkOn=input.value!=="";support.optSelected=opt.selected;input=document.createElement("input");input.value="t";input.type="radio";support.radioValue=input.value==="t"})();var boolHook,attrHandle=jQuery.expr.attrHandle;jQuery.fn.extend({attr:function(name,value){return access(this,jQuery.attr,name,value,arguments.length>1)},removeAttr:function(name){return this.each((function(){jQuery.removeAttr(this,name)}))}});jQuery.extend({attr:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return}if(typeof elem.getAttribute==="undefined"){return jQuery.prop(elem,name,value)}if(nType!==1||!jQuery.isXMLDoc(elem)){hooks=jQuery.attrHooks[name.toLowerCase()]||(jQuery.expr.match.bool.test(name)?boolHook:undefined)}if(value!==undefined){if(value===null){jQuery.removeAttr(elem,name);return}if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret}elem.setAttribute(name,value+"");return value}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret}ret=jQuery.find.attr(elem,name);return ret==null?undefined:ret},attrHooks:{type:{set:function(elem,value){if(!support.radioValue&&value==="radio"&&nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val}return value}}}},removeAttr:function(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){elem.removeAttribute(name)}}}});boolHook={set:function(elem,value,name){if(value===false){jQuery.removeAttr(elem,name)}else{elem.setAttribute(name,name)}return name}};jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),(function(_i,name){var getter=attrHandle[name]||jQuery.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();if(!isXML){handle=attrHandle[lowercaseName];attrHandle[lowercaseName]=ret;ret=getter(elem,name,isXML)!=null?lowercaseName:null;attrHandle[lowercaseName]=handle}return ret}}));var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;jQuery.fn.extend({prop:function(name,value){return access(this,jQuery.prop,name,value,arguments.length>1)},removeProp:function(name){return this.each((function(){delete this[jQuery.propFix[name]||name]}))}});jQuery.extend({prop:function(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return}if(nType!==1||!jQuery.isXMLDoc(elem)){name=jQuery.propFix[name]||name;hooks=jQuery.propHooks[name]}if(value!==undefined){if(hooks&&"set"in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret}return elem[name]=value}if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){return ret}return elem[name]},propHooks:{tabIndex:{get:function(elem){var tabindex=jQuery.find.attr(elem,"tabindex");if(tabindex){return parseInt(tabindex,10)}if(rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href){return 0}return-1}}},propFix:{for:"htmlFor",class:"className"}});if(!support.optSelected){jQuery.propHooks.selected={get:function(elem){var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex}return null},set:function(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex}}}}}jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){jQuery.propFix[this.toLowerCase()]=this}));function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ")}function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||""}function classesToArray(value){if(Array.isArray(value)){return value}if(typeof value==="string"){return value.match(rnothtmlwhite)||[]}return[]}jQuery.fn.extend({addClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each((function(j){jQuery(this).addClass(value.call(this,j,getClass(this)))}))}classes=classesToArray(value);if(classes.length){while(elem=this[i++]){curValue=getClass(elem);cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){j=0;while(clazz=classes[j++]){if(cur.indexOf(" "+clazz+" ")<0){cur+=clazz+" "}}finalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue)}}}}return this},removeClass:function(value){var classes,elem,cur,curValue,clazz,j,finalValue,i=0;if(isFunction(value)){return this.each((function(j){jQuery(this).removeClass(value.call(this,j,getClass(this)))}))}if(!arguments.length){return this.attr("class","")}classes=classesToArray(value);if(classes.length){while(elem=this[i++]){curValue=getClass(elem);cur=elem.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){j=0;while(clazz=classes[j++]){while(cur.indexOf(" "+clazz+" ")>-1){cur=cur.replace(" "+clazz+" "," ")}}finalValue=stripAndCollapse(cur);if(curValue!==finalValue){elem.setAttribute("class",finalValue)}}}}return this},toggleClass:function(value,stateVal){var type=typeof value,isValidValue=type==="string"||Array.isArray(value);if(typeof stateVal==="boolean"&&isValidValue){return stateVal?this.addClass(value):this.removeClass(value)}if(isFunction(value)){return this.each((function(i){jQuery(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal)}))}return this.each((function(){var className,i,self,classNames;if(isValidValue){i=0;self=jQuery(this);classNames=classesToArray(value);while(className=classNames[i++]){if(self.hasClass(className)){self.removeClass(className)}else{self.addClass(className)}}}else if(value===undefined||type==="boolean"){className=getClass(this);if(className){dataPriv.set(this,"__className__",className)}if(this.setAttribute){this.setAttribute("class",className||value===false?"":dataPriv.get(this,"__className__")||"")}}}))},hasClass:function(selector){var className,elem,i=0;className=" "+selector+" ";while(elem=this[i++]){if(elem.nodeType===1&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){return true}}return false}});var rreturn=/\r/g;jQuery.fn.extend({val:function(value){var hooks,ret,valueIsFunction,elem=this[0];if(!arguments.length){if(elem){hooks=jQuery.valHooks[elem.type]||jQuery.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get"in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret}ret=elem.value;if(typeof ret==="string"){return ret.replace(rreturn,"")}return ret==null?"":ret}return}valueIsFunction=isFunction(value);return this.each((function(i){var val;if(this.nodeType!==1){return}if(valueIsFunction){val=value.call(this,i,jQuery(this).val())}else{val=value}if(val==null){val=""}else if(typeof val==="number"){val+=""}else if(Array.isArray(val)){val=jQuery.map(val,(function(value){return value==null?"":value+""}))}hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()];if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){this.value=val}}))}});jQuery.extend({valHooks:{option:{get:function(elem){var val=jQuery.find.attr(elem,"value");return val!=null?val:stripAndCollapse(jQuery.text(elem))}},select:{get:function(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one",values=one?null:[],max=one?index+1:options.length;if(index<0){i=max}else{i=one?index:0}for(;i<max;i++){option=options[i];if((option.selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){value=jQuery(option).val();if(one){return value}values.push(value)}}return values},set:function(elem,value){var optionSet,option,options=elem.options,values=jQuery.makeArray(value),i=options.length;while(i--){option=options[i];if(option.selected=jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1){optionSet=true}}if(!optionSet){elem.selectedIndex=-1}return values}}}});jQuery.each(["radio","checkbox"],(function(){jQuery.valHooks[this]={set:function(elem,value){if(Array.isArray(value)){return elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1}}};if(!support.checkOn){jQuery.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value}}}));support.focusin="onfocusin"in window;var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function(e){e.stopPropagation()};jQuery.extend(jQuery.event,{trigger:function(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=lastElement=tmp=elem=elem||document;if(elem.nodeType===3||elem.nodeType===8){return}if(rfocusMorph.test(type+jQuery.event.triggered)){return}if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();namespaces.sort()}ontype=type.indexOf(":")<0&&"on"+type;event=event[jQuery.expando]?event:new jQuery.Event(type,typeof event==="object"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;event.result=undefined;if(!event.target){event.target=elem}data=data==null?[event]:jQuery.makeArray(data,[event]);special=jQuery.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return}if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode}for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur}if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window)}}i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){lastElement=cur;event.type=i>1?bubbleType:special.bindType||type;handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle");if(handle){handle.apply(cur,data)}handle=ontype&&cur[ontype];if(handle&&handle.apply&&acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault()}}}event.type=type;if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&acceptData(elem)){if(ontype&&isFunction(elem[type])&&!isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null}jQuery.event.triggered=type;if(event.isPropagationStopped()){lastElement.addEventListener(type,stopPropagationCallback)}elem[type]();if(event.isPropagationStopped()){lastElement.removeEventListener(type,stopPropagationCallback)}jQuery.event.triggered=undefined;if(tmp){elem[ontype]=tmp}}}}return event.result},simulate:function(type,elem,event){var e=jQuery.extend(new jQuery.Event,event,{type:type,isSimulated:true});jQuery.event.trigger(e,null,elem)}});jQuery.fn.extend({trigger:function(type,data){return this.each((function(){jQuery.event.trigger(type,data,this)}))},triggerHandler:function(type,data){var elem=this[0];if(elem){return jQuery.event.trigger(type,data,elem,true)}}});if(!support.focusin){jQuery.each({focus:"focusin",blur:"focusout"},(function(orig,fix){var handler=function(event){jQuery.event.simulate(fix,event.target,jQuery.event.fix(event))};jQuery.event.special[fix]={setup:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix);if(!attaches){doc.addEventListener(orig,handler,true)}dataPriv.access(doc,fix,(attaches||0)+1)},teardown:function(){var doc=this.ownerDocument||this.document||this,attaches=dataPriv.access(doc,fix)-1;if(!attaches){doc.removeEventListener(orig,handler,true);dataPriv.remove(doc,fix)}else{dataPriv.access(doc,fix,attaches)}}}}))}var location=window.location;var nonce={guid:Date.now()};var rquery=/\?/;jQuery.parseXML=function(data){var xml,parserErrorElem;if(!data||typeof data!=="string"){return null}try{xml=(new window.DOMParser).parseFromString(data,"text/xml")}catch(e){}parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0];if(!xml||parserErrorElem){jQuery.error("Invalid XML: "+(parserErrorElem?jQuery.map(parserErrorElem.childNodes,(function(el){return el.textContent})).join("\n"):data))}return xml};var rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj)){jQuery.each(obj,(function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v)}else{buildParams(prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]",v,traditional,add)}}))}else if(!traditional&&toType(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add)}}else{add(prefix,obj)}}jQuery.param=function(a,traditional){var prefix,s=[],add=function(key,valueOrFunction){var value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value==null?"":value)};if(a==null){return""}if(Array.isArray(a)||a.jquery&&!jQuery.isPlainObject(a)){jQuery.each(a,(function(){add(this.name,this.value)}))}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add)}}return s.join("&")};jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var elements=jQuery.prop(this,"elements");return elements?jQuery.makeArray(elements):this})).filter((function(){var type=this.type;return this.name&&!jQuery(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type))})).map((function(_i,elem){var val=jQuery(this).val();if(val==null){return null}if(Array.isArray(val)){return jQuery.map(val,(function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")}}))}return{name:elem.name,value:val.replace(rCRLF,"\r\n")}})).get()}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/gm,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");originAnchor.href=location.href;function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*"}var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func)){while(dataType=dataTypes[i++]){if(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func)}else{(structure[dataType]=structure[dataType]||[]).push(func)}}}}}function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;jQuery.each(structure[dataType]||[],(function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false}else if(seekingTransport){return!(selected=dataTypeOrTransport)}}));return selected}return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*")}function ajaxExtend(target,src){var key,deep,flatOptions=jQuery.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key]}}if(deep){jQuery.extend(true,target,deep)}return target}function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type")}}if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break}}}if(dataTypes[0]in responses){finalDataType=dataTypes[0]}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break}if(!firstDataType){firstDataType=type}}finalDataType=finalDataType||firstDataType}if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType)}return responses[finalDataType]}}function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv]}}current=dataTypes.shift();while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response}if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType)}prev=current;current=dataTypes.shift();if(current){if(current==="*"){current=prev}else if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2]}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1])}break}}}}if(conv!==true){if(conv&&s.throws){response=conv(response)}else{try{response=conv(response)}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current}}}}}}}return{state:"success",data:response}}jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:rlocalProtocol.test(location.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":true,"text json":JSON.parse,"text xml":jQuery.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){if(typeof url==="object"){options=url;url=undefined}options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed,fireGlobals,i,uncached,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(completed){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2])}}match=responseHeaders[key.toLowerCase()+" "]}return match==null?null:match.join(", ")},getAllResponseHeaders:function(){return completed?responseHeadersString:null},setRequestHeader:function(name,value){if(completed==null){name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name;requestHeaders[name]=value}return this},overrideMimeType:function(type){if(completed==null){s.mimeType=type}return this},statusCode:function(map){var code;if(map){if(completed){jqXHR.always(map[jqXHR.status])}else{for(code in map){statusCode[code]=[statusCode[code],map[code]]}}}return this},abort:function(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText)}done(0,finalText);return this}};deferred.promise(jqXHR);s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//");s.type=options.method||options.type||s.method||s.type;s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""];if(s.crossDomain==null){urlAnchor=document.createElement("a");try{urlAnchor.href=s.url;urlAnchor.href=urlAnchor.href;s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==urlAnchor.protocol+"//"+urlAnchor.host}catch(e){s.crossDomain=true}}if(s.data&&s.processData&&typeof s.data!=="string"){s.data=jQuery.param(s.data,s.traditional)}inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(completed){return jqXHR}fireGlobals=jQuery.event&&s.global;if(fireGlobals&&jQuery.active++===0){jQuery.event.trigger("ajaxStart")}s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);cacheURL=s.url.replace(rhash,"");if(!s.hasContent){uncached=s.url.slice(cacheURL.length);if(s.data&&(s.processData||typeof s.data==="string")){cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;delete s.data}if(s.cache===false){cacheURL=cacheURL.replace(rantiCache,"$1");uncached=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid+++uncached}s.url=cacheURL+uncached}else if(s.data&&s.processData&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){s.data=s.data.replace(r20,"+")}if(s.ifModified){if(jQuery.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL])}if(jQuery.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL])}}if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType)}jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i])}if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){return jqXHR.abort()}strAbort="abort";completeDeferred.add(s.complete);jqXHR.done(s.success);jqXHR.fail(s.error);transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport")}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s])}if(completed){return jqXHR}if(s.async&&s.timeout>0){timeoutTimer=window.setTimeout((function(){jqXHR.abort("timeout")}),s.timeout)}try{completed=false;transport.send(requestHeaders,done)}catch(e){if(completed){throw e}done(-1,e)}}function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(completed){return}completed=true;if(timeoutTimer){window.clearTimeout(timeoutTimer)}transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses)}if(!isSuccess&&jQuery.inArray("script",s.dataTypes)>-1&&jQuery.inArray("json",s.dataTypes)<0){s.converters["text script"]=function(){}}response=ajaxConvert(s,response,jqXHR,isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){jQuery.lastModified[cacheURL]=modified}modified=jqXHR.getResponseHeader("etag");if(modified){jQuery.etag[cacheURL]=modified}}if(status===204||s.type==="HEAD"){statusText="nocontent"}else if(status===304){statusText="notmodified"}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error}}else{error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0}}}jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR])}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error])}jqXHR.statusCode(statusCode);statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error])}completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(! --jQuery.active){jQuery.event.trigger("ajaxStop")}}}return jqXHR},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")}});jQuery.each(["get","post"],(function(_i,method){jQuery[method]=function(url,data,callback,type){if(isFunction(data)){type=type||callback;callback=data;data=undefined}return jQuery.ajax(jQuery.extend({url:url,type:method,dataType:type,data:data,success:callback},jQuery.isPlainObject(url)&&url))}}));jQuery.ajaxPrefilter((function(s){var i;for(i in s.headers){if(i.toLowerCase()==="content-type"){s.contentType=s.headers[i]||""}}}));jQuery._evalUrl=function(url,options,doc){return jQuery.ajax({url:url,type:"GET",dataType:"script",cache:true,async:false,global:false,converters:{"text script":function(){}},dataFilter:function(response){jQuery.globalEval(response,options,doc)}})};jQuery.fn.extend({wrapAll:function(html){var wrap;if(this[0]){if(isFunction(html)){html=html.call(this[0])}wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0])}wrap.map((function(){var elem=this;while(elem.firstElementChild){elem=elem.firstElementChild}return elem})).append(this)}return this},wrapInner:function(html){if(isFunction(html)){return this.each((function(i){jQuery(this).wrapInner(html.call(this,i))}))}return this.each((function(){var self=jQuery(this),contents=self.contents();if(contents.length){contents.wrapAll(html)}else{self.append(html)}}))},wrap:function(html){var htmlIsFunction=isFunction(html);return this.each((function(i){jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html)}))},unwrap:function(selector){this.parent(selector).not("body").each((function(){jQuery(this).replaceWith(this.childNodes)}));return this}});jQuery.expr.pseudos.hidden=function(elem){return!jQuery.expr.pseudos.visible(elem)};jQuery.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length)};jQuery.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=jQuery.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials"in xhrSupported;support.ajax=xhrSupported=!!xhrSupported;jQuery.ajaxTransport((function(options){var callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function(headers,complete){var i,xhr=options.xhr();xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i]}}if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType)}if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest"}for(i in headers){xhr.setRequestHeader(i,headers[i])}callback=function(type){return function(){if(callback){callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null;if(type==="abort"){xhr.abort()}else if(type==="error"){if(typeof xhr.status!=="number"){complete(0,"error")}else{complete(xhr.status,xhr.statusText)}}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,(xhr.responseType||"text")!=="text"||typeof xhr.responseText!=="string"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders())}}}};xhr.onload=callback();errorCallback=xhr.onerror=xhr.ontimeout=callback("error");if(xhr.onabort!==undefined){xhr.onabort=errorCallback}else{xhr.onreadystatechange=function(){if(xhr.readyState===4){window.setTimeout((function(){if(callback){errorCallback()}}))}}}callback=callback("abort");try{xhr.send(options.hasContent&&options.data||null)}catch(e){if(callback){throw e}}},abort:function(){if(callback){callback()}}}}}));jQuery.ajaxPrefilter((function(s){if(s.crossDomain){s.contents.script=false}}));jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(text){jQuery.globalEval(text);return text}}});jQuery.ajaxPrefilter("script",(function(s){if(s.cache===undefined){s.cache=false}if(s.crossDomain){s.type="GET"}}));jQuery.ajaxTransport("script",(function(s){if(s.crossDomain||s.scriptAttrs){var script,callback;return{send:function(_,complete){script=jQuery("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",callback=function(evt){script.remove();callback=null;if(evt){complete(evt.type==="error"?404:200,evt.type)}});document.head.appendChild(script[0])},abort:function(){if(callback){callback()}}}}}));var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+nonce.guid++;this[callback]=true;return callback}});jQuery.ajaxPrefilter("json jsonp",(function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName)}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName}s.converters["script json"]=function(){if(!responseContainer){jQuery.error(callbackName+" was not called")}return responseContainer[0]};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments};jqXHR.always((function(){if(overwritten===undefined){jQuery(window).removeProp(callbackName)}else{window[callbackName]=overwritten}if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName)}if(responseContainer&&isFunction(overwritten)){overwritten(responseContainer[0])}responseContainer=overwritten=undefined}));return"script"}}));support.createHTMLDocument=function(){var body=document.implementation.createHTMLDocument("").body;body.innerHTML="<form></form><form></form>";return body.childNodes.length===2}();jQuery.parseHTML=function(data,context,keepScripts){if(typeof data!=="string"){return[]}if(typeof context==="boolean"){keepScripts=context;context=false}var base,parsed,scripts;if(!context){if(support.createHTMLDocument){context=document.implementation.createHTMLDocument("");base=context.createElement("base");base.href=document.location.href;context.head.appendChild(base)}else{context=document}}parsed=rsingleTag.exec(data);scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])]}parsed=buildFragment([data],context,scripts);if(scripts&&scripts.length){jQuery(scripts).remove()}return jQuery.merge([],parsed.childNodes)};jQuery.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");if(off>-1){selector=stripAndCollapse(url.slice(off));url=url.slice(0,off)}if(isFunction(params)){callback=params;params=undefined}else if(params&&typeof params==="object"){type="POST"}if(self.length>0){jQuery.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done((function(responseText){response=arguments;self.html(selector?jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector):responseText)})).always(callback&&function(jqXHR,status){self.each((function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR])}))})}return this};jQuery.expr.pseudos.animated=function(elem){return jQuery.grep(jQuery.timers,(function(fn){return elem===fn.elem})).length};jQuery.offset={setOffset:function(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=jQuery.css(elem,"position"),curElem=jQuery(elem),props={};if(position==="static"){elem.style.position="relative"}curOffset=curElem.offset();curCSSTop=jQuery.css(elem,"top");curCSSLeft=jQuery.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0}if(isFunction(options)){options=options.call(elem,i,jQuery.extend({},curOffset))}if(options.top!=null){props.top=options.top-curOffset.top+curTop}if(options.left!=null){props.left=options.left-curOffset.left+curLeft}if("using"in options){options.using.call(elem,props)}else{curElem.css(props)}}};jQuery.fn.extend({offset:function(options){if(arguments.length){return options===undefined?this:this.each((function(i){jQuery.offset.setOffset(this,options,i)}))}var rect,win,elem=this[0];if(!elem){return}if(!elem.getClientRects().length){return{top:0,left:0}}rect=elem.getBoundingClientRect();win=elem.ownerDocument.defaultView;return{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset}},position:function(){if(!this[0]){return}var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if(jQuery.css(elem,"position")==="fixed"){offset=elem.getBoundingClientRect()}else{offset=this.offset();doc=elem.ownerDocument;offsetParent=elem.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.parentNode}if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){parentOffset=jQuery(offsetParent).offset();parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true);parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true)}}return{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true)}},offsetParent:function(){return this.map((function(){var offsetParent=this.offsetParent;while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){offsetParent=offsetParent.offsetParent}return offsetParent||documentElement}))}});jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(method,prop){var top="pageYOffset"===prop;jQuery.fn[method]=function(val){return access(this,(function(elem,method,val){var win;if(isWindow(elem)){win=elem}else if(elem.nodeType===9){win=elem.defaultView}if(val===undefined){return win?win[prop]:elem[method]}if(win){win.scrollTo(!top?val:win.pageXOffset,top?val:win.pageYOffset)}else{elem[method]=val}}),method,val,arguments.length)}}));jQuery.each(["top","left"],(function(_i,prop){jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition,(function(elem,computed){if(computed){computed=curCSS(elem,prop);return rnumnonpx.test(computed)?jQuery(elem).position()[prop]+"px":computed}}))}));jQuery.each({Height:"height",Width:"width"},(function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},(function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return access(this,(function(elem,type,value){var doc;if(isWindow(elem)){return funcName.indexOf("outer")===0?elem["inner"+name]:elem.document.documentElement["client"+name]}if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])}return value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)}),type,chainable?margin:undefined,chainable)}}))}));jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(_i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}}));jQuery.fn.extend({bind:function(types,data,fn){return this.on(types,null,data,fn)},unbind:function(types,fn){return this.off(types,null,fn)},delegate:function(selector,types,data,fn){return this.on(types,selector,data,fn)},undelegate:function(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn)},hover:function(fnOver,fnOut){return this.mouseenter(fnOver).mouseleave(fnOut||fnOver)}});jQuery.each(("blur focus focusin focusout resize scroll click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup contextmenu").split(" "),(function(_i,name){jQuery.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name)}}));var rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;jQuery.proxy=function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp}if(!isFunction(fn)){return undefined}args=slice.call(arguments,2);proxy=function(){return fn.apply(context||this,args.concat(slice.call(arguments)))};proxy.guid=fn.guid=fn.guid||jQuery.guid++;return proxy};jQuery.holdReady=function(hold){if(hold){jQuery.readyWait++}else{jQuery.ready(true)}};jQuery.isArray=Array.isArray;jQuery.parseJSON=JSON.parse;jQuery.nodeName=nodeName;jQuery.isFunction=isFunction;jQuery.isWindow=isWindow;jQuery.camelCase=camelCase;jQuery.type=toType;jQuery.now=Date.now;jQuery.isNumeric=function(obj){var type=jQuery.type(obj);return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj))};jQuery.trim=function(text){return text==null?"":(text+"").replace(rtrim,"")};if(typeof define==="function"&&define.amd){define("jquery",[],(function(){return jQuery}))}var _jQuery=window.jQuery,_$=window.$;jQuery.noConflict=function(deep){if(window.$===jQuery){window.$=_$}if(deep&&window.jQuery===jQuery){window.jQuery=_jQuery}return jQuery};if(typeof noGlobal==="undefined"){window.jQuery=window.$=jQuery}return jQuery}));(function(){if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including keyboard.js!")}else{var _is_old_ie=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9;CPANEL.keyboard={NUMERIC:/[0-9]/,LOWER_CASE_ALPHA:/[a-z]/,UPPER_CASE_ALPHA:/[A-Z]/,ALPHA:/[a-zA-Z]/,ALPHA_NUMERIC:/[a-zA-Z0-9]/,_onKeyPressAcceptValues:function(e,charReg){if(!charReg){return true}if(!_is_old_ie&&!e.charCode){return true}var charCode=EVENT.getCharCode(e);var keyChar=String.fromCharCode(charCode);return charReg.test(keyChar)},isReturnKey:function(e){return EVENT.getCharCode(e)==13},allowNumericKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.NUMERIC);if(!ok){EVENT.preventDefault(e)}return ok},allowLowerCaseAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.LOWER_CASE_ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowUpperCaseAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.UPPER_CASE_ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowAlphaKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.ALPHA);if(!ok){EVENT.preventDefault(e)}return ok},allowAlphaNumericKey:function(e){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,CPANEL.keyboard.ALPHA_NUMERIC);if(!ok){EVENT.preventDefault(e)}return ok},allowPatternKey:function(e,charReg){var ok=CPANEL.keyboard._onKeyPressAcceptValues(e,charReg);if(!ok){EVENT.preventDefault(e)}return ok}}}})();if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including json.js!")}else if(typeof YAHOO.lang.JSON=="undefined"||!YAHOO.lang.JSON){alert("You must include the YUI JSON library before including json.js!")}else{var NativeJson=Object.prototype.toString.call(this.JSON)==="[object JSON]"&&this.JSON;CPANEL.json={fastJsonParse:function(s,reviver){return NativeJson?NativeJson.parse(s,reviver):YAHOO.lang.JSON.parse(s,reviver)}}}CPANEL.nvdata={page_key:location.pathname.replace(new RegExp("^"+CPANEL.security_token),"").replace(/\//g,"_"),register:function(key,getter,args,override){if(!getter){delete CPANEL.nvdata._getters[key]}else if(!args){CPANEL.nvdata._getters[key]=getter}else if(!override){CPANEL.nvdata._getters[key]=getter.bind(window,args)}else{CPANEL.nvdata._getters[key]=getter.bind(args)}},_getters:{},get_page_nvdata:function(){var page_nvdata={};for(var key in CPANEL.nvdata._getters){page_nvdata[key]=CPANEL.nvdata._getters[key]()}return page_nvdata},save:function(key,value){if(!CPANEL.api){throw"Load api.js."}if(!key){key=key||CPANEL.nvdata.page_key;value=YAHOO.lang.JSON.stringify(CPANEL.nvdata.get_page_nvdata())}else if(typeof key==="object"){value=YAHOO.lang.JSON.stringify(key);key=CPANEL.nvdata.page_key}else if(!value){value=YAHOO.lang.JSON.stringify(CPANEL.nvdata.get_page_nvdata())}if(/^wh/i.test(CPANEL.application)){return CPANEL.api({func:"nvset",data:{key1:key,value1:value}})}else{var data={names:key};data[key]=value;return CPANEL.api({module:"NVData",func:"set",data:data})}},set:function(key,value){var api2_call={cpanel_jsonapi_version:2,cpanel_jsonapi_module:"NVData",cpanel_jsonapi_func:"set",names:key};api2_call[key]=value;var callback={success:function(o){},failure:function(o){}};YAHOO.util.Connect.asyncRequest("GET",CPANEL.urls.json_api(api2_call),callback,"")}};if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including panels.js!")}else{CPANEL.panels={help_panels:{},create_help:function(panel_el,help_el){panel_el=YAHOO.util.Dom.get(panel_el);help_el=YAHOO.util.Dom.get(help_el);if(this.help_panels[panel_el.id]){this.help_panels[panel_el.id].destroy()}var panel_id=panel_el.id+"_yuipanel";var panel_options={width:"300px",visible:false,draggable:false,close:false,context:[panel_el.id,"tl","br",["beforeShow","windowResize",CPANEL.align_panels_event]],effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.25}};this.help_panels[panel_el.id]=new YAHOO.widget.Panel(panel_id,panel_options);this.help_panels[panel_el.id].setBody(help_el.innerHTML);var close_div_id=panel_el.id+"_yuipanel_close_div";var close_link_id=panel_el.id+"_yuipanel_close_link";var footer='<div style="text-align: right">';footer+='<a id="'+close_link_id+'" href="javascript:void(0);">'+LOCALE.maketext("Close")+"</a>";footer+="</div>";this.help_panels[panel_el.id].setFooter(footer);this.help_panels[panel_el.id].render(document.body);this.help_panels[panel_el.id].showEvent.subscribe((function(){YAHOO.util.Dom.get(close_link_id).focus()}));YAHOO.util.Dom.addClass(panel_id,"help_panel");YAHOO.util.Event.on(close_link_id,"click",(function(){CPANEL.panels.toggle_help(panel_el.id)}));YAHOO.util.Event.on(panel_el.id,"click",(function(){CPANEL.panels.toggle_help(panel_el.id)}))},toggle_help:function(el){if(this.help_panels[el].cfg.getProperty("visible")===true){this.help_panels[el].hide()}else{this.hide_all_help();this.help_panels[el].show()}},show_help:function(el){this.help_panels[el].show()},hide_help:function(el){this.help_panels[el].hide()},hide_all_help:function(){for(var i in this.help_panels){this.help_panels[i].hide()}}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including password.js!")}else{if(!window.LOCALE){window.LOCALE=new CPANEL.Locale}CPANEL.password={setup:function(password1_el,password2_el,strength_bar_el,password_strength,create_strong_el,why_strong_link_el,why_strong_text_el,min_length){if(YAHOO.util.Dom.inDocument(password1_el)==false){alert("CPANEL.password.setup error: password1_el argument does not exist in the DOM!")}if(YAHOO.util.Dom.inDocument(password2_el)==false){alert("CPANEL.password.setup error: password2_el argument does not exist in the DOM!")}if(YAHOO.util.Dom.inDocument(strength_bar_el)==false){alert("CPANEL.password.setup error: strength_bar_el argument does not exist in the DOM!")}if(CPANEL.validate.positive_integer(password_strength)==false&&password_strength!=-1){alert("CPANEL.password.setup error: password strength is not a positive integer!")}if(typeof min_length=="undefined"||CPANEL.validate.integer(min_length)==false){min_length=5}var password_bar=new CPANEL.password.strength_bar(strength_bar_el);var verify_password_strength=function(){if(password_bar.current_strength>=password_strength){return true}return false};password_bar.attach(password1_el,(function(){strength_validator.verify()}));var strength_validator=new CPANEL.validate.validator(LOCALE.maketext("Password Strength"));if(password_strength!=-1){strength_validator.add(password1_el,"min_length(%input%, 1)",LOCALE.maketext("Password cannot be empty."))}if(min_length>0){strength_validator.add(password1_el,"min_length(%input%,"+min_length+")",LOCALE.maketext("Passwords must be at least [quant,_1,character,characters] long.",min_length))}if(password_strength>0){strength_validator.add(password1_el,verify_password_strength,LOCALE.maketext("Password strength must be at least [numf,_1].",password_strength))}strength_validator.attach();var matching_validator=new CPANEL.validate.validator(LOCALE.maketext("Passwords Match"));matching_validator.add(password2_el,"equals('"+password1_el+"', '"+password2_el+"')",LOCALE.maketext("Passwords do not match."));matching_validator.attach();if(YAHOO.util.Dom.inDocument(create_strong_el)==true){var fill_in_strong_password=function(strong_pass){YAHOO.util.Dom.get(password1_el).value=strong_pass;YAHOO.util.Dom.get(password2_el).value=strong_pass;matching_validator.verify();password_bar.check_strength(password1_el,(function(){strength_validator.verify()}))};YAHOO.util.Event.on(create_strong_el,"click",(function(){CPANEL.password.generate_password(fill_in_strong_password)}))}if(YAHOO.util.Dom.inDocument(why_strong_link_el)==true&&YAHOO.util.Dom.inDocument(why_strong_text_el)==true){CPANEL.panels.create_help(why_strong_link_el,why_strong_text_el)}return[strength_validator,matching_validator]},strength_bar:function(el){this.ajax_request;if(YAHOO.util.Dom.inDocument(el)==false){alert("Failed to initialize password strength bar."+"\n"+"Could not find "+el+" in the DOM.")}this.strength_bar_el=YAHOO.util.Dom.get(el);this.current_strength=0;CPANEL.password.show_strength_bar(this.strength_bar_el,0);this.attach=function(input_el,callback_function){if(YAHOO.util.Dom.inDocument(input_el)==false){alert("Failed to attach strength bar object.\n Could not find "+input_el+"in the DOM.")}else{if(typeof callback_function==="undefined"){callback_function=function(){}}var callback_args={input_el:input_el,func:callback_function};if(CPANEL.dom.has_oninput){EVENT.on(input_el,"input",oninput_listener,callback_args)}else{EVENT.on(input_el,"keyup",oninput_listener,callback_args);EVENT.on(input_el,"change",oninput_listener,callback_args);EVENT.on(input_el,"paste",(function(){var that=this,args=arguments;setTimeout((function(){oninput_listener.apply(that,args)}),5)}),callback_args)}}};this.destroy=function(){this.strength_bar_el.innerHTML="";this.current_strength=0};this.check_strength=function(input_el,callback_function){_check_strength(null,{input_el:input_el,func:callback_function})};var that=this;var pw_strength_timeout;var oninput_listener=function(e,o){clearTimeout(pw_strength_timeout);if(YAHOO.util.Connect.isCallInProgress(that.ajax_request)){YAHOO.util.Connect.abort(that.ajax_request)}var password=DOM.get(o.input_el).value;if(password in cached_strengths){that.current_strength=cached_strengths[password];_update_strength_bar(cached_strengths[password]);o.func()}else{pw_strength_timeout=setTimeout((function(){_check_strength(e,o)}),CPANEL.password.keyup_delay_ms)}};var cached_strengths={"":0};var _check_strength=function(e,o){_update_strength_bar(null);var password=YAHOO.util.Dom.get(o.input_el).value;var callback={success:function(o2){try{var response=YAHOO.lang.JSON.parse(o2.responseText)}catch(e){alert("JSON Parse Error: Please refresh the page and try again.");return}var strength=parseInt(response.strength);if(strength<0){strength=0}else if(strength>100){strength=100}cached_strengths[password]=strength;that.current_strength=strength;_update_strength_bar(strength);o.func()},failure:function(o2){var error='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px"><tr>';error+='<td style="padding: 0px; margin: 0px; text-align: center" valign="middle">AJAX Error: Try Again</td>';error+="</tr></table>";YAHOO.util.Dom.get(that.strength_bar_el).innerHTML=error}};if(YAHOO.util.Connect.isCallInProgress(that.ajax_request)){YAHOO.util.Connect.abort(that.ajax_request)}var url=CPANEL.urls.password_strength();that.ajax_request=YAHOO.util.Connect.asyncRequest("POST",url,callback,"password="+encodeURIComponent(password))};var _update_strength_bar=function(strength){CPANEL.password.show_strength_bar(that.strength_bar_el,strength)}},show_strength_bar:function(el,strength){el=YAHOO.util.Dom.get(el);var phrase,color;if(strength===null){phrase=LOCALE.maketext("Loading …")}else if(strength>=80){phrase=LOCALE.maketext("Very Strong");color="#8FFF00"}else if(strength>=60){phrase=LOCALE.maketext("Strong");color="#C5FF00"}else if(strength>=40){phrase=LOCALE.maketext("OK");color="#F1FF4D"}else if(strength>=20){phrase=LOCALE.maketext("Weak");color="#FF9837"}else if(strength>=0){phrase=LOCALE.maketext("Very Weak");color="#FF0000"}var html;html='<div style="position: relative; width: 100%; height: 100%">';html+='<div style="position: absolute; left: 0px; width: 100%; height: 100%; text-align: center; z-index: 1; padding: 0px; margin: 0px'+(strength===null?"; font-style:italic; color:graytext":"")+'">';html+='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px"><tr style="padding: 0px; margin: 0px"><td valign="middle" style="padding: 0px; margin: 0px">'+phrase+(strength!==null?" ("+strength+"/100)":"")+"</td></tr></table>";html+="</div>";if(strength!==null){html+='<div style="position: absolute; left: 0px; width: '+strength+"%; height: 100%; background-color: "+color+';"></div>'}html+="</div>";el.innerHTML=html},keyup_delay_ms:500,create_password:function(options){var length;if(CPANEL.validate.positive_integer(options.length)===false){length=16}else{length=options.length}var uppercase="ABCDEFGHIJKLMNOPQRSTUVWXYZ";var lowercase="abcdefghijklmnopqrstuvwxyz";var numbers="0123456789";var symbols="!@#$%^&*()-_=+{}[];,.?~";var chars="";if(options.uppercase==true){chars+=uppercase}if(options.lowercase==true){chars+=lowercase}if(options.numbers==true){chars+=numbers}if(options.symbols==true){chars+=symbols}var password="";for(var i=0;i<length;i++){var rnum=Math.floor(Math.random()*chars.length);password+=chars.substring(rnum,rnum+1)}return password},generate_password:function(use_password_function,length){var default_options={length:16,uppercase:true,lowercase:true,numbers:true,symbols:true};var password=this.create_password(default_options);if(YAHOO.util.Dom.inDocument("generate_password_panel")==true){var remove_me=YAHOO.util.Dom.get("generate_password_panel");YAHOO.util.Event.purgeElement(remove_me,true);remove_me.parentNode.removeChild(remove_me)}var panel_options={width:"380px",fixedcenter:true,close:true,draggable:false,zindex:1e3,visible:true,modal:true,postmethod:"manual",hideaftersubmit:false,strings:{close:LOCALE.maketext("Close")},buttons:[{text:LOCALE.maketext("Use Password"),handler:function(){this.submit()}},{text:LOCALE.maketext("Cancel"),handler:function(){this.cancel()}}],effect:{effect:CPANEL.animate.ContainerEffect.FADE_MODAL,duration:.25}};var panel=new YAHOO.widget.Dialog("generate_password_panel",panel_options);panel.renderEvent.subscribe((function(){var buttons=this.getButtons();YAHOO.util.Dom.addClass(buttons[0],"input-button disabled");YAHOO.util.Dom.addClass(buttons[1],"input-button")}));var header='<div class="header"><div class="lt"></div>';header+="<span>"+LOCALE.maketext("Password Generator")+"</span>";header+='<div class="rt"></div></div>';panel.setHeader(header);var body='<div id="generate_password_body_div">';body+='<table id="generate_password_table">';body+="<tr>";body+='<td><input id="generate_password_input_field" type="text" value="'+password+'" size="27"  /></td>';body+="</tr>";body+="<tr>";body+='<td><input type="button" class="input-button btn btn-primary" value="'+LOCALE.maketext("Generate Password")+'" id="generate_password_reload" /></td>';body+="</tr>";body+="<tr>";body+='<td><span class="action_link" id="generate_password_toggle_advanced_options">'+LOCALE.maketext("Advanced Options")+" &raquo;</span>";body+='<div id="generate_password_advanced_options" style="display: none"><table style="width: 100%">';body+="<tr>";body+='<td colspan="2">'+LOCALE.maketext("Length")+': <input type="text" id="generate_password_length" size="2" maxlength="2" value="16" /> (10-18)</td>';body+="</tr>";body+="<tr>";body+='<td width="50%">'+LOCALE.maketext("Alpha Characters")+":</td>";body+='<td width="50%">'+LOCALE.maketext("Non Alpha Characters")+":</td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_mixed_alpha" checked="checked" /> <label for="generate_password_mixed_alpha">'+LOCALE.maketext("Both")+" (aBcD)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_mixed_nonalpha" checked="checked" /> <label for="generate_password_mixed_nonalpha">'+LOCALE.maketext("Both")+" (1@3$)</label></td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_lowercase" /> <label for="generate_password_lowercase">'+LOCALE.maketext("Lowercase")+" (abc)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_numbers" /> <label for="generate_password_numbers">'+LOCALE.maketext("Numbers")+" (123)</label></td>";body+="</tr><tr>";body+='<td><input type="radio" name="generate_password_alpha" id="generate_password_uppercase" /> <label for="generate_password_uppercase">'+LOCALE.maketext("Uppercase")+" (ABC)</label></td>";body+='<td><input type="radio" name="generate_password_nonalpha" id="generate_password_symbols" /> <label for="generate_password_symbols">'+LOCALE.maketext("Symbols")+" (@#$)</label></td>";body+="</tr>";body+="</table></div>";body+="</td></tr></table>";body+='<p><input type="checkbox" id="generate_password_confirm" /> <label for="generate_password_confirm">'+LOCALE.maketext("I have copied this password in a safe place.")+"</label></p>";body+="</div>";panel.setBody(body);panel.render(document.body);if(CPANEL.password.fade_from){CPANEL.password.fade_from.fade_to(panel)}YAHOO.util.Dom.get("generate_password_confirm").checked=false;panel.validate=function(){return DOM.get("generate_password_confirm").checked};panel.submitEvent.subscribe((function(){use_password_function(YAHOO.util.Dom.get("generate_password_input_field").value);this.cancel()}));panel.cancelEvent.subscribe((function(){if(CPANEL.password.fade_from){panel.fade_to(CPANEL.password.fade_from)}}));panel.hideEvent.subscribe(panel.destroy,panel,true);YAHOO.util.Event.on("generate_password_confirm","click",(function(){this.checked?YAHOO.util.Dom.removeClass(panel.getButtons()[0],"disabled"):YAHOO.util.Dom.addClass(panel.getButtons()[0],"disabled")}));YAHOO.util.Event.on("generate_password_input_field","click",(function(){YAHOO.util.Dom.get("generate_password_input_field").select()}));YAHOO.util.Event.on("generate_password_toggle_advanced_options","click",(function(){CPANEL.animate.slide_toggle("generate_password_advanced_options")}));var get_password_options=function(){var options={};var length_el=YAHOO.util.Dom.get("generate_password_length");var length=length_el.value;if(CPANEL.validate.positive_integer(length)==false){length=16}else if(length<10){length=10}else if(length>18){length=18}length_el.value=length;options.length=length;if(YAHOO.util.Dom.get("generate_password_mixed_alpha").checked==true){options.uppercase=true;options.lowercase=true}else{options.uppercase=YAHOO.util.Dom.get("generate_password_uppercase").checked;options.lowercase=YAHOO.util.Dom.get("generate_password_lowercase").checked}if(YAHOO.util.Dom.get("generate_password_mixed_nonalpha").checked==true){options.numbers=true;options.symbols=true}else{options.numbers=YAHOO.util.Dom.get("generate_password_numbers").checked;options.symbols=YAHOO.util.Dom.get("generate_password_symbols").checked}return options};var generate_new_password=function(){YAHOO.util.Dom.get("generate_password_input_field").value=CPANEL.password.create_password(get_password_options())};if(this.beforeExtendPanel){this.beforeExtendPanel();YAHOO.util.Dom.get("generate_password_input_field").value=CPANEL.password.create_password(get_password_options())}YAHOO.util.Event.on("generate_password_reload","click",generate_new_password);var password_options=["generate_password_mixed_alpha","generate_password_uppercase","generate_password_lowercase","generate_password_mixed_nonalpha","generate_password_numbers","generate_password_symbols"];YAHOO.util.Event.on(password_options,"change",generate_new_password)}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including urls.js!")}else{CPANEL.urls={password_strength:function(){return CPANEL.security_token+"/backend/passwordstrength.cgi"},json_api:function(object){var query_string="";for(var item in object){if(object.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(object[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/json-api/cpanel?"+query_string},uapi:function(module,func,args){var query_string="";for(var item in args){if(args.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(args[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/execute/"+module+"/"+func+"?"+query_string},whm_api:function(script,params,api_mode){if(!api_mode){api_mode="json-api"}else if(api_mode=="xml"){api_mode="xml-api"}var query_string="";for(var item in params){if(params.hasOwnProperty(item)){query_string+=encodeURIComponent(item)+"="+encodeURIComponent(params[item])+"&"}}query_string+="cache_fix="+(new Date).getTime();return CPANEL.security_token+"/"+api_mode+"/"+script+"?"+query_string}}}if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including util.js!")}else{if(!("util"in CPANEL)){CPANEL.util={}}(function(){var _wrap_template='<wbr><span class="wbr"></span>';var _wrap_callback=function(match){return match.html_encode()+_wrap_template};var IGNORE_KEY_CODES={9:true,13:true,16:true,17:true,18:true};var STOP_TYPING_TIMEOUT=500;YAHOO.lang.augmentObject(CPANEL.util,{byte_length:typeof Blob!=="undefined"?function byte_length(str){return new Blob([str]).size}:function byte_length(str){return unescape(encodeURIComponent(str)).length},catch_enter:function(els,func){if(typeof func=="string"){var submit_button=func;var press_button=function(){YAHOO.util.Dom.get(submit_button).click()};func=press_button}var _catch_enter=function(e,o){var key=YAHOO.util.Event.getCharCode(e);if(key==13){o.func.call(this,e)}};YAHOO.util.Event.on(els,"keydown",_catch_enter,{func:func})},countdown_timeouts:[],countdown:function(el,after_func,args){var seconds_el=YAHOO.util.Dom.get(el);if(!seconds_el){return}var second_decrease=function(){if(seconds_el){var seconds=parseInt(seconds_el.innerHTML);if(seconds==0){after_func(args)}else{seconds_el.innerHTML=seconds-1;CPANEL.util.countdown_timeouts[seconds_el.id]=setTimeout(second_decrease,1e3)}}};clearTimeout(this.countdown_timeouts[seconds_el.id]);this.countdown_timeouts[seconds_el.id]=setTimeout(second_decrease,1e3);return this.countdown_timeouts[seconds_el.id]},zebra:function(els,rowA,rowB,group_size){if(!rowA){rowA="rowA"}if(!rowB){rowB="rowB"}if(!group_size){group_size=1}if(YAHOO.lang.isArray(els)==false){var el=els;els=[el]}var row=rowA;var group_count=0;for(var i=0;i<els.length;i++){var table=YAHOO.util.Dom.get(els[i]);var rows=YAHOO.util.Dom.getElementsByClassName("zebra","",table);for(var j=0;j<rows.length;j++){YAHOO.util.Dom.removeClass(rows[j],rowA);YAHOO.util.Dom.removeClass(rows[j],rowB);YAHOO.util.Dom.addClass(rows[j],row);group_count++;if(group_count==group_size){group_count=0;row=row==rowA?rowB:rowA}}}},convert_breaklines:function(str){return str.replace(/\n/,"<br />")},HTML_WRAP:_wrap_template,wrap_string_after_pattern_and_html_encode:function(string,pattern){return string.replace(pattern,_wrap_callback)},get_radio_value:function(name,root){if(!root){alert("Please provide a root element for the get_radio_value function to make it faster.")}var inputs=YAHOO.util.Dom.getElementsBy((function(el){return YAHOO.util.Dom.getAttribute(el,"name")==name}),"input",root);for(var i=0;i<inputs.length;i++){if(inputs[i].checked){return inputs[i].value}}return false},toggle_more_less:function(toggle_el,text_el,state){toggle_el=YAHOO.util.Dom.get(toggle_el);text_el=YAHOO.util.Dom.get(text_el);if(!toggle_el||!text_el){alert("You passed non-existent elements to the CPANEL.util.toggle_more_less function.");return}if(!state){if(YAHOO.util.Dom.getStyle(text_el,"display")=="none"){state="more"}}if(state=="more"){CPANEL.animate.slide_down(text_el,(function(){toggle_el.innerHTML=LOCALE.maketext("less »");CPANEL.align_panels_event.fire()}))}else{CPANEL.animate.slide_up(text_el,(function(){toggle_el.innerHTML=LOCALE.maketext("more »");CPANEL.align_panels_event.fire()}))}},keys:function(object){var obj_keys=[];for(var key in object){obj_keys.push(key)}return obj_keys},values:function(object){var obj_values=[];for(var key in object){obj_values.push(object[key])}return obj_values},operating_system:function(){if(navigator.userAgent.search(/Win/)!=-1){return"Windows"}if(navigator.userAgent.search(/Mac/)!=-1){return"Mac"}if(navigator.userAgent.search(/Linux/)!=-1){return"Linux"}return"Unknown"},toggle_unlimited:function(clicked_el,el_to_disable){clicked_el=YAHOO.util.Dom.get(clicked_el);el_to_disable=YAHOO.util.Dom.get(el_to_disable);if(clicked_el.tagName.toLowerCase()!="input"||el_to_disable.tagName.toLowerCase()!="input"){alert("Error in CPANEL.util.toggle_unlimited() function:\nInput arguments are not of type <input />");return}if(clicked_el.type.toLowerCase()=="text"){YAHOO.util.Dom.removeClass(clicked_el,"disabled_text_input");el_to_disable.checked=false}else{clicked_el.checked=true;YAHOO.util.Dom.addClass(el_to_disable,"disabled_text_input")}},value_or_unlimited:function(text_input_el,radio_el,validation){text_input_el=YAHOO.util.Dom.get(text_input_el);radio_el=YAHOO.util.Dom.get(radio_el);YAHOO.util.Event.on(text_input_el,"focus",(function(){radio_el.checked=false;YAHOO.util.Dom.removeClass(text_input_el,"cjt_disabled_input");validation.verify()}));YAHOO.util.Event.on(radio_el,"click",(function(){radio_el.checked=true;YAHOO.util.Dom.addClass(text_input_el,"cjt_disabled_input");validation.verify()}))},clone:function(obj){var temp=YAHOO.lang.JSON.stringify(obj);return YAHOO.lang.JSON.parse(temp)},prevent_submit:function(elem){elem=YAHOO.util.Dom.get(elem);var stop_propagation=function(e){var key_code=YAHOO.util.Event.getCharCode(e);if(key_code==13){YAHOO.util.Event.preventDefault(e)}};YAHOO.util.Event.addListener(elem,"keypress",stop_propagation);YAHOO.util.Event.addListener(elem,"keydown",stop_propagation)},get_text_content:function(){var lookup_property=CPANEL.has_text_content?"textContent":"innerText";this.get_text_content=function(el){if(typeof el==="string"){el=document.getElementById(el)}return el[lookup_property]};return this.get_text_content.apply(this,arguments)},set_text_content:function(){var lookup_property=CPANEL.has_text_content?"textContent":"innerText";this.set_text_content=function(el,value){if(typeof el==="string"){el=document.getElementById(el)}return el[lookup_property]=value};return this.set_text_content.apply(this,arguments)},on_stop_typing:function(el,callback,obj,context_override){el=DOM.get(el);var my_callback=function(){if(context_override&&obj){return function(e){callback.call(obj,e)}}else if(obj){return function(e){callback.call(el,e,obj)}}else{return function(e){callback.call(el,e)}}}();var search_timeout=null;EVENT.on(el,"keyup",(function(e){if(!(e.keyCode in IGNORE_KEY_CODES)){clearTimeout(search_timeout);search_timeout=setTimeout(my_callback,STOP_TYPING_TIMEOUT)}}));EVENT.on(el,"keydown",(function(e){if(!(e.keyCode in IGNORE_KEY_CODES)){clearTimeout(search_timeout)}}))},make_query_string:function(data){var query_string_parts=[];for(var key in data){var value=data[key];if(value!==null&&value!==undefined){var encoded_key=encodeURIComponent(key);if(YAHOO.lang.isArray(value)){for(var cv=0;cv<value.length;cv++){query_string_parts.push(encoded_key+"="+encodeURIComponent(value[cv]))}}else{query_string_parts.push(encoded_key+"="+encodeURIComponent(value))}}}return query_string_parts.join("&")},parse_query_string:function(qstr){if(qstr===undefined){qstr=location.search.replace(/^\?/,"")}var parsed={};if(qstr){var pairs=qstr.match(/([^=&]*=[^=&]*)/g);var plen=pairs.length;if(pairs&&pairs.length){for(var p=0;p<plen;p++){var key_val=pairs[p].split(/=/).map(decodeURIComponent);var key=key_val[0].replace(/\+/g," ");if(key in parsed){if(typeof parsed[key]!=="string"){parsed[key].push(key_val[1].replace(/\+/g," "))}else{parsed[key]=[parsed[key_val[0]],key_val[1].replace(/\+/g," ")]}}else{parsed[key]=key_val[1].replace(/\+/g," ")}}}}return parsed},get_numbers_from_string:function(str){str=""+str;var numbers=str.replace(/\D/g,"");numbers=parseInt(numbers);return numbers}})})()}if(typeof CPANEL==="undefined"||!CPANEL){alert("You must include the CPANEL global object before including ui/widgits/pager.js!")}else{(function(){CPANEL.namespace("CPANEL.ui.widgets");if(typeof CPANEL.ui.widgets.pager==="undefined"){var PagerActions={CHANGE_PAGE_SIZE:1,GO_TO_PAGE:2,SHOW_ALL:4,CLEAR_FILTER:8,CLEAR_SORT:16,CHANGE_FILTER:32,CHANGE_SORT:64};var PagerManager=function(){this.cache={}};PagerManager.prototype={initialize:function(scope,url,params,method,callbacks){var container={url:url||"",params:params||{},method:method||"GET",callbacks:{}};if(callbacks){if(callbacks.beforeAction){container.callback.beforeAction=callbacks.beforeAction}if(callbacks.afterAction){container.callback.afterAction=callbacks.afterAction}}this.cache[scope]=container},setCallback:function(scope,callbacks){var container=this.cache[scope];if(container&&callbacks){if(callbacks.beforeAction){container.callback.beforeAction=callbacks.beforeAction}if(callbacks.afterAction){container.callback.afterAction=callbacks.afterAction}}},setParameters:function(scope,params){if(params){var container=this.cache[scope];for(var p in params){container.params[p]=params[p]}}},getParameters:function(scope,params){var output={};if(params){var container=this.cache[scope];for(var i=0,l=params.length;i<l;i++){var key=params[i];output[key]=container.params[key]}}return output},setParameter:function(scope,name,value){var container=this.cache[scope];container.params[name]=value},getParameter:function(scope,name){var container=this.cache[scope];return container.params[name]},fireGoToPage:function(scope,start,page,skip){var container=this.cache[scope];container.params["api2_paginate_start"]=start;container.params["page"]=page;container.params["skip"]=skip;return this.fireAction(scope,container,PagerActions.GO_TO_PAGE)},fireChangePageSize:function(scope,itemsperpage,submit){var container=this.cache[scope];container.params["itemsperpage"]=itemsperpage;if(submit){return this.fireAction(scope,container,PagerActions.CHANGE_PAGE_SIZE)}return true},fireShowAll:function(scope,clearFilterSort){var container=this.cache[scope];container.params["viewall"]=clearFilterSort?"1":"0";return this.fireAction(scope,container,clearFilterSort?PagerActions.SHOW_ALL|PagerActions.CLEAR_FILTER|PagerActions.CLEAR_SORT:PagerActions.SHOW_ALL)},fireChangeFilter:function(scope,searchregex,params){var container=this.cache[scope];container.params["searchregex"]=searchregex;for(var p in params){container.params[p]=params[p]}return this.fireAction(scope,container,PagerActions.CHANGE_FILTER)},fireChangeSort:function(scope,column,direction,params){var container=this.cache[scope];container.params["api2_sort_column"]=column;container.params["api2_sort_reverse"]=direction;for(var p in params){container.params[p]=params[p]}return this.fireAction(scope,container,PagerActions.CHANGE_SORT)},fireAction:function(scope,container,action){var cancel=false;if(container.callbacks["beforeAction"]){cancel=container.callbacks["beforeAction"](scope,container,action)}if(cancel){return false}var href=container.href||window.location.href.split("?")[0];if(container.method=="GET"){window.location=this._makeQuery(href,this._getQuery(container))}else if(container.method==="POST"){var form=this._buildForm(url,container.params);if(form){form.submit()}}if(container.callbacks["afterAction"]){container.callbacks["afterAction"](scope,container,action)}return true},getQuery:function(scope){var container=this.cache[scope];return this._getQuery(container)},_getQuery:function(container){return this._serialize(container.params)},_makeQuery:function(url,query){return url+(query?"?"+query:"")},_buildForm:function(url,params){var form=document.createElement("form");form.href=url;form.method="POST";form.id=scope+"-page-form";for(var param in params){if(typeof param==="string"){var input=document.createElement("input");input.type="hidden";input.id=scope+"-page-param-"+param;input.name=param;input.value=params[param];form.appendChild(input)}}var oldForm=document.getElementById(form.id);if(oldForm){this._removeElement(oldForm)}document.appendChild(form);return form},_serialize:function(obj){var str=[];for(var p in obj)str.push(encodeURIComponent(p)+"="+encodeURIComponent(obj[p]));return str.join("&")},_removeElement:function(el){var parent=el.parentNode;if(parent){parent.removeChild(el)}}};CPANEL.ui.widgets.PagerActions=PagerActions;CPANEL.ui.widgets.pager=new PagerManager}})()}(function(){"use strict";function _log(text){if(window.console&&window.console.log){window.console.log(arguments)}}function _trace(){if(window.console&&window.console.trace){window.console.trace(arguments)}}function _validate_local_part(text,spec,charCheckOnly){spec=spec||"rfc";text=text||"";charCheckOnly=!!charCheckOnly;if(text===""){return charCheckOnly}if(spec!=="cpanel"&&spec!=="rfc"){throw"CPANEL.validate.local_part_email: invalid spec argument!"}var pattern;if(spec==="rfc"){pattern=new RegExp("[^.a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]")}else{pattern=new RegExp("[^.a-zA-Z0-9_-]")}if(pattern.test(text)===true){return false}if(charCheckOnly){return true}if(spec==="rfc"){if(text.charAt(0)==="."||text.charAt(text.length-1)==="."){return false}if(/\.\./.test(text)===true){return false}}return true}if(typeof CPANEL==="undefined"||!CPANEL){_log("You must include the CPANEL global object before including validate.js!")}else{CPANEL.validate={hide_validation_summary:false,get_page_overlay_context_arguments:function(){var overlay_anchor;var form_el_anchor;if(LOCALE.is_rtl()){overlay_anchor="tr";form_el_anchor="tl"}else{overlay_anchor="tl";form_el_anchor="tr"}return[overlay_anchor,form_el_anchor,["beforeShow","windowResize",CPANEL.align_panels_event]]},a:"",form_checkers:{},validator:function(title){if(YAHOO.util.CustomEvent){this.validateSuccess=new YAHOO.util.CustomEvent("validateSuccess",this);this.validateFailure=new YAHOO.util.CustomEvent("validateFailure",this)}if(typeof title!=="string"){_trace();_log('You need to pass the title of the validator object into the constructor.\nie: var my_validator = new CPANEL.validate.validator("Email Account");');return}this.title=title;this.validators=[];this.add_thrower=function(el,func){var msg;var catcher=function(){try{func.apply(this,arguments);return true}catch(err){msg=err;return false}};return this.add(el,catcher,(function(){return msg}))};this.add=function(el,func,msg,conditional_func,opts){return this._do_add.apply(this,arguments)};this.add_for_submit=function(el,func,msg,conditional_func,opts){opts=opts||{};opts.submit_only=true;return this._do_add(el,func,msg,conditional_func,opts)};this._do_add=function(orig_el,func,msg,conditional_func,opts){var el=YAHOO.util.Dom.get(orig_el);if(!el){_trace();_log("Error in CPANEL.validate.add: could not find element '"+orig_el+"' in the DOM");return}var error_element_id=el.id+"_error";var error_el=YAHOO.util.Dom.get(error_element_id);if(!error_el){_trace();_log("Error in CPANEL.validate.add: could not find element '"+error_element_id+"' in the DOM");return}if(!opts||opts&&!opts.no_width_height){YAHOO.util.Dom.setStyle(error_el,"width","16px");YAHOO.util.Dom.setStyle(error_el,"height","16px")}if(error_el.tagName.toLowerCase()==="img"){error_el.src=CPANEL.icons.transparent_src;YAHOO.util.Dom.setStyle(error_el,"vertical-align","middle")}if(typeof msg!=="string"&&typeof msg!=="function"){_log("Error in CPANEL.validate.add: msg must be either a string or a function");return}if(!conditional_func){conditional_func=function(){return true}}else if(typeof conditional_func==="string"){var conditional_el=YAHOO.util.Dom.get(conditional_func);if(!conditional_el){_log("Error in CPANEL.validate.add: could not find element '"+conditional_func+"' in the DOM.");return}var attribute_type=conditional_el.getAttribute("type");if(attribute_type==="radio"||attribute_type==="checkbox"){conditional_func=function(){return conditional_el.checked}}else{_log("Error in CPANEL.validate.add: conditional function argument '"+conditional_el.id+'\'must be a DOM element of type "radio" or "checkbox"');return}}if(typeof func==="string"){func="CPANEL.validate."+func;if(func.match(new RegExp(/[()]/))===null){func=func+"(%input%)"}func=func.replace(/(\$input\$)|(%input%)/i,'YAHOO.util.Dom.get("'+el.id+'").value');try{eval("func = function() { return "+func+"; };")}catch(e){_log("Error in CPANEL.validate.add: Error eval()ing your function argument");return}}this.validators.push({el:el,func:func,msg:msg,conditional_func:conditional_func,submit_only:opts&&opts.submit_only,unique_id:opts&&opts.unique_id})};this.attach=function(){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){var element=elements[i];var attribute_type=element.type||element.tagName;if(/password|text|textarea|number/i.test(attribute_type)){if(CPANEL.dom.has_oninput){EVENT.on(element,"input",verify_element,{el:element})}else{EVENT.on(element,"keyup",verify_element,{el:element});EVENT.on(element,"change",verify_element,{el:element});EVENT.on(element,"paste",delayed_verify_element,{el:element})}}else if(/file|select/i.test(attribute_type)){EVENT.on(element,"change",verify_element,{el:element})}create_error_panel(element)}};this.detach=function(){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){if(CPANEL.dom.has_oninput){EVENT.purgeElement(elements[i],false,"input")}else{EVENT.purgeElement(elements[i],false,"keyup");EVENT.purgeElement(elements[i],false,"change");EVENT.purgeElement(elements[i],false,"paste")}}this.clear_messages()};this.is_valid=function(){for(var i=0;i<this.validators.length;i++){if(this.validators[i].el.disabled){continue}if(this.validators[i].conditional_func(this.validators[i].el,this.validators[i])){if(!this.validators[i].func(this.validators[i].el,this.validators[i])){return false}}}return true};this.error_messages=function(){var error_messages=[];for(var i=0;i<this.validators.length;i++){if(this.validators[i].conditional_func(this.validators[i].el,this.validators[i])){if(!this.validators[i].func(this.validators[i].el,this.validators[i])){error_messages.push(_process_error_message(this.validators[i].msg,this.validators[i].el))}}}if(error_messages.length===0){return false}return{title:this.title,errors:error_messages}};this.clear_messages=function(){for(var i=0;i<this.validators.length;i++){var error_element=YAHOO.util.Dom.get(this.validators[i].el.id+"_error");if(!error_element){continue}if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.transparent_src}else{error_element.innerHTML=""}}hide_all_panels()};this.verify=function(evt){var elements=_get_unique_elements();for(var i=0;i<elements.length;i++){verify_element(null,{el:elements[i],event:evt})}};this.verify_for_submit=function(){return this.verify({type:"submit"})};var that=this;var panels={};var create_error_panel=function(element){var overlay_config={visible:false,zindex:1e3,context:[element.id+"_error"].concat(CPANEL.validate.get_page_overlay_context_arguments())};DOM.addClass(element.id+"_error","cjt_validation_error");panels[element.id]=new YAHOO.widget.Overlay(element.id+"_error_panel",overlay_config);panels[element.id].setBody("");var contentContainer=document.getElementById("contentContainer");if(contentContainer){panels[element.id].render(contentContainer)}else{panels[element.id].render(document.body)}YAHOO.util.Dom.addClass(element.id+"_error_panel","validation_error_panel")};var clear_one_message=function(element){var error_element=DOM.get(element.id+"_error");var no_panel=DOM.hasClass(error_element,"no_panel");if(error_element.tagName.toLowerCase()==="img"){error_element.src="data:image/png,";if(no_panel){error_element.title=""}}else{error_element.innerHTML=""}if(panels[element.id]){panels[element.id].hide()}};var delayed_verify_element=function(e,o){setTimeout(verify_element.bind(this,e,o),5)};var verify_element=function(e,o){if(o.el.disabled){return}var submit_only_function_failed_outside_submit;var this_is_a_submit;if(o.event){var evt=o.event;this_is_a_submit=evt.type==="submit";if(!this_is_a_submit&&evt.type==="click"){var clickee=EVENT.getTarget(evt);var tag_name=clickee.tagName.toLowerCase();this_is_a_submit=clickee.type==="submit"&&(tag_name==="button"||tag_name==="input")}}var error_messages=[];var ids=[];for(var i=0;i<that.validators.length;i++){var validation_unit=that.validators[i];if(validation_unit.el.id!==o.el.id){continue}if(validation_unit.conditional_func(o.el,that.validators[i])){if(!validation_unit.func(o.el,that.validators[i])){if(!this_is_a_submit&&validation_unit.submit_only){submit_only_function_failed_outside_submit=true}else{error_messages.push(that.validators[i].msg);ids.push(that.validators[i].unique_id)}}}}if(error_messages.length===0){if(submit_only_function_failed_outside_submit){clear_one_message(o.el);that.validateFailure.fire({is_submit_only_failure:true})}else{show_success(o.el);that.validateSuccess.fire()}}else{show_errors(o.el,error_messages,ids);that.validateFailure.fire({is_submit_only_failure:false})}};var show_success=function(element){var error_element=YAHOO.util.Dom.get(element.id+"_error");if(YAHOO.util.Dom.getStyle(error_element,"display")!=="none"){panels[element.id].hide();if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.success_src}else{error_element.innerHTML=CPANEL.icons.success}error_element.title="";YAHOO.util.Event.purgeElement(error_element,false)}};var show_errors=function(element,messages,ids){messages=messages.map((function(cur_msg){return _process_error_message(cur_msg,element)}));var error_element=YAHOO.util.Dom.get(element.id+"_error");if(YAHOO.util.Dom.getStyle(error_element,"display")==="none"){return}var no_panel=YAHOO.util.Dom.hasClass(error_element,"no_panel");var img_title;if(no_panel){var dummy_span=document.createElement("span");img_title=[];for(var m=0;m<messages.length;m++){dummy_span.innerHTML=messages[m];img_title.push(dummy_span.textContent||dummy_span.innerText)}img_title=img_title.join("\n")}if(error_element.tagName.toLowerCase()==="img"){error_element.src=CPANEL.icons.error_src;if(no_panel){error_element.title=img_title}}else{error_element.innerHTML=CPANEL.icons.error;if(no_panel){error_element.getElementsByTagName("img")[0].title=img_title}}if(no_panel){return}var panel_body='<div class="validation_errors_div">';panel_body+='<ul class="validation_errors_ul">';for(var i=0;i<messages.length;i++){var id=ids[i]?' id="'+ids[i]+'"':"";panel_body+='<li class="validation_errors_li"'+id+">"+_process_error_message(messages[i],element)+"</li>"}panel_body+="</ul></div>";var show_inline=YAHOO.util.Dom.hasClass(error_element,"show_inline");if(show_inline){error_element.innerHTML=panel_body}else{panels[element.id].setBody(panel_body);panels[element.id].show()}};var hide_all_panels=this.hide_all_panels=function(){for(var i in panels){panels[i].hide()}};var _get_unique_elements=function(){return that.validators.map((function(v){return v.el})).unique()};var _process_error_message=function(msg,element){if(typeof msg==="string"){return msg}return msg(element)}},show_modal_error:function(messages){var temp=[];if(YAHOO.lang.isArray(messages)===false){temp.push(messages);messages=temp}if(YAHOO.util.Dom.inDocument("validation_errors_modal_box")===true){var remove_me=YAHOO.util.Dom.get("validation_errors_modal_box");remove_me.parentNode.removeChild(remove_me)}var panel_options={width:"350px",fixedcenter:true,close:true,draggable:false,zindex:1e3,modal:true,visible:false};var panel=new YAHOO.widget.Panel("validation_errors_modal_box",panel_options);var header='<div class="lt"></div>';header+="<span>"+LOCALE.maketext("Validation Errors")+"</span>";header+='<div class="rt"></div>';panel.setHeader(header);var body="";for(var i=0;i<messages.length;i++){body+='<span class="validation_errors_modal_box_title">'+messages[i].title+"</span>";body+='<ul class="validation_errors_modal_box_ul">';var these_errors;if(messages[i].errors instanceof Array){these_errors=messages[i].errors}else{these_errors=[messages[i].errors]}for(var j=0;j<these_errors.length;j++){body+='<li class="validation_errors_modal_box_li">'+these_errors[j]+"</li>"}body+="</ul>"}panel.setBody(body);var footer='<div class="lb"></div>'+'<div class="validation_errors_modal_box_actions">'+'<input id="validation_errors_modal_panel_close_button" type="button" class="input-button btn-primary" value="'+LOCALE.maketext("Close")+'" />'+"</actions>"+'<div class="rb"></div>';panel.setFooter(footer);var after_show=function(){YAHOO.util.Event.on("validation_errors_modal_panel_close_button","click",(function(){panel.hide()}));YAHOO.util.Dom.get("validation_errors_modal_panel_close_button").focus()};panel.showEvent.subscribe(after_show);panel.render(document.body);panel.show()},attach_to_form:function(el,validators,opts){var success_callback;if(opts){if(typeof opts==="function"){success_callback=opts}else{success_callback=opts.success_callback}}else{opts={}}var typeof_validator=function(obj){if(!obj||typeof obj.add!=="function"||typeof obj.attach!=="function"||typeof obj.title!=="string"){return false}return true};var temp=[];if(typeof_validator(validators)){temp.push(validators)}else{for(var i in validators){if(!typeof_validator(validators[i])){continue}temp.push(validators[i])}}validators=temp;CPANEL.validate.form_checkers[el]=function(event,checkonly){var messages=[],topYCoord,topElId;var good_data=true;for(var i=0;i<validators.length;i++){validators[i].verify(event);if(!validators[i].is_valid()){good_data=false;messages.push(validators[i].error_messages());var curElId;for(let validator of validators[i].validators){curElId=validator.el.id;let curElErrorPanel=document.getElementById(`${curElId}_error_panel`);if(curElErrorPanel&&curElErrorPanel.style.visibility==="visible"){curElId=`${curElId}_error`;break}}var yPos=DOM.getY(curElId);if(!topYCoord||yPos<topYCoord){topYCoord=yPos;topElId=curElId}}}if(good_data===false){if(event){EVENT.preventDefault(event)}if(!CPANEL.validate.hide_validation_summary){if(!opts.no_panel){CPANEL.validate.show_modal_error(messages)}}scrollToError:if(!opts.no_animation&&CPANEL.animate){let firstErrorInFormGroup=document.querySelector(`.form-group #${topElId}`);let firstVisibleErrorPanel=document.querySelector("*[id$='_error_panel'][style*='visibility: visible']");let firstErrorElement=firstErrorInFormGroup?firstErrorInFormGroup.closest(".form-group"):firstVisibleErrorPanel;if(!firstErrorElement){break scrollToError}let viewportWidth=document.documentElement.clientWidth;let pageHeader=document.querySelector("header");let heightOfPageHeader=pageHeader.getBoundingClientRect().height;let extraSpacing=10;let errorElVerticalDisplacement=firstErrorElement.getBoundingClientRect().top;let errorElHorizontalDisplacement=firstErrorElement.getBoundingClientRect().right;let verticalDisplacement=errorElVerticalDisplacement-heightOfPageHeader-extraSpacing;let horizontalDisplacement=errorElHorizontalDisplacement-viewportWidth;window.scrollBy({top:verticalDisplacement,left:Math.abs(horizontalDisplacement),behavior:"smooth"})}return false}if(!checkonly&&success_callback){success_callback(event)}return true};YAHOO.util.Event.on(el,"click",CPANEL.validate.form_checkers[el])},create:function(id,name,definition){var el=YAHOO.util.Dom.get(id);if(!el){_log("Error in CPANEL.validate.create: id '"+el.id+"' does not exist in the DOM.");return}if(!CPANEL.validation_definitions[definition]){_log("Error in CPANEL.validate.create: Validation definition '"+definition+"' does not exist.");return}var atoms=CPANEL.validate.util.get_atoms_from_definition(definition);var func=CPANEL.validate.util.create_function_from_atoms(atoms,el);var msg=CPANEL.validate.util.create_msg_from_atoms(atoms);var validator=new CPANEL.validate.validator(name);validator.add(id,func,msg);validator.attach();return validator},no_unsafe_periods:function(text){if(text.charAt(0)==="."||text.charAt(text.length-1)==="."){return false}if(/\.\./.test(text)===true){return false}return true},local_part_email:function(str,spec,charCheckOnly){return _validate_local_part(str,spec,charCheckOnly)},email_username:function(str,spec,charCheckOnly){return _validate_local_part(str,"cpanel",charCheckOnly)},ftp_username:function(str){return _validate_local_part(str,"cpanel")},webdisk_username:function(str){return _validate_local_part(str,"cpanel")},host:function(str){var chunks=str.split(".");if(chunks.length<2){return false}for(var i=0;i<chunks.length-1;i++){if(!CPANEL.validate.domain(chunks[i])){return false}}if(!CPANEL.validate.tld("."+chunks[chunks.length-1])){return false}return true},email:function(str){var groups=str.split("@");if(groups.length!==2){return false}if(!_validate_local_part(groups[0],"rfc")){return false}return CPANEL.validate.fqdn(groups[1])},cpanel_email:function(str){var groups=str.split("@");if(groups.length!==2){return false}if(!_validate_local_part(groups[0],"cpanel")){return false}return CPANEL.validate.fqdn(groups[1])},external_check_image_extension:function(str,fname){if(str===""){return true}if(!/[^.]\.[^.]+$/.test(str)){return false}var given_extension=str.split(".").pop();var allowed_extensions=["gif","jpg","jpeg","png"];return allowed_extensions.indexOf(given_extension.toLowerCase())!==-1},url:function(str){if(str.substring(0,7)!=="http://"&&str.substring(0,8)!=="https://"){return false}var front_slashes=str.search(/:\/\//);if(front_slashes===-1){return false}str=str.substring(front_slashes+3);var back_slash=str.search(/\//);if(back_slash===-1){back_slash=str.length}var domain_and_tld=str.substring(0,back_slash);return CPANEL.validate.fqdn(domain_and_tld)},fqdn:function(str){var groups=str.split(".");if(groups.length<2){return false}for(var i=0;i<groups.length;i++){if(i===0){if(!CPANEL.validate.domain(groups[i])){return false}}if(i===groups.length-1){if(!CPANEL.validate.tld("."+groups[i])){return false}}if(!CPANEL.validate.tld("."+groups[i])&&!CPANEL.validate.domain(groups[i])){return false}}return true},tld:function(str){var pattern=new RegExp("[^a-zA-Z0-9-.]");if(pattern.test(str)===true){return false}if(str.charAt(0)!=="."||/[.-]$/.test(str)){return false}if(/\.[.-]/.test(str)||/-\./.test(str)||/---/.test(str)){return false}return true},domain:function(str){var pattern=new RegExp("[^_a-zA-Z0-9-]");if(pattern.test(str)===true){return false}if(/_/.test(str.substr(1))){return false}if(str.charAt(0)==="-"||str.charAt(str.length-1)==="-"){return false}if(str.length===0||str.length>63){return false}return true},subdomain:function(str){var pattern=new RegExp("[^_a-zA-Z0-9-.]");if(pattern.test(str)===true){return false}if(/_/.test(str.substr(1))){return false}if(!CPANEL.validate.alphanumeric(str.charAt(str.length-1))){return false}if(str.length===0||str.length>63){return false}pattern=new RegExp(/\.\./);if(pattern.test(str)===true){return false}return true},country_code:function(str){var codes=["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"];return codes.indexOf(str)>-1},alpha:function(str){if(str===""){return false}var pattern=new RegExp("[^a-zA-Z]");if(pattern.test(str)===true){return false}return true},alphanumeric:function(str){if(str===""){return false}var pattern=new RegExp("[^a-zA-Z0-9]");if(pattern.test(str)===true){return false}return true},sql_alphanumeric:function(str){if(str===""){return false}if(/_$/.test(str)){return false}var pattern=new RegExp("[^a-zA-Z0-9_-]");if(pattern.test(str)===true){return false}return true},min_length:function(str,length){if(str.length>=length){return true}return false},max_length:function(str,length){if(str.length<=length){return true}return false},length_check:function(str,minLength,maxLength){var len=str.length;if(len>=minLength&&len<=maxLength){return true}return false},equals:function(el1,el2){el1=YAHOO.util.Dom.get(el1);el2=YAHOO.util.Dom.get(el2);if(el1.value==el2.value){return true}return false},not_equals:function(el1,el2){el1=YAHOO.util.Dom.get(el1);el2=YAHOO.util.Dom.get(el2);if(el1.value==el2.value){return false}return true},anything:function(){return true},if_not_empty:function(value,func){if(typeof value!=="string"){value=YAHOO.util.Dom.get(value).value}if(value!==""){return func(value)}return true},positive_integer:function(value){value=value+"";if(value===""){return false}var pattern=new RegExp("[^0-9]");if(pattern.test(value)===true){return false}return true},negative_integer:function(value){value=value+"";if(value.charAt(0)!=="-"){return false}value=value.substr(1);var pattern=new RegExp("[^0-9]");if(pattern.test(value)===true){return false}return true},integer:function(value){if(CPANEL.validate.negative_integer(value)||CPANEL.validate.positive_integer(value)){return true}return false},max_value:function(value,max){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);max=parseInt(max,10);if(value>max){return false}return true},min_value:function(value,min){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);min=parseInt(min,10);if(value<min){return false}return true},less_than:function(value,less_than){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);less_than=parseInt(less_than,10);if(value<less_than){return true}return false},greater_than:function(value,greater_than){if(!CPANEL.validate.integer(value)){return false}value=parseInt(value,10);greater_than=parseInt(greater_than,10);if(value>greater_than){return true}return false},no_chars:function(str,chars){if(typeof chars==="string"){var chars2=chars.split("");chars=chars2}for(var i=0;i<chars.length;i++){if(str.indexOf(chars[i])!==-1){return false}}return true},not_string:function(str,notstr){if(str==notstr){return false}return true},dir_path:function(str){var chars='\\?%*:|"<>';return CPANEL.validate.no_chars(str,chars)},reserved_directory:function(str){if(str.indexOf("/")===0){str=str.substr(1)}while(str.indexOf("./")===0){str=str.substr(2)}var DisallowedDirectories=["",".cpanel",".htpasswds",".spamassassin",".ssh",".trash","cgi-bin","etc","logs","mail","perl5","ssl","tmp","var"];if(DisallowedDirectories.indexOf(str)>-1){return false}return true},quota:function(str){if(!CPANEL.validate.positive_integer(str)&&str!==LOCALE.maketext("unlimited")){return false}return true},mime:function(str){if(!CPANEL.validate.no_chars(str," ")){return false}var names=str.split("/");if(names.length!==2){return false}var pattern=/^[a-zA-Z0-9!#$&.+^_-]+$/;for(var i=0;i<names.length;i++){if(!names[i]||names[i].length>127||!pattern.test(names[i])){return false}}return true},mime_extension:function(str){var pattern=new RegExp(/\w/g);if(pattern.test(str)===false){return false}return CPANEL.validate.no_chars(str,"/&?\\")},apache_handler:function(str){if(!CPANEL.validate.no_chars(str," ")){return false}var hyphen1=str.indexOf("-");var hyphen2=str.lastIndexOf("-");if(hyphen1===-1){return false}if(hyphen1===0||hyphen2===str.length-1){return false}return true},ip:function(str){var chunks=str.split(".");if(chunks.length!==4){return false}for(var i=0;i<chunks.length;i++){if(!CPANEL.validate.positive_integer(chunks[i])){return false}if(chunks[i]>255){return false}}return true},ipv6:function(str){if(!str){return false}return CPANEL.inet6.isValid(str)},no_local_ips:function(str){return!(str==="127.0.0.1"||str==="0.0.0.0")},filename:function(str){if(str.indexOf("/")!==-1){return false}if(!CPANEL.validate.dir_path(str)){return false}return true},end_of_string:function(str,allowed){if(!YAHOO.lang.isArray(allowed)){allowed=[allowed]}for(var i=0;i<allowed.length;i++){if(str.substr(str.length-allowed[i].length).toLowerCase()===allowed[i].toLowerCase()){return true}}return false},alphanumeric_bookends:function(str){if(str===""){return true}if(!CPANEL.validate.alphanumeric(str.charAt(0))){return false}if(!CPANEL.validate.alphanumeric(str.charAt(str.length-1))){return false}return true},zone_name:function(str){if(str===""){return false}if(str.charAt(str.length-1)==="."){str=str.substr(0,str.length-1)}var chunks=str.split(".");if(chunks.length<1){return false}for(var i=0;i<chunks.length;i++){if(!CPANEL.validate.domain(chunks[i])&&chunks[i]!=="*"){return false}}return true},not_present:function(str,value){return!CPANEL.validate.present(str,value)},present:function(str,value){var lower_str=str.toLowerCase();var lower_value=value.toLowerCase();if(lower_str.indexOf(lower_value)>=0){return true}return false},not_in_domain:function(str,domain){return!CPANEL.validate.in_domain(str,domain)},in_domain:function(str,domain){var lower_str=str.toLowerCase();var lower_domain=domain.toLowerCase();var domain_pat=lower_domain.replace(/\./g,"\\.");if(lower_str===lower_domain){return true}var subdomain_pat=new RegExp("\\."+domain_pat+"$");if(subdomain_pat.test(lower_str)){return true}return false}};CPANEL.validate.validator.prototype={}}})();CPANEL.validation_definitions={IPV4_ADDRESS:[{min_length:"1",msg:"IP Address cannot be empty."},{valid_chars:".0-9",msg:"IP Address must contain only digits and periods."},{valid_regexp:"/^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$/",msg:"IP Address not formatted correctly.  ie: 4.2.2.2, 192.168.1.100"}],IPV4_ADDRESS_NO_LOCAL_IPS:["IPV4_ADDRESS",{invalid_regexp:"/(127\\.0\\.0\\.1)|(0\\.0\\.0\\.0)/",msg:"IP Address cannot be local.  ie: 127.0.0.1, 0.0.0.0"}],LOCAL_EMAIL:[{min_length:"1",msg:"Email cannot be empty."},{max_length:"128",msg:"Email cannot be longer than 128 characters."},{invalid_chars:" ",msg:"Email cannot contain spaces."},{invalid_regexp:"/\\.\\./",msg:"Email cannot contain two consecutive periods."},{invalid_regexp:"/^\\./",msg:"Email cannot start with a period."},{invalid_regexp:"/\\.$/",msg:"Email cannot end with a period. %invalid%"}],LOCAL_EMAIL_CPANEL:["LOCAL_EMAIL",{valid_chars:".a-zA-Z0-9!#$=?^_{}~-",msg:"Email contains illegal characters: %invalid_chars%"}],LOCAL_EMAIL_RFC:["LOCAL_EMAIL",{valid_chars:".a-zA-Z0-9!#$%&'*+/=?^_`{|}~-",msg:"Email contains illegal characters: %invalid_chars%"}],FULL_EMAIL:[{min_length:"1",msg:"Email cannot be empty."},{invalid_chars:" ",msg:"Email cannot contain spaces."},{"":"",msg:""}],FULL_EMAIL_CPANEL:[],FULL_EMAIL_RFC:[],DOMAIN:[],SUBDOMAIN:[{min_length:"1",msg:"Subdomain cannot be empty."},{max_length:"63",msg:"Subdomain cannot be longer than 63 characters."},{invalid_chars:" ",msg:"Subdomain cannot contain spaces."},{invalid_regexp:"\\.\\.",msg:"Subdomain cannot contain two consecutive periods."},{valid_chars:"a-zA-Z0-9_-.",msg:"Subdomain contains invalid characters: %invalid_chars%"}],FQDN:[],TLD:[],FTP_USERNAME:[],MYSQL_DB_NAME:[],MYSQL_USERNAME:[],POSTGRES_DB_NAME:[],POSTGRES_USERNAME:[]};(function(){var close_x=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9?"X":'<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><line stroke="currentColor" stroke-width="1.5" stroke-linecap="round" x1="35%" y1="35%" x2="65%" y2="65%" /><line stroke="currentColor" stroke-width="1.5" stroke-linecap="round" x1="35%" y1="65%" x2="65%" y2="35%" /><rect width="100%" height="100%" style="fill:transparent;opacity:1.0" /></svg>';var closeButton=YAHOO.lang.substitute("<a class='cjt-dynamic-pagenotice-close-button' href='javascript:void(0)' title=\"{title}\">{close_x}</a>",{title:LOCALE.maketext("Click to close."),close_x:close_x});if(typeof CPANEL=="undefined"||!CPANEL){alert("You must include the CPANEL global object before including widgets.js!")}else{CPANEL.widgets={Text_Input_Placeholder:function(context_el,text,before_show){context_el=DOM.get(context_el);var id=context_el.id;if(id){id+="_cjt-text-input-placeholder"}else{id=DOM.generateId()}var region=CPANEL.dom.get_inner_region(context_el);var xy_offset=[region.padding.left+region.border.left,region.padding.top+region.border.top];var opts={context:[context_el,"tl","tl",["beforeShow","windowResize"],xy_offset],width:region.width+"px",height:region.height+"px",zIndex:parseInt(DOM.getStyle(context_el,"z-index"),10)+1,visible:false};arguments.callee.superclass.constructor.call(this,id,opts);var render_parent=context_el.parentNode;if(render_parent.nodeName.toLowerCase()==="label"){render_parent=render_parent.parentNode}this.render(render_parent);var overlay=this;this.element.onclick=function(){overlay.hide();context_el.focus()};DOM.addClass(this.element,"cjt-text-input-placeholder");var helper_text=text||"";this.setBody(helper_text);YAHOO.util.Event.addListener(context_el,"focus",(function(){overlay.hide()}));YAHOO.util.Event.addListener(context_el,"blur",(function(){if(!this.value.trim()){overlay.show()}}));if(before_show){before_show.apply(this)}if(!context_el.value.trim()){this.show()}},progress_bar:function(el,percentage,text,options){if(options=='{"inverse_colors":"true"}'){options={inverse_colors:true}}if(!options){options={}}if(!options.text_style){options.text_style=""}if(!options.inverse_colors){options.inverse_colors=false}if(!options.one_color){options.one_color=false}if(!options.return_html){options.return_html=false}percentage=parseInt(percentage,10);if(percentage<0){percentage=0}if(percentage>100){percentage=100}if(options.return_html===false){el=YAHOO.util.Dom.get(el)}var color;if(percentage>=0){color="#FF0000"}if(percentage>=20){color="#FF9837"}if(percentage>=40){color="#F1FF4D"}if(percentage>=60){color="#C5FF00"}if(percentage>=80){color="#8FFF00"}if(options.inverse_colors){if(percentage>=0){color="#8FFF00"}if(percentage>=20){color="#C5FF00"}if(percentage>=40){color="#F1FF4D"}if(percentage>=60){color="#FF9837"}if(percentage>=80){color="#FF0000"}}if(options.one_color){color=options.one_color}var height="100%";if(YAHOO.env.ua.ie==6&&options.return_html===false){var div_region=YAHOO.util.Region.getRegion(el);height=div_region.height+"px"}var html;html='<div class="cpanel_widget_progress_bar" title="'+percentage+'%" style="position: relative; width: 100%; height: '+height+'; padding: 0px; margin: 0px; border: 0px">';if(text){html+='<div style="position: absolute; left: 0px; width: 100%; height: '+height+"; padding: 0px; margin: 0px; border: 0px; z-index: 1; background-image: url('/cPanel_magic_revision_0/cjt/images/1px_transparent.gif')\">";html+='<table style="width: 100%; height: 100%; padding: 0px; margin: 0px; border: 0px">';html+='<tr><td valign="middle" style="padding: 0px; margin: 0px; border: 0px;">';html+='<div style="width: 100%; '+options.text_style+'">'+text+"</div>";html+="</td></tr></table>";html+="</div>"}if(percentage>0){html+='<div style="position: absolute; left: 0px; top: 0px; width: '+percentage+"%; height: "+height+"; background-color: "+color+'; padding: 0px; margin: 0px; border: 0px"></div>'}html+="</div>";if(options.return_html===false){html+='<div class="cpanel_widget_progress_bar_percent" style="display: none">'+percentage+"</div>"}if(options.return_html===true){return html}el.innerHTML=html},build_progress_bar:function(percentage,text,options){},status_box:null,status_box_timeout:null,status:function(message,class_name){clearTimeout(this.status_box_timeout);var options={zIndex:1e3,visible:true,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.25}};this.status_box=new YAHOO.widget.Overlay("cpanel_status_widget",options);this.status_box.setBody('<span class="cpanel_status_widget_message">'+message+"</span>");var footer='<br /><div style="width: 100%; text-align: right; font-size: 10px">';footer+=LOCALE.maketext("Click to close.")+' [<span id="cpanel_status_widget_countdown">10</span>]';footer+="</div>";this.status_box.setFooter(footer);this.status_box.render(document.body);YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_success");YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_error");YAHOO.util.Dom.removeClass("cpanel_status_widget","cpanel_status_warning");if(class_name){YAHOO.util.Dom.addClass("cpanel_status_widget","cpanel_status_"+class_name)}else{YAHOO.util.Dom.addClass("cpanel_status_widget","cpanel_status_success")}var hide_me=function(){CPANEL.widgets.status_box.hide();clearTimeout(CPANEL.widgets.status_box_timeout)};YAHOO.util.Event.on("cpanel_status_widget","click",hide_me);var second_decrease=function(){var seconds_el=YAHOO.util.Dom.get("cpanel_status_widget_countdown");if(seconds_el){var seconds=parseInt(seconds_el.innerHTML,10);if(seconds===0){hide_me()}else{seconds_el.innerHTML=seconds-1;CPANEL.widgets.status_box_timeout=setTimeout(second_decrease,1e3)}}};this.status_box_timeout=setTimeout(second_decrease,1e3)},status_bar:function(el,style,title,message,options){var duration=10;if(style=="error"){duration=0}var callback_func=function(){};var hide_countdown=false;var countdown=true;if(duration===0){countdown=false}var raw_html=false;if(options){if(options.duration){duration=options.duration}if(options.callbackFunc){if(typeof options.callbackFunc=="function"){callback_func=options.callbackFunc}}if(options.hideCountdown){hide_countdown=true}if(options.rawHTML){raw_html=options.rawHTML}if(options.noCountdown){countdown=false}}el=YAHOO.util.Dom.get(el);if(!el){alert("Error in CPANEL.widgets.status_bar: '"+el+"' does not exist in the DOM.");return}var hide_bar=function(){CPANEL.animate.slide_up(el,(function(){el.innerHTML="";callback_func();CPANEL.align_panels_event.fire()}))};YAHOO.util.Dom.removeClass(el,"cjt_status_bar_success");YAHOO.util.Dom.removeClass(el,"cjt_status_bar_error");YAHOO.util.Dom.removeClass(el,"cjt_status_bar_warning");YAHOO.util.Dom.addClass(el,"cjt_status_bar_"+style);var status="";if(raw_html===false){status=CPANEL.icons.success;if(style=="error"){status=CPANEL.icons.error}if(style=="warning"){status=CPANEL.icons.warning}status+=" <strong>"+title+"</strong>";if(message){if(message!==""){status+='<div style="height: 5px"></div>';status+=CPANEL.util.convert_breaklines(message)}}}else{status=raw_html}var countdown_div="";if(countdown===true){countdown_div='<div class="cjt_status_bar_countdown"';if(hide_countdown===true){countdown_div+=' style="display: none"'}var countdown_inner=LOCALE.maketext("Click to close.")+" {durationspan}";countdown_inner=countdown_inner.replace("{durationspan}",'[<span id="'+el.id+'_countdown">'+duration+"</span>]");countdown_div+=">"+countdown_inner+"</div>"}else{countdown_div='<div class="cjt_status_bar_countdown">'+LOCALE.maketext("Click to close.")+"</div>"}el.innerHTML=status+countdown_div;CPANEL.animate.slide_down(el,(function(){if(YAHOO.env.ua.ie>5){YAHOO.util.Dom.setStyle(el,"zoom","1")}if(countdown===true){CPANEL.util.countdown(el.id+"_countdown",hide_bar)}CPANEL.align_panels_event.fire()}));YAHOO.util.Event.on(el,"click",hide_bar)},collapsible_header:function(header_el,div_el,before_show,after_show,before_hide,after_hide){header_el=YAHOO.util.Dom.get(header_el);div_el=YAHOO.util.Dom.get(div_el);if(!header_el){alert("Error in CPANEL.widgets.collapsable_header: header_el '"+header_el+"' does not exist in the DOM.");return}if(!div_el){alert("Error in CPANEL.widgets.collapsable_header: div_el '"+div_el+"' does not exist in the DOM.");return}if(!before_show||typeof before_show!="function"){before_show=function(){}}if(!after_show||typeof after_show!="function"){after_show=function(){}}if(!before_hide||typeof before_hide!="function"){before_hide=function(){}}if(!after_hide||typeof after_hide!="function"){after_hide=function(){}}var toggle_function=function(){if(YAHOO.util.Dom.getStyle(div_el,"display")=="none"){before_show();YAHOO.util.Dom.replaceClass(header_el,"cjt_header_collapsed","cjt_header_expanded");CPANEL.animate.slide_down(div_el,(function(){after_show();CPANEL.align_panels_event.fire()}))}else{before_hide();CPANEL.animate.slide_up(div_el,(function(){after_hide();YAHOO.util.Dom.replaceClass(header_el,"cjt_header_expanded","cjt_header_collapsed");CPANEL.align_panels_event.fire()}))}};YAHOO.util.Event.on(header_el,"click",toggle_function)},Dialog:function(){}};CPANEL.widgets.Dialog.dialog_header_template="<div class='lt'></div><span>{header}</span><div class='rt'></div>";CPANEL.widgets.Dialog.dialog_header_rule=/<.*class='lt'.*\/>|<.*class='rt'.*\/>/gi;CPANEL.widgets.Dialog.applyDialogHeader=function applyDialogHeader(header){var CwD=CPANEL.widgets.Dialog;if(!header.match(CwD.dialog_header_rule)){header=YAHOO.lang.substitute(CwD.dialog_header_template,{header:header})}return header};YAHOO.lang.extend(CPANEL.widgets.Text_Input_Placeholder,YAHOO.widget.Overlay);var _is_ie6_or_7=YAHOO.env.ua.ie&&YAHOO.env.ua.ie<=7;if(_is_ie6_or_7){var ie_shell_prototype;CPANEL.widgets.Text_Input_Placeholder.prototype.setBody=function(content){if(content.nodeName){if(!ie_shell_prototype){ie_shell_prototype=document.createElement("div");ie_shell_prototype.className="cjt-ie-shell"}var ie_shell=ie_shell_prototype.cloneNode(false);ie_shell.appendChild(content)}else{content='<div class="cjt-ie-shell">'+content+"</div>"}return this.constructor.superclass.setBody.call(this,content)}}var Notice=function(id,opts){if(id){if(typeof id==="object"){opts=id;id=DOM.generateId()}}else{id=DOM.generateId()}Notice.superclass.constructor.call(this,id,opts)};Notice.LEVELS={success:"success",info:"info",error:"error",warn:"warn"};Notice.CLASS="cjt-notice";Notice.CLASSES={success:"cjt-notice-success",info:"cjt-notice-info",warn:"cjt-notice-warn",error:"cjt-notice-error"};YAHOO.lang.extend(Notice,YAHOO.widget.Module,{render:function(render_obj,mod_el){var container;if(render_obj){container=DOM.get(render_obj)}if(container){this.cfg.queueProperty("container",container)}else{var container_property=this.cfg.getProperty("container");container=DOM.get(container_property);if(!container){container=document.body;this.cfg.queueProperty("container",container)}}DOM.addClass(container,"cjt-notice-container");if(EVENT.DOMReady){var visible=this.cfg.getProperty("visible");if(visible){this.element.style.display="none";this.renderEvent.subscribe((function do_vis(){this.renderEvent.unsubscribe(do_vis);this.animated_show()}))}}return Notice.superclass.render.call(this,container,mod_el)},init:function(el,opts){Notice.superclass.init.call(this,el);this.beforeInitEvent.fire(Notice);DOM.addClass(this.element,Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Notice)},animated_show:function(){this.beforeShowEvent.fire();var replacee=this.cfg.getProperty("replaces");if(replacee){if(typeof replacee==="string"){replacee=DOM.get(replacee)}else if(replacee instanceof Notice){replacee=replacee.element}}if(replacee){replacee.parentNode.removeChild(replacee)}var ret=CPANEL.animate.slide_down(this.element);this.showEvent.fire();this.cfg.setProperty("visible",true,true);return ret},initDefaultConfig:function(){Notice.superclass.initDefaultConfig.call(this);this.cfg.addProperty("replaces",{value:null});this.cfg.addProperty("level",{value:"info",handler:this.config_level});this.cfg.addProperty("content",{value:"",handler:this.config_content});this.cfg.addProperty("container",{value:null})},config_content:function(type,args,obj){var content=args[0];if(!this.body){this.setBody('<div class="cjt-notice-content">'+content+"</div>")}else{CPANEL.Y(this.body).one(".cjt-notice-content").innerHTML=content}this._content_el=this.body.firstChild},fade_out:function(){if(!this._fading_out&&this.cfg){var fade=CPANEL.animate.fade_out(this.element);if(fade){this._fading_out=fade;this.after_hideEvent.subscribe(this.destroy,this,true);fade.onComplete.subscribe(this.hide,this,true)}}},config_level:function(type,args,obj){var level=args[0];var level_class=level&&Notice.CLASSES[level];if(level_class){if(this._level_class){DOM.replaceClass(this.element,this._level_class,level_class)}else{DOM.addClass(this.element,level_class)}this._level_class=level_class}}});var Page_Notice=function(){Page_Notice.superclass.constructor.apply(this,arguments)};Page_Notice.CLASS="cjt-pagenotice";Page_Notice.DEFAULT_CONTAINER_ID="cjt_pagenotice_container";YAHOO.lang.extend(Page_Notice,Notice,{init:function(el,opts){Page_Notice.superclass.init.call(this,el);this.beforeInitEvent.fire(Page_Notice);DOM.addClass(this.element,Page_Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Page_Notice)},initDefaultConfig:function(){Page_Notice.superclass.initDefaultConfig.call(this);if(!this.cfg.getProperty("container")){this.cfg.queueProperty("container",Page_Notice.DEFAULT_CONTAINER_ID)}},render:function(container){container=DOM.get(container||this.cfg.getProperty("container"));if(container){DOM.addClass(container,"cjt-pagenotice-container")}var args_copy=Array.prototype.slice.call(arguments,0);args_copy[0]=container;var ret=Page_Notice.superclass.render.apply(this,args_copy);return ret}});var Dynamic_Page_Notice=function(){Dynamic_Page_Notice.superclass.constructor.apply(this,arguments)};Dynamic_Page_Notice.CLASS="cjt-dynamic-pagenotice";Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME=30;YAHOO.lang.extend(Dynamic_Page_Notice,Page_Notice,{init:function(el,opts){Dynamic_Page_Notice.superclass.init.call(this,el);this.changeBodyEvent.subscribe(this._add_close_button);this.changeBodyEvent.subscribe(this._add_close_link);this.beforeInitEvent.fire(Dynamic_Page_Notice);DOM.addClass(this.element,Dynamic_Page_Notice.CLASS);if(opts){this.cfg.applyConfig(opts,true);this.render()}this.initEvent.fire(Dynamic_Page_Notice);this.cfg.subscribeToConfigEvent("content",this._reset_close_link,this,true)},_add_close_link:function(){var close_text=LOCALE.maketext("Click to close.");var close_html='<a href="javascript:void(0)">'+close_text+"</a>";var close_link;var nodes=CPANEL.dom.create_from_markup(close_html);close_link=nodes[0];DOM.addClass(close_link,"cjt-dynamic-pagenotice-close-link");EVENT.on(close_link,"click",this.fade_out,this,true);this.body.appendChild(close_link);if(this.cfg.getProperty("level")==="success"){close_link.innerHTML+=' [<span id="'+this.element.id+'_countdown">'+Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME+"</span>]";this._countdown_timeout=CPANEL.util.countdown(this.element.id+"_countdown",this.fade_out.bind(this))}},_reset_close_link:function(){if(this.cfg.getProperty("level")==="success"){var span_el=DOM.get(this.element.id+"_countdown");span_el.innerHTML=Dynamic_Page_Notice.SUCCESS_COUNTDOWN_TIME}},_add_close_button:function(){if(!this._cjt_close_button||!DOM.inDocument(this._cjt_close_button)){this.body.innerHTML+=closeButton;this._cjt_close_button=CPANEL.Y(this.body).one(".cjt-dynamic-pagenotice-close-button");EVENT.on(this._cjt_close_button,"click",this.fade_out,this,true)}},_cjt_close_button:null});CPANEL.widgets.Notice=Notice;CPANEL.widgets.Page_Notice=Page_Notice;CPANEL.widgets.Dynamic_Page_Notice=Dynamic_Page_Notice;var _prototype_wrapper;var _arrow_key_codes={37:1,38:1,39:1,40:1};var Wrapped_Select=function(sel){if(YAHOO.env.ua.ie&&YAHOO.env.ua.ie<9){return}if(typeof sel==="string"){sel=DOM.get(sel)}if(sel.multiple){throw"Can't use Wrapped_Select on multi-select!"}if(!_prototype_wrapper){var dummy=document.createElement("div");dummy.innerHTML="<div class='cjt-wrapped-select'><div class='cjt-wrapped-select-skin'></div><div class='cjt-wrapped-select-icon'></div></div>";_prototype_wrapper=dummy.removeChild(dummy.firstChild)}var wrapper=this._wrapper=_prototype_wrapper.cloneNode(true);if(sel.id){wrapper.id=sel.id+"-cjt-wrapped-select"}this._select=sel;this._options=sel.options;this._label=wrapper.firstChild;this.synchronize_label();sel.parentNode.insertBefore(wrapper,sel);wrapper.insertBefore(sel,this._label);EVENT.on(sel,"keydown",(function(e){if(_arrow_key_codes[e.keyCode]){setTimeout((function(){sel.blur();sel.focus()}),1)}}));EVENT.on(sel,"change",this.synchronize_label,this,true)};Wrapped_Select.prototype.synchronize_label=function(){if(this._select){var label="";var idx=this._select.selectedIndex;if(idx>-1){var opt=this._options[idx];label=CPANEL.util.get_text_content(opt)||opt.value}CPANEL.util.set_text_content(this._label,label)}else{this.synchronize_label=Object}};CPANEL.widgets.Wrapped_Select=Wrapped_Select;var Touch_Tooltip=function(el,cfg){if(!cfg){cfg=el;el=null}if(!el){el=DOM.generateId()}return YAHOO.widget.Tooltip.call(this,el,cfg)};var CustomEvent=YAHOO.util.CustomEvent;var Event=EVENT;YAHOO.lang.extend(Touch_Tooltip,YAHOO.widget.Tooltip,{initEvents:function(){Touch_Tooltip.superclass.initEvents.call(this);var SIGNATURE=CustomEvent.LIST;this.contextMouseDownEvent=this.createEvent("contextMouseDown");this.contextMouseDownEvent.signature=SIGNATURE},onContextMouseDown:function(e,obj){var context=this;if(obj.fireEvent("contextMouseDown",context,e)!==false&&!obj.cfg.getProperty("disabled")){var showdelay=obj.cfg.getProperty("showdelay");var hidedelay=obj.cfg.getProperty("hidedelay");obj.cfg.setProperty("showdelay",0);obj.cfg.setProperty("hidedelay",0);if(obj.cfg.getProperty("visible")){obj.doHide()}else{obj.doShow()}obj.cfg.setProperty("showdelay",showdelay);obj.cfg.setProperty("hidedelay",hidedelay)}},configContext:function(type,args,obj){YAHOO.widget.Overlay.prototype.configContext.apply(this,arguments);var context=args[0],aElements,nElements,oElement,i;if(context){if(!(context instanceof Array)){if(typeof context=="string"){this.cfg.setProperty("context",[document.getElementById(context)],true)}else{this.cfg.setProperty("context",[context],true)}context=this.cfg.getProperty("context")}this._removeEventListeners();this._context=context;aElements=this._context;if(aElements){nElements=aElements.length;if(nElements>0){i=nElements-1;do{oElement=aElements[i];Event.on(oElement,"mouseover",this.onContextMouseOver,this);Event.on(oElement,"mousemove",this.onContextMouseMove,this);Event.on(oElement,"mouseout",this.onContextMouseOut,this);Event.on(oElement,"mousedown",this.onContextMouseDown,this)}while(i--)}}}},_removeEventListeners:function(){Touch_Tooltip.superclass._removeEventListeners.call(this);var aElements=this._context,nElements,oElement,i;if(aElements){nElements=aElements.length;if(nElements>0){i=nElements-1;do{oElement=aElements[i];Event.removeListener(oElement,"mouseover",this.onContextMouseOver);Event.removeListener(oElement,"mousemove",this.onContextMouseMove);Event.removeListener(oElement,"mouseout",this.onContextMouseOut);Event.removeListener(oElement,"mousedown",this.onContextMouseDown)}while(i--)}}}});CPANEL.widgets.Touch_Tooltip=Touch_Tooltip}})();(function(window){"use strict";var YAHOO=window.YAHOO;var DOM=YAHOO.util.Dom;var EVENT=YAHOO.util.Event;var document=window.document;if("YAHOO"in window&&YAHOO.widget&&YAHOO.widget.Panel){var _old_init=YAHOO.widget.Panel.prototype.init;YAHOO.widget.Panel.prototype.init=function(el,userConfig){_old_init.apply(this,arguments);this.cfg.addProperty("noscroll",{value:!!userConfig&&!!userConfig.noscroll})};var _old_initEvents=YAHOO.widget.Panel.prototype.initEvents;YAHOO.widget.Panel.prototype.initEvents=function(){_old_initEvents.apply(this,arguments);this.renderEvent.subscribe((function(){if(this.cfg.getProperty("noscroll")){var wrapper_div=document.createElement("div");wrapper_div.style.position="fixed";var parent_node=this.element.parentNode;parent_node.insertBefore(wrapper_div,this.element);wrapper_div.appendChild(this.element);this.wrapper=wrapper_div}}))}}if(!YAHOO.widget.Overlay._offset_uses_margin){var Overlay=YAHOO.widget.Overlay;var _align=Overlay.prototype.align;var _margins_to_check={};_margins_to_check[Overlay.TOP_LEFT]=["margin-top","margin-left"];_margins_to_check[Overlay.TOP_RIGHT]=["margin-top","margin-right"];_margins_to_check[Overlay.BOTTOM_LEFT]=["margin-bottom","margin-left"];_margins_to_check[Overlay.BOTTOM_RIGHT]=["margin-bottom","margin-right"];Overlay.prototype.align=function(el_align,context_align,xy_offset){if(!el_align){if(this.cfg){var this_context=this.cfg.getProperty("context");if(this_context){el_align=this_context[1];if(!context_align){context_align=this_context[2]}if(!xy_offset){xy_offset=this_context[4]}}}}if(!el_align){return _align.apply(this,arguments)}var el=this.element;var margins=_margins_to_check[el_align];var el_y_offset=parseInt(DOM.getStyle(el,margins[0]),10)||0;var el_x_offset=parseInt(DOM.getStyle(el,margins[1]),10)||0;if(el_x_offset){var x_offset_is_negative=el_align===Overlay.BOTTOM_RIGHT||el_align===Overlay.TOP_RIGHT;if(x_offset_is_negative){el_x_offset*=-1}}if(el_y_offset){var y_offset_is_negative=el_align===Overlay.BOTTOM_LEFT||el_align===Overlay.BOTTOM_RIGHT;if(y_offset_is_negative){el_y_offset*=-1}}if(el_x_offset||el_y_offset){var new_xy_offset;if(xy_offset){new_xy_offset=[xy_offset[0]+el_x_offset,xy_offset[1]+el_y_offset]}else{new_xy_offset=[el_x_offset,el_y_offset]}return _align.call(this,el_align,context_align,new_xy_offset)}else{return _align.apply(this,arguments)}};Overlay._offset_uses_margin=true}if(!YAHOO.widget.Dialog._handles_enter){var _registerForm=YAHOO.widget.Dialog.prototype.registerForm;YAHOO.widget.Dialog.prototype.registerForm=function(){_registerForm.apply(this,arguments);if(!this._cjt_dummy_input){var dummy_input=document.createElement("input");dummy_input.style.display="none";this.form.appendChild(dummy_input);this._cjt_dummy_input=dummy_input}};var _key_listener=YAHOO.util.KeyListener;var new_key_listener=function(attach_to,key_data,handler,event){var new_key_data={};for(var key in key_data){new_key_data[key]=key_data[key]}this.key_data=new_key_data;_key_listener.call(this,attach_to,new_key_data,handler,event)};YAHOO.lang.extend(new_key_listener,_key_listener);YAHOO.lang.augmentObject(new_key_listener,_key_listener);YAHOO.util.KeyListener=new_key_listener;var _init=YAHOO.widget.Dialog.prototype.init;var _non_submit={textarea:true,select:true};YAHOO.widget.Dialog.prototype.init=function(el,cfg){var ret=_init.apply(this,arguments);var key_listeners=this.cfg.getProperty("keylisteners");var need_to_add_enter_key_listener=!key_listeners;if(key_listeners){if(!(key_listeners instanceof Array)){key_listeners=[key_listeners]}need_to_add_enter_key_listener=!key_listeners.some((function(kl){if(!kl.key_data){return false}if(kl.key_data.keys===13){return true}if(kl.key_data.indexOf&&kl.key_data.indexOf(13)!==-1){return true}return false}))}else{key_listeners=[];need_to_add_enter_key_listener=true}if(need_to_add_enter_key_listener){var the_dialog=this;key_listeners.push(new YAHOO.util.KeyListener(document.body,{keys:13},(function(type,args){if(the_dialog.cfg.getProperty("postmethod")!=="form"){var original=EVENT.getTarget(args[1]);if(original&&!_non_submit[original.nodeName.toLowerCase()]&&original.form===the_dialog.form){the_dialog.submit()}}})));this.cfg.setProperty("keylisteners",key_listeners)}return ret};YAHOO.widget.Dialog._handles_enter=true}var _configButtons=YAHOO.widget.Dialog.prototype.configButtons;YAHOO.widget.Dialog.prototype.configButtons=function(){var ret=_configButtons.apply(this,arguments);var button_defs=this.cfg.getProperty("buttons");if(!button_defs||!button_defs.length){return ret}var buttons=this.getButtons();if(!buttons.length){return ret}var yui_button=YAHOO.widget.Button&&buttons[0]instanceof YAHOO.widget.Button;for(var b=buttons.length-1;b>=0;b--){var cur_button=buttons[b];var classes=button_defs[b].classes;if(classes){if(classes instanceof Array){classes=classes.join(" ")}if(yui_button){cur_button.addClass(classes)}else{DOM.addClass(cur_button,classes)}}}return ret};var modpro=YAHOO.widget.Module.prototype;var init_ev=modpro.initEvents;modpro.initEvents=function(){init_ev.apply(this,arguments);this.after_hideEvent=this.createEvent("after_hide");this.after_hideEvent.signature=YAHOO.util.CustomEvent.LIST};var hide=modpro.hide;modpro.hide=function(){var delayed=this.cfg.getProperty("effect");if(delayed){this.hideEvent.subscribe((function afterward(){this.hideEvent.unsubscribe(afterward);this.after_hideEvent.fire()}))}hide.apply(this,arguments);if(!delayed){this.after_hideEvent.fire()}}})(window);
