!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).PullToRefresh=t()}(this,function(){"use strict";var e={pullStartY:null,pullMoveY:null,handlers:[],styleEl:null,events:null,dist:0,state:"pending",timeout:null,distResisted:0,supportsPassive:!1,supportsPointerEvents:"undefined"!=typeof window&&!!window.PointerEvent};try{window.addEventListener("test",null,{get passive(){e.supportsPassive=!0}})}catch(e){}var t,i={setupDOM:function(t){if(!t.ptrElement){var i=document.createElement("div");t.mainElement!==document.body?t.mainElement.parentNode.insertBefore(i,t.mainElement):document.body.insertBefore(i,document.body.firstChild),i.classList.add(t.classPrefix+"ptr"),i.innerHTML=t.getMarkup().replace(/__PREFIX__/g,t.classPrefix),t.ptrElement=i,"function"==typeof t.onInit&&t.onInit(t),e.styleEl||(e.styleEl=document.createElement("style"),e.styleEl.setAttribute("id","pull-to-refresh-js-style"),document.head.appendChild(e.styleEl)),e.styleEl.textContent=t.getStyles().replace(/__PREFIX__/g,t.classPrefix).replace(/\s+/g," ")}return t},onReset:function(t){t.ptrElement&&(t.ptrElement.classList.remove(t.classPrefix+"refresh"),t.ptrElement.style[t.cssProp]="0px",setTimeout(function(){t.ptrElement&&t.ptrElement.parentNode&&(t.ptrElement.parentNode.removeChild(t.ptrElement),t.ptrElement=null),e.state="pending"},t.refreshTimeout))},update:function(t){var i=t.ptrElement.querySelector("."+t.classPrefix+"icon"),n=t.ptrElement.querySelector("."+t.classPrefix+"text");i&&("refreshing"===e.state?i.innerHTML=t.iconRefreshing:i.innerHTML=t.iconArrow),n&&("releasing"===e.state&&(n.innerHTML=t.instructionsReleaseToRefresh),"pulling"!==e.state&&"pending"!==e.state||(n.innerHTML=t.instructionsPullToRefresh),"refreshing"===e.state&&(n.innerHTML=t.instructionsRefreshing))}},n=function(t){return e.pointerEventsEnabled&&e.supportsPointerEvents?t.screenY:t.touches[0].screenY},s=function(){var s;function a(t){var a=e.handlers.filter(function(e){return e.contains(t.target)})[0];e.enable=!!a,a&&"pending"===e.state&&(s=i.setupDOM(a),a.shouldPullToRefresh()&&(e.pullStartY=n(t)),clearTimeout(e.timeout),i.update(a))}function r(t){s&&s.ptrElement&&e.enable&&(e.pullStartY?e.pullMoveY=n(t):s.shouldPullToRefresh()&&(e.pullStartY=n(t)),"refreshing"!==e.state?("pending"===e.state&&(s.ptrElement.classList.add(s.classPrefix+"pull"),e.state="pulling",i.update(s)),e.pullStartY&&e.pullMoveY&&(e.dist=e.pullMoveY-e.pullStartY),e.distExtra=e.dist-s.distIgnore,e.distExtra>0&&(t.cancelable&&t.preventDefault(),s.ptrElement.style[s.cssProp]=e.distResisted+"px",e.distResisted=s.resistanceFunction(e.distExtra/s.distThreshold)*Math.min(s.distMax,e.distExtra),"pulling"===e.state&&e.distResisted>s.distThreshold&&(s.ptrElement.classList.add(s.classPrefix+"release"),e.state="releasing",i.update(s)),"releasing"===e.state&&e.distResisteds.distThreshold)e.state="refreshing",s.ptrElement.style[s.cssProp]=s.distReload+"px",s.ptrElement.classList.add(s.classPrefix+"refresh"),e.timeout=setTimeout(function(){var e=s.onRefresh(function(){return i.onReset(s)});e&&"function"==typeof e.then&&e.then(function(){return i.onReset(s)}),e||s.onRefresh.length||i.onReset(s)},s.refreshTimeout);else{if("refreshing"===e.state)return;s.ptrElement.style[s.cssProp]="0px",e.state="pending"}i.update(s),s.ptrElement.classList.remove(s.classPrefix+"release"),s.ptrElement.classList.remove(s.classPrefix+"pull"),e.pullStartY=e.pullMoveY=null,e.dist=e.distResisted=0}}function c(){s&&s.mainElement.classList.toggle(s.classPrefix+"top",s.shouldPullToRefresh())}var l=e.supportsPassive?{passive:e.passive||!1}:void 0;return e.pointerEventsEnabled&&e.supportsPointerEvents?(window.addEventListener("pointerup",o),window.addEventListener("pointerdown",a),window.addEventListener("pointermove",r,l)):(window.addEventListener("touchend",o),window.addEventListener("touchstart",a),window.addEventListener("touchmove",r,l)),window.addEventListener("scroll",c),{onTouchEnd:o,onTouchStart:a,onTouchMove:r,onScroll:c,destroy:function(){e.pointerEventsEnabled&&e.supportsPointerEvents?(window.removeEventListener("pointerdown",a),window.removeEventListener("pointerup",o),window.removeEventListener("pointermove",r,l)):(window.removeEventListener("touchstart",a),window.removeEventListener("touchend",o),window.removeEventListener("touchmove",r,l)),window.removeEventListener("scroll",c)}}},a={distThreshold:60,distMax:80,distReload:50,distIgnore:0,mainElement:"body",triggerElement:"body",ptrElement:".ptr",classPrefix:"ptr--",cssProp:"min-height",iconArrow:"⇣",iconRefreshing:"…",instructionsPullToRefresh:"Pull down to refresh",instructionsReleaseToRefresh:"Release to refresh",instructionsRefreshing:"Refreshing",refreshTimeout:500,getMarkup:function(){return'\n
\n
\n
\n
\n
\n
\n'},getStyles:function(){return"\n.__PREFIX__ptr {\n box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.12);\n pointer-events: none;\n font-size: 0.85em;\n font-weight: bold;\n top: 0;\n height: 0;\n transition: height 0.3s, min-height 0.3s;\n text-align: center;\n width: 100%;\n overflow: hidden;\n display: flex;\n align-items: flex-end;\n align-content: stretch;\n}\n\n.__PREFIX__box {\n padding: 10px;\n flex-basis: 100%;\n}\n\n.__PREFIX__pull {\n transition: none;\n}\n\n.__PREFIX__text {\n margin-top: .33em;\n color: rgba(0, 0, 0, 0.3);\n}\n\n.__PREFIX__icon {\n color: rgba(0, 0, 0, 0.3);\n transition: transform .3s;\n}\n\n/*\nWhen at the top of the page, disable vertical overscroll so passive touch\nlisteners can take over.\n*/\n.__PREFIX__top {\n touch-action: pan-x pan-down pinch-zoom;\n}\n\n.__PREFIX__release .__PREFIX__icon {\n transform: rotate(180deg);\n}\n"},onInit:function(){},onRefresh:function(){return location.reload()},resistanceFunction:function(e){return Math.min(1,e/2.5)},shouldPullToRefresh:function(){return!window.scrollY}},r=["mainElement","ptrElement","triggerElement"],o=function(t){var i={};return Object.keys(a).forEach(function(e){i[e]=t[e]||a[e]}),i.refreshTimeout="number"==typeof t.refreshTimeout?t.refreshTimeout:a.refreshTimeout,r.forEach(function(e){"string"==typeof i[e]&&(i[e]=document.querySelector(i[e]))}),e.events||(e.events=s()),i.contains=function(e){return i.triggerElement.contains(e)},i.destroy=function(){clearTimeout(e.timeout);var t=e.handlers.indexOf(i);e.handlers.splice(t,1)},i};return{setPassiveMode:function(t){e.passive=t},setPointerEventsMode:function(t){e.pointerEventsEnabled=t},destroyAll:function(){e.events&&(e.events.destroy(),e.events=null),e.handlers.forEach(function(e){e.destroy()})},init:function(t){void 0===t&&(t={});var i=o(t);return e.handlers.push(i),i},_:{setupHandler:o,setupEvents:s,setupDOM:i.setupDOM,onReset:i.onReset,update:i.update}}}),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var i=[],n=Object.getPrototypeOf,s=i.slice,a=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},r=i.push,o=i.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,h=d.call(Object),f={},p=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,i){var n,s,a=(i=i||g).createElement("script");if(a.text=e,t)for(n in _)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&a.setAttribute(n,s);i.head.appendChild(a).parentNode.removeChild(a)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[l.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,i=v(e);return!p(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.6.4",constructor:b,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(b.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+j+")"+j+"*"),F=new RegExp(j+"|>"),V=new RegExp(R),$=new RegExp("^"+H+"$"),G={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){h()},re=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(L=Y.call(A.childNodes),A.childNodes),L[A.childNodes.length].nodeType}catch(e){P={apply:L.length?function(e,t){O.apply(e,Y.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,s){var a,o,l,u,d,p,_,y=t&&t.ownerDocument,A=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return n;if(!s&&(h(t),t=t||f,m)){if(11!==A&&(d=Q.exec(e)))if(a=d[1]){if(9===A){if(!(l=t.getElementById(a)))return n;if(l.id===a)return n.push(l),n}else if(y&&(l=y.getElementById(a))&&v(t,l)&&l.id===a)return n.push(l),n}else{if(d[2])return P.apply(n,t.getElementsByTagName(e)),n;if((a=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(a)),n}if(i.qsa&&!T[e+" "]&&(!g||!g.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(_=e,y=t,1===A&&(F.test(e)||U.test(e))){for((y=ee.test(e)&&_e(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(ne,se):t.setAttribute("id",u=b)),o=(p=r(e)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+ve(p[o]);_=p.join(",")}try{return P.apply(n,y.querySelectorAll(_)),n}catch(t){T(e,!0)}finally{u===b&&t.removeAttribute("id")}}}return c(e.replace(q,"$1"),t,n,s)}function ce(){var e=[];return function t(i,s){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=s}}function le(e){return e[b]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le(function(t){return t=+t,le(function(i,n){for(var s,a=e([],i.length,t),r=a.length;r--;)i[s=a[r]]&&(i[s]=!(n[s]=i[s]))})})}function _e(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},a=oe.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!K.test(t||i&&i.nodeName||"HTML")},h=oe.setDocument=function(e){var t,s,r=e?e.ownerDocument||e:A;return r!=f&&9===r.nodeType&&r.documentElement?(p=(f=r).documentElement,m=!a(f),A!=f&&(s=f.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ae,!1):s.attachEvent&&s.attachEvent("onunload",ae)),i.scope=ue(function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),i.cssHas=ue(function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),i.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=ue(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Z.test(f.getElementsByClassName),i.getById=ue(function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,n,s,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(s=t.getElementsByName(e),n=0;a=s[n++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},_=[],g=[],(i.qsa=Z.test(f.querySelectorAll))&&(ue(function(e){var t;p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ue(function(e){e.innerHTML="";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=Z.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue(function(e){i.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),_.push("!=",R)}),i.cssHas||g.push(":has"),g=g.length&&new RegExp(g.join("|")),_=_.length&&new RegExp(_.join("|")),t=Z.test(p.compareDocumentPosition),v=t||Z.test(p.contains)?function(e,t){var i=9===e.nodeType&&e.documentElement||e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==f||e.ownerDocument==A&&v(A,e)?-1:t==f||t.ownerDocument==A&&v(A,t)?1:u?N(u,e)-N(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,s=e.parentNode,a=t.parentNode,r=[e],o=[t];if(!s||!a)return e==f?-1:t==f?1:s?-1:a?1:u?N(u,e)-N(u,t):0;if(s===a)return he(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;r[n]===o[n];)n++;return n?he(r[n],o[n]):r[n]==A?-1:o[n]==A?1:0},f):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(h(e),i.matchesSelector&&m&&!T[t+" "]&&(!_||!_.test(t))&&(!g||!g.test(t)))try{var n=y.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=f&&h(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=f&&h(e);var s=n.attrHandle[t.toLowerCase()],a=s&&x.call(n.attrHandle,t.toLowerCase())?s(e,t,!m):void 0;return void 0!==a?a:i.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},oe.escape=function(e){return(e+"").replace(ne,se)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],s=0,a=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(D),d){for(;t=e[a++];)t===e[a]&&(s=n.push(a));for(;s--;)e.splice(n[s],1)}return u=null,e},s=oe.getText=function(e){var t,i="",n=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(n=oe.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&V.test(i)&&(t=r(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&k(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var s=oe.attr(n,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&s.indexOf(i)>-1:"$="===t?i&&s.slice(-i.length)===i:"~="===t?(" "+s.replace(W," ")+" ").indexOf(i)>-1:"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,c){var l,u,d,h,f,p,m=a!==r?"nextSibling":"previousSibling",g=t.parentNode,_=o&&t.nodeName.toLowerCase(),y=!c&&!o,v=!1;if(g){if(a){for(;m;){for(h=t;h=h[m];)if(o?h.nodeName.toLowerCase()===_:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?g.firstChild:g.lastChild],r&&y){for(v=(f=(l=(u=(d=(h=g)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(v=f=0)||p.pop();)if(1===h.nodeType&&++v&&h===t){u[e]=[w,f,v];break}}else if(y&&(v=f=(l=(u=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===v)for(;(h=++f&&h&&h[m]||(v=f=0)||p.pop())&&((o?h.nodeName.toLowerCase()!==_:1!==h.nodeType)||!++v||(y&&((u=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[w,v]),h!==t)););return(v-=s)===n||v%n==0&&v/n>=0}}},PSEUDO:function(e,t){var i,s=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return s[b]?s(t):s.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,i){for(var n,a=s(e,t),r=a.length;r--;)e[n=N(e,a[r])]=!(i[n]=a[r])}):function(e){return s(e,0,i)}):s}},pseudos:{not:le(function(e){var t=[],i=[],n=o(e.replace(q,"$1"));return n[b]?le(function(e,t,i,s){for(var a,r=n(e,null,s,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))}):function(e,s,a){return t[0]=e,n(t,null,a,i),t[0]=null,!i.pop()}}),has:le(function(e){return function(t){return oe(e,t).length>0}}),contains:le(function(e){return e=e.replace(te,ie),function(t){return(t.textContent||s(t)).indexOf(e)>-1}}),lang:le(function(e){return $.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,i){return[i<0?i+t:i]}),even:ge(function(e,t){for(var i=0;it?t:i;--n>=0;)e.push(n);return e}),gt:ge(function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function we(e,t,i,n,s){for(var a,r=[],o=0,c=e.length,l=null!=t;o-1&&(a[l]=!(r[l]=d))}}else _=we(_===r?_.splice(p,_.length):_),s?s(null,r,_,c):P.apply(r,_)})}function ke(e){for(var t,i,s,a=e.length,r=n.relative[e[0].type],o=r||n.relative[" "],c=r?1:0,u=be(function(e){return e===t},o,!0),d=be(function(e){return N(t,e)>-1},o,!0),h=[function(e,i,n){var s=!r&&(n||i!==l)||((t=i).nodeType?u(e,i,n):d(e,i,n));return t=null,s}];c1&&Ae(h),c>1&&ve(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(q,"$1"),i,c0,s=e.length>0,a=function(a,r,o,c,u){var d,p,g,_=0,y="0",v=a&&[],b=[],A=l,M=a||s&&n.find.TAG("*",u),k=w+=null==A?1:Math.random()||.1,S=M.length;for(u&&(l=r==f||r||u);y!==S&&null!=(d=M[y]);y++){if(s&&d){for(p=0,r||d.ownerDocument==f||(h(d),o=!m);g=e[p++];)if(g(d,r||f,o)){c.push(d);break}u&&(w=k)}i&&((d=!g&&d)&&_--,a&&v.push(d))}if(_+=y,i&&y!==_){for(p=0;g=t[p++];)g(v,b,r,o);if(a){if(_>0)for(;y--;)v[y]||b[y]||(b[y]=C.call(c));b=we(b)}P.apply(c,b),u&&!a&&b.length>0&&_+t.length>1&&oe.uniqueSort(c)}return u&&(w=k,l=A),v};return i?le(a):a}(a,s))).selector=e}return o},c=oe.select=function(e,t,i,s){var a,c,l,u,d,h="function"==typeof e&&e,f=!s&&r(e=h.selector||e);if(i=i||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&n.relative[c[1].type]){if(!(t=(n.find.ID(l.matches[0].replace(te,ie),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(a=G.needsContext.test(e)?0:c.length;a--&&(l=c[a],!n.relative[u=l.type]);)if((d=n.find[u])&&(s=d(l.matches[0].replace(te,ie),ee.test(c[0].type)&&_e(t.parentNode)||t))){if(c.splice(a,1),!(e=s.length&&ve(c)))return P.apply(i,s),i;break}}return(h||o(e,f))(s,t,!m,i,!t||ee.test(e)&&_e(t.parentNode)||t),i},i.sortStable=b.split("").sort(D).join("")===b,i.detectDuplicates=!!d,h(),i.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),ue(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&ue(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(z,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),oe}(e);b.find=w,b.expr=w.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=w.uniqueSort,b.text=w.getText,b.isXMLDoc=w.isXML,b.contains=w.contains,b.escapeSelector=w.escape;var M=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&b(e).is(i))break;n.push(e)}return n},k=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},S=b.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,i){return p(t)?b.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?b.grep(e,function(e){return e===t!==i}):"string"!=typeof t?b.grep(e,function(e){return o.call(t,e)>-1!==i}):b.filter(t,e,i)}b.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?b.find.matchesSelector(n,e)?[n]:[]:b.find.matches(e,b.grep(t,function(e){return 1===e.nodeType}))},b.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(b(e).filter(function(){for(t=0;t1?b.uniqueSort(i):i},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var x,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||x,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),T.test(n[1])&&b.isPlainObject(t))for(n in t)p(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=g.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):p(e)?void 0!==i.ready?i.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,x=b(g);var C=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&b.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(a.length>1?b.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?o.call(b(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return M(e,"parentNode")},parentsUntil:function(e,t,i){return M(e,"parentNode",i)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return M(e,"nextSibling")},prevAll:function(e){return M(e,"previousSibling")},nextUntil:function(e,t,i){return M(e,"nextSibling",i)},prevUntil:function(e,t,i){return M(e,"previousSibling",i)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},function(e,t){b.fn[e]=function(i,n){var s=b.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=b.filter(n,s)),this.length>1&&(O[e]||b.uniqueSort(s),C.test(e)&&s.reverse()),this.pushStack(s)}});var Y=/[^\x20\t\r\n\f]+/g;function N(e){return e}function z(e){throw e}function j(e,t,i,n){var s;try{e&&p(s=e.promise)?s.call(e).done(t).fail(i):e&&p(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(Y)||[],function(e,i){t[i]=!0}),t}(e):b.extend({},e);var t,i,n,s,a=[],r=[],o=-1,c=function(){for(s=s||e.once,n=t=!0;r.length;o=-1)for(i=r.shift();++o-1;)a.splice(i,1),i<=o&&o--}),this},has:function(e){return e?b.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=r=[],a=i="",this},disabled:function(){return!a},lock:function(){return s=r=[],i||t||(a=i=""),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=[e,(i=i||[]).slice?i.slice():i],r.push(i),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},b.extend({Deferred:function(t){var i=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return b.Deferred(function(t){b.each(i,function(i,n){var s=p(e[n[4]])&&e[n[4]];a[n[1]](function(){var e=s&&s.apply(this,arguments);e&&p(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(t,n,s){var a=0;function r(t,i,n,s){return function(){var o=this,c=arguments,l=function(){var e,l;if(!(t=a&&(n!==z&&(o=void 0,c=[e]),i.rejectWith(o,c))}};t?u():(b.Deferred.getStackHook&&(u.stackTrace=b.Deferred.getStackHook()),e.setTimeout(u))}}return b.Deferred(function(e){i[0][3].add(r(0,e,p(s)?s:N,e.notifyWith)),i[1][3].add(r(0,e,p(t)?t:N)),i[2][3].add(r(0,e,p(n)?n:z))}).promise()},promise:function(e){return null!=e?b.extend(e,s):s}},a={};return b.each(i,function(e,t){var r=t[2],o=t[5];s[t[1]]=r.add,o&&r.add(function(){n=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=r.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,i=t,n=Array(i),a=s.call(arguments),r=b.Deferred(),o=function(e){return function(i){n[e]=this,a[e]=arguments.length>1?s.call(arguments):i,--t||r.resolveWith(n,a)}};if(t<=1&&(j(e,r.done(o(i)).resolve,r.reject,!t),"pending"===r.state()||p(a[i]&&a[i].then)))return r.then();for(;i--;)j(a[i],o(i),r.reject);return r.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&H.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},b.readyException=function(t){e.setTimeout(function(){throw t})};var I=b.Deferred();function R(){g.removeEventListener("DOMContentLoaded",R),e.removeEventListener("load",R),b.ready()}b.fn.ready=function(e){return I.then(e).catch(function(e){b.readyException(e)}),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||I.resolveWith(g,[b]))}}),b.ready.then=I.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(b.ready):(g.addEventListener("DOMContentLoaded",R),e.addEventListener("load",R));var W=function(e,t,i,n,s,a,r){var o=0,c=e.length,l=null==i;if("object"===v(i))for(o in s=!0,i)W(e,t,o,i[o],!0,a,r);else if(void 0!==n&&(s=!0,p(n)||(r=!0),l&&(r?(t.call(e,n),t=null):(l=t,t=function(e,t,i){return l.call(b(e),i)})),t))for(;o1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),b.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=G.get(e,t),i&&(!n||Array.isArray(i)?n=G.access(e,t,b.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=b.queue(e,t),n=i.length,s=i.shift(),a=b._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete a.stop,s.call(e,function(){b.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return G.get(e,i)||G.access(e,i,{empty:b.Callbacks("once memory").add(function(){G.remove(e,[t+"queue",i])})})}}),b.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i;ue=g.createDocumentFragment().appendChild(g.createElement("div")),(de=g.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),f.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="",f.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue,ue.innerHTML="",f.option=!!ue.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?b.merge([e],i):i}function _e(e,t){for(var i=0,n=e.length;i",""]);var ye=/<|&#?\w+;/;function ve(e,t,i,n,s){for(var a,r,o,c,l,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f-1)s&&s.push(a);else if(l=ne(a),r=ge(d.appendChild(a),"script"),l&&_e(r),i)for(u=0;a=r[u++];)pe.test(a.type||"")&&i.push(a);return d}var be=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function we(){return!1}function Me(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function ke(e,t,i,n,s,a){var r,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)ke(e,o,i,n,t[o],a);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=we;else if(!s)return e;return 1===a&&(r=s,(s=function(e){return b().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=b.guid++)),e.each(function(){b.event.add(this,t,s,n,i)})}function Se(e,t,i){i?(G.set(e,t,!1),b.event.add(e,t,{namespace:!1,handler:function(e){var n,a,r=G.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(b.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),G.set(this,t,r),n=i(this,t),this[t](),r!==(a=G.get(this,t))||n?G.set(this,t,!1):a={},r!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else r.length&&(G.set(this,t,{value:b.event.trigger(b.extend(r[0],b.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===G.get(e,t)&&b.event.add(e,t,Ae)}b.event={global:{},add:function(e,t,i,n,s){var a,r,o,c,l,u,d,h,f,p,m,g=G.get(e);if(V(e))for(i.handler&&(i=(a=i).handler,s=a.selector),s&&b.find.matchesSelector(ie,s),i.guid||(i.guid=b.guid++),(c=g.events)||(c=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Y)||[""]).length;l--;)f=m=(o=be.exec(t[l])||[])[1],p=(o[2]||"").split(".").sort(),f&&(d=b.event.special[f]||{},f=(s?d.delegateType:d.bindType)||f,d=b.event.special[f]||{},u=b.extend({type:f,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&b.expr.match.needsContext.test(s),namespace:p.join(".")},a),(h=c[f])||((h=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,p,r)||e.addEventListener&&e.addEventListener(f,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),b.event.global[f]=!0)},remove:function(e,t,i,n,s){var a,r,o,c,l,u,d,h,f,p,m,g=G.hasData(e)&&G.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(Y)||[""]).length;l--;)if(f=m=(o=be.exec(t[l])||[])[1],p=(o[2]||"").split(".").sort(),f){for(d=b.event.special[f]||{},h=c[f=(n?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)u=h[a],!s&&m!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||b.removeEvent(e,f,g.handle),delete c[f])}else for(f in c)b.event.remove(e,f+t[l],i,n,!0);b.isEmptyObject(c)&&G.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,a,r,o=new Array(arguments.length),c=b.event.fix(e),l=(G.get(this,"events")||Object.create(null))[c.type]||[],u=b.event.special[c.type]||{};for(o[0]=c,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],r={},i=0;i-1:b.find(s,this,null,[l]).length),r[s]&&a.push(n);a.length&&o.push({elem:l,handlers:a})}return l=this,c\s*$/g;function xe(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ce(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var i,n,s,a,r,o;if(1===t.nodeType){if(G.hasData(e)&&(o=G.get(e).events))for(s in G.remove(t,"handle events"),o)for(i=0,n=o[s].length;i1&&"string"==typeof g&&!f.checkClone&&Te.test(g))return e.each(function(s){var a=e.eq(s);_&&(t[0]=g.call(this,s,a.html())),Pe(a,t,i,n)});if(h&&(r=(s=ve(t,e[0].ownerDocument,!1,e,n)).firstChild,1===s.childNodes.length&&(s=r),r||n)){for(c=(o=b.map(ge(s,"script"),Le)).length;d0&&_e(r,!d&&ge(e,"script")),u},cleanData:function(e){for(var t,i,n,s=b.event.special,a=0;void 0!==(i=e[a]);a++)if(V(i)){if(t=i[G.expando]){if(t.events)for(n in t.events)s[n]?b.event.remove(i,n):b.removeEvent(i,n,t.handle);i[G.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Ye(this,e,!0)},remove:function(e){return Ye(this,e)},text:function(e){return W(this,function(e){return void 0===e?b.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||xe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=xe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;i=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-c-o-.5))||0),c}function Ze(e,t,i){var n=je(e),s=(!f.boxSizingReliable()||i)&&"border-box"===b.css(e,"boxSizing",!1,n),a=s,r=We(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(r)){if(!i)return r;r="auto"}return(!f.boxSizingReliable()&&s||!f.reliableTrDimensions()&&E(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===b.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===b.css(e,"boxSizing",!1,n),(a=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+Je(e,t,i||(s?"border":"content"),a,n,r)+"px"}function Qe(e,t,i,n,s){return new Qe.prototype.init(e,t,i,n,s)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=We(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=F(t),c=ze.test(t),l=e.style;if(c||(t=Ve(o)),r=b.cssHooks[t]||b.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:l[t];"string"===(a=typeof i)&&(s=ee.exec(i))&&s[1]&&(i=re(e,t,s),a="number"),null!=i&&i==i&&("number"!==a||c||(i+=s&&s[3]||(b.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(c?l.setProperty(t,i):l[t]=i))}},css:function(e,t,i,n){var s,a,r,o=F(t);return ze.test(t)||(t=Ve(o)),(r=b.cssHooks[t]||b.cssHooks[o])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=We(e,t,n)),"normal"===s&&t in Ke&&(s=Ke[t]),""===i||i?(a=parseFloat(s),!0===i||isFinite(a)?a||0:s):s}}),b.each(["height","width"],function(e,t){b.cssHooks[t]={get:function(e,i,n){if(i)return!$e.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,n):He(e,Ge,function(){return Ze(e,t,n)})},set:function(e,i,n){var s,a=je(e),r=!f.scrollboxSize()&&"absolute"===a.position,o=(r||n)&&"border-box"===b.css(e,"boxSizing",!1,a),c=n?Je(e,t,n,o,a):0;return o&&r&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-Je(e,t,"border",!1,a)-.5)),c&&(s=ee.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=b.css(e,t)),Xe(0,i,c)}}}),b.cssHooks.marginLeft=qe(f.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(i){for(var n=0,s={},a="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+te[n]+t]=a[n]||a[n-2]||a[0];return s}},"margin"!==e&&(b.cssHooks[e+t].set=Xe)}),b.fn.extend({css:function(e,t){return W(this,function(e,t,i){var n,s,a={},r=0;if(Array.isArray(t)){for(n=je(e),s=t.length;r1)}}),b.Tween=Qe,Qe.prototype={constructor:Qe,init:function(e,t,i,n,s,a){this.elem=e,this.prop=i,this.easing=s||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(b.cssNumber[i]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,i=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Qe.propHooks._default.set(this),this}},Qe.prototype.init.prototype=Qe.prototype,Qe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||!b.cssHooks[e.prop]&&null==e.elem.style[Ve(e.prop)]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},Qe.propHooks.scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=Qe.prototype.init,b.fx.step={};var et,tt,it=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function st(){tt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(st):e.setTimeout(st,b.fx.interval),b.fx.tick())}function at(){return e.setTimeout(function(){et=void 0}),et=Date.now()}function rt(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=te[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function ot(e,t,i){for(var n,s=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),a=0,r=s.length;a1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})}}),b.extend({attr:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?b.prop(e,t,i):(1===a&&b.isXMLDoc(e)||(s=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?lt:void 0)),void 0!==i?null===i?void b.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=b.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&E(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(Y);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),lt={set:function(e,t,i){return!1===t?b.removeAttr(e,i):e.setAttribute(i,i),i}},b.each(b.expr.match.bool.source.match(/\w+/g),function(e,t){var i=ut[t]||b.find.attr;ut[t]=function(e,t,n){var s,a,r=t.toLowerCase();return n||(a=ut[r],ut[r]=s,s=null!=i(e,t,n)?r:null,ut[r]=a),s}});var dt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(Y)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(Y)||[]}b.fn.extend({prop:function(e,t){return W(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[b.propFix[e]||e]})}}),b.extend({prop:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&b.isXMLDoc(e)||(t=b.propFix[t]||t,s=b.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):dt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.fn.extend({addClass:function(e){var t,i,n,s,a,r;return p(e)?this.each(function(t){b(this).addClass(e.call(this,t,pt(this)))}):(t=mt(e)).length?this.each(function(){if(n=pt(this),i=1===this.nodeType&&" "+ft(n)+" "){for(a=0;a-1;)i=i.replace(" "+s+" "," ");r=ft(i),n!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(e,t){var i,n,s,a,r=typeof e,o="string"===r||Array.isArray(e);return p(e)?this.each(function(i){b(this).toggleClass(e.call(this,i,pt(this),t),t)}):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=mt(e),this.each(function(){if(o)for(a=b(this),s=0;s-1)return!0;return!1}});var gt=/\r/g;b.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=p(e),this.each(function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,b(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=b.map(s,function(e){return null==e?"":e+""})),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))})):s?(t=b.valHooks[s.type]||b.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(gt,""):null==i?"":i:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:ft(b.text(e))}},select:{get:function(e){var t,i,n,s=e.options,a=e.selectedIndex,r="select-one"===e.type,o=r?null:[],c=r?a+1:s.length;for(n=a<0?c:r?a:0;n-1)&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},f.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),f.focusin="onfocusin"in e;var _t=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,i,n,s){var a,r,o,c,l,d,h,f,_=[n||g],y=u.call(t,"type")?t.type:t,v=u.call(t,"namespace")?t.namespace.split("."):[];if(r=f=o=n=n||g,3!==n.nodeType&&8!==n.nodeType&&!_t.test(y+b.event.triggered)&&(y.indexOf(".")>-1&&(v=y.split("."),y=v.shift(),v.sort()),l=y.indexOf(":")<0&&"on"+y,(t=t[b.expando]?t:new b.Event(y,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:b.makeArray(i,[t]),h=b.event.special[y]||{},s||!h.trigger||!1!==h.trigger.apply(n,i))){if(!s&&!h.noBubble&&!m(n)){for(c=h.delegateType||y,_t.test(c+y)||(r=r.parentNode);r;r=r.parentNode)_.push(r),o=r;o===(n.ownerDocument||g)&&_.push(o.defaultView||o.parentWindow||e)}for(a=0;(r=_[a++])&&!t.isPropagationStopped();)f=r,t.type=a>1?c:h.bindType||y,(d=(G.get(r,"events")||Object.create(null))[t.type]&&G.get(r,"handle"))&&d.apply(r,i),(d=l&&r[l])&&d.apply&&V(r)&&(t.result=d.apply(r,i),!1===t.result&&t.preventDefault());return t.type=y,s||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(_.pop(),i)||!V(n)||l&&p(n[y])&&!m(n)&&((o=n[l])&&(n[l]=null),b.event.triggered=y,t.isPropagationStopped()&&f.addEventListener(y,yt),n[y](),t.isPropagationStopped()&&f.removeEventListener(y,yt),b.event.triggered=void 0,o&&(n[l]=o)),t.result}},simulate:function(e,t,i){var n=b.extend(new b.Event,i,{type:e,isSimulated:!0});b.event.trigger(n,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return b.event.trigger(e,t,i,!0)}}),f.focusin||b.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,s=G.access(n,t);s||n.addEventListener(e,i,!0),G.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=G.access(n,t)-1;s?G.access(n,t,s):(n.removeEventListener(e,i,!0),G.remove(n,t))}}});var vt=e.location,bt={guid:Date.now()},At=/\?/;b.parseXML=function(t){var i,n;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||b.error("Invalid XML: "+(n?b.map(n.childNodes,function(e){return e.textContent}).join("\n"):t)),i};var wt=/\[\]$/,Mt=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function Et(e,t,i,n){var s;if(Array.isArray(t))b.each(t,function(t,s){i||wt.test(e)?n(e,s):Et(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,i,n)});else if(i||"object"!==v(t))n(e,t);else for(s in t)Et(e+"["+s+"]",t[s],i,n)}b.param=function(e,t){var i,n=[],s=function(e,t){var i=p(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){s(this.name,this.value)});else for(i in e)Et(i,e[i],t,s);return n.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&St.test(this.nodeName)&&!kt.test(e)&&(this.checked||!he.test(e))}).map(function(e,t){var i=b(this).val();return null==i?null:Array.isArray(i)?b.map(i,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:i.replace(Mt,"\r\n")}}).get()}});var Tt=/%20/g,Dt=/#.*$/,xt=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ct=/^(?:GET|HEAD)$/,Ot=/^\/\//,Pt={},Yt={},Nt="*/".concat("*"),zt=g.createElement("a");function jt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,a=t.toLowerCase().match(Y)||[];if(p(i))for(;n=a[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Ht(e,t,i,n){var s={},a=e===Yt;function r(o){var c;return s[o]=!0,b.each(e[o]||[],function(e,o){var l=o(t,i,n);return"string"!=typeof l||a||s[l]?a?!(c=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),c}return r(t.dataTypes[0])||!s["*"]&&r("*")}function It(e,t){var i,n,s=b.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&b.extend(!0,e,n),e}zt.href=vt.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(vt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,b.ajaxSettings),t):It(b.ajaxSettings,e)},ajaxPrefilter:jt(Pt),ajaxTransport:jt(Yt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,s,a,r,o,c,l,u,d,h,f=b.ajaxSetup({},i),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?b(p):b.event,_=b.Deferred(),y=b.Callbacks("once memory"),v=f.statusCode||{},A={},w={},M="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(l){if(!r)for(r={};t=Lt.exec(a);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,A[e]=t),this},overrideMimeType:function(e){return null==l&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)k.always(e[k.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||M;return n&&n.abort(t),S(0,t),this}};if(_.promise(k),f.url=((t||f.url||vt.href)+"").replace(Ot,vt.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Y)||[""],null==f.crossDomain){c=g.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=zt.protocol+"//"+zt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=b.param(f.data,f.traditional)),Ht(Pt,f,i,k),l)return k;for(d in(u=b.event&&f.global)&&0==b.active++&&b.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ct.test(f.type),s=f.url.replace(Dt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Tt,"+")):(h=f.url.slice(s.length),f.data&&(f.processData||"string"==typeof f.data)&&(s+=(At.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(s=s.replace(xt,"$1"),h=(At.test(s)?"&":"?")+"_="+bt.guid+++h),f.url=s+h),f.ifModified&&(b.lastModified[s]&&k.setRequestHeader("If-Modified-Since",b.lastModified[s]),b.etag[s]&&k.setRequestHeader("If-None-Match",b.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Nt+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||l))return k.abort();if(M="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),n=Ht(Yt,f,i,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,f]),l)return k;f.async&&f.timeout>0&&(o=e.setTimeout(function(){k.abort("timeout")},f.timeout));try{l=!1,n.send(A,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(t,i,r,c){var d,h,g,A,w,M=i;l||(l=!0,o&&e.clearTimeout(o),n=void 0,a=c||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,r&&(A=function(e,t,i){for(var n,s,a,r,o=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){c.unshift(s);break}if(c[0]in i)a=c[0];else{for(s in i){if(!c[0]||e.converters[s+" "+c[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==c[0]&&c.unshift(a),i[a]}(f,k,r)),!d&&b.inArray("script",f.dataTypes)>-1&&b.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),A=function(e,t,i,n){var s,a,r,o,c,l={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)l[r.toLowerCase()]=e.converters[r];for(a=u.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!c&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift())if("*"===a)a=c;else if("*"!==c&&c!==a){if(!(r=l[c+" "+a]||l["* "+a]))for(s in l)if((o=s.split(" "))[1]===a&&(r=l[c+" "+o[0]]||l["* "+o[0]])){!0===r?r=l[s]:!0!==l[s]&&(a=o[0],u.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+c+" to "+a}}}return{state:"success",data:t}}(f,A,k,d),d?(f.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(b.lastModified[s]=w),(w=k.getResponseHeader("etag"))&&(b.etag[s]=w)),204===t||"HEAD"===f.type?M="nocontent":304===t?M="notmodified":(M=A.state,h=A.data,d=!(g=A.error))):(g=M,!t&&M||(M="error",t<0&&(t=0))),k.status=t,k.statusText=(i||M)+"",d?_.resolveWith(p,[h,M,k]):_.rejectWith(p,[k,M,g]),k.statusCode(v),v=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,f,d?h:g]),y.fireWith(p,[k,M]),u&&(m.trigger("ajaxComplete",[k,f]),--b.active||b.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,i){return b.get(e,t,i,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],function(e,t){b[t]=function(e,i,n,s){return p(i)&&(s=s||n,n=i,i=void 0),b.ajax(b.extend({url:e,type:t,dataType:s,data:i,success:n},b.isPlainObject(e)&&e))}}),b.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),b._evalUrl=function(e,t,i){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){b.globalEval(e,t,i)}})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(p(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return p(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=p(e);return this.each(function(i){b(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Wt=b.ajaxSettings.xhr();f.cors=!!Wt&&"withCredentials"in Wt,f.ajax=Wt=!!Wt,b.ajaxTransport(function(t){var i,n;if(f.cors||Wt&&!t.crossDomain)return{send:function(s,a){var r,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];for(r in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(r,s[r]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Rt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){i&&n()})},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),b.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),b.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,s){t=b("