gollum 5.2.3 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +41 -0
  3. data/Gemfile +18 -4
  4. data/HISTORY.md +20 -3
  5. data/LATEST_CHANGES.md +13 -0
  6. data/README.md +38 -26
  7. data/Rakefile +55 -12
  8. data/bin/gollum +6 -4
  9. data/bin/gollum-migrate-tags +40 -28
  10. data/docker-run.sh +18 -0
  11. data/gollum.gemspec +20 -15
  12. data/lib/gollum/app.rb +65 -42
  13. data/lib/gollum/public/assets/.sprockets-manifest-160337b312f8e438181baac4aaa37319.json +1 -0
  14. data/lib/gollum/public/assets/{app-ad43ca64b295d8444b10f22ee868f18429268af498f1bc515434878b690e37a2.css → app-309be032396e783b13a47df58f389b7c8e11c2b2d42640560b874f677c25f6e5.css} +1 -1
  15. data/lib/gollum/public/assets/{app-ad43ca64b295d8444b10f22ee868f18429268af498f1bc515434878b690e37a2.css.gz → app-309be032396e783b13a47df58f389b7c8e11c2b2d42640560b874f677c25f6e5.css.gz} +0 -0
  16. data/lib/gollum/public/assets/{app-0fd228e26bfbe6fe31a2da268eb0e98e780c1191c1a918adf383377946e9c838.js → app-f05401ee374f0c7f48fc2bc08e30b4f4db705861fd5895ed70998683b383bfb5.js} +2 -2
  17. data/lib/gollum/public/assets/{app-0fd228e26bfbe6fe31a2da268eb0e98e780c1191c1a918adf383377946e9c838.js.gz → app-f05401ee374f0c7f48fc2bc08e30b4f4db705861fd5895ed70998683b383bfb5.js.gz} +0 -0
  18. data/lib/gollum/public/assets/criticmarkup-31ae5d3282bbb8e7b7c3c9917e9fb68e3315a6b4a75da6cec48d21b8846905c4.css.gz +0 -0
  19. data/lib/gollum/public/assets/{editor-db10c8351306e92f1926ba225d0cd9c8e886482b3b9820a85825ec3abab5f1cf.js → editor-9881d0c7ae663293f0e3a7e72729eec7e940fa613185c076709b76d292f5703a.js} +2 -2
  20. data/lib/gollum/public/assets/{editor-db10c8351306e92f1926ba225d0cd9c8e886482b3b9820a85825ec3abab5f1cf.js.gz → editor-9881d0c7ae663293f0e3a7e72729eec7e940fa613185c076709b76d292f5703a.js.gz} +0 -0
  21. data/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz +0 -0
  22. data/lib/gollum/public/gollum/javascript/app.js +1 -0
  23. data/lib/gollum/public/gollum/javascript/date.min.js +123 -0
  24. data/lib/gollum/public/gollum/javascript/editor/gollum.editor.js +1 -1
  25. data/lib/gollum/public/gollum/javascript/gollum.js.erb +20 -2
  26. data/lib/gollum/public/gollum/stylesheets/editor.scss +1 -0
  27. data/lib/gollum/public/gollum/stylesheets/template.scss.erb +8 -0
  28. data/lib/gollum/templates/commit.mustache +4 -2
  29. data/lib/gollum/templates/compare.mustache +10 -4
  30. data/lib/gollum/templates/create.mustache +7 -4
  31. data/lib/gollum/templates/edit.mustache +7 -4
  32. data/lib/gollum/templates/history.mustache +10 -3
  33. data/lib/gollum/templates/latest_changes.mustache +8 -5
  34. data/lib/gollum/templates/layout.mustache +1 -0
  35. data/lib/gollum/templates/navbar.mustache +9 -2
  36. data/lib/gollum/templates/overview.mustache +7 -4
  37. data/lib/gollum/templates/search.mustache +7 -1
  38. data/lib/gollum/templates/wiki_content.mustache +4 -2
  39. data/lib/gollum/views/commit.rb +4 -0
  40. data/lib/gollum/views/create.rb +3 -2
  41. data/lib/gollum/views/edit.rb +2 -5
  42. data/lib/gollum/views/has_math.rb +11 -0
  43. data/lib/gollum/views/helpers/locale_helpers.rb +82 -0
  44. data/lib/gollum/views/history.rb +17 -12
  45. data/lib/gollum/views/latest_changes.rb +15 -10
  46. data/lib/gollum/views/layout.rb +18 -3
  47. data/lib/gollum/views/page.rb +24 -20
  48. data/lib/gollum/views/template_cascade.rb +29 -0
  49. data/lib/gollum.rb +10 -6
  50. metadata +57 -30
  51. data/lib/gollum/public/assets/.sprockets-manifest-de7bb79aec424e55af1acdcc4237b301.json +0 -1
