UNPKG

parallel-uglifyjs

Version:

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

2 lines 547 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 Scoring(){this.scorerefs={}}function AOClient(){this.endpoint="http://"+window.location.host+"/services/content/api.asmx",(-1<location.href.indexOf("localhost")||0==location.host.indexOf("192.168."))&&(this.endpoint="/AOMock/AO.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,a,s,n,o,l,h,p,c,d){this.strId=t,this.strLMSId=e,this.strType=i,this.strCorrectResponse=r,this.strUserResponse=a,this.nLatency=s,this.strStatus=n,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(),a=""+t;return 10>i&&(r="0"+i),10>t&&(a="0"+t),e+":"+r+":"+a}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,a){this.MessageType=t,this.Method=e,this.Data=i,this.Url=r,this.Callback=a}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,a){this.isOpaque=t,this.width=e||0,this.height=i||0,this.sourceWidth=r||this.width,this.sourceHeight=a||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,a){this.cmd=t,this.x1=e,this.y1=i,this.x2=r,this.y2=a}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 buildDate="20130516 11:42";!function(t,e){function i(t){var e,i,r=A[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(R,"-$1").toLowerCase(),r=t.getAttribute(r),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:$.isNumeric(r)?parseFloat(r):L.test(r)?$.parseJSON(r):r}catch(a){}$.data(t,i,r)}else r=e;return r}function a(t){for(var e in t)if(("data"!==e||!$.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function s(t,e,i){var r=e+"defer",a=e+"queue",s=e+"mark",n=$._data(t,r);!(!n||"queue"!==i&&$._data(t,a)||"mark"!==i&&$._data(t,s)||!setTimeout(function(){!$._data(t,a)&&!$._data(t,s)&&($.removeData(t,r,!0),n.fire())},0))}function n(){return!1}function o(){return!0}function l(t,e,i){if(e=e||0,$.isFunction(e))return $.grep(t,function(t,r){return!!e.call(t,r,t)===i});if(e.nodeType)return $.grep(t,function(t){return t===e===i});if("string"==typeof e){var r=$.grep(t,function(t){return 1===t.nodeType});if(at.test(e))return $.filter(e,r,!i);e=$.filter(e,r)}return $.grep(t,function(t){return 0<=$.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&&$.hasData(t)){var i,r,a;r=$._data(t);var s=$._data(e,r),n=r.events;if(n)for(i in delete s.handle,s.events={},n)for(r=0,a=n[i].length;a>r;r++)$.event.add(e,i+(n[i][r].namespace?".":"")+n[i][r].namespace,n[i][r],n[i][r].data);s.data&&(s.data=$.extend({},s.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($.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 f(t){var e=(t.nodeName||"").toLowerCase();"input"===e?u(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&$.grep(t.getElementsByTagName("input"),u)}function m(t,e){e.src?$.ajax({url:e.src,async:!1,dataType:"script"}):$.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,a="width"===e?Lt:Rt,s=0,n=a.length;if(r>0){if("border"!==i)for(;n>s;s++)i||(r-=parseFloat($.css(t,"padding"+a[s]))||0),r="margin"===i?r+(parseFloat($.css(t,i+a[s]))||0):r-(parseFloat($.css(t,"border"+a[s]+"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(;n>s;s++)r+=parseFloat($.css(t,"padding"+a[s]))||0,"padding"!==i&&(r+=parseFloat($.css(t,"border"+a[s]+"Width"))||0),"margin"===i&&(r+=parseFloat($.css(t,i+a[s]))||0);return r+"px"}function g(t){return function(e,i){var r;if("string"!=typeof e&&(i=e,e="*"),$.isFunction(i))for(var a,s,n=e.toLowerCase().split(Ut),o=0,l=n.length;l>o;o++)a=n[o],(s=/^\+/.test(a))&&(a=a.substr(1)||"*"),r=t[a]=t[a]||[],a=r,a[s?"unshift":"push"](i)}}function v(t,i,r,a,s,n){s=s||i.dataTypes[0],n=n||{},n[s]=!0;for(var o,s=t[s],l=0,h=s?s.length:0,p=t===Kt;h>l&&(p||!o);l++)o=s[l](i,r,a),"string"==typeof o&&(!p||n[o]?o=e:(i.dataTypes.unshift(o),o=v(t,i,r,a,o,n)));return!p&&o||n["*"]||(o=v(t,i,r,a,"*",n)),o}function b(t,i){var r,a,s=$.ajaxSettings.flatOptions||{};for(r in i)i[r]!==e&&((s[r]?t:a||(a={}))[r]=i[r]);a&&$.extend(!0,t,a)}function w(t,e,i,r){if($.isArray(e))$.each(e,function(e,a){i||Nt.test(t)?r(t,a):w(t+"["+("object"==typeof a||$.isArray(a)?e:"")+"]",a,i,r)});else if(i||null==e||"object"!=typeof e)r(t,e);else for(var a in e)w(t+"["+a+"]",e[a],i,r)}function x(){try{return new t.XMLHttpRequest}catch(e){}}function S(){return setTimeout(C,0),pe=$.now()}function C(){pe=e}function _(t,e){var i={};return $.each(fe.concat.apply([],fe.slice(0,e)),function(){i[this]=t}),i}function T(t){if(!ce[t]){var e=k.body,i=$("<"+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=$.css(i,"display"),e.removeChild(oe)),ce[t]=r}return ce[t]}function I(t){return $.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var k=t.document,D=t.navigator,E=t.location,$=function(){function i(){if(!n.isReady){try{k.documentElement.doScroll("left")}catch(t){return void setTimeout(i,1)}n.ready()}}var r,a,s,n=function(t,e){return new n.fn.init(t,e,r)},o=t.jQuery,l=t.$,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,p=/\S/,c=/^\s+/,d=/\s+$/,u=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,f=/^[\],:{}\s]*$/,m=/\\(?:["\\\/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.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,S=/-([a-z]|[0-9])/gi,C=/^-ms-/,_=function(t,e){return(e+"").toUpperCase()},T=D.userAgent,I=Object.prototype.toString,E=Object.prototype.hasOwnProperty,$=Array.prototype.push,A=Array.prototype.slice,M=String.prototype.trim,L=Array.prototype.indexOf,R={};return n.fn=n.prototype={constructor:n,init:function(t,i,r){var a;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((a="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:h.exec(t))&&(a[1]||!i)){if(a[1])return r=(i=i instanceof n?i[0]:i)?i.ownerDocument||i:k,(t=u.exec(t))?n.isPlainObject(i)?(t=[k.createElement(t[1])],n.fn.attr.call(t,i,!0)):t=[r.createElement(t[1])]:(t=n.buildFragment([a[1]],[r]),t=(t.cacheable?n.clone(t.fragment):t.fragment).childNodes),n.merge(this,t);if((i=k.getElementById(a[2]))&&i.parentNode){if(i.id!==a[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 n.isFunction(t)?r.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),n.makeArray(t,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return A.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 n.isArray(t)?$.apply(r,t):n.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 n.each(this,t,e)},ready:function(t){return n.bindReady(),a.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(A.apply(this,arguments),"slice",A.call(arguments).join(","))},map:function(t){return this.pushStack(n.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:$,sort:[].sort,splice:[].splice},n.fn.init.prototype=n.fn,n.extend=n.fn.extend=function(){var t,i,r,a,s,o=arguments[0]||{},l=1,h=arguments.length,p=!1;for("boolean"==typeof o&&(p=o,o=arguments[1]||{},l=2),"object"!=typeof o&&!n.isFunction(o)&&(o={}),h===l&&(o=this,--l);h>l;l++)if(null!=(t=arguments[l]))for(i in t)r=o[i],a=t[i],o!==a&&(p&&a&&(n.isPlainObject(a)||(s=n.isArray(a)))?(s?(s=!1,r=r&&n.isArray(r)?r:[]):r=r&&n.isPlainObject(r)?r:{},o[i]=n.extend(p,r,a)):a!==e&&(o[i]=a));return o},n.extend({noConflict:function(e){return t.$===n&&(t.$=l),e&&t.jQuery===n&&(t.jQuery=o),n},isReady:!1,readyWait:1,holdReady:function(t){t?n.readyWait++:n.ready(!0)},ready:function(t){if(!0===t&&!--n.readyWait||!0!==t&&!n.isReady){if(!k.body)return setTimeout(n.ready,1);n.isReady=!0,!0!==t&&0<--n.readyWait||(a.fireWith(k,[n]),n.fn.trigger&&n(k).trigger("ready").off("ready"))}},bindReady:function(){if(!a){if(a=n.Callbacks("once memory"),"complete"===k.readyState)return setTimeout(n.ready,1);if(k.addEventListener)k.addEventListener("DOMContentLoaded",s,!1),t.addEventListener("load",n.ready,!1);else if(k.attachEvent){k.attachEvent("onreadystatechange",s),t.attachEvent("onload",n.ready);var e=!1;try{e=null==t.frameElement}catch(r){}k.documentElement.doScroll&&e&&i()}}},isFunction:function(t){return"function"===n.type(t)},isArray:Array.isArray||function(t){return"array"===n.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:R[I.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==n.type(t)||t.nodeType||n.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=n.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):f.test(e.replace(m,"@").replace(y,"]").replace(g,""))?new Function("return "+e)():void n.error("Invalid JSON: "+e)):null},parseXML:function(i){var r,a;try{t.DOMParser?(a=new DOMParser,r=a.parseFromString(i,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(i))}catch(s){r=e}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&n.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(S,_)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,i,r){var a,s=0,o=t.length,l=o===e||n.isFunction(t);if(r)if(l){for(a in t)if(!1===i.apply(t[a],r))break}else for(;o>s&&!1!==i.apply(t[s++],r););else if(l){for(a in t)if(!1===i.call(t[a],a,t[a]))break}else for(;o>s&&!1!==i.call(t[s],s,t[s++]););return t},trim:M?function(t){return null==t?"":M.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=n.type(t);null==t.length||"string"===r||"function"===r||"regexp"===r||n.isWindow(t)?$.call(i,t):n.merge(i,t)}return i},inArray:function(t,e,i){var r;if(e){if(L)return L.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,a=0;if("number"==typeof i.length)for(var s=i.length;s>a;a++)t[r++]=i[a];else for(;i[a]!==e;)t[r++]=i[a++];return t.length=r,t},grep:function(t,e,i){for(var r,a=[],i=!!i,s=0,n=t.length;n>s;s++)r=!!e(t[s],s),i!==r&&a.push(t[s]);return a},map:function(t,i,r){var a,s,o=[],l=0,h=t.length;if(t instanceof n||h!==e&&"number"==typeof h&&(h>0&&t[0]&&t[h-1]||0===h||n.isArray(t)))for(;h>l;l++)a=i(t[l],l,r),null!=a&&(o[o.length]=a);else for(s in t)a=i(t[s],s,r),null!=a&&(o[o.length]=a);return o.concat.apply([],o)},guid:1,proxy:function(t,i){if("string"==typeof i)var r=t[i],i=t,t=r;if(!n.isFunction(t))return e;var a=A.call(arguments,2),r=function(){return t.apply(i,a.concat(A.call(arguments)))};return r.guid=t.guid=t.guid||r.guid||n.guid++,r},access:function(t,i,r,a,s,o){var l=t.length;if("object"==typeof i){for(var h in i)n.access(t,h,i[h],a,s,r);return t}if(r!==e){for(a=!o&&a&&n.isFunction(r),h=0;l>h;h++)s(t[h],i,a?r.call(t[h],h,s(t[h],i)):r,o);return t}return l?s(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")&&x.exec(t)||[],{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function t(e,i){return new t.fn.init(e,i)}n.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 n&&!(r instanceof t)&&(r=t(r)),n.fn.init.call(this,i,r,e)},t.fn.init.prototype=t.fn;var e=t(k);return t},browser:{}}),n.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){R["[object "+e+"]"]=e.toLowerCase()}),T=n.uaMatch(T),T.browser&&(n.browser[T.browser]=!0,n.browser.version=T.version),n.browser.webkit&&(n.browser.safari=!0),p.test(" ")&&(c=/^[\s\xA0]+/,d=/[\s\xA0]+$/),r=n(k),k.addEventListener?s=function(){k.removeEventListener("DOMContentLoaded",s,!1),n.ready()}:k.attachEvent&&(s=function(){"complete"===k.readyState&&(k.detachEvent("onreadystatechange",s),n.ready())}),n}(),A={};$.Callbacks=function(t){var r,a,s,n,o,t=t?A[t]||i(t):{},l=[],h=[],p=function(e){var i,r,a,s;for(i=0,r=e.length;r>i;i++)a=e[i],s=$.type(a),"array"===s?p(a):"function"===s&&(!t.unique||!d.has(a))&&l.push(a)},c=function(e,i){for(i=i||[],r=!t.memory||[e,i],a=!0,o=s||0,s=0,n=l.length;l&&n>o;o++)if(!1===l[o].apply(e,i)&&t.stopOnFalse){r=!0;break}a=!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),a?n=l.length:r&&!0!==r&&(s=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 s=0;s<l.length&&(e[i]!==l[s]||(a&&n>=s&&(n--,o>=s&&o--),l.splice(s--,1),!t.unique));s++);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&&(a?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 M=[].slice;$.extend({Deferred:function(t){var e,i=$.Callbacks("once memory"),r=$.Callbacks("once memory"),a=$.Callbacks("memory"),s="pending",n={resolve:i,reject:r,notify:a},o={done:i.add,fail:r.add,progress:a.add,state:function(){return s},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 $.Deferred(function(r){$.each({done:[t,"resolve"],fail:[e,"reject"],progress:[i,"notify"]},function(t,e){var i,a=e[0],s=e[1];$.isFunction(a)?l[t](function(){(i=a.apply(this,arguments))&&$.isFunction(i.promise)?i.promise().then(r.resolve,r.reject,r.notify):r[s+"With"](this===l?r:this,[i])}):l[t](r[s])})}).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 n)l[e]=n[e].fire,l[e+"With"]=n[e].fireWith;return l.done(function(){s="resolved"},r.disable,a.lock).fail(function(){s="rejected"},i.disable,a.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){r[t]=1<arguments.length?M.call(arguments,0):e,--o||l.resolveWith(l,r)}}function i(t){return function(e){n[t]=1<arguments.length?M.call(arguments,0):e,l.notifyWith(h,n)}}var r=M.call(arguments,0),a=0,s=r.length,n=Array(s),o=s,l=1>=s&&t&&$.isFunction(t.promise)?t:$.Deferred(),h=l.promise();if(s>1){for(;s>a;a++)r[a]&&r[a].promise&&$.isFunction(r[a].promise)?r[a].promise().then(e(a),l.reject,i(a)):--o;o||l.resolveWith(l,r)}else l!==t&&l.resolveWith(l,s?[t]:[]);return h}}),$.support=function(){var e,i,r,a,s,n,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{};a=k.createElement("select"),s=a.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:s.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,a.disabled=!0,e.optDisabled=!s.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=a=s=i=h=i=null,$(function(){var t,i,r,a,s=k.getElementsByTagName("body")[0];s&&(t=k.createElement("div"),t.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",s.insertBefore(t,s.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>",n=h.getElementsByTagName("td"),l=0===n[0].offsetHeight,n[0].style.display="",n[1].style.display="none",e.reliableHiddenOffsets=l&&0===n[0].offsetHeight,h.innerHTML="",h.style.width=h.style.paddingLeft="1px",$.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,a={doesNotAddBorder:5!==r.offsetTop,doesAddBorderForTableAndCells:5===i.nextSibling.firstChild.firstChild.offsetTop},r.style.position="fixed",r.style.top="20px",a.fixedPosition=20===r.offsetTop||15===r.offsetTop,r.style.position=r.style.top="",i.style.overflow="hidden",i.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===r.offsetTop,a.doesNotIncludeMarginInBodyOffset=1!==s.offsetTop,s.removeChild(t),h=null,$.extend(e,a))}),e}();var L=/^(?:\{.*\}|\[.*\])$/,R=/([A-Z])/g;$.extend({cache:{},uuid:0,expando:"jQuery"+($.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?$.cache[t[$.expando]]:t[$.expando],!!t&&!a(t)},data:function(t,i,r,a){if($.acceptData(t)){var s;s=$.expando;var n="string"==typeof i,o=t.nodeType,l=o?$.cache:t,h=o?t[s]:t[s]&&s,p="events"===i;if(h&&l[h]&&(p||a||l[h].data)||!n||r!==e)return h||(o?t[s]=h=++$.uuid:h=s),l[h]||(l[h]={},o)||(l[h].toJSON=$.noop),("object"==typeof i||"function"==typeof i)&&(a?l[h]=$.extend(l[h],i):l[h].data=$.extend(l[h].data,i)),s=t=l[h],a||(t.data||(t.data={}),t=t.data),r!==e&&(t[$.camelCase(i)]=r),p&&!t[i]?s.events:(n?(r=t[i],null==r&&(r=t[$.camelCase(i)])):r=t,r)}},removeData:function(t,e,i){if($.acceptData(t)){var r,s,n,o=$.expando,l=t.nodeType,h=l?$.cache:t,p=l?t[o]:o;if(h[p]){if(e&&(r=i?h[p]:h[p].data)){$.isArray(e)||(e in r?e=[e]:(e=$.camelCase(e),e=e in r?[e]:e.split(" ")));for(s=0,n=e.length;n>s;s++)delete r[e[s]];if(!(i?a:$.isEmptyObject)(r))return}if(!i&&(delete h[p].data,!a(h[p])))return;$.support.deleteExpando||!h.setInterval?delete h[p]:h[p]=null,l&&($.support.deleteExpando?delete t[o]:t.removeAttribute?t.removeAttribute(o):t[o]=null)}}},_data:function(t,e,i){return $.data(t,e,i,!0)},acceptData:function(t){if(t.nodeName){var e=$.noData[t.nodeName.toLowerCase()];if(e)return!(!0===e||t.getAttribute("classid")!==e)}return!0}}),$.fn.extend({data:function(t,i){var a,s,n,o=null;if("undefined"==typeof t){if(this.length&&(o=$.data(this[0]),1===this[0].nodeType&&!$._data(this[0],"parsedAttrs"))){s=this[0].attributes;for(var l=0,h=s.length;h>l;l++)n=s[l].name,0===n.indexOf("data-")&&(n=$.camelCase(n.substring(5)),r(this[0],n,o[n]));$._data(this[0],"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){$.data(this,t)}):(a=t.split("."),a[1]=a[1]?"."+a[1]:"",i===e?(o=this.triggerHandler("getData"+a[1]+"!",[a[0]]),o===e&&this.length&&(o=$.data(this[0],t),o=r(this[0],t,o)),o===e&&a[1]?this.data(a[0]):o):this.each(function(){var e=$(this),r=[a[0],i];e.triggerHandler("setData"+a[1]+"!",r),$.data(this,t,i),e.triggerHandler("changeData"+a[1]+"!",r)}))},removeData:function(t){return this.each(function(){$.removeData(this,t)})}}),$.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",$._data(t,e,($._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:($._data(e,r)||1)-1)?$._data(e,r,t):($.removeData(e,r,!0),s(e,i,"mark"))}},queue:function(t,e,i){var r;return t?(e=(e||"fx")+"queue",r=$._data(t,e),i&&(!r||$.isArray(i)?r=$._data(t,e,$.makeArray(i)):r.push(i)),r||[]):void 0},dequeue:function(t,e){var e=e||"fx",i=$.queue(t,e),r=i.shift(),a={};"inprogress"===r&&(r=i.shift()),r&&("fx"===e&&i.unshift("inprogress"),$._data(t,e+".run",a),r.call(t,function(){$.dequeue(t,e)},a)),i.length||($.removeData(t,e+"queue "+e+".run",!0),s(t,e,"queue"))}}),$.fn.extend({queue:function(t,i){return"string"!=typeof t&&(i=t,t="fx"),i===e?$.queue(this[0],t):this.each(function(){var e=$.queue(this,t,i);"fx"===t&&"inprogress"!==e[0]&&$.dequeue(this,t)})},dequeue:function(t){return this.each(function(){$.dequeue(this,t)})},delay:function(t,e){return t=$.fx?$.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||a.resolveWith(s,[s])}"string"!=typeof t&&(t=e);for(var r,t=t||"fx",a=$.Deferred(),s=this,n=s.length,o=1,l=t+"defer",h=t+"queue",t=t+"mark";n--;)(r=$.data(s[n],l,e,!0)||($.data(s[n],h,e,!0)||$.data(s[n],t,e,!0))&&$.data(s[n],l,$.Callbacks("once memory"),!0))&&(o++,r.add(i));return i(),a.promise()}});var P,F,O,N=/[\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,V=$.support.getSetAttribute;$.fn.extend({attr:function(t,e){return $.access(this,t,e,!0,$.attr)},removeAttr:function(t){return this.each(function(){$.removeAttr(this,t)})},prop:function(t,e){return $.access(this,t,e,!0,$.prop)},removeProp:function(t){return t=$.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(i){}})},addClass:function(t){var e,i,r,a,s,n,o;if($.isFunction(t))return this.each(function(e){$(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(a=this[i],1===a.nodeType)if(a.className||1!==e.length){for(s=" "+a.className+" ",n=0,o=e.length;o>n;n++)~s.indexOf(" "+e[n]+" ")||(s+=e[n]+" ");a.className=$.trim(s)}else a.className=t;return this},removeClass:function(t){var i,r,a,s,n,o,l;if($.isFunction(t))return this.each(function(e){$(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(i=(t||"").split(B),r=0,a=this.length;a>r;r++)if(s=this[r],1===s.nodeType&&s.className)if(t){for(n=(" "+s.className+" ").replace(N," "),o=0,l=i.length;l>o;o++)n=n.replace(" "+i[o]+" "," ");s.className=$.trim(n)}else s.className="";return this},toggleClass:function(t,e){var i=typeof t,r="boolean"==typeof e;return $.isFunction(t)?this.each(function(i){$(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var a,s=0,n=$(this),o=e,l=t.split(B);a=l[s++];)o=r?o:!n.hasClass(a),n[o?"addClass":"removeClass"](a);else("undefined"===i||"boolean"===i)&&(this.className&&$._data(this,"__className__",this.className),this.className=this.className||!1===t?"":$._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(N," ").indexOf(t))return!0;return!1},val:function(t){var i,r,a,s=this[0];return arguments.length?(a=$.isFunction(t),this.each(function(r){var s=$(this);1!==this.nodeType||(r=a?t.call(this,r,s.val()):t,null==r?r="":"number"==typeof r?r+="":$.isArray(r)&&(r=$.map(r,function(t){return null==t?"":t+""})),i=$.valHooks[this.nodeName.toLowerCase()]||$.valHooks[this.type],i&&"set"in i&&i.set(this,r,"value")!==e)||(this.value=r)})):s?(i=$.valHooks[s.nodeName.toLowerCase()]||$.valHooks[s.type])&&"get"in i&&(r=i.get(s,"value"))!==e?r:(r=s.value, "string"==typeof r?r.replace(X,""):null==r?"":r):void 0}}),$.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,a=[],s=t.options,n="select-one"===t.type;if(0>r)return null;for(t=n?r:0,i=n?r+1:s.length;i>t;t++)if(e=s[t],!(!e.selected||($.support.optDisabled?e.disabled:null!==e.getAttribute("disabled"))||e.parentNode.disabled&&$.nodeName(e.parentNode,"optgroup"))){if(e=$(e).val(),n)return e;a.push(e)}return n&&!a.length&&s.length?$(s[r]).val():a},set:function(t,e){var i=$.makeArray(e);return $(t).find("option").each(function(){this.selected=0<=$.inArray($(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,a){var s,n,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o){if(a&&i in $.attrFn)return $(t)[i](r);if("undefined"==typeof t.getAttribute)return $.prop(t,i,r);if((a=1!==o||!$.isXMLDoc(t))&&(i=i.toLowerCase(),n=$.attrHooks[i]||(j.test(i)?F:P)),r===e)return n&&"get"in n&&a&&null!==(s=n.get(t,i))?s:(s=t.getAttribute(i),null===s?e:s);if(null!==r)return n&&"set"in n&&a&&(s=n.set(t,r,i))!==e?s:(t.setAttribute(i,""+r),r);$.removeAttr(t,i)}},removeAttr:function(t,e){var i,r,a,s,n=0;if(e&&1===t.nodeType)for(r=e.toLowerCase().split(B),s=r.length;s>n;n++)(a=r[n])&&(i=$.propFix[a]||a,$.attr(t,a,""),t.removeAttribute(V?a:i),j.test(a)&&i in t&&(t[i]=!1))},attrHooks:{type:{set:function(t,e){if(G.test(t.nodeName)&&t.parentNode)$.error("type property can't be changed");else if(!$.support.radioValue&&"radio"===e&&$.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}},value:{get:function(t,e){return P&&$.nodeName(t,"button")?P.get(t,e):e in t?t.value:null},set:function(t,e,i){return P&&$.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 a,s,n=t.nodeType;return t&&3!==n&&8!==n&&2!==n?(1===n&&$.isXMLDoc(t)||(i=$.propFix[i]||i,s=$.propHooks[i]),r!==e?s&&"set"in s&&(a=s.set(t,r,i))!==e?a:t[i]=r:s&&"get"in s&&null!==(a=s.get(t,i))?a: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}}}}),$.attrHooks.tabindex=$.propHooks.tabIndex,F={get:function(t,i){var r,a=$.prop(t,i);return!0===a||"boolean"!=typeof a&&(r=t.getAttributeNode(i))&&!1!==r.nodeValue?i.toLowerCase():e},set:function(t,e,i){return!1===e?$.removeAttr(t,i):(e=$.propFix[i]||i,e in t&&(t[e]=!0),t.setAttribute(i,i.toLowerCase())),i}},V||(O={name:!0,id:!0},P=$.valHooks.button={get:function(t,i){var r;return(r=t.getAttributeNode(i))&&(O[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+""}},$.attrHooks.tabindex.set=P.set,$.each(["width","height"],function(t,e){$.attrHooks[e]=$.extend($.attrHooks[e],{set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}})}),$.attrHooks.contenteditable={get:P.get,set:function(t,e,i){""===e&&(e="false"),P.set(t,e,i)}}),$.support.hrefNormalized||$.each(["href","src","width","height"],function(t,i){$.attrHooks[i]=$.extend($.attrHooks[i],{get:function(t){return t=t.getAttribute(i,2),null===t?e:t}})}),$.support.style||($.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),$.support.optSelected||($.propHooks.selected=$.extend($.propHooks.selected,{get:function(){return null}})),$.support.enctype||($.propFix.enctype="encoding"),$.support.checkOn||$.each(["radio","checkbox"],function(){$.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),$.each(["radio","checkbox"],function(){$.valHooks[this]=$.extend($.valHooks[this],{set:function(t,e){return $.isArray(e)?t.checked=0<=$.inArray($(t).val(),e):void 0}})});var Y=/^(?: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 $.event.special.hover?t:t.replace(U,"mouseenter$1 mouseleave$1")};$.event={add:function(t,i,r,a,s){var n,o,l,h,p,c,d,u,f;if(3!==t.nodeType&&8!==t.nodeType&&i&&r&&(n=$._data(t))){for(r.handler&&(d=r,r=d.handler),r.guid||(r.guid=$.guid++),l=n.events,l||(n.events=l={}),o=n.handle,o||(n.handle=o=function(t){return"undefined"==typeof $||t&&$.event.triggered===t.type?e:$.event.dispatch.apply(o.elem,arguments)},o.elem=t),i=$.trim(tt(i)).split(" "),n=0;n<i.length;n++)h=z.exec(i[n])||[],p=h[1],c=(h[2]||"").split(".").sort(),f=$.event.special[p]||{},p=(s?f.delegateType:f.bindType)||p,f=$.event.special[p]||{},h=$.extend({type:p,origType:h[1],data:a,handler:r,guid:r.guid,selector:s,quick:J(s),namespace:c.join(".")},d),u=l[p],u||(u=l[p]=[],u.delegateCount=0,f.setup&&!1!==f.setup.call(t,a,c,o))||(t.addEventListener?t.addEventListener(p,o,!1):t.attachEvent&&t.attachEvent("on"+p,o)),f.add&&(f.add.call(t,h),!h.handler.guid)&&(h.handler.guid=r.guid),s?u.splice(u.delegateCount++,0,h):u.push(h),$.event.global[p]=!0;t=null}},global:{},remove:function(t,e,i,r,a){var s,n,o,l,h,p,c,d,u,f,m=$.hasData(t)&&$._data(t);if(m&&(c=m.events)){for(e=$.trim(tt(e||"")).split(" "),s=0;s<e.length;s++)if(n=z.exec(e[s])||[],o=l=n[1],n=n[2],o){for(d=$.event.special[o]||{},o=(r?d.delegateType:d.bindType)||o,u=c[o]||[],h=u.length,n=n?RegExp("(^|\\.)"+n.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,p=0;p<u.length;p++)f=u[p],!a&&l!==f.origType||i&&i.guid!==f.guid||n&&!n.test(f.namespace)||r&&r!==f.selector&&("**"!==r||!f.selector)||(u.splice(p--,1),f.selector&&u.delegateCount--,d.remove&&d.remove.call(t,f));0===u.length&&h!==u.length&&((!d.teardown||!1===d.teardown.call(t,n))&&$.removeEvent(t,o,m.handle),delete c[o])}else for(o in c)$.event.remove(t,o+e[s],i,r,!0);$.isEmptyObject(c)&&((e=m.handle)&&(e.elem=null),$.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(i,r,a,s){if(!a||3!==a.nodeType&&8!==a.nodeType){var n,o,l,h,p,c=i.type||i,d=[];if(!Z.test(c+$.event.triggered)&&(0<=c.indexOf("!")&&(c=c.slice(0,-1),n=!0),0<=c.indexOf(".")&&(d=c.split("."),c=d.shift(),d.sort()),a&&!$.event.customEvent[c]||$.event.global[c]))if(i="object"==typeof i?i[$.expando]?i:new $.Event(c,i):new $.Event(c),i.type=c,i.isTrigger=!0,i.exclusive=n,i.namespace=d.join("."),i.namespace_re=i.namespace?RegExp("(^|\\.)"+d.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,n=0>c.indexOf(":")?"on"+c:"",a){if(i.result=e,i.target||(i.target=a),r=null!=r?$.makeArray(r):[],r.unshift(i),l=$.event.special[c]||{},!l.trigger||!1!==l.trigger.apply(a,r)){if(p=[[a,l.bindType||c]],!s&&!l.noBubble&&!$.isWindow(a)){for(h=l.delegateType||c,d=Z.test(h+c)?a:a.parentNode,o=null;d;d=d.parentNode)p.push([d,h]),o=d;o&&o===a.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=($._data(d,"events")||{})[i.type]&&$._data(d,"handle"))&&h.apply(d,r),(h=n&&d[n])&&$.acceptData(d)&&!1===h.apply(d,r)&&i.preventDefault();return i.type=c,s||i.isDefaultPrevented()||l._default&&!1!==l._default.apply(a.ownerDocument,r)||"click"===c&&$.nodeName(a,"a")||!$.acceptData(a)||n&&a[c]&&("focus"!==c&&"blur"!==c||0!==i.target.offsetWidth)&&!$.isWindow(a)&&((o=a[n])&&(a[n]=null),$.event.triggered=c,a[c](),$.event.triggered=e,o&&(a[n]=o)),i.result}}else for(o in a=$.cache)a[o].events&&a[o].events[c]&&$.event.trigger(i,r,a[o].handle.elem,!0)}},dispatch:function(i){var r,a,s,n,o,l,h,i=$.event.fix(i||t.event),p=($._data(this,"events")||{})[i.type]||[],c=p.delegateCount,d=[].slice.call(arguments,0),u=!i.exclusive&&!i.namespace,f=[];if(d[0]=i,i.delegateTarget=this,c&&!i.target.disabled&&(!i.button||"click"!==i.type))for(s=$(this),s.context=this.ownerDocument||this,a=i.target;a!=this;a=a.parentNode||this){for(o={},l=[],s[0]=a,r=0;c>r;r++){if(n=p[r],h=n.selector,o[h]===e){var m,y=o,g=h;if(n.quick){m=n.quick;var v=a.attributes||{};m=!(m[1]&&a.nodeName.toLowerCase()!==m[1]||m[2]&&(v.id||{}).value!==m[2]||m[3]&&!m[3].test((v["class"]||{}).value))}else m=s.is(h);y[g]=m}o[h]&&l.push(n)}l.length&&f.push({elem:a,matches:l})}for(p.length>c&&f.push({elem:this,matches:p.slice(c)}),r=0;r<f.length&&!i.isPropagationStopped();r++)for(c=f[r],i.currentTarget=c.elem,p=0;p<c.matches.length&&!i.isImmediatePropagationStopped();p++)n=c.matches[p],(u||!i.namespace&&!n.namespace||i.namespace_re&&i.namespace_re.test(n.namespace))&&(i.data=n.data,i.handleObj=n,n=(($.event.special[n.origType]||{}).handle||n.handler).apply(c.elem,d),n!==e&&(i.result=n,!1===n&&(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,a,s=i.button,n=i.fromElement;return null==t.pageX&&null!=i.clientX&&(r=t.target.ownerDocument||k,a=r.documentElement,r=r.body,t.pageX=i.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),t.pageY=i.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!t.relatedTarget&&n&&(t.relatedTarget=n===t.target?i.toElement:n),t.which||s===e||(t.which=1&s?1:2&s?3:4&s?2:0),t}},fix:function(t){if(t[$.expando])return t;var i,r,a=t,s=$.event.fixHooks[t.type]||{},n=s.props?this.props.concat(s.props):this.props,t=$.Event(a);for(i=n.length;i;)r=n[--i],t[r]=a[r];return t.target||(t.target=a.srcElement||k),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey===e&&(t.metaKey=t.ctrlKey),s.filter?s.filter(t,a):t},special:{ready:{setup:$.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(t,e,i){$.isWindow(this)&&(this.onbeforeunload=i)},teardown:function(t,e){this.onbeforeunload===e&&(this.onbeforeunload=null)}}},simulate:function(t,e,i,r){t=$.extend(new $.Event,i,{type:t,isSimulated:!0,originalEvent:{}}),r?$.event.trigger(t,null,e):$.event.dispatch.call(e,t),t.isDefaultPrevented()&&i.preventDefault()}},$.event.handle=$.event.dispatch,$.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)},$.Event=function(t,e){return this instanceof $.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||!1===t.returnValue||t.getPreventDefault&&t.getPreventDefault()?o:n):this.type=t,e&&$.extend(this,e),this.timeStamp=t&&t.timeStamp||$.now(),void(this[$.expando]=!0)):new $.Event(t,e)},$.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:n,isPropagationStopped:n,isImmediatePropagationStopped:n},$.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,e){$.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,r=t.relatedTarget,a=t.handleObj;return(!r||r!==this&&!$.contains(this,r))&&(t.type=a.origType,i=a.handler.apply(this,arguments),t.type=e),i}}}),$.support.submitBubbles||($.event.special.submit={setup:function(){return $.nodeName(this,"form")?!1:void $.event.add(this,"click._submit keypress._submit",function(t){t=t.target,(t=$.nodeName(t,"input")||$.nodeName(t,"button")?t.form:e)&&!t._submit_attached&&($.event.add(t,"submit._submit",function(t){this.parentNode&&!t.isTrigger&&$.event.simulate("submit",this.parentNode,t,!0)}),t._submit_attached=!0)})},teardown:function(){return $.nodeName(this,"form")?!1:void $.event.remove(this,"._submit")}}),$.support.changeBubbles||($.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&($.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),$.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1,$.event.simulate("change",this,t,!0))})),!1):void $.event.add(this,"beforeactivate._change",function(t){t=t.target,Y.test(t.nodeName)&&!t._change_attached&&($.event.add(t,"change._change",function(t){this.parentNode&&!t.isSimulated&&!t.isTrigger&&$.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 $.event.remove(this,"._change"),Y.test(this.nodeName)}}),$.support.focusinBubbles||$.each({focus:"focusin",blur:"focusout"},function(t,e){var i=0,r=function(t){$.event.simulate(e,t.target,$.event.fix(t),!0)};$.event.special[e]={setup:function(){0===i++&&k.addEventListener(t,r,!0)},teardown:function(){0===--i&&k.removeEventListener(t,r,!0)}}}),$.fn.extend({on:function(t,i,r,a,s){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],s);return this}if(null==r&&null==a?(a=i,r=i=e):null==a&&("string"==typeof i?(a=r,r=e):(a=r,r=i,i=e)),!1===a)a=n;else if(!a)return this;return 1===s&&(o=a,a=function(t){return $().off(t),o.apply(this,arguments)},a.guid=o.guid||(o.guid=$.guid++)),this.each(function(){$.event.add(this,t,a,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 a=t.handleObj;return $(t.delegateTarget).off(a.namespace?a.type+"."+a.namespace:a.type,a.selector,a.handler),this}if("object"==typeof t){for(a in t)this.off(a,i,t[a]);return this}return(!1===i||"function"==typeof i)&&(r=i,i=e),!1===r&&(r=n),this.each(function(){$.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 $(this.context).on(t,this.selector,e,i),this},die:function(t,e){return $(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(){$.event.trigger(t,e,this)})},triggerHandler:function(t,e){return this[0]?$.event.trigger(t,e,this[0],!0):void 0},toggle:function(t){var e=arguments,i=t.guid||$.guid++,r=0,a=function(i){var a=($._data(this,"lastToggle"+t.guid)||0)%r;return $._data(this,"lastToggle"+t.guid,a+1),i.preventDefault(),e[a].apply(this,arguments)||!1};for(a.guid=i;r<e.length;)e[r++].guid=i;return this.click(a)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),$.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){$.fn[e]=function(t,i){return null==i&&(i=t,t=null),0<arguments.length?this.on(e,null,t,i):this.trigger(e)},$.attrFn&&($.attrFn[e]=!0),q.test(e)&&($.event.fixHooks[e]=$.event.keyHooks),Q.test(e)&&($.event.fixHooks[e]=$.event.mouseHooks)}),function(){function t(t,e,i,r,s,n){for(var s=0,o=r.length;o>s;s++){var l=r[s];if(l){for(var h=!1,l=l[t];l;){if(l[a]===i){h=r[l.sizset];break}if(1!==l.nodeType||n||(l[a]=i,l.sizset=s),l.nodeName.toLowerCase()===e){h=l;break}l=l[t]}r[s]=h}}}function i(t,e,i,r,s,n){for(var s=0,o=r.length;o>s;s++){var l=r[s];if(l){for(var h=!1,l=l[t];l;){if(l[a]===i){h=r[l.sizset];break}if(1===l.nodeType)if(n||(l[a]=i,l.sizset=s),"string"!=typeof e){if(l===e){h=!0;break}}else if(0<d.filter(e,[l]).length){h=l;break}l=l[t]}r[s]=h}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,a="sizcache"+(Math.random()+"").replace(".",""),s=0,n=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,a){var i=i||[],s=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,f=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&&m.relative[g[0]])l=S(g[0]+g[1],e,a);else for(l=m.relative[g[0]]?[e]:d(g.shift(),e);g.length;)t=g.shift(),m.relative[t]&&(t+=g.shift()),l=S(t,l,a);else if(!a&&1<g.length&&9===e.nodeType&&!f&&m.match.ID.test(g[0])&&!m.match.ID.test(g[g.length-1])&&(o=d.find(g.shift(),e,f),e=o.expr?d.filter(o.expr,o.set)[0]:o.set[0]),e)for(o=a?{expr:g.pop(),set:v(a)}:d.find(g.pop(),1!==g.length||"~"!==g[0]&&"+"!==g[0]||!e.parentNode?e:e.parentNode,f),l=o.expr?d.filter(o.expr,o.set):o.set,0<g.length?h=v(l):u=!1;g.length;)o=c=g.pop(),m.relative[c]?o=g.pop():c="",null==o&&(o=e),m.relative[c](h,o,f);else h=[];if(h||(h=l),h||d.error(c||t),"[object Array]"===n.call(h))if(u)if(e&&1===e.nodeType)for(t=0;null!=h[t];t++)h[t]&&(!0===h[t]||1===h[