Files
gollum/lib/gollum/public/assets/app-04d40bc2c595aedb3e05f3a8106f1ae32bf2bac4a70ed997de7f174508eea9ef.js
T
Dawa Ometto 5b02a864e6 Add support for Mermaid. Resolves #1118. (#1834)
* Add Mermaid node package
* Add mermaid wiki setting and load mermaid conditionally
* Perform js error checks with mermaid active
* Precompile static assets
2022-09-13 12:00:49 +02:00

28 lines
185 KiB
JavaScript

function brokenAvatarImage(e){return e.onerror="",e.src='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" class="octicon octicon-person" viewBox="0 0 16 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm.061 3.073a4 4 0 10-5.123 0 6.004 6.004 0 00-3.431 5.142.75.75 0 001.498.07 4.5 4.5 0 018.99 0 .75.75 0 101.498-.07 6.005 6.005 0 00-3.432-5.142z"></path></svg>',!0}function routePath(e){return path=gollumRoutes[e],prefixBaseUrl(path)}function prefixBaseUrl(e){if(baseUrl==undefined)console.log("Gollum error: baseUrl undefined");else{if(e!=undefined)return""==baseUrl?e:("/"==baseUrl.charAt(baseUrl.length-1)?result=baseUrl+e:result=baseUrl+"/"+e,result.replace(/\/{2}/g,"/"));console.log("Could not find route with name: "+name)}}function cleanPath(e){return("/"+e.replace(/\/$/,"")).replace(/\/{2}/g,"/")}function pageName(){return"undefined"==typeof pageFullPath?undefined:(name=pageFullPath.split("/").pop(),name.substring(0,name.lastIndexOf(".")))}function pagePath(){return"undefined"==typeof pageFullPath?undefined:pageFullPath.split("/").slice(0,-1).join("/")}function htmlEscape(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function abspath(e,t){"/"!=t[0]&&(t="/"+t,e&&(t="/"+e+t));var n=t.split("/");return[n.slice(0,-1).join("/"),n.pop()]}function setTextDirection(){$(".markdown-body p, .markdown-body span, .markdown-body pre, .markdown-body table").attr("dir","auto")}function preparePage(){setTextDirection(),"true"==criticMarkup&&($("#wiki-content").addClass("criticmarkup"),$("ins.break").unwrap(),$("span.critic.comment").wrap('<span class="popover" />'),$("span.critic.comment").filter(function(){return""!=$(this).text()}).before("&#8225;"))}function getLocalTime(e,t){return t===undefined&&(t="Y-m-d %H:%M:%S O"),new Date(e).format(t)}function flashNotice(e,t,n,r,i){nested_button_html="",void 0!==n&&void 0!==r&&(i=void 0!==i&&"danger"==i?" btn-danger":"",nested_button_html='<span class="px-2"><button type="button" class="btn btn-sm'+i+'" onclick="'+r+'">'+n+"</button></span>"),html='<p><div id="gollum-flash" class="flash flash-'+e+'"><button class="flash-close js-flash-close" type="button" onclick="parentNode.remove()"><svg class="octicon octicon-x" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M3.72 3.72a.75.75 0 011.06 0L8 6.94l3.22-3.22a.75.75 0 111.06 1.06L9.06 8l3.22 3.22a.75.75 0 11-1.06 1.06L8 9.06l-3.22 3.22a.75.75 0 01-1.06-1.06L6.94 8 3.72 4.78a.75.75 0 010-1.06z"></path></svg></button>'+t+nested_button_html+"</div></p>",$("#gollum-flash").remove(),$("#wiki-content").before(html),"success"==e&&setTimeout(function(){$("#gollum-flash").fadeOut()},5e3)}!function(e,t,n){function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function i(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return d[e.which]?d[e.which]:f[e.which]?f[e.which]:String.fromCharCode(e.which).toLowerCase()}function o(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function a(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function s(e,t){var n,r=[],i=e;for("+"===i?i=["+"]:i=(i=i.replace(/\+{2}/g,"+plus")).split("+"),n=0;n<i.length;++n){var o=i[n];p[o]&&(o=p[o]),t&&"keypress"!=t&&h[o]&&(o=h[o],r.push("shift")),a(o)&&r.push(o)}if(i=o,!(n=t)){if(!c)for(var s in c={},d)95<s&&112>s||d.hasOwnProperty(s)&&(c[d[s]]=s);n=c[i]?"keydown":"keypress"}return"keypress"==n&&r.length&&(n="keydown"),{key:o,modifiers:r,action:n}}function u(e,n){return null!==e&&e!==t&&(e===n||u(e.parentNode,n))}function l(e){function n(e){e=e||{};var t,n=!1;for(t in g)e[t]?n=!0:g[t]=0;n||(b=!1)}function u(e,t,n,r,i,o){var s,u=[],l=n.type;if(!p._callbacks[e])return[];for("keyup"==l&&a(e)&&(t=[e]),s=0;s<p._callbacks[e].length;++s){var c,d=p._callbacks[e][s];if((r||!d.seq||g[d.seq]==d.level)&&l==d.action)(c="keypress"==l&&!n.metaKey&&!n.ctrlKey)||(c=d.modifiers,c=t.sort().join(",")===c.sort().join(",")),c&&(c=r&&d.seq==r&&d.level==o,(!r&&d.combo==i||c)&&p._callbacks[e].splice(s,1),u.push(d))}return u}function c(e,t,n,r){p.stopCallback(t,t.target||t.srcElement,n,r)||!1!==e(t,n)||(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function d(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=i(e);t&&("keyup"==e.type&&y===t?y=!1:p.handleKey(t,o(e),e))}function f(e,t,r,o){function a(t){return function(){b=t,++g[e],clearTimeout(m),m=setTimeout(n,1e3)}}function u(t){c(r,t,e),"keyup"!==o&&(y=i(t)),setTimeout(n,10)}for(var l=g[e]=0;l<t.length;++l){var d=l+1===t.length?u:a(o||s(t[l+1]).action);h(t[l],d,o,e,l)}}function h(e,t,n,r,i){p._directMap[e+":"+n]=t;var o=(e=e.replace(/\s+/g," ")).split(" ");1<o.length?f(e,o,t,n):(n=s(e,n),p._callbacks[n.key]=p._callbacks[n.key]||[],u(n.key,n.modifiers,{type:n.action},r,e,i),p._callbacks[n.key][r?"unshift":"push"]({callback:t,modifiers:n.modifiers,action:n.action,seq:r,level:i,combo:e}))}var p=this;if(e=e||t,!(p instanceof l))return new l(e);p.target=e,p._callbacks={},p._directMap={};var m,g={},y=!1,v=!1,b=!1;p._handleKey=function(e,t,r){var i,o=u(e,t,r);t={};var s=0,l=!1;for(i=0;i<o.length;++i)o[i].seq&&(s=Math.max(s,o[i].level));for(i=0;i<o.length;++i)o[i].seq?o[i].level==s&&(l=!0,t[o[i].seq]=1,c(o[i].callback,r,o[i].combo,o[i].seq)):l||c(o[i].callback,r,o[i].combo);o="keypress"==r.type&&v,r.type!=b||a(e)||o||n(t),v=l&&"keydown"==r.type},p._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)h(e[r],t,n)},r(e,"keypress",d),r(e,"keydown",d),r(e,"keyup",d)}if(e){var c,d={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},f={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},h={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},p={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(n=1;20>n;++n)d[111+n]="f"+n;for(n=0;9>=n;++n)d[n+96]=n.toString();l.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},l.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},l.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},l.prototype.reset=function(){return this._callbacks={},this._directMap={},this},l.prototype.stopCallback=function(e,t){if(-1<(" "+t.className+" ").indexOf(" mousetrap ")||u(t,this.target))return!1;if("composedPath"in e&&"function"==typeof e.composedPath){var n=e.composedPath()[0];n!==e.target&&(t=n)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},l.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},l.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(d[t]=e[t]);c=null},l.init=function(){var e,n=l(t);for(e in n)"_"!==e.charAt(0)&&(l[e]=function(e){return function(){return n[e].apply(n,arguments)}}(e))},l.init(),e.Mousetrap=l,"undefined"!=typeof module&&module.exports&&(module.exports=l),"function"==typeof define&&define.amd&&define(function(){return l})}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null),
/*! jQuery v1.7.2 jquery.com | jquery.org/license */
function(e,t){function n(e){return H.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function r(e){if(!yt[e]){var t=O.body,n=H("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(ht||((ht=O.createElement("iframe")).frameBorder=ht.width=ht.height=0),t.appendChild(ht),pt&&ht.createElement||((pt=(ht.contentWindow||ht.contentDocument).document).write((H.support.boxModel?"<!doctype html>":"")+"<html><body>"),pt.close()),n=pt.createElement(e),pt.body.appendChild(n),r=H.css(n,"display"),t.removeChild(ht)),yt[e]=r}return yt[e]}function i(e,t){var n={};return H.each(Tt.concat.apply([],Tt.slice(0,t)),function(){n[this]=e}),n}function o(){gt=t}function a(){return setTimeout(o,0),gt=H.now()}function s(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function u(){try{return new e.XMLHttpRequest}catch(t){}}function l(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r,i,o,a,s,u,l,c,d=e.dataTypes,f={},h=d.length,p=d[0];for(r=1;r<h;r++){if(1===r)for(i in e.converters)"string"==typeof i&&(f[i.toLowerCase()]=e.converters[i]);if(a=p,"*"===(p=d[r]))p=a;else if("*"!==a&&a!==p){if(!(u=f[s=a+" "+p]||f["* "+p]))for(l in c=t,f)if(((o=l.split(" "))[0]===a||"*"===o[0])&&(c=f[o[1]+" "+p])){!0===(l=f[l])?u=c:!0===c&&(u=l);break}!u&&!c&&H.error("No conversion from "+s.replace(" "," to ")),!0!==u&&(n=u?u(n):c(l(n)))}}return n}function c(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(o in c)o in r&&(n[c[o]]=r[o]);for(;"*"===l[0];)l.shift(),i===t&&(i=e.mimeType||n.getResponseHeader("content-type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){l.unshift(o);break}if(l[0]in r)a=l[0];else{for(o in r){if(!l[0]||e.converters[o+" "+l[0]]){a=o;break}s||(s=o)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),r[a]}function d(e,t,n,r){if(H.isArray(t))H.each(t,function(t,i){n||qe.test(e)?r(e,i):d(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==H.type(t))r(e,t);else for(var i in t)d(e+"["+i+"]",t[i],n,r)}function f(e,n){var r,i,o=H.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);i&&H.extend(!0,e,i)}function h(e,n,r,i,o,a){(a=a||{})[o=o||n.dataTypes[0]]=!0;for(var s,u=e[o],l=0,c=u?u.length:0,d=e===ot;l<c&&(d||!s);l++)"string"==typeof(s=u[l](n,r,i))&&(!d||a[s]?s=t:(n.dataTypes.unshift(s),s=h(e,n,r,i,s,a)));return(d||!s)&&!a["*"]&&(s=h(e,n,r,i,"*",a)),s}function p(e){return function(t,n){if("string"!=typeof t&&(n=t,t="*"),H.isFunction(n))for(var r,i,o=t.toLowerCase().split(tt),a=0,s=o.length;a<s;a++)r=o[a],(i=/^\+/.test(r))&&(r=r.substr(1)||"*"),(e[r]=e[r]||[])[i?"unshift":"push"](n)}}function m(e,t,n){var r="width"===t?e.offsetWidth:e.offsetHeight,i="width"===t?1:0,o=4;if(r>0){if("border"!==n)for(;i<o;i+=2)n||(r-=parseFloat(H.css(e,"padding"+Ie[i]))||0),"margin"===n?r+=parseFloat(H.css(e,n+Ie[i]))||0:r-=parseFloat(H.css(e,"border"+Ie[i]+"Width"))||0;return r+"px"}if(((r=Ne(e,t))<0||null==r)&&(r=e.style[t]),je.test(r))return r;if(r=parseFloat(r)||0,n)for(;i<o;i+=2)r+=parseFloat(H.css(e,"padding"+Ie[i]))||0,"padding"!==n&&(r+=parseFloat(H.css(e,"border"+Ie[i]+"Width"))||0),"margin"===n&&(r+=parseFloat(H.css(e,n+Ie[i]))||0);return r+"px"}function g(e){var t=O.createElement("div");return _e.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function y(e){var t=(e.nodeName||"").toLowerCase();"input"===t?v(e):"script"!==t&&"undefined"!=typeof e.getElementsByTagName&&H.grep(e.getElementsByTagName("input"),v)}function v(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function b(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function T(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"===n||"textarea"===n?t.defaultValue=e.defaultValue:"script"===n&&t.text!==e.text&&(t.text=e.text):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(H.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function w(e,t){if(1===t.nodeType&&H.hasData(e)){var n,r,i,o=H._data(e),a=H._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s[n].length;r<i;r++)H.event.add(t,n,s[n][r]);a.data&&(a.data=H.extend({},a.data))}}function x(e){return H.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function D(e){var t=pe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function S(e,t,n){if(t=t||0,H.isFunction(t))return H.grep(e,function(e,r){return!!t.call(e,r,e)===n});if(t.nodeType)return H.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=H.grep(e,function(e){return 1===e.nodeType});if(ce.test(t))return H.filter(t,r,!n);t=H.filter(t,r)}return H.grep(e,function(e){return H.inArray(e,t)>=0===n})}function k(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function C(){return!0}function M(){return!1}function _(e,t,n){var r=t+"defer",i=t+"queue",o=t+"mark",a=H._data(e,r);a&&("queue"===n||!H._data(e,i))&&("mark"===n||!H._data(e,o))&&setTimeout(function(){!H._data(e,i)&&!H._data(e,o)&&(H.removeData(e,r,!0),a.fire())},0)}function N(e){for(var t in e)if(("data"!==t||!H.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function E(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(z,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:H.isNumeric(r)?+r:P.test(r)?H.parseJSON(r):r)}catch(j){}H.data(e,n,r)}else r=t}return r}function A(e){var t,n,r=j[e]={};for(t=0,n=(e=e.split(/\s+/)).length;t<n;t++)r[e[t]]=!0;return r}var O=e.document,F=e.navigator,L=e.location,H=function(){function n(){if(!s.isReady){try{O.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,i,o,a,s=function(e,t){return new s.fn.init(e,t,r)},u=e.jQuery,l=e.$,c=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,f=/^\s+/,h=/\s+$/,p=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,v=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,T=/(opera)(?:.*version)?[ \/]([\w.]+)/,w=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,D=/-([a-z]|[0-9])/gi,S=/^-ms-/,k=function(e,t){return(t+"").toUpperCase()},C=F.userAgent,M=Object.prototype.toString,_=Object.prototype.hasOwnProperty,N=Array.prototype.push,E=Array.prototype.slice,A=String.prototype.trim,L=Array.prototype.indexOf,H={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var i,o,a,u;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&O.body)return this.context=O,this[0]=O.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((i="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?c.exec(e):[null,e,null])&&(i[1]||!n)){if(i[1])return u=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:O,(a=p.exec(e))?s.isPlainObject(n)?(e=[O.createElement(a[1])],s.fn.attr.call(e,n,!0)):e=[u.createElement(a[1])]:e=((a=s.buildFragment([i[1]],[u])).cacheable?s.clone(a.fragment):a.fragment).childNodes,s.merge(this,e);if((o=O.getElementById(i[2]))&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=O,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return E.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?N.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),o.add(e),this},eq:function(e){return-1===(e=+e)?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(E.apply(this,arguments),"slice",E.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:N,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,i,o,a,u=arguments[0]||{},l=1,c=arguments.length,d=!1;for("boolean"==typeof u&&(d=u,u=arguments[1]||{},l=2),"object"!=typeof u&&!s.isFunction(u)&&(u={}),c===l&&(u=this,--l);l<c;l++)if(null!=(e=arguments[l]))for(n in e)r=u[n],u!==(i=e[n])&&(d&&i&&(s.isPlainObject(i)||(o=s.isArray(i)))?(o?(o=!1,a=r&&s.isArray(r)?r:[]):a=r&&s.isPlainObject(r)?r:{},u[n]=s.extend(d,a,i)):i!==t&&(u[n]=i));return u},s.extend({noConflict:function(t){return e.$===s&&(e.$=l),t&&e.jQuery===s&&(e.jQuery=u),s},isReady:!1,readyWait:1,holdReady:function(e){e?s.readyWait++:s.ready(!0)},ready:function(e){if(!0===e&&!--s.readyWait||!0!==e&&!s.isReady){if(!O.body)return setTimeout(s.ready,1);if(s.isReady=!0,!0!==e&&--s.readyWait>0)return;o.fireWith(O,[s]),s.fn.trigger&&s(O).trigger("ready").off("ready")}},bindReady:function(){if(!o){if(o=s.Callbacks("once memory"),"complete"===O.readyState)return setTimeout(s.ready,1);if(O.addEventListener)O.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",s.ready,!1);else if(O.attachEvent){O.attachEvent("onreadystatechange",a),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(F){}O.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):H[M.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!_.call(e,"constructor")&&!_.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(O){return!1}var n;for(n in e);return n===t||_.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(g,"@").replace(y,"]").replace(v,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){if("string"!=typeof n||!n)return null;var r;try{e.DOMParser?r=(new DOMParser).parseFromString(n,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(l){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(S,"ms-").replace(D,k)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var i,o=0,a=e.length,u=a===t||s.isFunction(e);if(r)if(u){for(i in e)if(!1===n.apply(e[i],r))break}else for(;o<a&&!1!==n.apply(e[o++],r););else if(u){for(i in e)if(!1===n.call(e[i],i,e[i]))break}else for(;o<a&&!1!==n.call(e[o],o,e[o++]););return e},trim:A?function(e){return null==e?"":A.call(e)}:function(e){return null==e?"":(e+"").replace(f,"").replace(h,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var r=s.type(e);null==e.length||"string"===r||"function"===r||"regexp"===r||s.isWindow(e)?N.call(n,e):s.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(L)return L.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=e.length,i=0;if("number"==typeof n.length)for(var o=n.length;i<o;i++)e[r++]=n[i];else for(;n[i]!==t;)e[r++]=n[i++];return e.length=r,e},grep:function(e,t,n){var r=[];n=!!n;for(var i=0,o=e.length;i<o;i++)n!==!!t(e[i],i)&&r.push(e[i]);return r},map:function(e,n,r){var i,o,a=[],u=0,l=e.length;if(e instanceof s||l!==t&&"number"==typeof l&&(l>0&&e[0]&&e[l-1]||0===l||s.isArray(e)))for(;u<l;u++)null!=(i=n(e[u],u,r))&&(a[a.length]=i);else for(o in e)null!=(i=n(e[o],o,r))&&(a[a.length]=i);return a.concat.apply([],a)},guid:1,proxy:function(e,n){if("string"==typeof n){var r=e[n];n=e,e=r}if(!s.isFunction(e))return t;var i=E.call(arguments,2),o=function(){return e.apply(n,i.concat(E.call(arguments)))};return o.guid=e.guid=e.guid||o.guid||s.guid++,o},access:function(e,n,r,i,o,a,u){var l,c=null==r,d=0,f=e.length;if(r&&"object"==typeof r){for(d in r)s.access(e,n,d,r[d],1,a,i);o=1}else if(i!==t){if(l=u===t&&s.isFunction(i),c&&(l?(l=n,n=function(e,t,n){return l.call(s(e),n)}):(n.call(e,i),n=null)),n)for(;d<f;d++)n(e[d],r,l?i.call(e[d],d,n(e[d],r)):i,u);o=1}return o?e:c?n.call(e):f?n(e[0],r):a},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=b.exec(e)||T.exec(e)||w.exec(e)||e.indexOf("compatible")<0&&x.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}s.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,r){return r&&r instanceof s&&!(r instanceof e)&&(r=e(r)),s.fn.init.call(this,n,r,t)},e.fn.init.prototype=e.fn;var t=e(O);return e},browser:{}}),s.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){H["[object "+t+"]"]=t.toLowerCase()}),(i=s.uaMatch(C)).browser&&(s.browser[i.browser]=!0,s.browser.version=i.version),s.browser.webkit&&(s.browser.safari=!0),d.test("\xa0")&&(f=/^[\s\xA0]+/,h=/[\s\xA0]+$/),r=s(O),O.addEventListener?a=function(){O.removeEventListener("DOMContentLoaded",a,!1),s.ready()}:O.attachEvent&&(a=function(){"complete"===O.readyState&&(O.detachEvent("onreadystatechange",a),s.ready())}),s}(),j={};H.Callbacks=function(e){e=e?j[e]||A(e):{};var n,r,i,o,a,s,u=[],l=[],c=function(t){var n,r,i,o;for(n=0,r=t.length;n<r;n++)i=t[n],"array"===(o=H.type(i))?c(i):"function"===o&&(!e.unique||!f.has(i))&&u.push(i)},d=function(t,c){for(c=c||[],n=!e.memory||[t,c],r=!0,i=!0,s=o||0,o=0,a=u.length;u&&s<a;s++)if(!1===u[s].apply(t,c)&&e.stopOnFalse){n=!0;break}i=!1,u&&(e.once?!0===n?f.disable():u=[]:l&&l.length&&(n=l.shift(),f.fireWith(n[0],n[1])))},f={add:function(){if(u){var e=u.length;c(arguments),i?a=u.length:n&&!0!==n&&(o=e,d(n[0],n[1]))}return this},remove:function(){if(u)for(var t=arguments,n=0,r=t.length;n<r;n++)for(var o=0;o<u.length&&(t[n]!==u[o]||(i&&o<=a&&(a--,o<=s&&s--),u.splice(o--,1),!e.unique));o++);return this},has:function(e){if(u)for(var t=0,n=u.length;t<n;t++)if(e===u[t])return!0;return!1},empty:function(){return u=[],this},disable:function(){return u=l=n=t,this},disabled:function(){return!u},lock:function(){return l=t,(!n||!0===n)&&f.disable(),this},locked:function(){return!l},fireWith:function(t,r){return l&&(i?e.once||l.push([t,r]):(!e.once||!n)&&d(t,r)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f};var $=[].slice;H.extend({Deferred:function(e){var t,n=H.Callbacks("once memory"),r=H.Callbacks("once memory"),i=H.Callbacks("memory"),o="pending",a={resolve:n,reject:r,notify:i},s={done:n.add,fail:r.add,progress:i.add,state:function(){return o},isResolved:n.fired,isRejected:r.fired,then:function(e,t,n){return u.done(e).fail(t).progress(n),this},always:function(){return u.done.apply(u,arguments).fail.apply(u,arguments),this},pipe:function(e,t,n){return H.Deferred(function(r){H.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,i=t[0],o=t[1];H.isFunction(i)?u[e](function(){(n=i.apply(this,arguments))&&H.isFunction(n.promise)?n.promise().then(r.resolve,r.reject,r.notify):r[o+"With"](this===u?r:this,[n])}):u[e](r[o])})}).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},u=s.promise({});for(t in a)u[t]=a[t].fire,u[t+"With"]=a[t].fireWith;return u.done(function(){o="resolved"},r.disable,i.lock).fail(function(){o="rejected"},n.disable,i.lock),e&&e.call(u,u),u},when:function(e){function t(e){return function(t){a[e]=arguments.length>1?$.call(arguments,0):t,u.notifyWith(l,a)}}function n(e){return function(t){r[e]=arguments.length>1?$.call(arguments,0):t,--s||u.resolveWith(u,r)}}var r=$.call(arguments,0),i=0,o=r.length,a=Array(o),s=o,u=o<=1&&e&&H.isFunction(e.promise)?e:H.Deferred(),l=u.promise();if(o>1){for(;i<o;i++)r[i]&&r[i].promise&&H.isFunction(r[i].promise)?r[i].promise().then(n(i),u.reject,t(i)):--s;s||u.resolveWith(u,r)}else u!==e&&u.resolveWith(u,o?[e]:[]);return l}}),H.support=function(){var t,n,r,i,o,a,s,u,l,c,d,f=O.createElement("div");O.documentElement;if(f.setAttribute("className","t"),f.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",n=f.getElementsByTagName("*"),r=f.getElementsByTagName("a")[0],!n||!n.length||!r)return{};o=(i=O.createElement("select")).appendChild(O.createElement("option")),a=f.getElementsByTagName("input")[0],t={leadingWhitespace:3===f.firstChild.nodeType,tbody:!f.getElementsByTagName("tbody").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.55/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==f.className,enctype:!!O.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==O.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},H.boxModel=t.boxModel="CSS1Compat"===O.compatMode,a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,i.disabled=!0,t.optDisabled=!o.disabled;try{delete f.test}catch(Y){t.deleteExpando=!1}if(!f.addEventListener&&f.attachEvent&&f.fireEvent&&(f.attachEvent("onclick",function(){t.noCloneEvent=!1}),f.cloneNode(!0).fireEvent("onclick")),(a=O.createElement("input")).value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),f.appendChild(a),(s=O.createDocumentFragment()).appendChild(f.lastChild),t.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,s.removeChild(a),s.appendChild(f),f.attachEvent)for(c in{submit:1,change:1,focusin:1})(d=(l="on"+c)in f)||(f.setAttribute(l,"return;"),d="function"==typeof f[l]),t[c+"Bubbles"]=d;return s.removeChild(f),s=i=o=f=a=null,H(function(){var n,r,i,o,a,s,l,c,h,p,m,g,y=O.getElementsByTagName("body")[0];!y||(l=1,m=(g="padding:0;margin:0;border:")+"0;visibility:hidden;",h="<div "+(c="style='"+(p="position:absolute;top:0;left:0;width:1px;height:1px;")+g+"5px solid #000;")+"display:block;'><div style='"+g+"0;display:block;overflow:hidden;'></div></div><table "+c+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(n=O.createElement("div")).style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+l+"px",y.insertBefore(n,y.firstChild),f=O.createElement("div"),n.appendChild(f),f.innerHTML="<table><tr><td style='"+g+"0;display:none'></td><td>t</td></tr></table>",u=f.getElementsByTagName("td"),d=0===u[0].offsetHeight,u[0].style.display="",u[1].style.display="none",t.reliableHiddenOffsets=d&&0===u[0].offsetHeight,e.getComputedStyle&&(f.innerHTML="",(s=O.createElement("div")).style.width="0",s.style.marginRight="0",f.style.width="2px",f.appendChild(s),t.reliableMarginRight=0===(parseInt((e.getComputedStyle(s,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof f.style.zoom&&(f.innerHTML="",f.style.width=f.style.padding="1px",f.style.border=0,f.style.overflow="hidden",f.style.display="inline",f.style.zoom=1,t.inlineBlockNeedsLayout=3===f.offsetWidth,f.style.display="block",f.style.overflow="visible",f.innerHTML="<div style='width:5px;'></div>",t.shrinkWrapBlocks=3!==f.offsetWidth),f.style.cssText=p+m,f.innerHTML=h,i=(r=f.firstChild).firstChild,o=r.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==i.offsetTop,doesAddBorderForTableAndCells:5===o.offsetTop},i.style.position="fixed",i.style.top="20px",a.fixedPosition=20===i.offsetTop||15===i.offsetTop,i.style.position=i.style.top="",r.style.overflow="hidden",r.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===i.offsetTop,a.doesNotIncludeMarginInBodyOffset=y.offsetTop!==l,e.getComputedStyle&&(f.style.marginTop="1%",t.pixelMargin="1%"!==(e.getComputedStyle(f,null)||{marginTop:0}).marginTop),"undefined"!=typeof n.style.zoom&&(n.style.zoom=1),y.removeChild(n),s=f=n=null,H.extend(t,a))}),t}();var P=/^(?:\{.*\}|\[.*\])$/,z=/([A-Z])/g;H.extend({cache:{},uuid:0,expando:"jQuery"+(H.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?H.cache[e[H.expando]]:e[H.expando])&&!N(e)},data:function(e,n,r,i){if(H.acceptData(e)){var o,a,s,u=H.expando,l="string"==typeof n,c=e.nodeType,d=c?H.cache:e,f=c?e[u]:e[u]&&u,h="events"===n;if((!f||!d[f]||!h&&!i&&!d[f].data)&&l&&r===t)return;return f||(c?e[u]=f=++H.uuid:f=u),d[f]||(d[f]={},c||(d[f].toJSON=H.noop)),"object"!=typeof n&&"function"!=typeof n||(i?d[f]=H.extend(d[f],n):d[f].data=H.extend(d[f].data,n)),o=a=d[f],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[H.camelCase(n)]=r),h&&!a[n]?o.events:(l?null==(s=a[n])&&(s=a[H.camelCase(n)]):s=a,s)}},removeData:function(e,t,n){if(H.acceptData(e)){var r,i,o,a=H.expando,s=e.nodeType,u=s?H.cache:e,l=s?e[a]:a;if(!u[l])return;if(t&&(r=n?u[l]:u[l].data)){H.isArray(t)||(t in r?t=[t]:t=(t=H.camelCase(t))in r?[t]:t.split(" "));for(i=0,o=t.length;i<o;i++)delete r[t[i]];if(!(n?N:H.isEmptyObject)(r))return}if(!n&&(delete u[l].data,!N(u[l])))return;H.support.deleteExpando||!u.setInterval?delete u[l]:u[l]=null,s&&(H.support.deleteExpando?delete e[a]:e.removeAttribute?e.removeAttribute(a):e[a]=null)}},_data:function(e,t,n){return H.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=H.noData[e.nodeName.toLowerCase()];if(t)return!0!==t&&e.getAttribute("classid")===t}return!0}}),H.fn.extend({data:function(e,n){var r,i,o,a,s,u=this[0],l=0,c=null;if(e===t){if(this.length&&(c=H.data(u),1===u.nodeType&&!H._data(u,"parsedAttrs"))){for(s=(o=u.attributes).length;l<s;l++)0===(a=o[l].name).indexOf("data-")&&(a=H.camelCase(a.substring(5)),E(u,a,c[a]));H._data(u,"parsedAttrs",!0)}return c}return"object"==typeof e?this.each(function(){H.data(this,e)}):((r=e.split(".",2))[1]=r[1]?"."+r[1]:"",i=r[1]+"!",H.access(this,function(n){if(n===t)return(c=this.triggerHandler("getData"+i,[r[0]]))===t&&u&&(c=H.data(u,e),c=E(u,e,c)),c===t&&r[1]?this.data(r[0]):c;r[1]=n,this.each(function(){var t=H(this);t.triggerHandler("setData"+i,r),H.data(this,e,n),t.triggerHandler("changeData"+i,r)})},null,n,arguments.length>1,null,!1))},removeData:function(e){return this.each(function(){H.removeData(this,e)})}}),H.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",H._data(e,t,(H._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){var r=(n=n||"fx")+"mark",i=e?0:(H._data(t,r)||1)-1;i?H._data(t,r,i):(H.removeData(t,r,!0),_(t,n,"mark"))}},queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=H._data(e,t),n&&(!r||H.isArray(n)?r=H._data(e,t,H.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=H.queue(e,t),r=n.shift(),i={};"inprogress"===r&&(r=n.shift()),r&&("fx"===t&&n.unshift("inprogress"),H._data(e,t+".run",i),r.call(e,function(){H.dequeue(e,t)},i)),n.length||(H.removeData(e,t+"queue "+t+".run",!0),_(e,t,"queue"))}}),H.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),arguments.length<r?H.queue(this[0],e):n===t?this:this.each(function(){var t=H.queue(this,e,n);"fx"===e&&"inprogress"!==t[0]&&H.dequeue(this,e)})},dequeue:function(e){return this.each(function(){H.dequeue(this,e)})},delay:function(e,t){return e=H.fx&&H.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){function r(){--u||o.resolveWith(a,[a])}"string"!=typeof e&&(n=e,e=t),e=e||"fx";for(var i,o=H.Deferred(),a=this,s=a.length,u=1,l=e+"defer",c=e+"queue",d=e+"mark";s--;)(i=H.data(a[s],l,t,!0)||(H.data(a[s],c,t,!0)||H.data(a[s],d,t,!0))&&H.data(a[s],l,H.Callbacks("once memory"),!0))&&(u++,i.add(r));return r(),o.promise(n)}});var I,R,W,B=/[\n\t\r]/g,q=/\s+/,U=/\r/g,Y=/^(?:button|input)$/i,K=/^(?:button|input|object|select|textarea)$/i,G=/^a(?:rea)?$/i,V=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,X=H.support.getSetAttribute;H.fn.extend({attr:function(e,t){return H.access(this,H.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){H.removeAttr(this,e)})},prop:function(e,t){return H.access(this,H.prop,e,t,arguments.length>1)},removeProp:function(e){return e=H.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(O){}})},addClass:function(e){var t,n,r,i,o,a,s;if(H.isFunction(e))return this.each(function(t){H(this).addClass(e.call(this,t,this.className))});if(e&&"string"==typeof e)for(t=e.split(q),n=0,r=this.length;n<r;n++)if(1===(i=this[n]).nodeType)if(i.className||1!==t.length){for(o=" "+i.className+" ",a=0,s=t.length;a<s;a++)~o.indexOf(" "+t[a]+" ")||(o+=t[a]+" ");i.className=H.trim(o)}else i.className=e;return this},removeClass:function(e){var n,r,i,o,a,s,u;if(H.isFunction(e))return this.each(function(t){H(this).removeClass(e.call(this,t,this.className))});if(e&&"string"==typeof e||e===t)for(n=(e||"").split(q),r=0,i=this.length;r<i;r++)if(1===(o=this[r]).nodeType&&o.className)if(e){for(a=(" "+o.className+" ").replace(B," "),s=0,u=n.length;s<u;s++)a=a.replace(" "+n[s]+" "," ");o.className=H.trim(a)}else o.className="";return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return H.isFunction(e)?this.each(function(n){H(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var i,o=0,a=H(this),s=t,u=e.split(q);i=u[o++];)a[(s=r?s:!a.hasClass(i))?"addClass":"removeClass"](i);else"undefined"!==n&&"boolean"!==n||(this.className&&H._data(this,"__className__",this.className),this.className=this.className||!1===e?"":H._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(B," ").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,o=this[0];return arguments.length?(i=H.isFunction(e),this.each(function(r){var o,a=H(this);1===this.nodeType&&(null==(o=i?e.call(this,r,a.val()):e)?o="":"number"==typeof o?o+="":H.isArray(o)&&(o=H.map(o,function(e){return null==e?"":e+""})),(n=H.valHooks[this.type]||H.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))})):o?(n=H.valHooks[o.type]||H.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&(r=n.get(o,"value"))!==t?r:"string"==typeof(r=o.value)?r.replace(U,""):null==r?"":r:void 0}}),H.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,o=e.selectedIndex,a=[],s=e.options,u="select-one"===e.type;if(o<0)return null;for(n=u?o:0,r=u?o+1:s.length;n<r;n++)if((i=s[n]).selected&&(H.support.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!H.nodeName(i.parentNode,"optgroup"))){if(t=H(i).val(),u)return t;a.push(t)}return u&&!a.length&&s.length?H(s[o]).val():a},set:function(e,t){var n=H.makeArray(t);return H(e).find("option").each(function(){this.selected=H.inArray(H(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return i&&n in H.attrFn?H(e)[n](r):"undefined"==typeof e.getAttribute?H.prop(e,n,r):((s=1!==u||!H.isXMLDoc(e))&&(n=n.toLowerCase(),a=H.attrHooks[n]||(V.test(n)?R:I)),r!==t?null===r?void H.removeAttr(e,n):a&&"set"in a&&s&&(o=a.set(e,r,n))!==t?o:(e.setAttribute(n,""+r),r):a&&"get"in a&&s&&null!==(o=a.get(e,n))?o:null===(o=e.getAttribute(n))?t:o)},removeAttr:function(e,t){var n,r,i,o,a,s=0;if(t&&1===e.nodeType)for(o=(r=t.toLowerCase().split(q)).length;s<o;s++)(i=r[s])&&(n=H.propFix[i]||i,(a=V.test(i))||H.attr(e,i,""),e.removeAttribute(X?i:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(Y.test(e.nodeName)&&e.parentNode)H.error("type property can't be changed");else if(!H.support.radioValue&&"radio"===t&&H.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return I&&H.nodeName(e,"button")?I.get(e,t):t in e?e.value:null},set:function(e,t,n){if(I&&H.nodeName(e,"button"))return I.set(e,t,n);e.value=t}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!H.isXMLDoc(e))&&(n=H.propFix[n]||n,o=H.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):K.test(e.nodeName)||G.test(e.nodeName)&&e.href?0:t}}}}),H.attrHooks.tabindex=H.propHooks.tabIndex,R={get:function(e,n){var r,i=H.prop(e,n);return!0===i||"boolean"!=typeof i&&(r=e.getAttributeNode(n))&&!1!==r.nodeValue?n.toLowerCase():t},set:function(e,t,n){var r;return!1===t?H.removeAttr(e,n):((r=H.propFix[n]||n)in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},X||(W={name:!0,id:!0,coords:!0},I=H.valHooks.button={get:function(e,n){var r;return(r=e.getAttributeNode(n))&&(W[n]?""!==r.nodeValue:r.specified)?r.nodeValue:t},set:function(e,t,n){var r=e.getAttributeNode(n);return r||(r=O.createAttribute(n),e.setAttributeNode(r)),r.nodeValue=t+""}},H.attrHooks.tabindex.set=I.set,H.each(["width","height"],function(e,t){H.attrHooks[t]=H.extend(H.attrHooks[t],{set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}})}),H.attrHooks.contenteditable={get:I.get,set:function(e,t,n){""===t&&(t="false"),I.set(e,t,n)}}),H.support.hrefNormalized||H.each(["href","src","width","height"],function(e,n){H.attrHooks[n]=H.extend(H.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null===r?t:r}})}),H.support.style||(H.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=""+t}}),H.support.optSelected||(H.propHooks.selected=H.extend(H.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),H.support.enctype||(H.propFix.enctype="encoding"),H.support.checkOn||H.each(["radio","checkbox"],function(){H.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),H.each(["radio","checkbox"],function(){H.valHooks[this]=H.extend(H.valHooks[this],{set:function(e,t){if(H.isArray(t))return e.checked=H.inArray(H(e).val(),t)>=0}})});var Z=/^(?:textarea|input|select)$/i,J=/^([^\.]*)?(?:\.(.+))?$/,Q=/(?:^|\s)hover(\.\S+)?\b/,ee=/^key/,te=/^(?:mouse|contextmenu)|click/,ne=/^(?:focusinfocus|focusoutblur)$/,re=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ie=function(e){var t=re.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},oe=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n["class"]||{}).value))},ae=function(e){return H.event.special.hover?e:e.replace(Q,"mouseenter$1 mouseleave$1")};H.event={add:function(e,n,r,i,o){var a,s,u,l,c,d,f,h,p,m,g;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(a=H._data(e))){for(r.handler&&(r=(p=r).handler,o=p.selector),r.guid||(r.guid=H.guid++),(u=a.events)||(a.events=u={}),(s=a.handle)||(a.handle=s=function(e){return void 0===H||e&&H.event.triggered===e.type?t:H.event.dispatch.apply(s.elem,arguments)},s.elem=e),
n=H.trim(ae(n)).split(" "),l=0;l<n.length;l++)d=(c=J.exec(n[l])||[])[1],f=(c[2]||"").split(".").sort(),g=H.event.special[d]||{},d=(o?g.delegateType:g.bindType)||d,g=H.event.special[d]||{},h=H.extend({type:d,origType:c[1],data:i,handler:r,guid:r.guid,selector:o,quick:o&&ie(o),namespace:f.join(".")},p),(m=u[d])||((m=u[d]=[]).delegateCount=0,g.setup&&!1!==g.setup.call(e,i,f,s)||(e.addEventListener?e.addEventListener(d,s,!1):e.attachEvent&&e.attachEvent("on"+d,s))),g.add&&(g.add.call(e,h),h.handler.guid||(h.handler.guid=r.guid)),o?m.splice(m.delegateCount++,0,h):m.push(h),H.event.global[d]=!0;e=null}},global:{},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,h,p,m,g,y=H.hasData(e)&&H._data(e);if(y&&(f=y.events)){for(t=H.trim(ae(t||"")).split(" "),o=0;o<t.length;o++)if(s=u=(a=J.exec(t[o])||[])[1],l=a[2],s){for(h=H.event.special[s]||{},c=(m=f[s=(r?h.delegateType:h.bindType)||s]||[]).length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=0;d<m.length;d++)g=m[d],(i||u===g.origType)&&(!n||n.guid===g.guid)&&(!l||l.test(g.namespace))&&(!r||r===g.selector||"**"===r&&g.selector)&&(m.splice(d--,1),g.selector&&m.delegateCount--,h.remove&&h.remove.call(e,g));0===m.length&&c!==m.length&&((!h.teardown||!1===h.teardown.call(e,l))&&H.removeEvent(e,s,y.handle),delete f[s])}else for(s in f)H.event.remove(e,s+t[o],n,r,!0);H.isEmptyObject(f)&&((p=y.handle)&&(p.elem=null),H.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,i,o){if(!i||3!==i.nodeType&&8!==i.nodeType){var a,s,u,l,c,d,f,h,p,m,g=n.type||n,y=[];if(ne.test(g+H.event.triggered))return;if(g.indexOf("!")>=0&&(g=g.slice(0,-1),s=!0),g.indexOf(".")>=0&&(g=(y=g.split(".")).shift(),y.sort()),(!i||H.event.customEvent[g])&&!H.event.global[g])return;if((n="object"==typeof n?n[H.expando]?n:new H.Event(g,n):new H.Event(g)).type=g,n.isTrigger=!0,n.exclusive=s,n.namespace=y.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=g.indexOf(":")<0?"on"+g:"",!i){for(u in a=H.cache)a[u].events&&a[u].events[g]&&H.event.trigger(n,r,a[u].handle.elem,!0);return}if(n.result=t,n.target||(n.target=i),(r=null!=r?H.makeArray(r):[]).unshift(n),(f=H.event.special[g]||{}).trigger&&!1===f.trigger.apply(i,r))return;if(p=[[i,f.bindType||g]],!o&&!f.noBubble&&!H.isWindow(i)){for(m=f.delegateType||g,l=ne.test(m+g)?i:i.parentNode,c=null;l;l=l.parentNode)p.push([l,m]),c=l;c&&c===i.ownerDocument&&p.push([c.defaultView||c.parentWindow||e,m])}for(u=0;u<p.length&&!n.isPropagationStopped();u++)l=p[u][0],n.type=p[u][1],(h=(H._data(l,"events")||{})[n.type]&&H._data(l,"handle"))&&h.apply(l,r),(h=d&&l[d])&&H.acceptData(l)&&!1===h.apply(l,r)&&n.preventDefault();return n.type=g,!o&&!n.isDefaultPrevented()&&(!f._default||!1===f._default.apply(i.ownerDocument,r))&&("click"!==g||!H.nodeName(i,"a"))&&H.acceptData(i)&&d&&i[g]&&("focus"!==g&&"blur"!==g||0!==n.target.offsetWidth)&&!H.isWindow(i)&&((c=i[d])&&(i[d]=null),H.event.triggered=g,i[g](),H.event.triggered=t,c&&(i[d]=c)),n.result}},dispatch:function(n){n=H.event.fix(n||e.event);var r,i,o,a,s,u,l,c,d,f,h=(H._data(this,"events")||{})[n.type]||[],p=h.delegateCount,m=[].slice.call(arguments,0),g=!n.exclusive&&!n.namespace,y=H.event.special[n.type]||{},v=[];if(m[0]=n,n.delegateTarget=this,!y.preDispatch||!1!==y.preDispatch.call(this,n)){if(p&&(!n.button||"click"!==n.type))for((a=H(this)).context=this.ownerDocument||this,o=n.target;o!=this;o=o.parentNode||this)if(!0!==o.disabled){for(u={},c=[],a[0]=o,r=0;r<p;r++)u[f=(d=h[r]).selector]===t&&(u[f]=d.quick?oe(o,d.quick):a.is(f)),u[f]&&c.push(d);c.length&&v.push({elem:o,matches:c})}for(h.length>p&&v.push({elem:this,matches:h.slice(p)}),r=0;r<v.length&&!n.isPropagationStopped();r++)for(l=v[r],n.currentTarget=l.elem,i=0;i<l.matches.length&&!n.isImmediatePropagationStopped();i++)d=l.matches[i],(g||!n.namespace&&!d.namespace||n.namespace_re&&n.namespace_re.test(d.namespace))&&(n.data=d.data,n.handleObj=d,(s=((H.event.special[d.origType]||{}).handle||d.handler).apply(l.elem,m))!==t&&(n.result=s,!1===s&&(n.preventDefault(),n.stopPropagation())));return y.postDispatch&&y.postDispatch.call(this,n),n.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,a=n.button,s=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=(r=e.target.ownerDocument||O).documentElement,o=r.body,e.pageX=n.clientX+(i&&i.scrollLeft||o&&o.scrollLeft||0)-(i&&i.clientLeft||o&&o.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||o&&o.scrollTop||0)-(i&&i.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?n.toElement:s),!e.which&&a!==t&&(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[H.expando])return e;var n,r,i=e,o=H.event.fixHooks[e.type]||{},a=o.props?this.props.concat(o.props):this.props;for(e=H.Event(i),n=a.length;n;)e[r=a[--n]]=i[r];return e.target||(e.target=i.srcElement||O),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),o.filter?o.filter(e,i):e},special:{ready:{setup:H.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){H.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=H.extend(new H.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?H.event.trigger(i,null,t):H.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},H.event.handle=H.event.dispatch,H.removeEvent=O.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},H.Event=function(e,t){if(!(this instanceof H.Event))return new H.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?C:M):this.type=e,t&&H.extend(this,t),this.timeStamp=e&&e.timeStamp||H.now(),this[H.expando]=!0},H.Event.prototype={preventDefault:function(){this.isDefaultPrevented=C;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=C;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=C,this.stopPropagation()},isDefaultPrevented:M,isPropagationStopped:M,isImmediatePropagationStopped:M},H.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){H.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;o.selector;return i&&(i===r||H.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),H.support.submitBubbles||(H.event.special.submit={setup:function(){if(H.nodeName(this,"form"))return!1;H.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=H.nodeName(n,"input")||H.nodeName(n,"button")?n.form:t;r&&!r._submit_attached&&(H.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),r._submit_attached=!0)})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&H.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(H.nodeName(this,"form"))return!1;H.event.remove(this,"._submit")}}),H.support.changeBubbles||(H.event.special.change={setup:function(){if(Z.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(H.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),H.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,H.event.simulate("change",this,e,!0))})),!1;H.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!t._change_attached&&(H.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&H.event.simulate("change",this.parentNode,e,!0)}),t._change_attached=!0)})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return H.event.remove(this,"._change"),Z.test(this.nodeName)}}),H.support.focusinBubbles||H.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){H.event.simulate(t,e.target,H.event.fix(e),!0)};H.event.special[t]={setup:function(){0==n++&&O.addEventListener(e,r,!0)},teardown:function(){0==--n&&O.removeEventListener(e,r,!0)}}}),H.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=t),e)this.on(s,n,r,e[s],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),!1===i)i=M;else if(!i)return this;return 1===o&&(a=i,(i=function(e){return H().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=H.guid++)),this.each(function(){H.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){if(e&&e.preventDefault&&e.handleObj){var i=e.handleObj;return H(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this}if("object"==typeof e){for(var o in e)this.off(o,n,e[o]);return this}return!1!==n&&"function"!=typeof n||(r=n,n=t),!1===r&&(r=M),this.each(function(){H.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return H(this.context).on(e,this.selector,t,n),this},die:function(e,t){return H(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1==arguments.length?this.off(e,"**"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){H.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return H.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||H.guid++,r=0,i=function(n){var i=(H._data(this,"lastToggle"+e.guid)||0)%r;return H._data(this,"lastToggle"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};for(i.guid=n;r<t.length;)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),H.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){H.fn[t]=function(e,n){return null==n&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},H.attrFn&&(H.attrFn[t]=!0),ee.test(t)&&(H.event.fixHooks[t]=H.event.keyHooks),te.test(t)&&(H.event.fixHooks[t]=H.event.mouseHooks)}),function(){function e(e,t,n,r,o,a){for(var s=0,u=r.length;s<u;s++){var l=r[s];if(l){var c=!1;for(l=l[e];l;){if(l[i]===n){c=r[l.sizset];break}if(1===l.nodeType)if(a||(l[i]=n,l.sizset=s),"string"!=typeof t){if(l===t){c=!0;break}}else if(f.filter(t,[l]).length>0){c=l;break}l=l[e]}r[s]=c}}}function n(e,t,n,r,o,a){for(var s=0,u=r.length;s<u;s++){var l=r[s];if(l){var c=!1;for(l=l[e];l;){if(l[i]===n){c=r[l.sizset];break}if(1===l.nodeType&&!a&&(l[i]=n,l.sizset=s),l.nodeName.toLowerCase()===t){c=l;break}l=l[e]}r[s]=c}}}var r=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),o=0,a=Object.prototype.toString,s=!1,u=!0,l=/\\/g,c=/\r\n/g,d=/\W/;[0,0].sort(function(){return u=!1,0});var f=function(e,t,n,i){n=n||[];var o=t=t||O;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,u,l,c,d,h,g,y,v=!0,b=f.isXML(t),x=[],D=e;do{if(r.exec(""),(s=r.exec(D))&&(D=s[3],x.push(s[1]),s[2])){c=s[3];break}}while(s);if(x.length>1&&m.exec(e))if(2===x.length&&p.relative[x[0]])u=w(x[0]+x[1],t,i);else for(u=p.relative[x[0]]?[t]:f(x.shift(),t);x.length;)e=x.shift(),p.relative[e]&&(e+=x.shift()),u=w(e,u,i);else if(!i&&x.length>1&&9===t.nodeType&&!b&&p.match.ID.test(x[0])&&!p.match.ID.test(x[x.length-1])&&(t=(d=f.find(x.shift(),t,b)).expr?f.filter(d.expr,d.set)[0]:d.set[0]),t)for(u=(d=i?{expr:x.pop(),set:T(i)}:f.find(x.pop(),1!==x.length||"~"!==x[0]&&"+"!==x[0]||!t.parentNode?t:t.parentNode,b)).expr?f.filter(d.expr,d.set):d.set,x.length>0?l=T(u):v=!1;x.length;)g=h=x.pop(),p.relative[h]?g=x.pop():h="",null==g&&(g=t),p.relative[h](l,g,b);else l=x=[];if(l||(l=u),l||f.error(h||e),"[object Array]"===a.call(l))if(v)if(t&&1===t.nodeType)for(y=0;null!=l[y];y++)l[y]&&(!0===l[y]||1===l[y].nodeType&&f.contains(t,l[y]))&&n.push(u[y]);else for(y=0;null!=l[y];y++)l[y]&&1===l[y].nodeType&&n.push(u[y]);else n.push.apply(n,l);else T(l,n);return c&&(f(c,o,n,i),f.uniqueSort(n)),n};f.uniqueSort=function(e){if(v&&(s=u,e.sort(v),s))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},f.matches=function(e,t){return f(e,null,null,t)},f.matchesSelector=function(e,t){return f(t,null,null,[e]).length>0},f.find=function(e,t,n){var r,i,o,a,s,u;if(!e)return[];for(i=0,o=p.order.length;i<o;i++)if(s=p.order[i],(a=p.leftMatch[s].exec(e))&&(u=a[1],a.splice(1,1),"\\"!==u.substr(u.length-1)&&(a[1]=(a[1]||"").replace(l,""),null!=(r=p.find[s](a,t,n))))){e=e.replace(p.match[s],"");break}return r||(r="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:r,expr:e}},f.filter=function(e,n,r,i){for(var o,a,s,u,l,c,d,h,m,g=e,y=[],v=n,b=n&&n[0]&&f.isXML(n[0]);e&&n.length;){for(s in p.filter)if(null!=(o=p.leftMatch[s].exec(e))&&o[2]){if(c=p.filter[s],d=o[1],a=!1,o.splice(1,1),"\\"===d.substr(d.length-1))continue;if(v===y&&(y=[]),p.preFilter[s])if(o=p.preFilter[s](o,v,r,y,i,b)){if(!0===o)continue}else a=u=!0;if(o)for(h=0;null!=(l=v[h]);h++)l&&(m=i^(u=c(l,o,h,v)),r&&null!=u?m?a=!0:v[h]=!1:m&&(y.push(l),a=!0));if(u!==t){if(r||(v=y),e=e.replace(p.match[s],""),!a)return[];break}}if(e===g){if(null!=a)break;f.error(e)}g=e}return v},f.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var h=f.getText=function(e){var t,n,r=e.nodeType,i="";if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(c,"");for(e=e.firstChild;e;e=e.nextSibling)i+=h(e)}else if(3===r||4===r)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(i+=h(n));return i},p=f.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(e,t){var n="string"==typeof t,r=n&&!d.test(t),i=n&&!r;r&&(t=t.toLowerCase());for(var o,a=0,s=e.length;a<s;a++)if(o=e[a]){for(;(o=o.previousSibling)&&1!==o.nodeType;);e[a]=i||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}i&&f.filter(t,e,!0)},">":function(e,t){var n,r="string"==typeof t,i=0,o=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();i<o;i++)if(n=e[i]){var a=n.parentNode;e[i]=a.nodeName.toLowerCase()===t&&a}}else{for(;i<o;i++)(n=e[i])&&(e[i]=r?n.parentNode:n.parentNode===t);r&&f.filter(t,e,!0)}},"":function(t,r,i){var a,s=o++,u=e;"string"==typeof r&&!d.test(r)&&(a=r=r.toLowerCase(),u=n),u("parentNode",r,s,t,a,i)},"~":function(t,r,i){var a,s=o++,u=e;"string"==typeof r&&!d.test(r)&&(a=r=r.toLowerCase(),u=n),u("previousSibling",r,s,t,a,i)}},find:{ID:function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var n=[],r=t.getElementsByName(e[1]),i=0,o=r.length;i<o;i++)r[i].getAttribute("name")===e[1]&&n.push(r[i]);return 0===n.length?null:n}},TAG:function(e,t){if("undefined"!=typeof t.getElementsByTagName)return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,r,i,o){if(e=" "+e[1].replace(l,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(i^(a.className&&(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e)>=0)?n||r.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(l,"")},TAG:function(e){return e[1].replace(l,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||f.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&f.error(e[0]);return e[0]=o++,e},ATTR:function(e,t,n,r,i,o){var a=e[1]=e[1].replace(l,"");return!o&&p.attrMap[a]&&(e[1]=p.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(l,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,i,o){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var a=f.filter(e[3],t,n,!0^o);return n||i.push.apply(i,a),!1}e[3]=f(e[3],null,null,t)}else if(p.match.POS.test(e[0])||p.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!f(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],o=p.filters[i];if(o)return o(e,n,t,r);if("contains"===i)return(e.textContent||e.innerText||h([e])||"").indexOf(t[3])>=0;if("not"===i){for(var a=t[3],s=0,u=a.length;s<u;s++)if(a[s]===e)return!1;return!0}f.error(i)},CHILD:function(e,t){var n,r,o,a,s,u,l=t[1],c=e;switch(l){case"only":case"first":for(;c=c.previousSibling;)if(1===c.nodeType)return!1;if("first"===l)return!0;c=e;case"last":for(;c=c.nextSibling;)if(1===c.nodeType)return!1;return!0;case"nth":if(n=t[2],r=t[3],1===n&&0===r)return!0;if(o=t[0],(a=e.parentNode)&&(a[i]!==o||!e.nodeIndex)){for(s=0,c=a.firstChild;c;c=c.nextSibling)1===c.nodeType&&(c.nodeIndex=++s);a[i]=o}return u=e.nodeIndex-r,0===n?0===u:u%n==0&&u/n>=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=f.attr?f.attr(e,n):p.attrHandle[n]?p.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),i=r+"",o=t[2],a=t[4];return null==r?"!="===o:!o&&f.attr?null!=r:"="===o?i===a:"*="===o?i.indexOf(a)>=0:"~="===o?(" "+i+" ").indexOf(a)>=0:a?"!="===o?i!==a:"^="===o?0===i.indexOf(a):"$="===o?i.substr(i.length-a.length)===a:"|="===o&&(i===a||i.substr(0,a.length+1)===a+"-"):i&&!1!==r},POS:function(e,t,n,r){var i=t[2],o=p.setFilters[i];if(o)return o(e,n,t,r)}}},m=p.match.POS,g=function(e,t){return"\\"+(t-0+1)};for(var y in p.match)p.match[y]=new RegExp(p.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[y]=new RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[y].source.replace(/\\(\d+)/g,g));p.match.globalPOS=m;var v,b,T=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(O.documentElement.childNodes,0)[0].nodeType}catch(G){T=function(e,t){var n=0,r=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var i=e.length;n<i;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}O.documentElement.compareDocumentPosition?v=function(e,t){return e===t?(s=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(v=function(e,t){if(e===t)return s=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],o=[],a=e.parentNode,u=t.parentNode,l=a;if(a===u)return b(e,t);if(!a)return-1;if(!u)return 1;for(;l;)i.unshift(l),l=l.parentNode;for(l=u;l;)o.unshift(l),l=l.parentNode;n=i.length,r=o.length;for(var c=0;c<n&&c<r;c++)if(i[c]!==o[c])return b(i[c],o[c]);return c===n?b(e,o[c],-1):b(i[c],t,1)},b=function(e,t,n){if(e===t)return n;for(var r=e.nextSibling;r;){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=O.createElement("div"),n="script"+(new Date).getTime(),r=O.documentElement;e.innerHTML="<a name='"+n+"'/>",r.insertBefore(e,r.firstChild),O.getElementById(n)&&(p.find.ID=function(e,n,r){if("undefined"!=typeof n.getElementById&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||"undefined"!=typeof i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]:t:[]}},p.filter.ID=function(e,t){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=O.createElement("div");e.appendChild(O.createComment("")),e.getElementsByTagName("*").length>0&&(p.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],i=0;n[i];i++)1===n[i].nodeType&&r.push(n[i]);n=r}return n}),e.innerHTML="<a href='#'></a>",e.firstChild&&"undefined"!=typeof e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(p.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),O.querySelectorAll&&function(){var e=f,t=O.createElement("div"),n="__sizzle__";if(t.innerHTML="<p class='TEST'></p>",!t.querySelectorAll||0!==t.querySelectorAll(".TEST").length){for(var r in f=function(t,r,i,o){if(r=r||O,!o&&!f.isXML(r)){var a=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(t);if(a&&(1===r.nodeType||9===r.nodeType)){if(a[1])return T(r.getElementsByTagName(t),i);if(a[2]&&p.find.CLASS&&r.getElementsByClassName)return T(r.getElementsByClassName(a[2]),i)}if(9===r.nodeType){if("body"===t&&r.body)return T([r.body],i);if(a&&a[3]){var s=r.getElementById(a[3]);if(!s||!s.parentNode)return T([],i);if(s.id===a[3])return T([s],i)}try{return T(r.querySelectorAll(t),i)}catch(l){}}else if(1===r.nodeType&&"object"!==r.nodeName.toLowerCase()){var u=r,c=r.getAttribute("id"),d=c||n,h=r.parentNode,m=/^\s*[+~]/.test(t);c?d=d.replace(/'/g,"\\$&"):r.setAttribute("id",d),m&&h&&(r=r.parentNode);try{if(!m||h)return T(r.querySelectorAll("[id='"+d+"'] "+t),i)}catch(y){}finally{c||u.removeAttribute("id")}}}return e(t,r,i,o)},e)f[r]=e[r];t=null}}(),function(){var e=O.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var n=!t.call(O.createElement("div"),"div"),r=!1;try{t.call(O.documentElement,"[test!='']:sizzle")}catch(H){r=!0}f.matchesSelector=function(e,i){if(i=i.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!f.isXML(e))try{if(r||!p.match.PSEUDO.test(i)&&!/!=/.test(i)){var o=t.call(e,i);if(o||!n||e.document&&11!==e.document.nodeType)return o}}catch(a){}return f(i,null,null,[e]).length>0}}}(),function(){var e=O.createElement("div");if(e.innerHTML="<div class='test e'></div><div class='test'></div>",e.getElementsByClassName&&0!==e.getElementsByClassName("e").length){if(e.lastChild.className="e",1===e.getElementsByClassName("e").length)return;p.order.splice(1,0,"CLASS"),p.find.CLASS=function(e,t,n){if("undefined"!=typeof t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null}}(),O.documentElement.contains?f.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:O.documentElement.compareDocumentPosition?f.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:f.contains=function(){return!1},f.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var w=function(e,t,n){for(var r,i=[],o="",a=t.nodeType?[t]:t;r=p.match.PSEUDO.exec(e);)o+=r[0],e=e.replace(p.match.PSEUDO,"");e=p.relative[e]?e+"*":e;for(var s=0,u=a.length;s<u;s++)f(e,a[s],i,n);return f.filter(o,i)};f.attr=H.attr,f.selectors.attrMap={},H.find=f,H.expr=f.selectors,H.expr[":"]=H.expr.filters,H.unique=f.uniqueSort,H.text=f.getText,H.isXMLDoc=f.isXML,H.contains=f.contains}();var se=/Until$/,ue=/^(?:parents|prevUntil|prevAll)/,le=/,/,ce=/^.[^:#\[\.,]*$/,de=Array.prototype.slice,fe=H.expr.match.globalPOS,he={children:!0,contents:!0,next:!0,prev:!0};H.fn.extend({find:function(e){var t,n,r=this;if("string"!=typeof e)return H(e).filter(function(){for(t=0,n=r.length;t<n;t++)if(H.contains(r[t],this))return!0});var i,o,a,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(i=s.length,H.find(e,this[t],s),t>0)for(o=i;o<s.length;o++)for(a=0;a<i;a++)if(s[a]===s[o]){s.splice(o--,1);break}return s},has:function(e){var t=H(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++)if(H.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(S(this,e,!1),"not",e)},filter:function(e){return this.pushStack(S(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?fe.test(e)?H(e,this.context).index(this[0])>=0:H.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r,i=[],o=this[0];if(H.isArray(e)){for(var a=1;o&&o.ownerDocument&&o!==t;){for(n=0;n<e.length;n++)H(o).is(e[n])&&i.push({selector:e[n],elem:o,level:a});o=o.parentNode,a++}return i}var s=fe.test(e)||"string"!=typeof e?H(e,t||this.context):0;for(n=0,r=this.length;n<r;n++)for(o=this[n];o;){if(s?s.index(o)>-1:H.find.matchesSelector(o,e)){i.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===t||11===o.nodeType)break}return i=i.length>1?H.unique(i):i,this.pushStack(i,"closest",e)},index:function(e){return e?"string"==typeof e?H.inArray(this[0],H(e)):H.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?H(e,t):H.makeArray(e&&e.nodeType?[e]:e),r=H.merge(this.get(),n);return this.pushStack(k(n[0])||k(r[0])?r:H.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),H.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return H.dir(e,"parentNode")},parentsUntil:function(e,t,n){return H.dir(e,"parentNode",n)},next:function(e){return H.nth(e,2,"nextSibling")},prev:function(e){return H.nth(e,2,"previousSibling")},nextAll:function(e){return H.dir(e,"nextSibling")},prevAll:function(e){return H.dir(e,"previousSibling")},nextUntil:function(e,t,n){return H.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return H.dir(e,"previousSibling",n)},siblings:function(e){return H.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return H.sibling(e.firstChild)},contents:function(e){return H.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:H.makeArray(e.childNodes)}},function(e,t){H.fn[e]=function(n,r){var i=H.map(this,t,n);return se.test(e)||(r=n),r&&"string"==typeof r&&(i=H.filter(r,i)),i=this.length>1&&!he[e]?H.unique(i):i,(this.length>1||le.test(r))&&ue.test(e)&&(i=i.reverse()),this.pushStack(i,e,de.call(arguments).join(","))}}),H.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?H.find.matchesSelector(t[0],e)?[t[0]]:[]:H.find.matches(e,t)},dir:function(e,n,r){for(var i=[],o=e[n];o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!H(o).is(r));)1===o.nodeType&&i.push(o),o=o[n];return i},nth:function(e,t,n){t=t||1;for(var r=0;e&&(1!==e.nodeType||++r!==t);e=e[n]);return e},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var pe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",me=/ jQuery\d+="(?:\d+|null)"/g,ge=/^\s+/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ve=/<([\w:]+)/,be=/<tbody/i,Te=/<|&#?\w+;/,we=/<(?:script|style)/i,xe=/<(?:script|object|embed|option|style)/i,De=new RegExp("<(?:"+pe+")[\\s/>]","i"),Se=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/\/(java|ecma)script/i,Ce=/^\s*<!(?:\[CDATA\[|\-\-)/,Me={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},_e=D(O);Me.optgroup=Me.option,Me.tbody=Me.tfoot=Me.colgroup=Me.caption=Me.thead,Me.th=Me.td,H.support.htmlSerialize||(Me._default=[1,"div<div>","</div>"]),H.fn.extend({text:function(e){return H.access(this,function(e){return e===t?H.text(this):this.empty().append((this[0]&&this[0].ownerDocument||O).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(H.isFunction(e))return this.each(function(t){H(this).wrapAll(e.call(this,t))});if(this[0]){var t=H(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return H.isFunction(e)?this.each(function(t){H(this).wrapInner(e.call(this,t))}):this.each(function(){var t=H(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=H.isFunction(e);return this.each(function(n){H(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){H.nodeName(this,"body")||H(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=H.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,H.clean(arguments)),e}},remove:function(e,t){for(var n,r=0;null!=(n=this[r]);r++)e&&!H.filter(e,[n]).length||(!t&&1===n.nodeType&&(H.cleanData(n.getElementsByTagName("*")),H.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)for(1===e.nodeType&&H.cleanData(e.getElementsByTagName("*"));e.firstChild;)e.removeChild(e.firstChild);return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return H.clone(this,e,t)})},html:function(e){return H.access(this,function(e){
var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(me,""):null;if("string"==typeof e&&!we.test(e)&&(H.support.leadingWhitespace||!ge.test(e))&&!Me[(ve.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ye,"<$1></$2>");try{for(;r<i;r++)1===(n=this[r]||{}).nodeType&&(H.cleanData(n.getElementsByTagName("*")),n.innerHTML=e);n=0}catch(j){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){return this[0]&&this[0].parentNode?H.isFunction(e)?this.each(function(t){var n=H(this),r=n.html();n.replaceWith(e.call(this,t,r))}):("string"!=typeof e&&(e=H(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;H(this).remove(),t?H(t).before(e):H(n).append(e)})):this.length?this.pushStack(H(H.isFunction(e)?e():e),"replaceWith",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){var i,o,a,s,u=e[0],l=[];if(!H.support.checkClone&&3===arguments.length&&"string"==typeof u&&Se.test(u))return this.each(function(){H(this).domManip(e,n,r,!0)});if(H.isFunction(u))return this.each(function(i){var o=H(this);e[0]=u.call(this,i,n?o.html():t),o.domManip(e,n,r)});if(this[0]){if(s=u&&u.parentNode,o=1===(a=(i=H.support.parentNode&&s&&11===s.nodeType&&s.childNodes.length===this.length?{fragment:s}:H.buildFragment(e,this,l)).fragment).childNodes.length?a=a.firstChild:a.firstChild){n=n&&H.nodeName(o,"tr");for(var c=0,d=this.length,f=d-1;c<d;c++)r.call(n?x(this[c],o):this[c],i.cacheable||d>1&&c<f?H.clone(a,!0,!0):a)}l.length&&H.each(l,function(e,t){t.src?H.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):H.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ce,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),H.buildFragment=function(e,t,n){var r,i,o,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=O),1===e.length&&"string"==typeof s&&s.length<512&&a===O&&"<"===s.charAt(0)&&!xe.test(s)&&(H.support.checkClone||!Se.test(s))&&(H.support.html5Clone||!De.test(s))&&(i=!0,(o=H.fragments[s])&&1!==o&&(r=o)),r||(r=a.createDocumentFragment(),H.clean(e,a,r,n)),i&&(H.fragments[s]=o?r:1),{fragment:r,cacheable:i}},H.fragments={},H.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){H.fn[e]=function(n){var r=[],i=H(n),o=1===this.length&&this[0].parentNode;if(o&&11===o.nodeType&&1===o.childNodes.length&&1===i.length)return i[t](this[0]),this;for(var a=0,s=i.length;a<s;a++){var u=(a>0?this.clone(!0):this).get();H(i[a])[t](u),r=r.concat(u)}return this.pushStack(r,e,i.selector)}}),H.extend({clone:function(e,t,n){var r,i,o,a=H.support.html5Clone||H.isXMLDoc(e)||!De.test("<"+e.nodeName+">")?e.cloneNode(!0):g(e);if(!(H.support.noCloneEvent&&H.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||H.isXMLDoc(e)))for(T(e,a),r=b(e),i=b(a),o=0;r[o];++o)i[o]&&T(r[o],i[o]);if(t&&(w(e,a),n))for(r=b(e),i=b(a),o=0;r[o];++o)w(r[o],i[o]);return r=i=null,a},clean:function(e,t,n,r){var i,o,a,s=[];"undefined"==typeof(t=t||O).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||O);for(var u,l=0;null!=(u=e[l]);l++)if("number"==typeof u&&(u+=""),u){if("string"==typeof u)if(Te.test(u)){u=u.replace(ye,"<$1></$2>");var c,d=(ve.exec(u)||["",""])[1].toLowerCase(),f=Me[d]||Me._default,h=f[0],p=t.createElement("div"),m=_e.childNodes;for(t===O?_e.appendChild(p):D(t).appendChild(p),p.innerHTML=f[1]+u+f[2];h--;)p=p.lastChild;if(!H.support.tbody){var g=be.test(u),v="table"!==d||g?"<table>"!==f[1]||g?[]:p.childNodes:p.firstChild&&p.firstChild.childNodes;for(a=v.length-1;a>=0;--a)H.nodeName(v[a],"tbody")&&!v[a].childNodes.length&&v[a].parentNode.removeChild(v[a])}!H.support.leadingWhitespace&&ge.test(u)&&p.insertBefore(t.createTextNode(ge.exec(u)[0]),p.firstChild),u=p.childNodes,p&&(p.parentNode.removeChild(p),m.length>0&&((c=m[m.length-1])&&c.parentNode&&c.parentNode.removeChild(c)))}else u=t.createTextNode(u);var b;if(!H.support.appendChecked)if(u[0]&&"number"==typeof(b=u.length))for(a=0;a<b;a++)y(u[a]);else y(u);u.nodeType?s.push(u):s=H.merge(s,u)}if(n)for(i=function(e){return!e.type||ke.test(e.type)},l=0;s[l];l++)if(o=s[l],r&&H.nodeName(o,"script")&&(!o.type||ke.test(o.type)))r.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var T=H.grep(o.getElementsByTagName("script"),i);s.splice.apply(s,[l+1,0].concat(T))}n.appendChild(o)}return s},cleanData:function(e){for(var t,n,r,i=H.cache,o=H.event.special,a=H.support.deleteExpando,s=0;null!=(r=e[s]);s++)if((!r.nodeName||!H.noData[r.nodeName.toLowerCase()])&&(n=r[H.expando])){if((t=i[n])&&t.events){for(var u in t.events)o[u]?H.event.remove(r,u):H.removeEvent(r,u,t.handle);t.handle&&(t.handle.elem=null)}a?delete r[H.expando]:r.removeAttribute&&r.removeAttribute(H.expando),delete i[n]}}});var Ne,Ee,Ae,Oe=/alpha\([^)]*\)/i,Fe=/opacity=([^)]*)/,Le=/([A-Z]|^ms)/g,He=/^[\-+]?(?:\d*\.)?\d+$/i,je=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,$e=/^([\-+])=([\-+.\de]+)/,Pe=/^margin/,ze={position:"absolute",visibility:"hidden",display:"block"},Ie=["Top","Right","Bottom","Left"];H.fn.css=function(e,n){return H.access(this,function(e,n,r){return r!==t?H.style(e,n,r):H.css(e,n)},e,n,arguments.length>1)},H.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ne(e,"opacity");return""===n?"1":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:H.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s=H.camelCase(n),u=e.style,l=H.cssHooks[s];if(n=H.cssProps[s]||s,r===t)return l&&"get"in l&&(o=l.get(e,!1,i))!==t?o:u[n];if("string"===(a=typeof r)&&(o=$e.exec(r))&&(r=+(o[1]+1)*+o[2]+parseFloat(H.css(e,n)),a="number"),null==r||"number"===a&&isNaN(r))return;if("number"===a&&!H.cssNumber[s]&&(r+="px"),!(l&&"set"in l&&(r=l.set(e,r))===t))try{u[n]=r}catch(E){}}},css:function(e,n,r){var i,o;return n=H.camelCase(n),o=H.cssHooks[n],"cssFloat"===(n=H.cssProps[n]||n)&&(n="float"),o&&"get"in o&&(i=o.get(e,!0,r))!==t?i:Ne?Ne(e,n):void 0},swap:function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r}}),H.curCSS=H.css,O.defaultView&&O.defaultView.getComputedStyle&&(Ee=function(e,t){var n,r,i,o,a=e.style;return t=t.replace(Le,"-$1").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(""===(n=i.getPropertyValue(t))&&!H.contains(e.ownerDocument.documentElement,e)&&(n=H.style(e,t))),!H.support.pixelMargin&&i&&Pe.test(t)&&je.test(n)&&(o=a.width,a.width=n,n=i.width,a.width=o),n}),O.documentElement.currentStyle&&(Ae=function(e,t){var n,r,i,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&(i=a[t])&&(o=i),je.test(o)&&(n=a.left,(r=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=n,r&&(e.runtimeStyle.left=r)),""===o?"auto":o}),Ne=Ee||Ae,H.each(["height","width"],function(e,t){H.cssHooks[t]={get:function(e,n,r){if(n)return 0!==e.offsetWidth?m(e,t,r):H.swap(e,ze,function(){return m(e,t,r)})},set:function(e,t){return He.test(t)?t+"px":t}}}),H.support.opacity||(H.cssHooks.opacity={get:function(e,t){return Fe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=H.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,t>=1&&""===H.trim(o.replace(Oe,""))&&(n.removeAttribute("filter"),r&&!r.filter)||(n.filter=Oe.test(o)?o.replace(Oe,i):o+" "+i)}}),H(function(){H.support.reliableMarginRight||(H.cssHooks.marginRight={get:function(e,t){return H.swap(e,{display:"inline-block"},function(){return t?Ne(e,"margin-right"):e.style.marginRight})}})}),H.expr&&H.expr.filters&&(H.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!H.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||H.css(e,"display"))},H.expr.filters.visible=function(e){return!H.expr.filters.hidden(e)}),H.each({margin:"",padding:"",border:"Width"},function(e,t){H.cssHooks[e+t]={expand:function(n){var r,i="string"==typeof n?n.split(" "):[n],o={};for(r=0;r<4;r++)o[e+Ie[r]+t]=i[r]||i[r-2]||i[0];return o}}});var Re,We,Be=/%20/g,qe=/\[\]$/,Ue=/\r?\n/g,Ye=/#.*$/,Ke=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ge=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ve=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Xe=/^(?:GET|HEAD)$/,Ze=/^\/\//,Je=/\?/,Qe=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,et=/^(?:select|textarea)/i,tt=/\s+/,nt=/([?&])_=[^&]*/,rt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,it=H.fn.load,ot={},at={},st=["*/"]+["*"];try{Re=L.href}catch(St){(Re=O.createElement("a")).href="",Re=Re.href}We=rt.exec(Re.toLowerCase())||[],H.fn.extend({load:function(e,n,r){if("string"!=typeof e&&it)return it.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var o=e.slice(i,e.length);e=e.slice(0,i)}var a="GET";n&&(H.isFunction(n)?(r=n,n=t):"object"==typeof n&&(n=H.param(n,H.ajaxSettings.traditional),a="POST"));var s=this;return H.ajax({url:e,type:a,dataType:"html",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),s.html(o?H("<div>").append(n.replace(Qe,"")).find(o):n)),r&&s.each(r,[n,t,e])}}),this},serialize:function(){return H.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?H.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||et.test(this.nodeName)||Ge.test(this.type))}).map(function(e,t){var n=H(this).val();return null==n?null:H.isArray(n)?H.map(n,function(e){return{name:t.name,value:e.replace(Ue,"\r\n")}}):{name:t.name,value:n.replace(Ue,"\r\n")}}).get()}}),H.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){H.fn[t]=function(e){return this.on(t,e)}}),H.each(["get","post"],function(e,n){H[n]=function(e,r,i,o){return H.isFunction(r)&&(o=o||i,i=r,r=t),H.ajax({type:n,url:e,data:r,success:i,dataType:o})}}),H.extend({getScript:function(e,n){return H.get(e,t,n,"script")},getJSON:function(e,t,n){return H.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?f(e,H.ajaxSettings):(t=e,e=H.ajaxSettings),f(e,t),e},ajaxSettings:{url:Re,isLocal:Ve.test(We[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":st},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":H.parseJSON,"text xml":H.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:p(ot),ajaxTransport:p(at),ajax:function(e,n){function r(e,n,r,a){if(2!==D){D=2,u&&clearTimeout(u),s=t,o=a||"",S.readyState=e>0?4:0;var d,h,p,w,x,k=n,C=r?c(m,S,r):t;if(e>=200&&e<300||304===e)if(m.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(H.lastModified[i]=w),(x=S.getResponseHeader("Etag"))&&(H.etag[i]=x)),304===e)k="notmodified",d=!0;else try{h=l(m,C),k="success",d=!0}catch(J){k="parsererror",p=J}else p=k,k&&!e||(k="error",e<0&&(e=0));S.status=e,S.statusText=""+(n||k),d?v.resolveWith(g,[h,k,S]):v.rejectWith(g,[S,k,p]),S.statusCode(T),T=t,f&&y.trigger("ajax"+(d?"Success":"Error"),[S,m,d?h:p]),b.fireWith(g,[S,k]),f&&(y.trigger("ajaxComplete",[S,m]),--H.active||H.event.trigger("ajaxStop"))}}"object"==typeof e&&(n=e,e=t),n=n||{};var i,o,a,s,u,d,f,p,m=H.ajaxSetup({},n),g=m.context||m,y=g!==m&&(g.nodeType||g instanceof H)?H(g):H.event,v=H.Deferred(),b=H.Callbacks("once memory"),T=m.statusCode||{},w={},x={},D=0,S={readyState:0,setRequestHeader:function(e,t){if(!D){var n=e.toLowerCase();e=x[n]=x[n]||e,w[e]=t}return this},getAllResponseHeaders:function(){return 2===D?o:null},getResponseHeader:function(e){var n;if(2===D){if(!a)for(a={};n=Ke.exec(o);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return D||(m.mimeType=e),this},abort:function(e){return e=e||"abort",s&&s.abort(e),r(0,e),this}};if(v.promise(S),S.success=S.done,S.error=S.fail,S.complete=b.add,S.statusCode=function(e){var t;if(e)if(D<2)for(t in e)T[t]=[T[t],e[t]];else t=e[S.status],S.then(t,t);return this},m.url=((e||m.url)+"").replace(Ye,"").replace(Ze,We[1]+"//"),m.dataTypes=H.trim(m.dataType||"*").toLowerCase().split(tt),null==m.crossDomain&&(d=rt.exec(m.url.toLowerCase()),m.crossDomain=!(!d||d[1]==We[1]&&d[2]==We[2]&&(d[3]||("http:"===d[1]?80:443))==(We[3]||("http:"===We[1]?80:443)))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=H.param(m.data,m.traditional)),h(ot,m,n,S),2===D)return!1;if(f=m.global,m.type=m.type.toUpperCase(),m.hasContent=!Xe.test(m.type),f&&0==H.active++&&H.event.trigger("ajaxStart"),!m.hasContent&&(m.data&&(m.url+=(Je.test(m.url)?"&":"?")+m.data,delete m.data),i=m.url,!1===m.cache)){var k=H.now(),C=m.url.replace(nt,"$1_="+k);m.url=C+(C===m.url?(Je.test(m.url)?"&":"?")+"_="+k:"")}for(p in(m.data&&m.hasContent&&!1!==m.contentType||n.contentType)&&S.setRequestHeader("Content-Type",m.contentType),m.ifModified&&(i=i||m.url,H.lastModified[i]&&S.setRequestHeader("If-Modified-Since",H.lastModified[i]),H.etag[i]&&S.setRequestHeader("If-None-Match",H.etag[i])),S.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+st+"; q=0.01":""):m.accepts["*"]),m.headers)S.setRequestHeader(p,m.headers[p]);if(m.beforeSend&&(!1===m.beforeSend.call(g,S,m)||2===D))return S.abort(),!1;for(p in{success:1,error:1,complete:1})S[p](m[p]);if(s=h(at,m,n,S)){S.readyState=1,f&&y.trigger("ajaxSend",[S,m]),m.async&&m.timeout>0&&(u=setTimeout(function(){S.abort("timeout")},m.timeout));try{D=1,s.send(w,r)}catch(Z){if(!(D<2))throw Z;r(-1,Z)}}else r(-1,"No Transport");return S},param:function(e,n){var r=[],i=function(e,t){t=H.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=H.ajaxSettings.traditional),H.isArray(e)||e.jquery&&!H.isPlainObject(e))H.each(e,function(){i(this.name,this.value)});else for(var o in e)d(o,e[o],n,i);return r.join("&").replace(Be,"+")}}),H.extend({active:0,lastModified:{},etag:{}});var ut=H.now(),lt=/(\=)\?(&|$)|\?\?/i;H.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return H.expando+"_"+ut++}}),H.ajaxPrefilter("json jsonp",function(t,n,r){var i="string"==typeof t.data&&/^application\/x\-www\-form\-urlencoded/.test(t.contentType);if("jsonp"===t.dataTypes[0]||!1!==t.jsonp&&(lt.test(t.url)||i&&lt.test(t.data))){var o,a=t.jsonpCallback=H.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s=e[a],u=t.url,l=t.data,c="$1"+a+"$2";return!1!==t.jsonp&&(u=u.replace(lt,c),t.url===u&&(i&&(l=l.replace(lt,c)),t.data===l&&(u+=(/\?/.test(u)?"&":"?")+t.jsonp+"="+a))),t.url=u,t.data=l,e[a]=function(e){o=[e]},r.always(function(){e[a]=s,o&&H.isFunction(s)&&e[a](o[0])}),t.converters["script json"]=function(){return o||H.error(a+" was not called"),o[0]},t.dataTypes[0]="json","script"}}),H.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return H.globalEval(e),e}}}),H.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),H.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=O.head||O.getElementsByTagName("head")[0]||O.documentElement;return{send:function(i,o){(n=O.createElement("script")).async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){(i||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var ct,dt=!!e.ActiveXObject&&function(){for(var e in ct)ct[e](0,1)},ft=0;H.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&u()||s()}:u,function(e){H.extend(H.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(H.ajaxSettings.xhr()),H.support.ajax&&H.ajaxTransport(function(n){var r;if(!n.crossDomain||H.support.cors)return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(z){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,d,f;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=H.noop,dt&&delete ct[a]),i)4!==u.readyState&&u.abort();else{s=u.status,c=u.getAllResponseHeaders(),d={},(f=u.responseXML)&&f.documentElement&&(d.xml=f);try{d.text=u.responseText}catch(e){}try{l=u.statusText}catch(B){l=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=d.text?200:404}}catch(q){i||o(-1,q)}d&&o(s,l,d,c)},n.async&&4!==u.readyState?(a=++ft,dt&&(ct||(ct={},H(e).unload(dt)),ct[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}});var ht,pt,mt,gt,yt={},vt=/^(?:toggle|show|hide)$/,bt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Tt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];H.fn.extend({show:function(e,t,n){var o,a;if(e||0===e)return this.animate(i("show",3),e,t,n);for(var s=0,u=this.length;s<u;s++)(o=this[s]).style&&(a=o.style.display,!H._data(o,"olddisplay")&&"none"===a&&(a=o.style.display=""),(""===a&&"none"===H.css(o,"display")||!H.contains(o.ownerDocument.documentElement,o))&&H._data(o,"olddisplay",r(o.nodeName)));for(s=0;s<u;s++)(o=this[s]).style&&(""!==(a=o.style.display)&&"none"!==a||(o.style.display=H._data(o,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(i("hide",3),e,t,n);for(var r,o,a=0,s=this.length;a<s;a++)(r=this[a]).style&&("none"!==(o=H.css(r,"display"))&&!H._data(r,"olddisplay")&&H._data(r,"olddisplay",o));for(a=0;a<s;a++)this[a].style&&(this[a].style.display="none");return this},_toggle:H.fn.toggle,toggle:function(e,t,n){var r="boolean"==typeof e;return H.isFunction(e)&&H.isFunction(t)?this._toggle.apply(this,arguments):null==e||r?this.each(function(){var t=r?e:H(this).is(":hidden");H(this)[t?"show":"hide"]()}):this.animate(i("toggle",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,i){function o(){!1===a.queue&&H._mark(this);var t,n,i,o,s,u,l,c,d,f,h,p=H.extend({},a),m=1===this.nodeType,g=m&&H(this).is(":hidden");for(i in p.animatedProperties={},e)if(i!==(t=H.camelCase(i))&&(e[t]=e[i],delete e[i]),(s=H.cssHooks[t])&&"expand"in s)for(i in u=s.expand(e[t]),delete e[t],u)i in e||(e[i]=u[i]);for(t in e){if(n=e[t],H.isArray(n)?(p.animatedProperties[t]=n[1],n=e[t]=n[0]):p.animatedProperties[t]=p.specialEasing&&p.specialEasing[t]||p.easing||"swing","hide"===n&&g||"show"===n&&!g)return p.complete.call(this);m&&("height"===t||"width"===t)&&(p.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===H.css(this,"display")&&"none"===H.css(this,"float")&&(H.support.inlineBlockNeedsLayout&&"inline"!==r(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(i in null!=p.overflow&&(this.style.overflow="hidden"),e)o=new H.fx(this,p,i),n=e[i],vt.test(n)?(h=H._data(this,"toggle"+i)||("toggle"===n?g?"show":"hide":0))?(H._data(this,"toggle"+i,"show"===h?"hide":"show"),o[h]()):o[n]():(l=bt.exec(n),c=o.cur(),l?(d=parseFloat(l[2]),"px"!==(f=l[3]||(H.cssNumber[i]?"":"px"))&&(H.style(this,i,(d||1)+f),c=(d||1)/o.cur()*c,H.style(this,i,c+f)),l[1]&&(d=("-="===l[1]?-1:1)*d+c),o.custom(c,d,f)):o.custom(c,n,""));return!0}var a=H.speed(t,n,i);return H.isEmptyObject(e)?this.each(a.complete,[!1]):(e=H.extend({},e),!1===a.queue?this.each(o):this.queue(a.queue,o))},stop:function(e,n,r){return"string"!=typeof e&&(r=n,n=e,e=t),n&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){function t(e,t,n){var i=t[n];H.removeData(e,n,!0),i.stop(r)}var n,i=!1,o=H.timers,a=H._data(this);if(r||H._unmark(!0,this),null==e)for(n in a)a[n]&&a[n].stop&&n.indexOf(".run")===n.length-4&&t(this,a,n);else a[n=e+".run"]&&a[n].stop&&t(this,a,n);for(n=o.length;n--;)o[n].elem===this&&(null==e||o[n].queue===e)&&(r?o[n](!0):o[n].saveState(),i=!0,o.splice(n,1));(!r||!i)&&H.dequeue(this,e)})}}),H.each({slideDown:i("show",1),slideUp:i("hide",1),slideToggle:i("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){H.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),H.extend({speed:function(e,t,n){var r=e&&"object"==typeof e?H.extend({},e):{complete:n||!n&&t||H.isFunction(e)&&e,duration:e,easing:n&&t||t&&!H.isFunction(t)&&t};return r.duration=H.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in H.fx.speeds?H.fx.speeds[r.duration]:H.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(e){H.isFunction(r.old)&&r.old.call(this),r.queue?H.dequeue(this,r.queue):!1!==e&&H._unmark(this)},r},easing:{linear:function(e){return e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),H.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(H.fx.step[this.prop]||H.fx.step._default)(this)},cur:function(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var e,t=H.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,n,r){function i(e){return o.step(e)}var o=this,s=H.fx;this.startTime=gt||a(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=r||this.unit||(H.cssNumber[this.prop]?"":"px"),i.queue=this.options.queue,i.elem=this.elem,i.saveState=function(){H._data(o.elem,"fxshow"+o.prop)===t&&(o.options.hide?H._data(o.elem,"fxshow"+o.prop,o.start):o.options.show&&H._data(o.elem,"fxshow"+o.prop,o.end))},i()&&H.timers.push(i)&&!mt&&(mt=setInterval(s.tick,s.interval))},show:function(){var e=H._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||H.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),H(this.elem).show()},hide:function(){this.options.orig[this.prop]=H._data(this.elem,"fxshow"+this.prop)||H.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,i=gt||a(),o=!0,s=this.elem,u=this.options;if(e||i>=u.duration+this.startTime){for(t in this.now=this.end,this.pos=this.state=1,this.update(),u.animatedProperties[this.prop]=!0,u.animatedProperties)!0!==u.animatedProperties[t]&&(o=!1);if(o){if(null!=u.overflow&&!H.support.shrinkWrapBlocks&&H.each(["","X","Y"],function(e,t){s.style["overflow"+t]=u.overflow[e]}),u.hide&&H(s).hide(),u.hide||u.show)for(t in u.animatedProperties)H.style(s,t,u.orig[t]),H.removeData(s,"fxshow"+t,!0),H.removeData(s,"toggle"+t,!0);(r=u.complete)&&(u.complete=!1,r.call(s))}return!1}return u.duration==Infinity?this.now=i:(n=i-this.startTime,this.state=n/u.duration,this.pos=H.easing[u.animatedProperties[this.prop]](this.state,n,0,1,u.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},H.extend(H.fx,{tick:function(){for(var e,t=H.timers,n=0;n<t.length;n++)!(e=t[n])()&&t[n]===e&&t.splice(n--,1);t.length||H.fx.stop()},interval:13,stop:function(){clearInterval(mt),mt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){H.style(e.elem,"opacity",e.now)},_default:function(e){e.elem.style&&null!=e.elem.style[e.prop]?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),H.each(Tt.concat.apply([],Tt),function(e,t){t.indexOf("margin")&&(H.fx.step[t]=function(e){H.style(e.elem,t,Math.max(0,e.now)+e.unit)})}),H.expr&&H.expr.filters&&(H.expr.filters.animated=function(e){return H.grep(H.timers,function(t){return e===t.elem}).length});var wt,xt=/^t(?:able|d|h)$/i,Dt=/^(?:body|html)$/i;wt="getBoundingClientRect"in O.documentElement?function(e,t,r,i){try{i=e.getBoundingClientRect()}catch(L){}if(!i||!H.contains(r,e))return i?{top:i.top,left:i.left}:{top:0,left:0};var o=t.body,a=n(t),s=r.clientTop||o.clientTop||0,u=r.clientLeft||o.clientLeft||0,l=a.pageYOffset||H.support.boxModel&&r.scrollTop||o.scrollTop,c=a.pageXOffset||H.support.boxModel&&r.scrollLeft||o.scrollLeft;return{top:i.top+l-s,left:i.left+c-u}}:function(e,t,n){for(var r,i=e.offsetParent,o=t.body,a=t.defaultView,s=a?a.getComputedStyle(e,null):e.currentStyle,u=e.offsetTop,l=e.offsetLeft;(e=e.parentNode)&&e!==o&&e!==n&&(!H.support.fixedPosition||"fixed"!==s.position);)r=a?a.getComputedStyle(e,null):e.currentStyle,u-=e.scrollTop,l-=e.scrollLeft,e===i&&(u+=e.offsetTop,l+=e.offsetLeft,H.support.doesNotAddBorder&&(!H.support.doesAddBorderForTableAndCells||!xt.test(e.nodeName))&&(u+=parseFloat(r.borderTopWidth)||0,l+=parseFloat(r.borderLeftWidth)||0),i,i=e.offsetParent),H.support.subtractsBorderForOverflowNotVisible&&"visible"!==r.overflow&&(u+=parseFloat(r.borderTopWidth)||0,l+=parseFloat(r.borderLeftWidth)||0),s=r;return"relative"!==s.position&&"static"!==s.position||(u+=o.offsetTop,l+=o.offsetLeft),H.support.fixedPosition&&"fixed"===s.position&&(u+=Math.max(n.scrollTop,o.scrollTop),l+=Math.max(n.scrollLeft,o.scrollLeft)),{top:u,left:l}},H.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){H.offset.setOffset(this,e,t)});var n=this[0],r=n&&n.ownerDocument;return r?n===r.body?H.offset.bodyOffset(n):wt(n,r,r.documentElement):null},H.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return H.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(H.css(e,"marginTop"))||0,n+=parseFloat(H.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=H.css(e,"position");"static"===r&&(e.style.position="relative");var i,o,a=H(e),s=a.offset(),u=H.css(e,"top"),l=H.css(e,"left"),c={},d={};("absolute"===r||"fixed"===r)&&H.inArray("auto",[u,l])>-1?(i=(d=a.position()).top,o=d.left):(i=parseFloat(u)||0,o=parseFloat(l)||0),H.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(c.top=t.top-s.top+i),null!=t.left&&(c.left=t.left-s.left+o),"using"in t?t.using.call(e,c):a.css(c)}},H.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=Dt.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(H.css(e,"marginTop"))||0,n.left-=parseFloat(H.css(e,"marginLeft"))||0,r.top+=parseFloat(H.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(H.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||O.body;e&&!Dt.test(e.nodeName)&&"static"===H.css(e,"position");)e=e.offsetParent;return e})}}),H.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var i=/Y/.test(r);H.fn[e]=function(o){return H.access(this,function(e,o,a){var s=n(e);if(a===t)return s?r in s?s[r]:H.support.boxModel&&s.document.documentElement[o]||s.document.body[o]:e[o];s?s.scrollTo(i?H(s).scrollLeft():a,i?a:H(s).scrollTop()):e[o]=a},e,o,arguments.length,null)}}),H.each({Height:"height",Width:"width"},function(e,n){var r="client"+e,i="scroll"+e,o="offset"+e;H.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(H.css(e,n,"padding")):this[n]():null},H.fn["outer"+e]=function(e){var t=this[0];return t?t.style?parseFloat(H.css(t,n,e?"margin":"border")):this[n]():null},H.fn[n]=function(e){return H.access(this,function(e,n,a){var s,u,l,c;return H.isWindow(e)?(u=(s=e.document).documentElement[r],H.support.boxModel&&u||s.body&&s.body[r]||u):9===e.nodeType?(s=e.documentElement)[r]>=s[i]?s[r]:Math.max(e.body[i],s[i],e.body[o],s[o]):a===t?(l=H.css(e,n),c=parseFloat(l),H.isNumeric(c)?c:l):void H(e).css(n,a)},n,e,arguments.length,null)}}),e.jQuery=e.$=H,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return H})}(window),
/**
* Identicon.js 2.3.3
* http://github.com/stewartlord/identicon.js
*
* PNGLib required for PNG output
* http://www.xarg.org/download/pnglib.js
*
* Copyright 2018, Stewart Lord
* Released under the BSD license
* http://www.opensource.org/licenses/bsd-license.php
*/
function(){var e;e="undefined"!=typeof module&&"undefined"!=typeof module.exports?require("./pnglib"):window.PNGlib;var t=function(e,t){if("string"!=typeof e||e.length<15)throw"A hash of at least 15 characters is required.";this.defaults={background:[240,240,240,255],margin:.08,size:64,saturation:.7,brightness:.5,format:"png"},this.options="object"==typeof t?t:this.defaults,"number"==typeof arguments[1]&&(this.options.size=arguments[1]),arguments[2]&&(this.options.margin=arguments[2]),this.hash=e,this.background=this.options.background||this.defaults.background,this.size=this.options.size||this.defaults.size,this.format=this.options.format||this.defaults.format,this.margin=this.options.margin!==undefined?this.options.margin:this.defaults.margin;var n=parseInt(this.hash.substr(-7),16)/268435455,r=this.options.saturation||this.defaults.saturation,i=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(n,r,i)};t.prototype={background:null,foreground:null,hash:null,margin:null,size:null,format:null,image:function(){return this.isSvg()?new n(this.size,this.foreground,this.background):new e(this.size,this.size,256)},render:function(){var e,t,n=this.image(),r=this.size,i=Math.floor(r*this.margin),o=Math.floor((r-2*i)/5),a=Math.floor((r-5*o)/2),s=n.color.apply(n,this.background),u=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:u,e<5?this.rectangle(2*o+a,e*o+a,o,o,t,n):e<10?(this.rectangle(1*o+a,(e-5)*o+a,o,o,t,n),this.rectangle(3*o+a,(e-5)*o+a,o,o,t,n)):e<15&&(this.rectangle(0*o+a,(e-10)*o+a,o,o,t,n),this.rectangle(4*o+a,(e-10)*o+a,o,o,t,n));return n},rectangle:function(e,t,n,r,i,o){var a,s;if(this.isSvg())o.rectangles.push({x:e,y:t,w:n,h:r,color:i});else for(a=e;a<e+n;a++)for(s=t;s<t+r;s++)o.buffer[o.index(a,s)]=i},hsl2rgb:function(e,t,n){return[255*(t=[n+=t*=n<.5?n:1-n,n-(e*=6)%1*t*2,n-=t*=2,n,n+e%1*t,n+t])[~~e%6],255*t[(16|e)%6],255*t[(8|e)%6]]},toString:function(e){return e?this.render().getDump():this.render().getBase64()},isSvg:function(){return this.format.match(/svg/i)}};var n=function(e,t,n){this.size=e,this.foreground=this.color.apply(this,t),this.background=this.color.apply(this,n),this.rectangles=[]};n.prototype={size:null,foreground:null,background:null,rectangles:null,color:function(e,t,n,r){var i=[e,t,n].map(Math.round);return i.push(r>=0&&r<=255?r/255:1),"rgba("+i.join(",")+")"},getDump:function(){var e,t,n,r=this.foreground,i=this.background,o=.005*this.size;for(t="<svg xmlns='http://www.w3.org/2000/svg' width='"+this.size+"' height='"+this.size+"' style='background-color:"+i+";'><g style='fill:"+r+"; stroke:"+r+"; stroke-width:"+o+";'>",e=0;e<this.rectangles.length;e++)(n=this.rectangles[e]).color!=i&&(t+="<rect x='"+n.x+"' y='"+n.y+"' width='"+n.w+"' height='"+n.h+"'/>");return t+="</g></svg>"},getBase64:function(){if("function"==typeof btoa)return btoa(this.getDump());if(Buffer)return new Buffer(this.getDump(),"binary").toString("base64");throw"Cannot generate base64 output"}},"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=t:window.Identicon=t}(),
/**
* @overview datejs
* @version 1.0.0-rc3
* @author Gregory Wild-Smith <gregory@wild-smith.com>
* @copyright 2015 Gregory Wild-Smith
* @license MIT
* @homepage https://github.com/abritinthebay/datejs
*/
function(){var e=Date,t=Date.CultureStrings?Date.CultureStrings.lang:null,n={},r={getFromKey:function(e,t){var n;return n=Date.CultureStrings&&Date.CultureStrings[t]&&Date.CultureStrings[t][e]?Date.CultureStrings[t][e]:r.buildFromDefault(e),"/"===e.charAt(0)&&(n=r.buildFromRegex(e,t)),n},getFromObjectValues:function(e,t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[n]=r.getFromKey(e[n],t));return i},getFromObjectKeys:function(e,t){var n,i={};for(n in e)e.hasOwnProperty(n)&&(i[r.getFromKey(n,t)]=e[n]);return i},getFromArray:function(e,t){for(var n=[],i=0;i<e.length;i++)i in e&&(n[i]=r.getFromKey(e[i],t));return n},buildFromDefault:function(e){var t,n,r;switch(e){case"name":t="en-US";break;case"englishName":case"nativeName":t="English (United States)";break;case"twoDigitYearMax":t=2049;break;case"firstDayOfWeek":t=0;break;default:t=e,1<(n=(r=e.split("_")).length)&&"/"!==e.charAt(0)&&("initial"===(e=r[n-1].toLowerCase())||"abbr"===e)&&(t=r[0])}return t},buildFromRegex:function(e,t){return Date.CultureStrings&&Date.CultureStrings[t]&&Date.CultureStrings[t][e]?new RegExp(Date.CultureStrings[t][e],"i"):new RegExp(e.replace(RegExp("/","g"),""),"i")}},i=function(e,i){var o=i||t;return n[e]=e,"object"==typeof e?e instanceof Array?r.getFromArray(e,o):r.getFromObjectKeys(e,o):r.getFromKey(e,o)},o=function(e){e=Date.Config.i18n+e+".js";var t=document.getElementsByTagName("head")[0]||document.documentElement,n=document.createElement("script");n.src=e;var r={done:function(){}};return n.onload=n.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(r.done(),t.removeChild(n))},setTimeout(function(){t.insertBefore(n,t.firstChild)},0),{done:function(e){r.done=function(){e&&setTimeout(e,0)}}}},a={buildFromMethodHash:function(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=a[e[t]]());return e},timeZoneDST:function(){return i({CHADT:"+1345",NZDT:"+1300",AEDT:"+1100",ACDT:"+1030",AZST:"+0500",IRDT:"+0430",EEST:"+0300",CEST:"+0200",BST:"+0100",PMDT:"-0200",ADT:"-0300",NDT:"-0230",EDT:"-0400",CDT:"-0500",MDT:"-0600",PDT:"-0700",AKDT:"-0800",HADT:"-0900"})},timeZoneStandard:function(){return i({LINT:"+1400",TOT:"+1300",CHAST:"+1245",NZST:"+1200",NFT:"+1130",SBT:"+1100",AEST:"+1000",ACST:"+0930",JST:"+0900",CWST:"+0845",CT:"+0800",ICT:"+0700",MMT:"+0630",BST:"+0600",NPT:"+0545",IST:"+0530",PKT:"+0500",AFT:"+0430",MSK:"+0400",IRST:"+0330",FET:"+0300",EET:"+0200",CET:"+0100",GMT:"+0000",UTC:"+0000",CVT:"-0100",GST:"-0200",BRT:"-0300",NST:"-0330",AST:"-0400",EST:"-0500",CST:"-0600",MST:"-0700",PST:"-0800",AKST:"-0900",MIT:"-0930",HST:"-1000",SST:"-1100",BIT:"-1200"})},timeZones:function(e){var t;for(t in e.timezones=[],e.abbreviatedTimeZoneStandard)e.abbreviatedTimeZoneStandard.hasOwnProperty(t)&&e.timezones.push({name:t,offset:e.abbreviatedTimeZoneStandard[t]});for(t in e.abbreviatedTimeZoneDST)e.abbreviatedTimeZoneDST.hasOwnProperty(t)&&e.timezones.push({name:t,offset:e.abbreviatedTimeZoneDST[t],dst:!0});return e.timezones},days:function(){return i("Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "))},dayAbbr:function(){return i("Sun Mon Tue Wed Thu Fri Sat".split(" "))},dayShortNames:function(){return i("Su Mo Tu We Th Fr Sa".split(" "))},dayFirstLetters:function(){return i("S_Sun_Initial M_Mon_Initial T_Tues_Initial W_Wed_Initial T_Thu_Initial F_Fri_Initial S_Sat_Initial".split(" "))},months:function(){return i("January February March April May June July August September October November December".split(" "))},monthAbbr:function(){return i("Jan_Abbr Feb_Abbr Mar_Abbr Apr_Abbr May_Abbr Jun_Abbr Jul_Abbr Aug_Abbr Sep_Abbr Oct_Abbr Nov_Abbr Dec_Abbr".split(" "))},formatPatterns:function(){return r.getFromObjectValues({shortDate:"M/d/yyyy",longDate:"dddd, MMMM dd, yyyy",shortTime:"h:mm tt",longTime:"h:mm:ss tt",fullDateTime:"dddd, MMMM dd, yyyy h:mm:ss tt",sortableDateTime:"yyyy-MM-ddTHH:mm:ss",universalSortableDateTime:"yyyy-MM-dd HH:mm:ssZ",rfc1123:"ddd, dd MMM yyyy HH:mm:ss",monthDay:"MMMM dd",yearMonth:"MMMM, yyyy"},Date.i18n.currentLanguage())},regex:function(){return r.getFromObjectValues({inTheMorning:"/( in the )(morn(ing)?)\\b/",thisMorning:"/(this )(morn(ing)?)\\b/",amThisMorning:"/(\b\\d(am)? )(this )(morn(ing)?)/",inTheEvening:"/( in the )(even(ing)?)\\b/",thisEvening:"/(this )(even(ing)?)\\b/",pmThisEvening:"/(\b\\d(pm)? )(this )(even(ing)?)/",jan:"/jan(uary)?/",feb:"/feb(ruary)?/",mar:"/mar(ch)?/",apr:"/apr(il)?/",may:"/may/",jun:"/jun(e)?/",jul:"/jul(y)?/",aug:"/aug(ust)?/",sep:"/sep(t(ember)?)?/",oct:"/oct(ober)?/",nov:"/nov(ember)?/",dec:"/dec(ember)?/",sun:"/^su(n(day)?)?/",mon:"/^mo(n(day)?)?/",tue:"/^tu(e(s(day)?)?)?/",wed:"/^we(d(nesday)?)?/",thu:"/^th(u(r(s(day)?)?)?)?/",fri:"/fr(i(day)?)?/",sat:"/^sa(t(urday)?)?/",future:"/^next/",past:"/^last|past|prev(ious)?/",add:"/^(\\+|aft(er)?|from|hence)/",subtract:"/^(\\-|bef(ore)?|ago)/",yesterday:"/^yes(terday)?/",today:"/^t(od(ay)?)?/",tomorrow:"/^tom(orrow)?/",now:"/^n(ow)?/",millisecond:"/^ms|milli(second)?s?/",second:"/^sec(ond)?s?/",minute:"/^mn|min(ute)?s?/",hour:"/^h(our)?s?/",week:"/^w(eek)?s?/",month:"/^m(onth)?s?/",day:"/^d(ay)?s?/",year:"/^y(ear)?s?/",shortMeridian:"/^(a|p)/",longMeridian:"/^(a\\.?m?\\.?|p\\.?m?\\.?)/",timezone:"/^((e(s|d)t|c(s|d)t|m(s|d)t|p(s|d)t)|((gmt)?\\s*(\\+|\\-)\\s*\\d\\d\\d\\d?)|gmt|utc)/",ordinalSuffix:"/^\\s*(st|nd|rd|th)/",timeContext:"/^\\s*(\\:|a(?!u|p)|p)/"},Date.i18n.currentLanguage())}},s=function(){var e,t=r.getFromObjectValues({name:"name",englishName:"englishName",nativeName:"nativeName",amDesignator:"AM",pmDesignator:"PM",firstDayOfWeek:"firstDayOfWeek",twoDigitYearMax:"twoDigitYearMax",dateElementOrder:"mdy"},Date.i18n.currentLanguage()),n=a.buildFromMethodHash({dayNames:"days",abbreviatedDayNames:"dayAbbr",shortestDayNames:"dayShortNames",firstLetterDayNames:"dayFirstLetters",monthNames:"months",abbreviatedMonthNames:"monthAbbr",formatPatterns:"formatPatterns",regexPatterns:"regex",abbreviatedTimeZoneDST:"timeZoneDST",abbreviatedTimeZoneStandard:"timeZoneStandard"});for(e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return a.timeZones(t),t};e.i18n={__:function(e,t){return i(e,t)},currentLanguage:function(){return t||"en-US"},setLanguage:function(n,r,i){var a=!1;if(r||"en-US"===n||Date.CultureStrings&&Date.CultureStrings[n])t=n,Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings.lang=n,Date.CultureInfo=new s;else if(!Date.CultureStrings||!Date.CultureStrings[n])if("undefined"!=typeof exports&&this.exports!==exports)try{require("../i18n/"+n+".js"),t=n,Date.CultureStrings.lang=n,Date.CultureInfo=new s}catch(u){throw Error("The DateJS IETF language tag '"+n+"' could not be loaded by Node. It likely does not exist.")}else{if(!Date.Config||!Date.Config.i18n)return Date.console.error("The DateJS IETF language tag '"+n+"' is not available and has not been loaded."),!1;a=!0,o(n).done(function(){t=n,Date.CultureStrings=Date.CultureStrings||{},Date.CultureStrings.lang=n,Date.CultureInfo=new s,e.Parsing.Normalizer.buildReplaceData(),e.Grammar&&e.Grammar.buildGrammarFormats(),i&&setTimeout(i,0)})}e.Parsing.Normalizer.buildReplaceData(),e.Grammar&&e.Grammar.buildGrammarFormats(),!a&&i&&setTimeout(i,0)},getLoggedKeys:function(){return n},updateCultureInfo:function(){Date.CultureInfo=new s}},e.i18n.updateCultureInfo()}(),function(){var e=Date,t=e.prototype,n=function(e,t){return t||(t=2),("000"+e).slice(-1*t)};e.console="undefined"!=typeof window&&"undefined"!=typeof window.console&&"undefined"!=typeof window.console.log?console:{log:function(){},error:function(){}},e.Config=e.Config||{},e.initOverloads=function(){e.now?e._now||(e._now=e.now):e._now=function(){return(new Date).getTime()},e.now=function(t){return t?e.present():e._now()},t.toISOString||(t.toISOString=function(){return this.getUTCFullYear()+"-"+n(this.getUTCMonth()+1)+"-"+n(this.getUTCDate())+"T"+n(this.getUTCHours())+":"+n(this.getUTCMinutes())+":"+n(this.getUTCSeconds())+"."+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}),void 0===t._toString&&(t._toString=t.toString)},e.initOverloads(),e.today=function(){return(new Date).clearTime()},e.present=function(){return new Date},e.compare=function(e,t){if(isNaN(e)||isNaN(t))throw Error(e+" - "+t);if(e instanceof Date&&t instanceof Date)return e<t?-1:e>t?1:0;throw new TypeError(e+" - "+t)},e.equals=function(e,t){return 0===e.compareTo(t)},e.getDayName=function(e){return Date.CultureInfo.dayNames[e]},e.getDayNumberFromName=function(e){var t=Date.CultureInfo.dayNames,n=Date.CultureInfo.abbreviatedDayNames,r=Date.CultureInfo.shortestDayNames;e=e.toLowerCase();for(var i=0;i<t.length;i++)if(t[i].toLowerCase()===e||n[i].toLowerCase()===e||r[i].toLowerCase()===e)return i;return-1},e.getMonthNumberFromName=function(e){var t=Date.CultureInfo.monthNames,n=Date.CultureInfo.abbreviatedMonthNames;e=e.toLowerCase();for(var r=0;r<t.length;r++)if(t[r].toLowerCase()===e||n[r].toLowerCase()===e)return r;return-1},e.getMonthName=function(e){return Date.CultureInfo.monthNames[e]},e.isLeapYear=function(e){return 0==e%4&&0!=e%100||0==e%400},e.getDaysInMonth=function(t,n){return!n&&e.validateMonth(t)&&(n=t,t=Date.today().getFullYear()),[31,e.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][n]},t.getDaysInMonth=function(){return e.getDaysInMonth(this.getFullYear(),this.getMonth())},e.getTimezoneAbbreviation=function(e,t){var n,r=t?Date.CultureInfo.abbreviatedTimeZoneDST:Date.CultureInfo.abbreviatedTimeZoneStandard;for(n in r)if(r.hasOwnProperty(n)&&r[n]===e)return n;return null},e.getTimezoneOffset=function(e,t){var n,r=[],i=Date.CultureInfo.timezones;for(e||(e=(new Date).getTimezone()),n=0;n<i.length;n++)i[n].name===e.toUpperCase()&&r.push(n);if(!i[r[0]])return null;if(1===r.length||!t)return i[r[0]].offset;for(n=0;n<r.length;n++)if(i[r[n]].dst)return i[r[n]].offset},e.getQuarter=function(e){return e=e||new Date,[1,2,3,4][Math.floor(e.getMonth()/3)]},e.getDaysLeftInQuarter=function(e){e=e||new Date;var t=new Date(e);return t.setMonth(t.getMonth()+3-t.getMonth()%3,0),Math.floor((t-e)/864e5)};var r=function(e,t,n){if(void 0===e)return!1;if("number"!=typeof e)throw new TypeError(e+" is not a Number.");return!(e<t||e>n)};e.validateMillisecond=function(e){return r(e,0,999,"millisecond")},e.validateSecond=function(e){return r(e,0,59,"second")},e.validateMinute=function(e){return r(e,0,59,"minute")},e.validateHour=function(e){return r(e,0,23,"hour")},e.validateDay=function(t,n,i){return null!=n&&null!=i&&r(t,1,e.getDaysInMonth(n,i),"day")},e.validateWeek=function(e){return r(e,0,53,"week")},e.validateMonth=function(e){return r(e,0,11,"month")},e.validateYear=function(e){return r(e,-271822,275760,"year")},e.validateTimezone=function(e){return 1==={ACDT:1,ACST:1,ACT:1,ADT:1,AEDT:1,AEST:1,AFT:1,AKDT:1,AKST:1,AMST:1,AMT:1,ART:1,AST:1,AWDT:1,AWST:1,AZOST:1,AZT:1,BDT:1,BIOT:1,BIT:1,BOT:1,BRT:1,BST:1,BTT:1,CAT:1,CCT:1,CDT:1,CEDT:1,CEST:1,CET:1,CHADT:1,CHAST:1,CHOT:1,ChST:1,CHUT:1,CIST:1,CIT:1,CKT:1,CLST:1,CLT:1,COST:1,COT:1,CST:1,CT:1,CVT:1,CWST:1,CXT:1,DAVT:1,DDUT:1,DFT:1,EASST:1,EAST:1,EAT:1,ECT:1,EDT:1,EEDT:1,EEST:1,EET:1,EGST:1,EGT:1,EIT:1,EST:1,FET:1,FJT:1,FKST:1,FKT:1,FNT:1,GALT:1,GAMT:1,GET:1,GFT:1,GILT:1,GIT:1,GMT:1,GST:1,GYT:1,HADT:1,HAEC:1,HAST:1,HKT:1,HMT:1,HOVT:1,HST:1,ICT:1,IDT:1,IOT:1,IRDT:1,IRKT:1,IRST:1,IST:1,JST:1,KGT:1,KOST:1,KRAT:1,KST:1,LHST:1,LINT:1,MAGT:1,MART:1,MAWT:1,MDT:1,MET:1,MEST:1,MHT:1,MIST:1,MIT:1,MMT:1,MSK:1,MST:1,MUT:1,MVT:1,MYT:1,NCT:1,NDT:1,NFT:1,NPT:1,NST:1,NT:1,NUT:1,NZDT:1,NZST:1,OMST:1,ORAT:1,PDT:1,PET:1,PETT:1,PGT:1,PHOT:1,PHT:1,PKT:1,PMDT:1,PMST:1,PONT:1,PST:1,PYST:1,PYT:1,RET:1,ROTT:1,SAKT:1,SAMT:1,SAST:1,SBT:1,SCT:1,SGT:1,SLST:1,SRT:1,SST:1,SYOT:1,TAHT:1,THA:1,TFT:1,TJT:1,TKT:1,TLT:1,TMT:1,TOT:1,TVT:1,UCT:1,ULAT:1,UTC:1,UYST:1,UYT:1,UZT:1,VET:1,VLAT:1,VOLT:1,VOST:1,VUT:1,WAKT:1,WAST:1,WAT:1,WEDT:1,WEST:1,WET:1,WST:1,YAKT:1,YEKT:1,Z:1}[e]},e.validateTimezoneOffset=function(e){return-841<e&&721>e}}(),function(){var e=Date,t=e.prototype,n=function(e,t){return t||(t=2),("000"+e).slice(-1*t)},r=function(t){var n,r,i={},o=this;for(n in r=function(n,r,i){if("day"===n){n=void 0!==t.month?t.month:o.getMonth();var a=void 0!==t.year?t.year:o.getFullYear();return e[r](i,a,n)}return e[r](i)},t)if(Object.prototype.hasOwnProperty.call(t,n)){var a="validate"+n.charAt(0).toUpperCase()+n.slice(1);e[a]&&null!==t[n]&&r(n,a,t[n])&&(i[n]=t[n])}return i};t.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this},t.setTimeToNow=function(){var e=new Date;return this.setHours(e.getHours()),this.setMinutes(e.getMinutes()),this.setSeconds(e.getSeconds()),this.setMilliseconds(e.getMilliseconds()),this},t.clone=function(){return new Date(this.getTime())},t.compareTo=function(e){return Date.compare(this,e)},t.equals=function(e){return Date.equals(this,void 0!==e?e:new Date)},t.between=function(e,t){return this.getTime()>=e.getTime()&&this.getTime()<=t.getTime()},t.isAfter=function(e){return 1===this.compareTo(e||new Date)},t.isBefore=function(e){return-1===this.compareTo(e||new Date)},t.isToday=t.isSameDay=function(e){return this.clone().clearTime().equals((e||new Date).clone().clearTime())},t.addMilliseconds=function(e){return e?(this.setTime(this.getTime()+1*e),this):this},t.addSeconds=function(e){return e?this.addMilliseconds(1e3*e):this},t.addMinutes=function(e){return e?this.addMilliseconds(6e4*e):this},t.addHours=function(e){return e?this.addMilliseconds(36e5*e):this},t.addDays=function(e){return e?(this.setDate(this.getDate()+1*e),this):this},t.addWeekdays=function(e){if(!e)return this;var t=this.getDay(),n=Math.ceil(Math.abs(e)/7);if((0===t||6===t)&&0<e&&(this.next().monday(),this.addDays(-1),t=this.getDay()),0>e){for(;0>e;)this.addDays(-1),0!==(t=this.getDay())&&6!==t&&e++;return this}return(5<e||6-t<=e)&&(e+=2*n),this.addDays(e)},t.addWeeks=function(e){return e?this.addDays(7*e):this},t.addMonths=function(t){if(!t)return this;var n=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+1*t),this.setDate(Math.min(n,e.getDaysInMonth(this.getFullYear(),this.getMonth()))),this},t.addQuarters=function(e){return e?this.addMonths(3*e):this},t.addYears=function(e){return e?this.addMonths(12*e):this},t.add=function(e){return"number"==typeof e?(this._orient=e,this):(e.day&&0!=e.day-this.getDate()&&this.setDate(e.day),e.milliseconds&&this.addMilliseconds(e.milliseconds),e.seconds&&this.addSeconds(e.seconds),e.minutes&&this.addMinutes(e.minutes),e.hours&&this.addHours(e.hours),e.weeks&&this.addWeeks(e.weeks),e.months&&this.addMonths(e.months),e.years&&this.addYears(e.years),e.days&&this.addDays(e.days),this)},t.getWeek=function(e){var t=new Date(this.valueOf());return e?(t.addMinutes(t.getTimezoneOffset()),e=t.clone()):e=this,e=(e.getDay()+6)%7,t.setDate(t.getDate()-e+3),e=t.valueOf(),t.setMonth(0,1),4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((e-t)/6048e5)},t.getISOWeek=function(){return n(this.getWeek(!0))},t.setWeek=function(e){return 0==e-this.getWeek()?1!==this.getDay()?this.moveToDayOfWeek(1,1<this.getDay()?-1:1):this:this.moveToDayOfWeek(1,1<this.getDay()?-1:1).addWeeks(e-this.getWeek())},t.setQuarter=function(e){return e=Math.abs(3*(e-1)+1),this.setMonth(e,1)},t.getQuarter=function(){return Date.getQuarter(this)},t.getDaysLeftInQuarter=function(){return Date.getDaysLeftInQuarter(this)},t.moveToNthOccurrence=function(e,t){if("Weekday"===e){if(0<t)this.moveToFirstDayOfMonth(),this.is().weekday()&&--t;else{if(!(0>t))return this;this.moveToLastDayOfMonth(),this.is().weekday()&&(t+=1)}return this.addWeekdays(t)}var n=0;if(0<t)n=t-1;else if(-1===t)return this.moveToLastDayOfMonth(),this.getDay()!==e&&this.moveToDayOfWeek(e,-1),this;return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(e,1).addWeeks(n)};var i=function(e,t,n){return function(r,i){var o=(r-this[e]()+n*(i||1))%n;return this[t](0===o?o+n*(i||1):o)}};t.moveToDayOfWeek=i("getDay","addDays",7),t.moveToMonth=i("getMonth","addMonths",12),t.getOrdinate=function(){var e=this.getDate();return o(e)},t.getOrdinalNumber=function(){return Math.ceil((this.clone().clearTime()-new Date(this.getFullYear(),0,1))/864e5)+1},t.getTimezone=function(){return e.getTimezoneAbbreviation(this.getUTCOffset(),this.isDaylightSavingTime())},t.setTimezoneOffset=function(e){var t=this.getTimezoneOffset();return(e=-6*Number(e)/10)||0===e?this.addMinutes(e-t):this},t.setTimezone=function(t){return this.setTimezoneOffset(e.getTimezoneOffset(t))},t.hasDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==Date.today().set({month:6,day:1}).getTimezoneOffset()},t.isDaylightSavingTime=function(){return Date.today().set({month:0,day:1}).getTimezoneOffset()!==this.getTimezoneOffset()},t.getUTCOffset=function(e){return 0>(e=-10*(e||this.getTimezoneOffset())/6)?(e=(e-1e4).toString()).charAt(0)+e.substr(2):"+"+(e=(e+1e4).toString()).substr(1)},t.getElapsed=function(e){return(e||new Date)-this},t.set=function(e){for(var t in e=r.call(this,e))if(Object.prototype.hasOwnProperty.call(e,t)){var n,i,o=t.charAt(0).toUpperCase()+t.slice(1);"week"!==t&&"month"!==t&&"timezone"!==t&&"timezoneOffset"!==t&&(o+="s"),n="add"+o,i="get"+o,"month"===t?n+="s":"year"===t&&(i="getFullYear"),"day"!==t&&"timezone"!==t&&"timezoneOffset"!==t&&"week"!==t&&"hour"!==t?this[n](e[t]-this[i]()):"timezone"!==t&&"timezoneOffset"!==t&&"week"!==t&&"hour"!==t||this["set"+o](e[t])}return e.day&&this.addDays(e.day-this.getDate()),this},t.moveToFirstDayOfMonth=function(){return this.set({day:1})},t.moveToLastDayOfMonth=function(){return this.set({day:e.getDaysInMonth(this.getFullYear(),this.getMonth())})};var o=function(e){switch(1*e){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},a=function(e){var t=Date.CultureInfo.formatPatterns;switch(e){case"d":return this.toString(t.shortDate);case"D":return this.toString(t.longDate);case"F":return this.toString(t.fullDateTime);case"m":return this.toString(t.monthDay);case"r":case"R":return(e=this.clone().addMinutes(this.getTimezoneOffset())).toString(t.rfc1123)+" GMT";case"s":return this.toString(t.sortableDateTime);case"t":return this.toString(t.shortTime);case"T":return this.toString(t.longTime);case"u":return(e=this.clone().addMinutes(this.getTimezoneOffset())).toString(t.universalSortableDateTime);case"y":return this.toString(t.yearMonth);default:return!1}},s=function(t){return function(r){if("\\"===r.charAt(0))return r.replace("\\","");switch(r){case"hh":return n(13>t.getHours()?0===t.getHours()?12:t.getHours():t.getHours()-12);case"h":return 13>t.getHours()?0===t.getHours()?12:t.getHours():t.getHours()-12;case"HH":return n(t.getHours());case"H":return t.getHours();case"mm":return n(t.getMinutes());case"m":return t.getMinutes();case"ss":return n(t.getSeconds());case"s":return t.getSeconds();case"yyyy":return n(t.getFullYear(),4);case"yy":return n(t.getFullYear());case"y":return t.getFullYear();case"E":case"dddd":return Date.CultureInfo.dayNames[t.getDay()];case"ddd":return Date.CultureInfo.abbreviatedDayNames[t.getDay()];case"dd":return n(t.getDate());case"d":return t.getDate();case"MMMM":return Date.CultureInfo.monthNames[t.getMonth()];case"MMM":return Date.CultureInfo.abbreviatedMonthNames[t.getMonth()];case"MM":return n(t.getMonth()+1);case"M":return t.getMonth()+1;case"t":return 12>t.getHours()?Date.CultureInfo.amDesignator.substring(0,1):Date.CultureInfo.pmDesignator.substring(0,1);case"tt":return 12>t.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator;case"S":return o(t.getDate());case"W":return t.getWeek();case"WW":return t.getISOWeek();case"Q":return"Q"+t.getQuarter();case"q":return String(t.getQuarter());case"z":return t.getTimezone();case"Z":case"X":return Date.getTimezoneOffset(t.getTimezone());case"ZZ":return-60*t.getTimezoneOffset();case"u":return t.getDay();case"L":return e.isLeapYear(t.getFullYear())?1:0;case"B":return"@"+(t.getUTCSeconds()+60*t.getUTCMinutes()+3600*(t.getUTCHours()+1))/86.4;default:return r}}};t.toString=function(e,t){if(!t&&e&&1===e.length&&(output=a.call(this,e)))return output;var n=s(this);return e?e.replace(/((\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S|q|Q|WW?W?W?)(?![^\[]*\]))/g,n).replace(/\[|\]/g,""):this._toString()}}(),function(){var e=Date,t=e.prototype,n=Number.prototype;t._orient=1,t._nth=null,t._is=!1,t._same=!1,t._isSecond=!1,n._dateElement="days",t.next=function(){return this._move=!0,this._orient=1,this},e.next=function(){return e.today().next()},t.last=t.prev=t.previous=function(){return this._move=!0,this._orient=-1,this},e.last=e.prev=e.previous=function(){return e.today().last()},t.is=function(){return this._is=!0,this},t.same=function(){return this._same=!0,this._isSecond=!1,this},t.today=function(){return this.same().day()},t.weekday=function(){return this._nth?u("Weekday").call(this):this._move?this.addWeekdays(this._orient):!!this._is&&(this._is=!1,!this.is().sat()&&!this.is().sun())},t.weekend=function(){return!!this._is&&(this._is=!1,this.is().sat()||this.is().sun())},t.at=function(t){return"string"==typeof t?e.parse(this.toString("d")+" "+t):this.set(t)},n.fromNow=n.after=function(e){var t={};return t[this._dateElement]=this,(e?e.clone():new Date).add(t)},n.ago=n.before=function(e){var t={};return t["s"!==this._dateElement[this._dateElement.length-1]?this._dateElement+"s":this._dateElement]=-1*this,(e?e.clone():new Date).add(t)};var r="sunday monday tuesday wednesday thursday friday saturday".split(/\s/),i="january february march april may june july august september october november december".split(/\s/),o="Millisecond Second Minute Hour Day Week Month Year Quarter Weekday".split(/\s/),a="Milliseconds Seconds Minutes Hours Date Week Month FullYear Quarter".split(/\s/),s="final first second third fourth fifth".split(/\s/);t.toObject=function(){for(var e={},t=0;t<o.length;t++)this["get"+a[t]]&&(e[o[t].toLowerCase()]=this["get"+a[t]]());return e},e.fromObject=function(e){return e.week=null,Date.today().set(e)};var u=function(t){return function(){if(this._is)return this._is=!1,this.getDay()===t;if(this._move&&(this._move=null),null!==this._nth){this._isSecond&&this.addSeconds(-1*this._orient),this._isSecond=!1;var n=this._nth;this._nth=null;var r=this.clone().moveToLastDayOfMonth();if(this.moveToNthOccurrence(t,n),this>r)throw new RangeError(e.getDayName(t)+" does not occur "+n+" times in the month of "+e.getMonthName(r.getMonth())+" "+r.getFullYear()+".");return this}return this.moveToDayOfWeek(t,this._orient)}};(l=function(n,r,i){for(var o=0;o<n.length;o++)e[n[o].toUpperCase()]=e[n[o].toUpperCase().substring(0,3)]=o,e[n[o]]=e[n[o].substring(0,3)]=r(o),t[n[o]]=t[n[o].substring(0,3)]=i(o)})(r,function(t){return function(){var n=e.today(),r=t-n.getDay();return 0===t&&1===Date.CultureInfo.firstDayOfWeek&&0!==n.getDay()&&(r+=7),n.addDays(r)}},u),l(i,function(t){return function(){return e.today().set({month:t,day:1})}},function(e){return function(){return this._is?(this._is=!1,this.getMonth()===e):this.moveToMonth(e,this._orient)}});i=function(e){return function(t){if(this._isSecond)return this._isSecond=!1,this;if(this._same){this._same=this._is=!1;var n=this.toObject();t=(t||new Date).toObject();for(var r="",i="s"===(i=e.toLowerCase())[i.length-1]?i.substring(0,i.length-1):i,a=o.length-1;-1<a;a--){if(n[r=o[a].toLowerCase()]!==t[r])return!1;if(i===r)break}return!0}return"s"!==e.substring(e.length-1)&&(e+="s"),this._move&&(this._move=null),this["add"+e](this._orient)}};for(var l=function(e){return function(){return this._dateElement=e,this}},c=0;c<o.length;c++)"weekday"!==(r=o[c].toLowerCase())&&(t[r]=t[r+"s"]=i(o[c]),n[r]=n[r+"s"]=l(r+"s"));for(t._ss=i("Second"),n=function(e){return function(t){return this._same?this._ss(t):t||0===t?this.moveToNthOccurrence(t,e):(this._nth=e,2!==e||null!=t?this:(this._isSecond=!0,this.addSeconds(this._orient)))}},r=0;r<s.length;r++)t[s[r]]=n(0===r?-1:r)}(),function(){Date.Parsing={Exception:function(e){this.message="Parse error at '"+e.substring(0,10)+" ...'"}};var e=Date.Parsing,t=[0,31,59,90,120,151,181,212,243,273,304,334],n=[0,31,60,91,121,152,182,213,244,274,305,335];e.isLeapYear=function(e){return 0==e%4&&0!=e%100||0==e%400};var r={multiReplace:function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r;"function"!=typeof t[n]&&(r=t[n]instanceof RegExp?t[n]:new RegExp(t[n],"g")),e=e.replace(r,n)}return e},getDayOfYearFromWeek:function(e){var t;return e.weekDay=e.weekDay||0===e.weekDay?e.weekDay:1,t=(0===(t=new Date(e.year,0,4)).getDay()?7:t.getDay())+3,e.dayOfYear=7*e.week+(0===e.weekDay?7:e.weekDay)-t,e},getDayOfYear:function(e,t){e.dayOfYear||(e=r.getDayOfYearFromWeek(e));for(var n=0;n<=t.length;n++){if(e.dayOfYear<t[n]||n===t.length){e.day=e.day?e.day:e.dayOfYear-t[n-1];break}e.month=n}return e},adjustForTimeZone:function(e,t){var n;return"Z"===e.zone.toUpperCase()||0===e.zone_hours&&0===e.zone_minutes?n=-t.getTimezoneOffset():(n=60*e.zone_hours+(e.zone_minutes||0),"+"===e.zone_sign&&(n*=-1),n-=t.getTimezoneOffset()),t.setMinutes(t.getMinutes()+n),t},setDefaults:function(e){return e.year=e.year||Date.today().getFullYear(),e.hours=e.hours||0,e.minutes=e.minutes||0,e.seconds=e.seconds||0,e.milliseconds=e.milliseconds||0,(e.month||!e.week&&!e.dayOfYear)&&(e.month=e.month||0,e.day=e.day||1),e},dataNum:function(e,t,n,r){var i=1*e;return t?r?e?1*t(e):e:e?t(i):e:n?e&&void 0!==e?i:e:e?i:e},timeDataProcess:function(e){var t,n={};for(t in e.data)e.data.hasOwnProperty(t)&&(n[t]=e.ignore[t]?e.data[t]:r.dataNum(e.data[t],e.mods[t],e.explict[t],e.postProcess[t]));return e.data.secmins&&(e.data.secmins=60*e.data.secmins.replace(",","."),n.minutes?n.seconds||(n.seconds=e.data.secmins):n.minutes=e.data.secmins,delete e.secmins),n},buildTimeObjectFromData:function(e){return r.timeDataProcess({data:{year:e[1],month:e[5],day:e[7],week:e[8],dayOfYear:e[10],hours:e[15],zone_hours:e[23],zone_minutes:e[24],zone:e[21],zone_sign:e[22],weekDay:e[9],minutes:e[16],seconds:e[19],milliseconds:e[20],secmins:e[18]},mods:{month:function(e){return e-1},weekDay:function(e){return 7===(e=Math.abs(e))?0:e},minutes:function(e){return e.replace(":","")},seconds:function(e){return Math.floor(1*e.replace(":","").replace(",","."))},milliseconds:function(e){return 1e3*e.replace(",",".")}},postProcess:{minutes:!0,seconds:!0,milliseconds:!0},explict:{zone_hours:!0,zone_minutes:!0},ignore:{zone:!0,zone_sign:!0,secmins:!0}})},addToHash:function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[t[i]]=n[i];return e},combineRegex:function(e,t){return new RegExp("(("+e.source+")\\s("+t.source+"))")},getDateNthString:function(e,t,n){return e?Date.today().addDays(n).toString("d"):t?Date.today().last()[n]().toString("d"):void 0},buildRegexData:function(e){for(var t=[],n=e.length,r=0;r<n;r++)"[object Array]"===Object.prototype.toString.call(e[r])?t.push(this.combineRegex(e[r][0],e[r][1])):t.push(e[r]);return t}};e.processTimeObject=function(i){var o;return r.setDefaults(i),o=e.isLeapYear(i.year)?n:t,i.month||!i.week&&!i.dayOfYear?i.dayOfYear=o[i.month]+i.day:r.getDayOfYear(i,o),o=new Date(i.year,i.month,i.day,i.hours,i.minutes,i.seconds,i.milliseconds),i.zone&&r.adjustForTimeZone(i,o),o},e.ISO={regex:/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-4])((:?)[0-5]\d)?|24\:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?\s?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,parse:function(t){return(t=t.match(this.regex))&&t.length&&(t=r.buildTimeObjectFromData(t)).year&&(t.year||t.month||t.day||t.week||t.dayOfYear)?e.processTimeObject(t):null}},e.Numeric={isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},regex:/\b([0-1]?[0-9])([0-3]?[0-9])([0-2]?[0-9]?[0-9][0-9])\b/i,parse:function(t){var n,r={},i=Date.CultureInfo.dateElementOrder.split("");if(!this.isNumeric(t)||"+"===t[0]&&"-"===t[0])return null;if(5>t.length&&0>t.indexOf(".")&&0>t.indexOf("/"))return r.year=t,e.processTimeObject(r);if(!(t=t.match(this.regex))||!t.length)return null;for(n=0;n<i.length;n++)switch(i[n]){case"d":r.day=t[n+1];break;case"m":r.month=t[n+1]-1;break;case"y":r.year=t[n+1]}return e.processTimeObject(r)}},e.Normalizer={regexData:function(){var e=Date.CultureInfo.regexPatterns;return r.buildRegexData([e.tomorrow,e.yesterday,[e.past,e.mon],[e.past,e.tue],[e.past,e.wed],[e.past,e.thu],[e.past,e.fri],[e.past,e.sat],[e.past,e.sun]])},basicReplaceHash:function(){var e=Date.CultureInfo.regexPatterns;return{January:e.jan.source,February:e.feb,March:e.mar,April:e.apr,May:e.may,June:e.jun,July:e.jul,August:e.aug,September:e.sep,October:e.oct,November:e.nov,December:e.dec,"":/\bat\b/gi," ":/\s{2,}/,am:e.inTheMorning,"9am":e.thisMorning,pm:e.inTheEvening,"7pm":e.thisEvening}},keys:function(){return[r.getDateNthString(!0,!1,1),r.getDateNthString(!0,!1,-1),r.getDateNthString(!1,!0,"monday"),r.getDateNthString(!1,!0,"tuesday"),r.getDateNthString(!1,!0,"wednesday"),r.getDateNthString(!1,!0,"thursday"),r.getDateNthString(!1,!0,"friday"),r.getDateNthString(!1,!0,"saturday"),r.getDateNthString(!1,!0,"sunday")]},buildRegexFunctions:function(){var e=Date.CultureInfo.regexPatterns,t=Date.i18n.__;t=new RegExp("(\\b\\d\\d?("+t("AM")+"|"+t("PM")+")? )("+e.tomorrow.source.slice(1)+")","i");this.replaceFuncs=[[new RegExp(e.today.source+"(?!\\s*([+-]))\\b"),function(e){return 1<e.length?Date.today().toString("d"):e}],[t,function(e,t){return Date.today().addDays(1).toString("d")+" "+t}],[e.amThisMorning,function(e,t){return t}],[e.pmThisEvening,function(e,t){return t}]]},buildReplaceData:function(){this.buildRegexFunctions(),this.replaceHash=r.addToHash(this.basicReplaceHash(),this.keys(),this.regexData())},stringReplaceFuncs:function(e){for(var t=0;t<this.replaceFuncs.length;t++)e=e.replace(this.replaceFuncs[t][0],this.replaceFuncs[t][1]);return e},parse:function(t){t=this.stringReplaceFuncs(t),t=r.multiReplace(t,this.replaceHash);try{var n=t.split(/([\s\-\.\,\/\x27]+)/);3===n.length&&e.Numeric.isNumeric(n[0])&&e.Numeric.isNumeric(n[2])&&4<=n[2].length&&"d"===Date.CultureInfo.dateElementOrder[0]&&(t="1/"+n[0]+"/"+n[2])}catch(i){}return t}},e.Normalizer.buildReplaceData()}(),function(){for(var e=Date.Parsing,t=e.Operators={rtoken:function(t){return function(n){var r=n.match(t);if(r)return[r[0],n.substring(r[0].length)];throw new e.Exception(n)}},token:function(){return function(e){return t.rtoken(new RegExp("^\\s*"+e+"\\s*"))(e)}},stoken:function(e){return t.rtoken(new RegExp("^"+e))},until:function(e){return function(t){for(var r=[],i=null;t.length;){try{i=e.call(this,t)}catch(n){r.push(i[0]),t=i[1];continue}break}return[r,t]}},many:function(e){return function(t){for(var r=[],i=null;t.length;){try{i=e.call(this,t)}catch(n){break}r.push(i[0]),t=i[1]}return[r,t]}},optional:function(e){return function(t){var n=null;try{n=e.call(this,t)}catch(i){return[null,t]}return[n[0],n[1]]}},not:function(t){return function(n){try{t.call(this,n)}catch(r){return[null,n]}throw new e.Exception(n)}},ignore:function(e){return e?function(t){return[null,e.call(this,t)[1]]}:null},product:function(){for(var e=arguments[0],n=Array.prototype.slice.call(arguments,1),r=[],i=0;i<e.length;i++)r.push(t.each(e[i],n));return r},cache:function(t){var n={},r=0,i=[],o=Date.Config.CACHE_MAX||1e5,a=null;return function(s){if(r===o)for(var u=0;10>u;u++){var l=i.shift();l&&(delete n[l],r--)}try{a=n[s]=n[s]||t.call(this,s)}catch(c){a=n[s]=c}if(r++,i.push(s),a instanceof e.Exception)throw a;return a}},any:function(){var t=arguments;return function(r){for(var i=null,o=0;o<t.length;o++)if(null!=t[o]){try{i=t[o].call(this,r)}catch(n){i=null}if(i)return i}throw new e.Exception(r)}},each:function(){var t=arguments;return function(n){for(var r=[],i=null,o=0;o<t.length;o++)if(null!=t[o]){try{i=t[o].call(this,n)}catch(a){throw new e.Exception(n)}r.push(i[0]),n=i[1]}return[r,n]}},all:function(){var e=e;return e.each(e.optional(arguments))},sequence:function(n,r,i){return r=r||t.rtoken(/^\s*/),i=i||null,1===n.length?n[0]:function(t){for(var o=null,a=null,s=[],u=0;u<n.length;u++){try{o=n[u].call(this,t)}catch(l){break}s.push(o[0]);try{a=r.call(this,o[1])}catch(c){a=null;break}t=a[1]}if(!o)throw new e.Exception(t);if(a)throw new e.Exception(a[1]);if(i)try{o=i.call(this,o[1])}catch(d){throw new e.Exception(o[1])}return[s,o?o[1]:t]}},between:function(e,n,i){i=i||e;var o=t.each(t.ignore(e),n,t.ignore(i));return function(e){return[[(e=o.call(this,e))[0][0],r[0][2]],e[1]]}},list:function(e,n,r){return n=n||t.rtoken(/^\s*/),r=r||null,e instanceof Array?t.each(t.product(e.slice(0,-1),t.ignore(n)),e.slice(-1),t.ignore(r)):t.each(t.many(t.each(e,t.ignore(n))),px,t.ignore(r))},set:function(n,r,i){return r=r||t.rtoken(/^\s*/),i=i||null,function(o){
for(var a=null,s=a=null,u=null,l=[[],o],c=!1,d=0;d<n.length;d++){a=s=null,c=1===n.length;try{a=n[d].call(this,o)}catch(f){continue}if(u=[[a[0]],a[1]],0<a[1].length&&!c)try{s=r.call(this,a[1])}catch(h){c=!0}else c=!0;if(c||0!==s[1].length||(c=!0),!c){for(a=[],c=0;c<n.length;c++)d!==c&&a.push(n[c]);0<(a=t.set(a,r).call(this,s[1]))[0].length&&(u[0]=u[0].concat(a[0]),u[1]=a[1])}if(u[1].length<l[1].length&&(l=u),0===l[1].length)break}if(0===l[0].length)return l;if(i){try{s=i.call(this,l[1])}catch(p){throw new e.Exception(l[1])}l[1]=s[1]}return l}},forward:function(e,t){return function(n){return e[t].call(this,n)}},replace:function(e,t){return function(n){return n=e.call(this,n),[t,n[1]]}},process:function(e,t){return function(n){return n=e.call(this,n),[t.call(this,n[0]),n[1]]}},min:function(t,n){return function(r){var i=n.call(this,r);if(i[0].length<t)throw new e.Exception(r);return i}}},n=function(e){return function(){var t,n=null,r=[];return 1<arguments.length?n=Array.prototype.slice.call(arguments):arguments[0]instanceof Array&&(n=arguments[0]),n?0<(t=n.shift()).length?(n.unshift(t[void 0]),r.push(e.apply(null,n)),n.shift(),r):void 0:e.apply(null,arguments)}},i="optional not ignore cache".split(/\s/),o=0;o<i.length;o++)t[i[o]]=n(t[i[o]]);for(n=function(e){return function(){return arguments[0]instanceof Array?e.apply(null,arguments[0]):e.apply(null,arguments)}},i="each any all".split(/\s/),o=0;o<i.length;o++)t[i[o]]=n(t[i[o]])}(),function(){var e=Date,t=function(e){for(var n=[],r=0;r<e.length;r++)e[r]instanceof Array?n=n.concat(t(e[r])):e[r]&&n.push(e[r]);return n},n=function(){if(this.meridian&&(this.hour||0===this.hour)){if("a"===this.meridian&&11<this.hour&&Date.Config.strict24hr)throw"Invalid hour and meridian combination";if("p"===this.meridian&&12>this.hour&&Date.Config.strict24hr)throw"Invalid hour and meridian combination";"p"===this.meridian&&12>this.hour?this.hour+=12:"a"===this.meridian&&12===this.hour&&(this.hour=0)}};e.Translator={hour:function(e){return function(){this.hour=Number(e)}},minute:function(e){return function(){this.minute=Number(e)}},second:function(e){return function(){this.second=Number(e)}},secondAndMillisecond:function(e){return function(){var t=e.match(/^([0-5][0-9])\.([0-9]{1,3})/);this.second=Number(t[1]),this.millisecond=Number(t[2])}},meridian:function(e){return function(){this.meridian=e.slice(0,1).toLowerCase()}},timezone:function(e){return function(){var t=e.replace(/[^\d\+\-]/g,"");t.length?this.timezoneOffset=Number(t):this.timezone=e.toLowerCase()}},day:function(e){var t=e[0];return function(){if(this.day=Number(t.match(/\d+/)[0]),1>this.day)throw"invalid day"}},month:function(e){return function(){if(this.month=3===e.length?"jan feb mar apr may jun jul aug sep oct nov dec".indexOf(e)/4:Number(e)-1,0>this.month)throw"invalid month"}},year:function(e){return function(){var t=Number(e);this.year=2<e.length?t:t+(t+2e3<Date.CultureInfo.twoDigitYearMax?2e3:1900)}},rday:function(e){return function(){switch(e){case"yesterday":this.days=-1;break;case"tomorrow":this.days=1;break;case"today":this.days=0;break;case"now":this.days=0,this.now=!0}}},finishExact:function(t){t=t instanceof Array?t:[t];for(var r=0;r<t.length;r++)t[r]&&t[r].call(this);if(t=new Date,!this.hour&&!this.minute||this.month||this.year||this.day||(this.day=t.getDate()),this.year||(this.year=t.getFullYear()),this.month||0===this.month||(this.month=t.getMonth()),this.day||(this.day=1),this.hour||(this.hour=0),this.minute||(this.minute=0),this.second||(this.second=0),this.millisecond||(this.millisecond=0),n.call(this),this.day>e.getDaysInMonth(this.year,this.month))throw new RangeError(this.day+" is not a valid value for days.");return t=new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond),100>this.year&&t.setFullYear(this.year),this.timezone?t.set({timezone:this.timezone}):this.timezoneOffset&&t.set({timezoneOffset:this.timezoneOffset}),t},finish:function(r){var i,o,a;if(0===(r=r instanceof Array?t(r):[r]).length)return null;for(i=0;i<r.length;i++)"function"==typeof r[i]&&r[i].call(this);if(this.now&&!this.unit&&!this.operator)return new Date;if(r=this.now||-1!=="hour minute second".indexOf(this.unit)?new Date:e.today(),i=!!(this.days&&null!==this.days||this.orient||this.operator),o="past"===this.orient||"subtract"===this.operator?-1:1,this.month&&"week"===this.unit&&(this.value=this.month+1,delete this.month,delete this.day),!this.month&&0!==this.month||-1==="year day hour minute second".indexOf(this.unit)||(this.value||(this.value=this.month+1),this.month=null,i=!0),i||!this.weekday||this.day||this.days||(a=Date[this.weekday](),this.day=a.getDate(),this.month||(this.month=a.getMonth()),this.year=a.getFullYear()),i&&this.weekday&&"month"!==this.unit&&"week"!==this.unit){var s=r;a=o||1,this.unit="day",this.days=(s=e.getDayNumberFromName(this.weekday)-s.getDay())?(s+7*a)%7:7*a}return!this.weekday||"week"===this.unit||this.day||this.days||(a=Date[this.weekday](),this.day=a.getDate(),a.getMonth()!==r.getMonth()&&(this.month=a.getMonth())),this.month&&"day"===this.unit&&this.operator&&(this.value||(this.value=this.month+1),this.month=null),null!=this.value&&null!=this.month&&null!=this.year&&(this.day=1*this.value),this.month&&!this.day&&this.value&&(r.set({day:1*this.value}),i||(this.day=1*this.value)),this.month||!this.value||"month"!==this.unit||this.now||(this.month=this.value,i=!0),i&&(this.month||0===this.month)&&"year"!==this.unit&&(a=o||1,this.unit="month",this.months=(s=this.month-r.getMonth())?(s+12*a)%12:12*a,this.month=null),this.unit||(this.unit="day"),!this.value&&this.operator&&null!==this.operator&&this[this.unit+"s"]&&null!==this[this.unit+"s"]?this[this.unit+"s"]=this[this.unit+"s"]+("add"===this.operator?1:-1)+(this.value||0)*o:null!=this[this.unit+"s"]&&null==this.operator||(this.value||(this.value=1),this[this.unit+"s"]=this.value*o),n.call(this),!this.month&&0!==this.month||this.day||(this.day=1),this.orient||this.operator||"week"!==this.unit||!this.value||this.day||this.month?"week"!==this.unit||!this.weeks||this.day||this.month?(i&&this.timezone&&this.day&&this.days&&(this.day=this.days),i?r.add(this):r.set(this),this.timezone&&(this.timezone=this.timezone.toUpperCase(),i=e.getTimezoneOffset(this.timezone),r.hasDaylightSavingTime()&&((o=e.getTimezoneAbbreviation(i,r.isDaylightSavingTime()))!==this.timezone&&(r.isDaylightSavingTime()?r.addHours(-1):r.addHours(1))),r.setTimezoneOffset(i)),r):(r=Date[void 0!==this.weekday?this.weekday:"today"]().addWeeks(this.weeks),this.now&&r.setTimeToNow(),r):Date.today().setWeek(this.value)}}}(),function(){var e=Date;e.Grammar={};var t,n=e.Parsing.Operators,r=e.Grammar,i=e.Translator;t=function(){return n.each(n.any.apply(null,arguments),n.not(r.ctoken2("timeContext")))},r.datePartDelimiter=n.rtoken(/^([\s\-\.\,\/\x27]+)/),r.timePartDelimiter=n.stoken(":"),r.whiteSpace=n.rtoken(/^\s*/),r.generalDelimiter=n.rtoken(/^(([\s\,]|at|@|on)+)/);var o={};r.ctoken=function(e){if(!(t=o[e])){for(var t=Date.CultureInfo.regexPatterns,r=e.split(/\s+/),i=[],a=0;a<r.length;a++)i.push(n.replace(n.rtoken(t[r[a]]),r[a]));t=o[e]=n.any.apply(null,i)}return t},r.ctoken2=function(e){return n.rtoken(Date.CultureInfo.regexPatterns[e])};var a=function(e,t,i,o){r[e]=o?n.cache(n.process(n.each(n.rtoken(t),n.optional(r.ctoken2(o))),i)):n.cache(n.process(n.rtoken(t),i))},s=function(e,t){return n.cache(n.process(r.ctoken2(e),t))},u={},l=function(e){return u[e]=u[e]||r.format(e)[0],u[e]};r.allformats=function(e){var t=[];if(e instanceof Array)for(var n=0;n<e.length;n++)t.push(l(e[n]));else t.push(l(e));return t},r.formats=function(e){if(e instanceof Array){for(var t=[],r=0;r<e.length;r++)t.push(l(e[r]));return n.any.apply(null,t)}return l(e)};var c={timeFormats:function(){var e,t="h hh H HH m mm s ss ss.s z zz".split(" "),o=[/^(0[0-9]|1[0-2]|[1-9])/,/^(0[0-9]|1[0-2])/,/^([0-1][0-9]|2[0-3]|[0-9])/,/^([0-1][0-9]|2[0-3])/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^([0-5][0-9]|[0-9])/,/^[0-5][0-9]/,/^[0-5][0-9]\.[0-9]{1,3}/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/,/^((\+|\-)\s*\d\d\d\d)|((\+|\-)\d\d\:?\d\d)/],u=[i.hour,i.hour,i.hour,i.hour,i.minute,i.minute,i.second,i.second,i.secondAndMillisecond,i.timezone,i.timezone];for(e=0;e<t.length;e++)a(t[e],o[e],u[e]);r.hms=n.cache(n.sequence([r.H,r.m,r.s],r.timePartDelimiter)),r.t=s("shortMeridian",i.meridian),r.tt=s("longMeridian",i.meridian),r.zzz=s("timezone",i.timezone),r.timeSuffix=n.each(n.ignore(r.whiteSpace),n.set([r.tt,r.zzz])),r.time=n.each(n.optional(n.ignore(n.stoken("T"))),r.hms,r.timeSuffix)},dateFormats:function(){var e,o=function(){return n.set(arguments,r.datePartDelimiter)},s="d dd M MM y yy yyy yyyy".split(" "),u=[/^([0-2]\d|3[0-1]|\d)/,/^([0-2]\d|3[0-1])/,/^(1[0-2]|0\d|\d)/,/^(1[0-2]|0\d)/,/^(\d+)/,/^(\d\d)/,/^(\d\d?\d?\d?)/,/^(\d\d\d\d)/],l=[i.day,i.day,i.month,i.month,i.year,i.year,i.year,i.year],c=["ordinalSuffix","ordinalSuffix"];for(e=0;e<s.length;e++)a(s[e],u[e],l[e],c[e]);r.MMM=r.MMMM=n.cache(n.process(r.ctoken("jan feb mar apr may jun jul aug sep oct nov dec"),i.month)),r.ddd=r.dddd=n.cache(n.process(r.ctoken("sun mon tue wed thu fri sat"),function(e){return function(){this.weekday=e}})),r.day=t(r.d,r.dd),r.month=t(r.M,r.MMM),r.year=t(r.yyyy,r.yy),r.mdy=o(r.ddd,r.month,r.day,r.year),r.ymd=o(r.ddd,r.year,r.month,r.day),r.dmy=o(r.ddd,r.day,r.month,r.year),r.date=function(e){return(r[Date.CultureInfo.dateElementOrder]||r.mdy).call(this,e)}},relative:function(){r.orientation=n.process(r.ctoken("past future"),function(e){return function(){this.orient=e}}),r.operator=n.process(r.ctoken("add subtract"),function(e){return function(){this.operator=e}}),r.rday=n.process(r.ctoken("yesterday tomorrow today now"),i.rday),r.unit=n.process(r.ctoken("second minute hour day week month year"),function(e){return function(){this.unit=e}})}};r.buildGrammarFormats=function(){o={},c.timeFormats(),c.dateFormats(),c.relative(),r.value=n.process(n.rtoken(/^([-+]?\d+)?(st|nd|rd|th)?/),function(e){return function(){this.value=e.replace(/\D/g,"")}}),r.expression=n.set([r.rday,r.operator,r.value,r.unit,r.orientation,r.ddd,r.MMM]),r.format=n.process(n.many(n.any(n.process(n.rtoken(/^(dd?d?d?(?!e)|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|zz?z?)/),function(t){if(r[t])return r[t];throw e.Parsing.Exception(t)}),n.process(n.rtoken(/^[^dMyhHmstz]+/),function(e){return n.ignore(n.stoken(e))}))),function(e){return n.process(n.each.apply(null,e),i.finishExact)}),r._start=n.process(n.set([r.date,r.time,r.expression],r.generalDelimiter,r.whiteSpace),i.finish)},r.buildGrammarFormats(),r._formats=r.formats('"yyyy-MM-ddTHH:mm:ssZ";yyyy-MM-ddTHH:mm:ss.sz;yyyy-MM-ddTHH:mm:ssZ;yyyy-MM-ddTHH:mm:ssz;yyyy-MM-ddTHH:mm:ss;yyyy-MM-ddTHH:mmZ;yyyy-MM-ddTHH:mmz;yyyy-MM-ddTHH:mm;ddd, MMM dd, yyyy H:mm:ss tt;ddd MMM d yyyy HH:mm:ss zzz;MMddyyyy;ddMMyyyy;Mddyyyy;ddMyyyy;Mdyyyy;dMyyyy;yyyy;Mdyy;dMyy;d'.split(";")),r.start=function(e){try{var t=r._formats.call({},e);if(0===t[1].length)return t}catch(i){}return r._start.call({},e)}}(),function(){var e=Date,t={removeOrds:function(e){return(ords=e.match(/\b(\d+)(?:st|nd|rd|th)\b/))&&2===ords.length?e.replace(ords[0],ords[1]):e},grammarParser:function(t){var n=null;try{n=e.Grammar.start.call({},t.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1"))}catch(r){return null}return 0===n[1].length?n[0]:null},nativeFallback:function(e){var t;try{return(t=Date._parse(e))||0===t?new Date(t):null}catch(n){return null}}};e._parse||(e._parse=e.parse),e.parse=function(n){var r;return n?n instanceof Date?n.clone():(4<=n.length&&"0"!==n.charAt(0)&&"+"!==n.charAt(0)&&"-"!==n.charAt(0)&&(r=e.Parsing.ISO.parse(n)||e.Parsing.Numeric.parse(n)),r instanceof Date&&!isNaN(r.getTime())?r:(n=e.Parsing.Normalizer.parse(t.removeOrds(n)),null!==(r=t.grammarParser(n))?r:t.nativeFallback(n))):null},Date.getParseFunction=function(e){var t=Date.Grammar.allformats(e);return function(n){for(var r=null,i=0;i<t.length;i++){try{r=t[i].call({},n)}catch(e){continue}if(0===r[1].length)return r[0]}return null}},e.parseExact=function(t,n){return e.getParseFunction(n)(t)}}(),function(){var e=Date,n=e.prototype,r=function(e,t){return t||(t=2),("000"+e).slice(-1*t)},i={d:"dd","%d":"dd",D:"ddd","%a":"ddd",j:"dddd",l:"dddd","%A":"dddd",S:"S",F:"MMMM","%B":"MMMM",m:"MM","%m":"MM",M:"MMM","%b":"MMM","%h":"MMM",n:"M",Y:"yyyy","%Y":"yyyy",y:"yy","%y":"yy",g:"h","%I":"h",G:"H",h:"hh",H:"HH","%H":"HH",i:"mm","%M":"mm",s:"ss","%S":"ss","%r":"hh:mm tt","%R":"H:mm","%T":"H:mm:ss","%X":"t","%x":"d","%e":"d","%D":"MM/dd/yy","%n":"\\n","%t":"\\t",e:"z",T:"z","%z":"z","%Z":"z",Z:"ZZ",N:"u",w:"u","%w":"u",W:"W","%V":"W"},o={substitutes:function(e){return i[e]},interpreted:function(n,i){var o;switch(n){case"%u":return i.getDay()+1;case"z":return i.getOrdinalNumber();case"%j":return r(i.getOrdinalNumber(),3);case"%U":o=i.clone().set({month:0,day:1}).addDays(-1).moveToDayOfWeek(0);var a=i.clone().addDays(1).moveToDayOfWeek(0,-1);return a<o?"00":r((a.getOrdinalNumber()-o.getOrdinalNumber())/7+1);case"%W":return r(i.getWeek());case"t":return e.getDaysInMonth(i.getFullYear(),i.getMonth());case"o":case"%G":return i.setWeek(i.getISOWeek()).toString("yyyy");case"%g":return i._format("%G").slice(-2);case"a":case"%p":return t("tt").toLowerCase();case"A":return t("tt").toUpperCase();case"u":return r(i.getMilliseconds(),3);case"I":return i.isDaylightSavingTime()?1:0;case"O":return i.getUTCOffset();case"P":return(o=i.getUTCOffset()).substring(0,o.length-2)+":"+o.substring(o.length-2);case"B":return o=new Date,Math.floor((3600*o.getHours()+60*o.getMinutes()+o.getSeconds()+60*(o.getTimezoneOffset()+60))/86.4);case"c":return i.toISOString().replace(/\"/g,"");case"U":return e.strtotime("now");case"%c":return t("d")+" "+t("t");case"%C":return Math.floor(i.getFullYear()/100+1)}},shouldOverrideDefaults:function(e){switch(e){case"%e":return!0;default:return!1}},parse:function(e,t){var n,r=t||new Date;return(n=o.substitutes(e))?n:(n=o.interpreted(e,r))?n:e}};e.normalizeFormat=function(e,t){return e.replace(/(%|\\)?.|%%/g,function(e){return o.parse(e,t)})},e.strftime=function(e,t){return Date.parse(t)._format(e)},e.strtotime=function(t){return t=e.parse(t),Math.round(e.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds())/1e3)};var a=function(t){return function(n){var r=!1;return"\\"===n.charAt(0)||"%%"===n.substring(0,2)?n.replace("\\","").replace("%%","%"):(r=o.shouldOverrideDefaults(n),(n=e.normalizeFormat(n,t))?t.toString(n,r):void 0)}};n._format=function(e){var t=a(this);return e?e.replace(/(%|\\)?.|%%/g,t):this._toString()},n.format||(n.format=n._format)}(),function(){var e=function(e){return function(){return this[e]}},t=function(e){return function(t){return this[e]=t,this}},n=function(e,t,r,i,o){if(1===arguments.length&&"number"==typeof e){var a=0>e?-1:1,s=Math.abs(e);this.setDays(Math.floor(s/864e5)*a),s%=864e5,this.setHours(Math.floor(s/36e5)*a),s%=36e5,this.setMinutes(Math.floor(s/6e4)*a),s%=6e4,this.setSeconds(Math.floor(s/1e3)*a),this.setMilliseconds(s%1e3*a)}else this.set(e,t,r,i,o);return this.getTotalMilliseconds=function(){return 864e5*this.getDays()+36e5*this.getHours()+6e4*this.getMinutes()+1e3*this.getSeconds()},this.compareTo=function(e){var t=new Date(1970,1,1,this.getHours(),this.getMinutes(),this.getSeconds());return t<(e=null===e?new Date(1970,1,1,0,0,0):new Date(1970,1,1,e.getHours(),e.getMinutes(),e.getSeconds()))?-1:t>e?1:0},this.equals=function(e){return 0===this.compareTo(e)},this.add=function(e){return null===e?this:this.addSeconds(e.getTotalMilliseconds()/1e3)},this.subtract=function(e){return null===e?this:this.addSeconds(-e.getTotalMilliseconds()/1e3)},this.addDays=function(e){return new n(this.getTotalMilliseconds()+864e5*e)},this.addHours=function(e){return new n(this.getTotalMilliseconds()+36e5*e)},this.addMinutes=function(e){return new n(this.getTotalMilliseconds()+6e4*e)},this.addSeconds=function(e){return new n(this.getTotalMilliseconds()+1e3*e)},this.addMilliseconds=function(e){return new n(this.getTotalMilliseconds()+e)},this.get12HourHour=function(){return 12<this.getHours()?this.getHours()-12:0===this.getHours()?12:this.getHours()},this.getDesignator=function(){return 12>this.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator},this.toString=function(e){this._toString=function(){return null!==this.getDays()&&0<this.getDays()?this.getDays()+"."+this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds()):this.getHours()+":"+this.p(this.getMinutes())+":"+this.p(this.getSeconds())},this.p=function(e){return 2>e.toString().length?"0"+e:e};var t=this;return e?e.replace(/dd?|HH?|hh?|mm?|ss?|tt?/g,function(e){switch(e){case"d":return t.getDays();case"dd":return t.p(t.getDays());case"H":return t.getHours();case"HH":return t.p(t.getHours());case"h":return t.get12HourHour();case"hh":return t.p(t.get12HourHour());case"m":return t.getMinutes();case"mm":return t.p(t.getMinutes());case"s":return t.getSeconds();case"ss":return t.p(t.getSeconds());case"t":return(12>t.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator).substring(0,1);case"tt":return 12>t.getHours()?Date.CultureInfo.amDesignator:Date.CultureInfo.pmDesignator}}):this._toString()},this};!function(n,r){for(var i=0;i<r.length;i++){var o=r[i],a=o.slice(0,1).toUpperCase()+o.slice(1);n.prototype[o]=0,n.prototype["get"+a]=e(o),n.prototype["set"+a]=t(o)}}(n,"years months days hours minutes seconds milliseconds".split(" ").slice(2)),n.prototype.set=function(e,t,n,r,i){this.setDays(e||this.getDays()),this.setHours(t||this.getHours()),this.setMinutes(n||this.getMinutes()),this.setSeconds(r||this.getSeconds()),this.setMilliseconds(i||this.getMilliseconds())},Date.prototype.getTimeOfDay=function(){return new n(0,this.getHours(),this.getMinutes(),this.getSeconds(),this.getMilliseconds())},Date.TimeSpan=n,"undefined"!=typeof window&&(window.TimeSpan=n)}(),function(){var e=function(e){return function(){return this[e]}},t=function(e){return function(t){return this[e]=t,this}},n=function(e,t,n,r){function i(){t.addMonths(-e),r.months++,12===r.months&&(r.years++,r.months=0)}if(1===e)for(;t>n;)i();else for(;t<n;)i();r.months--,r.months*=e,r.years*=e},r=function(e,t,r,i,o,a,s){if(7===arguments.length)this.set(e,t,r,i,o,a,s);else if(2===arguments.length&&arguments[0]instanceof Date&&arguments[1]instanceof Date){var u=arguments[0].clone(),l=arguments[1].clone(),c=u>l?1:-1;this.dates={start:arguments[0].clone(),end:arguments[1].clone()},n(c,u,l,this);var d=!1==(u.isDaylightSavingTime()===l.isDaylightSavingTime());d&&1===c?u.addHours(-1):d&&u.addHours(1),0!==(u=l-u)&&(u=new TimeSpan(u),this.set(this.years,this.months,u.getDays(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()))}return this};!function(n,r){for(var i=0;i<r.length;i++){var o=r[i],a=o.slice(0,1).toUpperCase()+o.slice(1);n.prototype[o]=0,n.prototype["get"+a]=e(o),n.prototype["set"+a]=t(o)}}(r,"years months days hours minutes seconds milliseconds".split(" ")),r.prototype.set=function(e,t,n,r,i,o,a){this.setYears(e||this.getYears()),this.setMonths(t||this.getMonths()),this.setDays(n||this.getDays()),this.setHours(r||this.getHours()),this.setMinutes(i||this.getMinutes()),this.setSeconds(o||this.getSeconds()),this.setMilliseconds(a||this.getMilliseconds())},Date.TimePeriod=r,"undefined"!=typeof window&&(window.TimePeriod=r)}(),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ClipboardJS=t():e.ClipboardJS=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=r(n(1)),u=r(n(3)),l=r(n(4)),c=function(){function e(t,n){!function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.resolveOptions(n),r.listenClick(t),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,u["default"]),a(e,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===o(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,l["default"])(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s["default"]({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return i("action",e)}},{key:"defaultTarget",value:function(e){var t=i("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return i("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),e}();e.exports=c},function(e,t,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=(r=n(2))&&r.__esModule?r:{"default":r},s=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,a["default"])(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,a["default"])(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),t}();e.exports=s},function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function r(){i.off(e,r),t.apply(n,arguments)}var i=this;return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t},function(e,t,n){var r=n(5),i=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return f=t,h=n,(d=e).addEventListener(f,h),{destroy:function(){d.removeEventListener(f,h)}};if(r.nodeList(e))return u=e,l=t,c=n,Array.prototype.forEach.call(u,function(e){e.addEventListener(l,c)}),{destroy:function(){Array.prototype.forEach.call(u,function(e){e.removeEventListener(l,c)})}};if(r.string(e))return o=e,a=t,s=n,i(document.body,o,a,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,u,l,c,d,f,h}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function r(e,t,n,r,o){var a=function(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}var i=n(7);e.exports=function(e,t,n,i,o){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return r(e,t,n,i,o)}))}},function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}}])});var gollumRoutes=$.parseJSON('{"assets":"/gollum/assets","last_commit_info":"/gollum/last_commit_info","latest_changes":"/gollum/latest_changes","upload_file":"/gollum/upload_file","create":"/gollum/create","delete":"/gollum/delete","edit":"/gollum/edit","overview":"/gollum/overview","history":"/gollum/history","rename":"/gollum/rename","revert":"/gollum/revert","preview":"/gollum/preview","compare":"/gollum/compare","search":"/gollum/search"}');$(document).ready(function(){function e(){var e=new FormData($("#gollum-editor-form").get(0)),t=window.location.pathname.split("/"),n=window.location.hash.substr(1);e.append("page",decodeURIComponent(t[t.length-1])||""),$.ajax({url:routePath("preview"),data:e,type:"POST",processData:!1,contentType:!1,success:function(e){var t=$("#wiki-wrapper",e);$(".tabnav-div#preview-content").html(t),preparePage(),n&&(sectionHeading=$("a#"+n+".anchor")[0])&&sectionHeading.scrollIntoView(),null!=window.MathJax&&window.MathJax.Hub.Queue(["Typeset",window.MathJax.Hub,"preview-content"])},error:function(e,t,n){console.log("something went wrong: "+t+n)}})}function t(e){e?(active_div="#preview-content",active_tab="#preview.tabnav-tab"):(active_div="#edit-content",active_tab="#edit.tabnav-tab"),$(".tabnav-tab.selected").removeAttr("aria-current"),$(".tabnav-tab.selected").removeClass("selected"),$(active_tab).attr("aria-current","page"),$(active_tab).addClass("selected"),$(".tabnav-div").hide(),$(active_div).show()}$("#delete-link").click(function(e){confirm($(this).data("confirm"))&&$.post(routePath("delete")+"/"+pageFullPath,{},function(){window.location="/"}),e.preventDefault()}),$(".delete-file").click(function(e){if(confirm($(this).data("confirm"))){var t=$(this);$.post(routePath("delete")+"/"+$(this).data("file-path"),{},function(){t.closest("li").remove()})}e.preventDefault()}),$.browser.mozilla?$("body").addClass("ff"):$.browser.webkit?$("body").addClass("webkit"):$.browser.msie&&($("body").addClass("ie"),"7.0"==$.browser.version?$("body").addClass("ie7"):"8.0"==$.browser.version&&$("body").addClass("ie8")),showLocalTime&&$(function(){$("time").each(function(){var e=$(this).attr("datetime"),t=$(this).data("format");$(this).html(getLocalTime(e,t))})}),$(".minibutton-upload-page").length&&(new ClipboardJS("#ClipboardJSlink"),$(".minibutton-upload-page").parent().removeClass("jaws"),$(".minibutton-upload-page").click(function(e){e.preventDefault(),$.GollumDialog.init({title:"Upload File",fields:[{type:"file",context:"Your uploaded file will be accessible at<br>/"+uploadDest+"/[filename]",action:routePath("upload_file")}],OK:function(){$("#wiki-content").addClass("uploading");var e=new FormData($("#upload").get(0)),t=$("#upload").attr("action");$.ajax({url:t,type:"POST",data:e,
processData:!1,contentType:!1,success:function(){$("#wiki-content").removeClass("uploading"),flashNotice("success","Your file was successfully uploaded.")},error:function(e,t,n){$("#wiki-content").removeClass("uploading"),409==e.status?flashNotice("error","The file you tried to upload already exists. Please rename the file and try again."):flashNotice("error","Error uploading file: "+t+" "+n)}})}}),$("#gollum-dialog-action-ok").attr("disabled",!0),$("input:file").on("change",function(){$(this).val()&&(filename=$("input[type=file]").val().split("\\").pop(),upload_path="/"+uploadDest+"/"+filename,clipboard_button='<button class="btn btn-sm mb-2" id="ClipboardJSlink" data-clipboard-text="'+upload_path+'"><svg class="octicon octicon-clippy" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"></path></svg></button>',news="Your uploaded file will be accessible at<br>"+clipboard_button+"&nbsp;"+upload_path,$(".context").html(news),$("#gollum-dialog-action-ok").attr("disabled",!1))})})),$(".minibutton-rename-page").length&&($(".minibutton-rename-page").parent().removeClass("jaws"),$(".minibutton-rename-page").click(function(e){e.preventDefault();var t=decodeURI(pagePath()),n=decodeURI(pageName()),r="Renamed page will be under <span class='path'>"+htmlEscape(cleanPath(t))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Rename Page",fields:[{id:"name",name:"Rename to",type:"text",defaultValue:n||"",context:r}],OK:function(e){var r="Rename Page";e.name&&(r=e.name);var i=abspath(t,r),o=i[0],a="/"+t==o?"Renamed "+n+" to "+r:"Renamed "+n+" to "+i.join("/"),s=$("form[name=rename]");s.children("input[name=rename]").val(i.join("/")),s.children("input[name=message]").val(a),s.submit()}})})),$(".minibutton-new-page").length&&($(".minibutton-new-page").parent().removeClass("jaws"),$(".minibutton-new-page").click(function(e){e.preventDefault();var t=pagePath();t===undefined&&0!=$("#file-browser").length&&(t=window.location.pathname.replace(routePath("overview"),""));var n="Page will be created under <span class='path'>"+htmlEscape(cleanPath(t))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Create New Page",fields:[{id:"name",name:"Page Name",type:"text",defaultValue:"",context:n}],OK:function(e){var n="New Page";e.name&&(n=e.name);for(var r=[],i=abspath(t,n).join("/").split("/"),o=0;o<i.length;o++)r.push(encodeURIComponent(i[o]));window.location=routePath("create")+r.join("/")}})})),$("#wiki-wrapper").hasClass("history")&&($("#wiki-history td.checkbox input").each(function(){$(this).click(function(){nodeSelector.checkNode($(this))}),$(this).is(":checked")&&nodeSelector.checkNode($(this))}),$(".history button.action-compare-revision").length&&$(".history button.action-compare-revision").click(function(){$("#selection-form").submit()})),$("#searchbar a#search-submit").length&&($.GollumPlaceholder.add($("#searchbar #search-query")),$("#searchbar a#search-submit").click(function(e){e.preventDefault(),$("#searchbar #search-form")[0].submit()}),$("#searchbar #search-form").submit(function(){$.GollumPlaceholder.clearAll(),$(this).unbind("submit"),$(this).submit()})),$("#gollum-revert-form").length&&$(".gollum-revert-button").length&&$("a.gollum-revert-button").click(function(e){e.preventDefault(),$("#gollum-revert-form").submit()}),$(".tabnav-tabs").length&&$(".tabnav-tab").click(function(n){n.preventDefault(),$(this).hasClass("selected")||(preview="preview"==$(this).attr("id"),preview&&e(),t(preview))});var n=function(){return $(".tabnav-tab").not(".selected").click(),!1},r=[{name:"saveContents",bindKey:{win:"Ctrl-s",mac:"Command-s"},exec:function(){$("#gollum-editor-submit").trigger("click")}},{name:"togglePreview",bindKey:{win:"ctrl-shift-p",mac:"ctrl-shift-p"},exec:n}];if(($("#wiki-wrapper.edit").length||$("#wiki-wrapper.create").length)&&Mousetrap.bind(["ctrl+shift+p"],n),$("#wiki-wrapper.edit").length&&($("#gollum-editor-submit").click(function(){window.onbeforeunload=null}),$("#gollum-editor-body").one("change",function(){window.onbeforeunload=function(){return"Leaving will discard all edits!"}}),$.GollumEditor({section:window.location.hash.substr(1),commands:r}),$("#gollum-editor-submit").click(function(e){e.preventDefault(),$(this).attr("disabled",!0);var t=new FormData($("#gollum-editor-form").get(0)),n="."+$("#wiki_format option:selected").attr("data-ext"),r=cleanPath(prefixBaseUrl(pagePath()+"/"+pageName()+n)),i=$("#gollum-editor-form").attr("action");$.ajax({url:i,type:"POST",data:t,processData:!1,contentType:!1,success:function(){window.location=r},error:function(e,t,n){412==e.status?($("#gollum-editor-submit").attr("disabled",!1),alert("Someone else has modified this page while you were editing it. Please store your version on disk outside of the browser, reload this page and reapply your modifications.")):alert("Error updating page: "+t+" "+n)}})})),$("#page-history").length&&$("#page-history #pagination").length){var i=2,o=["bg-green-light","bg-red-light"],a=function(){var e=0;$("#selection-form input").each(function(t,n){var r=$(n).val(),i=$('#version-form input[value="'+r+'"]');i.prop("checked",!0),0==t?i.closest("li").removeClass(o[1]).addClass(o[t]):1==t&&i.closest("li").addClass(o[t]),e+=1}),e<1?$(".history button.action-compare-revision").prop("disabled",!0):e<i?($(".history button.action-compare-revision").prop("disabled",!1),$("#version-form input").prop("disabled",!1)):$("#version-form input:not(:checked)").prop("disabled",!0)},s=function(e){$("<input>").attr({type:"hidden",id:$(e).val(),name:"versions[]",value:$(e).val()}).appendTo($("#selection-form")),a()},u=function(e){$("#selection-form #"+$(e).val()).remove(),$(e).closest("li").removeClass(o.join(" ")),a()},l=function(){$("#version-form input").on("change",function(){this.checked?s(this):u(this)})};l(),a();var c=function(e){e.preventDefault(),$(this).hasClass("disabled")||$.ajax({url:$(this).attr("href"),type:"GET",success:function(e){var t=$("#page-history-list",e),n=$("#pagination",e);["#next","#prev"].forEach(function(e){old_btn=$("#pagination "+e),new_btn=n.find(e),old_btn.attr("href",new_btn.attr("href")),new_btn.hasClass("disabled")?old_btn.addClass("disabled"):old_btn.removeClass("disabled")}),$("#page-history-list").replaceWith(t),l(),a()},error:function(e,t,n){console.log("something went wrong: "+t+n)}}),this.blur()};$("#pagination #next, #pagination #prev").each(function(e,t){$(t).on("click",c)})}if($("#last-edit").length&&$("#page-info-toggle").click(function(){$.ajax({url:routePath("last_commit_info"),data:{path:$("#page-info-toggle").data("pagepath")},success:function(e){var t=showLocalTime?getLocalTime(e.date):e.date;$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#last-edit-in-progress").html("Last edited by <b>"+e.author+"</b>, "+t)}}),$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#page-info-toggle").before('<span id="last-edit-in-progress">&nbsp;Getting commit info...</span>').remove()}),$("#wiki-wrapper.create").length&&($("#gollum-editor-submit").click(function(){window.onbeforeunload=null}),$("#gollum-editor-body").one("change",function(){window.onbeforeunload=function(){return"Leaving will not create a new page!"}}),$.GollumEditor({NewFile:!0,MarkupType:default_markup,commands:r})),$("#search-results").length){$(".toggle-context").each(function(){var e=$(this).parent().next("div.search-context").find("li:hidden");e.length?$(this).click(function(){e.toggle(),$(this).toggle()}):$(this).toggle()});var d=new RegExp(searchTerms.join("|"),"gi");$("div.search-context li span").each(function(){var e=$(this).html().replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(d,function(e){return'<span class="bg-green-light">'+e+"</span>"});$(this).html(e)})}if($(".markdown-body").length&&(preparePage(),(match=new RegExp(/[?&]redirected\_from=([^?]*)/).exec(window.location.href))&&(notice="The page you requested was renamed or moved. You've been successfully redirected to its new location.",flashNotice("success",notice)),Mousetrap.bind(["e"],function(e){return e.preventDefault(),window.location=routePath("edit")+"/"+pageFullPath,!1}),$.markupSupportsEditableSections(pageFormat)&&$("a.anchor").each(function(e,t){if(header=$(t).closest(":header"),header.hasClass("editable")){var n=routePath("edit")+"/"+pageFullPath+$(t).attr("href");$(t).clone().addClass("edit").attr("href",n).appendTo(header)}})),$("#wiki-history").length||$("#page-history").length){var f={format:"svg",background:[255,255,255,255]};$("img.identicon").each(function(e,t){var n=$(t),r=n.data("identicon"),i=new Identicon(r,f).toString();i="data:image/svg+xml;base64,"+i,n.attr("src",i)})}}),function(e){var t={debugOn:!1,markupCreated:!1,markup:"",currentAspect:function(){return window.innerWidth<480?"small-mobile":"fixed"==e("#gollum-dialog-dialog").css("position")?"large-mobile":"desktop"},attachEvents:function(n){e("#gollum-dialog-action-ok").click(function(e){t.eventOK(e,n)}),e("#gollum-dialog-action-cancel").click(t.eventCancel),e('#gollum-dialog-dialog input[type="text"]').keydown(function(e){13==e.keyCode&&t.eventOK(e,n)})},detachEvents:function(){e("#gollum-dialog-action-ok").unbind("click"),e("#gollum-dialog-action-cancel").unbind("click")},createFieldMarkup:function(e){for(var n="<fieldset>",r=0;r<e.length;r++)if("object"==typeof e[r]){switch(n+='<div class="field">',e[r].type){case"text":n+=t.createFieldText(e[r]);break;case"file":n+=t.createFieldFile(e[r])}n+="</div>"}return n+="</fieldset>"},createFieldText:function(e){var t="";return e.name&&(t+="<label",e.id&&(t+=' for="gollum-dialog-dialog-generated-field-'+e.id+'"'),t+=">"+e.name+"</label>"),t+='<input type="text" class="form-control input-sm width-full"',e.id&&(t+=' name="'+e.id+'"',"code"==e.type&&(t+=' class="code"'),e.defaultValue&&(t+=' value="'+e.defaultValue.split('"').join("&quot;")+'"'),t+=' id="gollum-dialog-dialog-generated-field-'+e.id+'">'),e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createFieldFile:function(e){var t="",n=e.id||"upload",r=e.name||"file";return t+='<form method=post enctype="multipart/form-data" action="'+(e.action||routePath("upload_file"))+'" id="'+n+'">',t+='<input type=file name="'+r+'" class="form-control width-full">',t+="</form>",e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createMarkup:function(e,n){return t.markupCreated=!0,'<div id="gollum-dialog-dialog"><div id="gollum-dialog-dialog-inner" class="border rounded-1"><div id="gollum-dialog-dialog-title"><h4>'+e+'</h4></div><div id="gollum-dialog-dialog-body">'+n+'</div><div id="gollum-dialog-dialog-buttons" class="pt-2 float-right"><button name="Cancel" id="gollum-dialog-action-cancel" class="btn">Cancel</button><span class="px-1"></span><button name="OK" id="gollum-dialog-action-ok" class="btn btn-primary">OK</button></div></div></div>'},eventCancel:function(e){e.preventDefault(),n("Cancelled dialog."),t.hide()},eventOK:function(n,r){n.preventDefault();var i=[];e("#gollum-dialog-dialog-body input").each(function(){i[e(this).attr("name")]=e(this).val()}),r&&"function"==typeof r&&r(i),t.hide()},hide:function(){e.browser.msie?(e("#gollum-dialog-dialog").hide().removeClass("active"),e("select").css("visibility","visible")):(e("#gollum-dialog-dialog").animate({opacity:0},{duration:200,complete:function(){e("#gollum-dialog-dialog").removeClass("active"),e("#gollum-dialog-dialog").css("display","none")}}),e(window).unbind("resize",t.resize))},init:function(r){var i="",o="";r&&"object"==typeof r?(r.body&&"string"==typeof r.body&&(o="<p>"+r.body+"</p>"),r.fields&&"object"==typeof r.fields&&(o+=t.createFieldMarkup(r.fields)),r.title&&"string"==typeof r.title&&(i=r.title),t.markupCreated&&e("#gollum-dialog-dialog").remove(),t.markup=t.createMarkup(i,o),e("body").append(t.markup),r.OK&&"function"==typeof r.OK&&t.attachEvents(r.OK),t.show()):n("Editor Dialog: Cannot init; invalid init object")},show:function(){t.markupCreated?(n("Showing dialog"),e.browser.msie?(e("#gollum-dialog.dialog").addClass("active"),t.position(),e("select").css("visibility","hidden")):(e("#gollum-dialog.dialog").css("display","none"),e("#gollum-dialog-dialog").animate({opacity:0},{duration:0,complete:function(){e("#gollum-dialog-dialog").css("display","block"),t.position(),e("#gollum-dialog-dialog").animate({opacity:1},{duration:500}),e(e('#gollum-dialog-dialog input[type="text"]').get(0)).focus()}})),e(window).bind("resize",t.resize)):n("Dialog: No markup to show. Please use init first.")},resize:function(){t.position()},position:function(){if("small-mobile"==t.currentAspect())e("#gollum-dialog-dialog-inner").css("height","100%").css("margin-top","auto");else if("large-mobile"==t.currentAspect())e("#gollum-dialog-dialog-inner").css("height","auto").css("margin-top","auto");else if("desktop"==t.currentAspect()){var n=e("#gollum-dialog-dialog-inner").height();e("#gollum-dialog-dialog-inner").css("height",n+"px").css("margin-top",-1*parseInt(n/2))}}},n=function(e){t.debugOn&&"undefined"!=typeof console&&console.log(e)};e.GollumDialog=t}(jQuery),function(e){var t={_PLACEHOLDERS:[],_p:function(t){this.fieldObject=t,this.placeholderText=t.val();var n=t.val();t.addClass("ph"),t.blur(function(){""==e(this).val()&&(e(this).val(n),e(this).addClass("ph"))}),t.focus(function(){e(this).removeClass("ph"),e(this).val()==n?e(this).val(""):e(this)[0].select()})},add:function(e){t._PLACEHOLDERS.push(new t._p(e))},clearAll:function(){for(var e=0;e<t._PLACEHOLDERS.length;e++)t._PLACEHOLDERS[e].fieldObject.val()==t._PLACEHOLDERS[e].placeholderText&&t._PLACEHOLDERS[e].fieldObject.val("")},exists:function(){return _PLACEHOLDERS.length}};e.GollumPlaceholder=t}(jQuery),function(e){function t(e){var t=window.ace_editor.getSession();return tokens=t.getTokens(e),section=tokens.filter(function(e){return e.type.startsWith("markup.heading")})[0],header=tokens.filter(function(e){return/^(heading)|(text)$/.test(e.type)})[0],[section,header]}function n(e,t,n){if(!n||!n["find-header-line"])return[];var r=n["find-header-line"](e,t);return null==r?[]:[r[0],r[1]]}function r(e){return e.trim().replace(/[^a-z0-9_\s]/gi," ").replace(/\s\s+/g," ").split(/\s/).join("-").replace(/^-/,"").toLowerCase()}e.markupSupportsEditableSections=function(e){return["markdown","textile","asciidoc","rst"].includes(e)},e.findSection=function(e,o){var a={};for(i=0;i<window.ace_editor.getSession().getLength();i++){var s=null,u=t(i),l=u[0],c=u[1];if(l){if(c)c=c.value,s=i;else{var d=n(i,l.value,o);if(!d.length)continue;c=d[0],s=d[1]}if(c=r(c),(index=a[c])?a[c=c+"-"+index.toString()]=index+1:a[c]=1,c==e)return s}}return null}}(jQuery),function(e){function t(){if(!o){var e=(w||"")+".resize-triggers { "+(x||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n),o=!0}}var n,r,i=document.attachEvent,o=!1,a=e.fn.resize;if(e.fn.resize=function(e){return this.each(function(){this==window?a.call(jQuery(this),e):addResizeListener(this,e)})},e.fn.removeResize=function(e){return this.each(function(){removeResizeListener(this,e)})},!i){var s=(r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},function(e){return r(e)}),u=(n=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(e){return n(e)});function l(e){var t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,i=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,i.style.width=n.offsetWidth+1+"px",i.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight}function c(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height}function d(e){var t=this;l(this),this.__resizeRAF__&&u(this.__resizeRAF__),this.__resizeRAF__=s(function(){c(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})}var f=!1,h="",p="animationstart",m="Webkit Moz O ms".split(" "),g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="",v=document.createElement("fakeelement");if(v.style.animationName!==undefined&&(f=!0),!1===f)for(var b=0;b<m.length;b++)if(v.style[m[b]+"AnimationName"]!==undefined){(y=m[b])+"Animation",h="-"+y.toLowerCase()+"-",p=g[b],f=!0;break}var T="resizeanim",w="@"+h+"keyframes "+T+" { from { opacity: 0; } to { opacity: 0; } } ",x=h+"animation: 1ms "+T+"; "}window.addResizeListener=function(e,n){i?e.attachEvent("onresize",n):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),t(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),l(e),e.addEventListener("scroll",d,!0),p&&e.__resizeTriggers__.addEventListener(p,function(t){t.animationName==T&&l(e)})),e.__resizeListeners__.push(n))},window.removeResizeListener=function(e,t){i?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",d),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))}}(jQuery),Array.prototype.includes||(Array.prototype.includes=function(e){return 0<=this.indexOf(e)});