UNPKG

parallel-uglifyjs

Version:

Recursively trawls a directory for .js files to uglify, running one node instance per available CPU.

2 lines 583 kB
function Elapsed(){return(new Date).getTime()-g_nStartTime}function ParseXML(){}function TaskQueue(){this.tasks=[],this.timeout=50,this.tick()}function MatrixTransform(){this.reset()}function Point(t,e){this.x=t,this.y=e}function bwAnimation(t){this.m_strEasing=bwAnimation.EASE_CUBIC,this.m_nAnimationType=this.m_nCurrentTime=this.m_nDuration=this.m_nStartTime=this.m_nTriggerTime=0,this.m_bTransitionIn=!0,this.m_nStartY=this.m_nStartX=0,this.m_nSpinCount=1,this.m_nCurRotation=this.m_nCurYPos=this.m_nCurXPos=0,this.m_nCurYScale=this.m_nCurXScale=1,this.m_nEndY=this.m_nEndX=3735928495,this.m_nStartScaleY=this.m_nStartScaleX=this.m_nEndRotation=0,this.m_nEndScaleY=this.m_nEndScaleX=1,this.m_nStartAlpha=0,this.m_nEndAlpha=1,this.m_aoTarget=null,this.m_bAdjustRotation=!0,this.m_bTimelineAnimating=this.m_bAnimating=!1,this.m_aoTarget=t}function Scoring(){this.scorerefs={}}function AOClient(){this.endpoint="http://"+window.location.host+"/services/content/api.asmx",this.apiVersion="0.0",this.sendcount=0}function LMSClient(){}function LMSManager(){this.hasTinCan=this.hasLMS=this.hasAO=!1,this.viewedSlides={}}function QuizData(t,e){this.strQuizId=t,this.strQuizName=e,this.arrQuestions=[],this.dtmFinished=new Date,this.strStatus="",this.nScore=0,this.nPassingScore=80,this.nMinScore=0,this.nMaxScore=100,this.nPtScore=0,this.nPtMax=100,this.AddQuestionResult=function(t){for(var e=!1,i=0;i<this.arrQuestions.length;i++)this.arrQuestions[i].nQuestionNumber==t.nQuestionNumber&&(this.arrQuestions[i]=t,e=!0);e||this.arrQuestions.push(t)}}function ContentResults(){this.dtmFinished=new Date,this.nPassingScore=80,this.nScore=0,this.strStatus="incomplete",this.strType="quiz"}function QuestionResults(t,e,i,r,n,a,s,o,l,h,p,c,d){this.strId=t,this.strLMSId=e,this.strType=i,this.strCorrectResponse=r,this.strUserResponse=n,this.nLatency=a,this.strStatus=s,this.nPoints=o,this.strCompletedTime=l,this.nWeight=h,this.nQuestionNumber=p,this.strDescription=c,this.bTracked=d}function GetTime(t){var e="",e=t.getHours(),i=t.getMinutes(),r=""+i,t=t.getSeconds(),n=""+t;return 10>i&&(r="0"+i),10>t&&(n="0"+t),e+":"+r+":"+n}function GetDate(t){var e="";return e=t.getMonth()+1+"/"+t.getDate()+"/"+t.getFullYear()}function AlertError(t){console.log("TinCan error: "+t)}function ppTinCanRequest(t,e,i,r,n){this.MessageType=t,this.Method=e,this.Data=i,this.Url=r,this.Callback=n}function ppTinCanComm(t){this.m_listParams={},this.m_listCustomParams={},this.m_jsActor={},this.m_strQueryString=t,this.ParseQueryString(this.m_strQueryString),this.m_bStopPosting=this.m_bWaitingTinCanResponse=!1,this.m_arrTinCanMsgQueue=[],this.m_pfnFatalError=AlertError,this.m_bIE=document.all&&-1!=navigator.appVersion.indexOf("MSIE")?!0:!1}function ppResponsePair(t,e){this.Choice=t,this.Statement=e}function ppTinCanApi(t){this.m_tcComm=new ppTinCanComm(t)}function TinCanClient(){}function bwChunk(t){this.m_strRemainder="",this.m_nLength=-1,this.m_strChunkData=this.m_strData="",this.m_nOffset=0,this.isNothing=""==t;var e="",i=0,e=0,r=t,e=t.charAt(0);"~"==e?(i=parseInt(t.charAt(1)),e=t.substr(2,i),e=bwChunk.UBaseNto10(e),t=t.substr(2+i),this.m_nLength=2+i+e):(t=t.substr(1),e=bwChunk.UBaseNto10(e),this.m_nLength=1+e),e>0&&(this.m_strData=t.substr(0,e),t=t.substr(e)),this.m_strChunkData=r.substr(0,r.length-t.length),this.m_strRemainder=t}function PathLib(){}function BezierPath(t){t?this.setPoints(t):this.points=[]}function BitMask(t,e,i,r,n){this.isOpaque=t,this.width=e||0,this.height=i||0,this.sourceWidth=r||this.width,this.sourceHeight=n||this.height}function ppRect(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}function ppGraphics(t){ppArt.currentFudge=0,this.m_nXOffset=-t.left,this.m_nYOffset=-t.top,this.m_nWidth=t.right-t.left+1,this.m_nHeight=t.bottom-t.top+1,this.m_bForMask=!1,this.m_nFillYPos=this.m_nFillXPos=this.m_nFillRotation=0,this.m_nFillScaleY=this.m_nFillScaleX=1,this.m_bRotatedFill=!1,0>=this.m_nWidth&&(this.m_nWidth=1),0>=this.m_nHeight&&(this.m_nHeight=1),this.m_ptOffset={x:0,y:0},this.m_bLineDrawn=this.m_bStrokeStarted=this.m_bFillStarted=!1,this.m_nCurYPos=this.m_nCurXPos=0,this.m_arrShadows=[],this.m_bHasInnerShadow=this.m_bHasShadow=!1,this.m_arrStrokeCanvases=[],this.m_oFillCanvas=document.createElement("canvas"),this.m_oStrokeCanvas=document.createElement("canvas"),this.m_oFillCanvas.width=this.m_nWidth,this.m_oFillCanvas.height=this.m_nHeight,this.m_oStrokeCanvas.width=this.m_nWidth,this.m_oStrokeCanvas.height=this.m_nHeight,this.m_oFillContext=this.m_oFillCanvas.getContext("2d"),this.m_oStrokeContext=this.m_oStrokeCanvas.getContext("2d"),this.m_arrStrokeCanvases.push(this.m_oStrokeCanvas),this.lineJoin=this.lineWidth=this.strokeStyle=this.fillStyle=null}function AddFont(t,e){var i=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",$(r).load(function(){e(t)}),r.src=t,i.appendChild(r)}function RegisterFonts(t){"string"==typeof t&&(t=t.replace(/[\u000a\u000b\u000c\u000d\u0085\u2028\u2029]/g,""),t=t.replace(/&#x[0-8bcef];/gi,""));var e=null;window.ActiveXObject?(e=new ActiveXObject("Microsoft.XMLDOM"),e.loadXML(t)):e=(new DOMParser).parseFromString(t,"text/xml");for(var t=e.getElementsByTagName("font"),e=null,i=0;i<t.length;i++)e=new ppFont(t[i]),g_listFonts[e.Id]=e}function ppFont(t){this.m_xmlData=null,this.m_listGlyphs={},this.m_bFontReady=!1,this.CMD_LINE="%",this.CMD_MOVE="^",this.CMD_CURVE="#",this.CMD_LINE_E="!",this.CMD_MOVE_E="(",this.CMD_CURVE_E=")",this.BASE_NUMBER=64,this.BASE_POW=6,this.m_o64to10={v0:0,v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8,v9:9,va:10,vb:11,vc:12,vd:13,ve:14,vf:15,vg:16,vh:17,vi:18,vj:19,vk:20,vl:21,vm:22,vn:23,vo:24,vp:25,vq:26,vr:27,vs:28,vt:29,vu:30,vv:31,vw:32,vx:33,vy:34,vz:35,vA:36,vB:37,vC:38,vD:39,vE:40,vF:41,vG:42,vH:43,vI:44,vJ:45,vK:46,vL:47,vM:48,vN:49,vO:50,vP:51,vQ:52,vR:53,vS:54,vT:55,vU:56,vV:57,vW:58,vX:59,vY:60,vZ:61,v_:62,v$:63},this.Name=this.GetAttrStr(t,"name"),this.Id=this.GetAttrStr(t,"id"),this.m_xmlData=t.getElementsByTagName("g"),this.m_bFontReady=!0}function ppFontLib(t,e){this.m_strFontUrl=e,null==t&&(t=""),this.m_strBasePath=t}function ppGlyphCmd(t,e,i,r,n){this.cmd=t,this.x1=e,this.y1=i,this.x2=r,this.y2=n}function ppTextLib(t){if(this.m_bHasXML=!1,null!=t)try{this.m_xmlData=t.getElementsByTagName("textdata"),this.m_bHasXML=!0}catch(e){this.m_bHasXML=!1}else ppDebug.debug_trace("Text data is null")}function ppImageLib(){this.m_listImages={},this.m_nCount=0}function ResourcesPanel(){}function GlossaryPanel(){}function TranscriptPanel(){}function CustomStyleSheet(){this.rules=[],this.ruleLookup={},this.sheet=null}function StyleRule(t){this.selector=t,this.attributes=[]}var buildNumber=60,buildDate="20140121 13:39";!function(t,e){function i(t){var e,i,r=$[t]={},t=t.split(/\s+/);for(e=0,i=t.length;i>e;e++)r[t[e]]=!0;return r}function r(t,i,r){if(r===e&&1===t.nodeType)if(r="data-"+i.replace(L,"-$1").toLowerCase(),r=t.getAttribute(r),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:A.isNumeric(r)?parseFloat(r):M.test(r)?A.parseJSON(r):r}catch(n){}A.data(t,i,r)}else r=e;return r}function n(t){for(var e in t)if(("data"!==e||!A.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function a(t,e,i){var r=e+"defer",n=e+"queue",a=e+"mark",s=A._data(t,r);!(!s||"queue"!==i&&A._data(t,n)||"mark"!==i&&A._data(t,a)||!setTimeout(function(){!A._data(t,n)&&!A._data(t,a)&&(A.removeData(t,r,!0),s.fire())},0))}function s(){return!1}function o(){return!0}function l(t,e,i){if(e=e||0,A.isFunction(e))return A.grep(t,function(t,r){return!!e.call(t,r,t)===i});if(e.nodeType)return A.grep(t,function(t){return t===e===i});if("string"==typeof e){var r=A.grep(t,function(t){return 1===t.nodeType});if(nt.test(e))return A.filter(e,r,!i);e=A.filter(e,r)}return A.grep(t,function(t){return 0<=A.inArray(t,e)===i})}function h(t){var e=lt.split("|"),t=t.createDocumentFragment();if(t.createElement)for(;e.length;)t.createElement(e.pop());return t}function p(t,e){if(1===e.nodeType&&A.hasData(t)){var i,r,n;r=A._data(t);var a=A._data(e,r),s=r.events;if(s)for(i in delete a.handle,a.events={},s)for(r=0,n=s[i].length;n>r;r++)A.event.add(e,i+(s[i][r].namespace?".":"")+s[i][r].namespace,s[i][r],s[i][r].data);a.data&&(a.data=A.extend({},a.data))}}function c(t,e){var i;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),i=e.nodeName.toLowerCase(),"object"===i?e.outerHTML=t.outerHTML:"input"!==i||"checkbox"!==t.type&&"radio"!==t.type?"option"===i?e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(A.expando))}function d(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function u(t){("checkbox"===t.type||"radio"===t.type)&&(t.defaultChecked=t.checked)}function m(t){var e=(t.nodeName||"").toLowerCase();"input"===e?u(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&A.grep(t.getElementsByTagName("input"),u)}function f(t,e){e.src?A.ajax({url:e.src,async:!1,dataType:"script"}):A.globalEval((e.text||e.textContent||e.innerHTML||"").replace(wt,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)}function y(t,e,i){var r="width"===e?t.offsetWidth:t.offsetHeight,n="width"===e?Mt:Lt,a=0,s=n.length;if(r>0){if("border"!==i)for(;s>a;a++)i||(r-=parseFloat(A.css(t,"padding"+n[a]))||0),r="margin"===i?r+(parseFloat(A.css(t,i+n[a]))||0):r-(parseFloat(A.css(t,"border"+n[a]+"Width"))||0);return r+"px"}if(r=Ct(t,e,e),(0>r||null==r)&&(r=t.style[e]||0),r=parseFloat(r)||0,i)for(;s>a;a++)r+=parseFloat(A.css(t,"padding"+n[a]))||0,"padding"!==i&&(r+=parseFloat(A.css(t,"border"+n[a]+"Width"))||0),"margin"===i&&(r+=parseFloat(A.css(t,i+n[a]))||0);return r+"px"}function g(t){return function(e,i){var r;if("string"!=typeof e&&(i=e,e="*"),A.isFunction(i))for(var n,a,s=e.toLowerCase().split(Ut),o=0,l=s.length;l>o;o++)n=s[o],(a=/^\+/.test(n))&&(n=n.substr(1)||"*"),r=t[n]=t[n]||[],n=r,n[a?"unshift":"push"](i)}}function v(t,i,r,n,a,s){a=a||i.dataTypes[0],s=s||{},s[a]=!0;for(var o,a=t[a],l=0,h=a?a.length:0,p=t===Kt;h>l&&(p||!o);l++)o=a[l](i,r,n),"string"==typeof o&&(!p||s[o]?o=e:(i.dataTypes.unshift(o),o=v(t,i,r,n,o,s)));return!p&&o||s["*"]||(o=v(t,i,r,n,"*",s)),o}function b(t,i){var r,n,a=A.ajaxSettings.flatOptions||{};for(r in i)i[r]!==e&&((a[r]?t:n||(n={}))[r]=i[r]);n&&A.extend(!0,t,n)}function w(t,e,i,r){if(A.isArray(e))A.each(e,function(e,n){i||Ot.test(t)?r(t,n):w(t+"["+("object"==typeof n||A.isArray(n)?e:"")+"]",n,i,r)});else if(i||null==e||"object"!=typeof e)r(t,e);else for(var n in e)w(t+"["+n+"]",e[n],i,r)}function S(){try{return new t.XMLHttpRequest}catch(e){}}function x(){return setTimeout(C,0),pe=A.now()}function C(){pe=e}function _(t,e){var i={};return A.each(me.concat.apply([],me.slice(0,e)),function(){i[this]=t}),i}function T(t){if(!ce[t]){var e=k.body,i=A("<"+t+">").appendTo(e),r=i.css("display");i.remove(),("none"===r||""===r)&&(oe||(oe=k.createElement("iframe"),oe.frameBorder=oe.width=oe.height=0),e.appendChild(oe),le&&oe.createElement||(le=(oe.contentWindow||oe.contentDocument).document,le.write(("CSS1Compat"===k.compatMode?"<!doctype html>":"")+"<html><body>"),le.close()),i=le.createElement(t),le.body.appendChild(i),r=A.css(i,"display"),e.removeChild(oe)),ce[t]=r}return ce[t]}function I(t){return A.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var k=t.document,D=t.navigator,E=t.location,A=function(){function i(){if(!s.isReady){try{k.documentElement.doScroll("left")}catch(t){return void setTimeout(i,1)}s.ready()}}var r,n,a,s=function(t,e){return new s.fn.init(t,e,r)},o=t.jQuery,l=t.$,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,p=/\S/,c=/^\s+/,d=/\s+$/,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,f=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,g=/(?:^|:|,)(?:\s*\[)+/g,v=/(webkit)[ \/]([\w.]+)/,b=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,S=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z]|[0-9])/gi,C=/^-ms-/,_=function(t,e){return(e+"").toUpperCase()},T=D.userAgent,I=Object.prototype.toString,E=Object.prototype.hasOwnProperty,A=Array.prototype.push,$=Array.prototype.slice,R=String.prototype.trim,M=Array.prototype.indexOf,L={};return s.fn=s.prototype={constructor:s,init:function(t,i,r){var n;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!i&&k.body)return this.context=k,this[0]=k.body,this.selector=t,this.length=1,this;if("string"==typeof t){if((n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:h.exec(t))&&(n[1]||!i)){if(n[1])return r=(i=i instanceof s?i[0]:i)?i.ownerDocument||i:k,(t=u.exec(t))?s.isPlainObject(i)?(t=[k.createElement(t[1])],s.fn.attr.call(t,i,!0)):t=[r.createElement(t[1])]:(t=s.buildFragment([n[1]],[r]),t=(t.cacheable?s.clone(t.fragment):t.fragment).childNodes),s.merge(this,t);if((i=k.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return r.find(t);this.length=1,this[0]=i}return this.context=k,this.selector=t,this}return!i||i.jquery?(i||r).find(t):this.constructor(i).find(t)}return s.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),s.makeArray(t,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return $.call(this,0)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,i){var r=this.constructor();return s.isArray(t)?A.apply(r,t):s.merge(r,t),r.prevObject=this,r.context=this.context,"find"===e?r.selector=this.selector+(this.selector?" ":"")+i:e&&(r.selector=this.selector+"."+e+"("+i+")"),r},each:function(t,e){return s.each(this,t,e)},ready:function(t){return s.bindReady(),n.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack($.apply(this,arguments),"slice",$.call(arguments).join(","))},map:function(t){return this.pushStack(s.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:A,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var t,i,r,n,a,o=arguments[0]||{},l=1,h=arguments.length,p=!1;for("boolean"==typeof o&&(p=o,o=arguments[1]||{},l=2),"object"!=typeof o&&!s.isFunction(o)&&(o={}),h===l&&(o=this,--l);h>l;l++)if(null!=(t=arguments[l]))for(i in t)r=o[i],n=t[i],o!==n&&(p&&n&&(s.isPlainObject(n)||(a=s.isArray(n)))?(a?(a=!1,r=r&&s.isArray(r)?r:[]):r=r&&s.isPlainObject(r)?r:{},o[i]=s.extend(p,r,n)):n!==e&&(o[i]=n));return o},s.extend({noConflict:function(e){return t.$===s&&(t.$=l),e&&t.jQuery===s&&(t.jQuery=o),s},isReady:!1,readyWait:1,holdReady:function(t){t?s.readyWait++:s.ready(!0)},ready:function(t){if(!0===t&&!--s.readyWait||!0!==t&&!s.isReady){if(!k.body)return setTimeout(s.ready,1);s.isReady=!0,!0!==t&&0<--s.readyWait||(n.fireWith(k,[s]),s.fn.trigger&&s(k).trigger("ready").off("ready"))}},bindReady:function(){if(!n){if(n=s.Callbacks("once memory"),"complete"===k.readyState)return setTimeout(s.ready,1);if(k.addEventListener)k.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",s.ready,!1);else if(k.attachEvent){k.attachEvent("onreadystatechange",a),t.attachEvent("onload",s.ready);var e=!1;try{e=null==t.frameElement}catch(r){}k.documentElement.doScroll&&e&&i()}}},isFunction:function(t){return"function"===s.type(t)},isArray:Array.isArray||function(t){return"array"===s.type(t)},isWindow:function(t){return t&&"object"==typeof t&&"setInterval"in t},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?""+t:L[I.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==s.type(t)||t.nodeType||s.isWindow(t))return!1;try{if(t.constructor&&!E.call(t,"constructor")&&!E.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}for(var r in t);return r===e||E.call(t,r)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=s.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):m.test(e.replace(f,"@").replace(y,"]").replace(g,""))?new Function("return "+e)():void s.error("Invalid JSON: "+e)):null},parseXML:function(i){var r,n;try{t.DOMParser?(n=new DOMParser,r=n.parseFromString(i,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(i))}catch(a){r=e}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+i),r},noop:function(){},globalEval:function(e){e&&p.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(C,"ms-").replace(x,_)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,i,r){var n,a=0,o=t.length,l=o===e||s.isFunction(t);if(r)if(l){for(n in t)if(!1===i.apply(t[n],r))break}else for(;o>a&&!1!==i.apply(t[a++],r););else if(l){for(n in t)if(!1===i.call(t[n],n,t[n]))break}else for(;o>a&&!1!==i.call(t[a],a,t[a++]););return t},trim:R?function(t){return null==t?"":R.call(t)}:function(t){return null==t?"":t.toString().replace(c,"").replace(d,"")},makeArray:function(t,e){var i=e||[];if(null!=t){var r=s.type(t);null==t.length||"string"===r||"function"===r||"regexp"===r||s.isWindow(t)?A.call(i,t):s.merge(i,t)}return i},inArray:function(t,e,i){var r;if(e){if(M)return M.call(e,t,i);for(r=e.length,i=i?0>i?Math.max(0,r+i):i:0;r>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,i){var r=t.length,n=0;if("number"==typeof i.length)for(var a=i.length;a>n;n++)t[r++]=i[n];else for(;i[n]!==e;)t[r++]=i[n++];return t.length=r,t},grep:function(t,e,i){for(var r,n=[],i=!!i,a=0,s=t.length;s>a;a++)r=!!e(t[a],a),i!==r&&n.push(t[a]);return n},map:function(t,i,r){var n,a,o=[],l=0,h=t.length;if(t instanceof s||h!==e&&"number"==typeof h&&(h>0&&t[0]&&t[h-1]||0===h||s.isArray(t)))for(;h>l;l++)n=i(t[l],l,r),null!=n&&(o[o.length]=n);else for(a in t)n=i(t[a],a,r),null!=n&&(o[o.length]=n);return o.concat.apply([],o)},guid:1,proxy:function(t,i){if("string"==typeof i)var r=t[i],i=t,t=r;if(!s.isFunction(t))return e;var n=$.call(arguments,2),r=function(){return t.apply(i,n.concat($.call(arguments)))};return r.guid=t.guid=t.guid||r.guid||s.guid++,r},access:function(t,i,r,n,a,o){var l=t.length;if("object"==typeof i){for(var h in i)s.access(t,h,i[h],n,a,r);return t}if(r!==e){for(n=!o&&n&&s.isFunction(r),h=0;l>h;h++)a(t[h],i,n?r.call(t[h],h,a(t[h],i)):r,o);return t}return l?a(t[0],i):e},now:function(){return(new Date).getTime()},uaMatch:function(t){return t=t.toLowerCase(),t=v.exec(t)||b.exec(t)||w.exec(t)||0>t.indexOf("compatible")&&S.exec(t)||[],{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function t(e,i){return new t.fn.init(e,i)}s.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(i,r){return r&&r instanceof s&&!(r instanceof t)&&(r=t(r)),s.fn.init.call(this,i,r,e)},t.fn.init.prototype=t.fn;var e=t(k);return t},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){L["[object "+e+"]"]=e.toLowerCase()}),T=s.uaMatch(T),T.browser&&(s.browser[T.browser]=!0,s.browser.version=T.version),s.browser.webkit&&(s.browser.safari=!0),p.test(" ")&&(c=/^[\s\xA0]+/,d=/[\s\xA0]+$/),r=s(k),k.addEventListener?a=function(){k.removeEventListener("DOMContentLoaded",a,!1),s.ready()}:k.attachEvent&&(a=function(){"complete"===k.readyState&&(k.detachEvent("onreadystatechange",a),s.ready())}),s}(),$={};A.Callbacks=function(t){var r,n,a,s,o,t=t?$[t]||i(t):{},l=[],h=[],p=function(e){var i,r,n,a;for(i=0,r=e.length;r>i;i++)n=e[i],a=A.type(n),"array"===a?p(n):"function"===a&&(!t.unique||!d.has(n))&&l.push(n)},c=function(e,i){for(i=i||[],r=!t.memory||[e,i],n=!0,o=a||0,a=0,s=l.length;l&&s>o;o++)if(!1===l[o].apply(e,i)&&t.stopOnFalse){r=!0;break}n=!1,l&&(t.once?!0===r?d.disable():l=[]:h&&h.length&&(r=h.shift(),d.fireWith(r[0],r[1])))},d={add:function(){if(l){var t=l.length;p(arguments),n?s=l.length:r&&!0!==r&&(a=t,c(r[0],r[1]))}return this},remove:function(){if(l)for(var e=arguments,i=0,r=e.length;r>i;i++)for(var a=0;a<l.length&&(e[i]!==l[a]||(n&&s>=a&&(s--,o>=a&&o--),l.splice(a--,1),!t.unique));a++);return this},has:function(t){if(l)for(var e=0,i=l.length;i>e;e++)if(t===l[e])return!0;return!1},empty:function(){return l=[],this},disable:function(){return l=h=r=e,this},disabled:function(){return!l},lock:function(){return h=e,(!r||!0===r)&&d.disable(),this},locked:function(){return!h},fireWith:function(e,i){return h&&(n?t.once||h.push([e,i]):(!t.once||!r)&&c(e,i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d};var R=[].slice;A.extend({Deferred:function(t){var e,i=A.Callbacks("once memory"),r=A.Callbacks("once memory"),n=A.Callbacks("memory"),a="pending",s={resolve:i,reject:r,notify:n},o={done:i.add,fail:r.add,progress:n.add,state:function(){return a},isResolved:i.fired,isRejected:r.fired,then:function(t,e,i){return l.done(t).fail(e).progress(i),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,i){return A.Deferred(function(r){A.each({done:[t,"resolve"],fail:[e,"reject"],progress:[i,"notify"]},function(t,e){var i,n=e[0],a=e[1];A.isFunction(n)?l[t](function(){(i=n.apply(this,arguments))&&A.isFunction(i.promise)?i.promise().then(r.resolve,r.reject,r.notify):r[a+"With"](this===l?r:this,[i])}):l[t](r[a])})}).promise()},promise:function(t){if(null==t)t=o;else for(var e in o)t[e]=o[e];return t}},l=o.promise({});for(e in s)l[e]=s[e].fire,l[e+"With"]=s[e].fireWith;return l.done(function(){a="resolved"},r.disable,n.lock).fail(function(){a="rejected"},i.disable,n.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){r[t]=1<arguments.length?R.call(arguments,0):e,--o||l.resolveWith(l,r)}}function i(t){return function(e){s[t]=1<arguments.length?R.call(arguments,0):e,l.notifyWith(h,s)}}var r=R.call(arguments,0),n=0,a=r.length,s=Array(a),o=a,l=1>=a&&t&&A.isFunction(t.promise)?t:A.Deferred(),h=l.promise();if(a>1){for(;a>n;n++)r[n]&&r[n].promise&&A.isFunction(r[n].promise)?r[n].promise().then(e(n),l.reject,i(n)):--o;o||l.resolveWith(l,r)}else l!==t&&l.resolveWith(l,a?[t]:[]);return h}}),A.support=function(){var e,i,r,n,a,s,o,l,h=k.createElement("div");if(h.setAttribute("className","t"),h.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",i=h.getElementsByTagName("*"),r=h.getElementsByTagName("a")[0],!i||!i.length||!r)return{};n=k.createElement("select"),a=n.appendChild(k.createElement("option")),i=h.getElementsByTagName("input")[0],e={leadingWhitespace:3===h.firstChild.nodeType,tbody:!h.getElementsByTagName("tbody").length,htmlSerialize:!!h.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.55/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:"on"===i.value,optSelected:a.selected,getSetAttribute:"t"!==h.className,enctype:!!k.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==k.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,e.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,e.optDisabled=!a.disabled;try{delete h.test}catch(p){e.deleteExpando=!1}if(!h.addEventListener&&h.attachEvent&&h.fireEvent&&(h.attachEvent("onclick",function(){e.noCloneEvent=!1}),h.cloneNode(!0).fireEvent("onclick")),i=k.createElement("input"),i.value="t",i.setAttribute("type","radio"),e.radioValue="t"===i.value,i.setAttribute("checked","checked"),h.appendChild(i),r=k.createDocumentFragment(),r.appendChild(h.lastChild),e.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=i.checked,r.removeChild(i),r.appendChild(h),h.innerHTML="",t.getComputedStyle&&(i=k.createElement("div"),i.style.width="0",i.style.marginRight="0",h.style.width="2px",h.appendChild(i),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)),h.attachEvent)for(o in{submit:1,change:1,focusin:1})i="on"+o,l=i in h,l||(h.setAttribute(i,"return;"),l="function"==typeof h[i]),e[o+"Bubbles"]=l;return r.removeChild(h),r=n=a=i=h=i=null,A(function(){var t,i,r,n,a=k.getElementsByTagName("body")[0];a&&(t=k.createElement("div"),t.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(t,a.firstChild),h=k.createElement("div"),t.appendChild(h),h.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",s=h.getElementsByTagName("td"),l=0===s[0].offsetHeight,s[0].style.display="",s[1].style.display="none",e.reliableHiddenOffsets=l&&0===s[0].offsetHeight,h.innerHTML="",h.style.width=h.style.paddingLeft="1px",A.boxModel=e.boxModel=2===h.offsetWidth,"undefined"!=typeof h.style.zoom&&(h.style.display="inline",h.style.zoom=1,e.inlineBlockNeedsLayout=2===h.offsetWidth,h.style.display="",h.innerHTML="<div style='width:4px;'></div>",e.shrinkWrapBlocks=2!==h.offsetWidth),h.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;",h.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",i=h.firstChild,r=i.firstChild,n={doesNotAddBorder:5!==r.offsetTop,doesAddBorderForTableAndCells:5===i.nextSibling.firstChild.firstChild.offsetTop},r.style.position="fixed",r.style.top="20px",n.fixedPosition=20===r.offsetTop||15===r.offsetTop,r.style.position=r.style.top="",i.style.overflow="hidden",i.style.position="relative",n.subtractsBorderForOverflowNotVisible=-5===r.offsetTop,n.doesNotIncludeMarginInBodyOffset=1!==a.offsetTop,a.removeChild(t),h=null,A.extend(e,n))}),e}();var M=/^(?:\{.*\}|\[.*\])$/,L=/([A-Z])/g;A.extend({cache:{},uuid:0,expando:"jQuery"+(A.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?A.cache[t[A.expando]]:t[A.expando],!!t&&!n(t)},data:function(t,i,r,n){if(A.acceptData(t)){var a;a=A.expando;var s="string"==typeof i,o=t.nodeType,l=o?A.cache:t,h=o?t[a]:t[a]&&a,p="events"===i;if(h&&l[h]&&(p||n||l[h].data)||!s||r!==e)return h||(o?t[a]=h=++A.uuid:h=a),l[h]||(l[h]={},o)||(l[h].toJSON=A.noop),("object"==typeof i||"function"==typeof i)&&(n?l[h]=A.extend(l[h],i):l[h].data=A.extend(l[h].data,i)),a=t=l[h],n||(t.data||(t.data={}),t=t.data),r!==e&&(t[A.camelCase(i)]=r),p&&!t[i]?a.events:(s?(r=t[i],null==r&&(r=t[A.camelCase(i)])):r=t,r)}},removeData:function(t,e,i){if(A.acceptData(t)){var r,a,s,o=A.expando,l=t.nodeType,h=l?A.cache:t,p=l?t[o]:o;if(h[p]){if(e&&(r=i?h[p]:h[p].data)){A.isArray(e)||(e in r?e=[e]:(e=A.camelCase(e),e=e in r?[e]:e.split(" ")));for(a=0,s=e.length;s>a;a++)delete r[e[a]];if(!(i?n:A.isEmptyObject)(r))return}if(!i&&(delete h[p].data,!n(h[p])))return;A.support.deleteExpando||!h.setInterval?delete h[p]:h[p]=null,l&&(A.support.deleteExpando?delete t[o]:t.removeAttribute?t.removeAttribute(o):t[o]=null)}}},_data:function(t,e,i){return A.data(t,e,i,!0)},acceptData:function(t){if(t.nodeName){var e=A.noData[t.nodeName.toLowerCase()];if(e)return!(!0===e||t.getAttribute("classid")!==e)}return!0}}),A.fn.extend({data:function(t,i){var n,a,s,o=null;if("undefined"==typeof t){if(this.length&&(o=A.data(this[0]),1===this[0].nodeType&&!A._data(this[0],"parsedAttrs"))){a=this[0].attributes;for(var l=0,h=a.length;h>l;l++)s=a[l].name,0===s.indexOf("data-")&&(s=A.camelCase(s.substring(5)),r(this[0],s,o[s]));A._data(this[0],"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){A.data(this,t)}):(n=t.split("."),n[1]=n[1]?"."+n[1]:"",i===e?(o=this.triggerHandler("getData"+n[1]+"!",[n[0]]),o===e&&this.length&&(o=A.data(this[0],t),o=r(this[0],t,o)),o===e&&n[1]?this.data(n[0]):o):this.each(function(){var e=A(this),r=[n[0],i];e.triggerHandler("setData"+n[1]+"!",r),A.data(this,t,i),e.triggerHandler("changeData"+n[1]+"!",r)}))},removeData:function(t){return this.each(function(){A.removeData(this,t)})}}),A.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",A._data(t,e,(A._data(t,e)||0)+1))},_unmark:function(t,e,i){if(!0!==t&&(i=e,e=t,t=!1),e){var i=i||"fx",r=i+"mark";(t=t?0:(A._data(e,r)||1)-1)?A._data(e,r,t):(A.removeData(e,r,!0),a(e,i,"mark"))}},queue:function(t,e,i){var r;return t?(e=(e||"fx")+"queue",r=A._data(t,e),i&&(!r||A.isArray(i)?r=A._data(t,e,A.makeArray(i)):r.push(i)),r||[]):void 0},dequeue:function(t,e){var e=e||"fx",i=A.queue(t,e),r=i.shift(),n={};"inprogress"===r&&(r=i.shift()),r&&("fx"===e&&i.unshift("inprogress"),A._data(t,e+".run",n),r.call(t,function(){A.dequeue(t,e)},n)),i.length||(A.removeData(t,e+"queue "+e+".run",!0),a(t,e,"queue"))}}),A.fn.extend({queue:function(t,i){return"string"!=typeof t&&(i=t,t="fx"),i===e?A.queue(this[0],t):this.each(function(){var e=A.queue(this,t,i);"fx"===t&&"inprogress"!==e[0]&&A.dequeue(this,t)})},dequeue:function(t){return this.each(function(){A.dequeue(this,t)})},delay:function(t,e){return t=A.fx?A.fx.speeds[t]||t:t,this.queue(e||"fx",function(e,i){var r=setTimeout(e,t);i.stop=function(){clearTimeout(r)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t){function i(){--o||n.resolveWith(a,[a])}"string"!=typeof t&&(t=e);for(var r,t=t||"fx",n=A.Deferred(),a=this,s=a.length,o=1,l=t+"defer",h=t+"queue",t=t+"mark";s--;)(r=A.data(a[s],l,e,!0)||(A.data(a[s],h,e,!0)||A.data(a[s],t,e,!0))&&A.data(a[s],l,A.Callbacks("once memory"),!0))&&(o++,r.add(i));return i(),n.promise()}});var P,F,N,O=/[\n\t\r]/g,B=/\s+/,X=/\r/g,G=/^(?:button|input)$/i,W=/^(?:button|input|object|select|textarea)$/i,H=/^a(?:rea)?$/i,j=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Y=A.support.getSetAttribute;A.fn.extend({attr:function(t,e){return A.access(this,t,e,!0,A.attr)},removeAttr:function(t){return this.each(function(){A.removeAttr(this,t)})},prop:function(t,e){return A.access(this,t,e,!0,A.prop)},removeProp:function(t){return t=A.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(i){}})},addClass:function(t){var e,i,r,n,a,s,o;if(A.isFunction(t))return this.each(function(e){A(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(B),i=0,r=this.length;r>i;i++)if(n=this[i],1===n.nodeType)if(n.className||1!==e.length){for(a=" "+n.className+" ",s=0,o=e.length;o>s;s++)~a.indexOf(" "+e[s]+" ")||(a+=e[s]+" ");n.className=A.trim(a)}else n.className=t;return this},removeClass:function(t){var i,r,n,a,s,o,l;if(A.isFunction(t))return this.each(function(e){A(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(i=(t||"").split(B),r=0,n=this.length;n>r;r++)if(a=this[r],1===a.nodeType&&a.className)if(t){for(s=(" "+a.className+" ").replace(O," "),o=0,l=i.length;l>o;o++)s=s.replace(" "+i[o]+" "," ");a.className=A.trim(s)}else a.className="";return this},toggleClass:function(t,e){var i=typeof t,r="boolean"==typeof e;return A.isFunction(t)?this.each(function(i){A(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var n,a=0,s=A(this),o=e,l=t.split(B);n=l[a++];)o=r?o:!s.hasClass(n),s[o?"addClass":"removeClass"](n);else("undefined"===i||"boolean"===i)&&(this.className&&A._data(this,"__className__",this.className),this.className=this.className||!1===t?"":A._data(this,"__className__")||"")})},hasClass:function(t){for(var t=" "+t+" ",e=0,i=this.length;i>e;e++)if(1===this[e].nodeType&&-1<(" "+this[e].className+" ").replace(O," ").indexOf(t))return!0; return!1},val:function(t){var i,r,n,a=this[0];return arguments.length?(n=A.isFunction(t),this.each(function(r){var a=A(this);1!==this.nodeType||(r=n?t.call(this,r,a.val()):t,null==r?r="":"number"==typeof r?r+="":A.isArray(r)&&(r=A.map(r,function(t){return null==t?"":t+""})),i=A.valHooks[this.nodeName.toLowerCase()]||A.valHooks[this.type],i&&"set"in i&&i.set(this,r,"value")!==e)||(this.value=r)})):a?(i=A.valHooks[a.nodeName.toLowerCase()]||A.valHooks[a.type])&&"get"in i&&(r=i.get(a,"value"))!==e?r:(r=a.value,"string"==typeof r?r.replace(X,""):null==r?"":r):void 0}}),A.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,i,r=t.selectedIndex,n=[],a=t.options,s="select-one"===t.type;if(0>r)return null;for(t=s?r:0,i=s?r+1:a.length;i>t;t++)if(e=a[t],!(!e.selected||(A.support.optDisabled?e.disabled:null!==e.getAttribute("disabled"))||e.parentNode.disabled&&A.nodeName(e.parentNode,"optgroup"))){if(e=A(e).val(),s)return e;n.push(e)}return s&&!n.length&&a.length?A(a[r]).val():n},set:function(t,e){var i=A.makeArray(e);return A(t).find("option").each(function(){this.selected=0<=A.inArray(A(this).val(),i)}),i.length||(t.selectedIndex=-1),i}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,i,r,n){var a,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o){if(n&&i in A.attrFn)return A(t)[i](r);if("undefined"==typeof t.getAttribute)return A.prop(t,i,r);if((n=1!==o||!A.isXMLDoc(t))&&(i=i.toLowerCase(),s=A.attrHooks[i]||(j.test(i)?F:P)),r===e)return s&&"get"in s&&n&&null!==(a=s.get(t,i))?a:(a=t.getAttribute(i),null===a?e:a);if(null!==r)return s&&"set"in s&&n&&(a=s.set(t,r,i))!==e?a:(t.setAttribute(i,""+r),r);A.removeAttr(t,i)}},removeAttr:function(t,e){var i,r,n,a,s=0;if(e&&1===t.nodeType)for(r=e.toLowerCase().split(B),a=r.length;a>s;s++)(n=r[s])&&(i=A.propFix[n]||n,A.attr(t,n,""),t.removeAttribute(Y?n:i),j.test(n)&&i in t&&(t[i]=!1))},attrHooks:{type:{set:function(t,e){if(G.test(t.nodeName)&&t.parentNode)A.error("type property can't be changed");else if(!A.support.radioValue&&"radio"===e&&A.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}},value:{get:function(t,e){return P&&A.nodeName(t,"button")?P.get(t,e):e in t?t.value:null},set:function(t,e,i){return P&&A.nodeName(t,"button")?P.set(t,e,i):void(t.value=e)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,i,r){var n,a,s=t.nodeType;return t&&3!==s&&8!==s&&2!==s?(1===s&&A.isXMLDoc(t)||(i=A.propFix[i]||i,a=A.propHooks[i]),r!==e?a&&"set"in a&&(n=a.set(t,r,i))!==e?n:t[i]=r:a&&"get"in a&&null!==(n=a.get(t,i))?n:t[i]):void 0},propHooks:{tabIndex:{get:function(t){var i=t.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):W.test(t.nodeName)||H.test(t.nodeName)&&t.href?0:e}}}}),A.attrHooks.tabindex=A.propHooks.tabIndex,F={get:function(t,i){var r,n=A.prop(t,i);return!0===n||"boolean"!=typeof n&&(r=t.getAttributeNode(i))&&!1!==r.nodeValue?i.toLowerCase():e},set:function(t,e,i){return!1===e?A.removeAttr(t,i):(e=A.propFix[i]||i,e in t&&(t[e]=!0),t.setAttribute(i,i.toLowerCase())),i}},Y||(N={name:!0,id:!0},P=A.valHooks.button={get:function(t,i){var r;return(r=t.getAttributeNode(i))&&(N[i]?""!==r.nodeValue:r.specified)?r.nodeValue:e},set:function(t,e,i){var r=t.getAttributeNode(i);return r||(r=k.createAttribute(i),t.setAttributeNode(r)),r.nodeValue=e+""}},A.attrHooks.tabindex.set=P.set,A.each(["width","height"],function(t,e){A.attrHooks[e]=A.extend(A.attrHooks[e],{set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}})}),A.attrHooks.contenteditable={get:P.get,set:function(t,e,i){""===e&&(e="false"),P.set(t,e,i)}}),A.support.hrefNormalized||A.each(["href","src","width","height"],function(t,i){A.attrHooks[i]=A.extend(A.attrHooks[i],{get:function(t){return t=t.getAttribute(i,2),null===t?e:t}})}),A.support.style||(A.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),A.support.optSelected||(A.propHooks.selected=A.extend(A.propHooks.selected,{get:function(){return null}})),A.support.enctype||(A.propFix.enctype="encoding"),A.support.checkOn||A.each(["radio","checkbox"],function(){A.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),A.each(["radio","checkbox"],function(){A.valHooks[this]=A.extend(A.valHooks[this],{set:function(t,e){return A.isArray(e)?t.checked=0<=A.inArray(A(t).val(),e):void 0}})});var V=/^(?:textarea|input|select)$/i,z=/^([^\.]*)?(?:\.(.+))?$/,U=/\bhover(\.\S+)?\b/,q=/^key/,Q=/^(?:mouse|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,K=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,J=function(t){return(t=K.exec(t))&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},tt=function(t){return A.event.special.hover?t:t.replace(U,"mouseenter$1 mouseleave$1")};A.event={add:function(t,i,r,n,a){var s,o,l,h,p,c,d,u,m;if(3!==t.nodeType&&8!==t.nodeType&&i&&r&&(s=A._data(t))){for(r.handler&&(d=r,r=d.handler),r.guid||(r.guid=A.guid++),l=s.events,l||(s.events=l={}),o=s.handle,o||(s.handle=o=function(t){return"undefined"==typeof A||t&&A.event.triggered===t.type?e:A.event.dispatch.apply(o.elem,arguments)},o.elem=t),i=A.trim(tt(i)).split(" "),s=0;s<i.length;s++)h=z.exec(i[s])||[],p=h[1],c=(h[2]||"").split(".").sort(),m=A.event.special[p]||{},p=(a?m.delegateType:m.bindType)||p,m=A.event.special[p]||{},h=A.extend({type:p,origType:h[1],data:n,handler:r,guid:r.guid,selector:a,quick:J(a),namespace:c.join(".")},d),u=l[p],u||(u=l[p]=[],u.delegateCount=0,m.setup&&!1!==m.setup.call(t,n,c,o))||(t.addEventListener?t.addEventListener(p,o,!1):t.attachEvent&&t.attachEvent("on"+p,o)),m.add&&(m.add.call(t,h),!h.handler.guid)&&(h.handler.guid=r.guid),a?u.splice(u.delegateCount++,0,h):u.push(h),A.event.global[p]=!0;t=null}},global:{},remove:function(t,e,i,r,n){var a,s,o,l,h,p,c,d,u,m,f=A.hasData(t)&&A._data(t);if(f&&(c=f.events)){for(e=A.trim(tt(e||"")).split(" "),a=0;a<e.length;a++)if(s=z.exec(e[a])||[],o=l=s[1],s=s[2],o){for(d=A.event.special[o]||{},o=(r?d.delegateType:d.bindType)||o,u=c[o]||[],h=u.length,s=s?RegExp("(^|\\.)"+s.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,p=0;p<u.length;p++)m=u[p],!n&&l!==m.origType||i&&i.guid!==m.guid||s&&!s.test(m.namespace)||r&&r!==m.selector&&("**"!==r||!m.selector)||(u.splice(p--,1),m.selector&&u.delegateCount--,d.remove&&d.remove.call(t,m));0===u.length&&h!==u.length&&((!d.teardown||!1===d.teardown.call(t,s))&&A.removeEvent(t,o,f.handle),delete c[o])}else for(o in c)A.event.remove(t,o+e[a],i,r,!0);A.isEmptyObject(c)&&((e=f.handle)&&(e.elem=null),A.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,r,n,a){if(!n||3!==n.nodeType&&8!==n.nodeType){var s,o,l,h,p,c=i.type||i,d=[];if(!Z.test(c+A.event.triggered)&&(0<=c.indexOf("!")&&(c=c.slice(0,-1),s=!0),0<=c.indexOf(".")&&(d=c.split("."),c=d.shift(),d.sort()),n&&!A.event.customEvent[c]||A.event.global[c]))if(i="object"==typeof i?i[A.expando]?i:new A.Event(c,i):new A.Event(c),i.type=c,i.isTrigger=!0,i.exclusive=s,i.namespace=d.join("."),i.namespace_re=i.namespace?RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,s=0>c.indexOf(":")?"on"+c:"",n){if(i.result=e,i.target||(i.target=n),r=null!=r?A.makeArray(r):[],r.unshift(i),l=A.event.special[c]||{},!l.trigger||!1!==l.trigger.apply(n,r)){if(p=[[n,l.bindType||c]],!a&&!l.noBubble&&!A.isWindow(n)){for(h=l.delegateType||c,d=Z.test(h+c)?n:n.parentNode,o=null;d;d=d.parentNode)p.push([d,h]),o=d;o&&o===n.ownerDocument&&p.push([o.defaultView||o.parentWindow||t,h])}for(o=0;o<p.length&&!i.isPropagationStopped();o++)d=p[o][0],i.type=p[o][1],(h=(A._data(d,"events")||{})[i.type]&&A._data(d,"handle"))&&h.apply(d,r),(h=s&&d[s])&&A.acceptData(d)&&!1===h.apply(d,r)&&i.preventDefault();return i.type=c,a||i.isDefaultPrevented()||l._default&&!1!==l._default.apply(n.ownerDocument,r)||"click"===c&&A.nodeName(n,"a")||!A.acceptData(n)||s&&n[c]&&("focus"!==c&&"blur"!==c||0!==i.target.offsetWidth)&&!A.isWindow(n)&&((o=n[s])&&(n[s]=null),A.event.triggered=c,n[c](),A.event.triggered=e,o&&(n[s]=o)),i.result}}else for(o in n=A.cache)n[o].events&&n[o].events[c]&&A.event.trigger(i,r,n[o].handle.elem,!0)}},dispatch:function(i){var r,n,a,s,o,l,h,i=A.event.fix(i||t.event),p=(A._data(this,"events")||{})[i.type]||[],c=p.delegateCount,d=[].slice.call(arguments,0),u=!i.exclusive&&!i.namespace,m=[];if(d[0]=i,i.delegateTarget=this,c&&!i.target.disabled&&(!i.button||"click"!==i.type))for(a=A(this),a.context=this.ownerDocument||this,n=i.target;n!=this;n=n.parentNode||this){for(o={},l=[],a[0]=n,r=0;c>r;r++){if(s=p[r],h=s.selector,o[h]===e){var f,y=o,g=h;if(s.quick){f=s.quick;var v=n.attributes||{};f=!(f[1]&&n.nodeName.toLowerCase()!==f[1]||f[2]&&(v.id||{}).value!==f[2]||f[3]&&!f[3].test((v["class"]||{}).value))}else f=a.is(h);y[g]=f}o[h]&&l.push(s)}l.length&&m.push({elem:n,matches:l})}for(p.length>c&&m.push({elem:this,matches:p.slice(c)}),r=0;r<m.length&&!i.isPropagationStopped();r++)for(c=m[r],i.currentTarget=c.elem,p=0;p<c.matches.length&&!i.isImmediatePropagationStopped();p++)s=c.matches[p],(u||!i.namespace&&!s.namespace||i.namespace_re&&i.namespace_re.test(s.namespace))&&(i.data=s.data,i.handleObj=s,s=((A.event.special[s.origType]||{}).handle||s.handler).apply(c.elem,d),s!==e&&(i.result=s,!1===s&&(i.preventDefault(),i.stopPropagation())));return i.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,i){var r,n,a=i.button,s=i.fromElement;return null==t.pageX&&null!=i.clientX&&(r=t.target.ownerDocument||k,n=r.documentElement,r=r.body,t.pageX=i.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=i.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?i.toElement:s),t.which||a===e||(t.which=1&a?1:2&a?3:4&a?2:0),t}},fix:function(t){if(t[A.expando])return t;var i,r,n=t,a=A.event.fixHooks[t.type]||{},s=a.props?this.props.concat(a.props):this.props,t=A.Event(n);for(i=s.length;i;)r=s[--i],t[r]=n[r];return t.target||(t.target=n.srcElement||k),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),a.filter?a.filter(t,n):t},special:{ready:{setup:A.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,i){A.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,i,r){t=A.extend(new A.Event,i,{type:t,isSimulated:!0,originalEvent:{}}),r?A.event.trigger(t,null,e):A.event.dispatch.call(e,t),t.isDefaultPrevented()&&i.preventDefault()}},A.event.handle=A.event.dispatch,A.removeEvent=k.removeEventListener?function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)}:function(t,e,i){t.detachEvent&&t.detachEvent("on"+e,i)},A.Event=function(t,e){return this instanceof A.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?o:s):this.type=t,e&&A.extend(this,e),this.timeStamp=t&&t.timeStamp||A.now(),void(this[A.expando]=!0)):new A.Event(t,e)},A.Event.prototype={preventDefault:function(){this.isDefaultPrevented=o;var t=this.originalEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=o;var t=this.originalEvent;t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},isDefaultPrevented:s,isPropagationStopped:s,isImmediatePropagationStopped:s},A.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){A.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,r=t.relatedTarget,n=t.handleObj;return(!r||r!==this&&!A.contains(this,r))&&(t.type=n.origType,i=n.handler.apply(this,arguments),t.type=e),i}}}),A.support.submitBubbles||(A.event.special.submit={setup:function(){return A.nodeName(this,"form")?!1:void A.event.add(this,"click._submit keypress._submit",function(t){t=t.target,(t=A.nodeName(t,"input")||A.nodeName(t,"button")?t.form:e)&&!t._submit_attached&&(A.event.add(t,"submit._submit",function(t){this.parentNode&&!t.isTrigger&&A.event.simulate("submit",this.parentNode,t,!0)}),t._submit_attached=!0)})},teardown:function(){return A.nodeName(this,"form")?!1:void A.event.remove(this,"._submit")}}),A.support.changeBubbles||(A.event.special.change={setup:function(){return V.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(A.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),A.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,A.event.simulate("change",this,t,!0))})),!1):void A.event.add(this,"beforeactivate._change",function(t){t=t.target,V.test(t.nodeName)&&!t._change_attached&&(A.event.add(t,"change._change",function(t){this.parentNode&&!t.isSimulated&&!t.isTrigger&&A.event.simulate("change",this.parentNode,t,!0)}),t._change_attached=!0)})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return A.event.remove(this,"._change"),V.test(this.nodeName)}}),A.support.focusinBubbles||A.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,r=function(t){A.event.simulate(e,t.target,A.event.fix(t),!0)};A.event.special[e]={setup:function(){0===i++&&k.addEventListener(t,r,!0)},teardown:function(){0===--i&&k.removeEventListener(t,r,!0)}}}),A.fn.extend({on:function(t,i,r,n,a){var o,l;if("object"==typeof t){"string"!=typeof i&&(r=i,i=e);for(l in t)this.on(l,i,r,t[l],a);return this}if(null==r&&null==n?(n=i,r=i=e):null==n&&("string"==typeof i?(n=r,r=e):(n=r,r=i,i=e)),!1===n)n=s;else if(!n)return this;return 1===a&&(o=n,n=function(t){return A().off(t),o.apply(this,arguments)},n.guid=o.guid||(o.guid=A.guid++)),this.each(function(){A.event.add(this,t,n,r,i)})},one:function(t,e,i,r){return this.on.call(this,t,e,i,r,1)},off:function(t,i,r){if(t&&t.preventDefault&&t.handleObj){var n=t.handleObj;return A(t.delegateTarget).off(n.namespace?n.type+"."+n.namespace:n.type,n.selector,n.handler),this}if("object"==typeof t){for(n in t)this.off(n,i,t[n]);return this}return(!1===i||"function"==typeof i)&&(r=i,i=e),!1===r&&(r=s),this.each(function(){A.event.remove(this,t,r,i)})},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},live:function(t,e,i){return A(this.context).on(t,this.selector,e,i),this},die:function(t,e){return A(this.context).off(t,this.selector||"**",e),this},delegate:function(t,e,i,r){return this.on(e,t,i,r)},undelegate:function(t,e,i){return 1==arguments.length?this.off(t,"**"):this.off(e,t,i)},trigger:function(t,e){return this.each(function(){A.event.trigger(t,e,this)})},triggerHandler:function(t,e){return this[0]?A.event.trigger(t,e,this[0],!0):void 0},toggle:function(t){var e=arguments,i=t.guid||A.guid++,r=0,n=function(i){var n=(A._data(this,"lastToggle"+t.guid)||0)%r;return A._data(this,"lastToggle"+t.guid,n+1),i.preventDefault(),e[n].apply(this,arguments)||!1};for(n.guid=i;r<e.length;)e[r++].guid=i;return this.click(n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),A.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){A.fn[e]=function(t,i){return null==i&&(i=t,t=null),0<arguments.length?this.on(e,null,t,i):this.trigger(e)},A.attrFn&&(A.attrFn[e]=!0),q.test(e)&&(A.event.fixHooks[e]=A.event.keyHooks),Q.test(e)&&(A.event.fixHooks[e]=A.event.mouseHooks)}),function(){function t(t,e,i,r,a,s){for(var a=0,o=r.length;o>a;a++){var l=r[a];if(l){for(var h=!1,l=l[t];l;){if(l[n]===i){h=r[l.sizset];break}if(1!==l.nodeType||s||(l[n]=i,l.sizset=a),l.nodeName.toLowerCase()===e){h=l;break}l=l[t]}r[a]=h}}}function i(t,e,i,r,a,s){for(var a=0,o=r.length;o>a;a++){var l=r[a];if(l){for(var h=!1,l=l[t];l;){if(l[n]===i){h=r[l.sizset];break}if(1===l.nodeType)if(s||(l[n]=i,l.sizset=a),"string"!=typeof e){if(l===e){h=!0;break}}else if(0<d.filter(e,[l]).length){h=l;break}l=l[t]}r[a]=h}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n="sizcache"+(Math.random()+"").replace(".",""),a=0,s=Object.prototype.toString,o=!1,l=!0,h=/\\/g,p=/\r\n/g,c=/\W/;[0,0].sort(function(){return l=!1,0});var d=function(t,e,i,n){var i=i||[],a=e=e||k;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return i;var o,l,h,p,c,u=!0,m=d.isXML(e),g=[],b=t;do if(r.exec(""),(o=r.exec(b))&&(b=o[3],g.push(o[1]),o[2])){p=o[3];break}while(o);if(1<g.length&&y.exec(t))if(2===g.length&&f.relative[g[0]])l=x(g[0]+g[1],e,n);else for(l=f.relative[g[0]]?[e]:d(g.shift(),e);g.length;)t=g.shift(),f.relative[t]&&(t+=g.shift()),l=x(t,l,n);else if(!n&&1<g.le