@@ -1,5 +1,5 @@
1
1
  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 flashNotice(e,t,n,i,r){nested_button_html="",void 0!==n&&void 0!==i&&(r=void 0!==r&&"danger"==r?" btn-danger":"",nested_button_html='<span class="px-2"><button type="button" class="btn btn-sm'+r+'" onclick="'+i+'">'+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(j,D){function c(e){return L.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function m(e){if(!vt[e]){var t=F.body,n=L("<"+e+">").appendTo(t),i=n.css("display");n.remove(),"none"!==i&&""!==i||(ht||((ht=F.createElement("iframe")).frameBorder=ht.width=ht.height=0),t.appendChild(ht),gt&&ht.createElement||((gt=(ht.contentWindow||ht.contentDocument).document).write((L.support.boxModel?"<!doctype html>":"")+"<html><body>"),gt.close()),n=gt.createElement(e),gt.body.appendChild(n),i=L.css(n,"display"),t.removeChild(ht)),vt[e]=i}return vt[e]}function s(e,t){var n={};return L.each(xt.concat.apply([],xt.slice(0,t)),function(){n[this]=e}),n}function e(){yt=D}function l(){return setTimeout(e,0),yt=L.now()}function t(){try{return new j.ActiveXObject("Microsoft.XMLHTTP")}catch(D){}}function n(){try{return new j.XMLHttpRequest}catch(D){}}function C(e,t){e.dataFilter&&(t=e.dataFilter(t,e.dataType));var n,i,r,o,a,s,l,u,c=e.dataTypes,d={},f=c.length,p=c[0];for(n=1;n<f;n++){if(1===n)for(i in e.converters)"string"==typeof i&&(d[i.toLowerCase()]=e.converters[i]);if(o=p,"*"===(p=c[n]))p=o;else if("*"!==o&&o!==p){if(!(s=d[a=o+" "+p]||d["* "+p]))for(l in u=D,d)if(((r=l.split(" "))[0]===o||"*"===r[0])&&(u=d[r[1]+" "+p])){!0===(l=d[l])?s=u:!0===u&&(s=l);break}!s&&!u&&L.error("No conversion from "+a.replace(" "," to ")),!0!==s&&(t=s?s(t):u(l(t)))}}return t}function E(e,t,n){var i,r,o,a,s=e.contents,l=e.dataTypes,u=e.responseFields;for(r in u)r in n&&(t[u[r]]=n[r]);for(;"*"===l[0];)l.shift(),i===D&&(i=e.mimeType||t.getResponseHeader("content-type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function o(n,e,i,r){if(L.isArray(e))L.each(e,function(e,t){i||We.test(n)?r(n,t):o(n+"["+("object"==typeof t?e:"")+"]",t,i,r)});else if(i||"object"!==L.type(e))r(n,e);else for(var t in e)o(n+"["+t+"]",e[t],i,r)}function i(e,t){var n,i,r=L.ajaxSettings.flatOptions||{};for(n in t)t[n]!==D&&((r[n]?e:i||(i={}))[n]=t[n]);i&&L.extend(!0,e,i)}function N(e,t,n,i,r,o){(o=o||{})[r=r||t.dataTypes[0]]=!0;for(var a,s=e[r],l=0,u=s?s.length:0,c=e===ot;l<u&&(c||!a);l++)"string"==typeof(a=s[l](t,n,i))&&(!c||o[a]?a=D:(t.dataTypes.unshift(a),a=N(e,t,n,i,a,o)));return(c||!a)&&!o["*"]&&(a=N(e,t,n,i,"*",o)),a}function r(s){return function(e,t){if("string"!=typeof e&&(t=e,e="*"),L.isFunction(t))for(var n,i,r=e.toLowerCase().split(tt),o=0,a=r.length;o<a;o++)n=r[o],(i=/^\+/.test(n))&&(n=n.substr(1)||"*"),(s[n]=s[n]||[])[i?"unshift":"push"](t)}}function a(e,t,n){var i="width"===t?e.offsetWidth:e.offsetHeight,r="width"===t?1:0,o=4;if(0<i){if("border"!==n)for(;r<o;r+=2)n||(i-=parseFloat(L.css(e,"padding"+qe[r]))||0),"margin"===n?i+=parseFloat(L.css(e,n+qe[r]))||0:i-=parseFloat(L.css(e,"border"+qe[r]+"Width"))||0;return i+"px"}if(((i=Ae(e,t))<0||null==i)&&(i=e.style[t]),Oe.test(i))return i;if(i=parseFloat(i)||0,n)for(;r<o;r+=2)i+=parseFloat(L.css(e,"padding"+qe[r]))||0,"padding"!==n&&(i+=parseFloat(L.css(e,"border"+qe[r]+"Width"))||0),"margin"===n&&(i+=parseFloat(L.css(e,n+qe[r]))||0);return i+"px"}function u(e){var t=F.createElement("div");return Se.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function w(e){var t=(e.nodeName||"").toLowerCase();"input"===t?d(e):"script"!==t&&"undefined"!=typeof e.getElementsByTagName&&L.grep(e.getElementsByTagName("input"),d)}function d(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function f(e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll("*"):[]}function p(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(L.expando),t.removeAttribute("_submit_attached"),t.removeAttribute("_change_attached"))}function h(e,t){if(1===t.nodeType&&L.hasData(e)){var n,i,r,o=L._data(e),a=L._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,r=s[n].length;i<r;i++)L.event.add(t,n,s[n][i]);a.data&&(a.data=L.extend({},a.data))}}function g(e){return L.nodeName(e,"table")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function x(e){var t=he.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function y(e,n,i){if(n=n||0,L.isFunction(n))return L.grep(e,function(e,t){return!!n.call(e,t,e)===i});if(n.nodeType)return L.grep(e,function(e){return e===n===i});if("string"==typeof n){var t=L.grep(e,function(e){return 1===e.nodeType});if(ce.test(n))return L.filter(n,t,!i);n=L.filter(n,t)}return L.grep(e,function(e){return 0<=L.inArray(e,n)===i})}function v(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function b(){return!0}function k(){return!1}function T(e,t,n){var i=t+"defer",r=t+"queue",o=t+"mark",a=L._data(e,i);a&&("queue"===n||!L._data(e,r))&&("mark"===n||!L._data(e,o))&&setTimeout(function(){!L._data(e,r)&&!L._data(e,o)&&(L.removeData(e,i,!0),a.fire())},0)}function _(e){for(var t in e)if(("data"!==t||!L.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function S(e,t,n){if(n===D&&1===e.nodeType){var i="data-"+t.replace(z,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:L.isNumeric(n)?+n:H.test(n)?L.parseJSON(n):n)}catch(O){}L.data(e,t,n)}else n=D}return n}function A(e){var t,n,i=O[e]={};for(t=0,n=(e=e.split(/\s+/)).length;t<n;t++)i[e[t]]=!0;return i}var F=j.document,M=j.navigator,$=j.location,L=function(){function t(){if(!f.isReady){try{F.documentElement.doScroll("left")}catch(j){return void setTimeout(t,1)}f.ready()}}var n,e,i,r,f=function(e,t){return new f.fn.init(e,t,n)},o=j.jQuery,a=j.$,s=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,l=/\S/,u=/^\s+/,c=/\s+$/,d=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,p=/^[\],:{}\s]*$/,h=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,g=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,m=/(?:^|:|,)(?:\s*\[)+/g,y=/(webkit)[ \/]([\w.]+)/,v=/(opera)(?:.*version)?[ \/]([\w.]+)/,b=/(msie) ([\w.]+)/,w=/(mozilla)(?:.*? rv:([\w.]+))?/,x=/-([a-z]|[0-9])/gi,k=/^-ms-/,T=function(e,t){return(t+"").toUpperCase()},C=M.userAgent,E=Object.prototype.toString,N=Object.prototype.hasOwnProperty,_=Array.prototype.push,S=Array.prototype.slice,A=String.prototype.trim,$=Array.prototype.indexOf,L={};return f.fn=f.prototype={constructor:f,init:function(e,t,n){var i,r,o,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!t&&F.body)return this.context=F,this[0]=F.body,this.selector=e,this.length=1,this;if("string"!=typeof e)return f.isFunction(e)?n.ready(e):(e.selector!==D&&(this.selector=e.selector,this.context=e.context),f.makeArray(e,this));if(!(i="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?s.exec(e):[null,e,null])||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1])return a=(t=t instanceof f?t[0]:t)?t.ownerDocument||t:F,(o=d.exec(e))?f.isPlainObject(t)?(e=[F.createElement(o[1])],f.fn.attr.call(e,t,!0)):e=[a.createElement(o[1])]:e=((o=f.buildFragment([i[1]],[a])).cacheable?f.clone(o.fragment):o.fragment).childNodes,f.merge(this,e);if((r=F.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return n.find(e);this.length=1,this[0]=r}return this.context=F,this.selector=e,this},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return S.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 i=this.constructor();return f.isArray(e)?_.apply(i,e):f.merge(i,e),i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return f.each(this,e,t)},ready:function(e){return f.bindReady(),i.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(S.apply(this,arguments),"slice",S.call(arguments).join(","))},map:function(n){return this.pushStack(f.map(this,function(e,t){return n.call(e,t,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:_,sort:[].sort,splice:[].splice},f.fn.init.prototype=f.fn,f.extend=f.fn.extend=function(e,t){var n,i,r,o,a,s,l=e||{},u=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=t||{},u=2),"object"!=typeof l&&!f.isFunction(l)&&(l={}),c===u&&(l=this,--u);u<c;u++)if(null!=(n=arguments[u]))for(i in n)r=l[i],l!==(o=n[i])&&(d&&o&&(f.isPlainObject(o)||(a=f.isArray(o)))?(a?(a=!1,s=r&&f.isArray(r)?r:[]):s=r&&f.isPlainObject(r)?r:{},l[i]=f.extend(d,s,o)):o!==D&&(l[i]=o));return l},f.extend({noConflict:function(e){return j.$===f&&(j.$=a),e&&j.jQuery===f&&(j.jQuery=o),f},isReady:!1,readyWait:1,holdReady:function(e){e?f.readyWait++:f.ready(!0)},ready:function(e){if(!0===e&&!--f.readyWait||!0!==e&&!f.isReady){if(!F.body)return setTimeout(f.ready,1);if((f.isReady=!0)!==e&&0<--f.readyWait)return;i.fireWith(F,[f]),f.fn.trigger&&f(F).trigger("ready").off("ready")}},bindReady:function(){if(!i){if(i=f.Callbacks("once memory"),"complete"===F.readyState)return setTimeout(f.ready,1);if(F.addEventListener)F.addEventListener("DOMContentLoaded",r,!1),j.addEventListener("load",f.ready,!1);else if(F.attachEvent){F.attachEvent("onreadystatechange",r),j.attachEvent("onload",f.ready);var e=!1;try{e=null==j.frameElement}catch(M){}F.documentElement.doScroll&&e&&t()}}},isFunction:function(e){return"function"===f.type(e)},isArray:Array.isArray||function(e){return"array"===f.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):L[E.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==f.type(e)||e.nodeType||f.isWindow(e))return!1;try{if(e.constructor&&!N.call(e,"constructor")&&!N.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(F){return!1}var t;for(t in e);return t===D||N.call(e,t)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(e){return"string"==typeof e&&e?(e=f.trim(e),j.JSON&&j.JSON.parse?j.JSON.parse(e):p.test(e.replace(h,"@").replace(g,"]").replace(m,""))?new Function("return "+e)():void f.error("Invalid JSON: "+e)):null},parseXML:function(e){if("string"!=typeof e||!e)return null;var t;try{j.DOMParser?t=(new DOMParser).parseFromString(e,"text/xml"):((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(a){t=D}return(!t||!t.documentElement||t.getElementsByTagName("parsererror").length)&&f.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&l.test(e)&&(j.execScript||function(e){j.eval.call(j,e)})(e)},camelCase:function(e){return e.replace(k,"ms-").replace(x,T)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,t,n){var i,r=0,o=e.length,a=o===D||f.isFunction(e);if(n)if(a){for(i in e)if(!1===t.apply(e[i],n))break}else for(;r<o&&!1!==t.apply(e[r++],n););else if(a){for(i in e)if(!1===t.call(e[i],i,e[i]))break}else for(;r<o&&!1!==t.call(e[r],r,e[r++]););return e},trim:A?function(e){return null==e?"":A.call(e)}:function(e){return null==e?"":(e+"").replace(u,"").replace(c,"")},makeArray:function(e,t){var n=t||[];if(null!=e){var i=f.type(e);null==e.length||"string"===i||"function"===i||"regexp"===i||f.isWindow(e)?_.call(n,e):f.merge(n,e)}return n},inArray:function(e,t,n){var i;if(t){if($)return $.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=e.length,i=0;if("number"==typeof t.length)for(var r=t.length;i<r;i++)e[n++]=t[i];else for(;t[i]!==D;)e[n++]=t[i++];return e.length=n,e},grep:function(e,t,n){var i=[];n=!!n;for(var r=0,o=e.length;r<o;r++)n!==!!t(e[r],r)&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=[],a=0,s=e.length;if(e instanceof f||s!==D&&"number"==typeof s&&(0<s&&e[0]&&e[s-1]||0===s||f.isArray(e)))for(;a<s;a++)null!=(i=t(e[a],a,n))&&(o[o.length]=i);else for(r in e)null!=(i=t(e[r],r,n))&&(o[o.length]=i);return o.concat.apply([],o)},guid:1,proxy:function(e,t){if("string"==typeof t){var n=e[t];t=e,e=n}if(!f.isFunction(e))return D;var i=S.call(arguments,2),r=function(){return e.apply(t,i.concat(S.call(arguments)))};return r.guid=e.guid=e.guid||r.guid||f.guid++,r},access:function(e,t,n,i,r,o,a){var s,l=null==n,u=0,c=e.length;if(n&&"object"==typeof n){for(u in n)f.access(e,t,u,n[u],1,o,i);r=1}else if(i!==D){if(s=a===D&&f.isFunction(i),l&&(s?(s=t,t=function(e,t,n){return s.call(f(e),n)}):(t.call(e,i),t=null)),t)for(;u<c;u++)t(e[u],n,s?i.call(e[u],u,t(e[u],n)):i,a);r=1}return r?e:l?t.call(e):c?t(e[0],n):o},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=y.exec(e)||v.exec(e)||b.exec(e)||e.indexOf("compatible")<0&&w.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){function n(e,t){return new n.fn.init(e,t)}f.extend(!0,n,this),n.superclass=this,n.fn=n.prototype=this(),(n.fn.constructor=n).sub=this.sub,n.fn.init=function(e,t){return t&&t instanceof f&&!(t instanceof n)&&(t=n(t)),f.fn.init.call(this,e,t,i)},n.fn.init.prototype=n.fn;var i=n(F);return n},browser:{}}),f.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){L["[object "+t+"]"]=t.toLowerCase()}),(e=f.uaMatch(C)).browser&&(f.browser[e.browser]=!0,f.browser.version=e.version),f.browser.webkit&&(f.browser.safari=!0),l.test("\xa0")&&(u=/^[\s\xA0]+/,c=/[\s\xA0]+$/),n=f(F),F.addEventListener?r=function(){F.removeEventListener("DOMContentLoaded",r,!1),f.ready()}:F.attachEvent&&(r=function(){"complete"===F.readyState&&(F.detachEvent("onreadystatechange",r),f.ready())}),f}(),O={};L.Callbacks=function(o){o=o?O[o]||A(o):{};var n,i,r,a,s,l,u=[],c=[],d=function(e){var t,n,i,r;for(t=0,n=e.length;t<n;t++)i=e[t],"array"===(r=L.type(i))?d(i):"function"===r&&(!o.unique||!p.has(i))&&u.push(i)},f=function(e,t){for(t=t||[],n=!o.memory||[e,t],r=i=!0,l=a||0,a=0,s=u.length;u&&l<s;l++)if(!1===u[l].apply(e,t)&&o.stopOnFalse){n=!0;break}r=!1,u&&(o.once?!0===n?p.disable():u=[]:c&&c.length&&(n=c.shift(),p.fireWith(n[0],n[1])))},p={add:function(){if(u){var e=u.length;d(arguments),r?s=u.length:n&&!0!==n&&(a=e,f(n[0],n[1]))}return this},remove:function(){if(u)for(var e=arguments,t=0,n=e.length;t<n;t++)for(var i=0;i<u.length&&(e[t]!==u[i]||(r&&i<=s&&(s--,i<=l&&l--),u.splice(i--,1),!o.unique));i++);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=c=n=D,this},disabled:function(){return!u},lock:function(){return c=D,(!n||!0===n)&&p.disable(),this},locked:function(){return!c},fireWith:function(e,t){return c&&(r?o.once||c.push([e,t]):(!o.once||!n)&&f(e,t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p};var P=[].slice;L.extend({Deferred:function(e){var t,n=L.Callbacks("once memory"),i=L.Callbacks("once memory"),r=L.Callbacks("memory"),o="pending",a={resolve:n,reject:i,notify:r},s={done:n.add,fail:i.add,progress:r.add,state:function(){return o},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){return l.done(e).fail(t).progress(n),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(e,t,n){return L.Deferred(function(o){L.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){var n,i=t[0],r=t[1];L.isFunction(i)?l[e](function(){(n=i.apply(this,arguments))&&L.isFunction(n.promise)?n.promise().then(o.resolve,o.reject,o.notify):o[r+"With"](this===l?o:this,[n])}):l[e](o[r])})}).promise()},promise:function(e){if(null==e)e=s;else for(var t in s)e[t]=s[t];return e}},l=s.promise({});for(t in a)l[t]=a[t].fire,l[t+"With"]=a[t].fireWith;return l.done(function(){o="resolved"},i.disable,r.lock).fail(function(){o="rejected"},n.disable,r.lock),e&&e.call(l,l),l},when:function(e){function t(t){return function(e){a[t]=1<arguments.length?P.call(arguments,0):e,l.notifyWith(u,a)}}function n(t){return function(e){i[t]=1<arguments.length?P.call(arguments,0):e,--s||l.resolveWith(l,i)}}var i=P.call(arguments,0),r=0,o=i.length,a=Array(o),s=o,l=o<=1&&e&&L.isFunction(e.promise)?e:L.Deferred(),u=l.promise();if(1<o){for(;r<o;r++)i[r]&&i[r].promise&&L.isFunction(i[r].promise)?i[r].promise().then(n(r),l.reject,t(r)):--s;s||l.resolveWith(l,i)}else l!==e&&l.resolveWith(l,o?[e]:[]);return u}}),L.support=function(){var p,e,t,n,i,r,o,h,a,s,g,m=F.createElement("div");F.documentElement;if(m.setAttribute("className","t"),m.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",e=m.getElementsByTagName("*"),t=m.getElementsByTagName("a")[0],!e||!e.length||!t)return{};i=(n=F.createElement("select")).appendChild(F.createElement("option")),r=m.getElementsByTagName("input")[0],p={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,checkOn:"on"===r.value,optSelected:i.selected,getSetAttribute:"t"!==m.className,enctype:!!F.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==F.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},L.boxModel=p.boxModel="CSS1Compat"===F.compatMode,r.checked=!0,p.noCloneChecked=r.cloneNode(!0).checked,n.disabled=!0,p.optDisabled=!i.disabled;try{delete m.test}catch(U){p.deleteExpando=!1}if(!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",function(){p.noCloneEvent=!1}),m.cloneNode(!0).fireEvent("onclick")),(r=F.createElement("input")).value="t",r.setAttribute("type","radio"),p.radioValue="t"===r.value,r.setAttribute("checked","checked"),r.setAttribute("name","t"),m.appendChild(r),(o=F.createDocumentFragment()).appendChild(m.lastChild),p.checkClone=o.cloneNode(!0).cloneNode(!0).lastChild.checked,p.appendChecked=r.checked,o.removeChild(r),o.appendChild(m),m.attachEvent)for(s in{submit:1,change:1,focusin:1})(g=(a="on"+s)in m)||(m.setAttribute(a,"return;"),g="function"==typeof m[a]),p[s+"Bubbles"]=g;return o.removeChild(m),o=n=i=m=r=null,L(function(){var e,t,n,i,r,o,a,s,l,u,c,d,f=F.getElementsByTagName("body")[0];!f||(a=1,c=(d="padding:0;margin:0;border:")+"0;visibility:hidden;",l="<div "+(s="style='"+(u="position:absolute;top:0;left:0;width:1px;height:1px;")+d+"5px solid #000;")+"display:block;'><div style='"+d+"0;display:block;overflow:hidden;'></div></div><table "+s+"' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(e=F.createElement("div")).style.cssText=c+"width:0;height:0;position:static;top:0;margin-top:"+a+"px",f.insertBefore(e,f.firstChild),m=F.createElement("div"),e.appendChild(m),m.innerHTML="<table><tr><td style='"+d+"0;display:none'></td><td>t</td></tr></table>",h=m.getElementsByTagName("td"),g=0===h[0].offsetHeight,h[0].style.display="",h[1].style.display="none",p.reliableHiddenOffsets=g&&0===h[0].offsetHeight,j.getComputedStyle&&(m.innerHTML="",(o=F.createElement("div")).style.width="0",o.style.marginRight="0",m.style.width="2px",m.appendChild(o),p.reliableMarginRight=0===(parseInt((j.getComputedStyle(o,null)||{marginRight:0}).marginRight,10)||0)),"undefined"!=typeof m.style.zoom&&(m.innerHTML="",m.style.width=m.style.padding="1px",m.style.border=0,m.style.overflow="hidden",m.style.display="inline",m.style.zoom=1,p.inlineBlockNeedsLayout=3===m.offsetWidth,m.style.display="block",m.style.overflow="visible",m.innerHTML="<div style='width:5px;'></div>",p.shrinkWrapBlocks=3!==m.offsetWidth),m.style.cssText=u+c,m.innerHTML=l,n=(t=m.firstChild).firstChild,i=t.nextSibling.firstChild.firstChild,r={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===i.offsetTop},n.style.position="fixed",n.style.top="20px",r.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",r.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,r.doesNotIncludeMarginInBodyOffset=f.offsetTop!==a,j.getComputedStyle&&(m.style.marginTop="1%",p.pixelMargin="1%"!==(j.getComputedStyle(m,null)||{marginTop:0}).marginTop),"undefined"!=typeof e.style.zoom&&(e.style.zoom=1),f.removeChild(e),o=m=e=null,L.extend(p,r))}),p}();var H=/^(?:\{.*\}|\[.*\])$/,z=/([A-Z])/g;L.extend({cache:{},uuid:0,expando:"jQuery"+(L.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?L.cache[e[L.expando]]:e[L.expando])&&!_(e)},data:function(e,t,n,i){if(L.acceptData(e)){var r,o,a,s=L.expando,l="string"==typeof t,u=e.nodeType,c=u?L.cache:e,d=u?e[s]:e[s]&&s,f="events"===t;if((!d||!c[d]||!f&&!i&&!c[d].data)&&l&&n===D)return;return d||(u?e[s]=d=++L.uuid:d=s),c[d]||(c[d]={},u||(c[d].toJSON=L.noop)),"object"!=typeof t&&"function"!=typeof t||(i?c[d]=L.extend(c[d],t):c[d].data=L.extend(c[d].data,t)),r=o=c[d],i||(o.data||(o.data={}),o=o.data),n!==D&&(o[L.camelCase(t)]=n),f&&!o[t]?r.events:(l?null==(a=o[t])&&(a=o[L.camelCase(t)]):a=o,a)}},removeData:function(e,t,n){if(L.acceptData(e)){var i,r,o,a=L.expando,s=e.nodeType,l=s?L.cache:e,u=s?e[a]:a;if(!l[u])return;if(t&&(i=n?l[u]:l[u].data)){L.isArray(t)||(t in i?t=[t]:t=(t=L.camelCase(t))in i?[t]:t.split(" "));for(r=0,o=t.length;r<o;r++)delete i[t[r]];if(!(n?_:L.isEmptyObject)(i))return}if(!n&&(delete l[u].data,!_(l[u])))return;L.support.deleteExpando||!l.setInterval?delete l[u]:l[u]=null,s&&(L.support.deleteExpando?delete e[a]:e.removeAttribute?e.removeAttribute(a):e[a]=null)}},_data:function(e,t,n){return L.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=L.noData[e.nodeName.toLowerCase()];if(t)return!0!==t&&e.getAttribute("classid")===t}return!0}}),L.fn.extend({data:function(n,e){var i,r,t,o,a,s=this[0],l=0,u=null;if(n!==D)return"object"==typeof n?this.each(function(){L.data(this,n)}):((i=n.split(".",2))[1]=i[1]?"."+i[1]:"",r=i[1]+"!",L.access(this,function(t){if(t===D)return(u=this.triggerHandler("getData"+r,[i[0]]))===D&&s&&(u=L.data(s,n),u=S(s,n,u)),u===D&&i[1]?this.data(i[0]):u;i[1]=t,this.each(function(){var e=L(this);e.triggerHandler("setData"+r,i),L.data(this,n,t),e.triggerHandler("changeData"+r,i)})},null,e,1<arguments.length,null,!1));if(this.length&&(u=L.data(s),1===s.nodeType&&!L._data(s,"parsedAttrs"))){for(a=(t=s.attributes).length;l<a;l++)0===(o=t[l].name).indexOf("data-")&&(o=L.camelCase(o.substring(5)),S(s,o,u[o]));L._data(s,"parsedAttrs",!0)}return u},removeData:function(e){return this.each(function(){L.removeData(this,e)})}}),L.extend({_mark:function(e,t){e&&(t=(t||"fx")+"mark",L._data(e,t,(L._data(e,t)||0)+1))},_unmark:function(e,t,n){if(!0!==e&&(n=t,t=e,e=!1),t){var i=(n=n||"fx")+"mark",r=e?0:(L._data(t,i)||1)-1;r?L._data(t,i,r):(L.removeData(t,i,!0),T(t,n,"mark"))}},queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=L._data(e,t),n&&(!i||L.isArray(n)?i=L._data(e,t,L.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=L.queue(e,t),i=n.shift(),r={};"inprogress"===i&&(i=n.shift()),i&&("fx"===t&&n.unshift("inprogress"),L._data(e,t+".run",r),i.call(e,function(){L.dequeue(e,t)},r)),n.length||(L.removeData(e,t+"queue "+t+".run",!0),T(e,t,"queue"))}}),L.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?L.queue(this[0],t):n===D?this:this.each(function(){var e=L.queue(this,t,n);"fx"===t&&"inprogress"!==e[0]&&L.dequeue(this,t)})},dequeue:function(e){return this.each(function(){L.dequeue(this,e)})},delay:function(i,e){return i=L.fx&&L.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=setTimeout(e,i);t.stop=function(){clearTimeout(n)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--s||r.resolveWith(o,[o])}"string"!=typeof e&&(t=e,e=D),e=e||"fx";for(var i,r=L.Deferred(),o=this,a=o.length,s=1,l=e+"defer",u=e+"queue",c=e+"mark";a--;)(i=L.data(o[a],l,D,!0)||(L.data(o[a],u,D,!0)||L.data(o[a],c,D,!0))&&L.data(o[a],l,L.Callbacks("once memory"),!0))&&(s++,i.add(n));return n(),r.promise(t)}});var q,B,R,I=/[\n\t\r]/g,W=/\s+/,X=/\r/g,U=/^(?:button|input)$/i,K=/^(?:button|input|object|select|textarea)$/i,V=/^a(?:rea)?$/i,G=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=L.support.getSetAttribute;L.fn.extend({attr:function(e,t){return L.access(this,L.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){L.removeAttr(this,e)})},prop:function(e,t){return L.access(this,L.prop,e,t,1<arguments.length)},removeProp:function(e){return e=L.propFix[e]||e,this.each(function(){try{this[e]=D,delete this[e]}catch(F){}})},addClass:function(t){var e,n,i,r,o,a,s;if(L.isFunction(t))return this.each(function(e){L(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(W),n=0,i=this.length;n<i;n++)if(1===(r=this[n]).nodeType)if(r.className||1!==e.length){for(o=" "+r.className+" ",a=0,s=e.length;a<s;a++)~o.indexOf(" "+e[a]+" ")||(o+=e[a]+" ");r.className=L.trim(o)}else r.className=t;return this},removeClass:function(t){var e,n,i,r,o,a,s;if(L.isFunction(t))return this.each(function(e){L(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===D)for(e=(t||"").split(W),n=0,i=this.length;n<i;n++)if(1===(r=this[n]).nodeType&&r.className)if(t){for(o=(" "+r.className+" ").replace(I," "),a=0,s=e.length;a<s;a++)o=o.replace(" "+e[a]+" "," ");r.className=L.trim(o)}else r.className="";return this},toggleClass:function(o,a){var s=typeof o,l="boolean"==typeof a;return L.isFunction(o)?this.each(function(e){L(this).toggleClass(o.call(this,e,this.className,a),a)}):this.each(function(){if("string"===s)for(var e,t=0,n=L(this),i=a,r=o.split(W);e=r[t++];)i=l?i:!n.hasClass(e),n[i?"addClass":"removeClass"](e);else"undefined"!==s&&"boolean"!==s||(this.className&&L._data(this,"__className__",this.className),this.className=this.className||!1===o?"":L._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&-1<(" "+this[n].className+" ").replace(I," ").indexOf(t))return!0;return!1},val:function(i){var r,e,o,t=this[0];return arguments.length?(o=L.isFunction(i),this.each(function(e){var t,n=L(this);1===this.nodeType&&(null==(t=o?i.call(this,e,n.val()):i)?t="":"number"==typeof t?t+="":L.isArray(t)&&(t=L.map(t,function(e){return null==e?"":e+""})),(r=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&r.set(this,t,"value")!==D||(this.value=t))})):t?(r=L.valHooks[t.type]||L.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&(e=r.get(t,"value"))!==D?e:"string"==typeof(e=t.value)?e.replace(X,""):null==e?"":e:void 0}}),L.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,i,r,o=e.selectedIndex,a=[],s=e.options,l="select-one"===e.type;if(o<0)return null;for(n=l?o:0,i=l?o+1:s.length;n<i;n++)if((r=s[n]).selected&&(L.support.optDisabled?!r.disabled:null===r.getAttribute("disabled"))&&(!r.parentNode.disabled||!L.nodeName(r.parentNode,"optgroup"))){if(t=L(r).val(),l)return t;a.push(t)}return l&&!a.length&&s.length?L(s[o]).val():a},set:function(e,t){var n=L.makeArray(t);return L(e).find("option").each(function(){this.selected=0<=L.inArray(L(this).val(),n)}),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,t,n,i){var r,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return i&&t in L.attrFn?L(e)[t](n):"undefined"==typeof e.getAttribute?L.prop(e,t,n):((a=1!==s||!L.isXMLDoc(e))&&(t=t.toLowerCase(),o=L.attrHooks[t]||(G.test(t)?B:q)),n!==D?null===n?void L.removeAttr(e,t):o&&"set"in o&&a&&(r=o.set(e,n,t))!==D?r:(e.setAttribute(t,""+n),n):o&&"get"in o&&a&&null!==(r=o.get(e,t))?r:null===(r=e.getAttribute(t))?D:r)},removeAttr:function(e,t){var n,i,r,o,a,s=0;if(t&&1===e.nodeType)for(o=(i=t.toLowerCase().split(W)).length;s<o;s++)(r=i[s])&&(n=L.propFix[r]||r,(a=G.test(r))||L.attr(e,r,""),e.removeAttribute(J?r:n),a&&n in e&&(e[n]=!1))},attrHooks:{type:{set:function(e,t){if(U.test(e.nodeName)&&e.parentNode)L.error("type property can't be changed");else if(!L.support.radioValue&&"radio"===t&&L.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}},value:{get:function(e,t){return q&&L.nodeName(e,"button")?q.get(e,t):t in e?e.value:null},set:function(e,t,n){if(q&&L.nodeName(e,"button"))return q.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,t,n){var i,r,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return(1!==o||!L.isXMLDoc(e))&&(t=L.propFix[t]||t,r=L.propHooks[t]),n!==D?r&&"set"in r&&(i=r.set(e,n,t))!==D?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=e.getAttributeNode("tabindex");return t&&t.specified?parseInt(t.value,10):K.test(e.nodeName)||V.test(e.nodeName)&&e.href?0:D}}}}),
2
2
  L.attrHooks.tabindex=L.propHooks.tabIndex,B={get:function(e,t){var n,i=L.prop(e,t);return!0===i||"boolean"!=typeof i&&(n=e.getAttributeNode(t))&&!1!==n.nodeValue?t.toLowerCase():D},set:function(e,t,n){var i;return!1===t?L.removeAttr(e,n):((i=L.propFix[n]||n)in e&&(e[i]=!0),e.setAttribute(n,n.toLowerCase())),n}},J||(R={name:!0,id:!0,coords:!0},q=L.valHooks.button={get:function(e,t){var n;return(n=e.getAttributeNode(t))&&(R[t]?""!==n.nodeValue:n.specified)?n.nodeValue:D},set:function(e,t,n){var i=e.getAttributeNode(n);return i||(i=F.createAttribute(n),e.setAttributeNode(i)),i.nodeValue=t+""}},L.attrHooks.tabindex.set=q.set,L.each(["width","height"],function(e,n){L.attrHooks[n]=L.extend(L.attrHooks[n],{set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}})}),L.attrHooks.contenteditable={get:q.get,set:function(e,t,n){""===t&&(t="false"),q.set(e,t,n)}}),L.support.hrefNormalized||L.each(["href","src","width","height"],function(e,n){L.attrHooks[n]=L.extend(L.attrHooks[n],{get:function(e){var t=e.getAttribute(n,2);return null===t?D:t}})}),L.support.style||(L.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||D},set:function(e,t){return e.style.cssText=""+t}}),L.support.optSelected||(L.propHooks.selected=L.extend(L.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),L.support.enctype||(L.propFix.enctype="encoding"),L.support.checkOn||L.each(["radio","checkbox"],function(){L.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),L.each(["radio","checkbox"],function(){L.valHooks[this]=L.extend(L.valHooks[this],{set:function(e,t){if(L.isArray(t))return e.checked=0<=L.inArray(L(e).val(),t)}})});var Y=/^(?:textarea|input|select)$/i,Q=/^([^\.]*)?(?:\.(.+))?$/,Z=/(?:^|\s)hover(\.\S+)?\b/,ee=/^key/,te=/^(?:mouse|contextmenu)|click/,ne=/^(?:focusinfocus|focusoutblur)$/,ie=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,re=function(e){var t=ie.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 L.event.special.hover?e:e.replace(Z,"mouseenter$1 mouseleave$1")};L.event={add:function(e,t,n,i,r){var o,a,s,l,u,c,d,f,p,h,g;if(3!==e.nodeType&&8!==e.nodeType&&t&&n&&(o=L._data(e))){for(n.handler&&(n=(p=n).handler,r=p.selector),n.guid||(n.guid=L.guid++),(s=o.events)||(o.events=s={}),(a=o.handle)||(o.handle=a=function(e){return void 0===L||e&&L.event.triggered===e.type?D:L.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=L.trim(ae(t)).split(" "),l=0;l<t.length;l++)c=(u=Q.exec(t[l])||[])[1],d=(u[2]||"").split(".").sort(),g=L.event.special[c]||{},c=(r?g.delegateType:g.bindType)||c,g=L.event.special[c]||{},f=L.extend({type:c,origType:u[1],data:i,handler:n,guid:n.guid,selector:r,quick:r&&re(r),namespace:d.join(".")},p),(h=s[c])||((h=s[c]=[]).delegateCount=0,g.setup&&!1!==g.setup.call(e,i,d,a)||(e.addEventListener?e.addEventListener(c,a,!1):e.attachEvent&&e.attachEvent("on"+c,a))),g.add&&(g.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,f):h.push(f),L.event.global[c]=!0;e=null}},global:{},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,f,p,h,g,m,y=L.hasData(e)&&L._data(e);if(y&&(f=y.events)){for(t=L.trim(ae(t||"")).split(" "),o=0;o<t.length;o++)if(s=l=(a=Q.exec(t[o])||[])[1],u=a[2],s){for(p=L.event.special[s]||{},c=(g=f[s=(i?p.delegateType:p.bindType)||s]||[]).length,u=u?new RegExp("(^|\\.)"+u.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=0;d<g.length;d++)m=g[d],(r||l===m.origType)&&(!n||n.guid===m.guid)&&(!u||u.test(m.namespace))&&(!i||i===m.selector||"**"===i&&m.selector)&&(g.splice(d--,1),m.selector&&g.delegateCount--,p.remove&&p.remove.call(e,m));0===g.length&&c!==g.length&&((!p.teardown||!1===p.teardown.call(e,u))&&L.removeEvent(e,s,y.handle),delete f[s])}else for(s in f)L.event.remove(e,s+t[o],n,i,!0);L.isEmptyObject(f)&&((h=y.handle)&&(h.elem=null),L.removeData(e,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(e,t,n,i){if(!n||3!==n.nodeType&&8!==n.nodeType){var r,o,a,s,l,u,c,d,f,p,h=e.type||e,g=[];if(ne.test(h+L.event.triggered))return;if(0<=h.indexOf("!")&&(h=h.slice(0,-1),o=!0),0<=h.indexOf(".")&&(h=(g=h.split(".")).shift(),g.sort()),(!n||L.event.customEvent[h])&&!L.event.global[h])return;if((e="object"==typeof e?e[L.expando]?e:new L.Event(h,e):new L.Event(h)).type=h,e.isTrigger=!0,e.exclusive=o,e.namespace=g.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,u=h.indexOf(":")<0?"on"+h:"",!n){for(a in r=L.cache)r[a].events&&r[a].events[h]&&L.event.trigger(e,t,r[a].handle.elem,!0);return}if(e.result=D,e.target||(e.target=n),(t=null!=t?L.makeArray(t):[]).unshift(e),(c=L.event.special[h]||{}).trigger&&!1===c.trigger.apply(n,t))return;if(f=[[n,c.bindType||h]],!i&&!c.noBubble&&!L.isWindow(n)){for(p=c.delegateType||h,s=ne.test(p+h)?n:n.parentNode,l=null;s;s=s.parentNode)f.push([s,p]),l=s;l&&l===n.ownerDocument&&f.push([l.defaultView||l.parentWindow||j,p])}for(a=0;a<f.length&&!e.isPropagationStopped();a++)s=f[a][0],e.type=f[a][1],(d=(L._data(s,"events")||{})[e.type]&&L._data(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&L.acceptData(s)&&!1===d.apply(s,t)&&e.preventDefault();return e.type=h,!i&&!e.isDefaultPrevented()&&(!c._default||!1===c._default.apply(n.ownerDocument,t))&&("click"!==h||!L.nodeName(n,"a"))&&L.acceptData(n)&&u&&n[h]&&("focus"!==h&&"blur"!==h||0!==e.target.offsetWidth)&&!L.isWindow(n)&&((l=n[u])&&(n[u]=null),n[L.event.triggered=h](),L.event.triggered=D,l&&(n[u]=l)),e.result}},dispatch:function(e){e=L.event.fix(e||j.event);var t,n,i,r,o,a,s,l,u,c,d=(L._data(this,"events")||{})[e.type]||[],f=d.delegateCount,p=[].slice.call(arguments,0),h=!e.exclusive&&!e.namespace,g=L.event.special[e.type]||{},m=[];if((p[0]=e).delegateTarget=this,!g.preDispatch||!1!==g.preDispatch.call(this,e)){if(f&&(!e.button||"click"!==e.type))for((r=L(this)).context=this.ownerDocument||this,i=e.target;i!=this;i=i.parentNode||this)if(!0!==i.disabled){for(a={},l=[],r[0]=i,t=0;t<f;t++)a[c=(u=d[t]).selector]===D&&(a[c]=u.quick?oe(i,u.quick):r.is(c)),a[c]&&l.push(u);l.length&&m.push({elem:i,matches:l})}for(d.length>f&&m.push({elem:this,matches:d.slice(f)}),t=0;t<m.length&&!e.isPropagationStopped();t++)for(s=m[t],e.currentTarget=s.elem,n=0;n<s.matches.length&&!e.isImmediatePropagationStopped();n++)u=s.matches[n],(h||!e.namespace&&!u.namespace||e.namespace_re&&e.namespace_re.test(u.namespace))&&(e.data=u.data,e.handleObj=u,(o=((L.event.special[u.origType]||{}).handle||u.handler).apply(s.elem,p))!==D&&(!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation())));return g.postDispatch&&g.postDispatch.call(this,e),e.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,t){var n,i,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(n=e.target.ownerDocument||F).documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),!e.which&&o!==D&&(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[L.expando])return e;var t,n,i=e,r=L.event.fixHooks[e.type]||{},o=r.props?this.props.concat(r.props):this.props;for(e=L.Event(i),t=o.length;t;)e[n=o[--t]]=i[n];return e.target||(e.target=i.srcElement||F),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey===D&&(e.metaKey=e.ctrlKey),r.filter?r.filter(e,i):e},special:{ready:{setup:L.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(e,t,n){L.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,i){var r=L.extend(new L.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?L.event.trigger(r,null,t):L.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},L.event.handle=L.event.dispatch,L.removeEvent=F.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent("on"+t,n)},L.Event=function(e,t){if(!(this instanceof L.Event))return new L.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||!1===e.returnValue||e.getPreventDefault&&e.getPreventDefault()?b:k):this.type=e,t&&L.extend(this,t),this.timeStamp=e&&e.timeStamp||L.now(),this[L.expando]=!0},L.Event.prototype={preventDefault:function(){this.isDefaultPrevented=b;var e=this.originalEvent;!e||(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=b;var e=this.originalEvent;!e||(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=b,this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k},L.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,o){L.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=this,i=e.relatedTarget,r=e.handleObj;r.selector;return i&&(i===n||L.contains(n,i))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=o),t}}}),L.support.submitBubbles||(L.event.special.submit={setup:function(){if(L.nodeName(this,"form"))return!1;L.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=L.nodeName(t,"input")||L.nodeName(t,"button")?t.form:D;n&&!n._submit_attached&&(L.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),n._submit_attached=!0)})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&L.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(L.nodeName(this,"form"))return!1;L.event.remove(this,"._submit")}}),L.support.changeBubbles||(L.event.special.change={setup:function(){if(Y.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(L.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),L.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,L.event.simulate("change",this,e,!0))})),!1;L.event.add(this,"beforeactivate._change",function(e){var t=e.target;Y.test(t.nodeName)&&!t._change_attached&&(L.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&L.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 L.event.remove(this,"._change"),Y.test(this.nodeName)}}),L.support.focusinBubbles||L.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,i=function(e){L.event.simulate(t,e.target,L.event.fix(e),!0)};L.event.special[t]={setup:function(){0==n++&&F.addEventListener(e,i,!0)},teardown:function(){0==--n&&F.removeEventListener(e,i,!0)}}}),L.fn.extend({on:function(e,t,n,i,r){var o,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=D),e)this.on(a,t,n,e[a],r);return this}if(null==n&&null==i?(i=t,n=t=D):null==i&&("string"==typeof t?(i=n,n=D):(i=n,n=t,t=D)),!1===i)i=k;else if(!i)return this;return 1===r&&(o=i,(i=function(e){return L().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=L.guid++)),this.each(function(){L.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){if(e&&e.preventDefault&&e.handleObj){var i=e.handleObj;return L(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this}if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=D),!1===n&&(n=k),this.each(function(){L.event.remove(this,e,n,t)});for(var r in e)this.off(r,t,e[r]);return this},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 L(this.context).on(e,this.selector,t,n),this},die:function(e,t){return L(this.context).off(e,this.selector||"**",t),this},delegate:function(e,t,n,i){return this.on(t,e,n,i)},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(){L.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return L.event.trigger(e,t,this[0],!0)},toggle:function(n){var i=arguments,e=n.guid||L.guid++,r=0,t=function(e){var t=(L._data(this,"lastToggle"+n.guid)||0)%r;return L._data(this,"lastToggle"+n.guid,t+1),e.preventDefault(),i[t].apply(this,arguments)||!1};for(t.guid=e;r<i.length;)i[r++].guid=e;return this.click(t)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),L.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,n){L.fn[n]=function(e,t){return null==t&&(t=e,e=null),0<arguments.length?this.on(n,null,e,t):this.trigger(n)},L.attrFn&&(L.attrFn[n]=!0),ee.test(n)&&(L.event.fixHooks[n]=L.event.keyHooks),te.test(n)&&(L.event.fixHooks[n]=L.event.mouseHooks)}),function(){function a(e,t,n,i,r,o){for(var a=0,s=i.length;a<s;a++){var l=i[a];if(l){var u=!1;for(l=l[e];l;){if(l[c]===n){u=i[l.sizset];break}if(1===l.nodeType)if(o||(l[c]=n,l.sizset=a),"string"!=typeof t){if(l===t){u=!0;break}}else if(0<b.filter(t,[l]).length){u=l;break}l=l[e]}i[a]=u}}}function s(e,t,n,i,r,o){for(var a=0,s=i.length;a<s;a++){var l=i[a];if(l){var u=!1;for(l=l[e];l;){if(l[c]===n){u=i[l.sizset];break}if(1===l.nodeType&&!o&&(l[c]=n,l.sizset=a),l.nodeName.toLowerCase()===t){u=l;break}l=l[e]}i[a]=u}}}var y=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,c="sizcache"+(Math.random()+"").replace(".",""),l=0,v=Object.prototype.toString,d=!1,n=!0,p=/\\/g,o=/\r\n/g,u=/\W/;[0,0].sort(function(){return n=!1,0});var b=function(e,t,n,i){n=n||[];var r=t=t||F;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var o,a,s,l,u,c,d,f,p=!0,h=b.isXML(t),g=[],m=e;do{if(y.exec(""),(o=y.exec(m))&&(m=o[3],g.push(o[1]),o[2])){l=o[3];break}}while(o);if(1<g.length&&x.exec(e))if(2===g.length&&w.relative[g[0]])a=C(g[0]+g[1],t,i);else for(a=w.relative[g[0]]?[t]:b(g.shift(),t);g.length;)e=g.shift(),w.relative[e]&&(e+=g.shift()),a=C(e,a,i);else if(!i&&1<g.length&&9===t.nodeType&&!h&&w.match.ID.test(g[0])&&!w.match.ID.test(g[g.length-1])&&(t=(u=b.find(g.shift(),t,h)).expr?b.filter(u.expr,u.set)[0]:u.set[0]),t)for(a=(u=i?{expr:g.pop(),set:T(i)}:b.find(g.pop(),1!==g.length||"~"!==g[0]&&"+"!==g[0]||!t.parentNode?t:t.parentNode,h)).expr?b.filter(u.expr,u.set):u.set,0<g.length?s=T(a):p=!1;g.length;)d=c=g.pop(),w.relative[c]?d=g.pop():c="",null==d&&(d=t),w.relative[c](s,d,h);else s=g=[];if(s||(s=a),s||b.error(c||e),"[object Array]"===v.call(s))if(p)if(t&&1===t.nodeType)for(f=0;null!=s[f];f++)s[f]&&(!0===s[f]||1===s[f].nodeType&&b.contains(t,s[f]))&&n.push(a[f]);else for(f=0;null!=s[f];f++)s[f]&&1===s[f].nodeType&&n.push(a[f]);else n.push.apply(n,s);else T(s,n);return l&&(b(l,r,n,i),b.uniqueSort(n)),n};b.uniqueSort=function(e){if(i&&(d=n,e.sort(i),d))for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1);return e},b.matches=function(e,t){return b(e,null,null,t)},b.matchesSelector=function(e,t){return 0<b(t,null,null,[e]).length},b.find=function(e,t,n){var i,r,o,a,s,l;if(!e)return[];for(r=0,o=w.order.length;r<o;r++)if(s=w.order[r],(a=w.leftMatch[s].exec(e))&&(l=a[1],a.splice(1,1),"\\"!==l.substr(l.length-1)&&(a[1]=(a[1]||"").replace(p,""),null!=(i=w.find[s](a,t,n))))){e=e.replace(w.match[s],"");break}return i||(i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):[]),{set:i,expr:e}},b.filter=function(e,t,n,i){for(var r,o,a,s,l,u,c,d,f,p=e,h=[],g=t,m=t&&t[0]&&b.isXML(t[0]);e&&t.length;){for(a in w.filter)if(null!=(r=w.leftMatch[a].exec(e))&&r[2]){if(u=w.filter[a],c=r[1],o=!1,r.splice(1,1),"\\"===c.substr(c.length-1))continue;if(g===h&&(h=[]),w.preFilter[a])if(r=w.preFilter[a](r,g,n,h,i,m)){if(!0===r)continue}else o=s=!0;if(r)for(d=0;null!=(l=g[d]);d++)l&&(f=i^(s=u(l,r,d,g)),n&&null!=s?f?o=!0:g[d]=!1:f&&(h.push(l),o=!0));if(s!==D){if(n||(g=h),e=e.replace(w.match[a],""),!o)return[];break}}if(e===p){if(null!=o)break;b.error(e)}p=e}return g},b.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var f=b.getText=function(e){var t,n,i=e.nodeType,r="";if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;if("string"==typeof e.innerText)return e.innerText.replace(o,"");for(e=e.firstChild;e;e=e.nextSibling)r+=f(e)}else if(3===i||4===i)return e.nodeValue}else for(t=0;n=e[t];t++)8!==n.nodeType&&(r+=f(n));return r},w=b.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,i=n&&!u.test(t),r=n&&!i;i&&(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]=r||o&&o.nodeName.toLowerCase()===t?o||!1:o===t}r&&b.filter(t,e,!0)},">":function(e,t){var n,i="string"==typeof t,r=0,o=e.length;if(i&&!u.test(t)){for(t=t.toLowerCase();r<o;r++)if(n=e[r]){var a=n.parentNode;e[r]=a.nodeName.toLowerCase()===t&&a}}else{for(;r<o;r++)(n=e[r])&&(e[r]=i?n.parentNode:n.parentNode===t);i&&b.filter(t,e,!0)}},"":function(e,t,n){var i,r=l++,o=a;"string"==typeof t&&!u.test(t)&&(i=t=t.toLowerCase(),o=s),o("parentNode",t,r,e,i,n)},"~":function(e,t,n){var i,r=l++,o=a;"string"==typeof t&&!u.test(t)&&(i=t=t.toLowerCase(),o=s),o("previousSibling",t,r,e,i,n)}},find:{ID:function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var i=t.getElementById(e[1]);return i&&i.parentNode?[i]:[]}},NAME:function(e,t){if("undefined"!=typeof t.getElementsByName){for(var n=[],i=t.getElementsByName(e[1]),r=0,o=i.length;r<o;r++)i[r].getAttribute("name")===e[1]&&n.push(i[r]);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,i,r,o){if(e=" "+e[1].replace(p,"")+" ",o)return e;for(var a,s=0;null!=(a=t[s]);s++)a&&(r^(a.className&&0<=(" "+a.className+" ").replace(/[\t\n\r]/g," ").indexOf(e))?n||i.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(p,"")},TAG:function(e){return e[1].replace(p,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||b.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]&&b.error(e[0]);return e[0]=l++,e},ATTR:function(e,t,n,i,r,o){var a=e[1]=e[1].replace(p,"");return!o&&w.attrMap[a]&&(e[1]=w.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(p,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,i,r){if("not"===e[1]){if(!(1<(y.exec(e[3])||"").length||/^\w/.test(e[3]))){var o=b.filter(e[3],t,n,!0^r);return n||i.push.apply(i,o),!1}e[3]=b(e[3],null,null,t)}else if(w.match.POS.test(e[0])||w.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!!b(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,i){return t===i.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,i){var r=t[1],o=w.filters[r];if(o)return o(e,n,t,i);if("contains"===r)return 0<=(e.textContent||e.innerText||f([e])||"").indexOf(t[3]);if("not"===r){for(var a=t[3],s=0,l=a.length;s<l;s++)if(a[s]===e)return!1;return!0}b.error(r)},CHILD:function(e,t){var n,i,r,o,a,s,l=t[1],u=e;switch(l){case"only":case"first":for(;u=u.previousSibling;)if(1===u.nodeType)return!1;if("first"===l)return!0;u=e;case"last":for(;u=u.nextSibling;)if(1===u.nodeType)return!1;return!0;case"nth":if(n=t[2],i=t[3],1===n&&0===i)return!0;if(r=t[0],(o=e.parentNode)&&(o[c]!==r||!e.nodeIndex)){for(a=0,u=o.firstChild;u;u=u.nextSibling)1===u.nodeType&&(u.nodeIndex=++a);o[c]=r}return s=e.nodeIndex-i,0===n?0===s:s%n==0&&0<=s/n}},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-1<(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)},ATTR:function(e,t){var n=t[1],i=b.attr?b.attr(e,n):w.attrHandle[n]?w.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),r=i+"",o=t[2],a=t[4];return null==i?"!="===o:!o&&b.attr?null!=i:"="===o?r===a:"*="===o?0<=r.indexOf(a):"~="===o?0<=(" "+r+" ").indexOf(a):a?"!="===o?r!==a:"^="===o?0===r.indexOf(a):"$="===o?r.substr(r.length-a.length)===a:"|="===o&&(r===a||r.substr(0,a.length+1)===a+"-"):r&&!1!==i},POS:function(e,t,n,i){var r=t[2],o=w.setFilters[r];if(o)return o(e,n,t,i)}}},x=w.match.POS,e=function(e,t){return"\\"+(t-0+1)};for(var h in w.match)w.match[h]=new RegExp(w.match[h].source+/(?![^\[]*\])(?![^\(]*\))/.source),w.leftMatch[h]=new RegExp(/(^(?:.|\r|\n)*?)/.source+w.match[h].source.replace(/\\(\d+)/g,e));w.match.globalPOS=x;var i,g,t,r,m,k,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(F.documentElement.childNodes,0)[0].nodeType}catch(V){T=function(e,t){var n=0,i=t||[];if("[object Array]"===v.call(e))Array.prototype.push.apply(i,e);else if("number"==typeof e.length)for(var r=e.length;n<r;n++)i.push(e[n]);else for(;e[n];n++)i.push(e[n]);return i}}F.documentElement.compareDocumentPosition?i=function(e,t){return e===t?(d=!0,0):e.compareDocumentPosition&&t.compareDocumentPosition?4&e.compareDocumentPosition(t)?-1:1:e.compareDocumentPosition?-1:1}:(i=function(e,t){if(e===t)return d=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,i,r=[],o=[],a=e.parentNode,s=t.parentNode,l=a;if(a===s)return g(e,t);if(!a)return-1;if(!s)return 1;for(;l;)r.unshift(l),l=l.parentNode;for(l=s;l;)o.unshift(l),l=l.parentNode;n=r.length,i=o.length;for(var u=0;u<n&&u<i;u++)if(r[u]!==o[u])return g(r[u],o[u]);return u===n?g(e,o[u],-1):g(r[u],t,1)},g=function(e,t,n){if(e===t)return n;for(var i=e.nextSibling;i;){if(i===t)return-1;i=i.nextSibling}return 1}),r=F.createElement("div"),m="script"+(new Date).getTime(),k=F.documentElement,r.innerHTML="<a name='"+m+"'/>",k.insertBefore(r,k.firstChild),F.getElementById(m)&&(w.find.ID=function(e,t,n){if("undefined"!=typeof t.getElementById&&!n){var i=t.getElementById(e[1]);return i?i.id===e[1]||"undefined"!=typeof i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]:D:[]}},w.filter.ID=function(e,t){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),k.removeChild(r),k=r=null,(t=F.createElement("div")).appendChild(F.createComment("")),0<t.getElementsByTagName("*").length&&(w.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var i=[],r=0;n[r];r++)1===n[r].nodeType&&i.push(n[r]);n=i}return n}),t.innerHTML="<a href='#'></a>",t.firstChild&&"undefined"!=typeof t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(w.attrHandle.href=function(e){return e.getAttribute("href",2)}),t=null,F.querySelectorAll&&function(){var d=b,e=F.createElement("div"),f="__sizzle__";if(e.innerHTML="<p class='TEST'></p>",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){for(var t in b=function(e,t,n,i){if(t=t||F,!i&&!b.isXML(t)){var r=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(r&&(1===t.nodeType||9===t.nodeType)){if(r[1])return T(t.getElementsByTagName(e),n);if(r[2]&&w.find.CLASS&&t.getElementsByClassName)return T(t.getElementsByClassName(r[2]),n)}if(9===t.nodeType){if("body"===e&&t.body)return T([t.body],n);if(r&&r[3]){var o=t.getElementById(r[3]);if(!o||!o.parentNode)return T([],n);if(o.id===r[3])return T([o],n)}try{return T(t.querySelectorAll(e),n)}catch(p){}}else if(1===t.nodeType&&"object"!==t.nodeName.toLowerCase()){var a=t,s=t.getAttribute("id"),l=s||f,u=t.parentNode,c=/^\s*[+~]/.test(e);s?l=l.replace(/'/g,"\\$&"):t.setAttribute("id",l),c&&u&&(t=t.parentNode);try{if(!c||u)return T(t.querySelectorAll("[id='"+l+"'] "+e),n)}catch(h){}finally{s||a.removeAttribute("id")}}}return d(e,t,n,i)},d)b[t]=d[t];e=null}}(),function(){var e=F.documentElement,i=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(i){var r=!i.call(F.createElement("div"),"div"),o=!1;try{i.call(F.documentElement,"[test!='']:sizzle")}catch(L){o=!0}b.matchesSelector=function(e,t){if(t=t.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!b.isXML(e))try{if(o||!w.match.PSEUDO.test(t)&&!/!=/.test(t)){var n=i.call(e,t);if(n||!r||e.document&&11!==e.document.nodeType)return n}}catch(v){}return 0<b(t,null,null,[e]).length}}}(),function(){var e=F.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;w.order.splice(1,0,"CLASS"),w.find.CLASS=function(e,t,n){if("undefined"!=typeof t.getElementsByClassName&&!n)return t.getElementsByClassName(e[1])},e=null}}(),F.documentElement.contains?b.contains=function(e,t){return e!==t&&(!e.contains||e.contains(t))}:F.documentElement.compareDocumentPosition?b.contains=function(e,t){return!!(16&e.compareDocumentPosition(t))}:b.contains=function(){return!1},b.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return!!t&&"HTML"!==t.nodeName};var C=function(e,t,n){for(var i,r=[],o="",a=t.nodeType?[t]:t;i=w.match.PSEUDO.exec(e);)o+=i[0],e=e.replace(w.match.PSEUDO,"");e=w.relative[e]?e+"*":e;for(var s=0,l=a.length;s<l;s++)b(e,a[s],r,n);return b.filter(o,r)};b.attr=L.attr,b.selectors.attrMap={},L.find=b,L.expr=b.selectors,L.expr[":"]=L.expr.filters,L.unique=b.uniqueSort,L.text=b.getText,L.isXMLDoc=b.isXML,L.contains=b.contains}();var se=/Until$/,le=/^(?:parents|prevUntil|prevAll)/,ue=/,/,ce=/^.[^:#\[\.,]*$/,de=Array.prototype.slice,fe=L.expr.match.globalPOS,pe={children:!0,contents:!0,next:!0,prev:!0};L.fn.extend({find:function(e){var t,n,i=this;if("string"!=typeof e)return L(e).filter(function(){for(t=0,n=i.length;t<n;t++)if(L.contains(i[t],this))return!0});var r,o,a,s=this.pushStack("","find",e);for(t=0,n=this.length;t<n;t++)if(r=s.length,L.find(e,this[t],s),0<t)for(o=r;o<s.length;o++)for(a=0;a<r;a++)if(s[a]===s[o]){s.splice(o--,1);break}return s},has:function(e){var n=L(e);return this.filter(function(){for(var e=0,t=n.length;e<t;e++)if(L.contains(this,n[e]))return!0})},not:function(e){return this.pushStack(y(this,e,!1),"not",e)},filter:function(e){return this.pushStack(y(this,e,!0),"filter",e)},is:function(e){return!!e&&("string"==typeof e?fe.test(e)?0<=L(e,this.context).index(this[0]):0<L.filter(e,this).length:0<this.filter(e).length)},closest:function(e,t){var n,i,r=[],o=this[0];if(L.isArray(e)){for(var a=1;o&&o.ownerDocument&&o!==t;){for(n=0;n<e.length;n++)L(o).is(e[n])&&r.push({selector:e[n],elem:o,level:a});o=o.parentNode,a++}return r}var s=fe.test(e)||"string"!=typeof e?L(e,t||this.context):0;for(n=0,i=this.length;n<i;n++)for(o=this[n];o;){if(s?-1<s.index(o):L.find.matchesSelector(o,e)){r.push(o);break}if(!(o=o.parentNode)||!o.ownerDocument||o===t||11===o.nodeType)break}return r=1<r.length?L.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?"string"==typeof e?L.inArray(this[0],L(e)):L.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?L(e,t):L.makeArray(e&&e.nodeType?[e]:e),i=L.merge(this.get(),n);return this.pushStack(v(n[0])||v(i[0])?i:L.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),L.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L.dir(e,"parentNode")},parentsUntil:function(e,t,n){return L.dir(e,"parentNode",n)},next:function(e){return L.nth(e,2,"nextSibling")},prev:function(e){return L.nth(e,2,"previousSibling")},nextAll:function(e){return L.dir(e,"nextSibling")},prevAll:function(e){return L.dir(e,"previousSibling")},nextUntil:function(e,t,n){return L.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return L.dir(e,"previousSibling",n)},siblings:function(e){return L.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return L.sibling(e.firstChild)},contents:function(e){return L.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:L.makeArray(e.childNodes)}},function(i,r){L.fn[i]=function(e,t){var n=L.map(this,r,e);return se.test(i)||(t=e),t&&"string"==typeof t&&(n=L.filter(t,n)),n=1<this.length&&!pe[i]?L.unique(n):n,(1<this.length||ue.test(t))&&le.test(i)&&(n=n.reverse()),this.pushStack(n,i,de.call(arguments).join(","))}}),L.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?L.find.matchesSelector(t[0],e)?[t[0]]:[]:L.find.matches(e,t)},dir:function(e,t,n){for(var i=[],r=e[t];r&&9!==r.nodeType&&(n===D||1!==r.nodeType||!L(r).is(n));)1===r.nodeType&&i.push(r),r=r[t];return i},nth:function(e,t,n){t=t||1;for(var i=0;e&&(1!==e.nodeType||++i!==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 he="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ge=/ jQuery\d+="(?:\d+|null)"/g,me=/^\s+/,ye=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ve=/<([\w:]+)/,be=/<tbody/i,we=/<|&#?\w+;/,xe=/<(?:script|style)/i,ke=/<(?:script|object|embed|option|style)/i,Te=new RegExp("<(?:"+he+")[\\s/>]","i"),Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/\/(java|ecma)script/i,Ne=/^\s*<!(?:\[CDATA\[|\-\-)/,_e={option:[1,"<select multiple='multiple'>","</select>"
3
3
  ],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,"",""]},Se=x(F);_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td,L.support.htmlSerialize||(_e._default=[1,"div<div>","</div>"]),L.fn.extend({text:function(e){return L.access(this,function(e){return e===D?L.text(this):this.empty().append((this[0]&&this[0].ownerDocument||F).createTextNode(e))},null,e,arguments.length)},wrapAll:function(t){if(L.isFunction(t))return this.each(function(e){L(this).wrapAll(t.call(this,e))});if(this[0]){var e=L(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return L.isFunction(n)?this.each(function(e){L(this).wrapInner(n.call(this,e))}):this.each(function(){var e=L(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=L.isFunction(t);return this.each(function(e){L(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){L.nodeName(this,"body")||L(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=L.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,L.clean(arguments)),e}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!L.filter(e,[n]).length||(!t&&1===n.nodeType&&(L.cleanData(n.getElementsByTagName("*")),L.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&&L.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 L.clone(this,e,t)})},html:function(e){return L.access(this,function(e){var t=this[0]||{},n=0,i=this.length;if(e===D)return 1===t.nodeType?t.innerHTML.replace(ge,""):null;if("string"==typeof e&&!xe.test(e)&&(L.support.leadingWhitespace||!me.test(e))&&!_e[(ve.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ye,"<$1></$2>");try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(L.cleanData(t.getElementsByTagName("*")),t.innerHTML=e);t=0}catch(O){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(i){return this[0]&&this[0].parentNode?L.isFunction(i)?this.each(function(e){var t=L(this),n=t.html();t.replaceWith(i.call(this,e,n))}):("string"!=typeof i&&(i=L(i).detach()),this.each(function(){var e=this.nextSibling,t=this.parentNode;L(this).remove(),e?L(e).before(i):L(t).append(i)})):this.length?this.pushStack(L(L.isFunction(i)?i():i),"replaceWith",i):this},detach:function(e){return this.remove(e,!0)},domManip:function(n,i,r){var e,t,o,a,s=n[0],l=[];if(!L.support.checkClone&&3===arguments.length&&"string"==typeof s&&Ce.test(s))return this.each(function(){L(this).domManip(n,i,r,!0)});if(L.isFunction(s))return this.each(function(e){var t=L(this);n[0]=s.call(this,e,i?t.html():D),t.domManip(n,i,r)});if(this[0]){if(a=s&&s.parentNode,t=1===(o=(e=L.support.parentNode&&a&&11===a.nodeType&&a.childNodes.length===this.length?{fragment:a}:L.buildFragment(n,this,l)).fragment).childNodes.length?o=o.firstChild:o.firstChild){i=i&&L.nodeName(t,"tr");for(var u=0,c=this.length,d=c-1;u<c;u++)r.call(i?g(this[u],t):this[u],e.cacheable||1<c&&u<d?L.clone(o,!0,!0):o)}l.length&&L.each(l,function(e,t){t.src?L.ajax({type:"GET",global:!1,url:t.src,async:!1,dataType:"script"}):L.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ne,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)})}return this}}),L.buildFragment=function(e,t,n){var i,r,o,a,s=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=F),1===e.length&&"string"==typeof s&&s.length<512&&a===F&&"<"===s.charAt(0)&&!ke.test(s)&&(L.support.checkClone||!Ce.test(s))&&(L.support.html5Clone||!Te.test(s))&&(r=!0,(o=L.fragments[s])&&1!==o&&(i=o)),i||(i=a.createDocumentFragment(),L.clean(e,a,i,n)),r&&(L.fragments[s]=o?i:1),{fragment:i,cacheable:r}},L.fragments={},L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(s,l){L.fn[s]=function(e){var t=[],n=L(e),i=1===this.length&&this[0].parentNode;if(i&&11===i.nodeType&&1===i.childNodes.length&&1===n.length)return n[l](this[0]),this;for(var r=0,o=n.length;r<o;r++){var a=(0<r?this.clone(!0):this).get();L(n[r])[l](a),t=t.concat(a)}return this.pushStack(t,s,n.selector)}}),L.extend({clone:function(e,t,n){var i,r,o,a=L.support.html5Clone||L.isXMLDoc(e)||!Te.test("<"+e.nodeName+">")?e.cloneNode(!0):u(e);if(!(L.support.noCloneEvent&&L.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||L.isXMLDoc(e)))for(p(e,a),i=f(e),r=f(a),o=0;i[o];++o)r[o]&&p(i[o],r[o]);if(t&&(h(e,a),n))for(i=f(e),r=f(a),o=0;i[o];++o)h(i[o],r[o]);return i=r=null,a},clean:function(e,t,n,i){var r,o,a,s=[];"undefined"==typeof(t=t||F).createElement&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||F);for(var l,u=0;null!=(l=e[u]);u++)if("number"==typeof l&&(l+=""),l){if("string"==typeof l)if(we.test(l)){l=l.replace(ye,"<$1></$2>");var c,d=(ve.exec(l)||["",""])[1].toLowerCase(),f=_e[d]||_e._default,p=f[0],h=t.createElement("div"),g=Se.childNodes;for(t===F?Se.appendChild(h):x(t).appendChild(h),h.innerHTML=f[1]+l+f[2];p--;)h=h.lastChild;if(!L.support.tbody){var m=be.test(l),y="table"!==d||m?"<table>"!==f[1]||m?[]:h.childNodes:h.firstChild&&h.firstChild.childNodes;for(a=y.length-1;0<=a;--a)L.nodeName(y[a],"tbody")&&!y[a].childNodes.length&&y[a].parentNode.removeChild(y[a])}!L.support.leadingWhitespace&&me.test(l)&&h.insertBefore(t.createTextNode(me.exec(l)[0]),h.firstChild),l=h.childNodes,h&&(h.parentNode.removeChild(h),0<g.length&&((c=g[g.length-1])&&c.parentNode&&c.parentNode.removeChild(c)))}else l=t.createTextNode(l);var v;if(!L.support.appendChecked)if(l[0]&&"number"==typeof(v=l.length))for(a=0;a<v;a++)w(l[a]);else w(l);l.nodeType?s.push(l):s=L.merge(s,l)}if(n)for(r=function(e){return!e.type||Ee.test(e.type)},u=0;s[u];u++)if(o=s[u],i&&L.nodeName(o,"script")&&(!o.type||Ee.test(o.type)))i.push(o.parentNode?o.parentNode.removeChild(o):o);else{if(1===o.nodeType){var b=L.grep(o.getElementsByTagName("script"),r);s.splice.apply(s,[u+1,0].concat(b))}n.appendChild(o)}return s},cleanData:function(e){for(var t,n,i,r=L.cache,o=L.event.special,a=L.support.deleteExpando,s=0;null!=(i=e[s]);s++)if((!i.nodeName||!L.noData[i.nodeName.toLowerCase()])&&(n=i[L.expando])){if((t=r[n])&&t.events){for(var l in t.events)o[l]?L.event.remove(i,l):L.removeEvent(i,l,t.handle);t.handle&&(t.handle.elem=null)}a?delete i[L.expando]:i.removeAttribute&&i.removeAttribute(L.expando),delete r[n]}}});var Ae,$e,Le,je=/alpha\([^)]*\)/i,De=/opacity=([^)]*)/,Fe=/([A-Z]|^ms)/g,Me=/^[\-+]?(?:\d*\.)?\d+$/i,Oe=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,Pe=/^([\-+])=([\-+.\de]+)/,He=/^margin/,ze={position:"absolute",visibility:"hidden",display:"block"},qe=["Top","Right","Bottom","Left"];L.fn.css=function(e,t){return L.access(this,function(e,t,n){return n!==D?L.style(e,t,n):L.css(e,t)},e,t,1<arguments.length)},L.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ae(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":L.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a=L.camelCase(t),s=e.style,l=L.cssHooks[a];if(t=L.cssProps[a]||a,n===D)return l&&"get"in l&&(r=l.get(e,!1,i))!==D?r:s[t];if("string"===(o=typeof n)&&(r=Pe.exec(n))&&(n=+(r[1]+1)*+r[2]+parseFloat(L.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n))return;if("number"===o&&!L.cssNumber[a]&&(n+="px"),!(l&&"set"in l&&(n=l.set(e,n))===D))try{s[t]=n}catch(S){}}},css:function(e,t,n){var i,r;return t=L.camelCase(t),r=L.cssHooks[t],"cssFloat"===(t=L.cssProps[t]||t)&&(t="float"),r&&"get"in r&&(i=r.get(e,!0,n))!==D?i:Ae?Ae(e,t):void 0},swap:function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i}}),L.curCSS=L.css,F.defaultView&&F.defaultView.getComputedStyle&&($e=function(e,t){var n,i,r,o,a=e.style;return t=t.replace(Fe,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)&&(r=i.getComputedStyle(e,null))&&(""===(n=r.getPropertyValue(t))&&!L.contains(e.ownerDocument.documentElement,e)&&(n=L.style(e,t))),!L.support.pixelMargin&&r&&He.test(t)&&Oe.test(n)&&(o=a.width,a.width=n,n=r.width,a.width=o),n}),F.documentElement.currentStyle&&(Le=function(e,t){var n,i,r,o=e.currentStyle&&e.currentStyle[t],a=e.style;return null==o&&a&&(r=a[t])&&(o=r),Oe.test(o)&&(n=a.left,(i=e.runtimeStyle&&e.runtimeStyle.left)&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=n,i&&(e.runtimeStyle.left=i)),""===o?"auto":o}),Ae=$e||Le,L.each(["height","width"],function(e,i){L.cssHooks[i]={get:function(e,t,n){if(t)return 0!==e.offsetWidth?a(e,i,n):L.swap(e,ze,function(){return a(e,i,n)})},set:function(e,t){return Me.test(t)?t+"px":t}}}),L.support.opacity||(L.cssHooks.opacity={get:function(e,t){return De.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=L.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";(n.zoom=1)<=t&&""===L.trim(o.replace(je,""))&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=je.test(o)?o.replace(je,r):o+" "+r)}}),L(function(){L.support.reliableMarginRight||(L.cssHooks.marginRight={get:function(e,t){return L.swap(e,{display:"inline-block"},function(){return t?Ae(e,"margin-right"):e.style.marginRight})}})}),L.expr&&L.expr.filters&&(L.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return 0===t&&0===n||!L.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||L.css(e,"display"))},L.expr.filters.visible=function(e){return!L.expr.filters.hidden(e)}),L.each({margin:"",padding:"",border:"Width"},function(r,o){L.cssHooks[r+o]={expand:function(e){var t,n="string"==typeof e?e.split(" "):[e],i={};for(t=0;t<4;t++)i[r+qe[t]+o]=n[t]||n[t-2]||n[0];return i}}});var Be,Re,Ie=/%20/g,We=/\[\]$/,Xe=/\r?\n/g,Ue=/#.*$/,Ke=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ve=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ge=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Je=/^(?:GET|HEAD)$/,Ye=/^\/\//,Qe=/\?/,Ze=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,et=/^(?:select|textarea)/i,tt=/\s+/,nt=/([?&])_=[^&]*/,it=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,rt=L.fn.load,ot={},at={},st=["*/"]+["*"];try{Be=$.href}catch(Et){(Be=F.createElement("a")).href="",Be=Be.href}Re=it.exec(Be.toLowerCase())||[],L.fn.extend({load:function(e,t,i){if("string"!=typeof e&&rt)return rt.apply(this,arguments);if(!this.length)return this;var n=e.indexOf(" ");if(0<=n){var r=e.slice(n,e.length);e=e.slice(0,n)}var o="GET";t&&(L.isFunction(t)?(i=t,t=D):"object"==typeof t&&(t=L.param(t,L.ajaxSettings.traditional),o="POST"));var a=this;return L.ajax({url:e,type:o,dataType:"html",data:t,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),a.html(r?L("<div>").append(n.replace(Ze,"")).find(r):n)),i&&a.each(i,[n,t,e])}}),this},serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?L.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||et.test(this.nodeName)||Ve.test(this.type))}).map(function(e,t){var n=L(this).val();return null==n?null:L.isArray(n)?L.map(n,function(e){return{name:t.name,value:e.replace(Xe,"\r\n")}}):{name:t.name,value:n.replace(Xe,"\r\n")}}).get()}}),L.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){L.fn[t]=function(e){return this.on(t,e)}}),L.each(["get","post"],function(e,r){L[r]=function(e,t,n,i){return L.isFunction(t)&&(i=i||n,n=t,t=D),L.ajax({type:r,url:e,data:t,success:n,dataType:i})}}),L.extend({getScript:function(e,t){return L.get(e,D,t,"script")},getJSON:function(e,t,n){return L.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?i(e,L.ajaxSettings):(t=e,e=L.ajaxSettings),i(e,t),e},ajaxSettings:{url:Be,isLocal:Ge.test(Re[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":j.String,"text html":!0,"text json":L.parseJSON,"text xml":L.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:r(ot),ajaxTransport:r(at),ajax:function(e,t){function n(e,t,n,i){if(2!==k){k=2,h&&clearTimeout(h),p=D,f=i||"",T.readyState=0<e?4:0;var r,o,a,s,l,u=t,c=n?E(m,T,n):D;if(200<=e&&e<300||304===e)if(m.ifModified&&((s=T.getResponseHeader("Last-Modified"))&&(L.lastModified[d]=s),(l=T.getResponseHeader("Etag"))&&(L.etag[d]=l)),304===e)u="notmodified",r=!0;else try{o=C(m,c),u="success",r=!0}catch(Q){u="parsererror",a=Q}else(a=u)&&!e||(u="error",e<0&&(e=0));T.status=e,T.statusText=""+(t||u),r?b.resolveWith(y,[o,u,T]):b.rejectWith(y,[T,u,a]),T.statusCode(x),x=D,g&&v.trigger("ajax"+(r?"Success":"Error"),[T,m,r?o:a]),w.fireWith(y,[T,u]),g&&(v.trigger("ajaxComplete",[T,m]),--L.active||L.event.trigger("ajaxStop"))}}"object"==typeof e&&(t=e,e=D),t=t||{};var d,f,i,p,h,r,g,o,m=L.ajaxSetup({},t),y=m.context||m,v=y!==m&&(y.nodeType||y instanceof L)?L(y):L.event,b=L.Deferred(),w=L.Callbacks("once memory"),x=m.statusCode||{},a={},s={},k=0,T={readyState:0,setRequestHeader:function(e,t){if(!k){var n=e.toLowerCase();e=s[n]=s[n]||e,a[e]=t}return this},getAllResponseHeaders:function(){return 2===k?f:null},getResponseHeader:function(e){var t;if(2===k){if(!i)for(i={};t=Ke.exec(f);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return t===D?null:t},overrideMimeType:function(e){return k||(m.mimeType=e),this},abort:function(e){return e=e||"abort",p&&p.abort(e),n(0,e),this}};if(b.promise(T),T.success=T.done,T.error=T.fail,T.complete=w.add,T.statusCode=function(e){var t;if(e)if(k<2)for(t in e)x[t]=[x[t],e[t]];else t=e[T.status],T.then(t,t);return this},m.url=((e||m.url)+"").replace(Ue,"").replace(Ye,Re[1]+"//"),m.dataTypes=L.trim(m.dataType||"*").toLowerCase().split(tt),null==m.crossDomain&&(r=it.exec(m.url.toLowerCase()),m.crossDomain=!(!r||r[1]==Re[1]&&r[2]==Re[2]&&(r[3]||("http:"===r[1]?80:443))==(Re[3]||("http:"===Re[1]?80:443)))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=L.param(m.data,m.traditional)),N(ot,m,t,T),2===k)return!1;if(g=m.global,m.type=m.type.toUpperCase(),m.hasContent=!Je.test(m.type),g&&0==L.active++&&L.event.trigger("ajaxStart"),!m.hasContent&&(m.data&&(m.url+=(Qe.test(m.url)?"&":"?")+m.data,delete m.data),d=m.url,!1===m.cache)){var l=L.now(),u=m.url.replace(nt,"$1_="+l);m.url=u+(u===m.url?(Qe.test(m.url)?"&":"?")+"_="+l:"")}for(o in(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&T.setRequestHeader("Content-Type",m.contentType),m.ifModified&&(d=d||m.url,L.lastModified[d]&&T.setRequestHeader("If-Modified-Since",L.lastModified[d]),L.etag[d]&&T.setRequestHeader("If-None-Match",L.etag[d])),T.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)T.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(y,T,m)||2===k))return T.abort(),!1;for(o in{success:1,error:1,complete:1})T[o](m[o]);if(p=N(at,m,t,T)){T.readyState=1,g&&v.trigger("ajaxSend",[T,m]),m.async&&0<m.timeout&&(h=setTimeout(function(){T.abort("timeout")},m.timeout));try{k=1,p.send(a,n)}catch(Y){if(!(k<2))throw Y;n(-1,Y)}}else n(-1,"No Transport");return T},param:function(e,t){var n=[],i=function(e,t){t=L.isFunction(t)?t():t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===D&&(t=L.ajaxSettings.traditional),L.isArray(e)||e.jquery&&!L.isPlainObject(e))L.each(e,function(){i(this.name,this.value)});else for(var r in e)o(r,e[r],t,i);return n.join("&").replace(Ie,"+")}}),L.extend({active:0,lastModified:{},etag:{}});var lt=L.now(),ut=/(\=)\?(&|$)|\?\?/i;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return L.expando+"_"+lt++}}),L.ajaxPrefilter("json jsonp",function(e,t,n){var i="string"==typeof e.data&&/^application\/x\-www\-form\-urlencoded/.test(e.contentType);if("jsonp"===e.dataTypes[0]||!1!==e.jsonp&&(ut.test(e.url)||i&&ut.test(e.data))){var r,o=e.jsonpCallback=L.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a=j[o],s=e.url,l=e.data,u="$1"+o+"$2";return!1!==e.jsonp&&(s=s.replace(ut,u),e.url===s&&(i&&(l=l.replace(ut,u)),e.data===l&&(s+=(/\?/.test(s)?"&":"?")+e.jsonp+"="+o))),e.url=s,e.data=l,j[o]=function(e){r=[e]},n.always(function(){j[o]=a,r&&L.isFunction(a)&&j[o](r[0])}),e.converters["script json"]=function(){return r||L.error(o+" was not called"),r[0]},e.dataTypes[0]="json","script"}}),L.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return L.globalEval(e),e}}}),L.ajaxPrefilter("script",function(e){e.cache===D&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),L.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=F.head||F.getElementsByTagName("head")[0]||F.documentElement;return{send:function(e,n){(i=F.createElement("script")).async="async",t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,r&&i.parentNode&&r.removeChild(i),i=D,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(0,1)}}}});var ct,dt,ft=!!j.ActiveXObject&&function(){for(var e in ct)ct[e](0,1)},pt=0;L.ajaxSettings.xhr=j.ActiveXObject?function(){return!this.isLocal&&n()||t()}:n,dt=L.ajaxSettings.xhr(),L.extend(L.support,{ajax:!!dt,cors:!!dt&&"withCredentials"in dt}),L.support.ajax&&L.ajaxTransport(function(c){var d;if(!c.crossDomain||L.support.cors)return{send:function(e,s){var l,t,u=c.xhr();if(c.username?u.open(c.type,c.url,c.async,c.username,c.password):u.open(c.type,c.url,c.async),c.xhrFields)for(t in c.xhrFields)u[t]=c.xhrFields[t];c.mimeType&&u.overrideMimeType&&u.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(t in e)u.setRequestHeader(t,e[t])}catch(z){}u.send(c.hasContent&&c.data||null),d=function(e,t){var n,i,r,o,a;try{if(d&&(t||4===u.readyState))if(d=D,l&&(u.onreadystatechange=L.noop,ft&&delete ct[l]),t)4!==u.readyState&&u.abort();else{n=u.status,r=u.getAllResponseHeaders(),o={},(a=u.responseXML)&&a.documentElement&&(o.xml=a);try{o.text=u.responseText}catch(e){}try{i=u.statusText}catch(I){i=""}n||!c.isLocal||c.crossDomain?1223===n&&(n=204):n=o.text?200:404}}catch(W){t||s(-1,W)}o&&s(n,i,o,r)},c.async&&4!==u.readyState?(l=++pt,ft&&(ct||(ct={},L(j).unload(ft)),ct[l]=d),u.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}});var ht,gt,mt,yt,vt={},bt=/^(?:toggle|show|hide)$/,wt=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,xt=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];L.fn.extend({show:function(e,t,n){var i,r;if(e||0===e)return this.animate(s("show",3),e,t,n);for(var o=0,a=this.length;o<a;o++)(i=this[o]).style&&(r=i.style.display,!L._data(i,"olddisplay")&&"none"===r&&(r=i.style.display=""),(""===r&&"none"===L.css(i,"display")||!L.contains(i.ownerDocument.documentElement,i))&&L._data(i,"olddisplay",m(i.nodeName)));for(o=0;o<a;o++)(i=this[o]).style&&(""!==(r=i.style.display)&&"none"!==r||(i.style.display=L._data(i,"olddisplay")||""));return this},hide:function(e,t,n){if(e||0===e)return this.animate(s("hide",3),e,t,n);for(var i,r,o=0,a=this.length;o<a;o++)(i=this[o]).style&&("none"!==(r=L.css(i,"display"))&&!L._data(i,"olddisplay")&&L._data(i,"olddisplay",r));for(o=0;o<a;o++)this[o].style&&(this[o].style.display="none");return this},_toggle:L.fn.toggle,toggle:function(t,e,n){var i="boolean"==typeof t;return L.isFunction(t)&&L.isFunction(e)?this._toggle.apply(this,arguments):null==t||i?this.each(function(){var e=i?t:L(this).is(":hidden");L(this)[e?"show":"hide"]()}):this.animate(s("toggle",3),t,e,n),this},fadeTo:function(e,t,n,i){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(h,e,t,n){function i(){!1===g.queue&&L._mark(this);var e,t,n,i,r,o,a,s,l,u,c,d=L.extend({},g),f=1===this.nodeType,p=f&&L(this).is(":hidden");for(n in d.animatedProperties={},h)if(n!==(e=L.camelCase(n))&&(h[e]=h[n],delete h[n]),(r=L.cssHooks[e])&&"expand"in r)for(n in o=r.expand(h[e]),delete h[e],o)n in h||(h[n]=o[n]);for(e in h){if(t=h[e],L.isArray(t)?(d.animatedProperties[e]=t[1],t=h[e]=t[0]):d.animatedProperties[e]=d.specialEasing&&d.specialEasing[e]||d.easing||"swing","hide"===t&&p||"show"===t&&!p)return d.complete.call(this);f&&("height"===e||"width"===e)&&(d.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===L.css(this,"display")&&"none"===L.css(this,"float")&&(L.support.inlineBlockNeedsLayout&&"inline"!==m(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(n in null!=d.overflow&&(this.style.overflow="hidden"),h)i=new L.fx(this,d,n),t=h[n],bt.test(t)?(c=L._data(this,"toggle"+n)||("toggle"===t?p?"show":"hide":0))?(L._data(this,"toggle"+n,"show"===c?"hide":"show"),i[c]()):i[t]():(a=wt.exec(t),s=i.cur(),a?(l=parseFloat(a[2]),"px"!==(u=a[3]||(L.cssNumber[n]?"":"px"))&&(L.style(this,n,(l||1)+u),s=(l||1)/i.cur()*s,L.style(this,n,s+u)),a[1]&&(l=("-="===a[1]?-1:1)*l+s),i.custom(s,l,u)):i.custom(s,t,""));return!0}var g=L.speed(e,t,n);return L.isEmptyObject(h)?this.each(g.complete,[!1]):(h=L.extend({},h),!1===g.queue?this.each(i):this.queue(g.queue,i))},stop:function(o,e,a){return"string"!=typeof o&&(a=e,e=o,o=D),e&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){function e(e,t,n){var i=t[n];L.removeData(e,n,!0),i.stop(a)}var t,n=!1,i=L.timers,r=L._data(this);if(a||L._unmark(!0,this),null==o)for(t in r)r[t]&&r[t].stop&&t.indexOf(".run")===t.length-4&&e(this,r,t);else r[t=o+".run"]&&r[t].stop&&e(this,r,t);for(t=i.length;t--;)i[t].elem===this&&(null==o||i[t].queue===o)&&(a?i[t](!0):i[t].saveState(),n=!0,i.splice(t,1));(!a||!n)&&L.dequeue(this,o)})}}),L.each({slideDown:s("show",1),slideUp:s("hide",1),slideToggle:s("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){L.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),L.extend({speed:function(e,t,n){var i=e&&"object"==typeof e?L.extend({},e):{complete:n||!n&&t||L.isFunction(e)&&e,duration:e,easing:n&&t||t&&!L.isFunction(t)&&t};return i.duration=L.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in L.fx.speeds?L.fx.speeds[i.duration]:L.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(e){L.isFunction(i.old)&&i.old.call(this),i.queue?L.dequeue(this,i.queue):!1!==e&&L._unmark(this)},i},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||{}}}),L.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(L.fx.step[this.prop]||L.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=L.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?t&&"auto"!==t?t:0:e},custom:function(e,t,n){function i(e){return r.step(e)}var r=this,o=L.fx;this.startTime=yt||l(),this.end=t,this.now=this.start=e,this.pos=this.state=0,this.unit=n||this.unit||(L.cssNumber[this.prop]?"":"px"),i.queue=this.options.queue,i.elem=this.elem,i.saveState=function(){L._data(r.elem,"fxshow"+r.prop)===D&&(r.options.hide?L._data(r.elem,"fxshow"+r.prop,r.start):r.options.show&&L._data(r.elem,"fxshow"+r.prop,r.end))},i()&&L.timers.push(i)&&!mt&&(mt=setInterval(o.tick,o.interval))},show:function(){var e=L._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||L.style(this.elem,this.prop),this.options.show=!0,e!==D?this.custom(this.cur(),e):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),L(this.elem).show()},hide:function(){this.options.orig[this.prop]=L._data(this.elem,"fxshow"+this.prop)||L.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,i,r=yt||l(),o=!0,a=this.elem,s=this.options;if(e||r>=s.duration+this.startTime){for(t in this.now=this.end,this.pos=this.state=1,this.update(),s.animatedProperties[this.prop]=!0,s.animatedProperties)!0!==s.animatedProperties[t]&&(o=!1);if(o){if(null!=s.overflow&&!L.support.shrinkWrapBlocks&&L.each(["","X","Y"],function(e,t){a.style["overflow"+t]=s.overflow[e]}),s.hide&&L(a).hide(),s.hide||s.show)for(t in s.animatedProperties)L.style(a,t,s.orig[t]),L.removeData(a,"fxshow"+t,!0),L.removeData(a,"toggle"+t,!0);(i=s.complete)&&(s.complete=!1,i.call(a))}return!1}return s.duration==Infinity?this.now=r:(n=r-this.startTime,this.state=n/s.duration,this.pos=L.easing[s.animatedProperties[this.prop]](this.state,n,0,1,s.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},L.extend(L.fx,{tick:function(){for(var e,t=L.timers,n=0;n<t.length;n++)!(e=t[n])()&&t[n]===e&&t.splice(n--,1);t.length||L.fx.stop()},interval:13,stop:function(){clearInterval(mt),mt=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){L.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}}}),L.each(xt.concat.apply([],xt),function(e,t){t.indexOf("margin")&&(L.fx.step[t]=function(e){L.style(e.elem,t,Math.max(0,e.now)+e.unit)})}),L.expr&&L.expr.filters&&(L.expr.filters.animated=function(t){return L.grep(L.timers,function(e){return t===e.elem}).length});var kt,Tt=/^t(?:able|d|h)$/i,Ct=/^(?:body|html)$/i;kt="getBoundingClientRect"in F.documentElement?function(e,t,n,i){try{i=e.getBoundingClientRect()}catch($){}if(!i||!L.contains(n,e))return i?{top:i.top,left:i.left}:{top:0,left:0};var r=t.body,o=c(t),a=n.clientTop||r.clientTop||0,s=n.clientLeft||r.clientLeft||0,l=o.pageYOffset||L.support.boxModel&&n.scrollTop||r.scrollTop,u=o.pageXOffset||L.support.boxModel&&n.scrollLeft||r.scrollLeft;return{top:i.top+l-a,left:i.left+u-s}}:function(e,t,n){for(var i,r=e.offsetParent,o=t.body,a=t.defaultView,s=a?a.getComputedStyle(e,null):e.currentStyle,l=e.offsetTop,u=e.offsetLeft;(e=e.parentNode)&&e!==o&&e!==n&&(!L.support.fixedPosition||"fixed"!==s.position);)i=a?a.getComputedStyle(e,null):e.currentStyle,l-=e.scrollTop,u-=e.scrollLeft,e===r&&(l+=e.offsetTop,u+=e.offsetLeft,L.support.doesNotAddBorder&&(!L.support.doesAddBorderForTableAndCells||!Tt.test(e.nodeName))&&(l+=parseFloat(i.borderTopWidth)||0,u+=parseFloat(i.borderLeftWidth)||0),r,r=e.offsetParent),L.support.subtractsBorderForOverflowNotVisible&&"visible"!==i.overflow&&(l+=parseFloat(i.borderTopWidth)||0,u+=parseFloat(i.borderLeftWidth)||0),s=i;return"relative"!==s.position&&"static"!==s.position||(l+=o.offsetTop,u+=o.offsetLeft),L.support.fixedPosition&&"fixed"===s.position&&(l+=Math.max(n.scrollTop,o.scrollTop),u+=Math.max(n.scrollLeft,o.scrollLeft)),{top:l,left:u}},L.fn.offset=function(t){if(arguments.length)return t===D?this:this.each(function(e){L.offset.setOffset(this,t,e)});var e=this[0],n=e&&e.ownerDocument;return n?e===n.body?L.offset.bodyOffset(e):kt(e,n,n.documentElement):null},L.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return L.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(L.css(e,"marginTop"))||0,n+=parseFloat(L.css(e,"marginLeft"))||0),{top:t,left:n}},setOffset:function(e,t,n){var i=L.css(e,"position");"static"===i&&(e.style.position="relative");var r,o,a=L(e),s=a.offset(),l=L.css(e,"top"),u=L.css(e,"left"),c={},d={};("absolute"===i||"fixed"===i)&&-1<L.inArray("auto",[l,u])?(r=(d=a.position()).top,o=d.left):(r=parseFloat(l)||0,o=parseFloat(u)||0),L.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(c.top=t.top-s.top+r),null!=t.left&&(c.left=t.left-s.left+o),"using"in t?t.using.call(e,c):a.css(c)}},L.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),i=Ct.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(L.css(e,"marginTop"))||0,n.left-=parseFloat(L.css(e,"marginLeft"))||0,i.top+=parseFloat(L.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(L.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||F.body;e&&!Ct.test(e.nodeName)&&"static"===L.css(e,"position");)e=e.offsetParent;return e})}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);L.fn[t]=function(e){return L.access(this,function(e,t,n){var i=c(e);if(n===D)return i?r in i?i[r]:L.support.boxModel&&i.document.documentElement[t]||i.document.body[t]:e[t];i?i.scrollTo(o?L(i).scrollLeft():n,o?n:L(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),L.each({Height:"height",Width:"width"},function(e,n){var s="client"+e,l="scroll"+e,u="offset"+e;L.fn["inner"+e]=function(){var e=this[0];return e?e.style?parseFloat(L.css(e,n,"padding")):this[n]():null},L.fn["outer"+e]=function(e){var t=this[0];return t?t.style?parseFloat(L.css(t,n,e?"margin":"border")):this[n]():null},L.fn[n]=function(e){return L.access(this,function(e,t,n){var i,r,o,a;return L.isWindow(e)?(r=(i=e.document).documentElement[s],L.support.boxModel&&r||i.body&&i.body[s]||r):9===e.nodeType?(i=e.documentElement)[s]>=i[l]?i[s]:Math.max(e.body[l],i[l],e.body[u],i[u]):n===D?(o=L.css(e,t),a=parseFloat(o),L.isNumeric(a)?a:o):void L(e).css(t,n)},n,e,arguments.length,null)}}),j.jQuery=j.$=L,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return L})}(window),function(){var e;e="undefined"!=typeof module&&"undefined"!=typeof module.exports?require("./pnglib"):window.PNGlib;var t=function(e,t,n){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 t&&(this.options.size=t),n&&(this.options.margin=n),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 i=parseInt(this.hash.substr(-7),16)/268435455,r=this.options.saturation||this.defaults.saturation,o=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(i,r,o)};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(),i=this.size,r=Math.floor(i*this.margin),o=Math.floor((i-2*r)/5),a=Math.floor((i-5*o)/2),s=n.color.apply(n,this.background),l=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:l,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,
4
- t,n,i,r,o){var a,s;if(this.isSvg())o.rectangles.push({x:e,y:t,w:n,h:i,color:r});else for(a=e;a<e+n;a++)for(s=t;s<t+i;s++)o.buffer[o.index(a,s)]=r},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,i){var r=[e,t,n].map(Math.round);return r.push(0<=i&&i<=255?i/255:1),"rgba("+r.join(",")+")"},getDump:function(){var e,t,n,i=this.foreground,r=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:"+r+";'><g style='fill:"+i+"; stroke:"+i+"; stroke-width:"+o+";'>",e=0;e<this.rectangles.length;e++)(n=this.rectangles[e]).color!=r&&(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}(),function(e,n,t){function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function y(e){if("keypress"!=e.type)return l[e.which]?l[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase();var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}function r(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 v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t){var n,i,r,o=[];for("+"===(n=e)?n=["+"]:n=(n=n.replace(/\+{2}/g,"+plus")).split("+"),r=0;r<n.length;++r)i=n[r],c[i]&&(i=c[i]),t&&"keypress"!=t&&u[i]&&(i=u[i],o.push("shift")),v(i)&&o.push(i);if(n=i,!(r=t)){if(!s)for(var a in s={},l)95<a&&a<112||l.hasOwnProperty(a)&&(s[l[a]]=a);r=s[n]?"keydown":"keypress"}return"keypress"==r&&o.length&&(r="keydown"),{key:i,modifiers:o,action:r}}function o(e,t){return null!==e&&e!==n&&(e===t||o(e.parentNode,t))}function w(e){function l(e){e=e||{};var t,n=!1;for(t in p)e[t]?n=!0:p[t]=0;n||(m=!1)}function s(e,t,n,i,r,o){var a,s,l=[],u=n.type;if(!d._callbacks[e])return[];for("keyup"==u&&v(e)&&(t=[e]),a=0;a<d._callbacks[e].length;++a)if(s=d._callbacks[e][a],(i||!s.seq||p[s.seq]==s.level)&&u==s.action){var c;(c="keypress"==u&&!n.metaKey&&!n.ctrlKey)||(c=s.modifiers,c=t.sort().join(",")===c.sort().join(",")),c&&(c=i&&s.seq==i&&s.level==o,(!i&&s.combo==r||c)&&d._callbacks[e].splice(a,1),l.push(s))}return l}function u(e,t,n,i){d.stopCallback(t,t.target||t.srcElement,n,i)||!1!==e(t,n)||(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function t(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=y(e);t&&("keyup"==e.type&&h===t?h=!1:d.handleKey(t,r(e),e))}function a(t,e,n,i){function r(e){return function(){m=e,++p[t],clearTimeout(f),f=setTimeout(l,1e3)}}function o(e){u(n,e,t),"keyup"!==i&&(h=y(e)),setTimeout(l,10)}for(var a=p[t]=0;a<e.length;++a){var s=a+1===e.length?o:r(i||b(e[a+1]).action);c(e[a],s,i,t,a)}}function c(e,t,n,i,r){d._directMap[e+":"+n]=t;var o=(e=e.replace(/\s+/g," ")).split(" ");1<o.length?a(e,o,t,n):(n=b(e,n),d._callbacks[n.key]=d._callbacks[n.key]||[],s(n.key,n.modifiers,{type:n.action},i,e,r),d._callbacks[n.key][i?"unshift":"push"]({callback:t,modifiers:n.modifiers,action:n.action,seq:i,level:r,combo:e}))}var d=this;if(e=e||n,!(d instanceof w))return new w(e);d.target=e,d._callbacks={},d._directMap={};var f,p={},h=!1,g=!1,m=!1;d._handleKey=function(e,t,n){var i,r=s(e,t,n),o=0,a=!(t={});for(i=0;i<r.length;++i)r[i].seq&&(o=Math.max(o,r[i].level));for(i=0;i<r.length;++i)r[i].seq?r[i].level==o&&(a=!0,t[r[i].seq]=1,u(r[i].callback,n,r[i].combo,r[i].seq)):a||u(r[i].callback,n,r[i].combo);r="keypress"==n.type&&g,n.type!=m||v(e)||r||l(t),g=a&&"keydown"==n.type},d._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)c(e[i],t,n)},i(e,"keypress",t),i(e,"keydown",t),i(e,"keyup",t)}if(e){var s,l={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"},a={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(t=1;t<20;++t)l[111+t]="f"+t;for(t=0;t<=9;++t)l[t+96]=t.toString();w.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},w.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},w.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},w.prototype.reset=function(){return this._callbacks={},this._directMap={},this},w.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap ")||o(t,this.target))&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},w.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},w.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},w.init=function(){var e,t=w(n);for(e in t)"_"!==e.charAt(0)&&(w[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},w.init(),e.Mousetrap=w,"undefined"!=typeof module&&module.exports&&(module.exports=w),"function"==typeof define&&define.amd&&define(function(){return w})}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null),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(n){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i={};return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(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 i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),s=i(n(1)),l=i(n(3)),u=i(n(4)),c=function(){function i(e,t){!function(e){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this);var n=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,(i.__proto__||Object.getPrototypeOf(i)).call(this));return n.resolveOptions(t),n.listenClick(e),n}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)}(i,l["default"]),a(i,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===o(t.container)?t.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,u["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 r("action",e)}},{key:"defaultTarget",value:function(e){var t=r("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return r("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:["copy","cut"],n="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return n.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),i}();e.exports=c},function(n,e,t){"use strict";var i,r="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 i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),a=(i=t(2))&&i.__esModule?i:{"default":i},s=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.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 e=void 0;try{e=document.execCommand(this.action)}catch(n){e=!1}this.handleResult(e)}},{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(e){var t=0<arguments.length&&void 0!==e?arguments[0]:"copy";if(this._action=t,"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":r(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}();n.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 i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}},function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t},function(e,t,n){var f=n(5),p=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!f.string(t))throw new TypeError("Second argument must be a String");if(!f.fn(n))throw new TypeError("Third argument must be a Function");if(f.node(e))return c=t,d=n,(u=e).addEventListener(c,d),{destroy:function(){u.removeEventListener(c,d)}};if(f.nodeList(e))return a=e,s=t,l=n,Array.prototype.forEach.call(a,function(e){e.addEventListener(s,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(e){e.removeEventListener(s,l)})}};if(f.string(e))return i=e,r=t,o=n,p(document.body,i,r,o);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var i,r,o,a,s,l,u,c,d}},function(e,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function o(e,t,n,i,r){var o=function(t,n,e,i){return function(e){e.delegateTarget=a(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}var a=n(7);e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,n,i,r)}))}},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 t(){var e=new FormData($("#gollum-editor-form").get(0)),t=window.location.pathname.split("/"),n=window.location.hash.substr(1);e.append("page",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 n(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")),$(".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 a=decodeURI(pagePath()),s=decodeURI(pageName()),t="Renamed page will be under <span class='path'>"+htmlEscape(cleanPath(a))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Rename Page",fields:[{id:"name",name:"Rename to",type:"text",defaultValue:s||"",context:t}],OK:function(e){var t="Rename Page";e.name&&(t=e.name);var n=abspath(a,t),i=n[0],r="/"+a==i?"Renamed "+s+" to "+t:"Renamed "+s+" to "+n.join("/"),o=$("form[name=rename]");o.children("input[name=rename]").val(n.join("/")),o.children("input[name=message]").val(r),o.submit()}})})),$(".minibutton-new-page").length&&($(".minibutton-new-page").parent().removeClass("jaws"),$(".minibutton-new-page").click(function(e){e.preventDefault();var o=pagePath();o===undefined&&0!=$("#file-browser").length&&(o=window.location.pathname.replace(routePath("overview"),""));var t="Page will be created under <span class='path'>"+htmlEscape(cleanPath(o))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Create New Page",fields:[{id:"name",name:"Page Name",type:"text",defaultValue:"",context:t}],OK:function(e){var t="New Page";e.name&&(t=e.name);for(var n=[],i=abspath(o,t).join("/").split("/"),r=0;r<i.length;r++)n.push(encodeURIComponent(i[r]));window.location=routePath("create")+n.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(e){e.preventDefault(),$(this).hasClass("selected")||(preview="preview"==$(this).attr("id"),preview&&t(),n(preview))});var e=function(){return $(".tabnav-tab").not(".selected").click(),!1},i=[{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:e}];if(($("#wiki-wrapper.edit").length||$("#wiki-wrapper.create").length)&&Mousetrap.bind(["ctrl+shift+p"],e),$("#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:i}),$("#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"),i=cleanPath(prefixBaseUrl(pagePath()+"/"+pageName()+n)),r=$("#gollum-editor-form").attr("action");$.ajax({url:r,type:"POST",data:t,processData:!1,contentType:!1,success:function(){window.location=i},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 o=2,a=["bg-green-light","bg-red-light"],r=function(){var r=0;$("#selection-form input").each(function(e,t){var n=$(t).val(),i=$('#version-form input[value="'+n+'"]');i.prop("checked",!0),0==e?i.closest("li").removeClass(a[1]).addClass(a[e]):1==e&&i.closest("li").addClass(a[e]),r+=1}),r<1?$(".history button.action-compare-revision").prop("disabled",!0):r<o?($(".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")),r()},l=function(e){$("#selection-form #"+$(e).val()).remove(),$(e).closest("li").removeClass(a.join(" ")),r()},u=function(){$("#version-form input").on("change",function(){this.checked?s(this):l(this)})};u(),r();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),u(),r()},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){$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#last-edit-in-progress").html("Last edited by <b>"+e.author+"</b>, "+e.date)}}),$("#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:i})),$("#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),i=n.data("identicon"),r=new Identicon(i,f).toString();r="data:image/svg+xml;base64,"+r,n.attr("src",r)})}}),function(i){var r={debugOn:!1,markupCreated:!1,markup:"",currentAspect:function(){return window.innerWidth<480?"small-mobile":"fixed"==i("#gollum-dialog-dialog").css("position")?"large-mobile":"desktop"},attachEvents:function(t){i("#gollum-dialog-action-ok").click(function(e){r.eventOK(e,t)}),i("#gollum-dialog-action-cancel").click(r.eventCancel),i('#gollum-dialog-dialog input[type="text"]').keydown(function(e){13==e.keyCode&&r.eventOK(e,t)})},detachEvents:function(){i("#gollum-dialog-action-ok").unbind("click"),i("#gollum-dialog-action-cancel").unbind("click")},createFieldMarkup:function(e){for(var t="<fieldset>",n=0;n<e.length;n++)if("object"==typeof e[n]){switch(t+='<div class="field">',e[n].type){case"text":t+=r.createFieldText(e[n]);break;case"file":t+=r.createFieldFile(e[n])}t+="</div>"}return t+="</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",i=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="'+i+'" class="form-control width-full">',t+="</form>",e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createMarkup:function(e,t){return r.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">'+t+'</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(),o("Cancelled dialog."),r.hide()},eventOK:function(e,t){e.preventDefault();var n=[];i("#gollum-dialog-dialog-body input").each(function(){n[i(this).attr("name")]=i(this).val()}),t&&"function"==typeof t&&t(n),r.hide()},hide:function(){i.browser.msie?(i("#gollum-dialog-dialog").hide().removeClass("active"),i("select").css("visibility","visible")):(i("#gollum-dialog-dialog").animate({opacity:0},{duration:200,complete:function(){i("#gollum-dialog-dialog").removeClass("active"),i("#gollum-dialog-dialog").css("display","none")}}),i(window).unbind("resize",r.resize))},init:function(e){var t="",n="";e&&"object"==typeof e?(e.body&&"string"==typeof e.body&&(n="<p>"+e.body+"</p>"),e.fields&&"object"==typeof e.fields&&(n+=r.createFieldMarkup(e.fields)),e.title&&"string"==typeof e.title&&(t=e.title),r.markupCreated&&i("#gollum-dialog-dialog").remove(),r.markup=r.createMarkup(t,n),i("body").append(r.markup),e.OK&&"function"==typeof e.OK&&r.attachEvents(e.OK),r.show()):o("Editor Dialog: Cannot init; invalid init object")},show:function(){r.markupCreated?(o("Showing dialog"),i.browser.msie?(i("#gollum-dialog.dialog").addClass("active"),r.position(),i("select").css("visibility","hidden")):(i("#gollum-dialog.dialog").css("display","none"),i("#gollum-dialog-dialog").animate({opacity:0},{duration:0,complete:function(){i("#gollum-dialog-dialog").css("display","block"),r.position(),i("#gollum-dialog-dialog").animate({opacity:1},{duration:500}),i(i('#gollum-dialog-dialog input[type="text"]').get(0)).focus()}})),i(window).bind("resize",r.resize)):o("Dialog: No markup to show. Please use init first.")},resize:function(){r.position()},position:function(){if("small-mobile"==r.currentAspect())i("#gollum-dialog-dialog-inner").css("height","100%").css("margin-top","auto");else if("large-mobile"==r.currentAspect())i("#gollum-dialog-dialog-inner").css("height","auto").css("margin-top","auto");else if("desktop"==r.currentAspect()){var e=i("#gollum-dialog-dialog-inner").height();i("#gollum-dialog-dialog-inner").css("height",e+"px").css("margin-top",-1*parseInt(e/2))
5
- }}},o=function(e){r.debugOn&&"undefined"!=typeof console&&console.log(e)};i.GollumDialog=r}(jQuery),function(n){var t={_PLACEHOLDERS:[],_p:function(e){this.fieldObject=e,this.placeholderText=e.val();var t=e.val();e.addClass("ph"),e.blur(function(){""==n(this).val()&&(n(this).val(t),n(this).addClass("ph"))}),e.focus(function(){n(this).removeClass("ph"),n(this).val()==t?n(this).val(""):n(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}};n.GollumPlaceholder=t}(jQuery),function(e){function u(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 c(e,t,n){if(!n||!n["find-header-line"])return[];var i=n["find-header-line"](e,t);return null==i?[]:[i[0],i[1]]}function d(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,t){var n={};for(i=0;i<window.ace_editor.getSession().getLength();i++){var r=null,o=u(i),a=o[0],s=o[1];if(a){if(s)s=s.value,r=i;else{var l=c(i,a.value,t);if(!l.length)continue;s=l[0],r=l[1]}if(s=d(s),(index=n[s])?n[s=s+"-"+index.toString()]=index+1:n[s]=1,s==e)return r}}return null}}(jQuery),function(e){function i(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight}function r(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height}function n(t){var n=this;i(this),this.__resizeRAF__&&d(this.__resizeRAF__),this.__resizeRAF__=c(function(){r(n)&&(n.__resizeLast__.width=n.offsetWidth,n.__resizeLast__.height=n.offsetHeight,n.__resizeListeners__.forEach(function(e){e.call(n,t)}))})}function o(){if(!l){var e=(x||"")+".resize-triggers { "+(k||"")+'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),l=!0}}var t,a,s=document.attachEvent,l=!1,u=e.fn.resize;if(e.fn.resize=function(e){return this.each(function(){this==window?u.call(jQuery(this),e):addResizeListener(this,e)})},e.fn.removeResize=function(e){return this.each(function(){removeResizeListener(this,e)})},!s){var c=(a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},function(e){return a(e)}),d=(t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(e){return t(e)}),f=!1,p="",h="animationstart",g="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="",v=document.createElement("fakeelement");if(v.style.animationName!==undefined&&(f=!0),!1===f)for(var b=0;b<g.length;b++)if(v.style[g[b]+"AnimationName"]!==undefined){(y=g[b])+"Animation",p="-"+y.toLowerCase()+"-",h=m[b],f=!0;break}var w="resizeanim",x="@"+p+"keyframes "+w+" { from { opacity: 0; } to { opacity: 0; } } ",k=p+"animation: 1ms "+w+"; "}window.addResizeListener=function(t,e){s?t.attachEvent("onresize",e):(t.__resizeTriggers__||("static"==getComputedStyle(t).position&&(t.style.position="relative"),o(),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=document.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',t.appendChild(t.__resizeTriggers__),i(t),t.addEventListener("scroll",n,!0),h&&t.__resizeTriggers__.addEventListener(h,function(e){e.animationName==w&&i(t)})),t.__resizeListeners__.push(e))},window.removeResizeListener=function(e,t){s?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",n),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))}}(jQuery),Array.prototype.includes||(Array.prototype.includes=function(e){return 0<=this.indexOf(e)});
4
+ t,n,i,r,o){var a,s;if(this.isSvg())o.rectangles.push({x:e,y:t,w:n,h:i,color:r});else for(a=e;a<e+n;a++)for(s=t;s<t+i;s++)o.buffer[o.index(a,s)]=r},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,i){var r=[e,t,n].map(Math.round);return r.push(0<=i&&i<=255?i/255:1),"rgba("+r.join(",")+")"},getDump:function(){var e,t,n,i=this.foreground,r=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:"+r+";'><g style='fill:"+i+"; stroke:"+i+"; stroke-width:"+o+";'>",e=0;e<this.rectangles.length;e++)(n=this.rectangles[e]).color!=r&&(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}(),function(e,n,t){function i(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function y(e){if("keypress"!=e.type)return l[e.which]?l[e.which]:a[e.which]?a[e.which]:String.fromCharCode(e.which).toLowerCase();var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}function r(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 v(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function b(e,t){var n,i,r,o=[];for("+"===(n=e)?n=["+"]:n=(n=n.replace(/\+{2}/g,"+plus")).split("+"),r=0;r<n.length;++r)i=n[r],c[i]&&(i=c[i]),t&&"keypress"!=t&&u[i]&&(i=u[i],o.push("shift")),v(i)&&o.push(i);if(n=i,!(r=t)){if(!s)for(var a in s={},l)95<a&&a<112||l.hasOwnProperty(a)&&(s[l[a]]=a);r=s[n]?"keydown":"keypress"}return"keypress"==r&&o.length&&(r="keydown"),{key:i,modifiers:o,action:r}}function o(e,t){return null!==e&&e!==n&&(e===t||o(e.parentNode,t))}function w(e){function l(e){e=e||{};var t,n=!1;for(t in p)e[t]?n=!0:p[t]=0;n||(m=!1)}function s(e,t,n,i,r,o){var a,s,l=[],u=n.type;if(!d._callbacks[e])return[];for("keyup"==u&&v(e)&&(t=[e]),a=0;a<d._callbacks[e].length;++a)if(s=d._callbacks[e][a],(i||!s.seq||p[s.seq]==s.level)&&u==s.action){var c;(c="keypress"==u&&!n.metaKey&&!n.ctrlKey)||(c=s.modifiers,c=t.sort().join(",")===c.sort().join(",")),c&&(c=i&&s.seq==i&&s.level==o,(!i&&s.combo==r||c)&&d._callbacks[e].splice(a,1),l.push(s))}return l}function u(e,t,n,i){d.stopCallback(t,t.target||t.srcElement,n,i)||!1!==e(t,n)||(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)}function t(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=y(e);t&&("keyup"==e.type&&h===t?h=!1:d.handleKey(t,r(e),e))}function a(t,e,n,i){function r(e){return function(){m=e,++p[t],clearTimeout(f),f=setTimeout(l,1e3)}}function o(e){u(n,e,t),"keyup"!==i&&(h=y(e)),setTimeout(l,10)}for(var a=p[t]=0;a<e.length;++a){var s=a+1===e.length?o:r(i||b(e[a+1]).action);c(e[a],s,i,t,a)}}function c(e,t,n,i,r){d._directMap[e+":"+n]=t;var o=(e=e.replace(/\s+/g," ")).split(" ");1<o.length?a(e,o,t,n):(n=b(e,n),d._callbacks[n.key]=d._callbacks[n.key]||[],s(n.key,n.modifiers,{type:n.action},i,e,r),d._callbacks[n.key][i?"unshift":"push"]({callback:t,modifiers:n.modifiers,action:n.action,seq:i,level:r,combo:e}))}var d=this;if(e=e||n,!(d instanceof w))return new w(e);d.target=e,d._callbacks={},d._directMap={};var f,p={},h=!1,g=!1,m=!1;d._handleKey=function(e,t,n){var i,r=s(e,t,n),o=0,a=!(t={});for(i=0;i<r.length;++i)r[i].seq&&(o=Math.max(o,r[i].level));for(i=0;i<r.length;++i)r[i].seq?r[i].level==o&&(a=!0,t[r[i].seq]=1,u(r[i].callback,n,r[i].combo,r[i].seq)):a||u(r[i].callback,n,r[i].combo);r="keypress"==n.type&&g,n.type!=m||v(e)||r||l(t),g=a&&"keydown"==n.type},d._bindMultiple=function(e,t,n){for(var i=0;i<e.length;++i)c(e[i],t,n)},i(e,"keypress",t),i(e,"keydown",t),i(e,"keyup",t)}if(e){var s,l={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"},a={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},u={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},c={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"};for(t=1;t<20;++t)l[111+t]="f"+t;for(t=0;t<=9;++t)l[t+96]=t.toString();w.prototype.bind=function(e,t,n){return e=e instanceof Array?e:[e],this._bindMultiple.call(this,e,t,n),this},w.prototype.unbind=function(e,t){return this.bind.call(this,e,function(){},t)},w.prototype.trigger=function(e,t){return this._directMap[e+":"+t]&&this._directMap[e+":"+t]({},e),this},w.prototype.reset=function(){return this._callbacks={},this._directMap={},this},w.prototype.stopCallback=function(e,t){return!(-1<(" "+t.className+" ").indexOf(" mousetrap ")||o(t,this.target))&&("INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable)},w.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},w.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},w.init=function(){var e,t=w(n);for(e in t)"_"!==e.charAt(0)&&(w[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},w.init(),e.Mousetrap=w,"undefined"!=typeof module&&module.exports&&(module.exports=w),"function"==typeof define&&define.amd&&define(function(){return w})}}("undefined"!=typeof window?window:null,"undefined"!=typeof window?document:null),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(n){function r(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i={};return r.m=n,r.c=i,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(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 i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),s=i(n(1)),l=i(n(3)),u=i(n(4)),c=function(){function i(e,t){!function(e){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}(this);var n=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,(i.__proto__||Object.getPrototypeOf(i)).call(this));return n.resolveOptions(t),n.listenClick(e),n}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)}(i,l["default"]),a(i,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===o(t.container)?t.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,u["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 r("action",e)}},{key:"defaultTarget",value:function(e){var t=r("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return r("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:["copy","cut"],n="string"==typeof t?[t]:t,i=!!document.queryCommandSupported;return n.forEach(function(e){i=i&&!!document.queryCommandSupported(e)}),i}}]),i}();e.exports=c},function(n,e,t){"use strict";var i,r="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 i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}}(),a=(i=t(2))&&i.__esModule?i:{"default":i},s=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(e){var t=0<arguments.length&&void 0!==e?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.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 e=void 0;try{e=document.execCommand(this.action)}catch(n){e=!1}this.handleResult(e)}},{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(e){var t=0<arguments.length&&void 0!==e?arguments[0]:"copy";if(this._action=t,"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":r(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}();n.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 i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}},function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function i(){r.off(e,i),t.apply(n,arguments)}var r=this;return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,a=i.length;o<a;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t},function(e,t,n){var f=n(5),p=n(6);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!f.string(t))throw new TypeError("Second argument must be a String");if(!f.fn(n))throw new TypeError("Third argument must be a Function");if(f.node(e))return c=t,d=n,(u=e).addEventListener(c,d),{destroy:function(){u.removeEventListener(c,d)}};if(f.nodeList(e))return a=e,s=t,l=n,Array.prototype.forEach.call(a,function(e){e.addEventListener(s,l)}),{destroy:function(){Array.prototype.forEach.call(a,function(e){e.removeEventListener(s,l)})}};if(f.string(e))return i=e,r=t,o=n,p(document.body,i,r,o);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var i,r,o,a,s,l,u,c,d}},function(e,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){function o(e,t,n,i,r){var o=function(t,n,e,i){return function(e){e.delegateTarget=a(e.target,n),e.delegateTarget&&i.call(t,e)}}.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}var a=n(7);e.exports=function(e,t,n,i,r){return"function"==typeof e.addEventListener?o.apply(null,arguments):"function"==typeof n?o.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return o(e,t,n,i,r)}))}},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 t(){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 n(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")),$(".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 a=decodeURI(pagePath()),s=decodeURI(pageName()),t="Renamed page will be under <span class='path'>"+htmlEscape(cleanPath(a))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Rename Page",fields:[{id:"name",name:"Rename to",type:"text",defaultValue:s||"",context:t}],OK:function(e){var t="Rename Page";e.name&&(t=e.name);var n=abspath(a,t),i=n[0],r="/"+a==i?"Renamed "+s+" to "+t:"Renamed "+s+" to "+n.join("/"),o=$("form[name=rename]");o.children("input[name=rename]").val(n.join("/")),o.children("input[name=message]").val(r),o.submit()}})})),$(".minibutton-new-page").length&&($(".minibutton-new-page").parent().removeClass("jaws"),$(".minibutton-new-page").click(function(e){e.preventDefault();var o=pagePath();o===undefined&&0!=$("#file-browser").length&&(o=window.location.pathname.replace(routePath("overview"),""));var t="Page will be created under <span class='path'>"+htmlEscape(cleanPath(o))+"</span> unless an absolute path is given.";$.GollumDialog.init({title:"Create New Page",fields:[{id:"name",name:"Page Name",type:"text",defaultValue:"",context:t}],OK:function(e){var t="New Page";e.name&&(t=e.name);for(var n=[],i=abspath(o,t).join("/").split("/"),r=0;r<i.length;r++)n.push(encodeURIComponent(i[r]));window.location=routePath("create")+n.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(e){e.preventDefault(),$(this).hasClass("selected")||(preview="preview"==$(this).attr("id"),preview&&t(),n(preview))});var e=function(){return $(".tabnav-tab").not(".selected").click(),!1},i=[{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:e}];if(($("#wiki-wrapper.edit").length||$("#wiki-wrapper.create").length)&&Mousetrap.bind(["ctrl+shift+p"],e),$("#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:i}),$("#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"),i=cleanPath(prefixBaseUrl(pagePath()+"/"+pageName()+n)),r=$("#gollum-editor-form").attr("action");$.ajax({url:r,type:"POST",data:t,processData:!1,contentType:!1,success:function(){window.location=i},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 o=2,a=["bg-green-light","bg-red-light"],r=function(){var r=0;$("#selection-form input").each(function(e,t){var n=$(t).val(),i=$('#version-form input[value="'+n+'"]');i.prop("checked",!0),0==e?i.closest("li").removeClass(a[1]).addClass(a[e]):1==e&&i.closest("li").addClass(a[e]),r+=1}),r<1?$(".history button.action-compare-revision").prop("disabled",!0):r<o?($(".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")),r()},l=function(e){$("#selection-form #"+$(e).val()).remove(),$(e).closest("li").removeClass(a.join(" ")),r()},u=function(){$("#version-form input").on("change",function(){this.checked?s(this):l(this)})};u(),r();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),u(),r()},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){$("#last-edit").next(".dotted-spinner").toggleClass("hidden"),$("#last-edit-in-progress").html("Last edited by <b>"+e.author+"</b>, "+e.date)}}),$("#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:i})),$("#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),i=n.data("identicon"),r=new Identicon(i,f).toString();r="data:image/svg+xml;base64,"+r,n.attr("src",r)})}}),function(i){var r={debugOn:!1,markupCreated:!1,markup:"",currentAspect:function(){return window.innerWidth<480?"small-mobile":"fixed"==i("#gollum-dialog-dialog").css("position")?"large-mobile":"desktop"},attachEvents:function(t){i("#gollum-dialog-action-ok").click(function(e){r.eventOK(e,t)}),i("#gollum-dialog-action-cancel").click(r.eventCancel),i('#gollum-dialog-dialog input[type="text"]').keydown(function(e){13==e.keyCode&&r.eventOK(e,t)})},detachEvents:function(){i("#gollum-dialog-action-ok").unbind("click"),i("#gollum-dialog-action-cancel").unbind("click")},createFieldMarkup:function(e){for(var t="<fieldset>",n=0;n<e.length;n++)if("object"==typeof e[n]){switch(t+='<div class="field">',e[n].type){case"text":t+=r.createFieldText(e[n]);break;case"file":t+=r.createFieldFile(e[n])}t+="</div>"}return t+="</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",i=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="'+i+'" class="form-control width-full">',t+="</form>",e.context&&(t+='<span class="context">'+e.context+"</span>"),t},createMarkup:function(e,t){return r.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">'+t+'</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(),o("Cancelled dialog."),r.hide()},eventOK:function(e,t){e.preventDefault();var n=[];i("#gollum-dialog-dialog-body input").each(function(){n[i(this).attr("name")]=i(this).val()}),t&&"function"==typeof t&&t(n),r.hide()},hide:function(){i.browser.msie?(i("#gollum-dialog-dialog").hide().removeClass("active"),i("select").css("visibility","visible")):(i("#gollum-dialog-dialog").animate({opacity:0},{duration:200,complete:function(){i("#gollum-dialog-dialog").removeClass("active"),i("#gollum-dialog-dialog").css("display","none")}}),i(window).unbind("resize",r.resize))},init:function(e){var t="",n="";e&&"object"==typeof e?(e.body&&"string"==typeof e.body&&(n="<p>"+e.body+"</p>"),e.fields&&"object"==typeof e.fields&&(n+=r.createFieldMarkup(e.fields)),e.title&&"string"==typeof e.title&&(t=e.title),r.markupCreated&&i("#gollum-dialog-dialog").remove(),r.markup=r.createMarkup(t,n),i("body").append(r.markup),e.OK&&"function"==typeof e.OK&&r.attachEvents(e.OK),r.show()):o("Editor Dialog: Cannot init; invalid init object")},show:function(){r.markupCreated?(o("Showing dialog"),i.browser.msie?(i("#gollum-dialog.dialog").addClass("active"),r.position(),i("select").css("visibility","hidden")):(i("#gollum-dialog.dialog").css("display","none"),i("#gollum-dialog-dialog").animate({opacity:0},{duration:0,complete:function(){i("#gollum-dialog-dialog").css("display","block"),r.position(),i("#gollum-dialog-dialog").animate({opacity:1},{duration:500}),i(i('#gollum-dialog-dialog input[type="text"]').get(0)).focus()}})),i(window).bind("resize",r.resize)):o("Dialog: No markup to show. Please use init first.")},resize:function(){r.position()},position:function(){if("small-mobile"==r.currentAspect())i("#gollum-dialog-dialog-inner").css("height","100%").css("margin-top","auto");else if("large-mobile"==r.currentAspect())i("#gollum-dialog-dialog-inner").css("height","auto").css("margin-top","auto");else if("desktop"==r.currentAspect()){var e=i("#gollum-dialog-dialog-inner").height();i("#gollum-dialog-dialog-inner").css("height",e+"px").css(
5
+ "margin-top",-1*parseInt(e/2))}}},o=function(e){r.debugOn&&"undefined"!=typeof console&&console.log(e)};i.GollumDialog=r}(jQuery),function(n){var t={_PLACEHOLDERS:[],_p:function(e){this.fieldObject=e,this.placeholderText=e.val();var t=e.val();e.addClass("ph"),e.blur(function(){""==n(this).val()&&(n(this).val(t),n(this).addClass("ph"))}),e.focus(function(){n(this).removeClass("ph"),n(this).val()==t?n(this).val(""):n(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}};n.GollumPlaceholder=t}(jQuery),function(e){function u(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 c(e,t,n){if(!n||!n["find-header-line"])return[];var i=n["find-header-line"](e,t);return null==i?[]:[i[0],i[1]]}function d(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,t){var n={};for(i=0;i<window.ace_editor.getSession().getLength();i++){var r=null,o=u(i),a=o[0],s=o[1];if(a){if(s)s=s.value,r=i;else{var l=c(i,a.value,t);if(!l.length)continue;s=l[0],r=l[1]}if(s=d(s),(index=n[s])?n[s=s+"-"+index.toString()]=index+1:n[s]=1,s==e)return r}}return null}}(jQuery),function(e){function i(e){var t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight}function r(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height}function n(t){var n=this;i(this),this.__resizeRAF__&&d(this.__resizeRAF__),this.__resizeRAF__=c(function(){r(n)&&(n.__resizeLast__.width=n.offsetWidth,n.__resizeLast__.height=n.offsetHeight,n.__resizeListeners__.forEach(function(e){e.call(n,t)}))})}function o(){if(!l){var e=(x||"")+".resize-triggers { "+(k||"")+'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),l=!0}}var t,a,s=document.attachEvent,l=!1,u=e.fn.resize;if(e.fn.resize=function(e){return this.each(function(){this==window?u.call(jQuery(this),e):addResizeListener(this,e)})},e.fn.removeResize=function(e){return this.each(function(){removeResizeListener(this,e)})},!s){var c=(a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},function(e){return a(e)}),d=(t=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.clearTimeout,function(e){return t(e)}),f=!1,p="",h="animationstart",g="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="",v=document.createElement("fakeelement");if(v.style.animationName!==undefined&&(f=!0),!1===f)for(var b=0;b<g.length;b++)if(v.style[g[b]+"AnimationName"]!==undefined){(y=g[b])+"Animation",p="-"+y.toLowerCase()+"-",h=m[b],f=!0;break}var w="resizeanim",x="@"+p+"keyframes "+w+" { from { opacity: 0; } to { opacity: 0; } } ",k=p+"animation: 1ms "+w+"; "}window.addResizeListener=function(t,e){s?t.attachEvent("onresize",e):(t.__resizeTriggers__||("static"==getComputedStyle(t).position&&(t.style.position="relative"),o(),t.__resizeLast__={},t.__resizeListeners__=[],(t.__resizeTriggers__=document.createElement("div")).className="resize-triggers",t.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',t.appendChild(t.__resizeTriggers__),i(t),t.addEventListener("scroll",n,!0),h&&t.__resizeTriggers__.addEventListener(h,function(e){e.animationName==w&&i(t)})),t.__resizeListeners__.push(e))},window.removeResizeListener=function(e,t){s?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",n),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))}}(jQuery),Array.prototype.includes||(Array.prototype.includes=function(e){return 0<=this.indexOf(e)});