function handleErrorAjaxRoute(n,t,i){var r=n.responseText,e=n.status,o=n.statusText,u=r.indexOf("Parser Error Message:"),f=r.indexOf("Source Error:");r=u>=0&&f>=0&&u<f?"<br /><strong>Error Description:<\/strong> "+trim(stripHTML(r=r.substring(u+21,f))):"";t.html("");t.html('<span style="color: red;">Error when invoking AJAX function:<br /><strong>Status:<\/strong> '+e+" ("+o+")"+r+"<\/span>");t.show();null!=i&&i.show()}function popup(n,t,i){window.open(n,"_blank","width="+t+",height="+i+",toolbar=yes, top=100, left=100, scrollbars=yes, status=no, menubar=no, resizable=yes")}function convertToEntities(n){var t=n,r="",i;if(t&&""!=trim(t))for(t=trim(t),i=0;i<t.length;i++)r+=t.charCodeAt(i)>127?"&#"+t.charCodeAt(i)+";":t.charAt(i);return r}function trim(n){return n?(n=this!=window?this:n).replace(/^\s+/g,"").replace(/\s+$/g,""):""}function escapeFormInput(n){return n?encodeURIComponent(n.toString().replace(/&(?!amp;)/g,"&amp;")).replace(/%3C/gi,"%253C").replace(/%3E/gi,"%253E").replace(/\+/gi,"%2B"):""}function unscapeFormInput(n){return n?decodeURIComponent(n.toString().replace(/%253/gi,"%3").replace(/%2B/gi,"+")).replace(/&amp;/g,"&"):""}function TempEscape(n){return n?escape(n).replace(/%3C/gi,"%253C").replace(/%3E/gi,"%253E").replace(/\+/gi,"%2B"):""}function TempUnescape(n){return n?unescape(n.replace(/%253/gi,"%3").replace(/%2B/gi,"+")):""}function stripHTML(n){return n.replace(/<[^>]*>/g,"")}function stripScript(n,t){var i=n;return t?(i=(i=i.replace(/<script/gi,"<xscript").replace(/<\/script/gi,"<\/xscript")).replace(/<iframe/gi,"<xiframe").replace(/<\/iframe/gi,"<\/xiframe")).replace(/<frame/gi,"<xframe").replace(/<\/frame/gi,"<\/xframe"):(i=(i=(i=(i=(i=i.replace(/<(script)[^>]*>/gi,"")).replace(/<(\/script)[^>]*>/gi,"")).replace(/<(iframe)[^>]*>/gi,"")).replace(/<(\/iframe)[^>]*>/gi,"")).replace(/<(frame)[^>]*>/gi,"")).replace(/<(\/frame)[^>]*>/gi,"")}function cleanText(n){if(null==n)return"";var t=trim(n);return(t=(t=(t=(t=t.replace(/</gi,"")).replace(/>/gi,"")).replace(/%3C/gi,"")).replace(/%3E/gi,"")).replace(/%/gi,"")}function isValidNumeric(n){if(null==n)return!1;var t=trim(n);return""!=t&&!isNaN(t)&&!(t.indexOf(".")>=0)}function isValidInteger(n){if(null==n)return!1;var t=trim(n);return""==t?!1:!(!t.match(/^([0-9]{1,10})$/)&&!t.match(/^([\-])([0-9]{1,10})$/))}function isValidDouble(n){if(null==n)return!1;var t=trim(n);return""==t?!1:!!(t.match(/^([0-9]{1,15})$/)||t.match(/^([0-9]{1,15})([\.])$/)||t.match(/^([0-9]{1,15})([\.])([0-9]{1,15})$/)||t.match(/^([\.])([0-9]{1,15})$/)||t.match(/^([\-])([0-9]{1,15})$/)||t.match(/^([\-])([0-9]{1,15})([\.])$/)||t.match(/^([\-])([0-9]{1,15})([\.])([0-9]{1,15})$/)||t.match(/^([\-])([\.])([0-9]{1,15})$/))}function isDateNotEmpy(n){return null!=n&&""!=n&&"__/__/____"!=n}function isValidDate(n,t){var r=!0,u="",o,c;if(isDateNotEmpy(n))if(o=trim(n).split("/"),3!=o.length)r=!1,u="The date format should be MM/DD/YYYY";else{var f=o[0],e=o[1],i=o[2];if(""==trim(f)||isNaN(f)||f.indexOf(".")>=0||f.length>2)r=!1,u="Please enter a valid month";else if(""==trim(e)||isNaN(e)||e.indexOf(".")>=0||e.length>2)r=!1,u="Please enter a valid day";else if(""==trim(i)||isNaN(i)||i.indexOf(".")>=0||4!=i.length)r=!1,u="Please enter a valid 4 digit year between 1900 and 2078";else{if(2==f.length&&0==f.indexOf("0")&&(f=f.substring(1,2)),2==e.length&&0==e.indexOf("0")&&(e=e.substring(1,2)),0==i.indexOf("0")){for(;0==i.indexOf("0");)i=i.substring(1,i.length);""==i&&(i="0")}var s=parseInt(f),l=parseInt(e),h=parseInt(i);s<1||s>12?(r=!1,u="Please enter a valid month"):h<1900||h>2078?(r=!1,u="Please enter a valid 4 digit year between 1900 and 2078"):(c="31,29,31,30,31,30,31,31,30,31,30,31".split(","),c[1]=h%4==0?29:28,(l<1||l>c[s-1])&&(r=!1,u="Please enter valid day"))}}else r=!1,u="The date format should be MM/DD/YYYY";return 2==t?u:r}function isValidHour(n,t){return!!isValidNumeric(n)&&(12==t||24==t)&&(12!=t||!(n<0||n>11))&&(24!=t||!(n<0||n>23))}function isValidMinuteOrSecond(n){return!!isValidNumeric(n)&&!(n<0||n>59)}function isValidEmail(n){var s,r,e,u;if(null==n||""==trim(n))return!1;n=trim(n);var i="[^\\s\\(\\)<>@,;:'\\\\\\\"\\.\\[\\]]+",o="("+i+'|("[^"]*"))',h=new RegExp("^"+o+"(\\."+o+")*$"),c=new RegExp("^"+i+"(\\."+i+")*$"),f=n.match(/^(.+)@(.+)$/);if(null==f||(s=f[1],r=f[2],null==s.match(h)))return!1;if(e=r.match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/),null!=e)for(u=1;u<=4;u++)if(e[u]>255)return!1;if(null==r.match(c))return!1;var l=new RegExp(i,"g"),t=r.match(l),a=t.length;return!(t[t.length-1].length<2||t[t.length-1].length>4)&&!(a<2)}function isValidEmails(n,t){var i=!0,u=n,f,r;if(null==u)return i;if(""!=trim(u))for(f=trim(u).split(t),r=0;r<f.length&&i;r++)isValidEmail(trim(f[r]))||(i=!1);return i}function isValidLogin(n){var t="";return null==n?"":""==n?"":(n.length<6?t="User login must be more than 5 characters":n.indexOf(" ")>=0?t="User login cannot contain space":n.indexOf(String.fromCharCode(34))>=0&&(t="User login cannot contain double quotation mark"),t)}function isValidPassword(n){var t="";return null==n?"":""==n?"":((n=trim(n)).length<6?t="Password must be more than 5 characters":n.indexOf(String.fromCharCode(34))>=0?t="Password cannot contain double quotation mark":n.indexOf("<")>=0?t="Password cannot contain '<' character":n.indexOf(">")>=0?t="Password cannot contain '>' character":n.indexOf("%")>=0&&(t="Password cannot contain '%' character"),t)}function isValidExt(n){if(null!=n){var t=trim(n);return""!=t?0==t.indexOf(".")||t.indexOf(".")==t.length-1?!1:t.length<3||t.length>4?!1:!!t.match(/^([a-zA-Z0-9])([a-zA-Z0-9\.]{2,3})$/):!0}return!0}function isValidUSAZipCode(n){var i=!1,r,t;return n&&(r=trim(n),5==n.length?(t=new RegExp("^\\d{5}$"),null!=r.match(t)&&(i=!0)):10==n.length&&(t=new RegExp("^(\\d{5}-\\d{4})$"),null!=r.match(t)&&(i=!0))),i}function isValidCanadaZipCode(n){var i=!1,t,r;return n&&(t=trim(n),""!=t&&(r=new RegExp("^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\\d{1}[A-Za-z]{1} *\\d{1}[A-Za-z]{1}\\d{1}$"),null!=t.match(r)&&(i=!0))),i}function setCustomURL(n){var u=$("#SEOURL"),t="",i="",f=rExp=/[^a-z0-9 -]+/gi,e=rExp=/[^a-z0-9]+/gi,r;if(null!=u&&null!=n){if(""!=(t=trim(n))){for(r=0;r<t.length;r++)switch(t.charCodeAt(r)){case 193:i+="A";break;case 225:i+="a";break;case 201:i+="E";break;case 233:i+="e";break;case 205:i+="I";break;case 237:i+="i";break;case 209:i+="N";break;case 241:i+="n";break;case 211:i+="O";break;case 243:i+="o";break;case 218:i+="U";break;case 250:i+="u";break;case 220:i+="U";break;case 252:i+="u";break;case 161:i+="i";break;default:i+=t.charAt(r)}if(""!=(t=i)){for(t=(t=(t=(t=trim(stripHTML(t.toLowerCase()))).replace(/_/g,"-")).replace(f,"")).replace(e,"-");t.indexOf("--")>=0;)t=t.replace("--","-");""!=t&&"-"==t.substring(t.length-1,t.length)&&(t=t.substring(0,t.length-1))}}u.val(t)}}function setURL(n,t){if(null==t||""==trim(t))return"";var i=trim(t),r=n;return"http://"!=i.toLowerCase()&&"https://"!=i.toLowerCase()||(i=""),i.length>=4?"/"!=i.charAt(0)&&"http"!=i.substring(0,4).toLowerCase()?i="https://"+i:"/"==i.charAt(0)&&(i=r+i):""!=i&&(i="/"==i.charAt(0)?r+i:"https://"+i),i=i.replace('"',"%22").replace(" ","%20")}function setURLTarget(n,t,i){if(null==i||""==trim(i))return"";var r="",u=trim(i).toLowerCase().replace("http://www.","").replace("https://www.",""),f=trim(n).toLowerCase().replace("http://www.",""),e=trim(t).toLowerCase().replace("https://www.","");return""!=f&&0!=u.indexOf(f)&&""!=e&&0!=u.indexOf(e)&&(r=' target="_blank"'),r}function selectAll(n){$("#"+n+" option").attr("selected","selected")}function clearAll(n,t){selectAll(n);moveToLeftRight(n,t)}function removeIt(n){$("#"+n+" option:selected").remove()}function moveUp(n){$("#"+n.data.param+" option:selected").each(function(){if(!$(this).prev().length)return!1;$(this).insertBefore($(this).prev())});$("#"+n.data.param1+" option").focus().blur()}function moveDown(n){$($("#"+n.data.param+" option:selected").get().reverse()).each(function(){if(!$(this).next().length)return!1;$(this).insertAfter($(this).next())});$("#"+n.data.param1+" option").focus().blur()}function moveToLeftRight(n,t,i){var u=0,r;null!=i&&(u=i);r=$("#"+n+" option:selected");r.length>0&&(u>0?$("#"+t+" option").length+r.length<=u?($("#"+t).append($(r).clone()),$(r).remove()):alert("The maximum number that can be added is "+u):($("#"+t).append($(r).clone()),$(r).remove()))}function roundNumber(n,t){var i=Math.pow(10,t);return Math.round(n*i)/i}function commaSeparateNumber(n){for(;/(\d+)(\d{3})/.test(n.toString());)n=n.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,");return n}function dayDiff(n,t){return roundNumber((t-n)/864e5,0)}function onlyUseNumeric(n,t,i,r){var u,f,o,e=!1,s,h;return(window.event?(u=t.keyCode,e=window.event.ctrlKey):t.which&&(u=t.which,e=t.ctrlKey),isNaN(u))?!0:(f=String.fromCharCode(u),8==u||e)?!0:(o=/\d/,s=!!r&&"-"==f&&-1==n.value.indexOf("-"),h=!!i&&"."==f&&-1==n.value.indexOf("."),s||h||o.test(f))}function extractNumeric(n,t,i){var r=n.value,u="[0-9]*",s,h,o,e,f;if(t>0?u+="\\.?[0-9]{0,"+t+"}":t<0&&(u+="\\.?[0-9]*"),u=i?"^-?"+u:"^"+u,u+="$",new RegExp(u).test(r))return!0;s=new RegExp("[^0-9"+(0!=t?".":"")+(i?"-":"")+"]","g");(r=r.replace(s,""),i)&&(h=r.length>0&&"-"==r.charAt(0),r=r.replace(/-/g,""),h&&(r="-"+r));0!=t&&(o=/\./g,e=o.exec(r),null!=e&&(f=r.substring(e.index+e[0].length),f=f.replace(o,""),f=t>0?f.substring(0,t):f,r=r.substring(0,e.index)+"."+f));n.value=r}function extractNumeric2(n,t,i){var r=n,u="[0-9]*",s,h,o,e,f;return(t>0?u+="\\.?[0-9]{0,"+t+"}":t<0&&(u+="\\.?[0-9]*"),u=i?"^-?"+u:"^"+u,u+="$",new RegExp(u).test(r))?!0:(s=new RegExp("[^0-9"+(0!=t?".":"")+(i?"-":"")+"]","g"),(r=r.replace(s,""),i)&&(h=r.length>0&&"-"==r.charAt(0),r=r.replace(/-/g,""),h&&(r="-"+r)),0!=t&&(o=/\./g,e=o.exec(r),null!=e&&(f=r.substring(e.index+e[0].length),f=f.replace(o,""),f=t>0?f.substring(0,t):f,r=r.substring(0,e.index)+"."+f)),r)}function handleAjaxDialogError(n,t){var i="";"timeout"==n?i="We're sorry, your request has been timeout. Please try again later.":"abort"==n?i="We're sorry, your request has been aborted. Please try again later.":(i="We're sorry, an error occured when trying to save the data",""!=t&&(i+=" ("+t+")"));alert(i)}function ajaxLoadData(n,t,i,r,u){ShowLog("ajaxLoadData pData",t);$.ajax({url:n,data:t,cache:!1,dataType:i,type:"GET",success:function(n){if(r.html(""),r.html(n),r.trigger("change"),u){var t=r.position();window.scrollTo(t.left,t.top-260)}},error:function(n,t,i){var u="";"timeout"==t?u="We're sorry, your request has been timeout. Please try again later.":"abort"==t?u="We're sorry, your request has been aborted. Please try again later.":(u="We're sorry, an error occured when trying to load the data",""!=i&&(u+=" ("+i+")"));r.html("");r.html(u)},complete:function(){}})}function validateVideoURL(n){var i=n,t=i.split("://"),r=i.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/);return r?i="https://www.youtube.com/embed/"+r[7]:t.length>=2?i=t[t.length-1].indexOf("youtube.com/embed/")>0?"https://"+t[t.length-1]:t[t.length-2]+"://"+t[t.length-1]:i.indexOf("youtube.com/embed/")>=0&&(i="https://"+i),i}function serializeForm(n){var i=$("#"+n).serializeArray(),t="";return jQuery.each(i,function(n,i){""!=t&&(t+="&");t=t+i.name+"="+escapeFormInput(i.value)}),t}function InsertToCKEditor(n,t){CKEDITOR.instances[n].insertText(t)}function ShowLog(){}var BuckeyeBrowser,generaljs;!function(n,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)}("undefined"!=typeof window?window:this,function(n,t){"use strict";function lr(n,t,i){var r,u=(t=t||f).createElement("script");if(u.text=n,i)for(r in te)i[r]&&(u[r]=i[r]);t.head.appendChild(u).parentNode.removeChild(u)}function it(n){return null==n?n+"":"object"==typeof n||"function"==typeof n?kt[hr.call(n)]||"object":typeof n}function li(n){var t=!!n&&"length"in n&&n.length,i=it(n);return!u(n)&&!tt(n)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in n)}function v(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()}function vi(n,t,r){return u(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):"string"!=typeof t?i.grep(n,function(n){return bt.call(t,n)>-1!==r}):i.filter(t,n,r)}function kr(n,t){for(;(n=n[t])&&1!==n.nodeType;);return n}function ut(n){return n}function gt(n){throw n;}function dr(n,t,i,r){var f;try{n&&u(f=n.promise)?f.call(n).done(t).fail(i):n&&u(f=n.then)?f.call(n,t,i):t.apply(void 0,[n].slice(r))}catch(n){i.apply(void 0,[n])}}function ti(){f.removeEventListener("DOMContentLoaded",ti);n.removeEventListener("load",ti);i.ready()}function fe(n,t){return t.toUpperCase()}function y(n){return n.replace(re,"ms-").replace(ue,fe)}function at(){this.expando=i.expando+at.uid++}function nu(n,t,i){var r;if(void 0===i&&1===n.nodeType)if(r="data-"+t.replace(oe,"-$&").toLowerCase(),"string"==typeof(i=n.getAttribute(r))){try{i=function(n){return"true"===n||"false"!==n&&("null"===n?null:n===+n+""?+n:ee.test(n)?JSON.parse(n):n)}(i)}catch(n){}o.set(n,t,i)}else i=void 0;return i}function ru(n,t,r,u){var s,h,c=20,l=u?function(){return u.cur()}:function(){return i.css(n,t,"")},o=l(),e=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||"px"!==e&&+o)&&vt.exec(i.css(n,t));if(f&&f[3]!==e){for(o/=2,e=e||f[3],f=+o||1;c--;)i.style(n,t,f+e),(1-h)*(1-(h=l()/o||.5))<=0&&(c=0),f/=h;f*=2;i.style(n,t,f+e);r=r||[]}return r&&(f=+f||+o||0,s=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=e,u.start=f,u.end=s)),s}function se(n){var r,f=n.ownerDocument,u=n.nodeName,t=yi[u];return t||(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),"none"===t&&(t="block"),yi[u]=t,t)}function ft(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i]).style&&(e=u.style.display,t?("none"===e&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),""===u.style.display&&ii(u)&&(f[i]=se(u))):"none"!==e&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)null!=f[i]&&(n[i].style.display=f[i]);return n}function s(n,t){var r;return r=void 0!==n.getElementsByTagName?n.getElementsByTagName(t||"*"):void 0!==n.querySelectorAll?n.querySelectorAll(t||"*"):[],void 0===t||t&&v(n,t)?i.merge([n],r):r}function pi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function su(n,t,r,u,f){for(var e,o,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if((e=n[l])||0===e)if("object"===it(e))i.merge(y,e.nodeType?[e]:e);else if(ou.test(e)){for(o=o||h.appendChild(t.createElement("div")),p=(fu.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,o.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)o=o.lastChild;i.merge(y,o.childNodes);(o=h.firstChild).textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];)if(u&&i.inArray(e,u)>-1)f&&f.push(e);else if(w=i.contains(e.ownerDocument,e),o=s(h.appendChild(e),"script"),w&&pi(o),r)for(v=0;e=o[v++];)eu.test(e.type||"")&&r.push(e);return h}function fi(){return!0}function et(){return!1}function cu(){try{return f.activeElement}catch(n){}}function wi(n,t,r,u,f,e){var o,s;if("object"==typeof t){for(s in"string"!=typeof r&&(u=u||r,r=void 0),t)wi(n,s,r,u,t[s],e);return n}if(null==u&&null==f?(f=r,u=r=void 0):null==f&&("string"==typeof r?(f=u,u=void 0):(f=u,u=r,r=void 0)),!1===f)f=et;else if(!f)return n;return 1===e&&(o=f,(f=function(n){return i().off(n),o.apply(this,arguments)}).guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function lu(n,t){return v(n,"table")&&v(11!==t.nodeType?t:t.firstChild,"tr")&&i(n).children("tbody")[0]||n}function pe(n){return n.type=(null!==n.getAttribute("type"))+"/"+n.type,n}function we(n){return"true/"===(n.type||"").slice(0,5)?n.type=n.type.slice(5):n.removeAttribute("type"),n}function au(n,t){var u,c,f,s,h,l,a,e;if(1===t.nodeType){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),e=s.events))for(f in delete h.handle,h.events={},e)for(u=0,c=e[f].length;u<c;u++)i.event.add(t,f,e[f][u]);o.hasData(n)&&(l=o.access(n),a=i.extend({},l),o.set(t,a))}}function ot(n,t,f,o){t=sr.apply([],t);var a,w,l,v,h,b,c=0,y=n.length,d=y-1,p=t[0],k=u(p);if(k||y>1&&"string"==typeof p&&!e.checkClone&&ve.test(p))return n.each(function(i){var r=n.eq(i);k&&(t[0]=p.call(this,i,r.html()));ot(r,t,f,o)});if(y&&(w=(a=su(t,n[0].ownerDocument,!1,n,o)).firstChild,1===a.childNodes.length&&(a=w),w||o)){for(v=(l=i.map(s(a,"script"),pe)).length;c<y;c++)h=a,c!==d&&(h=i.clone(h,!0,!0),v&&i.merge(l,s(h,"script"))),f.call(n[c],h,c);if(v)for(b=l[l.length-1].ownerDocument,i.map(l,we),c=0;c<v;c++)h=l[c],eu.test(h.type||"")&&!r.access(h,"globalEval")&&i.contains(b,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?i._evalUrl&&i._evalUrl(h.src):lr(h.textContent.replace(ye,""),b,h))}return n}function vu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;null!=(u=e[f]);f++)r||1!==u.nodeType||i.cleanData(s(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&pi(s(u,"script")),u.parentNode.removeChild(u));return n}function pt(n,t,r){var o,s,h,f,u=n.style;return(r=r||ei(n))&&(""!==(f=r.getPropertyValue(t)||r[t])||i.contains(n.ownerDocument,n)||(f=i.style(n,t)),!e.pixelBoxStyles()&&bi.test(f)&&be.test(t)&&(o=u.width,s=u.minWidth,h=u.maxWidth,u.minWidth=u.maxWidth=u.width=f,f=r.width,u.width=o,u.minWidth=s,u.maxWidth=h)),void 0!==f?f+"":f}function yu(n,t){return{get:function(){if(!n())return(this.get=t).apply(this,arguments);delete this.get}}}function du(n){var t=i.cssProps[n];return t||(t=i.cssProps[n]=function(n){if(n in ku)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=bu.length;t--;)if((n=bu[t]+i)in ku)return n}(n)||n),t}function gu(n,t,i){var r=vt.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function ki(n,t,r,u,f,e){var o="width"===t?1:0,h=0,s=0;if(r===(u?"border":"content"))return 0;for(;o<4;o+=2)"margin"===r&&(s+=i.css(n,r+w[o],!0,f)),u?("content"===r&&(s-=i.css(n,"padding"+w[o],!0,f)),"margin"!==r&&(s-=i.css(n,"border"+w[o]+"Width",!0,f))):(s+=i.css(n,"padding"+w[o],!0,f),"padding"!==r?s+=i.css(n,"border"+w[o]+"Width",!0,f):h+=i.css(n,"border"+w[o]+"Width",!0,f));return!u&&e>=0&&(s+=Math.max(0,Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-e-s-h-.5))),s}function nf(n,t,r){var f=ei(n),u=pt(n,t,f),s="border-box"===i.css(n,"boxSizing",!1,f),o=s;if(bi.test(u)){if(!r)return u;u="auto"}return o=o&&(e.boxSizingReliable()||u===n.style[t]),("auto"===u||!parseFloat(u)&&"inline"===i.css(n,"display",!1,f))&&(u=n["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),(u=parseFloat(u)||0)+ki(n,t,r||(s?"border":"content"),o,f,u)+"px"}function h(n,t,i,r,u){return new h.prototype.init(n,t,i,r,u)}function di(){oi&&(!1===f.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(di):n.setTimeout(di,i.fx.interval),i.fx.tick())}function uf(){return n.setTimeout(function(){st=void 0}),st=Date.now()}function si(n,t){var u,r=0,i={height:n};for(t=t?1:0;r<4;r+=2-t)i["margin"+(u=w[r])]=i["padding"+u]=n;return t&&(i.opacity=i.width=n),i}function ff(n,t,i){for(var u,f=(a.tweeners[t]||[]).concat(a.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function a(n,t,r){var o,s,h=0,v=a.prefilters.length,e=i.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var o=st||uf(),t=Math.max(0,f.startTime+f.duration-o),i=1-(t/f.duration||0),r=0,u=f.tweens.length;r<u;r++)f.tweens[r].run(i);return e.notifyWith(n,[f,i,t]),i<1&&u?t:(u||e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f]),!1)},f=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:st||uf(),duration:r.duration,tweens:[],createTween:function(t,r){var u=i.Tween(n,f.opts,t,r,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(u),u},stop:function(t){var i=0,r=t?f.tweens.length:0;if(s)return this;for(s=!0;i<r;i++)f.tweens[i].run(1);return t?(e.notifyWith(n,[f,1,0]),e.resolveWith(n,[f,t])):e.rejectWith(n,[f,t]),this}}),c=f.props;for(!function(n,t){var r,f,e,u,o;for(r in n)if(e=t[f=y(r)],u=n[r],Array.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),(o=i.cssHooks[f])&&"expand"in o)for(r in u=o.expand(u),delete n[f],u)r in n||(n[r]=u[r],t[r]=e);else t[f]=e}(c,f.opts.specialEasing);h<v;h++)if(o=a.prefilters[h].call(f,n,c,f.opts))return u(o.stop)&&(i._queueHooks(f.elem,f.opts.queue).stop=o.stop.bind(o)),o;return i.map(c,ff,f),u(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),i.fx.timer(i.extend(l,{elem:n,anim:f,queue:f.opts.queue})),f}function g(n){return(n.match(l)||[]).join(" ")}function nt(n){return n.getAttribute&&n.getAttribute("class")||""}function gi(n){return Array.isArray(n)?n:"string"==typeof n&&n.match(l)||[]}function rr(n,t,r,u){var f;if(Array.isArray(t))i.each(t,function(t,i){r||ge.test(n)?u(n,i):rr(n+"["+("object"==typeof i&&null!=i?t:"")+"]",i,r,u)});else if(r||"object"!==it(t))u(n,t);else for(f in t)rr(n+"["+f+"]",t[f],r,u)}function yf(n){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,f=0,e=t.toLowerCase().match(l)||[];if(u(i))for(;r=e[f++];)"+"===r[0]?(r=r.slice(1)||"*",(n[r]=n[r]||[]).unshift(i)):(n[r]=n[r]||[]).push(i)}}function pf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);return"string"!=typeof s||o||f[s]?o?!(h=s):void 0:(t.dataTypes.unshift(s),e(s),!1)}),h}var f={},o=n===ur;return e(t.dataTypes[0])||!f["*"]&&e("*")}function er(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}var k=[],f=n.document,gf=Object.getPrototypeOf,d=k.slice,sr=k.concat,ci=k.push,bt=k.indexOf,kt={},hr=kt.toString,dt=kt.hasOwnProperty,cr=dt.toString,ne=cr.call(Object),e={},u=function(n){return"function"==typeof n&&"number"!=typeof n.nodeType},tt=function(n){return null!=n&&n===n.window},te={type:!0,src:!0,noModule:!0},i=function(n,t){return new i.fn.init(n,t)},ie=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b,ai,yr,pr,wr,br,l,gr,ni,lt,yi,yt,ri,ou,st,oi,tf,rf,ef,ht,of,sf,hf,nr,tr,wf,ct,bf,or,hi,kf,df;i.fn=i.prototype={jquery:"3.3.1",constructor:i,length:0,toArray:function(){return d.call(this)},get:function(n){return null==n?d.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ci,sort:k.sort,splice:k.splice};i.extend=i.fn.extend=function(){var o,e,t,r,s,h,n=arguments[0]||{},f=1,l=arguments.length,c=!1;for("boolean"==typeof n&&(c=n,n=arguments[f]||{},f++),"object"==typeof n||u(n)||(n={}),f===l&&(n=this,f--);f<l;f++)if(null!=(o=arguments[f]))for(e in o)t=n[e],n!==(r=o[e])&&(c&&r&&(i.isPlainObject(r)||(s=Array.isArray(r)))?(s?(s=!1,h=t&&Array.isArray(t)?t:[]):h=t&&i.isPlainObject(t)?t:{},n[e]=i.extend(c,h,r)):void 0!==r&&(n[e]=r));return n};i.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isPlainObject:function(n){var t,i;return!(!n||"[object Object]"!==hr.call(n))&&(!(t=gf(n))||"function"==typeof(i=dt.call(t,"constructor")&&t.constructor)&&cr.call(i)===ne)},isEmptyObject:function(n){for(var t in n)return!1;return!0},globalEval:function(n){lr(n)},each:function(n,t){var r,i=0;if(li(n))for(r=n.length;i<r&&!1!==t.call(n[i],i,n[i]);i++);else for(i in n)if(!1===t.call(n[i],i,n[i]))break;return n},trim:function(n){return null==n?"":(n+"").replace(ie,"")},makeArray:function(n,t){var r=t||[];return null!=n&&(li(Object(n))?i.merge(r,"string"==typeof n?[n]:n):ci.call(r,n)),r},inArray:function(n,t,i){return null==t?-1:bt.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u=[],r=0,f=n.length,e=!i;r<f;r++)!t(n[r],r)!==e&&u.push(n[r]);return u},map:function(n,t,i){var e,u,r=0,f=[];if(li(n))for(e=n.length;r<e;r++)null!=(u=t(n[r],r,i))&&f.push(u);else for(r in n)null!=(u=t(n[r],r,i))&&f.push(u);return sr.apply([],f)},guid:1,support:e});"function"==typeof Symbol&&(i.fn[Symbol.iterator]=k[Symbol.iterator]);i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){kt["[object "+t+"]"]=t.toLowerCase()});b=function(n){function u(n,t,r,u){var s,p,l,a,w,d,g,y=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],"string"!=typeof n||!n||1!==v&&9!==v&&11!==v)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(11!==v&&(w=cr.exec(n)))if(s=w[1]){if(9===v){if(!(l=t.getElementById(s)))return r;if(l.id===s)return r.push(l),r}else if(y&&(l=y.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(w[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=w[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(1!==v)y=t,g=n;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),p=(d=ft(n)).length;p--;)d[p]="#"+a+" "+yt(d[p]);g=d.join(",");y=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,y.querySelectorAll(g)),r}catch(n){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){var n=[];return function i(r,u){return n.push(r+" ")>t.cacheLength&&delete i[n.shift()],i[r+" "]=u}}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t);t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&1===n.nodeType&&1===t.nodeType&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t&&t.disabled===n}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&void 0!==n.getElementsByTagName&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&"parentNode"===e,s=di++;return t.first?function(t,i,u){for(;t=t[r];)if(1===t.nodeType||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,y,a=[v,s];if(h){for(;t=t[r];)if((1===t.nodeType||o)&&n(t,i,h))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(l=(y=t[f]||(t[f]={}))[t.uniqueID]||(y[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return a[2]=c[2];if(l[e]=a,a[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=null!=t;f<s;f++)(e=n[f])&&(i&&!i(e,r,u)||(o.push(e),h&&t.push(f)));return o}function fi(n,t,i,r,e,o){return r&&!r[f]&&(r=fi(r)),e&&!e[f]&&(e=fi(e,o)),l(function(f,o,s,h){var a,l,v,w=[],p=[],b=o.length,d=f||function(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}(t||"*",s.nodeType?[s]:s,[]),y=!n||!f&&t?d:wt(d,w,n,s,h),c=i?e||(f?n:b||r)?[]:o:y;if(i&&i(y,c,s,h),r)for(a=wt(c,p),r(a,[],s,h),l=a.length;l--;)(v=a[l])&&(c[p[l]]=!(y[p[l]]=v));if(f){if(e||n){if(e){for(a=[],l=c.length;l--;)(v=c[l])&&a.push(y[l]=v);e(null,c=[],a,h)}for(l=c.length;l--;)(v=c[l])&&(a=e?nt(f,v):w[l])>-1&&(f[a]=!(o[a]=v))}}else c=wt(c===o?c.splice(b,c.length):c),e?e(null,o,c,h):k.apply(o,c)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if((u=t.filter[n[i].type].apply(null,n[i].matches))[f]){for(r=++i;r<s&&!t.relative[n[r].type];r++);return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:" "===n[i-2].type?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!=r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?"\0"===n?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return!0===n.disabled&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes);g[c.childNodes.length].nodeType}catch(n){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}for(rt in e=u.support={},oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return!!t&&"HTML"!==t.nodeName},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l!==i&&9===l.nodeType&&l.documentElement?(s=(i=l).documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=void 0!==n.getAttributeNode&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(void 0!==t.getElementById&&h){var r,u,f,i=t.getElementById(n);if(i){if((r=i.getAttributeNode("id"))&&r.value===n)return[i];for(f=t.getElementsByName(n),u=0;i=f[u++];)if((r=i.getAttributeNode("id"))&&r.value===n)return[i]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if("*"===n){for(;i=u[f++];)1===i.nodeType&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>";n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")");n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")");n.querySelectorAll("[id~="+f+"-]").length||o.push("~=");n.querySelectorAll(":checked").length||o.push(":checked");n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden");n.appendChild(t).setAttribute("name","D");n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?=");2!==n.querySelectorAll(":enabled").length&&o.push(":enabled",":disabled");s.appendChild(n).disabled=!0;2!==n.querySelectorAll(":disabled").length&&o.push(":enabled",":disabled");n.querySelectorAll("*,:x");o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*");ct.call(n,"[s!='']:x");d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=9===n.nodeType?n.documentElement:n,i=t&&t.parentNode;return n===i||!(!i||1!==i.nodeType||!(r.contains?r.contains(i):n.compareDocumentPosition&&16&n.compareDocumentPosition(i)))}:function(n,t){if(t)for(;t=t.parentNode;)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1)||!e.sortDetached&&t.compareDocumentPosition(n)===r?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:4&r?-1:1)}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(!o||!s)return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;if(o===s)return wi(n,t);for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);for(;f[u]===e[u];)u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i):i},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&11!==n.document.nodeType)return r}catch(n){}return u(t,i,null,[n]).length>0},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):void 0;return void 0!==u?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(vi,yi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){for(;r=n[i++];)r===n[i]&&(t=u.push(i));for(;t--;)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(1===t||9===t||11===t){if("string"==typeof n.textContent)return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(3===t||4===t)return n.nodeValue}else for(;r=n[u++];)i+=st(r);return i},(t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),"~="===n[2]&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),"nth"===n[1].slice(0,3)?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*("even"===n[3]||"odd"===n[3])),n[5]=+(n[7]+n[8]||"odd"===n[3])):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return"*"===n?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test("string"==typeof n.className&&n.className||void 0!==n.getAttribute&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return null==f?"!="===t:!t||(f+="","="===t?f===i:"!="===t?f!==i:"^="===t?i&&0===f.indexOf(i):"*="===t?i&&f.indexOf(i)>-1:"$="===t?i&&f.slice(-i.length)===i:"~="===t?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:"|="===t&&(f===i||f.slice(0,i.length+1)===i+"-"))}},CHILD:function(n,t,i,r,u){var s="nth"!==n.slice(0,3),o="last"!==n.slice(-4),e="of-type"===t;return 1===r&&0===u?function(n){return!!n.parentNode}:function(t,i,h){var p,d,y,c,a,w,b=s!==o?"nextSibling":"previousSibling",k=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(k){if(s){for(;b;){for(c=t;c=c[b];)if(e?c.nodeName.toLowerCase()===nt:1===c.nodeType)return!1;w=b="only"===n&&!w&&"nextSibling"}return!0}if(w=[o?k.firstChild:k.lastChild],o&&g){for(l=(a=(p=(d=(y=(c=k)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1])&&p[2],c=a&&k.childNodes[a];c=++a&&c&&c[b]||(l=a=0)||w.pop();)if(1===c.nodeType&&++l&&c===t){d[n]=[v,a,l];break}}else if(g&&(l=a=(p=(d=(y=(c=t)[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]||[])[0]===v&&p[1]),!1===l)for(;(c=++a&&c&&c[b]||(l=a=0)||w.pop())&&((e?c.nodeName.toLowerCase()!==nt:1!==c.nodeType)||!++l||(g&&((d=(y=c[f]||(c[f]={}))[c.uniqueID]||(y[c.uniqueID]={}))[n]=[v,l]),c!==t)););return(l-=u)===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var e,u=r(n,i),f=u.length;f--;)n[e=nt(n,u[f])]=!(t[e]=u[f])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===n||0===i.indexOf(n+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&!!n.checked||"option"===t&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,!0===n.selected},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return"input"===t&&"button"===n.type||"button"===t},text:function(n){var t;return"input"===n.nodeName.toLowerCase()&&"text"===n.type&&(null==(t=n.getAttribute("type"))||"text"===t.toLowerCase())},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){for(o in e&&!(f=rr.exec(r))||(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length)),t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,r){var o,s=[],c=[],e=lt[n+" "];if(!e){for(r||(r=ft(n)),o=r.length;o--;)(e=ei(r[o]))[f]?s.push(e):c.push(e);(e=lt(n,function(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=null==it?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&null!=(y=rt[p]);p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)for(;p--;)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w);a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}(c,s))).selector=n}return e},si=u.select=function(n,i,r,u){var o,f,e,l,a,c="function"==typeof n&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],1===s.length){if((f=s[0]=s[0].slice(0)).length>2&&"ID"===(e=f[0]).type&&9===i.nodeType&&h&&t.relative[f[1].type]){if(!(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0]))return r;c&&(i=i.parentNode);n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--&&(e=f[o],!t.relative[l=e.type]);)if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),!(n=u.length&&yt(f)))return k.apply(r,u),r;break}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return 1&n.compareDocumentPosition(i.createElement("fieldset"))}),a(function(n){return n.innerHTML="<a href='#'><\/a>","#"===n.firstChild.getAttribute("href")})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,"type"===t.toLowerCase()?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),""===n.firstChild.getAttribute("value")})||ii("value",function(n,t,i){if(!i&&"input"===n.nodeName.toLowerCase())return n.defaultValue}),a(function(n){return null==n.getAttribute("disabled")})||ii(dt,function(n,t,i){var r;if(!i)return!0===n[t]?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n);i.find=b;i.expr=b.selectors;i.expr[":"]=i.expr.pseudos;i.uniqueSort=i.unique=b.uniqueSort;i.text=b.getText;i.isXMLDoc=b.isXML;i.contains=b.contains;i.escapeSelector=b.escape;var rt=function(n,t,r){for(var u=[],f=void 0!==r;(n=n[t])&&9!==n.nodeType;)if(1===n.nodeType){if(f&&i(n).is(r))break;u.push(n)}return u},ar=function(n,t){for(var i=[];n;n=n.nextSibling)1===n.nodeType&&n!==t&&i.push(n);return i},vr=i.expr.match.needsContext;ai=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;i.filter=function(n,t,r){var u=t[0];return r&&(n=":not("+n+")"),1===t.length&&1===u.nodeType?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return 1===n.nodeType}))};i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if("string"!=typeof n)return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(vi(this,n||[],!1))},not:function(n){return this.pushStack(vi(this,n||[],!0))},is:function(n){return!!vi(this,"string"==typeof n&&vr.test(n)?i(n):n||[],!1).length}});pr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(i.fn.init=function(n,t,r){var e,o;if(!n)return this;if(r=r||yr,"string"==typeof n){if(!(e="<"===n[0]&&">"===n[n.length-1]&&n.length>=3?[null,n,null]:pr.exec(n))||!e[1]&&t)return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n);if(e[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(e[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),ai.test(e[1])&&i.isPlainObject(t))for(e in t)u(this[e])?this[e](t[e]):this.attr(e,t[e]);return this}return(o=f.getElementById(e[2]))&&(this[0]=o,this.length=1),this}return n.nodeType?(this[0]=n,this.length=1,this):u(n)?void 0!==r.ready?r.ready(n):n(i):i.makeArray(n,this)}).prototype=i.fn;yr=i(f);wr=/^(?:parents|prev(?:Until|All))/;br={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e="string"!=typeof n&&i(n);if(!vr.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:1===r.nodeType&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?"string"==typeof n?bt.call(i(n),this[0]):bt.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(null==n?this.prevObject:this.prevObject.filter(n))}});i.each({parent:function(n){var t=n.parentNode;return t&&11!==t.nodeType?t:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,t,i){return rt(n,"parentNode",i)},next:function(n){return kr(n,"nextSibling")},prev:function(n){return kr(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,t,i){return rt(n,"nextSibling",i)},prevUntil:function(n,t,i){return rt(n,"previousSibling",i)},siblings:function(n){return ar((n.parentNode||{}).firstChild,n)},children:function(n){return ar(n.firstChild)},contents:function(n){return v(n,"iframe")?n.contentDocument:(v(n,"template")&&(n=n.content||n),i.merge([],n.childNodes))}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return"Until"!==n.slice(-5)&&(u=r),u&&"string"==typeof u&&(f=i.filter(u,f)),this.length>1&&(br[n]||i.uniqueSort(f),wr.test(n)&&f.reverse()),this.pushStack(f)}});l=/[^\x20\t\r\n\f]+/g;i.Callbacks=function(n){n="string"==typeof n?function(n){var t={};return i.each(n.match(l)||[],function(n,i){t[i]=!0}),t}(n):i.extend({},n);var f,r,c,e,t=[],s=[],o=-1,a=function(){for(e=e||n.once,c=f=!0;s.length;o=-1)for(r=s.shift();++o<t.length;)!1===t[o].apply(r[0],r[1])&&n.stopOnFalse&&(o=t.length,r=!1);n.memory||(r=!1);f=!1;e&&(t=r?[]:"")},h={add:function(){return t&&(r&&!f&&(o=t.length-1,s.push(r)),function f(r){i.each(r,function(i,r){u(r)?n.unique&&h.has(r)||t.push(r):r&&r.length&&"string"!==it(r)&&f(r)})}(arguments),r&&!f&&a()),this},remove:function(){return i.each(arguments,function(n,r){for(var u;(u=i.inArray(r,t,u))>-1;)t.splice(u,1),u<=o&&o--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return e=s=[],t=r="",this},disabled:function(){return!t},lock:function(){return e=s=[],r||f||(t=r=""),this},locked:function(){return!!e},fireWith:function(n,t){return e||(t=[n,(t=t||[]).slice?t.slice():t],s.push(t),f||a()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!c}};return h};i.extend({Deferred:function(t){var f=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],o="pending",e={state:function(){return o},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return e.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(f,function(i,f){var e=u(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&u(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})});n=null}).promise()},then:function(t,r,e){function s(t,r,f,e){return function(){var h=this,c=arguments,a=function(){var n,i;if(!(t<o)){if((n=f.apply(h,c))===r.promise())throw new TypeError("Thenable self-resolution");i=n&&("object"==typeof n||"function"==typeof n)&&n.then;u(i)?e?i.call(n,s(o,r,ut,e),s(o,r,gt,e)):(o++,i.call(n,s(o,r,ut,e),s(o,r,gt,e),s(o,r,ut,r.notifyWith))):(f!==ut&&(h=void 0,c=[n]),(e||r.resolveWith)(h,c))}},l=e?a:function(){try{a()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,l.stackTrace);t+1>=o&&(f!==gt&&(h=void 0,c=[n]),r.rejectWith(h,c))}};t?l():(i.Deferred.getStackHook&&(l.stackTrace=i.Deferred.getStackHook()),n.setTimeout(l))}}var o=0;return i.Deferred(function(n){f[0][3].add(s(0,n,u(e)?e:ut,n.notifyWith));f[1][3].add(s(0,n,u(t)?t:ut));f[2][3].add(s(0,n,u(r)?r:gt))}).promise()},promise:function(n){return null!=n?i.extend(n,e):e}},r={};return i.each(f,function(n,t){var i=t[2],u=t[5];e[t[1]]=i.add;u&&i.add(function(){o=u},f[3-n][2].disable,f[3-n][3].disable,f[0][2].lock,f[0][3].lock);i.add(t[3].fire);r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this};r[t[0]+"With"]=i.fireWith}),e.promise(r),t&&t.call(r,r),r},when:function(n){var e=arguments.length,t=e,o=Array(t),f=d.call(arguments),r=i.Deferred(),s=function(n){return function(t){o[n]=this;f[n]=arguments.length>1?d.call(arguments):t;--e||r.resolveWith(o,f)}};if(e<=1&&(dr(n,r.done(s(t)).resolve,r.reject,!e),"pending"===r.state()||u(f[t]&&f[t].then)))return r.then();for(;t--;)dr(f[t],s(t),r.reject);return r.promise()}});gr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&gr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)};i.readyException=function(t){n.setTimeout(function(){throw t;})};ni=i.Deferred();i.fn.ready=function(n){return ni.then(n).catch(function(n){i.readyException(n)}),this};i.extend({isReady:!1,readyWait:1,ready:function(n){(!0===n?--i.readyWait:i.isReady)||(i.isReady=!0,!0!==n&&--i.readyWait>0||ni.resolveWith(f,[i]))}});i.ready.then=ni.then;"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll?n.setTimeout(i.ready):(f.addEventListener("DOMContentLoaded",ti),n.addEventListener("load",ti));var p=function(n,t,r,f,e,o,s){var h=0,l=n.length,c=null==r;if("object"===it(r))for(h in e=!0,r)p(n,t,h,r[h],!0,o,s);else if(void 0!==f&&(e=!0,u(f)||(s=!0),c&&(s?(t.call(n,f),t=null):(c=t,t=function(n,t,r){return c.call(i(n),r)})),t))for(;h<l;h++)t(n[h],r,s?f:f.call(n[h],h,t(n[h],r)));return e?n:c?t.call(n):l?t(n[0],r):o},re=/^-ms-/,ue=/-([a-z])/g;lt=function(n){return 1===n.nodeType||9===n.nodeType||!+n.nodeType};at.uid=1;at.prototype={cache:function(n){var t=n[this.expando];return t||(t={},lt(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,i){var r,u=this.cache(n);if("string"==typeof t)u[y(t)]=i;else for(r in t)u[y(r)]=t[r];return u},get:function(n,t){return void 0===t?this.cache(n):n[this.expando]&&n[this.expando][y(t)]},access:function(n,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(n,t):(this.set(n,t,i),void 0!==i?i:t)},remove:function(n,t){var u,r=n[this.expando];if(void 0!==r){if(void 0!==t)for(u=(t=Array.isArray(t)?t.map(y):(t=y(t))in r?[t]:t.match(l)||[]).length;u--;)delete r[t[u]];(void 0===t||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return void 0!==t&&!i.isEmptyObject(t)}};var r=new at,o=new at,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;i.extend({hasData:function(n){return o.hasData(n)||r.hasData(n)},data:function(n,t,i){return o.access(n,t,i)},removeData:function(n,t){o.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}});i.fn.extend({data:function(n,t){var f,u,e,i=this[0],s=i&&i.attributes;if(void 0===n){if(this.length&&(e=o.get(i),1===i.nodeType&&!r.get(i,"hasDataAttrs"))){for(f=s.length;f--;)s[f]&&0===(u=s[f].name).indexOf("data-")&&(u=y(u.slice(5)),nu(i,u,e[u]));r.set(i,"hasDataAttrs",!0)}return e}return"object"==typeof n?this.each(function(){o.set(this,n)}):p(this,function(t){var r;if(i&&void 0===t)return void 0!==(r=o.get(i,n))?r:void 0!==(r=nu(i,n))?r:void 0;this.each(function(){o.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){o.remove(this,n)})}});i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||Array.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t);"inprogress"===u&&(u=r.shift(),e--);u&&("fx"===t&&r.unshift("inprogress"),delete f.stop,u.call(n,function(){i.dequeue(n,t)},f));!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}});i.fn.extend({queue:function(n,t){var r=2;return"string"!=typeof n&&(t=n,n="fx",r--),arguments.length<r?i.queue(this[0],n):void 0===t?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n);"fx"===n&&"inprogress"!==r[0]&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for("string"!=typeof n&&(t=n,n=void 0),n=n||"fx";s--;)(u=r.get(f[s],n+"queueHooks"))&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var tu=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,vt=new RegExp("^(?:([+-])=|)("+tu+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],ii=function(n,t){return"none"===(n=t||n).style.display||""===n.style.display&&i.contains(n.ownerDocument,n)&&"none"===i.css(n,"display")},iu=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];for(u in f=i.apply(n,r||[]),t)n.style[u]=e[u];return f};yi={};i.fn.extend({show:function(){return ft(this,!0)},hide:function(){return ft(this)},toggle:function(n){return"boolean"==typeof n?n?this.show():this.hide():this.each(function(){ii(this)?i(this).show():i(this).hide()})}});var uu=/^(?:checkbox|radio)$/i,fu=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,eu=/^$|^module$|\/(?:java|ecma)script/i,c={option:[1,"<select multiple='multiple'>","<\/select>"],thead:[1,"<table>","<\/table>"],col:[2,"<table><colgroup>","<\/colgroup><\/table>"],tr:[2,"<table><tbody>","<\/tbody><\/table>"],td:[3,"<table><tbody><tr>","<\/tr><\/tbody><\/table>"],_default:[0,"",""]};c.optgroup=c.option;c.tbody=c.tfoot=c.colgroup=c.caption=c.thead;c.th=c.td;ou=/<|&#?\w+;/;yt=f.createDocumentFragment().appendChild(f.createElement("div"));(ri=f.createElement("input")).setAttribute("type","radio");ri.setAttribute("checked","checked");ri.setAttribute("name","t");yt.appendChild(ri);e.checkClone=yt.cloneNode(!0).cloneNode(!0).lastChild.checked;yt.innerHTML="<textarea>x<\/textarea>";e.noCloneChecked=!!yt.cloneNode(!0).lastChild.defaultValue;var ui=f.documentElement,he=/^key/,ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var p,v,k,y,w,h,s,c,o,b,d,a=r.get(n);if(a)for(u.handler&&(u=(p=u).handler,e=p.selector),e&&i.find.matchesSelector(ui,e),u.guid||(u.guid=i.guid++),(y=a.events)||(y=a.events={}),(v=a.handle)||(v=a.handle=function(t){if(void 0!==i&&i.event.triggered!==t.type)return i.event.dispatch.apply(n,arguments)}),w=(t=(t||"").match(l)||[""]).length;w--;)o=d=(k=hu.exec(t[w])||[])[1],b=(k[2]||"").split(".").sort(),o&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},h=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:b.join(".")},p),(c=y[o])||((c=y[o]=[]).delegateCount=0,s.setup&&!1!==s.setup.call(n,f,b,v)||n.addEventListener&&n.addEventListener(o,v)),s.add&&(s.add.call(n,h),h.handler.guid||(h.handler.guid=u.guid)),e?c.splice(c.delegateCount++,0,h):c.push(h),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,h,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(p=(t=(t||"").match(l)||[""]).length;p--;)if(o=d=(c=hu.exec(t[p])||[])[1],b=(c[2]||"").split(".").sort(),o){for(h=i.event.special[o]||{},a=v[o=(f?h.delegateType:h.bindType)||o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],!e&&d!==s.origType||u&&u.guid!==s.guid||c&&!c.test(s.namespace)||f&&f!==s.selector&&("**"!==f||!s.selector)||(a.splice(y,1),s.selector&&a.delegateCount--,h.remove&&h.remove.call(n,s));k&&!a.length&&(h.teardown&&!1!==h.teardown.call(n,b,w.handle)||i.removeEvent(n,o,w.handle),delete v[o])}else for(o in v)i.event.remove(n,o+t[p],u,f,!0);i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var u,h,c,e,f,l,t=i.event.fix(n),s=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(s[0]=t,u=1;u<arguments.length;u++)s[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||!1!==o.preDispatch.call(this,t)){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,h=0;(f=e.handlers[h++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(f.namespace)||(t.handleObj=f,t.data=f.data,void 0!==(c=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,s))&&!1===(t.result=c)&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,h,u,e,o,c=[],s=t.delegateCount,r=n.target;if(s&&r.nodeType&&!("click"===n.type&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&("click"!==n.type||!0!==r.disabled)){for(e=[],o={},f=0;f<s;f++)void 0===o[u=(h=t[f]).selector+" "]&&(o[u]=h.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),o[u]&&e.push(h);e.length&&c.push({elem:r,handlers:e})}return r=this,s<t.length&&c.push({elem:r,handlers:t.slice(s)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:u(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==cu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===cu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v(this,"input"))return this.click(),!1},_default:function(n){return v(n.target,"a")}},beforeunload:{postDispatch:function(n){void 0!==n.result&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)};i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||void 0===n.defaultPrevented&&!1===n.returnValue?fi:et,this.target=n.target&&3===n.target.nodeType?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n;t&&i.extend(this,t);this.timeStamp=n&&n.timeStamp||Date.now();this[i.expando]=!0};i.Event.prototype={constructor:i.Event,isDefaultPrevented:et,isPropagationStopped:et,isImmediatePropagationStopped:et,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=fi;n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=fi;n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=fi;n&&!this.isSimulated&&n.stopImmediatePropagation();this.stopPropagation()}};i.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(n){var t=n.button;return null==n.which&&he.test(n.type)?null!=n.charCode?n.charCode:n.keyCode:!n.which&&void 0!==t&&ce.test(n.type)?1&t?1:2&t?3:4&t?2:0:n.which}},i.event.addProp);i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,r=n.relatedTarget,f=n.handleObj;return r&&(r===this||i.contains(this,r))||(n.type=f.origType,u=f.handler.apply(this,arguments),n.type=t),u}}});i.fn.extend({on:function(n,t,i,r){return wi(this,n,t,i,r)},one:function(n,t,i,r){return wi(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if("object"==typeof n){for(f in n)this.off(f,t,n[f]);return this}return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=et),this.each(function(){i.event.remove(this,n,r,t)})}});var le=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ae=/<script|<style|<link/i,ve=/checked\s*(?:[^=]|=\s*.checked.)/i,ye=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(le,"<$1><\/$2>")},clone:function(n,t,r){var u,c,o,f,l,a,v,h=n.cloneNode(!0),y=i.contains(n.ownerDocument,n);if(!(e.noCloneChecked||1!==n.nodeType&&11!==n.nodeType||i.isXMLDoc(n)))for(f=s(h),u=0,c=(o=s(n)).length;u<c;u++)l=o[u],a=f[u],v=void 0,"input"===(v=a.nodeName.toLowerCase())&&uu.test(l.type)?a.checked=l.checked:"input"!==v&&"textarea"!==v||(a.defaultValue=l.defaultValue);if(t)if(r)for(o=o||s(n),f=f||s(h),u=0,c=o.length;u<c;u++)au(o[u],f[u]);else au(n,h);return(f=s(h,"script")).length>0&&pi(f,!y&&s(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,e=0;void 0!==(t=n[e]);e++)if(lt(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=void 0}t[o.expando]&&(t[o.expando]=void 0)}}});i.fn.extend({detach:function(n){return vu(this,n,!0)},remove:function(n){return vu(this,n)},text:function(n){return p(this,function(n){return void 0===n?i.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=n)})},null,n,arguments.length)},append:function(){return ot(this,arguments,function(n){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||lu(this,n).appendChild(n)})},prepend:function(){return ot(this,arguments,function(n){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=lu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ot(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;null!=(n=this[t]);t++)1===n.nodeType&&(i.cleanData(s(n,!1)),n.textContent="");return this},clone:function(n,t){return n=null!=n&&n,t=null==t?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return p(this,function(n){var t=this[0]||{},r=0,u=this.length;if(void 0===n&&1===t.nodeType)return t.innerHTML;if("string"==typeof n&&!ae.test(n)&&!c[(fu.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)1===(t=this[r]||{}).nodeType&&(i.cleanData(s(t,!1)),t.innerHTML=n);t=0}catch(n){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return ot(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(s(this)),r&&r.replaceChild(t,this))},n)}});i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ci.apply(f,u.get());return this.pushStack(f)}});var bi=new RegExp("^("+tu+")(?!px)[a-z%]+$","i"),ei=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)},be=new RegExp(w.join("|"),"i");!function(){function r(){if(t){o.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";t.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ui.appendChild(o).appendChild(t);var i=n.getComputedStyle(t);s="1%"!==i.top;a=12===u(i.marginLeft);t.style.right="60%";l=36===u(i.right);h=36===u(i.width);t.style.position="absolute";c=36===t.offsetWidth||"absolute";ui.removeChild(o);t=null}}function u(n){return Math.round(parseFloat(n))}var s,h,c,l,a,o=f.createElement("div"),t=f.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle="content-box"===t.style.backgroundClip,i.extend(e,{boxSizingReliable:function(){return r(),h},pixelBoxStyles:function(){return r(),l},pixelPosition:function(){return r(),s},reliableMarginLeft:function(){return r(),a},scrollboxSize:function(){return r(),c}}))}();var ke=/^(none|table(?!-c[ea]).+)/,pu=/^--/,de={position:"absolute",visibility:"hidden",display:"block"},wu={letterSpacing:"0",fontWeight:"400"},bu=["Webkit","Moz","ms"],ku=f.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=pt(n,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(n,t,r,u){if(n&&3!==n.nodeType&&8!==n.nodeType&&n.style){var f,h,o,c=y(t),l=pu.test(t),s=n.style;if(l||(t=du(c)),o=i.cssHooks[t]||i.cssHooks[c],void 0===r)return o&&"get"in o&&void 0!==(f=o.get(n,!1,u))?f:s[t];"string"==(h=typeof r)&&(f=vt.exec(r))&&f[1]&&(r=ru(n,t,f),h="number");null!=r&&r==r&&("number"===h&&(r+=f&&f[3]||(i.cssNumber[c]?"":"px")),e.clearCloneStyle||""!==r||0!==t.indexOf("background")||(s[t]="inherit"),o&&"set"in o&&void 0===(r=o.set(n,r,u))||(l?s.setProperty(t,r):s[t]=r))}},css:function(n,t,r,u){var f,e,o,s=y(t);return pu.test(t)||(t=du(s)),(o=i.cssHooks[t]||i.cssHooks[s])&&"get"in o&&(f=o.get(n,!0,r)),void 0===f&&(f=pt(n,t,u)),"normal"===f&&t in wu&&(f=wu[t]),""===r||r?(e=parseFloat(f),!0===r||isFinite(e)?e||0:f):f}});i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return!ke.test(i.css(n,"display"))||n.getClientRects().length&&n.getBoundingClientRect().width?nf(n,t,u):iu(n,de,function(){return nf(n,t,u)})},set:function(n,r,u){var s,f=ei(n),h="border-box"===i.css(n,"boxSizing",!1,f),o=u&&ki(n,t,u,h,f);return h&&e.scrollboxSize()===f.position&&(o-=Math.ceil(n["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(f[t])-ki(n,t,"border",!1,f)-.5)),o&&(s=vt.exec(r))&&"px"!==(s[3]||"px")&&(n.style[t]=r,r=i.css(n,t)),gu(0,r,o)}}});i.cssHooks.marginLeft=yu(e.reliableMarginLeft,function(n,t){if(t)return(parseFloat(pt(n,"marginLeft"))||n.getBoundingClientRect().left-iu(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"});i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u="string"==typeof i?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}};"margin"!==n&&(i.cssHooks[n+t].set=gu)});i.fn.extend({css:function(n,t){return p(this,function(n,t,r){var f,e,o={},u=0;if(Array.isArray(t)){for(f=ei(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return void 0!==r?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}});i.Tween=h;h.prototype={constructor:h,init:function(n,t,r,u,f,e){this.elem=n;this.prop=r;this.easing=f||i.easing._default;this.options=t;this.start=this.now=this.cur();this.end=u;this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=h.propHooks[this.prop];return n&&n.get?n.get(this):h.propHooks._default.get(this)},run:function(n){var t,r=h.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):h.propHooks._default.set(this),this}};h.prototype.init.prototype=h.prototype;h.propHooks={_default:{get:function(n){var t;return 1!==n.elem.nodeType||null!=n.elem[n.prop]&&null==n.elem.style[n.prop]?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""))&&"auto"!==t?t:0},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):1!==n.elem.nodeType||null==n.elem.style[i.cssProps[n.prop]]&&!i.cssHooks[n.prop]?n.elem[n.prop]=n.now:i.style(n.elem,n.prop,n.now+n.unit)}}};h.propHooks.scrollTop=h.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}};i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"};i.fx=h.prototype.init;i.fx.step={};tf=/^(?:toggle|show|hide)$/;rf=/queueHooks$/;i.Animation=i.extend(a,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return ru(i.elem,n,vt.exec(t),i),i}]},tweener:function(n,t){u(n)?(t=n,n=["*"]):n=n.match(l);for(var i,r=0,f=n.length;r<f;r++)i=n[r],a.tweeners[i]=a.tweeners[i]||[],a.tweeners[i].unshift(t)},prefilters:[function(n,t,u){var f,y,w,c,b,h,o,l,k="width"in t||"height"in t,v=this,p={},s=n.style,a=n.nodeType&&ii(n),e=r.get(n,"fxshow");for(f in u.queue||(null==(c=i._queueHooks(n,"fx")).unqueued&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--;i.queue(n,"fx").length||c.empty.fire()})})),t)if(y=t[f],tf.test(y)){if(delete t[f],w=w||"toggle"===y,y===(a?"hide":"show")){if("show"!==y||!e||void 0===e[f])continue;a=!0}p[f]=e&&e[f]||i.style(n,f)}if((h=!i.isEmptyObject(t))||!i.isEmptyObject(p))for(f in k&&1===n.nodeType&&(u.overflow=[s.overflow,s.overflowX,s.overflowY],null==(o=e&&e.display)&&(o=r.get(n,"display")),"none"===(l=i.css(n,"display"))&&(o?l=o:(ft([n],!0),o=n.style.display||o,l=i.css(n,"display"),ft([n]))),("inline"===l||"inline-block"===l&&null!=o)&&"none"===i.css(n,"float")&&(h||(v.done(function(){s.display=o}),null==o&&(l=s.display,o="none"===l?"":l)),s.display="inline-block")),u.overflow&&(s.overflow="hidden",v.always(function(){s.overflow=u.overflow[0];s.overflowX=u.overflow[1];s.overflowY=u.overflow[2]})),h=!1,p)h||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&ft([n],!0),v.done(function(){for(f in a||ft([n]),r.remove(n,"fxshow"),p)i.style(n,f,p[f])})),h=ff(a?e[f]:0,f,v),f in e||(e[f]=h.start,a&&(h.end=h.start,h.start=0))}],prefilter:function(n,t){t?a.prefilters.unshift(n):a.prefilters.push(n)}});i.speed=function(n,t,r){var f=n&&"object"==typeof n?i.extend({},n):{complete:r||!r&&t||u(n)&&n,duration:n,easing:r&&t||t&&!u(t)&&t};return i.fx.off?f.duration=0:"number"!=typeof f.duration&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),null!=f.queue&&!0!==f.queue||(f.queue="fx"),f.old=f.complete,f.complete=function(){u(f.old)&&f.old.call(this);f.queue&&i.dequeue(this,f.queue)},f};i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(ii).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=a(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||!1===o.queue?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop;t(u)};return"string"!=typeof n&&(u=t,t=n,n=void 0),t&&!1!==n&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=null!=n&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&rf.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem!==this||null!=n&&o[t].queue!==n||(o[t].anim.stop(u),s=!1,o.splice(t,1));!s&&u||i.dequeue(this,n)})},finish:function(n){return!1!==n&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}});i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return null==n||"boolean"==typeof n?r.apply(this,arguments):this.animate(si(t,!0),n,i,u)}});i.each({slideDown:si("show"),slideUp:si("hide"),slideToggle:si("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}});i.timers=[];i.fx.tick=function(){var r,n=0,t=i.timers;for(st=Date.now();n<t.length;n++)(r=t[n])()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop();st=void 0};i.fx.timer=function(n){i.timers.push(n);i.fx.start()};i.fx.interval=13;i.fx.start=function(){oi||(oi=!0,di())};i.fx.stop=function(){oi=null};i.fx.speeds={slow:600,fast:200,_default:400};i.fn.delay=function(t,r){return t=i.fx&&i.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=f.createElement("input"),t=f.createElement("select").appendChild(f.createElement("option"));n.type="checkbox";e.checkOn=""!==n.value;e.optSelected=t.selected;(n=f.createElement("input")).value="t";n.type="radio";e.radioValue="t"===n.value}();ht=i.expr.attrHandle;i.fn.extend({attr:function(n,t){return p(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}});i.extend({attr:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return void 0===n.getAttribute?i.prop(n,t,r):(1===e&&i.isXMLDoc(n)||(u=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?ef:void 0)),void 0!==r?null===r?void i.removeAttr(n,t):u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:(n.setAttribute(t,r+""),r):u&&"get"in u&&null!==(f=u.get(n,t))?f:null==(f=i.find.attr(n,t))?void 0:f)},attrHooks:{type:{set:function(n,t){if(!e.radioValue&&"radio"===t&&v(n,"input")){var i=n.value;return n.setAttribute("type",t),i&&(n.value=i),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(l);if(r&&1===n.nodeType)for(;i=r[u++];)n.removeAttribute(i)}});ef={set:function(n,t,r){return!1===t?i.removeAttr(n,r):n.setAttribute(r,r),r}};i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ht[t]||i.find.attr;ht[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ht[u],ht[u]=f,f=null!=r(n,t,i)?u:null,ht[u]=e),f}});of=/^(?:input|select|textarea|button)$/i;sf=/^(?:a|area)$/i;i.fn.extend({prop:function(n,t){return p(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}});i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(3!==e&&8!==e&&2!==e)return 1===e&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),void 0!==r?u&&"set"in u&&void 0!==(f=u.set(n,r,t))?f:n[t]=r:u&&"get"in u&&null!==(f=u.get(n,t))?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):of.test(n.nodeName)||sf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});e.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}});i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this});i.fn.extend({addClass:function(n){var o,t,r,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).addClass(n.call(this,t,nt(this)))});if((o=gi(n)).length)for(;t=this[c++];)if(f=nt(t),r=1===t.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)r.indexOf(" "+e+" ")<0&&(r+=e+" ");f!==(h=g(r))&&t.setAttribute("class",h)}return this},removeClass:function(n){var o,r,t,f,e,s,h,c=0;if(u(n))return this.each(function(t){i(this).removeClass(n.call(this,t,nt(this)))});if(!arguments.length)return this.attr("class","");if((o=gi(n)).length)for(;r=this[c++];)if(f=nt(r),t=1===r.nodeType&&" "+g(f)+" "){for(s=0;e=o[s++];)for(;t.indexOf(" "+e+" ")>-1;)t=t.replace(" "+e+" "," ");f!==(h=g(t))&&r.setAttribute("class",h)}return this},toggleClass:function(n,t){var f=typeof n,e="string"===f||Array.isArray(n);return"boolean"==typeof t&&e?t?this.addClass(n):this.removeClass(n):u(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,nt(this),t),t)}):this.each(function(){var t,o,u,s;if(e)for(o=0,u=i(this),s=gi(n);t=s[o++];)u.hasClass(t)?u.removeClass(t):u.addClass(t);else void 0!==n&&"boolean"!==f||((t=nt(this))&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===n?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(1===t.nodeType&&(" "+g(nt(t))+" ").indexOf(i)>-1)return!0;return!1}});hf=/\r/g;i.fn.extend({val:function(n){var t,r,e,f=this[0];return arguments.length?(e=u(n),this.each(function(r){var u;1===this.nodeType&&(null==(u=e?n.call(this,r,i(this).val()):n)?u="":"number"==typeof u?u+="":Array.isArray(u)&&(u=i.map(u,function(n){return null==n?"":n+""})),(t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,u,"value")||(this.value=u))})):f?(t=i.valHooks[f.type]||i.valHooks[f.nodeName.toLowerCase()])&&"get"in t&&void 0!==(r=t.get(f,"value"))?r:"string"==typeof(r=f.value)?r.replace(hf,""):null==r?"":r:void 0}});i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return null!=t?t:g(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f="select-one"===n.type,s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(((t=o[r]).selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!v(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var r,u,f=n.options,e=i.makeArray(t),o=f.length;o--;)((u=f[o]).selected=i.inArray(i.valHooks.option.get(u),e)>-1)&&(r=!0);return r||(n.selectedIndex=-1),e}}}});i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(Array.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}};e.checkOn||(i.valHooks[this].get=function(n){return null===n.getAttribute("value")?"on":n.value})});e.focusin="onfocusin"in n;nr=/^(?:focusinfocus|focusoutblur)$/;tr=function(n){n.stopPropagation()};i.extend(i.event,{trigger:function(t,e,o,s){var k,c,l,d,v,y,a,w,b=[o||f],h=dt.call(t,"type")?t.type:t,p=dt.call(t,"namespace")?t.namespace.split("."):[];if(c=w=l=o=o||f,3!==o.nodeType&&8!==o.nodeType&&!nr.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(p=h.split("."),h=p.shift(),p.sort()),v=h.indexOf(":")<0&&"on"+h,(t=t[i.expando]?t:new i.Event(h,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:i.makeArray(e,[t]),a=i.event.special[h]||{},s||!a.trigger||!1!==a.trigger.apply(o,e))){if(!s&&!a.noBubble&&!tt(o)){for(d=a.delegateType||h,nr.test(d+h)||(c=c.parentNode);c;c=c.parentNode)b.push(c),l=c;l===(o.ownerDocument||f)&&b.push(l.defaultView||l.parentWindow||n)}for(k=0;(c=b[k++])&&!t.isPropagationStopped();)w=c,t.type=k>1?d:a.bindType||h,(y=(r.get(c,"events")||{})[t.type]&&r.get(c,"handle"))&&y.apply(c,e),(y=v&&c[v])&&y.apply&&lt(c)&&(t.result=y.apply(c,e),!1===t.result&&t.preventDefault());return t.type=h,s||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(b.pop(),e)||!lt(o)||v&&u(o[h])&&!tt(o)&&((l=o[v])&&(o[v]=null),i.event.triggered=h,t.isPropagationStopped()&&w.addEventListener(h,tr),o[h](),t.isPropagationStopped()&&w.removeEventListener(h,tr),i.event.triggered=void 0,l&&(o[v]=l)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}});i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}});e.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0);r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var wt=n.location,cf=Date.now(),ir=/\?/;i.parseXML=function(t){var r;if(!t||"string"!=typeof t)return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(n){r=void 0}return r&&!r.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+t),r};var ge=/\[\]$/,lf=/\r?\n/g,no=/^(?:submit|button|image|reset|file)$/i,to=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,f=[],e=function(n,t){var i=u(t)?t():t;f[f.length]=encodeURIComponent(n)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){e(this.name,this.value)});else for(r in n)rr(r,n[r],t,e);return f.join("&")};i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&to.test(this.nodeName)&&!no.test(n)&&(this.checked||!uu.test(n))}).map(function(n,t){var r=i(this).val();return null==r?null:Array.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(lf,"\r\n")}}):{name:t.name,value:r.replace(lf,"\r\n")}}).get()}});var io=/%20/g,ro=/#.*$/,uo=/([?&])_=[^&]*/,fo=/^(.*?):[ \t]*([^\r\n]*)$/gm,eo=/^(?:GET|HEAD)$/,oo=/^\/\//,af={},ur={},vf="*/".concat("*"),fr=f.createElement("a");return fr.href=wt.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":vf,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":!0,"text json":JSON.parse,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?er(er(n,i.ajaxSettings),t):er(i.ajaxSettings,n)},ajaxPrefilter:yf(af),ajaxTransport:yf(ur),ajax:function(t,r){function b(t,r,f,c){var v,rt,b,p,g,l=r;s||(s=!0,d&&n.clearTimeout(d),a=void 0,k=c||"",e.readyState=t>0?4:0,v=t>=200&&t<300||304===t,f&&(p=function(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;"*"===r[0];)r.shift(),void 0===e&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}(u,e,f)),p=function(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift())if("*"===u)u=e;else if("*"!==e&&e!==u){if(!(f=o[e+" "+u]||o["* "+u]))for(h in o)if((s=h.split(" "))[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]])){!0===f?f=o[h]:!0!==o[h]&&(u=s[0],c.unshift(s[1]));break}if(!0!==f)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(n){return{state:"parsererror",error:f?n:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}(u,p,e,v),v?(u.ifModified&&((g=e.getResponseHeader("Last-Modified"))&&(i.lastModified[o]=g),(g=e.getResponseHeader("etag"))&&(i.etag[o]=g)),204===t||"HEAD"===u.type?l="nocontent":304===t?l="notmodified":(l=p.state,rt=p.data,v=!(b=p.error))):(b=l,!t&&l||(l="error",t<0&&(t=0))),e.status=t,e.statusText=(r||l)+"",v?tt.resolveWith(h,[rt,l,e]):tt.rejectWith(h,[e,l,b]),e.statusCode(w),w=void 0,y&&nt.trigger(v?"ajaxSuccess":"ajaxError",[e,u,v?rt:b]),it.fireWith(h,[e,l]),y&&(nt.trigger("ajaxComplete",[e,u]),--i.active||i.event.trigger("ajaxStop")))}"object"==typeof t&&(r=t,t=void 0);r=r||{};var a,o,k,v,d,c,s,y,g,p,u=i.ajaxSetup({},r),h=u.context||u,nt=u.context&&(h.nodeType||h.jquery)?i(h):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=u.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!v)for(v={};t=fo.exec(k);)v[t[1].toLowerCase()]=t[2];t=v[n.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return null==s&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return null==s&&(u.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return a&&a.abort(t),b(0,t),this}};if(tt.promise(e),u.url=((t||u.url||wt.href)+"").replace(oo,wt.protocol+"//"),u.type=r.method||r.type||u.method||u.type,u.dataTypes=(u.dataType||"*").toLowerCase().match(l)||[""],null==u.crossDomain){c=f.createElement("a");try{c.href=u.url;c.href=c.href;u.crossDomain=fr.protocol+"//"+fr.host!=c.protocol+"//"+c.host}catch(n){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=i.param(u.data,u.traditional)),pf(af,u,r,e),s)return e;for(g in(y=i.event&&u.global)&&0==i.active++&&i.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!eo.test(u.type),o=u.url.replace(ro,""),u.hasContent?u.data&&u.processData&&0===(u.contentType||"").indexOf("application/x-www-form-urlencoded")&&(u.data=u.data.replace(io,"+")):(p=u.url.slice(o.length),u.data&&(u.processData||"string"==typeof u.data)&&(o+=(ir.test(o)?"&":"?")+u.data,delete u.data),"GET"!=u.type&&!1===u.cache&&(o=o.replace(uo,"$1"),p=(ir.test(o)?"&":"?")+"_="+cf+++p),u.url=o+p),u.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(u.data&&u.hasContent&&!1!==u.contentType||r.contentType)&&e.setRequestHeader("Content-Type",u.contentType),e.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+vf+"; q=0.01":""):u.accepts["*"]),u.headers)e.setRequestHeader(g,u.headers[g]);if(u.beforeSend&&(!1===u.beforeSend.call(h,e,u)||s))return e.abort();if(ft="abort",it.add(u.complete),e.done(u.success),e.fail(u.error),a=pf(ur,u,r,e)){if(e.readyState=1,y&&nt.trigger("ajaxSend",[e,u]),s)return e;u.async&&u.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},u.timeout));try{s=!1;a.send(rt,b)}catch(n){if(s)throw n;b(-1,n)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,void 0,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,f,e){return u(r)&&(e=e||f,f=r,r=void 0),i.ajax(i.extend({url:n,type:t,dataType:e,data:r,success:f},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(u(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return u(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=u(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(n){}},wf={0:200,1223:204},ct=i.ajaxSettings.xhr(),e.cors=!!ct&&"withCredentials"in ct,e.ajax=ct=!!ct,i.ajaxTransport(function(t){var i,r;if(e.cors||ct&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];for(o in t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest"),u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.ontimeout=e.onreadystatechange=null,"abort"===n?e.abort():"error"===n?"number"!=typeof e.status?f(0,"error"):f(e.status,e.statusText):f(wf[e.status]||e.status,e.statusText,"text"!==(e.responseType||"text")||"string"!=typeof e.responseText?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}};e.onload=i();r=e.onerror=e.ontimeout=i("error");void 0!==e.onabort?e.onabort=r:e.onreadystatechange=function(){4===e.readyState&&n.setTimeout(function(){i&&r()})};i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(n){if(i)throw n;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){void 0===n.cache&&(n.cache=!1);n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){var r,t;if(n.crossDomain)return{send:function(u,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove();t=null;n&&e("error"===n.type?404:200,n.type)});f.head.appendChild(r[0])},abort:function(){t&&t()}}}),or=[],hi=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=or.pop()||i.expando+"_"+cf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,f){var e,o,s,h=!1!==t.jsonp&&(hi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&hi.test(t.data)&&"data");if(h||"jsonp"===t.dataTypes[0])return e=t.jsonpCallback=u(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,h?t[h]=t[h].replace(hi,"$1"+e):!1!==t.jsonp&&(t.url+=(ir.test(t.url)?"&":"?")+t.jsonp+"="+e),t.converters["script json"]=function(){return s||i.error(e+" was not called"),s[0]},t.dataTypes[0]="json",o=n[e],n[e]=function(){s=arguments},f.always(function(){void 0===o?i(n).removeProp(e):n[e]=o;t[e]&&(t.jsonpCallback=r.jsonpCallback,or.push(e));s&&u(o)&&o(s[0]);s=o=void 0}),"script"}),e.createHTMLDocument=((bf=f.implementation.createHTMLDocument("").body).innerHTML="<form><\/form><form><\/form>",2===bf.childNodes.length),i.parseHTML=function(n,t,r){return"string"!=typeof n?[]:("boolean"==typeof t&&(r=t,t=!1),t||(e.createHTMLDocument?((s=(t=f.implementation.createHTMLDocument("")).createElement("base")).href=f.location.href,t.head.appendChild(s)):t=f),u=!r&&[],(o=ai.exec(n))?[t.createElement(o[1])]:(o=su([n],t,u),u&&u.length&&i(u).remove(),i.merge([],o.childNodes)));var s,o,u},i.fn.load=function(n,t,r){var f,s,h,e=this,o=n.indexOf(" ");return o>-1&&(f=g(n.slice(o)),n=n.slice(0,o)),u(t)?(r=t,t=void 0):t&&"object"==typeof t&&(s="POST"),e.length>0&&i.ajax({url:n,type:s||"GET",dataType:"html",data:t}).done(function(n){h=arguments;e.html(f?i("<div>").append(i.parseHTML(n)).find(f):n)}).always(r&&function(n,t){e.each(function(){r.apply(this,h||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var v,o,s,h,f,c,l=i.css(n,"position"),a=i(n),e={};"static"===l&&(n.style.position="relative");f=a.offset();s=i.css(n,"top");c=i.css(n,"left");("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1?(h=(v=a.position()).top,o=v.left):(h=parseFloat(s)||0,o=parseFloat(c)||0);u(t)&&(t=t.call(n,r,i.extend({},f)));null!=t.top&&(e.top=t.top-f.top+h);null!=t.left&&(e.left=t.left-f.left+o);"using"in t?t.using.call(n,e):a.css(e)}},i.fn.extend({offset:function(n){if(arguments.length)return void 0===n?this:this.each(function(t){i.offset.setOffset(this,n,t)});var r,u,t=this[0];if(t)return t.getClientRects().length?(r=t.getBoundingClientRect(),u=t.ownerDocument.defaultView,{top:r.top+u.pageYOffset,left:r.left+u.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,u,t=this[0],f={top:0,left:0};if("fixed"===i.css(t,"position"))r=t.getBoundingClientRect();else{for(r=this.offset(),u=t.ownerDocument,n=t.offsetParent||u.documentElement;n&&(n===u.body||n===u.documentElement)&&"static"===i.css(n,"position");)n=n.parentNode;n&&n!==t&&1===n.nodeType&&((f=i(n).offset()).top+=i.css(n,"borderTopWidth",!0),f.left+=i.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-i.css(t,"marginTop",!0),left:r.left-f.left-i.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&"static"===i.css(n,"position");)n=n.offsetParent;return n||ui})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return p(this,function(n,i,u){var f;if(tt(n)?f=n:9===n.nodeType&&(f=n.defaultView),void 0===u)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=yu(e.pixelPosition,function(n,r){if(r)return r=pt(n,t),bi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||"boolean"!=typeof f),s=r||(!0===f||!0===e?"margin":"border");return p(this,function(t,r,f){var e;return tt(t)?0===u.indexOf("outer")?t["inner"+n]:t.document.documentElement["client"+n]:9===t.nodeType?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):void 0===f?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:void 0,o)}})}),i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return 1===arguments.length?this.off(n,"**"):this.off(t,n||"**",i)}}),i.proxy=function(n,t){var r,f,e;if("string"==typeof t&&(r=n[t],t=n,n=r),u(n))return f=d.call(arguments,2),(e=function(){return n.apply(t||this,f.concat(d.call(arguments)))}).guid=n.guid=n.guid||i.guid++,e},i.holdReady=function(n){n?i.readyWait++:i.ready(!0)},i.isArray=Array.isArray,i.parseJSON=JSON.parse,i.nodeName=v,i.isFunction=u,i.isWindow=tt,i.camelCase=y,i.type=it,i.now=Date.now,i.isNumeric=function(n){var t=i.type(n);return("number"===t||"string"===t)&&!isNaN(n-parseFloat(n))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return i}),kf=n.jQuery,df=n.$,i.noConflict=function(t){return n.$===i&&(n.$=df),t&&n.jQuery===i&&(n.jQuery=kf),i},t||(n.jQuery=n.$=i),i});!function(n){"use strict";var t={init:function(){n(window).scroll(function(){t.stickyNav()});n(window).on("load",function(){t.stickyNav()});t.overlays();t.mobileMenu();t.subscribe();t.search();t.csrf()},overlayClose:function(){n(".header-search-overlay").fadeOut(300);n(".header-subscribe-overlay").fadeOut(300);n(".subscribe-overlay--mobile").fadeOut(300);n(".search-overlay--mobile").fadeOut(300)},csrf:function(){n("#pageContent form[id]").each(function(){"frmFotF"!=this.id&&"frmDonate"!=this.id&&(document.getElementById(this.id).onsubmit=function(){var i=!1,t;(void 0===n(this).valid?i=!0:"undefined"!=typeof bFormValidateComplete&&(n(this).data("validator")?(n(this).valid(),i=bFormValidateComplete):i=!0),i)&&(t=this,n(t).find("[id^=btnSubmit]").attr("disabled","disabled"),n(t).find("[id^=btnCancel]").attr("disabled","disabled"),n(t).InitCSRF(),n(t).SubmitCSRF({callback:function(){t.submit()}}))})})},overlays:function(){n(".item--search__search-icon").on("click",function(t){t.preventDefault();n(".header-search-overlay").fadeIn(300);n("#txtSearch").focus()});n(".overlay__close-icon").on("click",function(n){n.preventDefault();t.overlayClose()});n(".social__subscribe-btn").on("click",function(t){t.preventDefault();n(".header-subscribe-overlay").fadeIn(300);n("#txtFname").focus()});n(".search-form input").on("focus",function(){n(this).addClass("active")});n(".search-form input").on("focusout",function(){n(this).removeClass("active")});n(".search-form input").focusout(function(){n(this).val()?n(this).addClass("active"):n(this).removeClass("active")});n(".subscribe-btn--mobile").on("click",function(t){t.preventDefault();n(".subscribe-overlay--mobile").fadeIn(300);n("#txtFNameMobile").focus()});n(".search-icon--mobile").on("click",function(t){t.preventDefault();n(".search-overlay--mobile").fadeIn(300);n("#txtSearchMobile").focus()});n(".overlay__close-icon--mobile").on("click",function(n){n.preventDefault();t.overlayClose()})},stickyNav:function(){parseInt(n(".header").outerHeight());parseInt(n(window).scrollTop())>=3?(n(".header").addClass("header--static-active"),n("#lyrSubscribeDesktop").css("padding-top","5px")):(n(".header").removeClass("header--static-active"),n("#lyrSubscribeDesktop").css("padding-top","29px"))},mobileMenu:function(){var t=n(document);n(".toggle-nav").on("click",function(t){t.preventDefault();n("html, body").toggleClass("show-nav");n(".page").addClass("active");n(".hamburger").toggle()});n(".mobile-menu__close-icon").on("click",function(){n(window).trigger("resize")});n(".mobile .menu__list__item.has-submenu").click(function(){n(this).toggleClass("hover")});t.scroll(function(){t.scrollTop()>0?n(".page").removeClass("active"):n(".page").addClass("active")})},subscribe:function(){n("#btnSubscribe").click(function(){if(""!=n("#emailShadow").val())return!1;if(""==trim(n("#txtFname").val()))return alert("Please enter first name."),!1;if(""==trim(n("#txtLname").val()))return alert("Please enter last name."),!1;var i=trim(n("#txtEmail").val());return""==i?(alert("Please enter e-mail address."),!1):isValidEmail(i)?(n("#frmSubscribe").InitCSRF(),void n("#frmSubscribe").SubmitCSRF({callback:t.subscribeSave})):(alert("Please enter a valid e-mail address."),!1)});n("#btnSubscribeMobile").click(function(){if(""!=n("#emailShadowMobile").val())return!1;if(""==trim(n("#txtFNameMobile").val()))return alert("Please enter first name."),!1;if(""==trim(n("#txtLNameMobile").val()))return alert("Please enter last name."),!1;var i=trim(n("#txtEmailMobile").val());return""==i?(alert("Please enter e-mail address."),!1):isValidEmail(i)?(n("#frmSubscribeMobile").InitCSRF(),void n("#frmSubscribeMobile").SubmitCSRF({callback:t.subscribeSave})):(alert("Please enter a valid e-mail address."),!1)})},subscribeSave:function(t){var i=sBaseRef+"/about/subscribe";"https:"==window.location.protocol&&(i=sBaseRefSSL+"/about/subscribe");n.ajax({url:i,data:t,cache:!1,dataType:"json",type:"POST",async:!1,success:function(n){"success"==n?window.location.href=sBaseRef+"/about/subscribethankyou":alert(n)},error:function(n,t,i){var r="";"timeout"==t?r="We're sorry, your request has been timeout. Please try again later.":"abort"==t?r="We're sorry, your request has been aborted. Please try again later.":(r="We're sorry, an error occured when trying to save the data",""!=i&&(r+=" ("+i+")"));alert(r)}})},search:function(){n("#btnSearch").click(function(){if(""!=n("#searchShadow").val())return!1;var t=trim(n("#txtSearch").val());return 0==t.length?(alert("Please enter keyword."),!1):t.length<3?(alert("Your keyword is too general. Please enter another keyword."),!1):void(location.href=sBaseRef+"/search?q="+escapeFormInput(t))});n("#btnSearchMobile").click(function(){if(""!=n("#searchShadowMobile").val())return!1;var t=trim(n("#txtSearchMobile").val());return 0==t.length?(alert("Please enter keyword."),!1):t.length<3?(alert("Your keyword is too general. Please enter another keyword."),!1):void(location.href=sBaseRef+"/search?q="+escapeFormInput(t))})}};n(document).ready(t.init)}(jQuery);BuckeyeBrowser=function(n){"use strict";function r(t){var f,e,r,u,o,s;return(ShowLog("lnk",t),n(t).hasClass("public-paging"))?(r=n(t).attr("id").split("_")[1],isValidNumeric(r)||(r=1),r=parseInt(r)):r=1,(u="pg="+r,e="","string"==typeof n(t).data("type")&&(e=n(t).data("type")),f="","pub"==e?f=i.pub:"pub_by_type"==e&&(f=i.pubtype,"string"==typeof n(t).data("type-name")&&(u=u+"&ptn="+escapeFormInput(n(t).data("type-name")))),o="","string"==typeof n(t).data("filter")&&(o=n(t).data("filter")),"issue"==o)&&(s="","string"==typeof n(t).data("issue-name")&&(s=escapeFormInput(n.trim(n(t).data("issue-name")))),u=u+"&issName="+s),ShowLog("url",f),ShowLog("data",u),{url:f,data:u}}var t={},i={pub:"/AJAX/Publication/BrowsePublication",pubtype:"/AJAX/Publication/BrowsePublicationByType"};return t.PubFilterByIssue=function(){n("a.rightnav[data-filter]").off("click");n("a.rightnav[data-filter]").on("click",function(t){t.preventDefault();n(this).siblings().removeClass("active");n(this).addClass("active");var i=r(this);i.url.length>0&&ajaxLoadData(i.url,i.data,"html",n(".lyrAJAXContent"),!0)});n("a.public-paging[data-type]").off("click");n("a.public-paging[data-type]").on("click",function(t){t.preventDefault();var i=r(this);i.url.length>0&&ajaxLoadData(i.url,i.data,"html",n(".lyrAJAXContent"),!0)})},t}(jQuery);generaljs={};var StringHelper={ValidInt:function(n){return n=parseInt(n,10),isNaN(n)?0:n},IsEmptyString:function(n){return!("string"==typeof n&&null!=n&&""!=$.trim(n))},GetExtension:function(n){let t=$.trim(n);return t.indexOf("?")>=0&&(t=t.substring(0,t.indexOf("?"))),t=t.substring(n.lastIndexOf(".")+1)},GetFilename:function(n){let t=$.trim(n.substring(n.lastIndexOf("/")+1));return t.indexOf("?")>=0&&(t=t.substring(0,t.indexOf("?"))),t},HtmlEncode:function(n){return String(n).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}},DimensionHelper=function(){let i=function(n){let t={width:n.width,height:n.height,op:"x"};return 1==n.width&&1==n.height?t.op=":":"auto"==n.width?t.height=n.height+"px":"auto"==n.height?t.width=n.width+"px":(t.width=n.width+"px",t.height=n.height+"px"),t},t=function(n){return"string"==typeof n&&"auto"==n},n=function(n){return"number"==typeof n&&n>0},r=function(i){return i.width=isNaN(i.width)?i.width.toLowerCase():StringHelper.ValidInt(i.width),i.height=isNaN(i.height)?i.height.toLowerCase():StringHelper.ValidInt(i.height),t(i.width)&&n(i.height)||n(i.width)&&t(i.height)||n(i.width)&&n(i.height)};return{ToString:function(n){let t=i(n);return t.width+" "+t.op+" "+t.height},ToStringBold:function(n){let t=i(n);return"<strong>"+t.width+"<\/strong> "+t.op+" <strong>"+t.height+"<\/strong>"},FromString:function(n,t){let r={width:0,height:0};var i=n.split(t);return 3==i.length?(r.id=StringHelper.ValidInt(i[0]),r.width=i[1],r.height=i[2]):2==i.length&&(r.width=i[0],r.height=i[1]),r},FromFabricImage:function(n){return{width:StringHelper.ValidInt(n.getWidth()),height:StringHelper.ValidInt(n.getHeight())}},Valid:function(t){return"number"==typeof t.id?n(t.id)&&r(t):r(t)},CalculateAutoSize:function(n){ShowLog("params for CalculateAutoSize",n);let i={width:n.crop.width,height:n.crop.height};return t(n.crop.width)&&(i.width=StringHelper.ValidInt(n.crop.height*n.current.width/n.current.height)),t(n.crop.height)&&(i.height=StringHelper.ValidInt(n.crop.width*n.current.height/n.current.width)),i},IsEmpty:function(n){return!(n.width>0&&n.height>0)},IsSmaller:function(n,t){return n.width<t.width||n.height<t.height}}}(),eResourcesSecurity=function(n){return{GetCSRFCode:function(){return n.ajax({type:"POST",url:"/AJAX/CSRF/GetCSRFKey/",cache:!1,async:!1,dataType:"json"})}}}(jQuery);!function(n){function i(t){var i=parseInt(n(t).attr("data-defw")),r=parseInt(n(t).attr("data-defh"));return isNaN(i)&&(i=900),isNaN(r)&&(r=500),{width:i,height:r}}function t(n,t,i){var r="";return"timeout"==n?r="We're sorry, your request has been timeout. Please try again later.":"abort"==n?r="We're sorry, your request has been aborted. Please try again later.":(r="We're sorry, an error occured"+i,""!=t&&(r+=" ("+t+")")),r}n.fn.HiddenInput=function(t){var i,r;return t||(t={}),i=n.extend({},{value:"",name:"",id:""},t),i.id.length||(i.id=i.name),r=document.createElement("input"),r.setAttribute("type","hidden"),r.setAttribute("id",i.id),r.setAttribute("name",i.name),r.setAttribute("value",i.value),r};n.fn.Form=function(t){var i,r;return t||(t={}),i=n.extend({},{action:"",name:"",id:"",method:"POST"},t),i.id.length||(i.id=i.name),r=document.createElement("form"),r.setAttribute("name",i.name),r.setAttribute("id",i.id),r.setAttribute("action",i.action),r.setAttribute("method",i.method),r};n.fn.InitCSRF=function(){var t="hCSRF_"+n(this).attr("id"),i;n("#"+t).length?n("#"+t).val(""):(i=n.fn.HiddenInput({name:t,value:""}),n(this).append(i))};n.fn.SubmitCSRF=function(t){var i=n(this),u=n("#hCSRF_"+i.attr("id")),r;t||(t={});""!=u.val()&&(void 0!==t.callback?i.closest(".ui-dialog-content").length?t.callback(i.AjaxCollectInput()):t.callback():i[0].submit());r=eResourcesSecurity.GetCSRFCode();ShowLog("oCSRF",r);r.done(function(n){ShowLog("oCSRF done data",n);""==n||"0"==n?alert("Please try again"):(u.val(n),void 0!==t.callback?t.callback(i.AjaxCollectInput()):i[0].submit())}).fail(function(){alert("Please try again in a few minutes");i.find("button").prop("disabled",!1)})};n.fn.AjaxCollectInput=function(){var i="frmSender="+this.attr("id"),t="#"+this.attr("id");if(ShowLog("AjaxCollectInput",t),"undefined"!=typeof CKEDITOR){new DOMParser;for(name in CKEDITOR.instances)n(t+" [name="+name+"]").text(CKEDITOR.instances[name].getData()),n(t+" [name="+name+"]").addClass("ckeval")}return n(t+" input[type=checkbox]").each(function(){n(t+" input[type=hidden][name='"+this.name+"']").remove();i+=n(this).prop("checked")?"&"+this.name+"=true":"&"+this.name+"=false"}),n(t+" input[type=text]:not([readonly]):not([disabled])").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" input[type=text].disabled").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" input[type=email]").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" select:not([readonly]):not([disabled]):not([multiple])").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" select.disabled").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" input[type=password]").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" input[type=hidden]").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" input[type=radio]:checked").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" textarea:not(.ckeval)").each(function(){i+="&"+this.name+"="+escapeFormInput(this.value)}),n(t+" textarea.ckeval").each(function(){i+="&"+this.name+"="+escapeFormInput(TempEscape(this.innerHTML))}),n(t+" select[multiple]").each(function(){n(this).find("option").prop("selected",!0);var t="";null!=n(this).val()&&(t=escapeFormInput(n(this).val().toString()));i+="&"+this.name+"="+t}),i};n.fn.AjaxSubmit=function(i){function u(){n.ajax({url:r.attr("action"),type:"POST",data:r.AjaxCollectInput(),success:function(t,u,f){var e=n(r).closest(".ui-dialog-content");if(null==t||""==t||"Access denied"==t)"string"==typeof i.ActionName?0==i.ActionName.trim().toLowerCase().indexOf("to")?alert("You don't have permission"+i.ActionName):alert(i.ActionName):alert("You don't have permission"),e.dialog("close");else if("string"==typeof t&&(t.indexOf("error")>=0||t.indexOf("don't have permission")>=0))alert(t),e.dialog("close");else if("object"==typeof t&&"object"==typeof t.errors){e.length||(e=n(r).closest(".ui-widget-content"));e.length&&(n(r).closest(".ui-dialog").find(".ui-dialog-buttonset button").each(function(){n(this).removeAttr("disabled")}),ShowLog("enable dialog",t),e.dialog("enable"),e.css("height","auto"));var h=n(r).data("validator"),o={},s="";"object"==typeof h?(n(t.errors).each(function(n,t){t.element.length>0?o[t.element]=t.error:(s.length>0&&(s+=", "),s+=t.error)}),ShowLog("oError",[o.length,o]),Object.keys(o).length>0?h.showErrors(o):(n('<label class="dialog"><label class="error">'+s+"<\/label><\/label>").insertBefore(n(r)),n(r).find("select, input[type='text']").eq(0).focus())):alert(t.errors[0].error)}else"function"==typeof i.onSuccess?i.onSuccess(t,u,f):"boolean"==typeof t&&t&&e.hasClass("ui-dialog-content")&&e.dialog("close")},error:function(r,u,f){ShowLog("error xhr",r);ShowLog("error status",u);ShowLog("error detail",f);n("#loading").hide();var e=i.ActionName;0==e.length&&(e=" to save your change");alert(t(r,u," when trying"+e))}})}function f(){ShowLog("SubmitNow",u);n(r).InitCSRF();n(r).SubmitCSRF({callback:function(){"object"==typeof ResizeImageManager&&"function"==typeof ResizeImageManager.CustomSubmit?ResizeImageManager.CustomSubmit(oForm,u,i.onSuccess):u()}})}var r=this;"function"==typeof n.fn.CKEUpdateSourceArea?n(r).CKEUpdateSourceArea(f):f()};n.fn.FormSubmit=function(t){var i,r,u,e,f,o;if(t&&t.preventDefault(),i=!1,ShowLog("typeof bFormValidateComplete",typeof bFormValidateComplete),ShowLog("typeof $(form).valid ",typeof n(this).valid),void 0===n(this).valid)i=!0;else if("undefined"!=typeof bFormValidateComplete)if(ShowLog("form validator",n(this).data("validator")),n(this).data("validator")){r=n(this).data("validator").settings.rules;for(u in r)r.hasOwnProperty(u)&&r[u].hasOwnProperty("remote")&&n(this).find("#"+u).removeData("previousValue");n(this).valid();i=bFormValidateComplete}else i=!0;return(ShowLog("allowSubmit",i),i)?((n(window).keydown(function(n){if(13==n.keyCode)return n.preventDefault(),!1}),n(this).find("select[multiple] option").each(function(){n(this).prop("selected",!0)}),n(this).find(".videourl").each(function(){n(this).val(validateVideoURL(n(this).val()))}),"string"==typeof n(this).data("onsubmit"))&&(e=n(this).data("onsubmit"),"function"==typeof window[e]&&window[e]()),n("#btnSave").prop("disabled",!0),n("#btnSaveDraft").prop("disabled",!0),n("#btnCancel").prop("disabled",!0),n(this).InitCSRF(),n(this).SubmitCSRF(),!1):((ShowLog(n(this).data("validator")),n(this).data("validator").errorList.length>0)&&(f=n(this).data("validator").errorList[0].element,f.className.indexOf("TextEditor")>0?n("html, body").animate({scrollTop:n("#"+f.id).prev().offset().top},"slow"):f.focus()),(n("#btnSave").prop("disabled",!1),n("#btnSaveDraft").prop("disabled",!1),n("#btnCancel").prop("disabled",!1),"string"==typeof n(this).data("oninvalid"))&&(o=n(this).data("oninvalid"),"function"==typeof window[o]&&window[o]()),!1)};n.fn.InitDialog=function(t){var r=n(this);t||(t={});var u=i("#"+r.attr("id")),f={dialogClass:"ConsoleDialog",autoOpen:!1,height:u.height,width:u.width,modal:!0,close:function(){r.find(".dropzone").length&&n(".dz-hidden-input").remove();r.dialog("destroy");r.html("");"function"==typeof t.onClose&&t.onClose()},open:function(){r.find(".text.ui-corner-all").removeClass("ui-corner-all");r.find("form").length&&r.css("height","auto")}},e=n.extend({},f,t);r.dialog(e)};n.fn.InitFormDialog=function(t){var i=n(this);t||(t={});void 0===t.okBtnText&&(t.okBtnText="Save");i.InitDialog({buttons:[{text:t.okBtnText,click:function(){var u=!1,r=n(this).find("form")[0],f;("string"==typeof n(r).data("validationfn")&&(ShowLog("form submit",typeof window[n(r).data("validationfn")]),"function"==typeof window[n(r).data("validationfn")]&&window[n(r).data("validationfn")]()),void 0===n(r).valid?u=!0:"undefined"!=typeof bFormValidateComplete&&(n(r).data("validator")?(n(r).valid(),u=bFormValidateComplete):u=!0),ShowLog("allowSubmit",u),u)?(n(this).closest(".ui-dialog").find(".ui-dialog-buttonset button").each(function(){n(this).attr("disabled","disabled")}),i.dialog("disable"),null==t.onSave?n(r).AjaxSubmit(t):t.onSave()):(i.css("height","auto"),i.dialog("enable"),i.EnableDialogButtons(),null!=t.onInvalid)?t.onInvalid():n(r).data("validator").errorList.length>0&&(f=n(r).data("validator").errorList[0].element,f.className.indexOf("TextEditor")>0?n("html, body").animate({scrollTop:n("#"+f.id).prev().offset().top},"slow"):f.focus())}},{text:"Cancel",click:function(){i.dialog("destroy");i.html("")}}]})};n.fn.OpenFormDialog=function(t){var i=n(this);i.InitFormDialog(t);i.dialog("open")};n.fn.AjaxPost=function(i){var f,r,u;i||(i={});f={data:"",action:"edit",name:"",dataType:"",error:t};r=n.extend({},f,i);"string"==typeof r.url&&r.url.length>0&&(u=eResourcesSecurity.GetCSRFCode(),ShowLog("oCSRF",u),u.done(function(t){ShowLog("oCSRF done data",t);""==t||"0"==t?alert("Please try again"):("string"==typeof r.data&&(r.data=r.data+"&hCSRF_form="+t),n.ajax({url:r.url,data:r.data,cache:!1,dataType:r.dataType,type:"POST",success:r.success,error:r.error}))}).fail(function(){alert("Please try again in a few minutes")}))};n.fn.FloatingFormSubmit=function(t){var i,u,f,r;if(t||(t={}),i=n.extend({},{url:"",data:""},t),u="string"==typeof i.url,u&&(u=i.url.length>0),!u)throw new Error("Please provide target url.");r="frm_eResources_"+(n("form[id^='frm_eResources_']").length+1).toString();(n("body").append(n.fn.Form({name:r,id:r,action:i.url})),"string"==typeof i.data)&&i.data.length>0&&n.each(i.data.split("&"),function(t,i){2==(f=i.split("=")).length&&n("#"+r).append(n.fn.HiddenInput({name:f[0],value:f[1]}))});n("#"+r).FormSubmit()};n.fn.AjaxLoad=function(i){var u,r;ShowLog(i);u=n(this);i||(i={});r=n.extend({},{data:"",url:"/",onLoaded:function(){return!0},action:"edit",name:""},i);ShowLog("type of settings.nullMessage",typeof r.nullMessage);Object.defineProperty(r,"ActionName",{get:function(){return 0==this.action.length?"":0==this.name.length?" to "+this.action+" this":" to "+this.action+("add"==this.action?" ":" this ")+this.name}});Object.defineProperty(r,"ErrorMessage",{get:function(){return"You don't have permission"+this.ActionName.replace("show","view")}});n.ajax({url:r.url,data:r.data,type:"GET",dataType:"html",cache:!1,success:function(t){n("#loading").hide();u.html("");null!=t&&t.length?(ShowLog("settings.type",r.type),u.html(t),"function"==typeof r.onLoaded&&r.onLoaded()):("string"==typeof r.nullMessage?alert(r.nullMessage):alert(r.ErrorMessage),(u.hasClass("ui-dialog-content")||u.hasClass("ui-widget-content"))&&u.dialog("close"))},error:function(i,r){n("#loading").hide();u.html("");alert(t(i,r," when trying to open the popup window"))}})};n.fn.OpenDialog=function(i){var u=n(this),r;i||(i={});r=n.extend({},{data:"",type:"default",url:"/",onSuccess:function(){return!0},action:"edit",name:"",sender:"",dialogOptions:{}},i);Object.defineProperty(r,"ActionName",{get:function(){return 0==this.action.length?"":0==this.name.length?" to "+this.action+" this":" to "+this.action+("add"==this.action?" ":" this ")+this.name}});Object.defineProperty(r,"ErrorMessage",{get:function(){return"You don't have permission"+this.ActionName.replace("show","view")}});ShowLog("OpenDialog options",i);ShowLog("OpenDialog settings",r);"rebrowse"!=r.type&&n("#loading").show();"rebrowse"!=r.type&&"form"!=r.type&&"editor"!=r.type&&("browse"==r.type?u.InitDialog({open:function(){ShowLog("opening dialog",this.dataset);u.find("[data-name='q']").focus()}}):u.InitDialog());n.ajax({url:r.url,data:r.data,type:"GET",dataType:"html",cache:!1,modal:!0,success:function(t){if(n("#loading").hide(),u.html(""),null!=t&&t.length){if(ShowLog("settings.type",r.type),u.html(t),!n("#popup_sender").length){var i=document.createElement("input");i.setAttribute("type","hidden");i.setAttribute("name","popup_sender");i.setAttribute("value",r.sender);u.append(i)}"form"==r.type?u.OpenFormDialog(r):"rebrowse"==r.type?u.BrowseReady(r):"browse"==r.type?(u.BrowseReady(r),u.dialog("open")):u.dialog("open")}else"string"==typeof r.nullMessage?alert(r.nullMessage):alert(r.ErrorMessage),(u.hasClass("ui-dialog-content")||u.hasClass("ui-widget-content"))&&u.dialog("close")},error:function(i,r){n("#loading").hide();u.html("");alert(t(i,r," when trying to open the popup window"))}})};n.fn.DisableDialogButtons=function(){var t=n(this);t.hasClass(".ui-dialog")||(t=n(this).closest(".ui-dialog"));t.find(".ui-dialog-buttonset button").each(function(){n(this).attr("disabled","disabled")})};n.fn.EnableDialogButtons=function(){var t=n(this);t.hasClass(".ui-dialog")||(t=n(this).closest(".ui-dialog"));t.find(".ui-dialog-buttonset button").each(function(){n(this).removeAttr("disabled")})};n.fn.OpenPrintDialog=function(t){t||(t={});var r=n(this),u=n.extend({},i(this.id),t);r.dialog({autoOpen:!0,height:u.height,width:u.width,modal:!0,buttons:{Print:function(){var t,n;u.data=r.html();t=u;(n=window.open("","my div","height="+t.height+",width="+t.width)).document.write("<html moznomarginboxes mozdisallowselectionprint><head><title>"+t.pageTitle+"<\/title>");n.document.write("<style>table.DefaultFormat {table-layout: fixed;} table.DefaultFormat td,table.DefaultFormat th { text-align: left; vertical-align: top; } .noprint{display:none!important}<\/style>");n.document.write("<\/head><body >");n.document.write(t.data);n.document.write("<\/body><\/html>");n.document.close();n.focus();n.print();n.close()},Close:function(){r.dialog("close")}},close:function(){r.dialog("destroy");r.html("")}})}}(jQuery)