@ministryofjustice/frontend 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/moj/all.jquery.min.js +1 -1
- package/moj/all.js +63 -31
- package/moj/components/button-menu/button-menu.js +4 -4
- package/moj/components/filter-toggle-button/filter-toggle-button.js +9 -7
- package/moj/components/multi-file-upload/multi-file-upload.js +6 -5
- package/moj/components/primary-navigation/_primary-navigation.scss +9 -1
- package/moj/components/search-toggle/search-toggle.js +44 -17
- package/moj/components/side-navigation/_side-navigation.scss +6 -6
- package/moj/components/sub-navigation/_sub-navigation.scss +13 -4
- package/package.json +1 -1
package/moj/all.jquery.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.MOJFrontend=t()}(this,function(){!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(w,F){"use strict";function v(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function m(e){return null!=e&&e===e.window}var t=[],H=Object.getPrototypeOf,s=t.slice,R=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},I=t.push,O=t.indexOf,P={},W=P.toString,$=P.hasOwnProperty,z=$.toString,U=z.call(Object),g={},T=w.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function X(e,t,n){var o,r,i=(n=n||T).createElement("script");if(i.text=e,t)for(o in V)(r=t[o]||t.getAttribute&&t.getAttribute(o))&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function h(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?P[W.call(e)]||"object":typeof e}var e="3.6.0",k=function(e,t){return new k.fn.init(e,t)};function G(e){var t=!!e&&"length"in e&&e.length,n=h(e);return!v(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:e,constructor:k,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){e=k.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},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(k.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:I,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,o,r,i=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[a]||{},a++),"object"==typeof i||v(i)||(i={}),a===s&&(i=this,a--);a<s;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&i!==n&&(u&&n&&(k.isPlainObject(n)||(o=Array.isArray(n)))?(r=i[t],r=o&&!Array.isArray(r)?[]:o||k.isPlainObject(r)?r:{},o=!1,i[t]=k.extend(u,r,n)):void 0!==n&&(i[t]=n));return i},k.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==W.call(e))&&(!(e=H(e))||"function"==typeof(e=$.call(e,"constructor")&&e.constructor)&&z.call(e)===U)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){X(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,o=0;if(G(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(G(Object(e))?k.merge(t,"string"==typeof e?[e]:e):I.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:O.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,a=!n;r<i;r++)!t(e[r],r)!=a&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,a=[];if(G(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&a.push(r);return R(a)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){P["[object "+t+"]"]=t.toLowerCase()});function o(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(n))break;o.push(e)}return o}function K(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=function(F){function d(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function H(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function R(){T()}var e,p,x,i,I,f,O,P,w,u,l,T,k,n,C,h,o,r,m,j="sizzle"+ +new Date,c=F.document,S=0,W=0,$=D(),z=D(),U=D(),g=D(),V=function(e,t){return e===t&&(l=!0),0},X={}.hasOwnProperty,t=[],G=t.pop,K=t.push,A=t.push,Q=t.slice,v=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",J="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Z=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",ee=new RegExp(a+"+","g"),y=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),te=new RegExp("^"+a+"*,"+a+"*"),ne=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),oe=new RegExp(a+"|>"),re=new RegExp(Z),ie=new RegExp("^"+s+"$"),b={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},ae=/HTML$/i,se=/^(?:input|select|textarea|button)$/i,ue=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,le=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ce=/[+~]/,B=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),de=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pe=ve(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(t=Q.call(c.childNodes),c.childNodes),t[c.childNodes.length].nodeType}catch(e){A={apply:t.length?function(e,t){K.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function _(t,e,n,o){var r,i,a,s,u,l,c=e&&e.ownerDocument,d=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return n;if(!o&&(T(e),e=e||k,C)){if(11!==d&&(s=le.exec(t)))if(r=s[1]){if(9===d){if(!(l=e.getElementById(r)))return n;if(l.id===r)return n.push(l),n}else if(c&&(l=c.getElementById(r))&&m(e,l)&&l.id===r)return n.push(l),n}else{if(s[2])return A.apply(n,e.getElementsByTagName(t)),n;if((r=s[3])&&p.getElementsByClassName&&e.getElementsByClassName)return A.apply(n,e.getElementsByClassName(r)),n}if(p.qsa&&!g[t+" "]&&(!h||!h.test(t))&&(1!==d||"object"!==e.nodeName.toLowerCase())){if(l=t,c=e,1===d&&(oe.test(t)||ne.test(t))){for((c=ce.test(t)&&ge(e.parentNode)||e)===e&&p.scope||((a=e.getAttribute("id"))?a=a.replace(de,H):e.setAttribute("id",a=j)),i=(u=f(t)).length;i--;)u[i]=(a?"#"+a:":scope")+" "+q(u[i]);l=u.join(",")}try{return A.apply(n,c.querySelectorAll(l)),n}catch(e){g(t,!0)}finally{a===j&&e.removeAttribute("id")}}}return P(t.replace(y,"$1"),e,n,o)}function D(){var n=[];function o(e,t){return n.push(e+" ")>x.cacheLength&&delete o[n.shift()],o[e+" "]=t}return o}function N(e){return e[j]=!0,e}function M(e){var t=k.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function fe(e,t){for(var n=e.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=t}function he(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function me(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&pe(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function L(a){return N(function(i){return i=+i,N(function(e,t){for(var n,o=a([],e.length,i),r=o.length;r--;)e[n=o[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in p=_.support={},I=_.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!ae.test(t||e&&e.nodeName||"HTML")},T=_.setDocument=function(e){var e=e?e.ownerDocument||e:c;return e!=k&&9===e.nodeType&&e.documentElement&&(n=(k=e).documentElement,C=!I(k),c!=k&&(e=k.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",R,!1):e.attachEvent&&e.attachEvent("onunload",R)),p.scope=M(function(e){return n.appendChild(e).appendChild(k.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),p.attributes=M(function(e){return e.className="i",!e.getAttribute("className")}),p.getElementsByTagName=M(function(e){return e.appendChild(k.createComment("")),!e.getElementsByTagName("*").length}),p.getElementsByClassName=E.test(k.getElementsByClassName),p.getById=M(function(e){return n.appendChild(e).id=j,!k.getElementsByName||!k.getElementsByName(j).length}),p.getById?(x.filter.ID=function(e){var t=e.replace(B,d);return function(e){return e.getAttribute("id")===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&C)return(t=t.getElementById(e))?[t]:[]}):(x.filter.ID=function(e){var t=e.replace(B,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},x.find.ID=function(e,t){if(void 0!==t.getElementById&&C){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),x.find.TAG=p.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):p.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},x.find.CLASS=p.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&C)return t.getElementsByClassName(e)},o=[],h=[],(p.qsa=E.test(k.querySelectorAll))&&(M(function(e){var t;n.appendChild(e).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+a+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||h.push("\\["+a+"*(?:value|"+Y+")"),e.querySelectorAll("[id~="+j+"-]").length||h.push("~="),(t=k.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||h.push(":checked"),e.querySelectorAll("a#"+j+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),M(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=k.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&h.push("name"+a+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(p.matchesSelector=E.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&M(function(e){p.disconnectedMatch=r.call(e,"*"),r.call(e,"[s!='']:x"),o.push("!=",Z)}),h=h.length&&new RegExp(h.join("|")),o=o.length&&new RegExp(o.join("|")),e=E.test(n.compareDocumentPosition),m=e||E.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=e?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===n?e==k||e.ownerDocument==c&&m(c,e)?-1:t==k||t.ownerDocument==c&&m(c,t)?1:u?v(u,e)-v(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e==k?-1:t==k?1:r?-1:i?1:u?v(u,e)-v(u,t):0;if(r===i)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?he(a[o],s[o]):a[o]==c?-1:s[o]==c?1:0}),k},_.matches=function(e,t){return _(e,null,null,t)},_.matchesSelector=function(e,t){if(T(e),p.matchesSelector&&C&&!g[t+" "]&&(!o||!o.test(t))&&(!h||!h.test(t)))try{var n=r.call(e,t);if(n||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){g(t,!0)}return 0<_(t,k,null,[e]).length},_.contains=function(e,t){return(e.ownerDocument||e)!=k&&T(e),m(e,t)},_.attr=function(e,t){(e.ownerDocument||e)!=k&&T(e);var n=x.attrHandle[t.toLowerCase()],n=n&&X.call(x.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==n?n:p.attributes||!C?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},_.escape=function(e){return(e+"").replace(de,H)},_.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,n=[],o=0,r=0;if(l=!p.detectDuplicates,u=!p.sortStable&&e.slice(0),e.sort(V),l){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return u=null,e},i=_.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=i(t);return n},(x=_.selectors={cacheLength:50,createPseudo:N,match:b,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(B,d),e[3]=(e[3]||e[4]||e[5]||"").replace(B,d),"~="===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]||_.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]&&_.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return b.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&re.test(n)&&(t=f(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(B,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+a+")"+e+"("+a+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,o){return function(e){e=_.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===o:"!="===n?e!==o:"^="===n?o&&0===e.indexOf(o):"*="===n?o&&-1<e.indexOf(o):"$="===n?o&&e.slice(-o.length)===o:"~="===n?-1<(" "+e.replace(ee," ")+" ").indexOf(o):"|="===n&&(e===o||e.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,e,t,m,g){var y="nth"!==h.slice(0,3),v="last"!==h.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var o,r,i,a,s,u,l=y!=v?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),p=!n&&!b,f=!1;if(c){if(y){for(;l;){for(a=e;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&p){for(f=(s=(o=(r=(i=(a=c)[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&o[1])&&o[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(f=s=0)||u.pop();)if(1===a.nodeType&&++f&&a===e){r[h]=[S,s,f];break}}else if(!1===(f=p?s=(o=(r=(i=(a=e)[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&o[1]:f))for(;(a=++s&&a&&a[l]||(f=s=0)||u.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(p&&((r=(i=a[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]=[S,f]),a!==e)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(e,i){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||_.error("unsupported pseudo: "+e);return a[j]?a(i):1<a.length?(t=[e,e,"",i],x.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,t){for(var n,o=a(e,i),r=o.length;r--;)e[n=v(e,o[r])]=!(t[n]=o[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:N(function(e){var o=[],r=[],s=O(e.replace(y,"$1"));return s[j]?N(function(e,t,n,o){for(var r,i=s(e,null,o,[]),a=e.length;a--;)(r=i[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return o[0]=e,s(o,null,n,r),o[0]=null,!r.pop()}}),has:N(function(t){return function(e){return 0<_(t,e).length}}),contains:N(function(t){return t=t.replace(B,d),function(e){return-1<(e.textContent||i(e)).indexOf(t)}}),lang:N(function(n){return ie.test(n||"")||_.error("unsupported lang: "+n),n=n.replace(B,d).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=F.location&&F.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===k.activeElement&&(!k.hasFocus||k.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!x.pseudos.empty(e)},header:function(e){return ue.test(e.nodeName)},input:function(e){return se.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:L(function(){return[0]}),last:L(function(e,t){return[t-1]}),eq:L(function(e,t,n){return[n<0?n+t:n]}),even:L(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:L(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:L(function(e,t,n){for(var o=n<0?n+t:t<n?t:n;0<=--o;)e.push(o);return e}),gt:L(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ye(){}function q(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function ve(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,d=W++;return e.first?function(e,t,n){for(;e=e[s];)if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var o,r,i=[S,d];if(n){for(;e=e[s];)if((1===e.nodeType||c)&&a(e,t,n))return!0}else for(;e=e[s];)if(1===e.nodeType||c)if(r=(r=e[j]||(e[j]={}))[e.uniqueID]||(r[e.uniqueID]={}),u&&u===e.nodeName.toLowerCase())e=e[s]||e;else{if((o=r[l])&&o[0]===S&&o[1]===d)return i[2]=o[2];if((r[l]=i)[2]=a(e,t,n))return!0}return!1}}function be(r){return 1<r.length?function(e,t,n){for(var o=r.length;o--;)if(!r[o](e,t,n))return!1;return!0}:r[0]}function xe(e,t,n,o,r){for(var i,a=[],s=0,u=e.length,l=null!=t;s<u;s++)!(i=e[s])||n&&!n(i,o,r)||(a.push(i),l&&t.push(s));return a}function we(f,h,m,g,y,e){return g&&!g[j]&&(g=we(g)),y&&!y[j]&&(y=we(y,e)),N(function(e,t,n,o){var r,i,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var o=0,r=t.length;o<r;o++)_(e,t[o],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!f||!e&&h?c:xe(c,s,f,n,o),p=m?y||(e?f:l||g)?[]:t:d;if(m&&m(d,p,n,o),g)for(r=xe(p,u),g(r,[],n,o),i=r.length;i--;)(a=r[i])&&(p[u[i]]=!(d[u[i]]=a));if(e){if(y||f){if(y){for(r=[],i=p.length;i--;)(a=p[i])&&r.push(d[i]=a);y(null,p=[],r,o)}for(i=p.length;i--;)(a=p[i])&&-1<(r=y?v(e,a):s[i])&&(e[r]=!(t[r]=a))}}else p=xe(p===t?p.splice(l,p.length):p),y?y(null,t,p,o):A.apply(t,p)})}function Te(g,y){function e(e,t,n,o,r){var i,a,s,u=0,l="0",c=e&&[],d=[],p=w,f=e||b&&x.find.TAG("*",r),h=S+=null==p?1:Math.random()||.1,m=f.length;for(r&&(w=t==k||t||r);l!==m&&null!=(i=f[l]);l++){if(b&&i){for(a=0,t||i.ownerDocument==k||(T(i),n=!C);s=g[a++];)if(s(i,t||k,n)){o.push(i);break}r&&(S=h)}v&&((i=!s&&i)&&u--,e&&c.push(i))}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(c,d,t,n);if(e){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=G.call(o));d=xe(d)}A.apply(o,d),r&&!e&&0<d.length&&1<u+y.length&&_.uniqueSort(o)}return r&&(S=h,w=p),c}var v=0<y.length,b=0<g.length;return v?N(e):e}return ye.prototype=x.filters=x.pseudos,x.setFilters=new ye,f=_.tokenize=function(e,t){var n,o,r,i,a,s,u,l=z[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=x.preFilter;a;){for(i in n&&!(o=te.exec(a))||(o&&(a=a.slice(o[0].length)||a),s.push(r=[])),n=!1,(o=ne.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(y," ")}),a=a.slice(n.length)),x.filter)!(o=b[i].exec(a))||u[i]&&!(o=u[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?_.error(e):z(e,s).slice(0)},O=_.compile=function(e,t){var n,o=[],r=[],i=U[e+" "];if(!i){for(n=(t=t||f(e)).length;n--;)((i=function e(t){for(var o,n,r,i=t.length,a=x.relative[t[0].type],s=a||x.relative[" "],u=a?1:0,l=ve(function(e){return e===o},s,!0),c=ve(function(e){return-1<v(o,e)},s,!0),d=[function(e,t,n){return e=!a&&(n||t!==w)||((o=t).nodeType?l:c)(e,t,n),o=null,e}];u<i;u++)if(n=x.relative[t[u].type])d=[ve(be(d),n)];else{if((n=x.filter[t[u].type].apply(null,t[u].matches))[j]){for(r=++u;r<i&&!x.relative[t[r].type];r++);return we(1<u&&be(d),1<u&&q(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(y,"$1"),n,u<r&&e(t.slice(u,r)),r<i&&e(t=t.slice(r)),r<i&&q(t))}d.push(n)}return be(d)}(t[n]))[j]?o:r).push(i);(i=U(e,Te(r,o))).selector=e}return i},P=_.select=function(e,t,n,o){var r,i,a,s,u,l="function"==typeof e&&e,c=!o&&f(e=l.selector||e);if(n=n||[],1===c.length){if(2<(i=c[0]=c[0].slice(0)).length&&"ID"===(a=i[0]).type&&9===t.nodeType&&C&&x.relative[i[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(B,d),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=b.needsContext.test(e)?0:i.length;r--&&(a=i[r],!x.relative[s=a.type]);)if((u=x.find[s])&&(o=u(a.matches[0].replace(B,d),ce.test(i[0].type)&&ge(t.parentNode)||t))){if(i.splice(r,1),e=o.length&&q(i))break;return A.apply(n,o),n}}return(l||O(e,c))(o,t,!C,n,!t||ce.test(e)&&ge(t.parentNode)||t),n},p.sortStable=j.split("").sort(V).join("")===j,p.detectDuplicates=!!l,T(),p.sortDetached=M(function(e){return 1&e.compareDocumentPosition(k.createElement("fieldset"))}),M(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),p.attributes&&M(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),M(function(e){return null==e.getAttribute("disabled")})||fe(Y,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),_}(w),Q=(k.find=e,k.expr=e.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=e.uniqueSort,k.text=e.getText,k.isXMLDoc=e.isXML,k.contains=e.contains,k.escapeSelector=e.escape,k.expr.match.needsContext);function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(e,n,o){return v(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==o}):n.nodeType?k.grep(e,function(e){return e===n!==o}):"string"!=typeof n?k.grep(e,function(e){return-1<O.call(n,e)!==o}):k.filter(n,e,o)}k.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?k.find.matchesSelector(o,e)?[o]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<o;t++)if(k.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)k.find(e,r[t],n);return 1<o?k.uniqueSort(n):n},filter:function(e){return this.pushStack(J(this,e||[],!1))},not:function(e){return this.pushStack(J(this,e||[],!0))},is:function(e){return!!J(this,"string"==typeof e&&Q.test(e)?k(e):e||[],!1).length}});var Z,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((k.fn.init=function(e,t,n){if(!e)return this;if(n=n||Z,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this);if(!(o="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!o[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(o[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),Y.test(o[1])&&k.isPlainObject(t))for(var o in t)v(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(n=T.getElementById(o[2]))&&(this[0]=n,this.length=1),this}).prototype=k.fn,Z=k(T),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function oe(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&k(e);if(!Q.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(1<i.length?k.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?O.call(k(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(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return o(e,"parentNode")},parentsUntil:function(e,t,n){return o(e,"parentNode",n)},next:function(e){return oe(e,"nextSibling")},prev:function(e){return oe(e,"previousSibling")},nextAll:function(e){return o(e,"nextSibling")},prevAll:function(e){return o(e,"previousSibling")},nextUntil:function(e,t,n){return o(e,"nextSibling",n)},prevUntil:function(e,t,n){return o(e,"previousSibling",n)},siblings:function(e){return K((e.parentNode||{}).firstChild,e)},children:function(e){return K(e.firstChild)},contents:function(e){return null!=e.contentDocument&&H(e.contentDocument)?e.contentDocument:(u(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},function(o,r){k.fn[o]=function(e,t){var n=k.map(this,r,e);return(t="Until"!==o.slice(-5)?e:t)&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(ne[o]||k.uniqueSort(n),te.test(o)&&n.reverse()),this.pushStack(n)}});var C=/[^\x20\t\r\n\f]+/g;function c(e){return e}function re(e){throw e}function ie(e,t,n,o){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(o){var e,n;o="string"==typeof o?(e=o,n={},k.each(e.match(C)||[],function(e,t){n[t]=!0}),n):k.extend({},o);function r(){for(s=s||o.once,a=i=!0;l.length;c=-1)for(t=l.shift();++c<u.length;)!1===u[c].apply(t[0],t[1])&&o.stopOnFalse&&(c=u.length,t=!1);o.memory||(t=!1),i=!1,s&&(u=t?[]:"")}var i,t,a,s,u=[],l=[],c=-1,d={add:function(){return u&&(t&&!i&&(c=u.length-1,l.push(t)),function n(e){k.each(e,function(e,t){v(t)?o.unique&&d.has(t)||u.push(t):t&&t.length&&"string"!==h(t)&&n(t)})}(arguments),t&&!i&&r()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(e){return e?-1<k.inArray(e,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=t="",this},disabled:function(){return!u},lock:function(){return s=l=[],t||i||(u=t=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||r()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},k.extend({Deferred:function(e){var i=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var r=arguments;return k.Deferred(function(o){k.each(i,function(e,t){var n=v(r[t[4]])&&r[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[t[0]+"With"](this,n?[e]:arguments)})}),r=null}).promise()},then:function(t,n,o){var u=0;function l(r,i,a,s){return function(){function e(){var e,t;if(!(r<u)){if((e=a.apply(n,o))===i.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,i,c,s),l(u,i,re,s)):(u++,t.call(e,l(u,i,c,s),l(u,i,re,s),l(u,i,c,i.notifyWith))):(a!==c&&(n=void 0,o=[e]),(s||i.resolveWith)(n,o))}}var n=this,o=arguments,t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=r+1&&(a!==re&&(n=void 0,o=[e]),i.rejectWith(n,o))}};r?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),w.setTimeout(t))}}return k.Deferred(function(e){i[0][3].add(l(0,e,v(o)?o:c,e.notifyWith)),i[1][3].add(l(0,e,v(t)?t:c)),i[2][3].add(l(0,e,v(n)?n:re))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(i,function(e,t){var n=t[2],o=t[5];a[t[1]]=n.add,o&&n.add(function(){r=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){function t(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||a.resolveWith(r,i)}}var n=arguments.length,o=n,r=Array(o),i=s.call(arguments),a=k.Deferred();if(n<=1&&(ie(e,a.done(t(o)).resolve,a.reject,!n),"pending"===a.state()||v(i[o]&&i[o].then)))return a.then();for(;o--;)ie(i[o],t(o),a.reject);return a.promise()}});var ae=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,se=(k.Deferred.exceptionHook=function(e,t){w.console&&w.console.warn&&e&&ae.test(e.name)&&w.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){w.setTimeout(function(){throw e})},k.Deferred());function ue(){T.removeEventListener("DOMContentLoaded",ue),w.removeEventListener("load",ue),k.ready()}k.fn.ready=function(e){return se.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0)!==e&&0<--k.readyWait||se.resolveWith(T,[k])}}),k.ready.then=se.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?w.setTimeout(k.ready):(T.addEventListener("DOMContentLoaded",ue),w.addEventListener("load",ue));function d(e,t,n,o,r,i,a){var s=0,u=e.length,l=null==n;if("object"===h(n))for(s in r=!0,n)d(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,v(o)||(a=!0),t=l?a?(t.call(e,o),null):(l=t,function(e,t,n){return l.call(k(e),n)}):t))for(;s<u;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):u?t(e[0],n):i}var le=/^-ms-/,ce=/-([a-z])/g;function de(e,t){return t.toUpperCase()}function b(e){return e.replace(le,"ms-").replace(ce,de)}function y(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function pe(){this.expando=k.expando+pe.uid++}pe.uid=1,pe.prototype={cache:function(e){var t=e[this.expando];return t||(t={},y(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[b(t)]=n;else for(o in t)r[b(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][b(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(b):(t=b(t))in o?[t]:t.match(C)||[]).length;for(;n--;)delete o[t[n]]}void 0!==t&&!k.isEmptyObject(o)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!k.isEmptyObject(e)}};var x=new pe,l=new pe,fe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,he=/[A-Z]/g;function me(e,t,n){var o,r;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(he,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:fe.test(r)?JSON.parse(r):r)}catch(e){}l.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return l.hasData(e)||x.hasData(e)},data:function(e,t,n){return l.access(e,t,n)},removeData:function(e,t){l.remove(e,t)},_data:function(e,t,n){return x.access(e,t,n)},_removeData:function(e,t){x.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,o,r,i=this[0],a=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){l.set(this,n)}):d(this,function(e){var t;if(i&&void 0===e)return void 0!==(t=l.get(i,n))||void 0!==(t=me(i,n))?t:void 0;this.each(function(){l.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(r=l.get(i),1===i.nodeType&&!x.get(i,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(o=a[t].name).indexOf("data-")&&(o=b(o.slice(5)),me(i,o,r[o]));x.set(i,"hasDataAttrs",!0)}return r},removeData:function(e){return this.each(function(){l.remove(this,e)})}}),k.extend({queue:function(e,t,n){var o;if(e)return o=x.get(e,t=(t||"fx")+"queue"),n&&(!o||Array.isArray(n)?o=x.access(e,t,k.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),o=n.length,r=n.shift(),i=k._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){k.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x.get(e,n)||x.access(e,n,{empty:k.Callbacks("once memory").add(function(){x.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--r||i.resolveWith(a,[a])}var o,r=1,i=k.Deferred(),a=this,s=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(o=x.get(a[s],e+"queueHooks"))&&o.empty&&(r++,o.empty.add(n));return n(),i.promise(t)}});function ge(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&S(e)&&"none"===k.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ye=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"],j=T.documentElement,S=function(e){return k.contains(e.ownerDocument,e)},ve={composed:!0};j.getRootNode&&(S=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});function be(e,t,n,o){var r,i,a=20,s=o?function(){return o.cur()}:function(){return k.css(e,t,"")},u=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==l&&+u)&&ye.exec(k.css(e,t));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)k.style(e,t,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;k.style(e,t,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=c,o.end=r)),r}var xe={};function A(e,t){for(var n,o,r,i,a,s=[],u=0,l=e.length;u<l;u++)(o=e[u]).style&&(n=o.style.display,t?("none"===n&&(s[u]=x.get(o,"display")||null,s[u]||(o.style.display="")),""===o.style.display&&ge(o)&&(s[u]=(a=i=void 0,i=(r=o).ownerDocument,r=r.nodeName,(a=xe[r])||(i=i.body.appendChild(i.createElement(r)),a=k.css(i,"display"),i.parentNode.removeChild(i),xe[r]=a="none"===a?"block":a)))):"none"!==n&&(s[u]="none",x.set(o,"display",n)));for(u=0;u<l;u++)null!=s[u]&&(e[u].style.display=s[u]);return e}k.fn.extend({show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ge(this)?k(this).show():k(this).hide()})}});var we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i,E=(N=T.createDocumentFragment().appendChild(T.createElement("div")),(a=T.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),N.appendChild(a),g.checkClone=N.cloneNode(!0).cloneNode(!0).lastChild.checked,N.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!N.cloneNode(!0).lastChild.defaultValue,N.innerHTML="<option></option>",g.option=!!N.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function B(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&u(e,t)?k.merge([e],n):n}function Ce(e,t){for(var n=0,o=e.length;n<o;n++)x.set(e[n],"globalEval",!t||x.get(t[n],"globalEval"))}E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,g.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Se(e,t,n,o,r){for(var i,a,s,u,l,c=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((i=e[p])||0===i)if("object"===h(i))k.merge(d,i.nodeType?[i]:i);else if(je.test(i)){for(a=a||c.appendChild(t.createElement("div")),s=(Te.exec(i)||["",""])[1].toLowerCase(),s=E[s]||E._default,a.innerHTML=s[1]+k.htmlPrefilter(i)+s[2],l=s[0];l--;)a=a.lastChild;k.merge(d,a.childNodes),(a=c.firstChild).textContent=""}else d.push(t.createTextNode(i));for(c.textContent="",p=0;i=d[p++];)if(o&&-1<k.inArray(i,o))r&&r.push(i);else if(u=S(i),a=B(c.appendChild(i),"script"),u&&Ce(a),n)for(l=0;i=a[l++];)ke.test(i.type||"")&&n.push(i);return c}var Ae=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function f(){return!1}function Ee(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function Be(e,t,n,o,r,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Be(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=f;else if(!r)return e;return 1===i&&(a=r,(r=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,r,o,n)})}function _e(e,r,i){i?(x.set(e,r,!1),k.event.add(e,r,{namespace:!1,handler:function(e){var t,n,o=x.get(this,r);if(1&e.isTrigger&&this[r]){if(o.length)(k.event.special[r]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),x.set(this,r,o),t=i(this,r),this[r](),o!==(n=x.get(this,r))||t?x.set(this,r,!1):n={},o!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else o.length&&(x.set(this,r,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===x.get(e,r)&&k.event.add(e,r,n)}k.event={global:{},add:function(t,e,n,o,r){var i,a,s,u,l,c,d,p,f,h=x.get(t);if(y(t))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&k.find.matchesSelector(j,r),n.guid||(n.guid=k.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(C)||[""]).length;u--;)d=f=(p=Ae.exec(e[u])||[])[1],p=(p[2]||"").split(".").sort(),d&&(l=k.event.special[d]||{},d=(r?l.delegateType:l.bindType)||d,l=k.event.special[d]||{},f=k.extend({type:d,origType:f,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},i),(c=s[d])||((c=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(t,o,p,a)||t.addEventListener&&t.addEventListener(d,a)),l.add&&(l.add.call(t,f),f.handler.guid||(f.handler.guid=n.guid)),r?c.splice(c.delegateCount++,0,f):c.push(f),k.event.global[d]=!0)},remove:function(e,t,n,o,r){var i,a,s,u,l,c,d,p,f,h,m,g=x.hasData(e)&&x.get(e);if(g&&(u=g.events)){for(l=(t=(t||"").match(C)||[""]).length;l--;)if(f=m=(s=Ae.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=u[f=(o?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||k.removeEvent(e,f,g.handle),delete u[f])}else for(f in u)k.event.remove(e,f+t[l],n,o,!0);k.isEmptyObject(u)&&x.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a=new Array(arguments.length),s=k.event.fix(e),e=(x.get(this,"events")||Object.create(null))[s.type]||[],u=k.event.special[s.type]||{};for(a[0]=s,t=1;t<arguments.length;t++)a[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(i=k.event.handlers.call(this,s,e),t=0;(o=i[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(r=((k.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,o,r,i,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?-1<k(r,this).index(l):k.find(r,this,null,[l]).length),a[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return we.test(e.type)&&e.click&&u(e,"input")&&_e(e,"click",n),!1},trigger:function(e){e=this||e;return we.test(e.type)&&e.click&&u(e,"input")&&_e(e,"click"),!0},_default:function(e){e=e.target;return we.test(e.type)&&e.click&&u(e,"input")&&x.get(e,"click")||u(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:f,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(e,t){k.event.special[e]={setup:function(){return _e(this,e,Ee),!1},trigger:function(){return _e(this,e),!0},_default:function(){return!0},delegateType:t}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){k.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,o=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=r),t}}}),k.fn.extend({on:function(e,t,n,o){return Be(this,e,t,n,o)},one:function(e,t,n,o){return Be(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,k(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=f),this.each(function(){k.event.remove(this,e,n,t)});for(r in e)this.off(r,t,e[r]);return this}});var De=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function qe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,o,r,i;if(1===t.nodeType){if(x.hasData(e)&&(i=x.get(e).events))for(r in x.remove(t,"handle events"),i)for(n=0,o=i[r].length;n<o;n++)k.event.add(t,r,i[r][n]);l.hasData(e)&&(e=l.access(e),e=k.extend({},e),l.set(t,e))}}function _(n,o,r,i){o=R(o);var e,t,a,s,u,l,c=0,d=n.length,p=d-1,f=o[0],h=v(f);if(h||1<d&&"string"==typeof f&&!g.checkClone&&Ne.test(f))return n.each(function(e){var t=n.eq(e);h&&(o[0]=f.call(this,e,t.html())),_(t,o,r,i)});if(d&&(t=(e=Se(o,n[0].ownerDocument,!1,n,i)).firstChild,1===e.childNodes.length&&(e=t),t||i)){for(s=(a=k.map(B(e,"script"),qe)).length;c<d;c++)u=e,c!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,B(u,"script"))),r.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Fe),c=0;c<s;c++)u=a[c],ke.test(u.type||"")&&!x.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):X(u.textContent.replace(Me,""),u,l))}return n}function Re(e,t,n){for(var o,r=t?k.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||k.cleanData(B(o)),o.parentNode&&(n&&S(o)&&Ce(B(o,"script")),o.parentNode.removeChild(o));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var o,r,i,a,s,u,l,c=e.cloneNode(!0),d=S(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=B(c),o=0,r=(i=B(e)).length;o<r;o++)s=i[o],u=a[o],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(i=i||B(e),a=a||B(c),o=0,r=i.length;o<r;o++)He(i[o],a[o]);else He(e,c);return 0<(a=B(c,"script")).length&&Ce(a,!d&&B(e,"script")),c},cleanData:function(e){for(var t,n,o,r=k.event.special,i=0;void 0!==(n=e[i]);i++)if(y(n)){if(t=n[x.expando]){if(t.events)for(o in t.events)r[o]?k.event.remove(n,o):k.removeEvent(n,o,t.handle);n[x.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return d(this,function(e){return void 0===e?k.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 _(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return _(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Le(this,e)).insertBefore(e,t.firstChild)})},before:function(){return _(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return _(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&&(k.cleanData(B(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return d(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!E[(Te.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(B(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return _(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(B(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){k.fn[e]=function(e){for(var t,n=[],o=k(e),r=o.length-1,i=0;i<=r;i++)t=i===r?this:this.clone(!0),k(o[i])[a](t),I.apply(n,t.get());return this.pushStack(n)}});function Ie(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:w).getComputedStyle(e)}function Oe(e,t,n){var o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in n=n.call(e),t)e.style[o]=r[o];return n}var Pe,We,$e,ze,Ue,Ve,Xe,r,Ge=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ke=new RegExp(p.join("|"),"i");function Qe(){var e;r&&(Xe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",j.appendChild(Xe).appendChild(r),e=w.getComputedStyle(r),Pe="1%"!==e.top,Ve=12===Ye(e.marginLeft),r.style.right="60%",ze=36===Ye(e.right),We=36===Ye(e.width),r.style.position="absolute",$e=12===Ye(r.offsetWidth/3),j.removeChild(Xe),r=null)}function Ye(e){return Math.round(parseFloat(e))}function Je(e,t,n){var o,r,i=e.style;return(n=n||Ie(e))&&(""!==(r=n.getPropertyValue(t)||n[t])||S(e)||(r=k.style(e,t)),!g.pixelBoxStyles()&&Ge.test(r)&&Ke.test(t)&&(e=i.width,t=i.minWidth,o=i.maxWidth,i.minWidth=i.maxWidth=i.width=r,r=n.width,i.width=e,i.minWidth=t,i.maxWidth=o)),void 0!==r?r+"":r}function Ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Xe=T.createElement("div"),(r=T.createElement("div")).style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===r.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return Qe(),We},pixelBoxStyles:function(){return Qe(),ze},pixelPosition:function(){return Qe(),Pe},reliableMarginLeft:function(){return Qe(),Ve},scrollboxSize:function(){return Qe(),$e},reliableTrDimensions:function(){var e,t,n;return null==Ue&&(e=T.createElement("table"),t=T.createElement("tr"),n=T.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",j.appendChild(e).appendChild(t).appendChild(n),n=w.getComputedStyle(t),Ue=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,j.removeChild(e)),Ue}}));var et=["Webkit","Moz","ms"],tt=T.createElement("div").style,nt={};function ot(e){var t=k.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,it=/^--/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function ut(e,t,n){var o=ye.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function lt(e,t,n,o,r,i){var a="width"===t?1:0,s=0,u=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=k.css(e,n+p[a],!0,r)),o?("content"===n&&(u-=k.css(e,"padding"+p[a],!0,r)),"margin"!==n&&(u-=k.css(e,"border"+p[a]+"Width",!0,r))):(u+=k.css(e,"padding"+p[a],!0,r),"padding"!==n?u+=k.css(e,"border"+p[a]+"Width",!0,r):s+=k.css(e,"border"+p[a]+"Width",!0,r));return!o&&0<=i&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-u-s-.5))||0),u}function ct(e,t,n){var o=Ie(e),r=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,o),i=r,a=Je(e,t,o),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&u(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(e,"display",!1,o))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,o),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+lt(e,t,n||(r?"border":"content"),i,o,a)+"px"}function i(e,t,n,o,r){return new i.prototype.init(e,t,n,o,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=Je(e,"opacity"))?"1":t}}},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,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=b(t),u=it.test(t),l=e.style;if(u||(t=ot(s)),a=k.cssHooks[t]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:l[t];"string"===(i=typeof n)&&(r=ye.exec(n))&&r[1]&&(n=be(e,t,r),i="number"),null!=n&&n==n&&("number"!==i||u||(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,o){var r,i=b(t);return it.test(t)||(t=ot(i)),"normal"===(r=void 0===(r=(i=k.cssHooks[t]||k.cssHooks[i])&&"get"in i?i.get(e,!0,n):r)?Je(e,t,o):r)&&t in st&&(r=st[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),k.each(["height","width"],function(e,a){k.cssHooks[a]={get:function(e,t,n){if(t)return!rt.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,a,n):Oe(e,at,function(){return ct(e,a,n)})},set:function(e,t,n){var o=Ie(e),r=!g.scrollboxSize()&&"absolute"===o.position,i=(r||n)&&"border-box"===k.css(e,"boxSizing",!1,o),n=n?lt(e,a,n,i,o):0;return i&&r&&(n-=Math.ceil(e["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-lt(e,a,"border",!1,o)-.5)),n&&(i=ye.exec(t))&&"px"!==(i[3]||"px")&&(e.style[a]=t,t=k.css(e,a)),ut(0,t,n)}}}),k.cssHooks.marginLeft=Ze(g.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(r,i){k.cssHooks[r+i]={expand:function(e){for(var t=0,n={},o="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+p[t]+i]=o[t]||o[t-2]||o[0];return n}},"margin"!==r&&(k.cssHooks[r+i].set=ut)}),k.fn.extend({css:function(e,t){return d(this,function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=Ie(e),r=t.length;a<r;a++)i[t[a]]=k.css(e,t[a],!1,o);return i}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=i).prototype={constructor:i,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(k.cssNumber[n]?"":"px")},cur:function(){var e=i.propHooks[this.prop];return(e&&e.get?e:i.propHooks._default).get(this)},run:function(e){var t,n=i.propHooks[this.prop];return this.options.duration?this.pos=t=k.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),(n&&n.set?n:i.propHooks._default).set(this),this}}).init.prototype=i.prototype,(i.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=k.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=i.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=i.prototype.init,k.fx.step={};var D,dt,a,N,pt=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;function ht(){dt&&(!1===T.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(ht):w.setTimeout(ht,k.fx.interval),k.fx.tick())}function mt(){return w.setTimeout(function(){D=void 0}),D=Date.now()}function gt(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=p[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function yt(e,t,n){for(var o,r=(M.tweeners[t]||[]).concat(M.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function M(r,e,t){var n,i,o,a,s,u,l,c=0,d=M.prefilters.length,p=k.Deferred().always(function(){delete f.elem}),f=function(){if(i)return!1;for(var e=D||mt(),e=Math.max(0,h.startTime+h.duration-e),t=1-(e/h.duration||0),n=0,o=h.tweens.length;n<o;n++)h.tweens[n].run(t);return p.notifyWith(r,[h,t,e]),t<1&&o?e:(o||p.notifyWith(r,[h,1,0]),p.resolveWith(r,[h]),!1)},h=p.promise({elem:r,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:D||mt(),duration:t.duration,tweens:[],createTween:function(e,t){t=k.Tween(r,h.opts,e,t,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(t),t},stop:function(e){var t=0,n=e?h.tweens.length:0;if(i)return this;for(i=!0;t<n;t++)h.tweens[t].run(1);return e?(p.notifyWith(r,[h,1,0]),p.resolveWith(r,[h,e])):p.rejectWith(r,[h,e]),this}}),m=h.props,g=m,y=h.opts.specialEasing;for(o in g)if(s=y[a=b(o)],u=g[o],Array.isArray(u)&&(s=u[1],u=g[o]=u[0]),o!==a&&(g[a]=u,delete g[o]),(l=k.cssHooks[a])&&"expand"in l)for(o in u=l.expand(u),delete g[a],u)o in g||(g[o]=u[o],y[o]=s);else y[a]=s;for(;c<d;c++)if(n=M.prefilters[c].call(h,r,m,h.opts))return v(n.stop)&&(k._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return k.map(m,yt,h),v(h.opts.start)&&h.opts.start.call(r,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),k.fx.timer(k.extend(f,{elem:r,anim:h,queue:h.opts.queue})),h}k.Animation=k.extend(M,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,ye.exec(t),n),n}]},tweener:function(e,t){for(var n,o=0,r=(e=v(e)?(t=e,["*"]):e.match(C)).length;o<r;o++)n=e[o],M.tweeners[n]=M.tweeners[n]||[],M.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,a,s,u,l,c="width"in t||"height"in t,d=this,p={},f=e.style,h=e.nodeType&&ge(e),m=x.get(e,"fxshow");for(o in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(r=t[o],pt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[o])continue;h=!0}p[o]=m&&m[o]||k.style(e,o)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(o in c&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=m&&m.display)&&(l=x.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(A([e],!0),l=e.style.display||l,c=k.css(e,"display"),A([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(d.done(function(){f.display=l}),null==l&&(c=f.display,l="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(h=m.hidden):m=x.access(e,"fxshow",{display:l}),i&&(m.hidden=!h),h&&A([e],!0),d.done(function(){for(o in h||A([e]),x.remove(e,"fxshow"),p)k.style(e,o,p[o])})),u=yt(h?m[o]:0,o,d),o in m||(m[o]=u.start,h&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?M.prefilters.unshift(e):M.prefilters.push(e)}}),k.speed=function(e,t,n){var o=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in k.fx.speeds?o.duration=k.fx.speeds[o.duration]:o.duration=k.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&k.dequeue(this,o.queue)},o},k.fn.extend({fadeTo:function(e,t,n,o){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(t,e,n,o){function r(){var e=M(this,k.extend({},t),a);(i||x.get(this,"finish"))&&e.stop(!0)}var i=k.isEmptyObject(t),a=k.speed(e,n,o);return r.finish=r,i||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,e,i){function a(e){var t=e.stop;delete e.stop,t(i)}return"string"!=typeof r&&(i=e,e=r,r=void 0),e&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=k.timers,o=x.get(this);if(t)o[t]&&o[t].stop&&a(o[t]);else for(t in o)o[t]&&o[t].stop&&ft.test(t)&&a(o[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(i),e=!1,n.splice(t,1));!e&&i||k.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=x.get(this),n=t[a+"queue"],o=t[a+"queueHooks"],r=k.timers,i=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<i;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,o){var r=k.fn[o];k.fn[o]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(gt(o,!0),e,t,n)}}),k.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,o){k.fn[e]=function(e,t,n){return this.animate(o,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(D=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),D=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){dt||(dt=!0,ht())},k.fx.stop=function(){dt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(o,e){return o=k.fx&&k.fx.speeds[o]||o,this.queue(e=e||"fx",function(e,t){var n=w.setTimeout(e,o);t.stop=function(){w.clearTimeout(n)}})},a=T.createElement("input"),N=T.createElement("select").appendChild(T.createElement("option")),a.type="checkbox",g.checkOn=""!==a.value,g.optSelected=N.selected,(a=T.createElement("input")).value="t",a.type="radio",g.radioValue="t"===a.value;var vt,bt=k.expr.attrHandle,xt=(k.fn.extend({attr:function(e,t){return d(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?k.prop(e,t,n):(1===i&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?vt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):!(r&&"get"in r&&null!==(o=r.get(e,t)))&&null==(o=k.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){var n;if(!g.radioValue&&"radio"===t&&u(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(C);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),vt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=bt[t]||k.find.attr;bt[t]=function(e,t,n){var o,r,i=t.toLowerCase();return n||(r=bt[i],bt[i]=o,o=null!=a(e,t,n)?i:null,bt[i]=r),o}}),/^(?:input|select|textarea|button)$/i),wt=/^(?:a|area)$/i;function L(e){return(e.match(C)||[]).join(" ")}function q(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(C)||[]}k.fn.extend({prop:function(e,t){return d(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):xt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,o,r,i,a,s=0;if(v(t))return this.each(function(e){k(this).addClass(t.call(this,e,q(this)))});if((e=Tt(t)).length)for(;n=this[s++];)if(a=q(n),o=1===n.nodeType&&" "+L(a)+" "){for(i=0;r=e[i++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");a!==(a=L(o))&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,o,r,i,a,s=0;if(v(t))return this.each(function(e){k(this).removeClass(t.call(this,e,q(this)))});if(!arguments.length)return this.attr("class","");if((e=Tt(t)).length)for(;n=this[s++];)if(a=q(n),o=1===n.nodeType&&" "+L(a)+" "){for(i=0;r=e[i++];)for(;-1<o.indexOf(" "+r+" ");)o=o.replace(" "+r+" "," ");a!==(a=L(o))&&n.setAttribute("class",a)}return this},toggleClass:function(r,t){var i=typeof r,a="string"==i||Array.isArray(r);return"boolean"==typeof t&&a?t?this.addClass(r):this.removeClass(r):v(r)?this.each(function(e){k(this).toggleClass(r.call(this,e,q(this),t),t)}):this.each(function(){var e,t,n,o;if(a)for(t=0,n=k(this),o=Tt(r);e=o[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!=i||((e=q(this))&&x.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==r&&x.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,o=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+L(q(t))+" ").indexOf(o))return!0;return!1}});function kt(e){e.stopPropagation()}var Ct=/\r/g,jt=(k.fn.extend({val:function(t){var n,e,o,r=this[0];return arguments.length?(o=v(t),this.each(function(e){1===this.nodeType&&(null==(e=o?t.call(this,e,k(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=k.map(e,function(e){return null==e?"":e+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):r?(n=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(r,"value"))?e:"string"==typeof(e=r.value)?e.replace(Ct,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:L(k.text(e))}},select:{get:function(e){for(var t,n=e.options,o=e.selectedIndex,r="select-one"===e.type,i=r?null:[],a=r?o+1:n.length,s=o<0?a:r?o:0;s<a;s++)if(((t=n[s]).selected||s===o)&&!t.disabled&&(!t.parentNode.disabled||!u(t.parentNode,"optgroup"))){if(t=k(t).val(),r)return t;i.push(t)}return i},set:function(e,t){for(var n,o,r=e.options,i=k.makeArray(t),a=r.length;a--;)((o=r[a]).selected=-1<k.inArray(k.valHooks.option.get(o),i))&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),g.focusin="onfocusin"in w,/^(?:focusinfocus|focusoutblur)$/),St=(k.extend(k.event,{trigger:function(e,t,n,o){var r,i,a,s,u,l,c,d=[n||T],p=$.call(e,"type")?e.type:e,f=$.call(e,"namespace")?e.namespace.split("."):[],h=c=i=n=n||T;if(3!==n.nodeType&&8!==n.nodeType&&!jt.test(p+k.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),s=p.indexOf(":")<0&&"on"+p,(e=e[k.expando]?e:new k.Event(p,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),l=k.event.special[p]||{},o||!l.trigger||!1!==l.trigger.apply(n,t))){if(!o&&!l.noBubble&&!m(n)){for(a=l.delegateType||p,jt.test(a+p)||(h=h.parentNode);h;h=h.parentNode)d.push(h),i=h;i===(n.ownerDocument||T)&&d.push(i.defaultView||i.parentWindow||w)}for(r=0;(h=d[r++])&&!e.isPropagationStopped();)c=h,e.type=1<r?a:l.bindType||p,(u=(x.get(h,"events")||Object.create(null))[e.type]&&x.get(h,"handle"))&&u.apply(h,t),(u=s&&h[s])&&u.apply&&y(h)&&(e.result=u.apply(h,t),!1===e.result&&e.preventDefault());return e.type=p,o||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.pop(),t)||!y(n)||s&&v(n[p])&&!m(n)&&((i=n[s])&&(n[s]=null),k.event.triggered=p,e.isPropagationStopped()&&c.addEventListener(p,kt),n[p](),e.isPropagationStopped()&&c.removeEventListener(p,kt),k.event.triggered=void 0,i&&(n[s]=i)),e.result}},simulate:function(e,t,n){n=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(n,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,o){function r(e){k.event.simulate(o,e.target,k.event.fix(e))}k.event.special[o]={setup:function(){var e=this.ownerDocument||this.document||this,t=x.access(e,o);t||e.addEventListener(n,r,!0),x.access(e,o,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=x.access(e,o)-1;t?x.access(e,o,t):(e.removeEventListener(n,r,!0),x.remove(e,o))}}}),w.location),At={guid:Date.now()},Et=/\?/,Bt=(k.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/\[\]$/),_t=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;k.param=function(e,t){function n(e,t){t=v(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var o,r=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){n(this.name,this.value)});else for(o in e)!function n(o,e,r,i){if(Array.isArray(e))k.each(e,function(e,t){r||Bt.test(o)?i(o,t):n(o+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==h(e))i(o,e);else for(var t in e)n(o+"["+t+"]",e[t],r,i)}(o,e[o],t,n);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Nt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(_t,"\r\n")}}):{name:t.name,value:n.replace(_t,"\r\n")}}).get()}});var Mt=/%20/g,Lt=/#.*$/,qt=/([?&])_=[^&]*/,Ft=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Ot={},Pt="*/".concat("*"),Wt=T.createElement("a");function $t(i){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,o=0,r=e.toLowerCase().match(C)||[];if(v(t))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(t)):(i[n]=i[n]||[]).push(t)}}function zt(t,o,r,i){var a={},s=t===Ot;function u(e){var n;return a[e]=!0,k.each(t[e]||[],function(e,t){t=t(o,r,i);return"string"!=typeof t||s||a[t]?s?!(n=t):void 0:(o.dataTypes.unshift(t),u(t),!1)}),n}return u(o.dataTypes[0])||!a["*"]&&u("*")}function Ut(e,t){var n,o,r=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o=o||{})[n]=t[n]);return o&&k.extend(!0,e,o),e}Wt.href=St.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,k.ajaxSettings),t):Ut(k.ajaxSettings,e)},ajaxPrefilter:$t(It),ajaxTransport:$t(Ot),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var u,l,c,n,d,p,f,o,h=k.ajaxSetup({},t=t||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,y=k.Deferred(),v=k.Callbacks("once memory"),b=h.statusCode||{},r={},i={},a="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(p){if(!n)for(n={};t=Ft.exec(c);)n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return p?c:null},setRequestHeader:function(e,t){return null==p&&(e=i[e.toLowerCase()]=i[e.toLowerCase()]||e,r[e]=t),this},overrideMimeType:function(e){return null==p&&(h.mimeType=e),this},statusCode:function(e){if(e)if(p)x.always(e[x.status]);else for(var t in e)b[t]=[b[t],e[t]];return this},abort:function(e){e=e||a;return u&&u.abort(e),s(0,e),this}};if(y.promise(x),h.url=((e||h.url||St.href)+"").replace(Rt,St.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(C)||[""],null==h.crossDomain){e=T.createElement("a");try{e.href=h.url,e.href=e.href,h.crossDomain=Wt.protocol+"//"+Wt.host!=e.protocol+"//"+e.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),zt(It,h,t,x),p)return x;for(o in(f=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ht.test(h.type),l=h.url.replace(Lt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Mt,"+")):(e=h.url.slice(l.length),h.data&&(h.processData||"string"==typeof h.data)&&(l+=(Et.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(l=l.replace(qt,"$1"),e=(Et.test(l)?"&":"?")+"_="+At.guid+++e),h.url=l+e),h.ifModified&&(k.lastModified[l]&&x.setRequestHeader("If-Modified-Since",k.lastModified[l]),k.etag[l]&&x.setRequestHeader("If-None-Match",k.etag[l])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pt+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(!1===h.beforeSend.call(m,x,h)||p))return x.abort();if(a="abort",v.add(h.complete),x.done(h.success),x.fail(h.error),u=zt(Ot,h,t,x)){if(x.readyState=1,f&&g.trigger("ajaxSend",[x,h]),p)return x;h.async&&0<h.timeout&&(d=w.setTimeout(function(){x.abort("timeout")},h.timeout));try{p=!1,u.send(r,s)}catch(e){if(p)throw e;s(-1,e)}}else s(-1,"No Transport");function s(e,t,n,o){var r,i,a,s=t;p||(p=!0,d&&w.clearTimeout(d),u=void 0,c=o||"",x.readyState=0<e?4:0,o=200<=e&&e<300||304===e,n&&(a=function(e,t,n){for(var o,r,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){u.unshift(r);break}if(u[0]in n)i=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){i=r;break}a=a||r}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(h,x,n)),!o&&-1<k.inArray("script",h.dataTypes)&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),a=function(e,t,n,o){var r,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(r in l)if((s=r.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}(h,a,x,o),o?(h.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(k.lastModified[l]=n),(n=x.getResponseHeader("etag"))&&(k.etag[l]=n)),204===e||"HEAD"===h.type?s="nocontent":304===e?s="notmodified":(s=a.state,r=a.data,o=!(i=a.error))):(i=s,!e&&s||(s="error",e<0&&(e=0))),x.status=e,x.statusText=(t||s)+"",o?y.resolveWith(m,[r,s,x]):y.rejectWith(m,[x,s,i]),x.statusCode(b),b=void 0,f&&g.trigger(o?"ajaxSuccess":"ajaxError",[x,h,o?r:i]),v.fireWith(m,[x,s]),f&&(g.trigger("ajaxComplete",[x,h]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,r){k[r]=function(e,t,n,o){return v(t)&&(o=o||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:r,dataType:o,data:t,success:n},k.isPlainObject(e)&&e))}}),k.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){return this[0]&&(v(e)&&(e=e.call(this[0])),e=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},Xt=k.ajaxSettings.xhr(),Gt=(g.cors=!!Xt&&"withCredentials"in Xt,g.ajax=Xt=!!Xt,k.ajaxTransport(function(r){var i,a;if(g.cors||Xt&&!r.crossDomain)return{send:function(e,t){var n,o=r.xhr();if(o.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)o[n]=r.xhrFields[n];for(n in r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)o.setRequestHeader(n,e[n]);i=function(e){return function(){i&&(i=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?t(0,"error"):t(o.status,o.statusText):t(Vt[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(),a=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&w.setTimeout(function(){i&&a()})},i=i("abort");try{o.send(r.hasContent&&r.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.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 k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var o,r;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){o=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){o.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(o[0])},abort:function(){r&&r()}}}),[]),Kt=/(=)\?(?=&|$)|\?\?/,Qt=(k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+At.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var o,r,i,a=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Kt,"$1"+o):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return i||k.error(o+" was not called"),i[0]},e.dataTypes[0]="json",r=w[o],w[o]=function(){i=arguments},n.always(function(){void 0===r?k(w).removeProp(o):w[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(o)),i&&v(r)&&r(i[0]),i=r=void 0}),"script"}),g.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((o=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(o)):t=T),o=!n&&[],(n=Y.exec(e))?[t.createElement(n[1])]:(n=Se([e],t,o),o&&o.length&&k(o).remove(),k.merge([],n.childNodes)));var o},k.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return-1<s&&(o=L(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?k("<div>").append(k.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var o,r,i,a,s=k.css(e,"position"),u=k(e),l={};"static"===s&&(e.style.position="relative"),i=u.offset(),o=k.css(e,"top"),a=k.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(o+a).indexOf("auto")?(r=(s=u.position()).top,s.left):(r=parseFloat(o)||0,parseFloat(a)||0),null!=(t=v(t)?t.call(e,n,k.extend({},i)):t).top&&(l.top=t.top-i.top+r),null!=t.left&&(l.left=t.left-i.left+s),"using"in t?t.using.call(e,l):u.css(l)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===k.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(o,"marginTop",!0),left:t.left-r.left-k.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||j})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var i="pageYOffset"===r;k.fn[t]=function(e){return d(this,function(e,t,n){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===n)return o?o[r]:e[t];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):e[t]=n},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Ze(g.pixelPosition,function(e,t){if(t)return t=Je(e,n),Ge.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){k.fn[i]=function(e,t){var n=arguments.length&&(o||"boolean"!=typeof e),r=o||(!0===e||!0===t?"margin":"border");return d(this,function(e,t,n){var o;return m(e)?0===i.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+a],o["scroll"+a],e.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?k.css(e,t,r):k.style(e,t,n,r)},s,n?e:void 0,n)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Yt=(k.proxy=function(e,t){var n,o;if("string"==typeof t&&(o=e[t],t=e,e=o),v(e))return n=s.call(arguments,2),(o=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,o},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=u,k.isFunction=v,k.isWindow=m,k.camelCase=b,k.type=h,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k}),w.jQuery),Jt=w.$;return k.noConflict=function(e){return w.$===k&&(w.$=Jt),e&&w.jQuery===k&&(w.jQuery=Yt),k},void 0===F&&(w.jQuery=w.$=k),k});var s=jQuery.noConflict(!0),u={removeAttributeValue:function(e,t,n){var o;e.getAttribute(t)&&(e.getAttribute(t)==n?e.removeAttribute(t):(n=new RegExp("(^|\\s)"+n+"(\\s|$)"),(o=e.getAttribute(t).match(n))&&3==o.length&&e.setAttribute(t,e.getAttribute(t).replace(n,o[1]&&o[2]?" ":""))))},addAttributeValue:function(e,t,n){e.getAttribute(t)?new RegExp("(^|\\s)"+n+"(\\s|$)").test(e.getAttribute(t))||e.setAttribute(t,e.getAttribute(t)+" "+n):e.setAttribute(t,n)},dragAndDropSupported:function(){return void 0!==document.createElement("div").ondrop},formDataSupported:function(){return"function"==typeof FormData},fileApiSupported:function(){var e=document.createElement("input");return e.type="file",void 0!==e.files},nodeListForEach:function(e,t){if(window.NodeList.prototype.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t.call(window,e[n],n,e)},initAll:function(e){var e=void 0!==(e=void 0!==e?e:{}).scope?e.scope:document,t=e.querySelectorAll('[data-module="moj-add-another"]'),t=(u.nodeListForEach(t,function(e){new u.AddAnother(e)}),e.querySelectorAll('[data-module="moj-multi-select"]')),t=(u.nodeListForEach(t,function(e){new u.MultiSelect({container:e.querySelector(e.getAttribute("data-multi-select-checkbox")),checkboxes:e.querySelectorAll("tbody .govuk-checkboxes__input")})}),e.querySelectorAll('[data-module="moj-password-reveal"]')),t=(u.nodeListForEach(t,function(e){new u.PasswordReveal(e)}),e.querySelectorAll('[data-module="moj-rich-text-editor"]')),t=(u.nodeListForEach(t,function(e){var t={textarea:s(e)},e=e.getAttribute("data-moj-rich-text-editor-toolbar");if(e){var n,o=e.split(",");for(n in t.toolbar={},o)t.toolbar[o[n]]=!0}new u.RichTextEditor(t)}),e.querySelectorAll('[data-module="moj-search-toggle"]')),t=(u.nodeListForEach(t,function(e){new u.SearchToggle({toggleButton:{container:s(e.querySelector(".moj-search-toggle__toggle")),text:e.getAttribute("data-moj-search-toggle-text")},search:{container:s(e.querySelector(".moj-search"))}})}),e.querySelectorAll('[data-module="moj-sortable-table"]')),t=(u.nodeListForEach(t,function(e){new u.SortableTable({table:e})}),e.querySelectorAll('[data-module="moj-sortable-table"]'));u.nodeListForEach(t,function(e){new u.SortableTable({table:e})})},AddAnother:function(e){this.container=s(e),this.container.data("moj-add-another-initialised")||(this.container.data("moj-add-another-initialised",!0),this.container.on("click",".moj-add-another__remove-button",s.proxy(this,"onRemoveButtonClick")),this.container.on("click",".moj-add-another__add-button",s.proxy(this,"onAddButtonClick")),this.container.find(".moj-add-another__add-button, moj-add-another__remove-button").prop("type","button"))}};return u.AddAnother.prototype.onAddButtonClick=function(e){var t=this.getNewItem(),n=(this.updateAttributes(this.getItems().length,t),this.resetItem(t),this.getItems().first());this.hasRemoveButton(n)||this.createRemoveButton(n),this.getItems().last().after(t),t.find("input, textarea, select").first().focus()},u.AddAnother.prototype.hasRemoveButton=function(e){return e.find(".moj-add-another__remove-button").length},u.AddAnother.prototype.getItems=function(){return this.container.find(".moj-add-another__item")},u.AddAnother.prototype.getNewItem=function(){var e=this.getItems().first().clone();return this.hasRemoveButton(e)||this.createRemoveButton(e),e},u.AddAnother.prototype.updateAttributes=function(o,r){r.find("[data-name]").each(function(e,t){var n=t.id;t.name=s(t).attr("data-name").replace(/%index%/,o),t.id=s(t).attr("data-id").replace(/%index%/,o),(s(t).siblings("label")[0]||s(t).parents("label")[0]||r.find('[for="'+n+'"]')[0]).htmlFor=t.id})},u.AddAnother.prototype.createRemoveButton=function(e){e.append('<button type="button" class="govuk-button govuk-button--secondary moj-add-another__remove-button">Remove</button>')},u.AddAnother.prototype.resetItem=function(e){e.find("[data-name], [data-id]").each(function(e,t){"checkbox"==t.type||"radio"==t.type?t.checked=!1:t.value=""})},u.AddAnother.prototype.onRemoveButtonClick=function(e){s(e.currentTarget).parents(".moj-add-another__item").remove();e=this.getItems();1===e.length&&e.find(".moj-add-another__remove-button").remove(),e.each(s.proxy(function(e,t){this.updateAttributes(e,s(t))},this)),this.focusHeading()},u.AddAnother.prototype.focusHeading=function(){this.container.find(".moj-add-another__heading").focus()},u.ButtonMenu=function(e){this.container=e.container,this.menu=this.container.find(".moj-button-menu__wrapper"),e.menuClasses&&this.menu.addClass(e.menuClasses),this.menu.attr("role","menu"),this.mq=e.mq,this.buttonText=e.buttonText,this.buttonClasses=e.buttonClasses||"",this.keys={esc:27,up:38,down:40,tab:9},this.menu.on("keydown","[role=menuitem]",s.proxy(this,"onButtonKeydown")),this.createToggleButton(),this.setupResponsiveChecks(),s(document).on("click",s.proxy(this,"onDocumentClick"))},u.ButtonMenu.prototype.onDocumentClick=function(e){s.contains(this.container[0],e.target)||this.hideMenu()},u.ButtonMenu.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button moj-button-menu__toggle-button '+this.buttonClasses+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.menuButton.on("keydown",s.proxy(this,"onMenuKeyDown"))},u.ButtonMenu.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia(this.mq),this.mql.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mql)},u.ButtonMenu.prototype.checkMode=function(e){e.matches?this.enableBigMode():this.enableSmallMode()},u.ButtonMenu.prototype.enableSmallMode=function(){this.container.prepend(this.menuButton),this.hideMenu(),this.removeButtonClasses(),this.menu.attr("role","menu"),this.container.find(".moj-button-menu__item").attr("role","menuitem")},u.ButtonMenu.prototype.enableBigMode=function(){this.menuButton.detach(),this.showMenu(),this.addButtonClasses(),this.menu.removeAttr("role"),this.container.find(".moj-button-menu__item").removeAttr("role")},u.ButtonMenu.prototype.removeButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(e,t){s(t).hasClass("govuk-button--secondary")&&(s(t).attr("data-secondary","true"),s(t).removeClass("govuk-button--secondary")),s(t).hasClass("govuk-button--warning")&&(s(t).attr("data-warning","true"),s(t).removeClass("govuk-button--warning")),s(t).removeClass("govuk-button")})},u.ButtonMenu.prototype.addButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(e,t){"true"==s(t).attr("data-secondary")&&s(t).addClass("govuk-button--secondary"),"true"==s(t).attr("data-warning")&&s(t).addClass("govuk-button--warning"),s(t).addClass("govuk-button")})},u.ButtonMenu.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false")},u.ButtonMenu.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true")},u.ButtonMenu.prototype.onMenuButtonClick=function(){this.toggle()},u.ButtonMenu.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.menu.find("[role=menuitem]").first().focus()):(this.hideMenu(),this.menuButton.focus())},u.ButtonMenu.prototype.onMenuKeyDown=function(e){e.keyCode===this.keys.down&&this.toggle()},u.ButtonMenu.prototype.onButtonKeydown=function(e){switch(e.keyCode){case this.keys.up:e.preventDefault(),this.focusPrevious(e.currentTarget);break;case this.keys.down:e.preventDefault(),this.focusNext(e.currentTarget);break;case this.keys.esc:this.mq.matches||(this.menuButton.focus(),this.hideMenu());break;case this.keys.tab:this.mq.matches||this.hideMenu()}},u.ButtonMenu.prototype.focusNext=function(e){e=s(e).next();(e[0]?e:this.container.find("[role=menuitem]").first()).focus()},u.ButtonMenu.prototype.focusPrevious=function(e){e=s(e).prev();(e[0]?e:this.container.find("[role=menuitem]").last()).focus()},u.FilterToggleButton=function(e){this.options=e,this.container=this.options.toggleButton.container,this.createToggleButton(),this.setupResponsiveChecks(),this.options.filter.container.attr("tabindex","-1"),this.options.startHidden&&this.hideMenu()},u.FilterToggleButton.prototype.setupResponsiveChecks=function(){this.mq=window.matchMedia(this.options.bigModeMediaQuery),this.mq.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mq)},u.FilterToggleButton.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button '+this.options.toggleButton.classes+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.options.toggleButton.showText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.options.toggleButton.container.append(this.menuButton)},u.FilterToggleButton.prototype.checkMode=function(e){e.matches?this.enableBigMode():this.enableSmallMode()},u.FilterToggleButton.prototype.enableBigMode=function(){this.showMenu(),this.removeCloseButton()},u.FilterToggleButton.prototype.enableSmallMode=function(){this.hideMenu(),this.addCloseButton()},u.FilterToggleButton.prototype.addCloseButton=function(){this.options.closeButton&&(this.closeButton=s('<button class="moj-filter__close" type="button">'+this.options.closeButton.text+"</button>"),this.closeButton.on("click",s.proxy(this,"onCloseClick")),this.options.closeButton.container.append(this.closeButton))},u.FilterToggleButton.prototype.onCloseClick=function(){this.hideMenu(),this.menuButton.focus()},u.FilterToggleButton.prototype.removeCloseButton=function(){this.closeButton&&(this.closeButton.remove(),this.closeButton=null)},u.FilterToggleButton.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false"),this.options.filter.container.addClass("moj-js-hidden"),this.menuButton.text(this.options.toggleButton.showText)},u.FilterToggleButton.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true"),this.options.filter.container.removeClass("moj-js-hidden"),this.menuButton.text(this.options.toggleButton.hideText)},u.FilterToggleButton.prototype.onMenuButtonClick=function(){this.toggle()},u.FilterToggleButton.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.options.filter.container.focus()):this.hideMenu()},u.FormValidator=function(e,t){this.form=e,this.errors=[],this.validators=[],s(this.form).on("submit",s.proxy(this,"onSubmit")),this.summary=t&&t.summary?s(t.summary):s(".govuk-error-summary"),this.originalTitle=document.title},u.FormValidator.entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},u.FormValidator.prototype.escapeHtml=function(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return u.FormValidator.entityMap[e]})},u.FormValidator.prototype.resetTitle=function(){document.title=this.originalTitle},u.FormValidator.prototype.updateTitle=function(){document.title=this.errors.length+" errors - "+document.title},u.FormValidator.prototype.showSummary=function(){this.summary.html(this.getSummaryHtml()),this.summary.removeClass("moj-hidden"),this.summary.attr("aria-labelledby","errorSummary-heading"),this.summary.focus()},u.FormValidator.prototype.getSummaryHtml=function(){o='<h2 id="error-summary-title" class="govuk-error-summary__title">There is a problem</h2><div class="govuk-error-summary__body"><ul class="govuk-list govuk-error-summary__list">';for(var e=0,t=this.errors.length;e<t;e++)var n=this.errors[e],o=(o=(o=(o+="<li>")+('<a href="#'+this.escapeHtml(n.fieldName)+'">'))+this.escapeHtml(n.message))+"</a>"+"</li>";return o=o+"</ul>"+"</div>"},u.FormValidator.prototype.hideSummary=function(){this.summary.addClass("moj-hidden"),this.summary.removeAttr("aria-labelledby")},u.FormValidator.prototype.onSubmit=function(e){this.removeInlineErrors(),this.hideSummary(),this.resetTitle(),this.validate()||(e.preventDefault(),this.updateTitle(),this.showSummary(),this.showInlineErrors())},u.FormValidator.prototype.showInlineErrors=function(){for(var e=0,t=this.errors.length;e<t;e++)this.showInlineError(this.errors[e])},u.FormValidator.prototype.showInlineError=function(e){var t=e.fieldName+"-error",n='<span class="govuk-error-message" id="'+t+'">'+this.escapeHtml(e.message)+"</span>",e=s("#"+e.fieldName),o=e.parents(".govuk-form-group"),r=o.find("label"),i=o.find("legend"),a=o.find("fieldset");o.addClass("govuk-form-group--error"),i.length?(i.after(n),o.attr("aria-invalid","true"),u.addAttributeValue(a[0],"aria-describedby",t)):(r.after(n),e.attr("aria-invalid","true"),u.addAttributeValue(e[0],"aria-describedby",t))},u.FormValidator.prototype.removeInlineErrors=function(){for(var e=0;e<this.errors.length;e++)this.removeInlineError(this.errors[e])},u.FormValidator.prototype.removeInlineError=function(e){var t=s("#"+e.fieldName).parents(".govuk-form-group"),e=(t.find(".govuk-error-message").remove(),t.removeClass("govuk-form-group--error"),t.find("[aria-invalid]").attr("aria-invalid","false"),e.fieldName+"-error");u.removeAttributeValue(t.find("[aria-describedby]")[0],"aria-describedby",e)},u.FormValidator.prototype.addValidator=function(e,t){this.validators.push({fieldName:e,rules:t,field:this.form.elements[e]})},u.FormValidator.prototype.validate=function(){this.errors=[];for(var e,t,n=null,o=0;o<this.validators.length;o++)for(n=this.validators[o],t=0;t<n.rules.length;t++){if("boolean"==typeof(e=n.rules[t].method(n.field,n.rules[t].params))&&!e){this.errors.push({fieldName:n.fieldName,message:n.rules[t].message});break}if("string"==typeof e){this.errors.push({fieldName:e,message:n.rules[t].message});break}}return 0===this.errors.length},u.dragAndDropSupported()&&u.formDataSupported()&&u.fileApiSupported()&&(u.MultiFileUpload=function(e){this.defaultParams={uploadFileEntryHook:s.noop,uploadFileExitHook:s.noop,uploadFileErrorHook:s.noop,fileDeleteHook:s.noop,uploadStatusText:"Uploading files, please wait",dropzoneHintText:"Drag and drop files here or",dropzoneButtonText:"Choose files"},this.params=s.extend({},this.defaultParams,e),this.params.container.addClass("moj-multi-file-upload--enhanced"),this.feedbackContainer=this.params.container.find(".moj-multi-file__uploaded-files"),this.setupFileInput(),this.setupDropzone(),this.setupLabel(),this.setupStatusBox(),this.params.container.on("click",".moj-multi-file-upload__delete",s.proxy(this,"onFileDeleteClick"))},u.MultiFileUpload.prototype.setupDropzone=function(){this.fileInput.wrap('<div class="moj-multi-file-upload__dropzone" />'),this.dropzone=this.params.container.find(".moj-multi-file-upload__dropzone"),this.dropzone.on("dragover",s.proxy(this,"onDragOver")),this.dropzone.on("dragleave",s.proxy(this,"onDragLeave")),this.dropzone.on("drop",s.proxy(this,"onDrop"))},u.MultiFileUpload.prototype.setupLabel=function(){this.label=s('<label for="'+this.fileInput[0].id+'" class="govuk-button govuk-button--secondary">'+this.params.dropzoneButtonText+"</label>"),this.dropzone.append('<p class="govuk-body">'+this.params.dropzoneHintText+"</p>"),this.dropzone.append(this.label)},u.MultiFileUpload.prototype.setupFileInput=function(){this.fileInput=this.params.container.find(".moj-multi-file-upload__input"),this.fileInput.on("change",s.proxy(this,"onFileChange")),this.fileInput.on("focus",s.proxy(this,"onFileFocus")),this.fileInput.on("blur",s.proxy(this,"onFileBlur"))},u.MultiFileUpload.prototype.setupStatusBox=function(){this.status=s('<div aria-live="polite" role="status" class="govuk-visually-hidden" />'),this.dropzone.append(this.status)},u.MultiFileUpload.prototype.onDragOver=function(e){e.preventDefault(),this.dropzone.addClass("moj-multi-file-upload--dragover")},u.MultiFileUpload.prototype.onDragLeave=function(){this.dropzone.removeClass("moj-multi-file-upload--dragover")},u.MultiFileUpload.prototype.onDrop=function(e){e.preventDefault(),this.dropzone.removeClass("moj-multi-file-upload--dragover"),this.feedbackContainer.removeClass("moj-hidden"),this.status.html(this.params.uploadStatusText),this.uploadFiles(e.originalEvent.dataTransfer.files)},u.MultiFileUpload.prototype.uploadFiles=function(e){for(var t=0;t<e.length;t++)this.uploadFile(e[t])},u.MultiFileUpload.prototype.onFileChange=function(e){this.feedbackContainer.removeClass("moj-hidden"),this.status.html(this.params.uploadStatusText),this.uploadFiles(e.currentTarget.files),this.fileInput.replaceWith(s(e.currentTarget).val("").clone(!0)),this.setupFileInput(),this.fileInput.focus()},u.MultiFileUpload.prototype.onFileFocus=function(e){this.label.addClass("moj-multi-file-upload--focused")},u.MultiFileUpload.prototype.onFileBlur=function(e){this.label.removeClass("moj-multi-file-upload--focused")},u.MultiFileUpload.prototype.getSuccessHtml=function(e){return'<span class="moj-multi-file-upload__success"> <svg class="moj-banner__icon" fill="currentColor" role="presentation" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" height="25" width="25"><path d="M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"/></svg> '+e.messageHtml+"</span>"},u.MultiFileUpload.prototype.getErrorHtml=function(e){return'<span class="moj-multi-file-upload__error"> <svg class="moj-banner__icon" fill="currentColor" role="presentation" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" height="25" width="25"><path d="M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"/></svg> '+e.message+"</span>"},u.MultiFileUpload.prototype.getFileRowHtml=function(e){var t="";return(t+='<div class="govuk-summary-list__row moj-multi-file-upload__row">')+' <div class="govuk-summary-list__value moj-multi-file-upload__message">'+('<span class="moj-multi-file-upload__filename">'+e.name+"</span>")+'<span class="moj-multi-file-upload__progress">0%</span>'+" </div>"+' <div class="govuk-summary-list__actions moj-multi-file-upload__actions"></div>'+"</div>"},u.MultiFileUpload.prototype.getDeleteButtonHtml=function(e){var t='<button class="moj-multi-file-upload__delete govuk-button govuk-button--secondary govuk-!-margin-bottom-0" type="button" name="delete" value="'+e.filename+'">';return t+('Delete <span class="govuk-visually-hidden">'+e.originalname+"</span>")+"</button>"},u.MultiFileUpload.prototype.uploadFile=function(o){this.params.uploadFileEntryHook(this,o);var e=new FormData,t=(e.append("documents",o),s(this.getFileRowHtml(o)));this.feedbackContainer.find(".moj-multi-file-upload__list").append(t),s.ajax({url:this.params.uploadUrl,type:"post",data:e,processData:!1,contentType:!1,success:s.proxy(function(e){e.error?(t.find(".moj-multi-file-upload__message").html(this.getErrorHtml(e.error)),this.status.html(e.error.message)):(t.find(".moj-multi-file-upload__message").html(this.getSuccessHtml(e.success)),this.status.html(e.success.messageText)),t.find(".moj-multi-file-upload__actions").append(this.getDeleteButtonHtml(e.file)),this.params.uploadFileExitHook(this,o,e)},this),error:s.proxy(function(e,t,n){this.params.uploadFileErrorHook(this,o,e,t,n)},this),xhr:function(){var e=new XMLHttpRequest;return e.upload.addEventListener("progress",function(e){e.lengthComputable&&(e=e.loaded/e.total,e=parseInt(100*e,10),t.find(".moj-multi-file-upload__progress").text(" "+e+"%"))},!1),e}})},u.MultiFileUpload.prototype.onFileDeleteClick=function(e){e.preventDefault();var t=s(e.currentTarget),e={};e[t[0].name]=t[0].value,s.ajax({url:this.params.deleteUrl,type:"post",dataType:"json",data:e,success:s.proxy(function(e){e.error||(t.parents(".moj-multi-file-upload__row").remove(),0===this.feedbackContainer.find(".moj-multi-file-upload__row").length&&this.feedbackContainer.addClass("moj-hidden")),this.params.fileDeleteHook(this,e)},this)})}),u.MultiSelect=function(e){this.container=s(e.container),this.container.data("moj-multi-select-initialised")||(this.container.data("moj-multi-select-initialised",!0),this.toggle=s(this.getToggleHtml()),this.toggleButton=this.toggle.find("input"),this.toggleButton.on("click",s.proxy(this,"onButtonClick")),this.container.append(this.toggle),this.checkboxes=s(e.checkboxes),this.checkboxes.on("click",s.proxy(this,"onCheckboxClick")),this.checked=e.checked||!1)},u.MultiSelect.prototype.getToggleHtml=function(){return'<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox"> <input type="checkbox" class="govuk-checkboxes__input" id="checkboxes-all"> <label class="govuk-label govuk-checkboxes__label moj-multi-select__toggle-label" for="checkboxes-all"> <span class="govuk-visually-hidden">Select all</span> </label></div>'},u.MultiSelect.prototype.onButtonClick=function(e){this.checked?(this.uncheckAll(),this.toggleButton[0].checked=!1):(this.checkAll(),this.toggleButton[0].checked=!0)},u.MultiSelect.prototype.checkAll=function(){this.checkboxes.each(s.proxy(function(e,t){t.checked=!0},this)),this.checked=!0},u.MultiSelect.prototype.uncheckAll=function(){this.checkboxes.each(s.proxy(function(e,t){t.checked=!1},this)),this.checked=!1},u.MultiSelect.prototype.onCheckboxClick=function(e){e.target.checked?this.checkboxes.filter(":checked").length===this.checkboxes.length&&(this.toggleButton[0].checked=!0,this.checked=!0):(this.toggleButton[0].checked=!1,this.checked=!1)},u.PasswordReveal=function(e){this.el=e;e=s(this.el);e.data("moj-password-reveal-initialised")||(e.data("moj-password-reveal-initialised",!0),e.attr("spellcheck","false"),e.wrap('<div class="moj-password-reveal"></div>'),this.container=s(this.el).parent(),this.createButton())},u.PasswordReveal.prototype.createButton=function(){this.button=s('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show <span class="govuk-visually-hidden">password</span></button>'),this.container.append(this.button),this.button.on("click",s.proxy(this,"onButtonClick"))},u.PasswordReveal.prototype.onButtonClick=function(){"password"===this.el.type?(this.el.type="text",this.button.html('Hide <span class="govuk-visually-hidden">password</span>')):(this.el.type="password",this.button.html('Show <span class="govuk-visually-hidden">password</span>'))},"contentEditable"in document.documentElement&&(u.RichTextEditor=function(e){this.options=e,this.options.toolbar=this.options.toolbar||{bold:!1,italic:!1,underline:!1,bullets:!0,numbers:!0},this.textarea=this.options.textarea,this.container=s(this.textarea).parent(),this.container.data("moj-rich-text-editor-initialised")||(this.container.data("moj-rich-text-editor-initialised",!0),this.createToolbar(),this.hideDefault(),this.configureToolbar(),this.keys={left:37,right:39,up:38,down:40},this.container.on("click",".moj-rich-text-editor__toolbar-button",s.proxy(this,"onButtonClick")),this.container.find(".moj-rich-text-editor__content").on("input",s.proxy(this,"onEditorInput")),this.container.find("label").on("click",s.proxy(this,"onLabelClick")),this.toolbar.on("keydown",s.proxy(this,"onToolbarKeydown")))},u.RichTextEditor.prototype.onToolbarKeydown=function(e){switch(e.keyCode){case this.keys.right:case this.keys.down:var t,n=(t=this.toolbar.find("button[tabindex=0]")).next("button");n[0]&&(n.focus(),t.attr("tabindex","-1"),n.attr("tabindex","0"));break;case this.keys.left:case this.keys.up:n=(t=this.toolbar.find("button[tabindex=0]")).prev("button");n[0]&&(n.focus(),t.attr("tabindex","-1"),n.attr("tabindex","0"))}},u.RichTextEditor.prototype.getToolbarHtml=function(){var e="";return e+='<div class="moj-rich-text-editor__toolbar" role="toolbar">',this.options.toolbar.bold&&(e+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--bold" type="button" data-command="bold"><span class="govuk-visually-hidden">Bold</span></button>'),this.options.toolbar.italic&&(e+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--italic" type="button" data-command="italic"><span class="govuk-visually-hidden">Italic</span></button>'),this.options.toolbar.underline&&(e+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--underline" type="button" data-command="underline"><span class="govuk-visually-hidden">Underline</span></button>'),this.options.toolbar.bullets&&(e+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--unordered-list" type="button" data-command="insertUnorderedList"><span class="govuk-visually-hidden">Unordered list</span></button>'),this.options.toolbar.numbers&&(e+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--ordered-list" type="button" data-command="insertOrderedList"><span class="govuk-visually-hidden">Ordered list</span></button>'),e+="</div>"},u.RichTextEditor.prototype.getEnhancedHtml=function(e){return this.getToolbarHtml()+'<div class="govuk-textarea moj-rich-text-editor__content" contenteditable="true" spellcheck="false"></div>'},u.RichTextEditor.prototype.hideDefault=function(){this.textarea=this.container.find("textarea"),this.textarea.addClass("govuk-visually-hidden"),this.textarea.attr("aria-hidden",!0),this.textarea.attr("tabindex","-1")},u.RichTextEditor.prototype.createToolbar=function(){this.toolbar=document.createElement("div"),this.toolbar.className="moj-rich-text-editor",this.toolbar.innerHTML=this.getEnhancedHtml(),this.container.append(this.toolbar),this.toolbar=this.container.find(".moj-rich-text-editor__toolbar"),this.container.find(".moj-rich-text-editor__content").html(this.textarea.val())},u.RichTextEditor.prototype.configureToolbar=function(){this.buttons=this.container.find(".moj-rich-text-editor__toolbar-button"),this.buttons.prop("tabindex","-1"),this.buttons.first().prop("tabindex","0")},u.RichTextEditor.prototype.onButtonClick=function(e){document.execCommand(s(e.currentTarget).data("command"),!1,null)},u.RichTextEditor.prototype.getContent=function(){return this.container.find(".moj-rich-text-editor__content").html()},u.RichTextEditor.prototype.onEditorInput=function(e){this.updateTextarea()},u.RichTextEditor.prototype.updateTextarea=function(){document.execCommand("defaultParagraphSeparator",!1,"p"),this.textarea.val(this.getContent())},u.RichTextEditor.prototype.onLabelClick=function(e){e.preventDefault(),this.container.find(".moj-rich-text-editor__content").focus()}),u.SearchToggle=function(e){this.options=e,this.options.search.container.data("moj-search-toggle-initialised")||(this.options.search.container.data("moj-search-toggle-initialised",!0),this.toggleButton=s('<button class="moj-search-toggle__button" type="button" aria-haspopup="true" aria-expanded="false">'+this.options.toggleButton.text+'<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="moj-search-toggle__button__icon"><path d="M7.433,12.5790048 C6.06762625,12.5808611 4.75763941,12.0392925 3.79217348,11.0738265 C2.82670755,10.1083606 2.28513891,8.79837375 2.28699522,7.433 C2.28513891,6.06762625 2.82670755,4.75763941 3.79217348,3.79217348 C4.75763941,2.82670755 6.06762625,2.28513891 7.433,2.28699522 C8.79837375,2.28513891 10.1083606,2.82670755 11.0738265,3.79217348 C12.0392925,4.75763941 12.5808611,6.06762625 12.5790048,7.433 C12.5808611,8.79837375 12.0392925,10.1083606 11.0738265,11.0738265 C10.1083606,12.0392925 8.79837375,12.5808611 7.433,12.5790048 L7.433,12.5790048 Z M14.293,12.579 L13.391,12.579 L13.071,12.269 C14.2300759,10.9245158 14.8671539,9.20813198 14.866,7.433 C14.866,3.32786745 11.5381325,-1.65045755e-15 7.433,-1.65045755e-15 C3.32786745,-1.65045755e-15 -1.65045755e-15,3.32786745 -1.65045755e-15,7.433 C-1.65045755e-15,11.5381325 3.32786745,14.866 7.433,14.866 C9.208604,14.8671159 10.9253982,14.2296624 12.27,13.07 L12.579,13.39 L12.579,14.294 L18.296,20 L20,18.296 L14.294,12.579 L14.293,12.579 Z"></path></svg></button>'),this.toggleButton.on("click",s.proxy(this,"onToggleButtonClick")),this.options.toggleButton.container.append(this.toggleButton))},u.SearchToggle.prototype.onToggleButtonClick=function(){"false"==this.toggleButton.attr("aria-expanded")?(this.toggleButton.attr("aria-expanded","true"),this.options.search.container.removeClass("moj-js-hidden"),this.options.search.container.find("input").first().focus()):(this.options.search.container.addClass("moj-js-hidden"),this.toggleButton.attr("aria-expanded","false"))},u.SortableTable=function(e){this.table=s(e.table),this.table.data("moj-search-toggle-initialised")||(this.table.data("moj-search-toggle-initialised",!0),this.setupOptions(e),this.body=this.table.find("tbody"),this.createHeadingButtons(),this.createStatusBox(),this.initialiseSortedColumn(),this.table.on("click","th button",s.proxy(this,"onSortButtonClick")))},u.SortableTable.prototype.setupOptions=function(e){this.statusMessage=(e=e||{}).statusMessage||"Sort by %heading% (%direction%)",this.ascendingText=e.ascendingText||"ascending",this.descendingText=e.descendingText||"descending"},u.SortableTable.prototype.createHeadingButtons=function(){for(var e,t=this.table.find("thead th"),n=0;n<t.length;n++)(e=s(t[n])).attr("aria-sort")&&this.createHeadingButton(e,n)},u.SortableTable.prototype.createHeadingButton=function(e,t){var n=e.text(),t=s('<button type="button" data-index="'+t+'">'+n+"</button>");e.text(""),e.append(t)},u.SortableTable.prototype.createStatusBox=function(){this.status=s('<div aria-live="polite" role="status" aria-atomic="true" class="govuk-visually-hidden" />'),this.table.parent().append(this.status)},u.SortableTable.prototype.initialiseSortedColumn=function(){var o=this.getTableRowsArray();this.table.find("th").filter('[aria-sort="ascending"], [aria-sort="descending"]').first().each((e,t)=>{var n=s(t).attr("aria-sort"),t=s(t).find("button").attr("data-index"),t=this.sort(o,t,n);this.addRows(t)})},u.SortableTable.prototype.onSortButtonClick=function(e){var t=e.currentTarget.getAttribute("data-index"),n=s(e.currentTarget).parent().attr("aria-sort"),n="none"===n||"descending"===n?"ascending":"descending",o=this.getTableRowsArray(),o=this.sort(o,t,n);this.addRows(o),this.removeButtonStates(),this.updateButtonState(s(e.currentTarget),n)},u.SortableTable.prototype.updateButtonState=function(e,t){e.parent().attr("aria-sort",t);var n=this.statusMessage;n=(n=n.replace(/%heading%/,e.text())).replace(/%direction%/,this[t+"Text"]),this.status.text(n)},u.SortableTable.prototype.removeButtonStates=function(){this.table.find("thead th").attr("aria-sort","none")},u.SortableTable.prototype.addRows=function(e){for(var t=0;t<e.length;t++)this.body.append(e[t])},u.SortableTable.prototype.getTableRowsArray=function(){for(var e=[],t=this.body.find("tr"),n=0;n<t.length;n++)e.push(t[n]);return e},u.SortableTable.prototype.sort=function(e,n,o){return e.sort(s.proxy(function(e,t){e=s(e).find("td,th").eq(n),t=s(t).find("td,th").eq(n),e=this.getCellValue(e),t=this.getCellValue(t);return"ascending"===o?e<t?-1:t<e?1:0:t<e?-1:e<t?1:0},this))},u.SortableTable.prototype.getCellValue=function(e){var t=(t=e.attr("data-sort-value"))||e.html();return t=s.isNumeric(t)?parseInt(t,10):t},u});
|
|
1
|
+
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.MOJFrontend=e()}(this,function(){!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function(w,F){"use strict";function v(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function m(t){return null!=t&&t===t.window}var e=[],H=Object.getPrototypeOf,s=e.slice,R=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},I=e.push,O=e.indexOf,P={},W=P.toString,$=P.hasOwnProperty,z=$.toString,U=z.call(Object),g={},T=w.document,V={type:!0,src:!0,nonce:!0,noModule:!0};function X(t,e,n){var o,r,i=(n=n||T).createElement("script");if(i.text=t,e)for(o in V)(r=e[o]||e.getAttribute&&e.getAttribute(o))&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function h(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?P[W.call(t)]||"object":typeof t}var t="3.6.0",k=function(t,e){return new k.fn.init(t,e)};function G(t){var e=!!t&&"length"in t&&t.length,n=h(t);return!v(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}k.fn=k.prototype={jquery:t,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=k.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return k.each(this,t)},map:function(n){return this.pushStack(k.map(this,function(t,e){return n.call(t,e,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(k.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(k.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:I,sort:e.sort,splice:e.splice},k.extend=k.fn.extend=function(){var t,e,n,o,r,i=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[a]||{},a++),"object"==typeof i||v(i)||(i={}),a===s&&(i=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&i!==n&&(u&&n&&(k.isPlainObject(n)||(o=Array.isArray(n)))?(r=i[e],r=o&&!Array.isArray(r)?[]:o||k.isPlainObject(r)?r:{},o=!1,i[e]=k.extend(u,r,n)):void 0!==n&&(i[e]=n));return i},k.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==W.call(t))&&(!(t=H(t))||"function"==typeof(t=$.call(t,"constructor")&&t.constructor)&&z.call(t)===U)},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t,e,n){X(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,o=0;if(G(t))for(n=t.length;o<n&&!1!==e.call(t[o],o,t[o]);o++);else for(o in t)if(!1===e.call(t[o],o,t[o]))break;return t},makeArray:function(t,e){e=e||[];return null!=t&&(G(Object(t))?k.merge(e,"string"==typeof t?[t]:t):I.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:O.call(e,t,n)},merge:function(t,e){for(var n=+e.length,o=0,r=t.length;o<n;o++)t[r++]=e[o];return t.length=r,t},grep:function(t,e,n){for(var o=[],r=0,i=t.length,a=!n;r<i;r++)!e(t[r],r)!=a&&o.push(t[r]);return o},map:function(t,e,n){var o,r,i=0,a=[];if(G(t))for(o=t.length;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return R(a)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=e[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){P["[object "+e+"]"]=e.toLowerCase()});function o(t,e,n){for(var o=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&k(t).is(n))break;o.push(t)}return o}function K(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var t=function(F){function d(t,e){return t="0x"+t.slice(1)-65536,e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))}function H(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function R(){T()}var t,p,x,i,I,f,O,P,w,u,l,T,k,n,C,h,o,r,m,j="sizzle"+ +new Date,c=F.document,S=0,W=0,$=_(),z=_(),U=_(),g=_(),V=function(t,e){return t===e&&(l=!0),0},X={}.hasOwnProperty,e=[],G=e.pop,K=e.push,A=e.push,Q=e.slice,v=function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",J="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Z=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+J+")*)|.*)\\)|)",tt=new RegExp(a+"+","g"),y=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),et=new RegExp("^"+a+"*,"+a+"*"),nt=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),ot=new RegExp(a+"|>"),rt=new RegExp(Z),it=new RegExp("^"+s+"$"),b={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+Z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},at=/HTML$/i,st=/^(?:input|select|textarea|button)$/i,ut=/^h\d$/i,E=/^[^{]+\{\s*\[native \w/,lt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ct=/[+~]/,B=new RegExp("\\\\[\\da-fA-F]{1,6}"+a+"?|\\\\([^\\r\\n\\f])","g"),dt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pt=vt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{A.apply(e=Q.call(c.childNodes),c.childNodes),e[c.childNodes.length].nodeType}catch(t){A={apply:e.length?function(t,e){K.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,o=0;t[n++]=e[o++];);t.length=n-1}}}function D(e,t,n,o){var r,i,a,s,u,l,c=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!o&&(T(t),t=t||k,C)){if(11!==d&&(s=lt.exec(e)))if(r=s[1]){if(9===d){if(!(l=t.getElementById(r)))return n;if(l.id===r)return n.push(l),n}else if(c&&(l=c.getElementById(r))&&m(t,l)&&l.id===r)return n.push(l),n}else{if(s[2])return A.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&p.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(r)),n}if(p.qsa&&!g[e+" "]&&(!h||!h.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(l=e,c=t,1===d&&(ot.test(e)||nt.test(e))){for((c=ct.test(e)&>(t.parentNode)||t)===t&&p.scope||((a=t.getAttribute("id"))?a=a.replace(dt,H):t.setAttribute("id",a=j)),i=(u=f(e)).length;i--;)u[i]=(a?"#"+a:":scope")+" "+q(u[i]);l=u.join(",")}try{return A.apply(n,c.querySelectorAll(l)),n}catch(t){g(e,!0)}finally{a===j&&t.removeAttribute("id")}}}return P(e.replace(y,"$1"),t,n,o)}function _(){var n=[];function o(t,e){return n.push(t+" ")>x.cacheLength&&delete o[n.shift()],o[t+" "]=e}return o}function M(t){return t[j]=!0,t}function N(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ft(t,e){for(var n=t.split("|"),o=n.length;o--;)x.attrHandle[n[o]]=e}function ht(t,e){var n=e&&t,o=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function mt(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&&pt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function L(a){return M(function(i){return i=+i,M(function(t,e){for(var n,o=a([],t.length,i),r=o.length;r--;)t[n=o[r]]&&(t[n]=!(e[n]=t[n]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in p=D.support={},I=D.isXML=function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!at.test(e||t&&t.nodeName||"HTML")},T=D.setDocument=function(t){var t=t?t.ownerDocument||t:c;return t!=k&&9===t.nodeType&&t.documentElement&&(n=(k=t).documentElement,C=!I(k),c!=k&&(t=k.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",R,!1):t.attachEvent&&t.attachEvent("onunload",R)),p.scope=N(function(t){return n.appendChild(t).appendChild(k.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),p.attributes=N(function(t){return t.className="i",!t.getAttribute("className")}),p.getElementsByTagName=N(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),p.getElementsByClassName=E.test(k.getElementsByClassName),p.getById=N(function(t){return n.appendChild(t).id=j,!k.getElementsByName||!k.getElementsByName(j).length}),p.getById?(x.filter.ID=function(t){var e=t.replace(B,d);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&C)return(e=e.getElementById(t))?[e]:[]}):(x.filter.ID=function(t){var e=t.replace(B,d);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var n,o,r,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(r=e.getElementsByName(t),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),x.find.TAG=p.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):p.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,o=[],r=0,i=e.getElementsByTagName(t);if("*"!==t)return i;for(;n=i[r++];)1===n.nodeType&&o.push(n);return o},x.find.CLASS=p.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},o=[],h=[],(p.qsa=E.test(k.querySelectorAll))&&(N(function(t){var e;n.appendChild(t).innerHTML="<a id='"+j+"'></a><select id='"+j+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&h.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||h.push("\\["+a+"*(?:value|"+Y+")"),t.querySelectorAll("[id~="+j+"-]").length||h.push("~="),(e=k.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+a+"*name"+a+"*="+a+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||h.push(":checked"),t.querySelectorAll("a#"+j+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll("\\\f"),h.push("[\\r\\n\\f]")}),N(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&h.push("name"+a+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&h.push(":enabled",":disabled"),n.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),h.push(",.*:")})),(p.matchesSelector=E.test(r=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&N(function(t){p.disconnectedMatch=r.call(t,"*"),r.call(t,"[s!='']:x"),o.push("!=",Z)}),h=h.length&&new RegExp(h.join("|")),o=o.length&&new RegExp(o.join("|")),t=E.test(n.compareDocumentPosition),m=t||E.test(n.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},V=t?function(t,e){if(t===e)return l=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!p.sortDetached&&e.compareDocumentPosition(t)===n?t==k||t.ownerDocument==c&&m(c,t)?-1:e==k||e.ownerDocument==c&&m(c,e)?1:u?v(u,t)-v(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,o=0,r=t.parentNode,i=e.parentNode,a=[t],s=[e];if(!r||!i)return t==k?-1:e==k?1:r?-1:i?1:u?v(u,t)-v(u,e):0;if(r===i)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?ht(a[o],s[o]):a[o]==c?-1:s[o]==c?1:0}),k},D.matches=function(t,e){return D(t,null,null,e)},D.matchesSelector=function(t,e){if(T(t),p.matchesSelector&&C&&!g[e+" "]&&(!o||!o.test(e))&&(!h||!h.test(e)))try{var n=r.call(t,e);if(n||p.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){g(e,!0)}return 0<D(e,k,null,[t]).length},D.contains=function(t,e){return(t.ownerDocument||t)!=k&&T(t),m(t,e)},D.attr=function(t,e){(t.ownerDocument||t)!=k&&T(t);var n=x.attrHandle[e.toLowerCase()],n=n&&X.call(x.attrHandle,e.toLowerCase())?n(t,e,!C):void 0;return void 0!==n?n:p.attributes||!C?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},D.escape=function(t){return(t+"").replace(dt,H)},D.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},D.uniqueSort=function(t){var e,n=[],o=0,r=0;if(l=!p.detectDuplicates,u=!p.sortStable&&t.slice(0),t.sort(V),l){for(;e=t[r++];)e===t[r]&&(o=n.push(r));for(;o--;)t.splice(n[o],1)}return u=null,t},i=D.getText=function(t){var e,n="",o=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[o++];)n+=i(e);return n},(x=D.selectors={cacheLength:50,createPseudo:M,match:b,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(B,d),t[3]=(t[3]||t[4]||t[5]||"").replace(B,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||D.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&D.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return b.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&rt.test(n)&&(e=f(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(B,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=$[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&$(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(t){t=D.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===o:"!="===n?t!==o:"^="===n?o&&0===t.indexOf(o):"*="===n?o&&-1<t.indexOf(o):"$="===n?o&&t.slice(-o.length)===o:"~="===n?-1<(" "+t.replace(tt," ")+" ").indexOf(o):"|="===n&&(t===o||t.slice(0,o.length+1)===o+"-"))}},CHILD:function(h,t,e,m,g){var y="nth"!==h.slice(0,3),v="last"!==h.slice(-4),b="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var o,r,i,a,s,u,l=y!=v?"nextSibling":"previousSibling",c=t.parentNode,d=b&&t.nodeName.toLowerCase(),p=!n&&!b,f=!1;if(c){if(y){for(;l;){for(a=t;a=a[l];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[v?c.firstChild:c.lastChild],v&&p){for(f=(s=(o=(r=(i=(a=c)[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&o[1])&&o[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(f=s=0)||u.pop();)if(1===a.nodeType&&++f&&a===t){r[h]=[S,s,f];break}}else if(!1===(f=p?s=(o=(r=(i=(a=t)[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]||[])[0]===S&&o[1]:f))for(;(a=++s&&a&&a[l]||(f=s=0)||u.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++f||(p&&((r=(i=a[j]||(a[j]={}))[a.uniqueID]||(i[a.uniqueID]={}))[h]=[S,f]),a!==t)););return(f-=g)===m||f%m==0&&0<=f/m}}},PSEUDO:function(t,i){var e,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||D.error("unsupported pseudo: "+t);return a[j]?a(i):1<a.length?(e=[t,t,"",i],x.setFilters.hasOwnProperty(t.toLowerCase())?M(function(t,e){for(var n,o=a(t,i),r=o.length;r--;)t[n=v(t,o[r])]=!(e[n]=o[r])}):function(t){return a(t,0,e)}):a}},pseudos:{not:M(function(t){var o=[],r=[],s=O(t.replace(y,"$1"));return s[j]?M(function(t,e,n,o){for(var r,i=s(t,null,o,[]),a=t.length;a--;)(r=i[a])&&(t[a]=!(e[a]=r))}):function(t,e,n){return o[0]=t,s(o,null,n,r),o[0]=null,!r.pop()}}),has:M(function(e){return function(t){return 0<D(e,t).length}}),contains:M(function(e){return e=e.replace(B,d),function(t){return-1<(t.textContent||i(t)).indexOf(e)}}),lang:M(function(n){return it.test(n||"")||D.error("unsupported lang: "+n),n=n.replace(B,d).toLowerCase(),function(t){var e;do{if(e=C?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=F.location&&F.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===n},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return ut.test(t.nodeName)},input:function(t){return st.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:L(function(){return[0]}),last:L(function(t,e){return[e-1]}),eq:L(function(t,e,n){return[n<0?n+e:n]}),even:L(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:L(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:L(function(t,e,n){for(var o=n<0?n+e:e<n?e:n;0<=--o;)t.push(o);return t}),gt:L(function(t,e,n){for(var o=n<0?n+e:n;++o<e;)t.push(o);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})x.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function yt(){}function q(t){for(var e=0,n=t.length,o="";e<n;e++)o+=t[e].value;return o}function vt(a,t,e){var s=t.dir,u=t.next,l=u||s,c=e&&"parentNode"===l,d=W++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||c)return a(t,e,n);return!1}:function(t,e,n){var o,r,i=[S,d];if(n){for(;t=t[s];)if((1===t.nodeType||c)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||c)if(r=(r=t[j]||(t[j]={}))[t.uniqueID]||(r[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[s]||t;else{if((o=r[l])&&o[0]===S&&o[1]===d)return i[2]=o[2];if((r[l]=i)[2]=a(t,e,n))return!0}return!1}}function bt(r){return 1<r.length?function(t,e,n){for(var o=r.length;o--;)if(!r[o](t,e,n))return!1;return!0}:r[0]}function xt(t,e,n,o,r){for(var i,a=[],s=0,u=t.length,l=null!=e;s<u;s++)!(i=t[s])||n&&!n(i,o,r)||(a.push(i),l&&e.push(s));return a}function wt(f,h,m,g,y,t){return g&&!g[j]&&(g=wt(g)),y&&!y[j]&&(y=wt(y,t)),M(function(t,e,n,o){var r,i,a,s=[],u=[],l=e.length,c=t||function(t,e,n){for(var o=0,r=e.length;o<r;o++)D(t,e[o],n);return n}(h||"*",n.nodeType?[n]:n,[]),d=!f||!t&&h?c:xt(c,s,f,n,o),p=m?y||(t?f:l||g)?[]:e:d;if(m&&m(d,p,n,o),g)for(r=xt(p,u),g(r,[],n,o),i=r.length;i--;)(a=r[i])&&(p[u[i]]=!(d[u[i]]=a));if(t){if(y||f){if(y){for(r=[],i=p.length;i--;)(a=p[i])&&r.push(d[i]=a);y(null,p=[],r,o)}for(i=p.length;i--;)(a=p[i])&&-1<(r=y?v(t,a):s[i])&&(t[r]=!(e[r]=a))}}else p=xt(p===e?p.splice(l,p.length):p),y?y(null,e,p,o):A.apply(e,p)})}function Tt(g,y){function t(t,e,n,o,r){var i,a,s,u=0,l="0",c=t&&[],d=[],p=w,f=t||b&&x.find.TAG("*",r),h=S+=null==p?1:Math.random()||.1,m=f.length;for(r&&(w=e==k||e||r);l!==m&&null!=(i=f[l]);l++){if(b&&i){for(a=0,e||i.ownerDocument==k||(T(i),n=!C);s=g[a++];)if(s(i,e||k,n)){o.push(i);break}r&&(S=h)}v&&((i=!s&&i)&&u--,t&&c.push(i))}if(u+=l,v&&l!==u){for(a=0;s=y[a++];)s(c,d,e,n);if(t){if(0<u)for(;l--;)c[l]||d[l]||(d[l]=G.call(o));d=xt(d)}A.apply(o,d),r&&!t&&0<d.length&&1<u+y.length&&D.uniqueSort(o)}return r&&(S=h,w=p),c}var v=0<y.length,b=0<g.length;return v?M(t):t}return yt.prototype=x.filters=x.pseudos,x.setFilters=new yt,f=D.tokenize=function(t,e){var n,o,r,i,a,s,u,l=z[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=x.preFilter;a;){for(i in n&&!(o=et.exec(a))||(o&&(a=a.slice(o[0].length)||a),s.push(r=[])),n=!1,(o=nt.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(y," ")}),a=a.slice(n.length)),x.filter)!(o=b[i].exec(a))||u[i]&&!(o=u[i](o))||(n=o.shift(),r.push({value:n,type:i,matches:o}),a=a.slice(n.length));if(!n)break}return e?a.length:a?D.error(t):z(t,s).slice(0)},O=D.compile=function(t,e){var n,o=[],r=[],i=U[t+" "];if(!i){for(n=(e=e||f(t)).length;n--;)((i=function t(e){for(var o,n,r,i=e.length,a=x.relative[e[0].type],s=a||x.relative[" "],u=a?1:0,l=vt(function(t){return t===o},s,!0),c=vt(function(t){return-1<v(o,t)},s,!0),d=[function(t,e,n){return t=!a&&(n||e!==w)||((o=e).nodeType?l:c)(t,e,n),o=null,t}];u<i;u++)if(n=x.relative[e[u].type])d=[vt(bt(d),n)];else{if((n=x.filter[e[u].type].apply(null,e[u].matches))[j]){for(r=++u;r<i&&!x.relative[e[r].type];r++);return wt(1<u&&bt(d),1<u&&q(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(y,"$1"),n,u<r&&t(e.slice(u,r)),r<i&&t(e=e.slice(r)),r<i&&q(e))}d.push(n)}return bt(d)}(e[n]))[j]?o:r).push(i);(i=U(t,Tt(r,o))).selector=t}return i},P=D.select=function(t,e,n,o){var r,i,a,s,u,l="function"==typeof t&&t,c=!o&&f(t=l.selector||t);if(n=n||[],1===c.length){if(2<(i=c[0]=c[0].slice(0)).length&&"ID"===(a=i[0]).type&&9===e.nodeType&&C&&x.relative[i[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(B,d),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(i.shift().value.length)}for(r=b.needsContext.test(t)?0:i.length;r--&&(a=i[r],!x.relative[s=a.type]);)if((u=x.find[s])&&(o=u(a.matches[0].replace(B,d),ct.test(i[0].type)&>(e.parentNode)||e))){if(i.splice(r,1),t=o.length&&q(i))break;return A.apply(n,o),n}}return(l||O(t,c))(o,e,!C,n,!e||ct.test(t)&>(e.parentNode)||e),n},p.sortStable=j.split("").sort(V).join("")===j,p.detectDuplicates=!!l,T(),p.sortDetached=N(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),N(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ft("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),p.attributes&&N(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ft("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),N(function(t){return null==t.getAttribute("disabled")})||ft(Y,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),D}(w),Q=(k.find=t,k.expr=t.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=t.uniqueSort,k.text=t.getText,k.isXMLDoc=t.isXML,k.contains=t.contains,k.escapeSelector=t.escape,k.expr.match.needsContext);function u(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(t,n,o){return v(n)?k.grep(t,function(t,e){return!!n.call(t,e,t)!==o}):n.nodeType?k.grep(t,function(t){return t===n!==o}):"string"!=typeof n?k.grep(t,function(t){return-1<O.call(n,t)!==o}):k.filter(n,t,o)}k.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?k.find.matchesSelector(o,t)?[o]:[]:k.find.matches(t,k.grep(e,function(t){return 1===t.nodeType}))},k.fn.extend({find:function(t){var e,n,o=this.length,r=this;if("string"!=typeof t)return this.pushStack(k(t).filter(function(){for(e=0;e<o;e++)if(k.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<o;e++)k.find(t,r[e],n);return 1<o?k.uniqueSort(n):n},filter:function(t){return this.pushStack(J(this,t||[],!1))},not:function(t){return this.pushStack(J(this,t||[],!0))},is:function(t){return!!J(this,"string"==typeof t&&Q.test(t)?k(t):t||[],!1).length}});var Z,tt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,et=((k.fn.init=function(t,e,n){if(!t)return this;if(n=n||Z,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(k):k.makeArray(t,this);if(!(o="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:tt.exec(t))||!o[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(o[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:T,!0)),Y.test(o[1])&&k.isPlainObject(e))for(var o in e)v(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(n=T.getElementById(o[2]))&&(this[0]=n,this.length=1),this}).prototype=k.fn,Z=k(T),/^(?:parents|prev(?:Until|All))/),nt={children:!0,contents:!0,next:!0,prev:!0};function ot(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}k.fn.extend({has:function(t){var e=k(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(k.contains(this,e[t]))return!0})},closest:function(t,e){var n,o=0,r=this.length,i=[],a="string"!=typeof t&&k(t);if(!Q.test(t))for(;o<r;o++)for(n=this[o];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(1<i.length?k.uniqueSort(i):i)},index:function(t){return t?"string"==typeof t?O.call(k(t),this[0]):O.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),k.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return o(t,"parentNode")},parentsUntil:function(t,e,n){return o(t,"parentNode",n)},next:function(t){return ot(t,"nextSibling")},prev:function(t){return ot(t,"previousSibling")},nextAll:function(t){return o(t,"nextSibling")},prevAll:function(t){return o(t,"previousSibling")},nextUntil:function(t,e,n){return o(t,"nextSibling",n)},prevUntil:function(t,e,n){return o(t,"previousSibling",n)},siblings:function(t){return K((t.parentNode||{}).firstChild,t)},children:function(t){return K(t.firstChild)},contents:function(t){return null!=t.contentDocument&&H(t.contentDocument)?t.contentDocument:(u(t,"template")&&(t=t.content||t),k.merge([],t.childNodes))}},function(o,r){k.fn[o]=function(t,e){var n=k.map(this,r,t);return(e="Until"!==o.slice(-5)?t:e)&&"string"==typeof e&&(n=k.filter(e,n)),1<this.length&&(nt[o]||k.uniqueSort(n),et.test(o)&&n.reverse()),this.pushStack(n)}});var C=/[^\x20\t\r\n\f]+/g;function c(t){return t}function rt(t){throw t}function it(t,e,n,o){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(o))}catch(t){n.apply(void 0,[t])}}k.Callbacks=function(o){var t,n;o="string"==typeof o?(t=o,n={},k.each(t.match(C)||[],function(t,e){n[e]=!0}),n):k.extend({},o);function r(){for(s=s||o.once,a=i=!0;l.length;c=-1)for(e=l.shift();++c<u.length;)!1===u[c].apply(e[0],e[1])&&o.stopOnFalse&&(c=u.length,e=!1);o.memory||(e=!1),i=!1,s&&(u=e?[]:"")}var i,e,a,s,u=[],l=[],c=-1,d={add:function(){return u&&(e&&!i&&(c=u.length-1,l.push(e)),function n(t){k.each(t,function(t,e){v(e)?o.unique&&d.has(e)||u.push(e):e&&e.length&&"string"!==h(e)&&n(e)})}(arguments),e&&!i&&r()),this},remove:function(){return k.each(arguments,function(t,e){for(var n;-1<(n=k.inArray(e,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<k.inArray(t,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=e="",this},disabled:function(){return!u},lock:function(){return s=l=[],e||i||(u=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),i||r()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!a}};return d},k.extend({Deferred:function(t){var i=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var r=arguments;return k.Deferred(function(o){k.each(i,function(t,e){var n=v(r[e[4]])&&r[e[4]];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&v(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[e[0]+"With"](this,n?[t]:arguments)})}),r=null}).promise()},then:function(e,n,o){var u=0;function l(r,i,a,s){return function(){function t(){var t,e;if(!(r<u)){if((t=a.apply(n,o))===i.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?s?e.call(t,l(u,i,c,s),l(u,i,rt,s)):(u++,e.call(t,l(u,i,c,s),l(u,i,rt,s),l(u,i,c,i.notifyWith))):(a!==c&&(n=void 0,o=[t]),(s||i.resolveWith)(n,o))}}var n=this,o=arguments,e=s?t:function(){try{t()}catch(t){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(t,e.stackTrace),u<=r+1&&(a!==rt&&(n=void 0,o=[t]),i.rejectWith(n,o))}};r?e():(k.Deferred.getStackHook&&(e.stackTrace=k.Deferred.getStackHook()),w.setTimeout(e))}}return k.Deferred(function(t){i[0][3].add(l(0,t,v(o)?o:c,t.notifyWith)),i[1][3].add(l(0,t,v(e)?e:c)),i[2][3].add(l(0,t,v(n)?n:rt))}).promise()},promise:function(t){return null!=t?k.extend(t,a):a}},s={};return k.each(i,function(t,e){var n=e[2],o=e[5];a[e[1]]=n.add,o&&n.add(function(){r=o},i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),n.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e){return function(t){r[e]=this,i[e]=1<arguments.length?s.call(arguments):t,--n||a.resolveWith(r,i)}}var n=arguments.length,o=n,r=Array(o),i=s.call(arguments),a=k.Deferred();if(n<=1&&(it(t,a.done(e(o)).resolve,a.reject,!n),"pending"===a.state()||v(i[o]&&i[o].then)))return a.then();for(;o--;)it(i[o],e(o),a.reject);return a.promise()}});var at=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,st=(k.Deferred.exceptionHook=function(t,e){w.console&&w.console.warn&&t&&at.test(t.name)&&w.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},k.readyException=function(t){w.setTimeout(function(){throw t})},k.Deferred());function ut(){T.removeEventListener("DOMContentLoaded",ut),w.removeEventListener("load",ut),k.ready()}k.fn.ready=function(t){return st.then(t).catch(function(t){k.readyException(t)}),this},k.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--k.readyWait:k.isReady)||(k.isReady=!0)!==t&&0<--k.readyWait||st.resolveWith(T,[k])}}),k.ready.then=st.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?w.setTimeout(k.ready):(T.addEventListener("DOMContentLoaded",ut),w.addEventListener("load",ut));function d(t,e,n,o,r,i,a){var s=0,u=t.length,l=null==n;if("object"===h(n))for(s in r=!0,n)d(t,e,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,v(o)||(a=!0),e=l?a?(e.call(t,o),null):(l=e,function(t,e,n){return l.call(k(t),n)}):e))for(;s<u;s++)e(t[s],n,a?o:o.call(t[s],s,e(t[s],n)));return r?t:l?e.call(t):u?e(t[0],n):i}var lt=/^-ms-/,ct=/-([a-z])/g;function dt(t,e){return e.toUpperCase()}function b(t){return t.replace(lt,"ms-").replace(ct,dt)}function y(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function pt(){this.expando=k.expando+pt.uid++}pt.uid=1,pt.prototype={cache:function(t){var e=t[this.expando];return e||(e={},y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var o,r=this.cache(t);if("string"==typeof e)r[b(e)]=n;else for(o in e)r[b(o)]=e[o];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][b(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,o=t[this.expando];if(void 0!==o){if(void 0!==e){n=(e=Array.isArray(e)?e.map(b):(e=b(e))in o?[e]:e.match(C)||[]).length;for(;n--;)delete o[e[n]]}void 0!==e&&!k.isEmptyObject(o)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var x=new pt,l=new pt,ft=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ht=/[A-Z]/g;function mt(t,e,n){var o,r;if(void 0===n&&1===t.nodeType)if(o="data-"+e.replace(ht,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(o))){try{n="true"===(r=n)||"false"!==r&&("null"===r?null:r===+r+""?+r:ft.test(r)?JSON.parse(r):r)}catch(t){}l.set(t,e,n)}else n=void 0;return n}k.extend({hasData:function(t){return l.hasData(t)||x.hasData(t)},data:function(t,e,n){return l.access(t,e,n)},removeData:function(t,e){l.remove(t,e)},_data:function(t,e,n){return x.access(t,e,n)},_removeData:function(t,e){x.remove(t,e)}}),k.fn.extend({data:function(n,t){var e,o,r,i=this[0],a=i&&i.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){l.set(this,n)}):d(this,function(t){var e;if(i&&void 0===t)return void 0!==(e=l.get(i,n))||void 0!==(e=mt(i,n))?e:void 0;this.each(function(){l.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=l.get(i),1===i.nodeType&&!x.get(i,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(o=a[e].name).indexOf("data-")&&(o=b(o.slice(5)),mt(i,o,r[o]));x.set(i,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){l.remove(this,t)})}}),k.extend({queue:function(t,e,n){var o;if(t)return o=x.get(t,e=(e||"fx")+"queue"),n&&(!o||Array.isArray(n)?o=x.access(t,e,k.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),o=n.length,r=n.shift(),i=k._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===e&&n.unshift("inprogress"),delete i.stop,r.call(t,function(){k.dequeue(t,e)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return x.get(t,n)||x.access(t,n,{empty:k.Callbacks("once memory").add(function(){x.remove(t,[e+"queue",n])})})}}),k.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?k.queue(this[0],e):void 0===n?this:this.each(function(){var t=k.queue(this,e,n);k._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&k.dequeue(this,e)})},dequeue:function(t){return this.each(function(){k.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||i.resolveWith(a,[a])}var o,r=1,i=k.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(o=x.get(a[s],t+"queueHooks"))&&o.empty&&(r++,o.empty.add(n));return n(),i.promise(e)}});function gt(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&S(t)&&"none"===k.css(t,"display")}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,yt=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),p=["Top","Right","Bottom","Left"],j=T.documentElement,S=function(t){return k.contains(t.ownerDocument,t)},vt={composed:!0};j.getRootNode&&(S=function(t){return k.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});function bt(t,e,n,o){var r,i,a=20,s=o?function(){return o.cur()}:function(){return k.css(t,e,"")},u=s(),l=n&&n[3]||(k.cssNumber[e]?"":"px"),c=t.nodeType&&(k.cssNumber[e]||"px"!==l&&+u)&&yt.exec(k.css(t,e));if(c&&c[3]!==l){for(l=l||c[3],c=+(u/=2)||1;a--;)k.style(t,e,c+l),(1-i)*(1-(i=s()/u||.5))<=0&&(a=0),c/=i;k.style(t,e,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=l,o.start=c,o.end=r)),r}var xt={};function A(t,e){for(var n,o,r,i,a,s=[],u=0,l=t.length;u<l;u++)(o=t[u]).style&&(n=o.style.display,e?("none"===n&&(s[u]=x.get(o,"display")||null,s[u]||(o.style.display="")),""===o.style.display&>(o)&&(s[u]=(a=i=void 0,i=(r=o).ownerDocument,r=r.nodeName,(a=xt[r])||(i=i.body.appendChild(i.createElement(r)),a=k.css(i,"display"),i.parentNode.removeChild(i),xt[r]=a="none"===a?"block":a)))):"none"!==n&&(s[u]="none",x.set(o,"display",n)));for(u=0;u<l;u++)null!=s[u]&&(t[u].style.display=s[u]);return t}k.fn.extend({show:function(){return A(this,!0)},hide:function(){return A(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){gt(this)?k(this).show():k(this).hide()})}});var wt=/^(?:checkbox|radio)$/i,Tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,kt=/^$|^module$|\/(?:java|ecma)script/i,E=(M=T.createDocumentFragment().appendChild(T.createElement("div")),(a=T.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),M.appendChild(a),g.checkClone=M.cloneNode(!0).cloneNode(!0).lastChild.checked,M.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue,M.innerHTML="<option></option>",g.option=!!M.lastChild,{thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]});function B(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&u(t,e)?k.merge([t],n):n}function Ct(t,e){for(var n=0,o=t.length;n<o;n++)x.set(t[n],"globalEval",!e||x.get(e[n],"globalEval"))}E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,g.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);var jt=/<|&#?\w+;/;function St(t,e,n,o,r){for(var i,a,s,u,l,c=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((i=t[p])||0===i)if("object"===h(i))k.merge(d,i.nodeType?[i]:i);else if(jt.test(i)){for(a=a||c.appendChild(e.createElement("div")),s=(Tt.exec(i)||["",""])[1].toLowerCase(),s=E[s]||E._default,a.innerHTML=s[1]+k.htmlPrefilter(i)+s[2],l=s[0];l--;)a=a.lastChild;k.merge(d,a.childNodes),(a=c.firstChild).textContent=""}else d.push(e.createTextNode(i));for(c.textContent="",p=0;i=d[p++];)if(o&&-1<k.inArray(i,o))r&&r.push(i);else if(u=S(i),a=B(c.appendChild(i),"script"),u&&Ct(a),n)for(l=0;i=a[l++];)kt.test(i.type||"")&&n.push(i);return c}var At=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function f(){return!1}function Et(t,e){return t===function(){try{return T.activeElement}catch(t){}}()==("focus"===e)}function Bt(t,e,n,o,r,i){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(o=o||n,n=void 0),e)Bt(t,s,n,o,e[s],i);return t}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=f;else if(!r)return t;return 1===i&&(a=r,(r=function(t){return k().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),t.each(function(){k.event.add(this,e,r,o,n)})}function Dt(t,r,i){i?(x.set(t,r,!1),k.event.add(t,r,{namespace:!1,handler:function(t){var e,n,o=x.get(this,r);if(1&t.isTrigger&&this[r]){if(o.length)(k.event.special[r]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),x.set(this,r,o),e=i(this,r),this[r](),o!==(n=x.get(this,r))||e?x.set(this,r,!1):n={},o!==n)return t.stopImmediatePropagation(),t.preventDefault(),n&&n.value}else o.length&&(x.set(this,r,{value:k.event.trigger(k.extend(o[0],k.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===x.get(t,r)&&k.event.add(t,r,n)}k.event={global:{},add:function(e,t,n,o,r){var i,a,s,u,l,c,d,p,f,h=x.get(e);if(y(e))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&k.find.matchesSelector(j,r),n.guid||(n.guid=k.guid++),(s=h.events)||(s=h.events=Object.create(null)),(a=h.handle)||(a=h.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(C)||[""]).length;u--;)d=f=(p=At.exec(t[u])||[])[1],p=(p[2]||"").split(".").sort(),d&&(l=k.event.special[d]||{},d=(r?l.delegateType:l.bindType)||d,l=k.event.special[d]||{},f=k.extend({type:d,origType:f,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},i),(c=s[d])||((c=s[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,o,p,a)||e.addEventListener&&e.addEventListener(d,a)),l.add&&(l.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),r?c.splice(c.delegateCount++,0,f):c.push(f),k.event.global[d]=!0)},remove:function(t,e,n,o,r){var i,a,s,u,l,c,d,p,f,h,m,g=x.hasData(t)&&x.get(t);if(g&&(u=g.events)){for(l=(e=(e||"").match(C)||[""]).length;l--;)if(f=m=(s=At.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},p=u[f=(o?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)c=p[i],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(p.splice(i,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(t,c));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(t,h,g.handle)||k.removeEvent(t,f,g.handle),delete u[f])}else for(f in u)k.event.remove(t,f+e[l],n,o,!0);k.isEmptyObject(u)&&x.remove(t,"handle events")}},dispatch:function(t){var e,n,o,r,i,a=new Array(arguments.length),s=k.event.fix(t),t=(x.get(this,"events")||Object.create(null))[s.type]||[],u=k.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(i=k.event.handlers.call(this,s,t),e=0;(o=i[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==r.namespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(r=((k.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,o,r,i,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&1<=t.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(i=[],a={},n=0;n<u;n++)void 0===a[r=(o=e[n]).selector+" "]&&(a[r]=o.needsContext?-1<k(r,this).index(l):k.find(r,this,null,[l]).length),a[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[k.expando]?t:new k.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return wt.test(t.type)&&t.click&&u(t,"input")&&Dt(t,"click",n),!1},trigger:function(t){t=this||t;return wt.test(t.type)&&t.click&&u(t,"input")&&Dt(t,"click"),!0},_default:function(t){t=t.target;return wt.test(t.type)&&t.click&&u(t,"input")&&x.get(t,"click")||u(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},k.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},k.Event=function(t,e){if(!(this instanceof k.Event))return new k.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?n:f,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&k.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=n,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=n,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=n,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},function(t,e){k.event.special[t]={setup:function(){return Dt(this,t,Et),!1},trigger:function(){return Dt(this,t),!0},_default:function(){return!0},delegateType:e}}),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){k.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,o=t.handleObj;return n&&(n===this||k.contains(this,n))||(t.type=o.origType,e=o.handler.apply(this,arguments),t.type=r),e}}}),k.fn.extend({on:function(t,e,n,o){return Bt(this,t,e,n,o)},one:function(t,e,n,o){return Bt(this,t,e,n,o,1)},off:function(t,e,n){var o,r;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,k(t.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=f),this.each(function(){k.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r]);return this}});var _t=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Lt(t,e){return u(t,"table")&&u(11!==e.nodeType?e:e.firstChild,"tr")&&k(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ft(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,e){var n,o,r,i;if(1===e.nodeType){if(x.hasData(t)&&(i=x.get(t).events))for(r in x.remove(e,"handle events"),i)for(n=0,o=i[r].length;n<o;n++)k.event.add(e,r,i[r][n]);l.hasData(t)&&(t=l.access(t),t=k.extend({},t),l.set(e,t))}}function D(n,o,r,i){o=R(o);var t,e,a,s,u,l,c=0,d=n.length,p=d-1,f=o[0],h=v(f);if(h||1<d&&"string"==typeof f&&!g.checkClone&&Mt.test(f))return n.each(function(t){var e=n.eq(t);h&&(o[0]=f.call(this,t,e.html())),D(e,o,r,i)});if(d&&(e=(t=St(o,n[0].ownerDocument,!1,n,i)).firstChild,1===t.childNodes.length&&(t=e),e||i)){for(s=(a=k.map(B(t,"script"),qt)).length;c<d;c++)u=t,c!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,B(u,"script"))),r.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,Ft),c=0;c<s;c++)u=a[c],kt.test(u.type||"")&&!x.access(u,"globalEval")&&k.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?k._evalUrl&&!u.noModule&&k._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):X(u.textContent.replace(Nt,""),u,l))}return n}function Rt(t,e,n){for(var o,r=e?k.filter(e,t):t,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||k.cleanData(B(o)),o.parentNode&&(n&&S(o)&&Ct(B(o,"script")),o.parentNode.removeChild(o));return t}k.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var o,r,i,a,s,u,l,c=t.cloneNode(!0),d=S(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||k.isXMLDoc(t)))for(a=B(c),o=0,r=(i=B(t)).length;o<r;o++)s=i[o],u=a[o],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&wt.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(i=i||B(t),a=a||B(c),o=0,r=i.length;o<r;o++)Ht(i[o],a[o]);else Ht(t,c);return 0<(a=B(c,"script")).length&&Ct(a,!d&&B(t,"script")),c},cleanData:function(t){for(var e,n,o,r=k.event.special,i=0;void 0!==(n=t[i]);i++)if(y(n)){if(e=n[x.expando]){if(e.events)for(o in e.events)r[o]?k.event.remove(n,o):k.removeEvent(n,o,e.handle);n[x.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),k.fn.extend({detach:function(t){return Rt(this,t,!0)},remove:function(t){return Rt(this,t)},text:function(t){return d(this,function(t){return void 0===t?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return D(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Lt(this,t).appendChild(t)})},prepend:function(){return D(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Lt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return D(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(k.cleanData(B(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return d(this,function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!_t.test(t)&&!E[(Tt.exec(t)||["",""])[1].toLowerCase()]){t=k.htmlPrefilter(t);try{for(;n<o;n++)1===(e=this[n]||{}).nodeType&&(k.cleanData(B(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return D(this,arguments,function(t){var e=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(B(this)),e&&e.replaceChild(t,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){k.fn[t]=function(t){for(var e,n=[],o=k(t),r=o.length-1,i=0;i<=r;i++)e=i===r?this:this.clone(!0),k(o[i])[a](e),I.apply(n,e.get());return this.pushStack(n)}});function It(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:w).getComputedStyle(t)}function Ot(t,e,n){var o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=n.call(t),e)t.style[o]=r[o];return n}var Pt,Wt,$t,zt,Ut,Vt,Xt,r,Gt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Kt=new RegExp(p.join("|"),"i");function Qt(){var t;r&&(Xt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",r.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",j.appendChild(Xt).appendChild(r),t=w.getComputedStyle(r),Pt="1%"!==t.top,Vt=12===Yt(t.marginLeft),r.style.right="60%",zt=36===Yt(t.right),Wt=36===Yt(t.width),r.style.position="absolute",$t=12===Yt(r.offsetWidth/3),j.removeChild(Xt),r=null)}function Yt(t){return Math.round(parseFloat(t))}function Jt(t,e,n){var o,r,i=t.style;return(n=n||It(t))&&(""!==(r=n.getPropertyValue(e)||n[e])||S(t)||(r=k.style(t,e)),!g.pixelBoxStyles()&&Gt.test(r)&&Kt.test(e)&&(t=i.width,e=i.minWidth,o=i.maxWidth,i.minWidth=i.maxWidth=i.width=r,r=n.width,i.width=t,i.minWidth=e,i.maxWidth=o)),void 0!==r?r+"":r}function Zt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Xt=T.createElement("div"),(r=T.createElement("div")).style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===r.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return Qt(),Wt},pixelBoxStyles:function(){return Qt(),zt},pixelPosition:function(){return Qt(),Pt},reliableMarginLeft:function(){return Qt(),Vt},scrollboxSize:function(){return Qt(),$t},reliableTrDimensions:function(){var t,e,n;return null==Ut&&(t=T.createElement("table"),e=T.createElement("tr"),n=T.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="border:1px solid",e.style.height="1px",n.style.height="9px",n.style.display="block",j.appendChild(t).appendChild(e).appendChild(n),n=w.getComputedStyle(e),Ut=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===e.offsetHeight,j.removeChild(t)),Ut}}));var te=["Webkit","Moz","ms"],ee=T.createElement("div").style,ne={};function oe(t){var e=k.cssProps[t]||ne[t];return e||(t in ee?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=te.length;n--;)if((t=te[n]+e)in ee)return t}(t)||t)}var re=/^(none|table(?!-c[ea]).+)/,ie=/^--/,ae={position:"absolute",visibility:"hidden",display:"block"},se={letterSpacing:"0",fontWeight:"400"};function ue(t,e,n){var o=yt.exec(e);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):e}function le(t,e,n,o,r,i){var a="width"===e?1:0,s=0,u=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=k.css(t,n+p[a],!0,r)),o?("content"===n&&(u-=k.css(t,"padding"+p[a],!0,r)),"margin"!==n&&(u-=k.css(t,"border"+p[a]+"Width",!0,r))):(u+=k.css(t,"padding"+p[a],!0,r),"padding"!==n?u+=k.css(t,"border"+p[a]+"Width",!0,r):s+=k.css(t,"border"+p[a]+"Width",!0,r));return!o&&0<=i&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-u-s-.5))||0),u}function ce(t,e,n){var o=It(t),r=(!g.boxSizingReliable()||n)&&"border-box"===k.css(t,"boxSizing",!1,o),i=r,a=Jt(t,e,o),s="offset"+e[0].toUpperCase()+e.slice(1);if(Gt.test(a)){if(!n)return a;a="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&u(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===k.css(t,"display",!1,o))&&t.getClientRects().length&&(r="border-box"===k.css(t,"boxSizing",!1,o),(i=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+le(t,e,n||(r?"border":"content"),i,o,a)+"px"}function i(t,e,n,o,r){return new i.prototype.init(t,e,n,o,r)}k.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=Jt(t,"opacity"))?"1":e}}},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(t,e,n,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,i,a,s=b(e),u=ie.test(e),l=t.style;if(u||(e=oe(s)),a=k.cssHooks[e]||k.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,o))?r:l[e];"string"===(i=typeof n)&&(r=yt.exec(n))&&r[1]&&(n=bt(t,e,r),i="number"),null!=n&&n==n&&("number"!==i||u||(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,o))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,o){var r,i=b(e);return ie.test(e)||(e=oe(i)),"normal"===(r=void 0===(r=(i=k.cssHooks[e]||k.cssHooks[i])&&"get"in i?i.get(t,!0,n):r)?Jt(t,e,o):r)&&e in se&&(r=se[e]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),k.each(["height","width"],function(t,a){k.cssHooks[a]={get:function(t,e,n){if(e)return!re.test(k.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,a,n):Ot(t,ae,function(){return ce(t,a,n)})},set:function(t,e,n){var o=It(t),r=!g.scrollboxSize()&&"absolute"===o.position,i=(r||n)&&"border-box"===k.css(t,"boxSizing",!1,o),n=n?le(t,a,n,i,o):0;return i&&r&&(n-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(o[a])-le(t,a,"border",!1,o)-.5)),n&&(i=yt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[a]=e,e=k.css(t,a)),ue(0,e,n)}}}),k.cssHooks.marginLeft=Zt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Jt(t,"marginLeft"))||t.getBoundingClientRect().left-Ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(r,i){k.cssHooks[r+i]={expand:function(t){for(var e=0,n={},o="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+p[e]+i]=o[e]||o[e-2]||o[0];return n}},"margin"!==r&&(k.cssHooks[r+i].set=ue)}),k.fn.extend({css:function(t,e){return d(this,function(t,e,n){var o,r,i={},a=0;if(Array.isArray(e)){for(o=It(t),r=e.length;a<r;a++)i[e[a]]=k.css(t,e[a],!1,o);return i}return void 0!==n?k.style(t,e,n):k.css(t,e)},t,e,1<arguments.length)}}),((k.Tween=i).prototype={constructor:i,init:function(t,e,n,o,r,i){this.elem=t,this.prop=n,this.easing=r||k.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=i||(k.cssNumber[n]?"":"px")},cur:function(){var t=i.propHooks[this.prop];return(t&&t.get?t:i.propHooks._default).get(this)},run:function(t){var e,n=i.propHooks[this.prop];return this.options.duration?this.pos=e=k.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:i.propHooks._default).set(this),this}}).init.prototype=i.prototype,(i.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=k.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){k.fx.step[t.prop]?k.fx.step[t.prop](t):1!==t.elem.nodeType||!k.cssHooks[t.prop]&&null==t.elem.style[oe(t.prop)]?t.elem[t.prop]=t.now:k.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=i.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},k.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},k.fx=i.prototype.init,k.fx.step={};var _,de,a,M,pe=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;function he(){de&&(!1===T.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(he):w.setTimeout(he,k.fx.interval),k.fx.tick())}function me(){return w.setTimeout(function(){_=void 0}),_=Date.now()}function ge(t,e){var n,o=0,r={height:t};for(e=e?1:0;o<4;o+=2-e)r["margin"+(n=p[o])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ye(t,e,n){for(var o,r=(N.tweeners[e]||[]).concat(N.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,e,t))return o}function N(r,t,e){var n,i,o,a,s,u,l,c=0,d=N.prefilters.length,p=k.Deferred().always(function(){delete f.elem}),f=function(){if(i)return!1;for(var t=_||me(),t=Math.max(0,h.startTime+h.duration-t),e=1-(t/h.duration||0),n=0,o=h.tweens.length;n<o;n++)h.tweens[n].run(e);return p.notifyWith(r,[h,e,t]),e<1&&o?t:(o||p.notifyWith(r,[h,1,0]),p.resolveWith(r,[h]),!1)},h=p.promise({elem:r,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},e),originalProperties:t,originalOptions:e,startTime:_||me(),duration:e.duration,tweens:[],createTween:function(t,e){e=k.Tween(r,h.opts,t,e,h.opts.specialEasing[t]||h.opts.easing);return h.tweens.push(e),e},stop:function(t){var e=0,n=t?h.tweens.length:0;if(i)return this;for(i=!0;e<n;e++)h.tweens[e].run(1);return t?(p.notifyWith(r,[h,1,0]),p.resolveWith(r,[h,t])):p.rejectWith(r,[h,t]),this}}),m=h.props,g=m,y=h.opts.specialEasing;for(o in g)if(s=y[a=b(o)],u=g[o],Array.isArray(u)&&(s=u[1],u=g[o]=u[0]),o!==a&&(g[a]=u,delete g[o]),(l=k.cssHooks[a])&&"expand"in l)for(o in u=l.expand(u),delete g[a],u)o in g||(g[o]=u[o],y[o]=s);else y[a]=s;for(;c<d;c++)if(n=N.prefilters[c].call(h,r,m,h.opts))return v(n.stop)&&(k._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return k.map(m,ye,h),v(h.opts.start)&&h.opts.start.call(r,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),k.fx.timer(k.extend(f,{elem:r,anim:h,queue:h.opts.queue})),h}k.Animation=k.extend(N,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,yt.exec(e),n),n}]},tweener:function(t,e){for(var n,o=0,r=(t=v(t)?(e=t,["*"]):t.match(C)).length;o<r;o++)n=t[o],N.tweeners[n]=N.tweeners[n]||[],N.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var o,r,i,a,s,u,l,c="width"in e||"height"in e,d=this,p={},f=t.style,h=t.nodeType&>(t),m=x.get(t,"fxshow");for(o in n.queue||(null==(a=k._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,k.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[o],pe.test(r)){if(delete e[o],i=i||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!m||void 0===m[o])continue;h=!0}p[o]=m&&m[o]||k.style(t,o)}if((u=!k.isEmptyObject(e))||!k.isEmptyObject(p))for(o in c&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(l=m&&m.display)&&(l=x.get(t,"display")),"none"===(c=k.css(t,"display"))&&(l?c=l:(A([t],!0),l=t.style.display||l,c=k.css(t,"display"),A([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(t,"float")&&(u||(d.done(function(){f.display=l}),null==l&&(c=f.display,l="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(h=m.hidden):m=x.access(t,"fxshow",{display:l}),i&&(m.hidden=!h),h&&A([t],!0),d.done(function(){for(o in h||A([t]),x.remove(t,"fxshow"),p)k.style(t,o,p[o])})),u=ye(h?m[o]:0,o,d),o in m||(m[o]=u.start,h&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?N.prefilters.unshift(t):N.prefilters.push(t)}}),k.speed=function(t,e,n){var o=t&&"object"==typeof t?k.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return k.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in k.fx.speeds?o.duration=k.fx.speeds[o.duration]:o.duration=k.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){v(o.old)&&o.old.call(this),o.queue&&k.dequeue(this,o.queue)},o},k.fn.extend({fadeTo:function(t,e,n,o){return this.filter(gt).css("opacity",0).show().end().animate({opacity:e},t,n,o)},animate:function(e,t,n,o){function r(){var t=N(this,k.extend({},e),a);(i||x.get(this,"finish"))&&t.stop(!0)}var i=k.isEmptyObject(e),a=k.speed(t,n,o);return r.finish=r,i||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,t,i){function a(t){var e=t.stop;delete t.stop,e(i)}return"string"!=typeof r&&(i=t,t=r,r=void 0),t&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=k.timers,o=x.get(this);if(e)o[e]&&o[e].stop&&a(o[e]);else for(e in o)o[e]&&o[e].stop&&fe.test(e)&&a(o[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(i),t=!1,n.splice(e,1));!t&&i||k.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=x.get(this),n=e[a+"queue"],o=e[a+"queueHooks"],r=k.timers,i=n?n.length:0;for(e.finish=!0,k.queue(this,a,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===a&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<i;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),k.each(["toggle","show","hide"],function(t,o){var r=k.fn[o];k.fn[o]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(ge(o,!0),t,e,n)}}),k.each({slideDown:ge("show"),slideUp:ge("hide"),slideToggle:ge("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,o){k.fn[t]=function(t,e,n){return this.animate(o,t,e,n)}}),k.timers=[],k.fx.tick=function(){var t,e=0,n=k.timers;for(_=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||k.fx.stop(),_=void 0},k.fx.timer=function(t){k.timers.push(t),k.fx.start()},k.fx.interval=13,k.fx.start=function(){de||(de=!0,he())},k.fx.stop=function(){de=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(o,t){return o=k.fx&&k.fx.speeds[o]||o,this.queue(t=t||"fx",function(t,e){var n=w.setTimeout(t,o);e.stop=function(){w.clearTimeout(n)}})},a=T.createElement("input"),M=T.createElement("select").appendChild(T.createElement("option")),a.type="checkbox",g.checkOn=""!==a.value,g.optSelected=M.selected,(a=T.createElement("input")).value="t",a.type="radio",g.radioValue="t"===a.value;var ve,be=k.expr.attrHandle,xe=(k.fn.extend({attr:function(t,e){return d(this,k.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){k.removeAttr(this,t)})}}),k.extend({attr:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===t.getAttribute?k.prop(t,e,n):(1===i&&k.isXMLDoc(t)||(r=k.attrHooks[e.toLowerCase()]||(k.expr.match.bool.test(e)?ve:void 0)),void 0!==n?null===n?void k.removeAttr(t,e):r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:(t.setAttribute(e,n+""),n):!(r&&"get"in r&&null!==(o=r.get(t,e)))&&null==(o=k.find.attr(t,e))?void 0:o)},attrHooks:{type:{set:function(t,e){var n;if(!g.radioValue&&"radio"===e&&u(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,o=0,r=e&&e.match(C);if(r&&1===t.nodeType)for(;n=r[o++];)t.removeAttribute(n)}}),ve={set:function(t,e,n){return!1===e?k.removeAttr(t,n):t.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(t,e){var a=be[e]||k.find.attr;be[e]=function(t,e,n){var o,r,i=e.toLowerCase();return n||(r=be[i],be[i]=o,o=null!=a(t,e,n)?i:null,be[i]=r),o}}),/^(?:input|select|textarea|button)$/i),we=/^(?:a|area)$/i;function L(t){return(t.match(C)||[]).join(" ")}function q(t){return t.getAttribute&&t.getAttribute("class")||""}function Te(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(C)||[]}k.fn.extend({prop:function(t,e){return d(this,k.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[k.propFix[t]||t]})}}),k.extend({prop:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&k.isXMLDoc(t)||(e=k.propFix[e]||e,r=k.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:t[e]=n:r&&"get"in r&&null!==(o=r.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=k.find.attr(t,"tabindex");return e?parseInt(e,10):xe.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(e){var t,n,o,r,i,a,s=0;if(v(e))return this.each(function(t){k(this).addClass(e.call(this,t,q(this)))});if((t=Te(e)).length)for(;n=this[s++];)if(a=q(n),o=1===n.nodeType&&" "+L(a)+" "){for(i=0;r=t[i++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");a!==(a=L(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,r,i,a,s=0;if(v(e))return this.each(function(t){k(this).removeClass(e.call(this,t,q(this)))});if(!arguments.length)return this.attr("class","");if((t=Te(e)).length)for(;n=this[s++];)if(a=q(n),o=1===n.nodeType&&" "+L(a)+" "){for(i=0;r=t[i++];)for(;-1<o.indexOf(" "+r+" ");)o=o.replace(" "+r+" "," ");a!==(a=L(o))&&n.setAttribute("class",a)}return this},toggleClass:function(r,e){var i=typeof r,a="string"==i||Array.isArray(r);return"boolean"==typeof e&&a?e?this.addClass(r):this.removeClass(r):v(r)?this.each(function(t){k(this).toggleClass(r.call(this,t,q(this),e),e)}):this.each(function(){var t,e,n,o;if(a)for(e=0,n=k(this),o=Te(r);t=o[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==r&&"boolean"!=i||((t=q(this))&&x.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==r&&x.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,o=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+L(q(e))+" ").indexOf(o))return!0;return!1}});function ke(t){t.stopPropagation()}var Ce=/\r/g,je=(k.fn.extend({val:function(e){var n,t,o,r=this[0];return arguments.length?(o=v(e),this.each(function(t){1===this.nodeType&&(null==(t=o?e.call(this,t,k(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=k.map(t,function(t){return null==t?"":t+""})),(n=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):r?(n=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(Ce,""):null==t?"":t:void 0}}),k.extend({valHooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:L(k.text(t))}},select:{get:function(t){for(var e,n=t.options,o=t.selectedIndex,r="select-one"===t.type,i=r?null:[],a=r?o+1:n.length,s=o<0?a:r?o:0;s<a;s++)if(((e=n[s]).selected||s===o)&&!e.disabled&&(!e.parentNode.disabled||!u(e.parentNode,"optgroup"))){if(e=k(e).val(),r)return e;i.push(e)}return i},set:function(t,e){for(var n,o,r=t.options,i=k.makeArray(e),a=r.length;a--;)((o=r[a]).selected=-1<k.inArray(k.valHooks.option.get(o),i))&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<k.inArray(k(t).val(),e)}},g.checkOn||(k.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),g.focusin="onfocusin"in w,/^(?:focusinfocus|focusoutblur)$/),Se=(k.extend(k.event,{trigger:function(t,e,n,o){var r,i,a,s,u,l,c,d=[n||T],p=$.call(t,"type")?t.type:t,f=$.call(t,"namespace")?t.namespace.split("."):[],h=c=i=n=n||T;if(3!==n.nodeType&&8!==n.nodeType&&!je.test(p+k.event.triggered)&&(-1<p.indexOf(".")&&(p=(f=p.split(".")).shift(),f.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[k.expando]?t:new k.Event(p,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),l=k.event.special[p]||{},o||!l.trigger||!1!==l.trigger.apply(n,e))){if(!o&&!l.noBubble&&!m(n)){for(a=l.delegateType||p,je.test(a+p)||(h=h.parentNode);h;h=h.parentNode)d.push(h),i=h;i===(n.ownerDocument||T)&&d.push(i.defaultView||i.parentWindow||w)}for(r=0;(h=d[r++])&&!t.isPropagationStopped();)c=h,t.type=1<r?a:l.bindType||p,(u=(x.get(h,"events")||Object.create(null))[t.type]&&x.get(h,"handle"))&&u.apply(h,e),(u=s&&h[s])&&u.apply&&y(h)&&(t.result=u.apply(h,e),!1===t.result&&t.preventDefault());return t.type=p,o||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(d.pop(),e)||!y(n)||s&&v(n[p])&&!m(n)&&((i=n[s])&&(n[s]=null),k.event.triggered=p,t.isPropagationStopped()&&c.addEventListener(p,ke),n[p](),t.isPropagationStopped()&&c.removeEventListener(p,ke),k.event.triggered=void 0,i&&(n[s]=i)),t.result}},simulate:function(t,e,n){n=k.extend(new k.Event,n,{type:t,isSimulated:!0});k.event.trigger(n,null,e)}}),k.fn.extend({trigger:function(t,e){return this.each(function(){k.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return k.event.trigger(t,e,n,!0)}}),g.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,o){function r(t){k.event.simulate(o,t.target,k.event.fix(t))}k.event.special[o]={setup:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o);e||t.addEventListener(n,r,!0),x.access(t,o,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=x.access(t,o)-1;e?x.access(t,o,e):(t.removeEventListener(n,r,!0),x.remove(t,o))}}}),w.location),Ae={guid:Date.now()},Ee=/\?/,Be=(k.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new w.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/\[\]$/),De=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,Me=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){function n(t,e){e=v(e)?e():e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var o,r=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){n(this.name,this.value)});else for(o in t)!function n(o,t,r,i){if(Array.isArray(t))k.each(t,function(t,e){r||Be.test(o)?i(o,e):n(o+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,i)});else if(r||"object"!==h(t))i(o,t);else for(var e in t)n(o+"["+e+"]",t[e],r,i)}(o,t[o],e,n);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&Me.test(this.nodeName)&&!_e.test(t)&&(this.checked||!wt.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(De,"\r\n")}}):{name:e.name,value:n.replace(De,"\r\n")}}).get()}});var Ne=/%20/g,Le=/#.*$/,qe=/([?&])_=[^&]*/,Fe=/^(.*?):[ \t]*([^\r\n]*)$/gm,He=/^(?:GET|HEAD)$/,Re=/^\/\//,Ie={},Oe={},Pe="*/".concat("*"),We=T.createElement("a");function $e(i){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,o=0,r=t.toLowerCase().match(C)||[];if(v(e))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(i[n]=i[n]||[]).unshift(e)):(i[n]=i[n]||[]).push(e)}}function ze(e,o,r,i){var a={},s=e===Oe;function u(t){var n;return a[t]=!0,k.each(e[t]||[],function(t,e){e=e(o,r,i);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(o.dataTypes.unshift(e),u(e),!1)}),n}return u(o.dataTypes[0])||!a["*"]&&u("*")}function Ue(t,e){var n,o,r=k.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:o=o||{})[n]=e[n]);return o&&k.extend(!0,t,o),t}We.href=Se.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,k.ajaxSettings),e):Ue(k.ajaxSettings,t)},ajaxPrefilter:$e(Ie),ajaxTransport:$e(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var u,l,c,n,d,p,f,o,h=k.ajaxSetup({},e=e||{}),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?k(m):k.event,y=k.Deferred(),v=k.Callbacks("once memory"),b=h.statusCode||{},r={},i={},a="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(p){if(!n)for(n={};e=Fe.exec(c);)n[e[1].toLowerCase()+" "]=(n[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=n[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return p?c:null},setRequestHeader:function(t,e){return null==p&&(t=i[t.toLowerCase()]=i[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==p&&(h.mimeType=t),this},statusCode:function(t){if(t)if(p)x.always(t[x.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||a;return u&&u.abort(t),s(0,t),this}};if(y.promise(x),h.url=((t||h.url||Se.href)+"").replace(Re,Se.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(C)||[""],null==h.crossDomain){t=T.createElement("a");try{t.href=h.url,t.href=t.href,h.crossDomain=We.protocol+"//"+We.host!=t.protocol+"//"+t.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=k.param(h.data,h.traditional)),ze(Ie,h,e,x),p)return x;for(o in(f=k.event&&h.global)&&0==k.active++&&k.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!He.test(h.type),l=h.url.replace(Le,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ne,"+")):(t=h.url.slice(l.length),h.data&&(h.processData||"string"==typeof h.data)&&(l+=(Ee.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(l=l.replace(qe,"$1"),t=(Ee.test(l)?"&":"?")+"_="+Ae.guid+++t),h.url=l+t),h.ifModified&&(k.lastModified[l]&&x.setRequestHeader("If-Modified-Since",k.lastModified[l]),k.etag[l]&&x.setRequestHeader("If-None-Match",k.etag[l])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Pe+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(o,h.headers[o]);if(h.beforeSend&&(!1===h.beforeSend.call(m,x,h)||p))return x.abort();if(a="abort",v.add(h.complete),x.done(h.success),x.fail(h.error),u=ze(Oe,h,e,x)){if(x.readyState=1,f&&g.trigger("ajaxSend",[x,h]),p)return x;h.async&&0<h.timeout&&(d=w.setTimeout(function(){x.abort("timeout")},h.timeout));try{p=!1,u.send(r,s)}catch(t){if(p)throw t;s(-1,t)}}else s(-1,"No Transport");function s(t,e,n,o){var r,i,a,s=e;p||(p=!0,d&&w.clearTimeout(d),u=void 0,c=o||"",x.readyState=0<t?4:0,o=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var o,r,i,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){u.unshift(r);break}if(u[0]in n)i=u[0];else{for(r in n){if(!u[0]||t.converters[r+" "+u[0]]){i=r;break}a=a||r}i=i||a}if(i)return i!==u[0]&&u.unshift(i),n[i]}(h,x,n)),!o&&-1<k.inArray("script",h.dataTypes)&&k.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),a=function(t,e,n,o){var r,i,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(i=c.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!u&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(!(a=l[u+" "+i]||l["* "+i]))for(r in l)if((s=r.split(" "))[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[r]:!0!==l[r]&&(i=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+i}}}return{state:"success",data:e}}(h,a,x,o),o?(h.ifModified&&((n=x.getResponseHeader("Last-Modified"))&&(k.lastModified[l]=n),(n=x.getResponseHeader("etag"))&&(k.etag[l]=n)),204===t||"HEAD"===h.type?s="nocontent":304===t?s="notmodified":(s=a.state,r=a.data,o=!(i=a.error))):(i=s,!t&&s||(s="error",t<0&&(t=0))),x.status=t,x.statusText=(e||s)+"",o?y.resolveWith(m,[r,s,x]):y.rejectWith(m,[x,s,i]),x.statusCode(b),b=void 0,f&&g.trigger(o?"ajaxSuccess":"ajaxError",[x,h,o?r:i]),v.fireWith(m,[x,s]),f&&(g.trigger("ajaxComplete",[x,h]),--k.active||k.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,r){k[r]=function(t,e,n,o){return v(e)&&(o=o||n,n=e,e=void 0),k.ajax(k.extend({url:t,type:r,dataType:o,data:e,success:n},k.isPlainObject(t)&&t))}}),k.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),k._evalUrl=function(t,e,n){return k.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){k.globalEval(t,e,n)}})},k.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=k(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(t){k(this).wrapInner(n.call(this,t))}):this.each(function(){var t=k(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=v(e);return this.each(function(t){k(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(t){return!k.expr.pseudos.visible(t)},k.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(t){}};var Ve={0:200,1223:204},Xe=k.ajaxSettings.xhr(),Ge=(g.cors=!!Xe&&"withCredentials"in Xe,g.ajax=Xe=!!Xe,k.ajaxTransport(function(r){var i,a;if(g.cors||Xe&&!r.crossDomain)return{send:function(t,e){var n,o=r.xhr();if(o.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)o[n]=r.xhrFields[n];for(n in r.mimeType&&o.overrideMimeType&&o.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)o.setRequestHeader(n,t[n]);i=function(t){return function(){i&&(i=a=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?e(0,"error"):e(o.status,o.statusText):e(Ve[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(),a=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=a:o.onreadystatechange=function(){4===o.readyState&&w.setTimeout(function(){i&&a()})},i=i("abort");try{o.send(r.hasContent&&r.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}}),k.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),k.ajaxTransport("script",function(n){var o,r;if(n.crossDomain||n.scriptAttrs)return{send:function(t,e){o=k("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){o.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),T.head.appendChild(o[0])},abort:function(){r&&r()}}}),[]),Ke=/(=)\?(?=&|$)|\?\?/,Qe=(k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ge.pop()||k.expando+"_"+Ae.guid++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var o,r,i,a=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ke,"$1"+o):!1!==t.jsonp&&(t.url+=(Ee.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return i||k.error(o+" was not called"),i[0]},t.dataTypes[0]="json",r=w[o],w[o]=function(){i=arguments},n.always(function(){void 0===r?k(w).removeProp(o):w[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,Ge.push(o)),i&&v(r)&&r(i[0]),i=r=void 0}),"script"}),g.createHTMLDocument=((t=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===t.childNodes.length),k.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(g.createHTMLDocument?((o=(e=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,e.head.appendChild(o)):e=T),o=!n&&[],(n=Y.exec(t))?[e.createElement(n[1])]:(n=St([t],e,o),o&&o.length&&k(o).remove(),k.merge([],n.childNodes)));var o},k.fn.load=function(t,e,n){var o,r,i,a=this,s=t.indexOf(" ");return-1<s&&(o=L(t.slice(s)),t=t.slice(0,s)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<a.length&&k.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){i=arguments,a.html(o?k("<div>").append(k.parseHTML(t)).find(o):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,i||[t.responseText,e,t])})}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setOffset:function(t,e,n){var o,r,i,a,s=k.css(t,"position"),u=k(t),l={};"static"===s&&(t.style.position="relative"),i=u.offset(),o=k.css(t,"top"),a=k.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1<(o+a).indexOf("auto")?(r=(s=u.position()).top,s.left):(r=parseFloat(o)||0,parseFloat(a)||0),null!=(e=v(e)?e.call(t,n,k.extend({},i)):e).top&&(l.top=e.top-i.top+r),null!=e.left&&(l.left=e.left-i.left+s),"using"in e?e.using.call(t,l):u.css(l)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){k.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,o=this[0],r={top:0,left:0};if("fixed"===k.css(o,"position"))e=o.getBoundingClientRect();else{for(e=this.offset(),n=o.ownerDocument,t=o.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===k.css(t,"position");)t=t.parentNode;t&&t!==o&&1===t.nodeType&&((r=k(t).offset()).top+=k.css(t,"borderTopWidth",!0),r.left+=k.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-k.css(o,"marginTop",!0),left:e.left-r.left-k.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===k.css(t,"position");)t=t.offsetParent;return t||j})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var i="pageYOffset"===r;k.fn[e]=function(t){return d(this,function(t,e,n){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===n)return o?o[r]:t[e];o?o.scrollTo(i?o.pageXOffset:n,i?n:o.pageYOffset):t[e]=n},e,t,arguments.length)}}),k.each(["top","left"],function(t,n){k.cssHooks[n]=Zt(g.pixelPosition,function(t,e){if(e)return e=Jt(t,n),Gt.test(e)?k(t).position()[n]+"px":e})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(o,i){k.fn[i]=function(t,e){var n=arguments.length&&(o||"boolean"!=typeof t),r=o||(!0===t||!0===e?"margin":"border");return d(this,function(t,e,n){var o;return m(t)?0===i.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+a],o["scroll"+a],t.body["offset"+a],o["offset"+a],o["client"+a])):void 0===n?k.css(t,e,r):k.style(t,e,n,r)},s,n?t:void 0,n)}})}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,o){return this.on(e,t,n,o)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){k.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Ye=(k.proxy=function(t,e){var n,o;if("string"==typeof e&&(o=t[e],e=t,t=o),v(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||k.guid++,o},k.holdReady=function(t){t?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=u,k.isFunction=v,k.isWindow=m,k.camelCase=b,k.type=h,k.now=Date.now,k.isNumeric=function(t){var e=k.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},k.trim=function(t){return null==t?"":(t+"").replace(Qe,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return k}),w.jQuery),Je=w.$;return k.noConflict=function(t){return w.$===k&&(w.$=Je),t&&w.jQuery===k&&(w.jQuery=Ye),k},void 0===F&&(w.jQuery=w.$=k),k});var s=jQuery.noConflict(!0),u={removeAttributeValue:function(t,e,n){var o;t.getAttribute(e)&&(t.getAttribute(e)==n?t.removeAttribute(e):(n=new RegExp("(^|\\s)"+n+"(\\s|$)"),(o=t.getAttribute(e).match(n))&&3==o.length&&t.setAttribute(e,t.getAttribute(e).replace(n,o[1]&&o[2]?" ":""))))},addAttributeValue:function(t,e,n){t.getAttribute(e)?new RegExp("(^|\\s)"+n+"(\\s|$)").test(t.getAttribute(e))||t.setAttribute(e,t.getAttribute(e)+" "+n):t.setAttribute(e,n)},dragAndDropSupported:function(){return void 0!==document.createElement("div").ondrop},formDataSupported:function(){return"function"==typeof FormData},fileApiSupported:function(){var t=document.createElement("input");return t.type="file",void 0!==t.files},nodeListForEach:function(t,e){if(window.NodeList.prototype.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e.call(window,t[n],n,t)},initAll:function(t){var t=void 0!==(t=void 0!==t?t:{}).scope?t.scope:document,e=t.querySelectorAll('[data-module="moj-add-another"]'),e=(u.nodeListForEach(e,function(t){new u.AddAnother(t)}),t.querySelectorAll('[data-module="moj-multi-select"]')),e=(u.nodeListForEach(e,function(t){new u.MultiSelect({container:t.querySelector(t.getAttribute("data-multi-select-checkbox")),checkboxes:t.querySelectorAll("tbody .govuk-checkboxes__input")})}),t.querySelectorAll('[data-module="moj-password-reveal"]')),e=(u.nodeListForEach(e,function(t){new u.PasswordReveal(t)}),t.querySelectorAll('[data-module="moj-rich-text-editor"]')),e=(u.nodeListForEach(e,function(t){var e={textarea:s(t)},t=t.getAttribute("data-moj-rich-text-editor-toolbar");if(t){var n,o=t.split(",");for(n in e.toolbar={},o)e.toolbar[o[n]]=!0}new u.RichTextEditor(e)}),t.querySelectorAll('[data-module="moj-search-toggle"]')),e=(u.nodeListForEach(e,function(t){new u.SearchToggle({toggleButton:{container:s(t.querySelector(".moj-search-toggle__toggle")),text:t.getAttribute("data-moj-search-toggle-text")},search:{container:s(t.querySelector(".moj-search"))}})}),t.querySelectorAll('[data-module="moj-sortable-table"]')),e=(u.nodeListForEach(e,function(t){new u.SortableTable({table:t})}),t.querySelectorAll('[data-module="moj-sortable-table"]'));u.nodeListForEach(e,function(t){new u.SortableTable({table:t})})},AddAnother:function(t){this.container=s(t),this.container.data("moj-add-another-initialised")||(this.container.data("moj-add-another-initialised",!0),this.container.on("click",".moj-add-another__remove-button",s.proxy(this,"onRemoveButtonClick")),this.container.on("click",".moj-add-another__add-button",s.proxy(this,"onAddButtonClick")),this.container.find(".moj-add-another__add-button, moj-add-another__remove-button").prop("type","button"))}};return u.AddAnother.prototype.onAddButtonClick=function(t){var e=this.getNewItem(),n=(this.updateAttributes(this.getItems().length,e),this.resetItem(e),this.getItems().first());this.hasRemoveButton(n)||this.createRemoveButton(n),this.getItems().last().after(e),e.find("input, textarea, select").first().focus()},u.AddAnother.prototype.hasRemoveButton=function(t){return t.find(".moj-add-another__remove-button").length},u.AddAnother.prototype.getItems=function(){return this.container.find(".moj-add-another__item")},u.AddAnother.prototype.getNewItem=function(){var t=this.getItems().first().clone();return this.hasRemoveButton(t)||this.createRemoveButton(t),t},u.AddAnother.prototype.updateAttributes=function(o,r){r.find("[data-name]").each(function(t,e){var n=e.id;e.name=s(e).attr("data-name").replace(/%index%/,o),e.id=s(e).attr("data-id").replace(/%index%/,o),(s(e).siblings("label")[0]||s(e).parents("label")[0]||r.find('[for="'+n+'"]')[0]).htmlFor=e.id})},u.AddAnother.prototype.createRemoveButton=function(t){t.append('<button type="button" class="govuk-button govuk-button--secondary moj-add-another__remove-button">Remove</button>')},u.AddAnother.prototype.resetItem=function(t){t.find("[data-name], [data-id]").each(function(t,e){"checkbox"==e.type||"radio"==e.type?e.checked=!1:e.value=""})},u.AddAnother.prototype.onRemoveButtonClick=function(t){s(t.currentTarget).parents(".moj-add-another__item").remove();t=this.getItems();1===t.length&&t.find(".moj-add-another__remove-button").remove(),t.each(s.proxy(function(t,e){this.updateAttributes(t,s(e))},this)),this.focusHeading()},u.AddAnother.prototype.focusHeading=function(){this.container.find(".moj-add-another__heading").focus()},u.ButtonMenu=function(t){this.container=s(t.container),this.menu=this.container.find(".moj-button-menu__wrapper"),t.menuClasses&&this.menu.addClass(t.menuClasses),this.menu.attr("role","menu"),this.mq=t.mq,this.buttonText=t.buttonText,this.buttonClasses=t.buttonClasses||"",this.keys={esc:27,up:38,down:40,tab:9},this.menu.on("keydown","[role=menuitem]",s.proxy(this,"onButtonKeydown")),this.createToggleButton(),this.setupResponsiveChecks(),s(document).on("click",s.proxy(this,"onDocumentClick"))},u.ButtonMenu.prototype.onDocumentClick=function(t){s.contains(this.container[0],t.target)||this.hideMenu()},u.ButtonMenu.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button moj-button-menu__toggle-button '+this.buttonClasses+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.buttonText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.menuButton.on("keydown",s.proxy(this,"onMenuKeyDown"))},u.ButtonMenu.prototype.setupResponsiveChecks=function(){this.mql=window.matchMedia(this.mq),this.mql.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mql)},u.ButtonMenu.prototype.checkMode=function(t){t.matches?this.enableBigMode():this.enableSmallMode()},u.ButtonMenu.prototype.enableSmallMode=function(){this.container.prepend(this.menuButton),this.hideMenu(),this.removeButtonClasses(),this.menu.attr("role","menu"),this.container.find(".moj-button-menu__item").attr("role","menuitem")},u.ButtonMenu.prototype.enableBigMode=function(){this.menuButton.detach(),this.showMenu(),this.addButtonClasses(),this.menu.removeAttr("role"),this.container.find(".moj-button-menu__item").removeAttr("role")},u.ButtonMenu.prototype.removeButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){s(e).hasClass("govuk-button--secondary")&&(s(e).attr("data-secondary","true"),s(e).removeClass("govuk-button--secondary")),s(e).hasClass("govuk-button--warning")&&(s(e).attr("data-warning","true"),s(e).removeClass("govuk-button--warning")),s(e).removeClass("govuk-button")})},u.ButtonMenu.prototype.addButtonClasses=function(){this.menu.find(".moj-button-menu__item").each(function(t,e){"true"==s(e).attr("data-secondary")&&s(e).addClass("govuk-button--secondary"),"true"==s(e).attr("data-warning")&&s(e).addClass("govuk-button--warning"),s(e).addClass("govuk-button")})},u.ButtonMenu.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false")},u.ButtonMenu.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true")},u.ButtonMenu.prototype.onMenuButtonClick=function(){this.toggle()},u.ButtonMenu.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.menu.find("[role=menuitem]").first().focus()):(this.hideMenu(),this.menuButton.focus())},u.ButtonMenu.prototype.onMenuKeyDown=function(t){t.keyCode===this.keys.down&&this.toggle()},u.ButtonMenu.prototype.onButtonKeydown=function(t){switch(t.keyCode){case this.keys.up:t.preventDefault(),this.focusPrevious(t.currentTarget);break;case this.keys.down:t.preventDefault(),this.focusNext(t.currentTarget);break;case this.keys.esc:this.mql.matches||(this.menuButton.focus(),this.hideMenu());break;case this.keys.tab:this.mql.matches||this.hideMenu()}},u.ButtonMenu.prototype.focusNext=function(t){t=s(t).next();(t[0]?t:this.container.find("[role=menuitem]").first()).focus()},u.ButtonMenu.prototype.focusPrevious=function(t){t=s(t).prev();(t[0]?t:this.container.find("[role=menuitem]").last()).focus()},u.FilterToggleButton=function(t){this.options=t,this.container=s(this.options.toggleButton.container),this.filterContainer=s(this.options.filter.container),this.createToggleButton(),this.setupResponsiveChecks(),this.filterContainer.attr("tabindex","-1"),this.options.startHidden&&this.hideMenu()},u.FilterToggleButton.prototype.setupResponsiveChecks=function(){this.mq=window.matchMedia(this.options.bigModeMediaQuery),this.mq.addListener(s.proxy(this,"checkMode")),this.checkMode(this.mq)},u.FilterToggleButton.prototype.createToggleButton=function(){this.menuButton=s('<button class="govuk-button '+this.options.toggleButton.classes+'" type="button" aria-haspopup="true" aria-expanded="false">'+this.options.toggleButton.showText+"</button>"),this.menuButton.on("click",s.proxy(this,"onMenuButtonClick")),this.options.toggleButton.container.append(this.menuButton)},u.FilterToggleButton.prototype.checkMode=function(t){t.matches?this.enableBigMode():this.enableSmallMode()},u.FilterToggleButton.prototype.enableBigMode=function(){this.showMenu(),this.removeCloseButton()},u.FilterToggleButton.prototype.enableSmallMode=function(){this.hideMenu(),this.addCloseButton()},u.FilterToggleButton.prototype.addCloseButton=function(){this.options.closeButton&&(this.closeButton=s('<button class="moj-filter__close" type="button">'+this.options.closeButton.text+"</button>"),this.closeButton.on("click",s.proxy(this,"onCloseClick")),s(this.options.closeButton.container).append(this.closeButton))},u.FilterToggleButton.prototype.onCloseClick=function(){this.hideMenu(),this.menuButton.focus()},u.FilterToggleButton.prototype.removeCloseButton=function(){this.closeButton&&(this.closeButton.remove(),this.closeButton=null)},u.FilterToggleButton.prototype.hideMenu=function(){this.menuButton.attr("aria-expanded","false"),this.filterContainer.addClass("moj-js-hidden"),this.menuButton.text(this.options.toggleButton.showText)},u.FilterToggleButton.prototype.showMenu=function(){this.menuButton.attr("aria-expanded","true"),this.filterContainer.removeClass("moj-js-hidden"),this.menuButton.text(this.options.toggleButton.hideText)},u.FilterToggleButton.prototype.onMenuButtonClick=function(){this.toggle()},u.FilterToggleButton.prototype.toggle=function(){"false"==this.menuButton.attr("aria-expanded")?(this.showMenu(),this.filterContainer.focus()):this.hideMenu()},u.FormValidator=function(t,e){this.form=t,this.errors=[],this.validators=[],s(this.form).on("submit",s.proxy(this,"onSubmit")),this.summary=e&&e.summary?s(e.summary):s(".govuk-error-summary"),this.originalTitle=document.title},u.FormValidator.entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="},u.FormValidator.prototype.escapeHtml=function(t){return String(t).replace(/[&<>"'`=\/]/g,function(t){return u.FormValidator.entityMap[t]})},u.FormValidator.prototype.resetTitle=function(){document.title=this.originalTitle},u.FormValidator.prototype.updateTitle=function(){document.title=this.errors.length+" errors - "+document.title},u.FormValidator.prototype.showSummary=function(){this.summary.html(this.getSummaryHtml()),this.summary.removeClass("moj-hidden"),this.summary.attr("aria-labelledby","errorSummary-heading"),this.summary.focus()},u.FormValidator.prototype.getSummaryHtml=function(){o='<h2 id="error-summary-title" class="govuk-error-summary__title">There is a problem</h2><div class="govuk-error-summary__body"><ul class="govuk-list govuk-error-summary__list">';for(var t=0,e=this.errors.length;t<e;t++)var n=this.errors[t],o=(o=(o=(o+="<li>")+('<a href="#'+this.escapeHtml(n.fieldName)+'">'))+this.escapeHtml(n.message))+"</a>"+"</li>";return o=o+"</ul>"+"</div>"},u.FormValidator.prototype.hideSummary=function(){this.summary.addClass("moj-hidden"),this.summary.removeAttr("aria-labelledby")},u.FormValidator.prototype.onSubmit=function(t){this.removeInlineErrors(),this.hideSummary(),this.resetTitle(),this.validate()||(t.preventDefault(),this.updateTitle(),this.showSummary(),this.showInlineErrors())},u.FormValidator.prototype.showInlineErrors=function(){for(var t=0,e=this.errors.length;t<e;t++)this.showInlineError(this.errors[t])},u.FormValidator.prototype.showInlineError=function(t){var e=t.fieldName+"-error",n='<span class="govuk-error-message" id="'+e+'">'+this.escapeHtml(t.message)+"</span>",t=s("#"+t.fieldName),o=t.parents(".govuk-form-group"),r=o.find("label"),i=o.find("legend"),a=o.find("fieldset");o.addClass("govuk-form-group--error"),i.length?(i.after(n),o.attr("aria-invalid","true"),u.addAttributeValue(a[0],"aria-describedby",e)):(r.after(n),t.attr("aria-invalid","true"),u.addAttributeValue(t[0],"aria-describedby",e))},u.FormValidator.prototype.removeInlineErrors=function(){for(var t=0;t<this.errors.length;t++)this.removeInlineError(this.errors[t])},u.FormValidator.prototype.removeInlineError=function(t){var e=s("#"+t.fieldName).parents(".govuk-form-group"),t=(e.find(".govuk-error-message").remove(),e.removeClass("govuk-form-group--error"),e.find("[aria-invalid]").attr("aria-invalid","false"),t.fieldName+"-error");u.removeAttributeValue(e.find("[aria-describedby]")[0],"aria-describedby",t)},u.FormValidator.prototype.addValidator=function(t,e){this.validators.push({fieldName:t,rules:e,field:this.form.elements[t]})},u.FormValidator.prototype.validate=function(){this.errors=[];for(var t,e,n=null,o=0;o<this.validators.length;o++)for(n=this.validators[o],e=0;e<n.rules.length;e++){if("boolean"==typeof(t=n.rules[e].method(n.field,n.rules[e].params))&&!t){this.errors.push({fieldName:n.fieldName,message:n.rules[e].message});break}if("string"==typeof t){this.errors.push({fieldName:t,message:n.rules[e].message});break}}return 0===this.errors.length},u.dragAndDropSupported()&&u.formDataSupported()&&u.fileApiSupported()&&(u.MultiFileUpload=function(t){this.defaultParams={uploadFileEntryHook:s.noop,uploadFileExitHook:s.noop,uploadFileErrorHook:s.noop,fileDeleteHook:s.noop,uploadStatusText:"Uploading files, please wait",dropzoneHintText:"Drag and drop files here or",dropzoneButtonText:"Choose files"},this.params=s.extend({},this.defaultParams,t),this.container=s(this.params.container),this.container.addClass("moj-multi-file-upload--enhanced"),this.feedbackContainer=this.container.find(".moj-multi-file__uploaded-files"),this.setupFileInput(),this.setupDropzone(),this.setupLabel(),this.setupStatusBox(),this.container.on("click",".moj-multi-file-upload__delete",s.proxy(this,"onFileDeleteClick"))},u.MultiFileUpload.prototype.setupDropzone=function(){this.fileInput.wrap('<div class="moj-multi-file-upload__dropzone" />'),this.dropzone=this.container.find(".moj-multi-file-upload__dropzone"),this.dropzone.on("dragover",s.proxy(this,"onDragOver")),this.dropzone.on("dragleave",s.proxy(this,"onDragLeave")),this.dropzone.on("drop",s.proxy(this,"onDrop"))},u.MultiFileUpload.prototype.setupLabel=function(){this.label=s('<label for="'+this.fileInput[0].id+'" class="govuk-button govuk-button--secondary">'+this.params.dropzoneButtonText+"</label>"),this.dropzone.append('<p class="govuk-body">'+this.params.dropzoneHintText+"</p>"),this.dropzone.append(this.label)},u.MultiFileUpload.prototype.setupFileInput=function(){this.fileInput=this.container.find(".moj-multi-file-upload__input"),this.fileInput.on("change",s.proxy(this,"onFileChange")),this.fileInput.on("focus",s.proxy(this,"onFileFocus")),this.fileInput.on("blur",s.proxy(this,"onFileBlur"))},u.MultiFileUpload.prototype.setupStatusBox=function(){this.status=s('<div aria-live="polite" role="status" class="govuk-visually-hidden" />'),this.dropzone.append(this.status)},u.MultiFileUpload.prototype.onDragOver=function(t){t.preventDefault(),this.dropzone.addClass("moj-multi-file-upload--dragover")},u.MultiFileUpload.prototype.onDragLeave=function(){this.dropzone.removeClass("moj-multi-file-upload--dragover")},u.MultiFileUpload.prototype.onDrop=function(t){t.preventDefault(),this.dropzone.removeClass("moj-multi-file-upload--dragover"),this.feedbackContainer.removeClass("moj-hidden"),this.status.html(this.params.uploadStatusText),this.uploadFiles(t.originalEvent.dataTransfer.files)},u.MultiFileUpload.prototype.uploadFiles=function(t){for(var e=0;e<t.length;e++)this.uploadFile(t[e])},u.MultiFileUpload.prototype.onFileChange=function(t){this.feedbackContainer.removeClass("moj-hidden"),this.status.html(this.params.uploadStatusText),this.uploadFiles(t.currentTarget.files),this.fileInput.replaceWith(s(t.currentTarget).val("").clone(!0)),this.setupFileInput(),this.fileInput.focus()},u.MultiFileUpload.prototype.onFileFocus=function(t){this.label.addClass("moj-multi-file-upload--focused")},u.MultiFileUpload.prototype.onFileBlur=function(t){this.label.removeClass("moj-multi-file-upload--focused")},u.MultiFileUpload.prototype.getSuccessHtml=function(t){return'<span class="moj-multi-file-upload__success"> <svg class="moj-banner__icon" fill="currentColor" role="presentation" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" height="25" width="25"><path d="M25,6.2L8.7,23.2L0,14.1l4-4.2l4.7,4.9L21,2L25,6.2z"/></svg> '+t.messageHtml+"</span>"},u.MultiFileUpload.prototype.getErrorHtml=function(t){return'<span class="moj-multi-file-upload__error"> <svg class="moj-banner__icon" fill="currentColor" role="presentation" focusable="false" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" height="25" width="25"><path d="M13.6,15.4h-2.3v-4.5h2.3V15.4z M13.6,19.8h-2.3v-2.2h2.3V19.8z M0,23.2h25L12.5,2L0,23.2z"/></svg> '+t.message+"</span>"},u.MultiFileUpload.prototype.getFileRowHtml=function(t){var e="";return(e+='<div class="govuk-summary-list__row moj-multi-file-upload__row">')+' <div class="govuk-summary-list__value moj-multi-file-upload__message">'+('<span class="moj-multi-file-upload__filename">'+t.name+"</span>")+'<span class="moj-multi-file-upload__progress">0%</span>'+" </div>"+' <div class="govuk-summary-list__actions moj-multi-file-upload__actions"></div>'+"</div>"},u.MultiFileUpload.prototype.getDeleteButtonHtml=function(t){var e='<button class="moj-multi-file-upload__delete govuk-button govuk-button--secondary govuk-!-margin-bottom-0" type="button" name="delete" value="'+t.filename+'">';return e+('Delete <span class="govuk-visually-hidden">'+t.originalname+"</span>")+"</button>"},u.MultiFileUpload.prototype.uploadFile=function(o){this.params.uploadFileEntryHook(this,o);var t=new FormData,e=(t.append("documents",o),s(this.getFileRowHtml(o)));this.feedbackContainer.find(".moj-multi-file-upload__list").append(e),s.ajax({url:this.params.uploadUrl,type:"post",data:t,processData:!1,contentType:!1,success:s.proxy(function(t){t.error?(e.find(".moj-multi-file-upload__message").html(this.getErrorHtml(t.error)),this.status.html(t.error.message)):(e.find(".moj-multi-file-upload__message").html(this.getSuccessHtml(t.success)),this.status.html(t.success.messageText)),e.find(".moj-multi-file-upload__actions").append(this.getDeleteButtonHtml(t.file)),this.params.uploadFileExitHook(this,o,t)},this),error:s.proxy(function(t,e,n){this.params.uploadFileErrorHook(this,o,t,e,n)},this),xhr:function(){var t=new XMLHttpRequest;return t.upload.addEventListener("progress",function(t){t.lengthComputable&&(t=t.loaded/t.total,t=parseInt(100*t,10),e.find(".moj-multi-file-upload__progress").text(" "+t+"%"))},!1),t}})},u.MultiFileUpload.prototype.onFileDeleteClick=function(t){t.preventDefault();var e=s(t.currentTarget),t={};t[e[0].name]=e[0].value,s.ajax({url:this.params.deleteUrl,type:"post",dataType:"json",data:t,success:s.proxy(function(t){t.error||(e.parents(".moj-multi-file-upload__row").remove(),0===this.feedbackContainer.find(".moj-multi-file-upload__row").length&&this.feedbackContainer.addClass("moj-hidden")),this.params.fileDeleteHook(this,t)},this)})}),u.MultiSelect=function(t){this.container=s(t.container),this.container.data("moj-multi-select-initialised")||(this.container.data("moj-multi-select-initialised",!0),this.toggle=s(this.getToggleHtml()),this.toggleButton=this.toggle.find("input"),this.toggleButton.on("click",s.proxy(this,"onButtonClick")),this.container.append(this.toggle),this.checkboxes=s(t.checkboxes),this.checkboxes.on("click",s.proxy(this,"onCheckboxClick")),this.checked=t.checked||!1)},u.MultiSelect.prototype.getToggleHtml=function(){return'<div class="govuk-checkboxes__item govuk-checkboxes--small moj-multi-select__checkbox"> <input type="checkbox" class="govuk-checkboxes__input" id="checkboxes-all"> <label class="govuk-label govuk-checkboxes__label moj-multi-select__toggle-label" for="checkboxes-all"> <span class="govuk-visually-hidden">Select all</span> </label></div>'},u.MultiSelect.prototype.onButtonClick=function(t){this.checked?(this.uncheckAll(),this.toggleButton[0].checked=!1):(this.checkAll(),this.toggleButton[0].checked=!0)},u.MultiSelect.prototype.checkAll=function(){this.checkboxes.each(s.proxy(function(t,e){e.checked=!0},this)),this.checked=!0},u.MultiSelect.prototype.uncheckAll=function(){this.checkboxes.each(s.proxy(function(t,e){e.checked=!1},this)),this.checked=!1},u.MultiSelect.prototype.onCheckboxClick=function(t){t.target.checked?this.checkboxes.filter(":checked").length===this.checkboxes.length&&(this.toggleButton[0].checked=!0,this.checked=!0):(this.toggleButton[0].checked=!1,this.checked=!1)},u.PasswordReveal=function(t){this.el=t;t=s(this.el);t.data("moj-password-reveal-initialised")||(t.data("moj-password-reveal-initialised",!0),t.attr("spellcheck","false"),t.wrap('<div class="moj-password-reveal"></div>'),this.container=s(this.el).parent(),this.createButton())},u.PasswordReveal.prototype.createButton=function(){this.button=s('<button type="button" class="govuk-button govuk-button--secondary moj-password-reveal__button">Show <span class="govuk-visually-hidden">password</span></button>'),this.container.append(this.button),this.button.on("click",s.proxy(this,"onButtonClick"))},u.PasswordReveal.prototype.onButtonClick=function(){"password"===this.el.type?(this.el.type="text",this.button.html('Hide <span class="govuk-visually-hidden">password</span>')):(this.el.type="password",this.button.html('Show <span class="govuk-visually-hidden">password</span>'))},"contentEditable"in document.documentElement&&(u.RichTextEditor=function(t){this.options=t,this.options.toolbar=this.options.toolbar||{bold:!1,italic:!1,underline:!1,bullets:!0,numbers:!0},this.textarea=this.options.textarea,this.container=s(this.textarea).parent(),this.container.data("moj-rich-text-editor-initialised")||(this.container.data("moj-rich-text-editor-initialised",!0),this.createToolbar(),this.hideDefault(),this.configureToolbar(),this.keys={left:37,right:39,up:38,down:40},this.container.on("click",".moj-rich-text-editor__toolbar-button",s.proxy(this,"onButtonClick")),this.container.find(".moj-rich-text-editor__content").on("input",s.proxy(this,"onEditorInput")),this.container.find("label").on("click",s.proxy(this,"onLabelClick")),this.toolbar.on("keydown",s.proxy(this,"onToolbarKeydown")))},u.RichTextEditor.prototype.onToolbarKeydown=function(t){switch(t.keyCode){case this.keys.right:case this.keys.down:var e,n=(e=this.toolbar.find("button[tabindex=0]")).next("button");n[0]&&(n.focus(),e.attr("tabindex","-1"),n.attr("tabindex","0"));break;case this.keys.left:case this.keys.up:n=(e=this.toolbar.find("button[tabindex=0]")).prev("button");n[0]&&(n.focus(),e.attr("tabindex","-1"),n.attr("tabindex","0"))}},u.RichTextEditor.prototype.getToolbarHtml=function(){var t="";return t+='<div class="moj-rich-text-editor__toolbar" role="toolbar">',this.options.toolbar.bold&&(t+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--bold" type="button" data-command="bold"><span class="govuk-visually-hidden">Bold</span></button>'),this.options.toolbar.italic&&(t+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--italic" type="button" data-command="italic"><span class="govuk-visually-hidden">Italic</span></button>'),this.options.toolbar.underline&&(t+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--underline" type="button" data-command="underline"><span class="govuk-visually-hidden">Underline</span></button>'),this.options.toolbar.bullets&&(t+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--unordered-list" type="button" data-command="insertUnorderedList"><span class="govuk-visually-hidden">Unordered list</span></button>'),this.options.toolbar.numbers&&(t+='<button class="moj-rich-text-editor__toolbar-button moj-rich-text-editor__toolbar-button--ordered-list" type="button" data-command="insertOrderedList"><span class="govuk-visually-hidden">Ordered list</span></button>'),t+="</div>"},u.RichTextEditor.prototype.getEnhancedHtml=function(t){return this.getToolbarHtml()+'<div class="govuk-textarea moj-rich-text-editor__content" contenteditable="true" spellcheck="false"></div>'},u.RichTextEditor.prototype.hideDefault=function(){this.textarea=this.container.find("textarea"),this.textarea.addClass("govuk-visually-hidden"),this.textarea.attr("aria-hidden",!0),this.textarea.attr("tabindex","-1")},u.RichTextEditor.prototype.createToolbar=function(){this.toolbar=document.createElement("div"),this.toolbar.className="moj-rich-text-editor",this.toolbar.innerHTML=this.getEnhancedHtml(),this.container.append(this.toolbar),this.toolbar=this.container.find(".moj-rich-text-editor__toolbar"),this.container.find(".moj-rich-text-editor__content").html(this.textarea.val())},u.RichTextEditor.prototype.configureToolbar=function(){this.buttons=this.container.find(".moj-rich-text-editor__toolbar-button"),this.buttons.prop("tabindex","-1"),this.buttons.first().prop("tabindex","0")},u.RichTextEditor.prototype.onButtonClick=function(t){document.execCommand(s(t.currentTarget).data("command"),!1,null)},u.RichTextEditor.prototype.getContent=function(){return this.container.find(".moj-rich-text-editor__content").html()},u.RichTextEditor.prototype.onEditorInput=function(t){this.updateTextarea()},u.RichTextEditor.prototype.updateTextarea=function(){document.execCommand("defaultParagraphSeparator",!1,"p"),this.textarea.val(this.getContent())},u.RichTextEditor.prototype.onLabelClick=function(t){t.preventDefault(),this.container.find(".moj-rich-text-editor__content").focus()}),u.SearchToggle=function(t){this.options=t,this.container=s(this.options.search.container),this.toggleButtonContainer=s(this.options.toggleButton.container),this.container.data("moj-search-toggle-initialised")||(this.container.data("moj-search-toggle-initialised",!0),this.toggleButton=s('<button class="moj-search-toggle__button" type="button" aria-haspopup="true" aria-expanded="false">'+this.options.toggleButton.text+'<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="moj-search-toggle__button__icon"><path d="M7.433,12.5790048 C6.06762625,12.5808611 4.75763941,12.0392925 3.79217348,11.0738265 C2.82670755,10.1083606 2.28513891,8.79837375 2.28699522,7.433 C2.28513891,6.06762625 2.82670755,4.75763941 3.79217348,3.79217348 C4.75763941,2.82670755 6.06762625,2.28513891 7.433,2.28699522 C8.79837375,2.28513891 10.1083606,2.82670755 11.0738265,3.79217348 C12.0392925,4.75763941 12.5808611,6.06762625 12.5790048,7.433 C12.5808611,8.79837375 12.0392925,10.1083606 11.0738265,11.0738265 C10.1083606,12.0392925 8.79837375,12.5808611 7.433,12.5790048 L7.433,12.5790048 Z M14.293,12.579 L13.391,12.579 L13.071,12.269 C14.2300759,10.9245158 14.8671539,9.20813198 14.866,7.433 C14.866,3.32786745 11.5381325,-1.65045755e-15 7.433,-1.65045755e-15 C3.32786745,-1.65045755e-15 -1.65045755e-15,3.32786745 -1.65045755e-15,7.433 C-1.65045755e-15,11.5381325 3.32786745,14.866 7.433,14.866 C9.208604,14.8671159 10.9253982,14.2296624 12.27,13.07 L12.579,13.39 L12.579,14.294 L18.296,20 L20,18.296 L14.294,12.579 L14.293,12.579 Z"></path></svg></button>'),this.toggleButton.on("click",s.proxy(this,"onToggleButtonClick")),this.toggleButtonContainer.append(this.toggleButton),s(document).on("click",this.onDocumentClick.bind(this)),s(document).on("focusin",this.onDocumentClick.bind(this)))},u.SearchToggle.prototype.showMenu=function(){this.toggleButton.attr("aria-expanded","true"),this.container.removeClass("moj-js-hidden"),this.container.find("input").first().focus()},u.SearchToggle.prototype.hideMenu=function(){this.container.addClass("moj-js-hidden"),this.toggleButton.attr("aria-expanded","false")},u.SearchToggle.prototype.onToggleButtonClick=function(){"false"==this.toggleButton.attr("aria-expanded")?this.showMenu():this.hideMenu()},u.SearchToggle.prototype.onDocumentClick=function(t){s.contains(this.toggleButtonContainer[0],t.target)||s.contains(this.container[0],t.target)||this.hideMenu()},u.SortableTable=function(t){this.table=s(t.table),this.table.data("moj-search-toggle-initialised")||(this.table.data("moj-search-toggle-initialised",!0),this.setupOptions(t),this.body=this.table.find("tbody"),this.createHeadingButtons(),this.createStatusBox(),this.initialiseSortedColumn(),this.table.on("click","th button",s.proxy(this,"onSortButtonClick")))},u.SortableTable.prototype.setupOptions=function(t){this.statusMessage=(t=t||{}).statusMessage||"Sort by %heading% (%direction%)",this.ascendingText=t.ascendingText||"ascending",this.descendingText=t.descendingText||"descending"},u.SortableTable.prototype.createHeadingButtons=function(){for(var t,e=this.table.find("thead th"),n=0;n<e.length;n++)(t=s(e[n])).attr("aria-sort")&&this.createHeadingButton(t,n)},u.SortableTable.prototype.createHeadingButton=function(t,e){var n=t.text(),e=s('<button type="button" data-index="'+e+'">'+n+"</button>");t.text(""),t.append(e)},u.SortableTable.prototype.createStatusBox=function(){this.status=s('<div aria-live="polite" role="status" aria-atomic="true" class="govuk-visually-hidden" />'),this.table.parent().append(this.status)},u.SortableTable.prototype.initialiseSortedColumn=function(){var o=this.getTableRowsArray();this.table.find("th").filter('[aria-sort="ascending"], [aria-sort="descending"]').first().each((t,e)=>{var n=s(e).attr("aria-sort"),e=s(e).find("button").attr("data-index"),e=this.sort(o,e,n);this.addRows(e)})},u.SortableTable.prototype.onSortButtonClick=function(t){var e=t.currentTarget.getAttribute("data-index"),n=s(t.currentTarget).parent().attr("aria-sort"),n="none"===n||"descending"===n?"ascending":"descending",o=this.getTableRowsArray(),o=this.sort(o,e,n);this.addRows(o),this.removeButtonStates(),this.updateButtonState(s(t.currentTarget),n)},u.SortableTable.prototype.updateButtonState=function(t,e){t.parent().attr("aria-sort",e);var n=this.statusMessage;n=(n=n.replace(/%heading%/,t.text())).replace(/%direction%/,this[e+"Text"]),this.status.text(n)},u.SortableTable.prototype.removeButtonStates=function(){this.table.find("thead th").attr("aria-sort","none")},u.SortableTable.prototype.addRows=function(t){for(var e=0;e<t.length;e++)this.body.append(t[e])},u.SortableTable.prototype.getTableRowsArray=function(){for(var t=[],e=this.body.find("tr"),n=0;n<e.length;n++)t.push(e[n]);return t},u.SortableTable.prototype.sort=function(t,n,o){return t.sort(s.proxy(function(t,e){t=s(t).find("td,th").eq(n),e=s(e).find("td,th").eq(n),t=this.getCellValue(t),e=this.getCellValue(e);return"ascending"===o?t<e?-1:e<t?1:0:e<t?-1:t<e?1:0},this))},u.SortableTable.prototype.getCellValue=function(t){var e=(e=t.attr("data-sort-value"))||t.html();return e=s.isNumeric(e)?parseInt(e,10):e},u});
|
package/moj/all.js
CHANGED
|
@@ -215,7 +215,7 @@ MOJFrontend.AddAnother.prototype.focusHeading = function() {
|
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
MOJFrontend.ButtonMenu = function(params) {
|
|
218
|
-
this.container = params.container;
|
|
218
|
+
this.container = $(params.container);
|
|
219
219
|
this.menu = this.container.find('.moj-button-menu__wrapper');
|
|
220
220
|
if(params.menuClasses) {
|
|
221
221
|
this.menu.addClass(params.menuClasses);
|
|
@@ -340,13 +340,13 @@ MOJFrontend.ButtonMenu.prototype.onButtonKeydown = function(e) {
|
|
|
340
340
|
this.focusNext(e.currentTarget);
|
|
341
341
|
break;
|
|
342
342
|
case this.keys.esc:
|
|
343
|
-
if(!this.
|
|
343
|
+
if(!this.mql.matches) {
|
|
344
344
|
this.menuButton.focus();
|
|
345
345
|
this.hideMenu();
|
|
346
346
|
}
|
|
347
347
|
break;
|
|
348
348
|
case this.keys.tab:
|
|
349
|
-
if(!this.
|
|
349
|
+
if(!this.mql.matches) {
|
|
350
350
|
this.hideMenu();
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -369,12 +369,15 @@ MOJFrontend.ButtonMenu.prototype.focusPrevious = function(currentButton) {
|
|
|
369
369
|
this.container.find('[role=menuitem]').last().focus();
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
|
+
|
|
372
373
|
MOJFrontend.FilterToggleButton = function(options) {
|
|
373
374
|
this.options = options;
|
|
374
|
-
this.container = this.options.toggleButton.container;
|
|
375
|
+
this.container = $(this.options.toggleButton.container);
|
|
376
|
+
this.filterContainer = $(this.options.filter.container);
|
|
377
|
+
|
|
375
378
|
this.createToggleButton();
|
|
376
379
|
this.setupResponsiveChecks();
|
|
377
|
-
this.
|
|
380
|
+
this.filterContainer.attr('tabindex', '-1');
|
|
378
381
|
if(this.options.startHidden) {
|
|
379
382
|
this.hideMenu();
|
|
380
383
|
}
|
|
@@ -414,7 +417,7 @@ MOJFrontend.FilterToggleButton.prototype.addCloseButton = function() {
|
|
|
414
417
|
if(this.options.closeButton) {
|
|
415
418
|
this.closeButton = $('<button class="moj-filter__close" type="button">'+this.options.closeButton.text+'</button>');
|
|
416
419
|
this.closeButton.on('click', $.proxy(this, 'onCloseClick'));
|
|
417
|
-
this.options.closeButton.container.append(this.closeButton);
|
|
420
|
+
$(this.options.closeButton.container).append(this.closeButton);
|
|
418
421
|
}
|
|
419
422
|
};
|
|
420
423
|
|
|
@@ -432,13 +435,13 @@ MOJFrontend.FilterToggleButton.prototype.removeCloseButton = function() {
|
|
|
432
435
|
|
|
433
436
|
MOJFrontend.FilterToggleButton.prototype.hideMenu = function() {
|
|
434
437
|
this.menuButton.attr('aria-expanded', 'false');
|
|
435
|
-
this.
|
|
438
|
+
this.filterContainer.addClass('moj-js-hidden');
|
|
436
439
|
this.menuButton.text(this.options.toggleButton.showText);
|
|
437
440
|
};
|
|
438
441
|
|
|
439
442
|
MOJFrontend.FilterToggleButton.prototype.showMenu = function() {
|
|
440
443
|
this.menuButton.attr('aria-expanded', 'true');
|
|
441
|
-
this.
|
|
444
|
+
this.filterContainer.removeClass('moj-js-hidden');
|
|
442
445
|
this.menuButton.text(this.options.toggleButton.hideText);
|
|
443
446
|
};
|
|
444
447
|
|
|
@@ -449,11 +452,12 @@ MOJFrontend.FilterToggleButton.prototype.onMenuButtonClick = function() {
|
|
|
449
452
|
MOJFrontend.FilterToggleButton.prototype.toggle = function() {
|
|
450
453
|
if(this.menuButton.attr('aria-expanded') == 'false') {
|
|
451
454
|
this.showMenu();
|
|
452
|
-
this.
|
|
455
|
+
this.filterContainer.focus();
|
|
453
456
|
} else {
|
|
454
457
|
this.hideMenu();
|
|
455
458
|
}
|
|
456
459
|
};
|
|
460
|
+
|
|
457
461
|
MOJFrontend.FormValidator = function(form, options) {
|
|
458
462
|
this.form = form;
|
|
459
463
|
this.errors = [];
|
|
@@ -623,20 +627,21 @@ if(MOJFrontend.dragAndDropSupported() && MOJFrontend.formDataSupported() && MOJF
|
|
|
623
627
|
};
|
|
624
628
|
|
|
625
629
|
this.params = $.extend({}, this.defaultParams, params);
|
|
630
|
+
this.container = $(this.params.container);
|
|
626
631
|
|
|
627
|
-
this.
|
|
632
|
+
this.container.addClass('moj-multi-file-upload--enhanced');
|
|
628
633
|
|
|
629
|
-
this.feedbackContainer = this.
|
|
634
|
+
this.feedbackContainer = this.container.find('.moj-multi-file__uploaded-files');
|
|
630
635
|
this.setupFileInput();
|
|
631
636
|
this.setupDropzone();
|
|
632
637
|
this.setupLabel();
|
|
633
638
|
this.setupStatusBox();
|
|
634
|
-
this.
|
|
639
|
+
this.container.on('click', '.moj-multi-file-upload__delete', $.proxy(this, 'onFileDeleteClick'));
|
|
635
640
|
};
|
|
636
641
|
|
|
637
642
|
MOJFrontend.MultiFileUpload.prototype.setupDropzone = function() {
|
|
638
643
|
this.fileInput.wrap('<div class="moj-multi-file-upload__dropzone" />');
|
|
639
|
-
this.dropzone = this.
|
|
644
|
+
this.dropzone = this.container.find('.moj-multi-file-upload__dropzone');
|
|
640
645
|
this.dropzone.on('dragover', $.proxy(this, 'onDragOver'));
|
|
641
646
|
this.dropzone.on('dragleave', $.proxy(this, 'onDragLeave'));
|
|
642
647
|
this.dropzone.on('drop', $.proxy(this, 'onDrop'));
|
|
@@ -649,7 +654,7 @@ if(MOJFrontend.dragAndDropSupported() && MOJFrontend.formDataSupported() && MOJF
|
|
|
649
654
|
};
|
|
650
655
|
|
|
651
656
|
MOJFrontend.MultiFileUpload.prototype.setupFileInput = function() {
|
|
652
|
-
this.fileInput = this.
|
|
657
|
+
this.fileInput = this.container.find('.moj-multi-file-upload__input');
|
|
653
658
|
this.fileInput.on('change', $.proxy(this, 'onFileChange'));
|
|
654
659
|
this.fileInput.on('focus', $.proxy(this, 'onFileFocus'));
|
|
655
660
|
this.fileInput.on('blur', $.proxy(this, 'onFileBlur'));
|
|
@@ -1030,31 +1035,58 @@ if('contentEditable' in document.documentElement) {
|
|
|
1030
1035
|
|
|
1031
1036
|
}
|
|
1032
1037
|
|
|
1033
|
-
MOJFrontend.SearchToggle = function(options) {
|
|
1038
|
+
MOJFrontend.SearchToggle = function (options) {
|
|
1034
1039
|
this.options = options;
|
|
1040
|
+
this.container = $(this.options.search.container);
|
|
1041
|
+
this.toggleButtonContainer = $(this.options.toggleButton.container);
|
|
1035
1042
|
|
|
1036
|
-
if (this.
|
|
1037
|
-
return
|
|
1043
|
+
if (this.container.data("moj-search-toggle-initialised")) {
|
|
1044
|
+
return;
|
|
1038
1045
|
}
|
|
1039
1046
|
|
|
1040
|
-
this.
|
|
1047
|
+
this.container.data("moj-search-toggle-initialised", true);
|
|
1041
1048
|
|
|
1042
|
-
const svg =
|
|
1049
|
+
const svg =
|
|
1050
|
+
'<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="moj-search-toggle__button__icon"><path d="M7.433,12.5790048 C6.06762625,12.5808611 4.75763941,12.0392925 3.79217348,11.0738265 C2.82670755,10.1083606 2.28513891,8.79837375 2.28699522,7.433 C2.28513891,6.06762625 2.82670755,4.75763941 3.79217348,3.79217348 C4.75763941,2.82670755 6.06762625,2.28513891 7.433,2.28699522 C8.79837375,2.28513891 10.1083606,2.82670755 11.0738265,3.79217348 C12.0392925,4.75763941 12.5808611,6.06762625 12.5790048,7.433 C12.5808611,8.79837375 12.0392925,10.1083606 11.0738265,11.0738265 C10.1083606,12.0392925 8.79837375,12.5808611 7.433,12.5790048 L7.433,12.5790048 Z M14.293,12.579 L13.391,12.579 L13.071,12.269 C14.2300759,10.9245158 14.8671539,9.20813198 14.866,7.433 C14.866,3.32786745 11.5381325,-1.65045755e-15 7.433,-1.65045755e-15 C3.32786745,-1.65045755e-15 -1.65045755e-15,3.32786745 -1.65045755e-15,7.433 C-1.65045755e-15,11.5381325 3.32786745,14.866 7.433,14.866 C9.208604,14.8671159 10.9253982,14.2296624 12.27,13.07 L12.579,13.39 L12.579,14.294 L18.296,20 L20,18.296 L14.294,12.579 L14.293,12.579 Z"></path></svg>';
|
|
1043
1051
|
|
|
1044
|
-
this.toggleButton = $(
|
|
1045
|
-
|
|
1046
|
-
|
|
1052
|
+
this.toggleButton = $(
|
|
1053
|
+
'<button class="moj-search-toggle__button" type="button" aria-haspopup="true" aria-expanded="false">' +
|
|
1054
|
+
this.options.toggleButton.text +
|
|
1055
|
+
svg +
|
|
1056
|
+
"</button>"
|
|
1057
|
+
);
|
|
1058
|
+
this.toggleButton.on("click", $.proxy(this, "onToggleButtonClick"));
|
|
1059
|
+
this.toggleButtonContainer.append(this.toggleButton);
|
|
1060
|
+
$(document).on("click", this.onDocumentClick.bind(this));
|
|
1061
|
+
$(document).on("focusin", this.onDocumentClick.bind(this));
|
|
1047
1062
|
};
|
|
1048
1063
|
|
|
1049
|
-
MOJFrontend.SearchToggle.prototype.
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1064
|
+
MOJFrontend.SearchToggle.prototype.showMenu = function () {
|
|
1065
|
+
this.toggleButton.attr("aria-expanded", "true");
|
|
1066
|
+
this.container.removeClass("moj-js-hidden");
|
|
1067
|
+
this.container.find("input").first().focus();
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1070
|
+
MOJFrontend.SearchToggle.prototype.hideMenu = function () {
|
|
1071
|
+
this.container.addClass("moj-js-hidden");
|
|
1072
|
+
this.toggleButton.attr("aria-expanded", "false");
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
MOJFrontend.SearchToggle.prototype.onToggleButtonClick = function () {
|
|
1076
|
+
if (this.toggleButton.attr("aria-expanded") == "false") {
|
|
1077
|
+
this.showMenu();
|
|
1078
|
+
} else {
|
|
1079
|
+
this.hideMenu();
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
MOJFrontend.SearchToggle.prototype.onDocumentClick = function (e) {
|
|
1084
|
+
if (
|
|
1085
|
+
!$.contains(this.toggleButtonContainer[0], e.target) &&
|
|
1086
|
+
!$.contains(this.container[0], e.target)
|
|
1087
|
+
) {
|
|
1088
|
+
this.hideMenu();
|
|
1089
|
+
}
|
|
1058
1090
|
};
|
|
1059
1091
|
|
|
1060
1092
|
MOJFrontend.SortableTable = function(params) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
MOJFrontend.ButtonMenu = function(params) {
|
|
2
|
-
this.container = params.container;
|
|
2
|
+
this.container = $(params.container);
|
|
3
3
|
this.menu = this.container.find('.moj-button-menu__wrapper');
|
|
4
4
|
if(params.menuClasses) {
|
|
5
5
|
this.menu.addClass(params.menuClasses);
|
|
@@ -124,13 +124,13 @@ MOJFrontend.ButtonMenu.prototype.onButtonKeydown = function(e) {
|
|
|
124
124
|
this.focusNext(e.currentTarget);
|
|
125
125
|
break;
|
|
126
126
|
case this.keys.esc:
|
|
127
|
-
if(!this.
|
|
127
|
+
if(!this.mql.matches) {
|
|
128
128
|
this.menuButton.focus();
|
|
129
129
|
this.hideMenu();
|
|
130
130
|
}
|
|
131
131
|
break;
|
|
132
132
|
case this.keys.tab:
|
|
133
|
-
if(!this.
|
|
133
|
+
if(!this.mql.matches) {
|
|
134
134
|
this.hideMenu();
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -152,4 +152,4 @@ MOJFrontend.ButtonMenu.prototype.focusPrevious = function(currentButton) {
|
|
|
152
152
|
} else {
|
|
153
153
|
this.container.find('[role=menuitem]').last().focus();
|
|
154
154
|
}
|
|
155
|
-
};
|
|
155
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
MOJFrontend.FilterToggleButton = function(options) {
|
|
2
2
|
this.options = options;
|
|
3
|
-
this.container = this.options.toggleButton.container;
|
|
3
|
+
this.container = $(this.options.toggleButton.container);
|
|
4
|
+
this.filterContainer = $(this.options.filter.container);
|
|
5
|
+
|
|
4
6
|
this.createToggleButton();
|
|
5
7
|
this.setupResponsiveChecks();
|
|
6
|
-
this.
|
|
8
|
+
this.filterContainer.attr('tabindex', '-1');
|
|
7
9
|
if(this.options.startHidden) {
|
|
8
10
|
this.hideMenu();
|
|
9
11
|
}
|
|
@@ -43,7 +45,7 @@ MOJFrontend.FilterToggleButton.prototype.addCloseButton = function() {
|
|
|
43
45
|
if(this.options.closeButton) {
|
|
44
46
|
this.closeButton = $('<button class="moj-filter__close" type="button">'+this.options.closeButton.text+'</button>');
|
|
45
47
|
this.closeButton.on('click', $.proxy(this, 'onCloseClick'));
|
|
46
|
-
this.options.closeButton.container.append(this.closeButton);
|
|
48
|
+
$(this.options.closeButton.container).append(this.closeButton);
|
|
47
49
|
}
|
|
48
50
|
};
|
|
49
51
|
|
|
@@ -61,13 +63,13 @@ MOJFrontend.FilterToggleButton.prototype.removeCloseButton = function() {
|
|
|
61
63
|
|
|
62
64
|
MOJFrontend.FilterToggleButton.prototype.hideMenu = function() {
|
|
63
65
|
this.menuButton.attr('aria-expanded', 'false');
|
|
64
|
-
this.
|
|
66
|
+
this.filterContainer.addClass('moj-js-hidden');
|
|
65
67
|
this.menuButton.text(this.options.toggleButton.showText);
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
MOJFrontend.FilterToggleButton.prototype.showMenu = function() {
|
|
69
71
|
this.menuButton.attr('aria-expanded', 'true');
|
|
70
|
-
this.
|
|
72
|
+
this.filterContainer.removeClass('moj-js-hidden');
|
|
71
73
|
this.menuButton.text(this.options.toggleButton.hideText);
|
|
72
74
|
};
|
|
73
75
|
|
|
@@ -78,8 +80,8 @@ MOJFrontend.FilterToggleButton.prototype.onMenuButtonClick = function() {
|
|
|
78
80
|
MOJFrontend.FilterToggleButton.prototype.toggle = function() {
|
|
79
81
|
if(this.menuButton.attr('aria-expanded') == 'false') {
|
|
80
82
|
this.showMenu();
|
|
81
|
-
this.
|
|
83
|
+
this.filterContainer.focus();
|
|
82
84
|
} else {
|
|
83
85
|
this.hideMenu();
|
|
84
86
|
}
|
|
85
|
-
};
|
|
87
|
+
};
|
|
@@ -11,20 +11,21 @@ if(MOJFrontend.dragAndDropSupported() && MOJFrontend.formDataSupported() && MOJF
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
this.params = $.extend({}, this.defaultParams, params);
|
|
14
|
+
this.container = $(this.params.container);
|
|
14
15
|
|
|
15
|
-
this.
|
|
16
|
+
this.container.addClass('moj-multi-file-upload--enhanced');
|
|
16
17
|
|
|
17
|
-
this.feedbackContainer = this.
|
|
18
|
+
this.feedbackContainer = this.container.find('.moj-multi-file__uploaded-files');
|
|
18
19
|
this.setupFileInput();
|
|
19
20
|
this.setupDropzone();
|
|
20
21
|
this.setupLabel();
|
|
21
22
|
this.setupStatusBox();
|
|
22
|
-
this.
|
|
23
|
+
this.container.on('click', '.moj-multi-file-upload__delete', $.proxy(this, 'onFileDeleteClick'));
|
|
23
24
|
};
|
|
24
25
|
|
|
25
26
|
MOJFrontend.MultiFileUpload.prototype.setupDropzone = function() {
|
|
26
27
|
this.fileInput.wrap('<div class="moj-multi-file-upload__dropzone" />');
|
|
27
|
-
this.dropzone = this.
|
|
28
|
+
this.dropzone = this.container.find('.moj-multi-file-upload__dropzone');
|
|
28
29
|
this.dropzone.on('dragover', $.proxy(this, 'onDragOver'));
|
|
29
30
|
this.dropzone.on('dragleave', $.proxy(this, 'onDragLeave'));
|
|
30
31
|
this.dropzone.on('drop', $.proxy(this, 'onDrop'));
|
|
@@ -37,7 +38,7 @@ if(MOJFrontend.dragAndDropSupported() && MOJFrontend.formDataSupported() && MOJF
|
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
MOJFrontend.MultiFileUpload.prototype.setupFileInput = function() {
|
|
40
|
-
this.fileInput = this.
|
|
41
|
+
this.fileInput = this.container.find('.moj-multi-file-upload__input');
|
|
41
42
|
this.fileInput.on('change', $.proxy(this, 'onFileChange'));
|
|
42
43
|
this.fileInput.on('focus', $.proxy(this, 'onFileFocus'));
|
|
43
44
|
this.fileInput.on('blur', $.proxy(this, 'onFileBlur'));
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&:hover {
|
|
65
|
-
color:
|
|
65
|
+
color: $govuk-link-hover-colour;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
&:focus {
|
|
@@ -95,6 +95,14 @@
|
|
|
95
95
|
width: 100%;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
&:hover {
|
|
99
|
+
color: $govuk-link-hover-colour;
|
|
100
|
+
|
|
101
|
+
&:before {
|
|
102
|
+
background-color: $govuk-link-hover-colour;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
98
106
|
&:focus {
|
|
99
107
|
color: govuk-colour("black"); // Focus colour on yellow should really be black.
|
|
100
108
|
position: relative; // Ensure focus sits above everything else.
|
|
@@ -1,26 +1,53 @@
|
|
|
1
|
-
MOJFrontend.SearchToggle = function(options) {
|
|
1
|
+
MOJFrontend.SearchToggle = function (options) {
|
|
2
2
|
this.options = options;
|
|
3
|
+
this.container = $(this.options.search.container);
|
|
4
|
+
this.toggleButtonContainer = $(this.options.toggleButton.container);
|
|
3
5
|
|
|
4
|
-
if (this.
|
|
5
|
-
return
|
|
6
|
+
if (this.container.data("moj-search-toggle-initialised")) {
|
|
7
|
+
return;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
|
-
this.
|
|
10
|
+
this.container.data("moj-search-toggle-initialised", true);
|
|
9
11
|
|
|
10
|
-
const svg =
|
|
12
|
+
const svg =
|
|
13
|
+
'<svg viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="moj-search-toggle__button__icon"><path d="M7.433,12.5790048 C6.06762625,12.5808611 4.75763941,12.0392925 3.79217348,11.0738265 C2.82670755,10.1083606 2.28513891,8.79837375 2.28699522,7.433 C2.28513891,6.06762625 2.82670755,4.75763941 3.79217348,3.79217348 C4.75763941,2.82670755 6.06762625,2.28513891 7.433,2.28699522 C8.79837375,2.28513891 10.1083606,2.82670755 11.0738265,3.79217348 C12.0392925,4.75763941 12.5808611,6.06762625 12.5790048,7.433 C12.5808611,8.79837375 12.0392925,10.1083606 11.0738265,11.0738265 C10.1083606,12.0392925 8.79837375,12.5808611 7.433,12.5790048 L7.433,12.5790048 Z M14.293,12.579 L13.391,12.579 L13.071,12.269 C14.2300759,10.9245158 14.8671539,9.20813198 14.866,7.433 C14.866,3.32786745 11.5381325,-1.65045755e-15 7.433,-1.65045755e-15 C3.32786745,-1.65045755e-15 -1.65045755e-15,3.32786745 -1.65045755e-15,7.433 C-1.65045755e-15,11.5381325 3.32786745,14.866 7.433,14.866 C9.208604,14.8671159 10.9253982,14.2296624 12.27,13.07 L12.579,13.39 L12.579,14.294 L18.296,20 L20,18.296 L14.294,12.579 L14.293,12.579 Z"></path></svg>';
|
|
11
14
|
|
|
12
|
-
this.toggleButton = $(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
this.toggleButton = $(
|
|
16
|
+
'<button class="moj-search-toggle__button" type="button" aria-haspopup="true" aria-expanded="false">' +
|
|
17
|
+
this.options.toggleButton.text +
|
|
18
|
+
svg +
|
|
19
|
+
"</button>"
|
|
20
|
+
);
|
|
21
|
+
this.toggleButton.on("click", $.proxy(this, "onToggleButtonClick"));
|
|
22
|
+
this.toggleButtonContainer.append(this.toggleButton);
|
|
23
|
+
$(document).on("click", this.onDocumentClick.bind(this));
|
|
24
|
+
$(document).on("focusin", this.onDocumentClick.bind(this));
|
|
15
25
|
};
|
|
16
26
|
|
|
17
|
-
MOJFrontend.SearchToggle.prototype.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
MOJFrontend.SearchToggle.prototype.showMenu = function () {
|
|
28
|
+
this.toggleButton.attr("aria-expanded", "true");
|
|
29
|
+
this.container.removeClass("moj-js-hidden");
|
|
30
|
+
this.container.find("input").first().focus();
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
MOJFrontend.SearchToggle.prototype.hideMenu = function () {
|
|
34
|
+
this.container.addClass("moj-js-hidden");
|
|
35
|
+
this.toggleButton.attr("aria-expanded", "false");
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
MOJFrontend.SearchToggle.prototype.onToggleButtonClick = function () {
|
|
39
|
+
if (this.toggleButton.attr("aria-expanded") == "false") {
|
|
40
|
+
this.showMenu();
|
|
41
|
+
} else {
|
|
42
|
+
this.hideMenu();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
MOJFrontend.SearchToggle.prototype.onDocumentClick = function (e) {
|
|
47
|
+
if (
|
|
48
|
+
!$.contains(this.toggleButtonContainer[0], e.target) &&
|
|
49
|
+
!$.contains(this.container[0], e.target)
|
|
50
|
+
) {
|
|
51
|
+
this.hideMenu();
|
|
52
|
+
}
|
|
26
53
|
};
|
|
@@ -77,15 +77,13 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
a:hover {
|
|
80
|
-
|
|
80
|
+
color: $govuk-link-hover-colour;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
a:focus {
|
|
84
84
|
color: $govuk-focus-text-colour;
|
|
85
85
|
background-color: $govuk-focus-colour;
|
|
86
|
-
box-shadow: 0 -2px $govuk-focus-colour, 0 4px $govuk-focus-text-colour;
|
|
87
86
|
border-color: $govuk-focus-text-colour;
|
|
88
|
-
border-left-color: transparent;
|
|
89
87
|
position: relative;
|
|
90
88
|
}
|
|
91
89
|
|
|
@@ -100,12 +98,15 @@
|
|
|
100
98
|
font-weight: bold;
|
|
101
99
|
}
|
|
102
100
|
|
|
101
|
+
a:hover {
|
|
102
|
+
color: $govuk-link-hover-colour;
|
|
103
|
+
border-color: $govuk-link-hover-colour;
|
|
104
|
+
}
|
|
105
|
+
|
|
103
106
|
a:focus {
|
|
104
107
|
color: $govuk-focus-text-colour;
|
|
105
108
|
background-color: $govuk-focus-colour;
|
|
106
|
-
box-shadow: 0 -2px $govuk-focus-colour, 0 4px $govuk-focus-text-colour;
|
|
107
109
|
border-color: $govuk-focus-text-colour;
|
|
108
|
-
border-left-color: transparent;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
@include govuk-media-query($from: tablet) {
|
|
@@ -117,7 +118,6 @@
|
|
|
117
118
|
a:focus {
|
|
118
119
|
color: $govuk-focus-text-colour;
|
|
119
120
|
background-color: $govuk-focus-colour;
|
|
120
|
-
border-color: transparent;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&:hover {
|
|
63
|
-
color:
|
|
63
|
+
color: $govuk-link-hover-colour;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&:focus {
|
|
@@ -73,9 +73,14 @@
|
|
|
73
73
|
background-color: govuk-colour("black");
|
|
74
74
|
content: "";
|
|
75
75
|
display: block;
|
|
76
|
-
|
|
77
|
-
position: absolute; bottom: 0; left: 0;
|
|
78
|
-
|
|
76
|
+
height: 100%;
|
|
77
|
+
position: absolute; bottom: 0; left: 0;
|
|
78
|
+
width: 5px;
|
|
79
|
+
|
|
80
|
+
@include govuk-media-query($from: tablet) {
|
|
81
|
+
height: 5px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
}
|
|
@@ -101,6 +106,10 @@
|
|
|
101
106
|
|
|
102
107
|
}
|
|
103
108
|
|
|
109
|
+
&:hover {
|
|
110
|
+
color: $govuk-link-hover-colour;
|
|
111
|
+
}
|
|
112
|
+
|
|
104
113
|
&:focus:before {
|
|
105
114
|
background-color: govuk-colour("black");
|
|
106
115
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ministryofjustice/frontend",
|
|
3
3
|
"description": "The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"main": "moj/all.js",
|
|
6
6
|
"sass": "moj/all.scss",
|
|
7
7
|
"engines": {
|